/* ==========================================================================
   Live Classes — Choose Your Grade
   ========================================================================== */

.live-classes-page {
    width: 100%;
    background: #faf6f0;
    min-height: 60vh;
    padding: 48px 0 64px;
}

.live-classes-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.lc-header {
    text-align: center;
    margin-bottom: 40px;
}

.lc-title {
    font-family: "Fredoka", "Comic Neue", sans-serif;
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.2;
    margin-bottom: 12px;
}

.lc-title-accent {
    color: #f27a02;
}

.lc-title-decor {
    display: flex;
    justify-content: center;
}

.lc-title-decor-img {
    width: 61px;
    height: auto;
}

/* Grade Grid */
.lc-grade-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Grade Card */
.lc-grade-card {
    position: relative;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.lc-grade-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

/* Ribbon */
.lc-grade-ribbon {
    position: absolute;
    top: 0;
    left: 16px;
    width: 36px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Fredoka", sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    z-index: 2;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 88%, 0 100%);
}

/* Live Now badge */
.lc-live-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    background: #fff0f0;
    color: #e53935;
    font-family: "Comic Neue", sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 999px;
    z-index: 2;
}

.lc-live-dot {
    width: 7px;
    height: 7px;
    background: #e53935;
    border-radius: 50%;
    flex-shrink: 0;
    animation: lc-pulse 1.5s ease-in-out infinite;
}

@keyframes lc-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* Card inner layout */
.lc-card-inner {
    display: flex;
    align-items: stretch;
    min-height: 160px;
    padding: 20px 16px 20px 20px;
}

.lc-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 28px;
    min-width: 0;
}

.lc-grade-name {
    font-family: "Fredoka", "Comic Neue", sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 6px;
}

.lc-class-count {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: "Comic Neue", sans-serif;
    font-size: 0.875rem;
    color: #555;
    margin-bottom: 14px;
}

.lc-video-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.lc-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    background: #f27a02;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 8px 16px;
    font-family: "Comic Neue", sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}

.lc-view-btn:hover {
    background: #d56800;
}

.lc-view-btn svg {
    width: 16px;
    height: 16px;
}

/* Illustration */
.lc-card-illustration {
    flex: 0 0 42%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 8px;
}

.lc-card-illustration img {
    width: 100%;
    max-width: 140px;
    height: auto;
    object-fit: contain;
}

/* Per-grade theme colors */
.lc-g1 { background: linear-gradient(135deg, #f0f7ff 0%, #fff 60%); }
.lc-g1 .lc-grade-ribbon { background: #2196f3; }
.lc-g1 .lc-video-icon { color: #2196f3; }

.lc-g2 { background: linear-gradient(135deg, #edf7f0 0%, #fff 60%); }
.lc-g2 .lc-grade-ribbon { background: #43a047; }
.lc-g2 .lc-video-icon { color: #43a047; }

.lc-g3 { background: linear-gradient(135deg, #fff8f0 0%, #fff 60%); }
.lc-g3 .lc-grade-ribbon { background: #f27a02; }
.lc-g3 .lc-video-icon { color: #f27a02; }

.lc-g4 { background: linear-gradient(135deg, #f5f0ff 0%, #fff 60%); }
.lc-g4 .lc-grade-ribbon { background: #7e57c2; }
.lc-g4 .lc-video-icon { color: #7e57c2; }

.lc-g5 { background: linear-gradient(135deg, #fffbeb 0%, #fff 60%); }
.lc-g5 .lc-grade-ribbon { background: #f9a825; }
.lc-g5 .lc-video-icon { color: #f9a825; }

.lc-g6 { background: linear-gradient(135deg, #f3f0ff 0%, #fff 60%); }
.lc-g6 .lc-grade-ribbon { background: #9575cd; }
.lc-g6 .lc-video-icon { color: #9575cd; }

/* Class list panel */
.lc-class-panel {
    margin-top: 48px;
    background: #fff;
    border-radius: 20px;
    padding: 28px 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.lc-panel-header {
    margin-bottom: 20px;
}

.lc-panel-title {
    font-family: "Fredoka", "Comic Neue", sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
}

.lc-panel-title span {
    color: #f27a02;
}

.lc-subject-row {
    display: flex;
    align-items: center;
    background: #fafafa;
    border-radius: 14px;
    border: 1px solid #e0e0e0;
    padding: 12px 16px;
    margin-bottom: 12px;
    gap: 12px;
    transition: border-color 0.2s ease;
}

.lc-subject-row:hover {
    border-color: #00828a;
}

.lc-subject-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

.lc-subject-info {
    flex: 1;
    min-width: 0;
}

.lc-subject-info h6 {
    font-family: "Fredoka", sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 2px;
    color: #1a1a1a;
}

.lc-subject-info small {
    font-family: "Comic Neue", sans-serif;
    color: #555;
    font-size: 0.875rem;
}

.lc-join-btn {
    flex-shrink: 0;
    background: #f27a02;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 8px 18px;
    font-family: "Comic Neue", sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s ease;
}

.lc-join-btn:hover {
    background: #d56800;
    color: #fff;
}

/* Responsive */
@media (max-width: 992px) {
    .lc-grade-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .live-classes-page {
        padding: 32px 0 48px;
    }

    .live-classes-container {
        padding: 0 16px;
    }

    .lc-grade-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .lc-card-inner {
        min-height: 140px;
    }

    .lc-card-illustration img {
        max-width: 110px;
    }

    .lc-subject-row {
        flex-wrap: wrap;
    }

    .lc-join-btn {
        width: 100%;
        text-align: center;
        margin-top: 4px;
    }
}
