/* ==========================================================
   BBSEdTech — modern layer (loads AFTER style.css / header.css)
   Type scale, spacing, cards, AI hero, mobile action bar
   ========================================================== */
:root {
  --m-navy: #0a1633;
  --m-navy-2: #12245a;
  --m-indigo: #4f46e5;
  --m-cyan: #22d3ee;
  --m-ink: #0f172a;
  --m-muted: #5b6475;
  --m-line: #e6e9f0;
  --m-soft: #f5f7fb;
  --m-radius: 16px;
  --m-shadow: 0 6px 24px rgba(15, 23, 42, .07);
  --m-shadow-hover: 0 14px 34px rgba(15, 23, 42, .14);
}

html { scroll-behavior: smooth; }
body { color: var(--m-ink); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, h4 { letter-spacing: -.01em; }

/* ---------- section rhythm ---------- */
.section-pad { padding: clamp(48px, 7vw, 88px) 0; }
.bg-soft { background: var(--m-soft); }
.section-head { max-width: 760px; margin: 0 auto clamp(28px, 4vw, 48px); }
.section-eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--m-indigo); margin-bottom: .5rem; }
.section-title { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 800; line-height: 1.15; margin-bottom: .75rem; }
.section-sub { color: var(--m-muted); font-size: clamp(1rem, 1.6vw, 1.125rem); margin: 0; }

/* ---------- AI hero ---------- */
.ai-hero {
  position: relative; overflow: hidden; color: #fff;
  padding: clamp(40px, 7vw, 92px) 0 clamp(44px, 7vw, 96px);
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(79, 70, 229, .55), transparent 60%),
    radial-gradient(700px 380px at -5% 110%, rgba(34, 211, 238, .22), transparent 60%),
    linear-gradient(135deg, var(--m-navy) 0%, var(--m-navy-2) 100%);
}
.ai-hero__net { position: absolute; inset: 0; width: 100%; height: 100%; color: #7dd3fc; pointer-events: none; }
.ai-hero__net .n { animation: aiPulse 4.5s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
.ai-hero__net .n2 { animation-delay: .9s; } .ai-hero__net .n3 { animation-delay: 1.8s; }
.ai-hero__net .n4 { animation-delay: 2.7s; } .ai-hero__net .n5 { animation-delay: 3.6s; }
@keyframes aiPulse { 0%, 100% { opacity: .35; transform: scale(1); } 50% { opacity: 1; transform: scale(1.5); } }
@media (prefers-reduced-motion: reduce) { .ai-hero__net .n { animation: none; opacity: .6; } html { scroll-behavior: auto; } }

.ai-hero__eyebrow {
  display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 1rem; padding: .35rem .8rem;
  font-size: .82rem; font-weight: 600; color: #cfe6ff; background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px;
}
.ai-hero__eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--m-cyan); box-shadow: 0 0 0 4px rgba(34, 211, 238, .25); }
.ai-hero__title { font-size: clamp(2rem, 5.2vw, 3.6rem); font-weight: 800; line-height: 1.08; margin: 0 0 1rem; color: #fff; }
.ai-hero__title span { background: linear-gradient(90deg, #67e8f9, #a5b4fc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ai-hero__lead { font-size: clamp(1rem, 1.8vw, 1.2rem); color: #d6e4ff; max-width: 56ch; margin-bottom: 1.5rem; line-height: 1.55; }
.ai-hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.5rem; }
.ai-btn-primary { background: linear-gradient(135deg, #6366f1, #22d3ee); color: #06122e; border: 0; font-weight: 700; border-radius: 12px; padding: .8rem 1.4rem; box-shadow: 0 10px 26px rgba(34, 211, 238, .25); }
.ai-btn-primary:hover { color: #06122e; transform: translateY(-1px); filter: brightness(1.05); }
.ai-btn-ghost { color: #fff; border: 1px solid rgba(255, 255, 255, .35); border-radius: 12px; padding: .8rem 1.4rem; font-weight: 600; background: rgba(255, 255, 255, .06); }
.ai-btn-ghost:hover { color: #fff; background: rgba(255, 255, 255, .14); }
.ai-hero__proof { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin: 0; padding: 0; font-size: .92rem; color: #cfe0ff; }
.ai-hero__proof i { color: #fbbf24; margin-right: .3rem; }
.ai-hero__proof li:not(:first-child) i { color: #7dd3fc; }

.ai-hero__card {
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); border-radius: 20px;
  padding: 1.25rem; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
}
.ai-hero__batch { display: flex; flex-direction: column; gap: .1rem; padding: .9rem 1rem; margin-bottom: 1rem; border-radius: 14px; background: linear-gradient(135deg, rgba(99, 102, 241, .45), rgba(34, 211, 238, .25)); }
.ai-hero__batch .label { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: #cfe6ff; }
.ai-hero__batch strong { font-size: 1.5rem; line-height: 1.2; }
.ai-hero__batch small { color: #d6e4ff; }
.ai-hero__cardtitle { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: #a9c1ee; margin: 0 0 .5rem; }
.ai-hero__tracks li + li { margin-top: .4rem; }
.ai-hero__tracks a { display: flex; align-items: center; gap: .65rem; padding: .65rem .85rem; border-radius: 12px; color: #fff; text-decoration: none; background: rgba(255, 255, 255, .06); font-weight: 600; font-size: .95rem; transition: background .15s, transform .15s; }
.ai-hero__tracks a:hover { background: rgba(255, 255, 255, .16); transform: translateX(3px); color: #fff; }
.ai-hero__tracks a i:first-child { color: #67e8f9; font-size: 1.1rem; }

/* ---------- stats strip ---------- */
.bbs-stats { background: #fff; border-bottom: 1px solid var(--m-line); }
.bbs-stats .stat-box h3 { font-size: clamp(1.25rem, 2.6vw, 1.75rem); font-weight: 800; margin: 0; color: var(--m-navy); }
.bbs-stats .stat-box p { margin: 0; color: var(--m-muted); font-size: .9rem; }

/* ---------- course cards ---------- */
.course-card {
  position: relative; display: flex; flex-direction: column; height: 100%; padding: 1.5rem; text-decoration: none; color: inherit;
  background: #fff; border: 1px solid var(--m-line); border-radius: var(--m-radius); box-shadow: var(--m-shadow);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.course-card:hover { transform: translateY(-4px); box-shadow: var(--m-shadow-hover); border-color: #c7d2fe; color: inherit; }
.course-card__icon { width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.4rem; color: #fff; border-radius: 14px; background: linear-gradient(135deg, var(--m-indigo), #06b6d4); margin-bottom: 1rem; }
.course-card__badge { position: absolute; top: 1.25rem; right: 1.25rem; font-size: .72rem; font-weight: 700; padding: .25rem .6rem; border-radius: 999px; color: var(--m-indigo); background: #eef2ff; }
.course-card__title { font-size: 1.2rem; font-weight: 800; margin: 0 0 .5rem; }
.course-card__text { color: var(--m-muted); font-size: .96rem; line-height: 1.55; margin-bottom: .9rem; }
.course-card__tags { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1rem; padding: 0; }
.course-card__tags li { font-size: .76rem; padding: .22rem .6rem; border-radius: 999px; background: var(--m-soft); color: #334155; border: 1px solid var(--m-line); }
.course-card__meta { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; margin-top: auto; padding-top: .9rem; border-top: 1px dashed var(--m-line); font-size: .9rem; color: #334155; font-weight: 600; }
.course-card__meta i { color: var(--m-indigo); margin-right: .25rem; }
.course-card__cta { margin-top: .9rem; font-weight: 700; color: var(--m-indigo); }
.course-card__cta i { transition: transform .15s; display: inline-block; }
.course-card:hover .course-card__cta i { transform: translateX(4px); }
.more-line .more-link { display: inline-block; margin: .25rem .5rem; color: var(--m-navy); text-decoration: none; border-bottom: 1px solid #c7d2fe; }
.more-line .more-link:hover { color: var(--m-indigo); }

/* ---------- video testimonials ---------- */
.video-card__btn { position: relative; display: block; width: 100%; padding: 0; border: 0; background: #000; border-radius: 12px; overflow: hidden; cursor: pointer; aspect-ratio: 4/3; }
.video-card__btn img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.video-card__play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 3rem; color: #fff; text-shadow: 0 4px 16px rgba(0, 0, 0, .5); }

/* ---------- landing/course pages polish ---------- */
.card, .accordion-item { border-radius: var(--m-radius) !important; }
.btn { border-radius: 12px; }
main h1 { font-weight: 800; }
.accordion-button:not(.collapsed) { background: #eef2ff; color: var(--m-navy); }

/* ---------- mobile action bar ---------- */
.mobile-bar { display: none; }
@media (max-width: 767.98px) {
  body { padding-bottom: 68px; }
  .mobile-bar {
    display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 1500;
    background: #fff; border-top: 1px solid var(--m-line); box-shadow: 0 -6px 22px rgba(15, 23, 42, .12);
    padding: .4rem .5rem calc(.4rem + env(safe-area-inset-bottom));
  }
  .mobile-bar a { display: flex; flex-direction: column; align-items: center; gap: .1rem; padding: .35rem .25rem; font-size: .78rem; font-weight: 700; text-decoration: none; color: var(--m-navy); border-radius: 10px; }
  .mobile-bar a i { font-size: 1.25rem; }
  .mobile-bar a.wa { color: #128c4a; }
  .mobile-bar a.enq { color: #fff; background: linear-gradient(135deg, var(--m-indigo), #06b6d4); }
  .floating-whatsapp { display: none !important; }   /* the bar already has WhatsApp */
  .ai-hero__cta .btn { flex: 1 1 100%; text-align: center; }
}

/* ---------- mobile header: no overlapping fixed bars ---------- */
@media (max-width: 767.98px) {
  :root { --ribbon-h: 0px; --strip-h: 0px; }
  .offer-ribbon { position: static !important; height: auto !important; padding: .4rem 0; font-size: .8rem; line-height: 1.25; }
  .offer-ribbon .container { flex-wrap: wrap; gap: .4rem; }
  .contact-strip { display: none !important; }   /* Call / WhatsApp live in the bottom bar */
  .navbar.sticky-top { top: 0 !important; }
}

/* ---------- inner-page hero (about, policies, courses, area pages, landing pages) ---------- */
.page-hero {
  position: relative; overflow: hidden; color: #fff; padding: clamp(32px, 5vw, 64px) 0;
  background:
    radial-gradient(700px 300px at 90% -20%, rgba(79, 70, 229, .5), transparent 60%),
    radial-gradient(520px 260px at -5% 120%, rgba(34, 211, 238, .2), transparent 60%),
    linear-gradient(135deg, var(--m-navy) 0%, var(--m-navy-2) 100%);
}
.page-hero h1, .page-hero h2, .page-hero .text-primary, .page-hero .text-dark { color: #fff !important; }
.page-hero h1 span.text-dark { color: #7dd3fc !important; }
.page-hero .lead, .page-hero p, .page-hero .text-muted, .page-hero li, .page-hero small { color: #d6e4ff; }
.page-hero .text-muted { color: #c4d4f5 !important; }
.page-hero .breadcrumb { --bs-breadcrumb-divider-color: #93b4e8; }
.page-hero .breadcrumb a { color: #bfdbfe; }
.page-hero .breadcrumb-item.active { color: #fff; }
.page-hero .alert-primary { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .25); }
.page-hero .btn-outline-primary, .page-hero .btn-outline-success { color: #fff; border-color: rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .06); }
.page-hero .btn-outline-primary:hover, .page-hero .btn-outline-success:hover { background: rgba(255, 255, 255, .18); color: #fff; }
.page-hero .badge.text-bg-light { background: rgba(255, 255, 255, .14) !important; color: #fff !important; border-color: rgba(255, 255, 255, .25) !important; }
.page-hero .google-rating, .page-hero .google-rating * { color: #fff; }
.page-hero .card, .page-hero .card p, .page-hero .card li, .page-hero .card small, .page-hero .card label, .page-hero .card h2 { color: var(--m-ink); }
.page-hero .card .text-muted { color: #6c757d !important; }
.page-hero .btn-cta, .page-hero .btn-primary { box-shadow: 0 8px 22px rgba(34, 211, 238, .2); }

/* area / local pages: their old light hero bars */
section.bg-light.py-3 { background: var(--m-soft) !important; }

/* tables and generic content polish */
.table > :not(caption) > * > * { padding: .85rem .9rem; }
.table-primary { --bs-table-bg: #eef2ff; }
.breadcrumb { margin-bottom: .75rem; }

/* blog pages (their inline styles define a light .hero / .hero-article) */
main .hero:not(.ai-hero), .hero-article {
  background: radial-gradient(600px 260px at 90% -20%, rgba(79, 70, 229, .5), transparent 60%), linear-gradient(135deg, var(--m-navy), var(--m-navy-2)) !important;
  border: 0 !important; border-radius: var(--m-radius) !important; color: #fff;
}
main .hero:not(.ai-hero) h1, .hero-article h1 { color: #fff !important; }
main .hero:not(.ai-hero) p, .hero-article, .hero-article p, .hero-article .meta, .hero-article .meta * { color: #d6e4ff !important; }
.wrap .title, .wrap .btn { letter-spacing: 0; }

/* headings/text inside white cards that sit on the dark page hero must stay dark */
.page-hero .card h1, .page-hero .card h2, .page-hero .card h3, .page-hero .card h4, .page-hero .card h5, .page-hero .card h6,
.page-hero .card .text-primary, .page-hero .card .text-dark, .page-hero .card strong { color: var(--m-ink) !important; }
.page-hero .btn-outline-secondary, .page-hero .btn-outline-dark, .page-hero .btn-light { color: #fff; border-color: rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .08); }
.page-hero .btn-outline-secondary:hover, .page-hero .btn-outline-dark:hover { color: #fff; background: rgba(255, 255, 255, .2); }
.page-hero .btn-outline-secondary i, .page-hero .btn-outline-dark i { color: inherit !important; }

/* links on dark page hero */
.page-hero a:not(.btn):not(.google-rating) { color: #93c5fd; }
.page-hero a:not(.btn):hover { color: #fff; }
.page-hero .card a:not(.btn) { color: #0d6efd; }
.page-hero .breadcrumb a { color: #bfdbfe; }

/* blog thumbnails: the width/height attributes were forcing 360px tall images */
.wrap .thumb { height: auto !important; }

/* callback drawer: style the email field like the others */
.cb-field input[type="email"] {
  width: 100%; padding: 10px 12px; border: 1px solid #dfe6ee; border-radius: 10px; font-size: 15px; background: #fff;
}
.cb-field input[type="email"]:focus { outline: 0; border-color: #93c5fd; box-shadow: 0 0 0 3px rgba(59, 130, 246, .15); }

/* phones: the vertical "Request a Callback" tab covered page text; the bottom bar already has Enquire */
@media (max-width: 767.98px) {
  .callback-tab { display: none !important; }
  .ai-hero__net { opacity: .5; }
  .ai-hero__net circle { r: 3px; }
}

/* ---------- hero: fits above the fold on laptops ---------- */
.ai-hero { padding: clamp(18px, 2.6vw, 34px) 0 clamp(26px, 3.6vw, 46px); }
.ai-hero__eyebrow { margin-bottom: .7rem; }
.ai-hero__title { font-size: clamp(1.9rem, 3.7vw, 2.9rem); line-height: 1.1; margin-bottom: .75rem; }
.ai-hero__lead { font-size: clamp(.98rem, 1.4vw, 1.1rem); margin-bottom: 1.1rem; }
.ai-hero__cta { margin-bottom: 1rem; }
.ai-hero__card { padding: 1rem; }
.ai-hero__batch { padding: .7rem .9rem; margin-bottom: .75rem; }
.ai-hero__batch strong { font-size: 1.3rem; }
.ai-hero__tracks li + li { margin-top: .3rem; }
.ai-hero__tracks a { padding: .5rem .75rem; font-size: .92rem; }

/* ---------- contact hero tiles ---------- */
.contact-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .75rem; margin-top: 1.1rem; max-width: 660px; }
.contact-tile {
  display: flex; align-items: center; gap: .75rem; padding: .8rem 1rem; border-radius: 14px;
  background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .18);
}
.contact-tile i { color: #67e8f9; }
.contact-tile a { color: #fff !important; font-weight: 600; text-decoration: none; }
.contact-tile small { color: #b8cdf2; display: block; }
.contact-tile span { display: flex; flex-direction: column; line-height: 1.25; }
.page-hero .row.align-items-center { align-items: center !important; }

/* ---------- callback drawer: compact, no scrolling needed ---------- */
.cb-panel { width: 440px; right: -460px; border-radius: 18px 0 0 18px; overflow: hidden; }
.cb-panel.is-open { right: 0; }
.cb-panel__header {
  align-items: flex-start; padding: 20px 22px; border: 0; color: #fff;
  background: radial-gradient(420px 160px at 100% -30%, rgba(34, 211, 238, .35), transparent 60%), linear-gradient(135deg, var(--m-navy), var(--m-navy-2));
}
.cb-panel__header h3 { color: #fff; font-size: 1.3rem; font-weight: 800; }
.cb-sub { margin: .25rem 0 0; font-size: .86rem; color: #c9dbfb; }
.cb-close { color: #cfe0ff; font-size: 30px; }
.cb-close:hover { color: #fff; }
.cb-form { padding: 18px 22px 18px; overflow: visible; }
.cb-field { margin-bottom: 11px; }
.cb-field label { font-size: .78rem; font-weight: 700; color: var(--m-navy); margin-bottom: 4px; letter-spacing: .01em; }
.cb-opt { font-weight: 500; color: #7b8799; }
.cb-field input[type="text"], .cb-field input[type="tel"], .cb-field input[type="email"], .cb-field select, .cb-field textarea {
  width: 100%; padding: 9px 12px; font-size: 14.5px; border: 1px solid #dfe6ee; border-radius: 10px; background: #f8fafc;
}
.cb-field textarea { resize: none; }
.cb-field input:focus, .cb-field select:focus, .cb-field textarea:focus { background: #fff; border-color: #a5b4fc; box-shadow: 0 0 0 3px rgba(99, 102, 241, .16); }
.cb-split { gap: 10px; }
.cb-check { margin: 2px 0 10px; font-size: .88rem; }
.cb-submit { padding: .75rem 1rem; font-weight: 700; border-radius: 12px; background: linear-gradient(135deg, #6366f1, #06b6d4) !important; border: 0; color: #fff !important; }
.cb-privacy { margin: 8px 0 0; font-size: .78rem; text-align: center; }
@media (max-width: 575.98px) { .cb-panel { border-radius: 0; } .cb-split { flex-direction: column; gap: 0; } }
@media (max-height: 700px) { .cb-form { overflow: auto; max-height: calc(100dvh - 90px); } }

/* contact page: map stretches to the height of the enquiry form */
.map-fill { position: relative; min-height: 320px; }
.map-fill iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* about page glance card */
.about-glance li { display: flex; gap: .8rem; align-items: flex-start; padding: .65rem 0; border-top: 1px solid var(--m-line); color: var(--m-ink); }
.about-glance li:first-child { border-top: 0; padding-top: 0; }
.about-glance i { color: var(--m-indigo); font-size: 1.15rem; margin-top: .15rem; }
.about-glance small { color: var(--m-muted); }
