/* ============================================
   IMB WordPress Theme - Main Stylesheet
   ============================================ */

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

:root {
  --orange: #ff8412;
  --black: #000;
  --white: #fff;
  --gray-bg: #f4f4f4;
  --text-gray: #d9d9d9;
  --border: #c4c4c4;
  --font-main: 'Instrument Sans', sans-serif;
  --font-alt: 'Inter', sans-serif;
  --max-w: 1440px;
  --gutter: clamp(1.5rem, 5vw, 7.5rem);
}

body {
  font-family: var(--font-main);
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
}

html {
  scroll-behavior: smooth;
}

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

a {
  text-decoration: none;
  color: inherit;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  background: var(--black);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: padding 0.3s ease;
}

.site-header.scrolled {
  padding: 0.5rem 0;
}

.header-top {
  border-bottom: 1px solid #222;
  font-size: 0.9rem;
}

.header-top-inner {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1.5rem;
  padding: 0.75rem 0;
}

.header-top a,
.header-top-inner a {
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.social-icons {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-top a:hover {
  color: var(--orange);
}

.header-top svg {
  width: 22px;
  height: 22px;
  fill: var(--white);
}

.header-top a:hover svg {
  fill: var(--orange);
}

.header-main {
  /* outer wrapper â section-inner handles the layout */
}

.header-main-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.header-logo img {
  height: 48px;
  width: auto;
}

/* primary-nav wraps the ul â the ul is the flex container */
.primary-nav-list {
  display: flex;
  gap: clamp(1rem, 2vw, 2.5rem);
  list-style: none;
  align-items: center;
  margin: 0;
  padding: 0;
}

.primary-nav-list > li {
  position: relative;
}

.primary-nav-list > li > a {
  color: var(--white);
  font-weight: 600;
  padding: 0.5rem 0;
  display: block;
  transition: color 0.2s;
  white-space: nowrap;
}

.primary-nav-list > li > a:hover {
  color: var(--orange);
}

.primary-nav-list .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--black);
  min-width: 220px;
  border-top: 2px solid var(--orange);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  list-style: none;
  margin: 0;
  padding: 0;
  z-index: 200;
}

.primary-nav-list > li:hover .sub-menu {
  opacity: 1;
  pointer-events: auto;
}

.primary-nav-list .sub-menu li a {
  color: var(--white);
  padding: 0.75rem 1.25rem;
  display: block;
  font-weight: 400;
  transition: color 0.2s;
  white-space: nowrap;
}

.primary-nav-list .sub-menu li a:hover {
  color: var(--orange);
}

/* Secondary nav */
.secondary-nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1rem;
}

.menu-item--apply-now .btn-apply {
  background: var(--orange);
  color: var(--black);
  font-weight: 600;
  padding: 0.6rem 1.4rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
}

.menu-item--apply-now .btn-apply:hover {
  opacity: 0.9;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
}

.mobile-nav {
  display: none;
}

.mobile-nav.is-open {
  display: flex;
}

/* Mobile Menu Styles */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }

  .primary-nav {
    display: none;
  }

  .mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    flex-direction: column;
    justify-content: flex-start;
    padding: 5rem var(--gutter) 2rem;
    overflow-y: auto;
    z-index: 99;
  }

  .mobile-nav.is-open {
    display: flex;
  }

  .mobile-nav ul {
    list-style: none;
    width: 100%;
  }

  .mobile-nav li {
    border-bottom: 1px solid #333;
  }

  .mobile-nav a {
    color: var(--white);
    display: block;
    padding: 1.25rem 0;
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.2s;
  }

  .mobile-nav a:hover {
    color: var(--orange);
  }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-cta {
  display: inline-block;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 6px;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  font-family: var(--font-main);
  font-size: 1rem;
}

.btn-cta:hover {
  transform: translateY(-2px);
}

.btn-black {
  background: var(--black);
  color: var(--white);
}

.btn-black:hover {
  background: #222;
}

.btn-orange {
  background: var(--orange);
  color: var(--black);
}

.btn-orange:hover {
  background: #e67a0a;
}

.btn-white {
  background: var(--white);
  color: var(--black);
  border: 2px solid var(--black);
}

.btn-white:hover {
  background: #f9f9f9;
}

.btn-grey {
  background: var(--gray-bg);
  color: var(--black);
}

.btn-grey:hover {
  background: #e8e8e8;
}

/* ============================================
   SECTION UTILITIES
   ============================================ */
.section-inner {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section-inner.narrow {
  max-width: 860px;
}

.bg-black {
  background: var(--black);
  color: var(--white);
}

.bg-black h1,
.bg-black h2,
.bg-black h3,
.bg-black h4,
.bg-black h5,
.bg-black h6,
.bg-black p {
  color: var(--white);
}

.bg-white {
  background: var(--white);
  color: var(--black);
}

.bg-orange {
  background: var(--orange);
  color: var(--black);
}

.bg-orange h1,
.bg-orange h2,
.bg-orange h3,
.bg-orange h4,
.bg-orange h5,
.bg-orange h6 {
  color: var(--black);
}

.bg-grey {
  background: var(--gray-bg);
  color: var(--black);
}

.text-white {
  color: var(--white);
}

/* ============================================
   BLOCK: HERO
   ============================================ */
.block-hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.block-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.1) 60%, transparent);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 0 var(--gutter) clamp(2rem, 5vw, 4rem);
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1.1;
  margin: 0;
}

.hero-sub {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  color: var(--white);
  margin-top: 0.5rem;
}

.event-hero-date {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: var(--white);
  margin-top: 0.75rem;
}

.event-hero-date .event-date-label {
  font-weight: 600;
}


/* ============================================
   BLOCK: TEXT + IMAGE
   ============================================ */
.block-text-image-fullbleed,
.block-text-image-boxed {
  padding: clamp(3rem, 5vw, 5rem) 0;
}

.tif-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.tif-image.left {
  order: -1;
}

.tif-text h2 {
  font-size: clamp(1.75rem, 3vw, 2.6rem);
  font-weight: 600;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.tif-text .wysiwyg p {
  line-height: 1.7;
  margin-bottom: 1rem;
  color: #333;
}

.block-text-image-boxed .tif-image img {
  border-radius: 12px;
  width: 100%;
}

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

  .tif-image.left {
    order: 0;
  }
}

/* ============================================
   BLOCK: TWO THIRDS / ONE THIRD
   ============================================ */
.block-two-thirds {
  padding: clamp(3rem, 5vw, 5rem) 0;
}

.tto-inner {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.tto-inner.reversed {
  direction: rtl;
}

.tto-inner.reversed > * {
  direction: ltr;
}

.tto-inner img {
  border-radius: 12px;
  width: 100%;
}

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

/* ============================================
   BLOCK: SPLIT PANEL
   ============================================ */
.block-split-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 500px;
}

.split-panel {
  padding: clamp(3rem, 5vw, 5rem) var(--gutter);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 768px) {
  .block-split-panel {
    grid-template-columns: 1fr;
    min-height: auto;
  }
}

/* ============================================
   BLOCK: INDUSTRY SECTORS
   ============================================ */
.block-industry-sectors {
  padding: clamp(3rem, 5vw, 5rem) 0;
}

.block-industry-sectors .section-inner {
  width: 100%;
}

.sectors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.sector-card {
  border-radius: 12px;
  overflow: hidden;
  background: var(--black);
  position: relative;
}

.sector-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  opacity: 0.75;
  display: block;
}

.sector-label {
  padding: 1rem 1.25rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
}

@media (max-width: 900px) {
  .sectors-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .sectors-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   BLOCK: FAQ ACCORDION
   ============================================ */
.block-faq {
  padding: clamp(3rem, 5vw, 5rem) 0;
}

.block-faq .section-inner {
  width: 100%;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.faq-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  background: var(--white);
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-main);
  text-align: left;
  transition: all 0.2s;
}

.faq-trigger:hover {
  background: var(--gray-bg);
}

.faq-trigger[aria-expanded='true'] {
  color: var(--orange);
}

.faq-trigger .faq-icon {
  font-size: 1.5rem;
  transition: transform 0.2s;
}

.faq-trigger[aria-expanded='true'] .faq-icon {
  transform: rotate(45deg);
}

.faq-panel {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-panel.open {
  max-height: 500px;
  padding: 0 1.5rem 1.25rem;
}

/* ============================================
   BLOCK: TEAM GRID
   ============================================ */
.block-team-grid {
  padding: clamp(3rem, 5vw, 5rem) 0;
}

.block-team-grid .section-inner {
  width: 100%;
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.person-card {
  text-align: center;
}

.person-photo img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 0.75rem;
  display: block;
}

.person-name {
  font-family: var(--font-alt);
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0.5rem 0 0.25rem;
}

.person-role {
  font-family: var(--font-alt);
  font-size: 0.9rem;
  color: var(--orange);
  font-weight: 600;
}

.person-bio {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.5;
  margin-top: 0.5rem;
}

.person-linkedin {
  color: var(--orange);
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 0.75rem;
  display: inline-block;
}


.person-sub-heading {
  font-family: var(--font-alt);
  font-size: 0.9rem;
  color: var(--orange);
  font-weight: 600;
}

.person-content {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.5;
  margin-top: 0.5rem;
}

.person-button-url {
  color: var(--orange);
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 0.75rem;
  display: inline-block;
}



@media (max-width: 900px) {
  .people-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .people-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   BLOCK: VIDEO CAROUSEL
   ============================================ */
.block-video-carousel {
  background: var(--black);
  padding: clamp(3rem, 5vw, 5rem) 0;
}

.block-video-carousel .section-inner {
  width: 100%;
}

.video-row {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
}

.video-row::-webkit-scrollbar {
  height: 8px;
}

.video-row::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.video-row::-webkit-scrollbar-thumb {
  background: var(--orange);
  border-radius: 4px;
}

.video-card {
  flex-shrink: 0;
  width: clamp(280px, 35vw, 420px);
  scroll-snap-align: start;
}

.video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  border: none;
  cursor: pointer;
  color: var(--white);
  font-size: 3rem;
  transition: background 0.2s;
}

.play-btn:hover {
  background: rgba(0, 0, 0, 0.6);
}

.video-caption {
  color: var(--text-gray);
  font-size: 0.9rem;
  margin-top: 0.5rem;
  line-height: 1.4;
}

/* ============================================
   BLOCK: STORIES GRID
   ============================================ */
.block-stories {
  padding: clamp(3rem, 5vw, 5rem) 0;
}

.block-stories .section-inner {
  width: 100%;
}

.filter-bar {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.filter-pill {
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 0.4rem 1.25rem;
  font-size: 0.9rem;
  cursor: pointer;
  background: var(--white);
  color: var(--black);
  transition: all 0.2s;
  font-family: var(--font-main);
  font-weight: 500;
}

.filter-pill:hover {
  border-color: var(--black);
}

.filter-pill.active {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.stories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.story-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.3s;
}

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

.story-card a {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.card-body {
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-cats {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.card-cat {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.story-card h2 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.3;
  color: var(--black);
}

.story-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.3;
  color: var(--black);
}

.card-body p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 1rem;
  flex: 1;
}

.read-more {
  color: var(--orange);
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.story-card:hover .read-more {
  color: #e67a0a;
}

@media (max-width: 900px) {
  .stories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .stories-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   BLOCK: EVENTS GRID
   ============================================ */
.block-events {
  padding: clamp(3rem, 5vw, 5rem) 0;
}

.block-events .section-inner {
  width: 100%;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.event-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.3s;
}

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

.event-card a {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
}

.event-card .card-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.event-card .card-body {
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.event-card h2 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  line-height: 1.3;
  color: var(--black);
}

.event-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.5rem 0;
  font-size: 0.9rem;
  color: #555;
}

.event-date-display {
  font-weight: 700;
  color: var(--black);
  font-size: 1rem;
}

@media (max-width: 900px) {
  .events-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .events-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   BLOCK: NEWSLETTER
   ============================================ */
.block-newsletter {
  padding: clamp(3rem, 5vw, 5rem) 0;
}

.block-newsletter .section-inner {
  width: 100%;
}

.newsletter-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.newsletter-inner h2 {
  font-size: clamp(1.75rem, 3vw, 2.6rem);
  font-weight: 600;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.newsletter-inner p {
  font-size: 1rem;
  line-height: 1.6;
  color: #555;
  margin-bottom: 1.5rem;
}

input[type='email'] {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 1rem;
  font-family: var(--font-main);
  transition: border-color 0.2s;
}

input[type='email']:focus {
  outline: none;
  border-color: var(--orange);
}

.interest-checks {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

.interest-checks label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  cursor: pointer;
  user-select: none;
}

.interest-checks input[type='checkbox'] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--orange);
}

@media (max-width: 768px) {
  .newsletter-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ============================================
   SINGLE EVENT TEMPLATE
   ============================================ */
.single-event-template {
}

.event-intro {
  padding: clamp(3rem, 5vw, 5rem) 0;
}

.event-intro .section-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.event-intro h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.event-date-location {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 2rem 0;
}

.event-date-location strong {
  font-weight: 600;
}

.speakers-section {
  padding: clamp(3rem, 5vw, 5rem) 0;
  background: var(--black);
  color: var(--white);
}

.speakers-section h2 {
  font-size: clamp(1.75rem, 3vw, 2.6rem);
  font-weight: 600;
  margin-bottom: 2rem;
  color: var(--white);
}

.speakers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.speaker-card {
  text-align: center;
}

.speaker-photo img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1rem;
  display: block;
}

.speaker-name {
  font-family: var(--font-alt);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.25rem;
}

.speaker-role {
  font-family: var(--font-alt);
  color: var(--orange);
  font-size: 0.9rem;
  font-weight: 600;
}

.sponsor-section {
  padding: clamp(3rem, 5vw, 5rem) 0;
}

.sponsor-section h2 {
  font-size: clamp(1.75rem, 3vw, 2.6rem);
  font-weight: 600;
  margin-bottom: 2rem;
}

.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  align-items: center;
}

.sponsor-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
}

.sponsor-logo img {
  max-width: 100%;
  max-height: 100%;
}

@media (max-width: 768px) {
  .event-intro .section-inner {
    grid-template-columns: 1fr;
  }

  .speakers-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sponsor-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.gallery-section {
  padding: clamp(3rem, 5vw, 5rem) 0;
}

.gallery-section h2 {
  font-size: clamp(1.75rem, 3vw, 2.6rem);
  font-weight: 600;
  margin-bottom: 2rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--black);
  padding: clamp(3rem, 5vw, 4rem) 0 1.5rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid #333;
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.footer-logo img {
  height: 40px;
  width: auto;
  margin-bottom: 1.5rem;
  display: block;
}

.footer-desc {
  font-size: 0.9rem;
  color: var(--text-gray);
  line-height: 1.7;
  max-width: 480px;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: all 0.2s;
}

.footer-social a:hover {
  background: var(--orange);
}

.footer-social svg {
  width: 20px;
  height: 20px;
  fill: var(--white);
}

.footer-social a:hover svg {
  fill: var(--black);
}

.footer-nav {
  display: flex;
  gap: clamp(1rem, 2vw, 2rem);
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: flex-start;
}

.footer-nav a {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: var(--orange);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--white);
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

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

  .footer-nav {
    justify-content: flex-start;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* ============================================
   WYSIWYG TEXT FORMATTING
   ============================================ */
.wysiwyg h2,
.wysiwyg h3,
.wysiwyg h4 {
  margin: 1.5rem 0 0.75rem;
  line-height: 1.2;
  font-weight: 600;
}

.wysiwyg h2 {
  font-size: 1.75rem;
}

.wysiwyg h3 {
  font-size: 1.4rem;
}

.wysiwyg h4 {
  font-size: 1.2rem;
}

.wysiwyg p {
  line-height: 1.7;
  margin-bottom: 1em;
  color: #333;
}

.wysiwyg a {
  color: var(--orange);
  font-weight: 600;
  transition: opacity 0.2s;
}

.wysiwyg a:hover {
  opacity: 0.8;
}

.wysiwyg ul,
.wysiwyg ol {
  padding-left: 1.5em;
  margin-bottom: 1em;
  color: #333;
}

.wysiwyg li {
  margin-bottom: 0.5em;
  line-height: 1.6;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.hidden {
  display: none !important;
}


.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Archive templates */
.archive-events,
.archive-stories {
  min-height: 60vh;
}


/* ============================================
   SINGLE EVENT PAGE
   Figma: Single Event (node 23:181)
   ============================================ */

/* Intro section */
.event-intro-section {
  padding: clamp(3rem, 5vw, 5rem) 0;
  background: var(--white);
}

.event-intro-inner {
  max-width: var(--max-w);
}

.event-intro-heading {
  font-size: clamp(1.75rem, 2.8vw, 2.625rem);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1.25rem;
  max-width: 540px;
}

.event-intro-blurb {
  font-size: 1.1875rem;
  line-height: 1.6;
  max-width: 540px;
  margin-bottom: 1.5rem;
  color: var(--black);
}

.event-meta-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 1.1875rem;
  margin-bottom: 0.875rem;
  color: var(--black);
}

.event-meta-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  margin-top: 0.1rem;
}

.event-location-link {
  color: var(--black);
  text-decoration: underline;
}

.event-location-link:hover {
  color: var(--orange);
}

.event-register-cta {
  margin-top: 2rem;
  font-size: 1.375rem;
  font-weight: 700;
  padding: 1rem 2rem;
  display: inline-block;
  text-decoration: none;
  border-radius: 6px;
}

/* Split row — left image | right (image + content) */
.event-split-section {
  background: var(--white);
}

.event-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 640px;
}

.event-split-img-left,
.event-split-img-left .event-split-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.event-split-content {
  display: flex;
  flex-direction: column;
}

.event-split-img-right {
  height: 50%;
  overflow: hidden;
}

.event-split-img-right .event-split-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.event-split-body {
  padding: clamp(2rem, 4vw, 4rem);
  flex: 1;
  font-size: 1.1875rem;
  line-height: 1.75;
}

.event-split-body h2 {
  font-size: clamp(1.5rem, 2.5vw, 2.625rem);
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.event-split-body p { margin-bottom: 1rem; }

.event-split-body ul,
.event-split-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

/* Gallery strip */
.event-gallery-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.event-gallery-strip-item {
  overflow: hidden;
}

.event-gallery-strip-item img {
  width: 100%;
  height: 333px;
  object-fit: cover;
  display: block;
}

/* Speakers — dark bg */
.event-speakers-section {
  padding: clamp(3rem, 5vw, 5rem) 0;
  background: var(--black);
  color: var(--white);
}

.event-speakers-heading {
  font-size: clamp(2rem, 3.5vw, 3.125rem);
  font-weight: 600;
  color: var(--white);
  margin-bottom: 2.5rem;
}

.event-speakers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.speaker-card-btn {
  background: none;
  border: none;
  cursor: pointer;
  text-align: center;
  padding: 0;
  width: 100%;
  color: var(--white);
}

.speaker-card-btn[aria-expanded="true"] .speaker-name {
  color: var(--orange);
}

.speaker-photo img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  margin-bottom: 1rem;
}

.speaker-name {
  font-family: var(--font-alt);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 0.2rem;
  transition: color 0.2s;
}

.speaker-company {
  font-family: var(--font-alt);
  color: #d4d3d3;
  font-size: 1.1875rem;
  font-weight: 700;
  margin-bottom: 0.1rem;
}

.speaker-role {
  font-family: var(--font-alt);
  color: #d4d3d3;
  font-size: 1.1875rem;
}

.speaker-bio {
  max-width: 765px;
  margin: 0 auto;
  text-align: center;
}

.speaker-bio-name {
  font-size: 2rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 1rem;
}

.speaker-bio-text p {
  font-size: 1.1875rem;
  line-height: 1.7;
  color: var(--white);
  margin-bottom: 1rem;
}

.speaker-bio-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.speaker-linkedin {
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 1.1875rem;
  text-decoration: none;
}

.speaker-linkedin:hover {
  opacity: 0.8;
}

/* Supporters */
.event-supporters-section {
  padding: clamp(3rem, 5vw, 5rem) 0;
  background: var(--gray-bg);
}

.event-supporters-heading {
  font-size: clamp(1.75rem, 2.8vw, 2.625rem);
  font-weight: 600;
  margin-bottom: 1rem;
  max-width: 940px;
}

.event-supporters-text {
  font-size: 1.1875rem;
  line-height: 1.7;
  max-width: 1367px;
  margin-bottom: 2rem;
}

.event-supporters-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  margin-bottom: 3rem;
}

.supporter-logo {
  height: 80px;
  width: auto;
  object-fit: contain;
}

.event-partner-cta {
  font-size: 1.1875rem;
  line-height: 1.7;
}

.event-partner-cta h2,
.event-partner-cta strong {
  font-weight: 700;
}

/* Event address */
.event-address-section {
  padding: clamp(3rem, 5vw, 5rem) 0;
  background: var(--white);
}

.event-address-section .section-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.event-address-photos {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 1rem;
  align-items: stretch;
}

.event-address-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  min-height: 200px;
}

.event-address-map img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  min-height: 400px;
}

.event-address-heading {
  font-size: clamp(1.75rem, 2.8vw, 2.625rem);
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.event-address-name {
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.event-address-text {
  font-size: 1.25rem;
  line-height: 1.7;
}

/* Responsive — single event */
@media (max-width: 1024px) {
  .event-split-grid {
    grid-template-columns: 1fr;
  }
  .event-split-img-right {
    height: 300px;
  }
  .event-gallery-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .event-speakers-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .event-address-section .section-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .event-gallery-strip {
    grid-template-columns: 1fr 1fr;
  }
  .event-gallery-strip-item img {
    height: 200px;
  }
  .event-speakers-grid {
    grid-template-columns: 1fr 1fr;
  }
  .event-address-photos {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .event-speakers-grid {
    grid-template-columns: 1fr;
  }
}


/* ============================================
   SINGLE NEWS POST
   Figma: Stories/News Single (node 39:605)
   ============================================ */

.news-content-section {
  padding: clamp(2.5rem, 4vw, 4rem) 0;
  background: var(--white);
}

.news-content-inner {
  /* inherits section-inner max-width */
}

.news-content-title {
  font-size: clamp(1.75rem, 3vw, 2.625rem);
  font-weight: 600;
  margin-bottom: 2rem;
  max-width: 900px;
}

.news-featured-image {
  max-width: 993px;
  margin: 0 0 2.5rem;
}

.news-featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

.news-body {
  max-width: 999px;
  font-size: 1.1875rem;
  line-height: 1.75;
}

.news-body p { margin-bottom: 1.25rem; }
.news-body h2, .news-body h3 { font-weight: 600; margin: 2rem 0 0.75rem; }
.news-body ul, .news-body ol { padding-left: 1.75rem; margin-bottom: 1.25rem; }
.news-body li { margin-bottom: 0.4rem; }
.news-body a { color: var(--black); text-decoration: underline; }
.news-body a:hover { color: var(--orange); }

/* Similar Stories */
.similar-stories-section {
  padding: clamp(3rem, 5vw, 5rem) 0;
  background: var(--gray-bg);
}

.similar-stories-heading {
  font-size: clamp(1.75rem, 3vw, 2.125rem);
  font-weight: 700;
  margin-bottom: 2rem;
}

.similar-stories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* Story card — shared between similar stories + archive grid */
.story-card-item,
.archive-card {
  background: var(--white);
  border: 1px solid var(--orange);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.story-card-img-link,
.archive-card-img-link {
  display: block;
}

.story-card-img img,
.archive-card-img img {
  width: 100%;
  height: 326px;
  object-fit: cover;
  display: block;
  border-radius: 10px 10px 0 0;
}

.story-card-body,
.archive-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.story-card-title,
.archive-card-title {
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

.story-card-title a,
.archive-card-title a {
  color: var(--black);
  text-decoration: none;
  transition: color 0.2s;
}

.story-card-title a:hover,
.archive-card-title a:hover {
  color: var(--orange);
}

.story-card-excerpt,
.archive-card-excerpt {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--black);
  flex: 1;
  margin-bottom: 1.5rem;
}

.story-card-cta,
.archive-card-cta {
  align-self: flex-end;
  font-size: 1.0625rem;
  padding: 0.7rem 1.5rem;
  text-decoration: none;
}

.archive-card-date {
  font-size: 0.875rem;
  color: #666;
  margin-bottom: 0.5rem;
}

.archive-card-date .event-date-label {
  font-weight: 600;
}

/* Responsive — single news */
@media (max-width: 1024px) {
  .similar-stories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .similar-stories-grid,
  .archive-cards-grid {
    grid-template-columns: 1fr;
  }
  .story-card-img img,
  .archive-card-img img {
    height: 220px;
  }
}


/* ============================================
   ARCHIVE — NEWS/STORIES/CASE STUDIES
   Figma: node 39:469
   ============================================ */

.archive-filter-bar {
  background: var(--white);
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}

.archive-filter-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.archive-filter-label {
  font-size: 1.3125rem;
  font-weight: 600;
  white-space: nowrap;
}

.archive-filter-form {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.archive-dropdown-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.archive-filter-select {
  appearance: none;
  -webkit-appearance: none;
  background: var(--white);
  border: 1px solid var(--orange);
  border-radius: 6px;
  padding: 0.625rem 2.5rem 0.625rem 1rem;
  font-family: var(--font-main);
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--black);
  cursor: pointer;
  min-width: 170px;
}

.archive-filter-select:focus {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.archive-filter-arrow {
  position: absolute;
  right: 0.75rem;
  pointer-events: none;
  font-size: 0.75rem;
}

.archive-grid-section {
  padding: clamp(3rem, 5vw, 5rem) 0;
  background: var(--gray-bg);
}

.archive-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.archive-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem;
}

.archive-pagination {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

.archive-load-more {
  padding: 0.75rem 2.5rem;
  font-size: 1.1875rem;
  font-weight: 700;
  text-decoration: none;
}

/* Responsive — archive */
@media (max-width: 1024px) {
  .archive-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .archive-cards-grid {
    grid-template-columns: 1fr;
  }
  .archive-filter-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* ============================================
   FIX: Text+Image block — image-left class
   The PHP outputs .image-left, CSS expected .left
   ============================================ */
.tif-image.image-left {
  order: -1;
}

/* ============================================
   FIX: Event split panel — image fills left cell
   ============================================ */
.event-split-img-left {
  overflow: hidden;
  min-height: 500px;
}

.event-split-img-left .event-split-photo,
.event-split-img-left img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 500px;
}

/* ============================================
   FIX: Events + Case Studies archive cards
   Match the news archive orange-bordered card style
   ============================================ */

/* Events archive — existing .container-card inside .container-grid */
.block-events-grid .container-grid,
.events-grid.container-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.events-grid .container-card,
.block-events-grid .container-card {
  background: var(--white);
  border: 1px solid var(--orange);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.events-grid .container-card a,
.block-events-grid .container-card a {
  display: flex;
  flex-direction: column;
  flex: 1;
  color: inherit;
  text-decoration: none;
}

.events-grid .card-image img,
.block-events-grid .card-image img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  border-radius: 10px 10px 0 0;
}

.events-grid .card-body,
.block-events-grid .card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.events-grid .card-body h2,
.events-grid .card-body h3,
.block-events-grid .card-body h2,
.block-events-grid .card-body h3 {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 0.5rem;
  color: var(--black);
}

.events-grid .event-date-display,
.block-events-grid .event-date-display {
  font-size: 1rem;
  color: #555;
  margin-bottom: 0.75rem;
}

.events-grid .content-container,
.block-events-grid .content-container {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--black);
  flex: 1;
  margin-bottom: 1.25rem;
}

.events-grid .btn-cta,
.block-events-grid .btn-cta {
  align-self: flex-end;
  margin-top: auto;
}

/* Case studies archive — existing .container-card */
.block-case-studies .container-grid,
.block-case-studies-grid .container-grid,
.case-studies-grid.container-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.block-case-studies .container-card,
.block-case-studies-grid .container-card,
.case-studies-grid .container-card,
.archive-case-studies .container-card {
  background: var(--white);
  border: 1px solid var(--orange);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.block-case-studies .container-card a,
.block-case-studies-grid .container-card a,
.case-studies-grid .container-card a,
.archive-case-studies .container-card a {
  display: flex;
  flex-direction: column;
  flex: 1;
  color: inherit;
  text-decoration: none;
}

.block-case-studies .card-image img,
.block-case-studies-grid .card-image img,
.case-studies-grid .card-image img,
.archive-case-studies .card-image img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  border-radius: 10px 10px 0 0;
}

.block-case-studies .card-body,
.block-case-studies-grid .card-body,
.case-studies-grid .card-body,
.archive-case-studies .card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.block-case-studies .card-body h2,
.block-case-studies .card-body h3,
.block-case-studies-grid .card-body h2,
.block-case-studies-grid .card-body h3,
.case-studies-grid .card-body h2,
.case-studies-grid .card-body h3,
.archive-case-studies .card-body h2,
.archive-case-studies .card-body h3 {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 0.5rem;
  color: var(--black);
}

/* Responsive */
@media (max-width: 1024px) {
  .events-grid.container-grid,
  .block-events-grid .container-grid,
  .block-case-studies .container-grid,
  .block-case-studies-grid .container-grid,
  .case-studies-grid.container-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .events-grid.container-grid,
  .block-events-grid .container-grid,
  .block-case-studies .container-grid,
  .block-case-studies-grid .container-grid,
  .case-studies-grid.container-grid {
    grid-template-columns: 1fr;
  }
}
