/* MAPEL GRID STYLES */
.page-header {
    margin-bottom: 30px;
}

.page-header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.page-header p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

.mapel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    padding-bottom: 40px;
}

.mapel-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 24px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.mapel-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.mapel-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-color);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mapel-card:hover::before {
    opacity: 1;
}

.mapel-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin-bottom: 20px;
    transition: var(--transition);
}

.mapel-card:hover .mapel-icon {
    transform: scale(1.05);
}

/* Warna unik per mapel */
.icon-math { background: var(--info-light); color: var(--info); }
.icon-indo { background: var(--danger-light); color: var(--danger); }
.icon-ipa { background: var(--success-light); color: var(--success); }
.icon-ips { background: var(--warning-light); color: var(--warning); }
.icon-pkn { background: #fdf4ff; color: #d946ef; }
.icon-eng { background: #e0e7ff; color: #4f46e5; }
.icon-seni { background: #fce7f3; color: #ec4899; }
.icon-pjok { background: #ffedd5; color: #f97316; }
.icon-it { background: var(--bg-color); color: var(--secondary-color); }

.mapel-info {
    flex: 1;
}

.mapel-info h3 {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 6px;
    font-weight: 600;
}

.mapel-info p {
    font-size: 13px;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-pelajari {
    margin-top: 24px;
    padding: 12px 0;
    width: 100%;
    background: var(--bg-color);
    color: var(--primary-color);
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.mapel-card:hover .btn-pelajari {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.btn-pelajari i {
    transition: var(--transition);
}

.mapel-card:hover .btn-pelajari i {
    transform: translateX(4px);
}

