/* ===============================
   COMPONENTS
   - Buttons & Hero
   - Banners (image & promo)
   - ESL cards/table
   - Flag carousel
================================== */

/* Buttons + hero */
.hero{
  padding:4rem 1rem; text-align:center;
  background:rgba(255,253,253,.75);
  backdrop-filter:saturate(120%) blur(2px);
}
.cta-button{
  display:inline-flex; align-items:center; gap:8px;
  margin-top:1rem; padding:10px 16px;
  background:#0b63c9; color:#fff; text-decoration:none;
  border-radius:10px; font-weight:600;
}
.cta-button:hover{ opacity:.9; }

.btn{ display:inline-flex; align-items:center; gap:8px; padding:10px 16px; border-radius:10px; text-decoration:none; font-weight:600; }
.btn.primary{ background:#0b63c9; color:#fff; }
.btn.outline{ border:2px solid #0b63c9; color:#0b63c9; background:#fff; }
.btn:hover{ opacity:.9; }

/* ----- Full-bleed image banner ----- */
.image-banner{
  --banner-image:url('css/boy_green_banner.png');
  --focus-x:50%; --focus-y:50%;
  background-image:var(--banner-image);
  background-repeat:no-repeat; background-size:cover;
  background-position:var(--focus-x) var(--focus-y);
  aspect-ratio:12/5; min-height:260px;
  margin:2rem 0; border-radius:16px; position:relative; max-width:none;
}
.image-banner.wide{
  display:block;
  width:100%;
  max-width:100%;
  margin-left:0;
  margin-right:0;
  border-radius:0;
  overflow:hidden; /* guard against sub-pixel spill */
}

/* ----- Promo banner (full bleed) ----- */
.promo-banner{
  --banner-start:#ff7a1a; --banner-end:#ff3d2e;
  position:relative;
  padding:56px 16px;
  color:#fff;
  background:linear-gradient(135deg, var(--banner-start), var(--banner-end));
  overflow:hidden;
  width:100%;
  max-width:100%;
  margin:2.5rem 0;
  border-radius:0;
}
.promo-banner::before{
  content:""; position:absolute; inset:-10%;
  background:
    linear-gradient(45deg, rgba(255,255,255,.08) 0 25%, transparent 25% 50%, rgba(255,255,255,.08) 50% 75%, transparent 75% 100%),
    linear-gradient(-45deg, rgba(255,255,255,.06) 0 20%, transparent 20% 40%, rgba(255,255,255,.06) 40% 60%, transparent 60% 80%, rgba(255,255,255,.06) 80% 100%);
  background-size:220px 220px, 260px 260px; opacity:.45; pointer-events:none;
}
.promo-inner{ max-width:1200px; margin:0 auto; text-align:center; position:relative; z-index:1; }
.promo-banner .eyebrow{ margin:0 0 6px; letter-spacing:.08em; text-transform:uppercase; font-weight:600; opacity:.9; }
.promo-banner h3{ margin:0 0 10px; font-weight:700; font-size:clamp(1.4rem, 3vw, 2rem); line-height:1.2; }
.price-row{ display:flex; align-items:baseline; justify-content:center; gap:10px; margin:8px 0 20px; flex-wrap:wrap; }
.price-row .label, .price-row .per{ font-size:clamp(1rem,1.8vw,1.25rem); font-weight:600; }
.price-row .price{ font-weight:700; font-size:clamp(2.6rem,7vw,4.2rem); line-height:1; }
.price-row .price .currency{ font-size:.45em; margin-right:2px; }
.price-row .price .cents{ font-size:.45em; vertical-align:top; }
.btn.banner-cta{ background:transparent; border:2px solid rgba(255,255,255,.95); color:#fff; border-radius:10px; padding:10px 18px; text-transform:uppercase; letter-spacing:.02em; }
.btn.banner-cta:hover{ background:rgba(255,255,255,.18); opacity:1; }

/* ----- ESL page components ----- */
.esl-section{ max-width:1100px; margin:0 auto; padding:24px; }
.esl-hero h2{ margin-bottom:8px; }
.esl-hero p{ color:#333; line-height:1.7; }

/* grid */
.esl-grid{ display:grid; gap:20px; margin:20px 0 8px; }
@media (min-width:700px){ .esl-grid{ grid-template-columns:repeat(2, minmax(0,1fr)); } }

/* cards */
.esl-card{
  background:#fff; border:1px solid #e6e6e6; border-radius:14px;
  padding:18px; box-shadow:0 2px 10px rgba(0,0,0,.04); height:100%;
}
.esl-card h3{ margin:0 0 12px; line-height:1.2; display:flex; align-items:center; gap:10px; }
.esl-card h3 i{ flex:0 0 22px; inline-size:22px; text-align:center; line-height:1; }

/* lists */
.esl-checklist, .esl-bullets{ margin:0; padding-left:0; list-style:none; }
.esl-checklist li, .esl-bullets li{
  display:flex; align-items:flex-start; gap:12px; margin:10px 0; line-height:1.5;
}
.esl-checklist li i, .esl-bullets li i{
  flex:0 0 20px; inline-size:20px; text-align:center; line-height:1; margin-top:2px;
}
.esl-item-text{ flex:1; min-width:0; line-height:1.55; overflow-wrap:break-word; }
.esl-checklist i, .esl-bullets i{ color:#168038; }
.esl-note{ margin-top:10px; font-size:.95rem; color:#555; }
.esl-card p + .esl-bullets, .esl-card p + .esl-checklist{ margin-top:8px; }

/* table */
.esl-table-wrap{ margin-top:16px; overflow-x:auto; -webkit-overflow-scrolling:touch; }
.esl-table-wrap h3{ display:flex; align-items:center; gap:10px; }
.esl-table{
  width:100%; border-collapse:collapse; margin-top:10px; font-size:16px;
  font-family:'Poppins', sans-serif; min-width:720px;
}
.esl-table thead tr{ background:#0b63c9; color:#fff; text-align:left; }
.esl-table th, .esl-table td{ padding:12px 14px; border:1px solid #e5e5e5; vertical-align:top; }
.esl-table tbody tr:nth-child(even){ background:#fafafa; }
.esl-table tbody tr:hover{ background:#f3f7ff; }

/* CTAs cluster */
.esl-cta{ display:flex; gap:12px; margin-top:18px; flex-wrap:wrap; }

/* ----- Flag carousel ----- */
/* ===== Flag carousel — infinite marquee ===== */
/* ===== Flag carousel — infinite marquee ===== */
.flag-carousel{
  --fc-gap: 14px;          /* space between chips */
  --fc-speed: 10s;         /* bigger = slower; 50–120s is nice */
  position: relative;
  max-width: 1200px;
  margin: 1.75rem auto;
  overflow: hidden;
  padding: 0;
}

.fc-track{
  display: flex;
  flex-wrap: nowrap;       /* <— keep both belts on one line */
  overflow: hidden;        /* viewport */
  width: 100%;
  white-space: nowrap;     /* extra guard against wrapping */
}

.fc-belt{
  display: inline-flex;
  flex: 0 0 auto;          /* don’t stretch */
  align-items: center;
  gap: var(--fc-gap);
  padding: 10px 0;
  will-change: transform;
  animation: fc-marquee var(--fc-speed) linear infinite;
}

@keyframes fc-marquee{
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }  /* we’ll clone once in JS */
}

/* chip */
.fc-item{
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid #e7e7e7;
  border-radius: 999px;
  color: #222;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 1px 6px rgba(0,0,0,.04);
  transition: border-color .2s, transform .15s, box-shadow .2s;
}
.fc-item:hover{ border-color:#2980b9; box-shadow:0 4px 16px rgba(0,0,0,.08); transform: translateY(-1px); }
.fc-item:focus-visible{ outline:3px solid #2980b9; outline-offset:2px; }

.fc-item img{
  width: 28px; height: 20px; object-fit: cover; border-radius: 3px; display: block;
}

/* hide any leftover arrows in marquee mode */
.fc-arrow{ display:none !important; }

/* If you *always* want movement, remove this block. */
@media (prefers-reduced-motion: reduce){

}



/*  <<< INSERT NEW RULES HERE >>>  */

/* Remove the generic section padding for the image banner */
section.image-banner { padding: 0; }

/* Remove top margin so it touches the navbar */
.image-banner { margin: 0 0 2rem; }        /* keep only bottom margin if you want space below */

/* If you want *no* space below either, use this instead: */
/* .image-banner { margin: 0; } */

/* Pause carousel animation on hover */
.flag-carousel:hover .fc-belt {
  animation-play-state: paused;
}

/* show grab cursor + disable clicks while dragging */
.flag-carousel .fc-belt { cursor: grab; }
.flag-carousel.is-dragging a { pointer-events: none; }

/* Carousel is JS-driven now — disable CSS animation */
.flag-carousel .fc-belt { 
  animation: none !important;
  will-change: transform;
  cursor: grab;
}

/* while dragging, prevent accidental link clicks */
.flag-carousel.is-dragging a { pointer-events: none; }



/* ----- Mobile tweaks for ESL (≤600px) ----- */
@media (max-width:600px){
  .about-page h2, .about-page h3,
  .esl-hero h2, .esl-card h3{ overflow-wrap:anywhere; }

  .esl-section{ padding:16px 14px; }
  .esl-hero h2{ font-size:clamp(1.1rem, 5.5vw, 1.35rem); margin:0 0 6px; }
  .esl-hero p{ font-size:1rem; line-height:1.6; }

  .esl-grid{ grid-template-columns:1fr; gap:14px; }
  .esl-card{ padding:14px; }
  .esl-card h3{ font-size:1.05rem; }

  .esl-checklist li, .esl-bullets li{ margin:8px 0; }
  .esl-checklist li i, .esl-bullets li i{ inline-size:18px; flex-basis:18px; margin-top:3px; }

  .esl-table-wrap{ margin:12px -12px 0; padding:0 12px; overflow-x:auto; -webkit-overflow-scrolling:touch; }
  .esl-table{ font-size:13.5px; min-width:620px; }
  .esl-table th, .esl-table td{ padding:10px 8px; }
}

/* ----- About / interior alternating sections ----- */
main.about-page{ max-width:960px; margin:0 auto; padding:2rem 1rem; }
.about-page.about-wide{ max-width:1200px; }
.about-page section{ margin-bottom:3rem; }
.about-page h2, .about-page h3{ color:#4a90e2; margin-bottom:1rem; }
.about-page ul{ padding-left:1.2rem; }
.about-page li{ margin-bottom:.5rem; }
.about-page section:nth-child(even){ background:#f9f9f9; padding:2rem 1rem; border-radius:8px; }



/* Remove top margin so it touches the navbar */

/* If you want *no* space below either, use this instead: */
/* .image-banner { margin: 0; } */

