/* Component styles: Buttons, cards, navbar */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: rgba(42, 122, 130, 0.05);
    /* --primary-color with opacity */
    transform: translateY(-2px);
}

.btn-view-more {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--text-white);
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-radius: 8px;
    border: 2px solid transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 16px rgba(42, 122, 130, 0.25);
    position: relative;
    overflow: hidden;
}

.btn-view-more::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.15);
    transition: left 0.3s ease;
}

.btn-view-more:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 24px rgba(42, 122, 130, 0.35);
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
}

.btn-view-more:hover::before {
    left: 100%;
}

.btn-view-more:active {
    transform: translateY(-2px) scale(0.98);
}

/* View More Button Wrapper */
.view-more-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 4rem;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease 0.6s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Section Specific Button Overrides */
.hero-content .btn {
    min-width: 250px;
    padding: 1.5rem 2rem;
    font-size: 1.1rem;
    /* Slightly larger text to match the new height */
}

/* Cards */
.card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: var(--primary-color);
}

/* Navbar */
/* Navbar */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.mobile-toggle {
    display: none;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-menu {
    display: flex;
    align-items: center;
    flex-grow: 1;
    margin-left: 3rem;
    gap: 3rem;
}

/* Logo Styles */
.logo-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--secondary-color);
    text-decoration: none;
    line-height: 1.1;
    margin-bottom: 2px;
}

.logo-subtitle {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Navigation Links */
.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0 auto;
}

.nav-link {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

/* Right Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-phone {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
}

.phone-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.phone-link:hover {
    color: var(--primary-color);
}

.phone-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    width: 28px;
    height: 28px;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.nav-phone:hover .phone-icon {
    border-color: var(--primary-color);
    background-color: var(--bg-light);
}

.phone-icon svg {
    width: 14px;
    height: 14px;
}

/* Expertise Cards */
/* Service Cards - Premium Slide-Up Reveal */
.service-card {
    position: relative;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px -10px rgba(42, 122, 130, 0.2);
}

.service-card-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover .service-card-image img {
    transform: scale(1.1);
}

.service-card-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(to top, 
        rgba(16, 42, 67, 0.95) 0%, 
        rgba(16, 42, 67, 0.4) 50%, 
        transparent 100%);
    padding: 2rem;
    color: #fff;
    transition: all 0.5s ease;
}

.service-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover .service-card-header,
.service-card.is-active .service-card-header {
    transform: translateY(-160px);
}

.service-icon {
    width: 44px;
    height: 44px;
    background: rgba(42, 122, 130, 0.2);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4fd1c5;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-card-header h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.service-card-hover {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover .service-card-hover,
.service-card.is-active .service-card-hover {
    transform: translateY(0);
}

.service-card-hover p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.95);
}

@media (max-width: 768px) {
    .service-card {
        height: 360px;
    }
    
    .service-card:active .service-card-header {
        transform: translateY(-160px);
    }
    
    .service-card:active .service-card-hover {
        transform: translateY(0);
    }
}

/* Experience / Timeline Section - Staggered Layout */
.timeline-staggered {
    position: relative;
    max-width: 1100px;
    margin: 4rem auto 0;
    padding: 2rem 0;
    display: flex;
    flex-direction: column;
}

.timeline-main-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, 
        transparent, 
        rgba(42, 122, 130, 0.3) 5%, 
        rgba(42, 122, 130, 0.3) 95%, 
        transparent);
    transform: translateX(-50%);
    box-shadow: 0 0 20px rgba(42, 122, 130, 0.15);
}

.timeline-item-staggered {
    position: relative;
    width: 50%;
    margin-bottom: 4rem;
    display: flex;
}

.timeline-item-staggered.left {
    padding-right: 3rem;
    justify-content: flex-end;
    text-align: right;
}

.timeline-item-staggered.right {
    align-self: flex-end;
    margin-left: auto;
    padding-left: 3rem;
    justify-content: flex-start;
    text-align: left;
}

.timeline-dot-staggered {
    position: absolute;
    top: 2rem;
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: 3px solid #fff;
    border-radius: 50%;
    z-index: 5;
    box-shadow: 0 0 0 4px rgba(42, 122, 130, 0.15), 0 0 20px rgba(42, 122, 130, 0.3);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.left .timeline-dot-staggered {
    right: -9px;
}

.right .timeline-dot-staggered {
    left: -9px;
}

.timeline-item-staggered:hover .timeline-dot-staggered {
    transform: scale(1.3);
    box-shadow: 0 0 0 5px rgba(42, 122, 130, 0.15), 0 0 20px rgba(42, 122, 130, 0.25);
}

.timeline-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fbfc 100%);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 20px 50px -15px rgba(42, 122, 130, 0.15), 0 8px 16px -2px rgba(42, 122, 130, 0.08);
    border: 1px solid rgba(42, 122, 130, 0.1);
    width: 100%;
    max-width: 450px;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

/* Accent border top */
.timeline-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.timeline-item-staggered:hover .timeline-card {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -15px rgba(42, 122, 130, 0.12), 0 10px 20px -5px rgba(42, 122, 130, 0.08);
    border-color: rgba(42, 122, 130, 0.15);
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
}

.timeline-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.left .timeline-card-header {
    flex-direction: row-reverse;
}

.timeline-icon-staggered {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(42, 122, 130, 0.15) 0%, rgba(95, 158, 160, 0.1) 100%);
    color: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1.5px solid rgba(42, 122, 130, 0.1);
    box-shadow: 0 4px 12px rgba(42, 122, 130, 0.08);
}

.timeline-item-staggered:hover .timeline-icon-staggered {
    background: linear-gradient(135deg, rgba(42, 122, 130, 0.85) 0%, rgba(95, 158, 160, 0.75) 100%);
    color: #fff;
    transform: rotate(-12deg) scale(1.08);
    box-shadow: 0 6px 16px rgba(42, 122, 130, 0.2);
    border-color: rgba(42, 122, 130, 0.15);
}

.timeline-year-tag {
    font-size: 0.8rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 6px 14px;
    border-radius: 20px;
    letter-spacing: 0.6px;
    box-shadow: 0 4px 12px rgba(42, 122, 130, 0.25);
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.timeline-card-body h3 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    letter-spacing: -0.3px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.timeline-institution {
    display: block;
    font-size: 0.92rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1.2rem;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    opacity: 0.9;
}

.timeline-card-body p {
    font-size: 0.96rem;
    line-height: 1.8;
    color: var(--text-light);
    margin: 0;
    font-weight: 500;
}

@media (max-width: 991px) {
    .timeline-main-line {
        left: 30px;
    }
    
    .timeline-item-staggered {
        width: 100%;
        padding-left: 70px !important;
        padding-right: 0 !important;
        text-align: left !important;
        justify-content: flex-start !important;
    }
    
    .timeline-item-staggered.left .timeline-card-header {
        flex-direction: row;
    }
    
    .timeline-dot-staggered {
        left: 22px !important;
        right: auto !important;
    }
    
    .timeline-card {
        max-width: 100%;
    }
}

/* Certifications Section */
.certifications-card {
    background: #eef7f8;
    /* Light blue/teal tint matching the image */
    border-radius: 12px;
    padding: 2rem;
    /* Further reduced padding */
    max-width: 650px;
    /* Further reduced width */
    margin: 0 auto;
}

.cert-title {
    font-size: 1.25rem;
    /* Smaller title */
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    /* Reduced margin */
    font-weight: 600;
}

.cert-grid {
    column-gap: 2rem;
    /* Tighter gap */
    row-gap: 1.25rem;
    /* Tighter rows */
    align-items: flex-start;
}

.cert-item {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 1rem;
    /* Reduced item margin */
}

.cert-item:last-child {
    margin-bottom: 0;
}

.cert-dot {
    width: 6px;
    /* Smaller dot */
    height: 6px;
    background-color: var(--primary-color);
    border-radius: 50%;
    margin-top: 0.5rem;
    /* Align with first line of text */
    flex-shrink: 0;
}

.cert-content h4 {
    font-size: 0.9rem;
    /* Smaller font */
    color: var(--secondary-color);
    font-weight: 500;
    margin: 0 0 0.1rem 0;
}

.cert-content span {
    display: block;
    color: var(--text-light);
    font-size: 0.8rem;
    /* Smaller font */
    font-weight: 400;
}

.cert-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
    margin: 2rem auto 0;
    max-width: 900px;
}

.cert-gallery-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cert-gallery-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
}

.cert-gallery-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 70%;
    background: #f8f9fa;
}

.cert-gallery-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
}

.cert-gallery-caption {
    padding: 1rem;
    text-align: center;
}

.cert-gallery-caption h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    color: var(--secondary-color);
    font-weight: 600;
}

.cert-gallery-caption p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.9rem;
}

.cert-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.cert-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.cert-lightbox-content {
    position: relative;
    max-width: 92%;
    max-height: 92vh;
}

.cert-lightbox-image {
    max-width: 100%;
    max-height: 92vh;
    display: block;
    border-radius: 8px;
}

.cert-lightbox-close {
    position: absolute;
    top: -44px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

@media (max-width: 1024px) {
    .cert-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .certifications-card {
        padding: 2rem;
    }

    .cert-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .cert-gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* Patient Care Section */
.patient-care-grid {
    margin-bottom: 4rem;
}

.care-card {
    background: #fff;
    border: 2px solid rgba(42, 122, 130, 0.2);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
    height: 100%;
    box-shadow: 0 2px 8px rgba(42, 122, 130, 0.04);
}

.care-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.care-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(42, 122, 130, 0.15);
    border-color: rgba(42, 122, 130, 0.4);
}

.care-card:hover::before {
    transform: scaleX(1);
}

.care-icon-box {
    width: 60px;
    height: 60px;
    background: #f0f9fa;
    color: var(--primary-color);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.75rem;
    transition: all 0.4s ease;
    box-shadow: 0 4px 10px rgba(42, 122, 130, 0.05);
}

.care-card:hover .care-icon-box {
    background: var(--primary-color);
    color: #fff;
    transform: rotate(5deg) scale(1.1);
    box-shadow: 0 8px 20px rgba(42, 122, 130, 0.2);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Toast Notification */
.toast-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: white;
    padding: 1.25rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    transform: translateX(120%);
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    max-width: 350px;
    border-left: 5px solid #48bb78;
}

.toast-notification.active {
    transform: translateX(0);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.toast-icon {
    background: rgba(72, 187, 120, 0.1);
    color: #48bb78;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.toast-message h4 {
    margin: 0;
    font-size: 1rem;
    color: var(--secondary-color);
}

.toast-message p {
    margin: 0.25rem 0 0;
    font-size: 0.85rem;
    color: var(--text-light);
}

.care-card h3 {
    font-size: 1.25rem;
    color: var(--secondary-color);
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.care-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 0;
    opacity: 0.9;
}

.commitment-box {
    background: #f8fcfd;
    border: 1px solid rgba(42, 122, 130, 0.08);
    border-radius: 24px;
    padding: 4rem;
    text-align: left;
    max-width: 900px;
    margin: 4rem auto 0;
    position: relative;
    box-shadow: 0 4px 20px rgba(42, 122, 130, 0.03);
}

.commitment-box::after {
    content: '"';
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 8rem;
    color: rgba(42, 122, 130, 0.05);
    font-family: serif;
    line-height: 1;
}

.commitment-box h3 {
    font-size: 1.75rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-weight: 800;
    position: relative;
    display: inline-block;
}

.commitment-box h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
}

.commitment-box p {
    color: var(--text-main);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 0;
    font-style: italic;
    font-weight: 400;
}

@media (max-width: 768px) {
    .patient-care-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .commitment-box {
        padding: 2rem;
    }
}

/* Clinic Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-auto-rows: 250px;
    gap: 1.5rem;
    margin-top: 3rem;
}

.gallery-grid--preview {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 350px;
}

@media (max-width: 992px) {
    .gallery-grid--preview {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .gallery-grid--preview {
        grid-template-columns: 1fr;
        grid-auto-rows: 300px;
    }
}

.gallery-actions {
    display: flex;
    justify-content: center;
    margin-top: 4rem;
}

.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    background: var(--bg-light);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item--wide {
    grid-column: span 2;
}

@media (max-width: 768px) {
    .gallery-item--wide {
        grid-column: span 1;
    }
    .gallery-grid {
        grid-auto-rows: 200px;
    }
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item__zoom {
    position: absolute;
    inset: 0;
    background: rgba(42, 122, 130, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-item__zoom {
    opacity: 1;
}

.gallery-item__zoom svg {
    width: 32px;
    height: 32px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    border-radius: 50%;
}

/* Gallery Lightbox */
.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.gallery-lightbox.active {
    display: flex;
}

.gallery-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(16, 42, 67, 0.95);
    backdrop-filter: blur(8px);
}

.gallery-lightbox__content {
    position: relative;
    z-index: 2;
    max-width: 90%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gallery-lightbox__image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-lightbox.active .gallery-lightbox__image {
    transform: scale(1);
}

.gallery-lightbox__close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.gallery-lightbox__close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.gallery-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.gallery-lightbox__nav:hover {
    background: var(--primary-color);
}

.gallery-lightbox__prev { left: 2rem; }
.gallery-lightbox__next { right: 2rem; }

.gallery-lightbox__counter {
    color: rgba(255, 255, 255, 0.7);
    margin-top: 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .gallery-lightbox {
        padding: 1rem;
    }
    .gallery-lightbox__nav {
        width: 44px;
        height: 44px;
        background: rgba(16, 42, 67, 0.5);
    }
    .gallery-lightbox__prev { left: 0.5rem; }
    .gallery-lightbox__next { right: 0.5rem; }
}

/* About Section */
/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: stretch;
    /* Stretch columns to match height */
}

.about-text {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.highlight-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem;
    background: #f8fafc;
    border: 1px solid rgba(16, 42, 67, 0.05);
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.highlight-item:hover {
    background: #ffffff;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(16, 42, 67, 0.08);
    border-color: rgba(69, 183, 208, 0.2);
}

.highlight-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, rgba(69, 183, 208, 0.1), rgba(69, 183, 208, 0.2));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    transition: all 0.3s ease;
}

.highlight-item:hover .highlight-icon {
    background: var(--secondary-color);
    color: #ffffff;
    transform: scale(1.05);
}

.highlight-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-light);
    margin: 0 0 0.25rem 0;
    font-weight: 700;
}

.highlight-desc {
    font-size: 1rem;
    color: var(--primary-color);
    margin: 0;
    font-weight: 600;
    line-height: 1.2;
}

.about-image-wrapper {
    background-color: #e6f6f8;
    /* Soft blue background matching reference */
    border-radius: 20px;
    position: relative;
    height: 80%;
    /* Fill the grid column */
    min-height: 250px;
    /* Minimum height for visual balance */
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
}

.about-image {
    width: 100%;
    height: 100%;
    margin-top: 40px;
    /* Push image down as requested */
    object-fit: cover;
    object-position: center;
    /* Anchor bottom to crop top space */
    mix-blend-mode: multiply;
    /* Blends white background into the blue */
    display: block;
}






/* Testimonial Slider Styles */
.testimonial-slider-container {
    position: relative;
    width: 100%;
    margin: 3rem 0;
    overflow: hidden;
}

.testimonial-wrapper {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 2rem;
    padding: 1rem 0.5rem;
}

.testimonial-slide {
    flex: 0 0 calc(33.333% - 1.35rem);
    /* 3 items on desktop */
}

@media (max-width: 992px) {
    .testimonial-slide {
        flex: 0 0 calc(50% - 1rem);
        /* 2 items on tablet */
    }
}

@media (max-width: 640px) {
    .testimonial-slide {
        flex: 0 0 100%;
        /* 1 item on mobile */
    }
}

.slider-nav {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 3rem;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--border-color);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.slider-dot.active {
    background-color: var(--primary-color);
    transform: scale(1.3);
}

.slider-dot:hover:not(.active) {
    background-color: #cbd5e0;
}

.testimonial-card {
    background: #fff;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.quote-icon {
    margin-bottom: 1.5rem;
}

.stars {
    color: #45b7d0;
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
    font-size: 1.2rem;
}

.testimonial-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-main);
    margin-bottom: 2rem;
    flex-grow: 1;
    font-style: italic;
}

.client-info h4 {
    color: var(--secondary-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.client-info p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}



/* Clinic Information Section */
.clinic-info-grid {
    align-items: stretch;
    /* Match height of columns */
}

.clinic-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.clinic-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.clinic-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(69, 183, 208, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    flex-shrink: 0;
}

.clinic-text h3 {
    color: var(--secondary-color);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.clinic-text p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.6;
}

.w-100 {
    width: 100%;
}

.hours-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.hours-row:last-child {
    margin-bottom: 0;
}

.map-container {
    height: 100%;
    min-height: 500px;
    border-radius: 20px;
    overflow: hidden;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    background-color: #e6f6f8;
    /* Soft blue matching theme */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.map-content {
    color: var(--secondary-color);
}

.map-icon {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
}

.map-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.map-content p {
    font-size: 0.9rem;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .map-container {
        min-height: 300px;
        order: -1;
        /* Place map above/below as needed? Default is below in DOM flow */
    }
}

/* Doctor Quote Section */
.doctor-quote-container {
    text-align: center;
    margin-bottom: 4rem;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, rgba(42, 122, 130, 0.08) 0%, rgba(255, 255, 255, 0) 100%);
    border-radius: 12px;
    position: relative;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    border-left: 4px solid var(--primary-color);
    border-right: 4px solid var(--primary-color);
}

.doctor-quote-text {
    font-size: 2.2rem;
    font-style: italic;
    color: var(--secondary-color);
    line-height: 1.5;
    margin-bottom: 2rem;
    font-family: 'Playfair Display', serif;
    position: relative;
}

.doctor-quote-text::before {
    content: '';
    font-size: 6rem;
    color: rgba(42, 122, 130, 0.1);
    position: absolute;
    top: -3rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 0;
}

.doctor-quote-divider {
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 0 auto 1.5rem;
    border-radius: 2px;
}

.doctor-quote-author {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-family: 'Inter', sans-serif;
}


/* Floating Call Button */
.floating-call-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(42, 122, 130, 0.4);
    z-index: 9999;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: pulse-border 2s infinite;
}

.floating-call-btn:hover {
    transform: scale(1.1);
    background-color: var(--primary-dark);
}

.floating-call-btn svg {
    width: 28px;
    height: 28px;
    stroke: white;
    fill: none;
}

@keyframes pulse-border {
    0% {
        box-shadow: 0 0 0 0 rgba(42, 122, 130, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(42, 122, 130, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(42, 122, 130, 0);
    }
}

/* Floating WhatsApp Button */
.floating-whatsapp-btn {
    position: fixed;
    bottom: 100px;
    right: 25px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    text-decoration: none;
    transition: all 0.3s ease;
}

.floating-whatsapp-btn:hover {
    transform: scale(1.1);
    background-color: #128C7E;
}

.floating-whatsapp-btn svg {
    width: 30px;
    height: 30px;
    stroke: white;
    fill: white;
}

/* Contact Form Success Toast */
.form-success-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #48bb78;
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 3000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.form-success-toast.active {
    transform: translateY(0);
    opacity: 1;
}

.form-success-toast svg {
    width: 24px;
    height: 24px;
}

/* Certifications Section */
#certifications {
    background-color: var(--bg-light);
    padding: 5rem 0;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.cert-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.cert-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.cert-image-wrapper {
    position: relative;
    padding-top: 75%;
    /* 4:3 Aspect Ratio */
    background: #f8f9fa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.cert-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
}

.cert-caption {
    padding: 1.5rem;
    text-align: center;
}

.cert-caption h3 {
    color: var(--secondary-color);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.cert-caption p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}

/* Spacing Adjustments */
#about {
    padding-bottom: 0.1rem;
}

#expertise {
    padding-top: 0.1rem;
}

/* Certificate Lightbox */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.lightbox-modal.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    animation: zoomIn 0.3s ease;
}

.lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    display: block;
    border-radius: 4px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 30px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
    transition: transform 0.2s ease;
}

.lightbox-close:hover {
    transform: scale(1.2);
    color: var(--primary-color);
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.cert-card {
    cursor: pointer;
}

.cert-image-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cert-card:hover .cert-image-wrapper::after {
    opacity: 1;
}

.cert-card:hover .cert-image {
    transform: scale(1.05);
    transition: transform 0.5s ease;
}

/* ==================== GLOBAL TOAST SYSTEM ==================== */

/* Toast Container */
.global-toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
    pointer-events: none;
}

/* Individual Toast */
.toast {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 1rem 1.5rem;
    min-width: 320px;
    border-left: 4px solid #2a7a82;
    transform: translateX(150%);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: auto;
    animation: slideIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toast.active {
    transform: translateX(0);
}

/* Toast Types */
.toast-success {
    border-left-color: #48bb78;
}

.toast-success .toast-icon {
    background: rgba(72, 187, 120, 0.1);
    color: #48bb78;
}

.toast-error {
    border-left-color: #f56565;
}

.toast-error .toast-icon {
    background: rgba(245, 101, 101, 0.1);
    color: #f56565;
}

.toast-warning {
    border-left-color: #ed8936;
}

.toast-warning .toast-icon {
    background: rgba(237, 137, 54, 0.1);
    color: #ed8936;
}

.toast-info {
    border-left-color: #4299e1;
}

.toast-info .toast-icon {
    background: rgba(66, 153, 225, 0.1);
    color: #4299e1;
}

/* Toast Content */
.toast-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.toast-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.toast-icon svg {
    width: 20px;
    height: 20px;
}

.toast-message {
    flex: 1;
}

.toast-message h4 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--secondary-color);
    line-height: 1.4;
}

.toast-message p {
    margin: 0.25rem 0 0;
    font-size: 0.8rem;
    color: var(--text-light);
    line-height: 1.4;
}

.toast-close {
    flex-shrink: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    transition: color 0.2s ease;
}

.toast-close:hover {
    color: var(--text-dark);
}

.toast-close svg {
    width: 18px;
    height: 18px;
}

/* Toast Animation */
@keyframes slideIn {
    from {
        transform: translateX(150%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .global-toast-container {
        bottom: 20px;
        right: 20px;
        left: 20px;
        max-width: none;
    }

    .toast {
        min-width: auto;
        width: 100%;
    }
}
}