*, *::before, *::after { box-shrink: 0; box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --green-dark: #1a4a1a;
  --green-main: #2d7a2d;
  --green-light: #3a9a3a;
  --green-accent: #4caf50;
  --green-pale: #e8f5e9;
  --gold: #d4a017;
  --text-dark: #1a1a1a;
  --text-gray: #555;
  --text-light: #888;
  --border: #e0e0e0;
  --white: #ffffff;
  --bg-light: #f8f9fa;
}
body { font-family: 'Open Sans', sans-serif; color: var(--text-dark); background: #fff; }

/* TOP BAR */
.top-bar { background: var(--green-dark); color: #ccc; font-size: 11.5px; padding: 6px 0; }
.top-bar .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; }
.top-bar-left { display: flex; align-items: center; gap: 18px; }
.top-bar-left span { display: flex; align-items: center; gap: 5px; }
.top-bar-left svg { width: 12px; height: 12px; fill: #aaa; flex-shrink: 0; }
.top-bar-right { display: flex; align-items: center; gap: 16px; }
.top-bar-right a { color: #ccc; text-decoration: none; font-size: 11.5px; transition: color 0.2s; }
.top-bar-right a:hover { color: #fff; }
.top-bar-sep { color: #555; }
.top-social { display: flex; gap: 10px; margin-left: 6px; }
.top-social a { color: #aaa; transition: color 0.2s; }
.top-social a:hover { color: #fff; }
.top-social svg { width: 13px; height: 13px; fill: currentColor; }

/* NAVBAR */
.navbar { background: #fff; border-bottom: 1px solid #e8e8e8; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.navbar .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; gap: 24px; height: 68px; }
.navbar-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.logo-circle { width: 48px; height: 48px; border-radius: 50%; background: var(--green-dark); border: 2px solid var(--gold); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.logo-circle svg { width: 28px; height: 28px; fill: var(--gold); }
.logo-text { display: flex; flex-direction: column; }
.logo-text .school-name { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 15px; color: var(--green-dark); line-height: 1.2; }
.logo-text .school-tagline { font-size: 10px; color: #666; line-height: 1.3; }
.navbar-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav-item { position: relative; }
.nav-link { font-family: 'Poppins', sans-serif; font-size: 12.5px; font-weight: 500; color: var(--text-gray); text-decoration: none; padding: 8px 11px; display: flex; align-items: center; gap: 4px; border-radius: 4px; transition: color 0.2s, background 0.2s; white-space: nowrap; }
.nav-link:hover, .nav-link.active { color: var(--green-main); }
.nav-link.active { color: var(--green-main); font-weight: 600; border-bottom: 2px solid var(--green-main); border-radius: 0; }
.nav-link svg { width: 10px; height: 10px; fill: currentColor; }
.navbar-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.btn-search { background: none; border: none; cursor: pointer; padding: 8px; color: var(--text-gray); transition: color 0.2s; }
.btn-search:hover { color: var(--green-main); }
.btn-search svg { width: 17px; height: 17px; fill: currentColor; }
.btn-ppdb { background: var(--green-main); color: #fff; font-family: 'Poppins', sans-serif; font-size: 12px; font-weight: 600; padding: 9px 16px; border-radius: 5px; text-decoration: none; border: none; cursor: pointer; transition: background 0.2s; white-space: nowrap; }
.btn-ppdb:hover { background: var(--green-dark); }

/* HERO BANNER */
.hero-banner { position: relative; height: 160px; background: linear-gradient(135deg, #1a4a1a 0%, #2d7a2d 50%, #1a4a1a 100%); overflow: hidden; display: flex; align-items: center; }
.hero-banner::before { content: ''; position: absolute; inset: 0; background: url('https://images.unsplash.com/photo-1580582932707-520aed937b7b?w=1200&q=60') center/cover no-repeat; opacity: 0.18; }
.hero-banner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to right, rgba(26,74,26,0.85) 0%, rgba(26,74,26,0.6) 100%); }
.hero-banner .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 2; }
.hero-title { font-family: 'Poppins', sans-serif; font-size: 30px; 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.85); text-decoration: none; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb-sep { color: rgba(255,255,255,0.5); font-size: 11px; }
.breadcrumb .current { color: #fff; font-weight: 500; }

/* MAIN CONTENT LAYOUT */
.main-content { max-width: 1200px; margin: 0 auto; padding: 40px 20px; display: grid; grid-template-columns: 1fr 300px; gap: 32px; }
.section-title { font-family: 'Poppins', sans-serif; font-size: 17px; font-weight: 700; color: var(--green-dark); margin-bottom: 20px; padding-left: 12px; border-left: 4px solid var(--green-main); }

/* CONTACT CARDS */
.contact-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 36px; }
.contact-card { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 20px 14px; text-align: center; transition: box-shadow 0.2s; }
.contact-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.contact-card-icon { width: 48px; height: 48px; border-radius: 50%; background: var(--green-main); display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }
.contact-card-icon svg { width: 22px; height: 22px; fill: #fff; }
.contact-card h4 { font-family: 'Poppins', sans-serif; font-size: 13px; font-weight: 600; color: var(--green-dark); margin-bottom: 8px; }
.contact-card p { font-size: 12px; color: var(--text-gray); line-height: 1.7; }

/* FORM & MAP GRID */
.form-map-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-bottom: 10px; }
.contact-form-section h3 { font-family: 'Poppins', sans-serif; font-size: 16px; font-weight: 700; color: var(--text-dark); margin-bottom: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.form-group { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.form-group label { font-size: 12.5px; font-weight: 600; color: var(--text-dark); }
.form-group input, .form-group select, .form-group textarea { border: 1px solid #d0d0d0; border-radius: 5px; padding: 9px 12px; font-size: 12.5px; font-family: 'Open Sans', sans-serif; color: var(--text-dark); outline: none; transition: border-color 0.2s; background: #fff; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--green-main); }
.form-group textarea { resize: vertical; min-height: 90px; }
.form-group select { color: #b0b0b0; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath d='M5 7L0 2h10z' fill='%23888'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.btn-submit { background: var(--green-main); color: #fff; font-family: 'Poppins', sans-serif; font-size: 13px; font-weight: 600; padding: 10px 22px; border-radius: 5px; border: none; cursor: pointer; transition: background 0.2s; display: inline-flex; align-items: center; gap: 8px; }
.btn-submit:hover { background: var(--green-dark); }
.btn-submit svg { width: 14px; height: 14px; fill: #fff; }

.map-container { width: 100%; height: 240px; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); position: relative; background: #e8f0e8; }
.map-container iframe { width: 100%; height: 100%; border: none; }

/* SIDEBAR & SOCIAL LIST */
.sidebar { display: flex; flex-direction: column; gap: 24px; }
.sidebar-card { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 20px; }
.sidebar-card h4 { font-family: 'Poppins', sans-serif; font-size: 14px; font-weight: 700; color: var(--text-dark); margin-bottom: 14px; }
.social-list { display: flex; flex-direction: column; gap: 10px; }
.social-item { display: flex; align-items: center; gap: 12px; text-decoration: none; padding: 8px 10px; border-radius: 6px; border: 1px solid var(--border); transition: border-color 0.2s, background 0.2s; }
.social-item:hover { border-color: var(--green-main); background: var(--green-pale); }

/* Pembungkus Ikon Umum & TikTok Fix */
.social-icon, .social-icon-tiktok { width: 34px; height: 34px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.social-icon svg, .social-icon-tiktok svg { width: 18px; height: 18px; fill: #fff; display: block; }

/* Background Warna Masing-masing Sosmed */
.social-icon.fb { background: #1877f2; }
.social-icon.ig { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-icon.yt { background: #ff0000; }
.social-icon.wa { background: #25d366; }

/* Tambahan Khusus TikTok Tanpa Merusak Class HTML */
.social-icon-tiktok { background: #010101 !important; }
.social-icon-tiktok svg { width: 18px !important; height: 18px !important; fill: #fff !important; }

/* Informasi Teks Sidebar */
.social-info { display: flex; flex-direction: column; }
.social-info span:first-child { font-size: 12.5px; font-weight: 600; color: var(--text-dark); }
.social-info span:last-child { font-size: 11px; color: var(--text-light); }

/* FAQ & PENGADUAN */
.faq-item { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid #f0f0f0; cursor: pointer; }
.faq-q { font-size: 12px; color: var(--text-gray); line-height: 1.5; }
.faq-chevron { width: 14px; height: 14px; fill: #aaa; flex-shrink: 0; }
.pengaduan-card { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 20px; }
.pengaduan-card h4 { font-family: 'Poppins', sans-serif; font-size: 14px; font-weight: 700; color: var(--text-dark); margin-bottom: 6px; }
.pengaduan-card p { font-size: 12px; color: var(--text-gray); margin-bottom: 14px; line-height: 1.6; }
.btn-pengaduan { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; background: var(--green-main); color: #fff; font-family: 'Poppins', sans-serif; font-size: 12.5px; font-weight: 600; padding: 10px; border-radius: 5px; text-decoration: none; border: none; cursor: pointer; transition: background 0.2s; }
.btn-pengaduan svg { width: 14px; height: 14px; fill: #fff; }

/* =====================================================
   PREMIUM & LARGE FOOTER CONFIGURATION (FIXED)
===================================================== */
.footer { background: var(--green-dark); color: #ccc; padding: 80px 0 0; }
.footer .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.footer-grid { display: grid; grid-template-columns: 2.2fr 1.1fr 1.1fr 1.1fr 1.1fr 1.8fr; gap: 40px; padding-bottom: 60px; }

/* Area Branding Sekolah di Footer */ 
.footer-brand .footer-logo { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.footer-logo-circle { width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,0.1); border: 2px solid var(--gold); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.footer-logo-circle svg { width: 26px; height: 26px; fill: var(--gold); }
.footer-school-name { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 16px; color: #fff; line-height: 1.3; }
.footer-brand p { font-size: 13.5px; color: rgba(255,255,255,0.65); line-height: 1.8; margin-bottom: 22px; }

/* Media Sosial Footer */
.footer-social { display: flex; gap: 12px; }
.footer-social a { width: 38px; height: 38px; border-radius: 8px; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; }
.footer-social a:hover { background: var(--green-accent); transform: translateY(-3px); }
.footer-social svg { width: 16px; height: 16px; fill: #fff; }

/* Menu Kolom Footer */
.footer-col h5 { font-family: 'Poppins', sans-serif; font-size: 15px; font-weight: 600; color: #fff; margin-bottom: 22px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: 13.5px; color: rgba(255,255,255,0.7); text-decoration: none; transition: color 0.2s ease, padding-left 0.2s ease; display: inline-block; }
.footer-col ul li a:hover { color: #fff; padding-left: 4px; }

/* Informasi Kontak Footer */
.footer-contact-item { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; font-size: 13.5px; color: rgba(255,255,255,0.7); line-height: 1.6; }
.footer-contact-item svg { width: 15px; height: 15px; fill: var(--green-accent); flex-shrink: 0; margin-top: 3px; }

/* Newsletter Form */
.newsletter-form { display: flex; gap: 8px; margin-top: 5px; }
.newsletter-form input { flex: 1; padding: 12px 14px; border-radius: 6px; border: 1px solid rgba(255,255,255,0.15); background: rgba(255,255,255,0.06); color: #fff; font-size: 13px; outline: none; transition: border-color 0.2s; }
.newsletter-form input:focus { border-color: var(--green-accent); }
.newsletter-form button { background: var(--green-accent); color: #fff; border: none; border-radius: 6px; padding: 0 18px; font-size: 13.5px; font-weight: 600; cursor: pointer; transition: background 0.2s; }
.newsletter-form button:hover { background: var(--green-light); }

/* Copyright Bottom Area */

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 28px 0; display: flex; align-items: center; justify-content: space-between; }
.footer-bottom p { font-size: 13.5px; color: rgba(255,255,255,0.45); }
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a { font-size: 13.5px; color: rgba(255,255,255,0.45); text-decoration: none; transition: color 0.2s; }
.footer-bottom-links a:hover { color: #fff; }

/* BACK TO TOP & TOGGLE */
.back-top { position: fixed; bottom: 28px; right: 24px; z-index: 200; width: 38px; height: 38px; border-radius: 6px; background: var(--green-dark); border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 3px 10px rgba(0,0,0,0.2); }
.back-top svg { width: 16px; height: 16px; fill: #fff; }
.menu-toggle { display: none; width: 42px; height: 42px; border: none; background: transparent; cursor: pointer; align-items: center; justify-content: center; }

/* =====================================================
   RESPONSIVE MEDIA QUERIES
===================================================== */
@media (max-width: 992px) {
  .main-content { grid-template-columns: 1fr; }
  .sidebar { order: 2; }
  .contact-cards { grid-template-columns: repeat(2, 1fr); }
  .form-map-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 30px; padding-bottom: 40px; }
}

@media (max-width: 768px) {
  .top-bar { padding: 8px 15px; }
  .top-bar-left, .top-social { display: none; }
  .top-bar .container { justify-content: center; }
  .top-bar-right { width: 100%; justify-content: center; gap: 0; }
  .top-bar-right a:not(.ppdb-mobile) { display: none; }
  .top-bar-right .top-bar-sep { display: none; }
  .top-bar-right .ppdb-mobile { display: inline-flex; color: #fff; font-weight: 600; font-size: 13px; }

  .navbar .container { height: 65px; position: relative; }
  .logo-text .school-name { font-size: 13px; }
  .logo-text .school-tagline { display: none; }
  .btn-search, .btn-ppdb { display: none; }
  
  .menu-toggle { display: flex; margin-left: auto; }
  .menu-toggle span { display: block; width: 24px; height: 2px; background: var(--green-dark); position: relative; margin: 0; transition: .3s; }
  .menu-toggle span::before { content: ''; position: absolute; left: 0; top: -7px; width: 24px; height: 2px; background: var(--green-dark); transition: .3s; }
  .menu-toggle span::after { content: ''; position: absolute; left: 0; top: 7px; width: 24px; height: 2px; background: var(--green-dark); transition: .3s; }

  .navbar-nav { position: absolute; top: 100%; left: 0; right: 0; background: #fff; display: none; flex-direction: column; align-items: flex-start; padding: 10px 0; border-top: 1px solid #eee; box-shadow: 0 8px 20px rgba(0,0,0,.08); }
  .navbar-nav.active { display: flex; }
  .nav-item { width: 100%; }
  .nav-link { width: 100%; padding: 14px 20px; justify-content: flex-start; border-radius: 0; border-bottom: 1px solid #f2f2f2; }

  .hero-banner { height: 140px; }
  .hero-title { font-size: 24px; }
  .breadcrumb { flex-wrap: wrap; font-size: 12px; }
  .main-content { padding: 25px 15px; gap: 25px; }
  .contact-cards { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .section-title { font-size: 16px; }
  .map-container { height: 280px; }

  /* Footer Mobile View */
  .footer { padding: 60px 0 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; text-align: center; }
  .footer-brand .footer-logo, .footer-social, .footer-contact-item, .newsletter-form { justify-content: center; text-align: center; }
  .footer-contact-item { flex-direction: column; align-items: center; gap: 6px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; padding: 24px 0; }
  .footer-bottom-links { flex-wrap: wrap; justify-content: center; gap: 16px; }
}

@media (max-width: 480px) {
  .logo-circle { width: 42px; height: 42px; }
  .hero-title { font-size: 20px; }
  .contact-card { padding: 18px 14px; }
  .sidebar-card, .pengaduan-card { padding: 16px; }
}