/* ============================================================
   CLASS PAGE — Subject Cards
   Usage: Class 6, Class 7... /index.php
   ============================================================ */

.subject-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.subject-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px;
    text-decoration: none;
    color: #0f172a;
    transition: all 0.25s ease;
    box-shadow: 0 1px 3px rgba(15,23,42,0.04);
    position: relative;
    overflow: hidden;
}

.subject-card:hover {
    transform: translateY(-3px);
    border-color: #1e40af;
    box-shadow: 0 12px 28px rgba(30,64,175,0.12);
}

.subject-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    color: #fff;
    font-weight: 900;
}

/* Subject color variants */
.subject-icon.english  { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.subject-icon.hindi    { background: linear-gradient(135deg, #f97316, #ea580c); }
.subject-icon.maths    { background: linear-gradient(135deg, #10b981, #059669); }
.subject-icon.science  { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.subject-icon.sst      { background: linear-gradient(135deg, #ef4444, #dc2626); }
.subject-icon.sanskrit { background: linear-gradient(135deg, #06b6d4, #0891b2); }

.subject-info {
    flex: 1;
    min-width: 0;
}

.subject-name {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 3px;
    display: block;
}

.subject-desc {
    font-size: 12px;
    color: #64748b;
    line-height: 1.4;
    margin: 0;
}

.subject-arrow {
    font-size: 18px;
    color: #cbd5e1;
    transition: all 0.25s;
}

.subject-card:hover .subject-arrow {
    color: #1e40af;
    transform: translateX(4px);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 600px) {
    .subject-grid { grid-template-columns: 1fr; gap: 12px; }
    .subject-card { padding: 14px; }
    .subject-icon { width: 44px; height: 44px; font-size: 20px; }
    .subject-name { font-size: 14.5px; }
    .subject-desc { font-size: 11px; }
}