/*
Theme Name: UNUHA Modern University Theme
Theme URI: https://unuha.ac.id
Author: UNUHA Development Team
Author URI: https://unuha.ac.id
Description: Modern university theme dengan desain corporate dan branding UNUHA yang konsisten
Version: 3.0.1
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: unuha-theme
Domain Path: /languages
Requires at least: 5.9
Tested up to: 6.4
Requires PHP: 7.4
*/

/* ============================================================================
   CSS Variables
   ============================================================================ */
:root {
  --green-dark:    #00442B;
  --green-primary: #005A36;
  --green-teal:    #00897B;
  --green-vibrant: #00C853;
  --orange:        #F59E0B;
  --orange-card:   #FB8C00;
  --orange-dark:   #D97706;
  --text-dark:     #111827;
  --text-muted:    #6B7280;
  --bg-light:      #F8FAF8;
  --white:         #FFFFFF;
  --border:        rgba(0,0,0,0.08);
  --shadow-sm:     0 2px 8px rgba(0,0,0,0.06);
  --shadow-md:     0 8px 24px rgba(0,0,0,0.09);
  --shadow-lg:     0 16px 40px rgba(0,0,0,0.12);
  --radius-sm:     10px;
  --radius-md:     16px;
  --radius-lg:     24px;
  --radius-xl:     32px;
}

/* ============================================================================
   Reset & Base
   ============================================================================ */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--bg-light);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; transition: color .25s; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; padding: 0; margin: 0; }
h1,h2,h3,h4,h5,h6 { font-weight: 700; line-height: 1.2; }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================================
   Shared / Utility
   ============================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-size: .95rem;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .25s;
  font-family: inherit;
}
.btn-accent {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
}
.btn-accent:hover {
  background: var(--orange-dark);
  border-color: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245,158,11,.35);
}
.btn-outline-green {
  background: transparent;
  color: var(--green-primary);
  border-color: var(--green-primary);
}
.btn-outline-green:hover {
  background: var(--green-primary);
  color: #fff;
  transform: translateY(-2px);
}
.btn-green {
  background: var(--green-primary);
  color: #fff;
  border-color: var(--green-primary);
}
.btn-green:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
}
.btn-google {
  background: #fff;
  color: var(--text-dark);
  border-color: #E5E7EB;
  font-size: .85rem;
  padding: 10px 18px;
}
.btn-google:hover { background: #F9FAFB; box-shadow: var(--shadow-sm); }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #E8F5E9;
  color: var(--green-primary);
  font-size: .82rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 50px;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.label-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-teal);
  display: inline-block;
  flex-shrink: 0;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.2;
}
.section-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 0;
}
.text-orange { color: var(--orange); }
.text-white  { color: var(--white); }

/* Accessibility */
.skip-link { position: absolute; top: -40px; left: 0; background: var(--green-primary); color: #fff; padding: 8px 16px; z-index: 9999; border-radius: 0 0 8px 0; }
.skip-link:focus { top: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border-width: 0; }

/* ============================================================================
   Hero Slider
   ============================================================================ */
.hero-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--green-dark);
}
.slider-track {
  display: flex;
  transition: transform .65s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}
.slide {
  min-width: 100%;
  position: relative;
  min-height: 70vh;
  overflow: hidden;
}
.slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 8s ease;
}
.hero-slider.playing .slide.active .slide-bg { transform: scale(1.06); }
.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(0,50,28,.84) 0%, rgba(0,80,45,.65) 55%, rgba(0,0,0,.28) 100%);
}
.slide-content {
  position: relative;
  z-index: 1;
  padding: 100px 0 80px;
  max-width: 700px;
}
.slide-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: .82rem;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: 50px;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.slide-title {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 20px;
  letter-spacing: -1px;
}
.slide-desc {
  font-size: 1.05rem;
  opacity: .88;
  margin-bottom: 32px;
  max-width: 560px;
  line-height: 1.7;
}
.slide-cta { display: flex; gap: 14px; margin-bottom: 48px; flex-wrap: wrap; }
.btn-slide-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-size: .95rem;
  font-weight: 600;
  background: rgba(255,255,255,.15);
  border: 2px solid rgba(255,255,255,.5);
  color: #fff;
  cursor: pointer;
  transition: all .25s;
  backdrop-filter: blur(6px);
}
.btn-slide-outline:hover { background: rgba(255,255,255,.28); border-color: #fff; }

.slide-stats { display: flex; align-items: center; gap: 0; }
.slide-stat { text-align: center; padding: 0 32px; }
.slide-stat:first-child { padding-left: 0; }
.slide-stat-val { display: block; font-size: 1.8rem; font-weight: 900; color: var(--orange); line-height: 1; }
.slide-stat-lbl { display: block; font-size: .82rem; opacity: .8; margin-top: 4px; }
.slide-stat-div { width: 1px; height: 40px; background: rgba(255,255,255,.25); }

/* Slider arrows */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  border: 2px solid rgba(255,255,255,.3);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .25s;
  backdrop-filter: blur(6px);
}
.slider-arrow:hover { background: rgba(255,255,255,.35); border-color: #fff; }
.slider-prev { left: 24px; }
.slider-next { right: 24px; }

/* Slider dots */
.slider-dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}
.slider-dot {
  width: 32px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,.35);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background .3s, width .3s;
}
.slider-dot.active {
  background: var(--orange);
  width: 48px;
}

/* Slide enter animation */
.slide-content > * {
  animation: none;
}
.slide.active .slide-content > * {
  animation: slideUp .7s ease both;
}
.slide.active .slide-badge  { animation-delay: .05s; }
.slide.active .slide-title  { animation-delay: .15s; }
.slide.active .slide-desc   { animation-delay: .25s; }
.slide.active .slide-cta    { animation-delay: .35s; }
.slide.active .slide-stats  { animation-delay: .45s; }
@keyframes slideUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================================
   Header Search Bar
   ============================================================================ */
.header-search-bar {
  background: var(--green-primary);
  padding: 16px 0;
  border-top: 1px solid rgba(255,255,255,.15);
}
.header-search-bar form {
  display: flex;
  align-items: center;
  gap: 0;
  max-width: 680px;
  margin: 0 auto;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50px;
  overflow: hidden;
}
.header-search-bar input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 12px 24px;
  color: #fff;
  font-size: 1rem;
  font-family: inherit;
}
.header-search-bar input::placeholder { color: rgba(255,255,255,.6); }
.header-search-bar button {
  background: rgba(255,255,255,.15);
  border: none;
  padding: 12px 20px;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: background .2s;
}
.header-search-bar button:hover { background: rgba(255,255,255,.28); }

/* ============================================================================
   Header & Navigation
   ============================================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 24px;
}
/* Logo */
.logo-area { flex-shrink: 0; }
.logo-link  { display: flex; align-items: center; gap: 10px; }
.logo-area a { display: flex; align-items: center; gap: 10px; }
.logo-badge {
  width: 42px;
  height: 42px;
  background: var(--green-primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 800;
  flex-shrink: 0;
}
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-text strong { font-size: 1.1rem; font-weight: 800; color: var(--green-primary); }
.logo-text small { font-size: .65rem; color: var(--text-muted); font-weight: 500; }

/* Primary Nav */
.primary-nav { flex: 1; display: flex; justify-content: center; }
.menu-list { display: flex; gap: 4px; margin: 0; padding: 0; }
.menu-list > li > a {
  display: block;
  padding: 8px 12px;
  color: var(--text-dark);
  font-size: .9rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all .2s;
}
.menu-list > li > a:hover,
.menu-list > li.current-menu-item > a {
  color: var(--green-primary);
  background: #E8F5E9;
}

/* ── Dropdown menus ─────────────────────────────────────────────────────── */
.menu-list li { position: relative; }

.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: 0 12px 40px rgba(0,0,0,.13);
  padding: 8px 0;
  min-width: 230px;
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .22s, visibility .22s, transform .22s;
  border: 1px solid rgba(0,0,0,.06);
}
.has-dropdown:hover > .dropdown-menu,
.has-dropdown:focus-within > .dropdown-menu,
.has-dropdown.open > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Chevron rotates when dropdown is open */
.menu-list > li > .menu-link .chevron {
  transition: transform .22s ease;
}
.has-dropdown:hover > .menu-link .chevron,
.has-dropdown:focus-within > .menu-link .chevron,
.has-dropdown.open > .menu-link .chevron {
  transform: rotate(180deg);
}

/* Level 2 sub-menu opens to the right */
.dropdown-level-2 {
  top: -8px;
  left: calc(100% + 4px);
}

.dropdown-menu li a.sub-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 18px;
  font-size: .88rem;
  font-weight: 500;
  color: var(--text-dark);
  border-radius: 0;
  background: transparent;
}
.dropdown-menu li a.sub-link:hover { background: #F0FDF4; color: var(--green-primary); }
.dropdown-menu li a.sub-link .chevron { transform: rotate(-90deg); }

/* Mobile toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background .2s;
}
.mobile-toggle:hover { background: #F0FDF4; }
.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: all .3s;
}
.mobile-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-toggle.open span:nth-child(2) { opacity: 0; }
.mobile-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* News no-thumbnail fallback */
.news-no-thumb {
  height: 300px;
  background: linear-gradient(135deg, var(--green-teal), var(--green-primary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

/* Header Actions */
.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.header-search-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: all .2s;
}
.header-search-btn:hover { border-color: var(--green-primary); color: var(--green-primary); }
.header-search-btn svg { width: 16px; height: 16px; }

/* ============================================================================
   Hero Section
   ============================================================================ */
.hero-section {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(0,50,30,.82) 0%, rgba(0,90,55,.65) 55%, rgba(0,0,0,.3) 100%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding: 100px 0 60px;
  max-width: 700px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: .82rem;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: 50px;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: .6; transform: scale(.85); }
}
.hero-title {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 20px;
  letter-spacing: -1px;
}
.hero-collection {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--orange);
  color: #fff;
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 18px;
}
.hero-desc {
  font-size: 1.05rem;
  opacity: .88;
  margin-bottom: 32px;
  max-width: 560px;
  line-height: 1.7;
}
.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.hero-search-box {
  display: flex;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.35);
  backdrop-filter: blur(8px);
  border-radius: 50px;
  overflow: hidden;
  flex: 1;
  max-width: 340px;
}
.hero-search-box input {
  background: transparent;
  border: none;
  outline: none;
  padding: 12px 20px;
  color: #fff;
  font-size: .95rem;
  font-family: inherit;
  width: 100%;
}
.hero-search-box input::placeholder { color: rgba(255,255,255,.65); }
.hero-search-box button {
  background: rgba(255,255,255,.2);
  border: none;
  padding: 0 18px;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: background .2s;
}
.hero-search-box button:hover { background: rgba(255,255,255,.3); }
.hero-search-box button svg { width: 16px; height: 16px; }

.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
}
.hero-stat {
  text-align: center;
  padding: 0 32px;
}
.hero-stat:first-child { padding-left: 0; }
.hero-stat-val {
  display: block;
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--orange);
  line-height: 1;
}
.hero-stat-lbl {
  display: block;
  font-size: .82rem;
  opacity: .8;
  margin-top: 4px;
}
.hero-stat-div {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,.25);
}

/* Slider dots */
.hero-dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 1;
}
.hero-dot { width: 28px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.35); }
.hero-dot.active { background: var(--orange); }

/* ============================================================================
   Features Section
   ============================================================================ */
.features-section {
  padding: 90px 0;
  background: #fff;
}
.features-header {
  margin-bottom: 40px;
}

/* Bento top row: large card + tall card */
.features-top-row {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

/* Mid row: wide library card */
.feature-card-mid-row {
  margin-bottom: 16px;
}

/* Bottom 4 cards */
.features-bottom-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* Card base */
.feature-card {
  border-radius: var(--radius-md);
  padding: 28px;
  color: #fff;
  transition: transform .3s, box-shadow .3s;
  position: relative;
  overflow: hidden;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

/* Color variants — green / yellow / white theme */
.feature-card.teal      { background: var(--green-teal); }
.feature-card.orange    { background: #EAB308; color: #14532D; }
.feature-card.orange-lt { background: #F0FDF4; color: var(--green-dark); border: 1.5px solid #BBF7D0; }
.feature-card.green     { background: var(--green-primary); }
.feature-card.teal-mid  {
  background: var(--green-teal);
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 28px 36px;
}

/* Icon box: putih semi-transparan untuk kartu kuning */
.feature-card.orange .fc-icon,
.feature-card.orange .fc-icon-sm,
.feature-card.orange .fc-icon-lg   { background: rgba(255,255,255,.75); }
/* Tag override untuk kartu kuning */
.feature-card.orange .fc-tag {
  background: rgba(20, 83, 45, .12);
  border-color: rgba(20, 83, 45, .22);
  color: #14532D;
}
.feature-card.orange p,
.feature-card.orange-lt p { opacity: .85; }

/* Icon box kuning khusus (Digital Library) */
.fc-icon-yellow { background: #EAB308 !important; }
.fc-icon-yellow img { filter: brightness(0) saturate(0) invert(1); }

/* Watermark background icon */
.fc-watermark {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 130px;
  height: 130px;
  opacity: .08;
  pointer-events: none;
}
.fc-watermark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
/* Watermark sisi kanan (kartu lebar / portal) */
.fc-watermark-side {
  right: -12px;
  bottom: 0;
  top: 0;
  height: 100%;
  width: 150px;
  display: flex;
  align-items: center;
}
.fc-watermark-side img { height: 80%; width: 100%; object-fit: contain; }
/* Kartu kuning: watermark ikut warna gelap */
.feature-card.orange .fc-watermark img { filter: brightness(0); opacity: 1; }

/* Ukuran img dalam icon box */
.fc-icon    img { width: 28px;  height: 28px;  display: block; object-fit: contain; }
.fc-icon-sm img { width: 22px;  height: 22px;  display: block; object-fit: contain; }
.fc-icon-lg img { width: 36px;  height: 36px;  display: block; object-fit: contain; }

/* Large card specifics */
.feature-card-lg {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.feature-card-right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
}

/* Icons */
.fc-icon {
  width: 52px;
  height: 52px;
  background: rgba(255,255,255,.2);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
  flex-shrink: 0;
}
.fc-icon-lg {
  width: 64px;
  height: 64px;
  background: rgba(255,255,255,.2);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
}
.fc-icon-sm {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 14px;
}

.feature-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }
.feature-card h4 { font-size: .95rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p  { font-size: .88rem; opacity: .88; line-height: 1.5; margin: 0; }

.fc-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.fc-tag {
  background: rgba(255,255,255,.2);
  border: 1px solid rgba(255,255,255,.3);
  color: #fff;
  font-size: .75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 50px;
}

.fc-mid-text h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }

/* ============================================================================
   News Section
   ============================================================================ */
.news-section {
  padding: 90px 0;
  background: var(--bg-light);
}
.news-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
  gap: 20px;
}
.btn-all-news {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green-primary);
  color: #fff;
  padding: 11px 24px;
  border-radius: 50px;
  font-size: .88rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all .25s;
}
.btn-all-news:hover { background: var(--green-dark); transform: translateY(-2px); }

/* News Grid */
.news-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}

/* Featured card */
.news-card-featured {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform .3s, box-shadow .3s;
}
.news-card-featured:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.news-featured-img {
  position: relative;
  height: 300px;
  overflow: hidden;
}
.news-featured-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.news-card-featured:hover .news-featured-img img { transform: scale(1.05); }
.news-cat-pill {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--green-primary);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: .4px;
}
.news-card-body { padding: 28px 32px 32px; }
.news-date { font-size: .8rem; color: var(--text-muted); margin-bottom: 12px; display: block; }
.news-card-body h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; line-height: 1.4; }
.news-card-body h3 a:hover { color: var(--green-primary); }
.news-card-body p { font-size: .9rem; color: var(--text-muted); margin-bottom: 18px; }
.news-read-more {
  color: var(--green-primary);
  font-weight: 700;
  font-size: .9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap .2s;
}
.news-read-more:hover { gap: 10px; }

/* Side news items */
.news-side { display: flex; flex-direction: column; gap: 18px; }
.news-item {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s;
}
.news-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.news-item-text { flex: 1; min-width: 0; }
.news-item-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.news-item-cat {
  background: #E8F5E9;
  color: var(--green-primary);
  font-size: .7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 50px;
  text-transform: uppercase;
}
.news-item-date { font-size: .75rem; color: var(--text-muted); }
.news-item-text h4 { font-size: .9rem; font-weight: 700; line-height: 1.4; }
.news-item-text h4 a:hover { color: var(--green-primary); }
.news-thumb {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}
.news-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Mini stats bar */
.news-stats-bar {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 24px 40px;
  gap: 0;
}
.news-mini-stat { flex: 1; text-align: center; }
.news-mini-stat-val { display: block; font-size: 1.6rem; font-weight: 800; color: var(--green-primary); }
.news-mini-stat-lbl { font-size: .82rem; color: var(--text-muted); }
.news-mini-div { width: 1px; height: 44px; background: var(--border); flex-shrink: 0; }

/* ============================================================================
   Announcement Section
   ============================================================================ */
.announcement-section {
  padding: 90px 0;
  background: #EDF5F0;
}
.announcement-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.ann-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .3s, box-shadow .3s;
}
.ann-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.ann-img {
  position: relative;
  display: block;
  height: 300px;
  overflow: hidden;
  flex-shrink: 0;
  text-decoration: none;
}
.ann-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.ann-card:hover .ann-img img { transform: scale(1.05); }
.ann-img-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-teal) 100%);
  color: rgba(255,255,255,.35);
}
.ann-cat {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--orange);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: .4px;
}
.ann-body { padding: 28px 32px 32px; }
.ann-date { font-size: .8rem; color: var(--text-muted); margin-bottom: 12px; display: block; }
.ann-body h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; line-height: 1.4; }
.ann-body h3 a { color: var(--text-dark); text-decoration: none; }
.ann-body h3 a:hover { color: var(--green-primary); }
.ann-body p { font-size: .9rem; color: var(--text-muted); margin-bottom: 18px; }
.ann-empty { color: var(--text-muted); grid-column: 1 / -1; text-align: center; padding: 48px 0; }

/* ============================================================================
   University Stats Section
   ============================================================================ */
.uni-stats-section {
  background: var(--green-dark);
  padding: 90px 0;
  color: #fff;
}
.uni-stats-header {
  text-align: center;
  margin-bottom: 56px;
}
.uni-stats-header h2 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); font-weight: 800; margin-bottom: 12px; }
.uni-stats-header p { opacity: .75; max-width: 580px; margin: 0 auto; }

.uni-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}
.uni-stat-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-md);
  padding: 32px 24px 28px;
  transition: background .25s, transform .25s;
}
.uni-stat-card:hover { background: rgba(255,255,255,.12); transform: translateY(-4px); }
.uni-stat-icon {
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,.12);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}
.uni-stat-val { font-size: 2.2rem; font-weight: 900; color: var(--orange); display: block; margin-bottom: 6px; }
.uni-stat-lbl { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.uni-stat-sub { font-size: .8rem; opacity: .65; }

/* Accreditation badge */
.accred-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-md);
  padding: 24px 40px;
  max-width: 480px;
  margin: 0 auto;
}
.accred-letter {
  width: 60px;
  height: 60px;
  background: var(--orange);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
  flex-shrink: 0;
}
.accred-text strong { display: block; font-size: 1.05rem; font-weight: 700; margin-bottom: 4px; }
.accred-text span { font-size: .85rem; opacity: .7; }

/* ============================================================================
   CTA Section
   ============================================================================ */
.cta-section {
  padding: 90px 0;
  background: var(--bg-light);
}
.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}
.cta-left h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 900; margin-bottom: 18px; margin-top: 12px; }
.cta-left p { color: var(--text-muted); margin-bottom: 32px; font-size: 1rem; line-height: 1.7; }
.cta-btns { display: flex; gap: 14px; margin-bottom: 40px; flex-wrap: wrap; }

.cta-contacts { display: flex; gap: 32px; }
.cta-contact-item { display: flex; align-items: center; gap: 12px; }
.cta-contact-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #E8F5E9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.cta-contact-lbl { font-size: .75rem; color: var(--text-muted); font-weight: 500; }
.cta-contact-val { font-size: .9rem; font-weight: 700; color: var(--green-primary); }

/* Benefit cards */
.cta-right { display: flex; flex-direction: column; gap: 16px; }
.benefit-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: box-shadow .25s, transform .25s;
}
.benefit-card:hover { box-shadow: var(--shadow-md); transform: translateX(4px); }
.benefit-icon {
  width: 48px;
  height: 48px;
  background: #E8F5E9;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.benefit-text strong { display: block; font-size: .95rem; font-weight: 700; margin-bottom: 4px; }
.benefit-text span { font-size: .82rem; color: var(--text-muted); }

/* ============================================================================
   Footer
   ============================================================================ */
.site-footer {
  background: var(--green-dark);
  color: rgba(255,255,255,.85);
}
.footer-main {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1.3fr;
  gap: 40px;
  padding: 72px 0 56px;
}

/* Footer brand */
.footer-brand {}
.footer-logo-wrap { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-logo-badge {
  width: 40px;
  height: 40px;
  background: var(--green-teal);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
  flex-shrink: 0;
}
.footer-logo-text strong { display: block; font-size: 1rem; font-weight: 800; color: #fff; }
.footer-logo-text small  { font-size: .65rem; opacity: .6; }
.footer-desc { font-size: .88rem; line-height: 1.7; opacity: .72; margin-bottom: 20px; }
.footer-socials { display: flex; gap: 10px; margin-bottom: 24px; }
.footer-social {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  font-weight: 700;
  color: rgba(255,255,255,.75);
  transition: background .2s;
}
.footer-social:hover { background: var(--green-teal); color: #fff; }

/* Newsletter */
.footer-newsletter-label { font-size: .78rem; font-weight: 700; color: rgba(255,255,255,.55); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 8px; }
.footer-newsletter-form { display: flex; gap: 0; }
.footer-newsletter-form input {
  flex: 1;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  border-right: none;
  border-radius: 8px 0 0 8px;
  padding: 10px 14px;
  color: #fff;
  font-size: .88rem;
  font-family: inherit;
  outline: none;
}
.footer-newsletter-form input::placeholder { color: rgba(255,255,255,.4); }
.footer-newsletter-form button {
  background: var(--orange);
  border: none;
  border-radius: 0 8px 8px 0;
  padding: 0 16px;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: background .2s;
  display: flex;
  align-items: center;
}
.footer-newsletter-form button:hover { background: var(--orange-dark); }

/* Footer columns */
.footer-col-title {
  font-size: .88rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(255,255,255,.12);
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: .85rem;
  opacity: .7;
  transition: opacity .2s, color .2s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-col a:hover { opacity: 1; color: var(--orange); }
.footer-col a::before { content: '›'; color: var(--green-teal); font-size: 1rem; }

/* Footer contact col */
.footer-contact-list { display: flex; flex-direction: column; gap: 14px; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 10px; font-size: .85rem; opacity: .75; }
.footer-contact-item span:first-child { flex-shrink: 0; margin-top: 1px; }

/* Footer bottom bar */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .82rem;
  opacity: .6;
  gap: 20px;
}
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a { opacity: .8; }
.footer-bottom-links a:hover { opacity: 1; color: var(--orange); }

/* ============================================================================
   Inner pages (single, page, archive, etc.)
   ============================================================================ */
.site-main { padding: 60px 0; }
.post-layout { display: grid; grid-template-columns: 1fr 300px; gap: 40px; }
.entry { background: #fff; border-radius: var(--radius-md); padding: 48px; box-shadow: var(--shadow-sm); }
.entry-title { margin-bottom: 24px; }
.entry-meta { font-size: .85rem; color: var(--text-muted); margin-bottom: 24px; display: flex; gap: 16px; flex-wrap: wrap; }
.entry-content { line-height: 1.8; }
.entry-content p { margin-bottom: 1.2rem; }

/* Archive cards */
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card { background: #fff; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .3s, box-shadow .3s; }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.post-card-img { height: 200px; overflow: hidden; }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; }
.post-card-body { padding: 24px; }
.post-card-date { font-size: .78rem; color: var(--text-muted); margin-bottom: 8px; }
.post-card-body h2 { font-size: 1rem; font-weight: 700; margin-bottom: 10px; }
.post-card-body h2 a:hover { color: var(--green-primary); }
.post-card-body p { font-size: .88rem; color: var(--text-muted); }

/* ============================================================================
   Responsive
   ============================================================================ */
@media (max-width: 1024px) {
  .features-bottom-row { grid-template-columns: repeat(2, 1fr); }
  .announcement-grid { grid-template-columns: 1fr 1fr; }
  .uni-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
  .post-layout { grid-template-columns: 1fr; }
  .header-inner { gap: 12px; }
  .primary-nav { flex: 1; }
}

@media (max-width: 768px) {
  .mobile-toggle { display: flex; }
  .header-actions .btn-google { display: none; }
  .primary-nav {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 300px;
    background: #fff;
    box-shadow: -8px 0 40px rgba(0,0,0,.15);
    z-index: 9998;
    padding: 80px 0 40px;
    overflow-y: auto;
  }
  .primary-nav.mobile-open { display: flex; flex-direction: column; }
  .menu-list { flex-direction: column; gap: 0; width: 100%; padding: 0 16px; }
  .menu-list > li > .menu-link {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    display: flex;
    justify-content: space-between;
    font-size: .95rem;
  }
  .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    background: #F8FAF8;
    border-radius: var(--radius-sm);
    padding: 4px 0;
    margin-top: 4px;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    display: none;
  }
  .has-dropdown.open > .dropdown-menu { display: block; }
  .dropdown-level-2 { left: 0; top: 0; }
  .slide-cta { flex-direction: column; align-items: flex-start; }
  .slide-stats { flex-wrap: wrap; gap: 20px; }
  .slide-stat-div { display: none; }
  .slide-stat { padding: 0; }
  .header-inner { flex-wrap: wrap; gap: 12px; }
  .menu-list { flex-wrap: wrap; gap: 2px; }
  .features-top-row { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .announcement-grid { grid-template-columns: 1fr; }
  .cta-grid { grid-template-columns: 1fr; gap: 40px; }
  .news-stats-bar { flex-wrap: wrap; padding: 24px; gap: 20px; }
  .news-mini-div { display: none; }
  .uni-stats-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { flex-wrap: wrap; gap: 20px; }
  .hero-stat-div { display: none; }
  .hero-stat { padding: 0; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .posts-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .features-bottom-row { grid-template-columns: 1fr 1fr; }
  .uni-stats-grid { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; }
  .news-header { flex-direction: column; align-items: flex-start; }
  .hero-cta-row { flex-direction: column; align-items: flex-start; }
  .hero-search-box { max-width: 100%; width: 100%; }
  .posts-grid { grid-template-columns: 1fr; }
  .cta-contacts { flex-direction: column; gap: 16px; }
  .cta-btns { flex-direction: column; }
}

/* ============================================================================
   Blog / Archive Listing
   ============================================================================ */
.blog-section {
  padding: 72px 0 90px;
  background: var(--bg-light);
}
.blog-page-header {
  margin-bottom: 48px;
}

/* Archive hero banner */
.archive-hero {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-primary) 60%, var(--green-teal) 100%);
  padding: 64px 0 56px;
  color: #fff;
}
.archive-hero .section-label {
  background: rgba(255,255,255,.18);
  color: #fff;
  margin-bottom: 20px;
}
.archive-hero .label-dot { background: var(--orange); }
.archive-hero-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
}
.archive-hero-desc {
  color: rgba(255,255,255,.75);
  font-size: 1rem;
  max-width: 560px;
}

/* Blog card grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 56px;
}

/* Blog card — mirrors ann-card */
.blog-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .3s, box-shadow .3s;
}
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.blog-card-img {
  position: relative;
  display: block;
  height: 220px;
  overflow: hidden;
  flex-shrink: 0;
  text-decoration: none;
}
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.blog-card:hover .blog-card-img img { transform: scale(1.05); }
.blog-card-img-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-teal) 100%);
  color: rgba(255,255,255,.35);
}
.blog-cat-pill {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--green-primary);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: .4px;
}

.blog-card-body {
  padding: 24px 28px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-card-date {
  font-size: .8rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  display: block;
}
.blog-card-body h2 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.4;
}
.blog-card-body h2 a { color: var(--text-dark); text-decoration: none; }
.blog-card-body h2 a:hover { color: var(--green-primary); }
.blog-card-body p {
  font-size: .88rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  flex: 1;
}
.blog-card-body .news-read-more { margin-top: auto; }

/* Empty state */
.blog-empty {
  text-align: center;
  padding: 80px 0;
  color: var(--text-muted);
  font-size: 1rem;
}

/* ============================================================================
   Pagination
   ============================================================================ */
.navigation.pagination {
  display: flex;
  justify-content: center;
}
.navigation.pagination .nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}
.navigation.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 16px;
  border-radius: 50px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-dark);
  background: #fff;
  border: 1.5px solid var(--border);
  transition: background .2s, color .2s, border-color .2s, transform .2s;
  text-decoration: none;
}
.navigation.pagination .page-numbers:hover {
  background: var(--green-primary);
  color: #fff;
  border-color: var(--green-primary);
  transform: translateY(-2px);
}
.navigation.pagination .page-numbers.current {
  background: var(--green-primary);
  color: #fff;
  border-color: var(--green-primary);
}
.navigation.pagination .page-numbers.dots {
  background: transparent;
  border-color: transparent;
  pointer-events: none;
  color: var(--text-muted);
}
.navigation.pagination .prev.page-numbers,
.navigation.pagination .next.page-numbers {
  background: var(--green-primary);
  color: #fff;
  border-color: var(--green-primary);
  font-size: 1.1rem;
}
.navigation.pagination .prev.page-numbers:hover,
.navigation.pagination .next.page-numbers:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
}

/* Responsive — blog grid */
@media (max-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .blog-grid { grid-template-columns: 1fr; gap: 24px; }
  .archive-hero { padding: 48px 0 40px; }
}

/* ============================================================================
   Static Page (page.php)
   ============================================================================ */
.page-section {
  padding: 48px 0 90px;
  background: var(--bg-light);
}
.page-article {
  max-width: 820px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.page-hero {
  width: 100%;
  height: 380px;
  overflow: hidden;
}
.page-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.page-body {
  background: #fff;
  padding: 40px 48px 56px;
}
.page-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-dark);
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

@media (max-width: 768px) {
  .page-body { padding: 28px 24px 40px; }
  .page-hero { height: 260px; }
}
@media (max-width: 480px) {
  .page-section { padding: 32px 0 64px; }
  .page-article { border-radius: var(--radius-md); }
  .page-body { padding: 24px 20px 36px; }
  .page-hero { height: 200px; }
}

/* ============================================================================
   Single Post Detail
   ============================================================================ */
.single-section {
  padding: 48px 0 90px;
  background: var(--bg-light);
}

/* Back link */
.single-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--green-primary);
  margin-bottom: 28px;
  transition: gap .2s, color .2s;
}
.single-back-link:hover { gap: 10px; color: var(--green-dark); }

/* Article wrapper — owns the card shape, shadow & clip */
.single-article {
  max-width: 820px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

/* Hero image */
.single-hero {
  position: relative;
  width: 100%;
  height: 460px;
  overflow: hidden;
}
.single-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.single-hero--no-img { background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-teal) 100%); }
.single-hero-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.3);
}
.single-cat-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--green-primary);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

/* Article body card */
.single-body {
  background: #fff;
  padding: 40px 48px 48px;
}

/* Header */
.single-header { margin-bottom: 24px; }
.single-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-dark);
  margin-bottom: 20px;
}
.single-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: .85rem;
  color: var(--text-muted);
}
.single-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.single-meta-item svg { color: var(--green-teal); flex-shrink: 0; }
.single-meta-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #D1D5DB;
  flex-shrink: 0;
}
.single-meta-cat {
  display: inline-flex;
  align-items: center;
  background: #E8F5E9;
  color: var(--green-primary);
  font-size: .75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: .4px;
  transition: background .2s, color .2s;
}
.single-meta-cat:hover { background: var(--green-primary); color: #fff; }

/* Divider */
.single-divider {
  height: 1px;
  background: var(--border);
  margin: 28px 0;
}

/* Content prose */
.single-content {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text-dark);
}
.single-content p { margin-bottom: 1.3rem; }
.single-content h2 { font-size: 1.35rem; font-weight: 700; margin: 2rem 0 .8rem; color: var(--text-dark); }
.single-content h3 { font-size: 1.15rem; font-weight: 700; margin: 1.8rem 0 .7rem; }
.single-content ul, .single-content ol { padding-left: 1.5rem; margin-bottom: 1.3rem; }
.single-content li { margin-bottom: .4rem; }
.single-content blockquote {
  border-left: 4px solid var(--green-primary);
  background: #E8F5E9;
  padding: 16px 24px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--green-dark);
  font-style: italic;
  margin: 1.5rem 0;
}
.single-content img {
  border-radius: var(--radius-md);
  width: 100%;
  height: auto;
  margin: 1.5rem 0;
}
.single-content a { color: var(--green-primary); text-decoration: underline; }
.single-content a:hover { color: var(--green-dark); }
.single-content strong { font-weight: 700; }

/* Tags */
.single-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.single-tags-label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-right: 4px;
}
.single-tag {
  display: inline-flex;
  align-items: center;
  background: var(--bg-light);
  color: var(--green-primary);
  font-size: .8rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 50px;
  border: 1.5px solid #D1E7D9;
  transition: background .2s, color .2s, border-color .2s;
}
.single-tag:hover {
  background: var(--green-primary);
  color: #fff;
  border-color: var(--green-primary);
}

/* Post navigation */
.single-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 820px;
  margin: 40px auto 0;
}
.single-nav-card {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 20px 24px;
  border: 1.5px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.single-nav-card:hover {
  border-color: var(--green-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.single-nav-label {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--green-primary);
}
.single-nav-title {
  font-size: .92rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.single-nav-next { text-align: right; }

/* Responsive */
@media (max-width: 768px) {
  .single-body { padding: 28px 24px 36px; }
  .single-hero { height: 280px; }
  .single-nav { grid-template-columns: 1fr; }
  .single-nav-next { text-align: left; }
}
@media (max-width: 480px) {
  .single-section { padding: 32px 0 64px; }
  .single-body { padding: 24px 20px 32px; }
  .single-hero { height: 220px; }
  .single-article { border-radius: var(--radius-md); }
  .single-meta { gap: 8px; font-size: .8rem; }
}
