
.g1ss-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, #e8f4fc 0%, #fff8e7 100%);
    min-height: 100vh;
}

/* Header Section */
.g1ss-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #2196f3 0%, #9c27b0 50%, #ff5722 100%);
    border-radius: 25px;
    box-shadow: 0 8px 20px rgba(33, 150, 243, 0.3);
    position: relative;
}

.g1ss-title {
    color: #fff;
    font-size: 32px;
    font-weight: bold;
    text-shadow: 3px 3px 0 #1565c0, 4px 4px 8px rgba(0,0,0,0.2);
    margin: 0 0 10px 0;
    letter-spacing: 1px;
}

.g1ss-subtitle {
    color: #fff;
    font-size: 16px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    margin: 0;
}

.g1ss-icons {
    font-size: 28px;
    margin-top: 10px;
}

/* Breadcrumb */
.g1ss-breadcrumb {
    text-align: center;
    margin-bottom: 25px;
    font-size: 14px;
    color: #666;
}

.g1ss-breadcrumb a {
    color: #2196f3;
    text-decoration: none;
    font-weight: bold;
}

.g1ss-breadcrumb a:hover {
    text-decoration: underline;
}

.g1ss-breadcrumb .separator {
    margin: 0 8px;
    color: #9c27b0;
}

/* Unit Section */
.g1ss-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;
}

.g1ss-unit:nth-child(17n+1) { border-color: #4caf50; }
.g1ss-unit:nth-child(17n+2) { border-color: #e91e63; }
.g1ss-unit:nth-child(17n+3) { border-color: #795548; }
.g1ss-unit:nth-child(17n+4) { border-color: #9c27b0; }
.g1ss-unit:nth-child(17n+5) { border-color: #3498db; }
.g1ss-unit:nth-child(17n+6) { border-color: #ff5722; }
.g1ss-unit:nth-child(17n+7) { border-color: #009688; }
.g1ss-unit:nth-child(17n+8) { border-color: #4caf50; }
.g1ss-unit:nth-child(17n+9) { border-color: #03a9f4; }
.g1ss-unit:nth-child(17n+10) { border-color: #ff9800; }
.g1ss-unit:nth-child(17n+11) { border-color: #e91e63; }
.g1ss-unit:nth-child(17n+12) { border-color: #8bc34a; }
.g1ss-unit:nth-child(17n+13) { border-color: #2196f3; }
.g1ss-unit:nth-child(17n+14) { border-color: #f44336; }
.g1ss-unit:nth-child(17n+15) { border-color: #673ab7; }
.g1ss-unit:nth-child(17n+16) { border-color: #ff5722; }
.g1ss-unit:nth-child(17n+17) { border-color: #00bcd4; }

/* Unit Header */
.unit-header {
    padding: 18px 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
}

.g1ss-unit:nth-child(17n+1) .unit-header { background: linear-gradient(135deg, #4caf50 0%, #81c784 100%); }
.g1ss-unit:nth-child(17n+2) .unit-header { background: linear-gradient(135deg, #e91e63 0%, #f48fb1 100%); }
.g1ss-unit:nth-child(17n+3) .unit-header { background: linear-gradient(135deg, #795548 0%, #a1887f 100%); }
.g1ss-unit:nth-child(17n+4) .unit-header { background: linear-gradient(135deg, #9c27b0 0%, #ce93d8 100%); }
.g1ss-unit:nth-child(17n+5) .unit-header { background: linear-gradient(135deg, #3498db 0%, #74b9ff 100%); }
.g1ss-unit:nth-child(17n+6) .unit-header { background: linear-gradient(135deg, #ff5722 0%, #ff8a65 100%); }
.g1ss-unit:nth-child(17n+7) .unit-header { background: linear-gradient(135deg, #009688 0%, #4db6ac 100%); }
.g1ss-unit:nth-child(17n+8) .unit-header { background: linear-gradient(135deg, #4caf50 0%, #a5d6a7 100%); }
.g1ss-unit:nth-child(17n+9) .unit-header { background: linear-gradient(135deg, #03a9f4 0%, #4fc3f7 100%); }
.g1ss-unit:nth-child(17n+10) .unit-header { background: linear-gradient(135deg, #ff9800 0%, #ffcc80 100%); }
.g1ss-unit:nth-child(17n+11) .unit-header { background: linear-gradient(135deg, #e91e63 0%, #f8bbd9 100%); }
.g1ss-unit:nth-child(17n+12) .unit-header { background: linear-gradient(135deg, #8bc34a 0%, #c5e1a5 100%); }
.g1ss-unit:nth-child(17n+13) .unit-header { background: linear-gradient(135deg, #2196f3 0%, #90caf9 100%); }
.g1ss-unit:nth-child(17n+14) .unit-header { background: linear-gradient(135deg, #f44336 0%, #ef9a9a 100%); }
.g1ss-unit:nth-child(17n+15) .unit-header { background: linear-gradient(135deg, #673ab7 0%, #b39ddb 100%); }
.g1ss-unit:nth-child(17n+16) .unit-header { background: linear-gradient(135deg, #ff5722 0%, #ffab91 100%); }
.g1ss-unit:nth-child(17n+17) .unit-header { background: linear-gradient(135deg, #00bcd4 0%, #80deea 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;
}

.g1ss-unit:nth-child(17n+1) .lesson-item { border-left-color: #4caf50; }
.g1ss-unit:nth-child(17n+2) .lesson-item { border-left-color: #e91e63; }
.g1ss-unit:nth-child(17n+3) .lesson-item { border-left-color: #795548; }
.g1ss-unit:nth-child(17n+4) .lesson-item { border-left-color: #9c27b0; }
.g1ss-unit:nth-child(17n+5) .lesson-item { border-left-color: #3498db; }
.g1ss-unit:nth-child(17n+6) .lesson-item { border-left-color: #ff5722; }
.g1ss-unit:nth-child(17n+7) .lesson-item { border-left-color: #009688; }
.g1ss-unit:nth-child(17n+8) .lesson-item { border-left-color: #4caf50; }
.g1ss-unit:nth-child(17n+9) .lesson-item { border-left-color: #03a9f4; }
.g1ss-unit:nth-child(17n+10) .lesson-item { border-left-color: #ff9800; }
.g1ss-unit:nth-child(17n+11) .lesson-item { border-left-color: #e91e63; }
.g1ss-unit:nth-child(17n+12) .lesson-item { border-left-color: #8bc34a; }
.g1ss-unit:nth-child(17n+13) .lesson-item { border-left-color: #2196f3; }
.g1ss-unit:nth-child(17n+14) .lesson-item { border-left-color: #f44336; }
.g1ss-unit:nth-child(17n+15) .lesson-item { border-left-color: #673ab7; }
.g1ss-unit:nth-child(17n+16) .lesson-item { border-left-color: #ff5722; }
.g1ss-unit:nth-child(17n+17) .lesson-item { border-left-color: #00bcd4; }

.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;
}

.g1ss-unit:nth-child(17n+1) .lesson-link:hover { color: #4caf50; }
.g1ss-unit:nth-child(17n+2) .lesson-link:hover { color: #e91e63; }
.g1ss-unit:nth-child(17n+3) .lesson-link:hover { color: #795548; }
.g1ss-unit:nth-child(17n+4) .lesson-link:hover { color: #9c27b0; }
.g1ss-unit:nth-child(17n+5) .lesson-link:hover { color: #3498db; }
.g1ss-unit:nth-child(17n+6) .lesson-link:hover { color: #ff5722; }
.g1ss-unit:nth-child(17n+7) .lesson-link:hover { color: #009688; }
.g1ss-unit:nth-child(17n+8) .lesson-link:hover { color: #4caf50; }
.g1ss-unit:nth-child(17n+9) .lesson-link:hover { color: #03a9f4; }
.g1ss-unit:nth-child(17n+10) .lesson-link:hover { color: #ff9800; }
.g1ss-unit:nth-child(17n+11) .lesson-link:hover { color: #e91e63; }
.g1ss-unit:nth-child(17n+12) .lesson-link:hover { color: #8bc34a; }
.g1ss-unit:nth-child(17n+13) .lesson-link:hover { color: #2196f3; }
.g1ss-unit:nth-child(17n+14) .lesson-link:hover { color: #f44336; }
.g1ss-unit:nth-child(17n+15) .lesson-link:hover { color: #673ab7; }
.g1ss-unit:nth-child(17n+16) .lesson-link:hover { color: #ff5722; }
.g1ss-unit:nth-child(17n+17) .lesson-link:hover { color: #00bcd4; }

.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;
}

.g1ss-unit:nth-child(17n+1) .lesson-link:hover .lesson-number { background: #e8f5e9; color: #4caf50; }
.g1ss-unit:nth-child(17n+2) .lesson-link:hover .lesson-number { background: #fce4ec; color: #e91e63; }
.g1ss-unit:nth-child(17n+3) .lesson-link:hover .lesson-number { background: #efebe9; color: #795548; }
.g1ss-unit:nth-child(17n+4) .lesson-link:hover .lesson-number { background: #f3e5f5; color: #9c27b0; }
.g1ss-unit:nth-child(17n+5) .lesson-link:hover .lesson-number { background: #e3f2fd; color: #3498db; }
.g1ss-unit:nth-child(17n+6) .lesson-link:hover .lesson-number { background: #fbe9e7; color: #ff5722; }
.g1ss-unit:nth-child(17n+7) .lesson-link:hover .lesson-number { background: #e0f2f1; color: #009688; }
.g1ss-unit:nth-child(17n+8) .lesson-link:hover .lesson-number { background: #e8f5e9; color: #4caf50; }
.g1ss-unit:nth-child(17n+9) .lesson-link:hover .lesson-number { background: #e1f5fe; color: #03a9f4; }
.g1ss-unit:nth-child(17n+10) .lesson-link:hover .lesson-number { background: #fff3e0; color: #ff9800; }
.g1ss-unit:nth-child(17n+11) .lesson-link:hover .lesson-number { background: #fce4ec; color: #e91e63; }
.g1ss-unit:nth-child(17n+12) .lesson-link:hover .lesson-number { background: #f1f8e9; color: #8bc34a; }
.g1ss-unit:nth-child(17n+13) .lesson-link:hover .lesson-number { background: #e3f2fd; color: #2196f3; }
.g1ss-unit:nth-child(17n+14) .lesson-link:hover .lesson-number { background: #ffebee; color: #f44336; }
.g1ss-unit:nth-child(17n+15) .lesson-link:hover .lesson-number { background: #ede7f6; color: #673ab7; }
.g1ss-unit:nth-child(17n+16) .lesson-link:hover .lesson-number { background: #fbe9e7; color: #ff5722; }
.g1ss-unit:nth-child(17n+17) .lesson-link:hover .lesson-number { background: #e0f7fa; color: #00bcd4; }

.lesson-text {
    flex: 1;
    line-height: 1.4;
}

/* Footer Box */
.g1ss-footer-box {
    background: #fff;
    border-radius: 20px;
    padding: 25px;
    margin-top: 30px;
    color: #444;
    text-align: center;
    border: 3px solid #2196f3;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.g1ss-footer-box h3 {
    font-size: 22px;
    margin: 0 0 15px 0;
    color: #2196f3;
}

.g1ss-footer-box p {
    margin: 8px 0;
    font-size: 15px;
    line-height: 1.6;
}

.g1ss-footer-box .emoji-row {
    font-size: 30px;
    margin-top: 15px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .g1ss-container {
        padding: 15px;
    }
    
    .g1ss-title {
        font-size: 24px;
    }
    
    .g1ss-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) {
    .g1ss-header {
        padding: 20px 15px;
    }
    
    .g1ss-title {
        font-size: 20px;
    }
    
    .g1ss-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);
}