/*HOME PAGE
/* ============================================================ */
/* RESET & BASE STYLES                                          */
/* ============================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: #1a1a2e;
    background-color: #ffffff;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================================ */
/* TOP BAR (NOT STICKY - scrolls away)                          */
/* ============================================================ */

.top-bar {
    background-color: #ffffff;
    padding: 12px 0;
    border-bottom: 2px solid #f0f0f0;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.logo-area {
    display: flex;
    align-items: center;
}

.logo-image {
    height: 100px;
    width: auto;
}

.contact-info {
    display: flex;
    gap: 40px;
    align-items: center;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-icon-img {
    width: 28px;
    height: 28px;
    display: block;
    object-fit: contain;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-item .contact-icon-img {
    transition: transform 0.3s ease;
}

.contact-item:hover .contact-icon-img {
    transform: scale(1.1);
}

.contact-details {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: #999090;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-value {
    font-size: 0.9rem;
    color: #1a1a2e;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-value:hover {
    color: #63377a;
}

/* ============================================================ */
/* NAVIGATION BAR (STICKY - stays at top) - GREEN VERSION      */
/* ============================================================ */

.main-nav {
    background-color: #2e7d68;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(46, 125, 104, 0.3);
}

.main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
    align-items: center;
    width: 100%;
    justify-content: space-evenly;
}

.nav-links li a {
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease, background-color 0.3s ease;
    padding: 8px 15px;
    position: relative;
    white-space: nowrap;
    border-radius: 5px;
}

.nav-links li a:hover {
    color: #2e7d68;
    background-color: #e8f5e9;
}

.nav-links li a.active {
    color: #2e7d68;
    background-color: #e8f5e9;
}

.nav-links li a.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background-color: #2e7d68;
    border-radius: 3px;
}

.btn-appointment {
    background-color: #63377a !important;
    padding: 10px 25px !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
    transition: all 0.3s ease !important;
    color: #ffffff !important;
    white-space: nowrap !important;
}

.btn-appointment:hover {
    background-color: #4a2a5a !important;
    transform: scale(1.05);
    color: #ffffff !important;
}

.btn-appointment::after {
    display: none !important;
}

/* Hamburger Menu - Hidden on desktop, visible on mobile */
.hamburger {
    display: none; /* Hidden by default on desktop */
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    background-color: #ffffff;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* When screen is smaller than 768px (mobile) */
@media (max-width: 768px) {
    .hamburger {
        display: flex; /* Shows hamburger on mobile */
    }
    
    .nav-links {
        display: none; /* Hides the navigation links on mobile */
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: #2e7d68;
        padding: 20px;
        gap: 15px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    }
    
    .nav-links.active {
        display: flex; /* Shows when hamburger is clicked */
    }
}

/* ============================================================ */
/* APPOINTMENT MODAL                                            */
/* ============================================================ */

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 20px;
    max-width: 550px;
    width: 90%;
    position: relative;
    animation: modalFadeIn 0.4s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #999090;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #63377a;
}

.modal-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: #2e7d68;
    text-align: center;
    margin-bottom: 5px;
}

.modal-subtitle {
    text-align: center;
    color: #999090;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.modal-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    border-radius: 15px;
    border: 2px solid #f0f0f0;
    transition: all 0.3s ease;
    text-align: center;
}

.modal-option:hover {
    border-color: #63377a;
    transform: scale(1.02);
}

.modal-icon {
    font-size: 2.5rem;
    margin-bottom: 5px;
}

.modal-option h3 {
    font-size: 1.1rem;
    color: #1a1a2e;
}

.modal-option p {
    color: #999090;
    font-size: 0.9rem;
}

.modal-action {
    margin-top: 8px;
    font-weight: 600;
    color: #63377a;
    font-size: 0.85rem;
}

.modal-divider {
    text-align: center;
    color: #999090;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 5px 0;
}

.call-option:hover {
    border-color: #2e7d68;
}

.call-option:hover .modal-action {
    color: #2e7d68;
}

.email-option:hover {
    border-color: #63377a;
}

.email-option:hover .modal-action {
    color: #63377a;
}

/* ============================================================ */
/* HOME PAGE STYLES                                             */
/* ============================================================ */

/* --- Full Screen Slider --- */
.home-slider-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.slider-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s ease-in-out;
}

.full-slide {
    min-width: 100%;
    height: 100vh;
    position: relative;
}

.slider-image-wrapper {
    width: 100%;
    height: 100%;
}

.slider-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2e7d68, #63377a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #ffffff;
    font-weight: 600;
    letter-spacing: 2px;
}

.slider-message-left {
    position: absolute;
    top: 30%;
    left: 8%;
    z-index: 10;
    animation: slideTextIn 0.6s ease forwards;
    opacity: 0;
}

@keyframes slideTextIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slider-message-text {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 20px rgba(255, 255, 255, 0.9);
    max-width: 600px;
    line-height: 1.2;
}

.home-slider-container .slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(99, 55, 122, 0.8);
    color: #ffffff;
    border: none;
    padding: 18px 24px;
    font-size: 1.8rem;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10;
}

.home-slider-container .slider-btn:hover {
    background-color: #63377a;
    transform: translateY(-50%) scale(1.1);
}

.home-slider-container .prev-btn {
    left: 20px;
}

.home-slider-container .next-btn {
    right: 20px;
}

/* ============================================================ */
/* WELCOME SECTION - FIXED HEIGHT FOR CLINIC PHOTOS            */
/* ============================================================ */

.welcome-section {
    padding: 60px 0;
    background-color: #ffffff;
}

.welcome-layout {
    display: flex;
    gap: 50px;
    align-items: stretch;
}

.welcome-image-side {
    flex: 0 0 auto;
    display: flex;
    align-items: stretch;
    /* min-height: 550px; */
}

.welcome-image-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Changed from contain to cover for photos */
    border-radius: 15px;
    display: block;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.welcome-text-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.welcome-green {
    font-size: 1.8rem;
    font-weight: 400;
    color: #2e7d68;
    margin-bottom: 5px;
    font-family: 'Playfair Display', serif;
}

.welcome-purple {
    font-family: 'Playfair Display', serif;
    font-size: 3.2rem;
    font-weight: 700;
    color: #63377a;
    margin-bottom: 10px;
}

.welcome-slogan-green {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2e7d68;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

.welcome-description p {
    color: #1a1a2e;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 15px;
}

/* Mobile responsive */
@media (max-width: 992px) {
    .welcome-image-side {
        flex: 0 0 40%;
        min-height: 400px;
    }
}

@media (max-width: 768px) {
    .welcome-layout {
        flex-direction: column;
        gap: 30px;
        align-items: center;
    }

    .welcome-image-side {
        flex: 0 0 auto;
        width: 100%;
        min-height: 320px;
    }

    .welcome-image-img {
        min-height: 320px;
        object-fit: cover;
    }

    .welcome-text-side {
        text-align: center;
    }

    .welcome-purple {
        font-size: 2.2rem;
    }

    .welcome-green {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .welcome-image-side {
        min-height: 240px;
    }

    .welcome-image-img {
        min-height: 240px;
    }

    .welcome-purple {
        font-size: 1.8rem;
    }

    .welcome-green {
        font-size: 1.2rem;
    }

    .welcome-slogan-green {
        font-size: 1rem;
    }

    .welcome-description p {
        font-size: 0.95rem;
    }
}

/* ============================================================ */
/* WHY CHOOSE US - PARALLAX SECTION                             */
/* ============================================================ */

.why-choose-us-full {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
}

.why-choose-us-bg-full {
    /* Using your test image */
    background-image: url('images/why.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
}

.why-choose-us-overlay-full {
    /* REMOVED the green overlay - background is now transparent */
    width: 100%;
    min-height: 100vh;
    padding: 80px 0;
    display: flex;
    align-items: center;
}

.why-choose-us-overlay-full h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    color: #ffffff;
    text-align: center;
    margin-bottom: 50px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* ============================================================ */
/* CARDS - FLEXBOX LAYOUT - ALL EQUAL SIZE & WIDTH             */
/* ============================================================ */

.why-cards-custom {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 25px;
    align-items: center;
}

/* Each row */
.why-card-row {
    display: flex;
    gap: 25px;
    justify-content: center;
    width: 100%;
}

/* Row with 3 cards */
.three-cards {
    justify-content: center;
}

/* ALL CARDS - Exactly the same size and width */
.why-card {
    background-color: #63377a;
    color: #ffffff;
    padding: 25px 20px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: default;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 200px;
    min-height: 220px;
    max-height: 260px;
    flex-shrink: 0;
    flex-grow: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.why-card:hover {
    background-color: #2e7d68;
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.why-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
    flex-shrink: 0;
}

.why-card h3 {
    font-size: 1rem;
    margin-bottom: 10px;
    font-weight: 700;
    flex-shrink: 0;
}

.why-card p {
    font-size: 0.85rem;
    opacity: 0.95;
    line-height: 1.5;
    flex: 1;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* ============================================================ */
/* RESPONSIVE - Why Choose Us                                   */
/* ============================================================ */

@media (max-width: 992px) {
    .why-card-row {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .why-card {
        width: 280px;
        min-height: 180px;
        max-height: 220px;
    }
}

@media (max-width: 768px) {
    .why-card {
        width: 240px;
        min-height: 160px;
        max-height: 200px;
        padding: 20px 15px;
    }

    .why-card h3 {
        font-size: 0.9rem;
    }

    .why-card p {
        font-size: 0.8rem;
    }

    .why-icon {
        font-size: 2rem;
    }

    .why-choose-us-overlay-full h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .why-card {
        width: 100%;
        max-width: 280px;
        min-height: 150px;
        max-height: 180px;
        padding: 15px 12px;
    }

    .why-card h3 {
        font-size: 0.8rem;
    }

    .why-card p {
        font-size: 0.75rem;
    }

    .why-icon {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }
}
/* ============================================================ */
/* FOOTER                                                       */
/* ============================================================ */

footer {
    background-color: #1a1a2e;
    color: #ffffff;
    padding: 40px 0 20px;
    margin-top: 0;
    position: relative;
    z-index: 100;
}

.footer-grid-new {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 40px 0 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: 30px;
}

.footer-logo-new {
    flex: 0 0 200px;
}

.footer-logo-new p {
    color: #999090;
    font-style: italic;
    margin-top: 8px;
}

.footer-content-new {
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
    flex: 1;
    justify-content: center;
}

.footer-hours-new h4,
.footer-call-new h4,
.footer-email-new h4 {
    color: #2e7d68;
    margin-bottom: 10px;
    font-size: 1rem;
}

.footer-hours-new p {
    color: #cccccc;
    font-size: 0.9rem;
    margin-bottom: 3px;
}

.footer-call-new a,
.footer-email-new a {
    color: #ffffff;
    transition: color 0.3s ease;
}

.footer-call-new a:hover,
.footer-email-new a:hover {
    color: #2e7d68;
}

.footer-email-new p {
    color: #999090;
    font-size: 0.8rem;
    margin-top: 8px;
}

.footer-email-new p strong {
    color: #cccccc;
}

.footer-address-new {
    padding: 20px 0;
    text-align: center;
    color: #999090;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom-new {
    text-align: center;
    padding-top: 20px;
    color: #666;
    font-size: 0.85rem;
}

/* ============================================================ */
/* BACK TO TOP BUTTON                                            */
/* ============================================================ */

.back-to-top {
    position: fixed;
    bottom: 100px;
    left: 20px;
    background-color: #63377a;
    color: #ffffff;
    border: none;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(99, 55, 122, 0.4);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #2e7d68;
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(99, 55, 122, 0.6);
}

.back-to-top-icon {
    width: 28px;
    height: 28px;
    display: block;
    filter: brightness(0) invert(1); /* Makes the icon white */
}

/* ============================================================ */
/* WHATSAPP FLOAT BUTTON - ALWAYS VISIBLE                       */
/* ============================================================ */

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: #ffffff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    text-decoration: none;
    z-index: 999;
    /* REMOVED opacity and visibility - always visible */
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-icon-img {
    width: 35px;
    height: 35px;
    display: block;
}

/* ============================================================ */
/* RESPONSIVE DESIGN                                            */
/* ============================================================ */

@media (max-width: 992px) {
    .welcome-layout {
        flex-direction: column;
        text-align: center;
    }

    .welcome-image-side {
        width: 100%;
    }

    .welcome-placeholder {
        height: 250px;
    }

    .slider-message-text {
        font-size: 2.2rem;
        max-width: 400px;
    }

    .welcome-purple {
        font-size: 2.5rem;
    }

    .why-card-row {
        flex-direction: column;
        align-items: center;
    }

    .why-card-row:first-child .why-card {
        max-width: 100%;
        width: 100%;
    }

    .three-cards .why-card {
        max-width: 100%;
        width: 100%;
    }

    .why-card {
        min-height: 180px;
        max-height: 220px;
        width: 100%;
    }

    .footer-grid-new {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-content-new {
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .slider-message-text {
        font-size: 1.6rem;
        max-width: 280px;
    }

    .slider-message-left {
        top: 25%;
        left: 5%;
    }

    .home-slider-container .slider-btn {
        padding: 12px 16px;
        font-size: 1.2rem;
    }

    .welcome-purple {
        font-size: 2rem;
    }

    .welcome-green {
        font-size: 1.4rem;
    }

    .welcome-placeholder {
        height: 200px;
    }

    .why-card {
        min-height: 160px;
        max-height: 200px;
        padding: 20px 15px;
    }

    .why-card h3 {
        font-size: 0.9rem;
    }

    .why-card p {
        font-size: 0.8rem;
    }

    .why-icon {
        font-size: 2rem;
    }

    .why-choose-us-overlay-full h2 {
        font-size: 2rem;
    }

    .footer-content-new {
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .slider-message-text {
        font-size: 1.2rem;
        max-width: 200px;
    }

    .slider-message-left {
        top: 20%;
        left: 5%;
    }

    .home-slider-container .slider-btn {
        padding: 8px 12px;
        font-size: 1rem;
    }

    .welcome-purple {
        font-size: 1.6rem;
    }

    .why-card {
        min-height: 150px;
        max-height: 180px;
        padding: 15px 12px;
    }

    .why-card h3 {
        font-size: 0.8rem;
    }

    .why-card p {
        font-size: 0.75rem;
    }

    .why-icon {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }

    .footer-content-new {
        gap: 15px;
    }

    .logo-image {
        height: 60px;
    }

    .contact-info {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .contact-item {
        gap: 8px;
    }

    .contact-icon {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }

    .contact-value {
        font-size: 0.75rem;
    }

    .contact-label {
        font-size: 0.6rem;
    }
}

/* ============================================================ */
/* WHATSAPP ICON - IMAGE VERSION                                */
/* ============================================================ */

.whatsapp-icon-img {
    width: 35px;
    height: 35px;
    display: block;
}

/* Make sure the WhatsApp float button works with the image */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: #ffffff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    text-decoration: none;
    z-index: 999;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

/* ============================================================ */
/* CARD ICON IMAGES - ADD THIS AT THE END                       */
/* ============================================================ */

.card-icon-img {
    width: 50px;
    height: 50px;
    display: block;
    object-fit: contain;
    margin: 0 auto;
}

.why-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

/* Optional: Add a subtle hover effect to the icons */
.why-card:hover .card-icon-img {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* ============================================================ */
/* SLIDER IMAGES WITH OVERLAY                                   */
/* ============================================================ */

.slider-image-img {
    width: 100%;
    height: 100vh;
    object-fit: cover;
    object-position: center 40%; /* 20% from the top */
    display: block;
}

/* Add overlay to blend edges */
.slider-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.15);
    z-index: 1;
    pointer-events: none;
}

/* Make sure text stays above overlay */
.slider-message-left {
    z-index: 2;
}

/* ============================================================ */
/* WELCOME IMAGE - REPLACE PLACEHOLDER                         */
/* ============================================================ */

.welcome-image-img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 15px;
    display: block;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/*OUR TEAM PAGE

/* ============================================================ */
/* SECTION HEADER - Text at Bottom Left Corner                  */
/* ============================================================ */

.section-header {
    position: relative;
    height: 450px;
    background-image: url('images/ourteam.jpg');
    background-size: cover;
    background-position: center 30; /* Change this to move the image */
    /* REMOVED background-attachment: fixed; */
}

.section-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent !important; /* FORCE REMOVE green */
    background: none !important; /* FORCE REMOVE any background */
    display: flex !important;
    align-items: flex-end !important;
    justify-content: flex-start !important;
    padding-left: 40px !important;
    padding-bottom: 30px !important;
    padding-right: 0 !important;
    padding-top: 0 !important;
}

.section-header-content {
    max-width: 800px;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
}

.section-header-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 4.5rem;
    color: #ffffff;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.4);
    letter-spacing: 3px;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1;
    text-align: left !important;
}

/* ============================================================ */
/* SECTION HEADER - IMAGE TAG VERSION                          */
/* ============================================================ */

.section-header-img {
    position: relative;
    height: 450px;
    overflow: hidden;
}

.section-header-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30; /* Change this to move the image */
    display: block;
}

.section-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent !important; /* FORCE REMOVE green */
    background: none !important; /* FORCE REMOVE any background */
    display: flex !important;
    align-items: flex-end !important;
    justify-content: flex-start !important;
    padding-left: 40px !important;
    padding-bottom: 30px !important;
    padding-right: 0 !important;
    padding-top: 0 !important;
}

.section-header-content {
    max-width: 800px;
}

.section-header-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 4.5rem;
    color: #ffffff;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.4);
    letter-spacing: 3px;
    margin: 0;
}

.section-header-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%; /* Try: top, bottom, 10%, 20%, 30% etc */
    display: block;
}


/* ============================================================ */
/* TEAM SECTION - Title Above Cards                             */
/* ============================================================ */

.team-section {
    padding: 60px 0 80px;
    background-color: #ffffff;
}

.team-section-title {
    text-align: center;
    margin-bottom: 50px;
}

.team-section-title h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    color: #2e7d68;
    position: relative;
    display: inline-block;
}

.team-section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: #63377a;
    border-radius: 2px;
}

/* ============================================================ */
/* TEAM CARDS - Rectangular Images                              */
/* ============================================================ */

.team-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.team-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 25px 25px 30px;
    text-align: center;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.15);
}

/* ============================================================ */
/* TEAM CARDS - Rectangular Images with Taller Frames          */
/* ============================================================ */

.team-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.team-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 25px 25px 30px;
    text-align: center;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.15);
}

/* FRAME - Taller */
.team-image-wrapper {
    width: 100%;
    height: 350px; /* Taller frame */
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 15px;
    background-color: #f5f5f5;
}

.team-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 10%; /* Shows top of image (usually the face) */
    display: block;
    transition: transform 0.3s ease;
}

.team-card:hover .team-image {
    transform: scale(1.03);
}

.team-card h3 {
    font-size: 1.2rem;
    color: #2e7d68;
    margin-bottom: 5px;
    font-family: 'Playfair Display', serif;
}

.team-role {
    color: #63377a;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.read-more-btn {
    background-color: #63377a;
    color: #ffffff;
    border: none;
    padding: 10px 30px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    background-color: #2e7d68;
    transform: scale(1.05);
}

.read-more-content {
    display: none;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #f0f0f0;
    text-align: left;
    width: 100%;
}

.read-more-content.active {
    display: block;
}

.read-more-content p {
    font-size: 0.95rem;
    color: #1a1a2e;
    margin-bottom: 10px;
    line-height: 1.7;
}

.team-card:hover .team-image {
    transform: scale(1.02);
}

.team-card h3 {
    font-size: 1.2rem;
    color: #2e7d68;
    margin-bottom: 5px;
    font-family: 'Playfair Display', serif;
}

.team-role {
    color: #63377a;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.read-more-btn {
    background-color: #63377a;
    color: #ffffff;
    border: none;
    padding: 10px 30px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    background-color: #2e7d68;
    transform: scale(1.05);
}

.read-more-content {
    display: none;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #f0f0f0;
    text-align: left;
    width: 100%;
}

.read-more-content.active {
    display: block;
}

.read-more-content p {
    font-size: 0.95rem;
    color: #1a1a2e;
    margin-bottom: 10px;
    line-height: 1.7;
}

/* ============================================================ */
/* RESPONSIVE - TEAM PAGE                                       */
/* ============================================================ */

@media (max-width: 768px) {
    .section-header {
        height: 300px;
    }

    .section-header-overlay {
        padding: 0 30px 40px 30px;
    }

    .section-header-content h2 {
        font-size: 2.8rem;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .team-image {
        height: 220px;
    }

    .team-section-title h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .section-header {
        height: 220px;
    }

    .section-header-overlay {
        padding: 0 20px 30px 20px;
    }

    .section-header-content h2 {
        font-size: 2rem;
    }

    .team-image {
        height: 180px;
    }

    .team-card {
        padding: 15px;
    }

    .team-card h3 {
        font-size: 1rem;
    }
}


/*SERVICES PAGE


/* ============================================================ */
/* SECTION HEADER - WITHOUT FIXED ATTACHMENT                   */
/* ============================================================ */

.section-header {
    position: relative;
    height: 450px;
    background-size: cover;
    background-position: top center; /* Change this to show different part of image */
    background-repeat: no-repeat;
}

.section-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent !important; /* FORCE REMOVE green */
    background: none !important; /* FORCE REMOVE any background */
    display: flex !important;
    align-items: flex-end !important;
    justify-content: flex-start !important;
    padding-left: 40px !important;
    padding-bottom: 30px !important;
    padding-right: 0 !important;
    padding-top: 0 !important;
}

.section-header-content {
    max-width: 800px;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
}

.section-header-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 4.5rem;
    color: #ffffff;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.4);
    letter-spacing: 3px;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1;
    text-align: left !important;
}

/* ============================================================ */
/* SECTION HEADER - SERVICES PAGE (SHOW BOTTOM)                */
/* ============================================================ */

.section-header-services {
    background-image: url('images/ourservicess.jpg');
    /* background-position: center ;  */
    background-size: cover;
    background-repeat: no-repeat;
}

/* ============================================================ */
/* SERVICES PAGE - WITH IMAGES & TEXT BELOW                     */
/* ============================================================ */

.services-section {
    padding: 60px 0 80px;
    background-color: #f8f9fa;
}

.services-section-title {
    text-align: center;
    margin-bottom: 50px;
}

.services-section-title h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    color: #2e7d68;
    position: relative;
    display: inline-block;
}

.services-section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: #63377a;
    border-radius: 2px;
}

/* Grid - 2 cards per row */
.services-grid-image {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

/* Each Service Card - Image with text below */
.service-card-image {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.10);
    transition: all 0.4s ease;
    cursor: default;
}

.service-card-image:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.18);
}

.service-image {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.service-card-image:hover .service-image {
    transform: scale(1.04);
}

/* Service name below the image */
.service-name-below {
    padding: 18px 20px 22px;
    text-align: center;
}

.service-name-below h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.service-card-image:hover .service-name-below h3 {
    color: #63377a;
}

/* Purple accent line on hover */
.service-card-image::after {
    content: '';
    display: block;
    width: 0;
    height: 4px;
    background-color: #63377a;
    transition: width 0.4s ease;
}

.service-card-image:hover::after {
    width: 100%;
}

/* ============================================================ */
/* RESPONSIVE - SERVICES PAGE                                   */
/* ============================================================ */

@media (max-width: 992px) {
    .services-grid-image {
        gap: 25px;
    }

    .service-image {
        height: 220px;
    }

    .service-name-below h3 {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .services-grid-image {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .service-image {
        height: 180px;
    }

    .service-name-below {
        padding: 14px 16px 18px;
    }

    .service-name-below h3 {
        font-size: 0.85rem;
    }

    .services-section-title h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .services-grid-image {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-image {
        height: 200px;
    }

    .service-name-below {
        padding: 16px 18px 20px;
    }

    .service-name-below h3 {
        font-size: 0.95rem;
    }
}


/*CONTACT US PAGE


/* ============================================================ */
/* SECTION HEADER - CONTACT PAGE                                */
/* ============================================================ */

.section-header-contact {
    background-image: url('images/findus.jpg');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

/* ============================================================ */
/* CONTACT PAGE - MAP AS FULL BACKGROUND                        */
/* ============================================================ */

.contact-section-map-live {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
}

.map-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.map-background iframe {
    width: 100%;
    height: 100%;
    border: 0;
    pointer-events: none;
}

/* Overlay Content */
.map-overlay-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
}

.map-content-grid-simple {
    display: flex;
    justify-content: flex-start; /* ← CHANGED from center to flex-start */
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    padding: 0 20px;
}

/* Contact Card - FORCED to Far Left */
.map-contact-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 30px 25px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 420px;
    width: 100%;
    margin-left: 0 !important;
    margin-right: auto !important;
    flex-shrink: 0;
}

/* Empty spacer to push card left */
.map-content-grid-simple .spacer {
    flex: 1;
}

.map-contact-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: #2e7d68;
    margin-bottom: 18px;
}

.map-contact-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 10px;
}

.map-contact-icon {
    font-size: 1.3rem;
    min-width: 35px;
    margin-top: 2px;
}

.map-contact-item h4 {
    font-size: 0.7rem;
    color: #63377a;
    margin-bottom: 1px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.map-contact-item p {
    color: #1a1a2e;
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 1px;
}

.map-contact-item a {
    color: #63377a;
    font-weight: 600;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.map-contact-item a:hover {
    color: #2e7d68;
}

/* .map-contact-item.emergency {
    margin-top: 5px;
    padding-top: 10px;
    border-top: 2px solid #f0f0f0;
}

.emergency-number {
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: #d32f2f !important;
}

.emergency-number:hover {
    color: #b71c1c !important;
} */

/* New Patient Section Below Map */
.new-patient-section {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.new-patient-full-card {
    max-width: 1100px;
    margin: 0 auto;
    background: #ffffff;
    padding: 30px 35px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
}

.new-patient-full-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: #2e7d68;
    margin-bottom: 25px;
    text-align: center;
}

.new-patient-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
}

.new-patient-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.new-patient-icon {
    font-size: 2rem;
    min-width: 45px;
    margin-top: 2px;
}

.new-patient-item h4 {
    font-size: 1rem;
    color: #63377a;
    margin-bottom: 5px;
}

.new-patient-item p {
    font-size: 0.9rem;
    color: #1a1a2e;
    line-height: 1.6;
}

/* ============================================================ */
/* RESPONSIVE                                                   */
/* ============================================================ */

@media (max-width: 992px) {
    .contact-section-map-live {
        height: auto;
        min-height: 100vh;
    }
    
    .map-background {
        height: 100%;
        min-height: 100vh;
    }
    
    .map-overlay-content {
        position: relative;
        padding: 40px 0;
    }
    
    .map-content-grid-simple {
        justify-content: center !important;
        padding: 0 15px;
    }

    .map-contact-card {
        max-width: 100%;
        margin: 0 auto !important;
    }

    .map-content-grid-simple .spacer {
        display: none;
    }

    .new-patient-grid {
        grid-template-columns: 1fr 1fr;
        gap: 25px;
    }
}
    .contact-section-map-live {
        position: relative;
        width: 100%;
        height: 600px;
        overflow: hidden;
    }

    /* Map fills the whole section and stays fully interactive */
    .map-background {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1;
    }

    .map-background iframe {
        width: 100%;
        height: 100%;
        border: 0;
        display: block;
        pointer-events: auto; /* map can be dragged/zoomed */
    }

    /* Overlay sits on top but lets clicks pass through to the map,
       except where the contact card itself is */
    .map-overlay-content {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 2;
        display: flex;
        align-items: center;
        pointer-events: none; /* let drags reach the map */
    }

    .map-overlay-content .container {
        width: 100%;
        pointer-events: none;
    }

    .map-content-grid-simple {
        display: flex;
        align-items: center;
        width: 100%;
    }

    /* Re-enable interaction only on the card so links/buttons still work */
    .map-contact-card {
        pointer-events: auto;
        background: rgba(255, 255, 255, 0.96);
        padding: 2rem;
        border-radius: 12px;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
        max-width: 380px;
        margin-left: 2rem;
    }

    .map-contact-card h3 {
        margin-top: 0;
        margin-bottom: 1.25rem;
    }

    .map-contact-item {
        display: flex;
        gap: 0.75rem;
        margin-bottom: 1.25rem;
        align-items: flex-start;
    }

    .map-contact-icon {
        font-size: 1.25rem;
        line-height: 1.4;
    }

    .map-contact-item h4 {
        margin: 0 0 0.25rem 0;
        font-size: 0.95rem;
    }

    .map-contact-item p,
    .map-contact-item a {
        margin: 0;
        font-size: 0.9rem;
        color: #333;
        text-decoration: none;
    }

    .map-contact-item a:hover {
        text-decoration: underline;
    }

    .spacer {
        flex: 1;
    }


@media (max-width: 768px) {
    .map-contact-card {
        padding: 20px;
        max-width: 100%;
    }

    .new-patient-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .new-patient-full-card {
        padding: 20px;
        margin: 0 15px;
    }

    .new-patient-full-card h3 {
        font-size: 1.4rem;
    }
    .contact-section-map-live {
        height: 700px;
    }
    .map-contact-card {
        max-width: 90%;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .map-contact-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .map-contact-icon {
        font-size: 1.2rem;
    }

    .map-contact-card h3,
    .new-patient-full-card h3 {
        font-size: 1.2rem;
    }

    .map-contact-card {
        padding: 15px;
    }

    .new-patient-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* ============================================================ */
/* LIGHTBOX - Full Image Popup                                  */
/* ============================================================ */

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.lightbox.active {
    display: flex;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 3rem;
    color: #ffffff;
    cursor: pointer;
    transition: transform 0.3s ease;
    z-index: 10000;
}

.lightbox-close:hover {
    transform: rotate(90deg);
}

.lightbox-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
    cursor: default;
}

/* Add pointer cursor to team images to show they're clickable */
.team-image {
    cursor: pointer;
}