/* ============================================
   GRADE 1 ELA - FUN & COLORFUL THEME
   ============================================ */

.g1ela-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Comic Sans MS', 'Chalkboard', 'Arial Rounded MT Bold', sans-serif;
    background: linear-gradient(180deg, #fef3e8 0%, #f0f8ff 100%);
    min-height: 100vh;
}

/* Header Section */
.g1ela-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 50%, #4facfe 100%);
    border-radius: 25px;
    box-shadow: 0 8px 20px rgba(240, 147, 251, 0.3);
    position: relative;
}

.g1ela-title {
    color: #fff;
    font-size: 32px;
    font-weight: bold;
    text-shadow: 3px 3px 0 #d63384, 4px 4px 8px rgba(0,0,0,0.2);
    margin: 0 0 10px 0;
    letter-spacing: 1px;
}

.g1ela-subtitle {
    color: #fff;
    font-size: 16px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    margin: 0;
}

.g1ela-icons {
    font-size: 28px;
    margin-top: 10px;
}

/* Breadcrumb */
.g1ela-breadcrumb {
    text-align: center;
    margin-bottom: 25px;
    font-size: 14px;
    color: #666;
}

.g1ela-breadcrumb a {
    color: #f093fb;
    text-decoration: none;
    font-weight: bold;
}

.g1ela-breadcrumb a:hover {
    text-decoration: underline;
}

.g1ela-breadcrumb .separator {
    margin: 0 8px;
    color: #f5576c;
}

/* Unit Section */
.g1ela-unit {
    background: #fff;
    border-radius: 20px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    border: 3px solid transparent;
}

.g1ela-unit:nth-child(24n+1) { border-color: #e84393; }
.g1ela-unit:nth-child(24n+2) { border-color: #fd79a8; }
.g1ela-unit:nth-child(24n+3) { border-color: #00b894; }
.g1ela-unit:nth-child(24n+4) { border-color: #00cec9; }
.g1ela-unit:nth-child(24n+5) { border-color: #0984e3; }
.g1ela-unit:nth-child(24n+6) { border-color: #6c5ce7; }
.g1ela-unit:nth-child(24n+7) { border-color: #a29bfe; }
.g1ela-unit:nth-child(24n+8) { border-color: #fdcb6e; }
.g1ela-unit:nth-child(24n+9) { border-color: #e17055; }
.g1ela-unit:nth-child(24n+10) { border-color: #d63031; }
.g1ela-unit:nth-child(24n+11) { border-color: #74b9ff; }
.g1ela-unit:nth-child(24n+12) { border-color: #55efc4; }
.g1ela-unit:nth-child(24n+13) { border-color: #ffeaa7; }
.g1ela-unit:nth-child(24n+14) { border-color: #fab1a0; }
.g1ela-unit:nth-child(24n+15) { border-color: #81ecec; }
.g1ela-unit:nth-child(24n+16) { border-color: #dfe6e9; }
.g1ela-unit:nth-child(24n+17) { border-color: #ff7675; }
.g1ela-unit:nth-child(24n+18) { border-color: #a8e6cf; }
.g1ela-unit:nth-child(24n+19) { border-color: #ffd3b6; }
.g1ela-unit:nth-child(24n+20) { border-color: #ffaaa5; }
.g1ela-unit:nth-child(24n+21) { border-color: #ff8b94; }
.g1ela-unit:nth-child(24n+22) { border-color: #a0d468; }
.g1ela-unit:nth-child(24n+23) { border-color: #4fc1e9; }
.g1ela-unit:nth-child(24n+24) { border-color: #ac92ec; }

/* Unit Header */
.unit-header {
    padding: 18px 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
}

.g1ela-unit:nth-child(24n+1) .unit-header { background: linear-gradient(135deg, #e84393 0%, #fd79a8 100%); }
.g1ela-unit:nth-child(24n+2) .unit-header { background: linear-gradient(135deg, #fd79a8 0%, #f8a5c2 100%); }
.g1ela-unit:nth-child(24n+3) .unit-header { background: linear-gradient(135deg, #00b894 0%, #55efc4 100%); }
.g1ela-unit:nth-child(24n+4) .unit-header { background: linear-gradient(135deg, #00cec9 0%, #81ecec 100%); }
.g1ela-unit:nth-child(24n+5) .unit-header { background: linear-gradient(135deg, #0984e3 0%, #74b9ff 100%); }
.g1ela-unit:nth-child(24n+6) .unit-header { background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%); }
.g1ela-unit:nth-child(24n+7) .unit-header { background: linear-gradient(135deg, #a29bfe 0%, #c7b8ea 100%); }
.g1ela-unit:nth-child(24n+8) .unit-header { background: linear-gradient(135deg, #fdcb6e 0%, #ffeaa7 100%); }
.g1ela-unit:nth-child(24n+9) .unit-header { background: linear-gradient(135deg, #e17055 0%, #fab1a0 100%); }
.g1ela-unit:nth-child(24n+10) .unit-header { background: linear-gradient(135deg, #d63031 0%, #ff7675 100%); }
.g1ela-unit:nth-child(24n+11) .unit-header { background: linear-gradient(135deg, #74b9ff 0%, #a9cce3 100%); }
.g1ela-unit:nth-child(24n+12) .unit-header { background: linear-gradient(135deg, #55efc4 0%, #a3e4d7 100%); }
.g1ela-unit:nth-child(24n+13) .unit-header { background: linear-gradient(135deg, #f39c12 0%, #ffeaa7 100%); }
.g1ela-unit:nth-child(24n+14) .unit-header { background: linear-gradient(135deg, #fab1a0 0%, #ffeaa7 100%); }
.g1ela-unit:nth-child(24n+15) .unit-header { background: linear-gradient(135deg, #81ecec 0%, #a3e4d7 100%); }
.g1ela-unit:nth-child(24n+16) .unit-header { background: linear-gradient(135deg, #636e72 0%, #b2bec3 100%); }
.g1ela-unit:nth-child(24n+17) .unit-header { background: linear-gradient(135deg, #ff7675 0%, #fab1a0 100%); }
.g1ela-unit:nth-child(24n+18) .unit-header { background: linear-gradient(135deg, #a8e6cf 0%, #dcedc1 100%); }
.g1ela-unit:nth-child(24n+19) .unit-header { background: linear-gradient(135deg, #ffd3b6 0%, #ffaaa5 100%); }
.g1ela-unit:nth-child(24n+20) .unit-header { background: linear-gradient(135deg, #ffaaa5 0%, #ffd3b6 100%); }
.g1ela-unit:nth-child(24n+21) .unit-header { background: linear-gradient(135deg, #ff8b94 0%, #ffaaa5 100%); }
.g1ela-unit:nth-child(24n+22) .unit-header { background: linear-gradient(135deg, #a0d468 0%, #c1e1a6 100%); }
.g1ela-unit:nth-child(24n+23) .unit-header { background: linear-gradient(135deg, #4fc1e9 0%, #a2d9f7 100%); }
.g1ela-unit:nth-child(24n+24) .unit-header { background: linear-gradient(135deg, #ac92ec 0%, #c7b8ea 100%); }

.unit-icon {
    font-size: 36px;
    background: rgba(255,255,255,0.3);
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.unit-info {
    flex: 1;
}

.unit-number {
    font-size: 12px;
    color: rgba(255,255,255,0.9);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 3px;
}

.unit-title {
    font-size: 20px;
    color: #fff;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    margin: 0;
}

.unit-title a {
    color: #fff;
    text-decoration: none;
}

.unit-title a:hover {
    text-decoration: underline;
}

.unit-count {
    background: rgba(255,255,255,0.3);
    color: #fff;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
}

/* Lesson List */
.lesson-list {
    padding: 15px 25px 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 10px;
}

.lesson-item {
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    border-left: 4px solid #ddd;
}

.g1ela-unit:nth-child(24n+1) .lesson-item { border-left-color: #e84393; }
.g1ela-unit:nth-child(24n+2) .lesson-item { border-left-color: #fd79a8; }
.g1ela-unit:nth-child(24n+3) .lesson-item { border-left-color: #00b894; }
.g1ela-unit:nth-child(24n+4) .lesson-item { border-left-color: #00cec9; }
.g1ela-unit:nth-child(24n+5) .lesson-item { border-left-color: #0984e3; }
.g1ela-unit:nth-child(24n+6) .lesson-item { border-left-color: #6c5ce7; }
.g1ela-unit:nth-child(24n+7) .lesson-item { border-left-color: #a29bfe; }
.g1ela-unit:nth-child(24n+8) .lesson-item { border-left-color: #fdcb6e; }
.g1ela-unit:nth-child(24n+9) .lesson-item { border-left-color: #e17055; }
.g1ela-unit:nth-child(24n+10) .lesson-item { border-left-color: #d63031; }
.g1ela-unit:nth-child(24n+11) .lesson-item { border-left-color: #74b9ff; }
.g1ela-unit:nth-child(24n+12) .lesson-item { border-left-color: #55efc4; }
.g1ela-unit:nth-child(24n+13) .lesson-item { border-left-color: #f39c12; }
.g1ela-unit:nth-child(24n+14) .lesson-item { border-left-color: #fab1a0; }
.g1ela-unit:nth-child(24n+15) .lesson-item { border-left-color: #81ecec; }
.g1ela-unit:nth-child(24n+16) .lesson-item { border-left-color: #636e72; }
.g1ela-unit:nth-child(24n+17) .lesson-item { border-left-color: #ff7675; }
.g1ela-unit:nth-child(24n+18) .lesson-item { border-left-color: #a8e6cf; }
.g1ela-unit:nth-child(24n+19) .lesson-item { border-left-color: #ffd3b6; }
.g1ela-unit:nth-child(24n+20) .lesson-item { border-left-color: #ffaaa5; }
.g1ela-unit:nth-child(24n+21) .lesson-item { border-left-color: #ff8b94; }
.g1ela-unit:nth-child(24n+22) .lesson-item { border-left-color: #a0d468; }
.g1ela-unit:nth-child(24n+23) .lesson-item { border-left-color: #4fc1e9; }
.g1ela-unit:nth-child(24n+24) .lesson-item { border-left-color: #ac92ec; }

.lesson-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    color: #444;
    text-decoration: none;
    font-size: 14px;
}

.lesson-link:hover {
    background: #fff;
}

.g1ela-unit:nth-child(24n+1) .lesson-link:hover { color: #e84393; }
.g1ela-unit:nth-child(24n+2) .lesson-link:hover { color: #fd79a8; }
.g1ela-unit:nth-child(24n+3) .lesson-link:hover { color: #00b894; }
.g1ela-unit:nth-child(24n+4) .lesson-link:hover { color: #00cec9; }
.g1ela-unit:nth-child(24n+5) .lesson-link:hover { color: #0984e3; }
.g1ela-unit:nth-child(24n+6) .lesson-link:hover { color: #6c5ce7; }
.g1ela-unit:nth-child(24n+7) .lesson-link:hover { color: #a29bfe; }
.g1ela-unit:nth-child(24n+8) .lesson-link:hover { color: #d4a017; }
.g1ela-unit:nth-child(24n+9) .lesson-link:hover { color: #e17055; }
.g1ela-unit:nth-child(24n+10) .lesson-link:hover { color: #d63031; }
.g1ela-unit:nth-child(24n+11) .lesson-link:hover { color: #0984e3; }
.g1ela-unit:nth-child(24n+12) .lesson-link:hover { color: #00b894; }
.g1ela-unit:nth-child(24n+13) .lesson-link:hover { color: #f39c12; }
.g1ela-unit:nth-child(24n+14) .lesson-link:hover { color: #e17055; }
.g1ela-unit:nth-child(24n+15) .lesson-link:hover { color: #00cec9; }
.g1ela-unit:nth-child(24n+16) .lesson-link:hover { color: #636e72; }
.g1ela-unit:nth-child(24n+17) .lesson-link:hover { color: #ff7675; }
.g1ela-unit:nth-child(24n+18) .lesson-link:hover { color: #00b894; }
.g1ela-unit:nth-child(24n+19) .lesson-link:hover { color: #e17055; }
.g1ela-unit:nth-child(24n+20) .lesson-link:hover { color: #ff7675; }
.g1ela-unit:nth-child(24n+21) .lesson-link:hover { color: #ff8b94; }
.g1ela-unit:nth-child(24n+22) .lesson-link:hover { color: #7cb342; }
.g1ela-unit:nth-child(24n+23) .lesson-link:hover { color: #0984e3; }
.g1ela-unit:nth-child(24n+24) .lesson-link:hover { color: #9b59b6; }

.lesson-number {
    background: #e9ecef;
    color: #666;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0;
}

.lesson-text {
    flex: 1;
    line-height: 1.4;
}

/* Footer Box */
.g1ela-footer-box {
    background: #fff;
    border-radius: 20px;
    padding: 25px;
    margin-top: 30px;
    color: #444;
    text-align: center;
    border: 3px solid #f093fb;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.g1ela-footer-box h3 {
    font-size: 22px;
    margin: 0 0 15px 0;
    color: #f093fb;
}

.g1ela-footer-box p {
    margin: 8px 0;
    font-size: 15px;
    line-height: 1.6;
}

.g1ela-footer-box .emoji-row {
    font-size: 30px;
    margin-top: 15px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .g1ela-container {
        padding: 15px;
    }
    
    .g1ela-title {
        font-size: 24px;
    }
    
    .g1ela-subtitle {
        font-size: 14px;
    }
    
    .unit-header {
        padding: 15px 18px;
        gap: 12px;
    }
    
    .unit-icon {
        font-size: 28px;
        width: 45px;
        height: 45px;
    }
    
    .unit-title {
        font-size: 16px;
    }
    
    .unit-count {
        display: none;
    }
    
    .lesson-list {
        padding: 12px 15px 15px;
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .lesson-link {
        padding: 10px 12px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .g1ela-header {
        padding: 20px 15px;
    }
    
    .g1ela-title {
        font-size: 20px;
    }
    
    .g1ela-icons {
        font-size: 24px;
    }
    
    .unit-title {
        font-size: 15px;
    }
    
    .unit-number {
        font-size: 11px;
    }
}
/* Lesson toggle button */
.lesson-toggle {
    margin-left: auto;
    font-size: 20px;
    font-weight: bold;
    transition: transform 0.3s;
}

.lesson-link {
    cursor: pointer;
}

/* Submenu (hidden by default) */
.lesson-submenu {
    display: none;
    padding: 8px 15px 12px 55px;
    background: #fff;
}

.lesson-submenu.active {
    display: block;
}

.submenu-link {
    display: block;
    padding: 8px 12px;
    margin: 4px 0;
    background: #f8f9fa;
    border-radius: 8px;
    color: #666;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s;
}

.submenu-link:hover {
    background: #e9ecef;
    padding-left: 16px;
}

/* Rotate toggle icon when active */
.lesson-item.active .lesson-toggle {
    transform: rotate(45deg);
}