/* Core Reset for Clean Layout */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: "Cal Sans", sans-serif;
    src: url('../fonts/AT Avalaqus Sans Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

:root {
    --blue: #0b2347;  /* The dark corporate navy blue */
    --gold: #f1b82d;   /* The warm shield gold */
    --white: #ffffff;  /* white */
	--black: #000000;  /* black */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--blue);
    color: var(--white);
}

body.interior-page .main-nav a {
    color: var(--white);
}

body.interior-page .main-nav a:hover,
body.interior-page .main-nav a.active {
    color: var(--white);
    border-bottom-color: var(--white);
}

body.interior-page .btn-phone {
    background-color: var(--blue);
    color: var(--gold) !important;
}

body.interior-page .btn-phone:hover {
    background-color: var(--blue);
    color: var(--gold);
}

/* Header Background Color matching Logo */
.main-header {
    background: linear-gradient(to bottom,
        rgba(11, 35, 71, 0.95) 0%,
        rgba(11, 35, 71, 0.55) 50%,
        rgba(11, 35, 71, 0) 100%);
    background-color: transparent;
    padding: 10px 0;
    width: 100%;
    position: relative; /* Crucial for positioning the mobile menu drop-down */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    z-index: 1000;
}

/* Flexbox container positioning logo left, links right - Pushed closer to edges */
.header-container {
    max-width: 1600px; /* Increased from 1200px to push things closer to the screen edges */
    margin: 0 auto;
    padding: 0 60px;   /* Increased spacing to push the logo left and nav right */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Image sizing control */
.header-logo {
    height: 150px; /* Adjust based on client preference */
    width: auto;
    display: block;
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 1.8s ease, transform 1.8s ease;
}

.main-header.is-visible .header-logo {
    opacity: 1;
    transform: translateX(0);
}

/* Horizontal Menu Formatting */
.main-nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

.main-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 20px; /* Spaces out your navigation links */
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 1.8s ease, transform 1.8s ease;
}

.main-header.is-visible .main-nav ul {
    opacity: 1;
    transform: translateX(0);
}

.main-nav a {
    color: var(--gold);
    text-decoration: none;
    font-size: 1.1rem;             /* 1. Slightly increased the size for a bolder presence */
    font-weight: 800;              /* 2. Increased from 600 to 800 for a much thicker, heavier look */
    font-family: 'Arial Black', 'Impact', 'Montserrat', sans-serif; /* 3. Stronger, less plain font choice */
    text-transform: uppercase;
    letter-spacing: 1px;           /* 4. Slightly wider spacing looks great with thick uppercase letters */
    transition: color 0.3s ease, border-bottom 0.2s ease;
    padding-bottom: 5px;
	padding-left: 20px;
}

/* Interaction Effects */
.main-nav a:hover,
.main-nav a.active {
    color: var(--white); 
    border-bottom: 2px solid var(--white); /* Updated from hex code to match hover text color style */
}

/* Hide Mobile Hamburger Elements on Desktop Layouts */
.menu-toggle,
.hamburger-icon {
    display: none;
}


/* ==========================================================================
   MOBILE RESPONSIVE STYLES (Triggers for screens 768px wide or smaller)
   ========================================================================== */
@media screen and (max-width: 768px) {
    
    .header-container {
        padding: 0 20px; /* Keeps logo and hamburger slightly inset on small mobile viewports */
    }

    .header-logo {
        height: 55px; /* Scales down the logo size slightly on mobile screens */
    }

    /* Display Hamburger Icon Layout */
    .hamburger-icon {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 21px;
        cursor: pointer;
    }

    /* Hamburger Lines */
    .hamburger-icon span {
        display: block;
        height: 3px;
        width: 100%;
        background-color: var(--gold); /* Gold bars to match the header accent */
        border-radius: 3px;
        transition: all 0.3s ease;
    }

    /* Hidden Menu Checkbox Toggle Layer */
    .menu-toggle {
        display: none;
    }

    /* Transform Desktop Row Links into Hidden Vertical Drop-Down List */
    .main-nav {
        display: none; /* Default hidden state on mobile */
        position: absolute;
        top: 100%; /* Placed directly below the header boundary */
        left: 0;
        width: 100%;
        background-color: var(--gold);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    }

    .main-nav ul {
        flex-direction: column; /* Stacks links vertically */
        gap: 0;
        width: 100%;
        padding: 10px 0;
    }

    .main-nav li {
        width: 100%;
        text-align: center;
    }

    .main-nav a {
        display: block;
        padding: 15px 0;
        width: 100%;
        border-bottom: none;
        color: var(--blue);
    }

    .main-nav a:hover,
    .main-nav a.active {
        background-color: rgba(255, 255, 255, 0.2); /* Soft white overlay highlight on mobile select */
        border-bottom: none;
    }

    /* Pure CSS Click Logic: If the checkbox is checked, display the navigation block */
    .menu-toggle:checked ~ .main-nav {
        display: block;
    }
}








/* UPPER VIDEO SECTION */
/* ==========================================================================
   Video Feature Section Layout
   ========================================================================== */
.video-feature-section {
    width: 100%;
    padding: 0; /* Changed from 20px 0 to 0 to remove top/bottom gaps if you want it completely flush */
    background-color: var(--white);
}

/* Video Wrapper Container - Modified for Full Screen Edge-to-Edge Width */
.video-container {
    max-width: 100%; /* Changed from 1600px to 100% */
    width: 100%;     /* Changed from calc(100% - 80px) to 100% to strip side margins */
    margin: 0;       /* Removed auto margins */
    position: relative; 
    height: 500px;   
    border-radius: 0; /* Changed from 12px to 0 to remove rounded corners */
    overflow: hidden; 
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Force video to cleanly crop and scale dynamically inside our custom frame */
.feature-video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Forces video to behave like a background cover image without stretching weirdly */
    display: block;
}

/* Semi-transparent dark overlay to keep overlay text readable over any dynamic video imagery */
.video-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(11, 35, 71, 0.4), rgba(11, 35, 71, 0.2)); /* Uses your --blue value softly */
    z-index: 1;
}

/* Content Alignment layer centered squarely on top of moving clip stream */
.video-overlay-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: center;
    color: var(--white);
    width: 90%;
    max-width: 800px;
}

.video-overlay-content h2 {
    font-family: "Cal Sans", sans-serif;
    font-size: 3rem;
    text-transform: uppercase;
    margin-bottom: 15px;
    text-shadow: 0 10px 12px rgba(0, 0, 0, 0.85), 0 0 24px rgba(0, 0, 0, 0.45);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-title-line {
    display: block;
}

.hero-title-main {
    font-size: 3.4rem;
    line-height: 0.9;
    margin: 0;
}

.hero-title-sub {
    font-size: 2.2rem;
    font-family: 'Open Sans', sans-serif;
    line-height: 0.95;
    margin-top: -0.05em;
}

.video-overlay-content p {
    font-size: 1.3rem;
    font-weight: 600;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    transition-delay: 0.2s;
}

.video-container.is-visible .video-overlay-content h2,
.video-container.is-visible .video-overlay-content p {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Mobile Optimization Overrides
   ========================================================================== */
@media screen and (max-width: 768px) {
    .video-container {
        width: 100%; /* Changed from calc to 100% for true edge-to-edge width */
        height: 350px; /* Keeps the shorter vertical box container depth */
        border-radius: 0; /* Ensures no rounded corners peek out on the edges */
    }

    .video-overlay-content h2 {
        font-size: 1.8rem; /* Drops text font size down on mobile to prevent clipping wraps */
    }

    .hero-title-main {
        font-size: 2.1rem;
    }

    .hero-title-sub {
        font-size: 1.3rem;
    }

    .video-overlay-content p {
        font-size: 1rem;
    }
}


/* ==========================================================================
   Buttons
   ========================================================================== */
.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--blue); /* Uses your existing blue variable */
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    border-radius: 8px;
    transition: background-color 0.3s ease;
    margin-top: 20px;
}

.btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--blue);
    color: var(--white);
    text-decoration: none;
    font-weight: bold;
    border-radius: 8px;
    transition: background-color 0.3s ease;
    margin-top: 20px;
}

/* Hover effect: makes the button slightly darker when the mouse is over it */
.btn-primary:hover {
    background-color: #004a80; /* Adjust this to a slightly darker shade of your blue */
    cursor: pointer;
}

.btn-phone {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--gold);
    color: var(--blue) !important; 
    text-decoration: none;
    font-weight: bold;
    border-radius: 8px;
    margin: 0;
    text-align: center;
    opacity: 0;
    transform: translateX(40px);
    transition: background-color 0.3s ease, opacity 1.2s ease, transform 1.2s ease;
}

.main-header.is-visible .btn-phone {
    opacity: 1;
    transform: translateX(0);
}

/* Optional: Ensure it stays white on hover */
.btn-phone:hover {
    background-color: var(--white);
    color: var(--black); 
}






/* ==========================================================================
   Featured Links Section
   ========================================================================== */
.featured-links-section {
    width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
}

.featured-links-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
}

.featured-link-card {
    position: relative;
    display: block;
    overflow: hidden;
    min-height: 220px;
    max-height: 400px;
    text-decoration: none;
    opacity: 0;
    transform: translateX(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
    isolation: isolate;
    background-color: var(--blue);
}

.featured-link-card-left {
    transform: translateX(-40px);
}

.featured-link-card-right {
    transform: translateX(40px);
}

.featured-links-section.is-visible .featured-link-card {
    opacity: 1;
    transform: translateX(0);
}

.featured-link-image {
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
    display: block;
    filter: brightness(0.7);
    border: 5px solid #ffffff;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

.featured-link-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    z-index: 2;
}

.featured-links-section.is-visible .featured-link-overlay {
    opacity: 1;
    transform: translateY(0);
}

.featured-link-logo {
    position: absolute;
    top: 30px;
    left: 30px;
    width: 70px;
    height: auto;
    display: block;
    filter: brightness(1.2);
    z-index: 3;
}

.featured-link-overlay span {
    color: var(--white);
    font-size: 2.4rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    text-shadow: 0 2px 10px rgba(0,0,0,0.7);
}

@media screen and (max-width: 768px) {
    .featured-links-grid {
        grid-template-columns: 1fr;
    }

    .featured-link-card {
        min-height: 240px;
    }

    .featured-link-overlay span {
        font-size: 1.6rem;
    }
}

/* ==========================================================================
   About Us Section
   ========================================================================== */
.about-us-section {
    width: 95%;
    max-width: 1400px;
    margin: 20px auto 60px;
    padding: 40px;
    background-color: var(--gold);
    color: var(--blue);
    overflow: hidden;
    border-radius: 20px;
}

.about-container {
    display: flex;
    align-items: center; /* Vertically aligns text and image */
    gap: 40px;
}

.about-text, .about-image {
    flex: 1; /* Both sides take up 50% width */
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.about-text {
    transform: translateX(-50px);
}

.about-image {
    transform: translateX(50px);
}

.about-us-section.is-visible .about-text,
.about-us-section.is-visible .about-image {
    opacity: 1;
    transform: translateX(0);
}

.about-text h2 {
    color: var(--blue);
    font-size: 2.4rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    text-shadow: none;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    color: var(--blue);
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Styling for this specific page only */
.featured-doctors-section {
    background-color: blue; /* You may want to use a light blue like rgba(0, 0, 255, 0.1) for readability */
    border-radius: 20px;
    padding: 40px; /* Adds space inside the rounded corners */
    margin: 20px 0; /* Adds space outside the section */
}

/* Optional: Ensure the text inside remains readable if using a dark blue background */
.featured-doctors-section h2, 
.featured-doctors-section h3, 
.featured-doctors-section p {
    color: white; 
}

/* Mobile Responsive: Stack them */
@media screen and (max-width: 768px) {
    .about-container {
        flex-direction: column; /* Stacks text on top of image */
        text-align: center;
    }

    .about-text,
    .about-image {
        transform: translateY(30px);
    }

    .about-us-section.is-visible .about-text,
    .about-us-section.is-visible .about-image {
        transform: translateY(0);
    }
}






/* ==========================================================================
   Doctors Section
   ========================================================================== */
/* The main container limits the width so it doesn't stretch to the full screen */
.doctors-section {
    width: 100%;
    margin: 40px auto;
    padding: 28px 32px;
    background-color: var(--blue);
    color: var(--gold);
    border: none;
    border-radius: 0px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.doctors-tabs-menu,
.doctor-grid img,
.doctor-grid .doctor-bio {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.doctors-section h2 {
    text-align: center;
    font-size: 2.4rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    color: var(--gold);
    text-shadow: none;
}

/* Tabs Menu */
.doctors-tabs-menu {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
    transform: translateX(50px);
}

.doctor-grid img {
    transform: translateX(-50px);
}

.doctor-grid .doctor-bio {
    transform: translateX(50px);
}

.doctors-section.is-visible .doctors-tabs-menu,
.doctors-section.is-visible .doctor-grid img,
.doctors-section.is-visible .doctor-grid .doctor-bio {
    opacity: 1;
    transform: translateX(0);
}

.tab-link {
    padding: 12px 24px;
    cursor: pointer;
    background: #e0e0e0;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    transition: 0.3s;
}

.tab-link.active {
    background: var(--gold);
    color: var(--blue);
}

/* The Grid (Content Area) */
.doctor-tab-content {
    display: none; /* Hidden by default */
}

.doctor-grid {
    display: grid;
    grid-template-columns: 0.5fr 1.5fr; /* Image on left, Bio on right */
    gap: 40px;
    align-items: center;
}

.doctor-grid img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    object-position: top;
    border-radius: 19px;
}

/* Bio Text */
.doctor-bio h3 {
    font-size: 1.8rem;
    font-family: 'Arial Black', Impact, sans-serif;
    color: var(--gold);
}

.doctors-section .btn-primary {
    background-color: var(--gold);
    color: var(--blue);
    border: 1px solid var(--gold);
}

.doctors-section .btn-primary:hover {
    background-color: var(--blue);
    color: var(--gold);
}

/* Mobile Stacking */
@media screen and (max-width: 768px) {
    .doctor-grid { 
        grid-template-columns: 1fr; 
    }
    .doctors-section { 
        width: 94%; 
        padding: 20px; 
    }
    .doctor-grid img {
        height: 260px;
    }
}



/* =========================================================================
   Services Section
   ========================================================================= */
/* Services Section */
.services-section {
    width: 95%; /* Increased from 80% to give more room on mobile */
    padding: 40px 20px; 
    background-color: var(--gold);
    color: var(--blue);
    margin: 40px auto;
    border-radius: 20px;
    overflow: hidden; /* This clips images back inside the container */
}

.services-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px; /* Reduced from 60px to fit better */
    margin: 0 auto;
}
	
	.services-card {
    flex: 1; /* Makes both doctor columns take up exactly equal space */
    max-width: 450px; /* Prevents the photos from getting too massive on huge screens */
    text-align: center; /* Centers the name and title under the photo */
    opacity: 0;
    transform: translateX(80px);
    transition: opacity 0.8s ease, transform 0.8s ease;
	}
	
	.services-section.is-visible .services-card {
    opacity: 1;
    transform: translateX(0);
	}
	
	/* Image Formatting */
	.services-card img {
		width: 100%;
		max-height: 250px; 
		object-fit: contain; 
		border-radius: 20px;
		overflow: hidden; 
		margin-bottom: 25px;
		background-color: var(--blue); 
	}

	.services-card h3 {
		color: var(--blue);
		font-size: 1.5rem;
	}

.services-section .btn-secondary {
    background-color: var(--blue);
    color: var(--white);
}

.services-section .btn-secondary:hover {
    background-color: #071b35;
}

@media screen and (max-width: 768px) {
    .services-container {
        grid-template-columns: 1fr; /* Stack vertically */
        gap: 40px;
    }
	}

	.services-card {
    text-align: center;
    width: 100%; /* Ensure card doesn't exceed parent width */
	}

.services-cta {
    display: inline-block;
    margin: 30px auto 0;
    text-align: center;
    width: fit-content;
    grid-column: 1 / -1;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.services-section.is-visible .services-cta {
    opacity: 1;
    transform: translateY(0);
}


/* =========================================================================
   Page Content Container
   ========================================================================= */
body.interior-page {
    background-color: var(--gold);
    color: var(--blue);
}

.page-shell {
    width: 100%;
    padding: 40px 20px 60px;
    background-color: var(--gold);
}

.page-card {
    
    margin: 0 auto;
    background-color: var(--blue);
    color: var(--gold);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.page-card h1 {
    font-family: "Cal Sans", sans-serif;
    font-size: 2.2rem;
    margin-bottom: 16px;
    color: var(--gold);
    text-align: center;
}

.page-card p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--gold);
}

.about-intro {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-top: 24px;
}

.about-intro-text {
    flex: 3;
}

.about-intro-text p {
    margin-bottom: 16px;
}

.about-intro-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.about-intro-image img {
    width: 100%;
    max-width: 480px;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

@media screen and (max-width: 768px) {
    .about-intro {
        flex-direction: column;
    }

    .about-intro-image {
        width: 100%;
    }
}

.services-page-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 24px;
}

.services-page-card {
    background: linear-gradient(to bottom,
        rgba(241, 184, 45, 0.98) 0%,
        rgba(241, 184, 45, 0.72) 50%,
        rgba(241, 184, 45, 0.18) 100%);
    background-color: var(--gold);
    color: var(--blue);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.services-page-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.services-page-card h3 {
    padding: 16px 16px 8px;
    font-size: 1.2rem;
}

.services-page-card p {
    padding: 0 16px 16px;
    font-size: 1rem;
    color: var(--blue);
}

@media screen and (max-width: 1024px) {
    .services-page-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .services-page-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================================
   Footer Section
   ========================================================================= */
.footer-section {
    padding: 40px 20px;
    background-color: var(--gold) !important;
    color: var(--blue);
}

.footer-container {
    display: flex;
    justify-content: space-between; /* Pushes content to opposite ends */
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.footer-nav a {
    color: var(--blue);
    text-decoration: none;
    font-weight: bold;
	font-size: 1.5rem;
}

.footer-logo {
    max-width: 150px; /* Adjust size as needed */
}

body.interior-page .footer-logo {
    filter: drop-shadow(0 0 10px var(--gold)) drop-shadow(0 0 20px rgba(241, 184, 45, 0.5));
}

.footer-bottom {
    text-align: center;
    padding: 5px;
    background-color: var(--gold) !important;
    color: var(--blue);
    font-size: 0.5rem;
}

/* Footer reveal on scroll */
footer {
    overflow: hidden;
}

.footer-section {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.footer-section.is-visible .footer-nav {
    opacity: 1;
    transform: translateX(0);
}

.footer-section.is-visible .footer-logo {
    opacity: 1;
    transform: translateX(0);
}

.footer-nav,
.footer-logo {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.footer-nav {
    transform: translateX(-60px);
}

.footer-logo {
    transform: translateX(60px);
}

.footer-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive: Stack on mobile */
/* Add this to your existing Footer CSS */
@media screen and (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    /* Hides the links on mobile */
    .footer-nav {
        display: none;
    }

    .footer-logo {
        opacity: 0;
        transform: none;
        transition: opacity 1.2s ease;
    }

    .footer-section.is-visible .footer-logo {
        opacity: 1;
        transform: none;
    }

    /* Ensures the logo takes the full available width to center itself */
    .footer-logo-link {
        display: block;
        width: 100%;
    }
}







/* 1. Ensure the parent acts as the coordinate system for the home hero only */
.hero-hero-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.home-hero-wrapper {
    height: 50vh;
}

/* 2. Create the fade effect */
.hero-hero-wrapper::after {
    display: none !important;
}

/* 2. Position the header absolutely at the top on the home page only */
.home-hero-wrapper .main-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    
    /* Force no border and no shadow */
    border: none !important;
    outline: none !important;
    box-shadow: none !important; 
    
    /* THE FIX: Explicitly separate the color from the image so the browser doesn't skip it */
    background-color: transparent !important;
    background-image: linear-gradient(to bottom,
        rgba(11, 35, 71, 0.95) 0%,
        rgba(11, 35, 71, 0.55) 50%,
        rgba(11, 35, 71, 0) 100%) !important;
    
    /* Increased this from 30px to 80px to pull the fade further down over the video */
    padding-bottom: 80px !important; 
}

/* 3. Ensure the video covers the full area behind on the home page only */
.home-hero-wrapper .video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.home-hero-wrapper .feature-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 4. Ensure overlay content stays above video but below header if needed */
.home-hero-wrapper .video-overlay-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    color: white;
    text-align: center;
}