/* ============================================================
   KEMNAKER RI – STYLESHEET UTAMA
   kemnakerid.org
   ============================================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Lora:ital,wght@0,400;0,600;1,400&display=swap');

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
  --navy:      #0D2D5E;
  --navy-mid:  #1A4080;
  --blue:      #2563EB;
  --blue-lt:   #3B82F6;
  --gold:      #D4A017;
  --gold-lt:   #F2C744;
  --red:       #DC2626;
  --gray-900:  #111827;
  --gray-700:  #374151;
  --gray-500:  #6B7280;
  --gray-300:  #D1D5DB;
  --gray-100:  #F3F4F6;
  --white:     #FFFFFF;

  --ff-sans:   'Plus Jakarta Sans', system-ui, sans-serif;
  --ff-serif:  'Lora', Georgia, serif;

  --shadow-sm: 0 1px 3px rgba(13,45,94,0.10);
  --shadow-md: 0 4px 16px rgba(13,45,94,0.12);
  --shadow-lg: 0 12px 40px rgba(13,45,94,0.16);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --transition: 0.25s cubic-bezier(0.4,0,0.2,1);

  --max-w: 1200px;
  --gap:   clamp(1rem, 2.5vw, 2rem);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--ff-sans);
  color: var(--gray-700);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-sans);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
}

h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2.1rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.45rem); }
h4 { font-size: 1.1rem; }

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

.serif { font-family: var(--ff-serif); }
.lead {
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--gray-700);
  line-height: 1.75;
}

/* ============================================================
   LAYOUT HELPERS
   ============================================================ */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gap);
}

.section {
  padding-block: clamp(3rem, 7vw, 5.5rem);
}

.section--gray { background: var(--gray-100); }
.section--navy { background: var(--navy); color: var(--white); }
.section--navy h2, .section--navy h3, .section--navy p { color: var(--white); }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--gap); }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--gap); }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--gap); }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }

/* ============================================================
   SECTION HEADER
   ============================================================ */
.section-header {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.section-header .eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(212,160,23,0.10);
  padding: 0.3rem 0.9rem;
  border-radius: 99px;
  margin-bottom: 0.75rem;
}

.section--navy .section-header .eyebrow {
  color: var(--gold-lt);
  background: rgba(242,199,68,0.15);
}

.section-header p { color: var(--gray-500); font-size: 1.05rem; }
.section--navy .section-header p { color: rgba(255,255,255,0.75); }

/* Gold accent underline on section headings */
.section-header h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 0.6rem;
}
.section-header h2::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 48px; height: 3px;
  background: var(--gold);
  border-radius: 2px;
}

/* ============================================================
   TOP BAR
   ============================================================ */
.topbar {
  background: var(--navy);
  color: rgba(255,255,255,0.70);
  font-size: 0.78rem;
  padding: 0.45rem 0;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.topbar a {
  color: rgba(255,255,255,0.70);
  transition: color var(--transition);
}
.topbar a:hover { color: var(--gold-lt); }

.topbar__links { display: flex; gap: 1.25rem; }

/* ============================================================
   HEADER / NAVBAR
   ============================================================ */
.site-header {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 2rem;
}

.navbar__brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  flex-shrink: 0;
}

.navbar__brand img {
  height: 44px;
  width: auto;
}

.brand-text { line-height: 1.2; }
.brand-text strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.brand-text span {
  font-size: 0.7rem;
  color: var(--gray-500);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-menu a {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-700);
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}

.nav-menu a:hover,
.nav-menu a.active {
  background: rgba(37,99,235,0.08);
  color: var(--blue);
}

.nav-menu .btn-nav {
  background: var(--navy);
  color: var(--white) !important;
  padding: 0.45rem 1.1rem;
  margin-left: 0.5rem;
  border-radius: var(--radius-sm);
}
.nav-menu .btn-nav:hover {
  background: var(--navy-mid) !important;
  color: var(--white) !important;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px; height: 38px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO – Homepage
   ============================================================ */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1A4080 55%, #2563EB 100%);
  color: var(--white);
  padding-block: clamp(3.5rem, 8vw, 6rem);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Ccircle cx='30' cy='30' r='1.5' fill='rgba(255,255,255,0.06)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(212,160,23,0.20);
  border: 1px solid rgba(212,160,23,0.40);
  color: var(--gold-lt);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: 99px;
  margin-bottom: 1.2rem;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero h1 em {
  font-style: normal;
  color: var(--gold-lt);
}

.hero p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.82);
  line-height: 1.75;
  margin-bottom: 2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
}

.hero__img {
  position: relative;
}

.hero__img img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  width: 100%;
  max-height: 380px;
}

.hero__img::before {
  content: '';
  position: absolute;
  inset: -8px;
  border: 2px solid rgba(212,160,23,0.35);
  border-radius: calc(var(--radius-lg) + 8px);
  pointer-events: none;
}

/* ============================================================
   STAT BAND
   ============================================================ */
.stat-band {
  background: var(--navy);
  padding: 1.75rem 0;
}

.stat-band__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.stat-item {
  text-align: center;
  padding: 1.25rem 0.75rem;
  border-right: 1px solid rgba(255,255,255,0.12);
}
.stat-item:last-child { border-right: none; }

.stat-item__number {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--gold-lt);
  display: block;
  line-height: 1;
}

.stat-item__label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.70);
  margin-top: 0.4rem;
  font-weight: 500;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  font-family: var(--ff-sans);
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  line-height: 1.2;
  text-decoration: none;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-lt);
  border-color: var(--gold-lt);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212,160,23,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.45);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.10);
  border-color: var(--white);
}

.btn-blue {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.btn-blue:hover {
  background: var(--navy);
  border-color: var(--navy);
  transform: translateY(-2px);
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-300);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card__img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.card__body { padding: 1.25rem 1.4rem 1.5rem; }

.card__tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  background: rgba(37,99,235,0.08);
  padding: 0.2rem 0.6rem;
  border-radius: 99px;
  margin-bottom: 0.75rem;
}

.card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.6rem;
  line-height: 1.35;
}
.card:hover .card__title { color: var(--blue); }

.card__excerpt {
  font-size: 0.875rem;
  color: var(--gray-500);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.card__meta {
  font-size: 0.78rem;
  color: var(--gray-500);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Program card variant */
.prog-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  border: 1px solid var(--gray-300);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.prog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue);
}

.prog-card__icon {
  width: 52px; height: 52px;
  background: rgba(37,99,235,0.08);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.1rem;
}

.prog-card h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.prog-card p  { font-size: 0.875rem; color: var(--gray-500); }

/* ============================================================
   NEWS SECTION
   ============================================================ */
.news-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--gap);
}

.news-featured { position: relative; }
.news-featured img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.news-featured__overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(13,45,94,0.92) 0%, transparent 100%);
  padding: 1.5rem;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  color: var(--white);
}

.news-featured__overlay .card__tag { color: var(--gold-lt); background: rgba(212,160,23,0.20); }
.news-featured__overlay h3 { color: var(--white); font-size: 1.15rem; }
.news-featured__overlay p  { font-size: 0.8rem; opacity: 0.75; margin-top: 0.4rem; }

.news-list {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.news-list-item {
  display: flex;
  gap: 1rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--gray-300);
}
.news-list-item:last-child { border-bottom: none; padding-bottom: 0; }

.news-list-item img {
  width: 80px;
  height: 70px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.news-list-item h4 {
  font-size: 0.875rem;
  color: var(--navy);
  line-height: 1.4;
  margin-bottom: 0.3rem;
  transition: color var(--transition);
}
.news-list-item:hover h4 { color: var(--blue); }
.news-list-item span { font-size: 0.75rem; color: var(--gray-500); }

/* ============================================================
   BERITA ARCHIVE PAGE
   ============================================================ */
.berita-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.filter-btn {
  background: var(--gray-100);
  border: 1px solid var(--gray-300);
  color: var(--gray-700);
  padding: 0.4rem 1rem;
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.berita-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* ============================================================
   PAGE HERO
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  color: var(--white);
  position: relative;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-lt) 100%);
}

.page-hero h1 { color: var(--white); margin-bottom: 0.6rem; }
.page-hero p  { color: rgba(255,255,255,0.78); font-size: 1.05rem; max-width: 620px; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.60);
  margin-bottom: 1.25rem;
}
.breadcrumb a { color: rgba(255,255,255,0.60); }
.breadcrumb a:hover { color: var(--gold-lt); }
.breadcrumb span { font-size: 0.75rem; }

/* ============================================================
   PROFIL PAGE
   ============================================================ */
.profil-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.profil-content img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  width: 100%;
}

.visi-misi-tabs { display: flex; gap: 0.5rem; margin-bottom: 1.5rem; }
.tab-btn {
  flex: 1;
  padding: 0.6rem 1rem;
  background: var(--gray-100);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all var(--transition);
}
.tab-btn.active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.tab-pane { display: none; }
.tab-pane.active { display: block; }

.nilai-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.nilai-item {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.nilai-item:hover { border-color: var(--blue); box-shadow: var(--shadow-sm); }
.nilai-item .icon { font-size: 2rem; margin-bottom: 0.6rem; }
.nilai-item h4 { font-size: 0.9rem; color: var(--navy); }
.nilai-item p  { font-size: 0.8rem; color: var(--gray-500); margin-top: 0.3rem; }

/* Struktur Organisasi */
.struktur-img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-300);
  width: 100%;
}

.pejabat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
}

.pejabat-card {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.25rem;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}
.pejabat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.pejabat-card .avatar {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 0.85rem;
}
.pejabat-card h4 { font-size: 0.875rem; color: var(--navy); line-height: 1.35; }
.pejabat-card span { font-size: 0.78rem; color: var(--gray-500); }

/* ============================================================
   PROGRAM PAGE
   ============================================================ */
.program-detail {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--gap);
  align-items: start;
}

.program-detail img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  width: 100%;
}

.program-sidebar {
  background: var(--gray-100);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.program-sidebar h4 {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-500);
  margin-bottom: 0.75rem;
}

.sidebar-list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--gray-300);
  font-size: 0.875rem;
  color: var(--gray-700);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.sidebar-list li:last-child { border-bottom: none; }
.sidebar-list li::before {
  content: '✓';
  color: var(--blue);
  font-weight: 700;
}

/* ============================================================
   LAYANAN PAGE
   ============================================================ */
.layanan-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--gray-300);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
}
.layanan-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue);
}

.layanan-card__icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.layanan-card h3 { font-size: 1.05rem; margin-bottom: 0.6rem; }
.layanan-card p  { font-size: 0.875rem; color: var(--gray-500); flex: 1; }
.layanan-card .btn { margin-top: 1.25rem; align-self: flex-start; }

/* ============================================================
   PENGUMUMAN BAND
   ============================================================ */
.pengumuman-band {
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-lt) 100%);
  padding: 0.8rem 0;
}

.pengumuman-band__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.pengumuman-band__label {
  background: var(--navy);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 99px;
  flex-shrink: 0;
}

.pengumuman-band__text {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
}

/* ============================================================
   QUOTE / SAMBUTAN
   ============================================================ */
.sambutan {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.sambutan__photo {
  position: relative;
}

.sambutan__photo img {
  border-radius: var(--radius-lg);
  width: 100%;
  object-fit: cover;
  max-height: 400px;
  box-shadow: var(--shadow-md);
}

.sambutan__quote blockquote {
  font-family: var(--ff-serif);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-style: italic;
  color: var(--navy);
  line-height: 1.7;
  padding-left: 1.5rem;
  border-left: 4px solid var(--gold);
  margin-bottom: 1.5rem;
}

.sambutan__attribution strong { display: block; font-size: 1rem; color: var(--navy); }
.sambutan__attribution span   { font-size: 0.85rem; color: var(--gray-500); }

/* ============================================================
   GALERI
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
}

.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}
.gallery-item:hover img { transform: scale(1.05); }

.gallery-item__caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(13,45,94,0.85) 0%, transparent 100%);
  color: var(--white);
  padding: 1.25rem 1rem 0.85rem;
  font-size: 0.825rem;
  font-weight: 600;
  opacity: 0;
  transition: opacity var(--transition);
}
.gallery-item:hover .gallery-item__caption { opacity: 1; }

/* ============================================================
   KONTAK / LINK SECTION
   ============================================================ */
.kontak-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.kontak-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.kontak-item__icon {
  width: 44px; height: 44px;
  background: rgba(37,99,235,0.08);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.kontak-item h4 { font-size: 0.875rem; color: var(--navy); margin-bottom: 0.25rem; }
.kontak-item p  { font-size: 0.85rem; color: var(--gray-500); }

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  padding: clamp(3rem, 6vw, 5rem) 0;
  text-align: center;
  color: var(--white);
}

.cta-section h2 { color: var(--white); margin-bottom: 1rem; }
.cta-section p  { color: rgba(255,255,255,0.80); font-size: 1.05rem; max-width: 580px; margin: 0 auto 2rem; }
.cta-section .cta-actions { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--gray-900);
  color: rgba(255,255,255,0.65);
  padding-top: clamp(3rem, 6vw, 5rem);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand img { height: 44px; margin-bottom: 1rem; filter: brightness(0) invert(1); opacity: 0.9; }
.footer-brand p { font-size: 0.85rem; line-height: 1.7; max-width: 280px; }

.footer-col h5 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-col ul li { margin-bottom: 0.55rem; }
.footer-col ul a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.60);
  transition: color var(--transition);
}
.footer-col ul a:hover { color: var(--gold-lt); }

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.social-link {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.70);
  transition: background var(--transition), color var(--transition);
}
.social-link:hover {
  background: var(--gold);
  color: var(--navy);
}

.footer-bottom {
  padding: 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8rem;
}

.footer-bottom a { color: var(--gold-lt); }

/* ============================================================
   ARTICLE / CONTENT AREA
   ============================================================ */
.article-content {
  max-width: 780px;
}

.article-content h2 {
  font-size: 1.45rem;
  margin: 2rem 0 0.75rem;
  color: var(--navy);
}

.article-content h3 {
  font-size: 1.15rem;
  margin: 1.5rem 0 0.6rem;
  color: var(--navy-mid);
}

.article-content p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--gray-700);
  margin-bottom: 1.1rem;
}

.article-content ul, .article-content ol {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.article-content ol { list-style: decimal; }

.article-content li {
  margin-bottom: 0.5rem;
  font-size: 0.975rem;
  color: var(--gray-700);
  line-height: 1.7;
}

.article-content blockquote {
  border-left: 4px solid var(--gold);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: rgba(212,160,23,0.06);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--ff-serif);
  font-style: italic;
  color: var(--navy-mid);
}

/* ============================================================
   TABLE
   ============================================================ */
.table-wrap { overflow-x: auto; margin: 1.5rem 0; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
th {
  background: var(--navy);
  color: var(--white);
  padding: 0.85rem 1rem;
  text-align: left;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}
td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--gray-300);
  color: var(--gray-700);
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--gray-100); }

/* ============================================================
   ACCORDION
   ============================================================ */
.accordion { border: 1px solid var(--gray-300); border-radius: var(--radius-md); overflow: hidden; }
.accordion-item { border-bottom: 1px solid var(--gray-300); }
.accordion-item:last-child { border-bottom: none; }

.accordion-btn {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 1.1rem 1.4rem;
  font-family: var(--ff-sans);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: background var(--transition);
}
.accordion-btn:hover { background: var(--gray-100); }
.accordion-btn.open { background: var(--gray-100); color: var(--blue); }
.accordion-btn .chevron { transition: transform var(--transition); font-style: normal; }
.accordion-btn.open .chevron { transform: rotate(180deg); }

.accordion-body {
  display: none;
  padding: 0 1.4rem 1.1rem;
  font-size: 0.9rem;
  color: var(--gray-700);
  line-height: 1.7;
}
.accordion-body.open { display: block; }

/* ============================================================
   SCROLL TO TOP
   ============================================================ */
.scroll-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 44px; height: 44px;
  background: var(--navy);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  box-shadow: var(--shadow-md);
  z-index: 99;
  border: none;
}
.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}
.scroll-top:hover {
  background: var(--blue);
  transform: translateY(-3px);
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  justify-content: center;
  margin-top: 2.5rem;
}

.page-link {
  width: 38px; height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-700);
  border: 1px solid var(--gray-300);
  transition: all var(--transition);
}
.page-link:hover, .page-link.active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

/* ============================================================
   BADGE & PILLS
   ============================================================ */
.badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 99px;
}
.badge-blue   { background: rgba(37,99,235,0.10); color: var(--blue); }
.badge-green  { background: rgba(16,185,129,0.10); color: #059669; }
.badge-gold   { background: rgba(212,160,23,0.15); color: #9A6E00; }
.badge-red    { background: rgba(220,38,38,0.10); color: var(--red); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stat-band__grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.12); }
  .stat-item:nth-child(even) { border-bottom: none; }
  .news-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .hero__inner, .sambutan, .profil-content, .program-detail { grid-template-columns: 1fr; }
  .hero__img { order: -1; }
  .nav-menu { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); box-shadow: var(--shadow-md); padding: 1rem; gap: 0.25rem; }
  .nav-menu.open { display: flex; }
  .nav-menu a { width: 100%; padding: 0.7rem 1rem; }
  .nav-toggle { display: flex; }
  .topbar__links { display: none; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .stat-band__grid { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
