/* 1. Header (Fixed Top - already in style.css, here we override background) */
header.inner-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    /* Ensure on top */
}

/* Make nav links dark on white header */
header.inner-header .main-nav a {
    color: #333;
}

header.inner-header .main-nav a:hover {
    color: var(--primary-color);
}

header.inner-header .main-nav a::after {
    bottom: -5px;
}


/* 
   2. FIXED BANNER AREA 
   User Requirement: "Sliding time fixed head and middle image, that is to say only slide words"
*/
:root {
    --banner-height: 251px;
}

.inner-banner {
    /* Dimensions */
    width: 100%;
    height: var(--banner-height);
    /* Fixed height as requested/set */

    /* Fixed Positioning Logic */
    position: fixed;
    top: var(--header-height);
    /* Starts immediately after the 80px header */
    left: 0;
    z-index: 5;
    /* Lower than header (1000) but stays above default body */

    background-color: transparent;
    /* Changed from #f5f5f5 to avoid white/grey gap if image loads slowly or is smaller */
    display: block;
}

.inner-banner img {
    display: block;
    width: 100%;
    height: 120%;
    /* Fill the fixed container */
    object-fit: cover;
    /* Maintain aspect ratio */
}

.banner-text {
    position: absolute;
    top: 60%;
    left: 10%;
    /* Left aligned as in image */
    transform: translateY(-50%);
    color: #fff;
    font-size: 32px;
    font-weight: 500;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    /* Better readability on images */
    z-index: 10;
    pointer-events: none;
}


/* 
   3. SCROLLABLE CONTENT AREA 
   This is the ONLY part that scrolls.
   It starts below the Header + Banner.
*/
.inner-content {
    /* Fixed container defining the scrollable viewport */
    position: fixed;
    top: calc(var(--header-height) + var(--banner-height));
    /* Top: 80px + Banner Height */
    bottom: 0;
    /* Extends to bottom of screen */
    left: 0;
    width: 100%;

    /* Enabled scrolling */
    overflow-y: auto;
    overflow-x: hidden;

    /* Background must be solid so it doesn't show anything behind it if it were transparent */
    background-color: #fff;
    z-index: 4;
    /* Below banner */

    /* Internal Padding */
    padding-top: 60px;
    padding-bottom: 100px;
    /* Enough space for footer */
}

.inner-content .container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.inner-content h1 {
    font-size: 32px;
    margin-bottom: 40px;
    color: #333;
    font-weight: 400;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.inner-content p {
    font-size: 16px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
}


/* 
   4. FIXED FOOTER 
   User Requirement: "fixed bottom"
   Since content is in a fixed scroll container, footer should overlay it at the bottom.
*/
.inner-footer {
    position: fixed !important;
    bottom: 0 !important;
    /* Stick to bottom edge */
    left: 0 !important;
    width: 100% !important;

    z-index: 2000 !important;
    /* On top of everything */
    color: #333 !important;
    background-color: #fff;
    /* Solid background to hide scrolling text */
    border-top: 1px solid #eee;
    /* Visual separator */
    padding: 15px 0;
    /* Add padding for aesthetics */

    /* Dark text */
    text-align: center;
    pointer-events: auto;
    /* Enable interaction generally */
}

/* Ensure links are clickable and visible */
.inner-footer a {
    color: #333 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.inner-footer p {
    margin: 5px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 
   ========================================
   RESPONSIVE DESIGN (Inner Pages)
   ========================================
*/
@media (max-width: 1024px) {
    :root {
        --banner-height: 160px;
        /* Reduced banner height for mobile */
    }

    /* 1. Header adjustment - ensure sync with style.css */
    header.inner-header {
        height: 60px;
    }

    /* 2. Banner Text Adjustment */
    .banner-text {
        font-size: 18px;
        left: 5%;
        width: 90%;
        line-height: 1.3;
    }

    /* 3. Content Scroll Area Adjustment */
    .inner-content {
        /* This will automatically use the updated --banner-height (160px) and --header-height (60px) */
        padding-top: 30px;
        padding-bottom: 80px;
    }

    .inner-content .container {
        padding: 0 15px;
        /* Tighter padding */
    }

    .inner-content h1 {
        font-size: 22px;
        margin-bottom: 20px;
        padding-bottom: 10px;
    }

    .inner-content p {
        font-size: 14px;
        line-height: 1.6;
    }

    /* 4. Inner Footer adjustment */
    .inner-footer {
        padding: 10px 0;
        font-size: 10px;
    }

    .inner-footer p {
        flex-direction: column;
        gap: 5px;
    }
}