/* =========================================
   1. RESET & VARIABLES
   ========================================= */
:root {
    --primary: #0f172a;      /* Deep Navy */
    --secondary: #1e293b;    /* Slate */
    --accent: #c0a062;       /* Muted Gold */
    --light-bg: #f8fafc;     /* Very light grey */
    --text-dark: #334155;
    --text-light: #ffffff;
    --padding: 20px;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
}

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

/* --- REPLACE YOUR OLD BODY BLOCK WITH THIS --- */
html {
    background-color: #0f172a; /* Matches hero/drawer dark bg — prevents white flash between page loads */
}
html, body {
    max-width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    /* This next line is the secret to stopping ghost scrolls */
    position: relative;
    height: -webkit-fill-available;
}

body { 
    font-family: var(--font-body); 
    line-height: 1.7; 
    color: var(--text-dark); 
    background-color: #fff; 
    font-size: 1.15rem;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Ensure these never break the screen width */
img, iframe, video {
    max-width: 100%;
    height: auto;
}

a { text-decoration: none; transition: 0.3s; }
ul { list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--primary); }
p { margin-bottom: 20px; }

/* =========================================
   2. GLOBAL LAYOUT
   ========================================= */
.container { max-width: 1100px; margin: 0 auto; padding: 0 var(--padding); }
.split-layout { display: flex; align-items: flex-start; gap: 60px; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: 2.8rem; }

/* =========================================
   3. HEADER & NAVIGATION
   ========================================= */
header { 
    background: rgba(255, 255, 255, 0.8); /* Changed to transparent white */
    backdrop-filter: blur(10px);           /* The blur effect */
    -webkit-backdrop-filter: blur(10px);    /* Needed for Safari support */
    border-bottom: 1px solid #e2e8f0; 
    padding: 1.2rem 0; 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
}
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.5rem; font-weight: 700; color: var(--primary); display: flex; align-items: center; }
.sub-logo { color: var(--accent); font-weight: 400; }

.nav-links { display: flex; gap: 12px; align-items: center; }
.nav-links a { color: var(--secondary); font-weight: 700; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; }
.nav-links a:hover, .nav-links .active { color: var(--accent); }

.btn-appointment { background: var(--primary); color: white !important; padding: 12px 16px; border-radius: 2px; }
.btn-appointment:hover { background: var(--accent); color: white !important; }

.menu-toggle { display: none; font-size: 1.8rem; color: var(--primary); cursor: pointer; width: 30px; text-align: center; }

/* Dropdowns */
.nav-links li { position: relative; }
.dropdown { 
    display: none; position: absolute; top: 100%; left: 0; background: white; 
    border-top: 3px solid var(--accent); box-shadow: 0 10px 30px rgba(0,0,0,0.1); 
    min-width: 240px; z-index: 100; padding: 10px 0;
}
.nav-links li:hover .dropdown { display: block; }
.dropdown a { padding: 12px 20px; display: block; font-size: 0.85rem; text-transform: none; border-bottom: 1px solid #f1f5f9; }

/* =========================================
   4. HERO SECTIONS
   ========================================= */
.hero { 
    background: url('../images/hero-bg.jpg') no-repeat center center/cover; 
    position: relative; 
    min-height: 85vh; 
    display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
    padding: 100px 0;
}
.hero-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(15, 23, 42, 0.7); }
.hero-content { position: relative; z-index: 1; color: white; max-width: 900px; padding: 20px; }
.hero-logo-center { display: block; margin: 0 auto 30px auto; width: 100%; max-width: 450px; height: auto; }
.hero h1 { font-size: 3.8rem; margin-bottom: 25px; color: white; line-height: 1.1; }
.hero p { font-size: 1.4rem; margin-bottom: 45px; opacity: 0.9; }

.hero-buttons { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.cta-button { padding: 18px 40px; text-transform: uppercase; font-size: 1.1rem; font-weight: 700; min-width: 230px; text-align: center; }
.cta-button.primary { background: var(--accent); color: white; border: 2px solid var(--accent); }

/* Internal Page Hero */
.page-hero {
    background: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.8)), url('../images/hero-bg.jpg');
    background-size: cover; background-position: center; padding: 120px 0 60px; 
    text-align: center; color: white; margin-bottom: 60px;
}
.page-hero h1 { font-size: 3rem; color: white; }

/* =========================================
   5. BIO & CREDIBILITY
   ========================================= */
.intro-bio { padding: 120px 0; background: #fff; }
.authority-bar {
    text-align: center; text-transform: uppercase; font-size: 1.25rem; font-weight: 700; 
    color: var(--primary); border-top: 2px solid var(--accent); border-bottom: 2px solid var(--accent); 
    padding: 20px 0; margin-bottom: 70px;
}
.bio-text { flex: 1; }
.bio-text h2 { font-size: 2.8rem; margin-bottom: 10px; }
.bio-text h3 { color: var(--accent); font-size: 1rem; letter-spacing: 2px; margin-bottom: 30px; text-transform: uppercase; }

.bio-image { flex: 1; text-align: center; }
.bio-image img { max-width: 100%; border-radius: 4px; box-shadow: 20px 20px 0px var(--accent) !important; }

.quote-box-featured {
    border-left: 6px solid var(--accent); background: var(--light-bg);
    padding: 35px; margin: 40px 0; font-family: var(--font-heading);
    font-size: 1.5rem; font-weight: 700; font-style: italic; color: var(--primary);
}
.text-link { color: var(--primary); border-bottom: 2px solid var(--accent); font-weight: 700; display: inline-block; margin-top: 20px; }

/* =========================================
   6. SERVICES (3-Pillar & Detailed)
   ========================================= */
.services-preview { padding: 120px 0; background: var(--light-bg); }
.services-columns { display: flex; gap: 30px; justify-content: center; flex-wrap: wrap; }
.service-col {
    flex: 1; min-width: 320px; max-width: 350px; background: white; padding: 50px 35px;
    border-top: 5px solid var(--accent); text-align: center; transition: 0.3s; display: flex; flex-direction: column;
}
.service-col h3 { font-size: 1.8rem; margin-bottom: 20px; display: flex; align-items: center; justify-content: center; min-height: 80px; }
.service-icon { font-size: 3rem; color: var(--primary); margin-bottom: 25px; }
.service-bullets { text-align: left; margin: 25px 0; flex-grow: 1; }
.service-bullets li { padding-left: 30px; position: relative; margin-bottom: 12px; font-size: 1.1rem; }
.service-bullets li::before { content: "→"; position: absolute; left: 0; color: var(--accent); font-weight: bold; }

/* Detailed Services Page */
.service-category { margin-bottom: 80px; padding-bottom: 40px; border-bottom: 1px solid #e2e8f0; }
.service-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 30px; }
.service-item { background: var(--light-bg); padding: 25px; border-left: 4px solid var(--accent); }

/* =========================================
   7. EDUCATION, MEDIA, & VIDEOS (REPLACED MISSING STYLES)
   ========================================= */
.education-row { display: flex; justify-content: center; align-items: flex-start; gap: 40px; margin: 60px 0; }
.education-col { flex: 1; text-align: center; position: relative; padding: 0 20px; }
.education-col:not(:last-child)::after { content: ''; position: absolute; right: -20px; top: 10%; height: 80%; width: 2px; background-color: var(--accent); }

.pub-list { margin-top: 30px; padding-left: 20px; font-size: 1rem; color: #475569; }
.pub-list li { margin-bottom: 20px; line-height: 1.5; }

.press-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-bottom: 60px; }
.press-card { background: white; padding: 30px; border-radius: 4px; border: 1px solid #e2e8f0; position: relative; padding-left: 80px; transition: 0.3s; }
.press-card:hover { transform: translateY(-5px); border-color: var(--accent); }
.press-icon { position: absolute; left: 30px; top: 30px; font-size: 2rem; color: var(--accent); }

.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.video-card { background: white; padding: 20px; border-radius: 4px; text-align: center; border: 1px solid #e2e8f0; transition: 0.3s; }
.video-card:hover { border-color: var(--accent); }
.play-icon { font-size: 2rem; color: var(--primary); margin-bottom: 10px; }
.watch-btn { background: var(--light-bg); color: var(--secondary); padding: 8px 15px; font-size: 0.8rem; font-weight: 700; border-radius: 4px; display: inline-block; }

/* =========================================
   8. REVIEWS & DIFFERENCE
   ========================================= */
.reviews-enhanced { padding: 120px 0; background: #fff; text-align: center; }
.trust-bar { margin-bottom: 60px; display: flex; justify-content: center; }
.rating-box { background: var(--light-bg); padding: 15px 30px; border-radius: 50px; border: 1px solid var(--accent); display: inline-flex; align-items: center; gap: 15px; }
.stars { color: #f59e0b; font-size: 1.4rem; }
.featured-reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-bottom: 80px; }
.review-card { background: #fff; padding: 40px; border: 1px solid #e2e8f0; text-align: center; transition: 0.3s; }
.review-card:hover { border-color: var(--accent); }
.patient-name { display: block; font-weight: 700; color: var(--accent); margin-top: 15px; text-transform: uppercase; font-size: 0.85rem; }

.difference-home { padding: 120px 0; background-color: var(--light-bg); border-top: 1px solid #e2e8f0; }
.difference-home .bio-image img { max-width: 480px; box-shadow: 20px 20px 0 var(--accent) !important; }
.benefit-list li { position: relative; padding-left: 35px; margin-bottom: 25px; font-size: 1.2rem; }
.benefit-list li::before { content: "✔"; position: absolute; left: 0; color: var(--accent); font-weight: bold; }

/* =========================================
   9. GOLD CTA & LOCATIONS (RESTORED)
   ========================================= */
.ready-to-act.gold-theme { background: var(--accent); padding: 120px 0; text-align: center; color: var(--primary); }
.ready-to-act.gold-theme h2 { color: var(--primary); font-size: 3.5rem; margin-bottom: 25px; }
.ready-to-act.gold-theme p { font-size: 1.4rem; font-weight: 700; color: var(--primary); margin-bottom: 50px; }
.cta-button.navy-btn { background: var(--primary); color: white !important; }
.cta-button.large { padding: 25px 70px; font-size: 1.2rem; transition: 0.3s; }
.cta-button.large:hover { transform: scale(1.05); }

/* LOCATIONS FIX */
.locations-section { padding: 120px 0; background: var(--primary); color: white; }
.locations-section h2 { color: white; text-align: center; margin-bottom: 70px; font-size: 2.8rem; }
.locations-grid { display: flex; flex-wrap: wrap; gap: 40px; justify-content: center; }
.location-card { text-align: center; background: rgba(255,255,255,0.05); padding: 50px 40px; border: 1px solid rgba(255,255,255,0.1); width: 380px; }
.location-card h3 { color: white; font-size: 1.8rem; margin-bottom: 10px; }
.loc-name { color: var(--accent); text-transform: uppercase; font-size: 0.8rem; letter-spacing: 1px; margin-bottom: 20px; display: block; }
.address-link { color: white; opacity: 0.9; display: block; margin-bottom: 15px; font-size: 1.1rem; }
.address-link:hover { color: var(--accent); }
.phone-link { font-size: 1.4rem; color: white; font-weight: 700; display: block; margin-top: 25px; }
.phone-link:hover { color: var(--accent); }

/* =========================================
   10. CONTACT FORM & FOOTER (RESTORED HORIZONTAL LAYOUT)
   ========================================= */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; margin-bottom: 60px; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; padding: 15px; margin-bottom: 20px; border: 1px solid #ccc; border-radius: 4px; }
.contact-form button { background: var(--primary); color: white; padding: 15px; width: 100%; font-weight: 700; cursor: pointer; }

footer { background: var(--secondary); color: #94a3b8; padding: 80px 0 30px; }
.footer-content { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #334155; padding-bottom: 50px; margin-bottom: 30px; }
.footer-brand { display: flex; flex-direction: column; gap: 10px; }
.footer-brand h4 { color: white; font-size: 1.3rem; }
.footer-social-icons { display: flex; gap: 20px; margin-top: 10px; }
.footer-social-icons a { color: var(--accent); font-size: 1.6rem; }

.footer-links { display: flex; gap: 25px; }
.footer-links a { color: #94a3b8; font-size: 1rem; font-weight: 700; }
.footer-links a:hover { color: white; }
.copyright { text-align: center; font-size: 0.9rem; opacity: 0.7; }

/* =========================================
   11. MOBILE RESPONSIVE FIXES
   ========================================= */
@media (max-width: 768px) {
    /* Fixed Hero Overflow */
   .hero { 
    min-height: 1px !important; 
    height: auto !important; 
    padding: 80px 0 40px !important; 
}
    .hero-logo-center { max-width: 280px; }
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1.2rem; }
    .cta-button { width: 100%; min-width: unset; }

    /* Authority Bar Fix */
    .authority-bar { font-size: 1.1rem; padding: 25px 10px; display: flex; flex-direction: column; gap: 15px; border-width: 1px; }
    .authority-bar .dot { display: none; }

    .split-layout { flex-direction: column-reverse; gap: 40px; }
.bio-image img, .difference-home .bio-image img { 
        box-shadow: 10px 10px 0 var(--accent) !important; 
        /* Giving the shadow room to exist without breaking the screen width */
        width: calc(100% - 20px) !important; 
        margin: 0 auto 20px auto !important;
        display: block;
    }
    .bio-text h2, .section-header h2, .ready-to-act.gold-theme h2 { font-size: 2.2rem; text-align: center; }

    .service-col { min-width: 100%; }
    .service-col h3 { min-height: auto; }

    /* Nav Fix */
    .menu-toggle { display: block; }
    .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; width: 100%; background: white; padding: 20px 0; }
    .nav-links.active { display: flex; }
    .nav-links a { padding: 15px; width: 100%; text-align: center; border-bottom: 1px solid #f1f5f9; }

    /* Internal Mobile Fixes */
    .education-row { flex-direction: column; align-items: center; }
    .education-col { width: 100%; border-bottom: 1px solid #e2e8f0; padding-bottom: 30px; }
    .education-col:not(:last-child)::after { display: none; }

    .footer-content { flex-direction: column; align-items: center; text-align: center; gap: 40px; }
    .footer-links { flex-direction: column; align-items: center; gap: 15px; }
}/* =========================================
   FOOTER SYMMETRY & BIO POLISH
   ========================================= */

/* 1. Make the bolded conditions pop even more */
.bio-text p strong {
    color: var(--primary);
    font-weight: 700;
}

/* 2. Desktop Footer Alignment Fix */
@media (min-width: 769px) {
    /* Align Brand and Links on the same base level */
    .footer-content {
        display: flex;
        justify-content: space-between;
        align-items: flex-end; /* Aligns the bottom of both sides */
        padding-bottom: 40px;
    }

    /* Ensure icons sit under your name with consistent spacing */
    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: flex-start; /* Keep name and icons left-aligned on desktop */
    }

    .footer-brand p {
        margin-bottom: 10px; /* Space between MD and icons */
    }

    .footer-social-icons {
        margin-top: 5px;
        display: flex;
        gap: 20px;
    }

    /* Ensure links stay on the same horizontal line as the icons */
    .footer-links {
        display: flex;
        gap: 25px;
        margin-bottom: 5px; /* Fine-tunes the alignment with icons */
    }
}

/* 3. Ensure mobile icons stay centered */
@media (max-width: 768px) {
    .footer-brand {
        align-items: center;
        text-align: center;
    }
    .footer-social-icons {
        justify-content: center;
    }
    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        padding-top: 20px;
    }
}/* Ensure this is still at the bottom of style.css */
.dropdown .drop-header {
    padding: 12px 20px 5px 20px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--accent);
    letter-spacing: 1.2px;
}

.dropdown li:not(:first-child).drop-header {
    border-top: 1px solid #f1f5f9;
    margin-top: 8px;
    padding-top: 15px;
}/* =========================================
   MOBILE NAVIGATION LEFT-ALIGNMENT (SAFE)
   ========================================= */

@media (max-width: 768px) {
    /* 1. Align the main nav links to the left */
    .nav-links a {
        text-align: left !important;
        padding-left: 30px !important; /* Adds professional padding from the edge */
    }

    /* 2. Align the Service Category Headers to the left */
    .dropdown .drop-header {
        text-align: left !important;
        padding-left: 30px !important;
        padding-top: 20px !important;
    }

    /* 3. Align the specific Service links to the left */
    .dropdown a {
        text-align: left !important;
        padding-left: 45px !important; /* Indents services under the category header */
        font-size: 1rem !important;
    }

    /* 4. Ensure the dropdown container doesn't force centering */
    .dropdown {
        text-align: left !important;
    }
}/* =========================================
   MOBILE HERO & NAME LINE-FIX (SAFE)
   ========================================= */

@media (max-width: 768px) {
    /* 1. Fix: Hero Content Spacing (Moves logo/title up) */
    .hero {
        padding: 40px 0 !important; /* Reduces the massive 140px gap at the top */
        min-height: 70vh !important; /* Tightens the overall height for phones */
        justify-content: center;
    }

    .hero-logo-center {
        max-width: 250px !important; /* Keeps logo elegant and centered */
        margin-bottom: 15px !important;
    }

    .hero h1 {
        font-size: 2.1rem !important; /* Scales title to fit better */
        margin-bottom: 15px !important;
    }

    /* 2. Fix: page-hero H1 wraps on mobile, bio name stays on one line */
    .page-hero h1 {
        font-size: 1.8rem !important;
        white-space: normal !important;
        text-align: center !important;
        width: 100% !important;
        display: block !important;
        letter-spacing: -0.5px;
    }
    .bio-text h2 {
        font-size: 1.75rem !important;
        white-space: nowrap; /* Keep "Mahyar Kashani, MD" on a single line */
        letter-spacing: -0.5px;
    }

    /* 3. Adjust the bio text spacing slightly */
    .bio-text h3 {
        margin-bottom: 15px !important;
    }
}

/* Extra tight fix for very small phones (like iPhone SE) */
@media (max-width: 380px) {
    .page-hero h1 {
        font-size: 1.45rem !important; /* Slightly smaller to handle longer titles */
    }
    .bio-text h2 {
        font-size: 1.55rem !important;
    }
}/* =========================================
   MOBILE USABILITY & SCROLL FIXES (SAFE)
   ========================================= */

@media (max-width: 768px) {
    /* 1. Fix: Bunched Up Gold Button */
    .cta-button.large {
        width: 95% !important;
        min-width: unset !important;
        padding: 18px 10px !important;
        font-size: 1rem !important;
        white-space: normal !important;
        display: block;
        margin: 0 auto;
    }
    /* Reduce side padding of dark CTA box so button has full width to breathe */
    .cta-section-box {
        padding: 40px 16px !important;
    }

    /* 2. Fix: Dropdown Menu Cut-off */
    /* This makes the menu itself scrollable so you can reach the bottom links */
    .nav-links {
        max-height: calc(100vh - 80px); /* Limit height to the screen size minus header */
        overflow-y: auto !important;     /* Enable vertical scrolling */
        -webkit-overflow-scrolling: touch; /* Smooth scrolling for iPhone */
        display: none; /* Keep hidden until active */
    }

    .nav-links.active {
        display: flex; /* Show when hamburger is clicked */
    }

    /* Ensure the sub-menu items (dropdown) don't get hidden */
    .dropdown {
        display: block !important; /* Keep dropdowns expanded on mobile for easy access */
        position: static !important; /* Put them in line with the rest of the list */
        box-shadow: none !important;
        border: none !important;
        padding-left: 20px !important;
    }
}/* =========================================
   MOBILE MENU CENTERING (REFINED)
   ========================================= */

@media (max-width: 768px) {
    /* 1. Center the main navigation container */
    .nav-links {
        align-items: center !important;
        text-align: center !important;
    }

    /* 2. Center all links (Home, Meet, Services, etc.) */
    .nav-links a {
        text-align: center !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        width: 100% !important;
    }

    /* 3. Center the Dropdown Categories (Gold headers) */
    .dropdown .drop-header {
        text-align: center !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* 4. Center the specific Service links under the headers */
    .dropdown a {
        text-align: center !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        font-weight: 400 !important;
    }
}/* =========================================
   MOBILE MENU CENTERING (COLOR-SAFE)
   ========================================= */

@media (max-width: 768px) {
    /* 1. Center the main menu items */
    .nav-links, .nav-links li {
        align-items: center !important;
        text-align: center !important;
    }

    /* 2. Center the "Services" parent and main links */
    .nav-links a {
        text-align: center !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* 3. Center the Gold Dropdown Headers (ED, Sexual Health, etc.) */
    .dropdown .drop-header {
        text-align: center !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* 4. Center the specific Service links (ED Overview, Low T, etc.) */
    .dropdown a {
        text-align: center !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        display: block !important;
    }

    /* 5. Clear any leftover indentations */
    .dropdown li {
        text-align: center !important;
        padding-left: 0 !important;
    }
}/* =========================================
   MOBILE ACCORDION TOGGLE (SAFE)
   ========================================= */

@media (max-width: 768px) {
    /* 1. Hide the services dropdown by default on mobile */
    .nav-links .dropdown {
        display: none !important;
        visibility: hidden;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    /* 2. This class will be added by JavaScript when you tap "Services" */
    .nav-links .dropdown.active-dropdown {
        display: block !important;
        visibility: visible;
        opacity: 1;
        position: static !important;
        width: 100% !important;
    }
    
    /* 3. Add a small indicator that "Services" is clickable */
    /* Arrow on ANY nav item that has a dropdown */
.nav-links > li > a + .dropdown ~ * ,
.nav-links > li:has(.dropdown) > a::after {
    content: ' ▼';
    font-size: 0.7rem;
    vertical-align: middle;
}
}/* =========================================
   CONTACT PAGE MOBILE OPTIMIZATION
   ========================================= */

@media (max-width: 768px) {
    /* 1. Stack the columns (Map on top, Form below) */
    .contact-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 40px !important;
    }

    /* 2. Make inputs easier to use on touch screens */
    .contact-form input, 
    .contact-form select, 
    .contact-form textarea {
        font-size: 16px !important; /* Prevents iOS from zooming in on focus */
        padding: 15px !important;
        border: 2px solid #e2e8f0 !important; /* Makes borders clearer */
    }

    /* 3. Ensure the Submit button is full width and tall */
    .contact-form button {
        padding: 20px !important;
        font-size: 1.1rem !important;
    }

    /* 4. Make sure maps fill the screen width */
    .map-container iframe {
        height: 250px !important;
        border-radius: 8px !important;
    }
}/* =========================================
   CONTACT PAGE REORDER & FIX (SAFE)
   ========================================= */

@media (max-width: 768px) {
    /* 1. Flips the layout so Form is TOP, Maps are BOTTOM */
    .contact-grid {
        display: flex !important;
        flex-direction: column-reverse !important; 
        gap: 50px !important;
    }

    /* 2. Style adjustment for the form title on mobile */
    .form-column h2 {
        text-align: center;
        margin-top: 20px;
    }
}/* --- Safe Override: Mobile Centering for Director Title --- */
@media (max-width: 768px) {
    .director-title {
        text-align: center !important;
        display: block !important;
        width: 100% !important;
        margin: 0 auto 20px auto !important;
    }
    
    /* This also ensures the main Name heading is centered */
    .intro-bio h2 {
        text-align: center !important;
    }
}.quiz-wrapper {
    max-width: 740px;
    margin: 0 auto;
    scroll-margin-top: 120px;
}

/* =========================================
   FORCED HERO CENTERING (GLOBAL)
   ========================================= */
.page-hero .container {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    width: 100% !important;
}

.page-hero h1, .page-hero p {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 100% !important;
}

@media (max-width: 768px) {
    .page-hero {
        padding: 60px 0 40px !important;
    }
    .page-hero h1 {
        font-size: 1.7rem !important;
        line-height: 1.3 !important;
    }
}
/* =============================================
   SERVICES MEGA-MENU (desktop only)
   ============================================= */
@media (min-width: 769px) {
    .dropdown-mega {
        flex-direction: row;
        min-width: 560px;
        padding: 0;
    }
    .nav-links li:hover .dropdown-mega { display: flex; }
    .mega-col {
        flex: 1;
        padding: 10px 0;
        list-style: none;
        margin: 0;
    }
    .mega-col + .mega-col { border-left: 1px solid #f1f5f9; }
    .mega-col ul { list-style: none; margin: 0; padding: 0; }
    .mega-col .drop-header { padding-left: 18px; }
    .mega-col a { padding-left: 18px; }
}

/* =============================================
   FLOATING CTA
   ============================================= */
.floating-cta {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 990;
}
.floating-cta a {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--accent);
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 13px 22px;
    text-decoration: none;
    border-radius: 2px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.22);
    transition: background 0.2s, transform 0.2s;
}
.floating-cta a:hover { background: #d4b475; transform: translateY(-2px); }
@media (max-width: 600px) {
    .floating-cta { bottom: 16px; right: 16px; }
    .floating-cta a { font-size: 0.78rem; padding: 11px 16px; }
}
