
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  :root {
    --green-dark: #1a4a1a;
    --green-mid: #2d6a2d;
    --green-main: #3a7d3a;
    --green-light: #4caf50;
    --green-accent: #5dbf5d;
    --gold: #c9a227;
    --white: #fff;
    --gray-100: #f5f5f5;
    --gray-200: #e8e8e8;
    --gray-400: #aaa;
    --gray-600: #666;
    --gray-800: #333;
    --text: #222;
  }
  body { font-family: 'Plus Jakarta Sans', sans-serif; color: var(--text); background: #fff; font-size: 14px; }
  a { text-decoration: none; color: inherit; }

  /* ── TOP BAR ── */
  .topbar {
    background: var(--green-dark);
    color: #d4f4d4;
    font-size: 12px;
    padding: 6px 0;
  }
  .topbar-inner {
    max-width: 1200px; margin: 0 auto; padding: 0 20px;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
  }
  .topbar-left { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
  .topbar-left span { display: flex; align-items: center; gap: 5px; }
  .topbar-left svg { width: 13px; height: 13px; fill: #7ec97e; flex-shrink: 0; }
  .topbar-right { display: flex; align-items: center; gap: 16px; }
  .topbar-right a { color: #d4f4d4; font-size: 12px; }
  .topbar-right a:hover { color: #fff; }
  .topbar-divider { width: 1px; height: 14px; background: #3d7a3d; }
  .topbar-socials { display: flex; align-items: center; gap: 10px; }
  .topbar-socials a { display: flex; align-items: center; }
  .topbar-socials svg { width: 14px; height: 14px; fill: #7ec97e; }
  .topbar-socials a:hover svg { fill: #fff; }

  /* ── NAVBAR ── */
  .navbar {
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    position: sticky; top: 0; z-index: 100;
  }
  .navbar-inner {
    max-width: 1200px; margin: 0 auto; padding: 0 20px;
    display: flex; align-items: center; gap: 24px; height: 68px;
  }
  .navbar-brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
  .navbar-logo {
    width: 52px; height: 52px;
    background: var(--green-main);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
  }
  .navbar-logo svg { width: 32px; height: 32px; fill: #fff; }
  .navbar-brand-text { line-height: 1.2; }
  .navbar-brand-text strong { font-size: 15px; font-weight: 800; color: var(--green-dark); display: block; }
  .navbar-brand-text span { font-size: 10.5px; color: var(--gray-600); }
  .navbar-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
  .nav-item {
    position: relative;
    padding: 8px 12px;
    font-size: 13px; font-weight: 600; color: var(--gray-800);
    cursor: pointer; border-radius: 6px;
    display: flex; align-items: center; gap: 4px;
    white-space: nowrap;
  }
  .nav-item:hover { background: var(--gray-100); color: var(--green-main); }
  .nav-item.active { color: var(--green-main); }
  .nav-item.active::after {
    content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 28px; height: 3px; background: var(--green-main); border-radius: 2px 2px 0 0;
  }
  .nav-item svg { width: 12px; height: 12px; fill: currentColor; }
  .navbar-actions { display: flex; align-items: center; gap: 10px; margin-left: 8px; }
  .btn-search {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--gray-100); border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
  }
  .btn-search svg { width: 16px; height: 16px; fill: var(--gray-600); }
  .btn-search:hover { background: var(--gray-200); }
  .btn-ppdb {
    background: var(--green-main); color: #fff;
    padding: 9px 18px; border-radius: 6px;
    font-size: 12px; font-weight: 700; letter-spacing: 0.5px;
    border: none; cursor: pointer; white-space: nowrap;
  }
  .btn-ppdb:hover { background: var(--green-dark); }

  /* ── HERO ── */
  .hero {
    height: 130px;
    background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-mid) 50%, var(--green-dark) 100%);
    position: relative; overflow: hidden;
    display: flex; align-items: center;
  }
  .hero-bg {
    position: absolute; inset: 0;
    background:
      url('https://images.unsplash.com/photo-1580582932707-520aed937b7b?w=1400&q=80') center/cover no-repeat;
    opacity: 0.18;
  }
  .hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(26,74,26,0.85) 0%, rgba(26,74,26,0.6) 100%);
  }
  .hero-inner {
    position: relative; z-index: 1;
    max-width: 1200px; margin: 0 auto; padding: 0 20px;
  }
  .hero-inner h1 { font-size: 28px; font-weight: 800; color: #fff; margin-bottom: 8px; }
  .breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: rgba(255,255,255,0.75); }
  .breadcrumb a { color: rgba(255,255,255,0.85); }
  .breadcrumb a:hover { color: #fff; }
  .breadcrumb svg { width: 12px; height: 12px; fill: currentColor; }

  /* ── MAIN LAYOUT ── */
  .main-layout {
    max-width: 1200px; margin: 0 auto; padding: 28px 20px;
    display: grid; grid-template-columns: 1fr 290px; gap: 28px; align-items: start;
  }

  /* ── FILTER TABS ── */
  .filter-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
  .filter-tab {
    padding: 7px 16px; border-radius: 20px;
    font-size: 12.5px; font-weight: 600; cursor: pointer;
    border: 1.5px solid var(--gray-200); background: #fff; color: var(--gray-600);
    transition: all 0.2s;
  }
  .filter-tab:hover { border-color: var(--green-main); color: var(--green-main); }
  .filter-tab.active {
    background: var(--green-main); border-color: var(--green-main);
    color: #fff; box-shadow: 0 3px 10px rgba(58,125,58,0.3);
  }

  /* ── GALLERY GRID ── */
  .gallery-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
    margin-bottom: 24px;
  }
  .gallery-card {
    border-radius: 10px; overflow: hidden;
    background: #fff; box-shadow: 0 5px 10px rgba(0,0,0,0.07);
    transition: transform 0.25s, box-shadow 0.25s; cursor: pointer;
  }
  .gallery-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.13); }
  .gallery-thumb {
    position: relative; width: 100%; aspect-ratio: 4/3; overflow: hidden;
    background: var(--gray-200);
  }
  .gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.35s; }
  .gallery-card:hover .gallery-thumb img { transform: scale(1.06); }
  .gallery-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.55) 100%);
  }
  .gallery-play {
    position: absolute; top: 8px; right: 8px;
    background: rgba(0,0,0,0.5); border-radius: 4px;
    padding: 3px 7px; font-size: 10px; color: #fff; font-weight: 600;
    display: flex; align-items: center; gap: 4px;
  }
  .gallery-play svg { width: 10px; height: 10px; fill: #fff; }
  .gallery-info { padding: 10px 12px 12px; }
  .gallery-date { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--gray-400); margin-bottom: 5px; }
  .gallery-date svg { width: 12px; height: 12px; fill: var(--gray-400); }
  .gallery-title { font-size: 12.5px; font-weight: 700; color: var(--text); line-height: 1.4; margin-bottom: 7px; }
  .gallery-badge {
    display: inline-block; padding: 2px 9px; border-radius: 10px;
    font-size: 10.5px; font-weight: 600;
    background: #e8f5e9; color: var(--green-main);
  }
  .gallery-badge.olahraga { background: #fff3e0; color: #e65100; }
  .gallery-badge.keagamaan { background: #fce4ec; color: #c62828; }
  .gallery-badge.non-akademik { background: #e3f2fd; color: #1565c0; }
  .gallery-badge.sosial { background: #f3e5f5; color: #6a1b9a; }
  .gallery-badge.kunjungan { background: #e0f2f1; color: #00695c; }
  .gallery-badge.prestasi { background: #fffde7; color: #f57f17; }


  /* PPDB Banner */
  .ppdb-banner {
    background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-mid) 100%);
    border-radius: 12px; overflow: hidden; position: relative; padding: 20px 18px;
  }
  .ppdb-banner-bg {
    position: absolute; inset: 0;
    background: url('https://images.unsplash.com/photo-1523050854058-8df90110c9f1?w=600&q=80') center/cover no-repeat;
    opacity: 0.08;
  }
  .ppdb-banner-content { position: relative; z-index: 1; }
  .ppdb-banner h3 { font-size: 15px; font-weight: 800; color: #fff; margin-bottom: 4px; }
  .ppdb-banner h3 span { color: var(--gold); }
  .ppdb-banner p { font-size: 11.5px; color: rgba(255,255,255,0.8); line-height: 1.5; margin-bottom: 14px; }
  .ppdb-banner-img {
    position: absolute; right: -10px; top: -10px;
    width: 90px; opacity: 0.2;
  }
  .btn-daftar {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--gold); color: #1a1a00;
    padding: 9px 18px; border-radius: 7px;
    font-size: 12.5px; font-weight: 700; border: none; cursor: pointer;
    transition: opacity 0.2s;
  }
  .btn-daftar:hover { opacity: 0.9; }
  .btn-daftar svg { width: 13px; height: 13px; fill: currentColor; }

  /* ── FOOTER ── */
  .footer { background: var(--green-dark); color: rgba(255,255,255,0.8); margin-top: 8px; }
  .footer-main {
    max-width: 1600px; margin: 0 auto; padding: 40px 20px 28px;
    display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr 1.4fr; gap: 100px;
  }
  .footer-brand { display: flex; flex-direction: column; gap: 14px; } 
  .footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
  .footer-logo-icon {
    width: 44px; height: 44px; background: var(--green-mid);
    border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  }
  .footer-logo-icon svg { width: 26px; height: 26px; fill: #fff; }
  .footer-logo-text strong { font-size: 13px; font-weight: 800; color: #fff; display: block; }
  .footer-logo-text span { font-size: 10px; color: rgba(255,255,255,0.6); }
  .footer-desc { font-size: 11.5px; line-height: 1.7; color: rgba(255,255,255,0.65); margin-bottom: 14px; }
  .footer-socials { display: flex; gap: 8px; }
  .footer-social-btn {
    width: 32px; height: 32px; border-radius: 50%;
    background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: background 0.2s;
  }
  .footer-social-btn:hover { background: var(--green-main); }
  .footer-social-btn svg { width: 14px; height: 14px; fill: rgba(255,255,255,0.8); }
  .footer-col h4 { font-size: 13px; font-weight: 700; color: #fff; margin-bottom: 12px; }
  .footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 7px; }
  .footer-col ul li a { font-size: 11.5px; color: rgba(255,255,255,0.65); transition: color 0.2s; }
  .footer-col ul li a:hover { color: #fff; }
  .footer-contact { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
  .footer-contact-item { display: flex; align-items: flex-start; gap: 8px; font-size: 11.5px; color: rgba(255,255,255,0.65); }
  .footer-contact-item svg { width: 13px; height: 13px; fill: #7ec97e; flex-shrink: 0; margin-top: 2px; }
  .newsletter-label { font-size: 11px; color: rgba(255,255,255,0.6); margin-bottom: 7px; }
  .newsletter-form { display: flex; gap: 0; }
  .newsletter-form input {
    flex: 1; padding: 8px 10px; border: none; border-radius: 6px 0 0 6px;
    font-size: 11.5px; font-family: inherit; outline: none; background: rgba(255,255,255,0.1);
    color: #fff;
  }
  .newsletter-form input::placeholder { color: rgba(255,255,255,0.4); }
  .newsletter-form button {
    padding: 8px 14px; background: var(--green-light); border: none;
    border-radius: 0 6px 6px 0; font-size: 12px; font-weight: 700;
    color: #fff; cursor: pointer; white-space: nowrap;
  }
  .newsletter-form button:hover { background: var(--green-accent); }
  .footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 14px 20px;
  }
  .footer-bottom-inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
  }
  .footer-copyright { font-size: 11.5px; color: rgba(255,255,255,0.5); }
  .footer-links { display: flex; gap: 20px; }
  .footer-links a { font-size: 11.5px; color: rgba(255,255,255,0.5); }
  .footer-links a:hover { color: #fff; }

  /* Back to top */
  .back-top {
    position: fixed; bottom: 24px; right: 24px; z-index: 200;
    width: 40px; height: 40px; border-radius: 10px;
    background: var(--green-main); border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 14px rgba(58,125,58,0.4);
    transition: background 0.2s;
  }
  .back-top:hover { background: var(--green-dark); }
  .back-top svg { width: 18px; height: 18px; fill: #fff; }

  /* Hamburger */

.menu-toggle{
    display:none;
    width:42px;
    height:42px;
    border:none;
    background:transparent;
    cursor:pointer;
    font-size:28px;
    color:var(--green-main);
    align-items:center;
    justify-content:center;
}

@media (max-width:768px){

    .menu-toggle{
        display:flex;
    }

    .navbar-inner{
        position:relative;
        justify-content:space-between;
    }

    .navbar-nav{
        display:none;
        position:absolute;
        top:100%;
        left:0;
        width:100%;
        background:#fff;
        flex-direction:column;
        align-items:flex-start;
        box-shadow:0 10px 20px rgba(0,0,0,.08);
        z-index:999;
    }

    .navbar-nav.active{
        display:flex;
    }

    .nav-item{
        width:100%;
        padding:14px 20px;
        border-bottom:1px solid #eee;
    }

    .navbar-actions{
        display:none;
    }

}

  /* =====================================================
   RESPONSIVE FIX
   TANPA MERUBAH STRUKTUR HTML & CLASS
===================================================== */

/* ================= TABLET ================= */

@media (max-width:992px){

    .topbar-inner,
    .navbar-inner,
    .hero-inner,
    .main-layout,
    .footer-main,
    .footer-bottom-inner{
        padding-left:18px;
        padding-right:18px;
    }

    .main-layout{
        grid-template-columns:1fr;
    }

    .sidebar{
        order:2;
    }

    .gallery-grid{
        grid-template-columns:repeat(2,1fr);
    }

    .footer-main{
        grid-template-columns:repeat(3,1fr);
    }

}


/* ================= MOBILE ================= */

@media (max-width:768px){

    .topbar{
        font-size:11px;
    }

    .topbar-inner{
        flex-direction:column;
        justify-content:center;
        align-items:center;
        gap:8px;
        text-align:center;
    }

    .topbar-left,
    .topbar-right{
        justify-content:center;
        flex-wrap:wrap;
    }

    /* NAVBAR */

    .navbar-inner{
        flex-wrap:wrap;
        height:auto;
        padding-top:12px;
        padding-bottom:12px;
        gap:15px;
    }

    .navbar-brand{
        width:100%;
        justify-content:center;
    }

    .navbar-nav{
        width:100%;
        justify-content:center;
        flex-wrap:wrap;
        margin-left:0;
    }

    .navbar-actions{
        width:100%;
        justify-content:center;
        margin-left:0;
    }

    .nav-item{
        padding:8px 10px;
        font-size:12px;
    }

    /* HERO */

    .hero{
        height:170px;
    }

    .hero-inner h1{
        font-size:24px;
    }

    .breadcrumb{
        flex-wrap:wrap;
    }

    /* CONTENT */

    .main-layout{
        padding:20px 15px;
    }

    .gallery-grid{
        grid-template-columns:repeat(2,1fr);
        gap:14px;
    }

    .gallery-title{
        font-size:12px;
    }

    /* SIDEBAR */

    .sidebar{
        width:100%;
    }

    /* FOOTER */

    .footer-main{
        grid-template-columns:1fr;
        text-align:center;
    }

    .footer-logo{
        justify-content:center;
    }

    .footer-socials{
        justify-content:center;
    }

    .footer-contact-item{
        justify-content:center;
    }

    .newsletter-form{
        width:100%;
    }

    .footer-bottom-inner{
        flex-direction:column;
        text-align:center;
    }

    .footer-links{
        justify-content:center;
        flex-wrap:wrap;
    }

}


/* ================= HP KECIL ================= */

@media (max-width:480px){

    .hero{
        height:150px;
    }

    .hero-inner h1{
        font-size:20px;
    }

    .gallery-grid{
        grid-template-columns:1fr;
    }

    .filter-tabs{
        justify-content:center;
    }

    .filter-tab{
        font-size:11px;
        padding:7px 12px;
    }

    .page-btn{
        width:32px;
        height:32px;
    }

    .btn-ppdb{
        width:100%;
        justify-content:center;
    }

    .btn-daftar{
        width:100%;
        justify-content:center;
    }

    .back-top{
        width:36px;
        height:36px;
        bottom:16px;
        right:16px;
    }

}
/* ===============================
   HAMBURGER MENU
================================ */

.nav-toggle{
    display:none;
    width:42px;
    height:42px;
    border:none;
    background:transparent;
    cursor:pointer;
    font-size:26px;
    color:#166534;
    align-items:center;
    justify-content:center;
}

/* ===============================
   MOBILE
================================ */

@media (max-width:768px){

    .nav-toggle{
        display:flex;
    }

    .navbar .container{
        position:relative;
    }

    .navlinks{
        display:none;
        position:absolute;
        top:100%;
        left:0;
        width:100%;
        background:#fff;
        flex-direction:column;
        box-shadow:0 8px 20px rgba(0,0,0,.08);
        z-index:999;
    }

    .navlinks.active-menu{
        display:flex;
    }

    .navlinks li{
        width:100%;
    }

    .navlinks a{
        display:block;
        width:100%;
        padding:15px 20px;
    }

    .nav-actions{
        display:none;
    }

}