

body {
background-color: var(--c001_solid);
color: var(--c030_solid);
font-family: 'Segoe UI', sans-serif;
display: flex;
flex-direction: column;
align-items: center;
padding-top: 25px;
padding-bottom: 80px !important;
margin: 0;
min-height: 100vh;
}

#global-header {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto 20px auto;
    box-sizing: border-box;
    background-color: var(--c002_tnsluc) !important;
    border: 1px solid var(--c007_tnsluc);
    border-radius: 12px;
    backdrop-filter: blur(12px) !important; 
    -webkit-backdrop-filter: blur(12px) !important;
    padding: 0 16px;
 
}

.global-nav {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px; /* Fixed height creates a structured navbar look */
}

.nav-menu {
    display: flex;
    width: 100%;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 4px;
    justify-content: space-around;
    height: 100%;
}

.nav-menu li {
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0 4px;
    font-weight: 600;
    font-size: 14px;
    color: var(--c004c_tnsluc) !important; 
    text-align: center;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.8px;
    position: relative;
    transition: color 0.25s ease;
    box-shadow: none !important; 
}

.nav-item:hover {
    color: var(--c031_solid) !important;
    transform: none !important;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--tab-accent-color);
    transform: scaleX(0);
    transform-origin: bottom center;
    transition: transform 0.25s ease;
}

.nav-item:hover::after,
.nav-item.active::after {
    transform: scaleX(1);
}

.nav-item.active {
    color: var(--c031_solid) !important;
    font-weight: 700;
}

.btn-home     { --tab-accent-color: #ffb7b2; color: var(--tab-accent-color) !important; } 
.btn-math     { --tab-accent-color: #a8dadc; color: var(--tab-accent-color) !important; } 
.btn-social   { --tab-accent-color: #bdb2ff; color: var(--tab-accent-color) !important; } 
.btn-science  { --tab-accent-color: #c1f0c8; color: var(--tab-accent-color) !important; } 
.btn-language { --tab-accent-color: #ffdac1; color: var(--tab-accent-color) !important; } 
.btn-account  { --tab-accent-color: #e8aeef; color: var(--tab-accent-color) !important; }

/* Mobile Menu Layout Core Overrides (< 600px) */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 5001;
}

.hamburger-bar {
    width: 100%;
    height: 2px;
    background-color: var(--c031_solid);
    border-radius: 1px;
    transition: all 0.3s ease;
}


#global-footer {
    width: 100%;
    max-width: 1000px; /* Aligns with your header max-width */
    margin: 40px auto 0 auto; /* Centered block-level element and top spacing */
    box-sizing: border-box;
    padding: 16px 16px;
    
    /* Flex layout to keep block components centered vertically and horizontally */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    
    /* Forces wrapped text to center on mobile viewports */
    text-align: center; 
}

/* Ensures each text row/link inside remains centered even when wrapped */
#global-footer div, 
#global-footer a {
    text-align: center;
    width: 100%;
    display: inline-block;
    margin: 4px 0; /* Clean vertical breathing room on small screens */
}


#global-footer a {
    color: var(--c031_solid); 
    text-decoration: underline;
}
#global-footer .contact-link {
    color: var(--c008_solid);
}





        @import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;700&family=Montserrat:wght@400;600;700&display=swap');
        @import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;700&display=swap');

        /* ----- CENTER LAYOUT AND ANIMATION -------- */
        #empty-spacer{

            height: 100%;
        }


        .adaptive-container {
            display: flex;
            justify-content: center;
            align-items: center;
            width: 100%;
            min-height: 60px; 
            overflow: hidden;
            background: transparent;
            padding: 0;
            margin: 25px 0 15px 0;
        }

            #animated-text {
            font-family: 'Outfit', sans-serif;
            color: var(--c029_solid);
            font-weight: bold;
            text-align: center;
            white-space: normal; 
            word-wrap: break-word;
            max-width: 95%; 
            font-size: clamp(28px, 10vw, 42px); 
            display: inline-block;
            margin: 0;
            line-height: 1.1;
            opacity: 1;
        }

            .slide-in { animation: slideIn 0.8s ease-out forwards; }
            .slide-out { animation: slideOut 0.5s ease-in forwards; }

         @keyframes slideIn {
            0% { transform: translateX(40px); opacity: 0; }
            100% { transform: translateX(0); opacity: 1; }
        }

        @keyframes slideOut {
            0% { transform: translateX(0); opacity: 1; }
            100% { transform: translateX(-40px); opacity: 0; }
        }

        /* ----- BACKGROUND VIDEO ELEMENT ----- */
        .topic_page_video-container,
        .homepage_video-container {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            z-index: -1;
            overflow: hidden;
        }


        .topic_page_video-container video,
        .homepage_video-container video {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }


        .topic_page_video-container::after,
        .homepage_video-container::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: var(--c002_tnsluc);
        }

        /* make the filter a bit more transparent */
        /* .homepage_video-container::after {
           
            background: var(--c008_tnsluc);
        } */



        /* ----- MAIN CONTENT LAYOUT CONTAINER ----- */
        .content-container {
            width: 100%;
            max-width: 760px;
            padding: 40px 20px;
            box-sizing: border-box;
            text-align: center;
            z-index: 2;

        }

        .homepage_placeholder {

            margin: 25dvh;

        }

        .part-label {
            font-size: 32px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 1.5px;
            margin: 0 0 10px 0;
        }

        .main-title {
            font-size: 44px;
            font-weight: 700;
            margin: 0 0 30px 0;
        }

        .info-section {
            text-align: left;
            margin-top: 40px;
        }

        .home_page_placeholder{
            min-height: 200px;
        }

        .section-heading {
            font-size: 36px;
            font-weight: 700;
            text-align: center;
            margin: 30px 0 20px 0;
        }

        .body-text {
            font-size: 16px;
            line-height: 1.5;
            margin-bottom: 20px;
            color: var(--c004b_tnsluc);
        }

        .bullet-list {
            list-style-type: none;
            padding-left: 15px;
            margin-bottom: 30px;
        }

        .bullet-list li {
            position: relative;
            padding-left: 20px;
            font-size: 16px;
            line-height: 1.5;
            margin-bottom: 12px;
            color: var(--c004b_tnsluc);
        }

        .bullet-list li::before {
            content: "•";
            position: absolute;
            left: 0;
            color: var(--c030_solid);
        }

        /* ----- EMBED COMPONENT MODULE STYLES (QUIZ BOX) ----- */
        .embed-wrapper {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 15px;
            font-family: Arial, sans-serif;
            padding: 15px;
            background: transparent; 
            margin: 20px 0;
        }

        .quiz-button {
            background: var(--c001a_grad);
            color: var(--c030_solid);
            font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
            font-size: 18.9px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.9px;
            padding: 13.5px 36px;
            border-radius: 45px; 
            border: 1px solid var(--c005_tnsluc);
            cursor: pointer;
            box-shadow: inset 0px 3px 4px var(--c004a_tnsluc), var(--c003_tnsluc);
            transition: background 0.3s ease, transform 0.2s, box-shadow 0.2s;
        }

        .quiz-button:hover {
            background: var(--c001_grad);
            box-shadow: inset 0px 3px 4px var(--c004a_tnsluc), 0px 7px 14px var(--c003_tnsluc);
        }

        .theme-group {
            display: flex;
            gap: 20px;
        }

        .theme-control {
            display: flex;
            align-items: center;
            color: var(--c030_solid);
            font-size: 13px;
            cursor: pointer;
            position: relative;
            user-select: none;
        }

        .theme-control input {
            position: absolute;
            opacity: 0;
            cursor: pointer;
        }

        .radio-custom {
            height: 14px;
            width: 14px;
            background-color: transparent;
            border: 1.5px solid var(--c030_solid);
            border-radius: 50%;
            margin-right: 6px;
            display: inline-block;
            position: relative;
            transition: border-color 0.2s;
        }

        .theme-control:hover input ~ .radio-custom {
            border-color: var(--c007a_solid);
        }

        .theme-control input:checked ~ .radio-custom {
            border-color: var(--c016a_solid);
        }

        .radio-custom::after {
            content: "";
            position: absolute;
            display: none;
            top: 2px;
            left: 2px;
            width: 7px;
            height: 7px;
            border-radius: 50%;
            background:var(--c007a_solid);
        }

        .theme-control input:checked ~ .radio-custom::after {
            display: block;
        }

        

@media screen and (max-width: 600px) {
            .part-label { font-size: 26px; line-height: 18px; margin-top: 6px; }
            .main-title { font-size: 32px; }
            .section-heading { font-size: 28px; }
            .adaptive-container { padding-top: 40px;}
            .home_page_placeholder{ min-height: 400px;}
    


/* 1. Flatten the global header container so it doesn't take up row height */
    #global-header {
        /* background: var(--bg-translucent-subtle); */
        border: none !important;
        padding: 0 !important;
        margin-bottom: 0 !important;
        backdrop-filter: none !important;
        position: relative;
        z-index: 6000;
    }

    #global-header .nav-menu {
        background: rgba(18, 18, 18, 0.75) !important; /* Translucent background */
        backdrop-filter: blur(12px) !important;        /* Blurs elements behind the menu */
        -webkit-backdrop-filter: blur(12px) !important; /* Safari compatibility */
    }

   /* 2. Shrink the nav wrapper height */
    .global-nav {
        height: 0 !important;
    }

.menu-toggle {
        display: flex;
        position: absolute;
        /* Centers it vertically relative to the 44px-50px height of your active_quiz_info_card */
        top: 18px; 
        left: 24px;
    }

    #quiz-container {
        position: relative;
        padding: 0 10px;
    }

   /* 5. Clean up the quiz header row layout */
    #quiz-header {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center;
        gap: 10px; 
        position: relative;
    }

    /* 6. Give the info card side-padding so the text doesn't overlap the absolute hamburger icon */
    #active_quiz_info_card {
        flex: 0 0 100%; 
        margin-bottom: 4px;
        box-sizing: border-box;
        padding-left: 50px !important; /* Creates clear spacing for the hamburger on the left */
        padding-right: 50px !important; /* Keeps the text beautifully balanced and centered */
    }

    /* Shifted positioning architecture from 'right' side alignments over to the 'left' side */
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%; /* Hidden off-screen to the left side */
        right: auto;
        height: 100vh;
        width: 260px;
        background: rgba(18, 18, 18, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 80px 24px;
        gap: 8px;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1); /* Left animate alignment */
        box-shadow: 5px 0 25px rgba(0,0,0,0.6);
        border-right: 1px solid rgba(255,255,255,0.08);
        border-left: none;
        z-index: 5000;
    }

    .nav-menu.menu-active {
        left: 0; /* Slides into view from Left to Right */
        right: auto;
    }

    .nav-menu li {
        width: 100%;
        height: auto;
    }
    
    .nav-item {
        width: 100%;
        justify-content: flex-start;
        padding: 12px 0;
        font-size: 15px;
    }

    /* Transform underscore markers into left vertical stripes inside the mobile drawer panel view */
    .nav-item::after {
        bottom: 0;
        left: -12px;
        width: 4px;
        height: 70%;
        top: 15%;
        background: var(--tab-accent-color);
        transform: scaleY(0);
        transform-origin: center left;
        transition: transform 0.2s ease;
    }

    .nav-item:hover::after,
    .nav-item.active::after {
        transform: scaleY(1);
        transform: scaleX(1) !important;
    }

    .menu-toggle[aria-expanded="true"] .hamburger-bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .menu-toggle[aria-expanded="true"] .hamburger-bar:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle[aria-expanded="true"] .hamburger-bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}
   

