/* DPR RI - Main Stylesheet */
/* Color Palette: Merah Putih + Gold institutional */
:root {
  --red: #C0392B;
  --red-dark: #922B21;
  --red-light: #E74C3C;
  --gold: #C9933A;
  --gold-light: #F4C668;
  --white: #FFFFFF;
  --off-white: #F8F6F2;
  --gray-light: #F0EDE8;
  --gray: #8B8680;
  --gray-dark: #4A4540;
  --black: #1A1814;
  --navy: #1B2E4B;
  --navy-light: #2C4A72;
}

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

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

body {
  font-family: 'Georgia', 'Times New Roman', serif;
  color: var(--black);
  background: var(--white);
  line-height: 1.7;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4, h5 {
  font-family: 'Georgia', serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--navy);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.2rem; }

p { margin-bottom: 1.2em; color: var(--gray-dark); }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); text-decoration: underline; }

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

/* ── HEADER / NAVIGATION ── */
.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--red);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
}

.header-top {
  background: var(--navy);
  color: var(--white);
  font-size: 0.78rem;
  padding: 0.4rem 0;
  font-family: Arial, sans-serif;
}

.header-top-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-top a { color: var(--gold-light); }
.header-top a:hover { color: var(--white); }

.header-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.8rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
}

.logo-img { width: 64px; height: 64px; object-fit: contain; }

.logo-text { line-height: 1.2; }
.logo-text .org-name {
  font-size: 0.72rem;
  color: var(--gray);
  font-family: Arial, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.logo-text .org-full {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  font-family: Georgia, serif;
}
.logo-text .org-sub {
  font-size: 0.78rem;
  color: var(--red);
  font-family: Arial, sans-serif;
  font-weight: 600;
}

.main-nav { display: flex; align-items: center; gap: 0; }
.main-nav a {
  display: block;
  padding: 0.6rem 1rem;
  color: var(--navy);
  font-family: Arial, sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: color 0.2s, background 0.2s;
  border-radius: 4px;
}
.main-nav a:hover, .main-nav a.active {
  color: var(--red);
  background: var(--gray-light);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  transition: 0.3s;
}

/* ── HERO BANNER ── */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  display: flex;
  align-items: center;
}

.hero-slides {
  position: absolute;
  inset: 0;
  display: flex;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}
.hero-slide.active { opacity: 1; }
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(27,46,75,0.88) 0%, rgba(27,46,75,0.5) 60%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
  width: 100%;
}

.hero-eyebrow {
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 2rem;
  height: 2px;
  background: var(--gold);
}

.hero h1 { color: var(--white); max-width: 640px; margin-bottom: 1rem; }

.hero-desc {
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem;
  max-width: 540px;
  margin-bottom: 2rem;
}

.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 3px;
  font-family: Arial, sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: 0.2s;
  text-decoration: none;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  border: 2px solid var(--red);
}
.btn-primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  color: var(--white);
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.6);
  margin-left: 1rem;
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
  color: var(--white);
  text-decoration: none;
}

.hero-dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 3;
}
.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: 0.2s;
}
.hero-dot.active { background: var(--gold); width: 24px; border-radius: 4px; }

/* ── TICKER / MARQUEE ── */
.news-ticker {
  background: var(--red);
  color: var(--white);
  display: flex;
  align-items: center;
  overflow: hidden;
  height: 40px;
}
.ticker-label {
  background: var(--red-dark);
  padding: 0 1.2rem;
  height: 100%;
  display: flex;
  align-items: center;
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}
.ticker-track {
  overflow: hidden;
  flex: 1;
}
.ticker-inner {
  display: flex;
  gap: 3rem;
  animation: ticker 40s linear infinite;
  white-space: nowrap;
}
.ticker-inner span {
  font-family: Arial, sans-serif;
  font-size: 0.82rem;
  padding: 0 1.5rem;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ── SECTIONS ── */
section { padding: 5rem 0; }

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-eyebrow {
  font-family: Arial, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 700;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
}
.section-eyebrow::before, .section-eyebrow::after {
  content: '';
  display: block;
  width: 2rem;
  height: 1px;
  background: var(--red);
  opacity: 0.5;
}

.section-header h2 { color: var(--navy); }
.section-header p { color: var(--gray); max-width: 600px; margin: 0.8rem auto 0; font-family: Arial, sans-serif; }

/* ── STATS ── */
.stats-section { background: var(--navy); color: var(--white); padding: 4rem 0; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat-item {
  text-align: center;
  padding: 2rem 1.5rem;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.stat-item:last-child { border-right: none; }
.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--gold);
  font-family: Georgia, serif;
  line-height: 1;
  margin-bottom: 0.3rem;
}
.stat-label {
  font-family: Arial, sans-serif;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── FUNCTION CARDS ── */
.functions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.function-card {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: 4px;
  padding: 2.5rem 2rem;
  transition: box-shadow 0.25s, transform 0.25s;
  position: relative;
  overflow: hidden;
}
.function-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform 0.3s;
  transform-origin: left;
}
.function-card:hover::before { transform: scaleX(1); }
.function-card:hover {
  box-shadow: 0 8px 32px rgba(27,46,75,0.14);
  transform: translateY(-4px);
}

.function-icon {
  width: 56px;
  height: 56px;
  background: var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.function-card h3 { margin-bottom: 1rem; font-size: 1.2rem; }
.function-card p { font-size: 0.92rem; margin-bottom: 0; }

/* ── NEWS GRID ── */
.news-section { background: var(--off-white); }

.news-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

.news-main {}
.news-sidebar {}

.news-card-featured {
  background: var(--white);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s;
}
.news-card-featured:hover { box-shadow: 0 6px 24px rgba(0,0,0,0.12); }
.news-card-featured .news-img-wrap {
  height: 320px;
  overflow: hidden;
}
.news-card-featured img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.news-card-featured:hover img { transform: scale(1.04); }
.news-card-featured .news-body { padding: 1.8rem; }

.news-tag {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-family: Arial, sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 2px;
  margin-bottom: 0.8rem;
}

.news-card-featured h3 { font-size: 1.4rem; margin-bottom: 0.8rem; }
.news-card-featured h3 a { color: var(--navy); }
.news-card-featured h3 a:hover { color: var(--red); text-decoration: none; }

.news-meta {
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
  color: var(--gray);
  margin-bottom: 0;
}

.news-list { display: flex; flex-direction: column; gap: 1rem; }
.news-list-item {
  background: var(--white);
  padding: 1.2rem;
  border-radius: 4px;
  display: flex;
  gap: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: box-shadow 0.2s;
}
.news-list-item:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
.news-list-img {
  width: 90px;
  height: 70px;
  flex-shrink: 0;
  border-radius: 3px;
  overflow: hidden;
}
.news-list-img img { width: 100%; height: 100%; object-fit: cover; }
.news-list-body {}
.news-list-body h4 { font-size: 0.9rem; margin-bottom: 0.3rem; line-height: 1.4; }
.news-list-body h4 a { color: var(--navy); }
.news-list-body h4 a:hover { color: var(--red); text-decoration: none; }
.news-list-body .news-meta { font-size: 0.72rem; }

.sidebar-widget { background: var(--white); border-radius: 4px; padding: 1.5rem; box-shadow: 0 2px 8px rgba(0,0,0,0.05); margin-bottom: 1.5rem; }
.sidebar-widget h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray);
  font-family: Arial, sans-serif;
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--red);
}

.agenda-list { list-style: none; }
.agenda-list li {
  display: flex;
  gap: 0.8rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--gray-light);
  align-items: flex-start;
}
.agenda-list li:last-child { border-bottom: none; }
.agenda-date {
  background: var(--red);
  color: var(--white);
  font-family: Arial, sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  text-align: center;
  padding: 0.3rem 0.5rem;
  border-radius: 3px;
  min-width: 42px;
  line-height: 1.3;
  flex-shrink: 0;
}
.agenda-date .day { font-size: 1.1rem; display: block; }
.agenda-info { font-family: Arial, sans-serif; font-size: 0.82rem; color: var(--gray-dark); }

/* ── LEADERSHIP / PIMPINAN ── */
.pimpinan-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
}
.pimpinan-card {
  text-align: center;
}
.pimpinan-photo {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 1rem;
  background: var(--gray-light);
  border: 3px solid var(--gold);
}
.pimpinan-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.pimpinan-name { font-size: 0.9rem; color: var(--navy); font-weight: 700; margin-bottom: 0.2rem; }
.pimpinan-title { font-family: Arial, sans-serif; font-size: 0.75rem; color: var(--red); }

/* ── CTA BAND ── */
.cta-band {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 50%;
}
.cta-band h2 { color: var(--white); margin-bottom: 0.8rem; }
.cta-band p { color: rgba(255,255,255,0.7); max-width: 500px; margin: 0 auto 2rem; font-family: Arial, sans-serif; }

/* ── FOOTER ── */
.site-footer {
  background: var(--black);
  color: rgba(255,255,255,0.6);
  padding: 4rem 0 0;
  font-family: Arial, sans-serif;
  font-size: 0.88rem;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
}

.footer-brand .logo-wrap { margin-bottom: 1rem; }
.footer-brand .org-full { color: var(--white); }
.footer-brand .org-name { color: rgba(255,255,255,0.5); }
.footer-brand p { font-size: 0.82rem; line-height: 1.6; }

.footer-col h5 {
  color: var(--white);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  font-family: Georgia, serif;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a { color: rgba(255,255,255,0.5); font-size: 0.84rem; }
.footer-col ul li a:hover { color: var(--gold-light); text-decoration: none; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.2rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
}

/* ── BREADCRUMB ── */
.breadcrumb {
  background: var(--gray-light);
  padding: 0.8rem 0;
  font-family: Arial, sans-serif;
  font-size: 0.82rem;
}
.breadcrumb-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}
.breadcrumb a { color: var(--navy); }
.breadcrumb span { color: var(--gray); margin: 0 0.4rem; }
.breadcrumb .current { color: var(--red); }

/* ── PAGE HERO ── */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(to right, var(--red) 0%, var(--gold) 100%);
}
.page-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}
.page-hero h1 { color: var(--white); margin-bottom: 0.6rem; }
.page-hero p { color: rgba(255,255,255,0.7); font-family: Arial, sans-serif; margin: 0; }

/* ── PROSE / ARTICLE ── */
.prose {
  max-width: 800px;
}
.prose h2 { font-size: 1.8rem; margin: 2.5rem 0 1rem; }
.prose h3 { font-size: 1.3rem; margin: 2rem 0 0.8rem; }
.prose p { font-size: 1.02rem; line-height: 1.85; }
.prose ul, .prose ol { padding-left: 1.8rem; margin-bottom: 1.2em; }
.prose li { margin-bottom: 0.5em; }
.prose blockquote {
  border-left: 4px solid var(--red);
  padding: 1rem 1.5rem;
  background: var(--off-white);
  margin: 2rem 0;
  font-style: italic;
  color: var(--navy);
}
.prose .highlight-box {
  background: var(--navy);
  color: var(--white);
  padding: 2rem;
  border-radius: 4px;
  margin: 2rem 0;
}
.prose .highlight-box p { color: rgba(255,255,255,0.85); margin: 0; }

/* ── TABLE ── */
.table-wrap { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  font-family: Arial, sans-serif;
  font-size: 0.88rem;
}
th {
  background: var(--navy);
  color: var(--white);
  padding: 0.9rem 1rem;
  text-align: left;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--gray-light);
  color: var(--gray-dark);
}
tr:hover td { background: var(--off-white); }

/* ── SEARCH ── */
.search-bar {
  display: flex;
  max-width: 480px;
}
.search-bar input {
  flex: 1;
  padding: 0.65rem 1rem;
  border: 2px solid var(--gray-light);
  border-right: none;
  border-radius: 3px 0 0 3px;
  font-family: Arial, sans-serif;
  font-size: 0.88rem;
  color: var(--black);
}
.search-bar button {
  background: var(--red);
  color: var(--white);
  border: none;
  padding: 0 1.2rem;
  cursor: pointer;
  border-radius: 0 3px 3px 0;
  font-size: 0.9rem;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .functions-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .pimpinan-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .main-nav { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); box-shadow: 0 8px 24px rgba(0,0,0,0.15); padding: 1rem; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 0.8rem 1rem; border-radius: 3px; }
  .nav-toggle { display: block; }
  .site-header { position: relative; }
  .header-main { flex-wrap: wrap; }
  .news-grid { grid-template-columns: 1fr; }
  .functions-grid { grid-template-columns: 1fr; }
  .pimpinan-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .hero { min-height: 380px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .btn-outline { margin-left: 0; margin-top: 0.5rem; }
}

@media (max-width: 480px) {
  .pimpinan-grid { grid-template-columns: repeat(2, 1fr); }
  h1 { font-size: 1.8rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}
