:root {
  --primary: #059669; /* Emerald 600 */
  --primary-dark: #047857; /* Emerald 700 */
  --primary-light: #10b981; /* Emerald 500 */
  --primary-subtle: #d1fae5; /* Emerald 100 */
  
  --accent: #f59e0b; /* Amber 500 */
  
  --text-main: #1e293b; /* Slate 800 */
  --text-muted: #64748b; /* Slate 500 */
  --text-light: #94a3b8; /* Slate 400 */
  
  --bg-main: #f8fafc; /* Slate 50 */
  --bg-surface: #ffffff;
  
  --border: #e2e8f0; /* Slate 200 */
  
  --shadow-sm: 0 1px 3px rgba(0,0,0,.05), 0 1px 2px rgba(0,0,0,.03);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,.05), 0 2px 4px -1px rgba(0,0,0,.03);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.05), 0 4px 6px -2px rgba(0,0,0,.025);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,.05), 0 10px 10px -5px rgba(0,0,0,.02);
  
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', 'Poppins', sans-serif;
  color: var(--text-main);
  background: var(--bg-main);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: var(--primary);
  transition: var(--transition);
}
a:hover { color: var(--primary-dark); }

img {
  display: block;
  max-width: 100%;
}

/* =========================================
   NAVBAR
   ========================================= */
.navbar {
  background: var(--primary-dark) !important;
  border-bottom: none;
  padding: 12px 0;
  box-shadow: 0 4px 15px rgba(4, 120, 87, 0.3) !important;
}
.navbar-brand span {
  color: #ffffff !important;
  font-size: 1.15rem;
}
.navbar .nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 16px !important;
  border-radius: 999px;
  transition: var(--transition);
}
.navbar .nav-link:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.15);
}
.navbar .nav-link.active {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.25);
  font-weight: 600;
}
.navbar .dropdown-menu {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  margin-top: 10px;
}
.navbar .dropdown-item {
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 0.95rem;
  color: var(--text-main);
  font-weight: 500;
  transition: var(--transition);
}
.navbar .dropdown-item:hover,
.navbar .dropdown-item.active {
  background: var(--primary-subtle);
  color: var(--primary-dark);
}

/* =========================================
   HERO SECTIONS
   ========================================= */
.hero-section {
  background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(16,185,129,0.1) 0%, rgba(255,255,255,0) 70%);
  border-radius: 50%;
}
.hero-image {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  object-fit: cover;
  height: 400px;
  width: 100%;
}
.page-hero {
  background: linear-gradient(to right, var(--bg-main), #ffffff);
  border-bottom: 1px solid var(--border);
}

/* =========================================
   TYPOGRAPHY & BADGES
   ========================================= */
.eyebrow {
  display: inline-block;
  padding: 6px 14px;
  background: var(--primary-subtle);
  color: var(--primary-dark);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.display-5, .display-6 {
  color: var(--text-main);
  letter-spacing: -0.02em;
}

/* =========================================
   CARDS & CONTAINERS
   ========================================= */
.card-custom {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  height: 100%;
}
.card-custom:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.section-soft {
  background: #ffffff;
}

/* =========================================
   BUTTONS
   ========================================= */
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border: none;
  box-shadow: 0 4px 12px rgba(16,185,129,0.3);
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 12px;
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark), #064e3b);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(16,185,129,0.4);
}
.btn-outline-primary {
  color: var(--primary);
  border: 2px solid var(--primary);
  font-weight: 600;
  padding: 8px 24px;
  border-radius: 12px;
}
.btn-outline-primary:hover {
  background: var(--primary-subtle);
  color: var(--primary-dark);
  border-color: var(--primary-dark);
}

/* =========================================
   STATS & DATA
   ========================================= */
.stat-card {
  padding: 24px;
  text-align: center;
  border-radius: var(--radius-xl);
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.5);
  box-shadow: 0 10px 30px rgba(0,0,0,0.04);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}
.stat-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(16,185,129,0.1);
  border-color: rgba(16,185,129,0.3);
}
.stat-icon {
  width: 60px;
  height: 60px;
  background: var(--primary-subtle);
  color: var(--primary-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin: 0 auto 16px;
}
.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 4px;
  line-height: 1;
}
.stat-label {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Profile highlights */
.profile-highlight-card {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--primary-subtle);
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 0.9rem;
}

/* Info Box */
.info-box {
  background: var(--bg-main);
  border-left: 4px solid var(--primary);
  padding: 20px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-bottom: 24px;
}
.info-box h4 {
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 8px;
}

/* =========================================
   TIMELINE (Sejarah)
   ========================================= */
.timeline {
  position: relative;
  padding-left: 30px;
  margin-bottom: 30px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--primary-light);
}
.timeline-item {
  position: relative;
  margin-bottom: 24px;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -35px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary-dark);
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--primary-light);
}
.timeline-date {
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

/* =========================================
   NEWS CARDS
   ========================================= */
.news-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.news-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.news-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.news-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* =========================================
   UTILITIES
   ========================================= */
.map-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}
.map-frame img {
  width: 100%;
  height: auto;
  object-fit: cover;
}
.photo-placeholder {
  min-height: 260px;
  background: var(--bg-main);
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
}

/* =========================================
   FLOATING BUTTONS
   ========================================= */
.wa-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 60px;
  height: 60px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 4px 12px rgba(37,211,102,0.4);
  z-index: 99;
  transition: var(--transition);
}
.wa-float:hover {
  transform: scale(1.1);
  color: #fff;
}
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: var(--shadow-md);
  z-index: 99;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}
.back-to-top:hover {
  background: var(--primary-dark);
}
.back-to-top.show {
  display: flex;
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
  background: #0f172a; /* Slate 900 */
  color: var(--text-light);
}
.footer h4 {
  color: #fff;
}
.footer a {
  color: var(--text-light);
}
.footer a:hover {
  color: var(--primary-light);
}

/* =========================================
   ANIMATIONS
   ========================================= */
/* By default, .reveal is visible (prevents blank content before JS loads) */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
/* Only hide .reveal elements once JS has confirmed it's ready */
body.js-loaded .reveal {
  opacity: 0;
  transform: translateY(20px);
}
body.js-loaded .reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================
   FADE-IN ANIMATION FOR MAIN
   ========================================= */
body.js-loaded main {
  animation: fadeUpMain 0.5s ease both;
}
@keyframes fadeUpMain {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =========================================
   GALLERY PREVIEW CARDS (homepage)
   ========================================= */
.gallery-card {
  min-height: 220px;
  display: flex;
  align-items: flex-end;
  color: #fff;
  border-radius: var(--radius-lg);
  background-size: cover;
  background-position: center;
  cursor: pointer;
  transition: var(--transition);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.gallery-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}
.gallery-caption {
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.6));
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  padding: 1.5rem;
  width: 100%;
}

/* =========================================
   SAMBUTAN SECTION
   ========================================= */
.sambutan-card {
  background: #fff;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.sambutan-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  min-height: 350px;
}
.sambutan-body {
  padding: 2.5rem;
}
@media (max-width: 768px) {
  .sambutan-photo {
    min-height: 250px;
    height: 250px;
  }
  .sambutan-body {
    padding: 1.5rem;
  }
}

.text-justify {
  text-align: justify;
}

/* =========================================
   ORG CHART (keep existing compatibility)
   ========================================= */
.org-chart { max-width: 1100px; margin: 0 auto; }
.org-structure { max-width: 1200px; margin: 0 auto; }
.org-top-row {
  display: grid;
  grid-template-columns: minmax(220px,1fr) minmax(320px,380px) minmax(220px,1fr);
  gap: 1.5rem; align-items: start; position: relative; margin-bottom: 2.5rem;
}
.org-connector-row { display: flex; justify-content: center; margin-bottom: 2rem; }
.org-connector-center { width: 2px; background: rgba(23,107,63,.16); min-height: 2rem; }
.org-levels { display: grid; gap: 2rem; }
.org-group {
  background: rgba(255,255,255,.95); border: 1px solid var(--border);
  border-radius: 1.5rem; padding: 1.5rem;
}
.org-group-heading {
  font-size: .9rem; font-weight: 700; color: var(--primary);
  text-transform: uppercase; letter-spacing: .12em; margin-bottom: 1rem;
}
.org-row { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.org-node {
  border-radius: 1.6rem; background: #fff; border: 1px solid var(--border);
  box-shadow: var(--shadow-md); padding: 1.5rem; min-width: 220px;
}
.org-node-head { background: rgba(5,150,105,.06); }
.org-node-bpd { background: rgba(245,158,11,.06); }
.org-node-secretariat { background: rgba(5,150,105,.04); }
.org-node-small { min-width: 200px; }
.org-node-role, .org-node-label {
  font-size: .82rem; font-weight: 700; color: var(--primary);
  letter-spacing: .08em; text-transform: uppercase; margin-bottom: .8rem;
}
.org-node-side {
  display: flex; flex-direction: column;
  justify-content: center; padding: 1.75rem 1.5rem;
}
.org-row-wrap { display: flex; }
.org-node-avatar {
  width: 96px; height: 96px; margin: 0 auto 1rem; display: grid;
  place-items: center; border-radius: 50%; background: var(--primary-subtle);
  color: var(--primary); font-size: 2rem;
}
.org-node-title { font-size: 1.25rem; font-weight: 700; margin-bottom: .5rem; }
.org-node-note { color: var(--text-muted); font-size: .95rem; line-height: 1.6; }
.org-subcards {
  display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem;
}
@media (max-width: 991px) {
  .org-top-row { grid-template-columns: 1fr; }
  .org-subcards { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .org-node, .org-node-small { min-width: 100%; }
}

/* =========================================
   PROFILE STATS
   ========================================= */
.profile-stat {
  border-left: 4px solid rgba(5,150,105,.2);
  padding-left: 1rem;
}
.profile-stat strong {
  display: block;
  font-size: 1.35rem;
  color: var(--primary);
}

/* =========================================
   RESPONSIVE FINE-TUNING
   ========================================= */
@media (max-width: 768px) {
  .hero-image { height: 260px; }
  .stat-value { font-size: 1.6rem; }
  .sambutan-photo { min-height: 220px; }
}

/* ===================================================
   PROFESSIONAL HERO — GLOBAL
=================================================== */
.hero-pro {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}
.hero-pro-interior {
  min-height: 55vh !important;
}
.hero-pro-interior .hero-pro-content {
  padding: 120px 0 40px !important;
}
.hero-pro-bg {
  position: absolute;
  inset: 0;
  background: url('../assets/hero.jpeg') center center / cover no-repeat;
  animation: heroPan 20s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes heroPan {
  from { transform: scale(1.0) translate(0, 0); }
  to   { transform: scale(1.08) translate(-1%, 1%); }
}
.hero-pro-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.35) 0%,
    rgba(5,40,20,0.55) 40%,
    rgba(5,40,20,0.72) 100%
  );
}
.hero-pro-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.5) 100%);
}
.hero-pro-content {
  position: relative;
  z-index: 10;
  padding: 160px 0 100px;
  max-width: 820px;
  margin: 0 auto;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #f59e0b;
  margin-bottom: 24px;
  animation: fadeUp 0.7s ease both;
}
.hero-eyebrow i { font-size: 0.85rem; }
.hero-pro-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 24px;
  animation: fadeUp 0.8s ease 0.1s both;
  text-shadow: 0 2px 30px rgba(0,0,0,0.4);
}
.hero-pro-title em {
  font-style: italic;
  color: #f59e0b;
}
.hero-pro-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.78;
  margin-bottom: 44px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeUp 0.9s ease 0.2s both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===================================================
   MODERN TIMELINE (Jejak Sejarah)
=================================================== */
.timeline-modern {
  position: relative;
  padding: 2rem 0;
}
.timeline-modern::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  margin-left: -2px;
  background: linear-gradient(180deg, rgba(5,150,105,0) 0%, rgba(5,150,105,0.2) 15%, rgba(5,150,105,0.2) 85%, rgba(5,150,105,0) 100%);
  border-radius: 4px;
}
.timeline-step {
  position: relative;
  margin-bottom: 4rem;
  width: 100%;
}
.timeline-step:last-child {
  margin-bottom: 0;
}
.timeline-step.left .timeline-content {
  width: 50%;
  float: left;
  text-align: right;
  padding-right: 50px;
}
.timeline-step.right .timeline-content {
  width: 50%;
  float: right;
  text-align: left;
  padding-left: 50px;
}
.timeline-step::after {
  content: '';
  display: block;
  clear: both;
}
.timeline-node {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 44px;
  background: #ffffff;
  border: 4px solid var(--primary-light);
  border-radius: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 6px rgba(16,185,129,0.1);
  color: var(--primary);
  font-size: 1.1rem;
}
.timeline-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 2.2rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.04);
  border: 1px solid var(--border);
  position: relative;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: inline-block;
  width: 100%;
  max-width: 500px;
}
.timeline-step.left .timeline-card {
  float: right;
}
.timeline-step.right .timeline-card {
  float: left;
}
.timeline-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(16,185,129,0.08);
  border-color: var(--primary-subtle);
}
.timeline-year {
  display: inline-block;
  padding: 8px 18px;
  background: var(--primary-subtle);
  color: var(--primary-dark);
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 1.2rem;
  letter-spacing: 0.5px;
}
.timeline-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.8rem;
}
@media (max-width: 991px) {
  .timeline-modern::before {
    left: 24px;
  }
  .timeline-node {
    left: 24px;
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }
  .timeline-step.left .timeline-content,
  .timeline-step.right .timeline-content {
    width: 100%;
    float: none;
    text-align: left;
    padding-left: 70px;
    padding-right: 0;
  }
  .timeline-step.left .timeline-card,
  .timeline-step.right .timeline-card {
    float: none;
    max-width: 100%;
  }
}


/* ===================================================
   PREMIUM DATA CARDS & GLASS PANELS
=================================================== */
.glass-panel {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-xl);
  box-shadow: 0 10px 40px rgba(0,0,0,0.03);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  overflow: hidden;
  position: relative;
}
.glass-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-light), var(--accent));
  opacity: 0;
  transition: opacity 0.4s ease;
}
.glass-panel:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(5,150,105,0.08);
  border-color: rgba(5,150,105,0.2);
}
.glass-panel:hover::before {
  opacity: 1;
}
.icon-glow-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
  color: white;
  box-shadow: 0 10px 25px rgba(5,150,105,0.3);
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
}
.glass-panel:hover .icon-glow-box {
  transform: scale(1.1) rotate(-5deg);
}

/* ===================================================
   RESPONSIVE FIXES FOR MOBILE
=================================================== */
@media (max-width: 768px) {
  .hero-pro-content {
    padding: 120px 20px 60px;
  }
  .hero-pro-interior {
    min-height: 45vh !important;
  }
  .hero-pro-interior .hero-pro-content {
    padding: 100px 20px 40px !important;
  }
  .hero-pro-title {
    font-size: 2.2rem !important;
  }
  .hero-pro-sub {
    font-size: 0.95rem;
    margin-bottom: 24px;
  }
  .timeline-card {
    padding: 1.5rem;
  }
  .timeline-title {
    font-size: 1.2rem;
  }
  .glass-panel-header, .glass-panel-body {
    padding: 1rem;
  }
  .glass-panel {
    padding: 1.25rem !important;
  }
  .stat-card {
    padding: 1.25rem;
  }
  .icon-glow-box {
    width: 56px;
    height: 56px;
    font-size: 1.4rem;
  }
  .navbar-pro .nav-inner {
    padding-left: 15px;
    padding-right: 15px;
  }
}


/* ===================================================
   MICRO-INTERACTIONS & SELECTION
=================================================== */
::selection { background: rgba(16, 185, 129, 0.3); color: var(--primary-dark); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-main); }
::-webkit-scrollbar-thumb { background: var(--primary-light); border-radius: 10px; border: 2px solid var(--bg-main); }
::-webkit-scrollbar-thumb:hover { background: var(--primary-dark); }

/* ===================================================
   PREMIUM NEWS CARDS
=================================================== */
.premium-news-card {
  position: relative; border-radius: var(--radius-xl); overflow: hidden; background: #fff;
  border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: all 0.5s ease;
  display: flex; flex-direction: column; height: 100%;
}
.premium-news-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,0.08); border-color: transparent; }
.premium-news-img-wrap { overflow: hidden; height: 240px; position: relative; }
.premium-news-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.premium-news-card:hover .premium-news-img-wrap img { transform: scale(1.1); }
.premium-news-badge {
  position: absolute; top: 16px; left: 16px; background: rgba(255,255,255,0.9);
  backdrop-filter: blur(4px); padding: 6px 14px; border-radius: 999px;
  font-size: 0.8rem; font-weight: 700; color: var(--primary-dark); box-shadow: var(--shadow-sm);
}
.premium-news-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.premium-news-title { font-family: 'Playfair Display', serif; font-size: 1.3rem; font-weight: 700; color: var(--text-main); line-height: 1.4; margin-bottom: 12px; transition: color 0.3s; }
.premium-news-card:hover .premium-news-title { color: var(--primary); }
.premium-news-text { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; margin-bottom: 20px; flex: 1; }
.premium-news-footer { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--border); padding-top: 16px; }

/* ===================================================
   MASONRY GALLERY & LIGHTBOX
=================================================== */
.masonry-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.masonry-item { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform 0.4s; cursor: pointer; aspect-ratio: 3 / 2; }
.masonry-item img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: var(--radius-lg); transition: transform 0.5s; }
.masonry-item:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.masonry-item:hover img { transform: scale(1.05); }
.masonry-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.8), transparent); opacity: 0; transition: opacity 0.4s; display: flex; align-items: flex-end; padding: 20px; }
.masonry-item:hover .masonry-overlay { opacity: 1; }
.masonry-title { color: #fff; font-weight: 600; font-size: 1.1rem; margin:0; }
@media(max-width: 991px) { .masonry-grid { grid-template-columns: repeat(2, 1fr); } }
@media(max-width: 576px) { .masonry-grid { grid-template-columns: 1fr; } }

#lightbox { position: fixed; inset: 0; background: rgba(15,23,42,0.95); backdrop-filter: blur(8px); z-index: 9999; display: none; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s; }
#lightbox.active { display: flex; opacity: 1; }
#lightbox img { max-width: 90%; max-height: 85vh; border-radius: 12px; box-shadow: 0 20px 50px rgba(0,0,0,0.5); }
#lightbox-close { position: absolute; top: 30px; right: 40px; color: #fff; font-size: 2.5rem; cursor: pointer; transition: transform 0.3s; }
#lightbox-close:hover { transform: rotate(90deg); color: var(--accent); }

/* ===================================================
   ORG CHART GLASSMORPHISM
=================================================== */
.org-node { background: rgba(255,255,255,0.7) !important; backdrop-filter: blur(12px) !important; border: 1px solid rgba(255,255,255,0.6) !important; box-shadow: 0 10px 30px rgba(0,0,0,0.05) !important; transition: all 0.4s !important; }
.org-node:hover { transform: translateY(-8px) scale(1.02); box-shadow: 0 20px 40px rgba(5,150,105,0.15) !important; border-color: rgba(5,150,105,0.3) !important; }
.org-node-avatar { box-shadow: 0 5px 15px rgba(0,0,0,0.1); border: 3px solid #fff; }

/* ===================================================
   PREMIUM FOOTER
=================================================== */
.footer-premium { background: linear-gradient(145deg, #0f172a, #1e293b); color: #94a3b8; position: relative; overflow: hidden; border-top: 5px solid var(--primary); }
.footer-premium::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 100%; background: url('../assets/pattern.svg') center/cover opacity(0.02); pointer-events: none; }
.footer-title { color: #fff; font-family: 'Playfair Display', serif; font-size: 1.4rem; font-weight: 700; margin-bottom: 1.5rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: #94a3b8; text-decoration: none; transition: all 0.3s; display: inline-flex; align-items: center; }
.footer-links a::before { content: '›'; margin-right: 8px; color: var(--primary); font-size: 1.2rem; transition: transform 0.3s; }
.footer-links a:hover { color: #fff; transform: translateX(5px); }
.footer-social { display: flex; gap: 12px; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.05); display: flex; align-items: center; justify-content: center; color: #fff; transition: all 0.3s; border: 1px solid rgba(255,255,255,0.1); }
.footer-social a:hover { background: var(--primary); transform: translateY(-5px); box-shadow: 0 10px 20px rgba(5,150,105,0.4); border-color: var(--primary); }


/* ===================================================
   SWAPPABLE LIGHTBOX CAROUSEL
=================================================== */
#lightbox { position: fixed; inset: 0; background: rgba(15,23,42,0.98); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); z-index: 99999; display: none; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.4s ease; flex-direction: column; }
#lightbox.active { display: flex; opacity: 1; }
.lightbox-topbar { position: absolute; top: 0; left: 0; width: 100%; padding: 24px 32px; display: flex; justify-content: flex-start; z-index: 2; background: linear-gradient(to bottom, rgba(0,0,0,0.5), transparent); }
.lightbox-topbar .btn { border-color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.1); backdrop-filter: blur(5px); }
.lightbox-topbar .btn:hover { background: rgba(255,255,255,0.9); color: #000; border-color: #fff; transform: translateY(-2px); }
#lightbox-img { max-width: 85vw; max-height: 80vh; border-radius: 8px; box-shadow: 0 20px 50px rgba(0,0,0,0.5); transition: opacity 0.2s ease-out, transform 0.2s ease-out; object-fit: contain; z-index: 1; user-select: none; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.1); border: 2px solid rgba(255,255,255,0.3); color: #fff; width: 60px; height: 60px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 2; transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); backdrop-filter: blur(5px); outline: none; }
.lightbox-nav:hover { background: var(--primary); border-color: var(--primary); transform: translateY(-50%) scale(1.15); box-shadow: 0 10px 25px rgba(5,150,105,0.4); }
.lightbox-nav:active { transform: translateY(-50%) scale(0.95); }
.lightbox-nav.prev { left: 40px; }
.lightbox-nav.next { right: 40px; }
@media (max-width: 768px) {
  .lightbox-nav { width: 45px; height: 45px; font-size: 1.2rem; }
  .lightbox-nav.prev { left: 10px; }
  .lightbox-nav.next { right: 10px; }
  .lightbox-topbar { padding: 16px; }
  #lightbox-img { max-width: 100vw; max-height: 70vh; border-radius: 0; }
}
