/* ===== H.A.S. Hanandjoeddin Airport Encyclopedia — Stylesheet ===== */
@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,300;0,400;0,700;1,300&family=Source+Sans+3:wght@300;400;500;600;700&display=swap');

:root {
  --navy: #0d2340;
  --navy-mid: #1a3a5c;
  --blue: #1d5fa8;
  --blue-light: #2e7dd6;
  --sky: #e8f2fc;
  --red: #c0392b;
  --orange: #e67e22;
  --gold: #f0a500;
  --white: #ffffff;
  --off-white: #f7f9fc;
  --gray-light: #eef1f6;
  --gray-mid: #c8d0dc;
  --gray-text: #5a6778;
  --dark: #1a2433;
  --font-serif: 'Merriweather', Georgia, serif;
  --font-sans: 'Source Sans 3', system-ui, sans-serif;
  --max: 1160px;
  --shadow: 0 2px 12px rgba(13,35,64,0.10);
  --shadow-lg: 0 6px 32px rgba(13,35,64,0.15);
  --radius: 4px;
  --radius-md: 8px;
  --transition: 0.25s cubic-bezier(0.4,0,0.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-sans); color: var(--dark); background: var(--white); line-height: 1.7; font-size: 16px; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--blue-light); }

/* ===== TOPBAR ===== */
.topbar {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  font-size: 0.76rem;
  padding: 7px 0;
  letter-spacing: 0.02em;
}
.topbar-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topbar a { color: rgba(255,255,255,0.7); }
.topbar a:hover { color: var(--white); }
.topbar-badges { display: flex; gap: 16px; align-items: center; }
.badge-iata {
  background: var(--blue);
  color: var(--white);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: 3px;
}

/* ===== NAVBAR ===== */
.navbar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-mid);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-logo img { height: 46px; width: auto; object-fit: contain; }
.nav-logo-text { line-height: 1.2; }
.nav-logo-text .name { font-family: var(--font-sans); font-weight: 700; font-size: 0.95rem; color: var(--navy); letter-spacing: 0.01em; }
.nav-logo-text .sub { font-size: 0.7rem; color: var(--gray-text); font-weight: 400; }
.nav-menu { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-menu a { display: block; padding: 8px 13px; font-size: 0.85rem; font-weight: 600; color: var(--navy); border-radius: var(--radius); transition: all var(--transition); }
.nav-menu a:hover, .nav-menu a.active { color: var(--blue); background: var(--sky); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; border: none; background: none; padding: 6px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); border-radius: 2px; }

/* ===== HERO ARTIKEL ===== */
.article-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 60%, var(--blue) 100%);
  padding: 56px 0 48px;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.article-hero::before {
  content: 'TJQ';
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14rem;
  font-weight: 800;
  color: rgba(255,255,255,0.04);
  letter-spacing: -0.05em;
  font-family: var(--font-sans);
  pointer-events: none;
}
.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 18px;
}
.breadcrumb a { color: rgba(255,255,255,0.75); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { color: rgba(255,255,255,0.35); font-size: 0.7rem; }
.article-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 3.8vw, 2.8rem);
  font-weight: 700;
  line-height: 1.22;
  margin-bottom: 14px;
  max-width: 700px;
}
.article-hero .tagline {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.78);
  font-weight: 300;
  max-width: 560px;
  line-height: 1.65;
  margin-bottom: 26px;
}
.hero-meta-pills { display: flex; gap: 10px; flex-wrap: wrap; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.pill-blue { background: rgba(45,125,214,0.35); color: rgba(255,255,255,0.92); border: 1px solid rgba(45,125,214,0.5); }
.pill-red { background: rgba(192,57,43,0.35); color: rgba(255,255,255,0.92); border: 1px solid rgba(192,57,43,0.5); }
.pill-gold { background: rgba(240,165,0,0.25); color: rgba(255,255,255,0.92); border: 1px solid rgba(240,165,0,0.4); }

/* ===== MAIN LAYOUT ===== */
.layout {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px 24px 60px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}

/* ===== INFO BOX (sidebar card) ===== */
.infobox {
  background: var(--off-white);
  border: 1px solid var(--gray-mid);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: sticky;
  top: 84px;
}
.infobox-header {
  background: var(--navy);
  color: var(--white);
  padding: 14px 18px;
  text-align: center;
}
.infobox-header h3 { font-family: var(--font-serif); font-size: 1.0rem; font-weight: 700; margin-bottom: 2px; }
.infobox-header p { font-size: 0.75rem; color: rgba(255,255,255,0.7); }
.infobox-img { width: 100%; height: 180px; object-fit: cover; }
.infobox-table { width: 100%; border-collapse: collapse; }
.infobox-table tr:nth-child(even) { background: var(--gray-light); }
.infobox-table td {
  padding: 9px 14px;
  font-size: 0.82rem;
  vertical-align: top;
  border-bottom: 1px solid var(--gray-mid);
  line-height: 1.5;
}
.infobox-table td:first-child { font-weight: 700; color: var(--navy); white-space: nowrap; width: 42%; }
.infobox-table td:last-child { color: var(--dark); }
.infobox-table tr:last-child td { border-bottom: none; }

/* ===== ARTICLE CONTENT ===== */
.article-content { min-width: 0; }

/* TOC */
.toc {
  background: var(--sky);
  border: 1px solid var(--gray-mid);
  border-left: 3px solid var(--blue);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin-bottom: 32px;
}
.toc h4 { font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--navy); margin-bottom: 12px; }
.toc ol { list-style: decimal; padding-left: 18px; }
.toc li { font-size: 0.88rem; margin-bottom: 5px; }
.toc li a { color: var(--blue); font-weight: 500; }
.toc li a:hover { color: var(--navy); }

/* Sections */
.article-section { margin-bottom: 44px; }
.article-section h2 {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--navy);
  border-bottom: 2px solid var(--gray-mid);
  padding-bottom: 10px;
  margin-bottom: 18px;
  line-height: 1.3;
}
.article-section h3 {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy-mid);
  margin: 22px 0 10px;
}
.article-section p {
  font-size: 0.95rem;
  color: #2e3a4a;
  line-height: 1.85;
  margin-bottom: 14px;
}
.article-section ul, .article-section ol {
  padding-left: 22px;
  margin-bottom: 14px;
}
.article-section li {
  font-size: 0.93rem;
  color: #2e3a4a;
  line-height: 1.75;
  margin-bottom: 5px;
}

/* Article image blocks */
.article-img-block {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: 24px 0;
  box-shadow: var(--shadow);
}
.article-img-block img { width: 100%; object-fit: cover; display: block; }
.article-img-block figcaption {
  background: var(--gray-light);
  font-size: 0.78rem;
  color: var(--gray-text);
  padding: 8px 14px;
  line-height: 1.5;
  font-style: italic;
  border-top: 1px solid var(--gray-mid);
}

.article-img-float {
  float: right;
  width: 48%;
  margin: 4px 0 16px 24px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow);
  clear: right;
}
.article-img-float img { width: 100%; object-fit: cover; }
.article-img-float figcaption {
  background: var(--gray-light);
  font-size: 0.75rem;
  color: var(--gray-text);
  padding: 7px 12px;
  font-style: italic;
  border-top: 1px solid var(--gray-mid);
}
.clearfix::after { content: ''; display: table; clear: both; }

/* Two-col image grid */
.img-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 22px 0;
}
.img-grid-2 figure { border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow); }
.img-grid-2 figure img { width: 100%; height: 200px; object-fit: cover; }
.img-grid-2 figcaption { background: var(--gray-light); font-size: 0.75rem; color: var(--gray-text); padding: 7px 12px; font-style: italic; border-top: 1px solid var(--gray-mid); }

/* Data table */
.data-table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 0.88rem; }
.data-table thead tr { background: var(--navy); color: var(--white); }
.data-table th { padding: 11px 14px; text-align: left; font-weight: 700; letter-spacing: 0.02em; }
.data-table td { padding: 10px 14px; border-bottom: 1px solid var(--gray-mid); color: var(--dark); }
.data-table tbody tr:nth-child(even) { background: var(--gray-light); }
.data-table tbody tr:hover { background: var(--sky); }

/* Highlight callout box */
.callout {
  background: var(--sky);
  border-left: 4px solid var(--blue);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 16px 20px;
  margin: 20px 0;
}
.callout.callout-gold { background: #fffbee; border-color: var(--gold); }
.callout.callout-red { background: #fff5f4; border-color: var(--red); }
.callout p { margin: 0; font-size: 0.92rem; color: var(--dark); }
.callout strong { color: var(--navy); }

/* ===== FOOTER ===== */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.8);
  padding: 48px 0 0;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px 40px;
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr;
  gap: 40px;
}
.footer-brand img { height: 48px; width: auto; margin-bottom: 14px; filter: brightness(10); }
.footer-brand h3 { font-family: var(--font-serif); font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.footer-brand p { font-size: 0.83rem; color: rgba(255,255,255,0.6); line-height: 1.7; max-width: 300px; }
.footer-col h4 { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { font-size: 0.85rem; color: rgba(255,255,255,0.65); transition: color var(--transition); }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .layout { grid-template-columns: 1fr; }
  .infobox { position: static; order: -1; }
  .article-img-float { float: none; width: 100%; margin: 18px 0; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-menu { display: none; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: var(--white); padding: 12px; border-bottom: 1px solid var(--gray-mid); box-shadow: var(--shadow-lg); gap: 2px; }
  .nav-menu.open { display: flex; }
  .nav-toggle { display: flex; }
  .img-grid-2 { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 6px; text-align: center; }
  .hero-meta-pills { flex-wrap: wrap; }
  .topbar-badges { display: none; }
}
