/* styles.css */

/* =====================================================
   Maqam Travels — Hajj 2026
   ===================================================== */
:root{
  --primary:#2384c6; --primary-600:#1d73ac;
  --ink:#0f1b2d; --muted:#56657a;
  --line:#e6edf4; --bg:#f6f9fc; --card:#ffffff;
  --radius:20px; --shadow:0 10px 30px rgba(15,27,45,.08);
}

html{scroll-behavior:smooth}
body{margin:0; font-family:"Nexa","Poppins","Inter",system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif; color:var(--muted); background:#fff; line-height:1.6}
.container{width:min(1200px,92%); margin-inline:auto; box-sizing:border-box}

/* ===== Header ===== */
.site-header{position:sticky; top:0; z-index:1000; background:#fff; border-bottom:1px solid var(--line)}
.header-inner{
  position:relative; display:flex; align-items:center; justify-content:flex-end;
  padding:.8rem 0; padding-right:1rem;
}
.logo-badge{position:absolute; left:0; top:-28px; width:90px; height:165px; z-index:1010; text-decoration:none}
.logo-badge .badge-rect{position:absolute; inset:0; background:var(--primary); border-radius:8px; box-shadow:0 18px 40px rgba(15,27,45,.15)}
.logo-badge .badge-logo{position:absolute; left:50%; top:64%; transform:translate(-50%,-50%); height:78px; width:auto; filter:drop-shadow(0 6px 14px rgba(0,0,0,.2))}
.primary-nav ul{display:flex; gap:1.5rem; list-style:none; margin:0; padding:0}
.primary-nav a{color:var(--ink); text-decoration:none; font-weight:700}
.lang-btn{border:1px solid var(--line); background:#fff; padding:.55rem .9rem; border-radius:999px; cursor:pointer; font-weight:700}
.menu-toggle{display:none; padding:.55rem .95rem; border:1px solid var(--line); background:#fff; border-radius:999px; font-weight:800; letter-spacing:.04em; cursor:pointer; z-index:1060}

/* Scrim */
.nav-scrim{position:fixed; inset:0; background:rgba(0,0,0,.35); z-index:1040; display:none}
body.nav-open .nav-scrim{display:block}

@media (max-width:900px){
  .header-inner{justify-content:flex-end; padding:.7rem 0; padding-left:140px}
  .menu-toggle{display:inline-block}
  .primary-nav{position:fixed; top:0; right:0; height:100vh; width:min(86vw,360px); background:#fff; border-left:1px solid var(--line); transform:translateX(100%); transition:transform .25s ease; z-index:1055; box-shadow:-12px 0 30px rgba(15,27,45,.1); padding-top:72px}
  body.nav-open .primary-nav{transform:translateX(0)}
  .primary-nav ul{flex-direction:column; gap:0; padding:0 6%}
  .primary-nav li{padding:.8rem 0; border-top:1px solid var(--line)}
  .primary-nav li:first-child{border-top:none}
}
@media (min-width:901px){ .header-inner{padding-left:150px} }

/* ===== Hero ===== */
.hero{position:relative; min-height:35vh; display:grid; place-items:center; padding:4rem 0; background-size:cover; background-position:center; background-color:#0f4c72}
.hero .overlay{position:absolute; inset:0; background:linear-gradient(180deg, rgba(0,0,0,.20), rgba(0,0,0,.45)); z-index:1; backdrop-filter:saturate(110%)}
.campaign-badge-float{ position:absolute; z-index:3; right: calc((100vw - min(1200px, 92vw)) / 2 + 8px); top: clamp(8px, 2vw, 16px);pointer-events:none; top: 35px;}
.campaign-badge{
  display:block;
  width: clamp(80px, 8vw, 110px);
  height:auto;
  filter:drop-shadow(0 4px 10px rgba(0,0,0,.15));
}
.hero-content{position:relative; z-index:2; color:#fff; text-align:left; width:min(1200px,90%); margin-top:20px}
.hero-content h1{color:#fff; font-weight:900; font-size:clamp(2.2rem, 4vw, 3.6rem); text-shadow:0 3px 12px rgba(0,0,0,.35); line-height:1.05; margin-bottom:0; margin-top:20px}
.hero-content p{
  max-width: 720px;
  font-size: clamp(0.98rem, 0.9vw + 0.7rem, 1.25rem);
  line-height: 1.5;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,.35);
  margin-top: .5rem;
  margin-bottom: 1.0rem;
}
.cta-group{display:flex; align-items:center; gap:1em; padding:.35rem; border-radius:999px; width:max-content; box-shadow:0 12px 35px rgba(0,0,0,.18); margin-bottom: 10px;}
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: .5rem 1.15rem;
  border-radius: 999px;
  font-weight: 900;
  text-decoration: none;
  letter-spacing: .02em;
  transition: background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn-primary{background:var(--primary); color:#fff}
.btn-secondary{background:#fff; color:var(--primary); border:1px solid #cfe2f3}
.anchor-target{height:1px; overflow:hidden; scroll-margin-top:90px}


/* ===== Sections / Roadmap shell ===== */
.section{padding:3rem 0}
.roadmap{position:relative; z-index:2; margin-top:-100px}

/* Phones & tablets default */
.roadmap-shell{
  position:relative; background:var(--primary); color:#fff;
  border-radius:28px; padding:36px 20px 50px;
  box-shadow:var(--shadow); overflow:hidden;
}
/* Desktop widen side padding */
@media (min-width:1025px){
  .roadmap-shell{ padding:36px 100px 50px; }
}

.roadmap-title{
  display:flex; align-items:center; justify-content:center;
  font-weight:900; letter-spacing:.045em; text-transform:uppercase;
  color:#fff; font-size:clamp(1rem, 1.4vw + .6rem, 1.35rem);
  margin:2px 0 22px;
}
.roadmap-title::before,
.roadmap-title::after{content:""; height:3px; background:#fff; opacity:.85; flex:1; border-radius:3px}
.roadmap-title::before{ margin-right:18px } .roadmap-title::after{ margin-left:18px }

/* ===== Your new Roadmap (3×2 desktop, vertical on mobile) ===== */
.roadmap-grid-2rows{
  display:grid;
  grid-template-columns: repeat(3, minmax(280px, 1fr));
  grid-template-rows: auto auto;
  gap: clamp(28px, 4vw, 56px) clamp(32px, 5vw, 96px);
  width:100%;
}
.step{
  position:relative; display:grid;
  grid-template-columns:72px 1fr; column-gap:16px; row-gap:6px; align-items:start;
  max-width:380px; margin-inline:auto;
}
.step-icon{
  width:72px; height:72px; display:block; object-fit:contain;
  filter:brightness(0) invert(1); align-self:center; justify-self:start;
}
.step-body{ display:grid; grid-auto-rows:max-content; }
.step-number{
  color:#fff; font-size:clamp(28px, 3vw, 40px); font-weight:600; line-height:1; margin:0 0 6px 0;
}
.step-title{
  margin:0 0 4px 0; color:#fff; font-weight:700; font-size:clamp(18px, 2.1vw, 22px); line-height:1.25;
}
.step-date{
  margin:0; color:#fff; font-weight:600; font-size:clamp(12px, 1.4vw, 13px); opacity:.95;
}
/* Desktop connectors */
.step.has-right::after{
  content:""; position:absolute; top:50%; left:calc(100% + 12px);
  width:clamp(32px, 6vw, 72px); height:2px; background:#fff; transform:translateY(-50%);
  opacity:.95; border-radius:2px;
}
.step.has-down::after{
  content:""; position:absolute; top:calc(100% + 12px); left: calc(72px + 50%);
  transform: translateX(-50%); width:2px; height:clamp(36px, 6vw, 64px);
  background:#fff; opacity:.95; border-radius:2px;
}

/* Tablet & below: vertical */
@media (max-width:1000px){
  .roadmap-grid-2rows{ display:flex; flex-direction:column; gap:22px; align-items: center; width: 100%;}
  .roadmap-grid-2rows > .step:nth-child(1){ order:1; }
  .roadmap-grid-2rows > .step:nth-child(2){ order:2; }
  .roadmap-grid-2rows > .step:nth-child(3){ order:3; }
  .roadmap-grid-2rows > .step:nth-child(4){ order:4; }
  .roadmap-grid-2rows > .step:nth-child(5){ order:5; }
  .roadmap-grid-2rows > .step:nth-child(6){ order:6; }
  .step.has-right::after, .step.has-down::after{ display:none; }

  .step{
    max-width:640px; width:min(96vw, 640px); width: clamp(300px, 92%, 640px);
    max-width: 640px;
    margin-inline: auto;
    padding-right: 14px; 
    box-sizing: border-box;
    display:grid; grid-template-columns:60px 56px 1fr;
    grid-template-rows:auto auto; column-gap:16px; row-gap:2px;
    align-items:start; padding-bottom:14px; padding-left:28px;
  }
  .step-icon{ grid-column:1; grid-row:1 / span 2; width:60px; height:60px; align-self:center; justify-self:center; }
  .step-body{ display:contents; }
  .step-number{
    grid-column:2; grid-row:1; font-size:26px; font-weight:600; line-height:1; margin:0;
    padding-top:12px; padding-bottom:6px; text-align:center; position:relative; z-index:2;
  }
  .step-title{ grid-column:3; grid-row:1; font-size:18px; margin:0; }
  .step-date{ grid-column:3; grid-row:2; font-size:12.5px; margin:2px 0 0 0; }
  .step-number::after{
    content:""; position:absolute; left:50%; bottom:-44px; transform:translateX(-50%);
    width:2px; height:44px; background:#fff; border-radius:2px; opacity:.95; z-index:3;
  }
  .roadmap-grid-2rows > .step:last-child .step-number::after{ display:none; }
}
@media (max-width:420px){
  .step{ grid-template-columns:52px 52px 1fr; column-gap:12px; }
  .step{ width: clamp(280px, 90%, 560px); }
  .step-icon{ width:52px; height:52px; }
  .step-number{ font-size:24px; padding-top:10px; }
  .step-title{ font-size:17px; }
  .step-date{ font-size:12px; }
  .step-number::after{ height:40px; bottom:-40px; }
}

/* Mobile vertical order fix: force 1→6 sequence without changing HTML */
@media (max-width:1000px){
  .roadmap-grid-2rows{
    display: flex;
    flex-direction: column;
  }

  /* reset any previous ordering */
  .roadmap-grid-2rows > .step{ order: 0 !important; }

  /* Top row stays 1,2,3 */
  .roadmap-grid-2rows > .step:nth-child(1){ order: 1 !important; } /* 01 */
  .roadmap-grid-2rows > .step:nth-child(2){ order: 2 !important; } /* 02 */
  .roadmap-grid-2rows > .step:nth-child(3){ order: 3 !important; } /* 03 */

  /* Bottom row in your HTML is 06,05,04 → remap to 04,05,06 */
  .roadmap-grid-2rows > .step:nth-child(6){ order: 4 !important; } /* 04 goes 4th */
  .roadmap-grid-2rows > .step:nth-child(5){ order: 5 !important; } /* 05 goes 5th */
  .roadmap-grid-2rows > .step:nth-child(4){ order: 6 !important; } /* 06 goes last */
}

/* ==== Mobile vertical connector fix when using CSS order remap ==== */
@media (max-width:1000px){
  /* 1) Undo the generic "hide last-child" (DOM last = step 04 in your HTML) */
  .roadmap-grid-2rows > .step:last-child .step-number::after{
    display: block !important;
  }

  /* 2) Hide the connector on the visually last card:
        In your DOM, the 4th element is step "06" and we set it to order: 6 (last) */
  .roadmap-grid-2rows > .step:nth-child(4) .step-number::after{
    display: none !important;  /* no line after 06 */
  }

  /* 3) Ensure the connector after step "04" (DOM 6th) shows,
        so you get the line between 04 and 05 as expected */
  .roadmap-grid-2rows > .step:nth-child(6) .step-number::after{
    display: block !important;
  }
}

/* Ensure roadmap titles wrap and tend to be 2 lines */
.roadmap-grid-2rows .step-title{
  white-space: normal !important;     /* override any inherited nowrap */
  overflow-wrap: anywhere;            /* allow break even on long words */
  display: block;
  line-height: 1.25;
}

/* Desktop/laptop: keep titles around ~2 lines */
@media (min-width: 1001px){
  .roadmap-grid-2rows .step-title{
    max-inline-size: 18ch;           /* ~18 characters width encourages 2 lines */
  }
}

/* Tablet & phones: a bit wider measure for two lines */
@media (max-width: 1000px){
  .roadmap-grid-2rows .step-title{
    max-inline-size: 20ch;           /* adjust if you want earlier/later wrapping */
  }
}

/* Optional: hard clamp to exactly 2 lines with ellipsis when longer
   -> add class="step-title clamp-2" in HTML if you want this behavior */
.roadmap-grid-2rows .step-title.clamp-2{
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== Lectures ===== */
.lectures.section{ padding-top:0; }
.lectures h2{
  position:relative; display:flex; align-items:center; justify-content:center;
  font-weight:900; letter-spacing:.045em; text-transform:uppercase;
  font-size:clamp(1rem, 1.4vw + .6rem, 1.35rem); margin:2px 0 22px;
}
.lectures h2::before, .lectures h2::after{
  content:""; height:3px; background:var(--primary); opacity:.85; flex:1; border-radius:3px;
}
.lectures h2::before{ margin-right:18px; } .lectures h2::after{ margin-left:18px; }
.lectures p{max-width:800px; margin:.5rem auto 1.5rem; text-align:center}
.videos{display:grid; grid-template-columns:repeat(3,1fr); gap:1rem; width:min(1200px,92%); margin-inline:auto}
.video-card{aspect-ratio:16/9; background:#fff; border:1px solid var(--line); border-radius:16px; display:grid; place-items:center; font-size:2rem; color:var(--primary); box-shadow:var(--shadow); cursor:pointer}
@media (max-width:768px){ .videos{grid-template-columns:1fr} }
.videos-cta{width:min(1200px,92%); margin:1.5rem auto 0; text-align:center}

/* ===== FAQ ===== */
.faq{padding:2.5rem 0 3.25rem; background:#fff}
.faq h2{text-align:center; margin-bottom:1rem}
.faq-item{width:min(900px,92%); margin:.6rem auto}
.faq-toggle{width:100%; text-align:left; background: var(--primary); border:1px solid var(--line); padding:1rem 1.1rem; border-radius:12px; font-weight:700; color: #fff; cursor:pointer}
.faq-panel{padding:1rem 1.1rem; border-left:3px solid var(--primary); background:#fff}

/* ===== Footer ===== */
.site-footer{background:var(--primary); color:#dcebfa; margin-top:2rem}
.site-footer a{color:#fff; text-decoration:none; opacity:.95}
.site-footer a:hover{opacity:1}
.footer-grid{
  display:grid; grid-template-columns:1.7fr 1.3fr;
  gap:clamp(16px, 4vw, 48px); padding:clamp(30px, 3vw, 28px) 0 clamp(24px, 4vw, 36px);
}
.footer-left{display:flex; flex-direction:column; gap:clamp(12px, 1.8vw, 18px)}
.footer-logo{max-width:30%; width:clamp(160px, 40%, 260px); height:auto;}
.footer-divider{border:0; height:1px; width:100%; background:rgba(255,255,255,.85); border-radius:3px;}
.partner-logos{display:flex; align-items:center; gap:clamp(12px, 3vw, 28px); flex-wrap:wrap;}
.partner-logos img{height:50px; width:auto; filter:none; opacity:.95;}
.partner-logos img:hover{opacity:1}
.footer-right{display:grid; grid-template-columns:1fr 1fr; gap:clamp(12px, 2.5vw, 28px); align-content:start;}
.footer-col h4{margin:0 0 .6rem 0; color:#fff; font-size:clamp(1rem, .9vw + .8rem, 1.2rem);}
.footer-links{list-style:none; padding:0; margin:0; display:grid; gap:.45rem}
.footer-links li a{font-weight:500}
.contact-list{list-style:none; padding:0; margin:0 0 .6rem 0; display:grid; gap:.4rem}
.contact-list li{display:flex; align-items:center; gap:.6rem}

/* Remove circle around contact icons (email/phone) */
.contact-list .ico{border:none; border-radius:0; width:auto; height:auto; padding:0; display:inline-flex; align-items:center; justify-content:center; flex:0 0 auto;}
.contact-list li{gap:.5rem;}
.contact-list .ico img{width:20px; height:20px; display:block; filter:brightness(0) invert(1)}
@media (max-width:600px){ .contact-list .ico img{width:18px; height:18px;} }

.socials-row{display:flex; gap:.55rem; flex-wrap:wrap; margin-top:.25rem}
.btn-icon{width:40px; height:40px; border:2px solid #fff; border-radius:50%; display:grid; place-items:center; opacity:.95;}
.btn-icon:hover{opacity:1}
.btn-icon img{width:20px; height:20px; display:block; filter:brightness(0) invert(1)}
.copyright{text-align:center; padding:.9rem 0; background:rgba(0,0,0,.12); color:#e5f1fb; margin: 0;}

/* ===== Responsive footer ===== */
@media (max-width:900px){
  .footer-grid{grid-template-columns:1fr; gap:24px}
  .footer-right{grid-template-columns:1fr 1fr}
  .footer-logo{width:clamp(120px, 35vw, 180px);}
}
@media (max-width:600px){
  .footer-right{grid-template-columns:1fr}
  .footer-logo{width:clamp(110px, 50vw, 160px);}
  .partner-logos img{height:clamp(22px, 6vw, 32px);}
  .btn-icon{width:34px; height:34px}
  .btn-icon img{width:18px; height:18px}
}

/* ===== Video Modal ===== */
.video-modal[hidden]{display:none}
.video-modal{position:fixed; inset:0; z-index:2000; display:grid; place-items:center;}
.video-modal__backdrop{position:absolute; inset:0; background:rgba(0,0,0,.7); backdrop-filter:blur(2px)}
.video-modal__dialog{position:relative; width:min(1200px, 92vw); animation:vm-pop .18s ease-out}
@keyframes vm-pop{from{transform:scale(.96); opacity:0} to{transform:scale(1); opacity:1}}
.video-modal__frame{aspect-ratio:16/9; background:#000; border-radius:16px; overflow:hidden; box-shadow:0 20px 60px rgba(0,0,0,.45)}
.video-modal__frame iframe{width:100%; height:100%; border:0; display:block}
.video-modal__close{position:absolute; top:-12px; right:-12px; width:42px; height:42px; border-radius:50%; border:0; cursor:pointer; background:#fff; color:#111; font-size:22px; font-weight:900; box-shadow:0 8px 20px rgba(0,0,0,.25)}
@media (max-width:600px){
  .video-modal__dialog{width:96vw}
  .video-modal__frame{border-radius:12px}
  .video-modal__close{top:8px; right:8px; background:rgba(255,255,255,.95)}
}

/* Optional: play badge on video cards */
.video-card{position:relative}
.video-card::after{
  content:""; position:absolute; inset:auto 0 0 0; height:42px;
  background:linear-gradient(to top, rgba(0,0,0,.35), rgba(0,0,0,0));
  border-bottom-left-radius:16px; border-bottom-right-radius:16px;
}
.video-card .play-badge{
  position:absolute; left:12px; bottom:10px; background:rgba(0,0,0,.6); color:#fff;
  font-weight:800; border-radius:999px; padding:.25rem .6rem; font-size:.9rem; letter-spacing:.02em;
}

/* Keep 3×2 at small desktop, but make it fit */
@media (min-width: 1001px) and (max-width: 1200px){
  .roadmap-grid-2rows{
    grid-template-columns: repeat(3, minmax(220px, 1fr));     /* was 280px */
    column-gap: clamp(16px, 2.5vw, 32px);                     /* narrower gaps */
    row-gap: clamp(20px, 3vw, 40px);
  }
  /* So the inner content box is wider at 1024 */
  .roadmap-shell{ padding-left: 60px; padding-right: 60px; }  /* was 100px */
  /* Shorter connector for tighter columns */
  .step.has-right::after{ width: clamp(20px, 4vw, 48px); }     /* was up to 72px */
}

/* === Tablet-only centering for vertical roadmap (force via margins/width) === */
@media (min-width: 641px) and (max-width: 1000px){
  /* keep the vertical stack you already use on this range */
  .roadmap-grid-2rows{
    display: flex;
    flex-direction: column;
    gap: 22px;

    /* center the children as a second layer of safety */
    align-items: center;
    width: 100%;
    max-width: 100%;
  }

  /* force each step to sit centered with side gutters */
  .roadmap-grid-2rows .step{
    /* center via margins */
    margin-left: auto !important;
    margin-right: auto !important;

    /* width relative to the shell (not viewport) + gutters */
    width: min(680px, calc(100% - 40px)) !important; /* ≈20px gutter each side */
    max-width: 680px !important;

    /* keep your internal layout; add a tiny right gutter */
    padding-left: 160px;  /* your icon offset */
    padding-right: 16px;
    box-sizing: border-box;
  }
}

/* Desktop/laptop: move the vertical connector under the 3rd step's icon */
@media (min-width: 1001px){
  /* If your 3rd card has class "has-down" (it does) */
    .roadmap-grid-2rows .step.has-down::after{
      left: 36px;          /* center of a 72px icon */
      transform: none;     /* stop centering by 50% */
    }
  }
  
  /* === Desktop/laptop connector fixes === */
@media (min-width: 1001px){
  /* 1) Expose the grid gaps as variables so we can size lines relative to gaps */
  .roadmap-grid-2rows{
    --rm-row-gap: clamp(28px, 4vw, 56px);
    --rm-col-gap: clamp(32px, 5vw, 96px);
    row-gap: var(--rm-row-gap);
    column-gap: var(--rm-col-gap);
  }

  /* 2) Horizontal connectors (from step 1→2 and 2→3) — keep them inside the gap */
  .roadmap-grid-2rows .step.has-right::after{
    left: calc(100% + 6px);                 /* start slightly into the gap */
    width: calc(var(--rm-col-gap) * 0.45);  /* less than half the gap => no icon overlap */
  }
  /* The second connector (step 2 → step 3) gets even shorter */
  .roadmap-grid-2rows > .step:nth-child(2).has-right::after{
    width: calc(var(--rm-col-gap) * 0.38);
  }

  /* 3) Vertical connector under the 3rd step — put it under the icon and shorten */
  .roadmap-grid-2rows > .step:nth-child(3).has-down::after{
    left: 36px;                 /* half of a 72px icon (center under icon) */
    transform: none;            /* stop the 50% centering */
    height: calc(var(--rm-row-gap) * 0.50); /* shorter than the row gap -> won't reach row 2 icon */
  }
}

/* Bigger partner logos on phones */
@media (max-width:600px){
  .partner-logos img{
    height: clamp(40px, 15vw, 33px) !important; /* was clamp(22px, 6vw, 32px) */
    width: auto;
  }
  .partner-logos{
    gap: clamp(12px, 4vw, 20px);  /* a bit more breathing room */
  }
}

/* Fix mobile stacking: keep drawer above the scrim */
@media (max-width: 900px){
  .site-header{ z-index: 2000; }   /* header (and its children) above scrim */
  .primary-nav{ z-index: 2010; }   /* slide-out menu above header background */
  .menu-toggle{ z-index: 2020; }   /* button stays clickable */
  .nav-scrim{ z-index: 1500; }     /* scrim below drawer, above page content */
}

/* ===== Countdown banner — FULL CSS (bottom bar, left text + right timer) ===== */
.countdown-banner[hidden]{ display:none; }

.countdown-banner{
  position: fixed;
  left: 0; right: 0;
  bottom: max(0px, env(safe-area-inset-bottom));
  background: #000;
  color: #fff;
  z-index: 2200;
  transform: translateY(110%);               /* slide up from bottom */
  transition: transform .35s ease;
  /* clean rectangle */
  box-shadow: none;
  border-radius: 0;
  border-top: 1px solid rgba(255,255,255,.15);
  padding-bottom: env(safe-area-inset-bottom);
}
.countdown-banner.show{ transform: translateY(0); }

/* Row layout inside your site's .container (your container already sets max-width) */
.countdown-banner .cb-inner{
  display: flex;
  align-items: center;
  justify-content: flex-start;                /* left group stays left */
  gap: 16px;
  padding-bottom: 40px;
  padding-top: 20px;                            /* side padding comes from .container */
  text-align: left;
}

/* LEFT GROUP: [icon][text] */
.cb-logo{
  width: clamp(32px, 4vw, 48px);
  height: auto;
  flex: 0 0 auto;
  /* uncomment if your icon is dark and needs to appear white on black */
  /* filter: brightness(0) invert(1); */
}
.cb-text{
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-start;
  flex: 0 1 auto;                             /* don't hog width */
  min-width: 200px;
}
.cb-text strong{
  font-weight: 800;
  line-height: 1.1;
  font-size: clamp(1rem, 1.1vw + .6rem, 1.4rem);
  letter-spacing: .02em;
}
.cb-label{
  font-size: clamp(1rem, 1.1vw + .6rem, 1.4rem);
  opacity: .95;
  line-height: 1.2;
}

/* RIGHT GROUP: timer pushed to the far right */
.cb-timer{
  margin-left: auto;                           /* ✅ pushes to the far right */
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

/* Optional visual separator between text and timer (tablet/desktop only) */
@media (min-width: 641px){
  .cb-timer{
    position: relative;
    padding-left: clamp(12px, 2vw, 24px);
  }
  .cb-timer::before{
    content: "";
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    height: clamp(20px, 3vw, 32px);
    width: 1px;
    background: rgba(255,255,255,.25);
    border-radius: 1px;
  }
}

/* Timer chip styles */
.cb-box{
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  background: #111;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 10px;
  padding: 6px 10px;
}
.cb-box b{
  font-weight: 900;
  letter-spacing: .02em;
  font-size: clamp(1rem, .6vw + .7rem, 1.2rem);
}
.cb-box em{
  font-style: normal;
  font-size: .8rem;
  opacity: .9;
}

/* DISMISS (×) — small circular button ABOVE the bar, aligned with container's right edge */
.cb-close{
  position: absolute !important;
  top: -14px !important;                      /* sits on the top edge */
  right: calc((100vw - min(1200px, 92vw)) / 2 + 8px) !important;
  /* ^ aligns with the right edge of your .container (max width = min(1200px,92%)) */
  width: 34px; height: 34px;
  border-radius: 100%;
  border: 1px solid rgba(0, 0, 0, 0.35);
  background: #ffffff; color: #000000;
  font-weight: 900; font-size: 16px;
  display: grid; place-items: center;
  cursor: pointer;
}
.cb-close:hover{ background:#ffffffbb; }

/* Keep one straight row on tablet/desktop */
@media (min-width: 641px){
  .countdown-banner .cb-inner{ flex-wrap: nowrap; }
}

/* Phones: allow wrap & center; timer no longer forced right; button stays top-right */
@media (max-width: 640px){
  .countdown-banner .cb-inner{
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    gap: 10px;
  }
  .cb-text{ align-items: center; }
  .cb-timer{
    margin-left: 0;
    padding-left: 0;
  }
  .cb-timer::before{ display: none; }
  .cb-close{
    top: -12px !important;
    right: 12px !important;                   /* reachable on phones */
    width: 32px; height: 32px; font-size: 15px;
  }
}

/* Let the overlapping roadmap area be click-through */
.roadmap { pointer-events: none; }                 /* parent off */
.roadmap-shell,
.roadmap-title { pointer-events: none; }           /* header area off */

/* Re-enable clicks for the actual interactive grid & its contents */
.roadmap-grid-2rows,
.roadmap-grid-2rows * { pointer-events: auto; }


