/* RESET */
body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background: #f5f7fa;
}

/* HERO */
.hero {
    height: 90vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    top: 0;
    left: 0;
    z-index: 0;
}

.hero::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    top: 0;
    left: 0;
    z-index: 1;
}

.hero-text {
    position: relative;
    z-index: 2;
    color: white;
    padding: 100px 0 100px 10%;
    max-width: 600px;
}

/* FILTER */
.course-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 20px;
    background: white;
    flex-wrap: wrap;
}

.course-filter a {
    text-decoration: none;
    padding: 10px 20px;
    background: #eee;
    border-radius: 25px;
    color: #333;
    transition: all 0.3s ease;
    font-size: 14px;
}

.course-filter a:hover {
    background: #800000;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(128, 0, 0, 0.2);
}

.course-filter .active {
    background: #800000;    
    color: #fff;
    border: 1px solid #800000;
    box-shadow: 0 4px 10px rgba(128, 0, 0, 0.25);
}

/* =========================
   GRID (FIXED)
========================= */
.course-container {
    display: grid;
    grid-template-columns: repeat(4, 260px); /* ukuran card */
    gap: 25px;
    justify-content: center; /* tidak nempel kiri */
    padding: 40px 0;
}

/* =========================
   CARD (IMPROVED)
========================= */
.card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* IMAGE */
.card-image img {
    width: 100%;
    height: 160px; 
    object-fit: cover;
}

/* BODY */
.card-body {
    padding: 15px;
}

.card-body h3 {
    margin: 0 0 10px;
    font-size: 16px; 
}

.card-body p {
    font-size: 13px;
    color: #666;
}

.card-body h3 a {
    text-decoration: none;
    color: #333;
    transition: 0.3s;
}

.card-body h3 a:hover {
    color: #800000; /* maroon branding */
}

/* INFO */
.card-info {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    font-size: 13px;
    color: #888;
}

/* EMPTY STATE */
.no-data {
    grid-column: span 4;
    text-align: center;
    color: gray;
    font-size: 18px;
}

/* =========================
   RESPONSIVE
========================= */

/* tablet */
@media (max-width: 1024px) {
    .course-container {
        grid-template-columns: repeat(2, 260px);
        justify-content: center;
    }
}

/* mobile */
@media (max-width: 600px) {
    .course-container {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .hero-text {
        padding-left: 20px;
    }

    .hero-text h1 {
        font-size: 24px;
    }
}