:root {
    --brand-primary: #0B6FA6; /* (logo, main buttons, important highlights) */
    --surface-light: #E9F4FB; /* large section backgrounds, hero areas, soft surfaces */
    --surface-muted: #F5FAFD; /* cards, form fields, subtle blocks, low-noise areas */
    --brand-accent: #00A3D6; /* secondary buttons, icons, links, decorative touches */

    --text-main: #12384A; /* body text, headings, readable content on light backgrounds */

    --pure-white: #FFFFFF; /* Clean sections, cards, hero foregrounds */
    --deep-night: #0A1A24; /* High-contrast text, dark overlays, footers */

    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --font-lato: 'Lato', sans-serif;
    --font-roboto: 'Roboto', sans-serif;

    /* Shadows */
    --shadow-light: 0 2px 6px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.12);
}

/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base Body Settings */
body {
    font-family: var(--font-lato);
    background-color: var(--pure-white);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Loader */
#loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--surface-light); 
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.4s ease;
    /* Add these to prevent any potential overflow */
    overflow: hidden;
    max-width: 100vw;
}

.loader {
    width: 48px;
    height: 48px;
    border: 3px dotted var(--brand-accent);
    border-style: solid solid dotted dotted;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    box-sizing: border-box;
    animation: rotation 2s linear infinite;
    /* Ensure loader stays within bounds */
    max-width: 100%;
}

.loader::after {
    content: '';  
    box-sizing: border-box;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    border: 3px dotted var(--brand-primary);
    border-style: solid solid dotted;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    animation: rotationBack 1s linear infinite;
    transform-origin: center center;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
    } 
    @keyframes rotationBack {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(-360deg);
    }
} 

/* Hide content until loader finishes */
.content {
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s ease;
}

/* Haeder =========================================================================================================================== */
header {
    padding: 10px 0;
    background-color: var(--brand-primary);
    color: var(--pure-white);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .contact-infos {
    display: flex;
    align-items: center;
}

header .contact-infos div {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

header .contact-infos i {
    font-size: 1rem;
    color: var(--surface-light);
}

header .contact-infos div:hover {
    color: var(--surface-light);
}

header .contact-infos div:hover i {
    color: var(--brand-accent);
    transform: translateY(-1px);
}

header .social-icons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

header .social-icons span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

header .social-icons span i {
    font-size: 1.25rem;
    transition: all 0.3s ease;
    color: var(--surface-light);
}

header .social-icons span:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

header .social-icons span:hover i {
    color: var(--brand-accent);
    transform: scale(1.1);
}

/* Instagram hover gradient */
header .social-icons .instagram:hover {
    background: linear-gradient(45deg,
        #405DE6, #5851DB, #833AB4,
        #C13584, #E1306C, #FD1D1D
    );
}

/* WhatsApp hover */
header .social-icons .whatsapp:hover {
    background: #25D366;
}

header .social-icons .whatsapp:hover i {
    color: white;
}

@media (max-width: 600px) {
    header {
        justify-content: center; 
    }

    header .contact-infos {
        display: none !important;
    }

    header .social-icons {
        margin: 0 auto;
    }
}

/* Navbar ========================================================================================================================== */
.custom-navbar {
    background: var(--pure-white);
    padding: 15px 0;
    box-shadow: var(--shadow-light);
    border-bottom: 1px solid rgba(128, 128, 128, 0.26);
}

/* LOGO */
.navbar-brand .logo {
    height: 45px;
    object-fit: contain;
}

/* LINKS */
.nav-link {
    color: var(--text-main);
    font-weight: 600;
    font-family: var(--font-lato);
    padding: 8px 14px !important;
    transition: 0.3s ease;
}

.nav-link:hover {
    color: var(--brand-primary);
    background: rgba(11, 111, 166, 0.1);
    border-radius: 6px;
}

/* CTA BUTTON */
.cta-btn {
    background: var(--brand-primary);
    color: var(--pure-white) !important;
    padding: 8px 18px;
    border-radius: 8px;
    font-weight: 600;
    transition: 0.3s ease;
}

.cta-btn:hover {
    background: var(--brand-accent);
}

/* HAMBURGER MENU */
.custom-toggler {
    border: none;
    background: transparent;
    width: 50px;
    height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}

.custom-toggler:focus,
.custom-toggler:active,
.custom-toggler:focus-visible {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

.custom-toggler span {
    height: 3px;
    width: 100%;
    background: var(--brand-primary);
    border-radius: 2px;
    transition: 0.3s ease;
}

/* OFFCANVAS */
.mobile-menu {
    width: 280px;
    background: var(--pure-white);
}

.mobile-menu .offcanvas-header {
    background-color: var(--brand-primary);
    color: var(--pure-white);
}

.mobile-menu .offcanvas-title {
    font-family: var(--font-heading);
}

.mobile-menu .nav-link {
    font-size: .9rem;
    color: var(--text-main);
}

.mobile-menu .nav-link:hover {
    color: var(--brand-primary);
}

/* CTA inside offcanvas */
.mobile-menu .cta-btn {
    padding: 12px;
    border-radius: 10px;
    font-size: .9rem;
}

@media (max-width: 991px) {
    .navbar-brand .logo {
        height: 30px;
    }
}

/* Hero ============================================================================================================================ */
.hero {
    background-image: url("../assets/imgs/dentitst-clinic-2.webp");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    height: 80vh;

    /* Helps text stay readable on bright images */
    position: relative;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.45); /* soft overlay */
}

.hero-text {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 750px;
}

/* Call-To-Action button (primary palette) */
.cta-btn {
    background: #1A73E8; /* main blue you use */
    color: #fff;
    font-weight: 600;
    border-radius: 8px;
    transition: 0.25s ease-in-out;
}

.cta-btn:hover {
    background: #165ec2;
}

/* Call Us button — softer, friendly palette */
.call-us {
    background: #FFD54F;  /* soft yellow */
    color: #000;
    font-weight: 600;
    border-radius: 8px;
    transition: 0.25s ease-in-out;
}

.call-us:hover {
    background: #ffca2f;
}

.hero-desc {
    max-width: 650px;
}

.hero-slider {
    position: relative;
    height: 80vh;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-image: var(--bg);
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45); 
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    color: white;
}

.hero-content h1 {
    font-size: 2.8rem;
    font-weight: 700;
}

.hero-content p {
    margin-top: 1rem;
    font-size: 1.1rem;
}

/* Services ======================================================================================================================== */
#services {
    color: var(--text-main);
}

.services .section-title span {
    display: block;
    /* font-weight: 600; */
    font-size: 30px;
    color: var(--brand-primary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title h1 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--deep-night);
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-main);
    max-width: 600px;
    margin: 0 auto;
}

.service-card {
    background-color: var(--pure-white);
    border-radius: 12px;
    padding: 10px;
    text-align: start;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease-in-out;
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.service-img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 15px;
}

.service-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--brand-primary);
    margin-bottom: 10px;
}

.service-description {
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1.5;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--deep-night);
    text-decoration: none;
    padding: 0.625rem 0;
    transition: all 0.3s ease;
    margin-top: auto;
    position: relative;
}

.service-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--text-main);
    transition: width 0.3s ease;
}

.service-link:hover {
    color: var(--text-main);
    gap: 0.75rem;
}

.service-link:hover::after {
    width: 100%;
}

.service-link svg {
    transition: transform 0.3s ease;
}

.service-link:hover svg {
    transform: translateX(3px);
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .service-card {
        padding: 15px;
    }
    .service-img img {
        height: 200px;
    }
}

@media (max-width: 575.98px) {
    .section-title h1 {
        font-size: 2rem;
    }
    .service-title {
        font-size: 1.1rem;
    }
    .service-description {
        font-size: 0.9rem;
    }
}

/* About =========================================================================================================================== */
.about-section {
    padding: 50px 0;
    position: relative;
    overflow: hidden;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: var(--surface-light);
    z-index: 0;
    clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

/* About Grid */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* Images Column */
.about-images {
    position: relative;
}

.image-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1rem;
    min-height: 500px;
    max-height: 600px;
}

/* Main Image */
.image-main {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.image-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

/* Small Images */
.image-stack {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 1rem;
}

.image-small {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

.image-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

/* Hover Effect */
.image-main:hover img,
.image-small:hover img {
    transform: scale(1.08);
}

/* About Content */
.about-content {
    padding: 2rem 0;
    animation: slideInRight 0.8s ease-out;
}

.content-wrapper {
    max-width: 600px;
    margin-left: auto;
}

/* Section Label */
.section-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.label-text {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--brand-accent);
}

.label-line {
    flex-grow: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--brand-accent), transparent);
}

/* Title */
.about-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--deep-night);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.about-title .highlight {
    color: var(--brand-primary);
    position: relative;
}

/* Description */
.about-description p {
    font-family: var(--font-body);
    font-size: 1.125rem;
    color: var(--text-main);
    line-height: 1.7;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.about-description strong {
    color: var(--brand-primary);
}

/* Key Features */
.key-features {
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: var(--surface-light);
    transform: translateX(5px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--surface-muted);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--brand-primary);
    transition: all 0.3s ease;
}

.feature-item:hover .feature-icon {
    background: var(--brand-primary);
    color: var(--pure-white);
    transform: translateY(-3px);
}

.feature-text h3 {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--deep-night);
    margin-bottom: 0.25rem;
}

.feature-text p {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-main);
    opacity: 0.8;
    margin: 0;
}

/* Call to Action */
.about-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background: var(--brand-primary);
    color: var(--pure-white);
    padding: .8rem 1rem;
}

.btn-primary:hover {
    background: var(--brand-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: transparent;
    color: var(--brand-primary);
    border: 2px solid var(--brand-primary);
    padding: .8rem 1rem;
}

.btn-secondary:hover {
    background: var(--surface-light);
    border-color: var(--brand-accent);
    color: var(--brand-accent);
}

@media (max-width: 991px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-title {
        font-size: 2.25rem;
    }
    
    .about-description p {
        font-size: 1.05rem;
    }
}

@media (max-width: 575px) {
    .about-title {
        font-size: 1.8rem;
    }
    
    .about-description p {
        font-size: 1rem;
    }
    
    .feature-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .feature-text h3 {
        font-size: 1rem;
    }
    
    .feature-text p {
        font-size: 0.9rem;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
    }
}

/* Testimonials ==================================================================================================================== */
.testimonials-section {
    padding: 5rem 1rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.testimonials-section .section-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--brand-primary);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: .9rem;
    max-width: 600px;
    margin: 0 auto;
}

.testimonial-carousel {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonial-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.testimonial-slide {
    flex: 0 0 33.333%;
    padding: 0 15px;
    box-sizing: border-box;
}

.testimonial-card {
    background-color: var(--surface-muted);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.testimonial-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}


.testimonial-info {
    flex: 1;
}

.testimonial-name {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--brand-primary);
    margin-bottom: 0.25rem;
}

.testimonial-rating {
    color: #F59E0B;
    font-size: 1rem;
}

.testimonial-text {
    color: var(--text-main);
    font-style: italic;
    line-height: 1.6;
    flex: 1;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2.5rem;
}

.carousel-btn {
    background-color: var(--deep-night);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 0.5rem;
}

.carousel-btn:hover {
    background-color: var(--brand-primary);
    transform: scale(1.1);
}

.carousel-dots {
    display: flex;
    margin: 0 1rem;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--brand-accent);
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background-color: var(--deep-night);
    transform: scale(1.2);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .testimonial-slide {
        flex: 0 0 50%;
    }
}

@media (max-width: 576px) {
    .testimonial-slide {
        flex: 0 0 100%;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
    }
    
    .testimonials-section {
        padding: 3rem 1rem;
    }
    
    .testimonial-header {
        flex-direction: column;
        text-align: center;
    }
    
    .testimonial-avatar {
        margin-right: 0;
        margin-bottom: 1rem;
    }
}

/* Animation for initial load */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.testimonial-card {
    animation: fadeIn 0.6s ease forwards;
}

/* Contact ======================================================================================================================= */
.contact-section {
    padding: 6rem 0;
    background: var(--surface-light);
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--brand-primary), transparent);
    opacity: 0.1;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-form-column {
    position: relative;
}

.form-wrapper {
    background: var(--pure-white);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.form-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.form-header {
    margin-bottom: 2.5rem;
    text-align: center;
}

.form-label {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--brand-primary);
    background: rgba(11, 111, 166, 0.1);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    margin-bottom: 1rem;
}

.form-label svg {
    stroke: var(--brand-primary);
}

.form-title {
    font-family: var(--font-heading);
    font-size: 10px;
    font-weight: 700;
    color: var(--deep-night);
    margin-bottom: 0.5rem;
}

.form-description {
    font-family: var(--font-body);
    font-size: .9rem;
    color: var(--text-main);
    opacity: 0.8;
    line-height: 1.5;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-label {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    padding: 0;
    border-radius: 0;
    letter-spacing: 0;
    text-transform: none;
}

.form-label i {
    color: var(--brand-accent);
    font-size: 0.9rem;
    width: 16px;
}

.form-control {
    width: 100%;
    padding: 1rem 1.25rem;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-main);
    background: var(--surface-muted);
    border: 2px solid var(--text-main);
    border-radius: 12px;
    transition: all 0.3s ease;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

.form-control::placeholder {
    color: rgba(18, 56, 74, 0.5);
}

.form-control:focus {
    background: var(--pure-white);
    border-color: var(--brand-accent);
    box-shadow: 0 0 0 3px rgba(0, 163, 214, 0.1);
}

.form-control:invalid:not(:focus):not(:placeholder-shown) {
    border-color: var(--text-main);
}

.form-control select {
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2312384A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.25rem center;
    background-size: 12px;
    padding-right: 3rem;
}


textarea.form-control {
    resize: vertical;
    min-height: 120px;
    line-height: 1.5;
}

/* Submit Button */
.submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: .7rem 1rem;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
    color: var(--pure-white);
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(11, 111, 166, 0.3);
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:active {
    transform: translateY(0);
}

.btn-icon svg {
    transition: transform 0.3s ease;
}

.submit-btn:hover .btn-icon svg {
    transform: translateX(3px);
}

.contact-info-column {
    position: relative;
}

.info-wrapper {
    padding: 2rem 0;
}

.contact-section .section-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-section .label-text {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--pure-white);
    background: var(--brand-primary);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    white-space: nowrap;
}

.info-heading {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--deep-night);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.info-heading .highlight {
    color: var(--brand-primary);
    position: relative;
}

.info-heading .highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 6px;
    background: rgba(0, 163, 214, 0.2);
    z-index: -1;
}

/* Welcome Paragraph */
.welcome-paragraph {
    margin-bottom: 2.5rem;
}

.welcome-paragraph p {
    font-family: var(--font-lato);
    font-size: 1rem;
    color: var(--text-main);
    line-height: 1.7;
    opacity: 0.9;
}

.welcome-paragraph strong {
    color: var(--brand-primary);
    font-weight: 600;
}

.contact-details {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: .8rem;
    background: var(--pure-white);
    border-radius: 16px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.contact-item:hover {
    transform: translateX(5px);
    border-color: var(--brand-accent);
    box-shadow: var(--shadow-light);
}

.contact-icon {
    flex-shrink: 0;
}

.icon-wrapper {
    width: 40px;
    height: 40px;
    background: var(--surface-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.contact-item:hover .icon-wrapper {
    background: var(--brand-primary);
    transform: translateY(-3px);
}

.icon-wrapper i {
    font-size: 1.25rem;
    color: var(--brand-primary);
    transition: color 0.3s ease;
}

.contact-item:hover .icon-wrapper i {
    color: var(--pure-white);
}

.contact-content {
    flex-grow: 1;
}

.contact-label {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
    opacity: 0.7;
}

.contact-value {
    display: block;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--brand-primary);
    text-decoration: none;
    margin-bottom: 0.25rem;
    transition: color 0.3s ease;
    line-height: 1.3;
}

.contact-value:hover {
    color: var(--brand-accent);
}

address.contact-value {
    font-style: normal;
    line-height: 1.5;
}

.contact-subtext {
    font-family: var(--font-lato);
    font-size: 0.875rem;
    color: var(--text-main);
    opacity: 0.6;
    margin-top: 0.25rem;
}

.location-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--brand-accent);
    text-decoration: none;
    margin-top: 0.5rem;
    transition: all 0.3s ease;
}

.location-link:hover {
    gap: 0.75rem;
}

.location-link i {
    font-size: 0.9rem;
}

/* Large Tablets & Small Desktops (992px - 1199px) */
@media (max-width: 1199.98px) {
    .contact-grid {
        gap: 3rem;
    }
    
    .form-wrapper {
        padding: 2.5rem;
    }
    
    .info-heading {
        font-size: 2rem;
    }
    
    .form-title {
        font-size: 1rem;
    }
}

/* Tablets (768px - 991px) */
@media (max-width: 991.98px) {
    .contact-section {
        padding: 4rem 0;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .form-wrapper {
        padding: 2.5rem;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .info-wrapper {
        max-width: 600px;
        margin: 0 auto;
    }
    
    .info-heading {
        font-size: 1.8rem;
    }
}

/* Mobile Landscape (576px - 767px) */
@media (max-width: 767.98px) {
    .contact-section {
        padding: 3rem 0;
    }
    
    .contact-grid {
        gap: 3rem;
    }
    
    .form-wrapper {
        padding: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .info-heading {
        font-size: 1.75rem;
    }
    
    .form-title {
        font-size: 1.5rem;
    }
    
    .form-description,
    .welcome-paragraph p {
        font-size: 1.05rem;
    }
    
    .contact-item {
        padding: 1.25rem;
    }
    
    .icon-wrapper {
        width: 38px;
        height: 38px;
    }
    
    .contact-value {
        font-size: 1.125rem;
    }
}

/* Mobile Portrait (below 576px) */
@media (max-width: 575.98px) {
    .contact-section {
        padding: 2.5rem 0;
    }
    
    .contact-grid {
        gap: 2.5rem;
    }
    
    .form-wrapper {
        padding: 1.75rem;
        border-radius: 20px;
    }
    
    .info-heading {
        font-size: 1.4rem;
    }
    
    .form-title {
        font-size: 1.2rem;
    }
    
    .form-description,
    .welcome-paragraph p {
        font-size: 1rem;
    }
    
    .section-label {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .label-line {
        width: 100%;
    }
    
    .contact-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1.25rem;
    }
    
    .icon-wrapper {
        width: 44px;
        height: 44px;
    }
    
    .icon-wrapper i {
        font-size: 1.1rem;
    }
    
    .submit-btn {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
}

/* Very Small Mobile (below 400px) */
@media (max-width: 399.98px) {
    .form-wrapper {
        padding: 1.5rem;
    }
    
    .info-heading {
        font-size: 1.1rem;
    }
    
    .form-title {
        font-size: 1rem;
    }
    
    .contact-value {
        font-size: 1rem;
    }
    
    .label-text {
        font-size: 0.8rem;
        padding: 0.4rem 1rem;
    }
}

/* Large Screens (1200px and above) */
@media (min-width: 1200px) {
    .contact-section {
        padding: 8rem 0;
    }
    
    .contact-grid {
        gap: 5rem;
    }
    
    .info-heading {
        font-size: 3rem;
    }
    
    .form-title {
        font-size: 1.7rem;
    }
}

/* Footer ======================================================================================================================== */
.site-footer {
    background: var(--deep-night);
    color: var(--pure-white);
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--brand-accent), transparent);
    opacity: 0.3;
}

.footer-main {
    padding: 4rem 0 3rem;
    position: relative;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    align-items: start;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.brand-col {
    max-width: 400px;
}

.footer-brand {
    display: inline-block;
    margin-bottom: 1.5rem;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.footer-brand:hover {
    transform: translateY(-2px);
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.brand-logo i {
    color: var(--brand-primary);
    padding: 10px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.footer-brand:hover .brand-logo i {
    transform: rotate(10deg);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--pure-white);
    line-height: 1.2;
}

.brand-tagline {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--brand-accent);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.brand-description p {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.badge:hover {
    background: rgba(0, 163, 214, 0.2);
    transform: translateY(-2px);
}

.badge i {
    color: var(--brand-accent);
}

.links-col .footer-title {
    margin-bottom: 1.5rem;
}

.footer-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--pure-white);
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--brand-accent);
}

.footer-nav-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.footer-nav-list li {
    margin-bottom: 0.75rem;
}

.footer-link {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    border-radius: 4px;
    position: relative;
}

.footer-link i {
    color: var(--brand-accent);
    font-size: 0.8rem;
    width: 16px;
    transition: transform 0.3s ease;
}

.footer-link:hover {
    color: var(--pure-white);
    padding-left: 0.5rem;
}

.footer-link:hover i {
    transform: translateX(3px);
}

/* Emergency Contact */
.emergency-contact {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(219, 68, 55, 0.1);
    border-left: 3px solid #db4437;
    border-radius: 1px;
    margin-top: 1.5rem;
}

.emergency-icon {
    width: 48px;
    height: 48px;
    background: #db4437;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.emergency-icon i {
    color: var(--pure-white);
}

.emergency-content {
    display: flex;
    flex-direction: column;
}

.emergency-label {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.25rem;
}

.emergency-number {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--pure-white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.emergency-number:hover {
    color: var(--brand-accent);
}

.social-col {
    max-width: 400px;
}

.social-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid transparent;
}

.social-link:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--pure-white);
}

.social-link i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.social-link.facebook:hover {
    background: rgba(24, 119, 242, 0.2);
    border-color: #1877f2;
}

.social-link.instagram:hover {
    background: rgba(225, 48, 108, 0.2);
    border-color: #e1306c;
}

.social-link.whatsapp:hover {
    background: rgba(37, 211, 102, 0.2);
    border-color: #25d366;
}

.social-link.maps:hover {
    background: rgba(66, 133, 244, 0.2);
    border-color: #4285f4;
}

.location-section {
    margin-top: 1rem;
}

.location-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--pure-white);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.location-title i {
    color: var(--brand-accent);
}

.location-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.location-info {
    padding: 1.5rem;
}

.location-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.location-item:last-child {
    margin-bottom: 0;
}

.location-item i {
    color: var(--brand-accent);
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.location-item div strong {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--pure-white);
    display: block;
    margin-bottom: 0.25rem;
}

.location-item div p {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
    margin: 0;
}

.map-link {
    display: block;
    text-decoration: none;
}

.map-placeholder {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.map-placeholder:hover {
    background: rgba(0, 163, 214, 0.1);
}

.map-placeholder i {
    color: var(--brand-accent);
    opacity: 0.8;
}

.map-placeholder span {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--pure-white);
    font-weight: 500;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.copyright p {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.copyright i {
    color: var(--brand-accent);
}


.back-to-top {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.back-to-top:hover {
    background: var(--brand-primary);
    color: var(--pure-white);
    transform: translateY(-2px);
}

.back-to-top i {
    font-size: 0.9rem;
}

/* Tablets (768px - 991px) */
@media (max-width: 991.98px) {
    .footer-main {
        padding: 4rem 0 2.5rem;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
    
    .social-col {
        grid-column: span 2;
        max-width: 100%;
    }
    
    .social-links {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .location-card {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    
    .map-placeholder {
        border-top: none;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

/* Mobile Landscape (576px - 767px) */
@media (max-width: 767.98px) {
    .footer-main {
        padding: 3rem 0 2rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .social-col {
        grid-column: span 1;
    }
    
    .brand-col,
    .links-col,
    .social-col {
        max-width: 100%;
    }
    
    .social-links {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .location-card {
        grid-template-columns: 1fr;
    }
    
    .map-placeholder {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .emergency-contact {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .emergency-icon {
        width: 40px;
        height: 40px;
    }
}

/* Mobile Portrait (below 576px) */
@media (max-width: 575.98px) {
    .footer-main {
        padding: 2.5rem 0 1.5rem;
    }
    
    .footer-grid {
        gap: 2rem;
    }
    
    .brand-logo {
        gap: 0.75rem;
    }
    
    .brand-logo i {
        padding: 10px;
        font-size: 1.5rem;
    }
    
    .brand-name {
        font-size: 1.5rem;
    }
    
    .footer-title {
        font-size: 1.125rem;
    }
    
    .social-links {
        grid-template-columns: 1fr;
    }
    
    .trust-badges {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .legal-links {
        justify-content: center;
        gap: 0.5rem;
    }
    
    .separator {
        display: none;
    }
    
    .legal-link {
        font-size: 0.8rem;
    }
}

/* Large Screens (1200px and above) */
@media (min-width: 1200px) {
    .footer-main {
        padding: 6rem 0 4rem;
    }
    
    .footer-grid {
        gap: 4rem;
    }
}

/* Animation for back to top */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.back-to-top:hover i {
    animation: bounce 0.5s ease;
}

/* Accessibility */
.footer-link:focus,
.social-link:focus,
.emergency-number:focus,
.legal-link:focus,
.back-to-top:focus,
.map-link:focus {
    outline: 2px solid var(--brand-accent);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .site-footer {
        background: white !important;
        color: black !important;
        border-top: 2px solid var(--brand-primary);
    }
    
    .footer-link,
    .social-link,
    .map-link {
        color: black !important;
        text-decoration: underline;
    }
    
    .back-to-top,
    .social-links {
        display: none;
    }
}

/* Team =========================================================================================================================== */
.team {
    padding: 5rem 0;
    background-color: var(--surface-muted);
    position: relative;
}

.team::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--brand-primary), transparent);
    opacity: 0.1;
}

.team-title span {
    display: inline-block;
    color: var(--brand-accent);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    background: rgba(0, 163, 214, 0.1);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    margin-bottom: 1rem;
}

.team-title h1 {
    color: var(--text-main);
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    line-height: 1.2;
}

.team-title p {
    font-size: 1.1rem;
    color: var(--text-main);
    opacity: 0.85;
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.6;
}

.team-content {
    margin-top: 3rem;
}

.member-card {
    position: relative;
    height: 400px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.member-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.dr-img {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.dr-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.member-card:hover .dr-img img {
    transform: scale(1.04);
}

.member-overlay-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.8rem;
    background: linear-gradient(to top, rgba(10, 26, 36, 0.88), rgba(10, 26, 36, 0.55) 40%, transparent 70%);
    color: var(--pure-white);
    z-index: 2;
    transition: background 0.3s ease;
}

.member-card:hover .member-overlay-text {
    background: linear-gradient(to top, rgba(10, 26, 36, 0.92), rgba(10, 26, 36, 0.65) 40%, transparent 70%);
}

/* Badge */
.doctor-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.18);
    padding: 0.35rem 0.9rem;
    border-radius: 50px;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    backdrop-filter: blur(5px);
}

.doctor-badge i {
    color: var(--brand-accent);
    font-size: 0.9rem;
}

.doctor-badge span {
    color: var(--pure-white);
}

/* Name */
.member-overlay-text h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

/* Specialty */
.dr-specialty {
    font-size: 0.93rem;
    color: var(--brand-accent);
    font-weight: 500;
    margin-bottom: 0.9rem;
}

/* Description — Smooth Animation */
.dr-description {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.46;
    margin-bottom: 1rem;
    opacity: 0;
    max-height: 0;
    transform: translateY(6px);
    transition: all 0.25s ease;
}

.member-card:hover .dr-description {
    opacity: 1;
    transform: translateY(0);
    max-height: 120px;
}

/* Social Icons */
.doctor-social {
    display: flex;
    gap: 0.7rem;
    opacity: 0;
    transform: translateY(6px);
    transition: all 0.25s ease 0.05s;
}

.member-card:hover .doctor-social {
    opacity: 1;
    transform: translateY(0);
}

.social-icon {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    color: var(--pure-white);
    transition: background 0.25s ease, transform 0.25s ease;
}

.social-icon:hover {
    background: var(--brand-accent);
    transform: translateY(-2px);
}

/* ===============================
   RESPONSIVE
   =============================== */
@media (max-width: 991.98px) {
    .member-card { height: 360px; }
    .team-title h1 { font-size: 2.2rem; }
}

@media (max-width: 767.98px) {
    .member-card {
        height: 330px;
        max-width: 360px;
        margin: auto;
    }
    .team-title h1 { font-size: 2rem; }
}

@media (max-width: 575.98px) {
    .member-card { height: 300px; }
    .member-overlay-text { padding: 1rem; }
    .member-overlay-text h3 { font-size: 1.15rem; }
    .dr-specialty { font-size: 0.83rem; }
    .dr-description { font-size: 0.8rem; }
}

/* Large Screens */
@media (min-width: 1200px) {
    .team-title h1 { font-size: 2.9rem; }
    .member-card { height: 450px; }
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
    .team { background-color: var(--deep-night); }
    .team-title h1,
    .team-title p { color: var(--pure-white); }
}

/* TEAM CTA */
.team-cta {
    padding: 3rem;
    text-align: center;
    animation: fadeUp 0.9s ease-out both;
    /* subtle transparency effect */
    opacity: 0;
}

/* Fade + smooth upward motion */
@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(25px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.team-cta p {
    font-size: 1.9rem; /* 30px → more logical scaling */
    line-height: 1.3;
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--text-main);
    animation: textFloat 1.2s ease-out 0.2s both;
}

/* A sweet breathing animation for the paragraph */
@keyframes textFloat {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* CTA Button */
.btn-team {
    padding: 14px 28px;
    background-color: var(--deep-night);
    color: var(--pure-white);
    border-radius: 27px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;

    display: inline-flex;
    align-items: center;
    gap: 0.5rem;

    transition: all 0.35s ease; /* smoother hover */
    transform: translateY(0);
    animation: btnPop 1.2s ease-out 0.4s both;
}

/* Button pop-in animation */
@keyframes btnPop {
    0% {
        opacity: 0;
        transform: scale(0.95) translateY(15px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.btn-team:hover {
    background-color: var(--brand-accent);
    color: var(--pure-white);
    transform: translateY(-4px) scale(1.03);
    box-shadow: var(--shadow-md);
}

.btn-team i {
    color: var(--brand-accent);
    transition: color 0.3s ease;
}

.btn-team:hover i {
    color: var(--pure-white);
}

/* Mobile Fixes */
@media (max-width: 575.98px) {
    .team-cta p {
        font-size: 1.5rem;
    }
    
    .btn-team {
        padding: 12px 22px;
        font-size: 0.95rem;
    }
}

/* Location Map ================================================================================================================== */
.location-map-section {
    padding: 5rem 0;
    background-color: var(--surface-light);
    position: relative;
}

.location-map-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--brand-primary), transparent);
    opacity: 0.1;
}

/* Map Header */
.map-header {
    max-width: 800px;
    margin: 0 auto 3rem;
}

.map-header span {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--brand-accent);
    background: rgba(0, 163, 214, 0.1);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    margin-bottom: 1rem;
}

.map-header h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--surface-light);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.map-header p {
    font-family: var(--font-body);
    font-size: .8rem;
    color: var(--pure-white);
    opacity: 0.8;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Map Container */
.map-container {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: 3rem;
    position: relative;
}

/* Google Maps Wrapper */
.google-map-wrapper {
    position: relative;
    height: 500px;
}

.google-map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Landmarks Section */
.landmarks-section {
    background: var(--pure-white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-light);
}

.landmarks-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--deep-night);
    margin-bottom: 1.5rem;
}

.landmarks-title i {
    color: var(--brand-accent);
}

.landmarks-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.landmark-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--surface-muted);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.landmark-item:hover {
    background: var(--surface-light);
    transform: translateY(-2px);
}

.landmark-icon {
    width: 44px;
    height: 44px;
    background: var(--brand-primary);
    color: var(--pure-white);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.landmark-icon i {
    font-size: 1.1rem;
}

.landmark-info h5 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--deep-night);
    margin-bottom: 0.25rem;
}

.landmark-info p {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--text-main);
    opacity: 0.8;
    margin: 0;
}


/* Large Tablets (992px - 1199px) */
@media (max-width: 1199.98px) {
    .transport-options {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .landmarks-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablets (768px - 991px) */
@media (max-width: 991.98px) {
    .location-map-section {
        padding: 4rem 0;
    }
    
    .section-title {
        font-size: 2.25rem;
    }
    
    .google-map-wrapper {
        height: 450px;
    }
    
    .location-info-card {
        width: 280px;
        padding: 1.25rem;
    }
    
    .info-actions {
        flex-direction: column;
    }
    
    .transport-options {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Mobile Landscape (576px - 767px) */
@media (max-width: 767.98px) {
    .location-map-section {
        padding: 3rem 0;
    }
    
    .map-header {
        margin-bottom: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-description {
        font-size: 1.05rem;
    }
    
    .google-map-wrapper {
        height: 400px;
    }
    
    .map-overlay {
        position: static;
        top: auto;
        left: auto;
        padding: 1.5rem;
    }
    
    .location-info-card {
        width: 100%;
        margin-bottom: 1.5rem;
        animation: none;
    }
    
    .directions-panel {
        padding: 1.5rem;
    }
    
    .landmarks-section {
        padding: 1.5rem;
    }
    
    .landmarks-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile Portrait (below 576px) */
@media (max-width: 575.98px) {
    .location-map-section {
        padding: 2.5rem 0;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-description {
        font-size: 1rem;
    }
    
    .section-label {
        font-size: 0.8rem;
        padding: 0.4rem 1.25rem;
    }
    
    .google-map-wrapper {
        height: 350px;
    }
    
    .info-header h3 {
        font-size: 1.125rem;
    }
    
    .panel-header h4 {
        font-size: 1.125rem;
    }
    
    .landmarks-title {
        font-size: 1.125rem;
    }
}

/* Large Screens (1200px and above) */
@media (min-width: 1200px) {
    .location-map-section {
        padding: 6rem 0;
    }
    
    .section-title {
        font-size: 3rem;
    }
    
    .google-map-wrapper {
        height: 550px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .location-map-section {
        background-color: var(--deep-night);
    }
    
    .section-title {
        color: var(--pure-white);
    }
    
    .section-description {
        color: rgba(255, 255, 255, 0.8);
    }
    
    .location-info-card {
        background: rgba(255, 255, 255, 0.05);
    }
    
    .info-header h3 {
        color: var(--pure-white);
    }
    
    .info-header {
        border-bottom-color: rgba(255, 255, 255, 0.1);
    }
    
    .info-item strong {
        color: var(--pure-white);
    }
    
    .info-item p,
    .info-item a {
        color: rgba(255, 255, 255, 0.8);
    }
    
    .btn-call {
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(255, 255, 255, 0.1);
        color: var(--brand-accent);
    }
    
    .directions-panel {
        background: rgba(255, 255, 255, 0.05);
        border-top-color: rgba(255, 255, 255, 0.1);
    }
    
    .panel-header h4 {
        color: var(--pure-white);
    }
    
    .transport-info h5 {
        color: var(--pure-white);
    }
    
    .transport-info p {
        color: rgba(255, 255, 255, 0.7);
    }
    
    .transport-icon {
        background: rgba(11, 111, 166, 0.2);
    }
    
    .transport-icon i {
        color: var(--brand-accent);
    }
    
    .landmarks-section {
        background: rgba(255, 255, 255, 0.05);
    }
    
    .landmarks-title {
        color: var(--pure-white);
    }
    
    .landmark-item {
        background: rgba(255, 255, 255, 0.05);
    }
    
    .landmark-item:hover {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .landmark-info h5 {
        color: var(--pure-white);
    }
    
    .landmark-info p {
        color: rgba(255, 255, 255, 0.7);
    }
}

/* Animation */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Accessibility */
.btn-direction:focus,
.btn-call:focus {
    outline: 2px solid var(--brand-accent);
    outline-offset: 2px;
}

/* Reduce motion support */
@media (prefers-reduced-motion: reduce) {
    .location-info-card,
    .landmark-item,
    .btn-direction,
    .btn-call {
        animation: none;
        transition: none;
    }
}

/* Google Maps iframe improvements */
.google-map-wrapper iframe {
    filter: grayscale(10%) contrast(1.1);
}

.google-map-wrapper:hover iframe {
    filter: grayscale(0%) contrast(1);
}