:root {
  --teal: #00B4A0;
  --teal-dark: #009688;
  --teal-deeper: #00796B;
  --yellow: #FFD600;
  --red: #E31B23;
  --blue-light: #5BC0DE;
  --white: #FFFFFF;
  --bg-light: #F5F7FA;
  --bg-warm: #F0FAF8;
  --charcoal: #2D3436;
  --gray: #636E72;
  --gray-light: #B2BEC3;
  --border: #E0E6EA;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --radius: 10px;
  --radius-sm: 6px;
}

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

body {
  font-family: 'Inter', -apple-system, sans-serif;
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1, h2, h3, h4, h5 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  line-height: 1.25;
}

a { color: var(--teal); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--teal-deeper); }

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

/* ── Top Bar ── */
.topbar {
  background: var(--teal-deeper);
  color: rgba(255,255,255,0.85);
  font-size: 0.8rem;
  padding: 6px 0;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topbar a { color: rgba(255,255,255,0.85); font-size: 0.8rem; }
.topbar a:hover { color: var(--white); }
.topbar-links { display: flex; gap: 16px; }
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 20px;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.9);
  cursor: pointer;
}

/* ── Header / Nav ── */
.header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-icon {
  width: 44px;
  height: 44px;
  background: var(--teal);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.1rem;
}
.logo-text h1 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--teal-deeper);
  letter-spacing: -0.3px;
}
.logo-text span {
  font-size: 0.72rem;
  color: var(--gray);
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.nav { display: flex; gap: 2px; align-items: center; }
.nav-item {
  position: relative;
  padding: 8px 16px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--charcoal);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background 0.2s, color 0.2s;
}
.nav-item:hover { background: var(--bg-warm); color: var(--teal); }
.nav-item.active { color: var(--teal); background: var(--bg-warm); }

.nav-item .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 210px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 6px 0;
  z-index: 200;
}
.nav-item:hover .dropdown { display: block; }
.dropdown a {
  display: block;
  padding: 10px 18px;
  font-size: 0.85rem;
  color: var(--charcoal);
  font-weight: 400;
  transition: background 0.15s;
}
.dropdown a:hover { background: var(--bg-warm); color: var(--teal); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--charcoal); margin: 5px 0; border-radius: 2px; transition: 0.3s; }

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, var(--teal-deeper) 0%, var(--teal) 60%, #26D0B8 100%);
  color: var(--white);
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
}
.hero .container { position: relative; z-index: 1; }
.hero-eyebrow {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.hero h2 {
  font-size: 2.2rem;
  font-weight: 800;
  max-width: 700px;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}
.hero p {
  font-size: 1rem;
  max-width: 600px;
  opacity: 0.9;
}

/* ── Breadcrumb ── */
.breadcrumb {
  background: var(--bg-light);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  font-size: 0.82rem;
  color: var(--gray);
}
.breadcrumb a { color: var(--gray); }
.breadcrumb a:hover { color: var(--teal); }
.breadcrumb span { margin: 0 8px; color: var(--gray-light); }

/* ── Main Layout ── */
.main-wrapper {
  flex: 1;
}
.content-section { padding: 50px 0; }
.content-section.alt { background: var(--bg-light); }

.section-header { margin-bottom: 30px; }
.section-header h2 { font-size: 1.6rem; font-weight: 800; color: var(--charcoal); margin-bottom: 8px; }
.section-header .accent-line { width: 40px; height: 4px; background: var(--teal); border-radius: 2px; margin-bottom: 10px; }
.section-header p { font-size: 0.92rem; color: var(--gray); }

.page-layout { display: grid; grid-template-columns: 1fr 320px; gap: 40px; }

/* ── Sidebar Styles ── */
.sidebar-box {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
}
.sidebar-box h4 { font-size: 0.95rem; font-weight: 700; color: var(--teal-deeper); margin-bottom: 12px; border-bottom: 2px solid var(--border); padding-bottom: 8px; }
.sidebar-menu a { display: block; padding: 8px 12px; font-size: 0.88rem; color: var(--charcoal); border-radius: var(--radius-sm); margin-bottom: 4px; }
.sidebar-menu a:hover { background: var(--bg-warm); color: var(--teal); }
.sidebar-menu a.active { background: var(--teal); color: var(--white); font-weight: 600; }

/* ── Visi Misi Card ── */
.visi-misi-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  background: var(--white);
  margin-bottom: 24px;
}
.visi-misi-card h3 { font-size: 1.25rem; font-weight: 800; color: var(--teal-deeper); margin-bottom: 12px; }

/* ── Strategy Grid ── */
.strategy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 30px;
}
.strategy-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.25s, box-shadow 0.25s;
}
.strategy-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.strategy-card .card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
  font-weight: 700;
}
.card-icon.lembaga { background: #E8F5E9; color: #2E7D32; }
.card-icon.sistem { background: #E3F2FD; color: #1565C0; }
.card-icon.staf { background: #FFF3E0; color: #E65100; }
.card-icon.sarpras { background: #F3E5F5; color: #7B1FA2; }
.strategy-card h4 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; color: var(--charcoal); }
.strategy-card p { font-size: 0.85rem; color: var(--gray); line-height: 1.6; }

/* ── Dashboard Cards ── */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 40px; }
.feature-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--white);
  transition: all 0.25s;
  cursor: pointer;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--teal); }
.feature-card .icon { font-size: 1.8rem; margin-bottom: 12px; color: var(--teal); }
.feature-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 0.85rem; color: var(--gray); }

/* ── Staf Grid ── */
.staf-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.staf-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  gap: 16px;
  background: var(--white);
}
.staf-photo {
  width: 80px;
  height: 100px;
  background: var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--gray-light);
  flex-shrink: 0;
}
.staf-info h4 { font-size: 0.95rem; font-weight: 700; color: var(--charcoal); }
.staf-info .role { font-size: 0.8rem; color: var(--teal); font-weight: 600; text-transform: uppercase; margin-bottom: 6px; }
.staf-info p { font-size: 0.8rem; color: var(--gray); }

/* ── Layanan ── */
.layanan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.layanan-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: transform 0.25s, box-shadow 0.25s;
  cursor: pointer;
}
.layanan-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.layanan-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--bg-warm);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.4rem;
}
.layanan-card h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 6px; }
.layanan-card p { font-size: 0.82rem; color: var(--gray); line-height: 1.5; }

/* ── SIMKEU Grid ── */
.simkeu-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.simkeu-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: border-color 0.25s, box-shadow 0.25s;
  cursor: pointer;
}
.simkeu-card:hover { border-color: var(--teal); box-shadow: var(--shadow); }
.simkeu-icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.simkeu-icon.mhs { background: #E0F7FA; color: #00838F; }
.simkeu-icon.unit { background: #F3E5F5; color: #7B1FA2; }
.simkeu-card h4 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.simkeu-card p { font-size: 0.85rem; color: var(--gray); }

/* ── FAQ ── */
.faq-list { max-width: 740px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); padding: 18px 0; }
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--charcoal);
}
.faq-question:hover { color: var(--teal); }
.faq-toggle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--gray);
  flex-shrink: 0;
  transition: all 0.2s;
}
.faq-item.open .faq-toggle { background: var(--teal); color: white; border-color: var(--teal); transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s;
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.7;
}
.faq-item.open .faq-answer { max-height: 200px; padding-top: 12px; }

/* ── Referensi & Download ── */
.download-list { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.download-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--white);
}
.download-item:last-child { border-bottom: none; }
.download-item:hover { background: var(--bg-light); }
.download-info h4 { font-size: 0.9rem; font-weight: 600; color: var(--charcoal); }
.download-info p { font-size: 0.78rem; color: var(--gray); }
.btn-download {
  padding: 8px 16px;
  background: var(--teal);
  color: var(--white) !important;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
}
.btn-download:hover { background: var(--teal-dark); }

/* ── Contact Form & Map ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 30px; }
.contact-form { background: var(--bg-light); padding: 30px; border-radius: var(--radius); border: 1px solid var(--border); }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.82rem; font-weight: 600; margin-bottom: 6px; color: var(--charcoal); }
.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}
.form-control:focus { border-color: var(--teal); }
textarea.form-control { height: 100px; resize: vertical; }
.btn-submit {
  background: var(--teal);
  color: var(--white);
  border: none;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  width: 100%;
}
.btn-submit:hover { background: var(--teal-dark); }
.map-box {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  height: 100%;
  min-height: 250px;
  background: #E5E9EC;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  text-align: center;
  padding: 20px;
}

/* ── Footer ── */
.footer {
  background: #1a2e2b;
  color: rgba(255,255,255,0.65);
  padding: 50px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer h5 {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.footer p, .footer a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
}
.footer a:hover { color: var(--teal); }
.footer-links a { display: block; margin-bottom: 8px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .page-layout { grid-template-columns: 1fr; }
  .strategy-grid { grid-template-columns: 1fr; }
  .layanan-grid { grid-template-columns: 1fr 1fr; }
  .simkeu-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav { display: none; flex-direction: column; width: 100%; position: absolute; top: 72px; left: 0; background: var(--white); border-bottom: 1px solid var(--border); padding: 10px 24px; box-shadow: var(--shadow); }
  .nav-item { width: 100%; padding: 12px 0; }
  .nav-item .dropdown { position: static; box-shadow: none; border: none; padding-left: 12px; }
  .nav-toggle { display: block; }
  .topbar .container { font-size: 0.72rem; }
  .layanan-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
