/* ============================
   ROOT VARIABLES
============================ */
:root {
  --primary: #0057A3;
  --secondary: #7BCFE9;
  --accent: #F7941D;

  --bg: #FBFCFD;
  --card: #ffffff;
  --muted: #6B7280;

  --radius: 14px;
  --max-width: 1100px;
}

/* ============================
   GLOBAL RESET & BASE
============================ */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Poppins", system-ui, sans-serif;
  background: var(--bg);
  color: #333;
  line-height: 1.6;
  background-image: radial-gradient(
    circle at 20px 20px,
    rgba(200,200,200,0.08) 2px,
    transparent 0
  );
  background-size: 60px 60px;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4, h5 {
  color: var(--primary);
  font-weight: 700;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: 0.25s;
}

a:hover {
  color: var(--accent);
}

.muted { color: var(--muted); }
.center { text-align: center; }
.spacer { flex: 1; }

/* ============================
   CONTAINER & SECTION
============================ */
.container {
  width: 92%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 0;
}

section {
  padding: 3rem 1rem;
  margin-bottom: 2rem;
  background: rgba(255,255,255,0.9);
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

@supports (backdrop-filter: blur(3px)) {
  section {
    backdrop-filter: blur(3px);
  }
}

/* ============================
   BUTTONS
============================ */
.btn-primary {
  background: var(--accent);
  color: #fff;
  padding: 12px 18px;
  font-weight: 700;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: 0.25s;
}

.btn-primary:hover {
  transform: scale(1.04);
}

/* ============================
   HEADER & NAV
============================ */
header {
  background: #fff;
  padding: 12px 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.nav {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  width: 56px;
  border-radius: 12px;
  background: #fff;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 0;
}

nav a {
  font-weight: 600;
  font-size: 15px;
}

.cta {
  background: var(--accent);
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 700;
}
/* Hamburger menu */
.hamburger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--card);
  border: 1px solid rgba(10,20,40,0.05);
  justify-content: center;
  align-items: center;
}

/* Mobile drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  display: none;
  justify-content: flex-end;
  background: rgba(10,20,40,0.45);
  z-index: 999;
}
.mobile-drawer.show {
  display: flex;
}
.mobile-panel {
  width: 240px;
  background: white;
  padding: 20px;
  border-radius: 0 0 0 16px;
  box-shadow: -4px 0 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.mobile-panel a {
  display: block;
  padding: 12px 0;
  color: #0057A3;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid #f2f2f2;
}

.mobile-panel a:hover {
  color: var(--orange);
}

.cta-mobile {
  display: none;
  background: var(--accent);
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 700;
  text-align: center;
}
/* Mobile */
@media (max-width: 600px) {
  nav ul { display: none; }
  .hamburger { display: flex; }
  .cta { display: none; }
}
@media (max-width: 400px) {
  .logo-img { width: 48px; }
}   
/* ============================
   HERO
============================ */
.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  padding: 2rem;
  border-radius: 20px;
  background: linear-gradient(135deg, #E8F7FB, #fff 60%);
  border: 2px solid rgba(0,87,163,0.05);
  box-shadow: 0 8px 24px rgba(0,87,163,0.08);
  animation: fadeIn 0.8s ease-out;
}

.hero-content h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 16px;
}

.hero-video video {
  border-radius: 16px;
  border: 3px solid #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================
   SAMBUTAN
============================ */
.sambutan-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px,1fr));
  gap: 2rem;
}

.profile {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.kepala-foto {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}

.sambutan-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(140px,1fr));
  gap: 1rem;
}

.stat-card {
  background: #f9fbff;
  border: 1px solid #e3eefb;
  border-radius: 12px;
  padding: 1.2rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: 0.25s;
}

.stat-card:hover {
  transform: translateY(-6px);
}

/* ============================
   ABOUT
============================ */
.about-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px,1fr));
  gap: 1.5rem;
}

.info-card {
  background: #f9fbff;
  border: 1px solid #e3eefb;
  border-radius: 12px;
  padding: 1.2rem;
  transition: 0.25s;
}

.info-card:hover {
  transform: translateY(-4px);
}

/* ============================
   PROGRAM
============================ */
.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.card {
  flex: 1 1 220px;
  max-width: 280px;
  background: #fff;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  border-radius: 12px;
  background: #d6f1ff;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

/* ============================
   AGENDA
============================ */
.agenda-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px,1fr));
  gap: 16px;
}

.agenda-card {
  display: flex;
  gap: 12px;
  padding: 1rem;
  background: #e9f4ff;
  border-radius: 12px;
}

.agenda-footer {
  display: block;
  margin: 16px auto 0;
  text-align: center;
  width: 100%;
  font-size: 14px;
  color: var(--muted);
}

/* ============================
   BERITA
============================ */
.berita-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
  gap: 20px;
}

.berita-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  transition: 0.3s;
}

.berita-card img {
  height: 150px;
  object-fit: cover;
  width: 100%;
}

/* ============================
   FOOTER
============================ */
.footer {
  background: #6ea1cc;
  color: #fff;
  padding: 3rem 1rem 1rem;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
  gap: 2rem;
}

.footer a {
  color: #fff;
}

.footer a:hover {
  color: #ffeb3b;
}

.footer-logo {
  width: 100px;
  border-radius: 12px;
  padding: 8px;
}
.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  font-size: 14px;
  color: rgba(255,255,255,0.8);
}
.footer-social a {
  margin: 0 8px;
  margin-bottom: 1rem;
}
/* ============================
   MOBILE OPTIMIZATION
============================ */
@media (max-width: 600px) {
  body { background-image: none; }

  section {
    border-radius: 0;
    margin-bottom: 1rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn-primary,
  .cta {
    width: 100%;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
