:root {
    --font-main: 'Inter', sans-serif;
    --font-game: 'Press Start 2P', cursive;
    --color-primary: #3B82F6;
    --color-primary-dark: #1D4ED8;
    --color-primary-light: #93C5FD;
    --color-background: #F3F4F6;
    --color-card-bg: #FFFFFF;
    --color-accent: #10B981;
    --color-text: #1F2937;
    --color-subtext: #6B7280;
    --color-red: #EF4444;
    --color-green: #10B981;
    /* Legacy support */
    --color-pumpkin: #3B82F6;
    --color-pumpkin-dark: #1D4ED8;
    --color-blue: #3B82F6;
}

* {
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html, body {
    min-height: 100%;
    width: 100%;
    font-family: var(--font-main);
    background-color: transparent;
    color: var(--color-text);
    overflow-x: hidden;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0;
}

/* Make media elements responsive and prevent horizontal overflow */
img, video, iframe {
    max-width: 100%;
    height: auto;
    display: block;
}

#app-container, main, section, .page {
    overflow-x: hidden;
    max-width: 100%;
}

.features-section,
.stats-section,
.hero-section,
.promotional-section,
.study-tools-section,
.objectives-page-container,
.objectives-hero-section,
.lessons-page-container,
.references-grid,
.knowledge-hero,
.about-hero,
.about-mission-vision,
.games-page-container {
    max-width: 100%;
    overflow-x: hidden;
}

/* --- Global Elements --- */

.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    background-color: var(--color-background);
}

.video-background video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    display: block;
    opacity: 1;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: var(--color-card-bg);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    z-index: 1000;
}

.navbar-logo img {
    height: 50px;
    width: auto;
    transition: all 0.3s ease;
}

.navbar-logo:hover img {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 0 10px rgba(255, 117, 24, 0.5));
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.navbar-links ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.navbar-links a, .nav-link, #more-menu-btn {
    text-decoration: none;
    color: var(--color-text);
    font-weight: 600;
    font-size: 1rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.navbar-links a:hover, .nav-link:hover, #more-menu-btn:hover {
    transform: translateY(-2px);
    background: var(--color-primary-light);
    color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

#more-menu-btn {
    font-size: 1.5rem;
    padding: 0.25rem 0.75rem;
    line-height: 1;
}

.more-dropdown {
    position: absolute;
    top: 60px;
    right: 2rem;
    background: var(--color-card-bg);
    backdrop-filter: blur(20px);
    border-radius: 15px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    display: none; /* Hidden by default */
    flex-direction: column;
    gap: 0.5rem;
    z-index: 1001;
    width: 250px;
}

.more-dropdown.active {
    display: flex;
}

.more-dropdown a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    /* Placeholder for icons */
}

.more-dropdown a::before {
    content: '●'; /* Placeholder for icons */
    font-size: 0.8rem;
    color: var(--color-primary);
}

.footer {
    position: relative;
    width: 100%;
    background: var(--color-card-bg);
    backdrop-filter: blur(15px);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding: 0;
    margin-top: auto;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 2rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-column h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.footer-column p {
    color: var(--color-subtext);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 0.75rem;
    color: var(--color-subtext);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-column ul li a {
    color: var(--color-subtext);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: var(--color-primary);
    transform: translateX(5px);
}

/* Social Media Icons */
.social-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

.social-icon {
    color: var(--color-subtext);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.social-link:hover .social-icon {
    color: var(--color-primary);
    transform: scale(1.2);
}

.social-link:hover {
    transform: translateX(5px);
}

/* Contact Info Icons */
.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

.contact-icon {
    color: var(--color-subtext);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.contact-item:hover .contact-icon {
    color: var(--color-primary);
    transform: scale(1.15);
}

.contact-item:hover {
    transform: translateX(3px);
}

.footer-column h3:hover {
    color: var(--color-primary);
    transform: translateX(3px);
    transition: all 0.3s ease;
}

.footer-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding: 1rem 2rem;
    text-align: center;
    background: var(--color-background);
}

.footer-bottom p {
    margin: 0;
    color: var(--color-subtext);
    font-size: 0.85rem;
}

/* Scroll to Top Button */
.scroll-to-top-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    background: #60A5FA;
    border: none;
    border-radius: 16px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(96, 165, 250, 0.4);
    transition: all 0.3s ease;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    pointer-events: none;
}

.scroll-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.scroll-to-top-btn:hover {
    background: #3B82F6;
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(96, 165, 250, 0.5);
}

.scroll-to-top-btn:active {
    transform: translateY(-2px);
}

.scroll-to-top-btn svg {
    width: 24px;
    height: 24px;
}

@media (max-width: 768px) {
    .scroll-to-top-btn {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 48px;
        height: 48px;
    }
    
    .scroll-to-top-btn svg {
        width: 20px;
        height: 20px;
    }
}

/* --- Page Container --- */
#app-container {
    width: 100%;
    min-height: calc(100vh - 70px);
    padding-top: 70px; /* Navbar height */
    padding-bottom: 0;
    display: flex;
    flex-direction: column;
}

.page {
    width: 100%;
    min-height: calc(100vh - 70px);
    padding: 2rem;
    display: none; /* All pages hidden by default */
    animation: fadeIn 0.5s ease;
    flex: 1;
    position: relative;
    overflow: hidden;
    background-color: transparent;
}

.page.active {
    display: block;
}

/* Animation Keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes cardFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Animation Classes - used with scroll-based reveal */
.animate-fade-in,
.animate-slide-up,
.animate-slide-up-delay,
.animate-fade-in-delay,
.animate-card {
    opacity: 0;
    animation-play-state: paused;
}

.animate-fade-in.in-view {
    animation: fadeIn 1s ease-out both;
    animation-play-state: running;
}

.animate-slide-up.in-view {
    animation: slideUp 1s ease-out 0.3s both;
    animation-play-state: running;
}

.animate-slide-up-delay.in-view {
    animation: slideUp 1s ease-out 0.6s both;
    animation-play-state: running;
}

.animate-fade-in-delay.in-view {
    animation: fadeIn 1s ease-out 0.9s both;
    animation-play-state: running;
}

.animate-card.in-view {
    animation: fadeIn 0.8s ease-out both;
    animation-play-state: running;
}

.animate-card:nth-child(1) {
    animation-delay: 0.2s;
}

.animate-card:nth-child(2) {
    animation-delay: 0.4s;
}

.animate-card:nth-child(3) {
    animation-delay: 0.6s;
}

.animate-counter {
    animation: fadeIn 0.8s ease-out both;
    opacity: 0;
}

.animate-counter:nth-child(1) {
    animation-delay: 0.1s;
}

.animate-counter:nth-child(2) {
    animation-delay: 0.2s;
}

.animate-counter:nth-child(3) {
    animation-delay: 0.3s;
}

.animate-counter:nth-child(4) {
    animation-delay: 0.4s;
}

/* --- iOS 26 Liquid Glass Style --- */
.glass-box, .glass-modal, .glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    padding: 1.5rem;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        0 2px 8px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    position: relative;
    overflow: hidden;
}

/* Liquid Glass refraction effect */
.glass-box::before,
.glass-modal::before,
.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.8) 50%,
        transparent
    );
    pointer-events: none;
}

/* Enhanced hover effect for Liquid Glass */
.glass-box:hover,
.glass-modal:hover,
.glass-card:hover {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(45px) saturate(200%);
    -webkit-backdrop-filter: blur(45px) saturate(200%);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.15),
        0 4px 12px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    transform: translateY(-2px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

h1, h2, h3, h4 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--color-text);
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }

/* --- Utility Classes --- */
.centered-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 100%;
}

.scrollable {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 10px;
}

.scrollable::-webkit-scrollbar {
    width: 8px;
}
.scrollable::-webkit-scrollbar-thumb {
    background-color: var(--color-pumpkin);
    border-radius: 4px;
}
.scrollable::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.2);
    border-radius: 4px;
}

.d-flex { display: flex; }
.gap-2 { gap: 2rem; }
.w-100 { width: 100%; }
.text-center { text-align: center; }

/* --- Buttons --- */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
}
.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--color-card-bg);
    color: var(--color-text);
    border: 1px solid rgba(0, 0, 0, 0.2);
}
.btn-secondary:hover {
    background: var(--color-primary-light);
    border-color: var(--color-primary);
}

.btn-tertiary {
    background: #E5E7EB;
    color: var(--color-text);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.btn-tertiary:not(:disabled) {
    background: #F3F4F6;
    color: var(--color-text);
    border-color: var(--color-primary);
    cursor: pointer;
}

.btn-tertiary:not(:disabled):hover {
    background: var(--color-primary-light);
    border-color: var(--color-primary);
    transform: translateY(-2px);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #E5E7EB !important;
    color: #9CA3AF !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

.translation-toggle-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    /* Two-tone button */
    background: linear-gradient(to right, var(--color-primary) 50%, var(--color-primary-dark) 50%);
    background-size: 200% 100%;
    background-position: left bottom;
    color: white;
    margin-top: 1rem;
}

.translation-toggle-btn:hover {
     background-position: right bottom;
}

.next-btn {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    font-size: 2rem;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* --- Modals --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 2000;
}
.modal-overlay.active {
    display: flex;
}

.modal-content {
    position: relative;
    max-width: 900px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-close-btn {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    color: var(--color-text);
    cursor: pointer;
    border: none;
    background: none;
}

/* --- Page Specific Styles --- */

/* Home */
#page-home {
    padding: 0;
    overflow-y: auto;
    position: relative;
    overflow-x: hidden;
}

/* Hero Section */
.hero-section {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    position: relative;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    z-index: 1;
    position: relative;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 2rem;
    color: var(--color-text);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.hero-description {
    font-size: 2rem;
    color: var(--color-text);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
}

.hero-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
}

/* Promotional Section */
.promotional-section {
    padding: 4rem 2rem;
    background: var(--color-background);
    max-width: 1400px;
    margin: 0 auto;
}

.promotional-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 2rem;
}

.promotional-left {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.promotional-headline {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.2;
    margin: 0;
}

.highlight-pink {
    background: rgba(255, 182, 193, 0.3);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.promotional-subtext {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.6;
    margin: 0;
}

.highlight-blue {
    background: rgba(59, 130, 246, 0.2);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    color: var(--color-primary);
}

.promotional-cta {
    align-self: flex-start;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}

.promotional-right {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.stat-card {
    background: var(--color-card-bg);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.stat-card-blue {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(255, 255, 255, 1));
}

.stat-card-yellow {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(255, 255, 255, 1));
}

.stat-card-purple {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(255, 255, 255, 1));
}

.stat-number-large {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.stat-description {
    font-size: 0.95rem;
    color: var(--color-text);
    margin-bottom: 1rem;
    font-weight: 500;
}

.stat-visual {
    margin-top: 1rem;
    position: relative;
}

/* Progress Bar */
.progress-bar {
    display: flex;
    height: 12px;
    border-radius: 6px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.05);
}

.progress-segment {
    height: 100%;
}

.progress-green {
    background: var(--color-accent);
}

.progress-yellow {
    background: #FBBF24;
}

.progress-red {
    background: #EF4444;
}

/* Bar Chart */
.bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    height: 60px;
    position: relative;
}

.bar {
    width: 30px;
    border-radius: 4px 4px 0 0;
    transition: height 0.3s ease;
}

.bar-yellow {
    background: #FBBF24;
}

.bar-green {
    background: var(--color-accent);
}

.stat-icon {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
}

.stat-icon-small {
    position: absolute;
    right: 10px;
    top: 10px;
    font-size: 1.5rem;
}

/* Semi-circle Progress */
.semi-circle-progress {
    position: relative;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-svg {
    width: 100%;
    height: 100%;
}

.progress-arc {
    stroke-linecap: round;
    transition: stroke-dashoffset 0.5s ease;
}

.promotional-disclaimer {
    text-align: right;
    font-size: 0.75rem;
    color: var(--color-subtext);
    font-style: italic;
    margin-top: 1rem;
    padding-right: 1rem;
}

/* Responsive Design for Promotional Section */
@media (max-width: 968px) {
    .promotional-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .promotional-headline {
        font-size: 2.5rem;
    }
    
    .promotional-subtext {
        font-size: 1.1rem;
    }
    
    .promotional-cta {
        align-self: stretch;
        text-align: center;
    }
    
    .promotional-disclaimer {
        text-align: center;
        padding-right: 0;
    }
}

@media (max-width: 640px) {
    .promotional-section {
        padding: 2rem 1rem;
    }
    
    .promotional-headline {
        font-size: 2rem;
    }
    
    .promotional-subtext {
        font-size: 1rem;
    }
    
    .stat-number-large {
        font-size: 2rem;
    }
}

/* Study Tools Section */
.study-tools-section {
    padding: 4rem 2rem;
    background: var(--color-card-bg);
    max-width: 1400px;
    margin: 0 auto;
}

.study-tools-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.study-tools-left {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.study-tools-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.3;
    margin: 0;
}

.highlight-purple {
    background: rgba(139, 92, 246, 0.15);
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    display: inline-block;
}

.study-tools-description {
    font-size: 1.1rem;
    color: var(--color-subtext);
    line-height: 1.6;
    margin: 0;
}

.study-tools-description em {
    font-style: italic;
    color: var(--color-primary);
    font-weight: 600;
}

.study-tools-cta {
    align-self: flex-start;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}

.study-tools-right {
    display: flex;
    flex-direction: column;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
    max-height: 500px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.tools-grid::-webkit-scrollbar {
    width: 6px;
}

.tools-grid::-webkit-scrollbar-thumb {
    background-color: var(--color-primary);
    border-radius: 3px;
}

.tools-grid::-webkit-scrollbar-track {
    background: var(--color-background);
    border-radius: 3px;
}

.tool-button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    background: var(--color-background);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50px;
    text-decoration: none;
    color: var(--color-text);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
}

.tool-button:hover {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.2);
}

.tool-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.tool-text {
    flex: 1;
}

/* Responsive Design for Study Tools Section */
@media (max-width: 968px) {
    .study-tools-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .study-tools-title {
        font-size: 2rem;
    }
    
    .study-tools-cta {
        align-self: stretch;
        text-align: center;
    }
    
    .tools-grid {
        max-height: none;
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
}

/* Progress & Insights Section */
.progress-insights-section {
    background: linear-gradient(135deg, #1D2748, #1D4ED8);
    padding: 5rem 2rem;
    color: #F9FAFB;
}

.progress-insights-container {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: center;
}

.progress-insights-left {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto auto;
    gap: 1.5rem;
}

.progress-card {
    background: rgba(15, 23, 42, 0.9);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.6);
    color: #E5E7EB;
}

.quiz-summary-card {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
}

.progress-overview-card {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
}

.insights-card {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
}

.quiz-header {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.quiz-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #A5B4FC;
}

.quiz-lesson {
    font-size: 0.85rem;
    color: #E5E7EB;
}

.quiz-question {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #F9FAFB;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.quiz-option-btn {
    width: 100%;
    text-align: left;
    padding: 0.6rem 0.75rem;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    background: rgba(15, 23, 42, 0.9);
    color: #E5E7EB;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.quiz-option-correct {
    border-color: #22C55E;
    background: rgba(22, 163, 74, 0.15);
}

.quiz-footer {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.quiz-nav-btn {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: none;
    background: #E5E7EB;
    color: #111827;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.progress-title {
    font-size: 1rem;
    color: #E5E7EB;
    margin-bottom: 1rem;
}

.progress-overview-content {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    flex-wrap: wrap;
    max-width: 100%;
}

.progress-circle-wrapper {
    flex-shrink: 0;
}

.progress-circle {
    position: relative;
    width: 140px;
    height: 140px;
}

.progress-circle svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.progress-bg {
    fill: none;
    stroke: rgba(148, 163, 184, 0.2);
    stroke-width: 10;
}

.progress-value {
    fill: none;
    stroke: #60A5FA;
    stroke-width: 10;
    stroke-linecap: round;
    stroke-dasharray: 301.59;
    stroke-dashoffset: 66;
}

.progress-circle-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.progress-percent {
    font-size: 1.8rem;
    font-weight: 700;
}

.progress-label {
    font-size: 0.8rem;
    opacity: 0.8;
}

.progress-breakdown {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.85rem;
    min-width: 0;
}

.progress-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.progress-item span {
    white-space: normal;
    word-wrap: break-word;
}

.quiz-option-btn:hover {
    border-color: #60A5FA;
    background: rgba(37, 99, 235, 0.25);
    transform: translateY(-1px);
}

.progress-item .value {
    font-weight: 600;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 0.3rem;
}

.dot-lessons {
    background: #22C55E;
}

.dot-games {
    background: #F97316;
}

.dot-vocab {
    background: #FACC15;
}

.insights-title {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: #FFFFFF;
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    font-size: 0.85rem;
}

.insights-column h4 {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: #FFFFFF;
}

.insights-column ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.insights-column li {
    position: relative;
    padding-left: 1rem;
}

.insights-column li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #A5B4FC;
}

.progress-insights-right {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.progress-headline {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.15;
}

.progress-description {
    font-size: 1rem;
    max-width: 32rem;
}

.progress-benefits {
    list-style: none;
    padding-left: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.progress-benefits li {
    position: relative;
    padding-left: 1.4rem;
}

.progress-benefits li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #22C55E;
    font-weight: 700;
}

.progress-cta {
    align-self: flex-start;
    padding-inline: 2.5rem;
}

@media (max-width: 1024px) {
    .progress-insights-container {
        grid-template-columns: minmax(0, 1fr);
    }

    .progress-insights-right {
        order: -1;
    }
}

@media (max-width: 768px) {
    .progress-insights-section {
        padding: 3.5rem 1.25rem;
    }

    .progress-insights-left {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto auto auto;
    }

    .quiz-summary-card,
    .progress-overview-card,
    .insights-card {
        grid-column: 1 / -1;
        grid-row: auto;
    }

    .progress-headline {
        font-size: 2rem;
    }
}

@media (max-width: 640px) {
    .study-tools-section {
        padding: 2rem 1rem;
    }
    
    .study-tools-title {
        font-size: 1.75rem;
    }
    
    .study-tools-description {
        font-size: 1rem;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .tool-button {
        justify-content: center;
    }
}

/* Features Section */
.features-section {
    padding: 4rem 2rem;
    background: var(--color-background);
}

.section-title {
    text-align: center;
    font-size: 2.25rem;
    color: var(--color-text);
    margin-bottom: 3rem;
    font-weight: 700;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    text-align: center;
    padding: 2.5rem 2rem;
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    background: var(--color-card-bg);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.2);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.2) rotate(5deg);
}

.feature-card h3 {
    font-size: 1.25rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.feature-card h4 {
    font-size: 1.1rem;
    color: var(--color-text);
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--color-subtext);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.feature-link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.feature-link:hover {
    color: var(--color-primary-dark);
    transform: translateX(10px);
}

/* Stats Section */
.stats-section {
    padding: 4rem 2rem;
    background: var(--color-background);
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: var(--color-card-bg);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.stat-item:hover {
    transform: translateY(-5px);
    background: var(--color-card-bg);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.2);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--color-subtext);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Objectives */
/* Objectives Page - Card Design */
.objectives-page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.title-translate{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding-bottom: 8px;
}

.objectives-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text);
    text-align: center;
    width: 100%;
}

.objectives-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.objective-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    padding: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.6s ease-out both;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        0 2px 8px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.objective-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.8) 50%,
        transparent
    );
    pointer-events: none;
}

.objective-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.objective-card:hover::after {
    opacity: 1;
}

.objective-card:nth-child(odd) {
    background: var(--color-card-bg);
}

.objective-card:nth-child(even) {
    background: var(--color-card-bg);
}

.objective-card:nth-child(1) {
    animation-delay: 0.1s;
}

.objective-card:nth-child(2) {
    animation-delay: 0.2s;
}

.objective-card:nth-child(3) {
    animation-delay: 0.3s;
}

.objective-card:nth-child(4) {
    animation-delay: 0.4s;
}

.objective-card:nth-child(5) {
    animation-delay: 0.5s;
}

.objective-card:hover {
    transform: translateY(-8px) scale(1.02);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(45px) saturate(200%);
    -webkit-backdrop-filter: blur(45px) saturate(200%);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.15),
        0 4px 12px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.7),
        0 0 0 1px rgba(59, 130, 246, 0.1);
}

.objective-card-icon {
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 1rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
    display: inline-block;
}

.objective-card:hover .objective-card-icon {
    transform: scale(1.15) rotate(5deg);
}

.objective-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.5rem;
    text-align: center;
}

.objective-card-subtitle {
    font-size: 0.95rem;
    color: var(--color-subtext);
    text-align: center;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.objective-card-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.objective-card-list li {
    padding: 0.6rem 0;
    padding-left: 1.2rem;
    color: var(--color-text);
    font-size: 0.95rem;
    line-height: 1.6;
    position: relative;
}

.objective-card-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-size: 1.2rem;
    font-weight: bold;
}


.translation-toggle-btn {
    padding: 0.75rem 2rem;
    background: var(--color-primary);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.translation-toggle-btn:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* Objectives Hero Section - Two Column Design */
.objectives-hero-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 3rem 0;
    padding: 2rem 0;
}

/* Left: Interactive Objectives Card */
.objectives-interactive-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        0 2px 8px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.objectives-interactive-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.8) 50%,
        transparent
    );
    pointer-events: none;
    z-index: 1;
}

.objectives-interactive-card:hover {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(45px) saturate(200%);
    -webkit-backdrop-filter: blur(45px) saturate(200%);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.15),
        0 4px 12px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    transform: translateY(-2px);
}

.objectives-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.objectives-card-avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.objectives-avatar-icon {
    font-size: 2rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.objectives-card-title-wrapper {
    flex: 1;
}

.objectives-card-main-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0;
}

.objectives-card-suggestions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.objectives-suggestion-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: #fef3c7;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    font-size: 0.95rem;
    color: var(--color-text);
    font-family: inherit;
}

.objectives-suggestion-btn:hover {
    background: #fde68a;
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.suggestion-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.objectives-card-input {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.objectives-input-field {
    flex: 1;
    padding: 0.875rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    background: #f9fafb;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--color-text);
    transition: all 0.3s ease;
}

.objectives-input-field:focus {
    outline: none;
    border-color: var(--color-primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.objectives-send-btn {
    width: 44px;
    height: 44px;
    background: var(--color-primary);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.objectives-send-btn:hover {
    background: var(--color-primary-dark);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.objectives-send-btn:active {
    transform: scale(0.95);
}

/* Chat Messages Area */
.objectives-chat-messages {
    max-height: 300px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.objectives-chat-message {
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.5;
    animation: fadeInMessage 0.3s ease-out;
}

.objectives-chat-message.user {
    background: var(--color-primary);
    color: white;
    align-self: flex-end;
    max-width: 80%;
    margin-left: auto;
}

.objectives-chat-message.assistant {
    background: #f3f4f6;
    color: var(--color-text);
    align-self: flex-start;
    max-width: 80%;
}

@keyframes fadeInMessage {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Right: Objectives Features Section */
.objectives-features-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.objectives-features-section .translation-button-container {
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: flex-start;
}

.objectives-features-title {
    font-size: 2rem;
    font-weight: 700;
    color: #6b21a8;
    margin: 0;
}

.objectives-features-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.objectives-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.08),
        0 1px 4px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.objectives-feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.8) 50%,
        transparent
    );
    pointer-events: none;
}

.objectives-feature-item:hover {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(45px) saturate(200%);
    -webkit-backdrop-filter: blur(45px) saturate(200%);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateX(8px) translateY(-2px);
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.12),
        0 2px 8px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.objectives-feature-icon {
    width: 48px;
    height: 48px;
    background: #f3f4f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.objectives-feature-item p {
    margin: 0;
    color: var(--color-text);
    font-size: 1rem;
    line-height: 1.6;
    flex: 1;
}

/* Responsive Design for Hero Section */
@media (max-width: 968px) {
    .objectives-hero-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .objectives-features-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 768px) {
    .objectives-interactive-card {
        padding: 1.5rem;
    }
    
    .objectives-card-main-title {
        font-size: 1.25rem;
    }
    
    .objectives-features-title {
        font-size: 1.5rem;
    }
    
    .objectives-feature-item {
        padding: 0.875rem;
    }
    
    .objectives-feature-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
}

/* Lessons */
#page-lessons .lesson-grid, #page-lesson1 .content-grid, #page-lesson2 .content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}
.lesson-card {
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    text-decoration: none;
    color: inherit;
}
.lesson-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
}

/* Lessons Page Redesign */
.lessons-page-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.lessons-page-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 3rem;
}

.lesson-showcase {
    margin-bottom: 4rem;
}

.lesson-showcase-container {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.lesson-video-panel {
    position: relative;
}

.video-panel-wrapper {
    background: var(--color-card-bg);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: visible;
}

.lesson-showcase-video {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    background: var(--color-background);
    border: 2px solid rgba(0, 0, 0, 0.1);
}

.video-decorations {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 2;
}

.decoration-star {
    font-size: 1.5rem;
    animation: float-star 3s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.decoration-star:nth-child(1) {
    animation-delay: 0s;
}

.decoration-star:nth-child(2) {
    animation-delay: 0.5s;
}

.decoration-star:nth-child(3) {
    animation-delay: 1s;
}

@keyframes float-star {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(180deg);
    }
}

.video-character {
    position: absolute;
    bottom: -30px;
    right: 20px;
    font-size: 3rem;
    animation: bounce-character 2s ease-in-out infinite;
    z-index: 2;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

@keyframes bounce-character {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.lesson-info-panel {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-block {
    background: var(--color-card-bg);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-block:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.info-block-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.info-block-description {
    font-size: 1rem;
    color: var(--color-text);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.info-block-illustration {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: var(--color-background);
    border-radius: 12px;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.illustration-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.illustration-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: pulse-icon 2s ease-in-out infinite;
}

@keyframes pulse-icon {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.illustration-bubbles {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.bubble {
    background: var(--color-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    animation: float-bubble 2s ease-in-out infinite;
}

.bubble:nth-child(1) {
    animation-delay: 0s;
}

.bubble:nth-child(2) {
    animation-delay: 0.5s;
}

@keyframes float-bubble {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.illustration-books {
    font-size: 1.5rem;
    opacity: 0.6;
}

.info-block-cta {
    padding: 0.875rem 2rem;
    font-size: 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
}

.info-block-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(59, 130, 246, 0.3);
}

/* Responsive Design for Lessons Page */
@media (max-width: 968px) {
    .lesson-showcase-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .video-panel-wrapper {
        order: 1;
    }
    
    .lesson-info-panel {
        order: 2;
    }
    
    .video-character {
        bottom: -20px;
        right: 10px;
        font-size: 2.5rem;
    }
    
    .lessons-page-title {
        font-size: 2rem;
    }
}

@media (max-width: 640px) {
    .lessons-page-container {
        padding: 1rem;
    }
    
    .lessons-page-title {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }
    
    .lesson-showcase {
        margin-bottom: 3rem;
    }
    
    .info-block {
        padding: 1.5rem;
    }
    
    .info-block-title {
        font-size: 1.5rem;
    }
    
    .video-panel-wrapper {
        padding: 1rem;
    }
    
    .decoration-star {
        font-size: 1.2rem;
    }
    
    .video-character {
        font-size: 2rem;
        bottom: -15px;
    }
}

/* Lesson 1 & 2 */
.content-box {
    padding: 1.5rem;
    background: var(--color-card-bg);
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.content-box ul {
    list-style-position: inside;
    font-size: 1.1rem;
}

.lesson-food-section {
    margin-top: 2.5rem;
}
.section-lead {
    margin-top: -0.5rem;
    color: var(--color-subtext);
}
.lesson-food-grid {
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}
.food-card {
    overflow: hidden;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}
.food-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
}
.food-content {
    padding: 1.2rem 1.4rem 1.4rem;
}
.food-content h4 {
    margin-bottom: 0.4rem;
}
.food-content p {
    margin-bottom: 0.9rem;
    color: var(--color-subtext);
}
.food-content ul {
    list-style: disc;
    padding-left: 1.2rem;
    color: var(--color-text);
}
.food-content ul li {
    margin-bottom: 0.3rem;
    font-size: 0.95rem;
}

.speaking-practice-panel {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: var(--color-card-bg);
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.speaking-hint {
    color: var(--color-subtext);
    margin-bottom: 1rem;
}
.speaking-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}
.speaking-controls .btn {
    flex: 1 1 140px;
    min-width: 120px;
}
.recording-status {
    color: var(--color-subtext);
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}
.recording-audio {
    width: 100%;
    margin-bottom: 0.9rem;
}
.speaking-rating {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 999px;
    padding: 0.75rem 1.25rem;
    font-weight: 600;
    text-align: center;
    color: var(--color-primary);
}

.speak-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}
.speak-btn svg {
    width: 24px;
    height: 24px;
    fill: white;
}

.video-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem auto 0;
    align-items: stretch;
    justify-content: center;
    max-width: 1100px;
    width: 100%;
}
.lesson-video {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: 100%;
    max-height: 360px;
    border-radius: 12px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    background: var(--color-background);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}
.lesson-video:focus {
    outline: 3px solid var(--color-primary);
    outline-offset: 3px;
}
@media (max-width: 900px) {
    .video-container {
        grid-template-columns: 1fr;
        max-width: 600px;
    }
}

/* Lesson Exercises */
.lesson-exercises {
    animation: fadeIn 0.6s ease-in;
}

.exercise-section {
    margin-bottom: 2rem;
}

.exercise-section h4 {
    color: var(--color-text);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.fill-blank-question,
.mcq-question {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fill-blank-question:hover,
.mcq-question:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.fill-blank-input {
    min-width: 120px;
    transition: all 0.3s ease;
}

.fill-blank-input:focus {
    outline: none;
    border-color: var(--color-primary-dark) !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.check-answer-btn,
.check-mcq-btn {
    transition: all 0.3s ease;
}

.check-answer-btn:hover,
.check-mcq-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

.check-answer-btn:active,
.check-mcq-btn:active {
    transform: translateY(0);
}

.answer-feedback,
.mcq-feedback {
    display: inline-block;
    transition: all 0.3s ease;
}

.mcq-question label {
    transition: all 0.2s ease;
}

.mcq-question label:hover {
    background: rgba(255, 255, 255, 0.1) !important;
}

.mcq-question input[type="radio"] {
    cursor: pointer;
}

@media (max-width: 768px) {
    .lesson-exercises {
        padding: 1.5rem !important;
    }
    
    .fill-blank-input {
        width: 100%;
        min-width: 100px;
    }
    
    .exercise-section h4 {
        font-size: 1.1rem;
    }
}

.video-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--color-background);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    color: var(--color-subtext);
    border: 2px dashed rgba(0, 0, 0, 0.2);
}

/* Lesson 2 Vocab */
.vocab-word {
    color: var(--color-primary); /* Light blue */
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}
.vocab-word.speaking {
    color: var(--color-primary-dark);
    text-decoration: underline;
}
.vocab-word:hover {
    color: var(--color-primary-light);
    text-decoration: underline;
}

#vocab-modal .modal-content {
    max-width: 500px;
    text-align: left;
    color: var(--color-text); /* Dark text for modal */
    background: var(--color-card-bg); /* Light background for modal */
    border-radius: 15px;
    padding: 2rem;
}
#vocab-modal .modal-close-btn {
    color: var(--color-text);
}
#vocab-word-text {
    font-size: 2rem;
    font-weight: bold;
    color: var(--color-primary);
}
#vocab-word-phonetic {
    font-size: 1.2rem;
    font-style: italic;
    color: #555;
}
#vocab-word-type {
    font-size: 1rem;
    font-weight: bold;
    color: #333;
    background: #ddd;
    padding: 0.25rem 0.5rem;
    border-radius: 5px;
    display: inline-block;
    margin: 0.5rem 0;
}
#vocab-word-audio-btn {
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    cursor: pointer;
    margin-left: 1rem;
}
#vocab-word-meaning, #vocab-word-extra {
    margin-top: 1rem;
    font-size: 1rem;
    color: var(--color-text);
}

/* About Us */
#page-about {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Hero Section */
.about-hero {
    margin: 2rem 0 4rem;
}

.about-hero-content {
    text-align: center;
    padding: 3rem 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.about-hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-hero-subtitle {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.about-hero-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-text);
    max-width: 800px;
    margin: 0 auto;
}

/* Mission & Vision */
.about-mission-vision {
    margin: 4rem 0;
}

.mission-vision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.mission-card,
.vision-card {
    padding: 2.5rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        0 2px 8px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mission-card::before,
.vision-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.8) 50%,
        transparent
    );
    pointer-events: none;
}

.mission-card:hover,
.vision-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(45px) saturate(200%);
    -webkit-backdrop-filter: blur(45px) saturate(200%);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.15),
        0 4px 12px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.mission-icon,
.vision-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
}

.mission-card h2,
.vision-card h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.mission-card p,
.vision-card p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-text);
}

/* Team Section */
.about-team {
    margin: 4rem 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--color-subtext);
    margin-bottom: 3rem;
}

#page-about .profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.profile-card {
    text-align: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        0 2px 8px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.8) 50%,
        transparent
    );
    pointer-events: none;
}

.profile-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(45px) saturate(200%);
    -webkit-backdrop-filter: blur(45px) saturate(200%);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.15),
        0 4px 12px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.profile-image-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.profile-card img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--color-pumpkin);
    display: block;
    margin: 0 auto;
}

.profile-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.profile-role {
    font-size: 1.1rem;
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.profile-details,
.profile-school {
    font-size: 0.95rem;
    color: var(--color-subtext);
    margin-bottom: 0.3rem;
}

.profile-bio {
    margin-top: 1rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-text);
    font-style: italic;
}

/* Values Section */
.about-values {
    margin: 4rem 0;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.value-card {
    padding: 2rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        0 2px 8px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.8) 50%,
        transparent
    );
    pointer-events: none;
}

.value-card:hover {
    transform: translateY(-8px) scale(1.02);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(45px) saturate(200%);
    -webkit-backdrop-filter: blur(45px) saturate(200%);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.15),
        0 4px 12px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.value-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    display: block;
    transition: transform 0.3s ease;
}

.value-card:hover .value-icon {
    transform: scale(1.2) rotate(5deg);
}

.value-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.value-card p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text);
}

/* Story Section */
.about-story {
    margin: 4rem 0;
}

.story-content {
    padding: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.story-content .section-title {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--color-primary);
}

.story-text {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--color-text);
}

.story-text p {
    margin-bottom: 1.5rem;
}

.story-text p:last-child {
    margin-bottom: 0;
}

/* Stats Section */
.about-stats {
    margin: 4rem 0;
}

.about-stats .stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.about-stats .stat-item {
    text-align: center;
    padding: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    #page-about {
        padding: 1rem;
    }

    .about-hero-title {
        font-size: 2rem;
    }

    .about-hero-subtitle {
        font-size: 1.2rem;
    }

    .about-hero-content {
        padding: 2rem 1.5rem;
    }

    .mission-vision-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .mission-card,
    .vision-card {
        padding: 2rem;
    }

    #page-about .profile-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .values-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .story-content {
        padding: 2rem 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .about-stats .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .about-hero-title {
        font-size: 1.75rem;
    }

    .about-stats .stats-container {
        grid-template-columns: 1fr;
    }
}

/* Knowledge */
/* Knowledge Page - Redesigned */
#page-knowledge {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* Knowledge Hero Section */
.knowledge-hero {
    text-align: center;
    padding: 3rem 2rem;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(16, 185, 129, 0.1));
}

.knowledge-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.knowledge-subtitle {
    font-size: 1.3rem;
    color: var(--color-text);
    font-weight: 400;
}

/* Knowledge Sections */
.knowledge-section {
    margin-bottom: 4rem;
}

.section-header {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--color-primary);
}

.section-icon {
    font-size: 2.5rem;
}

/* Vocabulary Grid */
.vocabulary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.vocab-card {
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.vocab-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(255, 117, 24, 0.3);
}

.vocab-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.vocab-header h3 {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin: 0;
}

.vocab-audio-btn {
    background: var(--color-primary);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, opacity 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
    pointer-events: auto;
    user-select: none;
    color: white;
}

.vocab-audio-btn:hover {
    transform: scale(1.1);
    background: var(--color-primary-dark);
}

.vocab-audio-btn:active {
    transform: scale(0.95);
}

.vocab-phonetic {
    color: var(--color-subtext);
    font-style: italic;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.vocab-meaning,
.vocab-example {
    margin-top: 0.8rem;
    line-height: 1.6;
    color: var(--color-text);
}

.vocab-meaning strong,
.vocab-example strong {
    color: var(--color-primary);
}

/* Video Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.video-card {
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    background: var(--color-background);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-info {
    padding: 1.5rem;
}

.video-info h3 {
    font-size: 1.3rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.video-info p {
    color: var(--color-text);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.video-link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.video-link:hover {
    color: var(--color-primary-dark);
}

/* Phrases Grid */
.phrases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.phrase-card {
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.phrase-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(255, 117, 24, 0.3);
}

.phrase-category {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(255, 117, 24, 0.3);
}

.phrase-category h3 {
    font-size: 1.3rem;
    color: var(--color-primary);
    margin: 0;
}

.phrase-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.phrase-item {
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 3px solid var(--color-primary);
}

.phrase-item strong {
    display: block;
    color: var(--color-primary);
    font-size: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.phrase-item p {
    color: var(--color-text);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
    opacity: 0.9;
}

/* Resources Grid */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.resource-card {
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    display: block;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(255, 117, 24, 0.3);
}

.resource-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    display: block;
}

.resource-card h3 {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 0.8rem;
}

.resource-card p {
    color: var(--color-text);
    line-height: 1.6;
}

/* Responsive Design for Knowledge Page */
@media (max-width: 768px) {
    .knowledge-title {
        font-size: 2rem;
    }
    
    .knowledge-subtitle {
        font-size: 1.1rem;
    }
    
    .section-header {
        font-size: 1.8rem;
    }
    
    .vocabulary-grid {
        grid-template-columns: 1fr;
    }
    
    .phrases-grid {
        grid-template-columns: 1fr;
    }
    
    .resources-grid {
        grid-template-columns: 1fr;
    }
}

/* Requirement Page */
#page-requirement {
    padding: 2rem;
    overflow: visible;
    position: relative;
    background: var(--color-background);
}

/* Circular Design for Requirements */
.requirement-circular-design-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.requirement-circular-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.requirement-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text);
    text-align: center;
    margin: 0 0 2rem 0;
}

.requirement-circular-container {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

/* Central Icon */
.requirement-central-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.central-icon-bg {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15), 0 4px 12px rgba(0, 0, 0, 0.1);
    animation: central-pulse 3s ease-in-out infinite;
    position: relative;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.central-icon-bg::after {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    background: inherit;
    opacity: 0.2;
    filter: blur(15px);
    z-index: -1;
    animation: central-glow 3s ease-in-out infinite;
}

@keyframes central-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes central-glow {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.1);
    }
}

.hardware-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.software-bg {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.central-icon-content {
    font-size: 4rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Orbital Icons */
.requirement-orbital-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.orbital-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    pointer-events: auto;
    z-index: 5;
    --radius: 140px;
    --angle: 0deg;
    /* Circular positioning */
    transform: translate(-50%, -50%) 
              rotate(var(--angle)) 
              translateY(calc(-1 * var(--radius)))
              rotate(calc(-1 * var(--angle)));
    animation: orbital-float 4s ease-in-out infinite;
}

.orbital-icon:nth-child(odd) {
    animation-delay: 0.5s;
}

@keyframes orbital-float {
    0%, 100% {
        transform: translate(-50%, -50%) 
                  rotate(var(--angle)) 
                  translateY(calc(-1 * var(--radius) + 0px))
                  rotate(calc(-1 * var(--angle)));
    }
    50% {
        transform: translate(-50%, -50%) 
                  rotate(var(--angle)) 
                  translateY(calc(-1 * var(--radius) - 8px))
                  rotate(calc(-1 * var(--angle)));
    }
}

/* Orbital Circles */
.orbital-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.orbital-circle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.orbital-circle:hover::before {
    width: 100%;
    height: 100%;
}

.orbital-circle:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.orbital-circle:hover .orbital-icon-content {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.orbital-icon-content {
    font-size: 2rem;
    color: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.orbital-icon-content svg {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Hardware Circle Colors */
.hardware-circle-1 {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.hardware-circle-2 {
    background: linear-gradient(135deg, #10b981, #059669);
}

.hardware-circle-3 {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.hardware-circle-4 {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

/* Software Circle Colors */
.software-circle-1 {
    background: linear-gradient(135deg, #d04423, #b83a1c);
}

.software-circle-2 {
    background: linear-gradient(135deg, #4285f4, #1a73e8);
}

.software-circle-3 {
    background: linear-gradient(135deg, #00c4cc, #00a8b0);
}

.software-circle-4 {
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
}

.software-circle-5 {
    background: linear-gradient(135deg, #e60023, #bd001c);
}

.software-circle-6 {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
}

/* Orbital Labels */
.orbital-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text);
    text-align: center;
    white-space: nowrap;
    padding: 0.25rem 0.5rem;
    background: var(--color-card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Responsive Design for Circular Layout */
@media (max-width: 968px) {
    .requirement-circular-design-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 2rem 1rem;
    }
    
    .requirement-circular-container {
        width: 350px;
        height: 350px;
    }
    
    .orbital-icon {
        --radius: 120px;
    }
    
    .orbital-circle {
        width: 70px;
        height: 70px;
    }
    
    .orbital-icon-content {
        font-size: 1.75rem;
    }
    
    .central-icon-bg {
        width: 100px;
        height: 100px;
    }
    
    .central-icon-content {
        font-size: 3.5rem;
    }
}

@media (max-width: 640px) {
    .requirement-circular-design-wrapper {
        padding: 1.5rem 0.75rem;
        gap: 2.5rem;
    }
    
    .requirement-section-title {
        font-size: 1.5rem;
    }
    
    .requirement-circular-container {
        width: 300px;
        height: 300px;
    }
    
    .orbital-icon {
        --radius: 100px;
    }
    
    .orbital-circle {
        width: 60px;
        height: 60px;
    }
    
    .orbital-icon-content {
        font-size: 1.5rem;
    }
    
    .orbital-label {
        font-size: 0.75rem;
        padding: 0.2rem 0.4rem;
    }
    
    .central-icon-bg {
        width: 90px;
        height: 90px;
    }
    
    .central-icon-content {
        font-size: 3rem;
    }
}

@media (max-width: 480px) {
    .requirement-circular-container {
        width: 280px;
        height: 280px;
    }
    
    .orbital-icon {
        --radius: 90px;
    }
    
    .orbital-circle {
        width: 55px;
        height: 55px;
    }
    
    .orbital-icon-content {
        font-size: 1.25rem;
    }
    
    .central-icon-bg {
        width: 80px;
        height: 80px;
    }
    
    .central-icon-content {
        font-size: 2.5rem;
    }
}

/* Requirement Presentation Style */
.requirement-presentation-container {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    background: transparent;
    position: relative;
    overflow: visible;
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.requirement-presentation-content {
    max-width: 1400px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 3rem 4rem;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.requirement-column {
    display: flex;
    flex-direction: column;
    padding: 0 2rem;
}

.requirement-column-title {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2.5rem;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
}

.requirement-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.requirement-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.requirement-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateX(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.requirement-software-column .requirement-item:hover {
    transform: translateX(-10px);
}

.requirement-item-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.requirement-item-icon svg {
    width: 100%;
    height: 100%;
}

.requirement-item-icon.software-icon {
    font-size: 1.8rem;
    font-weight: 700;
}

.requirement-item-icon.hardware-icon {
    font-size: 2.5rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

.requirement-item-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.3px;
}

/* Wave Separator */
.requirement-wave-separator {
    width: 80px;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 1rem;
    flex-shrink: 0;
}

.wave-svg {
    width: 100%;
    height: 100%;
    min-height: 500px;
    animation: wave-flow 4s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

@keyframes wave-flow {
    0%, 100% {
        transform: translateY(0) scaleY(1);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-15px) scaleY(1.05);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 968px) {
    .requirement-presentation-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2.5rem 2rem;
    }
    
    .requirement-wave-separator {
        width: 100%;
        height: 60px;
        margin: 1rem 0;
    }
    
    .wave-svg {
        width: 100%;
        height: 100%;
        min-height: auto;
        transform: rotate(90deg);
    }
    
    .requirement-column {
        padding: 0;
    }
    
    .requirement-column-title {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }
    
    .requirement-item {
        padding: 0.875rem 1.25rem;
    }
    
    .requirement-item:hover {
        transform: translateY(-5px);
    }
    
    .requirement-software-column .requirement-item:hover {
        transform: translateY(-5px);
    }
    
    .requirement-item-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .requirement-item-icon.hardware-icon {
        font-size: 2rem;
    }
    
    .requirement-item-name {
        font-size: 1.1rem;
    }
}

@media (max-width: 640px) {
    .requirement-presentation-container {
        padding: 2rem 1rem;
    }
    
    .requirement-presentation-content {
        padding: 2rem 1.5rem;
        gap: 1.5rem;
    }
    
    .requirement-column-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .requirement-list {
        gap: 1rem;
    }
    
    .requirement-item {
        padding: 0.75rem 1rem;
        gap: 1rem;
    }
    
    .requirement-item-icon {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    .requirement-item-icon.hardware-icon {
        font-size: 1.8rem;
    }
    
    .requirement-item-name {
        font-size: 1rem;
    }
}

.requirement-page-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent), var(--color-primary));
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-flow 5s linear infinite;
}

@keyframes gradient-flow {
    0% { background-position: 200% 50%; }
    100% { background-position: 0% 50%; }
}

.requirement-section {
    margin-bottom: 4rem;
}

.requirement-section-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
}

.section-icon {
    font-size: 2rem;
    display: inline-block;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.requirement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.requirement-card {
    text-align: center;
    padding: 2rem 1.5rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.requirement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s;
}

.requirement-card:hover::before {
    left: 100%;
}

.requirement-card:hover {
    transform: translateY(-10px) scale(1.05);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 40px rgba(255, 117, 24, 0.4);
}

.requirement-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
    transition: transform 0.4s ease;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
}

.requirement-card:hover .requirement-icon {
    transform: scale(1.2) rotate(5deg);
}

.software-icon {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.requirement-card h3 {
    font-size: 1.25rem;
    color: var(--color-text);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.requirement-card p {
    color: var(--color-subtext);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* Staggered animations for requirement cards */
.requirement-section:nth-of-type(1) .requirement-card:nth-child(1) {
    animation-delay: 0.1s;
}

.requirement-section:nth-of-type(1) .requirement-card:nth-child(2) {
    animation-delay: 0.2s;
}

.requirement-section:nth-of-type(1) .requirement-card:nth-child(3) {
    animation-delay: 0.3s;
}

.requirement-section:nth-of-type(2) .requirement-card:nth-child(1) {
    animation-delay: 0.4s;
}

.requirement-section:nth-of-type(2) .requirement-card:nth-child(2) {
    animation-delay: 0.5s;
}

.requirement-section:nth-of-type(2) .requirement-card:nth-child(3) {
    animation-delay: 0.6s;
}

.requirement-section:nth-of-type(2) .requirement-card:nth-child(4) {
    animation-delay: 0.7s;
}

.requirement-section:nth-of-type(2) .requirement-card:nth-child(5) {
    animation-delay: 0.8s;
}

.requirement-section:nth-of-type(2) .requirement-card:nth-child(6) {
    animation-delay: 0.9s;
}

.requirement-section:nth-of-type(2) .requirement-card:nth-child(7) {
    animation-delay: 1.0s;
}

.requirement-section:nth-of-type(2) .requirement-card:nth-child(8) {
    animation-delay: 1.1s;
}

/* Schedule Page */
#page-schedule {
    padding: 2rem;
}

.schedule-page-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--color-text);
}

.roadmap-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    background: #ffffff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.roadmap-svg {
    width: 100%;
    height: auto;
    min-height: 600px;
    background: #ffffff;
}

.checkpoint {
    cursor: pointer;
    transition: all 0.3s ease;
    animation: fadeIn 0.8s ease-out both;
}

.checkpoint:hover circle {
    r: 30;
    filter: drop-shadow(0 0 8px currentColor);
}

.checkpoint:hover text {
    font-size: 18;
}

.checkpoint text {
    pointer-events: none;
    user-select: none;
}

.checkpoint line {
    pointer-events: none;
}

/* Staggered animation for checkpoints */
.checkpoint[data-checkpoint="1"] { animation-delay: 0.1s; }
.checkpoint[data-checkpoint="2"] { animation-delay: 0.2s; }
.checkpoint[data-checkpoint="3"] { animation-delay: 0.3s; }
.checkpoint[data-checkpoint="4"] { animation-delay: 0.4s; }
.checkpoint[data-checkpoint="5"] { animation-delay: 0.5s; }
.checkpoint[data-checkpoint="6"] { animation-delay: 0.6s; }
.checkpoint[data-checkpoint="7"] { animation-delay: 0.7s; }
.checkpoint[data-checkpoint="8"] { animation-delay: 0.8s; }
.checkpoint[data-checkpoint="9"] { animation-delay: 0.9s; }

.trophy-image {
    animation: fadeIn 1s ease-out 1s both, bounce 2s ease-in-out 2s infinite;
    transform-origin: center bottom;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

/* --- Games --- */
.game-font {
    font-family: var(--font-game);
    color: var(--color-pumpkin);
    text-shadow: 2px 2px #000, 4px 4px var(--color-pumpkin-dark);
}

/* Apply diagonal pattern background to all pages - DISABLED */
.page::before,
#page-home::before,
#page-about::before,
#page-objectives::before,
#page-lessons::before,
#page-lesson1::before,
#page-lesson2::before,
#page-knowledge::before,
#page-schedule::before,
#page-references::before,
#page-requirement::before,
#page-appreciation::before,
#page-wireframe::before {
    display: none !important;
}

.page::after,
#page-home::after,
#page-about::after,
#page-objectives::after,
#page-lessons::after,
#page-lesson1::after,
#page-lesson2::after,
#page-knowledge::after,
#page-schedule::after,
#page-references::after,
#page-requirement::after,
#page-appreciation::after,
#page-wireframe::after {
    display: none !important;
}

.page > * {
    position: relative;
    z-index: 2;
}

#page-games,
#page-game-hangman,
#page-game-mcq,
#page-game-listening,
#page-game-ordering,
#page-game-wordsearch {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    padding: 3rem;
}

#page-games::before,
#page-game-hangman::before,
#page-game-mcq::before,
#page-game-listening::before,
#page-game-ordering::before,
#page-game-wordsearch::before {
    display: none !important;
}

#page-games::after,
#page-game-hangman::after,
#page-game-mcq::after,
#page-game-listening::after,
#page-game-ordering::after,
#page-game-wordsearch::after {
    display: none !important;
}

#page-games > *,
#page-game-hangman > *,
#page-game-mcq > *,
#page-game-listening > *,
#page-game-ordering > *,
#page-game-wordsearch > * {
    position: relative;
    z-index: 2;
}

@media (max-width: 768px) {
    #page-games,
    #page-game-hangman,
    #page-game-mcq,
    #page-game-listening,
    #page-game-ordering,
    #page-game-wordsearch {
        padding: 2rem 1rem;
        border-radius: 16px;
    }
}

/* Game page background images - DISABLED */
#page-games::before {
    display: none !important;
}

#page-game-hangman::before {
    display: none !important;
}

#page-game-mcq::before {
    display: none !important;
}

#page-game-listening::before {
    display: none !important;
}

#page-game-ordering::before {
    display: none !important;
}

#page-game-wordsearch::before {
    display: none !important;
}

#page-games h1 {
    text-align: center;
    font-size: 2.25rem;
    color: var(--color-text);
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.game-card {
    text-align: center;
    padding: 1rem;
    cursor: pointer;
    transition: transform 0.3s ease;
    display: block;
    text-decoration: none;
    color: inherit;
}
.game-card:hover {
    transform: scale(1.05);
}
.game-cover {
    width: 100%;
    height: 180px;
    background: #333;
    border-radius: 10px;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: #aaa;
    border: 2px dashed #666;
}
.game-card .btn {
    width: 100%;
}

.game-cover {
    width: 100%;
    height: 180px;
    border-radius: 18px;
    padding: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    box-shadow: inset 0 0 40px rgba(255,255,255,0.15);
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.game-cover-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.game-cover-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px;
    transition: transform 0.4s ease;
}
.game-card:hover .game-cover-icon img {
    transform: scale(1.1);
}
.game-cover-icon svg {
    width: 64px;
    height: 64px;
    display: block;
}
.game-cover > * {
    position: relative;
    z-index: 1;
}
.game-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background-repeat: repeat;
    background-size: 180px 180px;
    opacity: 0.3;
    mix-blend-mode: screen;
    transition: transform 0.5s ease, opacity 0.4s ease;
    pointer-events: none;
}
.game-card:hover .game-cover {
    box-shadow: inset 0 0 60px rgba(255, 255, 255, 0.3), 0 15px 30px rgba(0, 0, 0, 0.35);
    transform: translateY(-6px) scale(1.015);
}
.game-card:hover .game-cover::after {
    transform: scale(1.1) rotate(2deg);
    opacity: 0.45;
}
.game-cover-animate {
    animation: coverPulse 0.65s ease;
}
@keyframes coverPulse {
    0% { transform: scale(1); }
    40% { transform: scale(1.05); }
    100% { transform: scale(1); }
}
.gradient-orange {
    background: linear-gradient(135deg, #ff9966, #ff5e62);
}
.gradient-blue {
    background: linear-gradient(135deg, #74ebd5, #4a90e2);
}
.gradient-purple {
    background: linear-gradient(135deg, #a18cd1, #6f58ea);
}
.gradient-green {
    background: linear-gradient(135deg, #56ab2f, #a8e063);
}
.gradient-red {
    background: linear-gradient(135deg, #ff7e5f, #feb47b);
}
.game-cover-hangman::after {
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20width%3D%27160%27%20height%3D%27160%27%20viewBox%3D%270%200%20160%20160%27%3E%0A%20%20%20%20%3Cg%20fill%3D%27none%27%20stroke%3D%27%23ffe7c2%27%20stroke-width%3D%274%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%0A%20%20%20%20%20%20%20%20%3Cpath%20d%3D%27M20%20140%20L60%20140%20L60%2020%20L130%2020%27/%3E%0A%20%20%20%20%20%20%20%20%3Cline%20x1%3D%27110%27%20y1%3D%2720%27%20x2%3D%27110%27%20y2%3D%2760%27/%3E%0A%20%20%20%20%20%20%20%20%3Ccircle%20cx%3D%27110%27%20cy%3D%2782%27%20r%3D%2712%27/%3E%0A%20%20%20%20%20%20%20%20%3Cline%20x1%3D%27110%27%20y1%3D%2794%27%20x2%3D%27110%27%20y2%3D%27120%27/%3E%0A%20%20%20%20%20%20%20%20%3Cline%20x1%3D%27110%27%20y1%3D%27100%27%20x2%3D%2796%27%20y2%3D%27120%27/%3E%0A%20%20%20%20%20%20%20%20%3Cline%20x1%3D%27110%27%20y1%3D%27100%27%20x2%3D%27124%27%20y2%3D%27120%27/%3E%0A%20%20%20%20%3C/g%3E%0A%20%20%20%20%3Ctext%20x%3D%2728%27%20y%3D%2780%27%20font-size%3D%2736%27%20fill%3D%27rgba%28255%2C255%2C255%2C0.35%29%27%20font-family%3D%27Inter%27%3EA%3C/text%3E%0A%3C/svg%3E");
}
.game-cover-mcq::after {
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20width%3D%27160%27%20height%3D%27160%27%20viewBox%3D%270%200%20160%20160%27%3E%0A%20%20%20%20%3Crect%20x%3D%2720%27%20y%3D%2720%27%20width%3D%27120%27%20height%3D%2760%27%20rx%3D%2714%27%20fill%3D%27rgba%28255%2C255%2C255%2C0.15%29%27%20stroke%3D%27%23d7ecff%27%20stroke-width%3D%273%27/%3E%0A%20%20%20%20%3Crect%20x%3D%2720%27%20y%3D%2790%27%20width%3D%27120%27%20height%3D%2750%27%20rx%3D%2714%27%20fill%3D%27rgba%28255%2C255%2C255%2C0.12%29%27%20stroke%3D%27%23b7d8ff%27%20stroke-width%3D%273%27/%3E%0A%20%20%20%20%3Ccircle%20cx%3D%2745%27%20cy%3D%2750%27%20r%3D%2714%27%20fill%3D%27%23ffba7a%27/%3E%0A%20%20%20%20%3Ctext%20x%3D%2745%27%20y%3D%2755%27%20font-size%3D%2718%27%20text-anchor%3D%27middle%27%20fill%3D%27%231d3557%27%3EA%3C/text%3E%0A%20%20%20%20%3Ctext%20x%3D%27110%27%20y%3D%2758%27%20font-size%3D%2728%27%20fill%3D%27rgba%280%2C0%2C0%2C0.2%29%27%20font-family%3D%27Inter%27%3E%3F%3C/text%3E%0A%20%20%20%20%3Ctext%20x%3D%2740%27%20y%3D%27120%27%20font-size%3D%2732%27%20fill%3D%27rgba%28255%2C255%2C255%2C0.35%29%27%20font-family%3D%27Inter%27%3EB%3C/text%3E%0A%20%20%20%20%3Ctext%20x%3D%27110%27%20y%3D%27118%27%20font-size%3D%2728%27%20fill%3D%27rgba%28255%2C255%2C255%2C0.25%29%27%20font-family%3D%27Inter%27%3E%3F%3C/text%3E%0A%3C/svg%3E");
}
.game-cover-listening::after {
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20width%3D%27160%27%20height%3D%27160%27%20viewBox%3D%270%200%20160%20160%27%3E%0A%20%20%20%20%3Ccircle%20cx%3D%2780%27%20cy%3D%2780%27%20r%3D%2736%27%20fill%3D%27rgba%28255%2C255%2C255%2C0.15%29%27%20stroke%3D%27%23e3d7ff%27%20stroke-width%3D%273%27/%3E%0A%20%20%20%20%3Cpath%20d%3D%27M20%2070%20C20%2040%2040%2020%2070%2020%27%20stroke%3D%27%23fff%27%20stroke-width%3D%275%27%20stroke-linecap%3D%27round%27%20fill%3D%27none%27%20opacity%3D%270.5%27/%3E%0A%20%20%20%20%3Cpath%20d%3D%27M90%2020%20C120%2020%20140%2040%20140%2070%27%20stroke%3D%27%23fff%27%20stroke-width%3D%275%27%20stroke-linecap%3D%27round%27%20fill%3D%27none%27%20opacity%3D%270.4%27/%3E%0A%20%20%20%20%3Ccircle%20cx%3D%2755%27%20cy%3D%2770%27%20r%3D%2710%27%20fill%3D%27%236f58ea%27/%3E%0A%20%20%20%20%3Ccircle%20cx%3D%27105%27%20cy%3D%2770%27%20r%3D%2710%27%20fill%3D%27%236f58ea%27/%3E%0A%20%20%20%20%3Cpath%20d%3D%27M55%2095%20Q80%20115%20105%2095%27%20stroke%3D%27%236f58ea%27%20stroke-width%3D%275%27%20fill%3D%27none%27%20stroke-linecap%3D%27round%27/%3E%0A%20%20%20%20%3Cpath%20d%3D%27M30%20120%20q20%20-40%2040%200%20q20%20-40%2040%200%20q20%20-40%2040%200%27%20fill%3D%27none%27%20stroke%3D%27rgba%28255%2C255%2C255%2C0.35%29%27%20stroke-width%3D%273%27%20stroke-linecap%3D%27round%27/%3E%0A%3C/svg%3E");
}
.game-cover-ordering::after {
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20width%3D%27160%27%20height%3D%27160%27%20viewBox%3D%270%200%20160%20160%27%3E%0A%20%20%20%20%3Crect%20x%3D%2724%27%20y%3D%2726%27%20width%3D%27112%27%20height%3D%2730%27%20rx%3D%2712%27%20fill%3D%27rgba%28255%2C255%2C255%2C0.18%29%27%20stroke%3D%27%23dff5d2%27%20stroke-width%3D%273%27/%3E%0A%20%20%20%20%3Crect%20x%3D%2724%27%20y%3D%2766%27%20width%3D%27112%27%20height%3D%2730%27%20rx%3D%2712%27%20fill%3D%27rgba%28255%2C255%2C255%2C0.14%29%27%20stroke%3D%27%23c9eeb2%27%20stroke-width%3D%273%27/%3E%0A%20%20%20%20%3Crect%20x%3D%2724%27%20y%3D%27106%27%20width%3D%27112%27%20height%3D%2730%27%20rx%3D%2712%27%20fill%3D%27rgba%28255%2C255%2C255%2C0.12%29%27%20stroke%3D%27%23b0e29a%27%20stroke-width%3D%273%27/%3E%0A%20%20%20%20%3Ctext%20x%3D%2740%27%20y%3D%2748%27%20font-size%3D%2720%27%20fill%3D%27%2356ab2f%27%20font-family%3D%27Inter%27%3E1%3C/text%3E%0A%20%20%20%20%3Ctext%20x%3D%2740%27%20y%3D%2788%27%20font-size%3D%2720%27%20fill%3D%27%2356ab2f%27%20font-family%3D%27Inter%27%3E2%3C/text%3E%0A%20%20%20%20%3Ctext%20x%3D%2740%27%20y%3D%27128%27%20font-size%3D%2720%27%20fill%3D%27%2356ab2f%27%20font-family%3D%27Inter%27%3E3%3C/text%3E%0A%20%20%20%20%3Ccircle%20cx%3D%27120%27%20cy%3D%27120%27%20r%3D%2718%27%20fill%3D%27rgba%28255%2C255%2C255%2C0.35%29%27/%3E%0A%20%20%20%20%3Cpath%20d%3D%27M110%20120%20h20%20M130%20120%20l-8%20-8%20M130%20120%20l-8%208%27%20stroke%3D%27%2356ab2f%27%20stroke-width%3D%274%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27/%3E%0A%3C/svg%3E");
}
.game-cover-wordsearch::after {
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20width%3D%27160%27%20height%3D%27160%27%20viewBox%3D%270%200%20160%20160%27%3E%0A%20%20%20%20%3Crect%20x%3D%2716%27%20y%3D%2716%27%20width%3D%2796%27%20height%3D%2796%27%20rx%3D%2716%27%20fill%3D%27rgba%28255%2C255%2C255%2C0.12%29%27%20stroke%3D%27%23ffe0d3%27%20stroke-width%3D%273%27/%3E%0A%20%20%20%20%3Ctext%20x%3D%2740%27%20y%3D%2752%27%20font-size%3D%2724%27%20fill%3D%27%23ff7e5f%27%20font-family%3D%27Inter%27%20font-weight%3D%27700%27%3EW%3C/text%3E%0A%20%20%20%20%3Ctext%20x%3D%2772%27%20y%3D%2752%27%20font-size%3D%2724%27%20fill%3D%27%23ff7e5f%27%20font-family%3D%27Inter%27%20font-weight%3D%27700%27%3EO%3C/text%3E%0A%20%20%20%20%3Ctext%20x%3D%2740%27%20y%3D%2784%27%20font-size%3D%2724%27%20fill%3D%27%23ff7e5f%27%20font-family%3D%27Inter%27%20font-weight%3D%27700%27%3ER%3C/text%3E%0A%20%20%20%20%3Ctext%20x%3D%2772%27%20y%3D%2784%27%20font-size%3D%2724%27%20fill%3D%27%23ff7e5f%27%20font-family%3D%27Inter%27%20font-weight%3D%27700%27%3ED%3C/text%3E%0A%20%20%20%20%3Ccircle%20cx%3D%27116%27%20cy%3D%27116%27%20r%3D%2724%27%20stroke%3D%27%23fff%27%20stroke-width%3D%275%27%20fill%3D%27none%27/%3E%0A%20%20%20%20%3Cline%20x1%3D%27136%27%20y1%3D%27136%27%20x2%3D%27154%27%20y2%3D%27154%27%20stroke%3D%27%23fff%27%20stroke-width%3D%278%27%20stroke-linecap%3D%27round%27/%3E%0A%3C/svg%3E");
}

/* Game Controls */
.game-controls {
    margin-top: 2.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}
.game-btn {
    font-size: 1.75rem;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    text-decoration: none;
    color: white;
    box-shadow: 0 15px 25px rgba(0,0,0,0.2);
}
.game-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 20px 30px rgba(0,0,0,0.25);
}
.btn-back {
    background: linear-gradient(135deg, #8a63f8, #5b3ec9);
}
.btn-restart {
    background: linear-gradient(135deg, #ffb347, #ff9234);
}
.btn-check {
    background: linear-gradient(135deg, #1dd1a1, #10ac84);
}
.btn-next-game {
    background: linear-gradient(135deg, #3e8ef7, #1c6ce5);
}
.btn-quit {
    background: linear-gradient(135deg, #ff6b6b, #f94144);
}

/* Gemini Feature Styles */
.btn-gemini {
    background: linear-gradient(90deg, var(--color-blue), #9b59b6);
    color: white;
    font-weight: 700;
}
.btn-gemini:hover {
    background: linear-gradient(90deg, #9b59b6, var(--color-blue));
    transform: translateY(-2px);
}
#gemini-loading {
    text-align: center;
    font-style: italic;
    color: #ccc;
    padding: 2rem;
}
#gemini-response {
    max-height: 40vh;
    overflow-y: auto;
    background: rgba(0,0,0,0.2);
    padding: 1rem;
    border-radius: 10px;
    line-height: 1.6;
}


/* Hangman */
.game-page-container {
    display: flex;
    gap: 2rem;
    height: 100%;
}
.hangman-left {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}
.hangman-right {
    flex: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}
#hangman-svg {
    width: 250px;
    height: 300px;
    stroke: white;
    stroke-width: 4px;
    stroke-linecap: round;
}
#hangman-svg .hangman-part {
    display: none; /* Hide all parts */
}
#word-blanks {
    font-family: var(--font-game);
    font-size: 2rem;
    letter-spacing: 0.5rem;
    text-align: center;
    margin-bottom: 1rem;
}
#alphabet-buttons {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    max-width: 400px;
    margin: 0 auto;
}
#alphabet-buttons button {
    font-family: var(--font-game);
    font-size: 1rem;
    padding: 0.75rem 0.25rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    background: #eee;
    color: var(--color-text-dark);
}
#alphabet-buttons button:disabled {
    background: #666;
    color: #999;
    cursor: not-allowed;
}
#hint-container {
    text-align: center;
    margin-top: 1rem;
}
#hint-btn {
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
}
#hint-text {
    margin-top: 0.5rem;
    font-style: italic;
    color: #333;
    min-height: 1.2rem;
}

/* MCQ */
#page-game-mcq .game-page-container {
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
#mcq-question {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 2rem;
}
#mcq-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    width: 100%;
    max-width: 800px;
}
.mcq-option {
    padding: 1.5rem;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.85);
    border: 2px solid rgba(59, 130, 246, 0.15);
    color: var(--color-text);
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.mcq-option:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(59, 130, 246, 0.35);
}
.mcq-option.selected {
    border-color: var(--color-pumpkin);
}
.mcq-option.correct {
    background: var(--color-green);
    border-color: var(--color-green);
    color: #fff;
}
.mcq-option.incorrect {
    background: var(--color-red);
    border-color: var(--color-red);
    color: #fff;
}

/* MCQ Transition Timer */
.mcq-transition-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease-in;
}

.mcq-transition-content {
    text-align: center;
    padding: 1.5rem;
    min-width: 240px;
    max-width: 280px;
    animation: scaleIn 0.3s ease-out;
}

.mcq-transition-icon {
    font-size: 2.5rem;
    color: var(--color-green);
    margin-bottom: 0.5rem;
    animation: bounceIn 0.5s ease-out;
}

.mcq-transition-content h3 {
    color: var(--color-green);
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.mcq-transition-timer {
    display: flex;
    justify-content: center;
    margin: 1rem 0;
}

.mcq-timer-circle {
    position: relative;
    width: 90px;
    height: 90px;
}

.mcq-timer-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.mcq-timer-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.2);
    stroke-width: 6;
}

.mcq-timer-progress {
    fill: none;
    stroke: var(--color-green);
    stroke-width: 6;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.3s linear;
}

.mcq-timer-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    font-weight: bold;
    color: white;
}

.mcq-transition-message {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes bounceIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.8;
    }
    50% {
        opacity: 1;
    }
}

/* Listening */
#page-game-listening .game-page-container {
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    padding-top: 1rem;
}
.listening-video {
    flex: 0 0 420px;
    max-width: 480px;
    height: 540px;
    object-fit: cover;
    width: 100%;
    margin-bottom: 2rem;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(0,0,0,0.35);
}
#page-game-listening #dialogue-container {
    flex: 1 1 420px;
    background: rgba(0,0,0,0.3);
    padding: 2rem;
    border-radius: 10px;
    width: 100%;
    max-width: 560px;
    min-height: 540px;
    display: flex;
    flex-direction: column;
    font-size: 1.1rem;
    line-height: 2;
    overflow: hidden;
}
#dialogue-container input {
    font-size: 1rem;
    padding: 0.25rem 0.5rem;
    border: none;
    border-bottom: 2px solid var(--color-pumpkin);
    background: none;
    color: white;
    width: 150px;
    text-align: center;
}
.dialogue-line {
    margin-bottom: 0.5rem;
}

.confetti-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
#dialogue-container {
    position: relative;
    overflow: hidden;
}

/* Ordering */
#page-game-ordering .game-page-container {
    flex-direction: column;
    align-items: center;
}
.ordering-zones {
    display: flex;
    gap: 2rem;
    width: 100%;
    max-width: 1000px;
}
#sentence-pool, #sentence-dropzone {
    flex: 1;
    min-height: 400px;
    background: rgba(0,0,0,0.2);
    border-radius: 10px;
    padding: 1rem;
    border: 2px dashed #555;
}
#sentence-dropzone {
    background: rgba(0,0,0,0.3);
}
.draggable-sentence {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    cursor: grab;
}
.draggable-sentence:active {
    cursor: grabbing;
}
.draggable-sentence.dragging {
    opacity: 0.5;
}

/* Word Search */
#page-game-wordsearch {
    padding: 2rem;
}

.wordsearch-container {
    max-width: 1400px;
    margin: 0 auto;
}

.wordsearch-main {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.wordsearch-grid-container {
    flex: 1;
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 600px;
}

#wordsearch-grid {
    display: grid;
    grid-template-columns: repeat(15, 1fr);
    gap: 3px;
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 10px;
}

.wordsearch-cell {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-card-bg);
    color: var(--color-text);
    font-weight: 600;
    font-size: 1.5rem;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
    border-radius: 4px;
    min-width: 35px;
    min-height: 35px;
    padding: 0.5rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.wordsearch-cell:hover {
    background: var(--color-primary-light);
    transform: scale(1.05);
}

.wordsearch-cell.selected {
    background: rgba(16, 185, 129, 0.3);
    color: var(--color-text);
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.wordsearch-cell.found {
    background: rgba(16, 185, 129, 0.5);
    color: var(--color-text);
    text-decoration: line-through;
    opacity: 0.7;
}

.wordsearch-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 250px;
}

.wordsearch-timer {
    padding: 1.5rem;
    text-align: center;
}

.timer-label {
    font-size: 0.9rem;
    color: var(--color-subtext);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#wordsearch-timer {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    font-family: 'Press Start 2P', cursive;
}

.wordsearch-words {
    padding: 1.5rem;
    flex: 1;
}

.words-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#wordsearch-word-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.wordsearch-word-item {
    padding: 0.75rem;
    background: var(--color-card-bg);
    border-radius: 8px;
    color: var(--color-text);
    font-size: 1rem;
    transition: all 0.3s ease;
    text-transform: capitalize;
    border-left: 3px solid transparent;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.wordsearch-word-item:hover {
    background: var(--color-primary-light);
    transform: translateX(5px);
}

.wordsearch-word-item.found {
    background: rgba(16, 185, 129, 0.1);
    color: var(--color-subtext);
    text-decoration: line-through;
    border-left-color: var(--color-accent);
}

/* Responsive Design for Word Search */
@media (max-width: 1200px) {
    #wordsearch-grid {
        grid-template-columns: repeat(12, 1fr);
    }
    
    .wordsearch-cell {
        font-size: 1.3rem;
        min-width: 32px;
        min-height: 32px;
    }
}

@media (max-width: 768px) {
    .wordsearch-main {
        flex-direction: column;
    }
    
    .wordsearch-sidebar {
        width: 100%;
        flex-direction: row;
        justify-content: space-around;
    }
    
    .wordsearch-timer,
    .wordsearch-words {
        flex: 1;
    }
    
    #wordsearch-grid {
        grid-template-columns: repeat(10, 1fr);
    }
    
    .wordsearch-cell {
        font-size: 1.1rem;
        min-width: 28px;
        min-height: 28px;
    }
    
    #wordsearch-word-list {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .wordsearch-word-item {
        flex: 1;
        min-width: 100px;
    }
}

@media (max-width: 480px) {
    #wordsearch-grid {
        grid-template-columns: repeat(8, 1fr);
        gap: 1px;
        padding: 0.5rem;
    }
    
    .wordsearch-cell {
        font-size: 1rem;
        min-width: 25px;
        min-height: 25px;
    }
    
    .wordsearch-sidebar {
        flex-direction: column;
    }
}

    /* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    .navbar-links ul {
        display: none; /* Hide horizontal links */
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    .navbar-links {
        gap: 1rem;
    }
    /* Hide dropdown on mobile - items will be combined in main nav */
    .more-dropdown {
        display: none !important;
    }
    .page {
        padding: 1rem;
    }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    
    .objectives-page-container {
        padding: 1.5rem 1rem;
    }
    
    .objectives-title {
        font-size: 1.75rem;
    }
    
    .objectives-cards-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .objective-card {
        padding: 1.5rem;
    }
    
    .objective-card-icon {
        font-size: 3rem;
    }
    
    .objective-card-title {
        font-size: 1.2rem;
    }
    
    .game-page-container {
        flex-direction: column;
    }
    #page-game-listening .game-page-container {
        align-items: center;
    }
    .listening-video {
        flex: 1 1 auto;
        max-width: 100%;
    }
    #page-game-listening #dialogue-container {
        max-width: 100%;
        min-height: auto;
        max-height: none;
        overflow: visible;
    }
    
    #page-lessons .lesson-grid,
    #page-lesson1 .content-grid,
    #page-lesson2 .content-grid,
    #page-about .profile-grid,
    #mcq-options {
        grid-template-columns: 1fr;
    }
    
    .video-container {
        grid-template-columns: 1fr;
    }
    
    .requirement-page-title {
        font-size: 2rem;
    }
    
    .requirement-section-title {
        font-size: 1.75rem;
    }
    
    .section-icon {
        font-size: 1.75rem;
    }
    
    .requirement-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .requirement-card {
        padding: 1.5rem 1rem;
    }
    
    .requirement-icon {
        width: 60px;
        height: 60px;
        font-size: 3rem;
    }
    
    .software-icon {
        font-size: 1.5rem;
    }
    
    .roadmap-container {
        padding: 1rem;
    }
    
    .roadmap-svg {
        min-height: 400px;
    }
    
    .checkpoint text {
        font-size: 10px !important;
    }
    
    .schedule-page-title {
        font-size: 2rem;
    }

    .ordering-zones {
        flex-direction: column;
    }
    
    #alphabet-buttons {
        grid-template-columns: repeat(6, 1fr);
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem 1rem;
    }
    
    .footer-bottom {
        padding: 0.75rem 1rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.75rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
}

/* References Page - Modern Design */
.references-hero {
    max-width: 1200px;
    margin: 0 auto 3rem;
    padding: 2.5rem;
    text-align: center;
    border-radius: 20px;
}

.references-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.references-subtitle {
    font-size: 1.2rem;
    color: var(--color-subtext);
    margin: 0;
}

.references-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Game music toggle (top-right) */
.game-music-toggle {
    position: absolute;
    top: 40px;
    left: 1.5rem;
    z-index: 10;
}

.music-toggle-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.8);
    background: rgba(15, 23, 42, 0.75);
    color: #e5e7eb;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.2s ease;
}

.music-toggle-btn span {
    font-size: 0.9rem;
}

.music-toggle-btn .music-icon {
    font-size: 1rem;
}

.music-toggle-btn:hover {
    background: rgba(30, 64, 175, 0.9);
    border-color: rgba(129, 140, 248, 0.9);
}

@media (max-width: 768px) {
    .game-music-toggle {
        top: 10px;
        left: 1rem;
    }
}

.reference-card {
    padding: 2rem;
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.reference-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light), var(--color-primary));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.reference-card:hover::before {
    transform: scaleX(1);
}

.reference-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1), 0 0 20px rgba(59, 130, 246, 0.2);
}

.reference-card-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.reference-icon-wrapper {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.reference-card:hover .reference-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

.reference-card-title-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.reference-card-title-group h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: var(--color-text);
}

.reference-tag {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    background: rgba(59, 130, 246, 0.1);
    color: var(--color-primary);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    align-self: flex-start;
}

.reference-description {
    color: var(--color-subtext);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.reference-link-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.reference-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.reference-link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.reference-link-btn svg {
    transition: transform 0.3s ease;
}

.reference-link-btn:hover svg {
    transform: translate(3px, -3px);
}

.reference-badge-static {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--color-background);
    color: var(--color-text);
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* YouTube Card Specific Styles */
.youtube-card {
    grid-column: span 2;
}

.youtube-channels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.youtube-channel-mini {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.youtube-channel-mini:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.channel-avatar-mini {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.channel-info-mini h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    color: var(--color-text);
}

.channel-info-mini p {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Mini Icons */
.textbook-cover-mini {
    width: 50px;
    height: 65px;
    perspective: 200px;
}

.textbook-front-mini {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #4a90e2, #357abd);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.textbook-title-mini {
    font-size: 0.7rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.2rem;
}

.textbook-grade-mini {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.9);
}

.oxford-icon-mini {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.oxford-icon-top-mini {
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
}

.oxford-icon-bottom-mini {
    height: 20px;
    position: relative;
}

.wave-mini {
    position: absolute;
    width: 100%;
    height: 10px;
}

.wave-green-mini {
    background: #34c759;
    top: 0;
    border-radius: 0 0 0 8px;
}

.wave-red-mini {
    background: #ff3b30;
    bottom: 0;
    border-radius: 0 0 8px 0;
}

.reference-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid var(--color-primary);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--color-primary);
}

/* MOE Logo */
.moe-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Textbook Cover */
.textbook-cover {
    width: 150px;
    height: 200px;
    perspective: 1000px;
}

.textbook-front {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    border: 3px solid #00AA00;
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.textbook-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #002147;
    margin-top: 0.5rem;
}

.textbook-grade {
    font-size: 0.9rem;
    font-weight: 600;
    color: #00AA00;
    margin-top: 0.5rem;
}

.textbook-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00AA00, #FFD700);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 1rem 0;
    border: 2px solid #002147;
}

.circle-icons {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

.circle-text {
    font-size: 0.6rem;
    font-weight: 600;
    color: #002147;
    text-align: center;
    padding: 0 0.3rem;
}

/* YouTube Section */
.youtube-section-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    padding-left: 1rem;
}

.youtube-logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.youtube-channels {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-left: 1rem;
}

.youtube-channel-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
    max-width: 500px;
}

.youtube-channel-card:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(255, 0, 0, 0.2);
}

.channel-avatar {
    flex-shrink: 0;
}

.avatar-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.channel-info {
    flex: 1;
}

.channel-info h4 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    color: var(--color-text);
}

.channel-info p {
    font-size: 0.9rem;
    color: #999;
    margin: 0;
}

.subscribe-btn {
    padding: 0.6rem 1.5rem;
    background: #FF0000;
    color: white;
    border: none;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.subscribe-btn:hover {
    background: #cc0000;
    transform: scale(1.05);
}

/* Oxford Dictionary Icon */
.oxford-icon {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.oxford-icon-top {
    height: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.3rem;
}

.oxford-icon-bottom {
    height: 50%;
    position: relative;
    background: #f0f0f0;
}

.wave {
    position: absolute;
    width: 100%;
    height: 50%;
    left: 0;
}

.wave-green {
    background: #00AA00;
    top: 0;
    border-radius: 0 0 0 50%;
}

.wave-red {
    background: #FF0000;
    bottom: 0;
    border-radius: 0 0 50% 0;
}

/* Responsive Design for References */
@media (max-width: 768px) {
    .references-hero {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .references-title {
        font-size: 2rem;
    }
    
    .references-subtitle {
        font-size: 1rem;
    }
    
    .references-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem 2rem;
        gap: 1.5rem;
    }
    
    .youtube-card {
        grid-column: span 1;
    }
    
    .youtube-channels-grid {
        grid-template-columns: 1fr;
    }
    
    .reference-card {
        padding: 1.5rem;
    }
    
    .reference-card-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .reference-icon-wrapper {
        margin: 0 auto;
    }
    
    .reference-card-title-group {
        align-items: center;
    }
}

/* Wireframe Page - Mind Map */
.wireframe-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.wireframe-svg {
    width: 100%;
    height: auto;
    min-height: 900px;
    background: 
        radial-gradient(circle at 2px 2px, rgba(255, 117, 24, 0.1) 1px, transparent 0);
    background-size: 40px 40px;
    border-radius: 15px;
    padding: 2rem;
}

/* Responsive Design for Wireframe */
@media (max-width: 1200px) {
    .wireframe-svg {
        min-height: 600px;
    }
}

@media (max-width: 768px) {
    .wireframe-container {
        padding: 1rem;
    }
    
    .wireframe-svg {
        min-height: 500px;
        padding: 1rem;
    }
}

/* Appreciation Page */
#page-appreciation {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 70px);
    padding: 2rem;
}

.appreciation-container {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
}

.appreciation-title {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light), var(--color-primary));
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.appreciation-content {
    padding: 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        0 2px 8px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.appreciation-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.8) 50%,
        transparent
    );
    pointer-events: none;
    z-index: 1;
}

.appreciation-content::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    animation: rotate-glow 20s linear infinite;
    pointer-events: none;
    z-index: 0;
}

.appreciation-content:hover {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(45px) saturate(200%);
    -webkit-backdrop-filter: blur(45px) saturate(200%);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.15),
        0 4px 12px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

@keyframes rotate-glow {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.appreciation-text {
    position: relative;
    z-index: 1;
}

.appreciation-paragraph {
    font-size: 1.2rem;
    line-height: 2;
    color: var(--color-text);
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(30px);
    animation: slideUpFade 1s ease-out forwards;
}

.appreciation-paragraph:last-of-type {
    margin-bottom: 0;
}

.appreciation-final {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-top: 2rem;
}

@keyframes slideUpFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.appreciation-hearts {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
    position: relative;
    z-index: 1;
}

.heart-icon {
    font-size: 3rem;
    display: inline-block;
    animation: float-heart 3s ease-in-out infinite;
}

.heart-icon:nth-child(1) {
    animation-delay: 0s;
}

.heart-icon:nth-child(2) {
    animation-delay: 0.5s;
}

.heart-icon:nth-child(3) {
    animation-delay: 1s;
}

@keyframes float-heart {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-20px) scale(1.1);
    }
}

/* Responsive Design for Appreciation Page */
@media (max-width: 768px) {
    .appreciation-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .appreciation-content {
        padding: 2rem 1.5rem;
    }
    
    .appreciation-paragraph {
        font-size: 1rem;
        line-height: 1.8;
        margin-bottom: 1.5rem;
    }
    
    .appreciation-final {
        font-size: 1.2rem;
    }
    
    .heart-icon {
        font-size: 2rem;
    }
    
    .appreciation-hearts {
        gap: 1.5rem;
        margin-top: 2rem;
    }
}

@media (max-width: 480px) {
    .appreciation-title {
        font-size: 1.75rem;
    }
    
    .appreciation-content {
        padding: 1.5rem 1rem;
    }
    
    .appreciation-paragraph {
        font-size: 0.95rem;
        line-height: 1.7;
    }
    
    .heart-icon {
        font-size: 1.5rem;
    }
    
    .appreciation-hearts {
        gap: 1rem;
    }
}

/* ============================================
   COMPREHENSIVE MOBILE RESPONSIVE STYLES
   ============================================ */

/* Mobile First - Base styles for mobile */
@media (max-width: 480px) {
    /* Typography */
    h1 { font-size: 1.75rem !important; }
    h2 { font-size: 1.5rem !important; }
    h3 { font-size: 1.25rem !important; }
    h4 { font-size: 1.1rem !important; }
    
    /* Navbar Mobile */
    .navbar {
        padding: 0.75rem 1rem;
        flex-wrap: wrap;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    .navbar-logo img {
        height: 40px;
    }
    
    .navbar {
        position: relative;
        overflow: visible;
    }
    
    .navbar-links {
        position: relative;
    }
    
    .navbar-links ul {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        background: var(--color-card-bg);
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 1001;
        gap: 0.5rem;
        margin: 0;
        box-sizing: border-box;
        overflow-y: auto;
        max-height: calc(100vh - 60px);
    }
    
    .navbar-links ul.active {
        display: flex;
    }
    
    .navbar-links ul li {
        width: 100%;
        box-sizing: border-box;
        margin: 0;
        padding: 0;
    }
    
    .navbar-links ul li a {
        display: block;
        padding: 0.75rem 1rem;
        width: 100%;
        box-sizing: border-box;
        text-align: left;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    /* Prevent body scroll when menu is open on mobile */
    body.menu-open {
        overflow: hidden;
    }
    
    #more-menu-btn {
        font-size: 1.5rem;
        padding: 0.5rem;
        cursor: pointer;
        z-index: 1002;
    }
    
    /* Hide more-dropdown on mobile - items will be in main nav */
    .more-dropdown {
        display: none !important;
    }
    
    /* Ensure mobile menu items have proper styling */
    .navbar-links ul li.mobile-more-item a {
        display: block;
        padding: 0.75rem 1rem;
        width: 100%;
        box-sizing: border-box;
        text-align: left;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    /* Mobile menu separator */
    .navbar-links ul li.mobile-menu-separator {
        width: 100%;
        box-sizing: border-box;
        padding: 0;
        margin: 0.5rem 0;
    }
    
    .navbar-links ul li.mobile-menu-separator div {
        width: calc(100% - 2rem);
        margin: 0 1rem;
        height: 1px;
        background: rgba(0, 0, 0, 0.1);
    }
    
    /* When main nav is active, add the more menu items after main nav items */
    .navbar-links ul.active::after {
        content: '';
        display: block;
        width: 100%;
        height: 1px;
        background: rgba(0, 0, 0, 0.1);
        margin: 0.5rem 0;
    }
    
    /* Page Container */
    .page {
        padding: 1rem 0.75rem !important;
    }
    
    #app-container {
        padding-top: 60px;
    }
    
    /* Hero Section Mobile */
    .hero-section {
        min-height: 60vh;
        padding: 2rem 1rem;
    }
    
    .hero-title {
        font-size: 2rem !important;
    }
    
    .hero-subtitle {
        font-size: 1.5rem !important;
    }
    
    .hero-description {
        font-size: 0.95rem !important;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }
    
    .hero-btn {
        width: 100%;
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Content Grids - Stack on Mobile */
    .content-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    .lesson-food-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }
    
    .game-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
    
    .stats-container {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }
    
    /* Cards and Boxes */
    .glass-box,
    .content-box,
    .food-card,
    .game-card,
    .feature-card {
        padding: 1.25rem !important;
    }
    
    .food-image {
        height: 180px;
    }
    
    /* Buttons - Touch Friendly */
    .btn {
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
        min-height: 44px; /* Touch target size */
    }
    
    .speak-btn {
        width: 100%;
        justify-content: center;
    }
    
    .translation-toggle-btn {
        width: 100%;
        padding: 0.875rem 1.25rem;
    }
    
    /* Modals Mobile */
    .modal-content {
        width: 95% !important;
        max-width: 95% !important;
        max-height: 90vh !important;
        padding: 1.5rem 1rem !important;
        margin: 1rem !important;
    }
    
    .modal-close-btn {
        top: 0.75rem;
        right: 1rem;
        font-size: 1.75rem;
    }
    
    /* Video Container */
    .video-container {
        grid-template-columns: 1fr !important;
        gap: 1rem;
        padding: 0;
    }
    
    .lesson-video {
        width: 100%;
        max-height: 250px;
    }
    
    .listening-video {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        aspect-ratio: 16/9;
    }
    
    /* Game Pages Mobile */
    .game-page-container {
        flex-direction: column !important;
        gap: 1.5rem;
    }
    
    .hangman-left,
    .hangman-right {
        width: 100%;
    }
    
    #hangman-svg {
        width: 200px;
        height: 240px;
    }
    
    #word-blanks {
        font-size: 1.5rem;
        letter-spacing: 0.25rem;
    }
    
    #alphabet-buttons {
        grid-template-columns: repeat(5, 1fr) !important;
        gap: 0.5rem;
    }
    
    #alphabet-buttons button {
        padding: 0.625rem 0.25rem;
        font-size: 0.85rem;
    }
    
    #mcq-options {
        grid-template-columns: 1fr !important;
        gap: 0.75rem;
    }
    
    .mcq-option {
        padding: 1.25rem 1rem;
        font-size: 0.95rem;
    }
    
    #page-game-listening #dialogue-container {
        padding: 1.5rem 1rem !important;
        font-size: 1rem;
        min-height: auto !important;
    }
    
    .ordering-zones {
        flex-direction: column !important;
        gap: 1rem;
    }
    
    #sentence-pool,
    #sentence-dropzone {
        min-height: 300px;
    }
    
    /* Game Controls */
    .game-controls {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    
    .game-btn {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    /* Word Search Mobile */
    #wordsearch-grid {
        grid-template-columns: repeat(8, 1fr) !important;
        gap: 2px;
        padding: 1rem;
    }
    
    .wordsearch-cell {
        font-size: 1rem;
        min-width: 28px;
        min-height: 28px;
        padding: 0.25rem;
    }
    
    .wordsearch-sidebar {
        width: 100% !important;
        flex-direction: column;
    }
    
    /* Promotional Section Mobile */
    .promotional-section {
        padding: 2rem 1rem !important;
    }
    
    .promotional-container {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
    
    .promotional-headline {
        font-size: 1.75rem !important;
    }
    
    .promotional-subtext {
        font-size: 1rem !important;
    }
    
    .stat-card {
        padding: 1.25rem;
    }
    
    .stat-number-large {
        font-size: 2rem !important;
    }
    
    /* Study Tools Mobile */
    .study-tools-section {
        padding: 2rem 1rem !important;
    }
    
    .study-tools-container {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
    
    .study-tools-title {
        font-size: 1.75rem !important;
    }
    
    .tools-grid {
        grid-template-columns: 1fr !important;
        max-height: none;
    }
    
    .tool-button {
        padding: 1rem;
        font-size: 0.95rem;
    }
    
    /* Footer Mobile */
    .footer-container {
        grid-template-columns: 1fr !important;
        padding: 1.5rem 1rem !important;
        gap: 1.5rem;
    }
    
    .footer-bottom {
        padding: 1rem !important;
        font-size: 0.8rem;
    }
    
    /* Objectives Mobile */
    .objectives-page-container {
        padding: 1rem 0.75rem !important;
    }
    
    .objectives-title {
        font-size: 1.5rem !important;
    }
    
    .objectives-cards-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }
    
    .objective-card {
        padding: 1.25rem !important;
    }
    
    .objective-card-icon {
        font-size: 2.5rem !important;
    }
    
    /* Lessons Page Mobile */
    .lessons-page-container {
        padding: 1rem 0.75rem !important;
    }
    
    .lessons-page-title {
        font-size: 1.75rem !important;
        margin-bottom: 2rem;
    }
    
    .lesson-showcase-container {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
    
    .info-block {
        padding: 1.25rem !important;
    }
    
    .info-block-title {
        font-size: 1.5rem !important;
    }
    
    /* About Page Mobile */
    #page-about {
        padding: 1rem 0.75rem !important;
    }
    
    .about-hero-title {
        font-size: 1.75rem !important;
    }
    
    .about-hero-subtitle {
        font-size: 1.1rem !important;
    }
    
    .mission-vision-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
    
    .mission-card,
    .vision-card {
        padding: 1.5rem !important;
    }
    
    #page-about .profile-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
    
    .profile-card img {
        width: 150px;
        height: 150px;
    }
    
    .values-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
    
    /* Knowledge Page Mobile */
    #page-knowledge {
        padding: 1rem 0.75rem !important;
    }
    
    .knowledge-title {
        font-size: 1.75rem !important;
    }
    
    .knowledge-subtitle {
        font-size: 1rem !important;
    }
    
    .vocabulary-grid,
    .phrases-grid,
    .resources-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }
    
    /* Requirement Page Mobile */
    .requirement-presentation-container {
        padding: 2rem 1rem !important;
    }
    
    .requirement-presentation-content {
        padding: 1.5rem 1rem !important;
        grid-template-columns: 1fr !important;
    }
    
    .requirement-column-title {
        font-size: 1.5rem !important;
    }
    
    .requirement-item {
        padding: 0.75rem 1rem !important;
        gap: 1rem;
    }
    
    .requirement-item-icon {
        width: 45px !important;
        height: 45px !important;
        font-size: 1.3rem !important;
    }
    
    .requirement-item-name {
        font-size: 0.95rem !important;
    }
    
    /* Schedule Page Mobile */
    #page-schedule {
        padding: 1rem 0.75rem !important;
    }
    
    .schedule-page-title {
        font-size: 1.75rem !important;
    }
    
    .roadmap-container {
        padding: 1rem 0.5rem !important;
    }
    
    .roadmap-svg {
        min-height: 300px !important;
    }
    
    /* References Page Mobile */
    .references-hero {
        padding: 1.5rem 1rem !important;
    }
    
    .references-title {
        font-size: 1.75rem !important;
    }
    
    .references-grid {
        grid-template-columns: 1fr !important;
        padding: 0 1rem 2rem !important;
    }
    
    .reference-card {
        padding: 1.25rem !important;
    }
    
    .reference-card-header {
        flex-direction: column;
        text-align: center;
    }
    
    /* Appreciation Page Mobile */
    #page-appreciation {
        padding: 1rem 0.75rem !important;
    }
    
    .appreciation-title {
        font-size: 1.75rem !important;
    }
    
    .appreciation-content {
        padding: 1.5rem 1rem !important;
    }
    
    .appreciation-paragraph {
        font-size: 0.95rem !important;
    }
    
    /* Speaking Practice Mobile */
    .speaking-practice-panel {
        padding: 1.25rem !important;
    }
    
    .speaking-controls {
        flex-direction: column;
    }
    
    .speaking-controls .btn {
        width: 100%;
    }
    
    /* Glass Box Text Mobile */
    .glass-box p,
    .glass-box ul {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    /* Next Button Mobile */
    .next-btn {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
        font-size: 1.5rem;
    }
    
    /* Scrollable Content Mobile */
    .scrollable {
        max-height: 50vh;
    }
    
    /* Gemini Modal Mobile */
    #gemini-response {
        max-height: 50vh;
        padding: 0.75rem;
        font-size: 0.9rem;
    }
}

/* Tablet and Small Mobile (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .navbar {
        padding: 1rem 1.5rem;
    }
    
    .page {
        padding: 1.5rem;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .game-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .modal-content {
        width: 90%;
        max-width: 600px;
    }
    
    #alphabet-buttons {
        grid-template-columns: repeat(6, 1fr);
    }
    
    .lesson-food-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Large Mobile and Small Tablet (769px - 968px) */
@media (min-width: 769px) and (max-width: 968px) {
    .game-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .content-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Ensure touch targets are at least 44x44px */
    .btn,
    .nav-link,
    .game-btn,
    .modal-close-btn,
    .translation-toggle-btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Remove hover effects on touch devices */
    .btn:hover,
    .nav-link:hover,
    .game-card:hover {
        transform: none;
    }
    
    /* Increase tap target sizes */
    .vocab-word {
        padding: 0.25rem 0.5rem;
        min-height: 32px;
        display: inline-block;
    }
    
    /* Better spacing for touch */
    .navbar-links a,
    .nav-link {
        padding: 0.75rem 1rem;
    }
}

/* Landscape Mobile Optimization */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-section {
        min-height: 50vh;
    }
    
    .modal-content {
        max-height: 85vh;
    }
    
    .video-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    #page-game-listening .game-page-container {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .listening-video {
        flex: 0 0 45%;
        max-width: 45%;
    }
    
    #page-game-listening #dialogue-container {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

