@import url();
@import url();

:root {
    --base-color: #faf8f4;
    --text-color: #30322f;
    --primary-color: #1C5985;
    --secondary-color: #D49A1D;
    --color-1: #f6f4ef;
    --color-2: #F3F7F9;
    --color-3: #317b74;
    --nav-border: #ccc
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-family: sans-serif;
    color: var(--text-color);
    overflow-x: hidden; /* Prevents side-to-side sliding */
    scroll-behavior: smooth;
}

body {
    padding: 0;
    background-color: var(--base-color);
    overflow-x: hidden; /* Prevents side-to-side sliding */
    width: 100%;
}

h1,h2,h3 {
    font-family: sans-serif;
}

/* --- DARK MODE OVERRIDES --- */
[data-theme="dark"] {
    --base-color: #121212;       
    --text-color: #e0e0e0;       
    --color-1: #1e1e1e;          
    --color-2: #333333;          
    --primary-color: #6a8dce;    
    --secondary-color: #c08f27;  
    --nav-border: #333333; /* NEW: Dark gray for the dark mode line */
}

/* Inverts the logo to white so you can see it on a black background */
[data-theme="dark"] img[src*="Everstudy High quality"] {
    filter: brightness(0) invert(1);
}

/* Fixes the dropdown backgrounds in dark mode */
[data-theme="dark"] .dropdown-menu,
[data-theme="dark"] .lang-menu {
    background-color: var(--base-color);
    border: 1px solid var(--color-2);
}

[data-theme="dark"] .dropdown-menu a:hover,
[data-theme="dark"] .lang-menu a:hover {
    background-color: var(--color-1);
}

/* --- DARK MODE: ICON INVERTS --- */
/* Inverts the Everstudy logo to white */
[data-theme="dark"] img[src*="Everstudy High quality"] {
    filter: brightness(0) invert(1);
}

/* Inverts the Language globe icon to white */
[data-theme="dark"] .lang-img {
    filter: brightness(0) invert(1);
}

/* --- DARK MODE: CUSTOM BUTTON COLORS --- */
/* Add your own colors inside these blocks! The browser will use these instead of the light mode ones */

[data-theme="dark"] .btn-blue, 
/* --- Dark Mode Custom Button Colors --- */
[data-theme="dark"] .cta-button {
    background-color: var(--primary-color); /* Uses your brighter dark-mode blue */
    color: #ffffff; 
    /* DO NOT put padding here. It will automatically inherit the padding from the base class! */
}

[data-theme="dark"] .btn-right {
    display: inline-block;
    text-decoration: none;
    color: #E0E0E0;
    background-color: transparent; /* Fixed from var(transparent) */
    border: 3px solid #E0E0E0; /* Added this line */
    padding: 1em 1.25em; 
    border-radius: 0.5em;
    font-weight: 600;
    align-self: center; 
    transition: background-color 0.3s ease;
}

[data-theme="dark"] .btn-left {
    /* Add your custom dark mode styles here */
}

[data-theme="dark"] .lang-button {
    /* Add your custom dark mode styles here */
}

/* --- Dark Mode Card Backgrounds --- */
[data-theme="dark"] .gat-card {
    background-color: #1e3a5f; 
}

[data-theme="dark"] .step-card {
    background-color: #4a3721; 
}

[data-theme="dark"] .saat-card {
    background-color: #1c4532; 
}

/* Ensures text headers remain readable on dark backgrounds */
[data-theme="dark"] .test-card h3,
[data-theme="dark"] .test-card p {
    color: var(--text-color);
}

/* --- Dark Mode: Curriculum Card Backgrounds --- */
[data-theme="dark"] .inst-card {
    background-color: #1e3a5f; /* Deep blue */
}

[data-theme="dark"] .non-inst-card {
    background-color: #4a3721; /* Deep gold/brown */
}

/* Make the nav wrapper 100% wide so the border touches the edges */
nav {
    width: 100%; 
    position: sticky;
    top: 0;
    z-index: 1000; 
    background-color: var(--base-color); 
    padding: 1em 0; /* Removed side padding here so it doesn't mess with width */
    border-bottom: 2px solid #e0e0e0; /* Your full-width line */
}

nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: bold;
    font-size: 1em;
    font-family: sans-serif;
}

nav a:hover {
    text-decoration: none;
}

header, section {
    margin: 2em auto;
    width: min(75em, 100%);
    background-color: var(--color-1);
    padding: min(2em, 15%);
    border-radius: 1em;
}

.flex-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    gap: 3em;
}

header img {
    max-width: 100%;
    border-radius: 1em;
    object-fit: cover;
    object-position: bottom;
}

.text-container {
    flex: 1;
    min-width: 20em;
}

h1 {
    font-size: 2.5em;
}

.text-container p {
    margin: 0.75em 0 1em 0;
    font-size: 1.25em;
}

/* --- Base Button Styles (Shape and Light Mode Colors) --- */
.cta-button {
    display: inline-block;
    padding: 0.75em 1.5em; /* This gives it the padding! */
    background-color: var(--primary-color); 
    color: #ffffff;
    text-decoration: none; /* Removes the underline since it is an <a> tag */
    border-radius: 0.5em;
    font-weight: bold;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Optional: Add a nice hover effect for light mode */
.cta-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* 2. The Color Modifiers */
.btn-blue {
    background-color: var(--primary-color); /* Uses your existing blue */
}

.btn-green {
    background-color: var(--color-3); /* Uses your existing dark blue */
}

.btn-orange {
    background-color: #e67e22; /* A nice complementary orange color */
}

.btn-left {
    display: inline-block;
    text-decoration: none;
    color: #F6F4EF;
    background-color: var(--primary-color);
    padding: 1em 1.25em; /* Adjust padding/thickness here */
    border-radius: 0.5em;
    font-weight: 600;
    align-self: center; /* Keeps button centered in the card */
    transition: background-color 0.3s ease;
}
.btn-gat:hover {
    background-color: #051c5c; /* Darker blue on hover */
}

.btn-right {
    display: inline-block;
    text-decoration: none;
    color: #333;
    background-color: transparent; /* Fixed from var(transparent) */
    border: 3px solid #333; /* Added this line */
    padding: 1em 1.25em; 
    border-radius: 0.5em;
    font-weight: 600;
    align-self: center; 
    transition: background-color 0.3s ease;
}

.btn-gat:hover {
    background-color: #051c5c; /* Darker blue on hover */
}

section {
    padding: 3em min(2em, 15%);
    background-color: var(--color-1);
    text-align: left;
}

section img {
    border-radius: 1em;
    max-width: 100%; /* Forces images to shrink to fit the phone */
    height: auto !important; /* Prevents images from stretching vertically */
    object-fit: cover;
}

h2 {
    font-size: 2rem;
}

section p {
    margin-top: 1em;
    font-size: 1.25rem;
}

.button-group {
    display: flex;
    justify-content: center; /* Centers the buttons horizontally */
    align-items: center;
    gap: 1.5em; /* Adds space between the buttons */
    margin-top: 2em; /* Adds space between the text and the buttons */
    flex-wrap: wrap; /* Ensures they stack nicely ONLY on tiny phone screens */
}

/* 1. Anchor the dropdown relative to the parent link */
.dropdown {
    position: relative;
}

/* 2. Style and hide the sub-menu */
.dropdown-menu {
    display: none; /* Hidden by default */
    position: absolute;
    top: 100%; /* Pushes it directly under the "Solutions" link */
    left: 0;
    background-color: var(--base-color);
    min-width: 200px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.1);
    border-radius: 0.5em;
    padding: 0.5em 0;
    z-index: 1000;
}

/* Fix the list layout so they stack vertically */
.dropdown-menu li {
    display: block;
    width: 100%;
}

.dropdown-menu a {
    display: block;
    padding: 0.75em 1.5em;
}

/* 3. The Magic: Reveal on hover */
.dropdown:hover .dropdown-menu {
    display: block;
}
.partners-section {
    overflow: hidden; 
    background-color: var(--base-color);
    padding: 2em 0;
}

.marquee-wrapper {
    display: flex;
    --gap: 4em; /* This sets the gap globally for perfect math */
    gap: var(--gap);
}

.marquee-track {
    display: flex;
    gap: var(--gap);
    align-items: center;
    flex-shrink: 0; /* Prevents the track from squishing */
    min-width: 100%; /* Ensures it fills the screen properly */
    justify-content: space-around;
    animation: scrollLogos 30s linear infinite;
}

.marquee-track img {
    height: 80px !important; 
    width: auto !important;
    object-fit: contain !important;
    border-radius: 0 !important; /* Prevents logos from getting rounded corners */
}

/* Shrinks the logos slightly on smartphones so they fit better */
@media (max-width: 900px) {
    .marquee-track img {
        height: 50px !important; 
    }
}

/* Pause animation on hover so users can see the logos */
.marquee-wrapper:hover .marquee-track {
    animation-play-state: paused;
}

/* Perfect Loop Math using the CSS variable */
@keyframes scrollLogos {
    0% { 
        transform: translateX(0); 
    }
    100% { 
        transform: translateX(calc(-100% - var(--gap))); 
    }
}

/* --- FOOTER STYLES --- */
.site-footer {
    background-color: var(--color-1); /* Matches your site theme */
    padding: 4em min(2em, 15%) 1em min(2em, 15%);
    margin-top: 4em;
    border-top: 2px solid var(--color-2);
}

.footer-top {
    align-items: flex-start; /* Forces columns to align to the top */
    justify-content: space-between;
    margin-bottom: 3em;
}

.footer-col {
    flex: 1;
    min-width: 12em;
}

.brand-col {
    flex: 2; /* Gives the logo and description more room */
    min-width: 20em;
}

.footer-col p {
    margin-top: 1em;
    font-size: 1.1em;
    line-height: 1.5;
}

.footer-col h3 {
    margin-bottom: 1em;
    font-size: 1.25em;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 0.75em;
}

/* Footer Link Styles */
.footer-col ul a {
    text-decoration: none;
    color: var(--text-color);
    opacity: 0.8; /* Makes the text slightly faded */
    transition: opacity 0.3s ease;
}

.footer-col ul a:hover {
    opacity: 1; /* Brightens when hovered */
    color: var(--primary-color);
}

/* --- BOTTOM LEGAL BAR --- */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1em;
    padding-top: 1.5em;
    border-top: 1px solid #ccc; /* Creates the separating line */
    font-size: 0.9em;
    opacity: 0.7;
}

.legal-links {
    display: flex;
    list-style: none;
    gap: 1.5em;
}

.legal-links a {
    text-decoration: none;
    color: var(--text-color);
}

.legal-links a:hover {
    text-decoration: underline;
}

/* --- SIGN IN PAGE STYLES --- */
.login-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh; /* Ensures the form sits nicely in the middle of the screen */
    background-color: var(--color-1); /* Uses your light beige background */
}

.form-container {
    background-color: var(--base-color); /* White background for the form box */
    padding: 3em;
    border-radius: 1em;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); /* Adds a soft, modern shadow */
    width: min(30em, 100%); /* Keeps the form from stretching too wide */
    text-align: center;
}

.form-container h2 {
    margin-bottom: 0.25em;
}

.subtitle {
    margin-bottom: 2em;
    opacity: 0.7; /* Softens the text color slightly */
}

.signin-form {
    display: flex;
    flex-direction: column;
    gap: 1.5em; /* Adds space between the email and password fields */
    text-align: left; /* Forces the labels to align left */
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
}

.input-group label {
    font-weight: bold;
    font-size: 0.9em;
}

/* Styling the typing boxes */
.input-group input {
    padding: 1em;
    border: 1px solid #ccc;
    border-radius: 0.5em;
    font-family: inherit; /* Matches your website's font */
    font-size: 1em;
}

/* What happens when the user clicks into the typing box */
.input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 192, 110, 0.3); /* Adds a soft orange glow */
}

.form-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1em;
    margin-top: 1em;
}

/* Overriding some rules just for the form button */
.form-actions button {
    width: 100%; /* Makes the button fill the whole width of the form */
    border: none;
    cursor: pointer;
    font-size: 1.1em;
}

.forgot-password {
    font-size: 0.9em;
    color: var(--text-color);
    text-decoration: none;
    opacity: 0.7;
}

.forgot-password:hover {
    text-decoration: underline;
    opacity: 1;
}

.signup-prompt {
    margin-top: 2em;
    font-size: 0.95em;
}

.signup-prompt a {
    color: var(--primary-color); /* Uses your orange color for the link */
    font-weight: bold;
    text-decoration: none;
}

.signup-prompt a:hover {
    text-decoration: underline;
}

/* Checkbox styling for Sign Up page */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5em;
    margin-top: 0.5em;
    font-size: 0.9em;
}

.checkbox-group input {
    cursor: pointer;
    width: 1.2em;
    height: 1.2em;
}

.checkbox-group a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.checkbox-group a:hover {
    text-decoration: underline;
}

/* --- GAT PAGE LIST STYLES --- */
.feature-list, .method-list {
    margin-top: 1.5em;
    padding-left: 1.5em;
    line-height: 1.6;
}

.feature-list li, .method-list li {
    margin-bottom: 0.75em;
}

/* Specific styling for the study methods list */
.method-list strong {
    color: var(--primary-color);
}

/* Style for labels */
.input-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333; /* Dark gray text */
}

/* Style for inputs */
.input-group input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    color: #000; /* Black text inside boxes */
}

/* --- Language Dropdown Container --- */
.custom-lang-dropdown {
    position: relative;
    display: inline-block;
    font-family: sans-serif;
}

/* --- The Main Button --- */
.lang-button {
    background-color: transparent; /* Blends into your navbar */
    border: 1px solid #ccc;
    border-radius: 0.5em;
    padding: 0.5em 1em;
    font-size: 1em;
    font-weight: bold; /* This line makes it match the other links! */
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5em; /* Spacing between the icon and text */
    color: #333; /* Dark gray text */
    transition: background-color 0.3s ease;
}

.lang-button:hover {
    background-color: #e0e0e0; /* Light gray on hover */
}

/* --- The Hidden Menu --- */
.lang-menu {
    display: none; /* Hidden until hovered */
    position: absolute;
    top: 100%;
    right: 0; /* Aligns the menu to the right side of the button */
    background-color: #ffffff; /* White background for the list */
    min-width: 200px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.1); /* Soft shadow */
    border-radius: 0.5em;
    list-style: none;
    padding: 0.5em 0;
    margin: 0;
    z-index: 1000; /* Keeps it on top of other elements */
}

/* --- The Links Inside the Menu --- */
.lang-menu li a {
    display: block;
    padding: 0.75em 1.5em;
    text-decoration: none;
    color: #333;
    font-size: 0.95em;
}

.lang-menu li a:hover {
    background-color: #f0f0f0;
    color: #317b74; /* Changes text to blue on hover */
}

/* --- The Hover Reveal Trigger --- */
.custom-lang-dropdown:hover .lang-menu {
    display: block;
}

/* Sizes the main button icon */
.lang-img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* Sizes the little flags in the dropdown menu */
.lang-flag {
    width: 16px;
    height: 16px;
    margin-right: 8px; /* Adds space between the flag and the text */
    vertical-align: middle; /* Keeps the flag perfectly in line with the text */
    object-fit: contain;
}

/* 1. The Container: Creates a responsive grid */
.card-grid {
    display: grid;
    /* Automatically creates columns that are at least 250px wide */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2em; /* Space between the cards */
    margin-top: 2em;
}

/* 2. The Cards: Gives them shape and vertical flexibility */
.test-card {
    padding: 2em;
    border-radius: 1em;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05); 
    display: flex;
    flex-direction: column; 
    
    /* Changed this to left so the paragraph edges are straight */
    text-align: left; 
}

/* Adds a little space under the title */
.test-card h3 {
    text-align: center;
    margin-bottom: 0.5em;
}

/* 3. The Magic Alignment: Pushes the button to the absolute bottom */
.test-card p {
    margin-bottom: 1.5em;
    flex-grow: 1; /* Tells the text area to take up any empty space */
}

/* Aligns the button cleanly */
.test-card .cta-button {
    align-self: center;
}

/* --- Custom Card Borders (Colored Padding Effect) --- */

.quant-card {
    border: 1em solid #eef2fa; /* Soft Blue frame */
    padding: 1em; /* Balances out the 1em border */
}

.verbal-card {
    border: 1em solid #fdf5e6; /* Soft Orange/Gold frame */
    padding: 1em; 
}

/* --- Light Mode Card Backgrounds --- */
.gat-card {
    background-color: #eef2fa; /* Smooth full-card blue */
}

.step-card {
    background-color: #fdf5e6; /* Smooth full-card gold */
}

.saat-card {
    background-color: #eef9f1; /* Smooth full-card green */
}

/* --- Light Mode: Curriculum Card Backgrounds --- */
.inst-card {
    background-color: #eef2fa; /* Soft blue */
}

.non-inst-card {
    background-color: #fdf5e6; /* Soft gold */
}

/* Nested Dropdown Base */
.dropdown-menu .dropdown {
    position: relative;
}

/* 1. Base state: Hidden and pushed to the right */
.dropdown-menu .cur-dropdown .delayed-menu {
    display: block !important; /* Overrides standard dropdown behavior so it can animate */
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 100%;
    margin-top: -5px;
    margin-left: 2px;
    pointer-events: none; /* Prevents invisible clicks */
    /* Snaps hidden instantly when mouse leaves */
    transition: visibility 0s linear 0.1s, opacity 0.1s ease 0s; 
}

/* 2. Hover state: The 2-Second Delay */
.dropdown-menu .cur-dropdown:hover .delayed-menu {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    /* The '2s' tells the browser to wait exactly 2 seconds before showing it! */
    transition: visibility 0s linear 0.5s, opacity 0.3s ease 0.5s; 
}

/* Enables the smooth sliding animation globally */
html {
    scroll-behavior: smooth;
}

/* =========================================
   MOBILE SIDEBAR & RESPONSIVE LAYOUT
   ========================================= */

/* 1. Desktop Links Default State */
.desktop-menu {
    display: flex;
    align-items: center;
    list-style-type: none;
    gap: 2em;
    padding: 0;
    
    /* Adds dynamic space on the left to push the menu to the right */
    margin-left: auto; 
    
    /* Adds fixed space on the right so it doesn't touch the Sign In button */
    margin-right: 2em; 
}

/* 2. Hamburger Button Default State (Hidden on laptops) */
.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-color);
    margin-left: 10px;
}

/* 3. The Sidebar Menu (Hidden off-screen to the right) */
.sidebar {
    position: fixed;
    top: 0;
    right: -300px; /* Hidden off screen */
    width: 260px;
    height: 100vh;
    background-color: var(--base-color);
    border-left: 2px solid var(--nav-border);
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    transition: right 0.3s ease; /* Smooth slide-in animation */
    z-index: 2000;
    padding: 20px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

/* This class is added via JavaScript to slide it in */
.sidebar.open {
    right: 0;
}

/* --- Sidebar Main Container --- */
.sidebar {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px; /* Slightly wider for better text fit */
    height: 100vh;
    background-color: var(--base-color);
    border-left: 2px solid var(--nav-border);
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    font-family: sans-serif; /* Forces your main font */
}

.sidebar.open {
    right: 0;
}

/* --- Sidebar Header --- */
.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 2px solid var(--nav-border);
    background-color: var(--color-1);
}

.close-btn {
    font-size: 35px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color);
    line-height: 1;
}

/* --- Sidebar Content & Links --- */
.sidebar-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.sidebar-link {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.1em;
    font-weight: bold;
    padding: 15px 0;
    border-bottom: 1px solid var(--nav-border);
    display: block;
}

.sidebar-sublink {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1em;
    padding: 12px 0 12px 20px; /* The 20px indents the text */
    border-bottom: 1px solid var(--nav-border);
    display: block;
    opacity: 0.85; /* Makes sub-links slightly softer */
    border-left: 3px solid transparent;
}

/* --- Action Rows & Labels --- */
.sidebar-action-row {
    padding: 20px 0;
    border-bottom: 1px solid var(--nav-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    color: var(--text-color);
}

.sidebar-label {
    margin-top: 25px;
    margin-bottom: 5px;
    font-size: 0.9em;
    font-weight: bold;
    text-transform: uppercase;
    color: var(--primary-color);
    letter-spacing: 1px;
}

/* 4. The Dark Overlay behind the sidebar */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 1999;
    transition: opacity 0.3s;
}

/* 5. The Mobile Breakpoint Trigger (Smartphones & iPads up to 900px width) */
@media (max-width: 900px) {
    /* Hide the center desktop links */
    .desktop-menu {
        display: none !important; 
    }
    
    /* Show the hamburger menu icon */
    .hamburger {
        display: block !important; 
    }
    
    /* Shrink the logo slightly so it fits next to the Sign In button */
    .logo-img {
        width: 200px !important; 
        height: auto !important;
    }
    
    /* Adjust the persistent "Sign In" button size */
    .persistent-action {
        font-size: 0.9em;
        padding: 0.5em 1em;
    }
    
    /* Stack the Hero section image and text vertically */
    .flex-container {
        flex-direction: column;
        text-align: center;
    }

    /* Forces buttons to stay side-by-side on mobile */
    .button-group {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: center;
        gap: 0.5em !important;
        width: 100%;
    }
    
    /* Shrinks the buttons slightly so they fit */
    .button-group .cta-button, 
    .button-group .btn-right {
        font-size: 0.85em !important; 
        padding: 0.8em 0.5em !important; 
        flex: 1 1 50% !important; /* Forces each to take exactly half the space */
        text-align: center !important;
        white-space: normal !important; /* Allows text to wrap inside the button if needed */
        min-width: 0 !important; /* Prevents long words from breaking the layout */
    }
    
    /* Make the mobile footer text center-aligned */
    .footer-col, .brand-col {
        text-align: center;
    }
    .footer-top {
        flex-direction: column;
        align-items: center;
        gap: 2em;
    }
    /* Forces all text to center on smartphones */
    section, .text-container {
        text-align: center !important;
    }

    /* Prevents the text box from being too wide for small phones */
    .text-container {
        min-width: 100%;
        margin-bottom: 1.5em;
    }
}

/* --- Mobile Sidebar Dropdowns --- */
.sidebar-dropdown-btn {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    border-bottom: 1px solid var(--nav-border);
    color: var(--text-color);
    font-size: 1.1em;
    font-weight: bold;
    padding: 15px 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: sans-serif;
}

.sidebar-sublink-btn {
    font-size: 1em;
    font-weight: normal;
    padding: 12px 0 12px 20px;
}

/* Background depth matches your site theme */
.sidebar-dropdown-content {
    display: none; 
    background-color: var(--color-1); 
    border-bottom: 1px solid var(--nav-border);
}

.sidebar-dropdown-content.show {
    display: block;
}

/* Removes double lines inside the expanded menu */
.sidebar-dropdown-content .sidebar-sublink {
    border-bottom: none; 
}

/* Arrow rotation animation */
.drop-icon {
    transition: transform 0.3s ease;
    opacity: 0.7;
}

.sidebar-dropdown-btn.active .drop-icon {
    transform: rotate(180deg);
}