/**
 * Jakarta Islamic School
 * Auto-separated stylesheet for: public/students/materibelajar.php
 */

:root {
            --primary-red: #dc2626;
            --primary-hover: #b91c1c;
            --bg-body: #f8fafc;
            --text-dark: #0f172a;
        }

        body { 
            font-family: 'Poppins', sans-serif; 
            background: var(--bg-body); 
            color: var(--text-dark);
            min-height: 100vh;
        }
        .materi-card { transition: all 0.4s ease; }
        .fade-in { animation: fadeIn 0.5s; }
        @keyframes fadeIn {
            from { opacity: 0; transform: scale(0.9); }
            to { opacity: 1; transform: scale(1); }
        }
        #filter-buttons .btn.active {
            background-color: var(--primary-red);
            color: white;
        }
        .navbar-custom {
            background: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(10px);
            border-bottom: 1px solid #e2e8f0;
        }
        .logo-nav { width: 36px; height: auto; }
        .navbar-brand span { font-size: 1rem; font-weight: 700; color: var(--primary-red); }

        .hero-banner {
            background: linear-gradient(135deg, #fff 0%, #f1f5f9 100%);
            border: 1px solid #e2e8f0;
            border-radius: 1.25rem;
            position: relative;
            overflow: hidden;
        }
        .hero-banner::after {
            content: '';
            position: absolute;
            top: 0; left: 0; width: 5px; height: 100%;
            background: var(--primary-red);
        }

        /* Animasi Berkedip untuk Tombol Beri Ulasan */
        @keyframes pulseBlink {
            0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4); }
            50% { transform: scale(1.05); box-shadow: 0 0 0 8px rgba(220, 38, 38, 0); }
            100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
        }
        .btn-berkedip {
            animation: pulseBlink 1.8s infinite;
        }

        .card-materi { 
            background: #ffffff;
            border: 1px solid #e2e8f0; 
            border-radius: 1rem; 
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.01);
            transition: all 0.25s ease-in-out; 
        }
        .card-materi:hover { 
            transform: translateY(-4px); 
            box-shadow: 0 12px 20px -3px rgba(220, 38, 38, 0.08);
            border-color: rgba(220, 38, 38, 0.3);
        }

        .icon-box {
            width: 48px; height: 48px; min-width: 48px;
            background: #fef2f2;
            color: var(--primary-red);
            border-radius: 0.75rem;
            display: flex; align-items: center; justify-content: center;
            font-size: 1.2rem;
            transition: all 0.25s ease;
        }
        .card-materi:hover .icon-box {
            background: var(--primary-red);
            color: #ffffff;
        }

        .btn-action {
            background: #f8fafc;
            color: #475569;
            border: 1px solid #e2e8f0;
            border-radius: 0.75rem;
            font-size: 0.85rem;
            font-weight: 600;
            padding: 0.5rem 1rem;
            transition: all 0.2s ease;
            text-decoration: none;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
        }
        .card-materi:hover .btn-action {
            background: var(--primary-red);
            color: #ffffff;
            border-color: var(--primary-red);
        }
        .rating-star {
            font-size: 1.5rem;
            color: #cbd5e1;
            cursor: pointer;
            transition: color 0.2s;
        }
        .rating-star.active {
            color: #f59e0b;
        }