html {
    overflow-y: scroll;
    scrollbar-width: thin; /* Firefox */
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-thumb {
    background: #4A90C7;
    border-radius: 10px;
}

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

body {
    background-color: white;
    
}


/* NAVBAR DESKTOP */
nav {
    width: 100%;
    background-color:rgb(0, 119, 179);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0px 5px 15px rgba(0,0,0,0.25);
}

.left-box {
    display: flex;
    align-items: center;
    gap: 12px;
}

.left-box img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.school-name {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 1px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

nav ul {
    display: flex;
    align-items: center;
    gap: 5rem;
    list-style: none;
    margin-right: 60px;
}

nav ul a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 600;
    padding: 6px 0;
    position: relative;
    transition: 0.3s;
}

nav ul a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0%;
    height: 2px;
    background-color: white;
    transition: width 0.3s;
}

nav ul a:hover::after {
    width: 100%;
}

/* Hamburger Menu Button - Hidden di Desktop */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 101;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background-color: white;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Animasi Hamburger saat aktif */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ===================================
   NAVBAR RESPONSIVE
   =================================== */

/* Tablet - 1024px ke bawah */
@media screen and (max-width: 1024px) {
    nav ul {
        gap: 3rem;
        margin-right: 30px;
    }
}

/* Mobile - 768px ke bawah */
@media screen and (max-width: 768px) {
    /* Navbar Mobile */
    nav {
        padding: 1rem 1.5rem;
    }

    .school-name {
        font-size: 16px;
        transform: translateX(-11px);
    }

    .left-box img {
        width: 40px;
        height: 40px;
        transform: translateX(-11px);
    }

    /* Tampilkan Hamburger Menu */
    .hamburger {
        display: flex;
    }

    /* Hide Menu di Mobile, Show saat Active */
    nav ul {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: rgb(0, 119, 179);
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        margin-right: 0;
        transition: right 0.4s ease;
        box-shadow: -5px 0 15px rgba(0,0,0,0.3);
    }

    nav ul.active {
        right: 0;
    }

    nav ul a {
        font-size: 20px;
        padding: 10px 20px;
    }
}

/* Small Mobile - 480px ke bawah */
@media screen and (max-width: 480px) {
    nav {
        padding: 0.8rem 1rem;
    }

    .school-name {
        font-size: 14px;
        letter-spacing: 0.5px;
        transform: translateX(-11px);
    }

    .left-box img {
        width: 35px;
        height: 35px;
        transform: translateX(-11px);
    }

    nav ul {
        width: 80%;
    }
}
/*              BERITA SECTION                */
        /* ========================================== */

        .berita-section {
            padding: 80px 40px;
            max-width: 1400px;
            margin: 0 auto;
        }

        .berita-header {
            text-align: center;
            margin-bottom: 50px;
        }

        .berita-header h1 {
            font-family: 'Playfair Display', serif;
            font-size: 48px;
            color: #2c3e50;
            margin-bottom: 15px;
        }

        .berita-header p {
            font-size: 16px;
            color: #5a6c7d;
        }

        /* ===============================
   CATEGORY TABS (BUTTON STYLE)
   =============================== */
.category-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
  }
  
  /* TAB / BUTTON */
  .category-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  
    padding: 12px 30px;
    background: #ffffff;
    border: 2px solid #e8ecf1;
    border-radius: 50px;
  
    font-weight: 600;
    font-size: 15px;
    color: #5a6c7d;
  
    cursor: pointer;
    transition: all 0.3s ease;
  
    /* 🔥 PENTING: HILANGKAN GARIS */
    text-decoration: none !important;
  }
  
  /* HOVER & ACTIVE */
  .category-tab:hover,
  .category-tab.active {
    background: linear-gradient(135deg, #4A90C7 0%, #2E5F8C 100%);
    color: #ffffff;
    border-color: #4A90C7;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 199, 0.3);
  }
  
  /* OPTIONAL: FOCUS (AKSESIBILITAS) */
  .category-tab:focus {
    outline: none;
  }

        /* NEWS GRID */
        .news-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 30px;
        }

        .news-card {
            background: #ffffff;
            border-radius: 20px;
            overflow: hidden;
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
            transition: all 0.4s ease;
            cursor: pointer;
        }

        .news-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 50px rgba(74, 144, 199, 0.2);
        }

        .news-image {
            width: 100%;
            height: 250px;
            background: linear-gradient(135deg, #e8ecf1 0%, #f5f7fa 100%);
            position: relative;
            overflow: hidden;
        }

        .news-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.4s ease;
        }

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

        .news-badge {
            position: absolute;
            top: 15px;
            left: 15px;
            background: linear-gradient(135deg, #F8B84E 0%, #E89C2E 100%);
            color: #2c3e50;
            padding: 6px 15px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .news-content {
            padding: 25px;
        }

        .news-meta {
            display: flex;
            gap: 15px;
            margin-bottom: 12px;
            font-size: 13px;
            color: #8b95a1;
        }

        .news-meta span {
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .news-title {
            font-size: 20px;
            font-weight: 700;
            color: #2c3e50;
            margin-bottom: 12px;
            line-height: 1.4;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .news-excerpt {
            font-size: 14px;
            color: #5a6c7d;
            line-height: 1.7;
            margin-bottom: 20px;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .news-link {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            color: #4A90C7;
            font-weight: 600;
            font-size: 14px;
            text-decoration: none;
            transition: all 0.3s ease;
        }

        .news-link:hover {
            color: #2E5F8C;
            gap: 12px;
        }

        /* PAGINATION */
        .pagination {
            display: flex;
            justify-content: center;
            gap: 10px;
            margin-top: 60px;
        }

        .pagination button {
            width: 45px;
            height: 45px;
            border: 2px solid #e8ecf1;
            background: #ffffff;
            border-radius: 10px;
            font-weight: 600;
            color: #5a6c7d;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .pagination button:hover,
        .pagination button.active {
            background: linear-gradient(135deg, #4A90C7 0%, #2E5F8C 100%);
            color: #ffffff;
            border-color: #4A90C7;
        }

        /* RESPONSIVE */
        @media screen and (max-width: 992px) {
            .news-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 25px;
            }

            .berita-header h1 {
                font-size: 36px;
            }
        }

        @media screen and (max-width: 768px) {
            .navbar-menu {
                display: none;
            }

            .berita-section {
                padding: 50px 20px;
            }

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

            .category-tabs {
                gap: 10px;
            }

            .category-tab {
                padding: 10px 20px;
                font-size: 14px;
            }
        }