/* ==============================================
   BAUDHYANTRAM SANSKRITI GURUKUL — style.css
   Premium Homepage Prototype
   Stack: Bootstrap 5 + Custom CSS
   ============================================== */

/* -----------------------------------------------
   1. CSS CUSTOM PROPERTIES (Design Tokens)
----------------------------------------------- */
:root {
  /* Colour palette */
  --saffron:      #D4621A;    /* Primary — Deep Saffron   */
  --saffron-lt:   #E87B35;    /* Lighter saffron hover    */
  --saffron-faint:#FDF0E8;    /* Very faint saffron bg    */
  --navy:         #1B2A4A;    /* Secondary — Deep Navy    */
  --navy-lt:      #253861;    /* Lighter navy             */
  --warm-white:   #FAF9F5;    /* Background               */
  --surface:      #FFFFFF;    /* Surface / card bg        */
  --gold:         #C9A550;    /* Accent — Soft Gold       */
  --gold-faint:   #FBF5E6;    /* Very faint gold bg       */
  --charcoal:     #2D2D2D;    /* Text — Dark Charcoal     */
  --charcoal-mid: #555555;    /* Secondary text           */
  --charcoal-lt:  #888888;    /* Muted text               */
  --green:        #4A7C59;    /* Success — Natural Green  */
  --green-faint:  #EBF4EE;    /* Very faint green bg      */
  --border:       #ECEAE4;    /* Subtle border            */
  --border-dark:  #D8D4CB;    /* Slightly darker border   */

  /* Typography */
  --font-base:    'Inter', 'Noto Sans Devanagari', system-ui, sans-serif;
  --font-deva:    'Noto Sans Devanagari', 'Inter', sans-serif;

  /* Spacing */
  --section-py:   5rem;

  /* Shadows */
  --shadow-xs:    0 1px 3px rgba(0,0,0,.06);
  --shadow-sm:    0 2px 8px rgba(0,0,0,.08);
  --shadow-md:    0 4px 20px rgba(0,0,0,.10);
  --shadow-lg:    0 8px 40px rgba(0,0,0,.12);

  /* Border radius */
  --radius-sm:    6px;
  --radius-md:    10px;
  --radius-lg:    16px;
  --radius-xl:    24px;

  /* Transitions */
  --ease:         cubic-bezier(.25,.46,.45,.94);
  --duration:     200ms;
}

/* -----------------------------------------------
   2. RESET & BASE
----------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-base);
  background-color: var(--warm-white);
  color: var(--charcoal);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Remove list styles from nav lists */
.navbar-nav { list-style: none; }

/* Smooth anchor offset for sticky header */
:target { scroll-margin-top: 80px; }

/* Devanagari font utility */
.bsg-devanagari { font-family: var(--font-deva); }

/* -----------------------------------------------
   3. TYPOGRAPHY UTILITIES
----------------------------------------------- */
.bsg-section-eyebrow {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--saffron);
  margin-bottom: .5rem;
}

.bsg-section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: .75rem;
}

.bsg-section-subtitle {
  font-size: 1.05rem;
  color: var(--charcoal-mid);
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

.bsg-section-header { margin-bottom: 1rem; }

/* -----------------------------------------------
   4. BUTTONS
----------------------------------------------- */
.bsg-btn-primary {
  background-color: var(--saffron);
  color: #fff;
  border: 2px solid var(--saffron);
  border-radius: var(--radius-sm);
  padding: .55rem 1.4rem;
  font-weight: 600;
  font-size: .9rem;
  transition: background-color var(--duration) var(--ease),
              border-color var(--duration) var(--ease),
              transform var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  text-decoration: none;
}
.bsg-btn-primary:hover,
.bsg-btn-primary:focus-visible {
  background-color: var(--saffron-lt);
  border-color: var(--saffron-lt);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(212,98,26,.30);
}

.bsg-btn-outline {
  background-color: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
  border-radius: var(--radius-sm);
  padding: .55rem 1.4rem;
  font-weight: 600;
  font-size: .9rem;
  transition: background-color var(--duration) var(--ease),
              color var(--duration) var(--ease),
              transform var(--duration) var(--ease);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  text-decoration: none;
}
.bsg-btn-outline:hover,
.bsg-btn-outline:focus-visible {
  background-color: var(--navy);
  color: #fff;
  transform: translateY(-1px);
}

.bsg-btn-ghost {
  background: transparent;
  color: var(--saffron);
  border: none;
  padding: .4rem 0;
  font-weight: 600;
  font-size: .9rem;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  text-decoration: none;
  transition: gap var(--duration) var(--ease),
              color var(--duration) var(--ease);
}
.bsg-btn-ghost:hover { gap: .65rem; color: var(--saffron-lt); }

.bsg-btn-white {
  background-color: #fff;
  color: var(--navy);
  border: 2px solid rgba(255,255,255,.4);
  border-radius: var(--radius-sm);
  padding: .55rem 1.4rem;
  font-weight: 600;
  font-size: .9rem;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  text-decoration: none;
  transition: background-color var(--duration) var(--ease),
              transform var(--duration) var(--ease);
}
.bsg-btn-white:hover { background-color: #f0ede8; transform: translateY(-1px); }

.bsg-btn-lg { padding: .75rem 2rem; font-size: 1rem; }

/* -----------------------------------------------
   5. HEADER / NAVBAR
----------------------------------------------- */
.bsg-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--duration) var(--ease);
}
.bsg-header.scrolled { box-shadow: var(--shadow-md); }

.bsg-navbar { padding: .85rem 0; }

/* Brand */
.bsg-brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
}
.bsg-logo-mark { flex-shrink: 0; }
.bsg-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.bsg-brand-main {
  font-size: .85rem;
  font-weight: 800;
  letter-spacing: .06em;
  color: var(--navy);
}
.bsg-brand-sub {
  font-size: .6rem;
  font-weight: 500;
  letter-spacing: .1em;
  color: var(--saffron);
  text-transform: uppercase;
}

/* Nav links */
.bsg-nav-link {
  font-size: .875rem;
  font-weight: 500;
  color: var(--charcoal) !important;
  padding: .4rem .75rem !important;
  border-radius: var(--radius-sm);
  transition: background-color var(--duration) var(--ease),
              color var(--duration) var(--ease);
}
.bsg-nav-link:hover,
.bsg-nav-link:focus-visible {
  color: var(--saffron) !important;
  background-color: var(--saffron-faint);
}

/* Icon button (search, close) */
.bsg-icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--charcoal);
  font-size: 1.1rem;
  padding: .35rem;
  border-radius: var(--radius-sm);
  transition: color var(--duration) var(--ease),
              background-color var(--duration) var(--ease);
  line-height: 1;
}
.bsg-icon-btn:hover { color: var(--saffron); background-color: var(--saffron-faint); }

/* Language selector */
.bsg-lang-selector {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-size: .8rem;
  font-weight: 500;
  color: var(--charcoal-mid);
  cursor: not-allowed;
  opacity: .7;
}

/* Login button */
.bsg-btn-login {
  font-size: .8rem;
  font-weight: 600;
  padding: .4rem 1rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-dark);
  background: transparent;
  color: var(--charcoal-mid);
  display: flex;
  align-items: center;
  gap: .35rem;
}
.bsg-btn-login:disabled { opacity: .5; cursor: not-allowed; }

/* Hamburger toggler */
.bsg-toggler {
  border: none;
  background: none;
  padding: .35rem;
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.bsg-toggler span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--charcoal);
  border-radius: 2px;
  transition: transform .25s var(--ease), opacity .2s;
}
.bsg-toggler[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.bsg-toggler[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.bsg-toggler[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Search bar */
.bsg-search-bar {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: .75rem 0;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height .3s var(--ease), opacity .25s var(--ease), padding .3s var(--ease);
}
.bsg-search-bar.open {
  max-height: 80px;
  opacity: 1;
}
.bsg-search-inner {
  display: flex;
  align-items: center;
  gap: .75rem;
  background: var(--warm-white);
  border: 1.5px solid var(--border-dark);
  border-radius: var(--radius-md);
  padding: .5rem 1rem;
}
.bsg-search-inner i { color: var(--charcoal-lt); font-size: 1rem; }
.bsg-search-inner input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: var(--font-base);
  font-size: .9rem;
  color: var(--charcoal);
  outline: none;
}
.bsg-search-inner input::placeholder { color: var(--charcoal-lt); }

/* -----------------------------------------------
   6. HERO SECTION
----------------------------------------------- */
.bsg-hero {
  padding: 6rem 0 5rem;
  background:
    linear-gradient(90deg, rgba(255,253,249,.98) 0%, rgba(255,253,249,.9) 38%, rgba(255,253,249,.52) 68%, rgba(255,253,249,.18) 100%),
    url("/assets/images/gurukul-hero-dawn.jpg") center right / cover no-repeat;
  position: relative;
  overflow: hidden;
}
.bsg-hero::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(212,98,26,.07) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.bsg-hero-eyebrow {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--charcoal-mid);
  margin-bottom: 1rem;
}
.bsg-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background-color: var(--saffron);
  border-radius: 50%;
}

.bsg-hero-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.12;
  color: var(--navy);
  margin-bottom: 1.25rem;
}
.bsg-highlight {
  color: var(--saffron);
  position: relative;
}
.bsg-highlight::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--saffron), var(--gold));
  border-radius: 2px;
  opacity: .5;
}

.bsg-hero-desc {
  font-size: 1.05rem;
  color: var(--charcoal-mid);
  max-width: 480px;
  margin-bottom: 1.75rem;
}

/* Hero search box */
.bsg-hero-search {
  display: flex;
  align-items: center;
  gap: .75rem;
  background: var(--surface);
  border: 1.5px solid var(--border-dark);
  border-radius: var(--radius-md);
  padding: .6rem 1rem;
  max-width: 480px;
  box-shadow: var(--shadow-sm);
}
.bsg-hero-search i { color: var(--charcoal-lt); font-size: 1rem; flex-shrink: 0; }
.bsg-hero-search input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: var(--font-base);
  font-size: .9rem;
  color: var(--charcoal);
  outline: none;
  min-width: 0;
}
.bsg-hero-search input::placeholder { color: var(--charcoal-lt); }
.bsg-hero-search .bsg-btn-primary {
  flex-shrink: 0;
  padding: .4rem 1rem;
  font-size: .85rem;
}

/* Hero illustration */
.bsg-hero-illustration {
  position: relative;
  width: 360px;
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bsg-hero-photo {
  position: absolute;
  width: 260px;
  height: 260px;
  object-fit: cover;
  border-radius: 50%;
  opacity: .38;
  filter: saturate(.86) sepia(.1);
  box-shadow: 0 18px 50px rgba(27,42,74,.16);
}

.bsg-illus-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid;
}
.bsg-illus-ring--outer {
  width: 340px;
  height: 340px;
  border-color: rgba(212,98,26,.12);
  animation: rotateRing 30s linear infinite;
}
.bsg-illus-ring--mid {
  width: 250px;
  height: 250px;
  border-color: rgba(201,165,80,.2);
  animation: rotateRing 20s linear infinite reverse;
}
.bsg-illus-ring--inner {
  width: 160px;
  height: 160px;
  border-color: rgba(27,42,74,.12);
  animation: rotateRing 14s linear infinite;
}

.bsg-illus-core {
  background: var(--surface);
  width: 110px;
  height: 110px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 1;
}

/* Floating knowledge chips */
.bsg-chip {
  position: absolute;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: .3rem .85rem;
  font-size: .75rem;
  font-weight: 600;
  color: var(--navy);
  box-shadow: var(--shadow-sm);
  animation: floatChip 4s ease-in-out infinite;
}
.bsg-chip--1 { top: 30px;  left: 20px;  animation-delay: 0s; }
.bsg-chip--2 { top: 30px;  right: 10px; animation-delay: 1s; }
.bsg-chip--3 { bottom: 30px; left: 15px; animation-delay: 2s; }
.bsg-chip--4 { bottom: 40px; right: 20px; animation-delay: .5s; }

@keyframes rotateRing {
  to { transform: rotate(360deg); }
}
@keyframes floatChip {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}

/* -----------------------------------------------
   7. GENERIC SECTION WRAPPER
----------------------------------------------- */
.bsg-section {
  padding: var(--section-py) 0;
}
.bsg-section:nth-child(even) { background-color: var(--surface); }

/* -----------------------------------------------
   8. FEATURE CARDS — Section 3
----------------------------------------------- */
.bsg-feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem 1.75rem;
  height: 100%;
  transition: transform var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease),
              border-color var(--duration) var(--ease);
}
.bsg-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-dark);
}

.bsg-feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1.25rem;
}
.bsg-feature-icon--saffron { background: var(--saffron-faint); color: var(--saffron); }
.bsg-feature-icon--gold    { background: var(--gold-faint);    color: var(--gold);    }
.bsg-feature-icon--navy    { background: rgba(27,42,74,.08);   color: var(--navy);    }
.bsg-feature-icon--green   { background: var(--green-faint);   color: var(--green);   }

.bsg-feature-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .5rem;
}
.bsg-feature-desc {
  font-size: .9rem;
  color: var(--charcoal-mid);
  margin: 0;
  line-height: 1.65;
}

/* -----------------------------------------------
   9. CATEGORY CARDS — Section 4
----------------------------------------------- */
.bsg-categories { background-color: var(--warm-white); }

.bsg-cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem 1rem;
  text-decoration: none;
  transition: transform var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease),
              border-color var(--duration) var(--ease);
  height: 100%;
  text-align: center;
}
.bsg-cat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--saffron);
}
.bsg-cat-card:hover .bsg-cat-icon { background-color: var(--saffron-faint); color: var(--saffron); }

.bsg-cat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background-color: var(--warm-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--navy);
  transition: background-color var(--duration) var(--ease),
              color var(--duration) var(--ease);
}
.bsg-cat-name {
  font-size: .88rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
}
.bsg-cat-count {
  font-size: .73rem;
  color: var(--charcoal-lt);
  font-weight: 500;
}

/* -----------------------------------------------
   10. WISDOM CARDS — Section 5
----------------------------------------------- */
.bsg-wisdom { background-color: var(--surface); }

.bsg-wisdom-card {
  border-radius: var(--radius-md);
  padding: 2rem 1.75rem;
  height: 100%;
  position: relative;
  border: 1px solid var(--border);
}
.bsg-wisdom-card--shloka { background: linear-gradient(135deg, var(--saffron-faint), #fff8f0); border-left: 3px solid var(--saffron); }
.bsg-wisdom-card--quote  { background: linear-gradient(135deg, rgba(27,42,74,.04), #fff);    border-left: 3px solid var(--navy); }
.bsg-wisdom-card--thought{ background: linear-gradient(135deg, var(--green-faint), #f6fbf7); border-left: 3px solid var(--green); }

.bsg-wisdom-tag {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--charcoal-lt);
  margin-bottom: 1.25rem;
}

.bsg-wisdom-text {
  font-size: 1rem;
  font-style: italic;
  color: var(--charcoal);
  line-height: 1.75;
  margin-bottom: 1.25rem;
  border: none;
  padding: 0;
}
.bsg-wisdom-card--shloka .bsg-wisdom-text {
  font-size: 1.05rem;
  color: var(--navy);
  font-family: var(--font-deva);
}

.bsg-wisdom-source {
  font-size: .8rem;
  font-weight: 600;
  color: var(--charcoal-lt);
}

/* -----------------------------------------------
   11. ARTICLE CARDS — Section 6
----------------------------------------------- */
.bsg-featured { background: var(--warm-white); }

.bsg-article-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease);
}
.bsg-article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.bsg-article-img { position: relative; height: 180px; overflow: hidden; }
.bsg-article-photo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform var(--duration) var(--ease);
}
.bsg-article-card:hover .bsg-article-photo { transform: scale(1.04); }

.bsg-img-placeholder {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: rgba(255,255,255,.5);
}
.bsg-img-placeholder--saffron { background: linear-gradient(135deg, #D4621A, #E8924A); }
.bsg-img-placeholder--navy    { background: linear-gradient(135deg, #1B2A4A, #2E4880); }
.bsg-img-placeholder--gold    { background: linear-gradient(135deg, #C9A550, #DFC070); }
.bsg-img-placeholder--green   { background: linear-gradient(135deg, #4A7C59, #6AAF7B); }

.bsg-article-tag {
  position: absolute;
  bottom: .75rem;
  left: .75rem;
  background: rgba(255,255,255,.92);
  color: var(--navy);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .2rem .6rem;
  border-radius: 20px;
}

.bsg-article-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.bsg-article-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.45;
  margin-bottom: .6rem;
}
.bsg-article-desc {
  font-size: .875rem;
  color: var(--charcoal-mid);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 1rem;
}
.bsg-article-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: .75rem;
  border-top: 1px solid var(--border);
}
.bsg-article-meta {
  font-size: .78rem;
  color: var(--charcoal-lt);
  display: flex;
  align-items: center;
  gap: .3rem;
}
.bsg-article-read {
  font-size: .82rem;
  font-weight: 600;
  color: var(--saffron);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: .3rem;
  transition: gap var(--duration) var(--ease);
}
.bsg-article-read:hover { gap: .5rem; color: var(--saffron-lt); }

/* -----------------------------------------------
   12. TIMELINE — Section 7
----------------------------------------------- */
.bsg-timeline { background-color: var(--surface); }

.bsg-timeline-track {
  position: relative;
  overflow-x: auto;
  padding-bottom: 1.5rem;
}

.bsg-timeline-line {
  position: absolute;
  top: 18px;           /* vertically aligns with the dot centre */
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--border-dark), var(--saffron), var(--border-dark), transparent);
  pointer-events: none;
}

.bsg-timeline-items {
  display: flex;
  gap: 0;
  min-width: 680px;
}

.bsg-tl-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .9rem;
  position: relative;
  padding-top: 6px;
}

.bsg-tl-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--surface);
  border: 2.5px solid var(--border-dark);
  position: relative;
  z-index: 1;
  transition: border-color var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease);
}
.bsg-tl-dot--active {
  border-color: var(--saffron);
  background: var(--saffron);
  box-shadow: 0 0 0 4px var(--saffron-faint);
}
.bsg-tl-item:hover .bsg-tl-dot:not(.bsg-tl-dot--active) {
  border-color: var(--navy);
}

.bsg-tl-label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--charcoal-lt);
}
.bsg-tl-label--active { color: var(--saffron); }

.bsg-tl-card {
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
  width: 100%;
  max-width: 168px;
  transition: transform var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease);
}
.bsg-tl-item:hover .bsg-tl-card { transform: translateY(-3px); box-shadow: var(--shadow-sm); }

.bsg-tl-card--active {
  background: var(--saffron-faint);
  border-color: rgba(212,98,26,.25);
}
.bsg-tl-period {
  font-size: .7rem;
  font-weight: 600;
  color: var(--saffron);
  margin-bottom: .3rem;
  letter-spacing: .04em;
}
.bsg-tl-title {
  font-size: .88rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .4rem;
}
.bsg-tl-desc {
  font-size: .78rem;
  color: var(--charcoal-mid);
  margin: 0;
  line-height: 1.55;
}

/* -----------------------------------------------
   13. LIBRARY CARDS — Section 8
----------------------------------------------- */
.bsg-library { background: var(--warm-white); }

.bsg-lib-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem;
  height: 100%;
  transition: transform var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease);
}
.bsg-lib-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.bsg-lib-icon {
  font-size: 1.5rem;
  color: var(--saffron);
  margin-bottom: 1rem;
}
.bsg-lib-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .5rem;
}
.bsg-lib-desc {
  font-size: .875rem;
  color: var(--charcoal-mid);
  line-height: 1.65;
  margin-bottom: .75rem;
}
.bsg-lib-count {
  font-size: .8rem;
  font-weight: 700;
  color: var(--saffron);
}

/* -----------------------------------------------
   14. STATS — Section 9
----------------------------------------------- */
.bsg-stats { background: var(--surface); }

.bsg-stat-card {
  text-align: center;
  padding: 2.25rem 1.5rem;
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  position: relative;
  transition: transform var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease);
}
.bsg-stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.bsg-stat-card--soon { opacity: .75; }

.bsg-stat-icon {
  font-size: 1.5rem;
  color: var(--saffron);
  margin-bottom: .75rem;
}
.bsg-stat-number {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
  margin-bottom: .4rem;
}
.bsg-stat-label {
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--charcoal-lt);
}
.bsg-badge-soon {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--gold-faint);
  color: var(--gold);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .15rem .5rem;
  border-radius: 20px;
}

/* -----------------------------------------------
   15. CTA SECTION — Section 10
----------------------------------------------- */
.bsg-cta-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--navy) 0%, #0e1b34 100%);
  position: relative;
  overflow: hidden;
}

.bsg-cta-inner {
  text-align: center;
  position: relative;
  z-index: 1;
}

.bsg-cta-ornament {
  position: absolute;
  font-size: 8rem;
  font-family: var(--font-deva);
  color: rgba(255,255,255,.04);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.bsg-cta-ornament--left  { top: 50%; left: -1rem;  transform: translateY(-50%); }
.bsg-cta-ornament--right { top: 50%; right: -1rem; transform: translateY(-50%); }

.bsg-cta-eyebrow { color: var(--gold) !important; }

.bsg-cta-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: .75rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.bsg-cta-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,.7);
  max-width: 500px;
  margin: 0 auto;
}

/* -----------------------------------------------
   16. FOOTER — Section 11
----------------------------------------------- */
.bsg-footer {
  background: var(--navy);
  color: rgba(255,255,255,.75);
  padding: 4.5rem 0 0;
}

.bsg-footer-brand {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  margin-bottom: .6rem;
}
.bsg-footer-brand-name { color: #fff; font-size: .9rem; }
.bsg-footer-brand-sub  { color: var(--gold); }

.bsg-footer-tagline {
  font-size: .8rem;
  font-style: italic;
  color: rgba(255,255,255,.5);
  margin-bottom: .5rem;
}
.bsg-footer-about {
  font-size: .875rem;
  line-height: 1.65;
  color: rgba(255,255,255,.65);
}

/* Newsletter */
.bsg-newsletter-label {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.5);
  margin-bottom: .6rem;
}
.bsg-newsletter-form {
  display: flex;
  gap: .5rem;
}
.bsg-newsletter-form input {
  flex: 1;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-sm);
  padding: .5rem .9rem;
  font-size: .85rem;
  color: #fff;
  font-family: var(--font-base);
  outline: none;
  min-width: 0;
}
.bsg-newsletter-form input::placeholder { color: rgba(255,255,255,.35); }
.bsg-newsletter-form input:focus { border-color: rgba(212,98,26,.5); }
.bsg-newsletter-form .bsg-btn-primary { padding: .5rem 1rem; font-size: .82rem; }
.bsg-newsletter-form .bsg-btn-primary:disabled {
  opacity: .4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Social icons */
.bsg-social {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
}
.bsg-social-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.6);
  font-size: .95rem;
  text-decoration: none;
  transition: background-color var(--duration) var(--ease),
              color var(--duration) var(--ease),
              transform var(--duration) var(--ease);
}
.bsg-social-icon:hover {
  background-color: var(--saffron);
  color: #fff;
  border-color: var(--saffron);
  transform: translateY(-2px);
}

/* Footer links */
.bsg-footer-heading {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: rgba(255,255,255,.5);
  margin-bottom: 1.25rem;
}
.bsg-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .65rem;
}
.bsg-footer-links a {
  font-size: .875rem;
  color: rgba(255,255,255,.65);
  text-decoration: none;
  transition: color var(--duration) var(--ease),
              padding-left var(--duration) var(--ease);
}
.bsg-footer-links a:hover {
  color: #fff;
  padding-left: 4px;
}

/* Footer bottom bar */
.bsg-footer-bottom {
  margin-top: 3.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
}
.bsg-footer-bottom p { margin: 0; font-size: .8rem; color: rgba(255,255,255,.4); }
.bsg-footer-credit { display: flex; align-items: center; gap: .3rem; }

/* -----------------------------------------------
   17. RESPONSIVE OVERRIDES
----------------------------------------------- */

/* Tablet */
@media (max-width: 991.98px) {
  :root { --section-py: 4rem; }

  .bsg-navbar .navbar-collapse {
    background: var(--surface);
    padding: 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    margin-top: .75rem;
  }
  .bsg-navbar .navbar-nav { gap: 0 !important; }
  .bsg-header-actions {
    padding-top: .75rem;
    border-top: 1px solid var(--border);
    margin-top: .75rem;
  }

  .bsg-hero { padding: 4rem 0 3.5rem; }
  .bsg-hero-illustration { width: 280px; height: 280px; }
  .bsg-illus-ring--outer { width: 260px; height: 260px; }
  .bsg-illus-ring--mid   { width: 190px; height: 190px; }
  .bsg-illus-ring--inner { width: 120px; height: 120px; }
}

/* Mobile */
@media (max-width: 575.98px) {
  :root { --section-py: 3rem; }

  .bsg-hero-title { font-size: 2rem; }
  .bsg-hero-illustration { width: 240px; height: 240px; }
  .bsg-hero-search { flex-wrap: wrap; }
  .bsg-hero-search .bsg-btn-primary { width: 100%; justify-content: center; }
  .bsg-hero-ctas { flex-direction: column; }
  .bsg-hero-ctas .btn { justify-content: center; text-align: center; }

  .bsg-timeline-items { min-width: 500px; }

  .bsg-newsletter-form { flex-direction: column; }
  .bsg-footer-bottom { flex-direction: column; text-align: center; }

  .bsg-cta-ornament { display: none; }
}

/* -----------------------------------------------
   18. ACCESSIBILITY
----------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--saffron);
  outline-offset: 3px;
  border-radius: 3px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
