/* ==========================================================================
   WEBSITE RESMI APTISI (ASOSIASI PERGURUAN TINGGI SWASTA INDONESIA)
   Desain Sistem Modern, Prestisius, Berwibawa & Bebas AI Slop
   Standar Kontras WCAG AA | Responsif Penuh | Siap Server Plesk
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

/* --- 1. DESIGN TOKENS --- */
:root {
  /* Brand Colors (Berdasarkan Logo Resmi APTISI) */
  --c-navy-950: #060c1b;
  --c-navy-900: #0b1325;
  --c-navy-800: #131e38;
  --c-navy-700: #1e2b4d;
  --c-navy-600: #2d3e6b;

  /* Obor / Pelita Api Logo */
  --c-flame-700: #991b1b;
  --c-flame-600: #b91c1c;
  --c-flame-500: #dc2626;
  --c-flame-100: #fee2e2;
  --c-flame-50:  #fef2f2;

  /* Emas Akademik / Kehormatan */
  --c-gold-700: #92400e;
  --c-gold-600: #b45309;
  --c-gold-500: #d97706;
  --c-gold-100: #fef3c7;
  --c-gold-50:  #fffbeb;

  /* Netral & Permukaan */
  --c-white: #ffffff;
  --c-slate-50: #f8fafc;
  --c-slate-100: #f1f5f9;
  --c-slate-200: #e2e8f0;
  --c-slate-300: #cbd5e1;
  --c-slate-400: #94a3b8;
  --c-slate-500: #64748b;
  --c-slate-600: #475569;
  --c-slate-700: #334155;
  --c-slate-800: #1e293b;
  --c-slate-900: #0f172a;

  /* Semantic Mappings */
  --bg-body: var(--c-slate-50);
  --bg-surface: var(--c-white);
  --bg-surface-raised: var(--c-white);
  --bg-surface-muted: var(--c-slate-100);
  --bg-dark: var(--c-navy-900);
  --bg-dark-card: var(--c-navy-800);

  --text-main: var(--c-slate-900);
  --text-body: var(--c-slate-700);
  --text-muted: var(--c-slate-600);
  --text-faint: var(--c-slate-500);
  --text-on-dark: var(--c-white);
  --text-on-dark-muted: #cbd5e1;

  --border-light: var(--c-slate-200);
  --border-strong: var(--c-slate-300);
  --border-dark: rgba(255, 255, 255, 0.12);

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout */
  --container-max: 1200px;
  --container-narrow: 900px;
  --header-height: 80px;
  --topbar-height: 42px;

  /* Shadows (Tingkat elevasi terkontrol, bukan soft blur raksasa) */
  --shadow-sm: 0 1px 2px rgba(11, 19, 37, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(11, 19, 37, 0.08), 0 2px 4px -2px rgba(11, 19, 37, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(11, 19, 37, 0.08), 0 4px 6px -4px rgba(11, 19, 37, 0.04);
  --shadow-card: 0 2px 8px rgba(11, 19, 37, 0.06);

  /* Radii */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
}

/* --- 2. BASE RESET & ACCESSIBILITY --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  overflow-wrap: break-word;
}

html {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-body);
  background-color: var(--bg-body);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
  position: relative;
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

/* Focus Visible WCAG AA */
:focus-visible {
  outline: 3px solid var(--c-flame-600);
  outline-offset: 2px;
}

/* Skip link for screen readers */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--c-navy-900);
  color: var(--c-white);
  padding: 10px 16px;
  font-weight: 600;
  z-index: 9999;
  border-radius: var(--radius-md);
  transition: top var(--transition-fast);
}
.skip-link:focus {
  top: 16px;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-main);
  line-height: 1.25;
  font-weight: 700;
  word-break: break-word;
}

h1 { font-size: 2.25rem; letter-spacing: -0.02em; }
h2 { font-size: 1.875rem; letter-spacing: -0.015em; }
h3 { font-size: 1.375rem; letter-spacing: -0.01em; }
h4 { font-size: 1.125rem; }

p, li, blockquote, a {
  word-break: break-word;
}

p {
  margin-bottom: 1rem;
}
p:last-child {
  margin-bottom: 0;
}

/* Utility Containers */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.container-narrow {
  max-width: var(--container-narrow);
}

/* --- 3. TOP BAR (INFO & LEGAL IDENTITY) --- */
.top-bar {
  background-color: var(--c-navy-950);
  color: var(--text-on-dark-muted);
  font-size: 0.8125rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: var(--topbar-height);
  padding-top: 6px;
  padding-bottom: 6px;
  flex-wrap: wrap;
  gap: 8px;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.top-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.top-bar-item svg {
  width: 14px;
  height: 14px;
  color: var(--c-flame-500);
}

.top-bar-badge {
  background-color: rgba(220, 38, 38, 0.15);
  color: #fca5a5;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid rgba(220, 38, 38, 0.3);
}

/* --- 4. MAIN HEADER & NAVIGATION --- */
.site-header {
  position: sticky;
  top: 0;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-light);
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.header-inner nav {
  margin-left: auto;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--c-navy-900);
  line-height: 1.15;
}

.brand-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.2;
}

/* Nav Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--c-slate-700);
  border-radius: var(--radius-md);
  position: relative;
  transition: all var(--transition-fast);
}

.nav-link:hover {
  color: var(--c-flame-600);
  background-color: var(--c-slate-100);
}

.nav-link.active {
  color: var(--c-flame-600);
  background-color: var(--c-flame-50);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 14px;
  right: 14px;
  height: 2px;
  background-color: var(--c-flame-600);
  border-radius: 2px;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-nav-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--c-navy-900);
  color: var(--c-white);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.btn-nav-action:hover {
  background-color: var(--c-flame-600);
  color: var(--c-white);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 8px;
  cursor: pointer;
  color: var(--c-slate-800);
}
.mobile-toggle svg {
  width: 24px;
  height: 24px;
}

/* --- 5. MOBILE DRAWER NAVIGATION --- */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(300px, 85vw);
  max-width: 85vw;
  height: 100vh;
  background-color: var(--bg-surface);
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

.mobile-drawer.open {
  right: 0;
}

.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(6, 12, 27, 0.6);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid var(--border-light);
}

.drawer-close-btn {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--c-slate-700);
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.drawer-nav {
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.drawer-nav a {
  padding: 12px 16px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--c-slate-800);
  border-radius: var(--radius-md);
  display: block;
}

.drawer-nav a:hover,
.drawer-nav a.active {
  background-color: var(--c-flame-50);
  color: var(--c-flame-600);
}

.drawer-footer {
  margin-top: auto;
  padding: 20px;
  border-top: 1px solid var(--border-light);
  background-color: var(--c-slate-50);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* --- 6. BUTTONS & BADGES --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
  min-height: 46px; /* 44px+ tap target WCAG */
  max-width: 100%;
}

.btn-primary {
  background-color: var(--c-flame-600);
  color: var(--c-white);
  box-shadow: 0 2px 4px rgba(185, 28, 28, 0.2);
}

.btn-primary:hover {
  background-color: var(--c-flame-700);
  color: var(--c-white);
}

.btn-secondary {
  background-color: var(--c-navy-900);
  color: var(--c-white);
}

.btn-secondary:hover {
  background-color: var(--c-navy-800);
  color: var(--c-white);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--border-strong);
  color: var(--c-slate-800);
}

.btn-outline:hover {
  background-color: var(--c-slate-100);
  border-color: var(--c-slate-400);
}

.btn-outline-white {
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--c-white);
}

.btn-outline-white:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--c-white);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.8125rem;
  min-height: 38px;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.badge-flame {
  background-color: var(--c-flame-50);
  color: var(--c-flame-700);
  border: 1px solid var(--c-flame-100);
}

.badge-gold {
  background-color: var(--c-gold-50);
  color: var(--c-gold-700);
  border: 1px solid var(--c-gold-100);
}

.badge-navy {
  background-color: rgba(11, 19, 37, 0.08);
  color: var(--c-navy-900);
  border: 1px solid rgba(11, 19, 37, 0.15);
}

.badge-green {
  background-color: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

/* --- 7. HERO SECTION (BERANDA) --- */
.hero-section {
  position: relative;
  background-color: var(--c-navy-950);
  color: var(--text-on-dark);
  padding: 72px 0 80px;
  overflow: hidden;
  border-bottom: 4px solid var(--c-flame-600);
}

/* Academic Pattern Background */
.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 100% 0%, rgba(185, 28, 28, 0.15) 0%, transparent 45%),
    radial-gradient(circle at 0% 100%, rgba(19, 30, 56, 0.7) 0%, transparent 50%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 640px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fecaca;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-title {
  color: var(--c-white);
  font-size: 2.75rem;
  line-height: 1.18;
  margin-bottom: 20px;
  font-weight: 800;
}

.hero-title span {
  color: #f87171;
}

.hero-desc {
  color: var(--text-on-dark-muted);
  font-size: 1.125rem;
  line-height: 1.65;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Hero Aside / Card Emblem */
.hero-card {
  background-color: var(--c-navy-800);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.hero-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-dark);
  margin-bottom: 20px;
}

.hero-card-avatar {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background-color: var(--c-white);
  padding: 6px;
  object-fit: contain;
  border: 2px solid var(--c-flame-500);
}

.hero-card-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--c-white);
  margin-bottom: 4px;
}

.hero-card-role {
  font-size: 0.8125rem;
  color: #fca5a5;
  font-weight: 600;
}

.hero-quote {
  font-style: italic;
  color: #e2e8f0;
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 24px;
  position: relative;
  padding-left: 18px;
  border-left: 3px solid var(--c-flame-500);
}

.hero-stat-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-dark);
}

.hero-stat-item {
  display: flex;
  flex-direction: column;
}

.hero-stat-num {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--c-white);
}

.hero-stat-label {
  font-size: 0.75rem;
  color: var(--text-on-dark-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- 8. SECTION HEADINGS & LAYOUTS --- */
.section-padding {
  padding: 80px 0;
}

.section-muted {
  background-color: var(--bg-surface-muted);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.section-dark {
  background-color: var(--c-navy-900);
  color: var(--text-on-dark);
}

.section-header {
  margin-bottom: 48px;
}

.section-header.text-center {
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.section-subtitle {
  color: var(--c-flame-600);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  display: block;
}

.section-title {
  font-size: 2.125rem;
  margin-bottom: 12px;
}

.section-desc {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.section-dark .section-title {
  color: var(--c-white);
}

.section-dark .section-desc {
  color: var(--text-on-dark-muted);
}

/* --- 9. PILLARS / FEATURE CARDS --- */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.pillar-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--c-slate-300);
}

.pillar-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background-color: var(--c-slate-100);
  color: var(--c-navy-900);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.pillar-card:hover .pillar-icon-box {
  background-color: var(--c-flame-50);
  color: var(--c-flame-600);
}

.pillar-icon-box svg {
  width: 26px;
  height: 26px;
}

.pillar-title {
  font-size: 1.1875rem;
  margin-bottom: 10px;
  color: var(--c-navy-900);
}

.pillar-text {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 18px;
  flex-grow: 1;
}

.pillar-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--c-flame-600);
}

.pillar-link:hover {
  color: var(--c-flame-700);
  text-decoration: underline;
}

/* --- 10. PUBLICATION & ATT JOURNAL SHOWCASE --- */
.journal-banner {
  background: linear-gradient(135deg, var(--c-navy-900) 0%, var(--c-navy-950) 100%);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-xl);
  padding: 44px;
  color: var(--text-on-dark);
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  align-items: center;
}

.journal-cover-wrap {
  background-color: var(--c-white);
  padding: 12px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.journal-cover {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.journal-content h3 {
  color: var(--c-white);
  font-size: 1.75rem;
  margin-bottom: 12px;
}

.journal-meta-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.journal-content p {
  color: var(--text-on-dark-muted);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

.journal-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* --- 11. REGIONAL QUICK ACCESS (BERANDA) --- */
.regions-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.region-summary-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.region-summary-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.region-code {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.125rem;
  color: var(--c-flame-600);
}

.region-summary-title {
  font-size: 1.0625rem;
  margin-bottom: 8px;
  color: var(--c-navy-900);
}

.region-summary-provinces {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
  flex-grow: 1;
}

/* --- 12. PAGE HEADER BANNER (PROFIL, ORGANISASI, WILAYAH, DSB) --- */
.page-banner {
  background-color: var(--c-navy-900);
  color: var(--text-on-dark);
  padding: 56px 0;
  border-bottom: 3px solid var(--c-flame-600);
  position: relative;
}

.page-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--text-on-dark-muted);
  margin-bottom: 14px;
}

.page-breadcrumb a:hover {
  color: var(--c-white);
  text-decoration: underline;
}

.page-breadcrumb span {
  color: rgba(255, 255, 255, 0.4);
}

.page-title {
  color: var(--c-white);
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.page-lead {
  font-size: 1.125rem;
  color: #cbd5e1;
  max-width: 780px;
  line-height: 1.6;
}

/* --- 13. TABS COMPONENT (PROFIL / SEJARAH / VISI MISI) --- */
.tab-container {
  display: flex;
  flex-direction: column;
}

.tab-nav {
  display: flex;
  border-bottom: 2px solid var(--border-light);
  gap: 8px;
  margin-bottom: 36px;
  overflow-x: auto;
  white-space: nowrap;
}

.tab-btn {
  background: transparent;
  border: none;
  padding: 14px 20px;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all var(--transition-fast);
}

.tab-btn:hover {
  color: var(--c-flame-600);
}

.tab-btn.active {
  color: var(--c-flame-600);
  border-bottom-color: var(--c-flame-600);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

/* Timeline Layout (Sejarah) */
.history-timeline {
  position: relative;
  padding-left: 32px;
}

.history-timeline::before {
  content: '';
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 10px;
  width: 2px;
  background-color: var(--border-strong);
}

.timeline-item {
  position: relative;
  margin-bottom: 36px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -32px;
  top: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: var(--c-white);
  border: 4px solid var(--c-flame-600);
}

.timeline-year {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--c-flame-600);
  margin-bottom: 4px;
}

.timeline-title {
  font-size: 1.25rem;
  margin-bottom: 8px;
  color: var(--c-navy-900);
}

.timeline-body {
  color: var(--text-body);
  line-height: 1.6;
}

/* Visi Misi Cards */
.vision-mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.vm-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}

.vm-card-title {
  font-size: 1.5rem;
  color: var(--c-navy-900);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.vm-card-title svg {
  color: var(--c-flame-600);
  width: 28px;
  height: 28px;
}

.vm-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.vm-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  line-height: 1.6;
}

.vm-list-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background-color: var(--c-flame-50);
  color: var(--c-flame-700);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Logo Philosophy Card */
.emblem-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 36px;
  align-items: center;
}

.emblem-img-wrap {
  text-align: center;
  padding: 20px;
  background-color: var(--c-slate-50);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.emblem-img-wrap img {
  max-width: 180px;
  margin: 0 auto;
}

/* --- 14. ORGANIZATIONAL BOARD (ORGANISASI) --- */
.board-group {
  margin-bottom: 56px;
}

.board-group-title {
  font-size: 1.375rem;
  color: var(--c-navy-900);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.board-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.board-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.board-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.board-role-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--c-flame-700);
  background-color: var(--c-flame-50);
  border: 1px solid var(--c-flame-100);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  text-transform: uppercase;
}

.board-name {
  font-size: 1.1875rem;
  color: var(--c-navy-900);
  margin-bottom: 6px;
  font-weight: 700;
}

.board-affiliation {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Ketua Card Highlight */
.board-card-leader {
  border: 2px solid var(--c-flame-600);
  background-color: #fff9f9;
}

/* --- 15. REGIONAL DIRECTORY & FILTER (WILAYAH) --- */
.filter-bar {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}

.filter-search {
  position: relative;
  flex: 1;
  min-width: 260px;
}

.filter-search input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  background-color: var(--bg-surface);
}

.filter-search svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-faint);
}

.filter-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chip-btn {
  background-color: var(--c-slate-100);
  border: 1px solid var(--border-light);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--c-slate-700);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.chip-btn:hover {
  background-color: var(--c-slate-200);
}

.chip-btn.active {
  background-color: var(--c-navy-900);
  color: var(--c-white);
  border-color: var(--c-navy-900);
}

.regions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.region-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.region-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.region-badge {
  background-color: var(--c-navy-900);
  color: var(--c-white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}

.region-card-title {
  font-size: 1.1875rem;
  color: var(--c-navy-900);
  margin-bottom: 10px;
}

.region-provinces {
  font-size: 0.875rem;
  color: var(--text-body);
  margin-bottom: 16px;
  line-height: 1.5;
  flex-grow: 1;
}

/* Empty filter state */
.filter-empty {
  display: none;
  text-align: center;
  padding: 48px 24px;
  background-color: var(--bg-surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  grid-column: 1 / -1;
}

.filter-empty.visible {
  display: block;
}


/* --- 17. SITE FOOTER --- */
.site-footer {
  background-color: var(--c-navy-950);
  color: var(--text-on-dark-muted);
  border-top: 4px solid var(--c-flame-600);
  margin-top: auto;
}

.footer-top {
  padding: 64px 0 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
}

.footer-col-title {
  color: var(--c-white);
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background-color: var(--c-flame-600);
}

.footer-brand-desc {
  font-size: 0.875rem;
  line-height: 1.6;
  margin-top: 16px;
  color: #94a3b8;
}

.footer-legal-badge {
  display: inline-block;
  margin-top: 16px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  color: #cbd5e1;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.875rem;
  color: #cbd5e1;
  transition: color var(--transition-fast);
  display: inline-block;
}

.footer-links a:hover {
  color: var(--c-white);
  text-decoration: underline;
}

.footer-contact-info {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.875rem;
  color: #cbd5e1;
}

.footer-contact-info li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  line-height: 1.5;
}

.footer-contact-info svg {
  width: 16px;
  height: 16px;
  color: var(--c-flame-500);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-contact-info a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-contact-info a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 0;
  font-size: 0.8125rem;
  color: #94a3b8;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-legal-links a {
  color: #94a3b8;
  text-decoration: none;
  border-bottom: 1px dotted rgba(255, 255, 255, 0.3);
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.footer-legal-links a:hover {
  color: #ffffff;
  border-color: #ffffff;
}

/* --- 17. RESPONSIVE STRUCTURAL GRIDS --- */
.pillars-grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.policy-cluster-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  font-size: 0.875rem;
  color: var(--c-slate-800);
}

.policy-card-wrap {
  margin-top: 48px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.journal-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  font-size: 0.8125rem;
  color: #cbd5e1;
  margin-bottom: 20px;
}

.board-grid-executive {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.official-channels-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.official-declaration-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-top: 4px solid var(--c-flame-600);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 36px 32px;
  margin-bottom: 40px;
}

/* --- 18. RESPONSIVE BREAKPOINTS (ANTISLOP-LAYOUTMOBILE) --- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-content {
    max-width: 100%;
  }
  .pillars-grid,
  .pillars-grid-2col {
    grid-template-columns: repeat(2, 1fr);
  }
  .policy-cluster-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .regions-overview-grid,
  .regions-grid,
  .board-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
  .journal-banner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .journal-cover-wrap {
    max-width: 200px;
    margin: 0 auto;
  }
  .journal-meta-badges {
    justify-content: center;
  }
  .journal-actions {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .top-bar {
    display: none; /* Disembunyikan pada mobile agar ringkas */
  }
  .site-header {
    height: 68px;
  }
  .header-inner {
    height: 68px;
  }
  .brand-logo {
    height: 42px;
  }
  .brand-title {
    font-size: 1.125rem;
  }
  .brand-subtitle {
    font-size: 0.6875rem;
  }
  .nav-menu,
  .btn-nav-action {
    display: none;
  }
  .mobile-toggle {
    display: flex;
  }
  .hero-title {
    font-size: 2.125rem;
  }
  .page-banner {
    padding: 40px 0;
  }
  .page-title {
    font-size: 1.75rem;
  }
  .page-lead {
    font-size: 1rem;
  }
  .vision-mission-grid {
    grid-template-columns: 1fr;
  }
  .emblem-card {
    grid-template-columns: 1fr;
  }
  .pillars-grid,
  .pillars-grid-2col,
  .regions-overview-grid,
  .regions-grid,
  .board-grid,
  .board-grid-executive,
  .official-channels-grid {
    grid-template-columns: 1fr;
  }
  .official-declaration-card {
    padding: 24px 18px;
    margin-bottom: 28px;
  }
  .policy-card-wrap {
    padding: 24px 18px;
    margin-top: 32px;
  }
  .tab-nav {
    flex-wrap: wrap;
    white-space: normal;
    border-bottom: none;
    gap: 8px;
  }
  .tab-btn {
    width: 100%;
    text-align: left;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 0;
  }
  .tab-btn.active {
    background: var(--c-navy-900);
    color: var(--c-white);
    border-color: var(--c-navy-900);
  }
  .filter-bar {
    padding: 16px;
    gap: 12px;
  }
  .filter-search {
    min-width: 0;
    width: 100%;
  }
  .filter-chips {
    width: 100%;
  }
  .chip-btn {
    flex-grow: 1;
    text-align: center;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .section-padding {
    padding: 48px 0;
  }
}

@media (max-width: 640px) {
  .policy-cluster-grid {
    grid-template-columns: 1fr;
  }
  .journal-specs-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
  .section-padding {
    padding: 40px 0;
  }
  .hero-title {
    font-size: 1.75rem;
  }
  .page-title {
    font-size: 1.5rem;
  }
  .page-lead {
    font-size: 0.9375rem;
  }
  .hero-card {
    padding: 20px 16px;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .hero-actions .btn {
    width: 100%;
    white-space: normal;
  }
  .btn {
    white-space: normal;
    word-break: break-word;
  }
  .hero-stat-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .official-declaration-card {
    padding: 18px 14px;
  }
  .policy-card-wrap {
    padding: 18px 14px;
  }
  .journal-banner {
    padding: 20px 14px;
  }
}
