/* ============================================================
   EduPrime — Premium School Landing Page Template
   Design System & All Styles
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800&family=Inter:wght@300;400;500;600;700&display=swap');

/* ── Design Tokens ── */
:root {
  /* Colors */
  --primary: #1B3A5C;
  --primary-light: #2A5F9E;
  --primary-dark: #0F2440;
  --primary-rgb: 27, 58, 92;

  --accent: #F5A623;
  --accent-warm: #FF6B35;
  --accent-rgb: 245, 166, 35;

  --success: #27AE60;
  --info: #3498DB;

  --bg-light: #F8FAFE;
  --bg-cream: #FFF9F0;
  --bg-dark: #0D1B2A;
  --bg-dark-secondary: #152238;

  --text: #2D3748;
  --text-light: #718096;
  --text-white: #FFFFFF;
  --text-dark-muted: #A0AEC0;

  --white: #FFFFFF;
  --border: #E2E8F0;
  --shadow-color: rgba(27, 58, 92, 0.08);

  /* Typography */
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --section-padding: 100px 0;
  --container-width: 1200px;
  --container-padding: 0 24px;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 50%;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.1), 0 4px 12px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.12), 0 8px 20px rgba(0,0,0,0.06);
  --shadow-glow: 0 0 40px rgba(var(--accent-rgb), 0.3);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul, ol {
  list-style: none;
}

button {
  border: none;
  outline: none;
  cursor: pointer;
  font-family: var(--font-body);
  transition: var(--transition);
}

input, textarea, select {
  font-family: var(--font-body);
  border: none;
  outline: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--primary-dark);
}

/* ── Utility ── */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: var(--container-padding);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 60px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-label::before,
.section-label::after {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 18px;
  color: var(--primary-dark);
}

.section-title span {
  color: var(--accent);
}

.section-desc {
  font-size: 17px;
  color: var(--text-light);
  line-height: 1.8;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 32px;
  border-radius: var(--radius-md);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
  opacity: 0;
  transition: var(--transition);
}

.btn:hover::after {
  opacity: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  box-shadow: 0 4px 20px rgba(var(--primary-rgb), 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(var(--primary-rgb), 0.45);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-warm));
  color: var(--white);
  box-shadow: 0 4px 20px rgba(var(--accent-rgb), 0.35);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.5);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
  transform: translateY(-2px);
}

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

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

/* ── Scroll Animations ── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* ============================================================
   1. NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
}

.navbar.scrolled {
  padding: 12px 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 20px rgba(0,0,0,0.08);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1001;
}

.nav-logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--accent), var(--accent-warm));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 4px 15px rgba(var(--accent-rgb), 0.3);
}

.nav-logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 22px;
  color: var(--white);
  transition: var(--transition);
}

.navbar.scrolled .nav-logo-text {
  color: var(--primary-dark);
}

.nav-links {
  display: flex;
  align-items: center;
}

/* Nav Menu List */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu > li {
  position: relative;
}

.nav-menu a {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 14.5px;
  color: rgba(255,255,255,0.85);
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-menu a:hover,
.nav-menu li.active > a,
.nav-menu li.current-menu-item > a,
.nav-menu li.current-page-ancestor > a {
  color: var(--white);
  background: rgba(255,255,255,0.15);
}

.navbar.scrolled .nav-menu a {
  color: var(--text);
}

.navbar.scrolled .nav-menu a:hover,
.navbar.scrolled .nav-menu li.active > a,
.navbar.scrolled .nav-menu li.current-menu-item > a,
.navbar.scrolled .nav-menu li.current-page-ancestor > a {
  color: var(--primary);
  background: rgba(var(--primary-rgb), 0.08);
}

/* Dropdown Sub-menu */
.nav-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(15px);
  min-width: 260px;
  background: rgba(13, 27, 42, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  padding: 10px 0;
  margin-top: 10px;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  z-index: 1010;
}

/* Scrolled version of Dropdown */
.navbar.scrolled .nav-menu .sub-menu {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(27, 58, 92, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* Dropdown Items styling */
.nav-menu .sub-menu li {
  width: 100%;
  padding: 0 10px;
}

.nav-menu .sub-menu a {
  width: 100%;
  padding: 10px 16px;
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8) !important;
  background: transparent !important;
  border-radius: var(--radius-sm);
  display: block;
}

.nav-menu .sub-menu a:hover {
  color: var(--accent) !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

.navbar.scrolled .nav-menu .sub-menu a {
  color: var(--text) !important;
}

.navbar.scrolled .nav-menu .sub-menu a:hover {
  color: var(--primary) !important;
  background: rgba(var(--primary-rgb), 0.06) !important;
}

/* Show Dropdown on Hover */
.nav-menu li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Arrow indicator for parents */
.nav-menu .menu-item-has-children > a::after {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-right: 1.5px solid rgba(255,255,255,0.7);
  border-bottom: 1.5px solid rgba(255,255,255,0.7);
  transform: rotate(45deg);
  margin-left: 6px;
  margin-top: -3px;
  transition: transform 0.2s ease;
}

.navbar.scrolled .nav-menu .menu-item-has-children > a::after {
  border-right-color: var(--text);
  border-bottom-color: var(--text);
}

.nav-menu .menu-item-has-children:hover > a::after {
  transform: rotate(-135deg);
}

.nav-cta {
  margin-left: 12px;
}

.nav-cta .btn {
  padding: 10px 24px;
  font-size: 14px;
}

/* Mobile Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  z-index: 1001;
  padding: 4px;
  cursor: pointer;
}

.nav-toggle span {
  width: 26px;
  height: 2.5px;
  background: var(--white);
  border-radius: 3px;
  transition: var(--transition);
}

.navbar.scrolled .nav-toggle span {
  background: var(--primary-dark);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu Container */
.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(13, 27, 42, 0.98);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px 30px 40px;
  overflow-y: auto;
}

.nav-mobile.active {
  display: flex;
}

/* Mobile Menu List Styling */
.nav-menu-mobile {
  width: 100%;
  max-width: 400px;
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav-menu-mobile > li {
  width: 100%;
  text-align: center;
  position: relative;
}

.nav-menu-mobile a {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

.nav-menu-mobile a:hover {
  background: rgba(255,255,255,0.08);
  color: var(--accent);
}

/* Mobile Dropdown indicator */
.nav-menu-mobile .menu-item-has-children > a::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-right: 2px solid rgba(255,255,255,0.7);
  border-bottom: 2px solid rgba(255,255,255,0.7);
  transform: rotate(45deg);
  margin-left: 8px;
  margin-top: -3px;
  transition: transform 0.3s ease;
}

.nav-menu-mobile .menu-item-has-children.open > a::after {
  transform: rotate(-135deg);
}

/* Mobile Sub-menu collapsed style */
.nav-menu-mobile .sub-menu {
  display: none;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-md);
  margin: 5px 0;
  padding: 8px 0;
  list-style: none;
  width: 100%;
}

.nav-menu-mobile .sub-menu a {
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  padding: 8px 24px;
}

.nav-menu-mobile .sub-menu a:hover {
  color: var(--accent);
  background: transparent;
}

/* ============================================================
   2. HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--primary-dark);
}

.hero-bg-slider {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--bg-dark);
}

.hero-bg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-bg-slide.active {
  opacity: 0.75;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    135deg,
    rgba(13, 27, 42, 0.65) 0%,
    rgba(13, 27, 42, 0.35) 50%,
    rgba(13, 27, 42, 0.7) 100%
  );
}

.hero-pattern {
  position: absolute;
  inset: 0;
  z-index: 3;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 30px 30px;
}

.hero .container.hero-content-slider {
  position: relative;
  z-index: 4;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding-top: 80px;
  padding-bottom: 80px;
}

.hero-content-slide {
  position: absolute;
  width: calc(100% - 48px);
  max-width: 900px;
  left: 24px;
  bottom: 80px;
  transform: translateY(20px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), transform 1s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 1;
}

.hero-content-slide.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  z-index: 2;
}

.hero-content {
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(var(--accent-rgb), 0.15);
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  color: var(--accent);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 50px;
  margin-bottom: 28px;
  letter-spacing: 0.5px;
}

.hero-badge .pulse {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

.hero-title {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 24px;
  line-height: 1.2;
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--accent), var(--accent-warm));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 18px;
  color: rgba(255,255,255,0.75);
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 650px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Hero Stats */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  transition: var(--transition);
}

.stat-card:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-4px);
  border-color: rgba(var(--accent-rgb), 0.3);
}

.stat-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--accent), var(--accent-warm));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin: 0 auto 14px;
  box-shadow: 0 4px 15px rgba(var(--accent-rgb), 0.25);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
}

.stat-number .suffix {
  font-size: 22px;
  color: var(--accent);
}

.stat-label {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  margin-top: 4px;
  font-weight: 500;
}

/* Floating shapes */
.hero-shape {
  position: absolute;
  z-index: 3;
  border-radius: 50%;
  opacity: 0.1;
  animation: float 6s ease-in-out infinite;
}

.hero-shape-1 {
  width: 300px;
  height: 300px;
  background: var(--accent);
  top: -100px;
  right: -100px;
}

.hero-shape-2 {
  width: 200px;
  height: 200px;
  background: var(--primary-light);
  bottom: 50px;
  left: -80px;
  animation-delay: 2s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-25px) rotate(5deg); }
}

/* Hero scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.5);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: scrollBounce 2s infinite;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ============================================================
   3. SAMBUTAN KEPALA SEKOLAH
   ============================================================ */
.welcome {
  padding: var(--section-padding);
  background: var(--white);
  position: relative;
  overflow: hidden;
}

.welcome::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.06), transparent 70%);
  border-radius: 50%;
}

.welcome-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 60px;
  align-items: center;
}

.welcome-image {
  position: relative;
}

.welcome-image-wrapper {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.welcome-image-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(var(--primary-rgb), 0.3));
  z-index: 1;
}

.welcome-image-wrapper img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}

.welcome-image-badge {
  position: absolute;
  bottom: -16px;
  right: -16px;
  background: linear-gradient(135deg, var(--accent), var(--accent-warm));
  color: var(--white);
  padding: 16px 24px;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  z-index: 2;
  box-shadow: var(--shadow-glow);
  text-align: center;
}

.welcome-image-badge .years {
  display: block;
  font-size: 32px;
  line-height: 1;
}

.welcome-content blockquote {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 500;
  font-style: italic;
  color: var(--primary);
  line-height: 1.6;
  margin-bottom: 24px;
  padding-left: 24px;
  border-left: 4px solid var(--accent);
  position: relative;
}

.welcome-content blockquote::before {
  content: '\201C';
  font-size: 80px;
  color: rgba(var(--accent-rgb), 0.15);
  position: absolute;
  top: -30px;
  left: -10px;
  font-family: Georgia, serif;
  line-height: 1;
}

.welcome-text {
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 28px;
}

.welcome-signature {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.welcome-signature-info h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-dark);
}

.welcome-signature-info span {
  font-size: 14px;
  color: var(--text-light);
}

/* ============================================================
   4. TENTANG SEKOLAH
   ============================================================ */
.about {
  padding: var(--section-padding);
  background: var(--bg-light);
  position: relative;
}

.about-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 50px;
}

.about-tab {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 28px;
  border-radius: 50px;
  color: var(--text-light);
  background: var(--white);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
}

.about-tab:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.about-tab.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  border-color: transparent;
  box-shadow: 0 4px 20px rgba(var(--primary-rgb), 0.3);
}

.about-panel {
  display: none;
}

.about-panel.active {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

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

.about-image img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  transition: var(--transition-slow);
}

.about-image:hover img {
  transform: scale(1.03);
}

.about-text h3 {
  font-size: 28px;
  margin-bottom: 20px;
}

.about-text p {
  color: var(--text-light);
  line-height: 1.85;
  margin-bottom: 20px;
}

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

.about-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.about-feature:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.about-feature-icon {
  width: 38px;
  height: 38px;
  min-width: 38px;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.1), rgba(var(--accent-rgb), 0.05));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.about-feature span {
  font-weight: 600;
  font-size: 14px;
  color: var(--primary-dark);
}

.visi-misi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.visi-card, .misi-card {
  background: var(--white);
  padding: 36px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.visi-card h3, .misi-card h3 {
  font-size: 22px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.visi-card h3 span, .misi-card h3 span {
  font-size: 28px;
}

.misi-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.misi-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.6;
}

.misi-list li::before {
  content: '✓';
  min-width: 24px;
  height: 24px;
  background: rgba(39, 174, 96, 0.1);
  color: var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  margin-top: 2px;
}

/* ============================================================
   5. PROGRAM AKADEMIK
   ============================================================ */
.programs {
  padding: var(--section-padding);
  background: var(--white);
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.program-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.program-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  transform: scaleX(0);
  transition: var(--transition);
}

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

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

.program-icon {
  width: 68px;
  height: 68px;
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.08), rgba(var(--primary-rgb), 0.03));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  margin: 0 auto 20px;
  transition: var(--transition);
}

.program-card:hover .program-icon {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.3);
}

.program-card h3 {
  font-size: 18px;
  margin-bottom: 12px;
}

.program-card p {
  font-size: 14.5px;
  color: var(--text-light);
  line-height: 1.7;
}

/* ============================================================
   6. FASILITAS
   ============================================================ */
.facilities {
  padding: var(--section-padding);
  background: var(--bg-dark);
  position: relative;
  overflow: hidden;
}

.facilities::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 25px 25px;
}

.facilities .section-title {
  color: var(--white);
}

.facilities .section-desc {
  color: var(--text-dark-muted);
}

.facilities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
  z-index: 1;
}

.facility-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  group: true;
}

.facility-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

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

.facility-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13, 27, 42, 0.9) 0%, rgba(13, 27, 42, 0.2) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  transition: var(--transition);
}

.facility-card:hover .facility-overlay {
  background: linear-gradient(to top, rgba(13, 27, 42, 0.95) 0%, rgba(27, 58, 92, 0.5) 60%, rgba(27, 58, 92, 0.3) 100%);
}

.facility-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}

.facility-name {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
}

.facility-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  margin-top: 8px;
  opacity: 0;
  transform: translateY(10px);
  transition: var(--transition);
}

.facility-card:hover .facility-desc {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   7. GURU & TENAGA PENDIDIK
   ============================================================ */
.teachers {
  padding: var(--section-padding);
  background: var(--white);
}

.teachers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.teacher-card {
  text-align: center;
  position: relative;
}

.teacher-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 20px;
  aspect-ratio: 3/4;
}

.teacher-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.teacher-card:hover .teacher-image img {
  transform: scale(1.05);
}

.teacher-social {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  display: flex;
  gap: 8px;
  opacity: 0;
  transition: var(--transition);
}

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

.teacher-social a {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.95);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 16px;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}

.teacher-social a:hover {
  background: var(--accent);
  color: var(--white);
}

.teacher-card h3 {
  font-size: 17px;
  margin-bottom: 4px;
}

.teacher-card .role {
  font-size: 14px;
  color: var(--accent);
  font-weight: 500;
}

/* ============================================================
   8. PRESTASI
   ============================================================ */
.achievements {
  padding: var(--section-padding);
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  position: relative;
  overflow: hidden;
}

.achievements::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 25px 25px;
}

.achievements .section-title {
  color: var(--white);
}

.achievements .section-desc {
  color: rgba(255,255,255,0.65);
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  position: relative;
  z-index: 1;
}

.achievement-card {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: var(--transition);
}

.achievement-card:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-6px);
  border-color: rgba(var(--accent-rgb), 0.3);
}

.achievement-medal {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 18px;
}

.medal-gold { background: linear-gradient(135deg, #FFD700, #FFA500); box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3); }
.medal-silver { background: linear-gradient(135deg, #C0C0C0, #A0A0A0); box-shadow: 0 4px 15px rgba(192, 192, 192, 0.3); }
.medal-bronze { background: linear-gradient(135deg, #CD7F32, #B87333); box-shadow: 0 4px 15px rgba(205, 127, 50, 0.3); }

.achievement-card h3 {
  font-size: 17px;
  color: var(--white);
  margin-bottom: 8px;
}

.achievement-card p {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
}

.achievement-year {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.15);
  padding: 4px 12px;
  border-radius: 20px;
  margin-top: 14px;
}

/* ============================================================
   9. TESTIMONIAL
   ============================================================ */
.testimonials {
  padding: var(--section-padding);
  background: var(--bg-light);
  position: relative;
}

.testimonials-slider {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
}

.testimonials-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card {
  min-width: 100%;
  padding: 0 20px;
}

.testimonial-inner {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 48px 44px;
  text-align: center;
  box-shadow: var(--shadow-md);
  position: relative;
}

.testimonial-inner::before {
  content: '\201C';
  font-size: 100px;
  color: rgba(var(--accent-rgb), 0.1);
  position: absolute;
  top: 10px;
  left: 30px;
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-stars {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 24px;
  color: var(--accent);
  font-size: 18px;
}

.testimonial-text {
  font-size: 18px;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 28px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.testimonial-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  color: var(--white);
}

.testimonial-info h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-dark);
}

.testimonial-info span {
  font-size: 14px;
  color: var(--text-light);
}

.testimonials-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}

.testi-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--primary);
  transition: var(--transition);
  cursor: pointer;
}

.testi-btn:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

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

.testi-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.testi-dot.active {
  background: var(--primary);
  width: 28px;
  border-radius: 5px;
}

/* ============================================================
   10. BERITA & KEGIATAN
   ============================================================ */
.news {
  padding: var(--section-padding);
  background: var(--white);
}

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

.news-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
}

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

.news-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.news-card:hover .news-image img {
  transform: scale(1.05);
}

.news-category {
  position: absolute;
  top: 16px;
  left: 16px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 14px;
  border-radius: 50px;
  background: var(--accent);
  color: var(--white);
}

.news-body {
  padding: 24px;
}

.news-date {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.news-card h3 {
  font-size: 18px;
  margin-bottom: 12px;
  line-height: 1.4;
  transition: var(--transition);
}

.news-card:hover h3 {
  color: var(--primary-light);
}

.news-card p {
  font-size: 14.5px;
  color: var(--text-light);
  line-height: 1.7;
}

.news-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 14px;
  color: var(--primary);
  margin-top: 16px;
}

.news-link:hover {
  color: var(--accent);
  gap: 10px;
}

.news-more {
  text-align: center;
  margin-top: 48px;
}

/* ============================================================
   11. CTA PENDAFTARAN (PPDB)
   ============================================================ */
.cta {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-warm));
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 20px 20px;
}

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

.cta-text h2 {
  font-size: clamp(28px, 4vw, 40px);
  color: var(--white);
  margin-bottom: 18px;
}

.cta-text p {
  font-size: 17px;
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
  margin-bottom: 8px;
}

.cta-features {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
}

.cta-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
}

.cta-feature .check {
  width: 24px;
  height: 24px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.cta-form {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-xl);
  padding: 36px;
}

.cta-form h3 {
  font-size: 22px;
  color: var(--white);
  margin-bottom: 24px;
  text-align: center;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  margin-bottom: 6px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-md);
  color: var(--white);
  font-size: 15px;
  transition: var(--transition);
}

.form-group input::placeholder {
  color: rgba(255,255,255,0.5);
}

.form-group input:focus,
.form-group select:focus {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.6);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.form-group select option {
  color: var(--text);
  background: var(--white);
}

.cta-form .btn {
  width: 100%;
  padding: 16px;
  font-size: 16px;
  background: var(--white);
  color: var(--accent-warm);
  font-weight: 700;
  margin-top: 8px;
}

.cta-form .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

/* Floating shapes for CTA */
.cta-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.1;
  background: var(--white);
}

.cta-shape-1 { width: 200px; height: 200px; top: -60px; right: -60px; }
.cta-shape-2 { width: 150px; height: 150px; bottom: -40px; left: -40px; }

/* ============================================================
   12. FOOTER
   ============================================================ */
.footer {
  background: var(--bg-dark);
  padding: 80px 0 0;
  color: rgba(255,255,255,0.7);
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.footer-brand-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--accent), var(--accent-warm));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.footer-brand-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 22px;
  color: var(--white);
}

.footer-about p {
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 20px;
}

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

.footer-social a {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--accent);
  color: var(--white);
  transform: translateY(-3px);
}

.footer h4 {
  font-size: 17px;
  color: var(--white);
  margin-bottom: 24px;
  position: relative;
}

.footer h4::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 14.5px;
  color: rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.footer-links a::before {
  content: '›';
  font-size: 18px;
  color: var(--accent);
}

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

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
  font-size: 14.5px;
  line-height: 1.6;
}

.footer-contact-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  background: rgba(var(--accent-rgb), 0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--accent);
}

.footer-bottom {
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: rgba(255,255,255,0.4);
}

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

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

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */

/* Tablet */
@media (max-width: 1024px) {
  :root {
    --section-padding: 80px 0;
  }

  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-desc {
    max-width: 100%;
  }

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

  .hero-stats {
    max-width: 500px;
    margin: 0 auto;
  }

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

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

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

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

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

  .cta-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .cta-features {
    justify-content: center;
  }

  .cta-form {
    max-width: 500px;
    margin: 0 auto;
  }

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

/* Mobile */
@media (max-width: 768px) {
  :root {
    --section-padding: 60px 0;
  }

  .nav-links, .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero .container {
    padding-top: 80px;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .stat-card {
    padding: 20px 16px;
  }

  .stat-number {
    font-size: 28px;
  }

  .welcome-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .welcome-image {
    max-width: 300px;
    margin: 0 auto;
  }

  .welcome-content blockquote {
    font-size: 18px;
    padding-left: 18px;
  }

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

  .about-tabs {
    flex-wrap: wrap;
  }

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

  .visi-misi-grid {
    grid-template-columns: 1fr;
  }

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

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

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

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

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

  .cta-content {
    gap: 40px;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .section-header {
    margin-bottom: 40px;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .hero-stats {
    grid-template-columns: 1fr 1fr;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-buttons .btn {
    width: 100%;
  }

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

  .testimonial-inner {
    padding: 32px 24px;
  }

  .testimonial-text {
    font-size: 16px;
  }
}

/* ── Back to top ── */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
  z-index: 100;
  box-shadow: 0 4px 20px rgba(var(--primary-rgb), 0.35);
}

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

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(var(--primary-rgb), 0.45);
}

/* ── Loading animation ── */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ── Stagger children delay ── */
.stagger > *:nth-child(1) { transition-delay: 0s; }
.stagger > *:nth-child(2) { transition-delay: 0.1s; }
.stagger > *:nth-child(3) { transition-delay: 0.2s; }
.stagger > *:nth-child(4) { transition-delay: 0.3s; }
.stagger > *:nth-child(5) { transition-delay: 0.4s; }
.stagger > *:nth-child(6) { transition-delay: 0.5s; }
.stagger > *:nth-child(7) { transition-delay: 0.6s; }
.stagger > *:nth-child(8) { transition-delay: 0.7s; }

/* ── Frontend Edit Controls for Slider ── */
.edit-slide-controls {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  z-index: 100;
  pointer-events: auto;
}

.btn-edit-slide, .btn-add-slide {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  color: var(--white);
  transition: var(--transition);
  text-decoration: none;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-edit-slide {
  background: rgba(245, 166, 35, 0.85);
}

.btn-edit-slide:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(var(--accent-rgb), 0.4);
}

.btn-add-slide {
  background: rgba(27, 58, 92, 0.85);
}

.btn-add-slide:hover {
  background: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.4);
}

/* ── Frontend Edit Controls for Facilities ── */
.edit-facility-card-controls {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 15;
}

.btn-edit-facility {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  color: var(--white);
  background: rgba(245, 166, 35, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  text-decoration: none;
  transition: var(--transition);
}

.btn-edit-facility:hover {
  background: var(--accent);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(var(--accent-rgb), 0.4);
}

/* ── Subpages Navbar & Spacing Fix ── */
body:not(.home) {
  padding-top: 80px;
}

body:not(.home) .navbar {
  padding: 12px 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 20px rgba(0,0,0,0.08);
}

body:not(.home) .nav-logo-text {
  color: var(--primary-dark);
}

body:not(.home) .nav-links a {
  color: var(--text);
}

body:not(.home) .nav-links a:hover,
body:not(.home) .nav-links a.active {
  color: var(--primary);
  background: rgba(var(--primary-rgb), 0.08);
}

body:not(.home) .nav-toggle span {
  background: var(--primary-dark);
}

/* ── Slider Description Image Styling ── */
.hero-desc img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  margin-top: 15px;
  display: block;
}

/* ── Hero Slider Link Styles ── */
.hero-title-link {
  color: var(--white);
  text-decoration: none;
  transition: var(--transition);
}

.hero-title-link:hover {
  color: var(--accent);
}

.hero-read-more {
  display: inline-block;
  color: var(--accent);
  font-weight: 600;
  margin-top: 12px;
  text-decoration: none;
  font-size: 15px;
  transition: var(--transition);
}

.hero-read-more:hover {
  color: var(--accent-warm);
  transform: translateX(6px);
}

/* ── Hero Slider Circular Arrows ── */
.hero-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}

.hero-slider-btn:hover {
  background: var(--white);
  color: var(--accent);
  transform: translateY(-50%) scale(1.1);
}

.hero-slider-prev {
  left: 30px;
}

.hero-slider-next {
  right: 30px;
}

/* Hide arrows on mobile for cleaner look */
@media (max-width: 768px) {
  .hero-slider-btn {
    display: none;
  }
  
  .hero-content-slide {
    left: 20px;
    bottom: 60px;
    width: calc(100% - 40px);
  }
}

/* ── Facility Modal Styling ── */
.facility-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 27, 42, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  padding: 20px;
}

.facility-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.facility-modal-container {
  background: var(--white);
  width: 100%;
  max-width: 900px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-xl);
  transform: scale(0.9);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.facility-modal-overlay.active .facility-modal-container {
  transform: scale(1);
}

.facility-modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 36px;
  font-weight: 300;
  color: var(--text-light);
  background: transparent;
  border: none;
  outline: none;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
  line-height: 1;
}

.facility-modal-close:hover {
  color: var(--accent-warm);
  transform: rotate(90deg);
}

.facility-modal-body {
  display: grid;
  grid-template-columns: 1.2fr 1.1fr;
  min-height: 450px;
  max-height: 90vh;
}

.facility-modal-img-wrapper {
  background: var(--bg-dark);
  position: relative;
  overflow: hidden;
  height: 100%;
  min-height: 350px;
}

.facility-modal-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.facility-modal-content {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-y: auto;
  max-height: 90vh;
}

.facility-modal-content .facility-label {
  display: inline-flex;
  align-self: flex-start;
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 20px;
  border: 1px solid rgba(var(--accent-rgb), 0.2);
}

.facility-modal-content .facility-title {
  font-size: clamp(24px, 3vw, 32px);
  margin-bottom: 20px;
  color: var(--primary-dark);
  line-height: 1.2;
}

.facility-desc-content {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.8;
  max-height: 300px;
  overflow-y: auto;
  padding-right: 10px;
}

.facility-desc-content p {
  margin-bottom: 12px;
}

.facility-desc-content p:last-child {
  margin-bottom: 0;
}

/* Scrollbar styling for modal content */
.facility-desc-content::-webkit-scrollbar,
.facility-modal-content::-webkit-scrollbar {
  width: 6px;
}

.facility-desc-content::-webkit-scrollbar-thumb,
.facility-modal-content::-webkit-scrollbar-thumb {
  background-color: var(--border);
  border-radius: 3px;
}

/* Responsive Modal */
@media (max-width: 768px) {
  .facility-modal-body {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }
  
  .facility-modal-container {
    max-height: 95vh;
  }

  .facility-modal-img-wrapper {
    min-height: 250px;
    height: 250px;
  }

  .facility-modal-content {
    padding: 30px;
    max-height: none;
    overflow-y: visible;
  }
}

/* ============================================================
   9. SUBPAGE HEADER CONTRAST & CUSTOM TEMPLATE STYLES
   ============================================================ */

/* Subpage navbar styling */
body:not(.home) .navbar {
  padding: 12px 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 20px rgba(0,0,0,0.08);
}

body:not(.home) .navbar .nav-logo-text {
  color: var(--primary-dark);
}

body:not(.home) .navbar .nav-menu > li > a {
  color: var(--text);
}

body:not(.home) .navbar .nav-menu > li > a:hover,
body:not(.home) .navbar .nav-menu > li.active > a,
body:not(.home) .navbar .nav-menu > li.current-menu-item > a,
body:not(.home) .navbar .nav-menu > li.current-page-ancestor > a {
  color: var(--primary);
  background: rgba(var(--primary-rgb), 0.08);
}

body:not(.home) .navbar .nav-menu .sub-menu {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(27, 58, 92, 0.08);
}

body:not(.home) .navbar .nav-menu .sub-menu a {
  color: var(--text) !important;
}

body:not(.home) .navbar .nav-menu .sub-menu a:hover {
  color: var(--primary) !important;
  background: rgba(var(--primary-rgb), 0.06) !important;
}

body:not(.home) .navbar .nav-toggle span {
  background: var(--primary-dark);
}

body:not(.home) .navbar .nav-menu .menu-item-has-children > a::after {
  border-right-color: var(--text);
  border-bottom-color: var(--text);
}

/* School Info Subpages layout */
.school-info-page {
  background: var(--bg-light);
  min-height: 100vh;
  padding-bottom: 80px;
}

/* Inner Page Banner */
.info-page-banner {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 160px 0 60px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.info-page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(var(--accent-rgb), 0.12), transparent 60%);
  z-index: 1;
}

.info-page-banner .container {
  position: relative;
  z-index: 2;
}

.info-page-banner .banner-badge {
  display: inline-block;
  background: rgba(var(--accent-rgb), 0.15);
  color: var(--accent);
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 50px;
  margin-bottom: 15px;
}

.info-page-banner .banner-title {
  color: var(--text-white);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(28px, 5vw, 42px);
  margin: 0;
  line-height: 1.25;
}

.info-page-banner .banner-subtitle {
  color: var(--text-dark-muted);
  font-family: var(--font-body);
  font-size: clamp(15px, 2.5vw, 18px);
  font-style: italic;
  margin: 15px 0 0 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Main Cards layout */
.info-page-container {
  margin-top: -30px;
  position: relative;
  z-index: 10;
  padding: var(--container-padding);
}

.info-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 45px;
  height: 100%;
  border: 1px solid rgba(0,0,0,0.02);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.info-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

.info-card h2 {
  font-family: var(--font-heading);
  color: var(--primary-dark);
  font-size: clamp(22px, 3vw, 28px);
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 12px;
}

.info-card h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3.5px;
  background: linear-gradient(to right, var(--accent), var(--accent-warm));
  border-radius: 2px;
}

.card-icon {
  font-size: 40px;
  margin-bottom: 20px;
  display: inline-block;
  line-height: 1;
}

/* Visi & Misi Specific styles */
.visi-misi-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 30px;
  margin-bottom: 40px;
}

.visi-card .visi-text {
  font-size: 17px;
  line-height: 1.85;
  color: var(--text);
}

.moto-card {
  margin-top: 30px;
  padding: 30px;
  background: linear-gradient(135deg, var(--accent), var(--accent-warm));
  border: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--white);
}

.moto-card .moto-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  opacity: 0.85;
  margin-bottom: 8px;
}

.moto-card .moto-text {
  font-size: clamp(20px, 3.5vw, 26px);
  font-weight: 800;
  font-family: var(--font-heading);
  margin: 0;
  line-height: 1.2;
}

.misi-list-custom {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.misi-list-custom li {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.misi-list-custom .misi-number {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--accent-warm);
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(var(--accent-rgb), 0.25);
  margin-top: 2px;
}

.misi-list-custom .misi-content {
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--text);
}

.visi-misi-banner-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(0,0,0,0.05);
}

.visi-misi-banner-img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

/* Sejarah Specific styles */
.sejarah-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
}

.sejarah-content-card h2 {
  margin-bottom: 25px;
}

.sejarah-text-rich {
  font-size: 16px;
  line-height: 1.85;
  color: var(--text);
}

.sejarah-text-rich p {
  margin-bottom: 18px;
}

.sejarah-text-rich p:last-child {
  margin-bottom: 0;
}

.sejarah-img-wrapper {
  position: relative;
  padding-bottom: 15px;
  padding-right: 15px;
  height: 100%;
}

.sejarah-featured-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 2;
  border: 4px solid var(--white);
  min-height: 400px;
}

.sejarah-img-decorator {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 90%;
  height: 90%;
  border: 5px solid var(--accent);
  border-radius: var(--radius-lg);
  z-index: 1;
}

.sejarah-img-placeholder {
  background: var(--white);
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  height: 100%;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--text-light);
}

.sejarah-img-placeholder .placeholder-icon {
  font-size: 50px;
  margin-bottom: 15px;
}

/* Makna Lambang Specific styles */
.lambang-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
}

.lambang-image-col {
  display: flex;
  justify-content: center;
  align-items: center;
}

.lambang-display-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 60px;
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  border: 1px solid rgba(0,0,0,0.02);
}

.lambang-pulse-glow {
  position: absolute;
  width: 70%;
  height: 70%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.15) 0%, transparent 70%);
  animation: logoGlow 4s infinite alternate;
  z-index: 1;
}

@keyframes logoGlow {
  0% { transform: scale(0.9); opacity: 0.6; }
  100% { transform: scale(1.1); opacity: 1; }
}

.lambang-main-img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
  position: relative;
  z-index: 2;
  transition: transform 0.4s ease;
}

.lambang-display-card:hover .lambang-main-img {
  transform: scale(1.05);
}

.lambang-text-rich {
  font-size: 16px;
  line-height: 1.85;
  color: var(--text);
}

.lambang-text-rich p {
  margin-bottom: 18px;
}

.lambang-text-rich p:last-child {
  margin-bottom: 0;
}

/* Struktur Organisasi styles */
.struktur-card-wrapper {
  max-width: 960px;
  margin: 0 auto;
}

.struktur-main-card {
  text-align: center;
}

.struktur-main-card h2::after {
  left: 50%;
  transform: translateX(-50%);
}

.struktur-image-container {
  margin: 35px 0 45px;
  background: #fdfdfd;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 15px;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.02);
  display: block;
}

.struktur-chart-img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 4px;
  transition: transform var(--transition);
}

.struktur-chart-img:hover {
  transform: scale(1.01);
}

.zoom-helper-text {
  font-size: 13.5px;
  color: var(--text-light);
  margin: 15px 0 0 0;
}

.struktur-description {
  text-align: left;
  border-top: 1px solid var(--border);
  padding-top: 35px;
  margin-top: 35px;
}

.struktur-description h3 {
  font-family: var(--font-heading);
  color: var(--primary-dark);
  margin-bottom: 15px;
  font-size: 20px;
}

.struktur-text-rich {
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--text);
}

.struktur-text-rich p {
  margin-bottom: 15px;
}

.struktur-text-rich p:last-child {
  margin-bottom: 0;
}

/* Responsive adjust for subpages */
@media (max-width: 991px) {
  .visi-misi-grid,
  .sejarah-grid,
  .lambang-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  
  .sejarah-image-col {
    order: -1;
  }

  .sejarah-featured-img {
    min-height: 300px;
  }

  .lambang-display-card {
    aspect-ratio: auto;
    height: 320px;
    padding: 30px;
  }
}

/* ============================================================
   10. PREMIUM VIDEO PLAY BUTTON STYLING
   ============================================================ */
.mejs-overlay-button,
.mejs-overlay-play .mejs-overlay-button,
.play-btn,
.play-button,
.video-play-btn {
  background: rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15), 0 0 0 0 rgba(var(--primary-rgb), 0.2) !important;
  width: 76px !important;
  height: 76px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  animation: playButtonPulse 2.5s infinite;
  outline: none !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  z-index: 5 !important;
}

/* Custom pure CSS play icon inside */
.mejs-overlay-button::before,
.play-btn::before,
.play-button::before,
.video-play-btn::before {
  content: '' !important;
  display: block !important;
  width: 0 !important;
  height: 0 !important;
  border-style: solid !important;
  border-width: 12px 0 12px 20px !important;
  border-color: transparent transparent transparent var(--primary) !important;
  margin-left: 6px !important;
  transition: border-color var(--transition) !important;
}

/* Remove default background icon of mediaelement */
.mejs-overlay-play .mejs-overlay-button {
  background-image: none !important;
}

.mejs-overlay-button:hover,
.play-btn:hover,
.play-button:hover,
.video-play-btn:hover {
  transform: translate(-50%, -50%) scale(1.08) !important;
  background: var(--white) !important;
  border-color: rgba(var(--accent-rgb), 0.5) !important;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2), 0 0 20px rgba(var(--accent-rgb), 0.4) !important;
}

.mejs-overlay-button:hover::before,
.play-btn:hover::before,
.play-button:hover::before,
.video-play-btn:hover::before {
  border-color: transparent transparent transparent var(--accent) !important;
}

@keyframes playButtonPulse {
  0% {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15), 0 0 0 0 rgba(var(--primary-rgb), 0.4);
  }
  70% {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15), 0 0 0 15px rgba(var(--primary-rgb), 0);
  }
  100% {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15), 0 0 0 0 rgba(var(--primary-rgb), 0);
  }
}

/* ============================================================
   11. DETAIL PAGE ENHANCEMENTS: SHARING, RELATED POSTS, COMMENTS
   ============================================================ */

/* Social Sharing Bar */
.post-share-bar {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--border);
}

.post-share-bar .share-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-light);
  display: block;
  margin-bottom: 15px;
}

.share-buttons-wrapper {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.share-btn .share-icon {
  font-size: 16px;
  line-height: 1;
}

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.share-facebook:hover {
  border-color: #3b5998;
  color: #3b5998;
  background: rgba(59, 89, 152, 0.05);
}

.share-twitter:hover {
  border-color: #1da1f2;
  color: #1da1f2;
  background: rgba(29, 161, 242, 0.05);
}

.share-whatsapp:hover {
  border-color: #25d366;
  color: #25d366;
  background: rgba(37, 211, 102, 0.05);
}

.share-copy-link:hover {
  border-color: var(--accent);
  color: var(--accent-warm);
  background: rgba(245, 166, 35, 0.05);
}

/* Related Posts Section */
.related-posts-section {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.related-posts-section .related-title {
  font-family: var(--font-heading);
  color: var(--primary-dark);
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 12px;
}

.related-posts-section .related-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3.5px;
  background: linear-gradient(to right, var(--accent), var(--accent-warm));
  border-radius: 2px;
}

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

.related-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.04);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.related-card-img {
  position: relative;
  height: 170px;
  overflow: hidden;
  background: var(--bg-dark);
}

.related-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.related-card-cat {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--primary);
  color: var(--white);
  font-size: 10.5px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.related-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.related-card-date {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 8px;
  display: block;
}

.related-card-body h4 {
  font-family: var(--font-heading);
  font-size: 15.5px;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.4;
  margin: 0 0 12px 0;
  flex-grow: 1;
}

.related-card-body h4 a {
  transition: var(--transition);
}

.related-card-body h4 a:hover {
  color: var(--primary-light);
}

.related-card-link {
  font-weight: 600;
  font-size: 13.5px;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  margin-top: auto;
  transition: var(--transition);
}

.related-card-link:hover {
  color: var(--accent-warm);
}

/* Comments Section Styling */
.comments-area {
  margin-top: 50px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.comment-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.comment-list li.comment {
  margin-bottom: 30px;
  position: relative;
}

.comment-body {
  position: relative;
  background: #fcfcfc;
  border: 1px solid rgba(0,0,0,0.03);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 10px;
  transition: var(--transition);
}

.comment-body:hover {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  border-color: var(--border);
}

.comment-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 12px;
}

.comment-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.comment-author img.avatar {
  border-radius: 50%;
  border: 2px solid var(--white);
  box-shadow: var(--shadow-sm);
  width: 44px;
  height: 44px;
}

.comment-author cite.fn {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14.5px;
  color: var(--primary-dark);
  font-style: normal;
}

.comment-metadata {
  font-size: 12px;
  color: var(--text-light);
}

.comment-content {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 10px;
}

.comment-content p {
  margin: 0 0 10px 0;
}

.comment-content p:last-child {
  margin: 0;
}

.comment-reply {
  display: flex;
  justify-content: flex-end;
}

.comment-reply-link {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--primary);
  background: rgba(var(--primary-rgb), 0.05);
  padding: 5px 14px;
  border-radius: 30px;
  transition: var(--transition);
}

.comment-reply-link:hover {
  background: var(--primary);
  color: var(--white);
}

/* Threaded comments spacing */
.comment-list .children {
  list-style: none;
  padding-left: 50px;
  margin-top: 15px;
}

/* Comment Form styling */
.comment-respond {
  margin-top: 45px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 35px;
  box-shadow: var(--shadow-sm);
}

.comment-reply-title {
  font-family: var(--font-heading);
  color: var(--primary-dark);
  font-size: clamp(18px, 3vw, 22px);
  font-weight: 800;
  margin-top: 0;
  margin-bottom: 25px;
}

.comment-reply-title a {
  font-size: 13px;
  color: var(--accent-warm);
  font-weight: 600;
  margin-left: 15px;
}

.comment-form-custom .form-group {
  margin-bottom: 18px;
}

.comment-form-custom .form-group label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.comment-form-custom .form-group input[type="text"],
.comment-form-custom .form-group input[type="email"],
.comment-form-custom .form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--text);
  outline: none;
  background: var(--bg-light);
  transition: var(--transition);
}

.comment-form-custom .form-group input[type="text"]:focus,
.comment-form-custom .form-group input[type="email"]:focus,
.comment-form-custom .form-group textarea:focus {
  border-color: var(--primary-light);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

.comment-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* Comment Form Submit button */
.submit-btn-custom {
  background: linear-gradient(135deg, var(--primary), var(--primary-light)) !important;
  color: var(--white) !important;
  padding: 12px 30px !important;
  border-radius: var(--radius-md) !important;
  font-size: 14.5px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  border: none !important;
  transition: all 0.3s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.25) !important;
}

.submit-btn-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.35) !important;
  background: var(--primary-light) !important;
}

@media (max-width: 768px) {
  .comment-form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .comment-list .children {
    padding-left: 20px;
  }
  .comment-body {
    padding: 18px;
  }
}


/* ============================================================
   12. BLOG PAGE LAYOUT & SIDEBAR
   ============================================================ */

/* Blog Page Wrapper */
.blog-page-wrapper {
  background: var(--bg-light);
  min-height: 100vh;
  padding-bottom: 80px;
}

/* Blog Content Area - 2 Column Layout */
.blog-content-area {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  margin-top: -30px;
  position: relative;
  z-index: 10;
  padding: var(--container-padding);
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
}

.single-content-area {
  grid-template-columns: 1fr 320px;
}

/* Main Content Column */
.blog-main-content {
  min-width: 0;
}

/* Single Post adjustments inside 2-col layout */
.single-content-area .info-card {
  padding: 40px;
}

/* News Grid */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

/* News Card */
.news-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.news-image {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: var(--bg-dark);
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.news-category {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--primary);
  color: var(--white);
  font-size: 10.5px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.news-body {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-date {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 8px;
  font-weight: 500;
}

.news-card-title {
  font-size: 17px;
  margin-bottom: 10px;
  line-height: 1.4;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--primary-dark);
}

.news-card-excerpt {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
  flex-grow: 1;
}

.news-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 13.5px;
  color: var(--primary);
  margin-top: 14px;
  transition: var(--transition);
}

.news-link:hover {
  color: var(--accent-warm);
  gap: 10px;
}

.no-posts-message {
  text-align: center;
  grid-column: 1 / -1;
  color: var(--text-light);
  font-size: 16px;
  padding: 60px 20px;
}

/* Blog Pagination */
.blog-pagination {
  margin-top: 50px;
  display: flex;
  justify-content: center;
  font-family: var(--font-heading);
}

.blog-pagination .nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.blog-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.blog-pagination .page-numbers:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.blog-pagination .page-numbers.current {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.3);
}

/* ============================================================
   12b. SIDEBAR WIDGETS
   ============================================================ */

.blog-sidebar {
  position: sticky;
  top: 100px;
  align-self: start;
}

.sidebar-widget {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.04);
  padding: 28px;
  margin-bottom: 24px;
  transition: box-shadow var(--transition);
}

.sidebar-widget:hover {
  box-shadow: var(--shadow-md);
}

/* Widget Title */
.widget-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--bg-light);
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.widget-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 40px;
  height: 2px;
  background: linear-gradient(to right, var(--accent), var(--accent-warm));
  border-radius: 2px;
}

.widget-title-icon {
  font-size: 18px;
  line-height: 1;
}

/* Search Widget */
.sidebar-search-form {
  display: flex;
  gap: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid var(--border);
  transition: border-color var(--transition);
}

.sidebar-search-form:focus-within {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

.sidebar-search-input {
  flex: 1;
  padding: 12px 16px;
  border: none;
  outline: none;
  font-size: 14px;
  font-family: var(--font-body);
  color: var(--text);
  background: transparent;
}

.sidebar-search-input::placeholder {
  color: var(--text-light);
}

.sidebar-search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border: none;
  color: var(--white);
  padding: 12px 16px;
  cursor: pointer;
  transition: var(--transition);
}

.sidebar-search-btn:hover {
  background: var(--primary-light);
}

/* Category Widget */
.sidebar-widget.widget_categories ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-widget.widget_categories ul li {
  border-bottom: 1px solid var(--bg-light);
}

.sidebar-widget.widget_categories ul li:last-child {
  border-bottom: none;
}

.sidebar-widget.widget_categories ul li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: var(--transition);
  position: relative;
  padding-left: 18px;
}

.sidebar-widget.widget_categories ul li a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border);
  transition: var(--transition);
}

.sidebar-widget.widget_categories ul li a:hover::before {
  background: var(--accent);
  box-shadow: 0 0 6px rgba(var(--accent-rgb), 0.4);
}

.sidebar-widget.widget_categories ul li a:hover {
  color: var(--primary);
  padding-left: 22px;
}

/* Post count in parentheses styling */
.sidebar-widget.widget_categories ul li a,
.sidebar-widget.widget_archive ul li a {
  flex-wrap: wrap;
}

/* Recent Posts Widget - Custom thumbnail cards */
.sidebar-widget.widget_recent_entries ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.recent-post-item {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--bg-light);
}

.recent-post-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.recent-post-link {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  transition: var(--transition);
}

.recent-post-link:hover {
  transform: translateX(3px);
}

.recent-post-thumb {
  flex-shrink: 0;
  width: 68px;
  height: 68px;
  border-radius: var(--radius-md);
  background-size: cover;
  background-position: center;
  background-color: var(--bg-light);
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--white);
  transition: var(--transition);
}

.recent-post-link:hover .recent-post-thumb {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.recent-post-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.recent-post-title {
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--transition);
}

.recent-post-link:hover .recent-post-title {
  color: var(--primary-light);
}

.recent-post-date {
  font-size: 11.5px;
  color: var(--text-light);
  font-weight: 500;
}

/* Tag Cloud Widget */
.sidebar-widget.widget_tag_cloud .tagcloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sidebar-widget.widget_tag_cloud .tagcloud a {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 12.5px !important;
  font-weight: 600;
  color: var(--text);
  background: var(--bg-light);
  border: 1px solid transparent;
  transition: var(--transition);
  text-decoration: none;
}

.sidebar-widget.widget_tag_cloud .tagcloud a:hover {
  background: rgba(var(--primary-rgb), 0.08);
  color: var(--primary);
  border-color: rgba(var(--primary-rgb), 0.2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* Archives Widget */
.sidebar-widget.widget_archive ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-widget.widget_archive ul li {
  border-bottom: 1px solid var(--bg-light);
}

.sidebar-widget.widget_archive ul li:last-child {
  border-bottom: none;
}

.sidebar-widget.widget_archive ul li a {
  display: flex;
  align-items: center;
  padding: 11px 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: var(--transition);
  position: relative;
  padding-left: 18px;
}

.sidebar-widget.widget_archive ul li a::before {
  content: '📅';
  position: absolute;
  left: 0;
  font-size: 12px;
}

.sidebar-widget.widget_archive ul li a:hover {
  color: var(--primary);
  padding-left: 22px;
}


/* ============================================================
   12c. RESPONSIVE: BLOG LAYOUT
   ============================================================ */

@media (max-width: 1024px) {
  .blog-content-area,
  .single-content-area {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .blog-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
  }

  .sidebar-widget {
    margin-bottom: 0;
  }
}

@media (max-width: 768px) {
  .blog-content-area {
    margin-top: -20px;
  }

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

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

  .single-content-area .info-card {
    padding: 24px;
  }

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

  .share-buttons-wrapper {
    flex-direction: column;
  }

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

@media (max-width: 480px) {
  .news-image {
    height: 170px;
  }

  .news-body {
    padding: 18px;
  }

  .sidebar-widget {
    padding: 22px;
  }
}
