/* ===== VARIABLES ===== */
:root {
  --primary: #124D1C;
  --primary-dark: #08170c;
  --primary-light: #1b6828;
  --accent: #E4B028;
  --accent-dark: #c89a1f;
  --accent-glow: rgba(228, 176, 40, 0.16);
  --warm: #E4B028;
  --surface: #ffffff;
  --bg: #f4f6f0;
  --text: #111827;
  --text-soft: #4b5563;
  --text-muted: #6b7280;
  --border: #d4d8c8;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow: 0 4px 24px rgba(8, 23, 12, 0.06);
  --shadow-lg: 0 12px 40px rgba(8, 23, 12, 0.08);
  --shadow-xl: 0 20px 60px rgba(18, 77, 28, 0.12);
  --font: 'Parkinsans', sans-serif;
  --font-body: 'Inter', sans-serif;
  --header-bg: rgba(255, 255, 255, .95);
  --header-border: var(--border);
  --nav-hover: rgba(18, 77, 28, .04);
  --nav-active: rgba(18, 77, 28, .08);
  --counter-bg: var(--surface);
  --card-bg: var(--surface);
  --card-border: var(--border);
  --hero-end: #124D1C;
}

[data-theme="dark"] {
  --primary: #186324;
  --primary-dark: #050e06;
  --primary-light: #22c55e;
  --accent: #E4B028;
  --accent-dark: #d19e1e;
  --accent-glow: rgba(228, 176, 40, .2);
  --warm: #E4B028;
  --surface: #0f1c11;
  --bg: #070f08;
  --text: #f8fafc;
  --text-soft: #cbd5e1;
  --text-muted: #94a3b8;
  --border: rgba(228, 176, 40, 0.16);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.6);
  --header-bg: rgba(7, 15, 8, 0.95);
  --header-border: rgba(228, 176, 40, 0.16);
  --nav-hover: rgba(228, 176, 40, .1);
  --nav-active: rgba(228, 176, 40, .16);
  --counter-bg: #0f1c11;
  --card-bg: #0f1c11;
  --card-border: rgba(228, 176, 40, 0.16);
  --hero-end: #050e06;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--accent);
  color: #fff;
}

a {
  text-decoration: none;
  color: inherit;
}

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

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

.section {
  padding: 100px 0;
  position: relative;
}

.section.bg-surface {
  background: var(--surface);
}

.section.bg-alt {
  background: linear-gradient(135deg, #f5f7f2 0%, #eef4eb 100%);
  position: relative;
}

.section.bg-alt::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 25% 50%, rgba(18, 77, 28, .04) 0%, transparent 50%),
    radial-gradient(circle at 75% 50%, rgba(8, 23, 12, .03) 0%, transparent 50%);
  pointer-events: none;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--text-muted);
  border-radius: 99px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-soft);
}

/* ===== TYPOGRAPHY ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font);
  font-weight: 700;
  line-height: 1.2;
}

.text-gradient {
  background: linear-gradient(135deg, var(--accent), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gold {
  color: var(--accent);
  font-weight: 800;
}

/* ===== PRESTASI CARDS WITH PHOTO ===== */
.achievement-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 1024px) {
  .achievement-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.achievement-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.achievement-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.ach-img {
  position: relative;
  height: 180px;
  overflow: hidden;
  background: var(--primary-dark);
}

.ach-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.achievement-card:hover .ach-img img {
  transform: scale(1.08);
}

.ach-badge-level {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--primary);
  color: #fff;
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 99px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.ach-badge-medal {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(8, 23, 12, 0.85);
  backdrop-filter: blur(4px);
  color: var(--accent);
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 99px;
  border: 1px solid var(--accent);
}

.ach-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.ach-year {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.ach-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.35;
  margin-bottom: 8px;
}

.ach-student {
  font-size: 0.82rem;
  color: var(--text-soft);
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
}

/* ===== PROGRAM TABS SWITCHER ===== */
.program-tabs-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 36px;
}

.program-nav-tabs {
  display: inline-flex;
  background: var(--surface);
  padding: 6px;
  border-radius: 99px;
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow);
  gap: 6px;
}

.program-tab-btn {
  background: transparent;
  color: var(--text-soft);
  border: none;
  padding: 10px 26px;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 99px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.program-tab-btn:hover {
  color: var(--primary);
  background: var(--nav-hover);
}

.program-tab-btn.active {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(18, 77, 28, 0.3);
}

.program-tab-content .tab-pane {
  display: none;
}

.program-tab-content .tab-pane.active {
  display: block;
}

.section-title {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 50px;
}

.section-title .st-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  background: var(--accent-glow);
  padding: 6px 18px;
  border-radius: 99px;
  margin-bottom: 16px;
}

.section-title h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  color: var(--primary);
  margin-bottom: 12px;
}

.section-title p {
  color: var(--text-soft);
  font-size: 0.95rem;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 14px 30px;
  border-radius: 99px;
  transition: all .35s cubic-bezier(.4, 0, .2, 1);
  cursor: pointer;
  border: none;
  line-height: 1;
}

.btn-sm {
  padding: 10px 22px;
  font-size: 0.82rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 4px 16px rgba(18, 77, 28, .28);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(18, 77, 28, .38);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, .35);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, .12);
  border-color: #fff;
  transform: translateY(-3px);
}

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

.btn-outline-dark:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
  justify-content: center;
}

/* ===== HEADER TOP ===== */
.header-top {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, .65);
  font-size: 0.78rem;
  display: block;
}

.header-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 20px;
}

.header-top-left {
  display: flex;
  gap: 20px;
}

.header-top-left span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.header-top-left i {
  color: var(--accent);
  font-size: 0.7rem;
}

.header-top-right {
  display: flex;
  gap: 12px;
}

.header-top-right a {
  color: rgba(255, 255, 255, .45);
  transition: color .3s;
  font-size: 0.85rem;
}

.header-top-right a:hover {
  color: var(--accent);
}

/* ===== HEADER MAIN ===== */
.header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--header-bg);
  backdrop-filter: blur(16px) saturate(1.8);
  border-bottom: 1px solid var(--header-border);
  transition: all .3s;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
}

.logo i {
  font-size: 1.5rem;
  color: var(--accent);
}

.logo .highlight {
  color: var(--accent);
}

/* Nav */
.nav {
  display: flex;
  gap: 4px;
}

.nav a {
  padding: 8px 18px;
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-soft);
  border-radius: 99px;
  transition: all .3s;
  position: relative;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 50%;
  height: 3px;
  background: var(--accent);
  border-radius: 99px;
  transition: transform .3s cubic-bezier(.4, 0, .2, 1);
}

.nav a:hover {
  color: var(--primary);
  background: var(--nav-hover);
}

.nav a:hover::after {
  transform: translateX(-50%) scaleX(1);
}

.nav a.active {
  color: var(--primary);
  background: var(--nav-active);
}

.nav a.active::after {
  transform: translateX(-50%) scaleX(1);
}

/* Nav dropdown */
.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 16px;
}

.nav-dd-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 18px;
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-soft);
  border-radius: 99px;
  border: none;
  background: none;
  cursor: pointer;
  transition: all .3s;
  position: relative;
}

.nav-dd-btn::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 50%;
  height: 3px;
  background: var(--accent);
  border-radius: 99px;
  transition: transform .3s cubic-bezier(.4, 0, .2, 1);
}

.nav-dd-btn:hover {
  color: var(--primary);
  background: var(--nav-hover);
}

.nav-dd-btn:hover::after {
  transform: translateX(-50%) scaleX(1);
}

.nav-dd-btn i {
  font-size: 0.6rem;
  transition: transform .3s;
}

.nav-dropdown:hover .nav-dd-btn i {
  transform: rotate(180deg);
}

.nav-dd-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 180px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all .3s cubic-bezier(.4, 0, .2, 1);
  z-index: 10;
  padding: 8px;
}

.nav-dropdown:hover .nav-dd-menu,
.nav-dropdown.active .nav-dd-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transform: translateX(-50%) translateY(4px);
}

.nav-dd-menu a {
  display: block;
  padding: 10px 16px;
  font-family: var(--font);
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--text-soft);
  border-radius: var(--radius-sm);
  transition: all .3s;
}

.nav-dd-menu a::after {
  display: none !important;
}

.nav-dd-menu a:hover {
  background: var(--accent-glow);
  color: var(--accent);
}

.nav-spmb {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: var(--accent-glow);
  border-radius: 10px;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--accent);
  border: none;
  transition: all .3s;
}

.nav-toggle:hover {
  background: var(--accent);
  color: #fff;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--hero-end) 100%);
  overflow: hidden;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  opacity: .12;
  pointer-events: none;
}

.hero-shape--1 {
  width: 600px;
  height: 600px;
  background: var(--accent);
  top: -20%;
  right: -10%;
  animation: float 25s ease-in-out infinite;
}

.hero-shape--2 {
  width: 400px;
  height: 400px;
  background: var(--primary-light);
  bottom: -15%;
  left: -8%;
  animation: float 20s ease-in-out infinite reverse;
}

.hero-shape--3 {
  width: 200px;
  height: 200px;
  background: var(--warm);
  top: 30%;
  right: 15%;
  animation: float 18s ease-in-out infinite;
  opacity: .08;
}

.hero-shape--4 {
  width: 300px;
  height: 300px;
  background: #fff;
  bottom: 20%;
  right: 30%;
  animation: float 22s ease-in-out infinite reverse;
  opacity: .04;
}

@keyframes float {

  0%,
  100% {
    transform: translate(0, 0) scale(1)
  }

  25% {
    transform: translate(40px, -50px) scale(1.05)
  }

  50% {
    transform: translate(-30px, 30px) scale(.95)
  }

  75% {
    transform: translate(50px, 20px) scale(1.02)
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .1);
  padding: 7px 18px;
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255, 255, 255, .8);
  margin-bottom: 24px;
}

.hero-badge i {
  color: var(--warm);
  font-size: 0.7rem;
}

.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.1;
}

.hero-content p {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: rgba(255, 255, 255, .65);
  max-width: 520px;
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-buttons .btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  box-shadow: 0 4px 20px rgba(228, 176, 40, .4);
}

.hero-buttons .btn-primary:hover {
  box-shadow: 0 8px 30px rgba(228, 176, 40, .55);
}

.hero-meta {
  display: flex;
  gap: 30px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .1);
}

.hm-number {
  display: block;
  font-family: var(--font);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}

.hm-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, .5);
}

/* Hero card */
.hero-card {
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .4s;
}

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

.hc-img {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.hc-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hc-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 99px;
}

.hc-body {
  padding: 20px;
}

.hc-body h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 10px;
}

.hc-meta {
  display: flex;
  gap: 18px;
  margin-bottom: 14px;
}

.hc-meta span {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, .55);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hc-meta i {
  color: var(--accent);
  font-size: 0.7rem;
}

.hc-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hc-tag {
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, .7);
  background: rgba(255, 255, 255, .08);
  padding: 4px 14px;
  border-radius: 99px;
}

.hc-link {
  width: 36px;
  height: 36px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: all .3s;
}

.hc-link:hover {
  transform: rotate(45deg);
}

/* Principal card */
.hero-card-principal {
  max-width: 400px;
  margin-left: auto;
}

.hero-card-principal .hc-img {
  height: 400px;
  min-height: 400px;
}

.hero-card-principal .hc-img img {
  object-position: top center;
}

.hero-card-principal .hc-badge {
  background: rgba(245, 158, 11, .9);
  backdrop-filter: blur(4px);
  font-size: 0.68rem;
}

.hero-card-principal .hc-body h4 {
  font-size: 1.1rem;
  margin-bottom: 2px;
}

.hc-role {
  display: block;
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 14px;
}

.hero-card-principal .hc-body p {
  font-size: 0.82rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, .7);
  font-style: italic;
  margin-bottom: 16px;
}

.hc-principal-meta {
  display: flex;
  gap: 18px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.hc-principal-meta span {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, .5);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hc-principal-meta i {
  color: var(--accent);
  font-size: 0.65rem;
}

/* ===== COUNTER ===== */
.counter-section {
  position: relative;
  z-index: 2;
  margin-top: -40px;
  padding: 0 20px;
}

.counter-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  background: var(--counter-bg);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  box-shadow: var(--shadow-xl);
}

.counter-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px;
  position: relative;
}

.counter-card:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--border), transparent);
}

.cc-icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  background: var(--accent-glow);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--accent);
}

.cc-content h3 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
}

.cc-content p {
  font-family: var(--font);
  font-size: 0.78rem;
  color: var(--text-soft);
  margin-top: -2px;
}

/* ===== ABOUT ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image {
  position: relative;
}

.ai-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.ai-main img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.ai-card {
  position: absolute;
  bottom: -24px;
  right: -16px;
  background: var(--surface);
  padding: 20px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  text-align: center;
  border: 1px solid var(--border);
  min-width: 140px;
}

.ai-card i {
  font-size: 1.6rem;
  color: var(--warm);
  margin-bottom: 4px;
}

.ai-card h4 {
  font-size: 0.95rem;
  color: var(--primary);
}

.ai-card p {
  font-size: 0.78rem;
  color: var(--text-soft);
}

.about-content h3 {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 14px;
}

.about-name {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
  margin-top: 12px;
  margin-bottom: 18px;
}

.about-quote {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-soft);
  margin-bottom: 28px;
  font-style: italic;
  border-left: 3px solid var(--accent);
  padding-left: 16px;
}

.about-content p {
  color: var(--text-soft);
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.about-content .st-badge {
  margin-bottom: 8px;
}

.about-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 24px 0;
}

.al-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}

.al-item i {
  color: var(--accent);
  font-size: 0.85rem;
}

/* ===== PROGRAM ===== */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.programs-grid--auto {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.programs-card {
  background: var(--surface);
  padding: 32px 26px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: all .4s cubic-bezier(.4, 0, .2, 1);
  position: relative;
  overflow: hidden;
  cursor: default;
}

.programs-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s cubic-bezier(.4, 0, .2, 1);
}

.programs-card:hover::before {
  transform: scaleX(1);
}

.programs-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.pc-icon {
  width: 56px;
  height: 56px;
  background: var(--accent-glow);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--accent);
  margin-bottom: 18px;
  transition: all .4s;
}

.programs-card:hover .pc-icon {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  border-radius: 50%;
  transform: rotate(-8deg) scale(1.05);
}

.programs-card h3 {
  font-size: 1.05rem;
  color: var(--primary);
  margin-bottom: 8px;
}

.programs-card p {
  font-size: 0.85rem;
  color: var(--text-soft);
  line-height: 1.7;
  margin-bottom: 16px;
}

.pc-link {
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap .3s;
}

.pc-link:hover {
  gap: 10px;
}

.pc-link i {
  font-size: 0.7rem;
}

/* ===== CAROUSEL ===== */
.carousel-wrap {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
  padding: 0 44px;
}

.carousel-track {
  display: flex;
  gap: 20px;
  transition: transform .5s cubic-bezier(.4, 0, .2, 1);
  will-change: transform;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-soft);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: all .3s;
  z-index: 2;
  box-shadow: var(--shadow);
}

.carousel-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.carousel-prev {
  left: 0;
}

.carousel-next {
  right: 0;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.carousel-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: transparent;
  cursor: pointer;
  transition: all .3s;
  padding: 0;
}

.carousel-dots button.active {
  background: var(--accent);
  border-color: var(--accent);
  width: 28px;
  border-radius: 99px;
}

/* ===== TENAGA PENGAJAR ===== */
.teacher-card {
  min-width: calc(25% - 15px);
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all .4s cubic-bezier(.4, 0, .2, 1);
  text-align: center;
  flex-shrink: 0;
}

.teacher-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.tc-img {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.tc-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s;
}

.teacher-card:hover .tc-img img {
  transform: scale(1.06);
}

.tc-social {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  display: flex;
  gap: 6px;
  opacity: 0;
  transition: all .35s cubic-bezier(.4, 0, .2, 1);
}

.teacher-card:hover .tc-social {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.tc-social a {
  width: 34px;
  height: 34px;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(4px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 0.78rem;
  transition: all .3s;
}

.tc-social a:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-3px);
}

.tc-body {
  padding: 18px 16px 22px;
}

.tc-body h4 {
  font-size: 0.92rem;
  color: var(--primary);
  margin-bottom: 2px;
}

.tc-role {
  display: block;
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 500;
  font-family: var(--font);
  margin-bottom: 12px;
}

.tc-meta {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.tc-meta span {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.tc-meta i {
  font-size: 0.65rem;
  color: var(--accent);
}

/* ===== PRESTASI SISWA ===== */
.achievement-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.achievement-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px 22px;
  text-align: center;
  position: relative;
  transition: all .4s cubic-bezier(.4, 0, .2, 1);
  overflow: hidden;
}

.achievement-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.achievement-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--warm), var(--accent));
  opacity: 0;
  transition: opacity .4s;
}

.achievement-card:hover::before {
  opacity: 1;
}

.pc-medal {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 1.2rem;
  z-index: 1;
}

.achievement-card:nth-child(3n+1) .pc-medal {
  color: var(--warm);
}

.achievement-card:nth-child(3n+2) .pc-medal {
  color: var(--text-muted);
}

.achievement-card:nth-child(3n+3) .pc-medal {
  color: #cd7f32;
}

.pc-photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 14px;
  border: 3px solid var(--border);
  transition: all .4s;
}

.achievement-card:hover .pc-photo {
  border-color: var(--accent);
  transform: scale(1.06);
}

.pc-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.achievement-card h4 {
  font-size: 0.95rem;
  color: var(--primary);
  margin-bottom: 2px;
}

.pc-class {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.pc-achieve {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 14px;
  line-height: 1.4;
}

.pc-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.pc-level {
  font-family: var(--font);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 4px 14px;
  border-radius: 99px;
}

.pc-level-gold {
  background: rgba(245, 158, 11, .12);
  color: var(--warm);
}

.pc-level-silver {
  background: rgba(100, 116, 139, .12);
  color: #475569;
}

.pc-level-bronze {
  background: rgba(205, 127, 50, .12);
  color: #a0522d;
}

.pc-year {
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* ===== BERITA ===== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.news-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all .4s cubic-bezier(.4, 0, .2, 1);
}

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

.bc-img {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.bc-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s;
}

.news-card:hover .bc-img img {
  transform: scale(1.06);
}

.bc-cat {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 99px;
  letter-spacing: .03em;
}

.bc-body {
  padding: 22px;
}

.bc-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 10px;
}

.bc-meta span {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.bc-meta i {
  font-size: 0.65rem;
}

.bc-body h3 {
  font-size: 0.95rem;
  color: var(--primary);
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bc-body p {
  font-size: 0.83rem;
  color: var(--text-soft);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bc-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  transition: gap .3s;
}

.bc-link:hover {
  gap: 10px;
}

.bc-link i {
  font-size: 0.65rem;
}

.section-cta {
  text-align: center;
  margin-top: 40px;
}

.section-cta-lg {
  text-align: center;
  margin-top: 56px;
  padding-bottom: 4px;
}

/* ===== GALERI ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  display: block;
  cursor: pointer;
}

.gallery-item.gi-tall {
  grid-row: span 2;
  aspect-ratio: auto;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gi-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(8, 23, 12, .75), rgba(18, 77, 28, .45));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all .35s;
}

.gallery-item:hover .gi-overlay {
  opacity: 1;
}

.gi-overlay i {
  color: #fff;
  font-size: 1.6rem;
  transform: scale(.5) rotate(-45deg);
  transition: all .35s cubic-bezier(.4, 0, .2, 1);
}

.gallery-item:hover .gi-overlay i {
  transform: scale(1) rotate(0);
}

/* ===== LIGHTBOX ===== */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  padding: 40px;
  inset: 0;
  background: rgba(0, 0, 0, .92);
  backdrop-filter: blur(20px);
}

.lightbox.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content {
  max-width: 85%;
  max-height: 85%;
  border-radius: var(--radius);
  animation: lbIn .35s cubic-bezier(.4, 0, .2, 1);
}

@keyframes lbIn {
  from {
    transform: scale(.9);
    opacity: 0
  }

  to {
    transform: scale(1);
    opacity: 1
  }
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  color: rgba(255, 255, 255, .6);
  font-size: 2rem;
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  transition: all .3s;
  line-height: 1;
}

.lightbox-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, .12);
  transform: rotate(90deg);
}

/* ===== KONTAK ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: flex-start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ki-card {
  display: flex;
  gap: 16px;
  background: var(--surface);
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: all .3s;
}

.ki-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateX(4px);
}

.ki-card i {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: var(--accent-glow);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1rem;
  transition: all .3s;
}

.ki-card:hover i {
  background: var(--accent);
  color: #fff;
}

.ki-card h4 {
  font-size: 0.9rem;
  color: var(--primary);
  margin-bottom: 2px;
}

.ki-card p {
  font-size: 0.83rem;
  color: var(--text-soft);
  line-height: 1.5;
}

.contact-form {
  background: var(--surface);
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.form-row {
  margin-bottom: 14px;
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 13px 18px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--bg);
  transition: all .3s;
  outline: none;
}

.form-row input:focus,
.form-row textarea:focus {
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 4px var(--accent-glow);
}

.form-row textarea {
  resize: vertical;
  min-height: 110px;
}

.contact-form .btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  box-shadow: 0 4px 16px rgba(228, 176, 40, .35);
}

.contact-form .btn-primary:hover {
  box-shadow: 0 8px 30px rgba(228, 176, 40, .5);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, .65);
  position: relative;
  overflow: hidden;
}

.footer-shape {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--primary-light), var(--warm));
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1fr 1fr;
  gap: 48px;
  padding: 64px 0 40px;
  position: relative;
  z-index: 1;
}

.footer-brand .logo {
  color: #fff;
  margin-bottom: 16px;
}

.footer-col-nav {
  columns: 2;
  column-gap: 24px;
}

.footer-col-nav h4 {
  column-span: all;
  margin-bottom: 18px;
}

.footer-col-nav a {
  break-inside: avoid;
  page-break-inside: avoid;
}

.footer-brand .logo i {
  color: var(--accent);
}

.footer-brand .logo .highlight {
  color: var(--accent);
}

.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.7;
  max-width: 320px;
  color: rgba(255, 255, 255, .45);
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, .06);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, .4);
  transition: all .35s cubic-bezier(.4, 0, .2, 1);
  font-size: 0.85rem;
}

.footer-social a:hover {
  background: var(--accent);
  color: var(--primary-dark);
  transform: translateY(-4px);
}

.footer-col h4 {
  color: #fff;
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 18px;
}

.footer-col a {
  display: block;
  color: rgba(255, 255, 255, .4);
  font-size: 0.83rem;
  padding: 5px 0;
  transition: all .3s;
}

.footer-col a:hover {
  color: var(--accent);
  padding-left: 6px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .06);
  padding: 20px 0;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, .25);
  position: relative;
  z-index: 1;
}

.footer-bottom a {
  color: var(--accent);
}

/* ===== RESPONSIVE ===== */
@media (max-width:1024px) {
  .about-grid {
    gap: 40px;
  }

  .programs-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .teacher-card {
    min-width: calc(33.33% - 14px);
  }
}

@media (max-width:880px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    padding-top: 20px;
  }

  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-meta {
    justify-content: center;
  }

  .hero-visual {
    max-width: 400px;
    margin: 0 auto;
    padding-bottom: 10px;
  }

  .gallery-item.gi-tall {
    grid-row: span 1;
    aspect-ratio: 4/3;
  }
}

@media (max-width:768px) {
  .section {
    padding: 64px 0;
  }

  .header-top {
    display: none;
  }

  .nav {
    position: fixed;
    top: 72px;
    left: 16px;
    right: 16px;
    z-index: 999;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 16px;
    gap: 4px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xl);
    transform: translateY(-120%);
    opacity: 0;
    transition: all .4s cubic-bezier(.4, 0, .2, 1);
    pointer-events: none;
  }

  .nav.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  [data-theme="dark"] .nav {
    background: rgba(30, 41, 59, .98);
  }

  .nav a {
    padding: 12px 16px;
    font-size: 0.9rem;
  }

  .nav a::after {
    display: none;
  }

  .nav a.active {
    background: var(--accent-glow);
    color: var(--accent);
  }

  .nav-dropdown {
    display: block;
  }

  .nav-dd-btn {
    width: 100%;
    justify-content: space-between;
    padding: 12px 16px;
    font-size: 0.9rem;
    border-radius: 8px;
  }

  .nav-dd-btn::after {
    display: none;
  }

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

  .nav-dd-menu {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    background: var(--card-bg);
    border-radius: 8px;
    margin: 4px 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s cubic-bezier(.4, 0, .2, 1);
  }

  .nav-dropdown.active .nav-dd-menu {
    max-height: 500px;
    overflow: visible;
    transform: none;
  }

  .nav-dd-menu a {
    padding: 10px 16px;
    font-size: 0.85rem;
    color: var(--text-soft);
    display: block;
  }

  .nav-spmb {
    text-align: center;
    margin-top: 4px;
  }

  .nav-toggle {
    display: flex;
  }

  .counter-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .counter-card:not(:last-child)::after {
    display: none;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .ai-main img {
    height: 280px;
  }

  .ai-card {
    right: 0;
  }

  .about-list {
    grid-template-columns: 1fr;
  }

  .programs-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .teacher-card {
    min-width: calc(50% - 10px);
  }

  .achievement-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .footer-brand {
    grid-column: 1/-1;
  }
}

@media (max-width:576px) {
  .section-title {
    margin-bottom: 36px;
  }

  .counter-grid {
    padding: 24px 16px;
  }

  .counter-card {
    flex-direction: column;
    text-align: center;
  }

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

  .teacher-card {
    min-width: calc(100% - 0px);
  }

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

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

  .gallery-grid {
    gap: 10px;
  }

  .contact-form {
    padding: 24px;
  }

  .hero-meta {
    gap: 20px;
    flex-wrap: wrap;
  }

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

  .footer-col-nav {
    columns: 1;
  }

  .lightbox {
    padding: 20px;
  }
}

/* ===== DARK TOGGLE ===== */
.dark-toggle {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-glow);
  border-radius: 10px;
  cursor: pointer;
  font-size: 1rem;
  color: var(--accent);
  border: none;
  transition: all .3s;
}

.dark-toggle:hover {
  background: var(--accent);
  color: #fff;
}

[data-theme="dark"] .dark-toggle i::before {
  content: "\f185";
}

/* ===== PRELOADER ===== */
/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  z-index: 999;
  bottom: 24px;
  right: 24px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(20, 184, 166, .35);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all .35s cubic-bezier(.4, 0, .2, 1);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(20, 184, 166, .45);
}

/* ===== EKSTRAKURIKULER ===== */
.extracurricular-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.extracurricular-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
  transition: all .4s cubic-bezier(.4, 0, .2, 1);
}

.extracurricular-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.ec-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 18px;
  border-radius: 16px;
  background: var(--ec-bg, rgba(0, 0, 0, .06));
  color: var(--ec-color, var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  transition: all .4s;
}

.extracurricular-card:hover .ec-icon {
  background: var(--ec-color, var(--accent)) !important;
  color: #fff !important;
  border-radius: 50%;
  transform: rotate(8deg) scale(1.08);
}

.extracurricular-card h3 {
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 6px;
}

.extracurricular-card p {
  font-size: 0.83rem;
  color: var(--text-soft);
  line-height: 1.6;
}

/* ===== TESTIMONI ===== */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  position: relative;
  transition: all .4s cubic-bezier(.4, 0, .2, 1);
}

.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.tc-quote {
  font-size: 1.6rem;
  color: var(--accent);
  opacity: .3;
  margin-bottom: 8px;
}

.tc-text {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-soft);
  font-style: italic;
  margin-bottom: 20px;
}

.tc-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.tc-author img {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.tc-author strong {
  display: block;
  font-size: 0.85rem;
  color: var(--primary);
}

.tc-author span {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ===== AGENDA ===== */
.event-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.event-card {
  display: flex;
  gap: 20px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 22px;
  transition: all .4s cubic-bezier(.4, 0, .2, 1);
}

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

.ac-date {
  width: 70px;
  min-width: 70px;
  text-align: center;
  padding: 14px 0;
  background: var(--accent-glow);
  border-radius: var(--radius);
  align-self: flex-start;
}

.acd-day {
  display: block;
  font-family: var(--font);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.acd-month {
  display: block;
  font-family: var(--font);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 4px;
}

.ac-body h3 {
  font-size: 0.95rem;
  color: var(--primary);
  margin-bottom: 6px;
}

.ac-meta {
  display: flex;
  gap: 14px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.ac-meta span {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ac-meta i {
  font-size: 0.65rem;
  color: var(--accent);
}

.ac-body p {
  font-size: 0.83rem;
  color: var(--text-soft);
  line-height: 1.6;
}

/* ===== FAQ ===== */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .3s;
}

.faq-item:hover {
  box-shadow: var(--shadow);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  background: none;
  border: none;
  font-family: var(--font);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--primary);
  text-align: left;
  cursor: pointer;
  transition: all .3s;
}

.faq-question:hover {
  color: var(--accent);
}

.faq-question i {
  font-size: 0.75rem;
  color: var(--text-muted);
  transition: transform .35s cubic-bezier(.4, 0, .2, 1);
  flex-shrink: 0;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
  color: var(--accent);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s cubic-bezier(.4, 0, .2, 1), padding .4s;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 22px 18px;
}

.faq-answer p {
  font-size: 0.87rem;
  color: var(--text-soft);
  line-height: 1.7;
}

/* ===== RESPONSIVE NEW SECTIONS ===== */
@media (max-width:768px) {
  .extracurricular-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .faq-list {
    padding: 0;
  }
}

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

  .dark-toggle {
    display: none;
  }
}

/* ===== NEWS.CSS — merged ===== */
.page-banner {
  position: relative;
  padding: 105px 0 45px;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--hero-end) 100%);
  overflow: hidden;
  text-align: center;
}

.page-banner-shape {
  position: absolute;
  border-radius: 50%;
  opacity: .1;
  pointer-events: none;
}

.page-banner-shape--1 {
  width: 500px;
  height: 500px;
  background: var(--accent);
  top: -20%;
  left: -10%;
  animation: float 25s ease-in-out infinite;
}

.page-banner-shape--2 {
  width: 350px;
  height: 350px;
  background: var(--primary-light);
  bottom: -15%;
  right: -8%;
  animation: float 20s ease-in-out infinite reverse;
}

.page-banner-content {
  position: relative;
  z-index: 1;
}

.page-banner-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .1);
  padding: 7px 18px;
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255, 255, 255, .8);
  margin-bottom: 16px;
}

.page-banner-badge i {
  color: var(--accent);
}

.page-banner-content h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
}

.page-banner-content p {
  font-size: 1rem;
  color: rgba(255, 255, 255, .6);
  max-width: 520px;
  margin: 0 auto;
}

.news-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: flex-start;
}

.news-filter {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.nf-btn {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 99px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-soft);
  cursor: pointer;
  transition: all .3s;
  text-align: center;
}

.nf-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.nf-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.news-grid .news-card {
  margin-bottom: 0;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.news-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 36px;
}

.np-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-soft);
  transition: all .3s;
  background: var(--surface);
}

.np-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.np-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.np-next {
  font-size: 0.75rem;
}

.news-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.ns-widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.ns-widget h3 {
  font-size: 0.95rem;
  color: var(--primary);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.quick-ns-widget {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ns-search {
  display: flex;
  gap: 0;
}

.ns-search input {
  flex: 1;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  font-family: var(--font-body);
  font-size: 0.85rem;
  outline: none;
  background: var(--bg);
  transition: all .3s;
}

.ns-search input:focus {
  border-color: var(--accent);
  background: var(--surface);
}

.ns-search button {
  padding: 0 16px;
  border: 1.5px solid var(--border);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--surface);
  color: var(--text-soft);
  cursor: pointer;
  transition: all .3s;
}

.ns-search button:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.ns-categories {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ns-categories a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-soft);
  transition: all .3s;
}

.ns-categories a:hover {
  background: var(--accent-glow);
  color: var(--accent);
}

.ns-categories a.active {
  background: var(--accent-glow);
  color: var(--accent);
  font-weight: 500;
}

.ns-categories a span {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--bg);
  padding: 2px 10px;
  border-radius: 99px;
}

.ns-recent {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.nsr-item {
  display: flex;
  gap: 12px;
}

.nsr-item img {
  width: 60px;
  height: 60px;
  min-width: 60px;
  border-radius: 8px;
  object-fit: cover;
}

.nsr-item h4 {
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nsr-item h4 a:hover {
  color: var(--accent);
}

.nsr-item span {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.ns-social {
  display: flex;
  gap: 10px;
}

.ns-social a {
  width: 36px;
  height: 36px;
  background: var(--accent-glow);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  transition: all .3s;
  font-size: 0.85rem;
}

.ns-social a:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-3px);
}

.ns-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ns-tags a {
  padding: 5px 14px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-soft);
  background: var(--bg);
  border-radius: 99px;
  transition: all .3s;
}

.ns-tags a:hover {
  background: var(--accent);
  color: #fff;
}

.ns-archive {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ns-archive a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-soft);
  transition: all .3s;
}

.ns-archive a:hover {
  background: var(--accent-glow);
  color: var(--accent);
}

.ns-archive a.active {
  background: var(--accent);
  color: #fff;
}

.ns-archive a.active span {
  background: rgba(255, 255, 255, .2);
  color: #fff;
}

.ns-archive a span {
  font-size: 0.72rem;
  color: var(--text-muted);
  background: var(--bg);
  padding: 2px 10px;
  border-radius: 99px;
}

.sp-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.sp-breadcrumb a {
  color: var(--text-soft);
}

.sp-breadcrumb a:hover {
  color: var(--accent);
}

.sp-breadcrumb i {
  font-size: 0.6rem;
  color: var(--text-muted);
}

.sp-breadcrumb span {
  color: var(--text);
  font-weight: 500;
}

.sp-article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.sp-top {
  padding: 32px 36px 24px;
}

.bc-cat {
  display: inline-block;
  background: var(--accent-glow);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 99px;
  margin-bottom: 12px;
}

.sp-top h1 {
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  color: var(--primary);
  line-height: 1.35;
  margin-bottom: 14px;
}

.sp-meta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.sp-meta span {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.sp-meta span i {
  font-size: 0.72rem;
}

.sp-cover img {
  width: 100%;
  display: block;
}

.sp-body {
  padding: 28px 36px 36px;
}

.sp-body .sp-lead {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--primary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.sp-body p {
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 16px;
}

.sp-body h3 {
  font-size: 1.15rem;
  color: var(--primary);
  margin: 28px 0 12px;
}

.sp-body ul {
  margin: 0 0 16px 20px;
}

.sp-body ul li {
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--text);
}

.sp-body blockquote {
  margin: 24px 0;
  padding: 20px 24px;
  background: var(--accent-glow);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
}

.sp-body blockquote p {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--primary);
  margin-bottom: 8px;
}

.sp-body blockquote cite {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: normal;
}

.sp-share {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 36px 32px;
}

.sp-share span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-right: 4px;
}

.sp-share a {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border-radius: 8px;
  color: var(--text-soft);
  transition: all .3s;
  font-size: 0.82rem;
}

.sp-share a:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

.sp-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 28px;
}

.sp-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all .3s;
}

.sp-nav a:hover {
  border-color: var(--accent);
  background: var(--accent-glow);
}

.sp-nav-prev {
  text-align: left;
}

.sp-nav-next {
  text-align: right;
  flex-direction: row-reverse;
}

.sp-nav a i {
  font-size: 0.85rem;
  color: var(--accent);
  min-width: 20px;
}

.sp-nav a div span {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 2px;
}

.sp-nav a div h4 {
  font-size: 0.82rem;
  color: var(--primary);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sp-comments {
  margin-top: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 36px;
}

.sp-comments-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.sp-comments-header h3 {
  font-size: 1rem;
  color: var(--primary);
}

.sp-comments-header h3 i {
  color: var(--accent);
  margin-right: 8px;
}

.sp-comments-header span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.sp-comment-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 28px;
}

.spc-item {
  display: flex;
  gap: 14px;
}

.spc-item img {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 50%;
  object-fit: cover;
  margin-top: 2px;
}

.spc-item>div {
  flex: 1;
}

.spc-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.spc-head strong {
  font-size: 0.85rem;
  color: var(--primary);
}

.spc-head span {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.spc-item p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 8px;
}

.spc-reply {
  background: none;
  border: none;
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--accent);
  cursor: pointer;
  padding: 0;
  transition: all .3s;
}

.spc-reply:hover {
  color: var(--primary);
}

.spc-reply i {
  font-size: 0.7rem;
  margin-right: 4px;
}

.spc-reply-item {
  margin-left: 36px;
  padding-left: 20px;
  border-left: 2px solid var(--border);
}

.sp-comment-form {
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

.sp-comment-form h3 {
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 18px;
}

.sp-comment-form h3 i {
  color: var(--accent);
  margin-right: 8px;
}

.sp-comment-form form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.spcf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.sp-comment-form input,
.sp-comment-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.85rem;
  outline: none;
  background: var(--bg);
  transition: all .3s;
}

.sp-comment-form input:focus,
.sp-comment-form textarea:focus {
  border-color: var(--accent);
  background: var(--surface);
}

.sp-comment-form textarea {
  resize: vertical;
}

.spcf-check label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.8rem;
  color: var(--text-soft);
}

.spcf-check input[type="checkbox"] {
  width: auto;
  accent-color: var(--accent);
}

.sp-comment-form .btn-primary {
  align-self: flex-start;
  padding: 12px 28px;
}

/* ===== RELATED POSTS ===== */
.sp-related {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 2px solid var(--card-border);
}

.sp-related h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sp-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.sp-related-card {
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all .3s ease;
}

.sp-related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
  border-color: var(--accent);
}

.sp-related-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.sp-related-card div {
  padding: 12px 16px;
}

.sp-related-card h4 {
  font-size: 0.95rem;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sp-related-card span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

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

@media (max-width:992px) {
  .news-layout {
    grid-template-columns: 1fr;
  }

  .news-sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
}

@media (max-width:768px) {
  .page-banner {
    padding: 85px 0 35px;
  }

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

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

/* ===== DOWNLOADS PAGE ===== */
.download-group {
  margin-bottom: 48px;
}

.download-group:last-child {
  margin-bottom: 0;
}

.download-group-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}

.download-group-header i {
  font-size: 1.3rem;
  color: var(--accent);
}

.download-group-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0;
}

.download-group-count {
  margin-left: auto;
  font-size: 0.78rem;
  color: var(--text-muted);
  background: var(--accent-glow);
  padding: 4px 14px;
  border-radius: 99px;
  white-space: nowrap;
}

.download-list {
  display: grid;
  gap: 10px;
}

.download-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  transition: all .3s ease;
}

.download-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(20, 184, 166, .1);
  transform: translateY(-2px);
}

.dc-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-glow);
  border-radius: 10px;
  font-size: 1.2rem;
  color: var(--accent);
}

.dc-body {
  flex: 1;
  min-width: 0;
}

.dc-body h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 4px;
}

.dc-body p {
  font-size: 0.82rem;
  color: var(--text-soft);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dc-meta {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.dc-size {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
}

.dc-download {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  border-radius: 10px;
  font-size: 0.85rem;
  transition: all .3s ease;
}

.download-card:hover .dc-download {
  background: var(--accent);
  transform: scale(1.05);
}

@media (max-width:576px) {
  .download-card {
    flex-wrap: wrap;
    gap: 10px;
  }

  .dc-meta {
    width: 100%;
    justify-content: flex-end;
  }
}

/* ===== ORGANIZATION TREE / FAMILY TREE CHART ===== */
.org-tree-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.org-tree-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.org-toolbar-group {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 3px;
  box-shadow: var(--shadow);
}

.org-btn {
  background: transparent;
  color: var(--primary);
  border: none;
  padding: 7px 14px;
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 99px;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1;
}

.org-btn:hover {
  background: var(--accent-glow);
  color: var(--accent);
}

.org-download-btn {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  padding: 8px 18px;
  box-shadow: var(--shadow);
}

.org-download-btn:hover {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.tree-chart-wrapper {
  width: 100%;
  overflow: auto !important;
  max-height: 80vh;
  padding: 20px 20px 60px;
  text-align: center;
  background: transparent;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: auto !important;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

/* Styled horizontal scrollbar for org tree */
.tree-chart-wrapper::-webkit-scrollbar {
  height: 8px;
}

.tree-chart-wrapper::-webkit-scrollbar-track {
  background: var(--nav-hover);
  border-radius: 99px;
}

.tree-chart-wrapper::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 99px;
  border: 2px solid var(--surface);
}

.tree-chart {
  display: inline-block;
  text-align: center;
  position: relative;
  margin: 0 auto;
  padding: 10px 50px 60px 50px;
  min-width: max-content;
  transform-origin: top center;
  transition: transform 0.25s ease-out;
}

.tree-chart ul {
  padding-top: 24px;
  position: relative;
  display: flex;
  justify-content: center;
  margin: 0 auto;
  padding-left: 0;
  list-style-type: none;
}

.tree-chart li {
  text-align: center;
  list-style-type: none;
  position: relative;
  padding: 24px 10px 0 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Connecting horizontal & vertical branch lines */
.tree-chart li::before,
.tree-chart li::after {
  content: '';
  position: absolute;
  top: 0;
  right: 50%;
  border-top: 2px solid var(--accent);
  width: 50%;
  height: 24px;
  opacity: 0.6;
  box-sizing: border-box;
}

.tree-chart li::after {
  right: auto;
  left: 50%;
  border-left: 2px solid var(--accent);
}

/* Remove connectors from single child / edges */
.tree-chart li:only-child::after,
.tree-chart li:only-child::before {
  display: none;
}

.tree-chart li:only-child {
  padding-top: 0;
}

.tree-chart li:first-child::before,
.tree-chart li:last-child::after {
  border: 0 none;
}

.tree-chart li:last-child::before {
  border-right: 2px solid var(--accent);
  border-radius: 0 12px 0 0;
}

.tree-chart li:first-child::after {
  border-radius: 12px 0 0 0;
}

/* Downward stem connector from parent */
.tree-chart ul ul::before {
  content: '';
  position: absolute;
  top: 0;
  left: calc(50% - 1px);
  border-left: 2px solid var(--accent);
  width: 0;
  height: 24px;
  opacity: 0.6;
}

/* Fullscreen mode for Org Tree */
.org-tree-block:fullscreen,
.org-tree-block:-webkit-full-screen {
  background: var(--bg);
  padding: 30px 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100vw;
  height: 100vh;
  box-sizing: border-box;
}

.org-tree-block:fullscreen .tree-chart-wrapper,
.org-tree-block:-webkit-full-screen .tree-chart-wrapper {
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}

/* Tree Node Card Styling */
.tree-node {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 14px;
  min-width: 165px;
  max-width: 215px;
  box-shadow: var(--shadow);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
  margin: 0 auto;
}

.tree-node:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.tree-node.tree-root {
  border-top: 4px solid var(--accent);
  background: linear-gradient(180deg, var(--accent-glow) 0%, var(--surface) 100%);
  min-width: 195px;
}

.tree-node.tree-root .tree-avatar {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  border-color: var(--warm);
}

.tree-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-glow);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  margin: 0 auto 10px auto;
  border: 2px solid var(--border);
  overflow: hidden;
  box-sizing: border-box;
  flex-shrink: 0;
  position: relative;
}

.tree-avatar i,
.tree-icon-svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  display: block;
  margin: auto;
}

.tree-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}

.tree-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 6px 0;
  line-height: 1.3;
  text-align: center;
  width: 100%;
  display: block;
}

.tree-role {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary-dark);
  background: rgba(228, 176, 40, 0.18);
  border: 1px solid rgba(228, 176, 40, 0.35);
  padding: 4px 12px;
  border-radius: 99px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.2;
  margin: 0 auto;
  word-break: break-word;
  box-sizing: border-box;
}

[data-theme="dark"] .tree-role {
  color: var(--accent);
  background: rgba(228, 176, 40, 0.2);
  border-color: rgba(228, 176, 40, 0.5);
}

/* ==========================================================================
   PROGRAM DETAIL CUSTOM STYLES
   ========================================================================== */
.badge-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(228, 176, 40, 0.2);
  border: 1px solid rgba(228, 176, 40, 0.4);
  color: var(--accent);
  padding: 6px 16px;
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 700;
}

.program-detail-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.program-cover-img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  .program-cover-img {
    height: 230px;
  }
}

.program-spec-wrapper {
  padding: 28px 32px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.program-spec-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.program-spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

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

.program-spec-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  padding: 16px 20px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  transition: all 0.3s ease;
}

.program-spec-item:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.psi-icon {
  width: 46px;
  height: 46px;
  min-width: 46px;
  background: var(--accent-glow);
  color: var(--accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

.psi-info span {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.psi-info strong {
  display: block;
  font-size: 0.92rem;
  color: var(--primary);
  font-weight: 700;
  line-height: 1.3;
}

.program-body-content {
  padding: 36px;
}

.program-section-block {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px dashed var(--border);
}

.program-section-block:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.psb-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.psb-title i {
  color: var(--accent);
}

.program-goals-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

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

.pgg-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--bg);
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.pgg-item i {
  color: #10b981;
  font-size: 1.1rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.pgg-item span {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
}

.program-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

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

.step-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 18px;
  position: relative;
  transition: all 0.3s ease;
}

.step-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.step-number {
  display: inline-block;
  font-family: var(--font);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--accent);
  background: var(--accent-glow);
  width: 38px;
  height: 38px;
  line-height: 38px;
  text-align: center;
  border-radius: 50%;
  margin-bottom: 12px;
}

.step-card h5 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}

.step-card p {
  font-size: 0.83rem;
  color: var(--text-soft);
  margin: 0;
  line-height: 1.55;
}

.program-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

@media (max-width: 576px) {
  .program-gallery-grid {
    grid-template-columns: 1fr;
  }
}

.pgg-photo {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/10;
  box-shadow: var(--shadow-sm);
}

.pgg-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.pgg-photo:hover img {
  transform: scale(1.08);
}

.program-cta-card {
  margin-top: 36px;
  padding: 28px 32px;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  color: #ffffff;
}

.program-cta-card h4 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.program-cta-card p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

.btn-whatsapp-lg {
  background: #25d366;
  color: #ffffff !important;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 99px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-whatsapp-lg:hover {
  background: #1eb956;
  color: #ffffff !important;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
}

/* ===== ENHANCED LIGHTBOX CAROUSEL STYLES ===== */
.lightbox-body {
  position: relative;
  max-width: 85vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
}

.lightbox-content {
  max-width: 85vw;
  max-height: 75vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 12px 50px rgba(0, 0, 0, 0.6);
  animation: lbIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lightbox-info {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 85vw;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.88rem;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-sizing: border-box;
}

.lightbox-caption {
  font-weight: 600;
  color: #ffffff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 70%;
}

.lightbox-counter {
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(228, 176, 40, 0.18);
  padding: 4px 14px;
  border-radius: 99px;
  border: 1px solid rgba(228, 176, 40, 0.4);
  white-space: nowrap;
}

.lightbox-prev,
.lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10001;
  backdrop-filter: blur(8px);
}

.lightbox-prev {
  left: 24px;
}

.lightbox-next {
  right: 24px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--accent);
  color: var(--primary-dark);
  border-color: var(--accent);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 0 20px rgba(228, 176, 40, 0.5);
}

@media (max-width: 768px) {
  .lightbox-prev {
    left: 10px;
    width: 42px;
    height: 42px;
    font-size: 1rem;
  }

  .lightbox-next {
    right: 10px;
    width: 42px;
    height: 42px;
    font-size: 1rem;
  }

  .lightbox-caption {
    max-width: 60%;
    font-size: 0.78rem;
  }

  .lightbox-info {
    padding: 8px 14px;
  }
}

.sp-cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-glow);
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 5px 16px;
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 14px;
}

/* ===== COMMENT FORM & SINGLE POST ROUNDED INPUTS ===== */
.sp-comment-form input,
.sp-comment-form textarea {
  border-radius: var(--radius) !important;
  padding: 13px 18px !important;
  border: 1.5px solid var(--border) !important;
  font-size: 0.9rem !important;
  transition: all 0.3s ease !important;
}

.sp-comment-form input:focus,
.sp-comment-form textarea:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 4px var(--accent-glow) !important;
}

.sp-comments,
.sp-article {
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow) !important;
}

/* ===== EMPTY STATE DESIGN ===== */
.empty-state-card {
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 3.5rem 2rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.empty-icon-wrapper {
  position: relative;
  width: 90px;
  height: 90px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-glow);
  border: 2px solid var(--accent);
}

.empty-icon-wrapper i {
  font-size: 2.5rem;
  color: var(--accent);
  z-index: 2;
}

.empty-icon-glow {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  animation: pulseGlow 3s infinite ease-in-out;
}

@keyframes pulseGlow {

  0%,
  100% {
    transform: scale(0.95);
    opacity: 0.5;
  }

  50% {
    transform: scale(1.1);
    opacity: 0.9;
  }
}

.empty-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(18, 77, 28, 0.08);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.empty-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 0.8rem;
}

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

/* ===== 404 NOT FOUND PAGE DESIGN REDESIGN ===== */
.error-404-wrapper {
  padding: 3.5rem 1rem 5rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.error-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-dark);
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 8px 24px;
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 20px rgba(18, 77, 28, 0.15);
}

.error-code-text {
  font-size: clamp(5.5rem, 14vw, 9.5rem);
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -3px;
  margin: 0.5rem 0 1rem;
}

.error-404-title {
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.8rem;
}

.error-404-desc {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 580px;
  margin: 0 auto 2rem;
}

.error-search-form {
  position: relative;
  max-width: 520px;
  margin: 0 auto 2.5rem;
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 99px;
  padding: 6px 6px 6px 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.error-search-form:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
}

.error-search-icon {
  color: var(--text-muted);
  font-size: 1rem;
  margin-right: 12px;
}

/* ===== HERO BANNER VISUAL CARD ===== */
.hero-banner-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border: 4px solid var(--surface);
  background: var(--primary-dark);
}

.hero-banner-card img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.hero-banner-card:hover img {
  transform: scale(1.03);
}

.hero-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12, 74, 110, 0.9) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.8rem;
  color: #fff;
}

.hero-floating-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  background: var(--surface);
  color: var(--primary);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 99px;
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: var(--shadow);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  z-index: 3;
}

/* ===== DUAL LEADERSHIP WELCOME SECTION ===== */
.welcome-dual-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

.welcome-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}

.welcome-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.wc-header {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1.2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.wc-avatar {
  width: 75px;
  height: 75px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.wc-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(18, 77, 28, 0.08);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.wc-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  line-height: 1.3;
}

.wc-role {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

.wc-quote {
  font-size: 0.93rem;
  line-height: 1.65;
  color: var(--text-muted);
  font-style: italic;
  margin: 0;
  flex: 1;
  position: relative;
  padding-left: 1rem;
  border-left: 3px solid var(--accent);
}

.error-search-input {
  flex: 1;
  border: none !important;
  outline: none !important;
  background: transparent !important;
  font-size: 0.95rem;
  color: var(--text);
  padding: 8px 0;
  box-shadow: none !important;
}

.error-search-btn {
  border-radius: 99px !important;
  padding: 10px 24px !important;
  font-weight: 600 !important;
  white-space: nowrap;
}

.error-quick-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 1rem;
}

.eq-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 10px 20px;
  border-radius: 99px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.eq-chip:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(18, 77, 28, 0.25);
}

/* ===== Contact Google Maps Section ===== */
.contact-map-section {
  margin-top: 3.5rem;
}
.contact-map-wrapper {
  position: relative;
  width: 100%;
  height: 420px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: all 0.3s ease;
}
.contact-map-wrapper:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}
.contact-map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ===== DARK MODE COMPONENT ENHANCEMENTS ===== */
[data-theme="dark"] body {
  background: var(--bg);
  color: var(--text);
}

/* Fix Hero & Page Banner washed out background */
[data-theme="dark"] .hero,
[data-theme="dark"] .page-banner {
  background: linear-gradient(135deg, #050e06 0%, #0d2110 50%, #071409 100%) !important;
}

[data-theme="dark"] .hero-badge,
[data-theme="dark"] .page-banner-badge {
  background: rgba(228, 176, 40, 0.15) !important;
  border: 1px solid rgba(228, 176, 40, 0.3) !important;
  color: #E4B028 !important;
}

[data-theme="dark"] .hero-content h1,
[data-theme="dark"] .page-banner-content h1 {
  color: #ffffff !important;
}

[data-theme="dark"] .hero-content p,
[data-theme="dark"] .page-banner-content p {
  color: rgba(255, 255, 255, 0.75) !important;
}

/* Fix Buttons in Hero & Banners */
[data-theme="dark"] .hero-buttons .btn-primary {
  background: linear-gradient(135deg, #E4B028 0%, #b8830e 100%) !important;
  color: #050e06 !important;
  box-shadow: 0 4px 20px rgba(228, 176, 40, 0.35) !important;
}

[data-theme="dark"] .hero-buttons .btn-primary:hover {
  background: linear-gradient(135deg, #f3be34 0%, #c8931a 100%) !important;
  color: #050e06 !important;
}

[data-theme="dark"] .btn-outline {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
  border: 1.5px solid rgba(255, 255, 255, 0.35) !important;
}

[data-theme="dark"] .btn-outline:hover {
  background: rgba(228, 176, 40, 0.2) !important;
  border-color: #E4B028 !important;
  color: #ffffff !important;
}

[data-theme="dark"] .btn-primary {
  background: linear-gradient(135deg, #124D1C 0%, #1e7e34 100%);
  color: #ffffff;
  border: 1px solid rgba(228, 176, 40, 0.3);
}

/* Fix Active Program Tabs */
[data-theme="dark"] .program-nav-tabs {
  background: #0d1b10 !important;
  border-color: rgba(228, 176, 40, 0.2) !important;
}

[data-theme="dark"] .program-tab-btn {
  color: #cbd5e1 !important;
}

[data-theme="dark"] .program-tab-btn:hover {
  color: #E4B028 !important;
  background: rgba(228, 176, 40, 0.12) !important;
}

[data-theme="dark"] .program-tab-btn.active {
  background: linear-gradient(135deg, #E4B028 0%, #b8830e 100%) !important;
  color: #050e06 !important;
  border: 1px solid #E4B028 !important;
  box-shadow: 0 4px 16px rgba(228, 176, 40, 0.35) !important;
}

/* Fix CTA Cards & WhatsApp Card */
[data-theme="dark"] .program-cta-card {
  background: linear-gradient(135deg, #0e2013 0%, #08130a 100%) !important;
  border: 1px solid rgba(228, 176, 40, 0.25) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
}

[data-theme="dark"] .program-cta-text h4,
[data-theme="dark"] .program-cta-text p {
  color: #ffffff !important;
}

[data-theme="dark"] .btn-whatsapp-lg {
  background: #25d366 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35) !important;
}

[data-theme="dark"] .btn-whatsapp-lg:hover {
  background: #1eb957 !important;
  color: #ffffff !important;
}

/* Fix Downloads Page Icons & Buttons */
[data-theme="dark"] .dc-download {
  background: linear-gradient(135deg, #186324 0%, #124D1C 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(228, 176, 40, 0.3) !important;
}

[data-theme="dark"] .download-card:hover .dc-download {
  background: #E4B028 !important;
  color: #050e06 !important;
}

[data-theme="dark"] .dc-icon {
  background: rgba(228, 176, 40, 0.15) !important;
  color: #E4B028 !important;
}

/* Section Backgrounds & Layout */
[data-theme="dark"] .section.bg-alt {
  background: linear-gradient(135deg, #0b170e 0%, #0e2013 100%);
}

[data-theme="dark"] .section.bg-surface {
  background: #0d1b10;
}

[data-theme="dark"] .section-title h2 {
  color: #ffffff;
}

[data-theme="dark"] .logo {
  color: #ffffff;
}

[data-theme="dark"] .nav a,
[data-theme="dark"] .nav-dd-btn {
  color: #cbd5e1;
}

[data-theme="dark"] .nav a:hover,
[data-theme="dark"] .nav-dd-btn:hover {
  color: #E4B028;
  background: rgba(228, 176, 40, 0.12);
}

[data-theme="dark"] .nav a.active {
  color: #E4B028;
  background: rgba(228, 176, 40, 0.18);
}

[data-theme="dark"] .nav-dd-menu {
  background: #112214;
  border-color: rgba(228, 176, 40, 0.25);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] .nav-dd-menu a {
  color: #cbd5e1;
}

[data-theme="dark"] .nav-dd-menu a:hover {
  background: rgba(228, 176, 40, 0.15);
  color: #E4B028;
}

[data-theme="dark"] .header {
  background: var(--header-bg);
  border-bottom-color: rgba(228, 176, 40, 0.16);
}

[data-theme="dark"] .header-top {
  background: #050d06;
  border-bottom: 1px solid rgba(228, 176, 40, 0.1);
}

[data-theme="dark"] .nav.active {
  background: #112214;
  border-color: rgba(228, 176, 40, 0.2);
}

[data-theme="dark"] .programs-card,
[data-theme="dark"] .teacher-card,
[data-theme="dark"] .achievement-card,
[data-theme="dark"] .news-card,
[data-theme="dark"] .extracurricular-card,
[data-theme="dark"] .testimonial-card,
[data-theme="dark"] .event-card,
[data-theme="dark"] .faq-item,
[data-theme="dark"] .ns-widget,
[data-theme="dark"] .sp-article,
[data-theme="dark"] .sp-comments,
[data-theme="dark"] .ki-card,
[data-theme="dark"] .contact-form,
[data-theme="dark"] .download-card {
  background: #112214;
  border-color: rgba(228, 176, 40, 0.16);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .programs-card:hover,
[data-theme="dark"] .teacher-card:hover,
[data-theme="dark"] .achievement-card:hover,
[data-theme="dark"] .news-card:hover,
[data-theme="dark"] .extracurricular-card:hover,
[data-theme="dark"] .testimonial-card:hover,
[data-theme="dark"] .event-card:hover,
[data-theme="dark"] .faq-item:hover,
[data-theme="dark"] .ki-card:hover,
[data-theme="dark"] .download-card:hover {
  border-color: #E4B028;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 15px rgba(228, 176, 40, 0.12);
}

[data-theme="dark"] .programs-card h3,
[data-theme="dark"] .teacher-card h4,
[data-theme="dark"] .achievement-card h4,
[data-theme="dark"] .news-card h3,
[data-theme="dark"] .extracurricular-card h3,
[data-theme="dark"] .tc-author strong,
[data-theme="dark"] .ac-body h3,
[data-theme="dark"] .faq-question,
[data-theme="dark"] .ns-widget h3,
[data-theme="dark"] .sp-top h1,
[data-theme="dark"] .sp-body .sp-lead,
[data-theme="dark"] .sp-body h3,
[data-theme="dark"] .sp-comments-header h3,
[data-theme="dark"] .spc-head strong,
[data-theme="dark"] .sp-comment-form h3,
[data-theme="dark"] .ki-card h4,
[data-theme="dark"] .dc-body h3,
[data-theme="dark"] .ai-card h4 {
  color: #ffffff;
}

[data-theme="dark"] .faq-question {
  color: #ffffff;
}

[data-theme="dark"] .faq-question:hover {
  color: #E4B028;
}

[data-theme="dark"] .form-row input,
[data-theme="dark"] .form-row textarea,
[data-theme="dark"] .ns-search input,
[data-theme="dark"] .sp-comment-form input,
[data-theme="dark"] .sp-comment-form textarea {
  background: #08130a;
  border-color: rgba(228, 176, 40, 0.2);
  color: #ffffff;
}

[data-theme="dark"] .form-row input:focus,
[data-theme="dark"] .form-row textarea:focus,
[data-theme="dark"] .ns-search input:focus,
[data-theme="dark"] .sp-comment-form input:focus,
[data-theme="dark"] .sp-comment-form textarea:focus {
  border-color: #E4B028;
  background: #0f2213;
  box-shadow: 0 0 0 3px rgba(228, 176, 40, 0.2);
  color: #ffffff;
}

[data-theme="dark"] .btn-outline-dark {
  background: transparent;
  color: #ffffff;
  border-color: rgba(228, 176, 40, 0.35);
}

[data-theme="dark"] .btn-outline-dark:hover {
  border-color: #E4B028;
  color: #E4B028;
  background: rgba(228, 176, 40, 0.1);
}

[data-theme="dark"] .ac-date {
  background: rgba(228, 176, 40, 0.15);
}

[data-theme="dark"] .acd-day {
  color: #E4B028;
}

[data-theme="dark"] .sp-body blockquote {
  background: rgba(228, 176, 40, 0.1);
  border-left-color: #E4B028;
}

[data-theme="dark"] .sp-body blockquote p {
  color: #ffffff;
}

[data-theme="dark"] .np-btn,
[data-theme="dark"] .nf-btn,
[data-theme="dark"] .ns-tags a {
  background: #112214;
  border-color: rgba(228, 176, 40, 0.18);
  color: #cbd5e1;
}

[data-theme="dark"] .np-btn:hover,
[data-theme="dark"] .nf-btn:hover,
[data-theme="dark"] .ns-tags a:hover {
  border-color: #E4B028;
  color: #E4B028;
}

[data-theme="dark"] .np-btn.active,
[data-theme="dark"] .nf-btn.active {
  background: #E4B028;
  border-color: #E4B028;
  color: #08130a;
}

/* ===== Visi Misi Card Titles & Icons ===== */
.vm-card-title {
  font-size: 1.25rem;
  color: var(--primary);
  font-weight: 700;
  margin: 0;
}

[data-theme="dark"] .vm-card-title {
  color: #ffffff !important;
}

.vm-icon-box {
  width: 44px;
  height: 44px;
  background: var(--accent-glow);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.2rem;
}

.vm-icon-box--primary {
  background: var(--nav-hover);
  color: var(--primary);
}

[data-theme="dark"] .vm-icon-box--primary {
  background: rgba(228, 176, 40, 0.18) !important;
  color: #E4B028 !important;
}

/* ===== Organization Tree (Family Tree) Dark Mode Fix ===== */
[data-theme="dark"] .tree-node {
  background: #112214 !important;
  border: 1px solid rgba(228, 176, 40, 0.3) !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5) !important;
}

[data-theme="dark"] .tree-root {
  background: linear-gradient(135deg, #184d23 0%, #0e2413 100%) !important;
  border: 2px solid #E4B028 !important;
  box-shadow: 0 10px 35px rgba(228, 176, 40, 0.25) !important;
}

[data-theme="dark"] .tree-name {
  color: #ffffff !important;
}

[data-theme="dark"] .tree-role {
  color: #050e06 !important;
  background: #E4B028 !important;
  border: 1px solid #E4B028 !important;
  font-weight: 800 !important;
}

[data-theme="dark"] .tree-avatar {
  border-color: #E4B028 !important;
  color: #050e06 !important;
  background: #E4B028 !important;
}

[data-theme="dark"] .tree-chart ul ul::before,
[data-theme="dark"] .tree-chart li::before,
[data-theme="dark"] .tree-chart li::after {
  border-color: #E4B028 !important;
}

[data-theme="dark"] .org-tree-toolbar {
  background: transparent !important;
}

[data-theme="dark"] .org-btn {
  background: #112214 !important;
  border: 1px solid rgba(228, 176, 40, 0.4) !important;
  color: #E4B028 !important;
}

[data-theme="dark"] .org-btn:hover {
  background: rgba(228, 176, 40, 0.25) !important;
  border-color: #E4B028 !important;
  color: #ffffff !important;
}

[data-theme="dark"] .org-download-btn {
  background: linear-gradient(135deg, #186324 0%, #124D1C 100%) !important;
  border: 1px solid #E4B028 !important;
  color: #ffffff !important;
}

[data-theme="dark"] .org-download-btn:hover {
  background: #E4B028 !important;
  color: #050e06 !important;
}

/* ===== ORG TREE PANNING CURSOR STYLES ===== */
.tree-chart-wrapper {
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

.tree-chart-wrapper.is-panning {
  cursor: grabbing !important;
}

/* ===== NEWS TOP SEARCH & MOBILE FILTER PILLS BAR ===== */
.news-top-bar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow);
  margin-bottom: 28px;
}

.news-search-bar {
  display: flex;
  gap: 12px;
  align-items: center;
}

.nsb-input-group {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}

.nsb-icon {
  position: absolute;
  left: 16px;
  color: var(--accent);
  font-size: 0.95rem;
  pointer-events: none;
}

.nsb-input-group input {
  width: 100%;
  padding: 12px 40px 12px 44px;
  border: 1.5px solid var(--border);
  border-radius: 99px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--bg);
  outline: none;
  transition: all 0.3s ease;
}

.nsb-input-group input:focus {
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.nsb-clear-btn {
  position: absolute;
  right: 14px;
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 4px;
  transition: color 0.2s;
}

.nsb-clear-btn:hover {
  color: var(--primary);
}

.nsb-submit-btn {
  padding: 12px 24px;
  border-radius: 99px;
  flex-shrink: 0;
  font-size: 0.88rem;
}

.news-filter-pills {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  white-space: nowrap;
  padding: 10px 0 4px 0;
  margin-top: 14px;
  border-top: 1px solid var(--border);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.news-filter-pills::-webkit-scrollbar {
  height: 4px;
}

.news-filter-pills::-webkit-scrollbar-thumb {
  background: var(--accent-glow);
  border-radius: 99px;
}

.nf-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 99px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-soft);
  text-decoration: none;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.nf-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.nf-pill.active {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  border-color: var(--accent);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(228, 176, 40, 0.35);
}

.nf-pill-count {
  font-size: 0.72rem;
  background: rgba(0, 0, 0, 0.08);
  padding: 2px 8px;
  border-radius: 99px;
}

.nf-pill.active .nf-pill-count {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* ===== MOBILE CTA WHATSAPP OVERFLOW FIX ===== */
@media (max-width: 768px) {
  .program-cta-card {
    flex-direction: column !important;
    text-align: center !important;
    padding: 24px 16px !important;
    align-items: center !important;
    gap: 16px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .program-cta-text h4 {
    justify-content: center !important;
    font-size: 1.05rem !important;
    flex-wrap: wrap !important;
  }

  .btn-whatsapp-lg {
    white-space: normal !important;
    word-break: break-word !important;
    width: 100% !important;
    max-width: 100% !important;
    justify-content: center !important;
    padding: 12px 16px !important;
    font-size: 0.88rem !important;
    box-sizing: border-box !important;
    text-align: center !important;
  }
}

/* Dark Mode Overrides for News Top Bar */
[data-theme="dark"] .news-top-bar {
  background: #0f1c11;
  border-color: rgba(228, 176, 40, 0.18);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .nsb-input-group input {
  background: #08130a;
  border-color: rgba(228, 176, 40, 0.2);
  color: #ffffff;
}

[data-theme="dark"] .nsb-input-group input:focus {
  border-color: #E4B028;
  background: #0f2213;
  box-shadow: 0 0 0 3px rgba(228, 176, 40, 0.2);
}

[data-theme="dark"] .nf-pill {
  background: #08130a;
  border-color: rgba(228, 176, 40, 0.2);
  color: #cbd5e1;
}

[data-theme="dark"] .nf-pill:hover {
  border-color: #E4B028;
  color: #E4B028;
}

[data-theme="dark"] .nf-pill.active {
  background: linear-gradient(135deg, #E4B028 0%, #b8830e 100%);
  border-color: #E4B028;
  color: #050e06;
}

[data-theme="dark"] .nf-pill.active .nf-pill-count {
  background: rgba(5, 14, 6, 0.25);
  color: #050e06;
}

/* ===== GLOBAL PREVENT HORIZONTAL OVERFLOW & RESPONSIVE MOBILE NEWS BAR ===== */
html, body {
  max-width: 100% !important;
  overflow-x: hidden !important;
}

.container {
  box-sizing: border-box !important;
}

.news-layout,
.news-main,
.news-grid,
.news-card,
.bc-img {
  min-width: 0 !important;
}

@media (max-width: 992px) {
  .news-layout {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .news-main {
    width: 100% !important;
    max-width: 100% !important;
  }

  .news-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}

@media (max-width: 768px) {
  .news-grid {
    grid-template-columns: 1fr !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 16px !important;
  }

  .news-card {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .bc-img {
    width: 100% !important;
    max-width: 100% !important;
    height: 180px !important;
  }

  .bc-img img {
    width: 100% !important;
    max-width: 100% !important;
    object-fit: cover !important;
  }

  .news-top-bar {
    padding: 16px 14px !important;
    margin-bottom: 20px !important;
    border-radius: 16px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .news-search-bar {
    flex-direction: column !important;
    gap: 8px !important;
    width: 100% !important;
  }

  .nsb-input-group {
    width: 100% !important;
  }

  .nsb-submit-btn {
    width: 100% !important;
    justify-content: center !important;
    padding: 10px 16px !important;
  }

  .news-filter-pills {
    margin-top: 10px !important;
    padding-top: 8px !important;
    gap: 6px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .nf-pill {
    padding: 6px 14px !important;
    font-size: 0.78rem !important;
  }
}