/* Reset & base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    background: #fff;
}

a {
    text-decoration: none;
    color: #111;
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */

.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

/* =========================
   HEADER
========================= */

.site-header {
    background: #ffffff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 70px;
}

.logo {
    height: 42px;
}

.site-header nav a {
    margin-left: 25px;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #333;
}

.site-header nav a:hover {
    color: #8c7b52;
}

/* =========================
   HOME
========================= */

.hero {
    width: 100%;
    height: 70vh;
    background-size: cover;
    background-position: center;
}

.home-title {
    text-align: center;
    padding: 80px 20px 90px;
}

.home-title h1 {
    font-size: 44px;
    font-weight: 300;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.home-title p {
    font-size: 16px;
    color: #777;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* =========================
   NEWS LAYOUT
========================= */

.news-wrap {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 50px;
}

/* Main list */

.news-main h2 {
    font-size: 26px;
    margin-bottom: 5px;
    font-weight: 500;
}

.news-main h2 a:hover {
    color: #8c7b52;
}

.news-main small {
    color: #999;
    display: block;
    margin-bottom: 10px;
}

.news-main .excerpt {
    margin-bottom: 40px;
    color: #444;
}

/* Pagination */

.pagination {
    margin-top: 30px;
}

.pagination a {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid #ddd;
    margin-right: 5px;
    font-size: 14px;
}

.pagination a:hover {
    background: #8c7b52;
    color: #fff;
    border-color: #8c7b52;
}

/* =========================
   SIDEBAR
========================= */

.news-sidebar h3 {
    font-size: 18px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.news-sidebar > div {
    margin-bottom: 20px;
}

.news-sidebar b {
    display: block;
    margin-bottom: 5px;
}

.news-sidebar ul {
    list-style: none;
    padding-left: 10px;
}

.news-sidebar li {
    margin-bottom: 5px;
}

.news-sidebar a {
    font-size: 14px;
    color: #555;
}

.news-sidebar a:hover {
    color: #8c7b52;
}

/* =========================
   NEWS DETAIL
========================= */

.news-detail {
    max-width: 900px;
    margin: 60px auto;
    padding: 0 20px;
}

.news-detail h1 {
    font-size: 34px;
    margin-bottom: 10px;
    font-weight: 500;
}

.news-detail small {
    color: #999;
    display: block;
    margin-bottom: 30px;
}

.news-body {
    font-size: 16px;
    line-height: 1.8;
}

/* IMPORTANT: gambar di body news harus aman di mobile */

.news-body img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
}

/* iframe / video (kalau nanti ada embed) */

.news-body iframe {
    max-width: 100%;
}

/* =========================
   SIMPLE FORM (ADMIN)
========================= */

form {
    max-width: 800px;
    margin: 60px auto;
    padding: 20px;
}

input, textarea, button {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 12px;
    border: 1px solid #ccc;
    font-size: 14px;
}

button {
    background: #8c7b52;
    color: #fff;
    border: none;
    cursor: pointer;
}

button:hover {
    opacity: 0.9;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 992px) {

    .news-wrap {
        grid-template-columns: 1fr;
    }

    .news-sidebar {
        border-top: 1px solid #eee;
        padding-top: 30px;
    }

}

/* Header mobile */

@media (max-width: 768px) {

    .site-header .container {
        flex-direction: column;
        align-items: flex-start;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .site-header nav {
        margin-top: 10px;
        display: flex;
        flex-wrap: wrap;
        gap: 10px 15px;
    }

    .site-header nav a {
        margin-left: 0;
        font-size: 12px;
    }

    .hero {
        height: 45vh;
    }

    .home-title {
        padding: 50px 15px 60px;
    }

    .home-title h1 {
        font-size: 28px;
    }

    .home-title p {
        font-size: 12px;
    }

    .news-main h2 {
        font-size: 22px;
    }

    .news-detail h1 {
        font-size: 26px;
    }
}

/* Extra small phones */

@media (max-width: 480px) {

    .home-title h1 {
        font-size: 24px;
    }

    .news-detail {
        margin: 40px auto;
    }

    .news-wrap {
        margin: 40px auto;
    }

}

/* =========================
   FLOATING WHATSAPP
========================= */

.wa-float{
    position:fixed;
    right:25px;
    bottom:25px;
    z-index:9999;
}

.wa-float img{
    width:60px;
    height:60px;
    cursor:pointer;
    transition:0.25s;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.25));
}

.wa-float img:hover{
    transform:scale(1.08);
}

/* khusus halaman news supaya tidak tabrakan tombol scroll */

.page-news-detail .wa-float{
    bottom:95px;
}

/* =========================
   MOBILE SIZE ADJUST
========================= */

@media (max-width:768px){
    .wa-float img{
        width:54px;
        height:54px;
    }
}

/* =========================
   FOOTER SAFETY LAYER
========================= */

footer{
    position:relative;
    z-index:1;
}
