/* ============================================================
   VIDEO TUTORIAL SANBARTO – Paroki Taman Galaxi
   Style Sheet — v3 Premium Refined
   ============================================================ */

/* ─── Variables ──────────────────────────────────────────── */
:root {
  --primary:        #1B3C72;
  --primary-light:  #2a5298;
  --primary-dark:   #0D2347;
  --primary-deeper: #071627;
  --accent:         #C4922A;
  --accent-light:   #E8B84B;
  --accent-pale:    rgba(196,146,42,0.11);
  --bg:             #F7F4EE;
  --bg-warm:        #F0EBE1;
  --white:          #FFFFFF;
  --text:           #0A1828;
  --text-muted:     #5A6880;
  --border:         #DED5C4;
  --border-light:   #EAE3D6;
  --shadow-xs:      0 1px 4px rgba(10,24,40,0.06);
  --shadow-sm:      0 3px 12px rgba(10,24,40,0.08);
  --shadow:         0 6px 28px rgba(10,24,40,0.11);
  --shadow-lg:      0 16px 56px rgba(10,24,40,0.16);
  --shadow-gold:    0 8px 36px rgba(196,146,42,0.25);
  --radius:         18px;
  --radius-sm:      11px;
  --radius-lg:      28px;
  --transition:     all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Keyframes ──────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%       { transform: translateY(-20px) rotate(5deg); }
}
@keyframes floatAlt {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%       { transform: translateY(-14px) rotate(-3deg); }
}
@keyframes rotateSlow {
  from { transform: translate(-50%,-50%) rotate(0deg); }
  to   { transform: translate(-50%,-50%) rotate(360deg); }
}
@keyframes pulseRing {
  0%   { transform: translate(-50%,-50%) scale(1); opacity: 0.65; }
  100% { transform: translate(-50%,-50%) scale(1.75); opacity: 0; }
}
@keyframes shimmerGold {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* ─── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { cursor: pointer; font-family: inherit; }

/* ─── Navigation ─────────────────────────────────────────── */
.nav {
  background: var(--primary-deeper);
  position: sticky;
  top: 0;
  z-index: 200;
  transition: var(--transition);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.nav.scrolled {
  background: rgba(7,22,39,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 6px 40px rgba(0,0,0,0.35);
  border-bottom-color: rgba(196,146,42,0.25);
}
.nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: white;
}
.nav-logo-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 50%;
  border: 2.5px solid var(--accent);
  box-shadow: 0 0 0 5px rgba(196,146,42,0.14), 0 6px 16px rgba(0,0,0,0.25);
  padding: 2px;
  transition: var(--transition);
}
.nav-brand:hover .nav-logo-img {
  box-shadow: 0 0 0 6px rgba(196,146,42,0.22), 0 8px 20px rgba(0,0,0,0.3);
}
.nav-logo-fallback {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  box-shadow: 0 0 0 5px rgba(196,146,42,0.14);
}
.nav-title    { font-size: 1.08rem; font-weight: 800; line-height: 1.2; letter-spacing: 0.1px; }
.nav-subtitle { font-size: 0.77rem; opacity: 0.55; font-weight: 400; letter-spacing: 0.3px; margin-top: 1px; }

.nav-links { display: flex; gap: 2px; list-style: none; }
.nav-links a {
  color: rgba(255,255,255,0.75);
  padding: 0.5rem 1.05rem;
  border-radius: 9px;
  font-size: 0.92rem;
  font-weight: 700;
  transition: var(--transition);
  letter-spacing: 0.2px;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 50%;
  right: 50%;
  height: 2.5px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  border-radius: 2px;
  transition: left 0.3s ease, right 0.3s ease;
}
.nav-links a:hover          { background: rgba(255,255,255,0.09); color: #fff; }
.nav-links a.active         { color: var(--accent-light); background: rgba(196,146,42,0.12); }
.nav-links a:hover::after,
.nav-links a.active::after  { left: 14px; right: 14px; }

.nav-link-sanbarto {
  background: rgba(196,146,42,0.13) !important;
  border: 1px solid rgba(196,146,42,0.32) !important;
  color: var(--accent-light) !important;
}
.nav-link-sanbarto:hover { background: rgba(196,146,42,0.24) !important; color: #fff !important; }
.nav-link-sanbarto::after { display: none !important; }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: rgba(255,255,255,0.09);
  border: 1px solid rgba(255,255,255,0.14);
  padding: 10px 12px;
  border-radius: 11px;
  min-width: 48px;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.nav-hamburger:hover { background: rgba(255,255,255,0.16); }
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: white; border-radius: 2px; transition: var(--transition);
}

.mobile-menu {
  display: none;
  background: rgba(5,15,28,0.98);
  backdrop-filter: blur(16px);
  padding: 0.75rem 1.5rem 1.5rem;
  border-top: 1px solid rgba(196,146,42,0.2);
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,0.88);
  padding: 0.9rem 1rem;
  font-weight: 700;
  font-size: 1.05rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  margin-bottom: 2px;
  min-height: 52px;
  letter-spacing: 0.2px;
  transition: var(--transition);
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a.active { color: var(--accent-light); background: rgba(196,146,42,0.1); }
.mobile-menu a:hover  { background: rgba(255,255,255,0.07); }

/* ─── Hero ────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(155deg, var(--primary-deeper) 0%, #0D2040 28%, var(--primary) 65%, #1d3e80 100%);
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 4.5rem 2rem 4rem;
}

/* Cathedral rose-window rings */
.hero-deco {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 640px;
  height: 640px;
  border: 1px solid rgba(255,255,255,0.035);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.hero-deco::before {
  content: '';
  position: absolute;
  inset: 60px;
  border: 1px solid rgba(255,255,255,0.028);
  border-radius: 50%;
}
.hero-deco::after {
  content: '';
  position: absolute;
  inset: 120px;
  border: 1px solid rgba(196,146,42,0.06);
  border-radius: 50%;
}

/* Faint watermark cross */
.hero-deco-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 28rem;
  opacity: 0.022;
  user-select: none;
  pointer-events: none;
  color: white;
  font-family: 'Georgia', serif;
  line-height: 1;
  z-index: 0;
  letter-spacing: -0.05em;
}

/* Diamond grid pattern */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cpath d='M40 16 L64 40 L40 64 L16 40 Z' fill='none' stroke='rgba(255,255,255,0.028)' stroke-width='1'/%3E%3Ccircle cx='40' cy='40' r='2' fill='rgba(255,255,255,0.03)'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* Curved bottom transition */
.hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0; right: 0;
  height: 90px;
  background: var(--bg);
  clip-path: ellipse(62% 100% at 50% 100%);
  z-index: 1;
}

/* Ambient gold orb */
.hero-orb-1 {
  position: absolute;
  top: -120px; left: -150px;
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(196,146,42,0.10) 0%, transparent 65%);
  pointer-events: none;
  animation: float 10s ease-in-out infinite;
  z-index: 0;
}
.hero-orb-2 {
  position: absolute;
  bottom: -100px; right: -120px;
  width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(42,82,152,0.25) 0%, transparent 65%);
  pointer-events: none;
  animation: floatAlt 13s ease-in-out infinite;
  z-index: 0;
}

.hero-content {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  z-index: 2;
  animation: fadeInUp 0.75s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(196,146,42,0.15);
  border: 1px solid rgba(196,146,42,0.38);
  color: var(--accent-light);
  padding: 0.42rem 1.25rem;
  border-radius: 100px;
  font-size: 0.74rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

/* Gold divider line below badge */
.hero-gold-line {
  width: 56px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-light), transparent);
  margin: 0 auto 1.75rem;
  border-radius: 2px;
}

.hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.6rem, 6.5vw, 5rem);
  font-weight: 700;
  margin-bottom: 1.25rem;
  line-height: 1.15;
  text-shadow: 0 6px 30px rgba(0,0,0,0.28);
  letter-spacing: -0.8px;
}
.hero h1 em {
  font-style: italic;
  background: linear-gradient(135deg, #E8B84B 0%, #F7DC8A 40%, #C4922A 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmerGold 4s linear infinite;
}

.hero p {
  font-size: 1.08rem;
  opacity: 0.82;
  line-height: 1.82;
  max-width: 540px;
  margin: 0 auto 2.75rem;
}

/* Search bar */
.hero-search {
  display: flex;
  max-width: 520px;
  margin: 0 auto;
  background: rgba(255,255,255,0.98);
  border-radius: 100px;
  overflow: hidden;
  box-shadow: 0 12px 48px rgba(0,0,0,0.28), 0 0 0 1px rgba(196,146,42,0.18);
}
.hero-search input {
  flex: 1;
  border: none;
  padding: 1.15rem 1.5rem;
  font-size: 1rem;
  outline: none;
  color: var(--text);
  background: transparent;
  min-height: 60px;
  font-family: inherit;
}
.hero-search input::placeholder { color: #bbb; }
.hero-search button {
  background: linear-gradient(135deg, var(--accent) 0%, #cf9a2e 100%);
  border: none;
  padding: 1.15rem 1.85rem;
  color: white;
  font-size: 1rem;
  font-weight: 700;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 60px;
  font-family: inherit;
  letter-spacing: 0.3px;
}
.hero-search button:hover {
  background: linear-gradient(135deg, #cf9a2e 0%, var(--accent-light) 100%);
}

/* ─── Stats Bar ──────────────────────────────────────────── */
.stats-bar {
  background: var(--white);
  position: relative;
}
.stats-bar::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg,
    var(--primary-dark) 0%,
    var(--primary-light) 30%,
    var(--accent) 50%,
    var(--accent-light) 60%,
    var(--accent) 70%,
    var(--primary-light) 85%,
    var(--primary-dark) 100%);
  opacity: 0.55;
}
.stats-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
.stat {
  text-align: center;
  padding: 2rem 3.5rem;
  position: relative;
  flex: 1;
  min-width: 140px;
  max-width: 240px;
}
.stat + .stat::before {
  content: '';
  position: absolute;
  left: 0; top: 20%; height: 60%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--border), transparent);
}
.stat-number {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 3rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  letter-spacing: -2px;
}
.stat-label {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ─── Page Header (category pages) ──────────────────────── */
.page-header {
  background: linear-gradient(150deg, var(--primary-deeper) 0%, var(--primary) 55%, var(--primary-light) 100%);
  padding: 4.5rem 2.5rem 4rem;
  color: white;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cpath d='M40 16 L64 40 L40 64 L16 40 Z' fill='none' stroke='rgba(255,255,255,0.03)' stroke-width='1'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}
.page-header::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 64px;
  background: var(--bg);
  clip-path: ellipse(60% 100% at 50% 100%);
  z-index: 1;
}
.page-header-inner {
  max-width: 1240px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  animation: fadeInUp 0.5s ease both;
}
.breadcrumb {
  font-size: 0.88rem;
  opacity: 0.6;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.breadcrumb a { color: rgba(255,255,255,0.68); transition: color 0.2s; }
.breadcrumb a:hover { color: white; }
.breadcrumb-sep { opacity: 0.45; }

.page-header-icon   { font-size: 2.8rem; margin-bottom: 0.8rem; display: block; }
.page-header-logo {
  width: 76px; height: 76px;
  object-fit: contain;
  filter: drop-shadow(0 6px 16px rgba(0,0,0,0.35));
  display: inline-block;
  vertical-align: middle;
  margin-bottom: 0.6rem;
}
.page-header h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
  line-height: 1.18;
}
.page-header p {
  font-size: 1.05rem;
  opacity: 0.84;
  max-width: 660px;
  line-height: 1.8;
}
.page-header-count {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(196,146,42,0.16);
  border: 1px solid rgba(196,146,42,0.36);
  color: var(--accent-light);
  padding: 0.38rem 1.1rem;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 700;
  margin-top: 1.35rem;
}

/* ─── Main content area ──────────────────────────────────── */
.main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 4rem 2.5rem 5.5rem;
}

/* ─── Section header ─────────────────────────────────────── */
.section-hd {
  margin-bottom: 2.25rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.section-hd h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.22;
  position: relative;
  padding-left: 1.2rem;
}
.section-hd h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8%; bottom: 8%;
  width: 5px;
  border-radius: 5px;
  background: linear-gradient(to bottom, var(--accent), var(--accent-light));
}
.section-hd h2 span {
  display: block;
  font-family: 'Lato', sans-serif;
  font-size: 0.93rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ─── Category cards ─────────────────────────────────────── */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(308px, 1fr));
  gap: 1.6rem;
  margin-bottom: 4.5rem;
}
.cat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.25rem 2rem;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--border);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.55s ease both;
}
.cat-card:nth-child(1) { animation-delay: 0.06s; }
.cat-card:nth-child(2) { animation-delay: 0.14s; }
.cat-card:nth-child(3) { animation-delay: 0.22s; }

/* Top accent stripe */
.cat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: var(--cat-color, var(--primary));
  transition: height 0.3s ease;
}
/* Ambient glow on hover */
.cat-card::after {
  content: '';
  position: absolute;
  top: -40%; left: -10%;
  width: 110%; height: 100%;
  background: radial-gradient(ellipse at 40% 30%, rgba(196,146,42,0.055) 0%, transparent 60%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s;
}
.cat-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(196,146,42,0.12);
  border-color: rgba(196,146,42,0.45);
}
.cat-card:hover::before { height: 6px; }
.cat-card:hover::after  { opacity: 1; }

.cat-icon {
  width: 72px;
  height: 72px;
  background: var(--cat-color, var(--primary));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 1.35rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  transition: var(--transition);
}
.cat-card:hover .cat-icon {
  transform: scale(1.06);
  box-shadow: 0 12px 32px rgba(0,0,0,0.2);
}
.cat-logo-img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 10px;
  border-radius: 14px;
  display: block;
}
.cat-logo-fallback {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
}
.cat-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.75rem;
  letter-spacing: -0.2px;
}
.cat-desc {
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.74;
  flex: 1;
  margin-bottom: 1.6rem;
}
.cat-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border-light);
}
.cat-count {
  font-size: 0.82rem;
  color: var(--text-muted);
  background: var(--bg);
  padding: 0.32rem 0.9rem;
  border-radius: 100px;
  font-weight: 700;
}
.cat-link {
  color: var(--accent);
  font-weight: 800;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: gap 0.28s ease, color 0.2s;
}
.cat-card:hover .cat-link { gap: 12px; color: var(--primary); }

/* ─── Filter pills ───────────────────────────────────────── */
.filter-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.pill {
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--text-muted);
  padding: 0.55rem 1.3rem;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 700;
  transition: var(--transition);
  letter-spacing: 0.2px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.pill:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(27,60,114,0.04);
}
.pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  box-shadow: 0 5px 16px rgba(27,60,114,0.28);
}

/* ─── Search (inside pages) ──────────────────────────────── */
.page-search { margin-bottom: 1.75rem; }
.search-wrap {
  position: relative;
  max-width: 460px;
}
.search-wrap .s-icon {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  font-size: 1rem;
}
.search-wrap input {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem 0.9rem 3rem;
  font-size: 1rem;
  outline: none;
  transition: var(--transition);
  background: var(--white);
  color: var(--text);
  min-height: 54px;
  font-family: inherit;
  box-shadow: var(--shadow-xs);
}
.search-wrap input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(27,60,114,0.1);
}

/* ─── Video grid ─────────────────────────────────────────── */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(318px, 1fr));
  gap: 1.6rem;
}
.video-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--border);
  transition: var(--transition);
  animation: fadeInUp 0.45s ease both;
}
.video-card:nth-child(1) { animation-delay: 0.04s; }
.video-card:nth-child(2) { animation-delay: 0.10s; }
.video-card:nth-child(3) { animation-delay: 0.17s; }
.video-card:nth-child(4) { animation-delay: 0.24s; }
.video-card:nth-child(5) { animation-delay: 0.31s; }
.video-card:nth-child(6) { animation-delay: 0.38s; }
.video-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(196,146,42,0.1);
  border-color: rgba(196,146,42,0.28);
}

/* Thumbnail */
.v-thumb {
  position: relative;
  padding-top: 56.25%;
  background: #08142a;
  cursor: pointer;
  overflow: hidden;
}
.v-thumb img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}
.video-card:hover .v-thumb img { transform: scale(1.08); }

.v-thumb-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to top,
    rgba(5,15,28,0.72) 0%,
    rgba(5,15,28,0.08) 40%,
    transparent 100%
  );
  transition: opacity 0.3s;
}

/* Play button — cinematic ring + pulse */
.play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 64px; height: 64px;
  background: rgba(196,146,42,0.92);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  color: white;
  transition: var(--transition);
  box-shadow: 0 8px 28px rgba(196,146,42,0.5), 0 0 0 10px rgba(196,146,42,0.12);
  backdrop-filter: blur(6px);
}
.play-btn::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 100%; height: 100%;
  border-radius: 50%;
  border: 2px solid rgba(196,146,42,0.55);
  animation: pulseRing 2.2s ease-out infinite;
  pointer-events: none;
}
.video-card:hover .play-btn {
  background: var(--accent);
  transform: translate(-50%, -50%) scale(1.12);
  box-shadow: 0 10px 36px rgba(196,146,42,0.65), 0 0 0 12px rgba(196,146,42,0.14);
}

/* Presentation thumb */
.v-thumb.is-pres {
  background: linear-gradient(135deg, var(--primary-deeper), var(--primary));
  cursor: default;
}
.pres-icon {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  text-align: center; color: white;
}
.pres-icon .pi-emoji { font-size: 3rem; display: block; }
.pres-icon .pi-label {
  font-size: 0.74rem; font-weight: 700; opacity: 0.7;
  margin-top: 7px; letter-spacing: 0.7px; text-transform: uppercase;
}

/* Iframe after click */
.v-iframe-wrap { display: none; padding: 0 1.15rem 1.15rem; }
.v-iframe-wrap.show { display: block; }
.v-iframe-wrap iframe {
  width: 100%; aspect-ratio: 16/9;
  border-radius: var(--radius-sm); border: none;
}

/* Card info */
.v-info { padding: 1.3rem 1.4rem 1.6rem; }
.v-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--accent);
  background: var(--accent-pale);
  padding: 0.22rem 0.8rem;
  border-radius: 100px;
  margin-bottom: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border: 1px solid rgba(196,146,42,0.22);
}
.v-title {
  font-size: 1.06rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.55rem;
  line-height: 1.45;
  letter-spacing: -0.1px;
}
.v-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.v-pres-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  border: none;
  padding: 0.82rem 1.45rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 700;
  margin-top: 0.95rem;
  transition: var(--transition);
  text-decoration: none;
  min-height: 48px;
  box-shadow: 0 5px 16px rgba(27,60,114,0.22);
}
.v-pres-btn:hover {
  background: linear-gradient(135deg, var(--primary-light), #3461b5);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(27,60,114,0.32);
}

/* ─── No results ─────────────────────────────────────────── */
.no-results {
  display: none;
  text-align: center;
  padding: 5.5rem 2rem;
  color: var(--text-muted);
}
.no-results.show    { display: block; }
.no-results-icon    { font-size: 3.5rem; margin-bottom: 1.25rem; }
.no-results h3 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--primary);
  font-size: 1.45rem;
  margin-bottom: 0.65rem;
}

/* ─── Coming soon ─────────────────────────────────────────── */
.coming-soon-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 5.5rem 2rem;
  text-align: center;
  border: 2px dashed var(--border);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.coming-soon-box::before {
  content: '';
  position: absolute;
  top: -120px; left: 50%;
  transform: translateX(-50%);
  width: 540px; height: 540px;
  background: radial-gradient(circle, rgba(196,146,42,0.06) 0%, transparent 65%);
  pointer-events: none;
}
.coming-soon-box::after {
  content: '';
  position: absolute;
  bottom: -80px; right: -80px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(27,60,114,0.05) 0%, transparent 70%);
  pointer-events: none;
}
.cs-emoji {
  font-size: 4.2rem;
  margin-bottom: 1.35rem;
  display: block;
  animation: float 5.5s ease-in-out infinite;
}
.coming-soon-box h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.85rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 1rem;
}
.coming-soon-box p {
  color: var(--text-muted);
  max-width: 460px;
  margin: 0 auto;
  line-height: 1.8;
  font-size: 1rem;
}

/* ─── Search state ───────────────────────────────────────── */
#search-section { display: none; }
#main-section   { display: block; }

/* ─── Footer ─────────────────────────────────────────────── */
footer {
  background: var(--primary-deeper);
  color: white;
  padding: 4rem 2.5rem 1.75rem;
  margin-top: 3.5rem;
  position: relative;
  overflow: hidden;
}
footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg,
    var(--primary) 0%,
    var(--accent) 35%,
    var(--accent-light) 50%,
    var(--accent) 65%,
    var(--primary) 100%);
}
footer::after {
  content: '';
  position: absolute;
  top: -180px; right: -120px;
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(196,146,42,0.06) 0%, transparent 62%);
  pointer-events: none;
}
.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
  padding-bottom: 2.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.09);
  position: relative;
  z-index: 1;
}
.footer-brand { display: flex; align-items: center; gap: 18px; }
.footer-logo-img {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--accent);
  object-fit: contain;
  padding: 2px;
  border: 2.5px solid rgba(196,146,42,0.48);
  box-shadow: 0 0 0 5px rgba(196,146,42,0.1);
}
.footer-logo-fb {
  width: 54px; height: 54px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
}
.footer-name { font-weight: 800; font-size: 1.06rem; letter-spacing: -0.2px; }
.footer-sub  { font-size: 0.84rem; opacity: 0.52; margin-top: 3px; }
.footer-right { text-align: right; position: relative; z-index: 1; }
.footer-right p { font-size: 0.94rem; opacity: 0.7; margin-bottom: 1.1rem; }
.wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25D366;
  color: white;
  padding: 0.85rem 1.6rem;
  border-radius: 11px;
  font-weight: 700;
  font-size: 0.97rem;
  transition: var(--transition);
  box-shadow: 0 5px 18px rgba(37,211,102,0.32);
  min-height: 48px;
}
.wa-btn:hover {
  background: #1ebe5d;
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(37,211,102,0.46);
}
.footer-bottom {
  max-width: 1240px;
  margin: 1.5rem auto 0;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.38);
  position: relative;
  z-index: 1;
}

/* ─── WhatsApp FAB ───────────────────────────────────────── */
.wa-fab {
  position: fixed;
  bottom: 1.75rem; right: 1.75rem;
  width: 64px; height: 64px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 8px 28px rgba(37,211,102,0.48);
  z-index: 100;
  transition: var(--transition);
  border: 3px solid rgba(255,255,255,0.92);
}
.wa-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 36px rgba(37,211,102,0.62);
}
.wa-fab-tooltip {
  position: absolute;
  right: 72px;
  background: rgba(0,0,0,0.78);
  color: white;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.wa-fab:hover .wa-fab-tooltip { opacity: 1; }

/* ─── Utility ─────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 4rem 0;
}
.text-muted  { color: var(--text-muted); }
.text-accent { color: var(--accent); }

/* ─── Content Type Badge ─────────────────────────────────── */
.v-type-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.22rem 0.65rem;
  border-radius: 100px;
  letter-spacing: 0.4px;
  z-index: 3;
  backdrop-filter: blur(6px);
  pointer-events: none;
}
.v-type-badge.is-video {
  background: rgba(196,146,42,0.88);
  color: white;
  box-shadow: 0 2px 8px rgba(196,146,42,0.35);
}
.v-type-badge.is-pres {
  background: rgba(27,60,114,0.88);
  color: white;
  box-shadow: 0 2px 8px rgba(27,60,114,0.35);
}

/* ─── "Baru" Badge ───────────────────────────────────────── */
.v-new-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(135deg, #e53935, #ef5350);
  color: white;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  z-index: 3;
  box-shadow: 0 2px 8px rgba(229,57,53,0.4);
  pointer-events: none;
}

/* ─── Back to Top ────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 6.5rem;
  right: 1.75rem;
  width: 46px;
  height: 46px;
  background: var(--primary);
  color: white;
  border: 2px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  font-size: 1.15rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(10,24,40,0.25);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s, transform 0.3s, background 0.2s;
  pointer-events: none;
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-family: inherit;
}
.back-to-top.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover {
  background: var(--primary-light);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(10,24,40,0.3);
}

/* ─── Developer Signature ────────────────────────────────── */
.dev-sig {
  color: rgba(255,255,255,0.22);
  cursor: default;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  transition: color 0.2s;
  display: inline-block;
  margin-left: 6px;
}
.dev-sig:hover { color: rgba(255,255,255,0.55); }

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav-links     { display: none; }
  .nav-hamburger { display: flex; }
  .video-grid    { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
  .categories-grid { grid-template-columns: 1fr; }
  .stat          { padding: 1.5rem 2rem; max-width: none; }
  .main          { padding: 3rem 1.75rem 4.5rem; }
}

@media (max-width: 640px) {
  .hero          { padding: 3.5rem 1.5rem 3.5rem; }
  .hero h1       { font-size: 2.25rem; }
  .hero p        { font-size: 1rem; }
  .hero-badge    { font-size: 0.68rem; }
  .hero::after   { height: 52px; }
  .hero-deco     { width: 360px; height: 360px; }
  .hero-deco-text { font-size: 16rem; }

  .main          { padding: 2.25rem 1.25rem 3.5rem; }
  .video-grid    { grid-template-columns: 1fr; gap: 1.25rem; }
  .categories-grid { grid-template-columns: 1fr; gap: 1.25rem; }

  .stats-inner   { flex-direction: row; flex-wrap: nowrap; }
  .stat          { padding: 1.25rem 0.75rem; flex: 1; min-width: 0; max-width: none; }
  .stat-number   { font-size: 2.1rem; letter-spacing: -1px; }
  .stat-label    { font-size: 0.66rem; }

  .section-hd    { flex-direction: column; align-items: flex-start; }
  .section-hd h2 { font-size: 1.65rem; }

  .page-header   { padding: 3rem 1.5rem 3.25rem; }
  .page-header h1 { font-size: 2.2rem; }
  .page-header p  { font-size: 1rem; }
  .page-header::after { height: 44px; }

  .cat-icon      { width: 64px; height: 64px; border-radius: 16px; }
  .cat-name      { font-size: 1.3rem; }
  .cat-desc      { font-size: 0.97rem; }

  .v-title       { font-size: 1.07rem; }
  .v-desc        { font-size: 0.94rem; }
  .play-btn      { width: 64px; height: 64px; }

  .pill          { font-size: 0.88rem; min-height: 46px; padding: 0.6rem 1.1rem; }
  .search-wrap input { font-size: 1rem; min-height: 54px; }

  .footer-inner  { flex-direction: column; }
  .footer-right  { text-align: left; }

  .wa-fab        { width: 62px; height: 62px; bottom: 1.25rem; right: 1.25rem; }
  .back-to-top   { width: 44px; height: 44px; bottom: 6rem; right: 1.25rem; }

  .coming-soon-box { padding: 4rem 1.5rem; }
  .coming-soon-box h3 { font-size: 1.6rem; }

  .nav-inner     { height: 76px; padding: 0 1.25rem; }
}
