:root {
    --primary-dark: #0f2e1e; 
    --primary-green: #185033; 
    --white: #ffffff;
    --bg-light: #f4f6f5; 
    --text-dark: #1a1a1a;
    --text-muted: #6b7280;
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 10px;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Plus Jakarta Sans', sans-serif; }
body { background-color: var(--white); color: var(--text-dark); overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* Header */
header { display: flex; flex-direction: column; align-items: center; padding: 30px 0; border-bottom: 1px solid #eaeaea; margin-bottom: 40px;}
.logo { font-size: 24px; font-weight: 800; color: var(--primary-dark); display: flex; align-items: center; gap: 8px; letter-spacing: 1px; margin-top: 30px; }
nav ul { display: flex; gap: 40px; margin: 25px 0; }
nav a { font-weight: 600; font-size: 14px; text-transform: uppercase; color: var(--text-muted); transition: 0.3s; }
nav a:hover { color: var(--primary-green); }

.header-center {
    display: flex;
    flex-direction: column; 
    justify-content: center;
    align-items: center;    
    gap: 20px;              
    margin-top: 20px; 
    margin-bottom: 45px;
}

.header-center h1 {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-green);
    text-align: center;
}

.search-container {
    display: flex;
    align-items: center;
    background: #f0f3f1; 
    border-radius: 60px; 
    padding: 8px 8px 8px 24px;
}

.search-icon {
    color: #5f6368; 
    font-size: 18px;
}

.search-container input {
    border: none;
    outline: none;
    padding: 12px 15px;
    width: 350px; 
    background: transparent;
    font-size: 15px;
    color: var(--text-dark);
}

.search-container input::placeholder {
    color: #8c9298;
}

.btn-search {
    background: var(--primary-green);
    color: var(--white);
    border: none;
    padding: 14px 35px; 
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    transition: 0.3s;
}

.btn-search:hover {
    background: #083c24;
}

/* Buttons & Arrows */
.btn-arrow-large { position: absolute; bottom: 0; right: 0; width: 60px; height: 60px; background: var(--primary-green); color: var(--white); border: 4px solid var(--white); border-radius: 16px 0 var(--radius-lg) 0; cursor: pointer; font-size: 20px; display: flex; align-items: center; justify-content: center; z-index: 10; transition: 0.3s; }
.btn-arrow-large:hover { background: var(--white); color: var(--primary-green); }

.btn-arrow-small { position: absolute; bottom: 0; right: 0; width: 40px; height: 40px; background: var(--text-dark); color: var(--white); border: 3px solid var(--white); border-radius: 12px 0 var(--radius-md) 0; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 10; transition: 0.3s;}
.btn-arrow-small:hover { background: var(--white); color: var(--text-dark); border-color: var(--text-dark);}

.btn-arrow-micro { position: absolute; bottom: 0; right: 0; width: 32px; height: 32px; background: var(--white); color: var(--text-dark); border: none; border-radius: 8px 0 var(--radius-md) 0; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 12px;}

/* Hero Section */
.hero { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; margin-bottom: 30px; margin-top: 30px; }
.hero-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; display: flex; align-items: flex-end; min-height: 480px; }
.bg-img { position: absolute; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.overlay { position: absolute; width: 100%; height: 100%; background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(15,46,30,0.9) 100%); z-index: 2; }
.card-content { position: relative; z-index: 3; padding: 40px; color: var(--white); width: 90%; }
.card-content h2 { font-size: 32px; font-weight: 700; margin-bottom: 12px; line-height: 1.3; }
.card-content p { font-size: 15px; opacity: 0.8; margin-bottom: 20px; line-height: 1.6; }

.author { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; }
.author img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }

.hero-right { display: flex; flex-direction: column; gap: 20px; justify-content: space-between; }
.side-card { display: flex; align-items: center; gap: 20px; }
.side-img-wrapper { position: relative; width: 180px; height: 140px; flex-shrink: 0; border-radius: var(--radius-md); overflow: hidden; }
.side-img-wrapper img { width: 100%; height: 100%; object-fit: cover; }
.side-info h4 { font-size: 18px; font-weight: 700; margin-bottom: 15px; line-height: 1.4; }

/* Ticker */
.ticker-wrapper { display: flex; align-items: center; background: var(--bg-light); border-radius: 50px; padding: 8px 16px; margin-bottom: 60px; }
.ticker-badge { background: var(--text-dark); color: var(--white); font-weight: 700; font-size: 12px; padding: 6px 16px; border-radius: 50px; margin-right: 16px; text-transform: uppercase; }
marquee { font-size: 15px; font-weight: 500; color: var(--text-dark); }

/* Latest News */
.section-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.section-title h3 { font-size: 26px; font-weight: 700; }
.nav-btn button { width: 40px; height: 40px; border-radius: 50%; background: var(--bg-light); border: none; cursor: pointer; font-size: 16px; margin-left: 8px; transition: 0.3s; }
.nav-btn button:hover { background: var(--primary-green); color: var(--white); }

.news-slider { display: flex; gap: 24px; overflow-x: auto; padding-bottom: 20px; scroll-behavior: smooth; }
.news-slider::-webkit-scrollbar { display: none; }
.news-item { display: flex; align-items: center; gap: 20px; min-width: 450px; background: var(--bg-light); padding: 16px; border-radius: var(--radius-lg); }
.news-img { position: relative; width: 140px; height: 140px; flex-shrink: 0; border-radius: var(--radius-md); overflow: hidden; }
.news-img img { width: 100%; height: 100%; object-fit: cover; }
.news-text h4 { font-size: 18px; font-weight: 700; margin-bottom: 16px; line-height: 1.4; }

/* Popular Story */
.bg-dark { background-color: var(--primary-dark); color: var(--white); padding: 80px 0; margin-top: 60px; }
.text-white h3 { color: var(--white); }
.btn-outline-white { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,0.3); padding: 10px 24px; border-radius: 50px; font-weight: 600; cursor: pointer; transition: 0.3s; }
.btn-outline-white:hover { background: var(--white); color: var(--primary-dark); }

.popular-hero { position: relative; border-radius: var(--radius-lg); overflow: hidden; display: flex; align-items: center; min-height: 400px; margin-bottom: 30px; }
.popular-hero .overlay { background: linear-gradient(90deg, rgba(15,46,30,0.95) 0%, rgba(15,46,30,0.4) 100%); }
.popular-hero .card-content { width: 60%; }

.popular-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pop-card { display: flex; align-items: center; gap: 16px; background: rgba(255,255,255,0.05); padding: 16px; border-radius: var(--radius-md); position: relative; }
.pop-card img { width: 100px; height: 100px; border-radius: var(--radius-sm); object-fit: cover; }
.pop-card h4 { font-size: 16px; font-weight: 600; line-height: 1.4; }

/* Highlight Section (BARU) */
.highlight { margin-top: 80px; margin-bottom: 80px; }
.btn-outline-green { background: var(--primary-green); color: var(--white); border: none; padding: 10px 24px; border-radius: 50px; font-weight: 600; cursor: pointer; transition: 0.3s; }
.btn-outline-green:hover { background: var(--primary-dark); }
.highlight-hero { width: 100%; min-height: 450px; margin-bottom: 30px; }
.highlight-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.high-card { display: flex; flex-direction: column; gap: 16px; }
.high-img-wrapper { position: relative; width: 100%; height: 180px; border-radius: var(--radius-md); overflow: hidden; }
.high-img-wrapper img { width: 100%; height: 100%; object-fit: cover; }
.high-info h4 { font-size: 17px; font-weight: 700; margin-bottom: 8px; line-height: 1.4; }
.high-info p { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; line-height: 1.5; }
.high-info .author { color: var(--text-muted); font-size: 12px; }
.high-info .author img { width: 24px; height: 24px; }

/* Footer Action */
.bottom-action { text-align: center; padding: 100px 0 80px; }
.logo-small { color: var(--text-muted); font-weight: 800; letter-spacing: 2px; margin-bottom: 20px; font-size: 14px;}
.bottom-action h2 { font-size: 36px; font-weight: 700; margin-bottom: 30px; }

/* Footer */
.footer-content { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.brand-col .logo { color: var(--white); margin-bottom: 24px; }
.socials a { color: var(--white); font-size: 20px; margin-right: 16px; opacity: 0.7; transition: 0.3s; }
.socials a:hover { opacity: 1; }
.foot-col h4 { font-size: 13px; letter-spacing: 1px; color: rgba(255,255,255,0.5); margin-bottom: 24px; }
.foot-col ul li { margin-bottom: 16px; }
.foot-col ul li a, .foot-col p, .foot-col a { font-size: 15px; color: rgba(255,255,255,0.8); transition: 0.3s; }
.foot-col ul li a:hover { color: var(--white); text-decoration: underline; }
.copyright { text-align: center; padding-top: 24px; font-size: 14px; color: rgba(255,255,255,0.5); }

/* =========================================
   MOBILE RESPONSIVE (Max Width: 768px)
   ========================================= */
@media (max-width: 768px) {
    /* 1. Merapikan Menu Navigasi agar membungkus dengan rapi (wrap) */
    header ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        padding: 0;
        margin-bottom: 20px;
    }
    header ul li a {
        font-size: 14px; /* Ukuran font menu dikecilkan sedikit */
    }

    /* 2. Menyesuaikan Judul "Satu Kabar Hijau..." agar tidak terlalu besar */
    .header-center h1 {
        font-size: 26px !important; 
        line-height: 1.3;
        padding: 0 15px;
        text-align: center;
        margin-bottom: 15px;
    }

    /* 3. Memperbaiki Box Pencarian agar pas 100% di dalam layar dan tidak terpotong */
    .search-container {
        width: 90% !important; /* Mencegah box keluar dari batas layar */
        margin: 0 auto;
        display: flex;
        align-items: center;
    }
    .search-container input {
        width: 70%; /* Memberikan ruang proporsional untuk teks input */
        font-size: 14px;
    }
    .btn-search {
        width: 30%; /* Memberikan ruang proporsional untuk tombol */
        font-size: 14px;
        padding: 12px 5px;
        text-align: center;
    }

    /* 4. Penyesuaian jarak Logo */
    .logo {
        margin-top: 10px;
        margin-bottom: 15px;
    }
}