/* ============================================
   CSS Variables - Design System
   ============================================ */
:root {
  /* Colors */
  --primary: #167474;
  --primary-dark: #0d5555;
  --green: #2ecc71;
  --green-dark: #27ae60;
  --orange: #e67e22;
  --orange-dark: #d35400;
  --blue: #3498db;
  --blue-dark: #2980b9;
  --pink: #e91e63;
  --pink-dark: #c2185b;

  /* Text Colors */
  --text-dark: #222;
  --text: #333;
  --text-muted: #555;
  --text-light: #666;
  --text-lighter: #777;

  /* Backgrounds */
  --bg-white: #fff;
  --bg-light: #f8f9fb;
  --bg-lighter: #f5f7fa;

  /* Spacing Scale */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 40px;
  --space-xl: 60px;
  --space-2xl: 80px;

  /* Typography Scale */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2rem;
  --text-4xl: 2.5rem;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
  --shadow-hover: 0 12px 35px rgba(0, 0, 0, 0.15);

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Container */
  --container-max: 1200px;
  --container-padding: 24px;
}

/* ============================================
   Reusable Animation Classes
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

/* ============================================
   Base Styles
   ============================================ */
img {
  vertical-align: middle;
  border: 0;
  max-width: 100%;
  height: auto;
}

/* Reduce hero height for DRM page */
.hero.is-large .hero-body {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

@media screen and (max-width: 768px) {
  .hero.is-large .hero-body {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
}

/* DRM Hero Text Adjustments */
.projects-page .hero {
  min-height: 75vh;
}

.projects-page .hero .page-title {
  font-size: var(--text-4xl);
  font-weight: 700;
  margin-bottom: 1rem !important;
  color: var(--bg-white);
}

.projects-page .hero .page-subtitle {
  font-size: var(--text-lg);
  margin-bottom: 1.5rem !important;
}

.projects-page .hero .hero-description {
  font-size: var(--text-base);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.projects-page .hero .top-line {
  margin-top: 150px;
}

/* Align hero content with sections below */
.projects-page .hero-body .container {
  max-width: 1140px;
  padding-left: 0;
  padding-right: 15px;
  margin-left: 5%;
}

@media screen and (max-width: 768px) {
  .projects-page .hero {
    min-height: 60vh;
  }

  .projects-page .hero .page-title {
    font-size: 1.5rem;
  }

  .projects-page .hero .page-subtitle {
    font-size: 1rem;
  }

  .projects-page .hero .hero-description {
    font-size: 0.9rem;
  }

  .projects-page .hero .top-line {
    margin-top: 100px;
  }
}

section#igad-drm-areas-of-work a {
  color: #3273dc !important;
  cursor: pointer;
  text-decoration: none;
}

/* ============================================
   SECTION LAYOUT CONSISTENCY
   ============================================
   Section Pattern:
   1. Hero (with background image)
   2. Stats Bar (floating)
   3. Programme Overview - WHITE (#fff)
   4. Programme Pillars - LIGHT GRAY (#f8f9fb)
   5. Featured Tools - WHITE (#fff)
   6. Publications - LIGHT GRAY (#f5f7fa)
   7. Latest Updates - WHITE (#fff)
   8. Partners - LIGHT GRAY (#f8f9fb)

   Consistent spacing: 60px padding top/bottom
   ============================================ */

/* ============================================
   Programme Overview Section
   ============================================ */
.programme-overview-section {
  padding: var(--space-2xl) 0 var(--space-xl) 0;
  background: var(--bg-white) !important;
}

.programme-overview-section .column:last-child {
  padding-bottom: 0;
}

.programme-overview-section h1 {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1.25rem !important;
  position: relative;
}

/* Section divider under title */
.programme-overview-section h1::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--primary);
  margin-top: 15px;
}

.programme-text-block {
  border-left: 3px solid var(--primary);
  padding-left: var(--space-md);
  margin-left: 5px;
}

.programme-text-block p {
  font-size: var(--text-base);
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  text-align: justify;
}

.programme-text-block p:last-child {
  margin-bottom: 0;
}

/* Fade Up Animation - now using .reveal class */
.programme-overview-section .animate-fade-up {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.programme-overview-section .animate-fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media screen and (max-width: 768px) {
  .programme-overview-section {
    padding: var(--space-xl) 0 var(--space-lg) 0;
  }

  .programme-overview-section h1 {
    font-size: var(--text-2xl);
  }

  .programme-text-block {
    padding-left: 18px;
    border-left-width: 2px;
  }

  .programme-text-block p {
    font-size: var(--text-sm);
    line-height: 1.7;
  }
}

.slick-slide {
  outline: 0;
}

.section {
  padding: 60px 0;
  padding-left: 0;
  padding-right: 0;
}

.section-sm {
  padding: 50px 0;
}

.section-title {
  margin-bottom: 30px;
}

/* Consistent section title styling */
.section-title h2,
.content-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #222;
}

/* Global mobile spacing adjustments */
@media screen and (max-width: 768px) {
  .section {
    padding: 50px 0;
  }

  .section-title {
    margin-bottom: 25px;
  }

  .section-title h2,
  .content-title {
    font-size: 1.25rem;
  }
}

@media screen and (max-width: 480px) {
  .section {
    padding: 40px 0;
  }

  .section-title {
    margin-bottom: 20px;
  }
}

.stretched-link::after {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  pointer-events: auto;
  content: "";
  background-color: rgba(0, 0, 0, 0);
}

.bg-cover {
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.border-default {
  border-color: #E2E2E2 !important;
}

/* overlay */
.overlay {
  position: relative;
}

.overlay::before {
  position: absolute;
  content: "";
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
  background: #000;
  opacity: 0.5;
}

.outline-0 {
  outline: 0 !important;
}

.rounded,
.card-icon,
.card {
  border-radius: var(--radius-lg) !important;
}

.shadow,
.card,
.navigation.nav-bg {
  box-shadow: var(--shadow-md) !important;
}

/* Modern card hover effect */
.card {
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover) !important;
}

.d-unset {
  display: unset !important;
}

.zindex-1 {
  z-index: 1;
}

.overflow-hidden {
  overflow: hidden;
}

.has-text-weight-medium {
  font-weight: 500;
}

@media screen and (min-width: 1216px) {
  .container:not(.is-max-desktop) {
    max-width: 1140px;
  }
}

@media (max-width: 1023px) {
  .container {
    max-width: 765px;
  }
}

@media (max-width: 768px) {
  .container {
    max-width: 540px;
  }
}

.container,
.container-fluid {
  padding-left: 15px;
  padding-right: 15px;
}

.column {
  padding: 15px;
}

.columns {
  margin-left: -15px;
  margin-right: -15px;
  margin-top: -15px;
}

.columns:last-child {
  margin-bottom: -15px;
}

.bg-white {
  background-color: #fff;
}

.border {
  border: 1px solid #dee2e6 !important;
}

section:nth-child(even) {
  background-color: #f8f9fb !important;
}

section {
  padding: 0;
}

@media screen and (min-width: 1408px) {
  section .container.wider-than-usual {
    max-width: 1644px;
  }
}

/* ============================================
   Consistent Container Width for DRM Page
   Match Programme Overview width (wider-than-usual)
   ============================================ */
.projects-page .pillars-section .container,
.projects-page .featured-tools .container.is-max-desktop,
.projects-page .section.pb-0 .container.is-max-desktop,
.projects-page .latest-updates-section .container,
.projects-page .partners-section .container {
  max-width: 1152px !important;
  width: 100%;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

@media screen and (min-width: 1408px) {
  .projects-page .pillars-section .container,
  .projects-page .featured-tools .container.is-max-desktop,
  .projects-page .section.pb-0 .container.is-max-desktop,
  .projects-page .latest-updates-section .container,
  .projects-page .partners-section .container {
    max-width: 1344px !important;
  }
}

@media screen and (max-width: 1200px) {
  .projects-page .pillars-section .container,
  .projects-page .featured-tools .container.is-max-desktop,
  .projects-page .section.pb-0 .container.is-max-desktop,
  .projects-page .latest-updates-section .container,
  .projects-page .partners-section .container {
    max-width: 960px !important;
  }
}

@media screen and (max-width: 1023px) {
  .projects-page .pillars-section .container,
  .projects-page .featured-tools .container.is-max-desktop,
  .projects-page .section.pb-0 .container.is-max-desktop,
  .projects-page .latest-updates-section .container,
  .projects-page .partners-section .container {
    max-width: 100% !important;
    padding-left: 20px;
    padding-right: 20px;
  }
}

#slider {
  position: relative;
  overflow: hidden;
}

#slider .slider-navigation-next,
#slider .slider-navigation-previous,
#slider .slider-pagination {
  background-color: #167474;
}

#slider .slider-navigation-next svg,
#slider .slider-navigation-previous svg,
#slider .slider-pagination svg {
  color: #fff;
}

.card {
  transition: 0.2s ease;
  border: 0;
}

.card-lg .card-body {
  padding: 35px;
}

.card-icon {
  height: 55px;
  width: 60px;
  line-height: 55px;
  text-align: center;
  font-size: 27px;
  display: block;
  margin-top: 40px;
}

.card-text {
  margin-bottom: 0;
}

.card-title {
  font-weight: 700;
  margin-bottom: 0.75rem;
  padding: 20px 0 10px 0;
}

.card-body {
  padding: 25px;
}

.card:hover {
  box-shadow: 0px 15px 60px rgba(62, 62, 62, 0.2) !important;
}

.card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  font-size: 12px;
  color: #777;
  margin-bottom: 0;
}

.card-meta li {
  margin-bottom: 10px;
}

.card-meta li:not(:last-child) {
  border-right: 1px solid #EBEBEB;
  padding-right: 8px;
}

.card-meta i {
  color: #dddddd;
  margin-right: 5px;
}

.card .hidden {
  display: none;
}

.card .active {
  display: inline;
}

.card .pub-title {
  color: #333;
  font-weight: 700;
  font-size: 12pt;
}

.card .list-inline-item:not(:last-child) {
  display: inline-block;
  margin-right: 0.5em;
}

.pagination {
  margin-top: 50px;
  justify-content: space-between;
}

.collapse-wrapper {
  padding: 5px 15px;
}

.collapse-wrapper .collapse-head {
  text-decoration: none;
  color: #333;
  font-size: 18px;
  font-weight: 500;
  align-items: center;
}


@media (max-width: 1023px) {
  .hidden-on-tablet {
    display: none;
  }
}

.no-pointer {
  pointer-events: none;
}

/* ============================================
   Resources and Publications Section
   ============================================ */
.section.pb-0 {
  padding: var(--space-2xl) 0 var(--space-xl) 0 !important;
  background: var(--bg-lighter) !important;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.section.pb-0.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.section.pb-0 .section-title {
  margin-bottom: var(--space-lg);
}

.section.pb-0 .content-title {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--text-dark);
}

/* Section divider */
.section.pb-0 .section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--primary);
  margin: 15px auto 0;
}

.section.pb-0 .card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  border: none;
}

.section.pb-0 .card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.section.pb-0 .card h4 {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
}

.section.pb-0 .card-img-sm {
  border-radius: 8px;
  object-fit: cover;
}

@media screen and (max-width: 768px) {
  .section.pb-0 {
    padding: 50px 0 30px 0 !important;
  }

  .section.pb-0 .content-title {
    font-size: 1.25rem;
  }

  .section.pb-0 .card h4 {
    font-size: 0.85rem;
  }
}

/* ============================================
   Featured Tools Section - Navigation Improvements
   ============================================ */
.featured-tools {
  padding: var(--space-2xl) 0;
  background: var(--bg-white) !important;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.featured-tools.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.featured-tools .section-title {
  margin-bottom: var(--space-lg);
}

.featured-tools .content-title {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--text-dark);
}

/* Section divider */
.featured-tools .section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--primary);
  margin: 15px auto 0;
}

/* Prevent layout shift - set initial horizontal layout */
.featured-tools #slider {
  display: flex;
  overflow: hidden;
  min-height: 300px;
}

.featured-tools #slider > .card {
  flex: 0 0 calc(33.333% - 16px);
  max-width: calc(33.333% - 16px);
}

/* Once carousel is initialized, it handles the layout */
.featured-tools #slider.slider {
  display: block;
  min-height: auto;
}

.featured-tools #slider.slider > .card {
  flex: none;
  max-width: none;
}

/* Carousel Navigation Arrows */
.featured-tools .slider-navigation-previous,
.featured-tools .slider-navigation-next {
  background: var(--primary) !important;
  border-radius: 50% !important;
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast) !important;
}

.featured-tools .slider-navigation-previous:hover,
.featured-tools .slider-navigation-next:hover {
  background: #0d5555 !important;
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(22, 116, 116, 0.35);
}

.featured-tools .slider-navigation-previous svg,
.featured-tools .slider-navigation-next svg {
  color: #fff !important;
  width: 16px !important;
  height: 16px !important;
}

/* Pagination Dots */
.featured-tools .slider-pagination {
  margin-top: 20px !important;
  background: transparent !important;
  padding: 10px 0 !important;
}

.featured-tools .slider-pagination .slider-page {
  width: 8px !important;
  height: 8px !important;
  background: #ccc !important;
  border-radius: 50% !important;
  margin: 0 4px !important;
  transition: all 0.3s ease !important;
}

.featured-tools .slider-pagination .slider-page.is-active {
  background: #167474 !important;
  transform: scale(1.1);
}

@media screen and (max-width: 768px) {
  .featured-tools {
    padding: 50px 0;
  }

  .featured-tools .content-title {
    font-size: 1.25rem;
  }
}

/* ============================================
   Partners Section - Marquee/Carousel
   ============================================ */
.partners-section {
  padding: var(--space-2xl) 0;
  overflow: hidden;
  background: var(--bg-light) !important;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.partners-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.partners-section .section-title {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: var(--space-md);
}


/* Marquee Container */
.partners-marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 20px 0;
}

/* Fade edges */
.partners-marquee::before,
.partners-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}

.partners-marquee::before {
  left: 0;
  background: linear-gradient(to right, #f8f9fb 0%, transparent 100%);
}

.partners-marquee::after {
  right: 0;
  background: linear-gradient(to left, #f8f9fb 0%, transparent 100%);
}

/* Marquee Track */
.partners-marquee-track {
  display: flex;
  align-items: center;
  gap: 60px;
  width: max-content;
  animation: marqueeScroll 30s linear infinite;
}

.partners-marquee:hover .partners-marquee-track {
  animation-play-state: paused;
}

@keyframes marqueeScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Partner Item */
.partner-item {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.partner-item:hover {
  transform: scale(1.1);
}

/* Partner Logo */
.partner-logo-wrapper {
  width: 120px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.partner-logo-wrapper .partner-logo {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
  filter: none !important; /* Override grayscale from partners.css */
}

.partners-section .partner-item:hover .partner-logo {
  transform: scale(1.05);
}

/* More Partners Link */
.partners-more-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #167474;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.partners-more-link:hover {
  color: #0d5555;
  gap: 12px;
}

.partners-more-link svg {
  transition: transform 0.3s ease;
}

.partners-more-link:hover svg {
  transform: translateX(4px);
}

/* Responsive */
@media screen and (max-width: 768px) {
  .partners-section {
    padding: 50px 0;
  }

  .partners-section .section-title {
    font-size: 1.25rem;
  }

  .partners-marquee::before,
  .partners-marquee::after {
    width: 50px;
  }

  .partners-marquee-track {
    gap: 40px;
    animation-duration: 20s;
  }

  .partner-logo-wrapper {
    width: 100px;
    height: 60px;
  }
}

/* ============================================
   Latest Updates Section - Coverflow Carousel
   ============================================ */
.latest-updates-section {
  padding: var(--space-2xl) 0;
  overflow: hidden;
  background: var(--bg-white) !important;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.latest-updates-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.latest-updates-section .section-title {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: var(--space-lg);
}

/* Section divider */
.latest-updates-section .section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--primary);
  margin: 15px auto 0;
}


/* Coverflow Container */
.coverflow-carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 60px;
}

.coverflow-carousel .coverflow-nav.coverflow-prev {
  position: absolute;
  left: 0;
}

.coverflow-carousel .coverflow-nav.coverflow-next {
  position: absolute;
  right: 0;
}

.coverflow-container {
  width: 100%;
  overflow: visible;
  perspective: 1500px;
}

.coverflow-track {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 420px;
  transform-style: preserve-3d;
}

/* Coverflow Items */
.coverflow-item {
  position: absolute;
  width: 320px;
  transition: all 0.5s ease;
  cursor: pointer;
}

.coverflow-item .card {
  width: 100%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  overflow: hidden;
}

/* Center item - Active */
.coverflow-item.is-active {
  transform: translateX(0) scale(1.05) rotateY(0deg);
  z-index: 10;
  opacity: 1;
}

.coverflow-item.is-active .card {
  box-shadow: 0 25px 50px rgba(22, 116, 116, 0.25);
}

/* Previous items (left side) */
.coverflow-item.is-prev {
  transform: translateX(-300px) scale(0.85) rotateY(20deg);
  z-index: 5;
  opacity: 0.7;
}

.coverflow-item.is-prev-2 {
  transform: translateX(-500px) scale(0.7) rotateY(30deg);
  z-index: 3;
  opacity: 0.4;
}

.coverflow-item.is-prev-3 {
  opacity: 0;
  pointer-events: none;
}

/* Next items (right side) */
.coverflow-item.is-next {
  transform: translateX(300px) scale(0.85) rotateY(-20deg);
  z-index: 5;
  opacity: 0.7;
}

.coverflow-item.is-next-2 {
  transform: translateX(500px) scale(0.7) rotateY(-30deg);
  z-index: 3;
  opacity: 0.4;
}

.coverflow-item.is-next-3 {
  opacity: 0;
  pointer-events: none;
}

/* Hidden items */
.coverflow-item.is-hidden {
  transform: translateX(0) scale(0.5);
  opacity: 0;
  pointer-events: none;
  z-index: 0;
}

/* Navigation Arrows */
.coverflow-nav {
  background: var(--primary);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--bg-white);
  transition: transform var(--transition-fast), background var(--transition-fast);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
  z-index: 20;
}

.coverflow-nav:hover {
  background: var(--primary-dark);
  transform: scale(1.05);
}

/* Pagination Dots */
.coverflow-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 30px;
}

.coverflow-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: #ddd;
  cursor: pointer;
  transition: all 0.3s ease;
}

.coverflow-dot:hover {
  background: #bbb;
}

.coverflow-dot.is-active {
  background: #167474;
  transform: scale(1.2);
}

/* Responsive */
@media screen and (max-width: 1200px) {
  .coverflow-item {
    width: 300px;
  }

  .coverflow-item.is-prev {
    transform: translateX(-260px) scale(0.85) rotateY(20deg);
  }

  .coverflow-item.is-next {
    transform: translateX(260px) scale(0.85) rotateY(-20deg);
  }

  .coverflow-item.is-prev-2,
  .coverflow-item.is-next-2 {
    opacity: 0;
  }
}

@media screen and (max-width: 900px) {
  .coverflow-item {
    width: 280px;
  }

  .coverflow-item.is-prev {
    transform: translateX(-200px) scale(0.8) rotateY(15deg);
    opacity: 0.6;
  }

  .coverflow-item.is-next {
    transform: translateX(200px) scale(0.8) rotateY(-15deg);
    opacity: 0.6;
  }
}

@media screen and (max-width: 768px) {
  .latest-updates-section {
    padding: 50px 0;
  }

  .latest-updates-section .section-title {
    font-size: 1.25rem;
    margin-bottom: 20px;
  }

  .coverflow-track {
    height: 420px;
  }

  .coverflow-item {
    width: 260px;
  }

  .coverflow-item.is-prev,
  .coverflow-item.is-next {
    transform: translateX(0) scale(0.7);
    opacity: 0;
  }

  .coverflow-nav {
    width: 36px;
    height: 36px;
  }
}

/* ============================================
   Programme Pillars Section Styles
   ============================================ */

/* ============================================
   Video Container (Responsive YouTube Embed)
   ============================================ */
.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0px 15px 60px rgba(62, 62, 62, 0.15);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
}

/* ============================================
   Programme Pillars - Interactive Tabs
   ============================================ */
.pillars-section {
  padding: var(--space-xl) 0 var(--space-2xl) 0 !important;
  background: var(--bg-light) !important;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.pillars-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.pillars-header {
  text-align: center;
  margin-bottom: var(--space-md);
}

.pillars-title {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

/* Section divider */
.pillars-header::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--primary);
  margin: 15px auto 0;
}

.pillars-subtitle {
  font-size: var(--text-sm);
  color: var(--text-light);
  max-width: 450px;
  margin: 0 auto;
  padding: 0 !important;
}

/* Tabs Wrapper */
.pillars-tabs-wrapper {
  max-width: 100%;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.pillars-tabs-wrapper.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Tab Navigation */
.pillars-tabs {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
  justify-content: space-between;
  position: relative;
}

/* Sliding indicator line */
.pillars-tabs-indicator {
  position: absolute;
  bottom: -4px;
  height: 3px;
  background: #167474;
  border-radius: 3px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
}

.pillar-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 18px;
  background: var(--bg-white);
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  opacity: 0;
  transform: translateY(20px);
  position: relative;
}

.pillars-tabs-wrapper.is-visible .pillar-tab {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered animation for each tab */
.pillars-tabs-wrapper.is-visible .pillar-tab:nth-child(1) { transition-delay: 0.1s; }
.pillars-tabs-wrapper.is-visible .pillar-tab:nth-child(2) { transition-delay: 0.2s; }
.pillars-tabs-wrapper.is-visible .pillar-tab:nth-child(3) { transition-delay: 0.3s; }
.pillars-tabs-wrapper.is-visible .pillar-tab:nth-child(4) { transition-delay: 0.4s; }

.pillar-tab:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.pillar-tab:active {
  transform: translateY(-2px);
}

/* Tab Label */
.pillar-tab-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.4;
  transition: color var(--transition-fast);
}

.pillar-tab:hover .pillar-tab-label {
  color: var(--text-dark);
}

/* Tab Colors - Active State */
.pillar-tab.is-active {
  animation: subtlePulse 2s ease-in-out infinite;
}

.pillar-tab.is-active .pillar-tab-label {
  color: #222;
  font-weight: 700;
}

/* Active tab glow effect */
.pillar-tab-green.is-active { box-shadow: 0 6px 24px rgba(46, 204, 113, 0.2); }
.pillar-tab-orange.is-active { box-shadow: 0 6px 24px rgba(230, 126, 34, 0.2); }
.pillar-tab-blue.is-active { box-shadow: 0 6px 24px rgba(52, 152, 219, 0.2); }
.pillar-tab-pink.is-active { box-shadow: 0 6px 24px rgba(233, 30, 99, 0.2); }

/* Content Panel */
.pillars-content {
  background: #fff;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.pillar-panel {
  display: none;
  opacity: 0;
  transform: translateY(20px);
}

.pillar-panel.is-active {
  display: block;
  animation: panelSlideIn 0.5s ease forwards;
}

.pillar-panel.is-exiting {
  display: block;
  animation: panelFadeOut 0.25s ease forwards;
}

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

@keyframes panelFadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}

.pillar-panel-inner {
  padding: 16px 20px;
}

/* Staggered content reveal */
.pillar-panel.is-active .pillar-panel-header {
  opacity: 0;
  animation: contentFadeUp 0.4s ease forwards;
  animation-delay: 0.1s;
}

.pillar-panel.is-active .pillar-panel-description {
  opacity: 0;
  animation: contentFadeUp 0.4s ease forwards;
  animation-delay: 0.2s;
}

.pillar-panel.is-active .pillar-panel-areas {
  opacity: 0;
  animation: contentFadeUp 0.4s ease forwards;
  animation-delay: 0.3s;
}

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

/* Panel Header */
.pillar-panel-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.pillar-panel-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pillar-panel-green .pillar-panel-icon { background: rgba(46, 204, 113, 0.12); }
.pillar-panel-orange .pillar-panel-icon { background: rgba(230, 126, 34, 0.12); }
.pillar-panel-blue .pillar-panel-icon { background: rgba(52, 152, 219, 0.12); }
.pillar-panel-pink .pillar-panel-icon { background: rgba(233, 30, 99, 0.12); }

.pillar-panel-icon img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.pillar-panel-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
}

.pillar-panel-green .pillar-panel-title { color: #27ae60; }
.pillar-panel-orange .pillar-panel-title { color: #d35400; }
.pillar-panel-blue .pillar-panel-title { color: #2980b9; }
.pillar-panel-pink .pillar-panel-title { color: #c2185b; }

/* Panel Description */
.pillar-panel-description {
  font-size: 0.82rem;
  line-height: 1.55;
  color: #555;
  margin-bottom: 12px;
  text-align: justify;
}

.pillar-panel-description p {
  margin: 0;
  padding: 0;
}

/* Thematic Areas */
.pillar-panel-areas {
  background: #f8f9fb;
  border-radius: 6px;
  padding: 12px;
}

.pillar-panel-areas-title {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #666;
  margin: 0 0 8px 0;
}

.pillar-panel-areas-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
}

.pillar-panel-areas-list li {
  font-size: 0.75rem;
  color: #444;
  padding: 6px 8px;
  background: #fff;
  border-radius: 5px;
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0;
  transform: scale(0.9);
}

/* Tag pop animation with staggered delays */
.pillar-panel.is-active .pillar-panel-areas-list li {
  animation: tagPop 0.3s ease forwards;
}

.pillar-panel.is-active .pillar-panel-areas-list li:nth-child(1) { animation-delay: 0.35s; }
.pillar-panel.is-active .pillar-panel-areas-list li:nth-child(2) { animation-delay: 0.4s; }
.pillar-panel.is-active .pillar-panel-areas-list li:nth-child(3) { animation-delay: 0.45s; }
.pillar-panel.is-active .pillar-panel-areas-list li:nth-child(4) { animation-delay: 0.5s; }
.pillar-panel.is-active .pillar-panel-areas-list li:nth-child(5) { animation-delay: 0.55s; }
.pillar-panel.is-active .pillar-panel-areas-list li:nth-child(6) { animation-delay: 0.6s; }

@keyframes tagPop {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.pillar-panel-areas-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.pillar-panel-green .pillar-panel-areas-list li::before { background: #2ecc71; }
.pillar-panel-orange .pillar-panel-areas-list li::before { background: #e67e22; }
.pillar-panel-blue .pillar-panel-areas-list li::before { background: #3498db; }
.pillar-panel-pink .pillar-panel-areas-list li::before { background: #e91e63; }

/* Responsive */
@media screen and (max-width: 768px) {
  .pillars-section {
    padding: 50px 0 !important;
  }

  .pillars-title {
    font-size: 1.25rem;
  }

  .pillars-tabs {
    gap: 10px;
    flex-wrap: wrap;
  }

  .pillar-tab {
    flex: 1 1 calc(50% - 10px);
    padding: 20px 16px;
  }

  .pillar-tab-label {
    font-size: 0.8rem;
  }

  .pillar-panel-inner {
    padding: 20px;
  }

  .pillar-panel-header {
    gap: 12px;
  }

  .pillar-panel-icon {
    width: 48px;
    height: 48px;
  }

  .pillar-panel-icon img {
    width: 26px;
    height: 26px;
  }

  .pillar-panel-title {
    font-size: 1.1rem;
  }

  .pillar-panel-description {
    font-size: 0.85rem;
  }

  .pillar-panel-areas-list {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 480px) {
  .pillars-tabs {
    gap: 8px;
  }

  .pillar-tab {
    flex: 1 1 calc(50% - 8px);
    padding: 16px 12px;
  }

  .pillar-tab-label {
    font-size: 0.75rem;
  }

  .pillar-panel-inner {
    padding: 16px;
  }

  .pillar-panel-areas {
    padding: 15px;
  }

  .pillar-panel-areas-list li {
    font-size: 0.8rem;
    padding: 8px 12px;
  }
}

/* ============================================
   Hero Stats Bar (below hero)
   ============================================ */
.hero-stats-bar {
  background: #fff;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 10;
  margin-top: -50px;
  margin-bottom: -50px;
  margin-left: auto;
  margin-right: auto;
  width: 90%;
  max-width: 1100px;
  border-radius: 6px;
}

.hero-stats-bar .container {
  padding: 0;
  max-width: 100%;
}

.hero-stats-grid {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 18px 20px;
}

.hero-stat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 15px;
}

.hero-stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-stat-icon svg {
  width: 24px;
  height: 24px;
}

.hero-stat-icon.icon-calendar { color: #3498db; }
.hero-stat-icon.icon-book { color: #167474; }
.hero-stat-icon.icon-users { color: #e67e22; }
.hero-stat-icon.icon-globe { color: #27ae60; }

.hero-stat-content {
  display: flex;
  flex-direction: column;
}

.hero-stat-number {
  font-size: 1.75rem;
  font-weight: 700;
  color: #222;
  line-height: 1;
  margin-bottom: 2px;
}

.hero-stat-label {
  font-size: 0.75rem;
  color: #666;
  white-space: nowrap;
}

/* Responsive */
@media screen and (max-width: 992px) {
  .hero-stats-grid {
    padding: 25px 15px;
  }

  .hero-stat-item {
    padding: 0 10px;
  }

  .hero-stat-number {
    font-size: 1.75rem;
  }

  .hero-stat-label {
    font-size: 0.7rem;
  }

  .hero-stat-icon svg {
    width: 24px;
    height: 24px;
  }
}

@media screen and (max-width: 768px) {
  .hero-stats-bar {
    margin-top: -25px;
    width: 95%;
  }

  .hero-stats-grid {
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px 15px;
  }

  .hero-stat-item {
    flex: 0 0 45%;
    justify-content: center;
  }

  .hero-stat-number {
    font-size: 1.5rem;
  }
}

@media screen and (max-width: 480px) {
  .hero-stats-bar {
    margin-top: -20px;
  }

  .hero-stats-grid {
    gap: 15px;
    padding: 15px 10px;
  }

  .hero-stat-item {
    flex: 0 0 48%;
    gap: 8px;
    padding: 0 5px;
  }

  .hero-stat-number {
    font-size: 1.25rem;
  }

  .hero-stat-label {
    font-size: 0.65rem;
  }

  .hero-stat-icon svg {
    width: 20px;
    height: 20px;
  }
}