/* ============================
   BAPAS KELAS I MEDAN - CSS
   ============================ */

:root {
  --primary: #003580;
  --primary-dark: #00246b;
  --primary-light: #004aad;
  --gold: #c8a84b;
  --gold-light: #e5c96b;
  --white: #ffffff;
  --light-bg: #f4f6f9;
  --text: #2d3748;
  --text-muted: #718096;
  --border: #e2e8f0;
  --shadow: 0 4px 20px rgba(0,53,128,0.12);
  --shadow-hover: 0 8px 30px rgba(0,53,128,0.2);
  --radius: 10px;
  --transition: all 0.3s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  margin: 0;
  padding: 0;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: 'Source Sans 3', sans-serif;
  color: var(--text);
  background: #f4f6f9;
}

.container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* ==================== PAGE LAYOUT (PROFIL, INFORMASI, BERITA) ==================== */
.page-layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 30px;
  align-items: start;
  width: 100%;
  box-sizing: border-box;
}

.content-page {
  padding: 35px 0;
  width: 100%;
}

.content-main {
  background: #fff;
  padding: 35px;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  line-height: 1.8;
  min-width: 0;
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-break: break-word;
}

.sidebar {
  min-width: 0;
  box-sizing: border-box;
}

.breadcrumb-container {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #627d98;
  flex-wrap: wrap;
}

/* TOP BAR */
.topbar {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  padding: 8px 0;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; }
.topbar-left span { margin-right: 20px; }
.topbar-left i { margin-right: 5px; color: var(--gold); }
.topbar-right { display: flex; align-items: center; }
.topbar-right a.social-icon { color: rgba(255,255,255,0.8); margin-left: 12px; font-size: 14px; transition: var(--transition); }
.topbar-right a.social-icon:hover { color: var(--gold); }

/* TOMBOL LOGIN TOPBAR */
.btn-login-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gold);
  color: var(--primary-dark) !important;
  padding: 4px 14px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 700;
  font-size: 12px;
  margin-left: 20px;
  transition: var(--transition);
  border: 1px solid var(--gold);
}
.btn-login-top i { color: var(--primary-dark) !important; margin: 0 !important; }
.btn-login-top:hover {
  background: var(--white);
  color: var(--primary-dark) !important;
  border-color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(255,255,255,0.2);
}

/* HEADER */
.header {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  padding: 20px 0;
  position: relative;
  overflow: hidden;
}
.header::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 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.03'%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");
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
}
.header-logo {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}
.header-sub {
  display: block;
  color: var(--gold-light);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.header-main {
  color: white;
  font-family: 'Playfair Display', serif;
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 900;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
  letter-spacing: 0.5px;
  margin: 0;
}
.header-tagline {
  display: block;
  color: rgba(255,255,255,0.75);
  font-size: 12px;
  margin-top: 4px;
}
.header-contact {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.08);
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.15);
  flex-shrink: 0;
}
.header-contact i {
  font-size: 24px;
  color: var(--gold);
}
.contact-label {
  display: block;
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}
.contact-value {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
}

/* NAVBAR */
.navbar {
  background: var(--gold);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 3px 15px rgba(0,0,0,0.2);
}
.nav-container {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
}
.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}
.nav-item { position: relative; }
.nav-item > a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px clamp(10px, 1.2vw, 18px);
  color: var(--primary-dark);
  text-decoration: none;
  font-weight: 700;
  font-size: clamp(12.5px, 0.95vw, 14px);
  letter-spacing: 0.2px;
  transition: var(--transition);
  white-space: nowrap;
}
.nav-item > a i.arrow { font-size: 10px; margin-left: 2px; transition: var(--transition); }
.nav-item:hover > a, .nav-item.active > a {
  background: var(--primary-dark);
  color: var(--gold);
}
.nav-item:hover > a i.arrow { transform: rotate(180deg); }

/* MENU LOGIN KHUSUS MOBILE */
.mobile-login-item { display: none; }

/* DROPDOWN */
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 240px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  border-top: 3px solid var(--gold);
  border-radius: 0 0 var(--radius) var(--radius);
  z-index: 999;
  list-style: none;
  animation: dropDown 0.2s ease;
}
@keyframes dropDown { from { opacity:0; transform:translateY(-8px); } to { opacity:1; transform:translateY(0); } }
.dropdown li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  color: var(--text);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.dropdown li:last-child a { border-bottom: none; }
.dropdown li a i { color: var(--gold); width: 16px; }
.dropdown li a:hover { background: var(--light-bg); color: var(--primary); padding-left: 28px; }
.nav-item:hover .dropdown { display: block; }

.hamburger { display: none; background: none; border: none; font-size: 22px; color: var(--primary-dark); cursor: pointer; padding: 14px; }

/* ==================== SLIDER ==================== */
.slider-section { position: relative; width: 100%; overflow: hidden; background: #000; }
.slider-track { display: flex; transition: transform 0.6s cubic-bezier(0.77,0,0.175,1); will-change: transform; }
.slide {
  min-width: 100%;
  position: relative;
  height: 520px;
  overflow: hidden;
}
.slide-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.55);
  transform: scale(1.05);
  transition: transform 6s ease;
}
.slide.active .slide-bg { transform: scale(1); }
/* Fallback colored slides */
.slide-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.slide:nth-child(1) .slide-fallback { background: linear-gradient(135deg, #001e4d 0%, #003580 60%, #0050c0 100%); }
.slide:nth-child(2) .slide-fallback { background: linear-gradient(135deg, #1a0a00 0%, #3d1f00 60%, #6b3800 100%); }
.slide:nth-child(3) .slide-fallback { background: linear-gradient(135deg, #0a1a00 0%, #1f3d00 60%, #386b00 100%); }

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 70%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 80px;
}
.slide-badge { display: inline-block; background: var(--gold); color: var(--primary-dark); font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; padding: 5px 14px; border-radius: 3px; margin-bottom: 16px; align-self: flex-start; }
.slide-title { color: white; font-family: 'Playfair Display', serif; font-size: clamp(24px, 4vw, 48px); font-weight: 900; line-height: 1.15; text-shadow: 0 2px 20px rgba(0,0,0,0.5); max-width: 600px; margin-bottom: 14px; }
.slide-sub { color: rgba(255,255,255,0.8); font-size: 16px; max-width: 500px; line-height: 1.5; margin-bottom: 24px; }
.slide-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--gold); color: var(--primary-dark); padding: 12px 28px; border-radius: 4px; text-decoration: none; font-weight: 700; font-size: 14px; align-self: flex-start; transition: var(--transition); }
.slide-btn:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(200,168,75,0.4); }

.slider-dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 10; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.4); cursor: pointer; transition: var(--transition); border: 2px solid rgba(255,255,255,0.5); }
.dot.active { background: var(--gold); border-color: var(--gold); transform: scale(1.3); }

.slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.15); backdrop-filter: blur(4px); border: 1px solid rgba(255,255,255,0.2); color: white; width: 50px; height: 50px; border-radius: 50%; cursor: pointer; font-size: 18px; display: flex; align-items: center; justify-content: center; transition: var(--transition); z-index: 10; }
.slider-arrow:hover { background: var(--gold); border-color: var(--gold); color: var(--primary-dark); }
.slider-prev { left: 20px; }
.slider-next { right: 20px; }

/* ==================== QUICK STATS ==================== */
.quick-stats { background: var(--primary); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-item { padding: 20px; text-align: center; border-right: 1px solid rgba(255,255,255,0.1); transition: var(--transition); }
.stat-item:last-child { border-right: none; }
.stat-item:hover { background: rgba(255,255,255,0.05); }
.stat-number { font-family: 'Playfair Display', serif; font-size: 32px; font-weight: 900; color: var(--gold); line-height: 1; }
.stat-label { color: rgba(255,255,255,0.7); font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; margin-top: 4px; }

/* ==================== SECTION COMMONS ==================== */
.section { padding: 60px 0; }
.section-alt { background: white; }
.section-header { text-align: center; margin-bottom: 40px; }
.section-eyebrow { display: block; color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 8px; }
.section-title { font-family: 'Playfair Display', serif; font-size: clamp(24px, 3vw, 36px); color: var(--primary-dark); font-weight: 900; }
.section-line { width: 60px; height: 4px; background: var(--gold); margin: 14px auto 0; border-radius: 2px; }
.section-sub { margin-top: 12px; color: var(--text-muted); font-size: 15px; max-width: 600px; margin-left: auto; margin-right: auto; }

/* ==================== NEWS CARDS ==================== */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-decoration: none;
  display: block;
  border: 1px solid var(--border);
}
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.news-card-img { height: 200px; overflow: hidden; position: relative; background: var(--light-bg); }
.news-card-img .news-img-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 48px; color: var(--gold); background: linear-gradient(135deg, var(--light-bg), #e8ecf4); }
.news-card-cat { position: absolute; top: 12px; left: 12px; background: var(--gold); color: var(--primary-dark); font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 4px 10px; border-radius: 3px; }
.news-card-body { padding: 20px; }
.news-card-date { color: var(--text-muted); font-size: 12px; margin-bottom: 8px; }
.news-card-date i { margin-right: 5px; color: var(--gold); }
.news-card-title { font-family: 'Playfair Display', serif; font-size: 17px; font-weight: 700; color: var(--primary-dark); line-height: 1.4; margin-bottom: 10px; }
.news-card-excerpt { color: var(--text-muted); font-size: 14px; line-height: 1.6; }
.news-card-footer { padding: 12px 20px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; }
.read-more { color: var(--primary); font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 5px; transition: var(--transition); }
.news-card:hover .read-more { color: var(--gold); gap: 8px; }

/* ==================== BERITA UTAMA (FEATURED) ==================== */
.featured-news { display: grid; grid-template-columns: 1.5fr 1fr; gap: 28px; }
.featured-main { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: white; text-decoration: none; display: block; transition: var(--transition); }
.featured-main:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.featured-main .news-img { height: 320px; background: linear-gradient(135deg, var(--primary-dark), var(--primary)); display: flex; align-items: center; justify-content: center; position: relative; }
.featured-main .news-img .icon { font-size: 80px; color: rgba(255,255,255,0.15); }
.featured-main .news-img .cat-badge { position: absolute; top: 16px; left: 16px; background: var(--gold); color: var(--primary-dark); font-size: 11px; font-weight: 700; letter-spacing: 1px; padding: 5px 12px; border-radius: 3px; }
.featured-main .news-body { padding: 24px; }
.featured-main .news-title { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 700; color: var(--primary-dark); line-height: 1.35; margin-bottom: 12px; }
.featured-side { display: flex; flex-direction: column; gap: 16px; }
.side-news-item { background: white; border-radius: 8px; box-shadow: var(--shadow); overflow: hidden; display: flex; text-decoration: none; transition: var(--transition); border: 1px solid var(--border); }
.side-news-item:hover { transform: translateX(4px); box-shadow: var(--shadow-hover); }
.side-news-item .side-img { width: 100px; min-width: 100px; background: linear-gradient(135deg, var(--primary-dark), var(--primary-light)); display: flex; align-items: center; justify-content: center; }
.side-news-item .side-img i { color: rgba(255,255,255,0.4); font-size: 24px; }
.side-news-item .side-body { padding: 14px; flex: 1; }
.side-news-item .side-title { font-family: 'Playfair Display', serif; font-size: 14px; font-weight: 700; color: var(--primary-dark); line-height: 1.4; margin-bottom: 6px; }
.side-news-item .side-date { color: var(--text-muted); font-size: 12px; }

/* ==================== AGENDA / PENGUMUMAN ==================== */
.agenda-section { background: white; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.agenda-list { list-style: none; }
.agenda-list li { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.agenda-list li:last-child { border-bottom: none; }
.agenda-date-box { background: var(--primary); color: white; padding: 8px 12px; border-radius: 8px; text-align: center; min-width: 52px; flex-shrink: 0; }
.agenda-date-box .day { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 900; line-height: 1; }
.agenda-date-box .month { font-size: 11px; font-weight: 600; text-transform: uppercase; color: var(--gold-light); }
.agenda-info h4 { font-size: 14px; font-weight: 700; color: var(--primary-dark); margin-bottom: 4px; }
.agenda-info p { font-size: 13px; color: var(--text-muted); }

.announcement-list { list-style: none; }
.announcement-list li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--border); }
.announcement-list li:last-child { border-bottom: none; }
.ann-icon { width: 38px; height: 38px; border-radius: 8px; background: var(--light-bg); display: flex; align-items: center; justify-content: center; color: var(--gold); font-size: 16px; flex-shrink: 0; }
.ann-content a { display: block; font-size: 14px; font-weight: 700; color: var(--primary-dark); text-decoration: none; margin-bottom: 3px; line-height: 1.4; transition: var(--transition); }
.ann-content a:hover { color: var(--gold); }
.ann-content span { font-size: 12px; color: var(--text-muted); }

/* ==================== LAYANAN BOX ==================== */
.layanan-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.layanan-card { background: white; border-radius: var(--radius); padding: 30px 20px; text-align: center; box-shadow: var(--shadow); transition: var(--transition); border: 2px solid transparent; text-decoration: none; display: block; }
.layanan-card:hover { border-color: var(--gold); transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.layanan-icon { width: 70px; height: 70px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--primary-light)); display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.layanan-icon i { font-size: 28px; color: white; }
.layanan-card h3 { font-family: 'Playfair Display', serif; font-size: 16px; font-weight: 700; color: var(--primary-dark); margin-bottom: 8px; }
.layanan-card p { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

/* ==================== CONTENT PAGE ==================== */
.content-page { padding: 40px 0 60px; }
.content-breadcrumb { background: white; border-bottom: 1px solid var(--border); }
.breadcrumb { display: flex; align-items: center; gap: 8px; padding: 12px 0; font-size: 13px; color: var(--text-muted); }
.breadcrumb a { color: var(--primary); text-decoration: none; font-weight: 600; }
.breadcrumb i { font-size: 10px; color: var(--border); }
.breadcrumb .current { color: var(--gold); font-weight: 700; }

.content-layout { display: grid; grid-template-columns: 270px 1fr; gap: 28px; margin-top: 28px; }
.sidebar { background: white; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; align-self: start; }
.sidebar-title { background: var(--primary); color: white; padding: 16px 20px; font-family: 'Playfair Display', serif; font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.sidebar-title i { color: var(--gold); }
.sidebar-menu { list-style: none; }
.sidebar-menu li a { display: flex; align-items: center; gap: 10px; padding: 13px 20px; color: var(--text); text-decoration: none; font-size: 14px; font-weight: 600; border-bottom: 1px solid var(--border); transition: var(--transition); }
.sidebar-menu li a i { color: var(--gold); width: 16px; font-size: 13px; }
.sidebar-menu li a:hover, .sidebar-menu li.active a { background: var(--light-bg); color: var(--primary); padding-left: 28px; }
.sidebar-menu li:last-child a { border-bottom: none; }

.content-main { background: white; border-radius: var(--radius); box-shadow: var(--shadow); padding: 36px; }
.content-main h2 { font-family: 'Playfair Display', serif; font-size: 26px; color: var(--primary-dark); margin-bottom: 6px; font-weight: 900; }
.content-divider { width: 50px; height: 4px; background: var(--gold); border-radius: 2px; margin: 14px 0 24px; }
.content-main p { color: var(--text); line-height: 1.8; font-size: 15px; margin-bottom: 16px; }
.content-main h3 { font-family: 'Playfair Display', serif; font-size: 19px; color: var(--primary-dark); margin: 24px 0 12px; }

/* PEJABAT GRID */
.pejabat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pejabat-card { background: white; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; text-align: center; transition: var(--transition); box-shadow: var(--shadow); }
.pejabat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: var(--gold); }
.pejabat-photo { height: 180px; background: linear-gradient(135deg, var(--primary-dark), var(--primary)); display: flex; align-items: center; justify-content: center; }
.pejabat-photo i { font-size: 60px; color: rgba(255,255,255,0.3); }
.pejabat-info { padding: 18px; }
.pejabat-name { font-family: 'Playfair Display', serif; font-size: 16px; font-weight: 700; color: var(--primary-dark); margin-bottom: 4px; }
.pejabat-jabatan { font-size: 13px; color: var(--text-muted); font-style: italic; }
.pejabat-nip { font-size: 12px; color: var(--gold); font-weight: 600; margin-top: 4px; }

/* STRUKTUR ORG */
.org-box { display: flex; flex-direction: column; align-items: center; }
.org-level { display: flex; gap: 16px; justify-content: center; margin-bottom: 10px; }
.org-card { background: var(--primary); color: white; border-radius: 8px; padding: 12px 18px; text-align: center; position: relative; min-width: 140px; font-size: 13px; font-weight: 700; line-height: 1.3; }
.org-card.gold { background: var(--gold); color: var(--primary-dark); }
.org-card.sub { background: white; color: var(--primary-dark); border: 2px solid var(--primary); font-size: 12px; min-width: 120px; }
.org-line { width: 2px; height: 24px; background: var(--gold); margin: 0 auto; }
.org-horiz { display: flex; align-items: flex-start; gap: 0; justify-content: center; }
.org-branch { display: flex; flex-direction: column; align-items: center; }
.org-hline { width: 100%; height: 2px; background: var(--gold); }

/* INFORMASI TABLE */
.info-table { width: 100%; border-collapse: collapse; margin-top: 20px; }
.info-table th { background: var(--primary); color: white; padding: 12px 16px; text-align: left; font-size: 14px; font-weight: 600; }
.info-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 14px; }
.info-table tr:nth-child(even) td { background: var(--light-bg); }
.info-table tr:hover td { background: #eef2ff; }
.download-btn { display: inline-flex; align-items: center; gap: 6px; background: var(--primary); color: white; padding: 6px 14px; border-radius: 4px; font-size: 12px; font-weight: 600; text-decoration: none; transition: var(--transition); }
.download-btn:hover { background: var(--gold); color: var(--primary-dark); }

/* INSTAGRAM FEED */
.insta-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.insta-post { border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; background: linear-gradient(135deg, #e1306c 0%, #fd1d1d 50%, #fcb045 100%); display: flex; align-items: center; justify-content: center; position: relative; cursor: pointer; transition: var(--transition); }
.insta-post:hover { transform: scale(1.03); }
.insta-post .insta-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.4); opacity: 0; transition: var(--transition); display: flex; align-items: center; justify-content: center; gap: 16px; }
.insta-post:hover .insta-overlay { opacity: 1; }
.insta-post .insta-overlay span { color: white; font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 5px; }
.insta-post i { color: rgba(255,255,255,0.3); font-size: 32px; }
.insta-badge { display: inline-flex; align-items: center; gap: 8px; background: linear-gradient(135deg, #e1306c, #fd1d1d, #fcb045); color: white; padding: 6px 14px; border-radius: 20px; font-size: 13px; font-weight: 700; margin-bottom: 20px; }

/* VISI MISI */
.visi-misi-box { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.vm-card { border-radius: var(--radius); padding: 28px; }
.vm-card.visi { background: var(--primary); color: white; }
.vm-card.misi { background: var(--light-bg); border: 2px solid var(--border); }
.vm-icon { font-size: 36px; color: var(--gold); margin-bottom: 14px; }
.vm-card.visi .vm-icon { color: var(--gold-light); }
.vm-title { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 700; margin-bottom: 14px; }
.vm-card.misi .vm-title { color: var(--primary-dark); }
.vm-card.visi p { color: rgba(255,255,255,0.85); line-height: 1.7; }
.vm-list { list-style: none; }
.vm-list li { display: flex; gap: 10px; padding: 8px 0; color: var(--text); font-size: 14px; line-height: 1.5; border-bottom: 1px solid var(--border); }
.vm-list li:last-child { border-bottom: none; }
.vm-list li::before { content: "\f058"; font-family: "Font Awesome 6 Free"; font-weight: 900; color: var(--gold); flex-shrink: 0; margin-top: 2px; }

/* ALUR */
.alur-steps { display: flex; flex-direction: column; gap: 0; }
.alur-step { display: flex; gap: 20px; position: relative; }
.alur-step:not(:last-child)::after { content: ''; position: absolute; left: 27px; top: 54px; width: 2px; height: calc(100% - 14px); background: var(--border); }
.step-num { width: 54px; height: 54px; border-radius: 50%; background: var(--primary); color: white; display: flex; align-items: center; justify-content: center; font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 700; flex-shrink: 0; border: 3px solid var(--gold); }
.step-content { padding: 8px 0 30px; }
.step-content h4 { font-size: 16px; font-weight: 700; color: var(--primary-dark); margin-bottom: 5px; }
.step-content p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* FOOTER */
.footer { background: var(--primary-dark); color: rgba(255,255,255,0.8); }
.footer-top { padding: 50px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.5fr 1fr; gap: 32px; }
.footer-col h3, .footer-col h4 { color: white; margin-bottom: 16px; font-weight: 700; }
.footer-col h3 { font-size: 16px; font-family: 'Playfair Display', serif; }
.footer-col h4 { font-size: 15px; border-bottom: 2px solid var(--gold); padding-bottom: 10px; display: inline-block; }
.footer-logo-wrap { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-logo-wrap p { font-size: 12px; color: var(--gold-light); }
.footer-desc { font-size: 14px; line-height: 1.7; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 14px; transition: var(--transition); display: flex; align-items: center; gap: 6px; }
.footer-col ul li a::before { content: "\f054"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 10px; color: var(--gold); }
.footer-col ul li a:hover { color: var(--gold); padding-left: 4px; }
.contact-list li { display: flex; gap: 10px; font-size: 14px; margin-bottom: 10px; align-items: flex-start; }
.contact-list li::before { display: none; }
.contact-list i { color: var(--gold); width: 16px; margin-top: 2px; flex-shrink: 0; }
.social-links { display: flex; gap: 10px; margin-bottom: 20px; }
.social-btn { width: 38px; height: 38px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: white; text-decoration: none; font-size: 16px; transition: var(--transition); }
.social-btn.fb { background: #1877f2; }
.social-btn.ig { background: linear-gradient(135deg, #e1306c, #fd1d1d, #fcb045); }
.social-btn.yt { background: #ff0000; }
.social-btn.tw { background: #1da1f2; }
.social-btn:hover { transform: translateY(-3px); box-shadow: 0 4px 15px rgba(0,0,0,0.3); }
.visitor-counter { background: rgba(255,255,255,0.07); border-radius: 8px; padding: 14px; text-align: center; }
.visitor-counter p { font-size: 12px; color: rgba(255,255,255,0.6); margin-bottom: 4px; }
.counter-num { font-family: 'Playfair Display', serif; font-size: 28px; font-weight: 900; color: var(--gold); }
.footer-bottom { background: rgba(0,0,0,0.3); padding: 14px 0; text-align: center; }
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,0.5); }

/* MAIN CONTENT */
.main-content { min-height: 60vh; }

/* ==================== HOME PAGE COMPONENTS (NEAT & TIDY) ==================== */
.hero-section {
  position: relative;
  background: radial-gradient(circle at 20% 30%, #002b66 0%, #001938 100%);
  color: #ffffff;
  padding: 65px 0 75px;
  overflow: hidden;
  border-bottom: 3px solid var(--gold);
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(200,168,75,0.15);
  border: 1px solid rgba(200,168,75,0.45);
  padding: 6px 18px;
  border-radius: 30px;
  margin-bottom: 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fce8a6;
}
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 16px;
  color: #ffffff;
}
.hero-desc {
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.7;
  color: #d6e4f0;
  margin-bottom: 30px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 300;
}
.hero-btn-group {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.btn-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  min-height: 48px;
  transition: all 0.25s ease;
  box-sizing: border-box;
}
.btn-hero-primary {
  background: linear-gradient(135deg, #d4af37 0%, #aa841c 100%);
  color: #001938 !important;
  box-shadow: 0 4px 16px rgba(212,175,55,0.35);
}
.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(212,175,55,0.5);
}
.btn-hero-secondary {
  background: rgba(255,255,255,0.08);
  color: #ffffff !important;
  border: 1px solid rgba(255,255,255,0.3);
}
.btn-hero-secondary:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.5);
  transform: translateY(-2px);
}
.hero-announcement {
  background: rgba(0,18,48,0.7);
  border: 1px solid rgba(200,168,75,0.35);
  border-radius: 10px;
  padding: 12px 20px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: 800px;
  width: 100%;
  text-align: left;
  box-sizing: border-box;
}
.hero-announcement-badge {
  background: #e67e22;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  flex-shrink: 0;
}

/* QUICK STATS CARDS */
.stats-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.stat-card-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px 18px;
  text-align: center;
  box-shadow: 0 3px 12px rgba(0,0,0,0.03);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.stat-card-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,53,128,0.08);
}
.stat-val {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-tit {
  font-size: 13px;
  color: #64748b;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.stat-sub {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 4px;
}

/* 4 STEPS WORKFLOW */
.step-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.step-card-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 26px 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: 0 3px 12px rgba(0,0,0,0.03);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-sizing: border-box;
}
.step-card-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,53,128,0.08);
}
.step-badge-num {
  position: absolute;
  top: -13px;
  left: 20px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.18);
}
.step-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
  margin-top: 6px;
}
.step-title {
  font-size: 16.5px;
  color: #0f172a;
  margin-bottom: 8px;
  font-weight: 700;
}
.step-desc {
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.6;
}

/* 4 SERVICES GRID */
.service-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.service-card-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 26px 20px;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: 0 3px 12px rgba(0,0,0,0.03);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-sizing: border-box;
}
.service-card-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,53,128,0.08);
}
.service-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}
.service-title {
  font-size: 17px;
  color: #0f172a;
  margin-bottom: 10px;
  font-weight: 700;
}
.service-desc {
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.65;
  margin-bottom: 16px;
}
.service-link {
  margin-top: auto;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* FAQ DETAILS ACCORDION */
.faq-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.02);
  transition: all 0.2s ease;
}
.faq-box[open] {
  border-color: #cbd5e1;
  box-shadow: 0 4px 14px rgba(0,53,128,0.06);
}
.faq-box summary {
  list-style: none;
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
  outline: none;
}
.faq-box summary::-webkit-details-marker {
  display: none;
}
.faq-box summary i.fa-chevron-down {
  transition: transform 0.2s ease;
  color: #94a3b8;
  font-size: 12px;
}
.faq-box[open] summary i.fa-chevron-down {
  transform: rotate(180deg);
  color: var(--primary);
}
.faq-body {
  padding: 0 20px 18px;
  font-size: 14px;
  color: #475569;
  line-height: 1.7;
  border-top: 1px solid #f1f5f9;
  padding-top: 12px;
}

/* ==================== RESPONSIVE RULES ==================== */
@media (max-width: 1100px) {
  .header-contact { display: none; }
}

@media (max-width: 992px) {
  .topbar { display: none; }
  .header { padding: 16px 0; }
  .header-inner { flex-direction: column; text-align: center; gap: 12px; }
  .header-logo { flex-direction: column; align-items: center; text-align: center; gap: 12px; }
  .header-main { font-size: clamp(18px, 4vw, 22px); }
  .header-sub { font-size: 10px; letter-spacing: 1px; }
  .header-tagline { font-size: 11px; }
  .header-contact { display: none; }

  .navbar .container, .nav-container { justify-content: space-between; align-items: center; padding: 6px 16px; }
  .hamburger { display: flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; margin-left: auto; font-size: 20px; }
  
  .nav-menu { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--gold); z-index: 999; box-shadow: 0 8px 25px rgba(0,0,0,0.25); }
  .nav-menu.open { display: flex; }
  .nav-item > a { padding: 14px 20px; min-height: 48px; border-bottom: 1px solid rgba(0,0,0,0.06); }
  .dropdown { position: static; box-shadow: none; border-top: none; border-left: 4px solid var(--primary); margin-left: 15px; margin-right: 15px; border-radius: 4px; }
  .dropdown li a { padding: 12px 16px; min-height: 44px; }

  .stats-container { grid-template-columns: repeat(2, 1fr) !important; }
  .step-grid-4 { grid-template-columns: repeat(2, 1fr) !important; }
  .service-grid-4 { grid-template-columns: repeat(2, 1fr) !important; }
  .hero-btn-group { flex-direction: column; width: 100%; }
  .btn-hero { width: 100%; }
  .hero-announcement { flex-direction: column; text-align: center; }

  /* Grid konten */
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-news { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .content-layout { grid-template-columns: 1fr; }
  .pejabat-grid { grid-template-columns: repeat(2, 1fr); }
  .visi-misi-box { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .page-layout { grid-template-columns: 1fr !important; gap: 18px !important; }
  .content-page { padding: 18px 0 !important; }
  .content-main { padding: 22px 16px !important; border-radius: 8px !important; }
  .sidebar { width: 100% !important; }
}

@media (max-width: 520px) {
  .stats-container { grid-template-columns: 1fr !important; }
  .step-grid-4 { grid-template-columns: 1fr !important; }
  .service-grid-4 { grid-template-columns: 1fr !important; }
  .news-grid { grid-template-columns: 1fr !important; }
  .pejabat-grid { grid-template-columns: 1fr !important; }
}