/* #############################################################################
   🔵 SECTION 1: GLOBAL SETTINGS & DESKTOP (पायाभूत आणि लॅपटॉप स्टाईल)
   IMPORTANT: हा कोड पूर्ण वेबसाईटचा बेस आहे. 
   START POINT
   ############################################################################# */
    /* 🔴🔴🔴🔴🔴🔴 बॅकग्राऊंड कलर 🔴🔴🔴🔴🔴🔴 */
            @media screen and (min-width: 769px) {

                /* 1. मुख्य बॉडी आणि रंगाचे सेटिंग */
                body, html {
                    margin: 0;
                    padding: 0;
                    font-family: 'Verdana', sans-serif;
                    background-color: #0f172a;
                }

                #day-selector-modal {
                    position: relative;
                    width: 100%;
                    height: 100vh;
                    overflow-y: auto;
                    background: radial-gradient(circle at center, #1e293b 0%, #0f172a 100%);
                    counter-reset: global-step;
                }

                /* 🔴🔴🔴🔴🔴🔴 3. वाकडी तिकडी रेष (SVG Path) 🔴🔴🔴🔴🔴🔴 */
                .svg-path {
                    position: absolute;
                    top: 0;
                    left: 0;
                    width: 100%;
                    height: 100%;
                    z-index: 0;
                    pointer-events: none;
                }
                /* Road Shadow Layer */
                .svg-path .road-shadow {
                    stroke: rgba(0, 0, 0, 0.35);
                    stroke-width: 52;
                    fill: none;
                    stroke-linecap: round;
                    stroke-linejoin: round;
                }
                /* Road Base Layer (Main visible road) */
                .svg-path .road-base {
                    stroke: #1e3a5f;
                    stroke-width: 44;
                    fill: none;
                    stroke-linecap: round;
                    stroke-linejoin: round;
                    filter: drop-shadow(0 0 8px rgba(0, 210, 255, 0.15));
                }
                /* Road Edge Lines */
                .svg-path .road-edge {
                    stroke: rgba(0, 234, 255, 0.25);
                    stroke-width: 46;
                    fill: none;
                    stroke-linecap: round;
                    stroke-linejoin: round;
                }
                /* Road Inner Surface */
                .svg-path .road-inner {
                    stroke: #253d5c;
                    stroke-width: 38;
                    fill: none;
                    stroke-linecap: round;
                    stroke-linejoin: round;
                }
                /* Animated Flowing Center Line */
                .moving-dotted-line {
                    stroke: #00eaff;
                    stroke-width: 4;
                    fill: none;
                    stroke-linecap: round;
                    stroke-dasharray: 16 24;
                    animation: roadMove 1.2s linear infinite;
                    filter: drop-shadow(0 0 6px #00eaff);
                }
                /* Second animated line (glow) */
                .moving-glow-line {
                    stroke: rgba(0, 234, 255, 0.3);
                    stroke-width: 10;
                    fill: none;
                    stroke-linecap: round;
                    stroke-dasharray: 16 24;
                    animation: roadMove 1.2s linear infinite;
                    filter: drop-shadow(0 0 12px rgba(0, 234, 255, 0.5));
                }
                @keyframes roadMove {
                    to { stroke-dashoffset: -40; }
                }

                /* 4. बटणे (Desktop Nodes) */
                .path-node {
                    position: absolute !important;
                    width: 90px;
                    height: 90px;
                    border-radius: 50%;
                    z-index: 50;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    font-weight: 900;
                    font-size: 32px;
                    color: white;
                    cursor: pointer;
                    background: radial-gradient(circle at 30% 30%, #3b82f6, #1d4ed8);
                    border: 4px solid #ffffff; 
                    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
                    text-shadow: 0 2px 2px rgba(0,0,0,0.5);
                    transition: transform 0.2s;
                    overflow: hidden; 
                    counter-increment: global-step; 
                }
                
                .path-node span {
                    display: none !important;
                }

                /* बटणावर नंबर */
                .path-node::after {
                    content: counter(global-step);
                    font-size: 32px;
                    font-weight: 900;
                    color: white;
                    text-shadow: 0 2px 2px rgba(0,0,0,0.5);
                }
                /* === एक्झाम बटण (Desktop Trophy) === */
                .path-node.node-exam {
                    counter-increment: none !important; 
                    background: radial-gradient(circle at 30% 30%, #ffd700, #fdb931) !important;
                    border: 5px solid #fff !important;
                    box-shadow: 0 0 30px rgba(255, 215, 0, 0.6) !important;
                    width: 110px !important;
                    height: 110px !important;
                    animation: floatTrophy 3s infinite;
                    z-index: 60;
                }

                .path-node:hover {
                    transform: scale(1.15) translateY(-5px);
                    z-index: 100;
                    filter: brightness(1.2);
                    box-shadow: 0 0 20px #00eaff;
                }

                /* लेव्हल कलर्स (रंग) */
                .level-color-1 { background: radial-gradient(circle at 30% 30%, #0ea5e9, #0284c7) !important; }
                .level-color-2 { background: radial-gradient(circle at 30% 30%, #10b981, #059669) !important; }
                .level-color-3 { background: radial-gradient(circle at 30% 30%, #8b5cf6, #6d28d9) !important; }
                .level-color-4 { background: radial-gradient(circle at 30% 30%, #f59e0b, #d97706) !important; }
                .level-color-5 { background: radial-gradient(circle at 30% 30%, #ef4444, #b91c1c) !important; }

                /* ट्रॉफी स्टाईल */
                .node-exam {
                    background: radial-gradient(circle at 30% 30%, #ffd700, #fdb931) !important;
                    border: 5px solid #fff !important;
                    width: 110px !important;
                    height: 110px !important; 
                    box-shadow: 0 0 30px rgba(255, 215, 0, 0.6) !important;
                    animation: floatTrophy 3s ease-in-out infinite;
                    z-index: 55;
                }
                .node-exam::after {
                    content: '🏆' !important;
                    font-size: 50px !important;
                    text-shadow: 0 5px 5px rgba(0,0,0,0.3) !important;
                }
                @keyframes floatTrophy {
                    0%, 100% { transform: translateY(0); }
                    50% { transform: translateY(-10px); } 
                }

                /* === लेव्हल टायटल बॅज (Desktop Level Labels) === */
                .level-badge {
                    position: absolute;
                    z-index: 60;
                    padding: 10px 30px;
                    border-radius: 30px;
                    font-weight: 900;
                    font-size: 13px;
                    letter-spacing: 1px;
                    text-align: center;
                    white-space: nowrap;
                    color: #fff;
                    font-family: 'Segoe UI', system-ui, sans-serif;
                    box-shadow: 0 6px 24px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.2);
                    border: 2px solid rgba(255,255,255,0.25);
                    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
                    animation: badgeAppear 0.5s cubic-bezier(.34,1.56,.64,1) forwards;
                }
                .level-badge.level-theme-1 { background: linear-gradient(145deg, #1565C0, #42A5F5); }
                .level-badge.level-theme-2 { background: linear-gradient(145deg, #E65100, #FF9800); }
                .level-badge.level-theme-3 { background: linear-gradient(145deg, #B71C1C, #EF5350); }
                .level-badge.level-theme-4 { background: linear-gradient(145deg, #6A1B9A, #CE93D8); }
                .level-badge.level-theme-5 { background: linear-gradient(145deg, #1B5E20, #66BB6A); }
                @keyframes badgeAppear {
                    0% { transform: translateX(-50%) scale(0.3); opacity: 0; }
                    100% { transform: translateX(-50%) scale(1); opacity: 1; }
                }
            }

            /* ############################################################################# 
            🔴 END OF SECTION 1 (DESKTOP) 🔴🔴🔴🔴🔴🔴 IMP End 🔴🔴🔴🔴🔴🔴 
            ############################################################################# */


            /* #############################################################################
            🔵 SECTION 2: MOBILE VIEW (मोबाईलसाठी चौकोनी बटणे)
            IMPORTANT: मोबाईलवर बटणे गोल ऐवजी चौकोनी आणि 3D दिसण्यासाठी हा कोड आहे.
            START POINT
            ############################################################################# */

            @media screen and (max-width: 768px) {

                /* 1. स्क्रीन सेटिंग */
                #day-selector-modal {
                    overflow-x: hidden !important; 
                    overflow-y: auto !important;     
                    width: 100% !important;
                    counter-reset: level-step;
                }

                /* 2. रस्ता कंटेनर (उभा) */
                #game-path-container {
                    display: flex !important;
                    flex-direction: column !important;
                    align-items: center !important;
                    width: 100% !important;
                    padding-top: 60px !important;
                    padding-bottom: 200px !important;
                    position: relative;
                }

                /* 3. ⏹️ 3D SQUARE BUTTONS (महत्त्वाचे) */
                .path-node {
                    position: relative !important;
                    left: auto !important;
                    top: auto !important;
                    transform: none !important;
                    width: 75px !important;
                    height: 65px !important;
                    border-radius: 15px !important;
                    margin-bottom: 40px !important;
                    background: #3b82f6 !important;
                    
                    /* 3D शॅडो */
                    box-shadow: 
                        0px 8px 0px #1e40af,
                        0px 15px 10px rgba(0,0,0,0.2),
                        inset 0px 4px 0px rgba(255,255,255,0.3),
                        inset 0px -4px 0px rgba(0,0,0,0.1) !important;
                    border: none !important;
                    
                    font-size: 0 !important;
                    display: flex !important;
                    justify-content: center !important;
                    align-items: center !important;
                    z-index: 10;
                    
                    counter-increment: level-step;
                    transition: transform 0.1s, box-shadow 0.1s;
                }

                /* 4. बटण दाबल्यावर (Active State) */
                .path-node:active {
                    transform: translateY(8px) !important; 
                    box-shadow: 
                        0px 0px 0px #1e40af, 
                        0px 2px 2px rgba(0,0,0,0.2),
                        inset 0px 4px 0px rgba(255,255,255,0.3) !important;
                }

                /* 5. बटणावरील नंबर */
                .path-node::after {
                    content: counter(level-step);
                    font-size: 26px !important;
                    font-family: 'Verdana', sans-serif !important;
                    font-weight: bold !important;
                    color: white !important;
                    text-shadow: 1px 1px 0px rgba(0,0,0,0.2);
                }

                /* 6. झिग-झॅग (Zig-Zag) मांडणी */
                .path-node:nth-child(odd) {
                    margin-right: 80px !important;
                }
                .path-node:nth-child(even) {
                    margin-left: 80px !important;
                }

                /* मोबाईल कलर कोड्स (Specific Hex) */
                .path-node.level-color-1 {
                    background: #0b9bde !important;
                    box-shadow: 0px 8px 0px #097bb0, 0px 15px 10px rgba(0,0,0,0.2), inset 0px 4px 0px rgba(255,255,255,0.3) !important;
                }
                .path-node.level-color-1:active {
                    box-shadow: 0px 0px 0px #097bb0, inset 0px 4px 0px rgba(255,255,255,0.3) !important;
                }

                .path-node.level-color-2 {
                    background: #0fb67f !important;
                    box-shadow: 0px 8px 0px #0c9165, 0px 15px 10px rgba(0,0,0,0.2), inset 0px 4px 0px rgba(255,255,255,0.3) !important;
                }
                .path-node.level-color-2:active {
                    box-shadow: 0px 0px 0px #0c9165, inset 0px 4px 0px rgba(255,255,255,0.3) !important;
                }

                .path-node.level-color-3 {
                    background: #8654f1 !important;
                    box-shadow: 0px 8px 0px #6a42c0, 0px 15px 10px rgba(0,0,0,0.2), inset 0px 4px 0px rgba(255,255,255,0.3) !important;
                }
                .path-node.level-color-3:active {
                    box-shadow: 0px 0px 0px #6a42c0, inset 0px 4px 0px rgba(255,255,255,0.3) !important;
                }

                .path-node.level-color-4 {
                    background: #f1980b !important;
                    box-shadow: 0px 8px 0px #c07908, 0px 15px 10px rgba(0,0,0,0.2), inset 0px 4px 0px rgba(255,255,255,0.3) !important;
                }
                .path-node.level-color-4:active {
                    box-shadow: 0px 0px 0px #c07908, inset 0px 4px 0px rgba(255,255,255,0.3) !important;
                }

                .path-node.level-color-5 {
                    background: #e93f3f !important;
                    box-shadow: 0px 8px 0px #ba3232, 0px 15px 10px rgba(0,0,0,0.2), inset 0px 4px 0px rgba(255,255,255,0.3) !important;
                }
                .path-node.level-color-5:active {
                    box-shadow: 0px 0px 0px #ba3232, inset 0px 4px 0px rgba(255,255,255,0.3) !important;
                }

                /* रस्ता आणि रेषा बंद (फक्त connector, canvas बंद — SVG road चालू) */
                .path-node::before {
                    display: none !important;
                }
                .path-node span {
                    display: none !important;
                }
                canvas, .connector-line {
                    display: none !important;
                }

                /* Mobile Road SVG */
                .mobile-road-svg {
                    position: absolute !important;
                    top: 0;
                    left: 0;
                    width: 100%;
                    height: 100%;
                    pointer-events: none;
                    z-index: 1 !important;
                    display: block !important;
                }
                .mobile-road-svg .road-shadow-m {
                    stroke: rgba(0, 0, 0, 0.35);
                    stroke-width: 34;
                    fill: none;
                    stroke-linecap: round;
                    stroke-linejoin: round;
                }
                .mobile-road-svg .road-base-m {
                    stroke: #1e3a5f;
                    stroke-width: 28;
                    fill: none;
                    stroke-linecap: round;
                    stroke-linejoin: round;
                    filter: drop-shadow(0 0 6px rgba(0, 210, 255, 0.15));
                }
                .mobile-road-svg .road-inner-m {
                    stroke: #253d5c;
                    stroke-width: 22;
                    fill: none;
                    stroke-linecap: round;
                    stroke-linejoin: round;
                }
                .mobile-road-svg .road-highlight-m {
                    stroke: rgba(0, 234, 255, 0.25);
                    stroke-width: 10;
                    fill: none;
                    stroke-linecap: round;
                    stroke-linejoin: round;
                }
                .mobile-road-svg .moving-dots-m {
                    stroke: #00eaff;
                    stroke-width: 4;
                    fill: none;
                    stroke-linecap: round;
                    stroke-dasharray: 8 18;
                    animation: mobileRoadFlow 0.7s linear infinite;
                    filter: drop-shadow(0 0 4px #00eaff);
                }
                @keyframes mobileRoadFlow {
                    to { stroke-dashoffset: -26; }
                }

                /* =================================================
                🏆 MOBILE EXAM BUTTON (3D GOLDEN FIX)
                हा कोड मोबाईलवर ट्रॉफी बटण सोन्याचे बनवतो.
                ================================================= */
                .path-node.node-exam {
                    background: radial-gradient(circle at 35% 35%, #f0bf1d 0%, #ffd700 40%, #eebd1e 85%, #d69b07 100%) !important;
                    box-shadow: 
                        inset 0 5px 10px rgb(255, 196, 0),
                        inset 0 -10px 20px rgba(184, 134, 11, 0.5),
                        0 8px 0 #b8860b,
                        0 15px 20px rgba(0, 0, 0, 0.4),
                        0 0 30px rgba(255, 215, 0, 0.5) !important;
                    border: 2px solid rgba(255, 255, 255, 0.6) !important;
                    width: 95px !important;
                    height: 95px !important;
                    border-radius: 50% !important;
                    color: transparent !important;
                    counter-increment: none !important;
                    z-index: 100 !important;
                    display: flex !important;
                    align-items: center !important;
                    justify-content: center !important;
                    margin-left: auto !important;
                    margin-right: auto !important;
                    margin-bottom: 50px !important;
                    animation: real3DBounce 2s ease-in-out infinite !important;
                }
                .path-node.node-exam::after {
                    content: '🏆' !important;
                    font-size: 45px !important;
                    color: initial !important;
                    filter: drop-shadow(0 5px 4px rgba(0,0,0,0.4)) !important;
                    text-shadow: none !important;
                    animation: none !important;
                }
                @keyframes real3DBounce {
                    0%, 100% { transform: translateY(0); }
                    50% { transform: translateY(-12px); } 
                }
            }

            /* #############################################################################
            🔴 END OF SECTION 2 (MOBILE) 🔴🔴🔴🔴🔴🔴 Main Page End 🔴🔴🔴🔴🔴🔴
            ############################################################################# */

🔴🔴🔴🔴🔴🔴


/* #############################################################################
   🔵 SECTION 4: HELPER CLASSES (हायलाईट आणि झूम)
   IMPORTANT: हे शब्दांना पिवळा रंग आणि कार्डला झूम इफेक्ट देते.
   START POINT
   ############################################################################# */

/* शब्द वाचताना पिवळा हायलाईट */
.highlight {
    background-color: #facc15 !important;
    color: black !important;
    transform: scale(1.3);
    border-radius: 4px;
    padding: 0 5px;
    box-shadow: 0 0 15px rgba(253, 224, 71, 0.8);
    z-index: 50;
    transition: all 0.2s ease;
    display: inline-block;
}

/* कार्ड झूम इफेक्ट */
.active-card-zoom {
    transform: scale(1.5) !important;
    z-index: 100;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5) !important;
    border: 4px solid #fff;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* #############################################################################
   🔴 END OF SECTION 4
   ############################################################################# */


/* #############################################################################
   🔵 SECTION 5: SCROLL BUTTON (वर जाण्याचे बटण)
   START POINT
   ############################################################################# */
#superScrollBtn {
    display: none;
    position: fixed !important; 
    bottom: 30px !important; 
    right: 30px !important; 
    z-index: 10000 !important;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #3b82f6, #1d4ed8);
    border: 3px solid #ffffff;
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5), 0 0 20px #38bdf8;
    transition: all 0.3s ease;
}
#superScrollBtn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 40px #00eaff;
}
@media screen and (max-width: 768px) {
    #superScrollBtn {
        width: 50px;
        height: 50px;
        font-size: 20px;
        bottom: 90px !important;
        right: 20px !important;
    }
}

/* #############################################################################
   🔴 END OF SECTION 5
   ############################################################################# */


/* #############################################################################
   🔵 SECTION 6: LESSON PAGE STYLES (धड्याचे पेज)
   IMPORTANT: इथे फ्लॅशकार्ड, व्हाईट बॉक्स आणि लिसन अँड राईट चे सेटिंग आहे.
   START POINT
   ############################################################################# */

/* 1. ग्लोबल सेटिंग */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #f8fafc;
    overflow-x: hidden;
}

/* 2. फ्लिप कार्ड (FLIP CARDS) */
.f-card {
    perspective: 1000px;
    width: 300px;
    height: 420px;
    cursor: pointer;
}
.f-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-radius: 20px;
}
.f-card.flipped .f-inner {
    transform: rotateY(180deg);
}
.f-front, .f-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 4px solid white;
}
.f-front {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}
.f-back {
    background: white;
    color: #333;
    transform: rotateY(180deg);
    padding: 20px;
}
.f-image-box img {
    width: 200px;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    border: 3px solid white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* 3. इनलाईन कार्ड (INLINE CARDS) */
.inline-f-card {
    display: inline-block;
    vertical-align: middle;
    width: 120px;
    height: 160px;
    margin: 0 10px;
    perspective: 1000px;
    cursor: pointer;
}
.inline-f-card .f-inner {
    border-radius: 12px;
}
.inline-f-card .f-front, .inline-f-card .f-back {
    border-radius: 12px;
    border: 2px solid white;
}
.inline-img-wrapper img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}
.inline-word-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-top: 5px;
}

/* 4. UI लेयर्स आणि ड्रॉवर */
#fixed-header {
    z-index: 5000;
}
#controls-drawer {
    z-index: 6000;
}
#drawer-overlay {
    z-index: 5500;
}
#myScrollToTop {
    z-index: 4000;
}

/* 5. रिस्पॉन्सिव्ह डिझाईन (Responsive) */
@media (max-width: 768px) {
    #controls-drawer {
        position: fixed;
        top: 0;
        right: 0;
        height: 100%;
        width: 85%;
        background: white;
        z-index: 6000;
        box-shadow: -5px 0 15px rgba(0,0,0,0.2);
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
    }
    .drawer-open {
        transform: translateX(0) !important;
    }
    #drawer-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.5);
        z-index: 5500;
    }
    .overlay-active {
        display: block !important;
    }

    .inline-f-card {
        width: 140px;
        height: 200px;
        margin: 5px;
    }
    .f-card {
        width: 280px;
        height: 400px;
        margin: 0 auto;
    }
    .inline-word-title {
        font-size: 1.4rem;
    }
    h2 {
        font-size: 1.8rem !important;
    }
    #main-content {
        padding-top: 5rem;
        padding-left: 10px;
        padding-right: 10px;
    }
}

@media (min-width: 769px) {
    #controls-drawer {
        position: fixed;
        top: 64px;
        left: 0;
        width: 100%;
        height: auto;
        background: #f8fafc;
        border-bottom: 1px solid #e2e8f0;
        display: block !important;
        transform: none !important;
        z-index: 4000;
        padding: 10px 40px;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    }
    #drawer-overlay {
        display: none !important;
    }
    .inline-f-card {
        width: 180px;
        height: 260px;
        margin: 15px;
    }
    .f-card {
        width: 350px;
        height: 500px;
    }
    #main-content {
        padding-top: 280px;
    }
}

@media (min-width: 1080px) {
    html {
        font-size: 20px;
    } 
    .inline-f-card {
        width: 240px;
        height: 340px;
        margin: 20px;
    }
    .inline-word-title {
        font-size: 2.5rem;
    }
    #content-container {
        max-width: 1600px;
        margin: 0 auto;
    }
}

/* 6. हेडर आणि ड्रॉवर फिक्स (Fixes) */
#voiceDropdown {
    z-index: 20000 !important;
    max-height: 400px;
    overflow-y: auto;
}
#controls-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 85%;
    height: 100%;
    background: white;
    z-index: 30000 !important;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    box-shadow: -5px 0 20px rgba(0,0,0,0.3);
}
.drawer-open {
    transform: translateX(0) !important;
}
#drawer-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 25000 !important;
    backdrop-filter: blur(2px);
}
.overlay-active {
    display: block !important;
}

@media (min-width: 1024px) {
    #controls-drawer, #drawer-overlay {
        display: none !important;
    }
}

@media (max-width: 1023px) {
    .controls-hidden {
        display: none !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
    #controls-drawer {
        display: block;
    }
    .drawer-open {
        transform: translateX(0) !important;
    }
}

/* 7. टॉगल स्विच (Toggle Switch) */
.toggle-checkbox:checked {
    right: 0;
    border-color: #22c55e;
}
.toggle-checkbox:checked + .toggle-label {
    background-color: #22c55e;
}
.toggle-checkbox {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}
.toggle-label {
    width: 50px;
    height: 26px;
    background-color: #e5e7eb;
    display: block;
    border-radius: 9999px;
    position: relative;
    cursor: pointer;
    transition: background-color 0.2s ease-in;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}
.toggle-label:after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background-color: white;
    border-radius: 50%;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.toggle-checkbox:checked + .toggle-label:after {
    left: calc(100% - 3px);
    transform: translateX(-100%);
}

.controls-hidden {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
#dynamic-nav-bar::-webkit-scrollbar {
    display: none;
}

/* 8. लेसन कार्ड (Lesson Card) */
.lesson-card {
    background: white;
    border-radius: 1.5rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
    border: 2px solid #e2e8f0;
    margin-bottom: 2rem;
}
.lesson-card:hover {
    transform: translateY(-5px);
    border-color: #3b82f6;
    box-shadow: 0 20px 30px -5px rgba(0, 0, 0, 0.15);
}

.flashcard-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
}
.inline-f-card {
    width: 220px;
    height: 300px;
    perspective: 1000px;
    cursor: pointer;
}
.f-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}
.f-card.flipped .f-inner, .inline-f-card.flipped .f-inner {
    transform: rotateY(180deg);
}
.f-front, .f-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px solid #e5e7eb;
    background: white;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}
.f-back {
    transform: rotateY(180deg);
    background: #f8fafc;
    padding: 10px;
}
.inline-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.8rem;
}
.inline-word-title {
    font-size: 1.5rem;
    font-weight: 900;
    color: #1e293b;
    margin-top: 10px;
}

.highlight {
    background-color: #facc15 !important;
    color: black !important;
    padding: 2px 8px;
    border-radius: 6px;
    box-shadow: 0 0 15px #facc15;
    transform: scale(1.1);
    display: inline-block;
}
.active-card-zoom {
    transform: scale(1.15) !important;
    z-index: 50;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border-color: #facc15;
}

@media (max-width: 768px) {
    .inline-f-card {
        width: 160px;
        height: 220px;
    }
    .lesson-card {
        padding: 1.5rem;
    }
    #fixed-header {
        padding-left: 10px;
        padding-right: 10px;
    }
}
@media (min-width: 1536px) {
    .inline-f-card {
        width: 260px;
        height: 360px;
    }
    .lesson-card {
        padding: 3rem;
    }
}

/* 9. हायलाईट लॉजिक (Highlighting) */
.highlight {
    background-color: #00ddff !important;
    color: #000 !important;
    border-radius: 6px;
    box-shadow: 0 0 0 6px #00ddff;
    transition: none !important;
    animation: none !important;
    transform: scale(1.1);
    font-weight: 900;
    display: inline-block;
    z-index: 50;
    position: relative;
}
.active-card-zoom {
    z-index: 100 !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
    border-color: #ffffff !important;
    background-color: #ffffff !important;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}
.word-span {
    cursor: pointer;
    padding: 4px 2px;
    border-bottom: 2px dashed #ccc;
    display: inline-block;
    margin: 0 4px;
    border-radius: 4px;
    transition: all 0.2s;
}
.word-span:hover {
    background-color: #e0e7ff;
    color: #1e40af;
    border-bottom-color: #1e40af;
}

/* 10. फ्लॅशकार्ड स्ट्रक्चर (Flashcard Structure) */
.inline-f-card {
    background-color: transparent;
    perspective: 1000px;
    cursor: pointer;
    position: relative;
    display: inline-block;
    vertical-align: top;
    margin-right: 15px;
    margin-bottom: 15px;
}
.inline-f-card .f-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}
.inline-f-card.flipped .f-inner {
    transform: rotateY(180deg);
}
.inline-f-card .f-front, .inline-f-card .f-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 1rem;
    overflow: hidden;
}
.inline-f-card .f-front {
    background-color: #ffffff;
    border: 3px solid #e2e8f0;
    z-index: 2;
    display: flex;
    flex-direction: column;
}
.inline-f-card .f-back {
    background-color: #f0f9ff;
    border: 3px solid #3b82f6;
    transform: rotateY(180deg);
    z-index: 1;
    display: flex;
    flex-direction: column;
    text-align: left;
}
.inline-img-wrapper {
    height: 70%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background: white;
    border-bottom: 2px solid #f1f5f9;
}
.inline-img-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.inline-word-title {
    height: 30%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: #1e3a8a;
    background: #f8fafc;
}
.click-hint {
    font-size: 0.7rem;
    color: #ef4444;
    text-transform: uppercase;
    margin-top: 5px;
    background: #fee2e2;
    padding: 2px 8px;
    border-radius: 10px;
}

/* 11. रिस्पॉन्सिव्ह सेटिंग्स (Responsive) */
@media (max-width: 768px) {
    .inline-f-card {
        width: 180px;
        height: 280px;
        margin-right: 8px;
        margin-bottom: 8px;
    }
    .inline-word-title {
        font-size: 1.5rem;
    }
    .active-card-zoom {
        transform: scale(1.1) !important;
    }
}
@media (min-width: 769px) and (max-width: 1599px) {
    .inline-f-card {
        width: 300px;
        height: 450px;
        margin-right: 20px;
    }
    .inline-word-title {
        font-size: 2rem;
    }
    .active-card-zoom {
        transform: scale(1.2) !important;
    }
}
@media (min-width: 1600px) {
    .inline-f-card {
        width: 380px;
        height: 550px;
        margin-right: 30px;
    }
    .inline-word-title {
        font-size: 2.5rem;
    }
    .active-card-zoom {
        transform: scale(1.25) !important;
    }
}

/* #############################################################################
   🔴 END OF SECTION 6 (LESSON PAGE)
   ############################################################################# */


/* #############################################################################
   🔵 SECTION 7: FINAL RECOVERY (मोबाईल आणि लॅपटॉप फिक्स)
   IMPORTANT: हा कोड "Listen & Write" आणि "व्हाईट बॉक्स" साठी आहे.
   START POINT
   ############################################################################# */

/* 🔴🔴🔴🔴🔴🔴🔴🔴🔴 सुरुवात मोबाईल मधील हॉरीझॉन्टल वाक्यांची सेटिंग शेवट 🔴🔴🔴🔴🔴🔴🔴🔴🔴 */ 

   /* 1. मोबाईलसाठी खास (Mobile L&W) */
@media screen and (max-width: 768px) {
    .bg-white.border-4.rounded-3xl.shadow-xl {
        width: 96% !important;
        height: auto !important;
        min-height: 450px !important;
        padding: 5px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        margin-top: 20px !important;
        overflow: visible !important;
    }
    .mobile-sentence-scroll {
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory;
        width: 100% !important;
        height: 340px !important;
        align-items: center !important;
        gap: 15px !important;
        padding-left: 28% !important;
        padding-right: 28% !important;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    .mobile-sentence-scroll::-webkit-scrollbar {
        display: none;
    }
    .mobile-sentence-unit {
        flex: 0 0 auto !important;
        width: 170px !important;
        scroll-snap-align: center;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        opacity: 1;
        transform: scale(0.95);
        transition: all 0.3s ease;
        overflow: visible !important;
    }
    .mobile-sentence-unit.active-card-zoom, .mobile-sentence-unit:has(.highlight) {
        opacity: 1 !important;
        transform: scale(1.05) !important;
        z-index: 10 !important;
    }
    .inline-f-card {
        width: 160px !important;
        height: 240px !important;
        margin: 0 !important;
    }
    .inline-f-card .f-back {
        overflow-y: auto !important;
        justify-content: flex-start !important;
        padding: 10px !important;
        background-color: #fffbeb !important;
        border: 2px solid #fbbf24 !important;
    }
    .inline-word-title {
        font-size: 1rem !important;
        font-weight: 900 !important;
        color: #1e3a8a !important;
        height: 25% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        line-height: 1.1 !important;
        text-align: center !important;
    }
    .click-hint {
        font-size: 0.55rem !important;
        padding: 1px 4px !important;
        margin-top: 2px !important;
    }
    .mobile-sentence-unit p {
        font-size: 1.6rem !important;
        font-weight: 800 !important;
        margin-top: 10px !important;
        text-align: center !important;
        color: #1e293b !important;
    }
    .full-sentence-display {
        margin-top: 10px !important;
        padding: 8px !important;
        background: #f8fafc;
        border-radius: 8px;
        width: 95%;
        text-align: center;
        overflow: visible !important;
    }
    .full-sentence-display p {
        font-size: 1.1rem !important;
        color: #334155;
        font-weight: 600;
        margin: 0 !important;
    }
}
/* 🔴🔴🔴🔴🔴🔴🔴🔴🔴 मोबाईल मधील हॉरीझॉन्टल वाक्यांची सेटिंग शेवट 🔴🔴🔴🔴🔴🔴🔴🔴🔴 */ 

/* 3. कलर कोडिंग (Color Coding) */
.f-back {
    display: flex;
    flex-direction: column;
    text-align: left;
    background: #ffffff;
}
.back-header {
    background: #f8fafc;
    padding: 8px;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
}
.inline-pron {
    font-family: monospace;
    color: #64748b;
    font-weight: bold;
    font-size: 1rem;
}
.back-scroll-content {
    padding: 10px;
    overflow-y: auto !important;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}
.back-scroll-content::-webkit-scrollbar {
    width: 4px;
}
.back-scroll-content::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
.section-meaning {
    background: #dcfce7;
    border-left: 5px solid #16a34a;
    border-radius: 5px;
    padding: 8px;
}
.label-meaning {
    color: #15803d;
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
    display: block;
}
.text-meaning {
    color: #14532d;
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.2;
}
.section-def {
    background: #dbeafe;
    border-left: 5px solid #2563eb;
    border-radius: 5px;
    padding: 8px;
}
.label-def {
    color: #1e40af;
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
    display: block;
}
.text-def {
    color: #1e3a8a;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
}
.section-sent {
    background: #f3e8ff;
    border-left: 5px solid #9333ea;
    border-radius: 5px;
    padding: 8px;
}
.label-sent {
    color: #7e22ce;
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
    display: block;
}
.list-sent {
    list-style: none;
    padding: 0;
    margin: 0;
}
.list-sent li {
    font-size: 0.85rem;
    color: #581c87;
    margin-bottom: 4px;
    padding-left: 10px;
    position: relative;
}
.list-sent li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #9333ea;
    font-weight: bold;
}

/* 4. व्हाईट बॉक्स सेंटरींग (White Box Centering) मोबाईल सेटिंग IMP फ्लॅश कार्ड आणि शब्दांमधील अंतर */
@media screen and (max-width: 768px) {
    .bg-white.border-4.rounded-3xl.shadow-xl {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        padding-top: 20px !important;
        padding-bottom: 20px !important;
    }
    .mobile-sentence-unit {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
    }
}
/* end Point मोबाईल सेटिंग IMP फ्लॅश कार्ड आणि शब्दांमधील अंतर */

/* 6. लॅपटॉप फिक्स (Laptop Fix) */
@media screen and (min-width: 1024px) and (max-width: 1599px) {
    .lw-white-box {
        width: 1400px !important;
        max-width: 95% !important;
        height: auto !important;
        min-height: 550px !important;
        max-height: none !important;
        margin-left: auto !important;
        margin-right: auto !important;
        margin-top: 30px !important;
        margin-bottom: 80px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        padding-top: 60px !important;
        padding-bottom: 60px !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
        overflow: visible !important;
    }
    .flashcard-wrapper {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 10px !important;
        row-gap: 10px !important;
        width: 100% !important;
        height: auto !important;
    }
    .inline-f-card {
        width: 170px !important;
        height: 240px !important;
        margin: 10px !important;
    }
    .lw-white-box p {
        margin-top: 20px !important;
        text-align: center !important;
    }
}

/* 7. अल्ट्रा-वाईड सेटिंग (Ultra-Wide) */
@media screen and (min-width: 1600px) {
    #content-container {
        max-width: 100vw !important;
        width: 100% !important;
        padding: 0 !important;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .lw-white-box {
        width: 95vw !important;
        max-width: none !important;
        height: auto !important;
        min-height: 700px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        margin-top: 50px !important;
        margin-bottom: 100px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        padding-top: 60px !important;
        padding-bottom: 60px !important;
        padding-left: 40px !important;
        padding-right: 40px !important;
    }
}

/* 8. रॅपिंग लॉजिक (Wrapping) */
.flashcard-wrapper {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 40px !important;
    width: 100% !important;
}

/* 9. कार्ड साईज कंट्रोल (Card Size) */
@media screen and (min-width: 1024px) and (max-width: 1599px) {
    .inline-f-card {
        width: 220px !important;
        height: 320px !important;
        margin: 15px !important;
    }
    .inline-img-wrapper {
        height: 70% !important;
    }
    .inline-word-title {
        font-size: 1.8rem !important;
    }
}

@media screen and (min-width: 1600px) {
    .inline-f-card {
        width: 300px !important;
        height: 400px !important;
        margin: 25px !important;
    }
    .inline-img-wrapper {
        height: 75% !important;
    }
    .inline-word-title {
        font-size: 3rem !important;
    }
}

/* 10. टायटल कंट्रोल (Titles) */
h1, h2 {
    font-size: 2rem !important;
    line-height: 1.2 !important;
}

@media screen and (min-width: 768px) {
    h1, h2 {
        font-size: 3rem !important;
    }
    #topTitle {
        font-size: 1.5rem !important;
    }
}

@media screen and (min-width: 1600px) {
    h1, h2 {
        font-size: 4rem !important;
    }
    #topTitle {
        font-size: 2.5rem !important;
    }
}

.lw-white-box p.font-black {
    font-size: 4rem !important;
}

@media screen and (min-width: 1600px) {
    .lw-white-box p.font-black {
        font-size: 6rem !important;
    }
}

/* 11. लिसन अँड राईट फिक्स (L&W Fix) */
@media screen and (min-width: 1024px) {
    .lw-anim-card {
        width: 240px !important;
        height: 300px !important;
        margin: 0 10px !important;
        padding: 0 !important;
        transform: scale(1) !important;
        transform-origin: bottom center !important;
    }
    .lw-anim-card .inline-img-wrapper {
        height: 65% !important;
        padding: 5px !important;
    }
    .lw-anim-card .inline-img-wrapper img {
        object-fit: contain !important;
    }
    .lw-anim-card .inline-word-title {
        font-size: 1.2rem !important;
        height: 35% !important;
        line-height: 1.1 !important;
    }
    .lw-anim-card[style*="scale(1.8)"] {
        transform: scale(1.8) !important;
        z-index: 100 !important;
        box-shadow: 0 15px 30px rgba(0,0,0,0.3) !important;
        border-color: #ffffff !important;
    }
}

/* 12. फायनल फिक्स (Final Fix) */
@media screen and (min-width: 1024px) {
    .inline-f-card.active-card-zoom, .lw-anim-card.active-card-zoom {
        transform: scale(1.3) !important;
        border-color: #ffffff !important;
        border-width: 2px !important;
        z-index: 100 !important;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3) !important;
        transition: transform 0.3s ease-out !important;
    }
    /* 🔴 FIX: Sentence section साठी — scale(1.3) खूप मोठा, screen बाहेर जातो
       type-sentence मधील cards: scale(1.05) + center origin → screen आतच राहतो */
    .type-sentence .inline-f-card.active-card-zoom {
        transform: scale(1.05) !important;
        transform-origin: center center !important;
    }
}

/* 13. वेलकम कार्ड (Welcome Card) */
.welcome-card {
    background: #ffffff !important;
    width: 90%;
    max-width: 420px;
    border-radius: 40px;
    text-align: center;
    overflow: hidden;
    position: relative;
    z-index: 20000;
    border: 8px solid #FF69B4;
    box-shadow: 0 0 0 10px #FFD700, 0 25px 50px rgba(0,0,0,0.5);
    animation: popUp 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    flex-shrink: 0;
    margin: 0 auto;
}
@keyframes popUp {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
.card-header {
    background: linear-gradient(to right, #ff9966, #ff5e62, #ff99cc);
    padding: 30px 20px;
    border-bottom: 5px solid #fff;
}
.card-header h1 {
    margin: 5px 0 0;
    font-size: 36px;
    font-weight: 900;
    color: #ffffff !important;
    text-shadow: 3px 3px 0px #ce0844 !important;
    letter-spacing: 1px;
}
.emoji-bounce {
    font-size: 60px;
    display: block;
    filter: drop-shadow(0 5px 0 rgba(0,0,0,0.1));
    animation: wave 1.5s infinite ease-in-out;
}
.card-body {
    padding: 30px 25px;
    background: #ffffff !important;
}
#day-selector-modal .welcome-card .main-text {
    font-size: 28px !important;
    font-weight: 900 !important;
    color: #4b0082 !important;
    text-shadow: none !important;
    margin-bottom: 10px !important;
    line-height: 1.3 !important;
    display: block !important;
    opacity: 1 !important;
}
#day-selector-modal .welcome-card .sub-text {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #0000FF !important;
    text-shadow: none !important;
    margin-bottom: 30px !important;
    display: block !important;
    opacity: 1 !important;
}
.btn-start {
    background: linear-gradient(to bottom, #FFD700, #FFA500);
    border: none;
    border-bottom: 6px solid #d97706;
    color: #5D4037 !important;
    text-shadow: none !important;
    font-size: 24px;
    font-weight: 900;
    padding: 18px 30px;
    border-radius: 50px;
    cursor: pointer;
    width: 100%;
    transition: transform 0.1s;
    margin-bottom: 15px;
}
.btn-start:active {
    transform: translateY(4px);
    border-bottom: 2px solid #d97706;
}
.or-divider {
    margin: 15px 0;
    font-size: 16px;
    font-weight: 800;
    color: #999 !important;
    text-shadow: none !important;
}
.btn-skip {
    background: #f0f8ff !important;
    border: 3px solid #00bfff !important;
    color: #0077be !important;
    text-shadow: none !important;
    font-weight: 800;
    padding: 12px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
}
.btn-skip:hover {
    background: #e0f7fa !important;
    transform: scale(1.05);
}

/* #############################################################################
   🔴 END OF SECTION 7 (RECOVERY)
   ############################################################################# */


/* #############################################################################
   🔵 SECTION 8: PRINT STYLES (प्रिंट करताना)
   IMPORTANT: फक्त प्रिंट मोडसाठी.
   START POINT
   ############################################################################# */

@media print {
    /* पेज मार्जिन */
    @page { 
        size: A4 portrait; 
        margin: 1.5cm 0.5cm 1.5cm 0.5cm !important; 
    }
    
    /* बॉडी सेटिंग */
    body, html {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        height: 100% !important;
        background-color: white !important; /* पांढरा बॅकग्राउंड */
    }

    /* स्क्रीनवरचे लपवा (Hide UI Elements) */
    body > header, 
    body > main, 
    #wordModal, 
    #ws-header-controls, 
    .ws-tab-bar, 
    .ws-controls-bar, 
    .no-print, 
    .ws-content, /* टॅब कंटेंट लपवा */
    #worksheetModal > div:not(#print-only-container) { 
        display: none !important; 
    }
    
    .inline-card-container, .cards-row, .flash-grid, .f-card {
        display: none !important;
    }
    
    /* प्रिंट कंटेनर दाखवा (Show Print Section) */
    #worksheetModal { 
        position: static !important; 
        width: 100% !important; 
        height: auto !important; 
        background: white !important; 
        display: block !important; 
        overflow: visible !important; 
        box-shadow: none !important;
        margin: 0 !important;
    }

    #print-only-container { 
        display: block !important; 
        width: 100%; 
        font-size: 10pt; 
        color: #000; 
        position: relative; 
        font-family: 'Nunito', sans-serif; 
    }

    /* हेडर आणि लोगो */
    .print-header-container {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 15px !important;
        margin-bottom: 5px !important;
    }
    .print-logo {
        height: 50px !important;
        width: auto !important;
        object-fit: contain;
    }
    .print-main-title {
        font-size: 20pt !important;
        font-weight: 900 !important;
        text-transform: uppercase !important;
        margin: 0 !important;
        line-height: 1 !important;
    }

    /* वॉटरमार्क */
    .print-watermark {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) rotate(-45deg); 
        width: 80%;
        max-width: 900px;
        opacity: 0.15;
        z-index: -1;
        pointer-events: none;
        display: block !important;
    }

    /* प्रश्न सेक्शन सेटिंग */
    .print-section { 
        margin-bottom: 8px; 
        display: block; 
        page-break-inside: auto !important; 
        break-inside: auto !important; 
        width: 100% !important;
    }

    .print-section-title { 
        font-size: 11pt;
        font-weight: bold;
        background-color: #eee;
        border: 1px solid #000;
        padding: 2px 5px; 
        margin-top: 5px;
        margin-bottom: 5px; 
        -webkit-print-color-adjust: exact; 
        page-break-after: avoid;
    }
    
    /* Section A (Fill in blanks): 4 कॉलम्स */
    #print-fill-area {
        display: grid;
        grid-template-columns: repeat(4, 1fr) !important; 
        gap: 0px; 
        width: 100% !important;
    }
    #print-fill-area .print-item {
        border-right: 1px solid #888; 
        padding-right: 5px;
        padding-left: 5px;
        margin-bottom: 5px;
    }
    #print-fill-area .print-item:nth-child(4n) {
        border-right: none !important;
    }

    /* Section B (Odd Man Out): 4 कॉलम्स */
    .print-4-col { 
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 5px;
        width: 100% !important;
    } 
    
    /* Section C (Matching): 5 कॉलम्स */
    #print-match-area { 
        display: grid; 
        grid-template-columns: repeat(5, 1fr) !important; 
        gap: 5px; 
        width: 100% !important;
    }

    /* Section D (Sentences): 3 कॉलम्स */
    #print-build-area {
        display: grid;
        grid-template-columns: repeat(3, 1fr) !important; 
        gap: 0px; 
        width: 100% !important;
    }
    #print-build-area .print-item {
        border-right: 1px solid #888; 
        padding-right: 5px;
        padding-left: 5px;
        margin-bottom: 5px;
    }
    #print-build-area .print-item:nth-child(3n) {
        border-right: none !important;
    }

    /* कॉमन आयटम स्टाईल */
    .print-item { 
        break-inside: avoid;
        page-break-inside: avoid;
        border-bottom: 1px dotted #ccc;
        padding-bottom: 2px; 
    }
    
    .print-box {
        border: 1px solid #666;
        padding: 3px 3px 3px 5px;
        text-align: left;
        break-inside: avoid;
    }

    /* Word Bank */
    .print-word-bank { 
        margin-top: 5px;
        padding: 5px;
        border: 1px dashed #666; 
        text-align: left !important;
        font-size: 9pt;
        break-inside: avoid;
    }
    .bank-title {
        font-weight: bold;
        margin-right: 5px;
    }

    .print-speed-box {
        border: 1px solid #000;
        padding: 5px;
        text-align: justify;
    }
    .print-speed-word {
        display: inline-block;
        padding: 0 5px;
    }
    
    /* Answer Key स्पेसिंग फिक्स */
    .print-break-before { 
        page-break-before: always; 
        margin-top: 5px !important; 
    }
    
    .answer-key-header { 
        text-align: center; 
        font-weight: bold; 
        font-size: 14pt; 
        margin-bottom: 5px !important; 
        border-bottom: 2px solid #000; 
        padding-top: 5px !important; 
        padding-bottom: 2px !important;
    }
    
    .answer-item {
        border-bottom: 1px dotted #ccc;
        font-size: 9pt;
        border-right: 1px solid #ccc;
        padding-left: 5px;
    }
    
    /* Answer Key (A, B, C) - 8 कॉलम्स */
    .answer-list { 
        display: grid;
        grid-template-columns: repeat(8, 1fr) !important;
        gap: 0px;
        width: 100% !important;
    }
    .answer-list .answer-item:nth-child(8n) {
        border-right: none;
    }
    
    /* Answer Key (Sentences) - 4 कॉलम्स */
    .answer-list-sentences { 
        display: grid; 
        grid-template-columns: repeat(4, 1fr) !important; 
        gap: 0px;
        width: 100% !important;
    }
    .answer-list-sentences .answer-item:nth-child(4n) {
        border-right: none;
    }

    /* स्टाईल */
    .print-fill-q, .print-box {
        font-weight: bold !important;
    }
    .print-fill-opts {
        font-style: italic !important;
        font-weight: normal !important;
    }
}

/* #############################################################################
   🔴 END OF SECTION 8 (PRINT)
   ############################################################################# */


/* #############################################################################
   🔵 SECTION 9: MASTER TITLE & HEADER FIX (टायटल्स)
   IMPORTANT: हे सर्व पेजेसवरील टायटल (H1, H2) आणि हेडरला कंट्रोल करते.
   START POINT
   ############################################################################# */

/* 1. कॉमन सेटिंग (Common) */
#main-content h1, 
#main-content h2, 
#main-content h3,
#worksheetModal h2, 
#worksheetModal h3,
.lesson-card h2,
.print-main-title,
.print-section-title,
.answer-key-header {
    text-align: left !important;
    justify-content: flex-start !important;
    align-items: center !important;
    width: 100% !important;
    display: flex !important;
    margin-left: 0 !important;
    margin-right: auto !important;
}

/* =================================================================
   2. फॉन्ट साईज कंट्रोल (Desktop/Laptop Only)
   ================================================================= */
@media screen and (min-width: 1024px) {
    
    /* A. मुख्य टायटल्स (Heading) */
    #main-content h1, #worksheetModal h1 {
        font-size: 2.5rem !important; 
        line-height: 1.2 !important;
    }
    #main-content h2, #worksheetModal h2 {
        font-size: 2rem !important; 
        margin-top: 30px !important;
        margin-bottom: 15px !important;
        border-bottom-width: 4px !important;
    }

    /* 🔴 B. शब्दांचा सेक्शन (Words Section) - मोठे ठेवा */
    /* (जेव्हा शब्द आणि कार्ड एकाच ग्रुपमध्ये असतात) */
    .flashcard-wrapper div p {
        font-size: 4rem !important; /* हे शब्दांसाठी मोठेच राहील */
        margin-top: 20px !important;
        font-weight: 900 !important;
    }

    /* 🔴 C. वाक्यांचा सेक्शन (Sentences Section) - लहान करा */
    /* (जेव्हा वाक्य कार्ड्सच्या खाली स्वतंत्र असते) */
    .flashcard-wrapper > p.font-black {
        font-size: 9rem !important; /* हे वाक्यांसाठी लहान केले */
        line-height: 1.3 !important;   /* दोन ओळींमधील अंतर */
        margin-top: 50px !important;   /* कार्ड आणि वाक्यामधील अंतर */
        max-width: 90% !important;     /* वाक्य खूप लांब जाऊ नये */
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/* 3. फॉन्ट साईज कंट्रोल (Mobile) */
@media screen and (max-width: 768px) {
    #main-content h1 {
        font-size: 1.8rem !important;
    }
    #main-content h2, #worksheetModal h2 {
        font-size: 1.5rem !important;
        margin-top: 20px !important;
        margin-bottom: 10px !important;
    }
}

/* 4. प्रिंटसाठी खास (Print) */
@media print {
    .print-main-title {
        font-size: 18pt !important;
        text-align: left !important;
    }
    .print-section-title {
        font-size: 12pt !important;
        text-align: left !important;
        background-color: #f3f4f6 !important; 
        border: 1px solid #ddd !important;
        padding: 5px 10px !important;
    }
    .print-header table td {
        text-align: left !important;
    }
}

/* 5. इनलाईन ब्लॉक फिक्स */
#main-content h2.inline-block {
    display: block !important;
}

/* 6. मेन हेडर टायटल फिक्स (Top Bar) */
#topTitle {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    text-align: left !important;
    width: 100% !important;
    display: block !important;
    padding-top: 4px !important;
}

@media screen and (max-width: 768px) {
    #topTitle {
        font-size: 0.8rem !important;
        line-height: 1.2rem !important;
    }
}
@media screen and (min-width: 769px) and (max-width: 1599px) {
    #topTitle {
        font-size: 1rem !important;
        line-height: 1.6rem !important;
    }
}
@media screen and (min-width: 1600px) {
    #topTitle {
        font-size: 1.2rem !important;
        line-height: 2.0rem !important;
    }
}

/* 7. मोबाईल वर्कशीट मॉडेल (Worksheet Modal) */
@media screen and (max-width: 768px) {
    #mobileWorksheetModal {
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        z-index: 99999 !important;
    }
    .mob-tab-btn.active {
        background-color: #2563eb !important;
        color: white !important;
        border-color: #1e40af !important;
    }
}

/* #############################################################################
   🔴 END OF SECTION 9 (TITLES)
   ############################################################################# */


/* #############################################################################
   🔵 SECTION 10: NEW INTERACTIVE STYLES (नवीन ॲक्टिव्हिटी)
   IMPORTANT: फिल इन ब्लँक्स, वर्ड बॉक्स, माईक आणि फीडबॅकसाठी.
   START POINT
   ############################################################################# */

/* 1. फिल इन द ब्लँक्स */
.fill-blank-slot {
    display: inline-block;
    min-width: 80px;
    border-bottom: 3px solid #cbd5e1;
    color: #2563eb;
    text-align: center;
    font-weight: bold;
    padding: 0 5px;
    transition: all 0.3s ease;
}
.fill-success {
    color: #16a34a !important;
    border-bottom-color: #16a34a !important;
    transform: scale(1.1);
    animation: successPop 0.5s ease;
}
@keyframes successPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1.1); }
}
.fill-error {
    color: #dc2626 !important;
    border-bottom-color: #dc2626 !important;
    animation: shake 0.4s ease-in-out;
}
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* 2. सेन्टेन्स बिल्डर (शब्द बॉक्स) */
.word-box {
    background-color: #eff6ff;
    border: 2px solid #3b82f6;
    color: #1e3a8a;
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 0 #2563eb;
    margin: 5px;
}
.word-box:active {
    transform: translateY(4px);
    box-shadow: none;
}
.word-box-placed {
    background-color: #fff;
    border: 2px dashed #9ca3af;
    color: #374151;
    box-shadow: none;
}

/* 3. शिक्षक मोड (Teacher Mode) */
#btn-show-ans {
    display: none !important;
}
body.teacher-mode #btn-show-ans {
    display: block !important;
}

/* 4. स्पीड रीडिंग (Magic Word) */
.word-spoken-correct {
    transform: scale(1.5);
    opacity: 0;
    filter: blur(10px);
    transition: all 0.5s ease-out;
    pointer-events: none; 
}

/* 5. माईक बटण (Mic) */
#mic-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #dc2626;
    color: white;
    font-size: 30px;
    border: 4px solid white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: none;
    animation: pulseMic 2s infinite;
}
#mic-btn.mic-active {
    background: #16a34a; 
    animation: listeningWave 1.5s infinite;
}
@keyframes listeningWave {
    0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(22, 163, 74, 0); }
    100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}

/* 6. मॅजिक इफेक्ट्स (Magic Effects) */
.word-spoken-correct {
    transform: scale(2) rotate(10deg);
    opacity: 0 !important;
    filter: blur(10px);
    transition: all 0.5s ease-out;
    pointer-events: none;
}
.mic-active {
    background-color: #16a34a !important;
    box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.7);
    animation: pulse-green 2s infinite;
}
@keyframes pulse-green {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(22, 163, 74, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}

/* #############################################################################
   🔴 END OF SECTION 10 (FINAL)
   ############################################################################# */

   /* ================================================= */
/* 🔴 NEW CENTER FIX FOR DESKTOP (Word Box Only) */
/* ================================================= */
@media screen and (min-width: 1024px) {
    /* शब्दांचा व्हाईट बॉक्स */
    .type-word {
        scroll-margin-block: center; /* ब्राउझरला सांगते की याला सेंटरलाच ठेव */
        scroll-snap-align: center;   /* सेंटरला स्नॅप कर */
    }
}
/* ================================================= */
/* 🔴 FINAL CSS FIX FOR LAPTOP (White Box Spacing) */
/* ================================================= */
@media screen and (min-width: 1024px) {
    /* शब्दांच्या बॉक्सला जबरदस्ती जागा देणे */
    .type-word {
        scroll-margin-top: 15vh; /* वरून थोडी जागा सोड */
        scroll-margin-bottom: 15vh;
    }
}

/* फोनिक्स हायलाईटसाठी रंग */
.phonic-hl {
    color: #e11d48;       /* गडद गुलाबी/लाल रंग */
    font-weight: 900;     /* अक्षर ठळक (Bold) */
    text-decoration: underline; /* रेष (पाहिजे असल्यास) */
    text-decoration-color: #fcd34d; /* रेषेचा रंग */
}