/* --- 1. GLOBAL VARIABLES & RESET --- */
:root {
    --primary: #1565c1;       
    --primary-dark: #0d47a1;
    --accent: #4FC3F7;       
    --text-dark: #111418;
    --text-light: #637488;
    --bg-light: #F9FAFB;
    --white: #ffffff;
    --border: #e5e7eb;
    --font-main: 'Poppins', sans-serif;
    --font-head: 'Manrope', sans-serif;
    --shadow: 0 10px 40px rgba(0,0,0,0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font-main); color: var(--text-dark); background: var(--bg-light); overflow-x: hidden; line-height: 1.6; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; display: block; object-fit: cover; }

/* Container */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }

/* --- 2. HEADER & NAVIGATION --- */
.header { background: rgba(255,255,255,0.95); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 1000; border-bottom: 1px solid var(--border); }
.header__inner { display: flex; justify-content: space-between; align-items: center; height: 90px; }
.logo { display: flex; align-items: center; gap: 12px; font-size: 1.5rem; font-family: var(--font-head); font-weight: 800; color: var(--text-dark); }
.logo span { color: var(--primary); }

.nav-list { display: flex; gap: 40px; }
.nav-link { font-weight: 500; color: var(--text-light); }
.nav-link:hover, .nav-link.active { color: var(--primary); }

.btn-primary { background: var(--primary); color: white; padding: 12px 28px; border-radius: 50px; font-weight: 600; border: none; cursor: pointer; display: inline-block; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 4px 15px rgba(21, 101, 193, 0.3); }

/* FORCE HIDE MENU ON DESKTOP */
.menu-toggle { display: none !important; background: none; border: none; cursor: pointer; color: var(--text-dark); }

/* --- 3. PAGE HEROES --- */
.hero-home { position: relative; height: 85vh; min-height: 600px; display: flex; align-items: center; color: white; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 40, 75, 0.9) 0%, rgba(13, 71, 161, 0.7) 50%, rgba(13, 71, 161, 0.2) 100%); z-index: 0; }
.hero-content { position: relative; z-index: 2; max-width: 650px; padding-left: 20px; }
.hero-home h1 { font-size: 3.5rem; font-family: var(--font-head); margin-bottom: 20px; color: white; }

.page-header, .page-hero { text-align: center; padding: 80px 0; background: white; border-bottom: 1px solid var(--border); margin-bottom: 60px; }
.page-title { font-family: var(--font-head); font-size: 3rem; margin-bottom: 15px; }
.page-desc { color: var(--text-light); max-width: 600px; margin: 0 auto; font-size: 1.1rem; }

/* --- 4. TIMELINE (About Page) --- */
.timeline { position: relative; max-width: 700px; margin: 0 auto; padding-left: 30px; border-left: 2px solid var(--border); }
.timeline-item { position: relative; margin-bottom: 50px; padding-left: 30px; }
.timeline-item::before { content: ''; position: absolute; left: -38px; top: 5px; width: 14px; height: 14px; background: var(--primary); border-radius: 50%; border: 4px solid white; box-shadow: 0 0 0 1px var(--border); }
.year { color: var(--primary); font-weight: 800; font-family: var(--font-head); font-size: 1.2rem; display: block; margin-bottom: 5px; }

/* --- 5. GRIDS & LAYOUTS (The Fix) --- */
/* Base Grid Rule for everything */
.calendar-list, .founders-grid, .services-grid, .services-grid-new, .stats-grid, .mission-grid, .staff-list, .booking-layout {
    display: grid;
    gap: 40px; 
}

/* Specific Column Rules (This restores the side-by-side layout) */
.founders-grid, .mission-grid, .staff-list { grid-template-columns: 1fr 1fr; }
.services-grid, .services-grid-new { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.booking-layout { grid-template-columns: 1fr 2fr; align-items: start; }
.stats-grid { grid-template-columns: repeat(3, 1fr); text-align: center; } /* For Services Page Icons */

/* Card Styling */
.event-row, .founder-card, .service-card, .service-tile, .mission-card, .staff-card, .contact-panel, .form-panel {
    background: white;
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: 0.3s;
    padding: 30px;
}

.event-row:hover, .founder-card:hover, .service-card:hover, .service-tile:hover, .mission-card:hover, .staff-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

/* Service Page Stats Specifics */
.stat-icon { font-size: 2rem; color: var(--primary); margin-bottom: 15px; display: inline-block; background: #E3F2FD; padding: 15px; border-radius: 50%; }

/* Event Specifics */
.date-box { background: #E0F2FE; color: var(--primary); padding: 20px; border-radius: 16px; text-align: center; min-width: 100px; }
.date-box .day { font-size: 2rem; font-weight: 800; line-height: 1; display: block; margin-bottom: 5px; }
.date-box .month { font-size: 0.9rem; font-weight: 700; text-transform: uppercase; }
.event-row { display: flex; gap: 40px; align-items: flex-start; }
.event-info { flex-grow: 1; }
.event-action { margin-left: auto; align-self: center; }

/* Staff Page Specifics */
.staff-img { width: 100%; height: 300px; object-fit: cover; border-radius: 12px; margin-bottom: 20px; }
.staff-card { display: block; } /* Ensures image stacks on top of text */

/* Booking Form Inputs */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.form-input, select, textarea { width: 100%; padding: 12px; border: 1px solid var(--border); border-radius: 8px; font-family: inherit; margin-top: 5px; }
.form-input:focus { outline: 2px solid var(--primary); border-color: transparent; }
.full-btn { width: 100%; }

/* Buttons */
.btn-small { 
    padding: 14px 32px; font-size: 1rem; background: var(--bg-light); color: var(--primary); 
    border-radius: 50px; font-weight: 700; display: inline-block; text-align: center; transition: 0.3s; 
}
.btn-small:hover { background: var(--primary); color: white; transform: translateY(-2px); }

/* --- 6. FOOTER --- */
.footer { background: #0b1120; color: #e2e8f0; padding: 80px 0 30px; margin-top: 80px; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 50px; margin-bottom: 50px; text-align: left; }
.footer-brand h2 { color: white; font-family: var(--font-head); font-size: 1.5rem; display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.footer-brand p { opacity: 0.7; line-height: 1.8; max-width: 350px; margin-bottom: 25px; }
.social-links { display: flex; gap: 15px; }
.social-btn { width: 40px; height: 40px; background: rgba(255,255,255,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: 0.3s; }
.social-btn:hover { background: var(--primary); transform: translateY(-3px); }
.footer-col h4 { color: white; font-size: 1.1rem; font-weight: 700; margin-bottom: 25px; font-family: var(--font-head); text-transform: uppercase; }
.footer-links li { margin-bottom: 15px; }
.footer-links a { color: #cbd5e1; display: inline-flex; align-items: center; gap: 8px; }
.footer-links a:hover { color: var(--accent); transform: translateX(5px); }
.footer-contact li { display: flex; gap: 15px; margin-bottom: 20px; align-items: flex-start; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 30px; text-align: center; opacity: 0.6; }

/* --- 7. ANIMATIONS --- */
.reveal { opacity: 0; transform: translateY(50px); transition: all 0.8s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* --- 8. MOBILE RESPONSIVE --- */
@media (max-width: 900px) {
    /* Header */
    .header .btn-primary { display: none; }
    .menu-toggle { display: block !important; } /* Only show hamburger here */
    
    /* Mobile Menu */
    .nav-list { 
        position: fixed; top: 90px; left: -100%; width: 100%; height: calc(100vh - 90px); 
        background: white; flex-direction: column; align-items: center; padding-top: 40px; 
        transition: 0.3s ease-in-out; border-top: 1px solid var(--border); gap: 30px; z-index: 999;
    }
    .nav-list.active { left: 0; }
    .nav-link { font-size: 1.2rem; }

    /* Forces ALL grids to single column */
    .founders-grid, .services-grid, .services-grid-new, .footer-grid, .mission-grid, .stats-grid, .booking-layout, .staff-list, .calendar-list, .form-grid { 
        grid-template-columns: 1fr !important; 
        display: flex; flex-direction: column; gap: 40px !important;
    }

    /* Adjust Cards for Mobile */
    .founder-card, .event-row, .staff-card { 
        flex-direction: column; align-items: flex-start; text-align: left;
    }
    .founder-img, .staff-img { height: 250px; }

    /* Adjust Event specifics */
    .date-box { width: 100%; display: flex; align-items: center; justify-content: center; gap: 15px; margin-bottom: 20px; }
    .event-action, .btn-small { width: 100%; margin-left: 0; text-align: center; }
    
    /* Typography */
    .hero-home h1 { font-size: 2.5rem; }
    .page-title { font-size: 2rem; }
}
/* --- 10. HOMEPAGE MARQUEE & SLIDERS (The Missing Piece) --- */

/* The Container that hides the overflow */
.marquee-wrapper {
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

/* The Track that moves */
.marquee-track {
    display: flex;
    gap: 30px;
    width: max-content; /* Critical: allows it to be wider than screen */
}

/* Animation Speeds */
.scroll-left { animation: scrollLeft 30s linear infinite; }
.scroll-right { animation: scrollRight 30s linear infinite; }

/* Pause on Hover for readability */
.marquee-wrapper:hover .marquee-track {
    animation-play-state: paused;
}

@keyframes scrollLeft {
    to { transform: translateX(-50%); }
}
@keyframes scrollRight {
    from { transform: translateX(-50%); }
    to { transform: translateX(0); }
}

/* --- EVENT MINI CARDS (Events Section) --- */
.event-card-mini {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 15px 20px;
    min-width: 250px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    transition: 0.3s;
}
.event-card-mini:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
}
.event-date {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    background: #E0F2FE;
    padding: 8px 12px;
    border-radius: 8px;
    text-align: center;
    line-height: 1.2;
    white-space: nowrap;
}
.event-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
}

/* --- REVIEW CARDS (Patient Stories Section) --- */
.review-card {
    background: white;
    padding: 25px;
    border-radius: 16px;
    min-width: 320px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid var(--border);
}
.stars { color: #F59E0B; margin-bottom: 10px; letter-spacing: 2px; }
.review-text { font-style: italic; color: #555; margin-bottom: 15px; font-size: 0.95rem; line-height: 1.6; }
.reviewer { font-weight: 700; color: var(--text-dark); font-size: 0.9rem; display: flex; align-items: center; gap: 8px; }
.reviewer::before { content: ''; width: 20px; height: 2px; background: var(--primary); display: block; }
/* --- 11. ABOUT PAGE UPDATES (Paste at bottom of style.css) --- */

/* New Founders Hero */
.founders-hero {
    display: grid;
    grid-template-columns: 1.2fr 1fr; /* Text takes more space */
    gap: 60px;
    align-items: center;
    padding: 80px 0;
}

.founders-text h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 25px;
    font-family: var(--font-head);
    color: var(--text-dark);
}

.founders-img-group {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two photos side by side */
    gap: 20px;
    align-items: center;
}

.founders-img-group img {
    border-radius: 20px;
    width: 100%;
    height: 350px;
    object-fit: cover;
    box-shadow: var(--shadow);
    transition: 0.3s;
}

/* Offset the second image down for a stylish look */
.founders-img-group img:nth-child(2) {
    margin-top: 60px; 
}

/* Bento Gallery Grid */
.bento-section { margin-bottom: 100px; }

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 Columns */
    grid-auto-rows: 250px; /* Fixed height rows */
    gap: 15px;
}

.bento-item {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

.bento-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.bento-item:hover img { transform: scale(1.05); }

/* Bento Spans (The "Tetris" Shapes) */
.span-2-2 { grid-column: span 2; grid-row: span 2; } /* Big Square */
.span-2-1 { grid-column: span 2; }                   /* Wide Rectangle */
.span-1-2 { grid-row: span 2; }                      /* Tall Rectangle */

/* Mobile Responsiveness for New Sections */
@media (max-width: 900px) {
    .founders-hero { 
        grid-template-columns: 1fr; 
        text-align: center; 
        padding-top: 40px;
    }
    
    .founders-img-group {
        margin-top: 40px;
    }
    
    /* On mobile, turn Bento into a simple list */
    .bento-grid { 
        grid-template-columns: 1fr; 
        grid-auto-rows: 250px;
    }
    .span-2-2, .span-2-1, .span-1-2 { 
        grid-column: auto; 
        grid-row: auto; 
    }
}
/* --- STAFF PAGE UPDATES --- */
.staff-grid-new {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); /* Auto-responsive columns */
    gap: 40px;
}

.staff-card-new {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}

.staff-card-new:hover { 
    transform: translateY(-5px); 
    box-shadow: var(--shadow); 
    border-color: var(--primary);
}

.staff-photo { 
    height: 280px; 
    width: 100%; 
    object-fit: cover; 
    border-bottom: 1px solid var(--border);
}

.staff-details { 
    padding: 25px; 
    flex-grow: 1; /* Ensures cards are equal height */
    display: flex;
    flex-direction: column;
}

.staff-quote {
    font-style: italic;
    color: var(--text-light);
    font-size: 0.9rem;
    background: var(--bg-light);
    padding: 15px;
    border-radius: 8px;
    margin-top: auto; /* Pushes quote to bottom */
    border-left: 3px solid var(--primary);
    line-height: 1.6;
}

/* Mobile Fix */
@media (max-width: 900px) {
    .staff-grid-new { grid-template-columns: 1fr; }
}
/* --- 12. SERVICES PAGE UPDATES --- */

/* Enables smooth scrolling when clicking "Explore" */
html { scroll-behavior: smooth; }

/* The "Explore" Link Style */
.explore-link {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 15px;
    cursor: pointer;
}
.explore-link:hover { gap: 10px; color: var(--primary-dark); }

/* Detailed Service Sections */
.service-detail {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center; /* Centers text for reading */
}

.service-detail h2 {
    font-family: var(--font-head);
    font-size: 2.2rem;
    color: var(--text-dark);
}

.service-detail ul {
    text-align: left;
    display: inline-block; /* Keeps list centered but items aligned left */
    margin: 20px 0;
}

.service-detail li {
    margin-bottom: 10px;
    display: flex;
    gap: 10px;
    align-items: center;
    color: var(--text-light);
}

.service-detail li::before {
    content: 'check_circle';
    font-family: 'Material Symbols Outlined';
    color: var(--primary);
    font-size: 1.2rem;
}

/* Alternating Backgrounds */
.bg-white { background: white; }
.bg-light { background: var(--bg-light); }