* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

html, body {
    width: 100%;
    overflow-x: hidden;
    background: #f9f9f9;
    color: #333;
}

/* Header */
header {
    /* background-color: #343a40; */
    color: black;
    padding: 20px 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    margin: auto;
}

.logo {
    font-size: 24px;
    font-weight: bold;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links li a {
    color: black;
    text-decoration: none;
    font-weight: bold;
    /* transition: color 0.3s; */
}

.nav-links li a:hover {
    color: #ffc107;
}

/* Hamburger untuk mobile */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    height: 3px;
    width: 25px;
    background: #333;
    margin: 4px 0;
    border-radius: 2px;
}

/* HIGHLIGHT NEWS */
.highlight-news {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    gap: 30px;
    background-color: #f9f9f9;
}

.highlight-news img {
    width: 500px;
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    object-fit: cover;
    aspect-ratio: 1 / 1; /* seragam juga di highlight */
}

.highlight-text {
    max-width: 500px;
}

.highlight-text h2 {
    font-size: 28px;
    margin-bottom: 15px;
    color: #333;
}

.highlight-text p {
    margin-bottom: 20px;
    line-height: 1.6;
}

.button {
    background-color: #ffc107;
    color: black;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: background 0.3s;
}

.button:hover {
    background-color: #e0a800;
}

/* BERITA GRID */
.berita-grid {
    padding: 60px 20px;
    text-align: center;
    background-color: #fff;
}

.berita-grid h3 {
    font-size: 26px;
    margin-bottom: 30px;
    color: #333;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: auto;
}

.card {
    background-color: #f4f4f4;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-align: left;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: #fff;
    display: block;
}

.card-body {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-body h4 {
    margin-bottom: 10px;
    color: #222;
    font-size: 20px;
}

.card-body p {
    font-size: 14px;
    margin-bottom: 10px;
}

.read-more {
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
    margin-top: auto; /* dorong ke bawah */
}

.read-more:hover {
    text-decoration: underline;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .highlight-news {
        flex-direction: column;
        text-align: center;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        flex-direction: column;
        display: none;
        position: absolute;
        right: 0;
        top: 60px;
        background: #fff;
        padding: 20px;
        width: 200px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

    .nav-links li {
        margin: 10px 0;
    }

    .nav-links li a {
        color: #333;
        display: block;
        padding: 10px 0;
    }

    .hamburger {
        display: flex;
    }

    .highlight-text h2 {
        font-size: 22px;
    }

    .highlight-text p {
        font-size: 14px;
    }

    .button {
        width: 100%;
        text-align: center;
    }

    .card-body h4 {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .highlight-text h2 {
        font-size: 20px;
    }

    .highlight-text p {
        font-size: 13px;
    }

    .card-body h4 {
        font-size: 16px;
    }

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

/* Aktifkan menu dengan class .show */
.nav-links.show {
    display: flex;
}
