/* Custom Styles for Deepam Hospitals */

:root {
    --primary-color: #1b7f3a;
    --secondary-color: #f0fdf4;
    --dark-color: #064e3b;
    --accent-color: #ff4d4d;
    --transition-base: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Base Styles */
body {
    color: #334155;
    line-height: 1.6;
}

/* Hero Section Enhancements */
.service-hero {
    background: linear-gradient(160deg, #ffffff 0%, #f8fafc 40%, #f0fdf4 100%);
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
    position: relative;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-content h1 {
    letter-spacing: -0.03em;
    color: #0f172a;
    max-width: 900px;
}

/* Feature Item Hover Effects */
.feature-item {
    padding: 12px 20px;
    background: #ffffff;
    border: 1px solid rgba(27, 127, 58, 0.1);
    border-radius: 16px;
    transition: var(--transition-base);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: flex-start;
    /* Align tick to the top of the first line */
    gap: 12px;
    height: 100%;
    text-align: left;
}

.feature-item i {
    margin-top: 4px;
    /* Fine-tune tick position with first line */
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.feature-item:hover {
    transform: translateY(-5px) scale(1.02);
    background: #ffffff;
    border-color: var(--primary-color);
    box-shadow: 0 12px 24px rgba(27, 127, 58, 0.08);
}

.feature-item i {
    transition: transform 0.3s ease;
}

.feature-item:hover i {
    transform: scale(1.2);
}

/* Button Styling & Interactivity */
.btn-action {
    position: relative;
    overflow: hidden;
    transition: var(--transition-base);
    white-space: nowrap;
    border-width: 2px;
}

.btn-action:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.btn-action:active {
    transform: translateY(-1px);
}

/* Pulsing Emergency Button */
.btn-danger.btn-action {
    animation: pulse-danger 2s infinite;
}

@keyframes pulse-danger {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(220, 38, 38, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
    }
}

/* Hero Image Effects */
.hero-image-container figure {
    transition: var(--transition-base);
    border: 8px solid white;
}

.hero-image-container:hover figure {
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
    box-shadow: 20px 40px 60px -15px rgba(0, 0, 0, 0.3);
}

/* Reducing Empty Space */
.lead {
    max-width: 90%;
}

@media (max-width: 991.98px) {
    .service-hero {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    .hero-content {
        text-align: center;
        margin-top: 1rem;
    }

    .hero-actions {
        gap: 10px !important;
        flex-direction: column !important;
        align-items: center !important;
    }
    .hero-actions .btn-action {
        width: auto !important;
        min-width: 220px;
        justify-content: center !important;
    }

    .lead {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 575.98px) {
    .btn-action {
        font-size: 0.85rem;
        padding: 8px 12px !important;
    }

    .hero-actions {
        gap: 0.25rem !important;
    }
}

/* Utility Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUpReveal 0.8s forwards ease-out;
}

@keyframes fadeInUpReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Specialized Service Tags */
.service-tags {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
}

.service-tags .service-tag {
    padding: 14px 20px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #334155;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.service-tags .service-tag::before {
    content: '\f058';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--primary-color);
    font-size: 1rem;
}

.service-tag:hover {
    border-color: var(--primary-color);
    background: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(27, 127, 58, 0.1);
}

/* Service Areas Box - Unique Design */
.service-areas-box {
    background: #f8fafc;
    border: none !important;
    border-radius: 24px !important;
}

.area-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.area-item {
    padding: 12px 20px;
    background: #ffffff;
    border: 1px solid rgba(59, 130, 246, 0.1);
    border-radius: 100px;
    /* Pill Shape */
    font-weight: 600;
    color: #475569;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.area-item::before {
    content: '\f3c5';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-right: 8px;
    color: #3b82f6;
    /* Blue for map/location theme */
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.area-item:hover {
    background: #3b82f6;
    color: #ffffff;
    border-color: #3b82f6;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.2);
}

.area-item:hover::before {
    color: #ffffff;
    transform: rotate(15deg);
}

.area-item:hover::before {
    color: #ffffff;
}

/* Info Cards */
.info-card {
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(27, 127, 58, 0.1) !important;
}

/* Pregnancy Services Icon List */
.custom-icon-list li {
    position: relative;
    padding: 10px 10px 10px 45px;
    margin-bottom: 8px;
    background: #f8fafc;
    border-radius: 10px;
    font-weight: 500;
    color: #334155;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.custom-icon-list li i {
    position: absolute;
    left: 12px;
    width: 24px;
    text-align: center;
    color: var(--primary-color);
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.custom-icon-list li:hover {
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transform: translateX(5px);
    color: var(--primary-color);
}

.custom-icon-list li:hover i {
    transform: scale(1.2);
}


/* Labor Support Unique Icons */
.tag-labor::before {
    content: '\f0f1' !important;
    /* Stethoscope icon */
    font-size: 0.9rem !important;
}

/* Emergency Section Styles */
.emergency-alert-box {
    border-left: 5px solid #dc3545 !important;
    background: linear-gradient(to right, #fff5f5, #ffffff) !important;
}

.tag-emergency:hover {
    background: #fef2f2 !important;
    border-color: #f87171 !important;
    color: #dc2626 !important;
}

.pulse-icon {
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Professional Bullet List */
.professional-bullet-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 10px 30px;
    padding: 0;
}

.professional-bullet-list li {
    list-style: none;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.professional-bullet-list li:last-child {
    border-bottom: none;
}

.professional-bullet-list li i {
    color: var(--primary-color);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.professional-bullet-list li:hover {
    padding-left: 10px;
    color: var(--primary-color);
}

.professional-bullet-list li:hover i {
    transform: scale(1.2) rotate(10deg);
}

/* Roadmap UI Styles */
.roadmap-container {
    position: relative;
    padding: 20px 0;
    margin-top: 40px;
}

.roadmap-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 40px;
    transition: all 0.3s ease;
}

.roadmap-item::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 40px;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), transparent);
    z-index: 1;
}

.roadmap-item:last-child::before {
    display: none;
}

.roadmap-circle {
    position: absolute;
    left: 0;
    top: 0;
    width: 42px;
    height: 42px;
    background: #ffffff;
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.1rem;
    z-index: 2;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 10px rgba(27, 127, 58, 0.2);
}

.roadmap-content {
    background: #ffffff;
    padding: 20px 25px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.roadmap-item:hover .roadmap-circle {
    background: var(--primary-color);
    color: #ffffff;
    transform: scale(1.15) rotate(10deg);
    box-shadow: 0 10px 20px rgba(27, 127, 58, 0.3);
}

.roadmap-item:hover .roadmap-content {
    border-color: var(--primary-color);
    transform: translateX(10px);
    box-shadow: 0 10px 25px -5px rgba(27, 127, 58, 0.1);
}

.roadmap-content h5 {
    margin-bottom: 0;
    font-size: 1.1rem;
    color: #1e293b;
    font-weight: 700;
}

/* Journey Card Grid UI */
.journey-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    position: relative;
    margin-top: 30px;
}

.journey-card {
    position: relative;
    background: #ffffff;
    border-radius: 24px;
    padding: 30px;
    border: 1px solid rgba(27, 127, 58, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    height: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.journey-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--primary-color), #4ade80);
    opacity: 0;
    transition: all 0.3s ease;
}

.journey-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(27, 127, 58, 0.12);
    border-color: var(--primary-color);
}

.journey-card:hover::before {
    opacity: 1;
}

.journey-number {
    position: absolute;
    right: -10px;
    top: -10px;
    font-size: 6rem;
    font-weight: 900;
    color: rgba(27, 127, 58, 0.05);
    line-height: 1;
    z-index: 0;
    transition: all 0.4s ease;
}

.journey-card:hover .journey-number {
    color: rgba(27, 127, 58, 0.1);
    transform: scale(1.1) rotate(-10deg);
}

.journey-icon {
    width: 50px;
    height: 50px;
    background: rgba(27, 127, 58, 0.1);
    color: var(--primary-color);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.journey-card:hover .journey-icon {
    background: var(--primary-color);
    color: #ffffff;
    transform: rotateY(180deg);
}

.journey-card h5 {
    position: relative;
    z-index: 1;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 15px;
}

.journey-list {
    position: relative;
    z-index: 1;
    padding: 0;
    margin: 0;
    list-style: none;
}

.journey-list li {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.journey-list li i {
    color: var(--primary-color);
    font-size: 0.8rem;
}

/* CTA Card Styles */
.cta-card-box {
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
    border: 2px solid rgba(27, 127, 58, 0.1);
    border-radius: 24px;
    padding: 40px;
    margin-top: 50px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(27, 127, 58, 0.05);
    transition: all 0.3s ease;
}

.cta-card-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(27, 127, 58, 0.1);
    border-color: var(--primary-color);
}

.cta-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

@media (max-width: 575.98px) {
    .cta-btns {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    .cta-btns .btn-cta {
        width: auto;
        min-width: 220px;
        justify-content: center;
    }
}

.btn-cta {
    padding: 12px 25px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none !important;
}

.btn-cta-primary {
    background: var(--primary-color);
    color: #ffffff;
    border: none;
}

.btn-cta-primary:hover {
    background: #156d31;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(27, 127, 58, 0.2);
    color: #ffffff;
}

.btn-cta-outline {
    background: #ffffff;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-cta-outline:hover {
    background: var(--primary-color);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(27, 127, 58, 0.1);
}

.btn-cta-emergency {
    background: #dc3545;
    color: #ffffff;
    border: none;
    animation: pulse-red-soft 2s infinite;
}

.btn-cta-emergency:hover {
    background: #bb2d3b;
    transform: scale(1.05);
    color: #ffffff;
}

@keyframes pulse-red-soft {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(220, 53, 69, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

.pregnancy-services-grid:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08) !important;
}

/* Orthopedic Table Styles */
.ortho-table-wrapper {
    border-radius: 20px;
}

.ortho-table-body {
    background-color: #f0fdf4;
}

.ortho-custom-table {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.ortho-custom-table tbody tr {
    transition: transform 0.2s ease;
}

.ortho-custom-table tbody tr:hover {
    transform: scale(1.01);
}

/* Premium Doctor Card Styling */
.doctor-premium-card {
    background: #ffffff;
    border: 1px solid rgba(27, 127, 58, 0.1);
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.doctor-premium-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), #4ade80);
    opacity: 0;
    transition: all 0.3s ease;
}

.doctor-premium-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(27, 127, 58, 0.12);
    border-color: var(--primary-color);
}

.doctor-premium-card:hover::before {
    opacity: 1;
}

.doctor-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(27, 127, 58, 0.08);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    max-width: 80%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.doctor-icon-wrapper {
    width: 70px;
    height: 70px;
    background: rgba(27, 127, 58, 0.06);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 20px auto 15px;
    transition: all 0.3s ease;
}

.doctor-premium-card:hover .doctor-icon-wrapper {
    background: var(--primary-color);
    color: #ffffff;
    transform: scale(1.1) rotate(5deg);
}

.doctor-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 5px;
}

.doctor-specialty {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.doctor-exp {
    font-size: 0.85rem;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.doctor-degrees {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-top: 12px;
}

.degree-badge {
    background: #f1f5f9;
    color: #475569;
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.btn-doctor {
    background: var(--primary-color);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 10px 20px;
    transition: all 0.3s ease;
    border: none;
    width: 100%;
}

.btn-doctor:hover {
    background: #156d31;
    color: #ffffff;
    box-shadow: 0 8px 16px rgba(27, 127, 58, 0.2);
}

.doctor-action {
    width: 100%;
}

/* Responsive Desktop Centering Class */
@media (min-width: 992px) {
    .desktop-center {
        text-align: center !important;
    }
}

/* Global Proper Text Justification */
body p:not(.text-center):not(.desktop-center) {
    text-align: justify !important;
    text-justify: inter-word;
}

/* Maintain intentional alignments */
body .text-center p,
body [class*="text-center"] p,
body .desktop-center p {
    text-align: inherit !important;
}

@media (max-width: 575.98px) {
    body p:not(.text-center):not(.desktop-center) {
        text-align: left !important;
    }
}

/* Make Page Header Full-Width and Flush with Viewport/Navbar with Rounded Corners */
.page-header {
    border-radius: 30px !important;
    margin-top: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}