/* ==========================================
   EXACT REPLICA OF VOCABULARYPOWERPLUS.COM
   ========================================== */

@import url("https://use.typekit.net/eqo3cxz.css");

* {
    font-family: "proxima-nova", sans-serif;
    font-style: normal;
    font-weight: 500;
    letter-spacing: -.02rem;
}

em {
    font-style: italic;
}

/* Base Styles */
body {
    font-family: "proxima-nova", sans-serif;
    background: #fff;
    color: #212529;
    padding-top: 67px;
    font-size: 1.8rem;
    line-height: 1.5;
}

#page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ==========================================
   HEADER / NAVBAR (Dark theme matching original)
   ========================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
}

.navbar {
    background-color: #343a40 !important;
    padding: 0.75rem 1rem;
    min-height: 67px;
}

.navbar-brand img {
    height: 45px;
    width: auto;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255,255,255,.5);
    font-size: 1.3rem;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
    color: rgba(255,255,255,.75);
}

.navbar-dark .navbar-nav .active > .nav-link {
    color: #fff;
}

.btn-outline-secondary {
    color: rgba(255,255,255,.75);
    border-color: rgba(255,255,255,.75);
    font-size: 1.1rem;
}

.btn-outline-secondary:hover {
    color: #343a40;
    background-color: rgba(255,255,255,.75);
    border-color: rgba(255,255,255,.75);
}

.dropdown-menu .dropdown-item {
    white-space: normal;
    font-size: 1.2rem;
}

/* ==========================================
   BREADCRUMBS
   ========================================== */
.breadcrumb-nav {
    position: fixed;
    top: 79px; /* Height of navbar */
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1029; /* Below navbar (1030) but above content */
}

.breadcrumb {
    width: 100%;
    margin-bottom: 0;
    border: 0;
    border-radius: 0;
    padding: 15px 20px;
    background: #65696f;
    color: #8a8e91;
    font-size: 1.2rem;
    list-style: none;
}

.breadcrumb-item {
    display: inline;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    padding: 0 0.5rem;
    color: #8a8e91;
}

.breadcrumb-item.active {
    color: #8a8e91;
}

.breadcrumb a {
    color: #afb1b3;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #fff;
    text-decoration: none;
}

/* ==========================================
   CONSISTENT LAYOUT SHELL
   ========================================== */

/* Main content area - consistent across all pages */
.page-content {
    /* padding: 2rem; */
    min-height: calc(100vh - 67px - 52px); /* viewport - header - footer */
    margin-top: 58px; /* Height of breadcrumb */
}

/* Content wrapper for activity pages with white background */
.content-wrapper {
    background: #fff;
    padding: 2rem;
    margin: 0 auto;
    max-width: 1400px;
}

/* Remove extra padding from learn interface */
.learn-interface {
    background: #fff;
    padding: 0;
    color: #212529;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 67px - 58px);
}

/* Desktop - use fixed height for proper centering */
@media (min-width: 1025px) {
    .learn-interface {
        height: calc(100vh - 67px - 58px);
    }
}

/* ==========================================
   SIDEBAR
   ========================================== */
.sidebar-component {
    position: fixed;
    left: 0;
    top: 119px; /* navbar (67px) + breadcrumb (52px) */
    width: 250px;
    height: calc(100vh - 119px - 52px); /* Full height minus top offset and footer */
    background: #f8f9fa;
    border-right: 1px solid #dee2e6;
    overflow-y: auto;
    z-index: 100;
    padding-top: 1rem;
    padding-bottom: 1rem;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.sidebar-component::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* Hide sidebar on admin dashboard */
body[data-page="admin-dashboard"] .sidebar-component {
    display: none !important;
}

/* Adjust main content when sidebar is present */
body:not([data-page="admin-dashboard"]) main {
    margin-left: 250px;
}

@media (max-width: 991.98px) {
    .sidebar-component {
        display: none !important;
    }
    
    body:not([data-page="admin-dashboard"]) main {
        margin-left: 0;
    }
}

#sidebar {
    background: transparent;
    border-right: none;
    padding-top: 0;
    overflow-y: visible;
}

#sidebar .nav-link {
    color: #495057;
    padding: 0.5rem 1rem;
    font-size: 1.2rem;
}

#sidebar .nav-link.active {
    color: #6c757d;
    font-weight: 600;
}

#sidebar .nav-link:hover {
    color: #212529;
    background-color: #e9ecef;
}

#sidebar .dropdown-divider {
    margin: 0.5rem 0;
}

#sidebar .card {
    border: 1px solid #dee2e6;
    font-size: 1.1rem;
}

#sidebar .card-img-top {
    max-width: 100%;
    height: auto;
}

#sidebar .card-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

#sidebar .card-subtitle {
    font-size: 13px;
}

#sidebar .card-text {
    font-size: 13px;
}

/* ==========================================
   MAIN CONTENT AREA
   ========================================== */
main {
    padding: 13px 0px 0px 0px;
    background: #fff;
}

.content {
    max-width: 100%;
}

/* ==========================================
   LESSON BOXES (The big lesson number buttons)
   ========================================== */
.row {
    margin-right: -10px;
    margin-left: -10px;
}

.box {
    padding: 10px;
}

.box .btn {
    width: 100%;
    height: 120px;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 500;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* border-radius: 4px; */
    transition: all 0.3s ease;
    /* box-shadow: 0 2px 4px rgba(0,0,0,0.1); */
    text-decoration: none !important;
}

.box .btn:hover {
    /* transform: translateY(-3px); */
    /* box-shadow: 0 4px 8px rgba(0,0,0,0.2); */
    text-decoration: none !important;
    color: #fff;
}

.box .btn span {
    display: block;
    font-size: 7rem;
    font-weight: 700;
    line-height: 1;
    margin-top: -10px;
}

/* ==========================================
   FLASHCARD INTERFACE
   ========================================== */
.flashcard-interface {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
}

.controls-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.controls-top .btn {
    min-width: 120px;
}

.controls-top .btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
    color: #fff;
}

.controls-top .btn-secondary:hover {
    background-color: #5a6268;
    border-color: #545b62;
}

.controls-top .btn-outline-primary {
    color: #007bff;
    border-color: #007bff;
    background-color: #fff;
}

.controls-top .btn-outline-primary:hover {
    color: #fff;
    background-color: #007bff;
    border-color: #007bff;
}

.deck-info h2 {
    font-size: 1.75rem;
    color: #212529;
    margin-bottom: 0.25rem;
}

.card-counter {
    font-size: 1rem;
    color: #6c757d;
}

/* Flashcard Container */
.flashcard-container {
    perspective: 1000px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 0;
    min-width: 600px;
}

.flashcard {
    width: 100%;
    max-width: 700px;
    position: relative;
    cursor: pointer;
    display: flex;
}

.flashcard-inner {
    position: relative;
    width: 100%;
    min-height: 300px;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    display: flex;
}

/* Desktop - larger card */
@media (min-width: 1025px) {
    .flashcard-inner {
        min-height: 400px;
    }
}

.flashcard.flipped .flashcard-inner {
    transform: rotateY(180deg);
}

.flashcard-front,
.flashcard-back {
    position: absolute;
    width: 100%;
    min-height: 300px;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 40px;
    box-sizing: border-box;
    left: 0;
    top: 0;
    overflow: auto;
}

/* Desktop - larger card faces */
@media (min-width: 1025px) {
    .flashcard-front,
    .flashcard-back {
        min-height: 400px;
    }
}

.flashcard-front {
    background: #f8f9fa;
    border: 2px solid #1B4C87;
    z-index: 2;
    transform: rotateY(0deg);
}

.flashcard-audio-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #1B4C87;
    border: none;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flashcard-audio-btn:hover {
    background: #00659f;
    transform: scale(1.1);
}

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

.flashcard-front .word-display {
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.flashcard-front h1 {
    color: #1B4C87;
    font-size: 3rem;
    font-weight: 700;
    margin: 0 0 10px 0;
}

.flashcard-front .part-of-speech {
    color: #666;
    font-size: 1.2rem;
    font-style: italic;
    margin: 0;
}

.flashcard-back {
    background: white;
    border: 2px solid #dee2e6;
    transform: rotateY(180deg);
    overflow-y: auto;
}

.flashcard-back .definition-display {
    text-align: center;
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    min-height: 100%;
    padding: 20px 0;
}

.flashcard-back .word-back {
    font-size: 3.5rem;
    font-weight: 700;
    color: #1B4C87;
    margin: 0;
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.card-content {
    text-align: center;
    width: 100%;
}

.word {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.word-small {
    font-size: 2rem;
    font-weight: 700;
    color: #1B4C87;
    margin-bottom: 10px;
}

.hint {
    font-size: 1rem;
    opacity: 0.9;
    font-style: italic;
}

.part-of-speech {
    color: #6c757d;
    font-style: italic;
    margin-bottom: 20px;
}

.definition {
    font-size: 1.25rem;
    line-height: 1.6;
    margin: 0;
    color: #212529;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.example {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    border-left: 4px solid #1B4C87;
    margin: 0;
    font-style: italic;
    text-align: left;
    font-size: 1.1rem;
    width: 100%;
}

.example strong {
    display: block;
    margin-bottom: 8px;
    font-style: normal;
}

.synonyms {
    margin: 0;
    padding-top: 15px;
    border-top: 1px solid #dee2e6;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    width: 100%;
}

.synonyms strong {
    display: block;
    color: #6c757d;
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 8px;
}

/* Completion Message Styles */
.flashcard-completion {
    text-align: center;
    padding: 2rem;
    background: #d4edda;
    border: 2px solid #28a745;
    border-radius: 12px;
    margin-top: 1rem;
}

.flashcard-completion.hidden {
    display: none;
}

.flashcard-completion .completion-message {
    color: #155724;
    margin-bottom: 1rem;
}

.flashcard-completion h3 {
    color: #28a745;
    font-size: 2rem;
    margin: 0.5rem 0;
    font-weight: bold;
}

.flashcard-completion p {
    font-size: 1.1rem;
    margin: 0.5rem 0;
}

.flashcard-completion .fa-check-circle {
    font-size: 3.5rem;
    color: #28a745;
    margin-bottom: 0.5rem;
}

.flashcard-completion #next-lesson-btn {
    font-size: 1.2rem;
    padding: 0.75rem 2rem;
    font-weight: 600;
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.btn-primary:hover {
    background-color: #0069d9;
    border-color: #0062cc;
}

.btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
}

.btn-secondary:hover {
    background-color: #5a6268;
    border-color: #545b62;
}

.btn-nav {
    background: white;
    border: 1px solid #dee2e6;
    color: #495057;
}

.btn-nav:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
}

.controls-bottom {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 1rem;
    padding-bottom: 2rem;
}

.controls-bottom .btn {
    min-width: 120px;
}

.controls-bottom .btn-outline-secondary {
    color: #6c757d;
    border-color: #6c757d;
    background-color: #fff;
}

.controls-bottom .btn-outline-secondary:hover {
    color: #fff;
    background-color: #6c757d;
    border-color: #6c757d;
}

.controls-bottom .btn-primary {
    background-color: #007bff;
    border-color: #007bff;
    color: #fff;
}

.controls-bottom .btn-primary:hover {
    background-color: #0056b3;
    border-color: #004085;
}

/* ==========================================
   PROGRESS BAR
   ========================================== */
.progress {
    background-color: #e9ecef;
    border-radius: 4px;
}

.progress-bar {
    background-color: #28a745;
    font-size: 14px;
    font-weight: 600;
}

/* ==========================================
   FOOTER (Fixed height, appears above sidebar)
   ========================================== */
.footer {
    background: #efefef;
    color: rgba(0,0,0,.6);
    text-align: center;
    padding: 20px;
    margin-top: auto;
    font-size: 14px;
    position: relative;
    z-index: 200;
    height: 52px;
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */
.hidden {
    display: none !important;
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 991px) {
    #sidebar {
        display: none !important;
    }
}

@media (max-width: 1024px) {
    .learn-interface {
        padding: 0.5rem;
        min-height: calc(100vh - 67px);
    }
    
    .learn-progress-container {
        padding: 0.5rem 0.75rem;
        margin-bottom: 0.5rem;
    }
    
    .learn-card {
        padding: 0.5rem;
        margin-bottom: 0.5rem;
    }
    
    .flashcard-container {
        padding: 0;
        margin: 0;
    }
    
    .flashcard-front,
    .flashcard-back {
        padding: 12px 16px;
    }
    
    .flashcard-audio-btn {
        width: 36px;
        height: 36px;
        font-size: 1rem;
        top: 0.5rem;
        right: 0.5rem;
    }
    
    .flashcard-front h1 {
        font-size: 2rem;
        margin: 0;
    }
    
    .flashcard-front .part-of-speech {
        font-size: 0.95rem;
        margin: 0;
    }
    
    .flashcard-front .word-display {
        gap: 0.3rem;
    }
    
    .flashcard-back .definition-display {
        gap: 0.4rem;
        padding: 0;
    }
    
    .flashcard-back .word-back {
        font-size: 1.8rem;
        line-height: 1;
    }
    
    .definition {
        font-size: 0.95rem;
        line-height: 1.25;
    }
    
    .example {
        font-size: 0.85rem;
        padding: 8px;
        line-height: 1.2;
        margin: 0;
    }
    
    .synonyms {
        font-size: 0.85rem;
        padding-top: 6px;
        margin: 0;
    }
    
    .controls-bottom {
        margin-top: 0.5rem;
        gap: 10px;
        padding-bottom: 0.5rem;
    }
    
    .controls-bottom .btn {
        min-width: 100px;
        padding: 0.5rem 1rem;
        font-size: 0.95rem;
    }
    
    /* Completion message iPad styling */
    .flashcard-completion {
        padding: 1rem 0.5rem;
        margin: 0;
    }
    
    .flashcard-completion h3 {
        font-size: 1.5rem;
    }
    
    .flashcard-completion p {
        font-size: 0.95rem;
    }
    
    .flashcard-completion .fa-check-circle {
        font-size: 2.5rem;
    }
    
    .flashcard-completion #next-lesson-btn {
        font-size: 1rem;
        padding: 0.6rem 1.5rem;
    }
}

@media (max-width: 768px) {

    .page-content {
        margin-top: 57px;
    }

    .breadcrumb-nav {
        top: 71px
    }

    .box .btn {
        height: 100px;
        font-size: 1.5rem;
    }
    
    .box .btn span {
        font-size: 5rem;
    }
    
    .flashcard-front,
    .flashcard-back {
        padding: 12px;
    }
    
    .flashcard-audio-btn {
        width: 38px;
        height: 38px;
        font-size: 1rem;
        top: 0.5rem;
        right: 0.5rem;
    }
    
    .flashcard-front h1 {
        font-size: 2rem;
    }
    
    .flashcard-front .part-of-speech {
        font-size: 0.9rem;
    }
    
    .flashcard-front .word-display {
        gap: 0.3rem;
    }
    
    .flashcard-back .definition-display {
        gap: 0.4rem;
        padding: 0;
    }
    
    .flashcard-back .word-back {
        font-size: 1.8rem;
        line-height: 1;
    }
    
    .flashcard-container {
        padding: 0;
    }
    
    .learn-interface {
        padding: 0.5rem;
    }
    
    .learn-card {
        padding: 0.5rem;
        margin-bottom: 0.5rem;
    }
    
    .definition {
        font-size: 0.95rem;
        line-height: 1.25;
    }
    
    .example {
        font-size: 0.85rem;
        padding: 8px;
        line-height: 1.2;
    }
    
    .synonyms {
        font-size: 0.85rem;
        padding-top: 6px;
    }
    
    .word {
        font-size: 2rem;
    }
    
    .word-small {
        font-size: 1.5rem;
    }
    
    .controls-bottom {
        flex-direction: column;
        width: 100%;
        margin-top: 0.5rem;
        gap: 8px;
        padding-bottom: 0.5rem;
    }
    
    .controls-bottom .btn {
        width: 100%;
        padding: 0.6rem;
    }
    
    /* Completion message mobile styling */
    .flashcard-completion {
        padding: 1rem;
    }
    
    .flashcard-completion h3 {
        font-size: 1.3rem;
    }
    
    .flashcard-completion p {
        font-size: 0.9rem;
    }
    
    .flashcard-completion .fa-check-circle {
        font-size: 2rem;
    }
    
    .flashcard-completion #next-lesson-btn {
        width: 100%;
        font-size: 1rem;
        padding: 0.75rem;
    }
}

@media (max-width: 576px) {
    .flashcard-front,
    .flashcard-back {
        padding: 10px;
    }
    
    .flashcard-back .word-back {
        font-size: 1.6rem;
    }
    
    .word {
        font-size: 1.8rem;
    }
    
    .word-small {
        font-size: 1.4rem;
    }
    
    .definition {
        font-size: 1.1rem;
    }
}

/* ==========================================
   HOMEPAGE LESSON BOXES
   ========================================== */
.box {
    text-align: center;
    padding: 0; /* Remove all padding for flush grid */
}

.box a {
    font-family: myriad-pro-condensed, sans-serif;
    font-style: normal;
    font-weight: 700;
    padding: 80px 0; /* Fixed padding for consistent height */
    width: 100%;
    height: 100%;
    min-height: 300px; /* Ensure minimum height */
    line-height: 1.2;
    color: #fff;
    border: 0;
    border-radius: 0; /* No rounded corners - flush */
    font-size: 4rem;
    transition: opacity 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
}

.box a span {
    display: block;
    font-size: 9rem;
    font-weight: 700;
    line-height: 1;
    margin-top: 10px;
}

@media (max-width: 992px) {
    .box a {
        padding: 60px 0;
        min-height: 200px;
        font-size: 3rem;
    }
    .box a span {
        font-size: 6rem;
    }
}

@media (max-width: 768px) {
    .box a {
        padding: 40px 0;
        min-height: 150px;
        font-size: 2.5rem;
    }
    .box a span {
        font-size: 5rem;
    }
}

/* Level Colors */
/* Level button colors using curated muted palette */
.level-btn {
    text-decoration: none !important;
    color: #fff !important;
}

.level-4 {
    background-color: #7f9eb5;  /* Blue palette - lightest */
}

.level-4:hover {
    opacity: 0.9;
}

.level-5 {
    background-color: #9bbac3;  /* Teal palette - lightest */
}

.level-5:hover {
    opacity: 0.9;
}

.level-6 {
    background-color: #c9b8a2;  /* Brown palette - lightest */
}

.level-6:hover {
    opacity: 0.9;
}

.level-7 {
    background-color: #49799f;  /* Blue palette - medium */
}

.level-7:hover {
    opacity: 0.9;
}

.level-8 {
    background-color: #5b909e;  /* Teal palette - medium */
}

.level-8:hover {
    opacity: 0.9;
}

.level-9 {
    background-color: #a18270;  /* Brown palette - medium */
}

.level-9:hover {
    opacity: 0.9;
}

.level-10 {
    background-color: #2a4f76;  /* Blue palette - darkest */
}

.level-10:hover {
    opacity: 0.9;
}

.level-11 {
    background-color: #2f667a;  /* Teal palette - darkest */
}

.level-11:hover {
    opacity: 0.9;
}

.level-12 {
    background-color: #6e5a57;  /* Brown palette - darkest */
}

.level-12:hover {
    opacity: 0.9;
}

/* ==========================================
   LEARN MODULE (Matching main site design)
   ========================================== */
.learn-interface {
    background: #fff;
    min-height: calc(100vh - 67px);
    padding: 2rem;
    color: #212529;
}

.learn-progress-container {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1rem;
    /* margin-bottom: 2rem; */
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.learn-progress-bar {
    flex: 1;
    height: 20px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
}

.learn-progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #1B4C87 0%, #00659f 50%, #2099df 100%);
    border-radius: 10px;
    transition: width 0.3s ease;
    width: 0%;
}

.learn-progress-text {
    font-size: 1.6rem;
    color: #495057;
    font-weight: 600;
    flex-shrink: 0;
}

.learn-progress-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-shrink: 0;
}

.learn-action-btn {
    background: #1B4C87;
    border: none;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.learn-action-btn:hover {
    background: #153a6a;
    transform: scale(1.05);
}

.learn-card {
    background: #fff;
    margin: 1rem auto;
    width: 100%;
}

.learn-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #dee2e6;
}

.learn-mode {
    font-size: 2.2rem;
    color: #1B4C87;
    font-weight: 600;
}

.learn-header-controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.learn-audio-btn,
.learn-fullscreen-btn {
    background: #1B4C87;
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.learn-audio-btn:hover,
.learn-fullscreen-btn:hover {
    background: #00659f;
    transform: scale(1.1);
}

.learn-fullscreen-btn {
    font-size: 1rem;
}

/* Updated: 2025-11-13 18:45 - Cache bust v2 */
/* Fullscreen body state */
body.fullscreen-active {
    overflow: hidden !important;
}

/* Fullscreen Focus Mode Modal */
.focus-mode-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #f8f9fa;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    transition: opacity 0.3s ease;
}

.focus-mode-overlay.hidden {
    display: none;
}

/* Top navigation bar like Quizlet */
.focus-mode-topnav {
    width: 100%;
    height: 60px;
    background: #ffffff;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    position: relative;
    z-index: 10002;
    flex-shrink: 0;
}

.focus-mode-nav-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.focus-mode-nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.focus-mode-close {
    background: #e9ecef;
    border: none;
    color: #495057;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.focus-mode-close:hover {
    background: #dee2e6;
}

.focus-mode-container {
    width: 100%;
    height: 100%;
    flex: 1;
}

#focus-mode-content {
    width: 100%;
    height: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Fullscreen mode styles - CENTER EVERYTHING like an app */
#focus-mode-content .learn-interface,
#focus-mode-content > div[id$="-wrapper"] {
    width: 100%;
    flex: 1;
    max-width: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    overflow: visible;
    box-sizing: border-box;
    min-height: 0;
    border-radius: 8px;
}

/* Progress bar - contained with padding */
#focus-mode-content .learn-progress-container {
    width: calc(100% - 3rem);
    max-width: 1200px;
    margin: 0.75rem auto 1rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #dee2e6;
    position: relative;
    flex-shrink: 0;
    flex-grow: 0;
}

/* Progress counter for flashcards */
#focus-mode-content .learn-progress-container,
#focus-mode-content .card-counter {
    flex-shrink: 0;
}

#focus-mode-content .learn-card,
#focus-mode-content .flashcard-interface,
#focus-mode-content .match-interface,
#focus-mode-content .spell-interface {
    width: 100%;
    height: 100%;
}

/* Learn Module - Full width, centered vertically */
#focus-mode-content .learn-content {
    width: 100%;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    padding: 0 2rem;
    box-sizing: border-box;
    min-height: 0;
    gap: 1rem;
}

#focus-mode-content .learn-question {
    font-size: 3.5rem;
    text-align: center;
    width: 100%;
    max-width: 1400px;
    padding: 0 1rem;
    margin: 0;
    line-height: 1.3;
    flex: 0 1 auto;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

#focus-mode-content .learn-answer-prompt {
    display: none;
}

#focus-mode-content .learn-answers {
    width: 100%;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0;
}

#focus-mode-content .learn-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    width: 90%;
    max-width: 1600px;
    flex-shrink: 0;
}

#focus-mode-content .learn-option {
    font-size: 2rem;
    padding: 2.5rem;
    min-height: 120px;
}

/* Hide headers and navigation in fullscreen */
#focus-mode-content .learn-header,
#focus-mode-content .controls-top,
#focus-mode-content .match-header,
#focus-mode-content .spell-header,
#focus-mode-content .learn-back-btn {
    display: none;
}

/* Flashcards - Full screen, centered */
#focus-mode-content .flashcard-container {
    width: 100%;
    flex: 1 1 auto;
    max-width: none;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    min-height: 0;
    overflow: visible;
    padding: 0;
}

#focus-mode-content .flashcard {
    /* width: 85%;
    max-width: 1400px; */
    height: auto;
}

#focus-mode-content .flashcard-inner {
    height: auto;
}

#focus-mode-content .flashcard-front,
#focus-mode-content .flashcard-back {
    height: auto;
}

/* Spell - Full width, centered */
#focus-mode-content .spell-content {
    width: 100%;
    max-width: none;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 0;
    overflow: visible;
}

#focus-mode-content .spell-definition h3 {
    font-size: 3rem;
    text-align: center;
    padding: 2rem;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

#focus-mode-content .spell-input-area {
    width: 90%;
    max-width: 1200px;
}

#focus-mode-content .spell-input-area input {
    font-size: 2.5rem;
    width: 100%;
    max-width: none;
}

/* Match - Full width, centered grid */
#focus-mode-content .match-interface {
    width: 100%;
    height: 100%;
}

#focus-mode-content .match-game-area {
    width: 100%;
    padding: 1rem;
}

#focus-mode-content .match-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin: 0 auto;
    max-width: 1800px;
}

#focus-mode-content .match-card {
    min-height: 50px;
    font-size: 1rem;
    padding: 0.8rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Fullscreen: Add padding to bottom controls */
#focus-mode-content .controls-bottom {
    padding: 0.5rem 0 0.5rem;
    margin: 0;
    flex-shrink: 0;
}

#focus-mode-content .flashcard-interface {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 1rem;
}

/* Fullscreen: Responsive adjustments for tablets */
@media (max-width: 1024px) {
    .focus-mode-container {
        padding: 1rem !important;
    }
    
    #focus-mode-content .learn-progress-container {
        width: calc(100% - 2rem);
        margin: 0.5rem auto;
        padding: 0.5rem 1rem;
    }
    
    #focus-mode-content .learn-card {
        padding: 0.5rem;
    }
    
    #focus-mode-content .learn-content {
        padding: 0 0.75rem;
        gap: 0.5rem;
    }
    
    #focus-mode-content .learn-options {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        width: 95%;
    }
    
    #focus-mode-content .learn-option {
        font-size: 1.2rem;
        padding: 1rem;
        min-height: 70px;
    }
    
    #focus-mode-content .learn-question {
        font-size: 2rem;
        margin-bottom: 0;
        line-height: 1.2;
    }
    
    #focus-mode-content .match-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 1rem;
        width: 95%;
    }
    
    #focus-mode-content .match-card {
        font-size: 1rem;
        padding: .8rem;
        min-height: 50px;
    }
    
    #focus-mode-content .flashcard-container {
        padding: 0;
    }
    
    #focus-mode-content .flashcard {
        width: 95%;
    }
    
    #focus-mode-content .flashcard-front,
    #focus-mode-content .flashcard-back {
        padding: 12px 15px;
        gap: 0.4rem;
    }
    
    #focus-mode-content .flashcard-front h1 {
        font-size: 2rem;
    }
    
    #focus-mode-content .flashcard-back .word-back {
        font-size: 2rem;
    }
    
    #focus-mode-content .flashcard-back .definition {
        font-size: 1rem;
        line-height: 1.4;
    }
    
    #focus-mode-content .flashcard-back .example {
        font-size: 0.9rem;
        padding: 10px;
        line-height: 1.3;
    }
    
    #focus-mode-content .flashcard-back .synonyms {
        font-size: 0.9rem;
        padding-top: 10px;
    }
    
    #focus-mode-content .controls-bottom {
        padding: 0.5rem 0;
    }
    
    #focus-mode-content .spell-definition h3 {
        font-size: 2rem;
    }
    
    #focus-mode-content .spell-input-area input {
        font-size: 2rem;
    }
}

/* Fullscreen: Mobile adjustments */
@media (max-width: 768px) {
    .focus-mode-topnav {
        padding: 0 1rem;
        height: 55px;
    }
    
    /* Hide full title, show hamburger on mobile */
    .nav-title-full {
        display: none !important;
    }
    
    .nav-title-hamburger {
        display: block !important;
    }
    
    /* Adjust dropdown menu for mobile */
    .nav-module-dropdown-menu {
        min-width: 200px !important;
        left: 0 !important;
    }
    
    .nav-module-dropdown-btn {
        padding: 0.5rem !important;
    }
    
    .focus-mode-container {
        padding: 1rem;
    }
    
    #focus-mode-content .learn-progress-container {
        display: flex !important;
        margin: 0.5rem auto 1rem;
        padding: 0.5rem 1rem;
        max-width: 100%;
        width: calc(100% - 2rem);
        flex-direction: row;
        align-items: center;
    }
    
    #focus-mode-content .learn-options {
        grid-template-columns: 1fr;
        width: 95%;
    }
    
    #focus-mode-content .learn-option {
        font-size: 1.4rem;
        padding: 1.5rem;
    }
    
    #focus-mode-content .learn-question {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    #focus-mode-content .match-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        width: 95%;
    }
    
    #focus-mode-content .match-card {
        font-size: 1.1rem;
        padding: 1rem;
        min-height: 100px;
    }
    
    #focus-mode-content .learn-card,
    #focus-mode-content .flashcard-interface,
    #focus-mode-content .match-interface,
    #focus-mode-content .spell-interface {
        padding: 1rem;
    }
}

/* Remove old fullscreen styles */
body.learn-fullscreen .navbar,
body.learn-fullscreen .breadcrumb-component,
body.learn-fullscreen .sidebar-component {
    display: block !important;
}

body.learn-fullscreen .learn-interface {
    padding-top: inherit;
    min-height: inherit;
}


.learn-question {
    font-size: 2.8rem;
    color: #212529;
    text-align: center;
    line-height: 1.4;
    font-weight: 800;
}

.learn-answers {
    margin: 2rem 0rem;
}

.learn-answer-prompt {
    font-size: 1.8rem;
    color: #6c757d;
    margin-bottom: 1.5rem;
    text-align: center;
}

.learn-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 2rem;
}

.learn-option {
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 1.2rem 1.5rem;
    color: #212529;
    font-size: 1.6rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
}

.learn-option:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Remove focus and active states that cause visual artifacts */
.learn-option:focus,
.learn-option:active {
    outline: none !important;
    background: transparent !important;
    border-color: #dee2e6 !important;
    box-shadow: none !important;
}

/* Prevent tap highlight on iOS */
.learn-option {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

.learn-option.selected {
    background: #cce5ff;
    border-color: #1B4C87;
}

.learn-option.correct {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.learn-option.incorrect {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.learn-option-number {
    background: #1B4C87;
    color: white;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
    font-size: 1.2rem;
}

.learn-option.correct .learn-option-number {
    background: #28a745;
}

.learn-option.incorrect .learn-option-number {
    background: #dc3545;
}

.learn-option-text {
    flex: 1;
}

.learn-dont-know {
    background: none;
    border: none;
    color: #6c757d;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    float: right;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.learn-dont-know:hover {
    color: #495057;
    background: #f8f9fa;
}

.learn-back-btn {
    background: #6c757d;
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    font-size: 1.4rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.learn-back-btn:hover {
    background: #5a6268;
    color: white;
}

@media (max-width: 768px) {
    .learn-interface {
        padding: 1rem;
    }
    
    .learn-card {
        padding: 1.5rem;
    }
    
    .learn-question {
        font-size: 2.2rem;
    }
    
    .learn-options {
        grid-template-columns: 1fr;
    }
    
    .learn-progress-container {
        display: flex !important;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.75rem;
        padding: 0.75rem 1rem;
        margin-bottom: 1.5rem;
    }
    
    .learn-progress-bar {
        flex: 1 1 100%;
        margin-right: 0;
    }
    
    .learn-progress-text {
        font-size: 1.4rem;
    }
    
    .learn-progress-actions {
        margin-left: auto;
    }
    
    .learn-action-btn {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .learn-option {
        font-size: 1.4rem;
    }
    
    .learn-mode {
        font-size: 1.8rem;
    }
    
    .learn-answer-prompt {
        font-size: 1.5rem;
    }
}

/* ==========================================
   MATCH GAME STYLES
   ========================================== */

.match-interface {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Desktop - use fixed height for proper centering */
@media (min-width: 1025px) {
    .learn-interface {
        height: calc(100vh - 67px - 58px);
    }
}

.match-header {
    gap: 1rem;
    margin-bottom: 2rem;
}

.match-info h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.match-stats {
    font-size: 1.3rem;
    color: #666;
}

.match-game-area {
    margin: 0;
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.match-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
    flex: 1;
    align-content: start;
}

.match-card {
    padding: 0.8rem;
    text-align: center;
    font-size: 1rem;
    border-radius: 12px;
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    transition: all 0.3s ease;
    cursor: pointer;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    word-wrap: break-word;
    position: relative;
}

.match-card:hover:not(.matched) {
    background: #e9ecef;
    border-color: #adb5bd;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.match-card.selected {
    background: #cce5ff;
    border-color: #1B4C87;
    border-width: 3px;
    transform: scale(1.02);
}

.match-card.matched {
    animation: matchSuccess 0.6s ease;
    pointer-events: none;
}

@keyframes matchSuccess {
    0% {
        background: #d4edda;
        border-color: #28a745;
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        opacity: 0;
        transform: scale(0.8);
    }
}

.match-card.wrong {
    animation: matchWrong 0.5s ease;
}

@keyframes matchWrong {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.match-item.shake {
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.match-controls {
    margin-top: 2rem;
}

.match-complete {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.match-complete.hidden {
    display: none;
}

.match-results {
    background: white;
    padding: 3rem;
    border-radius: 1rem;
    text-align: center;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.match-results h3 {
    font-size: 2.5rem;
    color: #28a745;
    margin-bottom: 2rem;
}

.match-results .fa-trophy {
    color: #ffc107;
    font-size: 3rem;
    margin-right: 0.5rem;
}

.final-stats {
    font-size: 1.5rem;
    margin: 2rem 0;
}

.final-stats p {
    margin: 1rem 0;
    color: #666;
}

.final-stats span {
    font-weight: bold;
    color: #333;
    font-size: 1.8rem;
}

.match-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.loading, .error {
    padding: 3rem;
    text-align: center;
}

.loading.hidden, .error.hidden {
    display: none;
}

/* Responsive match game */
@media (max-width: 992px) {
    .match-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .match-grid {
        gap: 0.5rem;
    }
    
    .match-card {
        padding: 0.75rem;
        font-size: 0.9rem;
        min-height: 60px;
    }
}

@media (max-width: 768px) {
    .match-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .match-card {
        padding: 0.6rem;
        font-size: 0.85rem;
        min-height: 55px;
    }
    
    .match-header {
        flex-direction: column;
    }
    
    .match-info h2 {
        font-size: 1.5rem;
    }
    
    .match-stats {
        font-size: 1.1rem;
    }
    
    .match-results {
        padding: 2rem;
        margin: 1rem;
    }
    
    .match-results h3 {
        font-size: 2rem;
    }
    
    .match-actions {
        flex-direction: column;
    }
}

/* ==========================================
   SPELL INTERFACE STYLES
   ========================================== */

.spell-interface {
    max-width: 900px;
    margin: 0 auto;
    padding: 1rem 0;
}

.spell-header {
    gap: 1rem;
    margin-bottom: 2rem;
}

.spell-game-area {
    text-align: center;
}

.spell-content {
    max-width: 700px;
    margin: 0 auto;
}

.spell-definition h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.spell-audio-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.spell-input-area {
    max-width: 500px;
    margin: 0 auto;
}

.spell-input-area input {
    font-size: 1.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

.spell-feedback {
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
}

.spell-feedback.correct {
    background: #d4edda;
    border: 2px solid #28a745;
}

.spell-feedback.incorrect {
    background: #f8d7da;
    border: 2px solid #dc3545;
}

.feedback-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feedback-text {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.correct-spelling {
    font-size: 1.3rem;
    color: #495057;
}

@media (max-width: 768px) {
    .spell-header {
        flex-direction: column;
    }
    
    .spell-audio-controls {
        flex-direction: column;
    }
    
    .spell-definition h3 {
        font-size: 1.4rem;
    }
}

/* ==========================================
   LESSON CARD STYLES (Level Landing Pages)
   ========================================== */

/* Flush grid layout for lesson cards */
#lessons-container {
    margin-left: 0;
    margin-right: 0;
}

#lessons-container > div {
    padding-left: 0;
    padding-right: 0;
}

.lesson-card {
    border: none;
    border-radius: 0; /* Remove rounded corners for flush grid */
    transition: transform 0.2s, box-shadow 0.2s;
    background-color: #1B4C87;  /* Default fallback color */
    color: white;
    padding: 1rem;
}

.lesson-card:hover {
    /* transform: translateY(-5px); */
    /* box-shadow: 0 8px 20px rgba(0,0,0,0.3); */
    opacity: 0.9;
}

.lesson-card .card-title {
    color: white;
    font-weight: 700;
    font-size: 2rem;
    padding-bottom: .25rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    margin-top: -15px
}

.lesson-card .list-group-item {
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    /* padding: 1rem; */
    font-size: 1.2rem;
    transition: all 0.2s;
    background-color: transparent;
    color: white;
}

.lesson-card .list-group-item:last-child {
    border-bottom: none;
}

.lesson-card .list-group-item:hover {
    background-color: rgba(255, 255, 255, 0.15);
    padding-left: 1.5rem;
}

.lesson-card .list-group-item i {
    margin-right: 10px;
    color: white;
    width: 20px;
    text-align: center;
}

#level-title {
    color: #1B4C87;
}

/* ==========================================
   LESSON CARD COLOR ROTATION (5-shade pattern)
   Pattern: Lessons 1,6,11,16,21 = shade 1
            Lessons 2,7,12,17 = shade 2
            Lessons 3,8,13,18 = shade 3
            Lessons 4,9,14,19 = shade 4
            Lessons 5,10,15,20 = shade 5
   ========================================== */

/* Level 4 - Blues (matching original site) */
.level-4-lessons > div:nth-child(5n+1) .lesson-card { background-color: #222f49; } /* Darkest blue */
.level-4-lessons > div:nth-child(5n+2) .lesson-card { background-color: #2a4f76; } /* Dark blue */
.level-4-lessons > div:nth-child(5n+3) .lesson-card { background-color: #386b94; } /* Medium blue */
.level-4-lessons > div:nth-child(5n+4) .lesson-card { background-color: #628bac; } /* Light blue */
.level-4-lessons > div:nth-child(5n) .lesson-card { background-color: #7f9eb5; } /* Lighter blue */

/* Level 5 - Teals/Cyans (matching original site) */
.level-5-lessons > div:nth-child(5n+1) .lesson-card { background-color: #1d4453; } /* Darkest teal */
.level-5-lessons > div:nth-child(5n+2) .lesson-card { background-color: #2f667a; } /* Dark teal */
.level-5-lessons > div:nth-child(5n+3) .lesson-card { background-color: #5b909e; } /* Medium teal */
.level-5-lessons > div:nth-child(5n+4) .lesson-card { background-color: #7ba5b0; } /* Light teal */
.level-5-lessons > div:nth-child(5n) .lesson-card { background-color: #9bbac3; } /* Lighter teal */

/* Level 5 - Teals/Cyans (matching original site) */
.level-5-lessons .lesson-card:nth-child(5n+1) { background-color: #1d4453; } /* Darkest teal */
.level-5-lessons .lesson-card:nth-child(5n+2) { background-color: #2f667a; } /* Dark teal */
.level-5-lessons .lesson-card:nth-child(5n+3) { background-color: #5b909e; } /* Medium teal */
.level-5-lessons .lesson-card:nth-child(5n+4) { background-color: #7ba5b0; } /* Light teal */
.level-5-lessons .lesson-card:nth-child(5n) { background-color: #9bbac3; } /* Lighter teal */

/* Level 6 - Purples (matching original site - brighter shades) */
.level-6-lessons > div:nth-child(5n+1) .lesson-card { background-color: #2b2b29; } /* Darkest brown */
.level-6-lessons > div:nth-child(5n+2) .lesson-card { background-color: #554b4b; } /* Dark brown */
.level-6-lessons > div:nth-child(5n+3) .lesson-card { background-color: #8a6d63; } /* Medium brown */
.level-6-lessons > div:nth-child(5n+4) .lesson-card { background-color: #b99e85; } /* Light brown */
.level-6-lessons > div:nth-child(5n) .lesson-card { background-color: #c9b8a2; } /* Lighter brown */

/* Level 7 - Pinks (matching original site) */
.level-7-lessons > div:nth-child(5n+1) .lesson-card { background-color: #222f49; } /* Darkest blue */
.level-7-lessons > div:nth-child(5n+2) .lesson-card { background-color: #2a4f76; } /* Dark blue */
.level-7-lessons > div:nth-child(5n+3) .lesson-card { background-color: #386b94; } /* Medium blue */
.level-7-lessons > div:nth-child(5n+4) .lesson-card { background-color: #628bac; } /* Light blue */
.level-7-lessons > div:nth-child(5n) .lesson-card { background-color: #7f9eb5; } /* Lighter blue */

/* Level 8 - Oranges/Reds (matching original site) */
.level-8-lessons > div:nth-child(5n+1) .lesson-card { background-color: #1d4453; } /* Darkest teal */
.level-8-lessons > div:nth-child(5n+2) .lesson-card { background-color: #2f667a; } /* Dark teal */
.level-8-lessons > div:nth-child(5n+3) .lesson-card { background-color: #5b909e; } /* Medium teal */
.level-8-lessons > div:nth-child(5n+4) .lesson-card { background-color: #7ba5b0; } /* Light teal */
.level-8-lessons > div:nth-child(5n) .lesson-card { background-color: #9bbac3; } /* Lighter teal */

/* Level 9 - Greens (matching original site) */
.level-9-lessons > div:nth-child(5n+1) .lesson-card { background-color: #2b2b29; } /* Darkest brown */
.level-9-lessons > div:nth-child(5n+2) .lesson-card { background-color: #554b4b; } /* Dark brown */
.level-9-lessons > div:nth-child(5n+3) .lesson-card { background-color: #8a6d63; } /* Medium brown */
.level-9-lessons > div:nth-child(5n+4) .lesson-card { background-color: #b99e85; } /* Light brown */
.level-9-lessons > div:nth-child(5n) .lesson-card { background-color: #c9b8a2; } /* Lighter brown */

/* Level 10 - Bright Pinks/Magentas (matching original site) */
.level-10-lessons > div:nth-child(5n+1) .lesson-card { background-color: #222f49; } /* Darkest blue */
.level-10-lessons > div:nth-child(5n+2) .lesson-card { background-color: #2a4f76; } /* Dark blue */
.level-10-lessons > div:nth-child(5n+3) .lesson-card { background-color: #386b94; } /* Medium blue */
.level-10-lessons > div:nth-child(5n+4) .lesson-card { background-color: #628bac; } /* Light blue */
.level-10-lessons > div:nth-child(5n) .lesson-card { background-color: #7f9eb5; } /* Lighter blue */

/* Level 11 - Light Greens (slightly different from Level 9) */
.level-11-lessons > div:nth-child(5n+1) .lesson-card { background-color: #1d4453; } /* Darkest teal */
.level-11-lessons > div:nth-child(5n+2) .lesson-card { background-color: #2f667a; } /* Dark teal */
.level-11-lessons > div:nth-child(5n+3) .lesson-card { background-color: #5b909e; } /* Medium teal */
.level-11-lessons > div:nth-child(5n+4) .lesson-card { background-color: #7ba5b0; } /* Light teal */
.level-11-lessons > div:nth-child(5n) .lesson-card { background-color: #9bbac3; } /* Lighter teal */

/* Level 12 - Browns/Oranges */
.level-12-lessons > div:nth-child(5n+1) .lesson-card { background-color: #2b2b29; } /* Darkest brown */
.level-12-lessons > div:nth-child(5n+2) .lesson-card { background-color: #554b4b; } /* Dark brown */
.level-12-lessons > div:nth-child(5n+3) .lesson-card { background-color: #8a6d63; } /* Medium brown */
.level-12-lessons > div:nth-child(5n+4) .lesson-card { background-color: #b99e85; } /* Light brown */
.level-12-lessons > div:nth-child(5n) .lesson-card { background-color: #c9b8a2; } /* Lighter brown */

/* ==========================================
   ACTIVITY CARD STYLES (Lesson Landing Pages)
   ========================================== */

.activity-card-link, .activity-card-link:hover {
    text-decoration: none;
    color: inherit;
    display: block;
}

.activity-card {
    border: none;
    border-radius: 12px;
    transition: all 0.3s;
    min-height: 300px;
    background-color: #1B4C87;  /* Default fallback */
    color: white;
}

.activity-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    opacity: 0.9;
}

.activity-icon {
    font-size: 5rem;
    color: white;
    transition: all 0.3s;
}

.activity-card:hover .activity-icon {
    transform: scale(1.1);
}

.activity-card .card-title {
    color: white;
    font-weight: 700;
    font-size: 2rem;
}

.activity-card .card-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

#lesson-title {
    color: #1B4C87;
    font-weight: 700;
}

.btn-outline-primary {
    color: #1B4C87;
    border-color: #1B4C87;
}

.btn-outline-primary:hover {
    background-color: #1B4C87;
    border-color: #1B4C87;
    color: white;
}

/* ==========================================
   ACTIVITY CARD COLORS (Matching lesson card colors exactly)
   Learn = Shade 1, Flashcards = Shade 2,
   Match = Shade 3, Spell = Shade 4
   ========================================== */

/* Level 4 - Blues (matching lesson cards) */
.level-4-activities .activity-learn { background-color: #273f60; } /* Dark blue */
.level-4-activities .activity-flashcards { background-color: #2b5f8b; } /* Medium-dark blue */
.level-4-activities .activity-match { background-color: #49799f; } /* Medium blue */
.level-4-activities .activity-spell { background-color: #628bac; } /* Light blue */

/* Level 5 - Teals (matching lesson cards) */
.level-5-activities .activity-learn { background-color: #245466; } /* Dark teal */
.level-5-activities .activity-flashcards { background-color: #417b8c; } /* Medium-dark teal */
.level-5-activities .activity-match { background-color: #5b909e; } /* Medium teal */
.level-5-activities .activity-spell { background-color: #7ba5b0; } /* Light teal */

/* Level 6 - Purples (matching lesson cards) */
.level-6-activities .activity-learn { background-color: #403e3c; } /* Dark brown */
.level-6-activities .activity-flashcards { background-color: #6e5a57; } /* Medium-dark brown */
.level-6-activities .activity-match { background-color: #a18270; } /* Medium brown */
.level-6-activities .activity-spell { background-color: #b99e85; } /* Light brown */

/* Level 7 - Pinks (matching lesson cards) */
.level-7-activities .activity-learn { background-color: #273f60; } /* Dark blue */
.level-7-activities .activity-flashcards { background-color: #2b5f8b; } /* Medium-dark blue */
.level-7-activities .activity-match { background-color: #49799f; } /* Medium blue */
.level-7-activities .activity-spell { background-color: #628bac; } /* Light blue */

/* Level 8 - Oranges/Reds (matching lesson cards) */
.level-8-activities .activity-learn { background-color: #245466; } /* Dark teal */
.level-8-activities .activity-flashcards { background-color: #417b8c; } /* Medium-dark teal */
.level-8-activities .activity-match { background-color: #5b909e; } /* Medium teal */
.level-8-activities .activity-spell { background-color: #7ba5b0; } /* Light teal */

/* Level 9 - Greens (matching lesson cards) */
.level-9-activities .activity-learn { background-color: #403e3c; } /* Dark brown */
.level-9-activities .activity-flashcards { background-color: #6e5a57; } /* Medium-dark brown */
.level-9-activities .activity-match { background-color: #a18270; } /* Medium brown */
.level-9-activities .activity-spell { background-color: #b99e85; } /* Light brown */

/* Level 10 - Bright Pinks/Magentas (matching lesson cards) */
.level-10-activities .activity-learn { background-color: #273f60; } /* Dark blue */
.level-10-activities .activity-flashcards { background-color: #2b5f8b; } /* Medium-dark blue */
.level-10-activities .activity-match { background-color: #49799f; } /* Medium blue */
.level-10-activities .activity-spell { background-color: #628bac; } /* Light blue */

/* Level 11 - Light Greens (matching lesson cards) */
.level-11-activities .activity-learn { background-color: #245466; } /* Dark teal */
.level-11-activities .activity-flashcards { background-color: #417b8c; } /* Medium-dark teal */
.level-11-activities .activity-match { background-color: #5b909e; } /* Medium teal */
.level-11-activities .activity-spell { background-color: #7ba5b0; } /* Light teal */

/* Level 12 - Browns/Oranges (matching lesson cards) */
.level-12-activities .activity-learn { background-color: #403e3c; } /* Dark brown */
.level-12-activities .activity-flashcards { background-color: #6e5a57; } /* Medium-dark brown */
.level-12-activities .activity-match { background-color: #a18270; } /* Medium brown */
.level-12-activities .activity-spell { background-color: #b99e85; } /* Light brown */
