﻿/* === 1. VARIABLES & BASE === */
:root {
    --brand-green: #004100;
    --brand-gold: #BB933D;
    --brand-gold-hover: #a07f34;
    --footer-panel-bg: #EBEBE5;
    --footer-panel-active-bg: #C9D3BA;
    --text-dark: #212121;
    --text-mid: #424242;
    --white: #ffffff;
}

/* === 2. GLOBAL RESETS & TYPOGRAPHY === */
* {
    box-sizing: border-box;
}

html {
    font-size: 14px;
}

body {
    margin: 0;
    color: var(--text-dark);
    background: #ffffff;
    font-family: Calibri, Roboto, Arial, -apple-system, BlinkMacSystemFont, "Segoe UI",  "Helvetica Neue", sans-serif;
    line-height: 1.6;
}

/* Resource link styling */
.resource-link {
  display: inline-block;
  padding: 0.5em 1em;
  margin: 0.3em 0;
  border-radius: 4px;
  color: var(--brand-gold);
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
}
.resource-link:hover {
  color: var(--brand-gold-hover);
}
.resource-section {
  margin-bottom: 2em;
}
.resource-section h2 {
  border-bottom: 2px solid #ddd;
  padding-bottom: 0.3em;
  margin-bottom: 0.8em;
}

/* Reference link styling */
.reference {
  display: inline-block;
  /* font-size: 0.8em; */
  padding: 0.2em 1em;
  margin: 0.2em 0;
  border-radius: 4px;
  color: var(--brand-gold);
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
}
.reference:hover {
  color: var(--brand-gold-hover);
}
.reference-ol {
  font-size: 0.8em;
  color: var(--brand-gold);
}

/* === 3. LAYOUT CONTAINERS === */
.wrapper {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

.main {
    flex: 1 0 auto;
    padding: 1.5rem 1rem;
}


/* === 4. HERO SYSTEM === */
.hero {
  position: relative;
  width: 100%;
  height: 60vh;                 /* responsive height band */
  max-height: 300px;            /* cap height */
  min-height: 280px;            /* ensure visibility on small screens */
  background-size: cover;       /* scale image without distortion */
  background-repeat: no-repeat;
  background-position: center center; /* default focal point */
  display: flex;
  align-items: center;          /* vertical centering for overlay */
}

/* Overlay container */
.hero-overlay {
  position: relative;           /* sits inside hero flexbox */
  color: #fff;
  padding: 1rem 2rem;
  background: rgba(0,0,0,0.6);  /* readability background */
  border-radius: 4px;
  max-width: 610px;
}

/* Keyframes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Staggered children */
.hero-overlay h1 {
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.3s;
}

.hero-overlay p {
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.6s;
}

.hero-overlay .hero-cta {
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.9s;
}

/* Centered overlay variant */
.hero-overlay--center {
  margin: 0 auto;
  text-align: center;
}

/* Left-center (default we had) */
.hero-overlay--left {
  align-self: center;   /* vertical center */
  margin-left: clamp(1rem, 6vw, 4rem);
  text-align: left;
}

/* Left-top */
.hero-overlay--left-top {
  align-self: flex-start; /* top of hero */
  margin-top: 2rem;
  margin-left: clamp(1rem, 6vw, 4rem);
  text-align: left;
}

/* Left-bottom */
.hero-overlay--left-bottom {
  align-self: flex-end; 
  margin-bottom: 2rem;
  margin-left: clamp(1rem, 6vw, 4rem);
  text-align: left;
} 

/* Right-top */
.hero-overlay--right-top {
  align-self: flex-start;
  margin-top: 2rem;
  margin-right: clamp(1rem, 6vw, 4rem);
  margin-left: auto;
  text-align: right;
}

/* Right-bottom */
.hero-overlay--right-bottom {
  align-self: flex-end;
  margin-bottom: 2rem;
  margin-right: clamp(1rem, 6vw, 4rem);
  margin-left: auto;
  text-align: right;
}

/* Typography */
.hero-overlay h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
}

.hero-overlay p {
  margin: 0 0 1rem;
  font-size: clamp(1rem, 2vw, 1.25rem);
}

/* CTA button */
.hero-cta {
  display: inline-block;
  margin-top: 0.25rem;
  padding: 0.5rem 1rem;
  background: #fff;
  color: #333;
  text-decoration: none;
  border-radius: 3px;
  transition: background 0.2s ease, color 0.2s ease;
}

.hero-cta:hover {
  background: #333;
  color: #fff;
}

/* === 5. HEADER & NAVIGATION === */

/* ---------- Header ---------- */
.site-header {
    background: var(--brand-green);
    color: var(--white);
    position: relative;
    z-index: 2000;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem 1rem;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto; /* row 1: primary nav aligned with top half of logo; row 2: secondary nav */
    column-gap: 1rem;
    align-items: start;
}

/* Logo block */
.brand {
    grid-column: 1;
    grid-row: 1 / span 2; /* spans both rows (logo height area) */
    display: flex;
    align-items: flex-start; /* top alignment */
}

.brand img {
    height: 72px; /* desktop default, responsive below */
    width: auto;
    max-width: 70vw; /* never more than 70% of screen width */
}

/* ---------- Primary nav (top right) ---------- */
.primary-nav {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start; /* aligns with top half of the logo height */
    gap: 1rem;
    position: relative;
}

/* Menu links */
.nav-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.nav-links a {
    color: var(--brand-gold);
    text-decoration: none;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
}

.nav-links a:hover,
.nav-links a:focus {
    color: var(--brand-gold-hover);
}

/* Optional search (non-required yet) */
.nav-search {
    display: none; /* set to flex if/when enabled */
    align-items: center;
    margin-left: 0.5rem;
}

.nav-search input[type="search"] {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.25);
    color: var(--white);
    padding: 0.35rem 0.5rem;
    border-radius: 4px;
}

.nav-search input::placeholder {
    color: rgba(255,255,255,0.8);
}

/* Hamburger */
.hamburger {
    display: none; /* shown on small screens */
    width: 40px;
    height: 32px;
    border: 1px solid rgba(187,147,61,0.6);
    border-radius: 4px;
    background: transparent;
    color: var(--brand-gold);
    cursor: pointer;
}

.hamburger:focus {
    outline: 2px solid rgba(255,255,255,0.35);
}

/* ---------- Secondary nav (hub-specific, white text) ---------- */
.secondary-nav {
    grid-column: 2;
    grid-row: 2;
    display: none; /* hidden on core pages; set to flex on hub pages */
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    padding-top: 0.25rem;
    /*border-top: 1px solid rgba(255,255,255,0.15);*/
}

.secondary-nav .label {
    color: var(--white);
    font-weight: 700;
}

.secondary-nav a {
    color: var(--white);
    text-decoration: none;
    padding: 0.25rem 0.4rem;
    border-radius: 4px;
}

.secondary-nav a:hover,
.secondary-nav a:focus {
    background: rgba(255,255,255,0.12);
}

.secondary-nav .hamburger {
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.6);
}


/* === 6. BUTTONS === */
.btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease;
  cursor: pointer;
}

.btn--green {
  background: var(--brand-green);
  color: var(--brand-gold);
}
.btn--green:hover {
  background: var(--brand-gold);
  color: var(--brand-green);
}

.btn--gold {
  background: var(--brand-gold);
  color: var(--brand-green);
}
.btn--gold:hover {
  background: var(--brand-gold-hover);
  color: var(--white);
}

/* ---------- Filter Buttons ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.filter-button {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  background: var(--white);
  border: 1px solid var(--brand-green);
  color: var(--brand-green);
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.filter-button:hover {
  background: var(--brand-gold-hover);
  color: var(--white);
  border-color: var(--brand-gold-hover);
}

.filter-button.active {
  background: var(--brand-gold);
  color: var(--white);
  border-color: var(--brand-gold);
}

/* === 7. CARDS (BASE) === */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--white);
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  padding: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 0.8rem;
  color: var(--text-dark);
}

.card p {
  font-size: 0.95rem;
  color: var(--text-mid);
}

/* === 8. CARDS (FILM, BOOK, MUSIC VARIANTS) === */

/* Unified Grid Layout */
.film-grid .grid,
.book-grid .grid,
.music-grid .grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 columns on desktop */
  gap: 2rem;
  align-items: stretch;       /* equal height rows */
  justify-content: start;     /* left-align cards */
  justify-items: start;
}

/* Unified Card Styling */
.film-grid .card,
.book-grid .card,
.music-grid .card {
  max-width: 320px;           /* cap card size */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  opacity: 0;                 /* fade-in default */
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.film-grid .card.visible,
.book-grid .card.visible,
.music-grid .card.visible {
  opacity: 1;
  transform: translateY(0);
}

.book-grid .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.book-grid .card-body, .film-grid .card-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.music-grid .card-body {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 0.5rem;
}

.streaming-options {
  align-self: end;
}

.book-grid .card-body .spacer, .film-grid .card .spacer {
  flex-grow: 1; /* pushes buttons down */
}

.film-grid .card a.btn:hover {
  box-shadow: 0 0 6px rgba(187, 147, 61, 0.6); /* soft gold glow */
  transform: translateY(-2px);
}

.film-grid .card a, .music-grid .card, .book-grid .card a {
  margin: 0.25rem 0;
}

/* Fade-in Animation */
.book-grid .card, .film-grid .card, .music-grid .card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.book-grid .card.visible, .film-grid .card.visible, .music-grid .card.visible {
  opacity: 1;
  transform: translateY(0);
}

/*
.card-top {
  flex: 0 0 auto;  /* pinned at top
}

.card-bottom {
  flex: 0 0 auto; /* streaming toggle always aligned 
}*/

.card-extra {
  margin-top: auto;            /* stick to bottom */
  padding-top: 0.75rem;        /* breathing space above */
  border-top: 1px solid var(--brand-gold);
}

.card-extra .btn {
  margin-top: 0.5rem;          /* spacing from divider */
}

/* === 9. GRIDS (FILM, BOOK, MUSIC, UNIFIED) === */
.film-grid .card img.media-portrait, .book-grid .card img.media-portrait, .music-grid .card img.media-square {
  width: 100%;
  height: auto;
  object-fit: fill;        /* show full poster */
  max-height: 480px;          /* consistent poster height */
  border-radius: 8px;
  background: #fff;
  /* padding: 4px; */
  /* border: 2px solid var(--brand-gold); */
  border: 1px solid #ddd;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Clamp synopses to 5 lines by default */
.card-body p.synopsis {
  display: -webkit-box;
  -webkit-line-clamp: 5;   /* show only 5 lines initially */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-body p.synopsis.expanded {
  -webkit-line-clamp: unset; /* show full text when expanded */
}

.read-more {
  display: inline-block;
  margin-top: 0.5rem;
  font-weight: 600;
  color: var(--brand-gold);
  cursor: pointer;
  transition: color 0.3s ease;
}

.read-more:hover {
  color: var(--brand-gold-hover);
}

/* === 10. MEDIA FRAMES & IMAGE UTILITIES === */
.media-image {
  width: 100%;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  border: 2px solid #eee;
}

.media-square { aspect-ratio: 1 / 1; }
/* .media-portrait { aspect-ratio: 3 / 4; } */
.media-portrait { aspect-ratio: 8 / 12; }
.media-landscape { aspect-ratio: 16 / 9; }

.media-image:hover {
  filter: brightness(1.05);
}

/* === 11. CONTENT BLOCKS (IMAGE + TEXT LAYOUTS) === */
/* ---------- Content ---------- */
.page-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.75rem;
    font-weight: 700;
}

.content {
    max-width: 1000px;
    margin: 0 auto;
}

/* Utility: visually hidden (for a11y labels) */
.visually-hidden {
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}

.philosophy {
  background: var(--footer-panel-bg); /* same as active hub footer */
  border-top: 4px solid var(--brand-gold);
  border-bottom: 4px solid var(--brand-gold);
  padding: 1rem 2rem;
  margin: 1rem 0;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border-radius: 8px;
}

.philosophy h2 {
  color: var(--brand-gold);
  font-size: 1.6rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.philosophy p {
  color: var(--text-mid);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 800px;
  margin: 0 auto 1rem auto;
}

/* Optional: remove margin from the last paragraph so spacing is neat */
.philosophy p:last-of-type {
  margin-bottom: 0;
}

.ethos-quote {
  font-style: italic;
  color: var(--brand-gold);
  font-size: 1.2rem;
  margin: 1rem 0;
  text-align: center;
}

.pull-quote {
  background: var(--footer-panel-bg);
  border-left: 4px solid var(--brand-gold);
  padding: 1rem 1.5rem;
  margin: 2rem auto;
  max-width: 700px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border-radius: 6px;
}

.pull-quote blockquote {
  font-size: 1.2rem;
  font-style: italic;
  color: var(--text-mid);
  margin: 0;
}

.icon-links {
  display: flex;
  justify-content: center;
  gap: 10px;
  min-height: 28px; /* reserve space for icons */
  align-items: flex-end; /* align icons to the bottom of this reserved space */
  margin-top: auto; /* ensures they sit at the bottom of the card */
}

.icon-links img {
  height: 20px;
  width: auto;
  transition: transform 0.2s ease;
}

.icon-links img:hover {
  transform: scale(1.1);
}

/* === 12. ACCORDIONS === */
.accordion-item {
  border-bottom: 1px solid var(--footer-panel-bg);
}

.accordion-header {
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  padding: 1rem;
  font-weight: bold;
  cursor: pointer;
  color: var(--brand-green);
  position: relative;
  transition: background 0.2s ease, color 0.2s ease;
}

.accordion-header:hover,
.accordion-header:focus {
  background: rgba(187, 147, 61, 0.1); /* subtle gold tint */
  color: var(--brand-gold);
}

/* Chevron indicator */
.accordion-header::after {
  content: "›";
  position: absolute;
  right: 1rem;
  font-size: 1.2rem;
  color: var(--brand-green);
  transition: transform 0.3s ease, color 0.3s ease;
}

.accordion-item.active .accordion-header::after {
  transform: rotate(90deg);
  color: var(--brand-gold);
}

/* Distinct content styling */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding: 0 1rem;
  background: #f9f9f9;
  border-left: 3px solid var(--brand-gold);
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  color: var(--text-mid);
  line-height: 1.6;
  transition: 
    max-height 0.5s cubic-bezier(0.25, 0.8, 0.25, 1),
    opacity 0.4s ease 0.2s,
    padding 0.3s ease;
}

.accordion-item.active .accordion-content {
  max-height: 1000px;
  opacity: 1;
  padding: 1rem 1rem 1rem 1.5rem;
}

/* Staggered fade for child elements */
.accordion-content > * {
  opacity: 0;
  transform: translateY(4px);
  animation: fadeInUp 0.4s ease forwards;
}

.accordion-item.active .accordion-content > * {
  animation-delay: calc(var(--child-index, 0) * 0.05s);
}

/* Keyframes */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Smooth fade */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === 13. FORMS === */

/* Form container and layout */
.contact-form {
  max-width: 820px;
  margin: 0 auto;
  padding: 28px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(20,20,20,0.06);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color: #222;
}

/* Field groups and spacing */
.contact-form .field-group {
  margin-bottom: 16px;
}

/* Two-column inline grid */
.contact-form .inline-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: start;
}
@media (max-width: 680px) {
  .contact-form .inline-grid { grid-template-columns: 1fr; }
}

/* Labels */
.contact-form label {
  display: block;
  font-size: 0.9rem;
  color: #444;
  margin-bottom: 6px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* Inputs and textarea */
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form input[type="url"],
.contact-form select,
.contact-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid #d7d7d7;
  border-radius: 6px;
  background: #fff;
  font-size: 1rem;
  color: #111;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.contact-form textarea { min-height: 120px; resize: vertical; }

/* Focus state */
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: #6aa6ff;
  box-shadow: 0 0 0 3px rgba(106,166,255,0.12);
}

/* Hint text */
.contact-form .hint {
  font-size: 0.88rem;
  color: #6b6b6b;
  margin-top: 6px;
}

/* NDA checkbox line */
.contact-form .checkbox-line {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 6px;
}
.contact-form .checkbox-line input[type="checkbox"] {
  margin-top: 4px;
  transform: translateY(-1px);
}

/* Submit button */
.contact-form button[type="submit"] {
  display: inline-block;
  width: 100%;
  padding: 12px 16px;
  background: var(--brand-green);
  color: var(--brand-gold);
  border: none;
  border-radius: 8px;
  font-size: 1.02rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .12s ease, transform .06s ease;
  margin-top: 8px;
}

.contact-form button[type="submit"]:hover {
  /* background: #095bd6; */
  color: var(--brand-gold-hover);
  transform: translateY(-1px);
}

/* Error state */
.error { border-color: #e05a4f !important; box-shadow: 0 0 0 3px rgba(224,90,79,0.08); }

/* Small visual polish for headings inside form */
.contact-form h3 {
  margin: 12px 0 8px;
  font-size: 1.05rem;
  color: #222;
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 8px;
}

/* === 14. PARTNER GRID === */

/* Key change: fixed column max width + left alignment */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 300px)); /* fixed max width columns */
  gap: 1.5rem;
  justify-content: start;     /* align tracks to the left */
  align-content: start;       /* prevent vertical centering */
  justify-items: start;       /* align items within tracks to the left */
  max-width: 100%;            /* let the grid fill the container */
  margin: 0;                  /* no auto centering needed */
}

/* Card stays capped and clean */
.partner-card {
  text-align: center;
  border: 1px solid #ddd;
  padding: 1rem;
  max-width: 300px;
  transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  background: #fff;
}

.partner-card img {
  margin-top: 0.2rem;
  max-width: 180px;
  height: auto;
  margin-bottom: 0.2rem;
}

.partner-card p {
  font-size: 0.9rem;
  color: #555;
}

.partner-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 6px 12px rgba(0,0,0,0.12);
}

.partner-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 15. SERVICES & CONSULTANCY BLOCKS */
/* Feature list for scannability */
.service-features {
  list-style: none;
  padding: 0;
  margin: 8px 0 0 0;
  display: grid;
  gap: 8px;
}
.service-features li {
  font-size: 0.95rem;
  color: var(--text-mid);
}
.service-features li strong { color: var(--text-dark); }

/* Case callout (evidence / experience) */
.case-callout {
  margin-top: 10px;
  padding: 10px 12px;
  background: var(--footer-panel-active-bg);
  /* border-bottom: 8px solid --brand-gold; */
  border-radius: 6px;
  color: #BB933D;
  font-size: 0.95rem;
}

/* Consultancy page specific */
.lede { font-size: 1.05rem; color: var(--text-mid); margin-bottom: 1rem; max-width: 900px; }

.consultancyservice-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
  margin-top: 1rem;
}
@media (min-width: 720px) { .consultancyservice-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .consultancyservice-grid { grid-template-columns: repeat(3, 1fr); } }

.consultancy-service { background: var(--white); border-radius: 10px; padding: 18px; box-shadow: 0 8px 22px rgba(0,0,0,0.04); display:flex; flex-direction:column; gap:12px; min-height:220px; }
.consultancy-service h2 { margin:0; font-size:1.05rem; color:var(--brand-green); }
.service-features { list-style:none; padding:0; margin:8px 0 0 0; display:grid; gap:8px; }
.case-callout { margin-top:10px; padding:10px 12px; background:linear-gradient(180deg,#f7fbff,#f3f8ff); border-left:4px solid #BB933D; border-radius:6px; color:#213244; font-size:0.95rem; }

.consultancy-block { margin-top:20px; padding:18px; background:var(--footer-panel-bg); border-radius:8px; box-shadow:0 4px 12px rgba(0,0,0,0.04); }
.consultancy-block.centered { text-align:center; max-width:1000px; margin-left:auto; margin-right:auto; }

/* .consultancyservices-grid { display:grid; grid-template-columns:1fr; gap:12px; }
@media (min-width:720px) { .consultancyservices-grid { grid-template-columns: 1fr 1fr; } } */

.consultancyservice-card { background:#fff; padding:14px; border-radius:8px; box-shadow:0 4px 12px rgba(0,0,0,0.06); }

.consultancy-cta { margin-top:28px; text-align:center; }
.consultancy-cta .btn--green { padding:10px 18px; border-radius:8px; font-weight:700; text-decoration:none; color:var(--brand-gold); background:var(--brand-green); }
.consultancy-cta .btn--green:hover { transform:translateY(-3px); box-shadow:0 8px 20px rgba(0,0,0,0.08); }
.consultancy-cta .cta-note { display:block; margin-top:10px; color:var(--text-mid); font-size:0.95rem; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.service-card {
  background: #f9f9f9;
  padding: 1.5rem;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
}

.services-mentorship, .services-values, .services-cta {
  margin-top: 3rem;
  text-align: center;
}

.services-cta .cta-button {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.6rem 1.2rem;
  background: #333;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.services-cta .cta-button:hover {
  background: #555;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}
.value-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.value-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.5rem;
  color: var(--brand-gold);
}

.consultancy-block {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--footer-panel-bg);
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.consultancy-block h2 {
  color: var(--brand-green);
  margin-bottom: 0.75rem;
}

.consultancy-block p {
  color: var(--text-mid);
  line-height: 1.6;
}

/* Centered variant */
.consultancy-block.centered {
  text-align: center;
}

.consultancy-block.centered h2 {
  margin-bottom: 1rem;
}

.consultancy-block.centered p {
  margin: 0.5rem auto;   /* keeps spacing between paragraphs */
  max-width: 700px;      /* optional: constrain width for readability */
}

.consultancy-block.spotlight.icon-left {
  background: var(--footer-panel-active-bg); 
  padding: 1.5rem;
  margin: 2rem 0;
}

.spotlight-inner {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.spotlight-icon {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 0.2rem; /* aligns icon with heading */
}

.spotlight-content h2 {
  margin-top: 0;
}

.spotlight-link {
  font-weight: 600;
  color: var(--brand-gold); 
  text-decoration: none;
}

.spotlight-link:hover {
  color: var(--brand-gold-hover);
}



/* 16. ADVOCACY BLOCKS */
.advocacy-block {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--footer-panel-bg);
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.advocacy-block h2 {
  color: var(--brand-green);
  margin-bottom: 0.75rem;
}
.advocacy-block p {
  color: var(--text-mid);
  line-height: 1.6;
}
.advocacy-cta {
  margin-top: 3rem;
  text-align: center;
}

/* Advocacy page core styles */
.advocacy-page { font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial; color:#1b1b1b; line-height:1.5; max-width:1100px; margin:0 auto; padding:48px 20px; }
.advocacy-page h1, .advocacy-page h2, .advocacy-page h3 { color:#0b2a3a; margin:0 0 12px 0; }
.advocacy-page h1 { font-size:clamp(28px,4.2vw,44px); font-weight:700; }
.advocacy-page h2 { font-size:clamp(20px,2.6vw,28px); font-weight:600; margin-top:28px; }
.advocacy-page h3 { font-size:16px; font-weight:600; margin-top:20px; }
.advocacy-page p { margin:0 0 14px 0; color:#263238; }
.advocacy-page ul { margin:0 0 14px 20px; }
.hero-lead { font-size:clamp(16px,2.2vw,20px); color:#16313f; margin-top:8px; }
.pull-quotes blockquote { margin:12px 0; padding:12px 16px; background:#f7fbff; border-left:4px solid #BB933D; color:#0b2a3a; border-radius:6px; }
.page-footer { margin-top:28px; padding-top:18px; border-top:1px solid rgba(11,42,58,0.04); color:#4a5a63; font-size:14px; }
hr { border:0; border-top:1px solid rgba(11,42,58,0.06); margin:28px 0; }

/* .btn { display:inline-block; padding:10px 16px; border-radius:6px; text-decoration:none; font-weight:600; } */

/* === 17. CAROUSELS (TALENT + HUB) === */
/* ---------- Talent Carousel ---------- */
.talent-carousel {
  position: relative;
  margin: 2rem 0;
  overflow: hidden;
  padding: 2rem 0;
  background: var(--footer-panel-bg); /* solid neutral band */
  border-top: 4px solid var(--brand-gold);
  border-bottom: 4px solid var(--brand-gold);
}

/* Gradient overlay behind cards */
.talent-carousel::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(187, 147, 61, 0.15), /* stronger gold tint */
    rgba(0, 0, 0, 0.05)
  );
  pointer-events: none;
  z-index: 0;
}

/* Remove the gold accent bar from carousel cards */
.talent-carousel .card::before {
  content: none;
}

.talent-carousel .carousel-track {
  position: relative;
  z-index: 1; /* keep cards above overlay */
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 1rem;
  padding: 1rem 0;
  transition: opacity 0.3s ease;
}

.talent-carousel .card {
  flex: 0 0 calc(25% - 1rem); 
  max-width: calc(25% - 1rem);
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  padding: 1rem;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.talent-carousel .card {
  display: flex;
  flex-direction: column;
}

.talent-carousel .card-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.talent-carousel .spacer {
  flex-grow: 1;
}

.talent-carousel .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.talent-carousel img {
  max-width: 100%;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.talent-carousel h3 {
  color: var(--brand-gold);
  margin: 0.5rem 0;
  font-size: 1.1rem;
}

.talent-carousel .card h3 {
  color: var(--brand-gold);
  margin-top: 0;   /* remove the bar effect */
  margin-bottom: 0.5rem; /* keep spacing below */
  font-size: 1.1rem;
}

.talent-carousel p {
  color: var(--text-mid);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.talent-carousel .links a {
  display: inline-block;
  margin: 0.25rem;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--brand-green);
  color: var(--brand-gold);
  border: none;
  padding: 0.6rem 0.8rem;
  font-size: 1.5rem;
  cursor: pointer;
  border-radius: 6px;
  z-index: 10;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.carousel-btn.prev {
  left: 0.5rem;
}

.carousel-btn.next {
  right: 0.5rem;
}

.carousel-btn:hover {
  background: var(--brand-gold);
  color: var(--brand-green);
}

.talent-carousel .carousel-btn.prev { left: 0.5rem; }
.talent-carousel .carousel-btn.next { right: 0.5rem; }

.hub-carousel {
  position: relative;
  margin: 2rem 0;
  overflow: hidden;
  padding: 2rem 0;
  background: var(--footer-panel-bg); /* solid neutral band */
  border-top: 4px solid var(--brand-gold);
  border-bottom: 4px solid var(--brand-gold);
}

.hub-carousel .carousel-track {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 1rem;
  padding: 1rem 0;
  scroll-behavior: smooth; /* keep smooth scrolling */
}

.hub-carousel .card {
  flex: 0 0 calc(25% - 1rem);
  max-width: calc(25% - 1rem);
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  padding: 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hub-carousel .card.clone,
.talent-carousel .card.clone {
  scroll-snap-align: none;
}

.hub-carousel .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.hub-carousel .card-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.hub-carousel .spacer {
  flex-grow: 1;
}

.hub-carousel h3 {
  color: var(--brand-gold);
  margin: 0.5rem 0;
  font-size: 1.1rem;
}

.hub-carousel p {
  color: var(--text-mid);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.hub-carousel .media-frame {
  width: 100%;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 0.75rem;
  background: #111;
}

.hub-carousel .media-frame--portrait {
  aspect-ratio: 2/3;
}

.hub-carousel .media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hub-carousel .media-frame--square {
  aspect-ratio: 2 / 3; /* match portrait */
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--footer-panel-bg);
}

.hub-carousel .media-frame--square img {
  width: 100%; /* or max-height: 80% */
  object-fit: contain;
}

.hub-carousel .icon-links {
  display: flex;
  justify-content: center;
  margin-top: 0.5rem;
}

.hub-carousel .icon-links .btn {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
}

.hub-carousel .carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--brand-green);
  color: var(--brand-gold);
  border: none;
  padding: 0.6rem 0.8rem;
  font-size: 1.5rem;
  cursor: pointer;
  border-radius: 6px;
  z-index: 10;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.hub-carousel .carousel-btn.prev { left: 0.5rem; }
.hub-carousel .carousel-btn.next { right: 0.5rem; }

.hub-carousel .carousel-btn:hover {
  background: var(--brand-gold);
  color: var(--brand-green);
}

/* === 18. CASE STUDY LAYOUTS */

/* Case study layout */
.case-hero { background: linear-gradient(90deg, rgba(11,108,255,0.06), rgba(255,245,230,0.03)); padding: 36px 18px; border-radius: 8px; margin-bottom: 18px; }
.case-hero .hero-inner { max-width: 1100px; margin: 0 auto; }
.case-hero h1 { margin: 0 0 8px 0; font-size: 28px; color: var(--text-dark); }
.hero-lead { margin: 0; color: var(--text-mid); font-size: 1.05rem; }

/* KPI strip */
.kpi-strip { display:flex; gap:12px; justify-content:space-between; max-width:1100px; margin: 12px auto 22px auto; }
.kpi { background: var(--white); padding:12px 14px; border-radius:8px; box-shadow:0 8px 20px rgba(0,0,0,0.04); flex:1; text-align:center; }
.kpi-value { font-size:1.25rem; font-weight:800; color:var(--brand-green); }
.kpi-label { font-size:0.92rem; color:var(--text-mid); margin-top:6px; }

/* Body layout */
.case-body { display:grid; grid-template-columns: 1fr 340px; gap:20px; max-width:1100px; margin: 0 auto 40px auto; }
.case-left h2 { margin-top:18px; color:var(--text-dark); }
.case-left p, .case-left ul { color:var(--text-mid); line-height:1.45; }
.case-left ul { padding-left:18px; }

/* Right column: uniform spacing between panels */
.case-right {
  display: flex;
  flex-direction: column;
  gap: 12px; /* uniform spacing between panels */
}

/* Right column cards (spacing now controlled by .case-right gap) */
.case-right .timeline-card,
.case-right .diagram-card,
.case-right .quote-card,
.case-right .cta-card,
.case-right .product-callout {
  background: var(--white);
  padding: 14px;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.04);
  margin-bottom: 0; /* removed to allow .case-right gap to control spacing */
  box-sizing: border-box;
}

/* Quote */
.quote-card blockquote { margin:0; font-style:italic; color:var(--text-dark); }
.quote-card cite { display:block; margin-top:8px; color:var(--text-mid); font-weight:700; }

/* CTA */
.cta-card h4 { margin:0 0 8px 0; color:var(--brand-green); }
.cta-card p { margin:0 0 12px 0; color:var(--text-mid); }

/* Robust defaults */
*, *::before, *::after { box-sizing: border-box; }

/* Ensure containers are centred consistently */
.case-hero .hero-inner,
.kpi-strip,
.case-body { margin-left: auto; margin-right: auto; padding-left: 18px; padding-right: 18px; }

/* KPI strip: allow wrapping and protect minimum card width */
.kpi-strip { display:flex; gap:12px; justify-content:space-between; flex-wrap:wrap; }
.kpi { flex:1 1 220px; min-width:200px; }

/* Scale hero headline and KPI values smoothly */
.case-hero h1 { font-size: clamp(20px, 2.2vw, 28px); }
.kpi-value { font-size: clamp(1.05rem, 1.6vw, 1.25rem); }

/* Focus styles for accessibility */
.btn--green:focus,
a:focus { outline: 3px solid rgba(11,108,255,0.14); outline-offset: 4px; }

/* Prevent long labels from overflowing */
.kpi-label, .kpi-value { word-break: break-word; }

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* Print-friendly adjustments */
@media print {
  .case-hero { background: none; box-shadow: none; }
  .kpi { box-shadow: none; border: 1px solid #eee; }
}

/* List alignment options
   Option A: Left-aligned lists (recommended for multi-line items)
   Option B: Centered lists (use only for short, single-line items)
*/

/* Option A — Left align list text (recommended) */
.case-left ul.left-align,
.case-left ol.left-align,
.why-list.left-align {
  text-align: left;
  padding-left: 1.1rem; /* consistent gap from left edge */
  margin-left: 0;
  list-style-position: outside;
}
.case-left ul.left-align li,
.case-left ol.left-align li,
.why-list.left-align li {
  margin-bottom: 0.6rem;
  line-height: 1.45;
}

/* Option B — Centered lists for short items only */
.case-left ul.center-align,
.case-left ol.center-align,
.why-list.center-align {
  text-align: center;
  list-style-position: inside;
  padding-left: 0;
  margin-left: 0;
}
.case-left ul.center-align li,
.case-left ol.center-align li,
.why-list.center-align li {
  display: block;
  margin-bottom: 0.5rem;
  line-height: 1.45;
}

/* Timeline list */
.timeline { list-style:none; padding:0; margin:0; color:var(--text-mid); }
.timeline li { margin-bottom:8px; font-size:0.95rem; }

/* Diagram */
.diagram { display:flex; gap:10px; }
.diagram-before, .diagram-after { flex:1; padding:10px; border-radius:6px; background:linear-gradient(180deg,#fff,#fbfbff); border:1px solid rgba(0,0,0,0.04); font-size:0.92rem; color:var(--text-mid); }


/* === 19. VALUES, METRICS, PILLARS === */
/* Pillar grid layout */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* always 2 per row */
  gap: 2rem;
  margin: 3rem 0;
}

/* Card styling */
.pillar-grid .card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pillar-grid .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

/* Typography */
.pillar-grid h3 {
  color: var(--brand-gold);
  margin-bottom: 0.75rem;
  font-size: 1.3rem;
}

.pillar-grid p {
  color: var(--text-mid);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Centered button */
.pillar-grid .btn {
  margin: 0 auto; /* centers horizontally */
  display: inline-block;
}

.impact-block {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.impact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.impact-card {
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 1rem;
}
.static-foundation {
  margin-top: 2rem;
  background: #fff8e6; /* subtle highlight for historic content */
  text-align: center;
}

.timeline {
  border-left: 3px solid var(--brand-gold);
  padding-left: 1rem;
}
.timeline-item {
  position: relative;  
  margin-bottom: 1rem;
}
.timeline-year {
  font-weight: 700;
  color: var(--brand-gold);
  margin-right: 0.5rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 0.4rem;
  width: 10px;
  height: 10px;
  background: var(--brand-gold);
  border-radius: 50%;
}

.metrics-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.metric-card {
  flex: 1 1 180px;
  max-width: 200px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;  
}
.metric-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}
.metric-number {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--brand-gold);
}
.metric-label {
  font-size: 0.95rem;
  color: var(--text-mid);
}

/* === 20. GLOSSARY SYSTEM === */
/* Glossary panel */
.glossary-trigger-inline {
  background: transparent;
  border: 1px solid var(--brand-green);
  color: var(--brand-green);
  padding: 6px 10px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  margin-left: 10px;
  font-size: 0.9rem;
}
.glossary-trigger-inline:hover { background: var(--brand-gold); color: var(--brand-green); }

.glossary-panel {
  display: none;
  max-width: 560px;
  background: var(--white);
  border: 1px solid #e6e6e6;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  padding: 14px;
  border-radius: 8px;
  margin: 18px auto 0 auto;
}
.glossary-panel h4 { margin: 0 0 8px 0; color: var(--brand-green); font-size: 1.05rem; }
.glossary-panel dl { margin: 0; }
.glossary-panel dt { font-weight: 700; margin-top: 10px; color: var(--text-dark); }
.glossary-panel dd { margin: 4px 0 0 0; color: var(--text-mid); font-size: 0.98rem; }

/* Visible state */
.glossary-panel[aria-hidden="false"] { display: block; }

/* Close button */
.glossary-close {
  margin-top: 12px;
  background: var(--brand-green);
  color: var(--brand-gold);
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
}

/* Popover glossary: base */
.glossary-pop-trigger {
  background: transparent;
  border: 1px solid var(--brand-green);
  color: var(--brand-green);
  padding: 6px 10px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.9rem;
  margin-left: 10px;
}
.glossary-pop-trigger:hover { background: var(--brand-gold); color: var(--brand-green); }

/* Popover: refined visual style, motion and accessibility */
/* Base adjustments */
.glossary-pop {
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 14px 36px rgba(18,24,32,0.12);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--text-mid);
  transition: opacity 180ms ease, transform 180ms ease;
  will-change: opacity, transform;
}

/* Heading and terms */
.glossary-pop h4 {
  margin: 0 0 8px 0;
  color: var(--brand-green);
  font-size: 1rem;
  font-weight: 700;
}
.glossary-pop dt {
  font-weight: 700;
  color: var(--text-dark);
  margin-top: 10px;
  font-size: 0.96rem;
}
.glossary-pop dd {
  margin: 4px 0 0 0;
  color: var(--text-mid);
  font-size: 0.95rem;
}

/* Arrow refinement */
.glossary-pop::before {
  top: -6px;
  left: 28px;
  width: 12px;
  height: 12px;
  transform: rotate(45deg);
  background: var(--white);
  border-left: 1px solid rgba(0,0,0,0.06);
  border-top: 1px solid rgba(0,0,0,0.06);
  box-shadow: -2px -2px 6px rgba(0,0,0,0.04);
}

/* Compact variant (short definitions) */
.glossary-pop.compact {
  max-width: 320px;
  padding: 10px 12px;
  font-size: 0.92rem;
}

/* Expanded variant (longer content) */
.glossary-pop.expanded {
  max-width: 560px;
  padding: 18px;
  font-size: 0.98rem;
}

/* Open animation */
.glossary-pop[aria-hidden="false"] {
  opacity: 1;
  transform: translateY(0);
}
.glossary-pop[aria-hidden="true"] {
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .glossary-pop,
  .glossary-pop[aria-hidden] {
    transition: none;
    transform: none;
  }
}

/* Focus styles for keyboard users */
.glossary-pop:focus,
.glossary-pop-inner:focus {
  outline: 3px solid rgba(11,108,255,0.14);
  outline-offset: 4px;
}

/* Close button styling */
.glossary-pop-close,
.glossary-pop .glossary-pop-close {
  background: var(--brand-green);
  color: var(--brand-gold);
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
}
.glossary-pop-close:hover { background: var(--brand-gold); color: var(--brand-green); }

/* Mobile modal tweaks (full-screen modal look) */
@media (max-width: 640px) {
  .glossary-pop {
    left: 12px !important;
    right: 12px !important;
    top: 12px !important;
    bottom: 12px !important;
    max-width: none;
    padding: 18px;
    border-radius: 10px;
    box-shadow: 0 18px 40px rgba(18,24,32,0.18);
  }
  .glossary-pop::before { display: none; }
  .glossary-pop-close { width: 100%; display: block; }
}

/* Small visual polish for triggers */
.glossary-pop-trigger,
.glossary-trigger-inline {
  transition: background 160ms ease, color 160ms ease, transform 120ms ease;
}
.glossary-pop-trigger:active,
.glossary-trigger-inline:active { transform: translateY(1px); }

/* Optional subtle highlight for terms inside popover */
.glossary-pop dt::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background: linear-gradient(135deg, var(--brand-gold), var(--brand-gold-hover));
  border-radius: 2px;
  margin-left: 8px;
  vertical-align: middle;
  opacity: 0.9;
}

/* === 21. FILTERABLE LISTS & TABS === */
.tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.tab-button {
  background: #004100;
  color: #BB933D;
  border: none;
  padding: 0.5rem 1rem;
  cursor: pointer;
}
.tab-button.active {
  background: #BB933D;
  color: #004100;
}
.tab-content { display: none; }
.tab-content.active { display: block; }

.tab-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}
.tab-btn {
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--brand-gold);
  background: var(--white);
  color: var(--brand-green);
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s ease;
}
.tab-btn.active {
  background: var(--brand-gold);
  color: var(--white);
}
.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
}

.tab-btn:hover {
  background: var(--brand-gold);
  color: #fff;
}

/* Filterable grid */
.filterable-grid input {
  padding: 0.5rem;
  margin-bottom: 1rem;
  width: 100%;
}
.filterable-grid .filters {
  margin-bottom: 1rem;
}
.filterable-grid .filters button {
  margin-right: 0.5rem;
  background: #004100;
  color: #BB933D;
  border: none;
  padding: 0.5rem 1rem;
  cursor: pointer;
}

.filterable-list {
  margin-top: 2rem;
}

.filters button {
  margin-right: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--footer-panel-bg);
  border: none;
  cursor: pointer;
  border-radius: 4px;
}
.filters button:hover {
  background: var(--brand-gold-hover);
  color: var(--white);
}
#filterSearch {
  padding: 0.5rem;
  width: 100%;
  max-width: 400px;
  margin-bottom: 1rem;
}

.filterable-list input[type="search"] {
  padding: 0.5rem;
  width: 100%;
  max-width: 400px;   /* match consultancy */
  margin-bottom: 1rem;
}

/* Shared search bar styling */
.search-bar {
  padding: 0.5rem;
  width: 100%;
  max-width: 400px;   /* consistent across hubs */
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
}
.search-bar::placeholder {
  color: var(--text-mid);
}

/* Article-specific styles */
.article-meta {
  font-size: 0.9rem;
  color: var(--text-mid);
  margin-bottom: 1rem;
}

#articleList li {
  padding: 0.5rem;
  border-bottom: 1px solid #EBEBE5;
}
#articleList li a {
  text-decoration: none;
  color: #424242;
}


/* === 22. FOOTER SYSTEMS (HUBS + COPYRIGHT) === */

/* Hubs footer */
.hubs-footer {
  background: #f4f4f4;
  padding: 2rem 1rem;
}

.hubs-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* Hub card base */
.hub-card {
  display: block;
  background: var(--white);
  padding: 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-bottom 0.2s ease, background-color 0.2s ease;
  border-bottom: 4px solid transparent; /* baseline */
}

/* Hover state with gold underline + tint */
.hub-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  border-bottom: 4px solid var(--brand-gold-hover); /* gold accent underline */
  background-color: var(--footer-panel-active-bg);  /* soft tint */
}

/* Typography */
.hub-title {
  font-weight: bold;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.hub-desc {
  font-size: 0.95rem;
  color: var(--text-mid);
}

.hub-card.active {
  border-bottom: 4px solid var(--brand-gold-hover); /* gold accent underline */
  background-color: var(--footer-panel-active-bg);  /* soft tint */        
}

/* Divider above hubs footer */
.hubs-footer {
  background: var(--footer-panel-bg);
  padding: 2rem 1rem;
  border-top: 6px solid var(--brand-green); /* strong brand accent */
  position: relative;
}

.hubs-footer::before {
  content: "";
  display: block;
  height: 4px;
  width: 100%;
  background: linear-gradient(
    to right,
    var(--brand-green),
    var(--brand-gold),
    var(--brand-green)
  );
  position: absolute;
  top: 0;
  left: 0;
}    

/* ---------- Copyright footer (lower footer) ---------- */
.site-footer {
    background: var(--brand-green);
    color: var(--brand-gold);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-weight: 600;
}


/* === 23. RESPONSIVE RULES (ALL MEDIA QUERIES GROUPED AT END) === */

/* 🔑 Responsive tweak: ALL corner/side overlays center on mobile */
@media (max-width: 768px) {
  .hero-overlay--left,
  .hero-overlay--left-top,
  .hero-overlay--left-bottom,
  .hero-overlay--right-top,
  .hero-overlay--right-bottom {
    margin: 0 auto;
    align-self: center;
    text-align: center;
    max-width: 90%;
  }
}

/* ---------- Header & NAV Responsive ---------- */
@media (max-width: 1000px) {
    .brand img {
        height: 60px;
    }
}

@media (max-width: 768px) {
    .header-inner {
        grid-template-columns: 1fr auto;
        /* Brand left, controls right */
    }

    /* Show hamburger, hide inline links until toggled */
    .hamburger {
        display: inline-block;
    }

    .nav-links {
        display: none;
        position: absolute;
        right: 1rem;
        top: 3rem;
        background: rgba(0,0,0,0.2);
        backdrop-filter: blur(6px);
        padding: 0.5rem 0.5rem;
        border-radius: 6px;
        flex-direction: column;
        min-width: 180px;
    }

        .nav-links.toggled {
            display: flex;
        }

    .nav-search {
        display: none;
    }

    .brand img {
        height: 56px;
    }

    .hub-grid {
        grid-template-columns: 1fr 1fr;
    }    
}

@media (max-width: 480px) {
    .brand img {
        height: 48px;
    }

    .hub-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 768px) {
  .talent-carousel .card {
    flex: 0 0 70%;
   max-width: 100%;    
    flex: 0 0 100%; /* larger cards on mobile */
    }
}

@media (max-width: 768px) {
  .hub-carousel .card {
    flex: 0 0 100%;   /* full width */
    max-width: 100%;  /* no partial card */
  }
}

/* Mobile behaviour */
@media (max-width: 768px) {
  .film-grid .grid,
  .book-grid .grid,
  .music-grid .grid {
    grid-template-columns: 1fr;   /* stack cards vertically */
    justify-items: center;        /* center cards */
  }

  .film-grid .card,
  .book-grid .card,
  .music-grid .card {
    max-width: 100%;              /* allow full width on mobile */
  }
}

@media (max-width: 768px) {
  .pillar-grid {
    grid-template-columns: 1fr; /* single column on small screens */
  }
}

/* Responsive rules */
@media (max-width:760px) {
  .advocacy-page { padding:28px 16px; }
  .hero { padding:20px 12px; }
  .advocacy-page h1 { font-size:22px; }
  .advocacy-page .text-band { max-width:92%; }
}

/* Responsive stack for body */
@media (max-width: 980px) {
  .case-body { grid-template-columns: 1fr; }
  .case-right { order: 2; }
  .case-left { order: 1; }
}

/* Ensure lists revert to left alignment on small screens to avoid awkward gaps */
@media (max-width: 640px) {
  .case-left ul.center-align,
  .case-left ol.center-align,
  .why-list.center-align {
    text-align: left;
    list-style-position: outside;
    padding-left: 1rem;
  }
}

/* === 404 PAGE === */
.content-block .lead {
  font-size: 1.2rem;
  color: var(--text-mid);
  margin-bottom: 1rem;
}

.grid.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 2rem 0;
}

@media (max-width: 768px) {
  .grid.two-col {
    grid-template-columns: 1fr;
  }
}

.small-print {
  margin-top: 2rem;
  font-size: 0.9rem;
  color: var(--text-mid);
}

@media (min-width: 1300px) {
  .hero-overlay--left-bottom, .hero-overlay--left, .hero-overlay--left-top {
    margin-left: calc((100vw - 85vw) / 2); /* matches logo's left edge */
  }
}

@media (min-width: 1400px) {
  .hero-overlay--left-bottom, .hero-overlay--left, .hero-overlay--left-top {
    margin-left: calc((100vw - 80vw) / 2); /* matches logo's left edge */
  }
}

@media (min-width: 1500px) {
  .hero-overlay--left-bottom, .hero-overlay--left, .hero-overlay--left-top {
    margin-left: calc((100vw - 75vw) / 2); /* matches logo's left edge */
  }
}

@media (min-width: 1600px) {
  .hero-overlay--left-bottom, .hero-overlay--left, .hero-overlay--left-top {
    margin-left: calc((100vw - 70vw) / 2); /* matches logo's left edge */
  }
}

@media (min-width: 1700px) {
  .hero-overlay--left-bottom, .hero-overlay--left, .hero-overlay--left-top {
    margin-left: calc((100vw - 65vw) / 2); /* matches logo's left edge */
  }
}

@media (max-width: 768px) {
  .values-grid {
    grid-template-columns: 1fr;   /* stack vertically */
    gap: 1.5rem;                  /* optional: improves spacing */
  }

  .value-card {
    text-align: center;           /* optional: matches icon + heading layout */
  }
}

@media (max-width: 768px) {
  .site-footer {
    font-size: 0.8em;
  }
}