/* Reset dasar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

:root {
    /* Palet Warna Pastel */
    --pastel-blue: #bde0fe;
    --pastel-blue-dark: #a2d2ff;
    --pastel-yellow: #fff4bd;
    --pastel-yellow-dark: #ffe57f;
    --text-color: #333;
    --bg-color: #f0f4f8;
    --white: #ffffff;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header Styling */
header {
    background-color: var(--pastel-blue-dark);
    padding: 2rem;
    text-align: center;
    color: var(--white);
    border-bottom: 5px solid var(--pastel-yellow-dark);
}

header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* Main Layout */
main {
    flex: 1;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Grid System untuk Kartu Matkul */
.grid-container {
    display: grid;
    /* Auto-fit akan menyesuaikan jumlah kolom berdasarkan lebar layar */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

/* Styling Kartu (Card) */
.card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    cursor: pointer;
    text-decoration: none; /* Menghilangkan garis bawah link */
    color: inherit;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* Bagian Gambar Abstrak di atas Kartu */
.card-thumb {
    height: 120px;
    width: 100%;
    background: linear-gradient(135deg, var(--pastel-blue) 0%, var(--pastel-yellow) 100%);
    position: relative;
}

/* Pola hiasan sederhana (lingkaran) */
.card-thumb::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    top: -20px;
    right: -20px;
}

/* Bagian Isi Kartu */
.card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #444;
}

.btn-enter {
    margin-top: auto;
    background-color: #0056b3; /* Biru sesuai gambar referensi tombol */
    color: white;
    padding: 10px;
    text-align: center;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.3s;
}

.card:hover .btn-enter {
    background-color: #004494;
}

/* Footer */
footer {
    text-align: center;
    padding: 1rem;
    background-color: #fff;
    color: #888;
    font-size: 0.9rem;
    border-top: 1px solid #eee;
}