/*
Theme Name: S4P Creative SBC Agency
Theme URI: https://s4pgroup.org/
Description: A premium, highly immersive WordPress theme built to showcase S4P Group as Africa's leading Creative Social & Behaviour Change Powerhouse.
Version: 1.0.4
Author: Semakula Emmanuel
Author URI: https://x.com/semakulaema
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: s4p-theme
*/

/* -----------------------------------------
   01. DESIGN SYSTEM & FONTS IMPORT
   ----------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Poppins:ital,wght@0,300;0,400;0,600;0,700;0,800;1,400&display=swap');

:root {
  /* Curated HSL Color System */
  --navy: #282c68;
  --navy-rgb: 40, 44, 104;
  --gold: #f0bb1b;
  --gold-rgb: 240, 187, 27;
  --white: #FFFFFF;
  --bg-neutral: #F4F7FA;
  --text-dark: #1E1E2E;
  --text-slate: #6B7C93;
  --overlay-dark: rgba(40, 44, 104, 0.75);
  
  /* Typography Scale */
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  
  --fs-hero: clamp(3rem, 6vw + 1rem, 4.5rem); /* 48px to 72px */
  --fs-h1: clamp(2.5rem, 4vw + 1rem, 3.5rem);   /* 40px to 56px */
  --fs-h2: clamp(2rem, 3vw + 0.8rem, 2.6rem);   /* 32px to 42px */
  --fs-h3: clamp(1.4rem, 2vw + 0.5rem, 1.75rem); /* 22px to 28px */
  --fs-body: 1.0625rem;                         /* 17px */
  --fs-caption: 0.875rem;                       /* 14px */
  
  /* Spacing System */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 8rem;

  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  --transition-magnetic: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* -----------------------------------------
   02. RESET & BASE ELEMENTS
   ----------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-neutral);
  color: var(--text-dark);
  font-family: var(--font-body);
  line-height: 1.6;
}

body {
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

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

ul {
  list-style: none;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--navy);
}
::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: #B0903B;
}

/* Utility Classes */
.container {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.text-gold { color: var(--gold); }
.text-white { color: var(--white); }
.bg-navy { background-color: var(--navy); }
.bg-dark { background-color: var(--text-dark); }

/* Cinematic Section Headers */
.section-meta {
  font-family: var(--font-heading);
  font-size: var(--fs-caption);
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--gold);
  margin-bottom: var(--space-sm);
  display: block;
  font-weight: 600;
}

.section-title {
  font-size: var(--fs-h2);
  margin-bottom: var(--space-md);
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 40px;
  height: 3px;
  background-color: var(--gold);
}

/* Premium Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.2rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 1px;
  border-radius: 4px;
  transition: var(--transition-magnetic);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background-color: var(--gold);
  color: var(--navy);
  border: 1px solid var(--gold);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background-color: var(--white);
  transition: var(--transition-magnetic);
  z-index: -1;
}

.btn-primary:hover::before {
  left: 0;
}

.btn-primary:hover {
  color: var(--navy);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  transform: translateY(-3px);
}

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

.btn-secondary:hover {
  border-color: var(--white);
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
}

/* -----------------------------------------
   03. STICKY HEADER & NAVIGATION
   ----------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 0;
  transition: var(--transition-smooth);
}

/* Scroll State Header */
.site-header.scrolled {
  background-color: rgba(40, 44, 104, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.logo a {
  display: flex;
  align-items: center;
}

.custom-logo {
  max-height: 96px;
  width: auto;
  display: block;
  transition: var(--transition-smooth);
}

.site-header.scrolled .custom-logo {
  max-height: 76px;
}

.footer-logo {
  max-height: 104px;
  width: auto;
  display: block;
}

.main-navigation ul {
  display: flex;
  gap: var(--space-md);
}

.main-navigation a {
  color: rgba(255, 255, 255, 0.8);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  position: relative;
  padding: 0.5rem 0;
}

.main-navigation a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: var(--gold);
  transition: var(--transition-smooth);
}

.main-navigation a:hover,
.main-navigation li.current-menu-item a {
  color: var(--white);
}

.main-navigation a:hover::after,
.main-navigation li.current-menu-item a::after {
  width: 100%;
}

/* Hamburger mobile menu button */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
  width: 30px;
  height: 20px;
  position: relative;
}

.mobile-nav-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--white);
  position: absolute;
  left: 0;
  transition: var(--transition-smooth);
}

.mobile-nav-toggle span:nth-child(1) { top: 0; }
.mobile-nav-toggle span:nth-child(2) { top: 8px; }
.mobile-nav-toggle span:nth-child(3) { top: 16px; }

.mobile-nav-toggle.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.mobile-nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.mobile-nav-toggle.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* -----------------------------------------
   04. SECTION 1 — SCROLL HERO EXPERIENCE
   ----------------------------------------- */
.hero-wrapper {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background-color: var(--navy);
  display: flex;
  align-items: center;
  z-index: 1;
}

/* Slideshow Backdrop or Video overlay */
.hero-media-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.hero-video-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
  filter: saturate(1.1) contrast(1.05);
}

.hero-media-slides {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.4;
  z-index: -1;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.1);
  transition: opacity 1.8s ease-in-out, transform 8s linear;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 70% 30%, rgba(40, 44, 104, 0.4) 0%, var(--navy) 85%);
  z-index: -1;
}

.hero-content {
  color: var(--white);
  max-width: 820px;
  position: relative;
  z-index: 10;
  margin-top: 50px;
  opacity: 1;
  transition: var(--transition-smooth);
}

/* Scroll-based fade out/in helper */
.hero-content.fade-out {
  opacity: 0;
  transform: translateY(-40px);
}

.hero-headline {
  font-size: var(--fs-hero);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: var(--space-sm);
  background: linear-gradient(135deg, var(--white) 30%, rgba(255, 255, 255, 0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: slideUpFade 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-desc {
  font-size: 1.25rem;
  color: rgba(244, 247, 250, 0.85);
  margin-bottom: var(--space-md);
  max-width: 650px;
  animation: slideUpFade 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-actions {
  display: flex;
  gap: var(--space-sm);
  animation: slideUpFade 1.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Scroll indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--white);
  font-family: var(--font-heading);
  font-size: var(--fs-caption);
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.7;
  transition: var(--transition-smooth);
}

.hero-scroll-indicator:hover {
  opacity: 1;
}

.scroll-mouse {
  width: 24px;
  height: 40px;
  border: 2px solid var(--white);
  border-radius: 12px;
  margin-top: 8px;
  position: relative;
}

.scroll-wheel {
  width: 4px;
  height: 8px;
  background-color: var(--gold);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheelAnim 1.6s infinite ease-in-out;
}

/* -----------------------------------------
   05. SECTION 2 — TRUST STRIP
   ----------------------------------------- */
.trust-strip {
  background-color: var(--navy);
  padding: var(--space-md) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  position: relative;
  z-index: 10;
}

.trust-wrapper {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.trust-title {
  font-family: var(--font-heading);
  font-size: var(--fs-caption);
  text-transform: uppercase;
  color: var(--gold);
  letter-spacing: 2px;
  white-space: nowrap;
  font-weight: 700;
  border-right: 2px solid rgba(240, 187, 27, 0.3);
  padding-right: var(--space-md);
}

/* Infinity Ticker */
.ticker-container {
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
}

.ticker-track {
  display: inline-flex;
  gap: var(--space-lg);
  animation: tickerAnim 35s linear infinite;
}

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

.logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition-smooth);
  padding: 5px 15px;
  border-radius: 4px;
}

.logo-item:hover {
  color: var(--white);
  background-color: rgba(255, 255, 255, 0.05);
  transform: scale(1.05);
}

.logo-item.active-collaboration {
  color: var(--gold);
  border-bottom: 2px solid var(--gold);
}

/* -----------------------------------------
   06. SECTION 3 — WHAT WE DO CARD SYSTEM
   ----------------------------------------- */
.what-we-do {
  padding: var(--space-lg) 0;
  background-color: var(--bg-neutral);
  position: relative;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

/* Interactive 3D Flip Cards */
.service-card-wrapper {
  perspective: 1000px;
  height: 420px;
  cursor: pointer;
}

.service-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-style: preserve-3d;
}

.service-card-wrapper:hover .service-card-inner {
  transform: rotateY(180deg);
}

.service-card-front, .service-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--space-md);
  box-shadow: 0 10px 30px rgba(40, 44, 104, 0.05);
  overflow: hidden;
}

/* Front Face */
.service-card-front {
  background-color: var(--white);
  color: var(--text-dark);
  border-bottom: 4px solid var(--gold);
}

.service-icon-box {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: rgba(240, 187, 27, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: var(--space-sm);
  transition: var(--transition-smooth);
}

.service-card-wrapper:hover .service-icon-box {
  transform: scale(1.1) rotate(15deg);
}

.service-front-content {
  text-align: left;
}

.service-title {
  font-size: var(--fs-h3);
  color: var(--navy);
  margin-bottom: var(--space-xs);
}

.service-statement {
  font-size: 0.95rem;
  color: var(--text-slate);
  line-height: 1.4;
}

.service-hint {
  font-family: var(--font-heading);
  font-size: var(--fs-caption);
  color: var(--gold);
  font-weight: 600;
  text-align: right;
  letter-spacing: 1px;
}

/* Back Face */
.service-card-back {
  background-color: var(--navy);
  color: var(--white);
  transform: rotateY(180deg);
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-card-back::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(240, 187, 27, 0.15) 0%, transparent 80%);
  z-index: 1;
}

.service-back-content {
  position: relative;
  z-index: 2;
  padding: var(--space-sm);
}

.service-back-title {
  color: var(--gold);
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
}

.service-back-desc {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--space-md);
  line-height: 1.5;
}

.service-features-list li {
  font-size: 0.9rem;
  margin-bottom: 6px;
  position: relative;
  padding-left: 20px;
}

.service-features-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: bold;
}

/* -----------------------------------------
   07. SECTION 4 — IMPACT IN MOTION (MAP)
   ----------------------------------------- */
.impact-in-motion {
  padding: var(--space-lg) 0;
  background-color: var(--navy);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.impact-in-motion::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(240, 187, 27, 0.05) 0%, transparent 70%);
  z-index: 0;
}

.impact-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-lg);
  align-items: center;
  position: relative;
  z-index: 2;
}

/* Interactive SVG Map styling */
.map-container {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.uganda-map-svg,
.uganda-map-image {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 15px 35px rgba(0,0,0,0.5));
  user-select: none;
  pointer-events: none;
}

.map-district {
  fill: #14286F;
  stroke: var(--gold);
  stroke-width: 1.5px;
  vector-effect: non-scaling-stroke;
  transition: var(--transition-smooth);
}

.map-district:hover {
  fill: #1D3AA1;
  stroke: var(--white);
  stroke-width: 2px;
  cursor: pointer;
}

.map-district.active {
  fill: rgba(240, 187, 27, 0.25);
  stroke: var(--white);
  stroke-width: 2px;
}

/* Pin Hotspots styling */
.map-pin {
  position: absolute;
  cursor: pointer;
  transform: translate(-50%, -50%);
  z-index: 10;
}

.pin-dot {
  width: 14px;
  height: 14px;
  background-color: var(--navy);
  border-radius: 50%;
  border: 2px solid var(--white);
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.pin-ripple {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 32px;
  height: 32px;
  border: 2px solid var(--navy);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: mapRipple 1.8s infinite ease-out;
  pointer-events: none;
}

/* Map Popups */
.map-popup-card {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  background: rgba(11, 15, 25, 0.95); /* Elegant S4P dark navy background */
  border: 1.5px solid var(--gold); /* Stunning glowing gold border */
  color: var(--white);
  padding: 16px 20px;
  border-radius: 10px;
  min-width: 260px;
  max-width: 320px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  gap: 10px; /* Spacious separation to fix squishing */
}

.map-popup-card.show {
  opacity: 1;
  transform: translateX(-50%) translateY(-18px);
}

.map-popup-card::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 8px;
  border-style: solid;
  border-color: rgba(11, 15, 25, 0.95) transparent transparent transparent;
}

.popup-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gold); /* Gold color for the title */
  margin: 0;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  border-bottom: 1px solid rgba(240, 187, 27, 0.2); /* Beautiful divider line */
  padding-bottom: 6px;
}

.popup-metric {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 400;
  color: #e2e8f0; /* Soft slate/off-white for readable, spacious description */
  line-height: 1.6; /* Spacious line-height to avoid any text-squishing */
  margin: 0;
}

/* Metrics Sidebar */
.metrics-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.metric-card {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  transition: var(--transition-smooth);
  position: relative;
}

.metric-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background-color: var(--gold);
  transition: var(--transition-smooth);
}

.metric-card:hover {
  background-color: rgba(255, 255, 255, 0.06);
  transform: translateX(8px);
}

.metric-card:hover::before {
  height: 100%;
}

.metric-number-wrapper {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  min-width: 130px;
}

.metric-details h4 {
  font-size: 1.15rem;
  color: var(--white);
  margin-bottom: 4px;
}

.metric-details p {
  font-size: 0.9rem;
  color: var(--text-slate);
}

/* -----------------------------------------
   08. SECTION 5 — FEATURED CAMPAIGNS (CASE STUDIES)
   ----------------------------------------- */
.featured-campaigns {
  padding: var(--space-lg) 0;
  background-color: var(--bg-neutral);
  overflow: hidden;
}

.campaigns-slider-container {
  margin-top: var(--space-lg);
  position: relative;
}

.campaign-slider-track {
  display: flex;
  gap: var(--space-md);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 25px;
  scrollbar-width: thin;
}

.campaign-card {
  flex: 0 0 450px;
  scroll-snap-align: start;
  background-color: var(--white);
  border-radius: 8px;
  box-shadow: 0 15px 35px rgba(40, 44, 104, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.campaign-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 45px rgba(40, 44, 104, 0.1);
}

.campaign-media {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.campaign-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.campaign-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: var(--gold);
  color: var(--navy);
  padding: 6px 12px;
  font-family: var(--font-heading);
  font-size: var(--fs-caption);
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.campaign-card-content {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 15px;
  flex-grow: 1;
}

.campaign-partner {
  font-family: var(--font-heading);
  font-size: var(--fs-caption);
  color: var(--text-slate);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: -5px;
}

.campaign-card-title {
  font-size: 1.45rem;
  color: var(--navy);
}

.campaign-challenge-box {
  background-color: var(--bg-neutral);
  padding: 12px;
  border-left: 3px solid var(--navy);
  border-radius: 0 4px 4px 0;
  font-size: 0.9rem;
}

.campaign-challenge-box strong {
  display: block;
  color: var(--navy);
  margin-bottom: 4px;
}

.campaign-results-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding-top: var(--space-sm);
  margin-top: auto;
}

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

.result-val {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--gold);
}

.result-lbl {
  font-size: 0.8rem;
  color: var(--text-slate);
  text-transform: uppercase;
}

/* -----------------------------------------
   09. SECTION 6 — HUMAN STORIES
   ----------------------------------------- */
.human-stories {
  padding: var(--space-lg) 0;
  background-color: var(--white);
}

.stories-editorial-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-lg);
  align-items: center;
  margin-top: var(--space-lg);
}

.story-interactive-frame {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 25px 55px rgba(40, 44, 104, 0.15);
  height: 480px;
}

.story-portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.05) saturate(0.9);
}

.story-gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(40, 44, 104, 0.95) 0%, rgba(40, 44, 104, 0.3) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-md);
  color: var(--white);
}

.video-play-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px rgba(240, 187, 27, 0.5);
  cursor: pointer;
  transition: var(--transition-magnetic);
}

.video-play-indicator::after {
  content: '';
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent var(--navy);
  margin-left: 5px;
}

.story-interactive-frame:hover .video-play-indicator {
  transform: translate(-50%, -50%) scale(1.1);
  background-color: var(--white);
}

/* Premium Video Modal Popup */
.video-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(14, 16, 47, 0.95);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.video-modal-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.video-modal-container {
  width: 90%;
  max-width: 960px;
  position: relative;
  transform: translateY(30px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.video-modal-overlay.show .video-modal-container {
  transform: translateY(0);
}

.video-modal-close {
  position: absolute;
  top: -45px;
  right: 0;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  transition: color var(--transition-smooth), transform var(--transition-smooth);
}

.video-modal-close:hover {
  color: var(--gold);
  transform: rotate(90deg);
}

.video-modal-body {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.video-modal-body iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.story-quote-card {
  padding: var(--space-md);
  border-radius: 8px;
  background-color: var(--bg-neutral);
  position: relative;
}

.story-quote-card::before {
  content: '“';
  position: absolute;
  top: -20px;
  left: 20px;
  font-family: Georgia, serif;
  font-size: 8rem;
  color: rgba(240, 187, 27, 0.12);
  line-height: 1;
}

.story-quote-text {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  line-height: 1.5;
  color: var(--navy);
  margin-bottom: var(--space-sm);
  font-style: italic;
  position: relative;
  z-index: 2;
}

.story-author-details {
  display: flex;
  align-items: center;
  gap: 15px;
}

.author-pic {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
}

.author-info h5 {
  font-size: 1.05rem;
  color: var(--navy);
}

.author-info p {
  font-size: 0.85rem;
  color: var(--text-slate);
}

/* -----------------------------------------
   10. SECTION 7 — LEARNING & THOUGHT LEADERSHIP
   ----------------------------------------- */
.insights-learning {
  padding: var(--space-lg) 0;
  background-color: var(--bg-neutral);
}

.insights-magazine-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.featured-article-card {
  background-color: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(40, 44, 104, 0.03);
  display: flex;
  flex-direction: column;
}

.featured-article-img {
  height: 380px;
  width: 100%;
  object-fit: cover;
}

.article-content {
  padding: var(--space-md);
}

.article-meta {
  display: flex;
  gap: 15px;
  font-size: 0.85rem;
  color: var(--text-slate);
  margin-bottom: var(--space-xs);
}

.article-tag {
  color: var(--gold);
  font-weight: 700;
  text-transform: uppercase;
}

.featured-article-title {
  font-size: 1.85rem;
  color: var(--navy);
  margin-bottom: var(--space-sm);
}

.article-excerpt {
  font-size: 0.98rem;
  color: var(--text-slate);
  margin-bottom: var(--space-md);
}

.insights-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.compact-article-item {
  display: flex;
  gap: var(--space-sm);
  background-color: var(--white);
  padding: var(--space-sm);
  border-radius: 6px;
  transition: var(--transition-smooth);
}

.compact-article-item:hover {
  transform: translateX(5px);
  box-shadow: 0 10px 25px rgba(40, 44, 104, 0.05);
}

.compact-img {
  width: 120px;
  height: 120px;
  border-radius: 4px;
  object-fit: cover;
}

.compact-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.compact-title {
  font-size: 1.15rem;
  color: var(--navy);
  line-height: 1.3;
  margin-top: 4px;
}

/* -----------------------------------------
   11. SECTION 8 — FINAL CONVERSION SECTION
   ----------------------------------------- */
.final-conversion {
  padding: var(--space-xl) 0;
  background-color: var(--navy);
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.final-conversion::before {
  content: '';
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  background: radial-gradient(circle at center, rgba(240, 187, 27, 0.08) 0%, transparent 60%);
  z-index: 0;
}

.conversion-box {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.conversion-title {
  font-size: clamp(2.5rem, 5vw + 1rem, 4rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: var(--space-md);
  line-height: 1.1;
}

.conversion-cta-group {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

/* -----------------------------------------
   12. FOOTER LAYOUT
   ----------------------------------------- */
.site-footer {
  background-color: #081131;
  color: var(--white);
  padding: var(--space-lg) 0 var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.footer-brand h3 {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
}

.footer-brand p {
  color: var(--text-slate);
  font-size: 0.95rem;
  margin-bottom: var(--space-md);
  max-width: 320px;
}

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

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.social-icon:hover {
  background-color: var(--gold);
  color: var(--navy);
  transform: translateY(-3px);
}

.footer-links h4, .footer-contact h4 {
  color: var(--gold);
  font-size: 1.15rem;
  margin-bottom: var(--space-sm);
  font-family: var(--font-heading);
}

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

.footer-links-list a {
  color: var(--text-slate);
  font-size: 0.95rem;
}

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

.footer-contact p {
  color: var(--text-slate);
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-slate);
}

/* -----------------------------------------
   13. ANIMATIONS ENGINE
   ----------------------------------------- */
@keyframes slideUpFade {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scrollWheelAnim {
  0%, 100% {
    opacity: 0.3;
    transform: translate(-50%, 0);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, 12px);
  }
}

@keyframes tickerAnim {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

@keyframes mapRipple {
  0% {
    width: 12px;
    height: 12px;
    opacity: 1;
  }
  100% {
    width: 50px;
    height: 50px;
    opacity: 0;
  }
}

/* Intersection Observer Reveal on Scroll classes */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* -----------------------------------------
   14. MOBILE RESPONSIVENESS
   ----------------------------------------- */
@media (max-width: 1024px) {
  :root {
    --fs-hero: 3.2rem;
    --fs-h1: 2.8rem;
    --fs-h2: 2.2rem;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .impact-layout,
  .stories-editorial-grid,
  .insights-magazine-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --fs-hero: 2.5rem;
    --fs-h1: 2.2rem;
    --fs-h2: 1.85rem;
  }

  .site-header {
    padding: 1rem 0;
  }

  .mobile-nav-toggle {
    display: block;
  }

  .main-navigation {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background-color: var(--navy);
    box-shadow: -10px 0 30px rgba(0,0,0,0.25);
    z-index: 1050;
    transition: var(--transition-smooth);
    padding: 100px var(--space-md) var(--space-md);
  }

  .main-navigation.open {
    right: 0;
  }

  .main-navigation ul {
    flex-direction: column;
    gap: var(--space-md);
  }

  .main-navigation a {
    font-size: 1.25rem;
    display: block;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .campaign-card {
    flex: 0 0 310px;
  }

  .conversion-cta-group, .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .btn {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }
}

/* =========================================
   10. SINGLE POST STYLING (PREMIUM VIEW)
   ========================================= */
.single-post-hero {
  padding: 180px 0 80px 0;
  background-size: cover;
  background-position: center;
  position: relative;
  text-align: left;
}

.hero-container-single {
  max-width: 800px;
  margin: 0 auto;
}

.single-meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-slate);
  font-size: 0.9rem;
  margin-bottom: var(--space-sm);
}

.back-to-insights {
  color: var(--gold);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.back-to-insights:hover {
  text-shadow: 0 0 10px rgba(240, 187, 27, 0.4);
}

.single-tag {
  color: var(--white);
  font-weight: 600;
}

.single-tag a {
  color: var(--gold);
  font-weight: 600;
  text-decoration: none;
}

.single-title {
  font-family: var(--font-heading);
  color: var(--white);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: var(--space-sm);
}

.single-author {
  color: var(--text-slate);
  font-style: italic;
  font-size: 1.1rem;
}

.single-post-content {
  padding: var(--space-xl) 0;
  background-color: var(--bg-neutral);
}

.single-content-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-lg);
  max-width: 1100px;
}

.article-body-content {
  color: var(--text-dark);
  font-family: var(--font-body);
  font-size: 1.15rem;
  line-height: 1.8;
}

.article-body-content p {
  margin-bottom: var(--space-md);
}

.article-body-content h1,
.article-body-content h2,
.article-body-content h3,
.article-body-content h4,
.article-body-content h5,
.article-body-content h6 {
  font-family: var(--font-heading);
  color: var(--navy);
  margin-top: 2rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.article-body-content h1 { font-size: 2.2rem; }
.article-body-content h2 { font-size: 1.8rem; }
.article-body-content h3 { font-size: 1.5rem; }
.article-body-content h4 { font-size: 1.25rem; }

.article-body-content a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: var(--transition-smooth);
}

.article-body-content a:hover {
  color: var(--gold);
  text-decoration-color: var(--navy);
}

/* Bullet Lists Support */
.article-body-content ul {
  list-style-type: disc;
  padding-left: 2rem;
  margin-bottom: var(--space-md);
}

.article-body-content ul li {
  margin-bottom: 0.5rem;
}

/* Numbered Lists Support */
.article-body-content ol {
  list-style-type: decimal;
  padding-left: 2rem;
  margin-bottom: var(--space-md);
}

.article-body-content ol li {
  margin-bottom: 0.5rem;
}

/* Blockquote Support */
.article-body-content blockquote {
  margin: var(--space-md) 0;
  padding: var(--space-sm) var(--space-md);
  border-left: 4px solid var(--gold);
  background-color: rgba(40, 44, 104, 0.03);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--navy);
}

.article-body-content blockquote p {
  margin-bottom: 0;
  font-size: 1.25rem;
  line-height: 1.6;
}

/* Images & Figures Support */
.article-body-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  margin: var(--space-sm) 0;
}

.article-body-content figure {
  margin: var(--space-md) auto;
  text-align: center;
  max-width: 100%;
}

.article-body-content figure img {
  margin: 0;
}

.article-body-content figcaption {
  font-size: 0.85rem;
  color: var(--text-slate);
  margin-top: var(--space-xs);
  font-style: italic;
}

/* Tables Support */
.article-body-content table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-md) 0;
  font-size: 1rem;
}

.article-body-content th,
.article-body-content td {
  padding: 10px 15px;
  border: 1px solid rgba(40, 44, 104, 0.1);
  text-align: left;
}

.article-body-content th {
  background-color: rgba(40, 44, 104, 0.05);
  color: var(--navy);
  font-weight: bold;
}

.article-body-content tr:nth-child(even) {
  background-color: rgba(40, 44, 104, 0.02);
}

.single-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.sidebar-box {
  background-color: var(--white);
  border: 1px solid rgba(40, 44, 104, 0.08);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.sidebar-box h4 {
  font-family: var(--font-heading);
  color: var(--navy);
  margin-bottom: var(--space-xs);
  border-bottom: 2px solid var(--gold);
  display: inline-block;
  font-size: 1.1rem;
}

.sidebar-box p {
  font-size: 0.95rem;
  color: var(--text-dark);
  margin-bottom: var(--space-sm);
  line-height: 1.5;
}

.share-links {
  display: flex;
  gap: var(--space-xs);
  margin-top: var(--space-xs);
}

.share-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: bold;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.share-icon:hover {
  background-color: var(--gold);
  color: var(--navy);
  transform: translateY(-3px);
}

.mt-md {
  margin-top: var(--space-md);
}

/* =========================================
   11. FEATURED IMAGE SLIDESHOW STYLING
   ========================================= */
.featured-slideshow-container {
  height: 380px;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.featured-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  z-index: 1;
}

.featured-slide.active {
  opacity: 1;
  z-index: 2;
}

@media (max-width: 768px) {
  .single-title {
    font-size: 2.2rem;
  }
  .single-content-container {
    grid-template-columns: 1fr;
  }
}
