  * { margin: 0; padding: 0; box-sizing: border-box; }
  body { font-family: 'Poppins', sans-serif; font-size: 14px; color: #333; background: #f5f5f5; }

  /* TOP BAR */
  .topbar {
    background: #1a3c1a;
    color: #fff;
    font-size: 12px;
    padding: 6px 0;
  }

  /* Fix: pastikan hamburger tidak transparan/ketimpa style lain */
  .nav-toggle {
    display: none;
    background: transparent;
    border: none;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    color: #0f4c2e;
    z-index: 1001;
    position: relative;
  }
  .nav-toggle i {
    color: #0f4c2e;
    font-size: 20px;
  }
  .nav-toggle:focus { outline: none; }

  .topbar .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
  }
  .topbar-left { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
  .topbar-left span { display: flex; align-items: center; gap: 5px; }
  .topbar-left svg { width: 12px; height: 12px; fill: #aed581; }
  .topbar-right { display: flex; gap: 14px; align-items: center; }
  .topbar-right a { color: #ccc; text-decoration: none; font-size: 12px; transition: color .2s; }
  .topbar-right a:hover { color: #fff; }
  .topbar-socials { display: flex; gap: 8px; align-items: center; margin-left: 8px; }
  .topbar-socials a {
    color: #fff;
    background: rgba(255,255,255,0.15);
    border-radius: 3px;
    width: 22px; height: 22px;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; text-decoration: none; transition: background .2s;
  }
  .topbar-socials a:hover { background: #4caf50; }

  /* HEADER */
  .header {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    position: sticky; top: 0; z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  }
  .header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
  }
  .logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
  .logo-icon {
    width: 50px; height: 50px;
    background: #2d6a2d;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid #fdd835;
  }
  .logo-icon svg { width: 28px; height: 28px; fill: #fdd835; }
  .logo-text { display: flex; flex-direction: column; }
  .logo-text .school-name { font-size: 18px; font-weight: 700; color: #1a3c1a; line-height: 1.1; }
  .logo-text .school-tagline { font-size: 10px; color: #666; font-weight: 400; }

  /* NAV */
  .nav { display: flex; align-items: center; gap: 2px; }
  .nav a {
    padding: 8px 14px;
    color: #333;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    border-radius: 4px;
    transition: all .2s;
    display: flex; align-items: center; gap: 4px;
    position: relative;
  }
  .nav a:hover { color: #2d6a2d; background: #f0f7f0; }
  .nav a.active { color: #2d6a2d; }
  .nav a.active::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 14px; right: 14px;
    height: 2px; background: #2d6a2d; border-radius: 2px;
  }
  .nav a svg { width: 10px; height: 10px; fill: currentColor; }
  .nav-search {
    background: none; border: none; cursor: pointer;
    padding: 8px; color: #333; margin-left: 4px;
    border-radius: 4px; transition: background .2s;
  }
  .nav-search:hover { background: #f0f0f0; }
  .nav-search svg { width: 18px; height: 18px; fill: #333; display: block; }
  .btn-ppdb {
    background: #2d6a2d;
    color: #fff !important;
    padding: 9px 18px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    transition: background .2s !important;
    margin-left: 6px;
  }
  .btn-ppdb:hover { background: #1a4f1a !important; color: #fff !important; }

  /* PAGE HERO */
  .page-hero {
    background: linear-gradient(135deg, #1a3c1a 0%, #2d6a2d 50%, #3a7a3a 100%);
    padding: 36px 0 28px;
    position: relative;
    overflow: hidden;
  }
  .page-hero::before {
    content: '';
    position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  }
  .page-hero .container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
  .page-hero h1 { font-size: 32px; font-weight: 700; color: #fff; margin-bottom: 10px; }
  .breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 13px; color: rgba(255,255,255,0.75); }
  .breadcrumb a { color: rgba(255,255,255,0.75); text-decoration: none; }
  .breadcrumb a:hover { color: #fff; }
  .breadcrumb svg { width: 12px; height: 12px; fill: rgba(255,255,255,0.5); }

  .main-layout{
    width:100%;
    max-width:100%;
    margin:0;
    padding:28px 40px;
    display:block;
}
  /* SECTION TITLE */
  .section-title {
    font-size: 17px; font-weight: 700; color: #1a3c1a;
    margin-bottom: 18px;
    display: flex; align-items: center; gap: 10px;
  }
  .section-title::before {
    content: '';
    width: 4px; height: 22px;
    background: #2d6a2d;
    border-radius: 2px;
    display: block;
  }

  /* BERITA TERBARU GRID */
  .berita-terbaru-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 30px;
  }
  .news-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    transition: transform .2s, box-shadow .2s;
  }
  .news-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,0.12); }
  .news-card-img {
    position: relative;
    height: 140px;
    overflow: hidden;
  }
  .news-card-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .3s;
  }
  .news-card:hover .news-card-img img { transform: scale(1.05); }
  .news-date-badge {
    position: absolute;
    top: 8px; left: 8px;
    background: #2d6a2d;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    text-align: center;
    line-height: 1.1;
    min-width: 36px;
  }
  .news-date-badge .day { font-size: 16px; font-weight: 700; }
  .news-date-badge .month { font-size: 9px; text-transform: uppercase; letter-spacing: .5px; }
  .news-card-body { padding: 12px; }
  .news-card-body h3 { font-size: 13px; font-weight: 600; color: #1a1a1a; margin-bottom: 8px; line-height: 1.4; }
  .news-meta { display: flex; align-items: center; gap: 10px; font-size: 11px; color: #888; margin-bottom: 7px; }
  .news-meta svg { width: 11px; height: 11px; fill: #aaa; }
  .news-meta span { display: flex; align-items: center; gap: 3px; }
  .news-card-body p { font-size: 12px; color: #666; line-height: 1.5; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .read-more {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 12px; font-weight: 600; color: #2d6a2d;
    text-decoration: none; transition: gap .2s;
  }
  .read-more:hover { gap: 8px; }
  .read-more svg { width: 12px; height: 12px; fill: #2d6a2d; }

  /* BERITA LAINNYA */
  .berita-lainnya { margin-bottom: 24px; }
  .news-list-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: stretch;
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
    margin-bottom: 10px;
    transition: box-shadow .2s, transform .2s;
  }
  .news-list-item:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.11); transform: translateX(2px); }
  .news-list-img {
    width: 110px; flex-shrink: 0;
    overflow: hidden;
  }
  .news-list-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
  .news-list-item:hover .news-list-img img { transform: scale(1.06); }
  .news-list-body {
    flex: 1;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .news-list-body h3 { font-size: 13px; font-weight: 600; color: #1a1a1a; margin-bottom: 5px; line-height: 1.4; }
  .news-list-body p { font-size: 12px; color: #777; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .news-list-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    background: #f0f7f0;
    min-width: 56px;
    border-left: 1px solid #e8f5e8;
  }
  .news-list-date .day { font-size: 18px; font-weight: 700; color: #2d6a2d; line-height: 1; }
  .news-list-date .month { font-size: 9px; text-transform: uppercase; color: #5a9a5a; font-weight: 500; margin-top: 2px; }

  /* PAGINATION */
  .pagination { display: flex; align-items: center; gap: 6px; margin-top: 18px; }
  .pagination a, .pagination span {
    display: flex; align-items: center; justify-content: center;
    width: 34px; height: 34px;
    border-radius: 6px;
    font-size: 13px; font-weight: 500;
    text-decoration: none; color: #555;
    background: #fff;
    border: 1px solid #e0e0e0;
    transition: all .2s;
  }
  .pagination a:hover { background: #f0f7f0; color: #2d6a2d; border-color: #2d6a2d; }
  .pagination .active { background: #2d6a2d; color: #fff; border-color: #2d6a2d; }
  .pagination svg { width: 12px; height: 12px; fill: currentColor; }

  /* SIDEBAR */
  .sidebar-card {
    background: #fff;
    border-radius: 8px;
    padding: 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    margin-bottom: 20px;
  }
  .sidebar-title {
    font-size: 14px; font-weight: 700; color: #1a3c1a;
    margin-bottom: 14px; padding-bottom: 10px;
    border-bottom: 2px solid #e8f5e8;
    display: flex; align-items: center; gap: 8px;
  }
  .sidebar-title::before {
    content: '';
    width: 3px; height: 16px;
    background: #2d6a2d;
    border-radius: 2px;
  }

  /* SEARCH */
  .search-box { display: flex; gap: 0; }
  .search-box input {
    flex: 1;
    padding: 9px 12px;
    border: 1px solid #ddd;
    border-right: none;
    border-radius: 6px 0 0 6px;
    font-size: 12px;
    font-family: 'Poppins', sans-serif;
    outline: none;
    transition: border .2s;
  }
  .search-box input:focus { border-color: #2d6a2d; }
  .search-box button {
    background: #2d6a2d;
    border: 1px solid #2d6a2d;
    border-radius: 0 6px 6px 0;
    color: #fff;
    padding: 0 12px;
    cursor: pointer;
    transition: background .2s;
  }
  .search-box button:hover { background: #1a4f1a; }
  .search-box button svg { width: 14px; height: 14px; fill: #fff; display: block; }

  /* KATEGORI */
  .kategori-list { list-style: none; }
  .kategori-list li {
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
    cursor: pointer;
    transition: color .2s;
  }
  .kategori-list li:last-child { border-bottom: none; }
  .kategori-list li:hover { color: #2d6a2d; }
  .kategori-list li.active { color: #2d6a2d; font-weight: 600; }
  .kategori-list li .count {
    background: #e8f5e8;
    color: #2d6a2d;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
    min-width: 24px;
    text-align: center;
  }
  .kategori-list li.active .count { background: #2d6a2d; color: #fff; }

  /* BERITA POPULER */
  .populer-item {
    display: flex; gap: 10px; align-items: flex-start;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: color .2s;
  }
  .populer-item:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
  .populer-item:hover .populer-title { color: #2d6a2d; }
  .populer-img {
    width: 64px; height: 52px;
    border-radius: 5px;
    overflow: hidden;
    flex-shrink: 0;
  }
  .populer-img img { width: 100%; height: 100%; object-fit: cover; }
  .populer-body { flex: 1; }
  .populer-title { font-size: 12px; font-weight: 600; color: #1a1a1a; line-height: 1.4; margin-bottom: 4px; transition: color .2s; }
  .populer-date { font-size: 11px; color: #999; display: flex; align-items: center; gap: 4px; }
  .populer-date svg { width: 10px; height: 10px; fill: #bbb; }

  /* PPDB BANNER */
  .ppdb-banner {
    background: linear-gradient(135deg, #1a3c1a 0%, #2d6a2d 100%);
    border-radius: 10px;
    padding: 20px;
    color: #fff;
    position: relative;
    overflow: hidden;
  }
  .ppdb-banner::before {
    content: '';
    position: absolute;
    top: -20px; right: -20px;
    width: 100px; height: 100px;
    background: rgba(255,255,255,0.06);
    border-radius: 50%;
  }
  .ppdb-banner::after {
    content: '';
    position: absolute;
    bottom: -30px; right: 20px;
    width: 80px; height: 80px;
    background: rgba(255,255,255,0.04);
    border-radius: 50%;
  }
  .ppdb-label {
    font-size: 10px; font-weight: 600; letter-spacing: 1px;
    text-transform: uppercase; color: #aed581;
    background: rgba(255,255,255,0.1);
    padding: 3px 8px; border-radius: 12px;
    display: inline-block; margin-bottom: 8px;
  }
  .ppdb-banner h3 { font-size: 16px; font-weight: 700; margin-bottom: 4px; line-height: 1.2; }
  .ppdb-banner h3 span { color: #fdd835; }
  .ppdb-banner p { font-size: 11px; color: rgba(255,255,255,0.75); margin-bottom: 16px; line-height: 1.5; }
  .ppdb-students {
    position: relative; z-index: 1;
    background: rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 8px;
    margin-bottom: 14px;
    display: flex; align-items: center; justify-content: center;
    height: 90px;
    overflow: hidden;
  }
  .ppdb-students-placeholder {
    display: flex; gap: 4px; align-items: flex-end;
  }
  .student-figure { display: flex; flex-direction: column; align-items: center; gap: 2px; }
  .student-head {
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3);
  }
  .student-body {
    border-radius: 3px 3px 6px 6px;
  }
  .btn-ppdb-banner {
    display: inline-flex; align-items: center; gap: 6px;
    background: #fdd835; color: #1a3c1a;
    padding: 9px 16px; border-radius: 6px;
    font-size: 12px; font-weight: 700;
    text-decoration: none; transition: background .2s;
    position: relative; z-index: 1;
  }
  .btn-ppdb-banner:hover { background: #ffee58; }
  .btn-ppdb-banner svg { width: 12px; height: 12px; fill: #1a3c1a; }

  /* FOOTER */
  .footer { background: #1a3c1a; color: #ccc; padding: 40px 0 0; margin-top: 20px; }
  .footer .container { max-width: 1200px; margin: 0 auto; padding: 55px 0 0; }
  .footer-grid{
    display:grid;
    grid-template-columns:2fr 1fr 1fr 1fr 2fr;
    gap:50px;
    align-items:flex-start;
    padding-bottom:50px;
}
  .footer-brand {}
  .footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
  .footer-logo-icon {
    width: 42px; height: 42px;
    background: #2d6a2d;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid #fdd835;
    flex-shrink: 0;
  }
  .footer-logo-icon svg { width: 22px; height: 22px; fill: #fdd835; }
  .footer-school-name { font-size: 14px; font-weight: 700; color: #fff; line-height: 1.1; }
  .footer-school-tag { font-size: 10px; color: #aaa; }
  .footer-brand p { font-size: 11px; color: #999; line-height: 1.6; margin-bottom: 12px; }
  .footer-socials { display: flex; gap: 7px; }
  .footer-socials a {
    width: 28px; height: 28px;
    background: rgba(255,255,255,0.1);
    border-radius: 5px;
    display: flex; align-items: center; justify-content: center;
    color: #ccc; font-size: 12px; text-decoration: none;
    transition: background .2s;
  }
  .footer-socials a:hover { background: #4caf50; color: #fff; }
  .footer-socials a svg { width: 13px; height: 13px; fill: currentColor; }
  .footer-col h4 { font-size: 13px; font-weight: 600; color: #fff; margin-bottom: 12px; }
  .footer-col ul { list-style: none; }
  .footer-col ul li { margin-bottom: 7px; }
  .footer-col ul li a { color: #999; text-decoration: none; font-size: 12px; transition: color .2s; }
  .footer-col ul li a:hover { color: #aed581; }
  .footer-col{
    min-width:0;
}
  .footer-contact-item {
    display: flex; gap: 7px; align-items: flex-start;
    font-size: 12px; color: #999; margin-bottom: 7px;
  }
  .footer-contact-item{
    align-items:flex-start;
    word-break:break-word;
}
  .footer-contact-item svg { width: 12px; height: 12px; fill: #aed581; flex-shrink: 0; margin-top: 2px; }
  .newsletter-form{
    display:flex;
    align-items:center;
    gap:12px;
    width:100%;
}

.newsletter-form input{
    flex:1;
    min-width:0;
}

.newsletter-form button{
    flex-shrink:0;
    padding:0 24px;
    height:60px;
}
  .footer-bottom-links { display: flex; gap: 16px; }
  .footer-bottom-links a { color: #777; text-decoration: none; transition: color .2s; }
  .footer-bottom-links a:hover { color: #aed581; }

  /* Placeholder images */
  .img-placeholder {
    background: linear-gradient(135deg, #c8e6c9 0%, #a5d6a7 50%, #81c784 100%);
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
  }
  .img-placeholder.dark { background: linear-gradient(135deg, #388e3c 0%, #2d6a2d 100%); }
  .img-placeholder.dark2 { background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 100%); }
  .img-placeholder.blue { background: linear-gradient(135deg, #bbdefb 0%, #90caf9 100%); }
  .img-placeholder.olive { background: linear-gradient(135deg, #dcedc8 0%, #c5e1a5 100%); }
  .img-placeholder svg { width: 30px; height: 30px; fill: rgba(255,255,255,0.4); }
 @media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px 20px;
  }
}

@media (max-width: 768px) {
  .topbar-left {
    display: none;
  }
  .topbar .container {
    justify-content: center;
  }
  
  /* NAVBAR/HEADER STYLING */
  .navbar {
    background: #ffffff !important;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 1000 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  }
  .navbar .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 16px !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    height: auto;
    flex-direction: row;
  }
  
  .brand {
    flex: 0 0 auto;
  }
  
  .brand div {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  
  .brand h1 {
    font-size: 16px;
  }
  
  .brand p {
    display: none;
  }
  
  .nav-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    font-size: 24px !important;
    color: #1a3c1a !important;
    cursor: pointer;
    padding: 10px 12px !important;
    order: 3;
    z-index: 100;
    width: 44px;
    height: 44px;
    margin-left: auto;
  }
  
  .nav-toggle i {
    font-size: 24px !important;
    color: #1a3c1a !important;
  }
  
  .navlinks {
    display: none !important;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff !important;
    padding: 12px 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-top: 1px solid #e0e0e0;
    gap: 4px;
    z-index: 999 !important;
    width: 100%;
    list-style: none;
    margin: 0;
  }
  
  .navlinks.open {
    display: flex !important;
  }

  .navlinks li {
    width: 100%;
  }
  
  .navlinks a {
    display: block;
    padding: 14px 0;
    color: #333;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    border-radius: 4px;
    transition: all .2s;
    width: 100%;
    border-bottom: 1px solid #f0f0f0;
  }
  
  .navlinks a:hover {
    color: #2d6a2d;
    background: #f0f7f0;
  }
  
  .navlinks a.active {
    color: #2d6a2d;
    background: #f0f7f0;
    border-bottom: none;
  }
  
  .navlinks a.active::after {
    display: none;
  }
  
  .nav-actions {
    display: none;
  }
  
  /* MAIN LAYOUT */
  .main-wrapper {
    flex-direction: column;
    gap: 30px;
    padding: 20px 16px;
  }
  .content-area {
    width: 100%;
  }
  .sidebar {
    width: 100%;
  }
  .berita-terbaru-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .header .container {
    padding: 10px 12px;
  }
  .logo-text .school-tagline {
    display: none;
  }
  .page-hero h1 {
    font-size: 24px;
  }
  .berita-terbaru-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .news-card-img {
    height: 160px;
  }
  .news-list-item {
    flex-direction: column;
  }
  .news-list-img {
    width: 100%;
    height: 140px;
  }
  .news-list-date {
    border-left: none;
    border-top: 1px solid #e8f5e8;
    flex-direction: row;
    gap: 6px;
    padding: 8px 14px;
    justify-content: flex-start;
  }
  .news-list-date .month {
    margin-top: 0;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}