html, body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  color: #1f2937;
  background-color: #f9fafb;
}

/* ================= HEADER ================= */
header {
  background: linear-gradient(135deg, #0f172a, #1e3a8a);
  color: #ffffff;
  padding: 60px 20px;
  text-align: center;
}

header h1 {
  margin-bottom: 10px;
  font-size: 2.3rem;
}

header p {
  max-width: 850px;
  margin: 0 auto;
  font-size: 1.05rem;
  opacity: 0.95;
}

.yellow-text {
  max-width: 80%;
  margin-top: 30px;
  color: #F1F5A9;
}

.fire-red-text {
  color: #FB6084;
}

/* ================= SECTIONS ================= */
section {
  padding: 60px 20px;
  max-width: 1100px;
  margin: auto;
}

section h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2rem;
  color: #111827;
}

.under-construction {
  color: red;
  background: WHITE;
  text-align: center;
  line-height: 4em;
  font-size: 1rem;
  margin-top: 100px;
}

.title-card {
  padding: 50px;
  margin-bottom: 50px;
}

/* ================= CARDS ================= */
.card {
  background: #ffffff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
  margin-bottom: 30px;
}

.card h2 {
  text-align: left;
  margin-bottom: 0;
}

.card h3 {
  margin-bottom: 5px;
  font-size: 1.2rem;
}

.card p {
  text-align: justify;
  font-size: 0.95rem;
  color: #4b5563;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 25px;
}

.meta-item {
  background: #f1f5f9;
  padding: 15px;
  border-radius: 10px;
}

.meta-item strong {
  display: block;
  color: #1e3a8a;
  margin-bottom: 4px;
}

ul {
  padding-left: 20px;
}

/* ================= CTA ================= */
.cta {
  text-align: center;
  margin-top: 30px;
}

.cta a {
  background: #1e3a8a;
  color: #ffffff;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
}

/* ================= FOOTER ================= */
footer {
  background: #0f172a;
  color: #9ca3af;
  text-align: center;
  padding: 25px 15px;
  font-size: 0.9rem;
}

footer span {
  color: #ffffff;
}

/* ================= LAYOUT ================= */
.mission {
  text-align: justify;
  font-size: 1.1rem;
  max-width: 1050px;
  margin: auto;
}

.mission-center {
  text-align: center;
  font-size: 1.1rem;
  max-width: 1050px;
  margin: auto;
}

.body-text {
  text-align: justify;
  font-size: 1.1rem;
  max-width: 660px;
  margin: auto;
  border-bottom: 0.2px solid #D8D8D8;
  padding-bottom: 50px;
}

.body-text h2 {
  text-align: left;
  margin-bottom: -30px;
}

.blue-body-heading {
  color: #449FE4;
  margin-bottom: 60px;
}

.gray-body-text {
  color: #ADB1AA;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.contact {
  text-align: center;
  font-size: 1.05rem;
}

.contact p {
  margin: 8px 0;
}

.membership {
  text-align: center;
  font-size: 1.05rem;
  padding: 100px 0;
}

.membership p {
  margin: 8px 0;
}

/* ================= FAQ ================= */
.faq-item {
  background: #ffffff;
  padding: 20px 25px;
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

.faq-item h4 {
  margin-bottom: 8px;
  font-size: 1.05rem;
  color: #1e3a8a;
}

#faq-advertiser {
  background: #ffffff;
  max-width: none;
  margin-left: calc(-1 * (100vw - 100%) / 2);
  margin-right: calc(-1 * (100vw - 100%) / 2);
  border-top: 10px solid #D8D8D8;
  border-bottom: 0.2px solid #D8D8D8;
  padding: 80px 0;
}
/* Ensure inner content always fits */
#faq-advertiser,
#faq-advertiser .faq-inner {
  padding-left: 20px;
  padding-right: 20px;
  overflow-x: hidden;
  word-break: break-word;
  overflow-wrap: break-word;
}

/* ================= NAVIGATION ================= */
#nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  background: #0f172a;
  color: #ffffff;
  padding: 14px 20px;
  font-weight: bold;
  cursor: pointer;
}

nav {
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #0f172a;
}

.nav-container {
  width: 100%;
  padding: 0 20px;
}

.nav-bar {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

.nav-item {
  position: relative;
  flex-shrink: 0;
}

.nav-link {
  color: #e5e7eb;
  text-decoration: none;
  font-weight: bold;
  padding: 14px 10px;
  display: block;
  border-radius: 6px;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-link:hover {
  background: #334155;
  color: #ffffff;
}

/* Dropdown */
.nav-sub {
  position: absolute;
  top: 100%;
  left: 0;
  background: #0f172a;
  padding: 10px 14px;
  border-radius: 0 0 10px 10px;
  display: none;
  flex-direction: column;
  min-width: 200px;
  max-width: calc(100vw - 40px);
  box-sizing: border-box;
}

.nav-sub a {
  color: #c7d2fe;
  font-size: 0.95rem;
  padding: 8px 10px;
}

.nav-item:hover .nav-sub {
  display: flex;
}

/* ================= TIMELINE ================= */
.timeline {
  position: relative;
  margin-left: 40px;
}

.event {
  padding-left: 40px;
}

/* ================= FULL WIDTH CASE TIMELINE ================= */
#case-timeline {
  background: #ffffff;
  max-width: none;
  margin-left: calc(-1 * (100vw - 100%) / 2);
  margin-right: calc(-1 * (100vw - 100%) / 2);
  padding: 80px 0;
  border-top: 1px solid #D8D8D8;
  border-bottom: 10px solid #C7C7C7;
}

/* ========================================================= */
/* ============ RESPONSIVE TEXT + OVERFLOW FIX ============= */
/* ========================================================= */

* {
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* Fluid typography */
body {
  font-size: clamp(15px, 2.5vw, 17px);
}

h1 {
  font-size: clamp(1.6rem, 5vw, 2.3rem);
}

h2 {
  font-size: clamp(1.4rem, 4vw, 2rem);
}

h3 {
  font-size: clamp(1.1rem, 3.5vw, 1.3rem);
}

/* Timeline mobile corrections */
@media (max-width: 768px) {
  .timeline {
    margin-left: 0;
  }

  .timeline:before {
    left: 8px;
  }

  .event {
    padding-left: 30px;
  }

  .branches {
    grid-template-columns: 1fr;
  }

  .branch {
    padding: 20px;
  }
}

/* Nav text wrap on small screens */
@media (max-width: 900px) {
  .nav-link {
    white-space: normal;
  }

  .nav-toggle-label {
    display: block;
  }

  .nav-container {
    display: none;
  }

  #nav-toggle:checked + .nav-toggle-label + .nav-container {
    display: block;
  }
}

/* NEW ADDITION */
/* ================= TIMELINE RESPONSIVE FIXES ================= */

/* Ensure inner content always fits */
#case-timeline,
#case-timeline .timeline-inner {
  padding-left: 20px;
  padding-right: 20px;
  overflow-x: hidden;
  word-break: break-word;
  overflow-wrap: break-word;
}

/* Fix timeline left margin on small screens */
@media (max-width: 900px) {
  .timeline {
    margin-left: 0 !important;
    padding-left: 0 !important;
  }
  .timeline:before {
    left: 8px !important;
  }
  .event {
    padding-left: 30px !important;
  }
}

/* Reduce negative margins that cause overflow */
@media (max-width: 600px) {
  .event,
  .branches,
  .branch-timeline {
    margin-left: 0 !important;
    padding-left: 0 !important;
  }
}

/* Ensure headings scale and wrap */

#case-timeline p,
#case-timeline li {
  /* font-size: clamp(0.9rem, 2.5vw, 1.1rem); 
  line-height: 1.5;*/
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* Images inside timeline (if any) */
#case-timeline img {
  max-width: 100%;
  height: auto;
}


/* TIMELINE */
/* Base timeline */
.timeline{position:relative;margin-left:40px}
.timeline:before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:#1e3a8a;border-radius:2px}

.event{position:relative;margin-bottom:40px;padding-left:40px}
.event:before{content:"";position:absolute;left:-10px;top:6px;width:18px;height:18px;background:#1e3a8a;border-radius:50%}
.event h3{margin:0;color:#1e3a8a}
.event p{margin:6px 0 0;font-size:.95rem}

/* Branch container */
.branches{display:grid;grid-template-columns:1fr 1fr;gap:40px;margin-top:40px}
.branch{background:#fff;border-radius:16px;padding:30px;box-shadow:0 12px 30px rgba(0,0,0,.08)}
.branch h3{text-align:center;margin-bottom:25px;color:#0f172a}

/* Branch timelines */
.branch-timeline{position:relative;margin-left:30px}
.branch-timeline:before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:#94a3b8;border-radius:2px}
.branch-event{position:relative;margin-bottom:30px;padding-left:35px}
.branch-event:before{content:"";position:absolute;left:-9px;top:5px;width:16px;height:16px;background:#64748b;border-radius:50%}
.branch-event strong{color:#334155}

/* Connector */
.split-marker{margin:60px 0;text-align:center}
.split-marker span{display:inline-block;background:#1e3a8a;color:#fff;padding:8px 18px;border-radius:999px;font-weight:bold}

/* Responsive */
@media(max-width:900px){
  .branches{grid-template-columns:1fr}
}

/* ACCORDIAN */
	.faq-item {
      background: #ffffff;
      padding: 20px 25px;
      border-radius: 10px;
      margin-bottom: 15px;
      box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
    }
    .faq-item h4 {
      margin-bottom: 8px;
      font-size: 1.05rem;
      color: #1e3a8a;
    }
    .accordion {cursor:pointer; padding:14px; border:none; outline:none; width:100%; text-align:left; background:#e5e7eb; font-weight:bold; border-radius:8px; margin-top:10px; font-size: 1.1rem;}
	.panel {display:none; padding:15px; background:#ffffff; border-radius:8px; box-shadow:0 6px 18px rgba(0,0,0,0.05); margin-top:8px; font-size: 0.9rem;}