/* ===== VARIABLES ===== */
:root {
  --primary: #0c4a6e;
  --primary-dark: #082f49;
  --primary-light: #0ea5e9;
  --accent: #14b8a6;
  --accent-dark: #0d9488;
  --accent-glow: rgba(20, 184, 166, 0.12);
  --warm: #f59e0b;
  --surface: #ffffff;
  --bg: #f0fdfa;
  --text: #1e293b;
  --text-soft: #64748b;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow: 0 4px 24px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.08);
  --shadow-xl: 0 20px 60px rgba(12,74,110,0.12);
  --font: 'Parkinsans', sans-serif;
  --font-body: 'Inter', sans-serif;
  --header-bg: rgba(255,255,255,.92);
  --header-border: var(--border);
  --nav-hover: rgba(12,74,110,.04);
  --nav-active: rgba(12,74,110,.06);
  --counter-bg: var(--surface);
  --card-bg: var(--surface);
  --card-border: var(--border);
  --hero-end: #0e7490;
}

[data-theme="dark"] {
  --primary: #38bdf8;
  --primary-dark: #0c4a6e;
  --primary-light: #7dd3fc;
  --accent: #2dd4bf;
  --accent-dark: #14b8a6;
  --accent-glow: rgba(45,212,191,.15);
  --warm: #fbbf24;
  --surface: #1e293b;
  --bg: #0f172a;
  --text: #e2e8f0;
  --text-soft: #94a3b8;
  --text-muted: #64748b;
  --border: #334155;
  --shadow: 0 4px 24px rgba(0,0,0,0.25);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.3);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.4);
  --header-bg: rgba(15,23,42,.95);
  --header-border: var(--border);
  --nav-hover: rgba(56,189,248,.08);
  --nav-active: rgba(56,189,248,.12);
  --counter-bg: var(--surface);
  --card-bg: var(--surface);
  --card-border: var(--border);
  --hero-end: #0e7490;
}

/* ===== 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:1170px; 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, #f8fafc 0%, #f0fdfa 100%);
  position:relative;
}
.section.bg-alt::before {
  content:'';
  position:absolute; inset:0;
  background-image:radial-gradient(circle at 25% 50%, rgba(20,184,166,.04) 0%, transparent 50%),
    radial-gradient(circle at 75% 50%, rgba(12,74,110,.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;
}

.section-title {
  text-align:center;
  max-width:600px;
  margin:0 auto 50px;
}
.section-title .st-badge {
  display:inline-flex;
  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(12,74,110,.25);
}
.btn-primary:hover {
  transform:translateY(-3px);
  box-shadow:0 8px 30px rgba(12,74,110,.35);
}
.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:linear-gradient(90deg, var(--accent), var(--primary-light));
  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:linear-gradient(90deg, var(--accent), var(--primary-light));
  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 {
  background:linear-gradient(135deg, var(--accent), var(--accent-dark)) !important;
  color:#fff !important;
  box-shadow:0 4px 12px rgba(20,184,166,.3);
  padding:8px 22px !important;
  font-weight:600 !important;
  letter-spacing:.02em;
}
.nav-spmb::after { display:none !important; }
.nav-spmb:hover {
  transform:translateY(-2px) !important;
  box-shadow:0 6px 20px rgba(20,184,166,.4) !important;
  background:linear-gradient(135deg, var(--accent-dark), var(--accent)) !important;
}

.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(20,184,166,.35);
}
.hero-buttons .btn-primary:hover {
  box-shadow:0 8px 30px rgba(20,184,166,.5);
}

.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-content p { color:var(--text-soft); margin-bottom:12px; font-size:0.95rem; }
.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-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:3px;
  background:linear-gradient(90deg, var(--accent), var(--primary-light));
  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; }

/* ===== 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(12,74,110,.7), rgba(20,184,166,.4));
  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(20,184,166,.3);
}
.contact-form .btn-primary:hover { box-shadow:0 8px 30px rgba(20,184,166,.45); }

/* ===== 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; }
  .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:160px 0 80px;
  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(2,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);
}
.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:130px 0 60px; }
  .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;
  }
}
