/*
 * STYLESHEET FESTIVAL POROS MATARAM ISLAM
 * Tema: Jejak Kejayaan Sultan Agung
 * Palet Warna Resmi: Deep Forest Green (#0a4b3d) & Keraton Royal Gold (#d4af37)
 * Responsive Mobile-First
 */

:root {
  --primary: #0a4b3d;
  --primary-dark: #06342a;
  --primary-deep: #03211a;
  --primary-light: #136955;
  --primary-subtle: #e8f3ef;
  
  --gold: #d4af37;
  --gold-light: #f1cb4d;
  --gold-dark: #a98319;
  --gold-subtle: #fcf6e6;
  
  --bg-body: #fbf9f5;
  --bg-card: #ffffff;
  --bg-dark: #072a22;
  
  --text-main: #1d2b27;
  --text-muted: #5e736b;
  --text-light: #f8faf9;
  --border-color: #e2e8e4;
  --border-gold: rgba(212, 175, 55, 0.35);
  
  --shadow-sm: 0 2px 8px rgba(10, 75, 61, 0.06);
  --shadow-md: 0 6px 20px rgba(10, 75, 61, 0.1);
  --shadow-lg: 0 15px 35px rgba(6, 52, 42, 0.15);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  
  --font-serif: "Cinzel", "Playfair Display", "Georgia", serif;
  --font-sans: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.25s ease;
}

a:hover {
  color: var(--gold-dark);
}

h1, h2, h3, h4, .font-serif {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.25;
}

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

/* TOPBAR RESMI DIY & DAIS */
.topbar {
  background-color: var(--primary-deep);
  color: #d1ded9;
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.topbar-partners {
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar-logo {
  height: 28px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
  transition: opacity 0.2s;
}

.topbar-logo:hover {
  opacity: 1;
}

.topbar-info {
  display: flex;
  align-items: center;
  gap: 18px;
}

.topbar-info span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* HEADER & NAVBAR DINAMIS */
.site-header {
  position: sticky;
  top: 0;
  z-index: 9999;
  background-color: #ffffff;
  border-bottom: 2px solid var(--gold);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(6, 52, 42, 0.12);
  background-color: #ffffff;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
}

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

.brand-logos {
  display: flex;
  align-items: center;
  gap: 10px;
}

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

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

.brand-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.brand-subtitle {
  font-size: 0.75rem;
  color: var(--gold-dark);
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

/* NAV CONTAINER & LINKS */
.nav-container {
  display: flex;
  align-items: center;
}

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

.nav-item {
  position: relative;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-main);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
  transition: all 0.25s ease;
}

/* Garis Emas Halus saat Hover / Active */
.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: all 0.25s ease;
  transform: translateX(-50%);
  border-radius: 2px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  background-color: rgba(10, 75, 61, 0.05);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 75%;
}

/* DROPDOWN MENU DESKTOP */
.nav-dropdown {
  position: relative;
}

.dropdown-toggle {
  cursor: pointer;
  user-select: none;
}

.dropdown-chevron {
  font-size: 0.75rem;
  color: var(--gold-dark);
  transition: transform 0.25s ease;
  display: inline-block;
}

.nav-dropdown:hover .dropdown-chevron,
.nav-dropdown.open .dropdown-chevron {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 230px;
  background: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: 0 12px 30px rgba(6, 52, 42, 0.15);
  border: 1px solid var(--border-gold);
  border-top: 3px solid var(--gold);
  padding: 8px 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1050;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(4px);
}

.dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  transition: all 0.2s ease;
}

.dropdown-item:hover {
  background-color: var(--primary-subtle);
  color: var(--primary);
  padding-left: 22px;
}

.dropdown-item .ext-icon {
  font-size: 0.85rem;
  color: var(--gold-dark);
}

/* TOMBOL CTA DAFTAR */
.nav-btn-cta {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--primary-deep) !important;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 9px 18px;
  border-radius: 30px;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: 10px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.nav-btn-cta:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(212, 175, 55, 0.5);
}

.nav-btn-cta::after {
  display: none !important;
}

/* HAMBURGER BUTTON ANIMASI 3 BARIS */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-sm);
  width: 44px;
  height: 42px;
  padding: 8px 9px;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  z-index: 1060;
  transition: all 0.3s ease;
}

.nav-toggle:hover {
  background-color: var(--primary-subtle);
  border-color: var(--gold);
}

.hamburger-bar {
  display: block;
  width: 100%;
  height: 2.5px;
  background-color: var(--primary);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Transformasi Hamburger ke Tanda Silang 'X' */
.nav-toggle.open .bar-1 {
  transform: translateY(8px) rotate(45deg);
  background-color: #ffffff;
}

.nav-toggle.open .bar-2 {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle.open .bar-3 {
  transform: translateY(-8px) rotate(-45deg);
  background-color: #ffffff;
}

/* ELEMEN KHUSUS MOBILE DRAWER (DEFAULT HIDDEN DI DESKTOP) */
.drawer-header,
.drawer-footer,
.mobile-menu-section-label,
.mobile-ext-item,
.nav-backdrop {
  display: none;
}

/* HERO SECTION - TEMA SULTAN AGUNG */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, #05261e 0%, #0a4b3d 60%, #0d5f4e 100%);
  color: var(--text-light);
  padding: 60px 0 80px;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(rgba(212, 175, 55, 0.15) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.5;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 40px;
  position: relative;
  z-index: 2;
}

.hero-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212, 175, 55, 0.2);
  border: 1px solid var(--gold);
  color: var(--gold-light);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}

.hero-title {
  color: #ffffff;
  font-size: 2.85rem;
  line-height: 1.15;
  margin-bottom: 12px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.hero-title span {
  color: var(--gold);
  display: block;
}

.hero-tagline {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: #d1ded9;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
  border-left: 3px solid var(--gold);
  padding-left: 14px;
}

.hero-kawasan-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.kawasan-pill {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 0.88rem;
  color: #ffffff;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.kawasan-pill.active {
  border-color: var(--gold);
  color: var(--gold-light);
  background: rgba(212, 175, 55, 0.15);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 35px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 0.96rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--primary-deep);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--primary-deep);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

.btn-outline-gold {
  background: transparent;
  color: var(--gold-light);
  border: 2px solid var(--gold);
}

.btn-outline-gold:hover {
  background: rgba(212, 175, 55, 0.15);
  color: #ffffff;
  border-color: var(--gold-light);
}

.btn-success {
  background-color: #1b8a5a;
  color: #ffffff;
}

.btn-success:hover {
  background-color: #147249;
}

/* COUNTDOWN TIMER */
.countdown-box {
  background: rgba(3, 33, 26, 0.7);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  backdrop-filter: blur(10px);
}

.countdown-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold);
  margin-bottom: 12px;
  font-weight: 600;
  text-align: center;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  text-align: center;
}

.countdown-item {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: var(--radius-md);
  padding: 10px 4px;
}

.countdown-num {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
}

.countdown-unit {
  font-size: 0.72rem;
  color: #d1ded9;
  text-transform: uppercase;
  margin-top: 4px;
}

/* HERO POSTER CARD */
.hero-poster-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-poster-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 0 2px var(--gold);
  max-width: 440px;
  background: var(--primary-deep);
  transition: transform 0.3s ease;
}

.hero-poster-card:hover {
  transform: translateY(-5px);
}

.hero-poster-card img {
  width: 100%;
  display: block;
}

/* SECTION COMMON */
.section {
  padding: 70px 0;
}

.section-alt {
  background-color: #f2efe9;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 45px;
}

.section-tag {
  display: inline-block;
  font-size: 0.82rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--gold-dark);
  margin-bottom: 8px;
}

.section-title {
  font-size: 2.2rem;
  color: var(--primary-dark);
  margin-bottom: 14px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* 3 KAWASAN CARDS */
.kawasan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.kawasan-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 30px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.kawasan-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--gold));
}

.kawasan-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-gold);
}

.kawasan-icon {
  width: 52px;
  height: 52px;
  background: var(--primary-subtle);
  border: 1px solid rgba(10, 75, 61, 0.2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 18px;
}

.kawasan-name {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.kawasan-role {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.kawasan-body {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* RUNDOWN TABS & FILTER */
.rundown-nav-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 35px;
}

.tab-btn {
  background: #ffffff;
  border: 1px solid var(--border-color);
  padding: 10px 22px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.25s ease;
}

.tab-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.tab-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(10, 75, 61, 0.25);
}

.rundown-timeline {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.rundown-item-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 22px 26px;
  display: grid;
  grid-template-columns: 180px 1fr auto;
  align-items: center;
  gap: 24px;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.rundown-item-card:hover {
  border-color: var(--border-gold);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.rundown-time-col {
  border-right: 1px dashed var(--border-color);
  padding-right: 20px;
}

.rundown-tahap-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 4px;
}

.rundown-time {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.rundown-date-str {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.rundown-content-col h3 {
  font-size: 1.25rem;
  margin-bottom: 6px;
}

.rundown-meta-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.rundown-meta-list span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.badge-kawasan {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
}

.badge-kotagede {
  background-color: #e1f5fe;
  color: #0277bd;
}

.badge-plered {
  background-color: #fbe9e7;
  color: #d84315;
}

.badge-imogiri {
  background-color: #ede7f6;
  color: #512da8;
}

.badge-lintas {
  background-color: #e8f5e9;
  color: #2e7d32;
}

.badge-lomba {
  background-color: #fff8e1;
  color: #f57f17;
  border: 1px solid #ffe082;
}

.rundown-desc-short {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.rundown-actions-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 130px;
}

/* LOMBA & REGISTRATION CARDS */
.lomba-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.lomba-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s ease;
}

.lomba-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}

.lomba-header {
  margin-bottom: 16px;
}

.lomba-title {
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.lomba-details {
  list-style: none;
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lomba-details li strong {
  color: var(--text-main);
}

/* NEWS GRID */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.news-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.news-thumb {
  height: 190px;
  background-color: var(--primary-deep);
  position: relative;
  overflow: hidden;
}

.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.news-card:hover .news-thumb img {
  transform: scale(1.05);
}

.news-content {
  padding: 22px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.news-meta {
  font-size: 0.8rem;
  color: var(--gold-dark);
  font-weight: 600;
  margin-bottom: 8px;
}

.news-title {
  font-size: 1.18rem;
  margin-bottom: 10px;
  line-height: 1.35;
}

.news-excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  flex-grow: 1;
}

/* FORM STYLING */
.form-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 35px 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  max-width: 780px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 11px 16px;
  font-size: 0.95rem;
  font-family: inherit;
  border: 1px solid #cfd8d4;
  border-radius: var(--radius-sm);
  background-color: #fdfdfd;
  transition: border-color 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(10, 75, 61, 0.12);
  background-color: #ffffff;
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.alert {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.alert-success {
  background-color: #e8f5e9;
  border: 1px solid #c8e6c9;
  color: #2e7d32;
}

.alert-danger {
  background-color: #ffebee;
  border: 1px solid #ffcdd2;
  color: #c62828;
}

/* MODAL POPUP */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(3, 33, 26, 0.7);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-dialog {
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 650px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--gold);
  position: relative;
  animation: modalIn 0.3s ease-out;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--primary-subtle);
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
}

.modal-body {
  padding: 24px;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* FOOTER RESMI */
.site-footer {
  background-color: var(--primary-deep);
  color: #b5c7c0;
  padding: 60px 0 25px;
  border-top: 3px solid var(--gold);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 35px;
  margin-bottom: 45px;
}

.footer-brand h4 {
  color: #ffffff;
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.footer-logos {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-logo-img {
  height: 38px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

.footer-col h5 {
  color: var(--gold);
  font-size: 1.05rem;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col h5::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--gold);
}

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

.footer-links a {
  color: #d1ded9;
  font-size: 0.92rem;
  transition: all 0.2s ease;
}

.footer-links a:hover {
  color: var(--gold-light);
  transform: translateX(4px);
}

.footer-contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.92rem;
}

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 0.86rem;
}

.footer-admin-link {
  color: var(--gold-dark);
  font-size: 0.82rem;
}

.footer-admin-link:hover {
  color: var(--gold-light);
}

/* ======================================================
   RESPONSIVE BREAKPOINTS & MOBILE DRAWER NAVIGATION
   ====================================================== */

/* 1. TABLET & LAPTOP SEDANG (MAX-WIDTH: 1080px) */
@media (max-width: 1080px) {
  
  /* Aktifkan Tombol Hamburger */
  .nav-toggle {
    display: flex;
  }

  /* Sembunyikan Dropdown Desktop, Gunakan Tautan Langsung Mobile */
  .nav-dropdown {
    display: none !important;
  }

  /* Aktifkan Item Mobile Drawer */
  .drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: var(--primary-deep);
    color: #ffffff;
    border-bottom: 2px solid var(--gold);
    flex-shrink: 0;
  }

  /* HEADER DROPDOWN CONTAINER (MENEMPEL TEPAT DI BAWAH BILAH HEADER) */
  .nav-container {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background-color: #ffffff;
    border-bottom: 3px solid var(--gold);
    box-shadow: 0 20px 40px rgba(3, 33, 26, 0.25);
    z-index: 9998;
    max-height: calc(100vh - 75px);
    overflow-y: auto;
    display: none;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .nav-container.open {
    display: block;
    opacity: 1;
    transform: translateY(0);
  }

  /* INNER BOX DROPDOWN */
  .nav-inner-box {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px 20px;
  }

  /* DAFTAR MENU DROPDOWN */
  .nav-menu {
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    gap: 4px;
    width: 100%;
  }

  .nav-item {
    width: 100%;
  }

  .nav-link {
    width: 100%;
    padding: 12px 16px;
    font-size: 0.98rem;
    font-weight: 600;
    border-radius: 8px;
    justify-content: space-between;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  }

  .nav-link::after {
    display: none;
  }

  .nav-link:hover,
  .nav-link.active {
    background-color: var(--primary-subtle);
    color: var(--primary);
    padding-left: 20px;
  }

  .mobile-menu-section-label {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 700;
    color: var(--gold-dark);
    padding: 14px 10px 4px;
  }

  .mobile-ext-item {
    display: block;
    width: 100%;
  }

  .badge-web-luar {
    font-size: 0.72rem;
    background: #fff8e1;
    color: #b78103;
    border: 1px solid #ffe082;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 700;
    margin-left: auto;
  }

  .nav-cta-item {
    margin-top: 12px;
    width: 100%;
  }

  .nav-btn-cta {
    width: 100%;
    margin-left: 0;
    justify-content: center;
    padding: 13px 20px;
    font-size: 0.98rem;
    border-radius: 30px;
  }

  /* DRAWER FOOTER */
  .drawer-footer {
    display: block;
    padding: 14px 18px;
    background: #faf8f3;
    border-radius: 8px;
    border: 1px dashed var(--gold);
    font-size: 0.85rem;
    color: #555;
    margin-top: 14px;
    text-align: center;
  }

  .drawer-footer-date {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 2px;
  }

  .drawer-footer-contact a {
    color: var(--gold-dark);
    font-weight: 700;
  }

  /* BACKDROP OVERLAY DI LUAR HEADER */
  .nav-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(3, 33, 26, 0.55);
    backdrop-filter: blur(3px);
    z-index: 9995;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }

  .nav-backdrop.open {
    display: block;
    opacity: 1;
    pointer-events: auto;
  }

  body.menu-open {
    overflow: hidden;
  }

  /* PENYESUAIAN GRID UTAMA */
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 35px;
  }

  .hero-title {
    font-size: clamp(2rem, 4.5vw, 2.6rem);
  }

  .hero-tagline {
    border-left: none;
    padding-left: 0;
  }

  .hero-kawasan-pills,
  .hero-actions {
    justify-content: center;
  }

  .kawasan-grid {
    grid-template-columns: 1fr;
  }

  .rundown-item-card {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .rundown-time-col {
    border-right: none;
    border-bottom: 1px dashed var(--border-color);
    padding-right: 0;
    padding-bottom: 12px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .lomba-grid {
    grid-template-columns: 1fr;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }
}

/* 2. SMARTPHONE & LAYAR KECIL (MAX-WIDTH: 600px) */
@media (max-width: 600px) {
  
  .topbar {
    display: none;
  }

  .brand-logo-img {
    height: 40px;
  }

  .brand-title {
    font-size: 1rem;
  }

  .brand-subtitle {
    font-size: 0.68rem;
  }

  .hero-section {
    padding: 40px 0 60px;
  }

  .hero-title {
    font-size: clamp(1.65rem, 6vw, 2.1rem);
  }

  .hero-tagline {
    font-size: 0.95rem;
  }

  .hero-actions {
    flex-direction: column;
    gap: 10px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  /* COUNTDOWN TIMER ADAPTIF (4 KOLOM TIDAK TUMPANG TINDIH) */
  .countdown-box {
    padding: 15px 14px;
    border-radius: var(--radius-md);
  }

  .countdown-label {
    font-size: 0.78rem;
    margin-bottom: 8px;
  }

  .countdown-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
  }

  .countdown-item {
    padding: 8px 2px;
    border-radius: 8px;
  }

  .countdown-num {
    font-size: clamp(1.2rem, 4.5vw, 1.55rem);
  }

  .countdown-unit {
    font-size: 0.62rem;
    letter-spacing: 0.3px;
  }

  /* RUNDOWN DI PONSEL */
  .rundown-item-card {
    padding: 16px 18px;
  }

  .rundown-actions-col {
    width: 100%;
  }

  .rundown-actions-col .btn {
    width: 100%;
  }

  .form-card {
    padding: 24px 20px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

