﻿.grade-grid-container {
    max-width: 1140px;
    margin: 15px auto 50px;
    padding: 0 12px;
}

.grade-big-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 18px;
    padding: 26px 18px 22px;
    text-decoration: none !important;
    color: #1e293b;
    height: 100%;
    position: relative;
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

    .grade-big-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 14px 28px rgba(0, 0, 0, 0.08);
    }

.grade-icon-circle {
    width: 82px;
    height: 82px;
    border-radius: 22px; /* Bo góc mềm kiểu icon app hiện đại thay vì hình tròn đơn điệu */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.grade-big-card:hover .grade-icon-circle {
    transform: scale(1.1);
}

.grade-icon-circle svg {
    width: 54px;
    height: 54px;
}

/* Bảng màu phân cấp học */
/* 1. Mẫu giáo: Vàng cam ấm áp */
.theme-preschool .grade-icon-circle {
    background: #fef3c7;
    color: #d97706;
}

.theme-preschool:hover {
    border-color: #f59e0b;
}

    .theme-preschool:hover .grade-action-badge {
        background: #f59e0b;
        color: #fff;
    }

/* 2. Tiểu học (Lớp 1 - 5): Xanh lá GogoEdu */
.theme-primary .grade-icon-circle {
    background: #dcfce7;
    color: #15803d;
}

.theme-primary:hover {
    border-color: #198754;
}

    .theme-primary:hover .grade-action-badge {
        background: #198754;
        color: #fff;
    }

/* 3. THCS (Lớp 6 - 9): Xanh dương tư duy */
.theme-secondary .grade-icon-circle {
    background: #dbeafe;
    color: #1d4ed8;
}

.theme-secondary:hover {
    border-color: #2563eb;
}

    .theme-secondary:hover .grade-action-badge {
        background: #2563eb;
        color: #fff;
    }

/* 4. Tiếng Anh / Khác: Đỏ san hô nổi bật */
.theme-english .grade-icon-circle {
    background: #ffe4e6;
    color: #be123c;
}

.theme-english:hover {
    border-color: #e11d48;
}

    .theme-english:hover .grade-action-badge {
        background: #e11d48;
        color: #fff;
    }

.grade-card-title {
    font-size: 1.25rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 8px;
    color: #0f172a;
}

.grade-card-subjects {
    font-size: 0.86rem;
    color: #64748b;
    line-height: 1.45;
    margin-bottom: 18px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.grade-action-badge {
    margin-top: auto;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    transition: all 0.2s ease;
}

/* Tối ưu giao diện Mobile: Lưới 2 cột gọn gàng */
@media (max-width: 576px) {
    .grade-big-card {
        padding: 18px 12px 16px;
        border-radius: 14px;
    }

    .grade-icon-circle {
        width: 64px;
        height: 64px;
        border-radius: 16px;
    }

        .grade-icon-circle svg {
            width: 42px;
            height: 42px;
        }

    .grade-card-title {
        font-size: 1.05rem;
        margin-bottom: 6px;
    }

    .grade-card-subjects {
        display: none;
    }

    .grade-action-badge {
        font-size: 0.75rem;
        padding: 4px 12px;
    }
}
