/* ===========================
   RESET
=========================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #222;
    background: #ffffff;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

a {
    text-decoration: none;
}

ul {
    list-style: none;
}

/* ===========================
   NAVBAR
=========================== */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #386641;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    z-index: 1000;
}

.navbar {
    height: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    width: 35px;
    height: 35px;
    object-fit: contain;
}

.logo h2 {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-menu li {
    list-style: none;
}

.nav-menu a {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    transition: .3s;
    padding: 4px 0;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #FFD54F;
}

/* ===================================
   HAMBURGER MENU
=================================== */

/* Desktop: tombol disembunyikan */
.menu-toggle{
    display:none;
    background:none;
    border:none;
    color:#fff;
    font-size:24px;
    cursor:pointer;
}

/* ===========================
   HERO
=========================== */

.hero {
    margin-top: 90px;
    margin-bottom: 50px;
}

.hero h1 {
    font-size: 36px;
    text-align: center;
    margin-bottom: 15px;
    color: #0D631B;
}

.hero > .container > p {
    text-align: center;
    color: #666;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 45px;
    font-size: 16px;
}

.hero p {
    font-size: 16px;
}

/* ===========================
   CONTENT
=========================== */

.news-content {
    padding-bottom: 20px;
}

.news-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 35px;
}

/* ===========================
   SIDEBAR PENGUMUMAN
=========================== */

.announcement {
    background: #F5F5F3;
    border: 1px solid #D8D8D8;
    border-radius: 18px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    height: 670px;
}

.announcement h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #222;
}

.announcement h3 i {
    color: #222;
}

.announcement-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
}

.announce {
    position: relative;
    padding-left: 16px;
    border-left: 4px solid #D62828;
    border-radius: 2px;
}

.announce.announce-agenda {
    border-left-color: #2F8F3A;
}

.announce.announce-pengumuman {
    border-left-color: #D62828;
}

.announce.announce-agenda .announce-type {
    background: #2F8F3A;
    color: #ffffff;
}

.announce.announce-pengumuman .announce-type {
    background: #D62828;
    color: #fff;
}

.announce .announce-type {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 12px;
    letter-spacing: .5px;
    margin-bottom: 6px;
}

.announce h4 {
    font-size: 15px;
    font-weight: 500;
    color: #222;
    line-height: 1.5;
    margin-bottom: 4px;
}

.announce small {
    font-size: 12px;
    color: #888;
}

.btn-announcement {
    margin-top: 20px;
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px;
    background: #fff;
    border: 1px solid #D2D2D2;
    border-radius: 10px;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    transition: .3s;
}

.btn-announcement:hover {
    background: #386641;
    color: #fff;
}

.btn-announcement i {
    margin-right: 6px;
}

/* =====================================
   HEADLINE (BESAR)
====================================== */

.headline-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #d9d9d9;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.headline-card img {
    width: 100%;
    height: 420px;
    object-fit: cover;
}

.headline-body {
    padding: 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.headline-body span {
    color: #777;
    font-size: 14px;
}

.headline-body h2 {
    font-size: 24px;
    line-height: 1.4;
    margin: 15px 0;
}

.headline-body p {
    color: #666;
    line-height: 1.8;
    font-size: 14px;
    flex: 1;
}

.headline-body a {
    display: inline-block;
    margin-top: 20px;
    color: #0D631B;
    font-weight: 600;
    font-size: 14px;
}

.headline-link {
    display: block;
    text-decoration: none;
    color: #222;
}

.headline-link:visited {
    color: #222;
}

.headline-link:hover {
    color: #222;
}

.headline-link .headline-body h2 {
    color: #222;
}

.headline-link .headline-body p {
    color: #666;
}

.headline-link .headline-body span {
    color: #777;
}

.headline-card:hover h2 {
    color: #0D631B;
}

/* =====================================
   BERITA KECIL (3 KOLOM) + JARAK DARI ATAS
====================================== */

.small-news-wrapper {
    margin-top: 40px;   /* TAMBAHAN: jarak antara headline/sidebar dengan berita kecil */
}

.small-news {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.small-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #ddd;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.small-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.small-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.small-body span {
    font-size: 13px;
    color: #777;
}

.small-body h3 {
    font-size: 20px;
    margin: 12px 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 90px;
}

.small-body p {
    color: #666;
    line-height: 1.7;
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
    min-height: 72px;
}

.small-link {
    display: block;
    text-decoration: none;
    color: #222;
}

.small-link:visited {
    color: #222;
}

.small-link:hover {
    color: #222;
}

.small-link .small-body h3 {
    color: #222;
    transition: .3s ease;
}

.small-link .small-body p {
    color: #666;
}

.small-link .small-body span {
    color: #777;
}

.small-card:hover h3 {
    color: #0D631B;
}

/* =====================================
   PAGINATION
====================================== */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 18px 0 10px;
}

.pagination button {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: #e6e6e6;
    cursor: pointer;
    transition: .3s;
    font-size: 14px;
}

.pagination button:hover {
    background: #2E7D32;
    color: #fff;
}

.pagination button.active {
    background: #2E7D32;
    color: #fff;
}

.pagination button:disabled {
    opacity: .45;
    cursor: not-allowed;
}

/* =====================================
   INFORMASI LAINNYA — SELURUH CARD BISA DIKLIK
====================================== */

.information {
    padding: 40px 0 60px 0;
    background: #f7f7f7;
}

.info-title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    margin-top: 0;
}

.information-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Link pembungkus card — agar seluruh card bisa diklik */
.info-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s, box-shadow 0.3s;
}

.info-card-link:hover {
    transform: translateY(-8px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
}

.info-card {
    background: #fff;
    border-radius: 18px;
    padding: 35px 25px;
    text-align: center;
    border: 1px solid #e5e5e5;
    transition: .3s;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 18px 35px rgba(0, 0, 0, .08);
}

.info-icon {
    width: 80px;
    height: 80px;
    background: #E9F8EB;
    color: #2F8F3A;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-icon i {
    font-size: 34px;
}

.info-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: 600;
}

.info-card p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 14px;
}

/* Style untuk .info-card a sudah dihapus karena tombol sudah tidak ada di HTML */

/* =====================================
   FOOTER
===================================== */

footer {
    background: #2f2f2f;
    color: #fff;
    margin-top: 0px;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 5px;
    padding-bottom: 35px;
}

.footer-grid h3 {
    color: #32b44a;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 18px;
}

.footer-grid h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 18px;
    color: #fff;
}

.footer-grid p {
    font-size: 12px;
    color: #cfcfcf;
    line-height: 1.9;
    max-width: 280px;
}

.footer-grid ul {
    padding: 0;
    margin: 0;
}

.footer-grid li {
    list-style: none;
    font-size: 12px;
    color: #cfcfcf;
    margin-bottom: 10px;
    line-height: 1.8;
}

.footer-grid li:hover {
    color: #ffffff;
    cursor: pointer;
}

/* Hover */

.footer-grid li:hover{

    color:#ffffff;

    cursor:pointer;

}

footer a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #ffffff; /* sesuaikan dengan warna tema website */
    text-decoration: underline;
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, .08);
    text-align: center;
    padding: 5px 5px;
    font-size: 10px;
    color: #9c9c9c;
    background: #2f2f2f;
    width: 100%;
}

/* ===================================
   RESPONSIVE BERITA MOBILE
=================================== */

@media (max-width:768px){
 .container{
        width:94%;
    }

    .hero{
        margin-top:85px;
        margin-bottom:30px;
    }

    .hero h1{
        font-size:24px;
    }

    .hero > .container > p{
    font-size:12px;
    line-height:1.6;
    max-width:290px;
    margin:0 auto;
    }

    .news-grid{
        display:flex;
        flex-direction:column;
        gap:20px;
    }

    .headline-card{
        border-radius:15px;
    }

    .headline-card img{
        height:250px;
    }

    .headline-body{
        padding:18px;
    }

    .headline-body span{
        font-size:12px;
    }

    .headline-body h2{
        font-size:20px;
        line-height:1.5;
        margin:10px 0;
    }

    .headline-body p{
        font-size:12px;
        line-height:1.7;
    }

    .announcement{
        padding:18px;
        border-radius:15px;
        height:auto;
    }

    .announcement h3{
        font-size:18px;
    }

    .announce h4{
        font-size:12px;
    }

    .announce small{
        font-size:11px;
    }

    .btn-announcement{
        font-size:13px;
    }

    .small-news{
        grid-template-columns:1fr;
        gap:18px;
    }

    .small-card{
        border-radius:15px;
    }

    .small-card img{
        height:220px;
    }

    .small-body{
        padding:18px;
    }

    .small-body span{
        font-size:11px;
    }

    .small-body h3{
        font-size:18px;
        min-height:auto;
        margin:8px 0;
    }

    .small-body p{
        font-size:13px;
        min-height:auto;
    }

    .pagination{
        gap:6px;
    }

    .pagination button{
        width:30px;
        height:30px;
        font-size:13px;
    }

   .information-grid{

        grid-template-columns:repeat(3,1fr);

        gap:10px;

    }

    .info-card{

        min-height:180px;
        padding:16px 10px;

    }

    .info-icon{

        width:45px;
        height:45px;

    }

    .info-icon i{

        font-size:18px;

    }

    .info-card h3{

        font-size:14px;
        margin-bottom:8px;

    }

    .info-card p{

        font-size:11px;
        line-height:1.5;

    }

}


