/* =========================================================
   BSA HOME — Global Styles
   File: /assets/css/home.css
   Notes:
   - This file is PURE CSS (no <style> tags).
   - Avoid overriding Bootstrap core classes where possible.
   ========================================================= */


/* =========================================================
   1) Theme Tokens (CSS Variables)
   ---------------------------------------------------------
   Change these once and the whole site updates.
   ========================================================= */
:root{
  /* Brand */
  --bsa-blue:#004080;
  --bsa-blue-soft:#e6f0ff;
  --bsa-red:#b30000;

  /* Neutrals */
  --bsa-text:#111827;
  --bsa-muted:#6b7280;
  --bsa-card:#ffffff;
  --bsa-page:#f5f7fb;

  /* Layout */
  --max:1100px;
  --radius:16px;

  /* Ether overlay tint */
  --ether-tint: rgba(255,255,255,0.45);

  /* Used by testimonial panel border to match navbar feel */
  --nav-border: rgba(15,23,42,0.10);
}


/* =========================================================
   2) Base Reset / Defaults
   ---------------------------------------------------------
   Keeps things consistent and prevents horizontal scroll.
   ========================================================= */
*{ box-sizing:border-box; }

html,body{
  margin:0;
  padding:0;
  min-height:100%;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color:var(--bsa-text);
  background:var(--bsa-page);
  overflow-x:hidden; /* prevents sideways scrolling on mobile */
  display:block !important;
}

img,video{
  max-width:100%;
  height:auto;
  display:block;
}

a{
  color:inherit;
  text-decoration:none;
}


/* =========================================================
   3) Layout Container Helper (SAFE)
   ---------------------------------------------------------
   Bootstrap already defines .container. Don’t override it.
   Use .bsa-container for your max width + padding.
   ========================================================= */
.bsa-container{
  max-width:var(--max);
  margin:0 auto;
  padding:0 24px;
}

/* Optional: slightly tighter padding on very small screens */
@media (max-width: 575.98px){
  .bsa-container{ padding:0 18px; }
}


/* =========================================================
   4) Liquid Ether Background Layering
   ---------------------------------------------------------
   #root is the React Bits mount. #etherTint softens it.
   Everything else sits above (z-index:2).
   ========================================================= */
#root{
  position:fixed !important;
  inset:0 !important;
  width:100vw !important;
  height:100vh !important;
  z-index:0 !important;
  pointer-events:none !important;
  margin:0 !important;
  padding:0 !important;
  max-width:none !important;
  text-align:initial !important;
  background:transparent !important;
}

#root canvas,
#root svg{
  position:absolute !important;
  inset:0 !important;
  width:100% !important;
  height:100% !important;
  display:block !important;
}

/* Hide any demo UI elements that ship with the Ether build */
#root .controls,
#root .ui,
#root nav,
#root button,
#root input,
#root select,
#root textarea,
#root a{
  display:none !important;
}

/* Soft tint on top of the Ether background */
#etherTint{
  position:fixed;
  inset:0;
  background:var(--ether-tint);
  z-index:1;
  pointer-events:none;
}

/* Ensure site content is above Ether + tint */
body > nav,
body > header,
body > section,
body > footer{
  position:relative;
  z-index:2;
}


/* =========================================================
   5) “Glass” Helpers (Hero card styling)
   ========================================================= */
.glass{
  background: rgba(255,255,255,.85);
  border: 1px solid rgba(148,163,184,.4);
  backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  border-radius: 22px;
  box-shadow: 0 16px 40px rgba(15,23,42,.20);
}

.glass-border-glow{ position:relative; }
.glass-border-glow::after{
  content:"";
  position:absolute;
  inset:-1px;
  border-radius:inherit;
  pointer-events:none;
  background: linear-gradient(135deg, rgba(59,130,246,.3), rgba(236,72,153,.2));
  filter: blur(3px);
  opacity:.3;
  z-index:-1;
}

/* Fallback if backdrop-filter unsupported */
@supports not ((-webkit-backdrop-filter:none) or (backdrop-filter:none)){
  .glass{ background:#ffffff; }
}


/* =========================================================
   6) Hero Section
   ---------------------------------------------------------
   Full-width background with a centered content card.
   ========================================================= */
header.hero{
  position:relative;
  min-height:100vh;
  background: url('../img/hero/ex.jpg') center 30%/cover no-repeat;
  color:#fff;
  display:flex;
  align-items:center;

  /* Stretch full width even inside constrained layouts */
  width:100vw;
  margin-left:calc(50% - 50vw);
  margin-right:calc(50% - 50vw);
}

/* Optional overlay — currently transparent (all zeros) */
.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(
    180deg,
    rgba(15,23,42,0),
    rgba(15,23,42,0) 35%,
    rgba(15,23,42,0)
  );
}

.hero-overlay{
  position:relative;
  width:100%;
  padding:4rem 1rem;
}

.hero-card{
  max-width:960px;
  margin:0 auto;
}

.hero-eyebrow{
  font-size:.85rem;
  letter-spacing:.25em;
  text-transform:uppercase;
  color:#000;
  margin-bottom:.5rem;
}

.hero-sub{
  font-size:clamp(.95rem,1.6vw,1.1rem);
  font-weight:600;
  letter-spacing:.22em;
  text-transform:uppercase;
  color:#000;
  margin:0 0 .75rem;
}

.hero p{
  margin:0 0 1.1rem;
  color:#000;
  opacity:.95;
}

.hero-actions{
  margin-top:.5rem;
  display:flex;
  flex-wrap:wrap;
  gap:.75rem;
}


/* =========================================================
   7) Buttons (Site CTAs)
   ---------------------------------------------------------
   NOTE: This overrides .btn globally. If you only want these
   styles on your custom buttons, rename to .bsa-btn.
   ========================================================= */
.btn{
  display:inline-block;
  padding:12px 18px;
  border-radius:999px;
  font-weight:700;
  border:none;
}

.btn.primary{
  background:#ffffff;
  color:#E60028;
  box-shadow:0 12px 30px rgba(15,23,42,.25);
}

.btn.primary:hover{
  transform:translateY(-1px);
  box-shadow:0 16px 40px rgba(15,23,42,.3);
}

.btn.secondary{
  background:transparent;
  border:1.5px solid rgba(248,250,252,.8);
  color:#f9fafb;
}


/* =========================================================
   8) Section Layout + Simple Grid System
   ========================================================= */
section{ padding:56px 0; }

.grid{ display:grid; gap:20px; }
.three{ grid-template-columns:repeat(3,1fr); }
.two{ grid-template-columns:repeat(2,1fr); }

@media (max-width:900px){
  .three{ grid-template-columns:1fr 1fr; }
}

@media (max-width:640px){
  .three,.two{ grid-template-columns:1fr; }
}

.section-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:16px;
  margin-bottom:22px;
}

.section-head h2{
  font-size:28px;
  margin:0;
  color:#E60028;
}


/* =========================================================
   9) Cards / News (Generic content cards)
   ========================================================= */
.card{
  background:var(--bsa-card);
  border:1px solid #e5e7eb;
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow:0 8px 18px rgba(15,23,42,.04);
}

.card img{
  width:100%;
  height:180px;
  object-fit:cover;
}

.card .pad{ padding:16px; }

.tag{
  display:inline-block;
  font-size:.75rem;
  padding:6px 9px;
  border-radius:999px;
  background:#eff6ff;
  color:var(--bsa-blue);
  font-weight:700;
  border:1px solid #bfdbfe;
  margin-bottom:10px;
}

.muted{
  opacity:.8;
  font-size:.95rem;
  color:var(--bsa-muted);
}


/* =========================================================
   10) Stats
   ========================================================= */
.stats h3{
  font-size:2.4rem;
  color:var(--bsa-blue);
  font-weight:800;
}

.stats p{
  margin:.25rem 0 0;
  color:var(--bsa-muted);
}


/* =========================================================
   11) Video Band
   ========================================================= */
.video-band{
  display:flex;
  justify-content:center;
  align-items:center;
  height:55vh;
  background:#ffffff;
  overflow:hidden;
}

.video-band video{
  width:100%;
  max-width:1000px;
  height:auto;
  object-fit:cover;
}

@media (max-width:768px){
  .video-band{ height:auto; padding:0; }
}


/* =========================================================
   12) Testimonials (Panel + Slick fixes)
   ---------------------------------------------------------
   Goals:
   - White panel never touches screen edges on mobile
   - Slick must not clip shadows/text
   ========================================================= */
.testimonial-bg{
  background: linear-gradient(to right, #f9fbff, #eef5ff);
  padding: 56px 0;
}

.testimonial-panel{
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--nav-border);
  border-radius: 22px;
  box-shadow: 0 18px 44px rgba(2,6,23,0.10);
  padding: 28px 16px 18px;
  max-width: 950px;
  margin: 0 auto;
}

/* Key mobile gutters (prevents edge-to-edge white panel) */
@media (max-width: 575.98px){
  .testimonial-panel{
    margin-left: 14px;
    margin-right: 14px;
    padding: 22px 14px 16px;
  }
}

/* Slick clipping guards */
.testimonial-slider,
.testimonial-slider .slick-list,
.testimonial-slider .slick-track{
  overflow: visible !important;
}

.testimonial-slider .slick-slide > div{
  height: auto !important;
  display: block !important;
}

/* Slide padding */
.testimonial-slider .slick-slide{ padding: 0 10px; }
@media (min-width: 768px){
  .testimonial-slider .slick-slide{ padding: 0 14px; }
}

/* The testimonial card itself */
.tcard{
  position: relative;
  background: #ffffff;
  border: 1px solid rgba(15,23,42,0.10);
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(2,6,23,0.08);
  padding: 18px 16px;
  max-width: 720px;
  margin: 0 auto;
  overflow: visible;
}

.tcard::before{
  content:"“";
  position:absolute;
  top:-18px;
  right:12px;
  font-family: Merriweather, serif;
  font-size: 86px;
  line-height: 1;
  color: rgba(227, 0, 40, 0.12);
  pointer-events:none;
}

.tcard p{
  margin: 0 0 14px;
  font-size: 1.05rem;
  line-height: 1.65;
  color: #0f172a;
  white-space: normal;
  overflow: visible;
}

.tmeta{
  display:flex;
  align-items:center;
  gap:10px;
}

.tava{
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display:grid;
  place-items:center;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--bsa-blue), #0a66c2);
  box-shadow: 0 10px 18px rgba(2,6,23,.12);
}

.tname{
  font-weight: 700;
  color: var(--bsa-blue);
}

/* Dots */
.testimonial-slider .slick-dots{
  margin: 14px 0 0 !important;
  position: static;
}

.testimonial-slider .slick-dots li button:before{
  font-size: 10px;
  opacity: .25;
  color: #0f172a;
}

.testimonial-slider .slick-dots li.slick-active button:before{
  opacity: .9;
  color: var(--bsa-red);
}


/* =========================================================
   13) Events List
   ========================================================= */
.events .event{
  display:grid;
  grid-template-columns:90px 1fr;
  gap:16px;
  padding:14px 0;
  border-top:1px solid #e5e7eb;
}

.events .event:first-child{ border-top:0; }

.date{
  display:grid;
  place-items:center;
  border:1px solid #e5e7eb;
  border-radius:12px;
  text-align:center;
  width:90px;
  background:#fff;
}

.date .m{
  background:var(--bsa-blue);
  color:#fff;
  width:100%;
  padding:6px 0;
  border-radius:10px 10px 0 0;
  font-weight:600;
  font-size:.85rem;
}

.date .d{
  padding:8px 0 10px;
  font-size:22px;
  font-weight:800;
}


/* =========================================================
   14) Floating Social Buttons
   ========================================================= */
.floating-social{
  display:inline-block;
  padding:10px 16px;
  border-radius:50px;
  box-shadow:0 4px 14px rgba(0,0,0,.08);
  font-weight:600;
  color:#fff;
	  z-index: 9999;  
}

.float-insta{
  background:linear-gradient(135deg,#feda75,#d62976,#962fbf,#4f5bd5);
}

.float-linkedin{ background:#0a66c2; }


/* =========================================================
   15) Footer Defaults (if footer.php uses these)
   ========================================================= */
footer, .bsa-footer{
  background:#0b1120;
  color:#e5e7eb;
}

.bsa-footer-card{
  background:rgba(15,23,42,0.92) !important;
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
}


/* =========================================================
   16) Preloader
   ========================================================= */
#preloader{
  position:fixed;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#0b1120;
  color:#fff;
  z-index:9999;
}

#preloader.is-done{
  opacity:0;
  transition: opacity .45s ease;
}
/* =========================
   Academy section
   ========================= */
.academy-section{ padding: 70px 0; }
.academy-wrap{
  display:grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 1.75rem;
  align-items: start;
}
.academy-kicker{
  display:inline-block;
  padding:.35rem .7rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .04em;
  background: rgba(230,0,40,.10);
  color: var(--bsa-red);
  margin-bottom: .75rem;
}
.academy-bullets{
  list-style:none;
  padding:0;
  margin: 1rem 0 0;
}
.academy-bullets li{
  display:flex;
  gap:.6rem;
  align-items:flex-start;
  padding:.35rem 0;
  color: rgba(15,23,42,.78);
}
.academy-bullets i{ color: var(--bsa-red); margin-top:.2rem; }

.academy-card{
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(15,23,42,.10);
  border-radius: 18px;
  padding: 1.25rem 1.1rem;
  box-shadow: 0 18px 40px rgba(2,6,23,.08);
}
.academy-form .form-row{ margin-top: .75rem; }
.academy-input{
  width:100%;
  padding: .85rem .95rem;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,.14);
  background: #fff;
  outline: none;
}
.academy-input:focus{
  border-color: rgba(230,0,40,.45);
  box-shadow: 0 0 0 4px rgba(230,0,40,.12);
}
.academy-btn{ width:100%; margin-top: .9rem; padding: 14px 18px; border-radius: 999px; }
.academy-fineprint{ display:block; margin-top: .65rem; color: rgba(15,23,42,.62); }

.academy-note{
  margin-top: .9rem;
  display:flex;
  gap:.55rem;
  align-items:flex-start;
  color: rgba(15,23,42,.70);
  font-size: .92rem;
}
.academy-note i{ color: var(--bsa-blue); margin-top:.2rem; }

@media (max-width: 991.98px){
  .academy-wrap{ grid-template-columns: 1fr; }
}
