/* ============================================
   GRADE 1 SCIENCE - FUN & COLORFUL THEME
   ============================================ */

.g1science-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, #e8f8f0 0%, #fff5e6 100%);
    min-height: 100vh;
}

/* Header Section */
.g1science-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 50%, #a8e063 100%);
    border-radius: 25px;
    box-shadow: 0 8px 20px rgba(17, 153, 142, 0.3);
    position: relative;
}

.g1science-title {
    color: #fff;
    font-size: 32px;
    font-weight: bold;
    text-shadow: 3px 3px 0 #0d7377, 4px 4px 8px rgba(0,0,0,0.2);
    margin: 0 0 10px 0;
    letter-spacing: 1px;
}

.g1science-subtitle {
    color: #fff;
    font-size: 16px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    margin: 0;
}

.g1science-icons {
    font-size: 28px;
    margin-top: 10px;
}

/* Breadcrumb */
.g1science-breadcrumb {
    text-align: center;
    margin-bottom: 25px;
    font-size: 14px;
    color: #666;
}

.g1science-breadcrumb a {
    color: #11998e;
    text-decoration: none;
    font-weight: bold;
}

.g1science-breadcrumb a:hover {
    text-decoration: underline;
}

.g1science-breadcrumb .separator {
    margin: 0 8px;
    color: #38ef7d;
}

/* Unit Section */
.g1science-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;
}

.g1science-unit:nth-child(14n+1) { border-color: #6c5ce7; }
.g1science-unit:nth-child(14n+2) { border-color: #fd79a8; }
.g1science-unit:nth-child(14n+3) { border-color: #fdcb6e; }
.g1science-unit:nth-child(14n+4) { border-color: #00cec9; }
.g1science-unit:nth-child(14n+5) { border-color: #e17055; }
.g1science-unit:nth-child(14n+6) { border-color: #00b894; }
.g1science-unit:nth-child(14n+7) { border-color: #0984e3; }
.g1science-unit:nth-child(14n+8) { border-color: #e84393; }
.g1science-unit:nth-child(14n+9) { border-color: #ff7675; }
.g1science-unit:nth-child(14n+10) { border-color: #f39c12; }
.g1science-unit:nth-child(14n+11) { border-color: #9b59b6; }
.g1science-unit:nth-child(14n+12) { border-color: #3498db; }
.g1science-unit:nth-child(14n+13) { border-color: #1abc9c; }
.g1science-unit:nth-child(14n+14) { border-color: #e74c3c; }

/* Unit Header */
.unit-header {
    padding: 18px 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
}

.g1science-unit:nth-child(14n+1) .unit-header { background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%); }
.g1science-unit:nth-child(14n+2) .unit-header { background: linear-gradient(135deg, #fd79a8 0%, #f8a5c2 100%); }
.g1science-unit:nth-child(14n+3) .unit-header { background: linear-gradient(135deg, #fdcb6e 0%, #ffeaa7 100%); }
.g1science-unit:nth-child(14n+4) .unit-header { background: linear-gradient(135deg, #00cec9 0%, #81ecec 100%); }
.g1science-unit:nth-child(14n+5) .unit-header { background: linear-gradient(135deg, #e17055 0%, #fab1a0 100%); }
.g1science-unit:nth-child(14n+6) .unit-header { background: linear-gradient(135deg, #00b894 0%, #55efc4 100%); }
.g1science-unit:nth-child(14n+7) .unit-header { background: linear-gradient(135deg, #0984e3 0%, #74b9ff 100%); }
.g1science-unit:nth-child(14n+8) .unit-header { background: linear-gradient(135deg, #e84393 0%, #fd79a8 100%); }
.g1science-unit:nth-child(14n+9) .unit-header { background: linear-gradient(135deg, #ff7675 0%, #fab1a0 100%); }
.g1science-unit:nth-child(14n+10) .unit-header { background: linear-gradient(135deg, #f39c12 0%, #f1c40f 100%); }
.g1science-unit:nth-child(14n+11) .unit-header { background: linear-gradient(135deg, #9b59b6 0%, #be90d4 100%); }
.g1science-unit:nth-child(14n+12) .unit-header { background: linear-gradient(135deg, #3498db 0%, #85c1e9 100%); }
.g1science-unit:nth-child(14n+13) .unit-header { background: linear-gradient(135deg, #1abc9c 0%, #76d7c4 100%); }
.g1science-unit:nth-child(14n+14) .unit-header { background: linear-gradient(135deg, #e74c3c 0%, #f1948a 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;
}

.g1science-unit:nth-child(14n+1) .lesson-item { border-left-color: #6c5ce7; }
.g1science-unit:nth-child(14n+2) .lesson-item { border-left-color: #fd79a8; }
.g1science-unit:nth-child(14n+3) .lesson-item { border-left-color: #fdcb6e; }
.g1science-unit:nth-child(14n+4) .lesson-item { border-left-color: #00cec9; }
.g1science-unit:nth-child(14n+5) .lesson-item { border-left-color: #e17055; }
.g1science-unit:nth-child(14n+6) .lesson-item { border-left-color: #00b894; }
.g1science-unit:nth-child(14n+7) .lesson-item { border-left-color: #0984e3; }
.g1science-unit:nth-child(14n+8) .lesson-item { border-left-color: #e84393; }
.g1science-unit:nth-child(14n+9) .lesson-item { border-left-color: #ff7675; }
.g1science-unit:nth-child(14n+10) .lesson-item { border-left-color: #f39c12; }
.g1science-unit:nth-child(14n+11) .lesson-item { border-left-color: #9b59b6; }
.g1science-unit:nth-child(14n+12) .lesson-item { border-left-color: #3498db; }
.g1science-unit:nth-child(14n+13) .lesson-item { border-left-color: #1abc9c; }
.g1science-unit:nth-child(14n+14) .lesson-item { border-left-color: #e74c3c; }

.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;
}

.g1science-unit:nth-child(14n+1) .lesson-link:hover { color: #6c5ce7; }
.g1science-unit:nth-child(14n+2) .lesson-link:hover { color: #fd79a8; }
.g1science-unit:nth-child(14n+3) .lesson-link:hover { color: #d4a017; }
.g1science-unit:nth-child(14n+4) .lesson-link:hover { color: #00cec9; }
.g1science-unit:nth-child(14n+5) .lesson-link:hover { color: #e17055; }
.g1science-unit:nth-child(14n+6) .lesson-link:hover { color: #00b894; }
.g1science-unit:nth-child(14n+7) .lesson-link:hover { color: #0984e3; }
.g1science-unit:nth-child(14n+8) .lesson-link:hover { color: #e84393; }
.g1science-unit:nth-child(14n+9) .lesson-link:hover { color: #ff7675; }
.g1science-unit:nth-child(14n+10) .lesson-link:hover { color: #f39c12; }
.g1science-unit:nth-child(14n+11) .lesson-link:hover { color: #9b59b6; }
.g1science-unit:nth-child(14n+12) .lesson-link:hover { color: #3498db; }
.g1science-unit:nth-child(14n+13) .lesson-link:hover { color: #1abc9c; }
.g1science-unit:nth-child(14n+14) .lesson-link:hover { color: #e74c3c; }

.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 */
.g1science-footer-box {
    background: #fff;
    border-radius: 20px;
    padding: 25px;
    margin-top: 30px;
    color: #444;
    text-align: center;
    border: 3px solid #11998e;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.g1science-footer-box h3 {
    font-size: 22px;
    margin: 0 0 15px 0;
    color: #11998e;
}

.g1science-footer-box p {
    margin: 8px 0;
    font-size: 15px;
    line-height: 1.6;
}

.g1science-footer-box .emoji-row {
    font-size: 30px;
    margin-top: 15px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .g1science-container {
        padding: 15px;
    }
    
    .g1science-title {
        font-size: 24px;
    }
    
    .g1science-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) {
    .g1science-header {
        padding: 20px 15px;
    }
    
    .g1science-title {
        font-size: 20px;
    }
    
    .g1science-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);
}