:root {
  /* --primary: #65d8bb; */
  --primary: #203b1b;
  --primary-dark: #4f46e5;
  --link: #b91c1c;
  --secondary: #1e293b;
  --dark: #1e202c;
  --muted: #64748b;
  --light: #f1f5f9;
  --accent: #c9a227;
  --secondary: #ec4899;
  --surface: #ffffff;
  --slate-900: #0f172a;
  --slate-600: #475569;
  --slate-200: #e2e8f0;
}

* {
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

body {
  margin: 0;
  color: var(--dark);
  /* padding-top: 70px; */
  overflow-wrap: break-word;
  word-wrap: break-word;
}

h1,
h2,
h3 {
  letter-spacing: -0.5px;
}

h2 {
  font-size: 36px;
  position: relative;
}
a {
  color: var(--link);
  font-weight: 700;
  text-decoration: none;
  /* position: relative; */
}
a:hover {
  color: var(--primary) !important;
  text-decoration: none;
}

.pdf-btn {
  border-radius: 15px;
}
.pdf-btn:hover {
  color: var(--slate-200) !important;
  background-color: var(--primary) !important;
}


.navbar-brand {
  /* font-size: 1.4rem; */
  font-weight: 600;
  color: var(--primary) !important;
}
.navbar-nav .nav-link {
  font-weight: 500;
}
/* Styling for the link when clicked, hovered, or active via scroll */
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary) !important;
  font-weight: 600;
  transition: color 0.15s ease-in-out;
}
/* --- ADD THIS FOR MOBILE DEVICES BELOW 425px --- */
@media (max-width: 425px) {
  .navbar-toggler-icon {
    font-size: 0.8rem; /* Shrinks the hamburger icon slightly for better fit */
  }
  .navbar-brand {
    font-size: 5vw; /* Shrinks text slightly so it shares the line with the toggle icon */
    white-space: nowrap;
  }
}
/* GLOBAL SECTION BASE */
.section {
  padding: 40px 0;
}

/* Density modifiers */
.section--compact {
  padding: 60px 0;
}

.section--comfortable {
  padding: 80px 0;
}

.section--spacious {
  padding: 100px 0;
}

.section.light {
  background: linear-gradient(to bottom, #f8fafc, #eef2f7);
}

/* LIGHT SECTION TEXT */
.section.light h1,
.section.light h2,
.section.light h3,
.section.light h4,
.section.light h5,
.section.light p {
  color: var(--primary);
}

.section.dark {
  background: linear-gradient(135deg, #f8fafc, #9bd160);
}

.section.bright {
  background: linear-gradient(135deg, #f7f1b8, #f8fafc);
}
.section.bright-1 {
  background: linear-gradient(135deg, #f8fafc, #f7f1b8);
}

/* DARK SECTION TEXT */
.section.dark h1,
.section.dark h2,
.section.dark h3,
.section.dark h4,
.section.dark h5,
.section.dark p {
  color: var(--primary);
}

/* &&&&&&&&&&&&& GLOBAL SECTION CSS &&&&&&&&&&&&&&&&&&&&&&& */
/* GLOBAL SECTION TITLE */
.section-title {
  max-width: 800px;
  margin: 0 auto 30px;
  text-align: center;
  padding: 0 20px;
}

.section-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--primary);
  margin-bottom: 16px;
}

/* Adding the decorative lines */
.section-eyebrow::before,
.section-eyebrow::after {
  content: "";
  width: 20px;
  height: 2px;
  background-color: var(--primary);
  border-radius: 2px;
}

.section-heading {
  font-size: clamp(1.5rem, 5vw, 3rem);
  /* Responsive sizing: shrinks on mobile */
  font-weight: 600;
  /* Heavier weight for a "bold" conference feel */
  line-height: 1.1;
  color: var(--primary);
  letter-spacing: -0.02em;
  /* Tightened tracking for headings */
}

.section-heading span,
.agenda-day h3 span {
  /* A more subtle, premium gradient */
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  max-width: 600px;
  margin: 20px auto 0;
  font-size: 18px;
  line-height: 1.6;
  color: var(--slate-600);
  font-weight: 400;
}

/* 1. Wrap the entire item in a subtle, clean border wrapper */
.accordion-item {
  border: 1px solid #c9c5a0 !important; /* A muted warm border that blends with the yellow */
  border-radius: 8px !important;
  overflow: hidden; /* Fixes background bleeding out of rounded corners */
  margin-bottom: 0.75rem; /* Neatly separates multiple accordions */
}

/* 2. Custom Accordion Header */
.accordion-button {
  background: var(--primary) !important;
  color: var(--light);
  font-weight: 600;
  border: none !important;
  box-shadow: none !important;
}

/* Keeps style consistent when expanded & removes the harsh Bootstrap blue focus ring */
.accordion-button:not(.collapsed) {
  background: var(--light) !important;
  color: #212529;
  box-shadow: none !important;
  border-bottom: 1px solid #e2ddb4 !important; /* Elegant divider line between header and text */
}

/* 1. CLOSED STATE: Makes the arrow dark charcoal gray */
.accordion-button.collapsed::after {
  filter: invert(1) brightness(2) !important;
  transition: filter 0.2s ease; /* Adds a smooth transition when clicking */
}

/* 2. OPEN STATE: Inverts the dark arrow to turn it completely white */
.accordion-button:not(.collapsed)::after {
  filter: brightness(0.15) !important;
}

/* 3. Soft, Elegant Accordion Body */
.accordion-body {
  background: linear-gradient(135deg, #f8fafc, #f7f1b8) !important;
  color: #222222 !important;
  padding: 1.5rem;
  text-align: justify;
  border: none !important;
  border-radius: 0 !important;
}
#contact,
#media,
#registration {
  min-height: 92vh;
}

/* BUTTONS */
.btn-primary-custom {
  background: var(--primary);
  color: var(--surface);
  border: none;
}
.btn-primary-custom:hover {
  color: var(--primary);
  border: none;
}

.register-btn {
  background: var(--primary);
}
#registration .bi {
  color: var(--primary) !important;
}
/* ================= ABOUT SECTION ================= */
/* Clean text layout utilities */
.tracking-wider {
  letter-spacing: 1px;
}

/* Enhances card depth cleanly on hover */
#about .bg-light {
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

#about .bg-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04) !important;
}
#about .font-monospace {
  opacity: 0.6;
}
#about .h4,
#about p,
#about .font-monospace {
  color: var(--primary) !important;
  border-color: var(--primary) !important;
}
@media (max-width: 425px) {
  .section--comfortable {
    padding: 50px 0;
  }
}
/* ================= ABOUT SECTION ENDS ================= */

/* ================= SPEAKERS SECTION ================= */

/* Card */
.speaker-card {
  background: var(--light);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
  height: 100%;
  padding: 1.25rem;
}
.contact-card {
  background: var(--light);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
  height: 100%;
  /* padding: 1.5rem; */
}

/* Hover */
.speaker-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.15);
}

/* Image wrapper */
.speaker-image {
  position: relative;
  height: auto;
  overflow: hidden;
  /* padding: 1.5rem; */
}

/* Image */
.speaker-image img {
  display: block;
  margin: auto;
  /* margin-top: 15px; */
  border-radius: 10%;
  border: 1px solid var(--primary);
  transition: transform 0.5s ease;
}

/* Zoom on hover */
.speaker-card .speaker-image img:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Info */
.speaker-info {
  padding-top: 1rem;
  text-align: center;
}
.speaker-info span.badge {
  padding: 0.75rem;
  font-size: 1rem;
  background-color: var(--primary) !important;
  margin: 0;
}

.speaker-info h4 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--primary);
}

.speaker-info p {
  margin-top: 6px;
  margin-bottom: 0px;
  font-size: 14px;
  color: var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
  .speaker-image {
    height: 220px;
  }

  .section-header h2 {
    font-size: 28px;
  }
}
/* ================= SPEAKERS SECTION ENDS ================= */

/* ================= AGENDA SECTION ================= */
#agenda .section-title {
  margin: 0 auto 10px;
}

.tracking-wide {
  font-size: 1.5rem;
}

.agenda-header-centered {
  text-align: center;
  padding: 1.5rem 0;
}

.day-pill-minimal {
  background-color: var(--light);
  color: var(--primary);
  font-size: 0.75rem !important;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 0.4rem 1.2rem !important;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 0.75rem;
}

.agenda-header-centered h2 {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
  margin-bottom: 0.25rem;
}
#agenda .bg-dark {
  background-color: var(--primary) !important;
}
#agenda .col-md-9 h5,
.text-muted {
  color: var(--primary) !important;
}
/* Targets the column text numbers and forces your primary color variable */
.bg-light .row .col-md-3.text-dark {
  color: var(--primary) !important;
}

/* Targets the mobile "Time" span label nested inside that column */
.bg-light .row .col-md-3 .text-muted {
  color: var(--primary) !important;
  opacity: 0.8;
}
/* ================= NEW TAB VIEW STYLING ================= */
#agendaTab .nav-link {
  background-color: #fff;
  color: var(--primary);
  border: 1px solid #e0e0e0;
  border-radius: 15px;
  text-align: center;
  min-width: 160px;
  transition: all 0.25s ease;
}

#agendaTab .nav-link:hover {
  border-color: var(--primary);
  background-color: #f8f9fa;
}

#agendaTab .nav-link.active {
  background-color: var(--primary) !important;
  color: #fff !important;
  border-color: var(--primary);
}

#agendaTab .nav-link span {
  font-size: 0.8rem;
  opacity: 0.8;
}

#agendaTab .nav-link.active span {
  opacity: 0.9;
}
/* ================= AGENDA SECTION ENDS ================= */

/* ================= REGISTRATION SECTION START ================= */
#registration .section-subtitle {
  color: var(--primary);
}
#regTab .nav-link {
  background-color: #fff;
  color: var(--primary);
  border: 1px solid #e0e0e0;
  border-radius: 15px;
  text-align: center;
  min-width: 200px;
  transition: all 0.25s ease;
}

#regTab .nav-link:hover {
  border-color: var(--primary);
  background-color: #f8f9fa;
}

#regTab .nav-link.active {
  background-color: var(--primary) !important;
  color: #fff !important;
  border-color: var(--primary);
}
#regTab .nav-link.active i {
  /* background-color: var(--primary) !important; */
  color: #fff !important;
  /* border-color: var(--primary); */
}
/* Explicit window limits to avoid huge empty whitespace gaps */
.form-embed-wrapper {
  height: 680px; /* Limits the viewable height cleanly */
}

.form-embed-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* --- MOBILE OPTIMIZATION (Below 576px) --- */
@media (max-width: 576px) {
  /* Expand the column padding so the form can use the absolute maximum screen width */
  #registration .container {
    padding-left: 8px;
    padding-right: 8px;
  }

  /* Make the form container taller on mobile since text wraps and stretches vertically */
  .form-embed-wrapper {
    height: 800px;
    padding: 0 !important; /* Strip wrapper padding so the form touches the edges cleanly */
  }

  /* Adjust the navigation tabs so they stack or fit nicely on small screens */
  #regTab .nav-link {
    min-width: 140px;
    font-size: 0.85rem;
    padding: 8px 12px !important;
  }
}
/* ================= REGISTRATION SECTION ENDS ================= */

/* ================= FOOTER SECTION  ================= */
.footer {
  background: var(--dark);
  color: #e5e7eb;
  text-align: center;
  padding: 5px 0;
}

.footer p {
  margin: 0;
  font-size: 14px;
}

.footer p a {
  color: #ffffff;
  text-decoration: none;
}
.footer p a:hover {
  color: var(--slate-200) !important;
  text-decoration: underline;
}

/* ================= FOOTER SECTION ENDS ================= */

/* Custom Soft Green Break Row */
.schedule-break-green {
  background: linear-gradient(135deg, #eaf4e3, #f4f9f1) !important;
  border-bottom: 1px solid #c3d6b7 !important;
}
.xsmall {
  font-size: 0.75rem;
}
.transition-all {
  transition: all 0.2s ease-in-out;
}
.btn-outline-dark:hover {
  transform: translateY(-1px);
}

/* Precise ratio bounding lock for 1360x500 banner artwork layouts */
.hero-banner-img {
  height: auto;
  /*aspect-ratio: 1360 / 500;*/
  object-fit: contain;
}
/* ================= HERO BANNER INTERACTIVE OVERLAY ================= */
.hero-banner-wrapper {
  position: relative;
}

/* Positions the interactive layer dynamically over the bottom-middle of the graphic */
.hero-banner-overlay {
  position: absolute;
  bottom: 5%;
right:12%;
  /* left: 50%; */
  /* transform: translateX(-50%); */
  width: 100%;
  z-index: 10;
  /* padding: 0 15px; */
}

/* High-Contrast "Register Now" Button Styles */
.btn-hero-register {
  background-color: #b91c1c !important; /* Leverages your dark-red link color to break away from the heavy greens */
  color: #ffffff !important;
  font-weight: 700;
  font-size: 14px;
  border: 2px solid #ffffff;
  border-radius: 30px;
  transition: all 0.25s ease-in-out;
}

.btn-hero-register:hover {
  background-color: #a11818 !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(185, 28, 28, 0.4) !important;
}

/* Clean "View Programme" Button Styles */
.btn-hero-programme {
  background-color: rgba(
    32,
    59,
    27,
    0.9
  ) !important; /* Semi-transparent match to your --primary color */
  color: #ffffff !important;
  font-weight: 600;
  font-size: 14px;
  border: 2px solid #ffffff;
  border-radius: 30px;
  transition: all 0.25s ease-in-out;
}

.btn-hero-programme:hover {
  background-color: var(--primary) !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(32, 59, 27, 0.3) !important;
}

/* Responsive adjustments for smaller screens to prevent overlaps */
@media (max-width: 768px) {
  .hero-banner-overlay {
    bottom: 5%;
  }
  .btn-hero-register,
  .btn-hero-programme {
    font-size: 12px;
    padding: 6px 16px !important;
  }
}

@media (max-width: 525px) {
  .hero-banner-overlay {
    position: relative;
    bottom: 0;
    transform: none;
    left: 0;
    background: linear-gradient(to bottom, transparent, #f7f1b8);
    padding-top: 15px;
    padding-bottom: 15px;
  }
}


/*--------------------------------------------------------------
# Scroll Top Button
--------------------------------------------------------------*/
.scroll-top {
  position: fixed;
  right: 15px;
  bottom: 15px;
  z-index: 99999;
  background-color: var(--primary);
  width: 50px;
  height: 50px;
  border-radius: 40px;

  /* Update these lines for the transition */
  visibility: hidden;
  opacity: 0;
  transform: translateY(15px); /* Starts slightly lower */
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); /* Smoother easing */
}

.scroll-top i {
  font-size: 32px;
  color: #f7f2bf;
  line-height: 0;
}

.scroll-top:hover {
  background-color: var(--primary);
  opacity: 0.8;
  color: #f7f2bf;
}

.scroll-top.active {
  visibility: visible;
  opacity: 1; /* Fades in */
  transform: translateY(0); /* Slides up into its final position */
}