/* --- GLOBAL PAGE RESET --- */
body,
html {
  margin: 0;
  padding: 0;
  background-color: #000000; /* Hides width differences by making the page black */
  overflow-x: hidden; /* Prevents horizontal scrolling */
  scroll-behavior: smooth;
}

/* =========================================
    HEADER
    ========================================= */
.header-container {
  max-width: 1439px;
  margin: 0 auto;
  width: 100%;
}

.top-nav {
  display: flex;
  align-items: center;
  width: 100%;
}

/* LOGO COLUMN */
.nav-logo {
  height: 70px;
  margin-right: 10px;
  flex: 0 0 auto; /* prevents flex weirdness */
}

/* CENTER NAV — sits right next to the logo */
.nav-center {
  flex: 1; /* fills the middle area */
  margin-right: 40px;
}

.nav-center ul {
  display: flex;
  white-space: nowrap;
  gap: 30px;
}

/* RIGHT NAV — stays far right */
.nav-right {
  flex: 0 0 auto;
  margin-right: 10px;
}

.nav-right ul {
  display: flex;
  align-items: center;
  gap: 30px;
}

/* Links */
.top-nav a {
  color: white;
  text-decoration: none;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 500;
}

.top-nav a:hover {
  color: #daab4b;
}

/* Make the list horizontal and remove bullets */
.top-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 30px;
}

/* --- HEADER WRAPPER --- */
header {
  display: flex;
  flex-direction: column;
  gap: 0; /* Removed the 40px gap so sections touch */
  padding: 0; /* Removed the top/bottom padding */
  width: 100%;
  background-color: #000000;
}

/* --- BMC3I BUTTON --- */
.bmc3i-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 24px;
  height: auto;
  border-radius: 24px;

  /* Custom colors */
  background-color: #202937; /* Major color */
  color: #F8D908;            /* Minor text/icon color */

  /* Background image overlay */
  background-image: url("../assets/images/TC3SpaceBG.png");
  background-size: 100% auto;
  background-repeat: no-repeat;
  background-position: center left;

  text-decoration: none;
  font-family: 'Inter Tight', sans-serif;
  font-size: 16px;
  font-weight: 600;

  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.25);
  transition: background-color 0.3s ease,
             transform 0.2s ease,
             box-shadow 0.3s ease;

  cursor: pointer;
}

/* Hover */
.bmc3i-btn:hover {
  background-color: #1a212e; /* Slightly darker major color */
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.35);
  transform: translateY(-2px);
}

/* Active click */
.bmc3i-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Icon */
.bmc3i-btn img,
.bmc3i-btn svg {
  width: 100%;
  height: 100%;
  width: 30px;
  height: 30px;
  object-fit: cover;
}

/* --- LINKEDIN BUTTON --- */
.linkedin-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: #0077B5; /* Official LinkedIn Blue */
  color: #ffffff;
  text-decoration: none;
  white-space: nowrap;
  font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  font-weight: 600;
  padding: 8px 24px;
  border-radius: 24px; /* Rounded pill style */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

/* Hover effects */
.linkedin-btn:hover {
  background-color: #004b73; /* Darker blue */
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

/* Active click state */
.linkedin-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Icon sizing and fill color */
.linkedin-icon {
  width: 20px;
  height: 20px;
  fill: #ffffff;
}

/* =========================================
    BANNER 1: SDA TAP APPS
    ========================================= */
.banner-1-container {
  position: relative;
  width: 100%;
  max-width: 1439px;
  aspect-ratio: 1439 / 488;
  background-color: #ffffff;
  overflow: hidden;
  margin: 0 auto;
}

.banner-1-dark-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.2);
  z-index: 1;
}
.banner-1-top-line,
.banner-1-bottom-line {
  position: absolute;
  left: 0;
  width: 100%;
  height: 4px; /* thicker line */
  background-color: white;
  z-index: 12;
}

.banner-1-top-line {
  top: 0;
}

.banner-1-bottom-line {
  bottom: 0;
}
.banner-1-img {
  position: absolute;
  display: block;
}

.banner-1-background {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
}

.banner-1-lab-logo {
  left: 2.569%;
  top: 20.478%;
  width: 21.319%;
  z-index: 3;
}

.banner-1-ussf-logo {
  left: 76.111%;
  top: 19.044%;
  width: 22.431%;
  z-index: 3;
}

.banner-1-text-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  pointer-events: none;
}

.banner-1-text-overlay text {
  pointer-events: auto;
  user-select: text;
  cursor: text;
}

/* =========================================
    BANNER 2: NETWORK OF PARTNERS
    ========================================= */
/* Main Title for Banner 2 (Separated to sit above the line) */
.banner-2-title {
  position: absolute;
  z-index: 10;
  left: 0;
  width: 100%;
  text-align: center;
  top: calc(30 / 695 * 100%);
  color: #ffffff;
  pointer-events: auto;
  user-select: text;
  margin: 0;

  /* STANDARDIZED TYPOGRAPHY */
  font-family: "Orbitron", sans-serif;
  font-weight: 500;
  font-size: clamp(32px, 4vw, 56px);
}

.banner-2-gold-text {
  color: #daab4b;
}
.banner-2-container {
  position: relative;
  width: 100%;
  max-width: 1437px;
  aspect-ratio: 1437 / 695;
  background-color: #000000; /* Set to black */
  overflow: hidden;
  margin: 0 auto;
}

.partner-img {
  position: absolute;
  display: block;
  z-index: 3;
}

/* Circular Network Image */
/* I calculated the bounding box from your SVG: Center is 1073.5, Radius is 228 */
.network-image {
  left: calc(845.5 / 1437 * 100%); /* X start point */
  top: calc(126.5 / 695 * 100%); /* Y start point */
  width: calc(456 / 1437 * 100%); /* Diameter */
  aspect-ratio: 1 / 1; /* Keeps it a perfect square to form a circle */
  border-radius: 50%; /* Makes it circular */
  object-fit: cover; /* Ensures the image fills the circle */
  border: 1px solid #f5f5f5; /* The exact stroke color from your SVG */
}

.network-flip-container {
    position: absolute; 
    left: calc(845.5 / 1437 * 100%);
    top: calc(126.5 / 695 * 100%);
    width: calc(456 / 1437 * 100%);
    aspect-ratio: 1 / 1; /* keeps circle */
    perspective: 1000px;
    z-index: 3;
}

.network-flipper {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.network-flipper.flipped {
    transform: rotateY(180deg);
}

.network-front,
.network-back {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;          /* circular face */
    border: 1px solid #f5f5f5;   /* your SVG stroke */
    overflow: hidden;
    backface-visibility: hidden;
}

.network-front img,
.network-back img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.network-back {
    transform: rotateY(180deg);
}

/* Stars */
.star-1 {
  left: calc(75 / 1437 * 100%);
  top: calc(163 / 695 * 100%);
  width: calc(72 / 1437 * 100%);
}

.star-2 {
  left: calc(832 / 1437 * 100%);
  top: calc(532 / 695 * 100%);
  width: calc(72 / 1437 * 100%);
}

/* Text Layer */
.banner-2-text-layer {
  position: absolute;
  z-index: 10;
  left: calc(156 / 1437 * 100%);
  top: calc(266 / 695 * 100%);
  width: calc(500 / 1437 * 100%);
  color: #ffffff; /* Changed to White for the black background */
  font-family: "Montserrat", sans-serif;
  pointer-events: auto;
}

.banner-2-text-layer h2 {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(16px, 2.5vw, 36px);
  margin-bottom: 10px;
}

.banner-2-text-layer p {
  font-size: clamp(12px, 1.5vw, 20px);
  line-height: 1.5;
  margin: 0;
  user-select: text;
}

.banner-2-svg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2; /* Sits below the text but above the background */
  pointer-events: none;
}

/* =========================================
BANNER 3: ACCELERATING THE MISSION
========================================= */
.banner-3-container {
  width: 100%;
  max-width: 1290px;
  background-color: #000000;
  margin: 0 auto;
  padding: 60px 40px;
  box-sizing: border-box;
  color: #ffffff;
  font-family: "Montserrat", sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center; /* Centers everything horizontally */

  border-top: none !important; /* Removed white border that was going through gold stripe */
}

/* Title styling with Gold Color */
.b3-title {
  margin: 0 0 15px 0;
  text-align: center;
  position: relative; /* ADDED */
  z-index: 10;        /* ADDED: Keeps text above images */

  /* STANDARDIZED TYPOGRAPHY */
  font-family: "Orbitron", sans-serif;
  font-weight: 500;
  font-size: clamp(32px, 4vw, 56px);
}

.b3-divider {
  width: 100%;
  max-width: 1200px;
  height: 3px;
  margin-bottom: 30px;
  position: relative; /* ADDED */
  z-index: 10;        /* ADDED */
}

.b3-gold-text {
  color: #daaa4a;
}

/* Main Image */
.b3-graphic {
  width: 100%;
  max-width: 1000px;
  height: auto;
  margin-bottom: 30px;
  object-fit: contain;
}

/* Description text */
.b3-desc {
  font-size: clamp(14px, 1.5vw, 24px);
  line-height: 1.6;
  text-align: center;
  max-width: 900px;
  font-weight: 400;
}
.banner-3-container {
  position: relative;
  width: 100%;
  max-width: 1290px;
  aspect-ratio: 1290 / 856;
  background-color: #000000;
  overflow: hidden;
  margin: 0 auto;
}

.mission-img {
  position: absolute;
  display: block;
  z-index: 3;
}

/* EXACT COORDINATES EXTRACTED FROM SVG */

.mission-star-1 {
  left: 0;
  top: 22%;
  width: calc(72.25 / 1290 * 100%);
}

.mission-star-2 {
  /* M1289.48 756 H1217.23 V853 H1289.48 V756Z */
  left: calc(1217.23 / 1290 * 100%);
  top: 80%; /*calc(756 / 856 * 100%);*/
  width: calc(72.25 / 1290 * 100%);
}

.mission-main-graphic {
  /* M1217.23 155 H72.2509 V496 H1217.23 V155Z */
  left: calc(72.25 / 1290 * 100%);
  top: 22%;
  width: calc(1145 / 1290 * 100%);
  height: calc(341 / 856 * 100%);
  object-fit: cover;
  border: 1px solid #ffffff; /* Matches the white stroke in your SVG */
}

/* TEXT LAYER */
.banner-3-text-layer {
  position: absolute;
  z-index: 10;
  left: calc(85 / 1290 * 100%);
  top: calc(560 / 856 * 100%); /* Adjusted slightly up to fit the heading */
  width: calc(1120 / 1290 * 100%);
  color: #ffffff;
  font-family: "Montserrat", sans-serif;
  pointer-events: auto;
}

.banner-3-text-layer h2 {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(20px, 3vw, 42px);
  margin-bottom: 20px;
  text-transform: uppercase;
}

.banner-3-text-layer p {
  font-size: clamp(14px, 1.8vw, 22px);
  line-height: 1.6;
  margin: 0;
  user-select: text;
}

.banner-3-svg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

/* Ensure fonts load correctly */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600&family=Orbitron:wght@500;700&display=swap");

/* Ensure fonts load with multiple weights (400 for desc, 500 for titles) */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500&family=Orbitron:wght@400;500&display=swap");

/* Ensure fonts load with multiple weights (400 for desc, 500 for titles) */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500&family=Orbitron:wght@400;500&display=swap");

/* =========================================
    BANNER 4: FROM NEED TO SOLUTION (FLEXBOX)
    ========================================= */

.banner-4-container {
  width: 100%;
  max-width: 1439px;
  background-color: #000000;
  margin: 0 auto;
  padding: 40px 60px 80px 60px;
  box-sizing: border-box;
  font-family: "Montserrat", sans-serif;
  color: #ffffff;
  overflow: hidden;
}

.b4-main-title {
    /* REMOVED the 20% left margin */
    margin: 0 0 20px 0; 
    
    /* ADDED center alignment */
    text-align: center; 
    width: 100%;
    
    /* STANDARDIZED TYPOGRAPHY */
    font-family: 'Orbitron', sans-serif;
    font-weight: 500;
    font-size: clamp(32px, 4vw, 56px);
    letter-spacing: normal; 
}

.b4-gold-text {
  color: #daaa4a;
}

/* Top Divider Image Layer */
.b4-top-divider {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 50px;
}

/* 3-Column Layout */
/* 1. Ensure the row stretches all columns to equal height */
/* 1. Change wrapper to Grid */
.b4-flex-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Creates 3 equal columns */
  gap: 4%;
  width: 100%;
}

/* 2. Use Subgrid on the columns */
.b4-col {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 4; /* Spans your 4 elements: title, divider, circle, desc */
  justify-items: center; /* Centers everything horizontally */
  row-gap: 15px; /* Adds consistent spacing between elements */
}

/* 3. Remove flex-grow from the title */
.b4-stage-title {
  font-family: "Orbitron", sans-serif;
  font-weight: 500;
  font-size: clamp(18px, 2.5vw, 36px);
  line-height: 1.2;
  text-align: center;

  /* Keep internal flex for the Stage X span */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;

  /* REMOVED: flex-grow: 1 and margin-bottom */
}

/* 4. Ensure the description anchors to the top of its row */
.b4-stage-desc {
  align-self: center;
  font-weight: 400;
  font-size: clamp(14px, 1.5vw, 24px);
  line-height: 1.5;
  text-align: center;
  width: 100%;
  max-width: 360px;
}
/* Descriptions */

/* Horizontal alignment & spacing rule for the Stage numbers */
.b4-stage-title span {
  display: block;
  font-weight: 700;
  margin-bottom: 15px; /* Creates the blank space you requested before the rest of the text */
}

/* The Custom PNG Divider Lines */
.b4-stage-divider {
  width: 100%; /* Stretches the line to span the column */
  height: auto;
}

/* Circles */
.b4-circle {
  width: 100%;
  max-width: 360px; /* Keeps them from getting too massive on huge screens */
  aspect-ratio: 1 / 1;
  background-color: #222222; /* Dark gray placeholder until photos load */
  border-radius: 50%;
  object-fit: cover;
}

/* =========================================
    BANNER 5: FOCUS AREAS
    ========================================= */
.banner-5-container {
  position: relative;
  width: 100%;
  max-width: 1441px;

  min-height: 35vw;
  height: auto;

  background-color: #000000;
  background-image: url("../assets/images/fa_background.png");
  background-size: cover;
  background-position: center;
  margin: 0 auto;
  color: #ffffff;
  overflow: hidden;
  /* box-sizing: border-box; */
  /* border-top: 4px solid #ffffff; */
}

/* Drastically reduced the darkness of the overlay filter (from 0.5 to 0.15) */
.b5-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.15);
  z-index: 1;
  pointer-events: none;
}

.b5-content {
  /* CHANGED FROM absolute TO relative */
  position: relative;

  /* CHANGED FROM 100% TO auto */
  height: auto;

  width: 100%;
  z-index: 2;
  padding-bottom: 10%;
}

/* ================= LINES & GRAPHICS ================= */

/* Top White Line (From SVG: Y=117) */
.b5-top-divider {
  position: relative; /* Changed from absolute */
  width: 100%;
  height: 2px;
  background-color: #ffffff;
}

/* 3. Adjust the Grid Wrapper spacing */
.b5-flex-wrapper {
  position: relative; /* Essential for the vertical line to anchor to */
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5%;
  width: 85%;

  margin-top: 60px; /* Changed from 25% so it sits directly below the top divider */
  padding: 0 7%;
  /* box-sizing: border-box; */
}

/* 4. Anchor the Vertical Divider to the Grid Wrapper */
.b5-vert-divider {
  position: absolute;
  left: 50%;
  top: -60px; /* Reaches exactly up to touch the top divider */
  bottom: 0; /* Runs exactly to the bottom of your text content */
  width: 2px;
  background-color: #ffffff;
  transform: translateX(-50%);
}

/* UPDATED: Use Explicit Grid Rows for Alignment */
.b5-col {
  display: grid;
  grid-template-rows: auto auto 1fr auto; 
  justify-items: center;
  align-items: start;
  width: 100%;
}

.b5-sub-title {
  grid-row: 1;
  font-family: "Orbitron", sans-serif;
  font-size: clamp(20px, 3vw, 40px);
  font-weight: 500;
  margin: 0;
  line-height: 1.2;
  width: 100%; 
  text-align: center;

  /* Align divider_line.png */
  min-height: 1.2em;
  min-height: 3.2em; 
  display: flex;
  align-items: center; 
  justify-content: center;
}

.b5-divider-img {
  grid-row: 2;
  width: 100%;
  max-width: 500px;
  height: auto;
  display: block;
  margin: 10px 0;
}

.b5-desc {
  grid-row: 3;
  align-self: start;
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(14px, 1.8vw, 24px);
  line-height: 1.6;
  text-align: center; 
  width: 100%;
  margin-bottom: 20px;
}

/* Target the div wrapping the button to place it in the last row */
.b5-col > div:last-child {
  grid-row: 4;
  width: 100%;
  display: flex;
  justify-content: center;
  padding-bottom: 20px;
}

.b5-button {
  /* Keep your existing button styles */
  background-color: #DAAB4B;
  color: #4A4A4A;
  font-family: "Orbitron", sans-serif;
  font-weight: 700;
  font-size: clamp(20px, 1.8vw, 28px);
  text-decoration: none;
  padding: 15px 60px;
  border: 7px solid #FFFFFF;
  border-radius: 30px;
  box-shadow: inset 0 0 6px rgba(255, 255, 255, 0.35), 0 12px 20px rgba(0, 0, 0, 0.55);
  cursor: pointer;
  transition: transform 0.1s ease, background-color 0.2s ease, color 0.2s ease;
  display: inline-block;
}

.b5-button:hover {
  transform: translateY(-2px);
  background-color: #E7BC60;
  color: #3A3A3A;
}

.b5-button:active {
  transform: translateY(1px);
}

.b5-button-gray {
  background-color: #BDBDBD;
  color: #4A4A4A;
  font-family: "Orbitron", sans-serif;
  font-weight: 700;
  font-size: clamp(20px, 1.8vw, 28px);
  text-decoration: none;
  padding: 15px 60px;
  
  border: 7px solid #FFFFFF;
  border-radius: 30px;
  
  box-shadow: 
    inset 0 0 6px rgba(255, 255, 255, 0.35),
    0 12px 20px rgba(0, 0, 0, 0.55);
  
  cursor: default;
  transition: transform 0.1s ease,
              background-color 0.2s ease,
              color 0.2s ease;

  align-self: end;
}

.b5-button-gray:hover {
  transform: translateY(-2px);
  background-color: #C9C9C9;
  color: #3A3A3A;
}

.b5-button-gray:active {
  transform: translateY(1px);
}

.b5-apply-container {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 60px; /* Space between columns and button */
  margin-bottom: 40px;
}

.b5-button-apply {
  background-color: transparent;
  color: #FFFFFF;
  font-family: "Orbitron", sans-serif;
  font-weight: 700;
  font-size: clamp(24px, 2.5vw, 32px);
  text-decoration: none;
  padding: 20px 80px;
  
  border: 4px solid #FFFFFF;
  border-radius: 50px;
  
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
  
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
  text-align: center;
  letter-spacing: 1px;
}

.b5-button-apply:hover {
  background-color: #FFFFFF;
  color: #000000;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(255, 255, 255, 0.3);
}

.b5-button-apply:active {
  transform: translateY(1px);
}

/* .b5-gold-left { left: calc(193 / 1441 * 100%); }
.b5-gold-right { left: calc(877 / 1441 * 100%); } */

/* Stars Graphics */
.b5-abs-img {
  position: absolute;
  width: calc(72 / 1441 * 100%);
  height: auto;
}
.b5-stars-bottom-left {
  left: calc(33 / 1441 * 100%);
  top: calc(615 / 749 * 100%);
}
.b5-stars-top-right {
  left: calc(1277 / 1441 * 100%);
  top: calc(195 / 749 * 100%);
}

/* ================= TYPOGRAPHY ================= */

/* Banner 5 Title */
.b5-main-title {
  position: relative;
  padding-top: 60px;
  padding-bottom: 40px;
  width: 100%;
  text-align: center;
  margin: 0;

  /* STANDARDIZED TYPOGRAPHY */
  font-family: "Orbitron", sans-serif;
  font-weight: 500;
  font-size: clamp(32px, 4vw, 56px);
  text-transform: none; /* Removed uppercase */
  letter-spacing: normal; /* Removed letter spacing */
}

/* Sub-Titles - Above the small gold dividers */
/* --- UPDATED FOCUS AREA TYPOGRAPHY --- */

/* Sub-Titles - Above the small gold dividers */

/* .b5-sub-title-1 { left: calc(193 / 1441 * 100%); }
.b5-sub-title-2 { left: calc(877 / 1441 * 100%); } */

/* Paragraph Descriptions - Shifted downwards to avoid overlap */

/* .b5-desc-1 { left: calc(193 / 1441 * 100%); }
.b5-desc-2 { left: calc(877 / 1441 * 100%); } */

/* =========================================
    BANNER 6: UPCOMING EVENTS
    ========================================= */
.banner-6-container {
  width: 100%;
  max-width: 1442px;
  background-color: #000000;
  margin: 0 auto;
  color: #ffffff;
  font-family: "Orbitron", sans-serif;
  overflow: hidden;
  /* box-sizing: border-box;
  border-top: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff; */
}

/* Header Image Section */
.b6-header {
  width: 100%;
  height: 226px;
  background-image: url("../assets/images/events_header_background.png");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  /* border-bottom: 2px solid #ffffff; */
}

.b6-header-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

/* Banner 6 Title */
.b6-main-title {
  position: relative;
  z-index: 2;
  margin: 0;

  /* STANDARDIZED TYPOGRAPHY */
  font-family: "Orbitron", sans-serif;
  font-weight: 500;
  font-size: clamp(32px, 4vw, 56px);
  text-transform: none; /* Removed uppercase */
  letter-spacing: normal; /* Removed letter spacing */
}

/* The 73px empty spacer band */
.b6-spacer-band {
  width: 100%;
  height: 73px;
  border-bottom: 2px solid #ffffff;
}

/* Event Row Flexbox */
.b6-event-row {
  display: flex;
  width: 100%;
  border-bottom: 2px solid #ffffff;
  align-items: stretch; /* Allows the vertical divider to center properly */
}

.b6-event-row:last-child {
  border-bottom: none;
}

/* Left Column (Images) - Flex: 1 automatically pushes to the 42% text boundary */
.b6-image-col {
  flex: 1;
  padding: 50px 30px 50px 40px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  box-sizing: border-box;
}

.b6-event-image {
  width: 100%;
  max-width: 650px;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  background-color: #222222;
}

.b6-schedule-image {
  width: 100%;
  max-width: 750px;
  aspect-ratio: 6 / 0;
  object-fit: cover;
  background-color: #222222;
}

/* Custom Vertical Divider PNG */
.b6-vert-divider {
  flex: 0 0 auto;
  align-self: center; /* Centers the PNG vertically in the row */
  height: auto;
  max-height: 80%; /* Keeps it from touching the top/bottom borders */
  margin: 0 20px;
}

/* Right Column (Text) - Locked exactly to the 42% boundary from your SVG */
.b6-text-col {
  flex: 0 0 42%;
  padding: 50px 40px 50px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
}

/* Typography */
.b6-event-title {
  font-size: clamp(24px, 3vw, 45px);
  font-weight: 500;
  margin: 0 0 20px 0;
  line-height: 1.2;
}

.b6-event-details {
  font-size: clamp(14px, 1.8vw, 28px);
  font-weight: 400;
  margin: 0 0 20px 0;
  line-height: 1.5;
}

/* Custom Horizontal Divider PNG */
.b6-horiz-divider {
  width: 100%;
  max-width: 344px; /* Exact length from SVG */
  height: auto;
  display: block;
  margin: 0 0 20px 0;
}

.b6-event-note {
  font-size: clamp(14px, 1.8vw, 28px);
  font-weight: 400;
  margin: 1;
  line-height: 1.4;
}

.b6-button {
  background-color: #DAAB4B;
  color: #4A4A4A;
  font-family: "Orbitron", sans-serif;
  font-weight: 700;
  font-size: clamp(40px, 1.8vw, 28px);
  text-decoration: none;
  padding: 15px 80px;
  
  border: 7px solid #FFFFFF;
  border-radius: 30px;
  
  box-shadow: 
    inset 0 0 6px rgba(255, 255, 255, 0.35),
    0 12px 20px rgba(0, 0, 0, 0.55);
  
  cursor: pointer;
  transition: transform 0.1s ease,
              background-color 0.2s ease,
              color 0.2s ease;

}

.b6-button:hover {
  transform: translateY(-2px);
  background-color: #E7BC60;
  color: #3A3A3A;  

}

.b6-button:active {
  transform: translateY(1px);
}

.b6-button-blue {
  background-color: transparent;   
  color: #8EC9E8;
  font-family: "Orbitron", sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 1.8vw, 40px);
  text-decoration: none;
  padding: 15px 80px;
  
  border: 7px solid #8EC9E8;
  border-radius: 30px;
  
  box-shadow: 
    inset 0 0 8px rgba(255, 255, 255, 0.6),
    0 12px 20px rgba(0, 0, 0, 0.6);
  
  cursor: pointer;
  transition: transform 0.1s ease,
              background-color 0.2s ease,
              color 0.2s ease;
              box-shadow: 0.1s ease;
}

.b6-button-blue:hover {
  transform: translateY(-2px);
  background-color: rgba(142, 201, 232, 0.15);
  color: #B9E5FF;
  box-shadow: 
    inset 0 0 8px rgba(255, 255, 255, 0.6),
    0 14px 24px rgba(0, 0, 0, 0.7); 
}

.b6-button-blue:active {
  transform: translateY(6px); 
  box-shadow: 
    inset 0 0 8px rgba(255, 255, 255, 0.6),
    0 4px 6px rgba(0, 0, 0, 0.8); 
}

.b6-button-gray {
  background-color: #BDBDBD; 
  color: #4A4A4A;
  font-family: "Orbitron", sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 1.8vw, 40px);
  text-decoration: none;
  padding: 15px 80px;
  
  border: 7px solid #FFFFFF;
  border-radius: 30px;
  
  box-shadow: 
    inset 0 0 8px rgba(255, 255, 255, 0.6),
    0 12px 20px rgba(0, 0, 0, 0.6);
  
  cursor: pointer;
  transition: transform 0.1s ease,
              background-color 0.2s ease,
              color 0.2s ease;
              box-shadow: 0.1s ease;
}

.b6-button-gray:hover {
  transform: translateY(-2px);
  background-color: rgba(142, 201, 232, 0.15);
  color: #3A3A3A;
  background-color: #C9C9C9;
  box-shadow: 
    inset 0 0 8px rgba(255, 255, 255, 0.6),
    0 14px 24px rgba(0, 0, 0, 0.7); 
}

.b6-button-gray:active {
  transform: translateY(6px); 
  box-shadow: 
    inset 0 0 8px rgba(255, 255, 255, 0.6),
    0 4px 6px rgba(0, 0, 0, 0.8); 
}

/* Container that establishes the 3D space */
.flip-container {
    perspective: auto;
    width: 100%;
    aspect-ratio: 2 / 1;
    cursor: pointer;
    margin: 50px auto;
}

/* The inner box that actually rotates */
.flipper {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

/* JavaScript triggers this class to execute the flip */
.flipper.flipped {
    transform: rotateY(180deg);
}

/* Base styles for both front and back faces */
.front, .back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    backface-visibility: hidden;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Ensure images fill their respective side completely */
.front img, .back img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* The back side starts rotated so it shows right-side up after flipping */
.back {
    transform: rotateY(180deg);
}

/* Floating button core styles */
.back-to-top {
  position: fixed;     /* Keeps the button in a fixed position on the screen */
  bottom: 30px;        /* Distance from the bottom of the viewport */
  left: 30px;         /* Distance from the right side of the viewport */
  z-index: 99;         /* Ensures it floats on top of other content */
  
  /* Visual dimensions and shape */
  width: 50px;
  height: 50px;
  background-color: #007BFF; /* Primary blue button color */
  color: #ffffff;            /* White arrow color */
  border-radius: 50%;        /* Makes the button perfectly circular */
  
  /* Centering the HTML arrow inside the circle */
  display: flex;
  justify-content: center;
  align-items: center;
  
  /* Text and icon layout */
  font-size: 45px;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  
  /* Smooth transition effect for hover state */
  transition: transform 0.2s ease, background-color 0.2s ease;
}

/* Hover effects for user interactivity */
.back-to-top:hover {
  background-color: #0056b3; /* Darker blue background */
  transform: translateY(-5px); /* Subtle lift animation on hover */
}

/* ===========================
FOOTER CONTAINER
=========================== */
.top-spacer {
  width: 100%;
  height: 60px;
  background-color: black;
  display: block;
}

.footer {
  width: 100%;
  background-color: black;
  color: white;
  box-sizing: border-box;
}

.footer-top {
  max-width: 1439px;
  margin: 0 auto;
  background-color: #3a3a3a;
  padding: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: flex-start;
}

.footer-logo-img {
  height: 60px;
  width: auto;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}

/* Navigation containers */
.footer-nav-center,
.footer-nav-right {
  display: flex;
}

.footer-nav-center ul,
.footer-nav-right ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-nav-center {
  margin-right: auto; 
}

.footer-nav-right {
  margin-left: auto; 
}

.footer-top ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 40px;
  align-items: center;
}
.footer-top a {
  color: white;
  text-decoration: none;
  white-space: nowrap;
  font-family: "Montserrat", sans-serif;
  font-size: 20px;
  font-weight: 500;
  transition: color 0.3s ease;
  list-style: none;
}

.footer-top a:hover {
  color: #daab4b;
}

/* Bottom black section */
.footer-bottom {
  width: 100%;
  max-width: 1439px;
  margin: 0 auto;
  padding: 40px 30px;
  text-align: center;
  background-color: black; /* Explicitly black */
  box-sizing: border-box;
}

.footer-copy {
  font-size: 22px;
  margin-bottom: 25px;
  color: white;
}

.footer-disclaimer {
  max-width: 1200px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.6;
  color: #cccccc;
}

/* ========================================= */
/* --- MOBILE RESPONSIVENESS (MAX 992PX) --- */
/* ========================================= */

@media (max-width: 992px) {
    
    /* --- NAVIGATION OVERRIDES --- */
    .top-nav {
        flex-direction: column; /* Stacks the logo and links vertically */
        gap: 20px;
        padding: 20px 0;
    }
    .nav-logo {
        margin-right: 0;
    }
    .nav-center ul, .nav-right ul {
        flex-wrap: wrap; /* Allows links to wrap to the next line if needed */
        align-items: center;
        justify-content: center;
        gap: 20px;
    }

    /* --- SECTION 2 (NETWORK OF PARTNERS) OVERRIDES --- */
    .banner-2-container {
        aspect-ratio: auto; /* Turns off the fixed desktop height */
        padding: 0 0 60px 0; /* Let inner elements handle their own side padding */
        display: flex;
        flex-direction: column;
        align-items: center;
        overflow: hidden; /* Ensures the oversized SVG below doesn't cause scrolling */
    }

    /* .banner-2-svg-overlay { */
        /* position: absolute; */
        /* top: 25px; Drops the horizontal line to sit exactly under the title */
        /* left: -50%; Centers the widened SVG */
        /* width: 200%; Makes the SVG taller so the curve sweeps gracefully across the content */
        /* height: auto; */
        /* z-index: 1; Keeps the graphics behind the content */
    /* } */

    .banner-2-title {
        position: relative; 
        top: auto;
        left: auto;
        width: 100%;
        margin: 0;
        padding: 20px 20px 0 20px;
        box-sizing: border-box;
        order: 1; /* Forces title to the very top */
        z-index: 10;
    }

    .network-image {
        position: relative; 
        top: auto;
        left: auto;
        width: 100%;
        max-width: 320px; /* Keeps the circle a readable size */
        order: 2; /* Forces image below the title */
        margin-top: 60px; /* Space above image so it sits inside the gold curve */
        margin-bottom: 20px;
        z-index: 3;
    }

    .network-flip-container {
        position: relative;
        top: auto;
        left: auto;

        width: 100%;
        max-width: 320px;   /* same as .network-image mobile */
        aspect-ratio: 1 / 1;

        order: 2;           /* puts image under the title */
        margin-top: 60px;   /* space inside your gold curve */
        margin-bottom: 20px;

        z-index: 3;
    }

    .network-flipper {
        width: 100%;
        height: 100%;
    }

    .network-front,
    .network-back {
        width: 100%;
        height: 100%;
        border-radius: 50%;
    }

    .network-front img,
    .network-back img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .banner-2-text-layer {
        position: relative; 
        top: auto;
        left: auto;
        width: 100%;
        padding: 0 30px; /* Safe padding for mobile */
        box-sizing: border-box; /* CRITICAL: Prevents the text from overrunning the screen */
        text-align: center; /* Centers text for mobile readability */
        order: 3; /* Forces text to the bottom of the section */
        z-index: 10;
    }

    .star-1, .star-2, .banner-2-svg-overlay {
        display: none; /* Hides decorative stars on mobile to keep the layout clean */
    }

    /* --- SECTION 3 (MISSION) OVERRIDES --- */
    .banner-3-container {
        aspect-ratio: auto; /* Turns off the fixed height */
        padding: 40px 20px; /* Gives the container breathing room */
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .mission-main-graphic {
        position: relative; /* Puts image back into normal flow */
        top: auto;
        left: auto;
        width: 100%;
        height: auto;
        margin-bottom: 30px;
        order: 2; /* Forces image to sit below title/divider */
    }

    .banner-3-text-layer {
        position: relative; /* Puts text back into normal flow */
        top: auto;
        left: auto;
        width: 100%;
        text-align: center;
        order: 3; /* Forces description to sit below the image */
    }

    .mission-star-1, .mission-star-2 {
        display: none; /* Hide decorative stars on mobile to keep layout clean */
    }

    /* --- SECTION 4 (STAGES) OVERRIDES --- */
    .b4-flex-wrapper {
        grid-template-columns: 1fr; /* Forces 1 single column instead of 3 */
        gap: 60px; /* Adds breathing room between the stacked stages */
    }
    .b4-col {
        /* Disables the complex subgrid so items can stack naturally */
        display: flex;
        flex-direction: column;
        align-items: center; 
    }
    .b4-stage-desc {
        text-align: center; /* Centers the text on mobile for better readability */
    }

    /* --- SECTION 5 (FOCUS AREAS) OVERRIDES --- */
    .b5-flex-wrapper {
        grid-template-columns: 1fr; /* Forces 1 single column instead of 2 */
        gap: 60px;
        margin-top: 30px; /* Reduces that massive desktop gap */
    }
    .b5-col {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .b5-vert-divider {
        /* Hides the vertical divider entirely on mobile since we are stacking */
        display: none; 
    }

    .b5-apply-container {
      margin-top: 40px;
    }

    .b5-button {
      width: 90%;
      max-width: 165px;
    }

    .b5-button-apply {
      padding: 15px 60px;
      font-size: 25px;
      width: 90%;
      max-width: 165px;
    }
    
    /* --- SECTION 6 (EVENTS) OVERRIDES --- */
    .b6-event-row {
        flex-direction: column; /* Stacks the image and text vertically */
    }

    .b6-image-col {
        width: 100%;
        padding: 40px 20px 20px 20px; /* Replaces the huge desktop padding */
        justify-content: center; /* Centers the image */
        box-sizing: border-box;
    }

    .b6-vert-divider {
        display: none; /* Hides the vertical line since we are stacking */
    }

    .b6-text-col {
        flex: auto; /* Removes the strict 42% width constraint */
        width: 100%;
        padding: 0 20px 50px 20px; /* Safe mobile padding */
        align-items: center; /* Centers the text block */
        text-align: center; /* Centers the text itself */
    }

    .b6-horiz-divider {
        margin: 0 auto 20px auto; /* Centers the small horizontal line */
    }

    .b6-button, .b6-button-blue, .b6-button-gray  {
        padding: 15px 40px; /* Reduces the massive 80px side padding */
        font-size: 20px; /* Gives a safe, readable mobile size */
        display: inline-block; /* Ensures the button respects centering */
        box-sizing: border-box;
        max-width: 100%; /* Prevents button from overrunning very small screens */
        white-space: nowrap;
    }

    /* --- FOOTER OVERRIDES --- */
    .footer-top {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding: 10px;
        gap: 25px;
    }
    .footer-nav-center, .footer-nav-right, .footer-top {
        margin: 10px 0;
        width: 100%;
        justify-content: center;
    }
    
    .footer-nav-center ul, .footer-nav-right ul, .footer-top ul {
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: 20px;
    }
}
