/* ==============================
   Global Font & Typography System
   ============================== */

/* Avenir Font Family */
@font-face {
    font-family: 'Avenir';
    src: url('/fonts/Avenir Light/Avenir Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Avenir';
    src: url('/fonts/Avenir Book/Avenir Book.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Avenir';
    src: url('/fonts/Avenir Regular/Avenir Regular.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Avenir';
    src: url('/fonts/Avenir Heavy/Avenir Heavy.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Avenir';
    src: url('/fonts/Avenir Black/Avenir Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* ========== Font Variables ========== */
:root {
    --main-font: 'Avenir', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Font Sizes */
    --font-size-xs: 0.75rem;
    /* 12px */
    --font-size-sm: 0.875rem;
    /* 14px */
    --font-size-base: 1rem;
    /* 16px */
    --font-size-lg: 1.125rem;
    /* 18px */
    --font-size-xl: 1.5rem;
    /* 24px */
    --font-size-xxl: 2rem;
    /* 32px */
}

/* ========== Global Reset ========== */
body {
    font-family: var(--main-font);
    font-size: var(--font-size-base);
    color: #333;
    line-height: 1.6;
    background-color: #fff;
}

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--main-font);
    font-weight: 700;
    color: #111;
    margin-bottom: 0.75rem;
}

h1 {
    font-size: var(--font-size-xxl);
}

h2 {
    font-size: var(--font-size-xl);
}

h3 {
    font-size: var(--font-size-lg);
}

h4 {
    font-size: 1.125rem;
}

h5 {
    font-size: 1rem;
}

h6 {
    font-size: 0.875rem;
}

/* Paragraphs & Links */
p,
li,
a,
span,
label {
    font-size: var(--font-size-base);
    font-family: var(--main-font);
}

a {
    text-decoration: none;
    color: #9ACA3C;
    transition: 0.3s;
}

a:hover {
    color: #7EB22F;
}

/* Buttons */
.btn,
button {
    font-family: var(--main-font);
    font-weight: 600;
    font-size: var(--font-size-sm);
}

/* Navbar */
.navbar,
.nav-link {
    font-size: var(--font-size-base);
    font-family: var(--main-font);
}

/* Section Titles */
section h2,
section h3 {
    font-weight: 700;
    text-transform: none;
}

/* Small Text */
small,
.small {
    font-size: var(--font-size-sm);
}

/* Footer */
footer {
    font-family: var(--main-font);
    font-size: var(--font-size-sm);
    color: #fff;
}

.container {
    padding-left: 15px;
    padding-right: 15px;
}

/* Utility: Responsive Typography */
@media (max-width: 768px) {

    body,
    p,
    li,
    span,
    label {
        font-size: 0.95rem;
        /* slightly smaller for mobile */
        line-height: 1.5;
        /* tighter line-height for small screens */
    }

    .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    h3 {
        font-size: 1rem;
    }
}


/* ===============================
   FAQ SECTION
   =============================== */

.faq-list {
    max-width: 1200px;
    margin: 0 auto;
    font-family: var(--main-font);
}

.faq-item {
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* FAQ Question - clickable, semi-transparent green */
.faq-question {
    background-color: rgba(154, 201, 59, 0.5);
    /* 50% opaque green */
    color: #fff;
    /* white text */
    font-weight: 700;
    padding: 15px 20px;
    font-size: var(--font-size-base);
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Hover effect for question */
.faq-question:hover {
    background-color: rgba(154, 201, 59, 0.7);
    /* darker green on hover */
}

/* FAQ Answer - black text on white background */
.faq-answer {
    font-size: var(--font-size-sm);
    color: #000;
    /* black text */
    line-height: 1.6;
    background-color: #fff;
    /* white background */
    border-top: 1px solid #eee;
    transition: all 0.3s ease;
    padding: 15px 20px;
    text-align: left;
    /* ✅ ensures content is aligned to the left */
}


/* Optional: Animate expand/collapse */
.faq-answer.collapsing {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-answer.show {
    display: block;
}

/* ===============================
   DOCTOR / TEAM CAROUSEL SECTION
   =============================== */

.team-card img {
    transition: transform 0.3s ease, filter 0.3s ease;
}

.team-card .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.3s ease;
}

/* Hover Effects */
.team-card:hover img {
    filter: grayscale(100%);
    transform: scale(1.05);
}

.team-card:hover .overlay {
    background-color: rgba(0, 0, 0, 0.7);
    opacity: 1;
}

/* Carousel Scroll Container */
.doctor-carousel-wrapper {
    position: relative;
    margin-top: 20px;
}

.doctor-carousel {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    /* IE/Edge */
    scrollbar-width: none;
    /* Firefox */
}

.doctor-carousel::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.doctor-carousel .team-card {
    flex: 0 0 auto;
    margin-right: 15px;
    width: 220px;
    cursor: grab;
}

/* Arrow Buttons */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    display: none;
    /* Show only if scrollable */
}

.carousel-arrow-left {
    left: 0;
}

.carousel-arrow-right {
    right: 0;
}

/* Typography inside cards */
.team-card h5 {
    font-family: var(--main-font);
    font-weight: 600;
    font-size: var(--font-size-base);
}

.team-card p {
    font-family: var(--main-font);
    font-size: var(--font-size-sm);
}

.team-card a {
    font-family: var(--main-font);
    font-size: var(--font-size-sm);
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .doctor-carousel .team-card {
        width: 180px;
    }

    .team-card .overlay {
        opacity: 1;
        background-color: rgba(0, 0, 0, 0.7);
    }

    .team-card:hover .overlay {
        background-color: rgba(0, 0, 0, 0.7);
    }

    .team-card img {
        filter: none;
        transform: none;
    }
}

/* Service */
/* ===============================
   SERVICE TITLE CLICKABLE ROW
   =============================== */

.service-list {
    max-width: 1200px;
    font-family: var(--main-font);
    text-align: left;

}

.service-title {
    background-color: rgba(154, 201, 59, 0.5);
    /* 50% opaque green like FAQ */
    color: #fff;
    /* white text */
    font-weight: 700;
    padding: 15px 20px;
    /* same as FAQ */
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    border-radius: 0;
    /* remove rounding */
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
}

/* Hover effect */
.service-title:hover {
    background-color: rgba(154, 201, 59, 0.7);
    /* darker green on hover */
}

/* Service details (the dropdown content) */
.service-details {
    font-size: var(--font-size-sm);
    color: #000;
    /* black text */
    line-height: 1.6;
    background-color: #fff;
    /* white background */
    border-top: 1px solid #eee;
    transition: all 0.3s ease;
    padding: 15px 20px;
    /* match FAQ answer padding */
    border-radius: 0;
    /* remove rounding */
}


.service-title span {
    color: #fff;
    /* ensure the text stays white */
}

.service-title i {
    color: #fff;
    /* arrow icon white */
}

/* ===============================
   GREEN STRIP UNDER HEADING
   =============================== */
.section-title {
    display: inline-block;
    /* shrink to heading width */
    position: relative;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-title::after {
    content: '';
    display: block;
    width: 100%;
    height: 4px;
    background-color: #9ACA3C;
    margin-top: 5px;
    border-radius: 3px;
}




/* ===============================
   HERO VIDEO SECTION
   =============================== */

.hero-video-section {
    position: relative;
    width: 100%;
    /* Removed fixed height */
}

.hero-video-section video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    /* keep video behind content */
}

.hero-video-overlay {
    position: relative;
    /* changed from absolute */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: rgba(0, 0, 0, 0.4);
    padding: 60px 15px;
    /* enough padding to keep content inside hero */
    z-index: 1;
    /* overlay above video */
    width: 100%;
}

.hero-video-overlay .hero-title {
    color: #9ACA3C;
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.hero-video-overlay h5 {
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #9ACA3C;
    margin-bottom: 10px;
}

.hero-video-overlay .hero-text {
    color: #fff;
    max-width: 800px;
    font-size: 1.125rem;
    margin-bottom: 25px;
    line-height: 1.5;
}

.hero-buttons {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-buttons .hero-btn,
.hero-buttons .hero-btn-outline {
    min-width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    padding: 10px 25px;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.hero-buttons .hero-btn {
    background-color: #9AC93B;
    border: none;
    color: #fff;
}

.hero-buttons .hero-btn:hover {
    background-color: #87b132;
}

.hero-buttons .hero-btn-outline {
    background: transparent;
    border: 2px solid #9AC93B;
    color: #9AC93B;
}

.hero-buttons .hero-btn-outline:hover {
    background-color: #9AC93B;
    color: #fff;
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
    .hero-video-overlay .hero-title {
        font-size: 2rem;
    }

    .hero-video-overlay .hero-text {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-video-overlay .hero-title {
        font-size: 1.5rem;
    }

    .hero-video-overlay .hero-text {
        font-size: 0.95rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .hero-buttons .hero-btn,
    .hero-buttons .hero-btn-outline {
        width: 100%;
        max-width: 300px;
    }
}


/* ===============================
   TREATMENTS LIST
   =============================== */
.treatment-title {
    cursor: pointer;
    transition: background-color 0.3s ease;
    background-color: rgba(154, 201, 59, 0.5);
    /* ✅ same as FAQ question tab */
    color: #fff;
    /* white text for contrast */
    font-weight: 700;
    padding: 15px 20px;
    /* optional rounded top edges */
}

/* Hover effect – slightly darker green */
.treatment-title:hover {
    background-color: rgba(154, 201, 59, 0.7);
}

/* Treatment description (like FAQ answer) */
.treatment-description {
    display: none;
    overflow: hidden;
    background-color: #fff;
    color: #000;
    padding: 15px 20px;
    border-top: 1px solid #eee;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.treatment-description.show {
    display: block;
}

/* Responsive font adjustment */
@media (max-width: 576px) {

    .treatment-title,
    .treatment-description {
        font-size: 0.9rem;
        padding: 12px 15px;
    }
}