/* ==========================================================================
   TARS Homepage — Master Style Sheet
   LAYOUT & DOM STRUCTURE = Future Pharma EU (futurepharmaeu.wbresearch.com)
   COLOR PALETTE = TARS Crimson, Black & Gold Color System
   TYPOGRAPHY = Poppins & Open Sans (Exact Future Pharma EU Font Hierarchy & Casing)
   CONTENT & ASSETS = Telecom Africa RAFM Summit (TARS fextons.com)
   TECH = Pure Native HTML5 + CSS3 + Vanilla JS (No Frameworks)
   ========================================================================== */

:root {
  /* TARS Crimson, Black & Gold Color System Tokens */
  --event-color-primary: #9f171f !important;
  --event-color-secondary: #f79e40 !important;
  --event-color-accent: #ffcc69 !important;
  --event-color-tertiary: #d1262f !important;
  --event-header-color: #9f171f !important;

  /* Crimson, Black & Gold Linear Gradients */
  --gradient-event: linear-gradient(
    295.96deg,
    #f79e40 5.13%,
    #d1262f 25.5%,
    #9f171f 55.77%,
    #c41e27 100%
  );
  --gradient-dark: linear-gradient(
    180deg,
    rgba(9, 9, 9, 0.65) 0%,
    rgba(159, 23, 31, 0.85) 100%
  );
  --gradient-overlay: linear-gradient(
    135deg,
    rgba(159, 23, 31, 0.45) 0%,
    rgba(209, 38, 47, 0.35) 100%
  );

  /* Button Gradients */
  --btn-gradient-accent: linear-gradient(180deg, #f9b265 0%, #f79e40 100%);
  --btn-gradient-primary: linear-gradient(180deg, #c41e27 0%, #9f171f 100%);

  --primary: #9f171f;
  --primary-dark: #171313;
  --primary-darkest: #090909;
  --tertiary: #d1262f;
  --accent: #f79e40;
  --accent-hover: #e08528;
  --accent-gold: #ffcc69;

  --light-bg: #f8fafc;
  --card-bg: #ffffff;
  --text-main: #171313;
  --text-muted: #62585a;

  /* EXACT FUTURE PHARMA EU FONT SYSTEM & SPACING TOKENS */
  --font-primary: "Poppins", "Helvetica Neue", Arial, sans-serif !important;
  --font-secondary:
    "Poppins", "Open Sans", system-ui, -apple-system, sans-serif !important;

  --radius-xl: 1rem;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  font-family: var(--font-primary) !important;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-main);
  background-color: #ffffff;
  overflow-x: hidden;
}

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.25s ease;
}

/* EXACT FUTURE PHARMA EU TYPOGRAPHY & SPACING RULES */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-primary) !important;
  font-weight: 700;
  line-height: 1.25;
  text-transform: none !important;
  margin-top: 0;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem) !important;
  color: #ffffff;
  font-weight: 800;
  line-height: 1.15;
}
h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem) !important;
  color: var(--primary);
  font-weight: 700;
  line-height: 1.2;
}
h3 {
  font-size: clamp(1.3rem, 2vw, 1.6rem) !important;
  color: var(--primary-dark);
  font-weight: 700;
  line-height: 1.25;
}
h4 {
  font-size: 1.15rem !important;
  color: var(--primary);
  font-weight: 600;
  line-height: 1.3;
}

.fa-4x {
  font-size: 4rem !important;
  line-height: 1.2 !important;
}
.fa-3x {
  font-size: 3rem !important;
  line-height: 1.3 !important;
}
.fa-2x {
  font-size: 1.6rem !important;
  line-height: 1.25 !important;
}
.fa-lg {
  font-size: 1.1rem !important;
  line-height: 1.6 !important;
}
.fa-5x {
  font-size: 3.5rem !important;
  font-weight: 800 !important;
  line-height: 1 !important;
}

p {
  font-family: var(--font-primary) !important;
  font-size: 1rem;
  line-height: 1.6;
  margin-top: 0;
  margin-bottom: 1rem;
}

.text-white {
  color: #ffffff !important;
}
.text-white-50 {
  color: rgba(255, 255, 255, 0.8) !important;
}
.text-accent {
  color: var(--accent) !important;
}
.text-primary {
  color: var(--primary) !important;
}
.text-muted {
  color: var(--text-muted) !important;
}

.heading-split {
  display: inline-block;
  width: auto;
  text-align: left;
  color: #111111;
}

.heading-split .heading-black {
  color: #111111;
}

.heading-split .heading-red {
  color: var(--primary);
}

/* Grid System & Future Pharma EU Section Spacings */
.container-fluid {
  width: 100%;
  padding-right: 20px;
  padding-left: 20px;
  margin-right: auto;
  margin-left: auto;
}

.container {
  width: 100%;
  max-width: 1240px;
  padding-right: 20px;
  padding-left: 20px;
  margin-right: auto;
  margin-left: auto;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
}

.col-12 {
  flex: 0 0 100%;
  max-width: 100%;
  padding: 0 15px;
}
.col-10 {
  flex: 0 0 83.333333%;
  max-width: 83.333333%;
  padding: 0 15px;
}
.col-6 {
  flex: 0 0 50%;
  max-width: 50%;
  padding: 0 15px;
}
.col-md-12 {
  flex: 0 0 100%;
  max-width: 100%;
  padding: 0 15px;
}
.col-md-11 {
  flex: 0 0 91.666667%;
  max-width: 91.666667%;
  padding: 0 15px;
}
.col-md-10 {
  flex: 0 0 83.333333%;
  max-width: 83.333333%;
  padding: 0 15px;
}
.col-md-9 {
  flex: 0 0 75%;
  max-width: 75%;
  padding: 0 15px;
}
.col-md-8 {
  flex: 0 0 66.666667%;
  max-width: 66.666667%;
  padding: 0 15px;
}
.col-md-7 {
  flex: 0 0 58.333333%;
  max-width: 58.333333%;
  padding: 0 15px;
}
.col-md-6 {
  flex: 0 0 50%;
  max-width: 50%;
  padding: 0 15px;
}
.col-md-5 {
  flex: 0 0 41.666667%;
  max-width: 41.666667%;
  padding: 0 15px;
}
.col-md-4 {
  flex: 0 0 33.333333%;
  max-width: 33.333333%;
  padding: 0 15px;
}
.col-md-3 {
  flex: 0 0 25%;
  max-width: 25%;
  padding: 0 15px;
}
.col-md-2 {
  flex: 0 0 16.666667%;
  max-width: 16.666667%;
  padding: 0 15px;
}
.col-md-15 {
  flex: 0 0 20%;
  max-width: 20%;
  padding: 0 15px;
}
.col-md {
  flex-basis: 0;
  flex-grow: 1;
  max-width: 100%;
  padding: 0 15px;
}

.mx-auto {
  margin-left: auto !important;
  margin-right: auto !important;
}
.ml-auto {
  margin-left: auto !important;
}
.mr-auto {
  margin-right: auto !important;
}

.d-flex {
  display: flex !important;
}
.d-block {
  display: block !important;
}
.d-none {
  display: none !important;
}

.flex-column {
  flex-direction: column !important;
}
.flex-grow-1 {
  flex-grow: 1 !important;
}
.flex-wrap {
  flex-wrap: wrap !important;
}

.justify-content-center {
  justify-content: center !important;
}
.justify-content-between {
  justify-content: space-between !important;
}
.justify-content-end {
  justify-content: flex-end !important;
}

.align-items-center {
  align-items: center !important;
}
.align-items-stretch {
  align-items: stretch !important;
}
.align-items-start {
  align-items: flex-start !important;
}

.gap-2 {
  gap: 0.5rem !important;
}
.gap-3 {
  gap: 1rem !important;
}

.my-1 {
  margin-top: 0.25rem !important;
  margin-bottom: 0.25rem !important;
}
.my-2 {
  margin-top: 0.5rem !important;
  margin-bottom: 0.5rem !important;
}
.my-3 {
  margin-top: 1.25rem !important;
  margin-bottom: 1.25rem !important;
}
.my-4 {
  margin-top: 2rem !important;
  margin-bottom: 2rem !important;
}
.my-5 {
  margin-top: 3.5rem !important;
  margin-bottom: 3.5rem !important;
}
.m-0 {
  margin: 0 !important;
}
.mb-0 {
  margin-bottom: 0 !important;
}
.mb-1 {
  margin-bottom: 0.25rem !important;
}
.mb-2 {
  margin-bottom: 0.5rem !important;
}
.mb-3 {
  margin-bottom: 1rem !important;
  margin-top: 3cap !important;
}
.mb-4 {
  margin-bottom: 1.5rem !important;
}
.mt-1 {
  margin-top: 0.25rem !important;
}
.mt-2 {
  margin-top: 0.5rem !important;
}
.mt-3 {
  margin-top: 1rem !important;
}
/* --- Missing responsive spacing utilities (Bootstrap-style) --- */
@media (min-width: 768px) {
  .mt-md-0 {
    margin-top: 0 !important;
  }
  .pl-md-1 {
    padding-left: 0.25rem !important;
  }
  .pr-md-0 {
    padding-right: 0 !important;
  }
}

.mt-4 {
  margin-top: 1.5rem !important;
}
.p-0 {
  padding: 0 !important;
}
.p-2 {
  padding: 0.5rem !important;
}
.p-3 {
  padding: 1rem !important;
}
.p-4 {
  padding: 1.75rem !important;
}

.py-2 {
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
}
.py-3 {
  padding-top: 1.25rem !important;
  padding-bottom: 1.25rem !important;
}
.py-4 {
  padding-top: 2.5rem !important;
  padding-bottom: 2.5rem !important;
}
.py-5 {
  padding-top: 3.5rem !important;
  padding-bottom: 3.5rem !important;
}

.px-0 {
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.px-2 {
  padding-left: 0.5rem !important;
  padding-right: 0.5rem !important;
}
.px-4 {
  padding-left: 1.75rem !important;
  padding-right: 1.75rem !important;
}
.px-5 {
  padding-left: 3.5rem !important;
  padding-right: 3.5rem !important;
}

.h-100 {
  height: 100% !important;
}
.w-100 {
  width: 100% !important;
}
.object-fit-cover {
  object-fit: cover !important;
}

.position-relative {
  position: relative !important;
}
.overflow-hidden {
  overflow: hidden !important;
}
.rounded-xl {
  border-radius: var(--radius-xl) !important;
}
.rounded {
  border-radius: 0.3rem !important;
}

.shadow-sm {
  box-shadow: 0 4px 12px rgba(23, 19, 19, 0.06) !important;
}
.shadow-md {
  box-shadow: 0 10px 30px rgba(23, 19, 19, 0.12) !important;
}
.shadow-lg {
  box-shadow: 0 20px 40px rgba(23, 19, 19, 0.22) !important;
}

.home-map {
  padding: 120px 0;
  background-color: #ffffff;
}

.venue-section-header {
  margin-bottom: 20px;
}

.venue-section-header h3 {
  color: #9f171f !important;
  font-size: 2rem !important;
  line-height: 1.5;
  margin-bottom: 0;
}

.venue-section-header h5 {
  color: #111111;
  font-size: 1.25rem !important;
  line-height: 1.5;
  padding-bottom: 20px;
  margin-bottom: 0;
}

.venue-media-row > div {
  display: flex;
}

.venue-photo,
.venue-map {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
  object-fit: cover;
}

@media (max-width: 767px) {
  .home-map {
    padding: 57px 0;
  }

  .venue-media-row {
    gap: 24px;
  }

  .venue-photo,
  .venue-map {
    height: 360px;
  }
}

.border-0 {
  border: 0 !important;
}
.border-top {
  border-top: 1px solid var(--primary) !important;
}
.border-bottom {
  border-bottom: 1px solid var(--border-light) !important;
}

hr {
  border: 0;
  border-top: 2px solid var(--primary) !important;
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
}

/* BUTTON GRADIENTS & DIMENSIONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-family: var(--font-primary) !important;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.05em;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s ease;
  border: 2px solid transparent;
  text-transform: uppercase !important;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.btn-lg {
  padding: 15px 36px;
  font-size: 0.92rem;
}

.btn-accent {
  background: var(--btn-gradient-accent) !important;
  color: #ffffff !important;
  border-color: var(--accent) !important;
}

.btn-accent:hover {
  background: linear-gradient(180deg, #f79e40 0%, #e08528 100%) !important;
}

.btn-primary,
.btn-event {
  background: var(--btn-gradient-primary) !important;
  color: #ffffff !important;
  border-color: var(--primary) !important;
}

.btn-primary:hover,
.btn-event:hover {
  background: linear-gradient(180deg, #9f171f 0%, #171313 100%) !important;
}

.btn-inverse {
  background: var(--btn-gradient-primary) !important;
  color: #ffffff !important;
  border-color: var(--primary) !important;
}

.btn-inverse:hover {
  background: var(--btn-gradient-accent) !important;
  border-color: var(--accent) !important;
}

.btn-outline {
  background: transparent;
  color: #ffffff;
  border-color: #ffffff;
}
.btn-outline:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.btn-outline-event {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}
.btn-outline-event:hover,
.btn-outline-event.active {
  background: var(--primary);
  color: #ffffff;
}

.btn-block {
  display: block;
  width: 100%;
}

/* 1. TOP FIXED TRANSPARENT NAVBAR (OVERLAYS HERO VIDEO) */
.pageheader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
}

.header-bottom {
  background-color: transparent;
  color: #ffffff;
  box-shadow: none;
  transition:
    background-color 0.3s ease,
    box-shadow 0.3s ease,
    backdrop-filter 0.3s ease;
}

.header-bottom .nav.navbar-nav > li > a,
.header-bottom .nav.navbar-nav > li > a:hover,
.header-bottom .nav.navbar-nav > li > a:focus {
  color: #ffffff;
}

.header-bottom .navbar-toggle .icon-bar {
  background-color: #ffffff;
}

/* Once scrolled past the hero top area, fade in a solid bar for readability */
.header-bottom.sticky {
  background-color: #ffffff;
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.header-bottom.sticky .nav.navbar-nav > li > a,
.header-bottom.sticky .nav.navbar-nav > li > a:hover,
.header-bottom.sticky .nav.navbar-nav > li > a:focus {
  color: #111111;
}

.header-bottom.sticky .navbar-toggle .icon-bar {
  background-color: #111111;
}

#header_bottom .navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 75px;
}

.navbar-brand img {
  height: 68px;
  width: auto;
}

.nav.navbar-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
}

.nav.navbar-nav > li {
  position: relative;
}
.nav.navbar-nav > li > a {
  color: #ffffff;
  font-family: var(--font-primary) !important;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.nav.navbar-nav > li > a:hover {
  color: var(--accent);
}

.nav.navbar-nav > li.nav_cta > a {
  display: inline-flex;
  align-items: center;
  justify-content: center; 
  padding: 12px 24px;
  border-radius: 999px !important;
  line-height: 1.2;
  box-shadow: 0 10px 24px rgba(159, 23, 31, 0.25);
}

.nav.navbar-nav > li.nav_cta > a:hover {
  color: #ffffff;
}

.caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 250px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s ease;
  z-index: 110;
}

.dropdown.has-sub:hover .dropdown-menu,
.dropdown.has-sub.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 10px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
}

.dropdown-menu a:hover {
  background-color: var(--light-bg);
  color: var(--accent);
}

.navbar-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.navbar-toggle .icon-bar {
  display: block;
  width: 24px;
  height: 3px;
  background-color: #ffffff;
  margin: 5px 0;
}

@media (min-width: 991px) and (max-width: 1199px) {
  .nav.navbar-nav {
    gap: 4px;
  }

  .nav.navbar-nav > li > a {
    padding-left: 9px;
    padding-right: 9px;
    font-size: 0.82rem;
  }
}

@media (min-width: 991px) {
  .nav.navbar-nav > li > a {
    white-space: nowrap;
  }
}

/* 2. FULL WIDTH HERO BANNER (EXACT FUTURE PHARMA EU ACCENT BORDER & MARGINS) */
.header-top {
  position: relative;
  width: 100vw;
  min-height: 85vh;
  background-color: var(--primary-darkest);
  color: #ffffff;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
}

.hero-accent-block {
  border-left: 3px solid var(--accent) !important;
  padding-left: 1.75rem !important;
  margin-top: 30px;
}

.video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

#video-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgb(0 0 0 / 53%) 0%,
    rgb(0 0 0 / 0%) 100%
  );
  z-index: 2;
}

.hero-content-container {
  position: relative;
  z-index: 3;
  padding-block: 60px 50px;
}

#header-info {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: 24px;
}

#header-info p {
  margin: 0;
}
#header-info p.data:after {
  content: " \2014";
  margin-left: 16px;
  color: var(--accent);
}

/* COUNTDOWN CARD WITH DAYS UNIT */
.countdown-card {
  display: inline-block;
  background: rgba(9, 9, 9, 0.75);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-xl);
  padding: 20px 30px;
}

.countdown-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.countdown-title {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.countdown {
  display: flex;
  gap: 24px;
  margin: 0 0 12px 0;
}

.clock-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.count-number {
  font-family: var(--font-primary) !important;
  font-size: 2.2rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
}
.count-text {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.countdown-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-gold);
  text-decoration: underline;
}

.hero-buttons {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

/* TESTIMONIAL QUOTES SLIDER (UNIFORM HEIGHT & WIDTH FOR ALL SLIDES & IMAGES) */
.gradient-event {
  background: var(--gradient-event);
}
.section-dark {
  background-color: var(--primary-darkest);
  color: #ffffff;
}

#carousel-type-2 {
  position: relative;
  width: 100%;
}

#carousel-type-2 .carousel-inner {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-xl);
}

#carousel-type-2 .carousel-item {
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  width: 100%;
}

#carousel-type-2 .carousel-item.active {
  display: block !important;
  opacity: 1 !important;
}

#carousel-type-2 .carousel-item > .row {
  min-height: 480px !important;
  height: 480px !important;
}

#carousel-type-2 .bg-gradient {
  background: var(--gradient-event) !important;
  box-shadow: 0 10px 30px rgba(23, 19, 19, 0.15);
  height: 100% !important;
  min-height: 480px !important;
  max-height: 480px !important;
}

#carousel-type-2 .card-media {
  height: 100% !important;
  min-height: 480px !important;
  max-height: 480px !important;
  width: 100% !important;
  position: relative;
  display: block;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

#carousel-type-2 .card-media img {
  width: 100% !important;
  height: 100% !important;
  min-height: 480px !important;
  max-height: 480px !important;
  object-fit: cover !important;
  display: block !important;
  position: relative;
  z-index: 1;
  border-radius: var(--radius-xl);
}

.gradient-image:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(159, 23, 31, 0.2) 0%,
    rgba(247, 158, 64, 0.1) 100%
  );
  mix-blend-mode: multiply;
  opacity: 0.4;
  z-index: 2;
  pointer-events: none;
}

.btn-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 1.15rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.btn-arrow:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

/* SPEAKERS SECTION (WHITE BACKGROUND) */
.section-white {
  background-color: #ffffff !important;
  color: var(--text-main) !important;
}

.speaker-card-light {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
}

.speaker-grid-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  width: 100%;
}

.speaker-card-item {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.speaker-card-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.12);
}

.speaker-card-item .card-img-top {
  height: 280px;
  width: 100%;
  overflow: hidden;
  border-bottom: 4px solid var(--accent) !important;
}

.speaker-card-item .card-img-top img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  display: block;
}

.speaker-card-item .card-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
  padding: 1.5rem 1.25rem;
}

.speaker-card-item .card-title {
  font-size: 1.2rem !important;
  margin: 0 0 6px 0;
}

.speaker-card-item .card-text {
  font-size: 0.88rem !important;
  margin: 0;
  line-height: 1.45;
}

/* FAQ ACCORDION ANSWERS TEXT COLOR WHITE */
.faq-body-dark {
  background-color: var(--primary-dark) !important;
  padding: 1.5rem 1.75rem !important;
}

.faq-body-dark p {
  color: #ffffff !important;
  margin: 0;
  font-size: 1.05rem !important;
  line-height: 1.65;
}

.accordion-card {
  overflow: hidden;
}
.accordion-card .card-header {
  padding: 1.5rem 1.75rem !important;
  cursor: pointer;
}

.btn-accordion {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.accordion-card.open .btn-accordion {
  transform: rotate(45deg);
}

.accordion-card .collapse {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.accordion-card.open .collapse {
  max-height: 300px;
}

/* CHOOSE YOUR EXPERIENCE FULL-WIDTH CARDS WITH ARROW CONTROLS */
.exp-slider-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-xl);
}

.exp-slider-track {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  width: 100%;
}

.exp-slider-item {
  min-width: 100%;
  flex: 0 0 100%;
}

/* CHOOSE YOUR EXPERIENCE — dots overlaid on the slide, no white strip, centered */
.exp-dots-nav {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  z-index: 10;
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 0 !important;
}

.exp-dots-nav .dot {
  width: 30px;
  height: 4px;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  margin: 0;
  cursor: pointer;
  transition:
    background 0.3s ease,
    width 0.3s ease;
  border-radius: 2px;
}

.exp-dots-nav .dot.active {
  background: var(--accent);
  width: 44px;
}

/* TIERED SPONSOR LOGOS */
.sponsor-tier-block {
  margin-bottom: 2.5rem;
}

.sponsor-heading {
  text-align: center;
  margin-bottom: 1rem;
}

.sponsors-showcase {
  text-align: center;
  padding: 0.5rem 0 2rem;
  max-width: 1240px;
  margin: 0 auto;
}

.sponsor-tier-row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem 3rem;
  margin: 0 auto 2.2rem;
}

.sponsor-tier-row-3 .sponsor-tier {
  min-width: 250px;
}

.sponsor-tier-row-2 .sponsor-tier {
  min-width: 320px;
}

.sponsor-tier-row-6 {
  max-width: 1100px;
}

.sponsor-tier-row-6 .sponsor-tier {
  flex: 1 1 140px;
  min-width: 140px;
  max-width: 180px;
}

.associate-sponsor-group {
  margin-top: 1rem;
}

.associate-title {
  display: block;
  width: 100%;
  text-align: center;
  margin: 0 0 1rem;
  font-family: var(--font-primary) !important;
  font-size: clamp(1.2rem, 1.8vw, 1.7rem) !important;
  line-height: 1.25;
  color: #0e4f5a;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.sponsor-tier {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.sponsor-tier h3 {
  font-family: var(--font-primary) !important;
  font-size: clamp(1.2rem, 1.8vw, 1.7rem) !important;
  line-height: 1.25;
  color: #0e4f5a;
  margin: 0 0 0.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

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

.sponsor-brand img {
  display: block;
  max-height: 92px;
  width: auto;
  max-width: 291px;
  object-fit: contain;
  filter: none;
  opacity: 1;
}

.sponsor-heading {
  display: block;
  width: 100%;
  text-align: center;
  font-size: clamp(2rem, 3vw, 3rem) !important;
  color: #111111;
}

.sponsor-heading .heading-black {
  color: #111111;
}

.sponsor-heading .heading-red {
  color: var(--primary);
}

@media (max-width: 992px) {
  .sponsor-tier-row-3 .sponsor-tier,
  .sponsor-tier-row-2 .sponsor-tier,
  .sponsor-tier-row-6 .sponsor-tier {
    min-width: 220px;
  }
}

@media (max-width: 767px) {
  .sponsors-showcase {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .sponsor-tier-row {
    gap: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .sponsor-tier h3 {
    font-size: 1.2rem !important;
  }
}

/* COMMUNITY IN NUMBERS */
.stats-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  width: 100%;
}

.stat-card {
  width: 100%;
}

/* HOVER CARDS */
#hover-card-2 .hover-card-item {
  height: 420px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  border-radius: var(--radius-xl);
}

#hover-card-2 .hover-card-item .card-body {
  background: #ffffff;
  width: 100%;
  padding: 1.5rem 1.75rem !important;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0 !important;
  transform: translateY(calc(100% - 70px));
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12);
}

#hover-card-2 .hover-card-item:hover .card-body {
  transform: translateY(0%);
}

#hover-card-2 .hover-card-item .card-title {
  font-size: 1.25rem !important;
  margin: 0;
  height: 40px;
  display: flex;
  align-items: center;
  color: var(--primary) !important;
}

#hover-card-2 .hover-card-item .card-text {
  font-size: 0.95rem !important;
  margin-top: 12px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* FEATURED INSIGHTS BADGE & COLORS */
.badge-tag {
  display: inline-block;
  background-color: var(--accent);
  color: #ffffff;
  padding: 5px 14px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.featured-insights-callout {
  background: rgba(17, 17, 17, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 26px 28px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
  margin-bottom: 18px;
}

.featured-insights-callout h2 {
  margin-top: 14px;
  margin-bottom: 12px;
  color: #ffffff;
}

.pricing-section {
  position: relative;
  overflow: hidden;
  color: #ffffff;
}

.pricing-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at center,
    rgba(255, 255, 255, 0.08),
    transparent 55%
  );
  pointer-events: none;
}

.pricing-title {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  color: #ffffff !important;
  margin-bottom: 12px;
  letter-spacing: -0.03em;
  text-align: center;
}

.pricing-subtitle {
  position: relative;
  z-index: 1;
  color: black;
  line-height: 1.6;
  margin: 0 auto 40px;
  max-width: 760px;
  font-family: var(--font-primary) !important;
  text-align: center;
}

.pricing-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  align-items: stretch;
  max-width: 1180px;
  margin: 0 auto;
}

.pricing-card {
  border-radius: 18px;
  overflow: hidden;
  min-height: 540px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.pricing-card--purple {
  background: linear-gradient(180deg, #ad7a9a 0%, #a77795 100%);
  color: #ffffff;
}

.pricing-card--dark {
  background: rgba(19, 19, 19, 0.95);
  color: #ffffff;
}

.pricing-card__header {
  padding: 34px 28px 18px;
  text-align: center;
}

.pricing-card__header h3 {
  margin: 0;
  font-size: clamp(1.6rem, 2.4vw, 2.4rem) !important;
  line-height: 1.15;
  color: #ffffff;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-family: var(--font-primary) !important;
}

.pricing-card__header p {
  margin: 10px 0 16px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  font-weight: 500;
  font-family: var(--font-primary) !important;
}

.pricing-amount {
  font-size: clamp(2.1rem, 2.8vw, 2.8rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #f7b56d;
  font-family: var(--font-primary) !important;
}

.pricing-features {
  list-style: none;
  margin: 0;
  padding: 0 18px 0;
  background: rgba(255, 255, 255, 0.92);
  flex: 1;
}

.pricing-features li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 18px;
  border-top: 1px solid rgba(34, 34, 34, 0.18);
  color: #1d1d1d;
  font-size: 1.02rem;
  line-height: 1.4;
  font-family: var(--font-primary) !important;
}

.pricing-features li:first-child {
  border-top: none;
}

.check {
  color: #1d1d1d;
  font-size: 1.45rem;
  font-weight: 700;
}

.pricing-button {
  margin: 24px 18px 18px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  padding: 18px 28px;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: var(--font-primary) !important;
}

.pricing-button--light {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.pricing-button--dark {
  background: rgba(0, 0, 0, 0.7);
  color: #ffffff;
}

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

/* ATMOSPHERE CLIP PATH */
.clip-path-mobile {
  clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
}

/* GALLERY SLIDER SLICK-STYLE FORMAT */
.gallery-slider-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
}

/* .gallery-slider-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
  width: 100%;
} */

/* .gallery-slide-item {
  min-width: 100%;
  flex: 0 0 100%;
  position: relative;
  height: 500px;
  overflow: hidden;
} */

.gallery-slider-track {
  display: flex;
  align-items: center;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  width: 100%;
}

.gallery-slide-item {
  min-width: 65%;
  flex: 0 0 65%;
  position: relative;
  height: 480px;
  overflow: hidden;
  border-radius: var(--radius-xl);
  transform: scale(0.88);
  opacity: 0.5;
  transition:
    transform 0.6s cubic-bezier(0.25, 1, 0.5, 1),
    opacity 0.6s ease;
}

.gallery-slide-item.active {
  transform: scale(1);
  opacity: 1;
  z-index: 2;
}

/* hide caption on the peeking side slides */
.gallery-caption {
  opacity: 0;
  transition: opacity 0.4s ease 0.15s;
}
.gallery-slide-item.active .gallery-caption {
  opacity: 1;
}

/* center the dots over the active image like the reference */
.gallery-dots-nav {
  left: 0;
  right: 0;
  justify-content: center;
  bottom: 16px;
}

.gallery-slide-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 36px 44px;
  background: linear-gradient(
    transparent 0%,
    rgba(9, 9, 9, 0.85) 40%,
    rgba(9, 9, 9, 0.96) 100%
  );
  color: #ffffff;
}

.gallery-caption h3 {
  font-size: 1.85rem !important;
  color: #ffffff;
  margin: 6px 0 8px 0;
}

.gallery-caption p {
  font-size: 1.05rem !important;
  margin: 0;
  opacity: 0.9;
  max-width: 800px;
}

.gallery-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgb(9 9 9 / 25%);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  font-size: 1.35rem;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

/* Smaller Experience slider arrows so they don't overlap the copy */
.exp-slider-container .gallery-nav-btn {
  width: 36px;
  height: 37px;
  font-size: 1rem;
}
.exp-slider-container .gallery-nav-btn.prev {
  left: 0px;
}
.exp-slider-container .gallery-nav-btn.next {
  right: 0px;
}

.gallery-nav-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-50%) scale(1.08);
}

.gallery-nav-btn.prev {
  left: 24px;
}
.gallery-nav-btn.next {
  right: 24px;
}

.gallery-dots-nav {
  position: absolute;
  bottom: 20px;
  right: 44px;
  z-index: 10;
  display: flex;
  gap: 8px;
}

.gallery-dots-nav .dot {
  width: 32px;
  height: 4px;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  border-radius: 2px;
  transition:
    background 0.3s ease,
    width 0.3s ease;
}

.gallery-dots-nav .dot.active {
  background: var(--accent);
  width: 44px;
}

/* FOOTER STYLING */
#sb-footer {
  background-color: var(--primary) !important;
  color: #ffffff;
}

#sb-footer .footer-logo {
  height: 68px !important;
  width: auto !important;
  max-width: 160px !important;
}

#sb-footer a {
  color: #ffffff;
}
#sb-footer a:hover {
  color: var(--accent);
}

/* STANDALONE SPEAKERS DIRECTORY */
.speakers-page {
  background: #f8fafc;
}

.speakers-hero {
  position: relative;
  overflow: hidden;
  min-height: 390px;
  display: flex;
  align-items: center;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgb(0 0 0 / 53%) 0%, rgb(0 0 0 / 0%) 100%),
    url("../images/tars-home.webp") center / cover;
}

.speakers-hero::after {
  position: absolute;
  right: -8%;
  bottom: -42%;
  width: 48%;
  height: 90%;
  border: 1px solid rgba(255, 204, 105, 0.35);
  border-radius: 50%;
  content: "";
  transform: rotate(-20deg);
}

.speakers-hero-inner {
  position: relative;
  z-index: 1;
  padding-top: 72px;
  padding-bottom: 72px;
}

.speakers-hero h1 {
  max-width: 780px;
  margin-bottom: 20px;
  font-size: clamp(2.3rem, 5vw, 4.8rem) !important;
}

.speakers-hero h1 span {
  color: var(--accent-gold);
}

.speakers-hero p:not(.eyebrow) {
  max-width: 650px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.1rem;
}

.eyebrow {
  margin-bottom: 12px;
  margin-top: 30px;
  color: var(--accent);
  font-size: 0.75rem !important;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase !important;
}

.speakers-directory {
  padding-top: 72px;
  padding-bottom: 72px;
}

.speaker-section-heading {
  margin-bottom: 28px;
  border-left: 5px solid var(--accent);
  padding-left: 20px;
}

.speaker-section-heading h2 {
  margin-bottom: 0;
  color: var(--primary-dark);
}

.previous-heading {
  margin-top: 80px;
}

.speakers-page .speaker-grid-container {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.speakers-page .speaker-card-item {
  min-width: 0;
  border: 1px solid rgba(23, 19, 19, 0.08) !important;
  border-radius: 8px;
  text-decoration: none;
}

.speakers-page .speaker-card-item .card-img-top {
  height: 250px;
  background: #eee;
}

.speakers-page .speaker-card-item .card-body {
  min-height: 106px;
  padding: 18px 20px 20px;
}

.speakers-page .speaker-card-item .card-title {
  color: var(--primary-dark) !important;
  font-size: 1.05rem !important;
  line-height: 1.3;
}

.speakers-page .speaker-card-item .card-text {
  color: var(--text-muted) !important;
  font-size: 0.84rem !important;
}

.speakers-page .speaker-card-item .card-text strong {
  display: inline-block;
  margin-top: 4px;
  color: var(--primary) !important;
  font-weight: 600;
}

.speakers-cta {
  padding: 72px 20px 84px;
  color: #ffffff;
  background: black;
}

.speakers-cta h2 {
  margin-bottom: 28px;
  color: #ffffff;
}

/* Responsive Adjustments */
@media (max-width: 990px) {
  .col-md-11,
  .col-md-10,
  .col-md-9,
  .col-md-8,
  .col-md-7,
  .col-md-6,
  .col-md-5,
  .col-md-4,
  .col-md-3,
  .col-md-2,
  .col-md-15 {
    flex: 0 0 100%;
    max-width: 100%;
  }

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

  .speakers-page .speaker-grid-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  #carousel-type-2 .carousel-item > .row,
  #carousel-type-2 .bg-gradient,
  #carousel-type-2 .card-media,
  #carousel-type-2 .card-media img {
    min-height: 380px !important;
    height: auto !important;
    max-height: none !important;
  }

  .navbar-toggle {
    display: block;
  }

  .navbar-collapse.collapse {
    display: none;
    position: fixed;
    top: 72px;
    right: 0;
    width: 280px;
    height: 100vh;
    background-color: var(--primary-dark);
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  }

  .navbar-collapse.collapse.open {
    display: block;
  }

  .nav.navbar-nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    box-shadow: none;
    display: none;
    padding-left: 16px;
  }

  .dropdown.has-sub.open .dropdown-menu {
    display: block;
  }

  .dropdown-menu a {
    color: rgba(255, 255, 255, 0.8);
  }

  .clip-path-mobile {
    clip-path: none;
    min-height: 240px;
  }

  .gallery-slide-item {
    min-width: 82%;
    flex: 0 0 82%;
    height: 340px;
  }

  .gallery-caption {
    padding: 20px 24px;
  }

  .gallery-caption h3 {
    font-size: 1.4rem !important;
  }
}

@media (max-width: 576px) {
  .speaker-grid-container {
    grid-template-columns: 1fr;
  }

  .speakers-page .speaker-grid-container {
    grid-template-columns: 1fr;
  }

  .speakers-hero {
    min-height: 340px;
  }

  .speakers-hero-inner {
    padding-top: 54px;
    padding-bottom: 54px;
  }

  .speakers-directory {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .previous-heading {
    margin-top: 56px;
  }

  .logo-grid-flex,
  .bronze-logo-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid-4 {
    grid-template-columns: 1fr;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

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

/* AGENDA: image column matches accordion block height */
.agenda-row > [class*="col-"] {
  display: flex;
  flex-direction: column;
}
.agenda-image-wrap {
  flex: 1 1 auto;
  min-height: 100%;
}
.agenda-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 767.98px) {
  .agenda-image {
    height: 320px;
  }
}

/* GALLERY: transparent, no white card behind slides */
.gallery-slider-container {
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}
.gallery-slider-track {
  will-change: transform;
}
.gallery-slider-track.no-anim {
  transition: none !important;
}

/* Full-bleed gallery with previous/next image peeks */
.gallery-full-bleed {
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-left: 0;
  padding-right: 0;
  overflow: hidden;
}

.gallery-viewport {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.gallery-slide {
  flex: 0 0 86%;
  margin: 0 4px;
}

@media (max-width: 767px) {
  .gallery-slide {
    flex-basis: 82%;
  }
}

/* ==========================================================================
   RESPONSIVE OVERHAUL + FULL-WIDTH GALLERY  (loaded last, wins the cascade)
   ========================================================================== */

/* --- 1. Global overflow safety (keeps 100vw sections from creating h-scroll) --- */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}
#sb-wrapper {
  overflow-x: clip;
}
img,
video,
iframe,
table {
  max-width: 100%;
}

/* --- 2. FULL-WIDTH GALLERY --------------------------------------------------
   The slider container itself becomes full-bleed (edge to edge of the viewport)
   while keeping overflow:hidden, so the peeking slides never create a
   horizontal scrollbar on phones. Only the heading stays inside the grid.     */
#gallery .gallery-slider-container {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow: hidden; /* keep this: it is what protects mobile layout */
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
#gallery .gallery-slider-track {
  width: 100%;
}
#gallery .gallery-slide-item {
  min-width: 62%;
  flex: 0 0 62%;
  height: clamp(320px, 46vw, 620px);
}

@media (max-width: 1199px) {
  #gallery .gallery-slide-item {
    min-width: 72%;
    flex-basis: 72%;
  }
}
@media (max-width: 990px) {
  #gallery .gallery-slide-item {
    min-width: 84%;
    flex-basis: 84%;
    height: 360px;
  }
}
@media (max-width: 767px) {
  #gallery .gallery-slide-item {
    min-width: 90%;
    flex-basis: 90%;
    height: 300px;
  }
  #gallery .gallery-caption {
    padding: 16px 18px;
  }
  #gallery .gallery-caption h3 {
    font-size: 1.1rem !important;
  }
  #gallery .gallery-caption p {
    font-size: 0.9rem !important;
  }
  #gallery .gallery-caption .badge-tag {
    font-size: 0.65rem;
    padding: 4px 10px;
  }
}
@media (max-width: 767px) {
  .gallery-nav-btn {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }
  .gallery-nav-btn.prev {
    left: 10px;
  }
  .gallery-nav-btn.next {
    right: 10px;
  }
  .gallery-dots-nav {
    bottom: 10px;
  }
  .gallery-dots-nav .dot {
    width: 20px;
    height: 3px;
  }
  .gallery-dots-nav .dot.active {
    width: 28px;
  }
}

/* --- 3. MOBILE NAVIGATION (hamburger drawer, fully working) --- */
#navScrim {
  position: fixed;
  inset: 0;
  background: rgba(9, 9, 9, 0.55);
  z-index: 990; /* below the header stacking context (z-index:1000) */
  border: 0;
  padding: 0;
}
#navScrim[hidden] {
  display: none;
}

@media (min-width: 991px) {
  #navScrim {
    display: none !important;
  }
}

@media (max-width: 990px) {
  .navbar-toggle {
    display: block !important;
    position: relative;
    z-index: 1300;
  }
  #header_bottom .navbar {
    min-height: 66px;
  }
  .navbar-brand img {
    height: 34px;
  }

  .navbar-collapse.collapse,
  #navbar.navbar-collapse {
    display: block !important; /* slide instead of display toggle */
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    height: 100dvh;
    width: min(320px, 86vw);
    max-width: 86vw;
    background-color: var(--primary-dark);
    padding: 84px 20px 40px;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.35);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateX(105%);
    transition: transform 0.32s cubic-bezier(0.25, 1, 0.5, 1);
    visibility: hidden;
    z-index: 1200;
  }

  .navbar-collapse.collapse.open,
  #navbar.navbar-collapse.open {
    transform: translateX(0);
    visibility: visible;
  }

  .nav.navbar-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    width: 100%;
  }
  .nav.navbar-nav > li {
    width: 100%;
  }
  .nav.navbar-nav > li > a {
    width: 100%;
    padding: 14px 6px;
    justify-content: space-between;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
  }

  .dropdown-menu {
    position: static;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: none;
    border-radius: 8px;
    min-width: 0;
    width: 100%;
    padding: 4px 0;
    margin: 6px 0 10px;
  }
  .dropdown.has-sub:hover .dropdown-menu {
    display: none;
  }
  .dropdown.has-sub.open .dropdown-menu {
    display: block;
  }
  .dropdown-menu a {
    color: rgba(255, 255, 255, 0.85);
    padding: 10px 16px;
  }
  .dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent);
  }

  body.nav-open {
    overflow: hidden;
  }
}

/* --- 4. General responsive layout polish --- */
@media (max-width: 1199px) {
  .speaker-grid-container {
    grid-template-columns: repeat(3, 1fr);
  }
  .bronze-logo-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 990px) {
  .container,
  .container-fluid {
    padding-left: 16px;
    padding-right: 16px;
  }
  .row {
    margin-left: -10px;
    margin-right: -10px;
  }
  [class*="col-"] {
    padding-left: 10px;
    padding-right: 10px;
  }
  .speaker-grid-container,
  .logo-grid-flex,
  .bronze-logo-grid,
  .stats-grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .my-5 {
    margin-top: 2.25rem !important;
    margin-bottom: 2.25rem !important;
  }
  .py-5 {
    padding-top: 2.25rem !important;
    padding-bottom: 2.25rem !important;
  }
  .px-5 {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
  }
  .p-4 {
    padding: 1.25rem !important;
  }
  .header-top {
    min-height: 78vh;
  }
}

@media (max-width: 767px) {
  html {
    scroll-padding-top: 70px;
  }
  body {
    font-size: 15px;
  }
  .fa-5x {
    font-size: 2.2rem !important;
  }
  .fa-4x {
    font-size: 2rem !important;
  }
  .fa-3x {
    font-size: 1.7rem !important;
  }
  .fa-2x {
    font-size: 1.25rem !important;
  }
  .fa-lg {
    font-size: 1rem !important;
  }
  .btn {
    white-space: normal;
    text-align: center;
    padding: 12px 18px;
    font-size: 0.8rem;
  }
  .btn-lg {
    padding: 13px 20px;
    font-size: 0.82rem;
  }
  .btn-block-sm,
  .header-top .btn {
    width: auto;
  }
  .speaker-card-item .card-img-top {
    height: 220px;
  }
  #hover-card-2 .hover-card-item {
    height: 340px;
  }
  .logo-box-item {
    min-height: 96px;
    padding: 1.1rem;
  }
  .logo-box-item img,
  .logo-box-lg img {
    max-height: 54px;
  }
  .exp-slider-container .gallery-nav-btn {
    width: 30px;
    height: 30px;
    font-size: 0.85rem;
  }
  .agenda-image {
    height: 240px;
  }
  table {
    display: block;
    width: 100%;
    overflow-x: auto;
  }
}

@media (max-width: 575px) {
  .speaker-grid-container,
  .logo-grid-flex,
  .bronze-logo-grid,
  .stats-grid-4 {
    grid-template-columns: 1fr;
  }
  .countdown-card {
    width: 100% !important;
    max-width: 100% !important;
  }
  .d-flex.gap-3 {
    flex-wrap: wrap;
  }
}

/* Screen-reader-only helper (was missing; the burger label was visible) */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================
   INSIGHTS HOVER CARDS — MOBILE / TOUCH FIX
   Hover doesn't exist on touch devices, so the
   card body must be fully visible by default.
   ============================================ */
@media (max-width: 990px) {
  /* Keep both insights layouts readable when desktop column widths no longer fit. */
  #hover-card-2,
  .section-dark.gradient-event > .container > .row {
    display: block;
  }
  #hover-card-2 > [class*="col-"],
  .section-dark.gradient-event > .container > .row > [class*="col-"] {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
  }
  .section-dark.gradient-event .btn {
    width: 100%;
  }
  #hover-card-2 .hover-card-item {
    height: auto !important;
    min-height: 300px;
    align-items: flex-end;
  }
  #hover-card-2 .hover-card-item .card-body {
    transform: none !important;
    padding: 1.25rem 1.25rem !important;
    background: rgba(255, 255, 255, 0.96);
  }
  #hover-card-2 .hover-card-item .card-title {
    height: auto;
    display: block;
    font-size: 1.15rem !important;
    line-height: 1.35;
  }
  #hover-card-2 .hover-card-item .card-text {
    font-size: 0.92rem !important;
    margin-top: 8px;
  }
  #hover-card-2 > [class*="col-"] {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

@media (max-width: 575px) {
  #hover-card-2 .hover-card-item {
    min-height: 260px;
  }
  #hover-card-2 .hover-card-item .card-body {
    padding: 1rem !important;
  }
  #hover-card-2 .hover-card-item .card-title {
    font-size: 1.05rem !important;
  }
  #hover-card-2 .hover-card-item .card-text {
    font-size: 0.88rem !important;
  }
}

/* Also reveal on tap/focus for hybrid devices */
@media (hover: none) {
  #hover-card-2 .hover-card-item .card-body {
    transform: none !important;
  }
}

/* ==========================================================================
   COPY-PASTE TWEAKS: hamburger right + footer page-nav left aligned
   ========================================================================== */

/* 1. Hamburger / navbar toggle on the RIGHT of the header */
.navbar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.navbar-toggle {
  order: 2; /* move burger to the right */
  margin-left: auto; /* push it as far right as possible */
}

.navbar-brand {
  order: 1; /* keep logo on the left */
}

/* Shared TARS header only. Loaded AFTER page CSS; no rules target page content. */
.tars-header, .tars-header *, .tars-header *::before, .tars-header *::after { box-sizing: border-box; }
.tars-header { --tars-red:#9f171f; --tars-orange:#f79e40; --tars-ink:#171313; --tars-font:"Poppins","Helvetica Neue",Arial,sans-serif; position:fixed; top:0; left:0; right:0; width:100%; z-index:1000; font-family:var(--tars-font); font-size:16px; line-height:1.6; }
.tars-header-bar { background:transparent; color:#fff; box-shadow:none; transition:background-color .3s ease,box-shadow .3s ease; }
.tars-header-bar.sticky, .tars-legacy-page .tars-header-bar { background:#fff; color:#111; box-shadow:0 4px 20px rgba(0,0,0,.2); }
.tars-header-container { width:100%; max-width:1240px; padding:0 20px; margin:0 auto; }
.tars-navbar { display:flex; align-items:center; justify-content:space-between; min-height:75px; margin:0; padding:0; border:0; border-radius:0; background:none; box-shadow:none; }
.tars-navbar-header { display:flex; align-items:center; justify-content:space-between; flex:none; }
.tars-navbar-brand { display:block; margin:0; padding:0; height:auto; float:none; line-height:normal; }
.tars-header-logo { display:block; height:68px; width:auto; max-width:100%; object-fit:contain; }
.tars-navbar-collapse { display:block; padding:0; margin:0; height:auto; border:0; box-shadow:none; background:none; }
.tars-nav, .tars-dropdown { margin:0; list-style:none; }
.tars-nav { display:flex; align-items:center; gap:12px; padding:0; float:none; }
.tars-nav-item { position:relative; display:block; float:none; margin:0; padding:0; }
.tars-header .tars-nav-item > a { display:flex; align-items:center; gap:6px; padding:12px 16px; font-family:var(--tars-font); font-size:.9rem; font-weight:700; line-height:1.6; text-transform:uppercase; color:#fff; text-decoration:none; background:none; border:0; transition:color .3s ease; }
.tars-header .tars-nav-item > a:hover, .tars-header .tars-nav-item > a:focus { color:var(--tars-orange); text-decoration:none; background:none; }
.tars-header-bar.sticky .tars-nav-item > a, .tars-legacy-page .tars-header .tars-nav-item > a { color:#111; }
.tars-header-bar.sticky .tars-nav-item > a:hover, .tars-legacy-page .tars-header .tars-nav-item > a:hover { color:var(--tars-orange); }
.tars-caret { display:inline-block; width:0; height:0; margin:0; vertical-align:middle; border-left:4px solid transparent; border-right:4px solid transparent; border-top:5px solid currentColor; }
.tars-header .tars-dropdown { display:block; position:absolute; top:100%; left:0; min-width:250px; padding:8px 0; border:0; border-radius:8px; background:#fff; box-shadow:0 10px 30px rgba(0,0,0,.15); opacity:0; visibility:hidden; transform:translateY(10px); transition:opacity .2s ease,transform .2s ease,visibility .2s ease; z-index:110; float:none; }
.tars-header .tars-has-sub:hover > .tars-dropdown, .tars-header .tars-has-sub:focus-within > .tars-dropdown, .tars-header .tars-has-sub.open > .tars-dropdown { opacity:1; visibility:visible; transform:translateY(0); }
.tars-header .tars-dropdown li { display:block; float:none; margin:0; padding:0; }
.tars-header .tars-dropdown a { display:block; padding:10px 18px; font-family:var(--tars-font); font-size:.88rem; font-weight:600; line-height:1.6; color:var(--tars-red); text-decoration:none; white-space:normal; background:none; }
.tars-header .tars-dropdown a:hover, .tars-header .tars-dropdown a:focus { color:var(--tars-orange); background:#f8fafc; text-decoration:none; }
.tars-header .tars-nav-cta > .tars-header-btn { display:inline-flex; justify-content:center; padding:12px 24px; border:2px solid var(--tars-red); border-radius:999px; line-height:1.2; color:#fff !important; background:linear-gradient(180deg,#c41e27 0%,#9f171f 100%); box-shadow:0 10px 24px rgba(159,23,31,.25); white-space:nowrap; }
.tars-header .tars-nav-cta > .tars-header-btn:hover, .tars-header .tars-nav-cta > .tars-header-btn:focus { color:#fff; background:linear-gradient(180deg,#9f171f 0%,#171313 100%); }
.tars-navbar-toggle { display:none; margin:0; padding:8px; border:0; border-radius:0; background:none; cursor:pointer; }
.tars-header .tars-icon-bar { display:block; width:24px; height:3px; margin:5px 0; border:0; border-radius:0; background:#fff; }
.tars-header-bar.sticky .tars-icon-bar, .tars-legacy-page .tars-header .tars-icon-bar { background:#111 !important; }
.tars-sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
/* Existing Home scrim keeps its original ID for the original Home script. */
#navScrim { position:fixed; inset:0; z-index:990; background:rgba(9,9,9,.55); border:0; padding:0; }
#navScrim[hidden] { display:none; }
@media (min-width:991px) and (max-width:1199px) { .tars-nav { gap:4px; } .tars-header .tars-nav-item > a { padding-left:9px; padding-right:9px; font-size:.82rem; } }
@media (min-width:991px) { .tars-header .tars-nav-item > a { white-space:nowrap; } #navScrim { display:none!important; } }
@media (max-width:990px) {
 .tars-navbar { min-height:66px; }
 .tars-navbar-header { width:100%; }
 .tars-header-logo { height:34px; }
 .tars-navbar-toggle { display:block; position:relative; z-index:1300; margin-left:auto; order:2; }
 .tars-navbar-brand { order:1; }
 .tars-header .tars-navbar-collapse { display:block!important; position:fixed; top:0; right:0; bottom:0; width:min(320px,86vw); max-width:86vw; height:100dvh; padding:84px 20px 40px; overflow-y:auto; background:var(--tars-ink); box-shadow:-10px 0 30px rgba(0,0,0,.35); -webkit-overflow-scrolling:touch; transform:translateX(105%); transition:transform .32s cubic-bezier(.25,1,.5,1),visibility .32s; visibility:hidden; z-index:1200; }
 .tars-header .tars-navbar-collapse.open { transform:translateX(0); visibility:visible; }
 .tars-header .tars-icon-bar, .tars-header-bar.sticky .tars-icon-bar, .tars-legacy-page .tars-header .tars-icon-bar { background:#fff; }
 .tars-nav { flex-direction:column; align-items:stretch; gap:2px; width:100%; }
 .tars-nav-item { width:100%; }
 .tars-header .tars-nav-item > a, .tars-header-bar.sticky .tars-nav-item > a, .tars-legacy-page .tars-header .tars-nav-item > a { width:100%; padding:14px 6px; justify-content:space-between; font-size:.95rem; color:#fff; border-bottom:1px solid rgba(255,255,255,.12); }
 .tars-header .tars-dropdown { display:none; position:static; min-width:0; width:100%; padding:4px 0; margin:6px 0 10px; opacity:1; visibility:visible; transform:none; background:rgba(255,255,255,.06); box-shadow:none; }
 .tars-header .tars-has-sub:hover > .tars-dropdown { display:none; }
 .tars-header .tars-has-sub.open > .tars-dropdown { display:block; }
 .tars-header .tars-dropdown a { color:rgba(255,255,255,.85); padding:10px 16px; }
 .tars-header .tars-dropdown a:hover { color:var(--tars-orange); background:rgba(255,255,255,.1); }
 .tars-header .tars-nav-cta > .tars-header-btn, .tars-legacy-page .tars-header .tars-nav-cta > .tars-header-btn { justify-content:center !important; border:2px solid var(--tars-red); border-radius:999px; background:linear-gradient(180deg,#c41e27 0%,#9f171f 100%); color:#fff; }
}
@media (prefers-reduced-motion:reduce) { .tars-header *, .tars-header-bar { transition:none!important; } }
/* Shared TARS footer only; never alters Bootstrap or legacy page content. */
.tars-footer, .tars-footer *, .tars-footer *::before, .tars-footer *::after { box-sizing:border-box; }
.tars-footer {padding:3.5rem 0; background:#9f171f!important; background-image:none!important; color:#fff; font-family:"Poppins","Helvetica Neue",Arial,sans-serif; font-size:16px; line-height:1.6; overflow:hidden; }
.tars-footer-container { width:100%; max-width:1240px; margin:0 auto; padding:0 20px; }
.tars-footer-row { display:flex; flex-wrap:wrap; align-items:center; margin:0 -15px; padding:2.5rem 0; }
.tars-footer-info-col { flex:0 0 66.666667%; max-width:66.666667%; padding:0 15px; }
.tars-footer-links-col { flex:0 0 auto; max-width:100%; margin-left:auto; padding:0 15px; }
.tars-footer p, .tars-footer #footer-contact p { color:#fff; font-family:inherit; font-size:1rem; line-height:1.6; margin:0 0 1rem; }
.tars-footer .tars-footer-p { margin-bottom:.25rem!important; }
.tars-footer .tars-footer-p-last { margin-bottom:0!important; }
.tars-footer-logo { display:block; height:68px!important; width:auto!important; max-width:160px!important; margin:3cap 0 1rem; object-fit:contain; }
.tars-footer-contact { margin-top:1rem; color:rgba(255,255,255,.8); }
.tars-footer .tars-footer-contact p { color:rgba(255,255,255,.8); }
.tars-footer a { color:#fff; text-decoration:none; background:none; }
.tars-footer a:hover, .tars-footer a:focus { color:#f79e40; text-decoration:none; }
.tars-footer .tars-footer-accent { color:#f79e40; }
.tars-footer-links { display:grid; padding:0; margin:.5rem 0 0; list-style:none; }
.tars-footer-link-item { display:inline-block; margin:0 5px 0 0; padding:0; list-style:none; }
.tars-footer .tars-footer-link { color:#fff; font-size:.875rem; white-space:nowrap; }
.tars-footer .tars-footer-link:hover { color:#f79e40; }
.tars-footer-copyright { margin-top:1.5rem; text-align:center; color:rgba(255,255,255,.8); }
@media (max-width:767px) { .tars-footer-info-col { flex:0 0 100%; max-width:100%; } .tars-footer-links-col { margin:1.5rem 0 0; } }
