/* ==========================================================================
   MadrasahOne Theme - Main Stylesheet
   Inspired by DESIGN.md & PRD WordPress Theme Website Madrasah
   Colors: Primary #007a33, Secondary #c5a14e, Bg Secondary #134e4a
   Font: Plus Jakarta Sans
   ========================================================================== */

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

:root {
  /* Colors from DESIGN.md */
  --color-primary: #007a33;
  --color-primary-dark: #005c26;
  --color-primary-light: #e6f4ec;
  --color-secondary: #c5a14e;
  --color-secondary-dark: #a88536;
  --color-secondary-light: #fbf7ee;
  --color-bg: #ffffff;
  --color-bg-secondary: #134e4a;
  --color-bg-alt: #f8faf9;
  --color-surface: #ffffff;
  --color-text: #111827;
  --color-text-secondary: #666666;
  --color-border: #e5e5e5;
  --color-border-light: #f0f0f0;

  /* Priority Colors */
  --color-urgent: #dc2626;
  --color-urgent-bg: #fef2f2;
  --color-important: #d97706;
  --color-important-bg: #fffbeb;
  --color-info: #007a33;
  --color-info-bg: #e6f4ec;

  /* Typography */
  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --line-height-base: 1.6;

  /* Border Radius from DESIGN.md */
  --radius-subtle: 6px;
  --radius-btn: 12px;
  --radius-card: 16px;
  --radius-large: 24px;
  --radius-pill: 9999px;

  /* Shadows from DESIGN.md */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-card: 0 1px 3px 0 rgba(0, 0, 0, 0.08), 0 1px 2px -1px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1);

  /* Spacing Grid (8px base) */
  --spacing-1: 8px;
  --spacing-2: 16px;
  --spacing-3: 24px;
  --spacing-4: 32px;
  --spacing-5: 40px;
  --spacing-6: 48px;
  --spacing-8: 64px;

  /* Transitions */
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: var(--line-height-base);
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul,
ol {
  list-style: none;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
}

/* Typography Hierarchy */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-family);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.25;
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.75rem;
}

h3 {
  font-size: 1.25rem;
}

h4 {
  font-size: 1.125rem;
}

h5 {
  font-size: 1rem;
}

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Containers & Layout
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--spacing-2);
  padding-right: var(--spacing-2);
}

.section {
  padding-top: var(--spacing-6);
  padding-bottom: var(--spacing-6);
}

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

.section-dark {
  background-color: var(--color-bg-secondary);
  color: #ffffff;
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: #ffffff;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto var(--spacing-5) auto;
}

.section-kicker {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--color-primary);
  margin-bottom: 8px;
  padding: 4px 12px;
  background-color: var(--color-primary-light);
  border-radius: var(--radius-pill);
}

.section-dark .section-kicker {
  background-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.section-title {
  font-size: 1.875rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--color-text);
}

.section-dark .section-title {
  color: #ffffff;
}

.section-subtitle {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
}

.section-dark .section-subtitle {
  color: rgba(255, 255, 255, 0.8);
}

/* --------------------------------------------------------------------------
   Buttons (DESIGN.md specifications)
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
  text-align: center;
  text-decoration: none;
}

.btn-primary {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 122, 51, 0.3);
  color: #ffffff;
}

.btn-secondary {
  background: var(--color-secondary);
  color: #ffffff;
  border-color: var(--color-secondary);
}

.btn-secondary:hover {
  background: var(--color-secondary-dark);
  border-color: var(--color-secondary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(197, 161, 78, 0.3);
  color: #ffffff;
}

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

.btn-outline:hover {
  background: var(--color-primary);
  color: #ffffff;
}

.btn-outline-white {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.6);
}

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

.btn-ghost {
  background: transparent;
  color: var(--color-primary);
  padding: 0;
  border-radius: 0;
  border: none;
  font-weight: 600;
}

.btn-ghost:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.8125rem;
}

.btn-lg {
  padding: 14px 30px;
  font-size: 1rem;
}

/* --------------------------------------------------------------------------
   Cards (DESIGN.md specifications)
   -------------------------------------------------------------------------- */
.card {
  background: var(--color-surface);
  border-radius: var(--radius-card);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  overflow: hidden;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: rgba(0, 122, 51, 0.25);
}

/* --------------------------------------------------------------------------
   Badges & Indicators
   -------------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: currentColor;
}

.badge-urgent {
  background-color: var(--color-urgent-bg);
  color: var(--color-urgent);
  border: 1px solid rgba(220, 38, 38, 0.2);
}

.badge-important {
  background-color: var(--color-important-bg);
  color: var(--color-important);
  border: 1px solid rgba(217, 119, 6, 0.2);
}

.badge-normal,
.badge-upcoming {
  background-color: var(--color-info-bg);
  color: var(--color-info);
  border: 1px solid rgba(0, 122, 51, 0.2);
}

.badge-ongoing {
  background-color: #ecfeff;
  color: #0891b2;
  border: 1px solid rgba(8, 145, 178, 0.2);
}

.badge-done {
  background-color: #f1f5f9;
  color: #64748b;
}

/* --------------------------------------------------------------------------
   Icons
   -------------------------------------------------------------------------- */
.svg-icon {
  width: 1.125rem;
  height: 1.125rem;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Header: Topbar, Navbar, & Multi-Language
   -------------------------------------------------------------------------- */
.site-header {
  z-index: 1000;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Default Inner Pages Header: Solid & In-Flow */
.site-header.header-inner-solid {
  position: relative;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.site-header.header-inner-solid .topbar {
  background: linear-gradient(90deg, #004d20 0%, #007a33 60%, #134e4a 100%);
  color: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.site-header.header-inner-solid .navbar {
  background: #ffffff;
  border-bottom: 1px solid var(--color-border-light);
}

/* Front Page Transparent Reduced-Opacity Header (Overlaid on Top of Hero Slider) */
.site-header.header-frontpage-transparent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  background: transparent !important;
  box-shadow: none !important;
  border-bottom: none !important;
}

/* Reduced opacity for topbar: ultra-sheer glass */
.site-header.header-frontpage-transparent .topbar {
  background: rgba(0, 0, 0, 0.12) !important;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: rgba(255, 255, 255, 0.95);
  padding: 4px 0;
  font-size: 0.75rem;
}

.site-header.header-frontpage-transparent .topbar-item {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.75rem;
}

.site-header.header-frontpage-transparent .topbar-item:hover {
  color: #ffffff;
}

.site-header.header-frontpage-transparent .topbar-jam {
  color: #fef08a;
}

/* Reduced opacity for navbar: crystal clear transparent glass */
.site-header.header-frontpage-transparent .navbar {
  background: rgba(0, 15, 8, 0.12) !important;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 15px 0;
}

/* Text and elements on transparent frontpage navbar */
.site-header.header-frontpage-transparent .site-title {
  color: #ffffff !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.site-header.header-frontpage-transparent .site-motto {
  color: rgba(255, 255, 255, 0.88) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.site-header.header-frontpage-transparent .nav-menu>li>a,
.site-header.header-frontpage-transparent .nav-menu>.menu-item>a {
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}

.site-header.header-frontpage-transparent .nav-menu>li:hover>a,
.site-header.header-frontpage-transparent .nav-menu>.menu-item:hover>a,
.site-header.header-frontpage-transparent .nav-menu>.current-menu-item>a {
  color: #fef08a !important;
}

.site-header.header-frontpage-transparent .nav-menu>li>a::after,
.site-header.header-frontpage-transparent .nav-menu>.menu-item>a::after {
  background: #c5a14e !important;
}

.site-header.header-frontpage-transparent .btn-search-toggle {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: #ffffff !important;
  padding: 6px !important;
}

.site-header.header-frontpage-transparent .btn-search-toggle:hover {
  background: transparent !important;
  transform: scale(1.15);
  opacity: 0.85;
}

.site-header.header-frontpage-transparent .btn-mobile-menu {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
}

/* Front Page Sticky on Scroll (Transitions to Clean Solid White) */
.site-header.header-frontpage-transparent.scrolled {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #ffffff !important;
  box-shadow: var(--shadow-md) !important;
  animation: headerStickySlide 0.3s ease-out;
}

.site-header.header-frontpage-transparent.scrolled .topbar {
  display: none !important;
}

.site-header.header-frontpage-transparent.scrolled .navbar {
  background: rgba(255, 255, 255, 0.98) !important;
  border-bottom: 1px solid var(--color-border-light) !important;
  box-shadow: none;
  padding: 8px 0;
}

.site-header.header-frontpage-transparent.scrolled .site-title {
  color: var(--color-primary) !important;
  text-shadow: none !important;
}

.site-header.header-frontpage-transparent.scrolled .site-motto {
  color: var(--color-text-secondary) !important;
  text-shadow: none !important;
}

.site-header.header-frontpage-transparent.scrolled .nav-menu>li>a,
.site-header.header-frontpage-transparent.scrolled .nav-menu>.menu-item>a {
  color: var(--color-text) !important;
  text-shadow: none !important;
}

.site-header.header-frontpage-transparent.scrolled .nav-menu>li:hover>a,
.site-header.header-frontpage-transparent.scrolled .nav-menu>.menu-item:hover>a,
.site-header.header-frontpage-transparent.scrolled .nav-menu>.current-menu-item>a {
  color: var(--color-primary) !important;
}

.site-header.header-frontpage-transparent.scrolled .nav-menu>li>a::after,
.site-header.header-frontpage-transparent.scrolled .nav-menu>.menu-item>a::after {
  background: var(--color-primary) !important;
}

.site-header.header-frontpage-transparent.scrolled .btn-search-toggle {
  background: #f8fafc;
  color: var(--color-text-secondary);
  border-color: var(--color-border);
}

.site-header.header-frontpage-transparent.scrolled .search-kbd-hint {
  background: #ffffff;
  color: #64748b;
  border-color: var(--color-border);
}

.site-header.header-frontpage-transparent.scrolled .btn-mobile-menu {
  color: var(--color-text);
  border-color: var(--color-border);
  background: transparent;
}

@keyframes headerStickySlide {
  from {
    transform: translateY(-100%);
  }

  to {
    transform: translateY(0);
  }
}

/* Topbar Styles (Restored Previous Design) */
.topbar {
  position: relative;
  z-index: 1050;
  font-size: 0.8125rem;
  padding: 7px 0;
}

/* Hide Topbar on Mobile & Tablet Devices */
@media (max-width: 991px) {
  .topbar {
    display: none !important;
  }
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--spacing-2);
}

/* Topbar Left (Contacts & Info) */
.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 0.8125rem;
  transition: var(--transition);
}

.topbar-item:hover {
  color: #ffffff;
}

.topbar-item .svg-icon {
  width: 14px;
  height: 14px;
  opacity: 0.85;
}

.topbar-jam {
  color: #fef08a;
  font-weight: 600;
}

/* Topbar Right (Socials & Multi-Language) */
.topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.topbar-socials {
  display: none;
  align-items: center;
  gap: 8px;
}

@media (min-width: 768px) {
  .topbar-socials {
    display: flex;
  }
}

.topbar-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  transition: var(--transition);
}

.topbar-social-link:hover {
  background: rgba(255, 255, 255, 0.35);
  color: #ffffff;
  transform: translateY(-1px);
}

.topbar-social-link .svg-icon {
  width: 13px;
  height: 13px;
}

/* Multi-Language Switcher Dropdown (High Z-Index, No Big Rounded) */
.lang-switcher {
  position: relative;
  z-index: 1060;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 4px;
  /* Crisp micro-radius */
  cursor: pointer;
  font-size: 0.775rem;
  font-weight: 700;
  transition: var(--transition);
}

.lang-btn:hover,
.lang-switcher.active .lang-btn {
  background: rgba(255, 255, 255, 0.3);
  border-color: #ffffff;
}

.lang-globe-icon {
  width: 14px;
  height: 14px;
}

.lang-chevron {
  width: 12px;
  height: 12px;
  transition: transform 0.2s ease;
}

.lang-switcher.active .lang-chevron {
  transform: rotate(180deg);
}

.lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: #ffffff;
  min-width: 190px;
  border-radius: 6px !important;
  /* No big rounded */
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-top: 2px solid var(--color-primary);
  padding: 4px 0;
  z-index: 99999 !important;
  /* Always on top of header & navbar */
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: var(--transition);
  list-style: none;
  margin: 0;
}

.lang-switcher.active .lang-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  color: #334155;
  border-radius: 0;
  text-align: left;
  transition: var(--transition);
}

.lang-option:hover {
  background: rgba(0, 122, 51, 0.06);
  color: var(--color-primary);
}

.lang-option.active {
  color: var(--color-primary);
  font-weight: 700;
  background: rgba(0, 122, 51, 0.08);
}

.lang-check {
  margin-left: auto;
  color: var(--color-primary);
  display: none;
}

.lang-option.active .lang-check {
  display: inline-flex;
}

/* Navbar */
.navbar {
  padding: 10px 0;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-3);
}

.site-branding .branding-link {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-logo {
  max-height: 35px;
  width: auto;
}

.emblem-badge {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--color-primary) 0%, #134e4a 100%);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 2px 5px rgba(0, 122, 51, 0.2);
  border: 1px solid #ffffff;
  font-size: 0.75rem;
  position: relative;
  flex-shrink: 0;
}

.emblem-sub {
  font-size: 0.5625rem;
  opacity: 0.85;
}

.site-title-box {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.site-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.15;
  letter-spacing: -0.2px;
}

.site-motto {
  font-size: 0.71875rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  line-height: 1.2;
  margin-top: 1px;
  letter-spacing: 0.1px;
}

/* Mobile Responsive Header & Text Logo */
@media (max-width: 991px) {
  .site-title {
    font-size: 1.05rem;
  }

  .site-motto {
    font-size: 0.6875rem;
  }
}

@media (max-width: 767px) {
  .navbar {
    padding: 7px 0;
  }

  .navbar .container {
    gap: 8px;
  }

  .site-branding .branding-link {
    gap: 7px;
  }

  .site-logo {
    max-height: 28px;
    width: auto;
  }

  .emblem-badge {
    width: 26px;
    height: 26px;
    font-size: 0.7rem;
    border-radius: 4px;
  }

  .site-title {
    font-size: 0.875rem;
    line-height: 1.15;
    letter-spacing: -0.15px;
  }

  .site-motto {
    font-size: 0.59375rem;
    line-height: 1.15;
    margin-top: 1px;
  }

  .header-actions {
    gap: 6px;
  }

  .btn-mobile-menu {
    width: 38px;
    height: 38px;
  }

  .btn-search-toggle {
    padding: 4px !important;
  }
}

@media (max-width: 480px) {
  .navbar {
    padding: 6px 0;
  }

  .site-branding .branding-link {
    gap: 6px;
  }

  .site-logo {
    max-height: 25px;
  }

  .emblem-badge {
    width: 24px;
    height: 24px;
    font-size: 0.625rem;
  }

  .emblem-sub {
    font-size: 0.5rem;
  }

  .site-title {
    font-size: 0.8125rem;
    line-height: 1.12;
  }

  .site-motto {
    font-size: 0.5625rem;
    line-height: 1.1;
  }

  .btn-mobile-menu {
    width: 35px;
    height: 35px;
  }

  .header-actions {
    gap: 4px;
  }
}

@media (max-width: 360px) {
  .site-branding .branding-link {
    gap: 5px;
  }

  .site-title {
    font-size: 0.75rem;
  }

  .site-motto {
    font-size: 0.5rem;
  }

  .site-logo {
    max-height: 22px;
  }

  .emblem-badge {
    width: 22px;
    height: 22px;
    font-size: 0.5625rem;
  }
}

/* Desktop Navigation Menu (Compact Gap & Font Size, Animated Underline, Multi-level Dropdown) */
.primary-nav {
  display: none;
}

@media (min-width: 1024px) {
  .primary-nav {
    display: flex;
    align-items: center;
  }
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 12px;
  /* Reduced gap between menu items */
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu>li,
.nav-menu>.menu-item {
  position: relative;
  list-style: none;
}

.nav-menu>li>a,
.nav-menu>.menu-item>a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 6px 0;
  font-size: 0.78125rem;
  /* Reduced font size: 12.5px */
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: 0.05px;
  transition: color 0.25s ease, transform 0.25s ease;
}

/* Animated bottom line indicator on hover & active */
.nav-menu>li>a::after,
.nav-menu>.menu-item>a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-primary);
  border-radius: 1px;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-menu>li:hover>a,
.nav-menu>.menu-item:hover>a,
.nav-menu>.current-menu-item>a,
.nav-menu>.current-menu-ancestor>a {
  color: var(--color-primary);
}

.nav-menu>li:hover>a::after,
.nav-menu>.menu-item:hover>a::after,
.nav-menu>.current-menu-item>a::after,
.nav-menu>.current-menu-ancestor>a::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Subtle chevron-down indicator for top-level items with children */
.nav-menu>.menu-item-has-children>a,
.nav-menu>.has-dropdown>a {
  padding-right: 14px;
}

.nav-menu>.menu-item-has-children>a::before,
.nav-menu>.has-dropdown>a::before {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  width: 5px;
  height: 5px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}

.nav-menu>.menu-item-has-children:hover>a::before,
.nav-menu>.has-dropdown:hover>a::before {
  transform: translateY(-30%) rotate(-135deg);
}

/* Multi-Level Submenu Dropdown ("Sub Menu Bertingkat" Without Big Rounded Corners) */
.nav-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-top: 2px solid var(--color-primary);
  border-radius: 6px !important;
  /* Sharp, sleek, modern micro-radius */
  box-shadow: 0 12px 30px -4px rgba(0, 0, 0, 0.12), 0 6px 12px -3px rgba(0, 0, 0, 0.06);
  padding: 6px 0;
  list-style: none;
  margin: 0;
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  pointer-events: none;
}

.nav-menu li:hover>.sub-menu,
.nav-menu .menu-item:hover>.sub-menu,
.nav-menu li.focus>.sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-menu .sub-menu li {
  position: relative;
  margin: 0;
  padding: 0;
  display: block;
}

.nav-menu .sub-menu li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 16px;
  font-size: 0.78125rem;
  font-weight: 500;
  color: #334155;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, padding-left 0.15s ease;
  border-radius: 0;
  white-space: nowrap;
}

.nav-menu .sub-menu li:hover>a {
  background: rgba(0, 122, 51, 0.06);
  color: var(--color-primary);
  padding-left: 22px;
}

/* Level 2 & 3 Bertingkat (Flyout Submenu to the right) */
.nav-menu .sub-menu .menu-item-has-children>a::after,
.nav-menu .sub-menu .has-dropdown>a::after {
  content: '›';
  font-size: 1.15rem;
  line-height: 1;
  margin-left: 12px;
  color: #94a3b8;
  font-weight: 700;
}

.nav-menu .sub-menu .sub-menu {
  top: 0;
  left: 100%;
  margin-left: 2px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  border-left: 2px solid var(--color-primary);
  border-radius: 6px !important;
}

/* Header Actions: Search & Mobile Hamburger (Search without card wrapper) */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-search-toggle {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 6px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-text);
  transition: opacity 0.2s ease, transform 0.2s ease, color 0.2s ease;
  border-radius: 0;
}

.btn-search-toggle:hover {
  background: transparent !important;
  color: var(--color-primary);
  transform: scale(1.15);
}

.btn-search-toggle .svg-icon {
  width: 18px;
  height: 18px;
}

/* Glowing PPDB CTA Button */
.btn-ppdb-glow {
  position: relative;
  background: linear-gradient(135deg, var(--color-primary) 0%, #00963f 100%);
  color: #ffffff;
  padding: 9px 20px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.875rem;
  display: none;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(0, 122, 51, 0.35);
  transition: var(--transition);
}

@media (min-width: 640px) {
  .btn-ppdb-glow {
    display: inline-flex;
  }
}

.btn-ppdb-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 122, 51, 0.5);
  color: #ffffff;
}

.glow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fbbf24;
  box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.7);
  animation: pulse-yellow 2s infinite;
}

@keyframes pulse-yellow {
  0% {
    box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.7);
  }

  70% {
    box-shadow: 0 0 0 8px rgba(251, 191, 36, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(251, 191, 36, 0);
  }
}

.btn-mobile-menu {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-btn);
  cursor: pointer;
  color: var(--color-text);
}

@media (min-width: 1024px) {
  .btn-mobile-menu {
    display: none;
  }
}

/* Mobile Drawer */
.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.mobile-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 320px;
  max-width: 85%;
  height: 100vh;
  background: #ffffff;
  z-index: 2001;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
}

.mobile-drawer.active {
  transform: translateX(0);
}

/* Modern Mobile Navigation Drawer Redesign */
.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-bottom: 1px solid var(--color-border);
  gap: 12px;
}

.drawer-branding {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-width: 0;
  flex: 1;
}

.drawer-logo-wrapper {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.drawer-site-logo {
  max-height: 38px;
  max-width: 90px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.drawer-emblem {
  width: 34px;
  height: 34px;
  font-size: 0.85rem;
}

.drawer-title-box {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.drawer-site-title {
  font-weight: 800;
  color: var(--color-primary);
  font-size: 0.9375rem;
  line-height: 1.2;
  letter-spacing: -0.2px;
}

.drawer-site-motto {
  font-size: 0.625rem;
  color: #64748b;
  line-height: 1.2;
  margin-top: 2px;
  font-weight: 500;
}

.drawer-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f1f5f9;
  border: 1px solid var(--color-border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.drawer-close:hover {
  background: #fee2e2;
  color: #dc2626;
  border-color: #fecaca;
  transform: rotate(90deg);
}

.drawer-close .svg-icon {
  width: 17px;
  height: 17px;
}

.drawer-lang-section {
  padding: 10px 16px;
  background: #f8fafc;
  border-bottom: 1px solid var(--color-border-light);
}

.drawer-lang-title {
  font-size: 0.6875rem;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.drawer-lang-buttons {
  display: flex;
  gap: 8px;
}

.drawer-lang-btn {
  flex: 1;
  padding: 6px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
  background: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: var(--transition);
}

.drawer-lang-btn.active {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 10px 12px;
  overscroll-behavior: contain;
}

.drawer-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.drawer-nav-list>.menu-item,
.drawer-nav-list>.nav-item {
  position: relative;
  list-style: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.drawer-nav-list>.menu-item:last-child,
.drawer-nav-list>.nav-item:last-child {
  border-bottom: none;
}

/* Parent links */
.drawer-nav-list>.menu-item>a,
.drawer-nav-list>.nav-item>a {
  display: flex;
  align-items: center;
  padding: 11px 44px 11px 10px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.drawer-nav-list>.menu-item:not(.menu-item-has-children)>a {
  padding-right: 12px;
}

.drawer-nav-list>.menu-item:hover>a,
.drawer-nav-list>.nav-item:hover>a {
  background: rgba(0, 122, 51, 0.05);
  color: var(--color-primary);
  padding-left: 14px;
}

/* Active top-level menu item */
.drawer-nav-list>.menu-item.current-menu-item>a,
.drawer-nav-list>.menu-item.current-menu-ancestor>a,
.drawer-nav-list>.menu-item.current_page_ancestor>a {
  color: var(--color-primary);
  font-weight: 700;
  background: rgba(0, 122, 51, 0.08);
  border-left: 3px solid var(--color-primary);
  padding-left: 10px;
}

/* Submenu Accordion Toggle Button */
.drawer-sub-toggle {
  position: absolute;
  right: 6px;
  top: 6px;
  width: 34px;
  height: 34px;
  border: none;
  background: #f1f5f9;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  cursor: pointer;
  transition: all 0.25s ease;
  z-index: 2;
}

.drawer-sub-toggle:hover {
  background: rgba(0, 122, 51, 0.12);
  color: var(--color-primary);
}

.drawer-sub-toggle .svg-icon {
  width: 15px;
  height: 15px;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Submenu container (Collapsed by default, Animated Accordion) */
.drawer-nav-list .sub-menu {
  list-style: none;
  margin: 0 0 0 10px;
  padding: 0;
  max-height: 0;
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
  border-left: 2px solid rgba(0, 122, 51, 0.25);
  background: rgba(248, 250, 252, 0.75);
  border-radius: 0 8px 8px 0;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease, padding 0.25s ease, visibility 0.25s ease;
}

/* When parent item is toggled OPEN */
.drawer-nav-list .menu-item-has-children.is-open>.sub-menu {
  max-height: 500px;
  opacity: 1;
  visibility: visible;
  padding: 4px 6px 6px 8px;
  margin-top: 2px;
  margin-bottom: 6px;
}

.drawer-nav-list .menu-item-has-children.is-open>.drawer-sub-toggle {
  background: rgba(0, 122, 51, 0.12);
  color: var(--color-primary);
}

.drawer-nav-list .menu-item-has-children.is-open>.drawer-sub-toggle .svg-icon {
  transform: rotate(180deg);
}

/* Submenu child items */
.drawer-nav-list .sub-menu>.menu-item {
  list-style: none;
  margin: 0;
  border-bottom: none;
}

.drawer-nav-list .sub-menu>.menu-item>a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  font-size: 0.84375rem;
  font-weight: 500;
  color: #475569;
  text-decoration: none;
  border-radius: 5px;
  transition: all 0.2s ease;
}

.drawer-nav-list .sub-menu>.menu-item>a::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(0, 122, 51, 0.4);
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.drawer-nav-list .sub-menu>.menu-item:hover>a {
  color: var(--color-primary);
  background: #ffffff;
  padding-left: 14px;
}

.drawer-nav-list .sub-menu>.menu-item:hover>a::before {
  background: var(--color-primary);
  transform: scale(1.4);
}

/* Active child link */
.drawer-nav-list .sub-menu>.menu-item.current-menu-item>a {
  color: var(--color-primary);
  font-weight: 700;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.drawer-nav-list .sub-menu>.menu-item.current-menu-item>a::before {
  background: var(--color-primary);
  transform: scale(1.5);
}

/* Drawer Footer */
.drawer-footer {
  padding: 14px 16px;
  border-top: 1px solid var(--color-border);
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.drawer-footer .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: var(--radius-btn);
  text-decoration: none;
  font-size: 0.875rem;
  transition: var(--transition);
}

.drawer-btn-ppdb {
  background: linear-gradient(135deg, var(--color-primary) 0%, #00963f 100%);
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(0, 122, 51, 0.25);
  border: none;
}

.drawer-btn-ppdb:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 122, 51, 0.4);
  color: #ffffff !important;
}

.drawer-btn-wa {
  background: #ffffff;
  border: 1.5px solid #25d366;
  color: #128c7e !important;
}

.drawer-btn-wa:hover {
  background: #f0fdf4;
  transform: translateY(-2px);
}

/* Category Filter Pills (Used in All Archive/Listing Pages) */
.category-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 600;
  background: #ffffff;
  border: 1px solid var(--color-border);
  color: var(--color-text);
  transition: var(--transition);
}

.category-pill-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-2px);
}

.category-pill-btn.active {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(0, 122, 51, 0.25);
}

/* --------------------------------------------------------------------------
   Hero Slider Section (Full-screen & Dynamic)
   -------------------------------------------------------------------------- */
.hero-slider-section {
  position: relative;
  width: 100%;
  min-height: 600px;
  height: 100vh;
  max-height: none !important;
  background-color: #0b1f14;
  overflow: hidden;
}

.slider-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide-item {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, transform 0.8s ease;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  padding-top: 105px;
  /* Header clearance so text is balanced below transparent header */
  padding-bottom: 40px;
}

.slide-item.active {
  opacity: 1;
  visibility: visible;
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 33, 16, 0.92) 0%, rgba(7, 33, 16, 0.75) 50%, rgba(7, 33, 16, 0.4) 100%);
}

.slide-content {
  position: relative;
  z-index: 10;
  max-width: 680px;
  color: #ffffff;
}

.slide-kicker {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(197, 161, 78, 0.2);
  border: 1px solid var(--color-secondary);
  color: #fce7b0;
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.slide-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 16px;
}

@media (max-width: 767px) {
  .slide-item {
    padding-top: 75px;
    padding-bottom: 24px;
  }

  .slide-kicker {
    font-size: 0.6875rem;
    padding: 4px 10px;
    margin-bottom: 10px;
  }

  .slide-title {
    font-size: 1.625rem;
    line-height: 1.2;
    margin-bottom: 12px;
  }

  .slide-desc {
    font-size: 0.875rem;
    margin-bottom: 18px;
    line-height: 1.5;
  }

  .slider-arrow {
    width: 38px;
    height: 38px;
  }

  .slider-prev {
    left: 12px;
  }

  .slider-next {
    right: 12px;
  }
}

@media (max-width: 480px) {
  .slide-title {
    font-size: 1.375rem;
  }

  .slide-desc {
    font-size: 0.8125rem;
    line-height: 1.45;
  }
}

.slide-desc {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 28px;
  line-height: 1.6;
}

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

/* Slider Controls */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.slider-arrow:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.slider-prev {
  left: 24px;
}

.slider-next {
  right: 24px;
}

.slider-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  gap: 8px;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.slider-dot.active {
  width: 32px;
  border-radius: var(--radius-pill);
  background: var(--color-secondary);
}

/* --------------------------------------------------------------------------
   Sambutan Kepala Madrasah Section - Redesigned
   -------------------------------------------------------------------------- */
.section-sambutan {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  position: relative;
  overflow: hidden;
  padding: 64px 0;
}

.sambutan-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

@media (min-width: 992px) {
  .sambutan-grid {
    grid-template-columns: 320px 1fr;
    gap: 44px;
  }
}

.sambutan-leader-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sambutan-photo-frame {
  position: relative;
  width: 100%;
  max-width: 270px;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  padding: 6px;
  background: #ffffff;
  border: 1px solid rgba(0, 122, 51, 0.2);
  box-shadow: 0 16px 36px -8px rgba(0, 77, 32, 0.18);
  margin: 0 auto 16px auto;
  overflow: visible;
}

.sambutan-decor-ring {
  position: absolute;
  inset: -6px;
  border-radius: 16px;
  border: 2px dashed rgba(197, 161, 78, 0.5);
  pointer-events: none;
}

.sambutan-leader-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.sambutan-leader-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  background: linear-gradient(135deg, #072413 0%, #0a4d25 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  padding: 20px;
  text-align: center;
}

.leader-avatar-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  color: var(--color-secondary, #c5a14e);
}

.leader-placeholder-text {
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

.sambutan-role-badge {
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #007a33 0%, #005a26 100%);
  color: #ffffff;
  padding: 5px 16px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 122, 51, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 2;
}

.role-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-secondary, #c5a14e);
}

.sambutan-leader-info {
  text-align: center;
  margin-top: 6px;
}

.leader-name {
  font-size: 1.125rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 4px;
}

.leader-nip {
  font-size: 0.8125rem;
  color: #64748b;
  font-weight: 500;
  margin-bottom: 10px;
}

.leader-tags {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.leader-tag-pill {
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  background: #e2e8f0;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.leader-tag-pill.pill-gold {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

/* Sambutan Message Card */
.sambutan-message-card {
  position: relative;
  background: #ffffff;
  border-radius: 12px;
  padding: 34px 36px;
  border: 1px solid rgba(0, 122, 51, 0.12);
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.sambutan-message-decor-quote {
  position: absolute;
  top: -10px;
  right: 24px;
  font-size: 8rem;
  font-family: Georgia, serif;
  color: rgba(0, 122, 51, 0.05);
  line-height: 1;
  pointer-events: none;
}

.sambutan-header-row {
  margin-bottom: 16px;
}

.sambutan-headline {
  font-size: 1.4rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.35;
  margin-top: 8px;
}

.sambutan-quote-block {
  margin-bottom: 16px;
  border-left: 3.5px solid var(--color-primary, #007a33);
  padding-left: 16px;
}

.sambutan-quote-main {
  font-size: 1.0625rem;
  font-style: italic;
  font-weight: 500;
  color: #1e293b;
  line-height: 1.75;
}

.sambutan-extended-text,
.sambutan-secondary-text {
  font-size: 0.9375rem;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 22px;
}

.sambutan-footer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid #f1f5f9;
}

.sambutan-signature-box {
  display: flex;
  flex-direction: column;
}

.signature-inst {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-primary, #007a33);
}

.signature-motto {
  font-size: 0.8125rem;
  font-style: italic;
  color: #64748b;
}

.sambutan-action-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   Berita & Dinamika Madrasah Section - Redesigned
   -------------------------------------------------------------------------- */
.section-berita {
  padding: 64px 0;
  background: #ffffff;
}

.section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
  gap: 20px;
}

.section-header-left {
  max-width: 640px;
}

.news-grid-modern {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 640px) {
  .news-grid-modern {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .news-grid-modern {
    grid-template-columns: repeat(3, 1fr);
  }
}

.news-card-modern {
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.news-card-modern:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 32px -8px rgba(0, 77, 32, 0.14);
  border-color: rgba(0, 122, 51, 0.3);
}

.news-card-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: #0d2e1b;
}

.news-thumb-link {
  display: block;
  width: 100%;
  height: 100%;
}

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

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

.news-img-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #021a0c 0%, #0a4d25 100%);
  color: rgba(255, 255, 255, 0.4);
}

.news-overlay-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0.5) 100%);
  pointer-events: none;
}

.news-badge-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0, 122, 51, 0.9);
  backdrop-filter: blur(6px);
  color: #ffffff;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.news-meta-strip {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.75rem;
  color: #64748b;
  margin-bottom: 10px;
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.meta-item svg {
  width: 13px;
  height: 13px;
  color: var(--color-primary, #007a33);
}

.news-card-title {
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.4;
  color: #0f172a;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.news-card-title a:hover {
  color: var(--color-primary, #007a33);
}

.news-card-excerpt {
  font-size: 0.84375rem;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.news-card-footer {
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
}

.news-readmore-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-primary, #007a33);
  text-decoration: none;
  transition: gap 0.2s ease, color 0.2s ease;
}

.readmore-arrow {
  transition: transform 0.2s ease;
}

.news-card-modern:hover .readmore-arrow {
  transform: translateX(4px);
}

.news-bottom-action {
  margin-top: 24px;
}

.news-empty-box {
  padding: 40px;
  text-align: center;
  background: #f8fafc;
  border-radius: 8px;
  color: #64748b;
}

@media (min-width: 768px) {
  .mobile-only {
    display: none !important;
  }
}

@media (max-width: 767px) {
  .desktop-only {
    display: none !important;
  }
}

/* --------------------------------------------------------------------------
   Pengumuman & Agenda (2-Column Split Showcase)
   -------------------------------------------------------------------------- */
.dual-section-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-4);
}

@media (min-width: 960px) {
  .dual-section-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.dual-col-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--spacing-3);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-border);
}

.dual-col-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-primary);
}

/* Pengumuman List */
.pengumuman-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pengumuman-card {
  padding: 16px;
  background: #ffffff;
  border-radius: var(--radius-card);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.pengumuman-card:hover {
  border-color: var(--color-primary);
  transform: translateX(4px);
}

.pengumuman-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.pengumuman-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 6px;
}

.pengumuman-title a:hover {
  color: var(--color-primary);
}

.pengumuman-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
}

/* Agenda List */
.agenda-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.agenda-card {
  display: flex;
  gap: 16px;
  background: #ffffff;
  border-radius: var(--radius-card);
  border: 1px solid var(--color-border);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.agenda-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.agenda-date-box {
  width: 68px;
  min-width: 68px;
  height: 72px;
  background: var(--color-primary-light);
  border: 1px solid rgba(0, 122, 51, 0.2);
  border-radius: var(--radius-btn);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.agenda-day {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
}

.agenda-month {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-primary-dark);
}

.agenda-info {
  flex: 1;
}

.agenda-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.agenda-title a:hover {
  color: var(--color-primary);
}

.agenda-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
}

.agenda-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* --------------------------------------------------------------------------
   Prestasi Showcase
   -------------------------------------------------------------------------- */
.prestasi-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-3);
}

@media (min-width: 640px) {
  .prestasi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .prestasi-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.prestasi-card {
  background: #ffffff;
  border-radius: var(--radius-card);
  border: 1px solid var(--color-border);
  padding: var(--spacing-3);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
}

.prestasi-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-secondary);
}

.prestasi-icon-wrapper {
  width: 52px;
  height: 52px;
  background: var(--color-secondary-light);
  border: 1px solid rgba(197, 161, 78, 0.3);
  color: var(--color-secondary-dark);
  border-radius: var(--radius-btn);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.prestasi-trophy {
  width: 28px;
  height: 28px;
}

.prestasi-juara {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-secondary-dark);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.prestasi-title {
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 10px;
  flex: 1;
}

.prestasi-winner {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 4px;
}

.prestasi-meta {
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
  border-top: 1px solid var(--color-border-light);
  padding-top: 8px;
  margin-top: 8px;
}

/* --------------------------------------------------------------------------
   Galeri Kegiatan Grid
   -------------------------------------------------------------------------- */
.galeri-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-2);
}

@media (min-width: 640px) {
  .galeri-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .galeri-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.galeri-card {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  background-color: #1e293b;
}

.galeri-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.galeri-card:hover .galeri-thumb {
  transform: scale(1.08);
}

.galeri-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--spacing-3);
  color: #ffffff;
}

.galeri-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.galeri-card-date {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.75);
}

.galeri-badge-type {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
}

/* --------------------------------------------------------------------------
   Statistik Madrasah Counter
   -------------------------------------------------------------------------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-3);
}

@media (min-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-card);
  padding: var(--spacing-4) var(--spacing-3);
  text-align: center;
  transition: var(--transition);
}

.stat-card:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-3px);
}

.stat-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 12px auto;
  color: var(--color-secondary);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   CTA PPDB Showcase Hub - Redesigned
   -------------------------------------------------------------------------- */
.section-ppdb-showcase {
  padding: 64px 0;
  position: relative;
}

.ppdb-showcase-card {
  position: relative;
  background: linear-gradient(135deg, #021a0c 0%, #07381a 50%, #0a4d25 100%);
  border-radius: 12px;
  border: 1px solid rgba(197, 161, 78, 0.3);
  box-shadow: 0 24px 60px -15px rgba(0, 48, 20, 0.45);
  padding: 44px 40px;
  color: #ffffff;
  overflow: hidden;
}

.ppdb-decor-circle-1 {
  position: absolute;
  top: -80px;
  right: -80px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(197, 161, 78, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
  pointer-events: none;
}

.ppdb-decor-circle-2 {
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, rgba(0, 0, 0, 0) 70%);
  pointer-events: none;
}

.ppdb-showcase-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}

@media (min-width: 992px) {
  .ppdb-showcase-grid {
    grid-template-columns: 1.35fr 0.9fr;
    gap: 44px;
  }
}

.ppdb-status-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.ppdb-badge-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.ppdb-badge-status.status-open {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid #10b981;
  color: #a7f3d0;
}

.ppdb-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: mls-pulse 1.8s infinite;
}

.ppdb-badge-status.status-closed {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid #ef4444;
  color: #fca5a5;
}

.ppdb-tag-inst {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-secondary, #c5a14e);
  letter-spacing: 0.5px;
}

.ppdb-headline {
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
  margin-bottom: 12px;
}

.ppdb-subtext {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 20px;
}

.ppdb-features-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 26px;
}

@media (min-width: 600px) {
  .ppdb-features-list {
    grid-template-columns: 1fr 1fr;
  }
}

.ppdb-feat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #e2e8f0;
}

.feat-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.25);
  color: #34d399;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
  font-weight: 800;
  flex-shrink: 0;
}

.ppdb-btn-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-gold {
  background: linear-gradient(135deg, #d4af37 0%, #aa820a 100%);
  color: #0b1f12 !important;
  font-weight: 800 !important;
  border: 1px solid #fde047 !important;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.35);
  border-radius: 6px !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.5);
  color: #000000 !important;
}

.btn-whatsapp {
  background: #25d366;
  color: #ffffff !important;
  font-weight: 700 !important;
  border-radius: 6px !important;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
}

.btn-whatsapp:hover {
  background: #1eb954;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(37, 211, 102, 0.35);
}

.btn-outline-white {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s ease;
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #ffffff !important;
  transform: translateY(-2px);
}

/* Side Card: Alur Kilat */
.ppdb-side-card {
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 22px 24px;
  backdrop-filter: blur(8px);
}

.side-card-kicker {
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--color-secondary, #c5a14e);
  text-transform: uppercase;
}

.side-card-title {
  font-size: 1.125rem;
  font-weight: 800;
  color: #ffffff;
  margin-top: 4px;
  margin-bottom: 14px;
}

.ppdb-step-timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(197, 161, 78, 0.25);
  border: 1.5px solid var(--color-secondary, #c5a14e);
  color: #fde68a;
  font-size: 0.6875rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.step-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.step-text strong {
  font-size: 0.8125rem;
  color: #ffffff;
}

.step-text span {
  font-size: 0.71875rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.4;
}

.side-card-footer {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sec-help-badge {
  display: flex;
  align-items: center;
  gap: 10px;
}

.help-icon {
  font-size: 1.15rem;
  color: var(--color-secondary, #c5a14e);
}

.help-text {
  display: flex;
  flex-direction: column;
}

.help-text span {
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.65);
}

.help-text strong {
  font-size: 0.75rem;
  color: #f8fafc;
}

/* --------------------------------------------------------------------------
   Footer Section & Visitor Counter
   -------------------------------------------------------------------------- */
.site-footer {
  background: linear-gradient(180deg, #072413 0%, #03140a 100%);
  color: rgba(255, 255, 255, 0.85);
  padding-top: 52px;
  font-size: 0.875rem;
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-top-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #007a33 0%, #c5a14e 50%, #007a33 100%);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 44px;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr;
  }
}

.footer-col h4,
.footer-widget-title {
  color: #ffffff;
  font-size: 0.9375rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col h4::after,
.footer-widget-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28px;
  height: 2px;
  background: var(--color-secondary);
  border-radius: 2px;
}

.footer-about-text {
  line-height: 1.65;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.84375rem;
}

.footer-badges-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-badge-pill {
  padding: 3px 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #ffffff;
}

.footer-badge-pill.pill-gold {
  background: rgba(197, 161, 78, 0.15);
  border-color: rgba(197, 161, 78, 0.5);
  color: #fef08a;
}

.footer-contact-list li {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.84375rem;
  line-height: 1.45;
}

.footer-contact-list li svg {
  width: 16px;
  height: 16px;
  color: var(--color-secondary);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-contact-list a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-contact-list a:hover {
  color: #ffffff;
}

.footer-links-list li {
  margin-bottom: 9px;
}

.footer-links-list a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.84375rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.footer-links-list a svg {
  width: 13px;
  height: 13px;
  color: var(--color-secondary);
  transition: transform 0.2s ease;
}

.footer-links-list a:hover {
  color: #ffffff;
  transform: translateX(4px);
}

.footer-links-list a:hover svg {
  transform: translateX(2px);
}

/* Simplified Minimal Visitor Counter */
.visitor-simple-card {
  margin-bottom: 18px;
}

.visitor-simple-box {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 14px 16px;
}

.visitor-stat-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-lbl {
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.stat-num {
  font-size: 1.125rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
}

.stat-total {
  color: var(--color-secondary);
}

.stat-separator {
  width: 1px;
  height: 28px;
  background: rgba(255, 255, 255, 0.12);
}

.visitor-live-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 6px;
  font-size: 0.75rem;
  color: #86efac;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #4ade80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
  animation: pulse 1.8s infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
  }

  70% {
    box-shadow: 0 0 0 8px rgba(74, 222, 128, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0);
  }
}

/* Footer Social Circles */
.footer-social-section {
  margin-top: 14px;
}

.footer-social-label {
  display: block;
  font-size: 0.71875rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 8px;
}

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

.social-circle-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 0.6875rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
}

.social-circle-btn:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 122, 51, 0.3);
}

/* Footer Bottom Bar */
.footer-bottom {
  background: rgba(0, 0, 0, 0.4);
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.78125rem;
  color: rgba(255, 255, 255, 0.65);
}

.footer-bottom .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

@media (min-width: 768px) {
  .footer-bottom .container {
    flex-direction: row;
  }
}

.footer-portal-seal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.71875rem;
  color: rgba(255, 255, 255, 0.55);
}

.seal-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
}

/* --------------------------------------------------------------------------
   Dynamic Popup Modal
   -------------------------------------------------------------------------- */
.madrasah-popup-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.madrasah-popup-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.madrasah-popup-card {
  position: relative;
  background: #ffffff;
  border-radius: 8px !important;
  /* Rounded kecil */
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transform: scale(0.95);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.madrasah-popup-backdrop.active .madrasah-popup-card {
  transform: scale(1);
}

/* 1. Full Image Popup (Flyer / Poster Tanpa Padding Tanpa Judul) */
.madrasah-popup-card.madrasah-popup-image-only {
  max-width: min(92vw, 560px);
  width: auto;
  padding: 0 !important;
  background: transparent;
  border: none;
  border-radius: 6px !important;
  /* Rounded kecil */
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  line-height: 0;
}

.popup-image-full-wrap {
  position: relative;
  display: block;
  max-width: 100%;
  line-height: 0;
  border-radius: 6px;
  overflow: hidden;
}

.popup-image-link {
  display: block;
  line-height: 0;
  cursor: pointer;
}

.popup-full-img {
  display: block;
  width: 100%;
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 6px;
  /* Rounded kecil */
}

/* 2. Standard Card Popup (Bukan Gambar: Berisi Judul, Deskripsi & Tombol) */
.madrasah-popup-card.madrasah-popup-standard {
  max-width: 520px;
  width: 100%;
  border-radius: 8px !important;
  /* Rounded kecil */
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.madrasah-popup-standard .popup-image-box img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  display: block;
}

.madrasah-popup-standard .popup-body {
  padding: 24px 28px;
  text-align: center;
}

.madrasah-popup-standard .popup-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary, #007a33);
  margin-bottom: 12px;
  line-height: 1.35;
}

.madrasah-popup-standard .popup-desc {
  font-size: 0.9375rem;
  color: var(--color-text-secondary, #475569);
  margin-bottom: 20px;
  line-height: 1.6;
}

.madrasah-popup-standard .popup-action .btn {
  border-radius: 6px !important;
  /* Rounded kecil */
}

/* Floating Close Button (Rounded Kecil 4px) */
.popup-close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  background: rgba(0, 0, 0, 0.65);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  /* Rounded kecil */
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 30;
  transition: all 0.2s ease;
  padding: 0;
}

.popup-close-btn:hover {
  background: rgba(0, 0, 0, 0.9);
  color: #ffffff;
  transform: scale(1.06);
}

.popup-close-btn svg {
  width: 18px;
  height: 18px;
}

/* --------------------------------------------------------------------------
   Single Post, Archive & Page Content Styling
   -------------------------------------------------------------------------- */
.page-header {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-bg-secondary) 100%);
  color: #ffffff;
  padding: var(--spacing-6) 0 var(--spacing-5) 0;
  text-align: center;
}

.page-title {
  color: #ffffff;
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.page-description {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  margin: 0 auto;
}

.breadcrumbs {
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
  padding: 10px 0;
  font-size: 0.8125rem;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.breadcrumb-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-text-secondary);
}

.breadcrumb-item a:hover {
  color: var(--color-primary);
}

.breadcrumb-item::after {
  content: '/';
  margin-left: 8px;
  color: #cbd5e1;
}

.breadcrumb-item:last-child::after {
  content: '';
}

.breadcrumb-item.active {
  color: var(--color-primary);
  font-weight: 600;
}

.content-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-4);
  padding: var(--spacing-5) 0;
}

@media (min-width: 1024px) {
  .content-layout {
    grid-template-columns: 1fr 340px;
  }
}

.main-content {
  min-width: 0;
}

.article-single {
  background: #ffffff;
  border-radius: var(--radius-card);
  border: 1px solid var(--color-border);
  padding: var(--spacing-4);
  box-shadow: var(--shadow-sm);
}

.article-header {
  margin-bottom: var(--spacing-3);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
  margin-top: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--color-border-light);
}

.article-featured-img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: var(--radius-btn);
  margin-bottom: var(--spacing-4);
}

.article-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #334155;
}

.article-body h2,
.article-body h3 {
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

.article-body p,
.article-body ul,
.article-body ol {
  margin-bottom: 1.25em;
}

.article-body ul {
  list-style: disc;
  margin-left: 1.5em;
}

.article-body ol {
  list-style: decimal;
  margin-left: 1.5em;
}

/* Share Box & Cool Social Icons */
.article-meta-views {
  color: var(--color-primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.article-tags-box {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.article-tags-title {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--color-text);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

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

.article-tag-item {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.78125rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid #e2e8f0;
}

.article-tag-item:hover {
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-color: var(--color-primary);
  transform: translateY(-1px);
}

/* Cool Circular Social Share Buttons */
.share-box-modern {
  margin-top: 24px;
  padding: 18px 22px;
  background: #f8fafc;
  border: 1px solid var(--color-border-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.share-title-label {
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--color-text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.share-buttons-cool {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-share-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.btn-share-icon:hover {
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  color: #ffffff;
}

.btn-share-icon .svg-icon {
  width: 18px;
  height: 18px;
}

.btn-share-icon.share-wa {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
}

.btn-share-icon.share-fb {
  background: linear-gradient(135deg, #1877f2 0%, #0d5bb5 100%);
}

.btn-share-icon.share-tw {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.btn-share-icon.share-tg {
  background: linear-gradient(135deg, #229ed9 0%, #1783b8 100%);
}

.btn-share-icon.share-copy {
  background: linear-gradient(135deg, #64748b 0%, #475569 100%);
}

/* Sidebar Redesign */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-widget {
  padding: 20px;
}

/* Sidebar Promo Banner Card */
.widget-banner-card {
  position: relative;
  background: linear-gradient(135deg, #004d20 0%, #007a33 60%, #134e4a 100%);
  border-radius: 8px;
  overflow: hidden;
  padding: 24px 20px !important;
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 122, 51, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.banner-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 20, 8, 0.6) 0%, rgba(0, 20, 8, 0.85) 100%);
  z-index: 1;
}

.banner-card-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
}

.banner-kicker {
  display: inline-block;
  align-self: flex-start;
  background: rgba(197, 161, 78, 0.3);
  border: 1px solid var(--color-secondary);
  color: #fef08a;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.banner-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
  margin-bottom: 6px;
}

.banner-desc {
  font-size: 0.78125rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.45;
  margin-bottom: 12px;
}

.banner-btn {
  align-self: flex-start;
  box-shadow: 0 4px 12px rgba(197, 161, 78, 0.35);
}

/* Sidebar News List */
.sidebar-news-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sidebar-news-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border-light);
}

.sidebar-news-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.sidebar-news-thumb-link {
  flex-shrink: 0;
}

.sidebar-news-thumb {
  width: 68px;
  height: 68px;
  border-radius: 6px;
  object-fit: cover;
  display: block;
}

.placeholder-thumb {
  background: #007a33;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.sidebar-news-info {
  flex: 1;
  min-width: 0;
}

.sidebar-news-title {
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 4px;
}

.sidebar-news-title a {
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.sidebar-news-title a:hover {
  color: var(--color-primary);
}

.sidebar-news-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.6875rem;
  color: var(--color-text-secondary);
}

/* Sidebar Tag Cloud */
.sidebar-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sidebar-tag-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #475569;
  text-decoration: none;
  transition: all 0.2s ease;
}

.sidebar-tag-item:hover {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
  transform: translateY(-1px);
}

.tag-count {
  font-size: 0.65rem;
  opacity: 0.7;
}

.widget {
  padding: var(--spacing-3);
}

.widget-title {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-primary);
  margin-bottom: 14px;
  position: relative;
  padding-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.widget-title svg {
  width: 15px;
  height: 15px;
}

.widget-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 26px;
  height: 2px;
  background: var(--color-secondary);
  border-radius: 2px;
}

.widget-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border-light);
}

.widget-item:last-child {
  border-bottom: none;
}

.widget-item-link {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--color-text);
  line-height: 1.35;
}

.widget-item-link:hover {
  color: var(--color-primary);
}

.widget-item-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.widget-item-date {
  font-size: 0.75rem;
  color: var(--color-text-secondary);
}

/* Agenda Mini Item */
.agenda-mini-item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border-light);
}

.agenda-mini-item:last-child {
  border-bottom: none;
}

.agenda-mini-date {
  width: 48px;
  min-width: 48px;
  height: 52px;
  background: var(--color-primary-light);
  border-radius: var(--radius-subtle);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.agenda-mini-day {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
}

.agenda-mini-month {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--color-primary-dark);
}

.agenda-mini-title {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
}

.agenda-mini-title:hover {
  color: var(--color-primary);
}

.agenda-mini-meta {
  font-size: 0.75rem;
  color: var(--color-text-secondary);
  margin-top: 4px;
  display: flex;
  gap: 8px;
}

/* Pagination */
.pagination-wrapper {
  margin-top: var(--spacing-5);
  display: flex;
  justify-content: center;
}

.page-numbers {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.page-numbers li {
  display: inline-block;
}

.page-numbers a,
.page-numbers span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid var(--color-border);
  background: #ffffff;
  color: var(--color-text);
}

.page-numbers a:hover,
.page-numbers .current {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  z-index: 990;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--color-primary-dark);
  transform: translateY(-3px);
}

/* Search Modal (Modern Non-Rounded Translucent Glassmorphism) */
.search-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 16, 9, 0.65) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  z-index: 3000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 120px 20px 20px 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.search-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.search-modal-box {
  background: rgba(7, 26, 15, 0.85) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  width: 100%;
  max-width: 620px;
  border-radius: 0 !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-top: 3px solid var(--color-secondary) !important;
  padding: 28px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.6), 0 0 35px rgba(0, 122, 51, 0.25) !important;
  color: #ffffff;
  transform: translateY(-20px);
  transition: transform 0.3s ease;
}

.search-modal-backdrop.active .search-modal-box {
  transform: translateY(0);
}

.search-modal-box h4 {
  color: #ffffff !important;
  font-weight: 700;
}

.search-modal-box .search-modal-close {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s ease;
}

.search-modal-box .search-modal-close:hover {
  color: #ffffff;
}

.search-input-group {
  display: flex;
  gap: 10px;
}

.search-input-group input[type="search"] {
  flex: 1;
  padding: 12px 18px;
  border-radius: 0 !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
  outline: none;
  font-size: 0.9375rem;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.search-input-group input[type="search"]::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.search-input-group input[type="search"]:focus {
  border-color: var(--color-secondary) !important;
  background: rgba(255, 255, 255, 0.14) !important;
  box-shadow: 0 0 0 2px rgba(197, 161, 78, 0.3) !important;
}

.search-input-group .btn {
  border-radius: 0 !important;
}

/* Compact Agenda Badge Override */
.agenda-info .badge,
.badge-upcoming.badge-sm,
.badge-sm {
  font-size: 0.6875rem !important;
  padding: 1px 7px !important;
  border-radius: 4px !important;
  line-height: 1.4 !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

/* Lightbox Modal */
.madrasah-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.madrasah-lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  max-width: 90%;
  max-height: 85vh;
  position: relative;
}

.lightbox-content img {
  max-height: 80vh;
  border-radius: var(--radius-subtle);
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: #ffffff;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
}

/* ==========================================================================
   Google Translate Seamless Integration Overrides
   ========================================================================== */
.goog-te-banner-frame.skiptranslate,
.goog-te-banner-frame,
iframe.goog-te-banner-frame {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
}

body {
  top: 0px !important;
  position: static !important;
}

.goog-tooltip,
.goog-tooltip:hover {
  display: none !important;
}

.goog-text-highlight {
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

#google_translate_element {
  display: none !important;
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* ==========================================================================
   Related Posts Section (Single Post)
   ========================================================================== */
.related-posts-section {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--color-border-light);
}

.related-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
  flex-wrap: wrap;
}

.related-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.related-title svg {
  width: 20px;
  height: 20px;
  color: var(--color-secondary);
}

.related-more-link {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.related-more-link:hover {
  color: var(--color-primary-dark);
  transform: translateX(3px);
}

.related-posts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 640px) {
  .related-posts-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.related-post-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid var(--color-border-light);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.related-post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 122, 51, 0.25);
}

.related-post-thumb-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f1f5f9;
}

.related-post-thumb-link {
  display: block;
  width: 100%;
  height: 100%;
}

.related-post-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.related-post-img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #004d20 0%, #007a33 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
}

.related-post-cat {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 77, 32, 0.85);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  z-index: 2;
}

.related-post-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.related-post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.71875rem;
  color: var(--color-text-secondary);
  margin-bottom: 8px;
}

.related-post-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.related-post-meta svg {
  width: 13px;
  height: 13px;
}

.related-post-title {
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-post-title a {
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.related-post-card:hover .related-post-title a {
  color: var(--color-primary);
}

/* ==========================================================================
   Custom Sidebar Widgets: Banner Slider, Berita Populer, Berita Terbaru
   ========================================================================== */

/* 1. Sidebar Banner Slider Widget */
.sidebar-banner-slider {
  position: relative;
  width: 100%;
  min-height: 250px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 77, 32, 0.22);
  border: 1px solid rgba(0, 122, 51, 0.2);
  background: #003816;
}

.sidebar-slider-slides {
  position: relative;
  width: 100%;
  min-height: 250px;
}

.sidebar-slider-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.55s ease, transform 0.55s ease;
  transform: scale(1.04);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #003816;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px 18px 28px 18px;
  z-index: 1;
}

.sidebar-slider-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  z-index: 2;
}

.sidebar-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 18, 7, 0.2) 0%, rgba(0, 18, 7, 0.72) 50%, rgba(0, 15, 6, 0.95) 100%);
  z-index: 1;
}

.sidebar-slide-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-slide-kicker {
  display: inline-block;
  align-self: flex-start;
  background: rgba(197, 161, 78, 0.35);
  border: 1px solid var(--color-secondary, #c5a14e);
  color: #fef08a;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.sidebar-slide-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sidebar-slide-btn {
  margin-top: 4px;
  align-self: flex-start;
  font-size: 0.75rem !important;
  padding: 5px 12px !important;
  border-radius: 6px !important;
  box-shadow: 0 4px 12px rgba(197, 161, 78, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 700 !important;
  text-decoration: none;
  background: var(--color-secondary, #c5a14e);
  color: #ffffff;
  transition: all 0.25s ease;
}

.sidebar-slide-btn:hover {
  background: var(--color-secondary-dark, #a88536);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(197, 161, 78, 0.55);
}

/* Sidebar Slider Navigation Buttons (Prev / Next Chevrons) */
.sidebar-slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 6;
  opacity: 0;
  transition: all 0.25s ease;
  padding: 0;
}

.sidebar-slider-prev {
  left: 8px;
}

.sidebar-slider-next {
  right: 8px;
}

.sidebar-banner-slider:hover .sidebar-slider-nav {
  opacity: 1;
}

.sidebar-slider-nav:hover {
  background: var(--color-primary, #007a33);
  border-color: var(--color-primary, #007a33);
  color: #ffffff;
  transform: translateY(-50%) scale(1.1);
}

.sidebar-slider-nav svg {
  width: 14px;
  height: 14px;
}

/* Sidebar Slider Dots Indicator */
.sidebar-slider-dots {
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  z-index: 6;
}

.sidebar-slider-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.25s ease;
}

.sidebar-slider-dot.active {
  width: 18px;
  border-radius: 4px;
  background: var(--color-secondary, #c5a14e);
  box-shadow: 0 0 6px rgba(197, 161, 78, 0.85);
}

/* 2. Berita Populer (Popular Posts) Styles */
.sidebar-popular-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sidebar-popular-item {
  position: relative;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border-light, #f0f0f0);
}

.sidebar-popular-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.sidebar-popular-thumb-wrap {
  position: relative;
  flex-shrink: 0;
}

.popular-rank-badge {
  position: absolute;
  top: -5px;
  left: -5px;
  z-index: 3;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
  font-weight: 800;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  border: 1.5px solid #ffffff;
}

.popular-rank-badge.rank-1 {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.5);
}

.popular-rank-badge.rank-2 {
  background: linear-gradient(135deg, #10b981 0%, #007a33 100%);
  box-shadow: 0 2px 8px rgba(0, 122, 51, 0.45);
}

.popular-rank-badge.rank-3 {
  background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.45);
}

.popular-rank-badge.rank-4,
.popular-rank-badge.rank-5,
.popular-rank-badge.rank-6,
.popular-rank-badge.rank-7,
.popular-rank-badge.rank-8,
.popular-rank-badge.rank-9,
.popular-rank-badge.rank-10 {
  background: #475569;
  color: #f8fafc;
}

.sidebar-popular-rank-only {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.8125rem;
  flex-shrink: 0;
  color: #ffffff;
}

.sidebar-popular-rank-only.rank-1 {
  background: #d97706;
}

.sidebar-popular-rank-only.rank-2 {
  background: #007a33;
}

.sidebar-popular-rank-only.rank-3 {
  background: #0284c7;
}

.sidebar-popular-rank-only.rank-4,
.sidebar-popular-rank-only.rank-5,
.sidebar-popular-rank-only.rank-6 {
  background: #64748b;
}

.popular-views-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  font-size: 0.6875rem;
  color: #9a3412;
  background: #ffedd5;
  padding: 2px 7px;
  border-radius: 4px;
}

.popular-views-badge svg {
  width: 12px;
  height: 12px;
  color: #ea580c;
}

/* 3. Recent Posts Meta & Category Chip */
.sidebar-news-cat-chip {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 700;
  color: var(--color-primary, #007a33);
  background: var(--color-primary-light, #e6f4ec);
  padding: 1px 7px;
  border-radius: 3px;
  text-decoration: none;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  transition: all 0.2s ease;
}

.sidebar-news-cat-chip:hover {
  background: var(--color-primary, #007a33);
  color: #ffffff;
}

.news-meta-views {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #0284c7;
  font-weight: 600;
}

.news-meta-views svg {
  width: 12px;
  height: 12px;
}

.news-meta-date {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--color-text-secondary, #64748b);
}

.news-meta-date svg {
  width: 12px;
  height: 12px;
}

/* ==========================================================================
   News Archive / Portal Page & Filter Bar Styles
   ========================================================================== */

/* 1. Page Header for News */
.news-page-header {
  background: linear-gradient(135deg, #022612 0%, #005c26 50%, #0a4d25 100%);
  padding: 48px 0 42px 0;
  position: relative;
  overflow: hidden;
}

.news-page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 80% 20%, rgba(197, 161, 78, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(0, 122, 51, 0.25) 0%, transparent 60%);
  pointer-events: none;
}

.news-page-header .container {
  position: relative;
  z-index: 2;
}

.news-search-wrapper {
  max-width: 580px;
  margin: 24px auto 0 auto;
}

.news-search-form {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  padding: 6px 8px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  transition: all 0.25s ease;
}

.news-search-form:focus-within {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}

.news-search-input-box {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  padding-left: 14px;
}

.news-search-icon {
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.75);
}

.news-search-icon svg {
  width: 18px;
  height: 18px;
}

.news-search-input-box input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 0.9375rem;
  font-weight: 500;
}

.news-search-input-box input::placeholder {
  color: rgba(255, 255, 255, 0.65);
}

.news-search-btn {
  border-radius: 50px !important;
  padding: 10px 22px !important;
  font-size: 0.875rem !important;
  font-weight: 700 !important;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(197, 161, 78, 0.4);
}

/* 2. Category Filter Bar */
.category-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border-light, #f1f5f9);
}

.category-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 50px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.category-pill-btn .pill-count {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  background: #f1f5f9;
  color: #64748b;
  padding: 1px 6px;
  border-radius: 20px;
  line-height: 1.2;
}

.category-pill-btn:hover {
  color: var(--color-primary, #007a33);
  border-color: var(--color-primary, #007a33);
  background: var(--color-primary-light, #e6f4ec);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 122, 51, 0.12);
}

.category-pill-btn:hover .pill-count {
  background: rgba(0, 122, 51, 0.15);
  color: var(--color-primary, #007a33);
}

.category-pill-btn.active {
  background: var(--color-primary, #007a33);
  border-color: var(--color-primary, #007a33);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 122, 51, 0.3);
}

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

/* Active Search/Filter Bar */
.news-filter-active-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 18px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin-bottom: 22px;
  font-size: 0.84375rem;
  color: #475569;
}

.filter-active-info {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.active-filter-chip {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.78125rem;
  color: #1e293b;
}

.filter-reset-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #dc2626;
  font-weight: 700;
  font-size: 0.78125rem;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.filter-reset-link:hover {
  opacity: 0.8;
}

.filter-reset-link svg {
  width: 14px;
  height: 14px;
}

/* News Grid in Archive/Main-Content */
.main-content .news-grid-modern,
.news-grid-archive {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  margin-bottom: 32px;
}

@media (min-width: 640px) {

  .main-content .news-grid-modern,
  .news-grid-archive {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Card details enhancement */
.news-author-name {
  font-size: 0.75rem;
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.news-author-name svg {
  width: 12px;
  height: 12px;
}

.meta-read-time {
  margin-left: auto;
}

/* Empty State */
.news-empty-state {
  text-align: center;
  padding: 56px 24px;
  background: #ffffff;
  border-radius: 8px;
  border: 1px dashed #cbd5e1;
}

.empty-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-primary-light, #e6f4ec);
  color: var(--color-primary, #007a33);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
}

.empty-icon svg {
  width: 28px;
  height: 28px;
}

.empty-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 8px;
}

.empty-desc {
  font-size: 0.9375rem;
  color: #64748b;
  max-width: 440px;
  margin: 0 auto 20px auto;
  line-height: 1.5;
}

/* Backwards compatibility aliases */
.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

@media (min-width: 640px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.news-card {
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.news-thumb-box {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0d2e1b;
}

.news-thumb-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-category-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 122, 51, 0.9);
  color: #ffffff;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.6875rem;
  font-weight: 700;
}