* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f5f5;
    color: #111;
}

/* =========================
   CONTAINER
========================= */

.container {
    width: min(92%, 1200px);
    margin: 0 auto;
}

/* =========================
   HEADER
========================= */

header {
    background: #000;
    color: #fff;
    border-bottom: 3px solid #fff;
}

.header-inner {
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand-wrap {
    flex: 0 0 auto;
}

.brand-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #fff;
    text-decoration: none;
}

/* Logo dibuat kecil supaya header tidak makan tempat */
.brand-logo {
    width: 58px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 58px;
    overflow: hidden;
}

.brand-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-name {
    font-size: 19px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -0.5px;
    white-space: nowrap;
}

/* =========================
   NAVIGATION
========================= */

nav {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 12px;
}

nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 2px;
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    transition: color .2s ease;
}

nav a:hover {
    color: #aaa;
}

/* =========================
   SEARCH
========================= */

.public-search {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-left: 4px;
    flex: 0 0 auto;
}

.public-search input {
    width: 145px;
    height: 32px;
    padding: 0 9px;
    border: 1px solid #444;
    background: #111;
    color: #fff;
    border-radius: 5px;
    outline: none;
    font-family: inherit;
    font-size: 11px;
}

.public-search input::placeholder {
    color: #999;
}

.public-search input:focus {
    border-color: #777;
}

.public-search button {
    height: 32px;
    padding: 0 10px;
    border: 0;
    background: #fff;
    color: #000;
    border-radius: 5px;
    font-family: inherit;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
}

.public-search button:hover {
    background: #ddd;
}

/* =========================
   MAIN
========================= */

main {
    padding: 35px 0 60px;
}

/* =========================
   HERO
========================= */

.hero {
    background: #fff;
    padding: 45px;
    border-left: 6px solid #000;
    margin-bottom: 35px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
}

.hero h1 {
    font-size: 42px;
    font-weight: 800;
    color: #000;
    margin-bottom: 12px;
}

.hero p {
    color: #555;
    font-size: 16px;
    line-height: 1.7;
}

/* =========================
   SECTION TITLE
========================= */

.section-title {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 22px;
    padding-left: 12px;
    border-left: 5px solid #000;
}

/* =========================
   NEWS GRID
========================= */

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

/* =========================
   NEWS CARD
========================= */

.news-card {
    background: #fff;
    overflow: hidden;
    border: 1px solid #ddd;
    transition: .25s;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* =========================
   NEWS IMAGE
========================= */

.news-image {
    width: 100%;
    height: 190px;
    background: #ddd;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
    filter: grayscale(100%);
    transition: .3s;
}

.news-card:hover .news-image img {
    transform: scale(1.04);
}

.no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ddd;
    color: #555;
    font-size: 14px;
}

/* =========================
   NEWS CONTENT
========================= */

.news-content {
    padding: 20px;
}

.news-content small {
    display: inline-block;
    color: #fff;
    background: #000;
    padding: 5px 9px;
    margin-bottom: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.news-content h3 {
    font-size: 20px;
    line-height: 1.4;
    margin-bottom: 10px;
    color: #111;
}

.news-content p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

/* =========================
   FOOTER
========================= */

footer {
    background: #000;
    color: #fff;
    padding: 35px 0;
    text-align: center;
    font-size: 14px;
}

/* =========================
   TABLET
========================= */

@media (max-width: 1050px) {

    .header-inner {
        min-height: auto;
        padding: 14px 0;
        flex-direction: column;
        gap: 12px;
    }

    nav {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        row-gap: 6px;
    }

    .public-search {
        margin-left: 0;
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =========================
   MOBILE
========================= */

@media (max-width: 600px) {

    .container {
        width: 92%;
    }

    .header-inner {
        gap: 12px;
    }

    .brand-logo {
        width: 52px;
        height: 38px;
        flex-basis: 52px;
    }

    .brand-name {
        font-size: 17px;
    }

    nav {
        gap: 5px 11px;
    }

    nav a {
        min-height: 28px;
        font-size: 11px;
    }

    .public-search {
        width: 100%;
        justify-content: center;
    }

    .public-search input {
        flex: 1;
        width: auto;
        max-width: 230px;
    }

    .hero {
        padding: 30px 25px;
    }

    .hero h1 {
        font-size: 30px;
    }

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