/* --- 1. CORE STYLES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #f4f7f6;
    color: #333;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- 2. NAVIGATION --- */
/* --- 2. NAVIGATION (UPDATED) --- */
.navbar {
    background: #2c3e50;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Changed from sticky to relative to make it scrollable */
    position: relative; 
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.logo { color: white; font-size: 1.5rem; font-weight: 600; cursor: pointer; }
.logo span { color: #3498db; }

.search-box { 
    display: flex; 
    align-items: center;
    background: rgba(255,255,255,0.15); 
    padding: 5px 15px; 
    border-radius: 20px; 
    border: 1px solid rgba(255,255,255,0.1);
    transition: 0.3s;
}

.search-box:focus-within {
    background: rgba(255,255,255,0.25);
    border-color: #3498db;
}

.search-box input { 
    background: none; 
    border: none; 
    color: white; 
    outline: none; 
    padding: 5px; 
    width: 140px;
}

.search-box input::placeholder { color: rgba(255,255,255,0.7); font-size: 0.8rem; }

.search-box button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1rem;
    padding: 0 5px;
    transition: transform 0.2s;
}

.search-box button:hover {
    transform: scale(1.2);
    color: #ffca28;
}

.nav-links { display: flex; list-style: none; gap: 20px; }
.nav-links a { color: white; text-decoration: none; font-size: 0.9rem; font-weight: 500; }
.nav-links a:hover { color: #3498db; }

/* Dropdown Menu */
.dropdown { position: relative; }
.dropdown-menu {
    display: none;
    position: absolute;
    right: 0; top: 100%;
    background: white;
    min-width: 180px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border-radius: 8px;
    padding: 10px 0;
}
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu li a { color: #333; padding: 8px 20px; display: block; }
.dropdown-menu li a:hover { background: #f8f9fa; color: #3498db; }

/* --- 3. DASHBOARD & CARDS --- */
#heroSection { padding: 50px 5%; text-align: center; flex: 1; }
.hero h1 { font-size: 2.2rem; color: #2c3e50; margin-bottom: 10px; }
.hero p { color: #7f8c8d; margin-bottom: 30px; }

.grid-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
    margin-top: 30px;
    min-height: 300px;
    align-items: start;
}

.class-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #eee;
    text-align: center;
}

.class-card:hover {
    transform: translateY(-5px);
    background: #3498db;
    color: white;
}

.card-icon { font-size: 2.5rem; margin-bottom: 10px; }

/* --- 4. OVERLAY SYSTEM --- */
.overlay {
    display: none; 
    position: fixed; 
    top: 0; left: 0;
    width: 100%; height: 100%;
    justify-content: center;
    align-items: center;
    z-index: 9999; 
    background-color: rgba(0, 0, 0, 0.7);
}

.overlay-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    width: 95%;
    max-width: 450px;
    position: relative;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    animation: popIn 0.3s ease-out forwards;
}

@keyframes popIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

.subject-buttons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 25px;
}

.sub-btn {
    padding: 15px;
    border-radius: 10px;
    border: 2px solid #f0f2f5;
    background: #f8f9fa;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

/* --- 5. QUIZ ENGINE & SEARCH RESULTS (REVISED) --- */
#quiz-container {
    width: 95%;
    max-width: 650px;
    margin: 20px auto;
    padding: 10px;
    display: none; /* Controlled by JS */
    flex-direction: column;
    justify-content: center;
}

.bulk-question-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    margin-bottom: 15px;
    animation: slideIn 0.4s ease-out forwards;
    border: 1px solid #edf2f7;
}

.q-text { 
    font-size: 1.15rem; 
    font-weight: 600; 
    margin-bottom: 20px; 
    line-height: 1.4; 
    color: #2d3748;
}

.bulk-option {
    display: block;
    width: 100%;
    text-align: left;
    background: #fff;
    padding: 12px 18px;
    margin-bottom: 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid #f0f2f5;
    font-size: 0.95rem;
}

.bulk-option:hover { 
    border-color: #3498db; 
    background: #f7fbff; 
    transform: translateX(5px);
}

/* --- 6. PROGRESS BAR --- */
.progress-container {
    width: 100%;
    background: #e0e0e0;
    border-radius: 20px;
    margin-bottom: 25px;
    height: 10px;
    overflow: hidden;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #2ecc71, #27ae60);
    transition: width 0.4s ease;
}

/* --- 7. RESULT SCREEN & GAMIFICATION --- */
#result-area {
    max-width: 600px;
    margin: 50px auto;
    padding: 40px;
    background: white;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    display: none;
}

/* --- 8. BUTTONS --- */
.next-btn {
    width: 100%;
    padding: 16px;
    background: #2c3e50;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1rem;
    transition: 0.2s;
    margin-top: 10px;
}

.next-btn:hover { background: #34495e; transform: translateY(-2px); }

/* --- 9. FOOTER --- */
.site-footer {
    background-color: #2c3e50;
    color: #bdc3c7;
    padding: 40px 5%;
    text-align: center;
    margin-top: auto;
    border-top: 4px solid #3498db;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin-top: 15px;
}

.footer-links li {
    display: inline;
    margin: 0 15px;
}

.footer-links a {
    color: #ffca28;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
}

/* --- 10. UTILITIES --- */
@media (max-height: 800px) {
    #quiz-container { margin: 10px auto; }
    .bulk-question-card { padding: 20px; }
    .q-text { font-size: 1.05rem; margin-bottom: 15px; }
    .bulk-option { padding: 10px 15px; margin-bottom: 8px; }
}

@media (max-width: 600px) {
    .navbar { padding: 1rem 3%; }
    .search-box input { width: 100px; }
    .hero h1 { font-size: 1.8rem; }
    .overlay-content { padding: 25px; }
}
/* Styling for the highlighted subject button */
.sub-btn.active-sub {
    background-color: #2ecc71 !important; /* Success Green */
    color: white !important;
    border-color: #27ae60 !important;
    box-shadow: 0 4px 10px rgba(46, 204, 113, 0.3);
    transform: scale(1.05); /* Slight pop effect */
}

/* Optional: Add a transition for a smooth color change */
.sub-btn {
    transition: all 0.2s ease-in-out;
}
.close-btn {
    position: absolute;
    top: 15px; 
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: #bdc3c7;
    transition: color 0.2s;
}

.close-btn:hover {
    color: #e74c3c; /* Turns red on hover to signal "Close/Exit" */
}
.q-header {
    display: flex; /* Enables Flexbox */
    justify-content: space-between; /* Pushes first item to left, second to right */
    align-items: center; /* Keeps them perfectly leveled vertically */
    width: 100%; /* Ensures it spans the full width of the card */
    margin-bottom: 20px;
}

.q-topic-tag {
    background: #f0f2f5;
    padding: 4px 12px;
    border-radius: 6px;
    color: #7f8c8d;
    font-size: 0.85rem;
    font-weight: 500;
    /* Optional: prevents the tag from disappearing if it's empty but still exists */
    display: inline-block; 
}
/* Syllabus Tag Style */
.syllabus-tag {
    background: #e74c3c;
    color: white;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 10px;
    font-weight: bold;
}

.author {
    display: block;
    font-style: italic;
    color: #555;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.expert-review {
    background: #f9f9f9;
    border-left: 3px solid #3498db;
    padding: 10px;
    font-size: 0.85rem;
    color: #444;
    line-height: 1.4;
    text-align: left;
    margin: 10px 0;
}

.product-card:hover {
    transform: translateY(-5px);
    transition: 0.3s ease-in-out;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
/* Badge Styling */
.badge {
    background: #2ecc71;
    color: white;
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 5px;
    display: inline-block;
    width: fit-content;
    margin: 0 auto 5px;
    text-transform: uppercase;
    font-weight: bold;
}

/* Hover Effect for Cards */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

/* Ensure images don't look stretched */
.product-card img {
    max-width: 100%;
    height: 180px;
    object-fit: contain;
    transition: 0.3s;
}

.product-card:hover img {
    transform: scale(1.05);
}
.ad-break-card {
    text-align: center;
    border: 2px solid #3498db;
    background: #fdfdfd;
}

.ad-break-card h3 {
    color: #2c3e50;
    margin-top: 10px;
}

.ad-break-card .badge {
    background: #f1c40f;
    color: #000;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
}

#timed-continue-btn:disabled {
    opacity: 0.8;
    color: rgba(255, 255, 255, 0.7);
    box-shadow: none;
    /* Optional pulse effect */
    animation: pulse-gray 2s infinite;
}

@keyframes pulse-gray {
    0% { background-color: #95a5a6; }
    50% { background-color: #7f8c8d; }
    100% { background-color: #95a5a6; }
}
.result-ad-container {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 15px;
    padding: 20px;
    margin-top: 25px;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.result-ad-flex {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 10px;
}

.ad-text h4 {
    margin: 0 0 5px 0;
    color: #2c3e50;
}

.ad-text p {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 12px;
    line-height: 1.4;
}

.result-ad-container img {
    width: 70px;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Make sure the badge looks consistent */
.result-ad-container .badge {
    font-size: 0.65rem;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: bold;
    text-transform: uppercase;
}
.site-footer {
    background-color: #2c3e50;
    color: white;
    padding: 40px 20px;
    text-align: center;
    margin-top: 50px;
}

.footer-links {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.footer-links a {
    color: #3498db;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #ecf0f1;
    text-decoration: underline;
}

.disclosure {
    line-height: 1.4;
    opacity: 0.8;
}
.product-card {
    transition: transform 0.3s ease, opacity 0.3s ease;
    animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Optional: Fix for the Badge you added in HTML */
.badge {
    background: #e74c3c;
    color: white;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 5px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}
/* Ensure the form fills the screen on mobile */
@media (max-width: 600px) {
    .form-wrapper {
        margin: 10px;
        border-radius: 8px;
    }
}
/* Container for the iframe */
.form-wrapper {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden; /* This stops the outer container from scrolling */
}

/* The actual iframe */
.form-wrapper iframe {
    width: 100%;
    /* Increase this value until the "Internal" scrollbar disappears */
    height: 1000px; 
    border: none;
    overflow: hidden; /* Forces the iframe to hide its own scrollbar */
}

/* --- MOBILE HEADER REPAIR (SCROLLABLE & SMALL) --- */
@media (max-width: 768px) {
    .navbar {
        position: static !important; /* Forces the header to scroll away */
        flex-direction: column; 
        padding: 10px 3% !important; /* Smaller vertical footprint */
        gap: 10px;
        height: auto;
    }

    #mainLogo {
        height: 50px !important; /* Reduced size for mobile */
        width: auto;
    }

    .nav-links {
        width: 100%;
        justify-content: center;
        gap: 12px;
        flex-wrap: wrap; /* Standard wrapping instead of PWA swiping */
        padding: 5px 0;
        overflow: visible; /* Removes PWA scroll behavior */
        white-space: normal; 
    }

    .nav-links a {
        font-size: 0.85rem;
        padding: 6px 12px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 5px;
    }

    .search-box {
        width: 100%;
        order: 2; /* Keeps search between logo and links */
    }

    .search-box input {
        width: 100%;
    }
}

/* Remove the specific 600px swiping logic that was here before */
@media (max-width: 600px) {
    .nav-links {
        display: flex;
        flex-wrap: wrap; 
        justify-content: center;
    }
}

/* --- STOREFRONT LAYOUT --- */

.storefront-container {
    font-family: 'Poppins', sans-serif;
    /* Change from fixed pixels to percentage for full width */
    max-width: 100%; 
    margin: 20px auto;
    padding: 10px;
    background-color: transparent; /* Let the body color show through */
}

.product-grid {
    display: grid;
    /* This setup ensures 1 column on mobile, and up to 5 or 6 on big screens */
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); 
    gap: 25px;
    width: 100%;
}

/* --- CARD UNIFORMITY --- */

.product-card {
    background: white;
    padding: 20px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Pushes button to the bottom */
    height: 100%; /* Makes all cards in a row the same height */
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    text-align: center;
}

.product-card img {
    width: 100%;
    height: 200px; /* Fixed height for image area */
    object-fit: contain; /* Prevents book covers from cropping */
    margin-bottom: 15px;
}

.amazon-btn {
    width: 100%;
    margin-top: auto; /* Ensures the button sticks to the bottom */
}
.tab-btn:active, .sub-btn:active, .amazon-btn:active {
    transform: scale(0.95);
    transition: 0.1s;
}
@media (max-width: 768px) {
    .tab-menu {
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 10px;
        justify-content: flex-start; /* Better for swiping */
        -webkit-overflow-scrolling: touch; /* Smooth swiping on iPhone */
        gap: 10px;
    }

    .tab-menu::-webkit-scrollbar {
        display: none; /* Keep it clean without scrollbars */
    }

    .tab-btn, .sub-tag {
        flex: 0 0 auto; /* Prevents buttons from shrinking */
    }
}

/* --- MOBILE HEADER REPAIR --- */
@media (max-width: 768px) {
    .navbar {
        position: static
        flex-direction: column; /* Stack items vertically */
        padding: 8px 3%;
        gap: 8px; /* Add space between logo, search, and menu */
        height: auto; /* Allow navbar to grow with content */
    }

    .nav-links {
        width: 100%;
        justify-content: center; /* Center the menu items */
        gap: 15px;
        flex-wrap: wrap; /* If too many items, they go to the next line */
        padding: 5px 0;
    }

    .nav-links a {
        font-size: 0.85rem; /* Slightly smaller text for mobile */
        padding: 5px 10px;
        background: rgba(255, 255, 255, 0.05); /* Subtle button look */
        border-radius: 5px;
    }

    .search-box {
        width: 100%; /* Make search bar full width on mobile */
        order: 2; /* Move search below the logo but above the menu */
    }

    .search-box input {
        width: 100%; /* Input takes all space */
    }

    /* Hide complex dropdowns on mobile to prevent overlap */
    .dropdown-menu {
        position: static; /* Makes it part of the normal flow */
        width: 100%;
        box-shadow: none;
        background: #34495e; /* Darker contrast for mobile */
    }
}

@media (max-width: 600px) {
    .nav-links {
        display: flex;
        overflow-x: auto; /* Enable side-swiping */
        white-space: nowrap;
        width: 100%;
        padding: 10px 0;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Hide scrollbar */
    }

    .nav-links::-webkit-scrollbar {
        display: none;
    }

    .nav-links li {
        flex: 0 0 auto; /* Stop items from shrinking */
    }
}
.navbar {
    overflow: visible !important; /* Ensures dropdowns can be seen */
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

#mainLogo {
    height: 80px;
    width: auto;
    cursor: pointer;
    object-fit: contain;
    transition: 0.3s;
}
.notes-nav {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
}

.filter-group label {
    font-weight: bold;
    margin-right: 10px;
    color: #2c3e50;
}

#topic-filter {
    padding: 8px 15px;
    border-radius: 5px;
    border: 1px solid #ddd;
    font-size: 1rem;
    outline: none;
    cursor: pointer;
}

#topic-filter:focus {
    border-color: #3498db;
}
/* Example CSS for your menu */
.navbar ul {
    list-style: none;
    display: flex;
    background: #2c3e50;
    padding: 10px;
}

.navbar ul li a {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
}

.navbar ul li a:hover {
    background: #3498db;
    border-radius: 5px;
}
/* --- 11. NOTES LIBRARY STYLES (REFINED) --- */
.notes-container {
    padding: 40px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.notes-grid {
    display: grid !important; /* Force Grid layout */
    /* This creates as many columns as possible, at least 300px wide */
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); 
    gap: 25px;
    padding: 20px 0;
}

/* Card styling to ensure they look uniform */
.note-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    border-left: 6px solid #3498db;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 200px;
}
/* Forces the grid to behave correctly */
#notes-grid {
    display: grid !important;
    /* This tells the browser: "Make columns at least 300px wide, 
       but if there is extra space, fill it up." */
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important;
    gap: 25px !important;
    width: 100% !important;
    margin: 30px 0;
}

/* Ensures the cards don't stretch weirdly */
.note-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%; /* Makes all cards in a row equal height */
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
/* Table Layout (2 columns) */
@media (max-width: 992px) {
    #notes-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)) !important;
    }
}

/* Mobile Layout (Back to 1 column) */
@media (max-width: 600px) {
    #notes-grid {
        grid-template-columns: 1fr !important;
    }
}
/* Ensure the outer container allows full width */
.notes-container {
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 20px 5% !important;
    display: block !important; /* Overrides the flex-column from body */
}

/* Force the grid to calculate columns based on the container width */
#notes-grid {
    display: grid !important;
    /* This creates 3 columns by default on large screens */
    grid-template-columns: repeat(3, 1fr) !important; 
    gap: 25px !important;
}

/* --- NOTES LIBRARY (MOBILE OPTIMIZED) --- */
.notes-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 5%;
}

#notes-grid {
    display: grid !important;
    /* Desktop: 3 columns */
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px !important;
}

/* Tablet: 2 columns */
@media (max-width: 992px) {
    #notes-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Mobile: Single column for maximum readability */
@media (max-width: 600px) {
    #notes-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    .note-card {
        min-height: auto !important; /* Allow card to shrink/grow based on text */
        padding: 15px !important;
    }
    
    .note-card h3 {
        font-size: 1.1rem !important;
    }
}

/* style.css */
:root {
    --primary-green: #2e7d32;
    --light-bg: #f9fbf9;
    --accent-orange: #e67e22;
    --dark-text: #2c3e50;
    --white: #ffffff;
}

body {
    background-color: #f0f2f0;
    font-family: 'Poppins', sans-serif; /* A clean, modern font */
    color: var(--dark-text);
    margin: 0;
    padding: 20px;
}

.story-card {
    max-width: 750px;
    margin: 40px auto;
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
}
/* Image styling inside the card */
.story-card img {
    width: 100%;
    height: 200px;
    object-fit: cover; /* Ensures image isn't stretched */
    border-bottom: 3px solid #f1f8e9;
}

.story-header h1 {
    color: var(--primary-green);
    font-size: 2.2rem;
    text-align: center;
    border-bottom: 3px solid var(--light-bg);
    padding-bottom: 15px;
}

.story-content {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #444;
}

.story-image {
    width: 100%;
    height: auto;
    border-radius: 15px;
    margin: 25px 0;
    border: 5px solid var(--light-bg);
}

/* Quiz Styling */
.interactive-quiz {
    background-color: var(--light-bg);
    border: 2px solid #e0e0e0;
    padding: 25px;
    border-radius: 12px;
    margin-top: 40px;
}

.quiz-item {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.ans-btn {
    background: var(--accent-orange);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.ans-btn:hover {
    background: #d35400;
    transform: scale(1.02);
}

.hidden-answer {
    display: none;
    margin-top: 15px;
    padding: 12px;
    background: #d4edda;
    border-radius: 8px;
    color: #155724;
    font-weight: 500;
}
:root {
    --primary-color: #2e7d32; /* Deep Green */
    --accent-color: #f1c40f;  /* Yellow for visibility */
    --text-dark: #333;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    background-color: #f9f9f9;
}

.hero-banner {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../assets/images/hero-bg.jpg');
    background-size: cover;
    color: white;
    padding: 100px 20px;
    text-align: center;
}

.cta-btn {
    display: inline-block;
    padding: 12px 25px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin: 10px;
    font-weight: 600;
}

.cta-btn.secondary {
    background: transparent;
    border: 2px solid white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

/* Prevents text selection across the entire site */
body {
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none;      /* IE 10 and 11 */
    user-select: none;          /* Standard syntax */
}

/* Optional: Allow selection in search boxes so students can still type */
input, textarea {
    -webkit-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

@media print {
    body { display: none !important; }
}