/*
Theme Name: SD Bahrul Ulum
Theme URI: https://sdbahrululum.sch.id
Author: SD Bahrul Ulum
Description: Tema sekolah dasar Islami - bersih, ceria, dan profesional.
Version: 5.0
License: GPL v2 or later
Text Domain: sdbahrululum
*/

/* ===== TOKENS ===== */
:root {
  --green:       #198754;
  --green-dark:  #146c43;
  --green-light: #20c997;
  --green-pale:  #e8f5e9;
  --green-bg:    #f2f9f5;
  --accent:      #ffb300;
  --accent-hover:#ff8f00;
  --white:       #ffffff;
  --text:        #2d3748;
  --text-mid:    #4a5568;
  --text-soft:   #718096;
  --gray-line:   #e2e8f0;
  
  --radius-sm:   12px;
  --radius:      24px;
  --radius-lg:   40px;
  --radius-pill: 999px;
  --radius-blob: 60% 40% 30% 70% / 60% 30% 70% 40%;
  
  --shadow-sm:   0 4px 12px rgba(25, 135, 84, 0.08);
  --shadow:      0 12px 30px rgba(25, 135, 84, 0.12);
  --shadow-hover:0 20px 40px rgba(25, 135, 84, 0.18);
  
  --transition:  all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --font: 'Poppins', system-ui, sans-serif;
  --max-w: 1200px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--white);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--green-dark); }
ul, ol { padding-left: 1.25rem; }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ===== TYPOGRAPHY ===== */
h1,h2,h3,h4,h5 { line-height: 1.3; font-weight: 700; color: var(--text); }
p { color: var(--text-mid); }

/* ===== SECTION ===== */
.section { padding: 80px 0; position: relative; }
.section--alt { background: var(--green-bg); }
.section__head { text-align: center; margin-bottom: 56px; }
.section__tag {
  display: inline-block;
  background: var(--white); color: var(--green);
  font-size: 13px; font-weight: 700; letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 6px 18px; border-radius: var(--radius-pill);
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--green-pale);
}
.section__title { font-size: clamp(28px, 4vw, 38px); color: var(--text); margin-bottom: 16px; }
.section__title span { color: var(--green); position: relative; z-index: 1; }
.section__title span::after {
  content: ''; position: absolute; bottom: 4px; left: 0; right: 0;
  height: 12px; background: var(--accent); opacity: 0.3; z-index: -1;
  border-radius: 4px; transform: rotate(-1deg);
}
.section__sub { font-size: 16px; color: var(--text-mid); max-width: 600px; margin: 0 auto; line-height: 1.8; }

/* ===== SHAPE DIVIDERS (WAVES) ===== */
.wave-top { position: absolute; top: -1px; left: 0; width: 100%; overflow: hidden; line-height: 0; transform: rotate(180deg); }
.wave-bottom { position: absolute; bottom: -1px; left: 0; width: 100%; overflow: hidden; line-height: 0; }
.wave-top svg, .wave-bottom svg { position: relative; display: block; width: calc(100% + 1.3px); height: 50px; }
.wave-top .shape-fill, .wave-bottom .shape-fill { fill: var(--white); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 32px; border-radius: var(--radius-pill);
  font-size: 15px; font-weight: 600; font-family: var(--font);
  border: none; cursor: pointer; transition: var(--transition);
  white-space: nowrap; text-decoration: none;
}
.btn--primary {
  background: var(--green); color: var(--white);
  box-shadow: 0 6px 16px rgba(25, 135, 84, 0.25);
}
.btn--primary:hover {
  background: var(--green-dark); color: var(--white);
  transform: translateY(-3px); box-shadow: 0 10px 24px rgba(25, 135, 84, 0.35);
}
.btn--accent {
  background: var(--accent); color: var(--text);
  box-shadow: 0 6px 16px rgba(255, 179, 0, 0.3);
}
.btn--accent:hover {
  background: var(--accent-hover); color: var(--text);
  transform: translateY(-3px); box-shadow: 0 10px 24px rgba(255, 179, 0, 0.4);
}
.btn--outline {
  background: var(--white); color: var(--green);
  border: 2px solid var(--green-pale); box-shadow: var(--shadow-sm);
}
.btn--outline:hover {
  border-color: var(--green); transform: translateY(-3px);
  box-shadow: var(--shadow);
}

/* ===== TOP BAR TICKER (Vertical Green) ===== */
.top-bar-ticker {
  background: var(--green-dark); /* Keep the brand green */
  display: flex;
  align-items: stretch;
  height: 38px;
  overflow: hidden;
  font-size: 13px;
  font-family: var(--font);
  position: relative;
  z-index: 101;
}
.ticker-label {
  background: #ff6b00; /* Distinct orange badge for visual accent */
  color: #ffffff;
  font-weight: 700;
  display: flex;
  align-items: center;
  padding: 0 16px;
  position: relative;
  z-index: 2;
  white-space: nowrap;
}
.ticker-label::after {
  content: '';
  position: absolute;
  right: -10px;
  top: 0;
  bottom: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 38px 0 0 10px;
  border-color: transparent transparent transparent #ff6b00;
  z-index: 2;
}
.ticker-wrap-vertical {
  flex: 1;
  overflow: hidden;
  position: relative;
  height: 38px;
}
.ticker-list-vertical {
  display: flex;
  flex-direction: column;
  animation: ticker-vertical-slide 15s ease-in-out infinite;
}
.ticker-list-vertical:hover {
  animation-play-state: paused;
}
.ticker-item-vertical {
  height: 38px;
  display: flex;
  align-items: center;
  padding-left: 20px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ticker-item-vertical a, .ticker-item-vertical span {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
}
.ticker-item-vertical a:hover {
  text-decoration: underline;
  color: #fef08a; /* soft yellow on hover */
}
.ticker-contact {
  display: flex;
  align-items: center;
  padding: 0 20px;
  background: rgba(0, 0, 0, 0.15); /* darker overlay for highlight */
  font-weight: 600;
  border-left: 1px solid rgba(255,255,255,0.1);
}
.ticker-contact a {
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  text-decoration: none;
}
.ticker-contact a:hover {
  color: #fef08a; /* soft highlight on hover */
}
.ticker-contact i {
  font-size: 15px;
  color: #4ade80; /* bright green for WhatsApp icon */
}

/* Vertical translation keyframes */
@keyframes ticker-vertical-slide {
  0%, 16% { transform: translateY(0); }
  20%, 36% { transform: translateY(-38px); }
  40%, 56% { transform: translateY(-76px); }
  60%, 76% { transform: translateY(-114px); }
  80%, 96% { transform: translateY(-152px); }
  100% { transform: translateY(-190px); }
}

@media (max-width: 768px) {
  .ticker-wrap-vertical { display: none !important; }
  .ticker-label { font-size: 12px; padding: 0 10px; }
  .ticker-contact { padding: 0 12px; flex: 1; justify-content: flex-end; }
  .ticker-contact a span { font-size: 12px; }
}

/* ===== HEADER ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-line);
  transition: box-shadow .3s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); border-bottom-color: transparent; }
.header-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
  height: 76px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

/* Logo */
.logo { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.logo__icon {
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--green); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 800; flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(25, 135, 84, 0.2);
}
.logo__icon img { width: 48px; height: 48px; object-fit: cover; border-radius: 14px; }
.logo__name { font-size: 18px; font-weight: 800; color: var(--text); line-height: 1.1; letter-spacing: -0.3px; }
.logo__name span { color: var(--green); }
.logo__tagline { font-size: 11px; color: var(--text-soft); font-weight: 500; letter-spacing: 0.5px; margin-top: 3px; text-transform: uppercase; }

/* Nav */
.nav { display: flex; align-items: center; }
.desktop-nav-row {
  background: var(--green);
  display: flex;
  justify-content: center;
  z-index: 99;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.desktop-nav-row .nav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0px;
  list-style: none;
  padding: 0 24px;
  margin: 0 auto;
  width: 100%;
  max-width: var(--max-w);
}
.desktop-nav-row .nav-menu li { position: relative; }
.desktop-nav-row .nav-menu a {
  padding: 12px 20px;
  font-size: 13.5px;
  font-weight: 600;
  color: #ffffff; /* White text on green bar */
  transition: var(--transition);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  border-radius: 0;
}
.desktop-nav-row .nav-menu a:hover, 
.desktop-nav-row .nav-menu li:hover > a, 
.desktop-nav-row .nav-menu a.active {
  background: rgba(0, 0, 0, 0.12); /* Subtle dark overlay on hover */
  color: #ffffff;
}

/* Dropdown Sub Menus (Desktop) */
.nav-menu .menu-item-has-children > a::after {
  content: '\f107'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
  margin-left: 6px; font-size: 11px; opacity: 0.7;
  transition: all .2s ease;
}
.nav-menu .menu-item-has-children:hover > a::after {
  transform: rotate(180deg);
}
.nav-menu .sub-menu {
  position: absolute; top: 100%; left: 0; width: 230px;
  background: var(--white); border: 1px solid var(--gray-line);
  border-radius: var(--radius-sm); box-shadow: var(--shadow);
  padding: 8px 0; margin: 0; list-style: none;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s;
  z-index: 100;
}
.nav-menu .menu-item-has-children:hover > .sub-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-menu .sub-menu li { width: 100%; }
.nav-menu .sub-menu a {
  display: block; padding: 10px 16px; font-size: 13px;
  color: var(--text-mid); font-weight: 500; text-align: left;
  border-radius: 0; transition: var(--transition);
  position: relative;
}
.nav-menu .sub-menu a:hover, .nav-menu .sub-menu li:hover > a {
  background: var(--green-pale); color: var(--green);
}

/* Deep Nesting (Grandchild submenus - slide to the right) */
.nav-menu .sub-menu .menu-item-has-children > a::after {
  content: '\f105'; /* caret right arrow */
  display: inline-block !important; /* override global sub-menu a::after display none */
  float: right;
  margin-left: 0;
  margin-top: 3px;
}
.nav-menu .sub-menu .menu-item-has-children:hover > a::after {
  transform: rotate(0deg) translateX(3px);
}
.nav-menu .sub-menu .sub-menu {
  top: -8px; /* align with parent padding boundary */
  left: 100%;
  transform: translateX(12px);
  opacity: 0;
  visibility: hidden;
}
.nav-menu .sub-menu .menu-item-has-children:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}
.nav-menu .sub-menu a::after { display: none !important; }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 12px; }
.btn-search {
  width: 42px; height: 42px; border-radius: var(--radius-pill);
  background: var(--green-bg); border: none;
  color: var(--green); cursor: pointer; transition: var(--transition);
  display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.btn-search:hover { background: var(--green-pale); transform: scale(1.05); }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  width: 42px; height: 42px; align-items: center; justify-content: center;
  border: none; border-radius: var(--radius-pill);
  background: var(--green-bg); cursor: pointer; transition: var(--transition);
}
.hamburger span { display: block; width: 20px; height: 2px; background: var(--green); border-radius: 2px; transition: var(--transition); }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* Mobile Nav */
.mobile-nav {
  display: none; flex-direction: column;
  background: var(--white); border-top: 1px solid var(--gray-line);
  padding: 16px 24px 24px; position: absolute; top: 100%; left: 0; width: 100%;
  box-shadow: var(--shadow); z-index: 99;
  max-height: 80vh; overflow-y: auto;
}
.mobile-nav.open { display: flex; }
.mobile-nav-menu { display: flex; flex-direction: column; list-style: none; padding: 0; margin: 0; }
.mobile-nav-menu li { width: 100%; position: relative; }
.mobile-nav-menu a {
  display: block; padding: 12px 16px; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 600; color: var(--text-mid);
  transition: var(--transition); margin-bottom: 4px;
}
.mobile-nav-menu a:hover { background: var(--green-bg); color: var(--green); padding-left: 20px; }

/* Mobile Dropdowns */
.mobile-nav-menu .sub-menu {
  list-style: none; padding-left: 20px; margin: 4px 0 8px;
  border-left: 2px solid var(--green-pale);
  display: block;
}
.mobile-nav-menu .sub-menu a {
  font-size: 14px; font-weight: 500; padding: 8px 16px;
  color: var(--text-soft); margin-bottom: 2px;
}
.mobile-nav-menu .sub-menu a:hover { padding-left: 24px; }

/* ===== HERO (SPLIT LAYOUT) ===== */
.hero {
  padding: 60px 0 100px;
  background: linear-gradient(180deg, var(--white) 0%, var(--green-bg) 100%);
  position: relative; overflow: hidden;
}
.hero__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
}
.hero__content { padding-right: 40px; position: relative; z-index: 2; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white); border: 1px solid var(--green-pale);
  padding: 8px 20px; border-radius: var(--radius-pill);
  font-size: 13px; font-weight: 700; color: var(--green);
  margin-bottom: 24px; box-shadow: var(--shadow-sm);
}
.hero__badge i { color: var(--accent); font-size: 16px; }
.hero h1 {
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 800; line-height: 1.2;
  color: var(--text); margin-bottom: 20px;
}
.hero h1 span { color: var(--green); }
.hero p {
  font-size: 17px; color: var(--text-mid); margin-bottom: 32px; line-height: 1.8;
}
.hero__btns { display: flex; gap: 16px; flex-wrap: wrap; }

.hero__visual { position: relative; text-align: center; }
.hero__visual-bg {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 100%; padding-bottom: 100%;
  background: var(--green); border-radius: var(--radius-blob);
  z-index: 0; opacity: 0.1;
  animation: float-blob 8s ease-in-out infinite alternate;
}
.hero__img-wrap {
  position: relative; z-index: 1;
  border-radius: var(--radius-blob);
  overflow: hidden; box-shadow: var(--shadow);
  border: 8px solid var(--white);
  background: var(--white);
  animation: float 6s ease-in-out infinite;
}
.hero__img-wrap img { width: 100%; height: auto; display: block; object-fit: cover; }

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}
@keyframes float-blob {
  0% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; transform: translate(-50%, -50%) rotate(0deg); }
  50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
  100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; transform: translate(-50%, -50%) rotate(10deg); }
}

/* ===== STATS ===== */
.stats {
  max-width: var(--max-w); margin: -60px auto 40px;
  padding: 0 24px; position: relative; z-index: 10;
}
.stats__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 32px 16px;
  border: 1px solid var(--green-pale);
}
.stat-card {
  text-align: center; border-right: 1px solid var(--gray-line); padding: 0 16px;
}
.stat-card:last-child { border-right: none; }
.stat-card__icon {
  width: 56px; height: 56px; margin: 0 auto 12px;
  background: var(--green-pale); color: var(--green);
  border-radius: var(--radius-pill);
  display: flex; align-items: center; justify-content: center; font-size: 24px;
}
.stat-card__num { font-size: 32px; font-weight: 800; color: var(--text); line-height: 1.1; margin-bottom: 4px; }
.stat-card__label { font-size: 13px; font-weight: 600; color: var(--text-soft); }

/* ===== SAMBUTAN (PRINCIPAL) ===== */
.sambutan {
  display: grid; grid-template-columns: 320px 1fr; gap: 64px; align-items: center;
}
.sambutan__photo-wrap { position: relative; text-align: center; }
.sambutan__blob {
  position: absolute; inset: -15px;
  background: var(--green-pale); border-radius: var(--radius-blob);
  z-index: 0;
}
.sambutan__photo {
  position: relative; z-index: 1;
  width: 260px; height: 260px; border-radius: var(--radius-blob);
  object-fit: cover; margin: 0 auto;
  border: 6px solid var(--white); box-shadow: var(--shadow);
}
.sambutan__badge-role {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  background: var(--green); color: var(--white);
  font-size: 12px; font-weight: 700;
  padding: 8px 20px; border-radius: var(--radius-pill); z-index: 2;
  box-shadow: var(--shadow-sm); border: 2px solid var(--white);
  white-space: nowrap;
}
.sambutan__quote {
  position: relative; padding: 24px 32px; background: var(--white);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  border: 1px solid var(--green-pale); margin-bottom: 24px;
}
.sambutan__quote::before {
  content: '\f10d'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
  position: absolute; top: -16px; left: 24px;
  background: var(--accent); color: var(--white);
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; box-shadow: var(--shadow-sm);
}
.sambutan__quote p {
  font-size: 16px; line-height: 1.8; color: var(--text-mid); font-style: italic; margin-bottom: 0;
}
.sambutan__name { font-size: 18px; font-weight: 700; color: var(--text); padding-left: 12px; }
.sambutan__name span { display: block; font-size: 14px; font-weight: 500; color: var(--green); margin-top: 4px; }

/* ===== ABOUT ===== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-img-wrap { position: relative; }
.about-img-wrap::before {
  content: ''; position: absolute; inset: -20px;
  background: var(--accent); border-radius: var(--radius-blob);
  opacity: 0.1; z-index: -1;
}
.about-img {
  width: 100%; border-radius: var(--radius);
  box-shadow: var(--shadow); border: 6px solid var(--white);
}
.about-text h2 { font-size: clamp(24px,3.5vw,32px); margin-bottom: 20px; }
.about-text p { font-size: 16px; margin-bottom: 24px; line-height: 1.8; }
.feature-list { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 32px; }
.feature-list li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 15px; font-weight: 600; color: var(--text);
}
.feature-list li i {
  color: var(--green); width: 24px; height: 24px;
  background: var(--green-pale); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; flex-shrink: 0; margin-top: 2px;
}

/* ===== PROGRAM CARDS ===== */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.program-card {
  background: var(--white); border: 1px solid var(--gray-line);
  border-radius: var(--radius); padding: 36px 28px;
  transition: var(--transition); text-align: center; position: relative;
  z-index: 1; overflow: hidden;
}
.program-card::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 0;
  background: var(--green); transition: var(--transition); z-index: -1;
}
.program-card:hover { border-color: var(--green); box-shadow: var(--shadow-hover); transform: translateY(-8px); }
.program-card:hover::before { height: 6px; }
.program-card__icon {
  width: 72px; height: 72px; margin: 0 auto 24px;
  background: var(--green-pale); border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; color: var(--green);
  transition: var(--transition);
}
.program-card:hover .program-card__icon { background: var(--green); color: var(--white); transform: scale(1.1) rotate(5deg); }
.program-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.program-card p { font-size: 14.5px; color: var(--text-mid); line-height: 1.7; }

/* ===== NEWS CARDS ===== */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card {
  background: var(--white); border: 1px solid var(--gray-line);
  border-radius: var(--radius); overflow: hidden;
  transition: var(--transition); display: flex; flex-direction: column;
}
.news-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-6px); }
.news-card__thumb { overflow: hidden; height: 220px; background: var(--green-bg); position: relative; }
.news-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.news-card:hover .news-card__thumb img { transform: scale(1.05); }
.news-card__cat {
  position: absolute; top: 16px; left: 16px;
  font-size: 12px; font-weight: 700; color: var(--white);
  background: var(--accent); padding: 4px 12px; border-radius: var(--radius-pill);
}
.news-card__body { padding: 24px; flex-grow: 1; display: flex; flex-direction: column; }
.news-card__date { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-soft); font-weight: 500; margin-bottom: 12px; }
.news-card__date i { color: var(--green); }
.news-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 12px; line-height: 1.4; }
.news-card h3 a { color: var(--text); }
.news-card h3 a:hover { color: var(--green); }
.news-card p { font-size: 14.5px; color: var(--text-mid); line-height: 1.6; margin-bottom: 20px; flex-grow: 1; }
.news-card__more { font-size: 14px; font-weight: 700; color: var(--green); display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; }
.news-card__more:hover { gap: 10px; }

/* ===== TESTIMONIALS ===== */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testi-card {
  background: var(--white); border: 1px solid var(--green-pale);
  border-radius: var(--radius); padding: 32px 24px;
  box-shadow: var(--shadow-sm); position: relative; transition: var(--transition);
}
.testi-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.testi-card::before {
  content: '\f10e'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
  position: absolute; top: 24px; right: 24px;
  font-size: 40px; color: var(--green-pale); z-index: 0;
}
.testi-card__text {
  position: relative; z-index: 1;
  font-size: 15px; color: var(--text-mid); line-height: 1.7;
  margin-bottom: 24px; font-style: italic; min-height: 80px;
}
.testi-card__user { display: flex; align-items: center; gap: 16px; position: relative; z-index: 1; }
.testi-card__avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--green); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0; border: 2px solid var(--green-pale);
}
.testi-card__name { font-size: 15px; font-weight: 700; color: var(--text); }
.testi-card__role { font-size: 13px; color: var(--text-soft); }

/* ===== PPDB BANNER ===== */
.ppdb-band {
  background: var(--green) url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><circle cx="20" cy="20" r="15" fill="rgba(255,255,255,0.05)"/><circle cx="80" cy="70" r="25" fill="rgba(255,255,255,0.05)"/><circle cx="90" cy="10" r="10" fill="rgba(255,255,255,0.05)"/><circle cx="10" cy="80" r="20" fill="rgba(255,255,255,0.05)"/></svg>') no-repeat center center / cover;
  border-radius: var(--radius-lg); padding: 64px 40px;
  color: var(--white); text-align: center;
  position: relative; overflow: hidden;
  box-shadow: 0 20px 40px rgba(25, 135, 84, 0.2);
}
.ppdb-band__badge {
  display: inline-block; background: var(--accent); color: var(--text);
  font-size: 14px; font-weight: 700; padding: 6px 20px;
  border-radius: var(--radius-pill); margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(255,179,0,0.3);
}
.ppdb-band h2 { font-size: clamp(26px,4vw,36px); color: var(--white); margin-bottom: 16px; }
.ppdb-band p { font-size: 16px; color: var(--white); opacity: .9; margin-bottom: 32px; max-width: 600px; margin-left: auto; margin-right: auto; line-height: 1.8; }
.ppdb-band__btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.ppdb-band .btn--outline { border-color: rgba(255,255,255,0.4); color: var(--white); background: transparent; }
.ppdb-band .btn--outline:hover { background: var(--white); color: var(--green); border-color: var(--white); }

/* ===== FOOTER ===== */
.site-footer { background: #1a202c; color: #a0aec0; position: relative; }
.footer-wave { line-height: 0; position: absolute; top: -49px; left: 0; width: 100%; }
.footer-wave svg { display: block; width: 100%; height: 50px; fill: #1a202c; }
.footer-main { padding: 64px 0 40px; position: relative; z-index: 1; }
.footer-grid {
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px;
}
.footer-col h4 {
  font-size: 16px; font-weight: 700; color: var(--white);
  margin-bottom: 24px; position: relative; padding-bottom: 12px;
}
.footer-col h4::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 40px; height: 3px; background: var(--green); border-radius: 2px;
}
.footer-col p { font-size: 14.5px; line-height: 1.8; margin-bottom: 20px; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { font-size: 14.5px; color: #a0aec0; transition: var(--transition); display: inline-flex; align-items: center; gap: 8px; }
.footer-col ul li a::before { content: '\f105'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 12px; color: var(--green); transition: var(--transition); }
.footer-col ul li a:hover { color: var(--white); }
.footer-col ul li a:hover::before { transform: translateX(4px); }
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-logo__icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--green); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800; flex-shrink: 0;
}
.footer-logo__name { font-size: 18px; font-weight: 800; color: var(--white); line-height: 1.1; }
.footer-contact { display: flex; gap: 12px; margin-bottom: 16px; align-items: flex-start; font-size: 14.5px; line-height: 1.6; }
.footer-contact i { color: var(--green); margin-top: 4px; flex-shrink: 0; font-size: 16px; }
.footer-social { display: flex; gap: 12px; margin-top: 24px; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.05); color: var(--white);
  display: flex; align-items: center; justify-content: center; font-size: 16px;
  transition: var(--transition);
}
.footer-social a:hover { background: var(--green); transform: translateY(-4px); }
.footer-bottom {
  background: #090e17;
  border-top: 1px solid rgba(255,255,255,.05);
}
.footer-bottom__inner {
  max-width: var(--max-w); margin: 0 auto; padding: 20px 24px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; font-size: 13.5px;
}
.footer-copyright { color: #a0aec0; }
.footer-credit { color: #cbd5e0; line-height: 1.8; font-size: 13px; }
.footer-credit i { color: #ff9800; margin-right: 6px; vertical-align: middle; }
.footer-credit a { color: #ffffff; font-weight: 700; text-decoration: none; transition: var(--transition); }
.footer-credit a:hover { color: var(--green); }

/* ===== INNER PAGES ===== */
.page-hero {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  padding: 40px 24px; text-align: center;
  position: relative;
}
.page-hero h1 { font-size: clamp(24px, 3.5vw, 32px); color: #0f172a; margin-bottom: 12px; font-weight: 700; letter-spacing: -0.5px; }
.breadcrumbs { font-size: 13px; color: #64748b; margin-bottom: 0; display: flex; align-items: center; justify-content: center; gap: 8px; }
.breadcrumbs a { color: var(--green); font-weight: 500; text-decoration: none; }
.breadcrumbs a:hover { color: var(--green-dark); }
.breadcrumbs i { font-size: 8px; color: #94a3b8; }

.layout-main { padding: 48px 0 80px; }
.layout-grid { display: grid; grid-template-columns: 1fr 300px; gap: 40px; }
.entry-content { font-size: 15px; line-height: 1.75; color: #334155; }
.entry-content h2 { font-size: 22px; color: #0f172a; margin: 28px 0 14px; font-weight: 600; }
.entry-content h3 { font-size: 18px; color: #0f172a; margin: 22px 0 10px; font-weight: 600; }
.entry-content p { margin-bottom: 16px; }
.entry-content img { border-radius: 8px; margin: 20px 0; }
.entry-content ul { margin-bottom: 16px; padding-left: 20px; }
.entry-content li { margin-bottom: 6px; }

/* Sidebar */
.sidebar { position: sticky; top: 100px; align-self: start; }
.widget { margin-bottom: 24px; padding: 20px; background: var(--white); border-radius: 8px; border: 1px solid #e2e8f0; box-shadow: 0 1px 3px rgba(0,0,0,0.02); }
.widget-title { font-size: 14.5px; font-weight: 600; color: #0f172a; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 2px solid var(--green-pale); text-transform: uppercase; letter-spacing: 0.5px; }

/* Search Form Widget (Clean & Compact) */
.search-form { display: flex; gap: 8px; width: 100%; align-items: stretch; }
.search-form label { flex: 1; display: block; margin: 0; }
.search-form .search-field {
  width: 100%;
  padding: 8px 12px;
  font-size: 13px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background-color: #ffffff;
  color: #1e293b;
  outline: none;
  font-family: var(--font);
  box-sizing: border-box;
  height: 36px;
  transition: all 0.2s ease;
}
.search-form .search-field:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(25, 135, 84, 0.1);
}
.search-form .search-submit {
  padding: 0 16px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 6px;
  background-color: #1e293b;
  color: #ffffff;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.search-form .search-submit:hover {
  background-color: var(--green);
}

/* Screen Reader Text Helper */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.widget ul { list-style: none; padding: 0; margin: 0; }
.widget ul li { padding: 8px 0; border-bottom: 1px solid #f1f5f9; font-size: 13.5px; }
.widget ul li:last-child { border-bottom: none; padding-bottom: 0; }
.widget ul li a { color: #475569; text-decoration: none; transition: var(--transition); }
.widget ul li a:hover { color: var(--green); }

.widget_sambutan_box { text-align: center; }
.widget_sambutan_img { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; margin: 0 auto 12px; border: 3px solid var(--green-pale); }
.widget_sambutan_text { font-size: 13px; color: #475569; font-style: italic; margin-bottom: 12px; line-height: 1.6; }
.widget_sambutan_author { font-size: 14px; font-weight: 600; color: #0f172a; }
.widget_sambutan_author span { display: block; font-size: 12px; color: var(--green); font-weight: 500; margin-top: 2px; }

/* ===== ERROR 404 ===== */
.error-404 {
  padding: 80px 24px;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}
.error-404 .code {
  font-size: clamp(96px, 12vw, 140px);
  font-weight: 800;
  line-height: 1;
  color: var(--green);
  text-shadow: 0 10px 30px rgba(25, 135, 84, 0.15);
  margin-bottom: 24px;
}
.error-404 h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}
.error-404 p {
  font-size: 16px;
  color: var(--text-mid);
  margin-bottom: 32px;
  line-height: 1.7;
}

/* ===== SEARCH BOX HEADER ===== */
.search-box {
  position: absolute; top: calc(100% + 15px); right: 0; width: 320px;
  background: var(--white); padding: 16px; border-radius: var(--radius-sm);
  box-shadow: var(--shadow); border: 1px solid var(--gray-line);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: var(--transition);
}
.search-box.open { opacity: 1; visibility: visible; transform: translateY(0); }
.search-box form { display: flex; gap: 8px; }
.search-box input { flex: 1; padding: 10px 16px; border: 1px solid var(--gray-line); border-radius: var(--radius-pill); outline: none; font-family: var(--font); }
.search-box input:focus { border-color: var(--green); }
.search-box button { background: var(--green); color: var(--white); border: none; border-radius: var(--radius-pill); width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; cursor: pointer; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .desktop-nav-row { display: none !important; }
  .nav, .header-actions .btn--primary { display: none !important; }
  .hamburger { display: flex !important; }
  .hero__grid { grid-template-columns: 1fr !important; gap: 32px !important; text-align: center; }
  .hero__content { padding-right: 0 !important; }
  .hero__btns { justify-content: center; }
  .sambutan { grid-template-columns: 1fr !important; gap: 32px !important; text-align: center; }
  .sambutan__quote::before { left: 50% !important; transform: translateX(-50%) !important; top: -20px !important; }
  .about-grid { grid-template-columns: 1fr !important; gap: 40px !important; }
  .about-img-wrap { max-width: 500px !important; margin: 0 auto !important; }
  .cards-grid, .news-grid { grid-template-columns: 1fr !important; gap: 24px !important; }
  .stats__grid { grid-template-columns: repeat(2, 1fr) !important; row-gap: 24px !important; }
  .stat-card:nth-child(even) { border-right: none !important; }
  .testi-grid { grid-template-columns: 1fr !important; }
  
  /* Footer responsive improvements */
  .footer-grid { grid-template-columns: 1fr !important; gap: 40px !important; text-align: center; }
  .footer-logo, .footer-social { justify-content: center !important; }
  .footer-col h4::after { left: 50% !important; transform: translateX(-50%) !important; }
  .footer-col ul { display: flex !important; flex-direction: column !important; align-items: center !important; }
  .footer-contact { flex-direction: column !important; align-items: center !important; text-align: center !important; }
  .footer-contact i { margin-top: 0 !important; margin-bottom: 6px !important; }
  
  .feature-list { grid-template-columns: 1fr !important; }
  
  /* Layout Grid responsiveness */
  .layout-grid { grid-template-columns: 1fr !important; gap: 32px !important; }
  .sidebar { position: static !important; }
}

@media (max-width: 768px) {
  .header-inner { gap: 8px; padding: 0 16px; height: 64px; }
  .logo { gap: 8px; }
  .logo__icon { width: 36px; height: 36px; font-size: 14px; border-radius: 10px; }
  .logo__icon img { width: 36px; height: 36px; border-radius: 10px; }
  .logo__name { font-size: 14px; }
  .header-actions { gap: 6px; }
  .btn-search, .hamburger { width: 36px; height: 36px; }
  .section { padding: 40px 0; }
  .hero { padding: 40px 0 60px; }
  .stats__grid { grid-template-columns: 1fr !important; }
  .stat-card { border-right: none !important; border-bottom: 1px solid var(--gray-line); padding: 16px 0; }
  .stat-card:last-child { border-bottom: none; }
  .ppdb-band { padding: 32px 24px; text-align: center; }
  .ppdb-band__inner { flex-direction: column !important; align-items: center !important; text-align: center !important; gap: 24px !important; }
  .ppdb-band p { margin-left: auto; margin-right: auto; }
  
  /* Footer bottom responsive centering and text-wrap fix */
  .footer-bottom__inner { flex-direction: column !important; justify-content: center !important; text-align: center !important; gap: 8px !important; }
  .footer-copyright, .footer-credit { text-align: center !important; }
}

@media (max-width: 480px) {
  .hero__btns { flex-direction: column; width: 100%; }
  .btn { width: 100%; }
}
