/* ============================================
   EduFlame — Universal Stylesheet
   ============================================ */

/* ---- Google Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@400;600;700&family=Merriweather:wght@700;900&display=swap');

/* ---- Variables ---- */
:root {
  --navy: #0b1f3a;
  --navy-mid: #122d52;
  --navy-light: #1a3d6b;
  --accent: #e8a020;
  --accent-hover: #cf8e18;
  --accent-soft: rgba(232, 160, 32, 0.12);
  --teal: #1a9e8a;
  --teal-light: #e6f7f5;

  --bg: #f2f5f9;
  --bg-card: #ffffff;
  --border: #dde4ee;
  --border-card: #e8edf5;

  --text: #111827;
  --text-muted: #4b5e74;
  --text-light: #8fa0b4;

  /* icon palette */
  --blue: #1d4ed8;
  --blue-light: #eff6ff;
  --teal-icon: #0f766e;
  --teal-icon-light: #f0fdfa;
  --amber: #b45309;
  --amber-light: #fffbeb;
  --coral: #c2410c;
  --coral-light: #fff7ed;
  --purple: #7c3aed;
  --purple-light: #f5f3ff;
  --green: #15803d;
  --green-light: #f0fdf4;
  --gray: #4b5563;
  --gray-light: #f9fafb;

  --radius-sm: 5px;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  --shadow-sm: 0 1px 4px rgba(11, 31, 58, 0.07);
  --shadow: 0 4px 18px rgba(11, 31, 58, 0.10);
  --shadow-hover: 0 10px 32px rgba(11, 31, 58, 0.16);

  --font-body: 'Source Sans 3', sans-serif;
  --font-display: 'Merriweather', serif;

  --nav-h: 58px;
  --max-w: 1140px;
}

/* ---- Reset ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* ============================================
   TOP BAR
============================================ */
.topbar {
  background: var(--navy);
  padding: 8px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.55);
}

.topbar-left svg {
  flex-shrink: 0;
  color: var(--accent);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.topbar-link {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.2s;
}

.topbar-link:hover {
  color: var(--accent);
}

.topbar-cta {
  font-size: 12px;
  font-weight: 700;
  color: var(--navy);
  background: var(--accent);
  padding: 4px 14px;
  border-radius: 20px;
  letter-spacing: 0.03em;
  transition: background 0.2s;
}

.topbar-cta:hover {
  background: var(--accent-hover);
}

/* ============================================
   NAV
============================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 32px;
  background: var(--navy-mid);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.22);
}

.logo {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--accent);
  letter-spacing: -0.2px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  width: 30px;
  height: 30px;
  background: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-icon svg {
  color: var(--navy);
}

.logo-text {
  color: #fff;
}

.logo-text span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover {
  color: var(--accent);
  background: rgba(255, 255, 255, 0.06);
}

.nav-links a.active {
  color: var(--accent);
  background: var(--accent-soft);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--accent);
  padding: 6px 16px;
  border-radius: 30px;
}

.nav-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
  border: none;
  background: transparent;
}

.nav-icon-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent);
}

/* ============================================
   HERO
============================================ */
.hero {
  background: linear-gradient(140deg, var(--navy) 0%, var(--navy-mid) 55%, var(--navy-light) 100%);
  position: relative;
  overflow: hidden;
  padding: 84px 32px 100px;
}

.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 420px;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(232, 160, 32, 0.12);
  border: 1px solid rgba(232, 160, 32, 0.28);
  padding: 5px 14px;
  border-radius: 30px;
  margin-bottom: 22px;
}

.hero-eyebrow svg {
  flex-shrink: 0;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 50px);
  line-height: 1.18;
  color: #fff;
  margin-bottom: 18px;
  letter-spacing: -0.3px;
}

.hero-title em {
  font-style: normal;
  color: var(--accent);
}

.hero-sub {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.78;
  max-width: 430px;
  margin-bottom: 36px;
}

.hero-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--navy);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  padding: 13px 26px;
  border-radius: var(--radius);
  transition: background 0.2s, transform 0.2s;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: var(--radius);
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
  cursor: pointer;
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
}

/* Hero stat cards */
.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero-stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.hero-stat {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  backdrop-filter: blur(8px);
  transition: background 0.2s;
}

.hero-stat:hover {
  background: rgba(255, 255, 255, 0.11);
}

.hero-stat-num {
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 4px;
}

.hero-stat-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-stat-wide {
  background: rgba(232, 160, 32, 0.1);
  border: 1px solid rgba(232, 160, 32, 0.22);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-stat-wide-icon {
  width: 44px;
  height: 44px;
  background: var(--accent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--navy);
}

.hero-stat-wide-text {
  font-size: 14px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
}

.hero-stat-wide-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 2px;
}

/* BG decorations */
.hero-bg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.18;
}

.blob-1 {
  width: 420px;
  height: 420px;
  background: var(--accent);
  top: -120px;
  right: 60px;
}

.blob-2 {
  width: 280px;
  height: 280px;
  background: var(--teal);
  bottom: -80px;
  left: -60px;
}

/* ============================================
   FEATURE STRIP
============================================ */
.feature-strip {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.feature-strip-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.feature-tile {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 24px;
  border-right: 1px solid var(--border);
  transition: background 0.2s;
  cursor: default;
}

.feature-tile:last-child {
  border-right: none;
}

.feature-tile:hover {
  background: var(--bg);
}

.ft-icon {
  width: 46px;
  height: 46px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ft-icon-1 {
  background: #fff4e0;
  color: #c07b10;
}

.ft-icon-2 {
  background: #e8f7f5;
  color: #1a9e8a;
}

.ft-icon-3 {
  background: #eef2ff;
  color: #3b5bdb;
}

.ft-icon-4 {
  background: #f0fdf4;
  color: #16a34a;
}

.ft-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.ft-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 1px;
}

/* ============================================
   SEARCH
============================================ */
.search-wrap {
  display: flex;
  justify-content: center;
  padding: 48px 24px 32px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 2px solid var(--border-card);
  border-radius: var(--radius);
  padding: 0 18px;
  width: 100%;
  max-width: 520px;
  height: 52px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-box:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(232, 160, 32, 0.13);
}

.search-icon {
  color: var(--text-light);
  flex-shrink: 0;
}

.search-box input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  font-weight: 600;
}

.search-box input::placeholder {
  color: var(--text-light);
  font-weight: 400;
}

.search-hint {
  font-size: 11px;
  color: var(--text-light);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 8px;
  font-family: var(--font-body);
  white-space: nowrap;
}

/* ============================================
   MAIN / SECTION
============================================ */
.main {
  flex: 1;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px 80px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.section-count {
  font-size: 12px;
  color: var(--text-light);
  font-weight: 600;
}

/* ============================================
   GRID
============================================ */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

/* ============================================
   CARD
============================================ */
.card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1.5px solid var(--border-card);
  border-radius: var(--radius-lg);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  box-shadow: var(--shadow-sm);
  animation: fadeUp 0.35s ease both;
}

.card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
  border-radius: 0 0 2px 2px;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(232, 160, 32, 0.28);
}

.card:hover::after {
  transform: scaleX(1);
}

.card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
}

.card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
}

.card-arrow {
  display: flex;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-light);
  gap: 5px;
  margin-top: 4px;
  transition: color 0.2s, gap 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.card:hover .card-arrow {
  color: var(--accent);
  gap: 10px;
}

/* ---- Card Icon ---- */
.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.icon-blue {
  background: var(--blue-light);
  color: var(--blue);
}

.icon-teal {
  background: var(--teal-icon-light);
  color: var(--teal-icon);
}

.icon-amber {
  background: var(--amber-light);
  color: var(--amber);
}

.icon-coral {
  background: var(--coral-light);
  color: var(--coral);
}

.icon-purple {
  background: var(--purple-light);
  color: var(--purple);
}

.icon-green {
  background: var(--green-light);
  color: var(--green);
}

.icon-gray {
  background: var(--gray-light);
  color: var(--gray);
}

/* ---- Badge ---- */
.card-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
}

.badge-new {
  background: var(--accent);
  color: var(--navy);
}

/* ============================================
   SKELETON
============================================ */
.skeleton {
  height: 168px;
  background: linear-gradient(90deg, var(--border) 25%, var(--bg) 50%, var(--border) 75%);
  background-size: 200% 100%;
  border-radius: var(--radius-lg);
  animation: shimmer 1.6s infinite;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* ============================================
   NO RESULTS / ERROR
============================================ */
.no-results,
.error-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 60px 0;
  color: var(--text-muted);
  font-size: 14px;
  text-align: center;
}

.no-results svg,
.error-state svg {
  color: var(--text-light);
}

.hidden {
  display: none !important;
}

/* ============================================
   FOOTER
============================================ */
.footer {
  background: var(--navy);
  padding: 0;
}

.footer-main {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 52px 24px 44px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 22px;
  color: #fff;
  display: flex;
  align-items: center;
  margin-bottom: 14px;
}

.footer-logo-icon {
  width: 30px;
  height: 30px;
  background: var(--accent);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
}

.footer-logo span {
  color: var(--accent);
}

.footer-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.42);
  line-height: 1.75;
  max-width: 240px;
  margin-bottom: 22px;
}

.footer-socials {
  display: flex;
  gap: 8px;
}

.footer-social {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  transition: background 0.2s, color 0.2s;
}

.footer-social:hover {
  background: var(--accent);
  color: var(--navy);
}

.footer-col-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 16px;
}

.footer-col-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col-links a {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.2s;
}

.footer-col-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
}

.footer-bottom-links {
  display: flex;
  gap: 18px;
}

.footer-bottom-links a {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
  transition: color 0.2s;
}

.footer-bottom-links a:hover {
  color: rgba(255, 255, 255, 0.6);
}

/* ============================================
   CARD ENTRANCE ANIMATION
============================================ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card:nth-child(1) {
  animation-delay: 0.05s;
}

.card:nth-child(2) {
  animation-delay: 0.10s;
}

.card:nth-child(3) {
  animation-delay: 0.15s;
}

.card:nth-child(4) {
  animation-delay: 0.20s;
}

.card:nth-child(5) {
  animation-delay: 0.25s;
}

.card:nth-child(6) {
  animation-delay: 0.30s;
}

.card:nth-child(7) {
  animation-delay: 0.35s;
}

.card:nth-child(8) {
  animation-delay: 0.40s;
}

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 1024px) {
  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 900px) {
  .feature-strip-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-tile:nth-child(2) {
    border-right: none;
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    display: none;
  }

  .hero {
    padding: 60px 24px 72px;
  }
}

@media (max-width: 768px) {
  .topbar {
    display: none;
  }

  .nav {
    padding: 0 20px;
  }

  .nav-links {
    display: none;
  }

  .nav-tag {
    display: none;
  }

  .search-wrap {
    padding: 36px 20px 24px;
  }

  .main {
    padding: 0 20px 60px;
  }

  .grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .search-hint {
    display: none;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
    padding: 36px 20px 32px;
  }
}

@media (max-width: 580px) {
  .feature-strip-inner {
    grid-template-columns: 1fr 1fr;
  }

  .feature-tile {
    padding: 16px;
    gap: 10px;
  }

  .feature-tile:nth-child(2) {
    border-right: none;
  }

  .feature-tile:nth-child(3) {
    border-right: none;
  }

  .ft-icon {
    width: 38px;
    height: 38px;
  }

  .ft-title {
    font-size: 13px;
  }

  .ft-sub {
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .nav {
    padding: 0 14px;
  }

  .logo {
    font-size: 20px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 44px 16px 56px;
  }

  .hero-title {
    font-size: 26px;
  }

  .hero-sub {
    font-size: 14px;
    margin-bottom: 24px;
  }

  .hero-btns {
    gap: 8px;
  }

  .btn-primary,
  .btn-secondary {
    font-size: 13px;
    padding: 11px 18px;
  }

  .search-wrap {
    padding: 24px 16px 18px;
  }

  .search-box {
    height: 48px;
  }

  .main {
    padding: 0 14px 48px;
  }

  .card h3 {
    font-size: 14px;
  }

  .card p {
    font-size: 12.5px;
  }

  .section-header {
    padding: 0 0 4px;
  }

  /* ---- Compact Footer ---- */
  .footer-main {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 24px 16px 16px;
  }

  /* Brand row: logo + socials side by side */
  .footer-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 16px;
  }

  .footer-desc {
    display: none;
  }

  .footer-logo {
    margin-bottom: 0;
    font-size: 18px;
  }

  .footer-logo-icon {
    width: 26px;
    height: 26px;
  }

  /* Links: 2-column grid */
  .footer-links-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 24px;
  }

  /* Override: make the 3 link columns sit in a 2-col grid */
  .footer-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 24px;
    padding: 24px 16px 16px;
  }

  .footer-brand {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 0;
  }

  .footer-col-title {
    margin-bottom: 10px;
  }

  .footer-col-links {
    gap: 8px;
  }

  .footer-col-links a {
    font-size: 13px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 12px 16px;
  }

  .footer-copy {
    font-size: 11px;
  }

  .footer-bottom-links {
    gap: 14px;
  }

  .footer-bottom-links a {
    font-size: 11px;
  }
}

/* ===== DESIGN 3 — Card ===== */
.card-header {
  width: 100%;
  height: 90px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 12px 16px;
  flex-shrink: 0;
}

.card-hoverlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 30%, rgba(0, 0, 0, 0.55) 100%);
}

.card-hcontent {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  flex-shrink: 0;
}

.card-htitle {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

.card-hsub {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 2px;
}

.card-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
}

.card-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}

.card-stats {
  display: flex;
  align-items: center;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid var(--border-card);
  overflow: hidden;
}

.card-stat {
  flex: 1;
  padding: 7px 10px;
  text-align: center;
  border-right: 1px solid var(--border-card);
}

.card-stat:last-child {
  border-right: none;
}

.card-stat-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
}

.card-stat-label {
  font-size: 10px;
  color: var(--text-light);
  margin-top: 1px;
}

/* ============================================================
   PASTE THIS AT THE BOTTOM OF style.css
   ============================================================ */


/* ============================================
   SECTION DIVIDER  (Programs → Books)
============================================ */
.section-divider {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 60px 0 36px;
}

.divider-line {
  flex: 1;
  height: 1.5px;
  background: linear-gradient(90deg,
      transparent 0%,
      var(--border) 25%,
      var(--border) 75%,
      transparent 100%);
}

.divider-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 22px;
  background: var(--navy);
  color: var(--accent);
  border-radius: 30px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 4px 18px rgba(11, 31, 58, 0.22);
  border: 1px solid rgba(232, 160, 32, 0.18);
}

.divider-badge svg {
  flex-shrink: 0;
}

/* ============================================
   BOOKS SECTION
============================================ */
.books-section {
  display: block;
  /* was never set — makes it visible */
  margin-top: 0;
}

.books-section-inner {
  background: var(--bg-card);
  border: 1.5px solid var(--border-card);
  border-top: 3.5px solid var(--navy);
  /* strong top-accent line */
  border-radius: var(--radius-xl);
  padding: 30px 26px 34px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

/* subtle corner decoration */
.books-section-inner::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 100px;
  height: 100px;
  background: var(--accent-soft);
  border-radius: 50%;
  pointer-events: none;
}

/* ============================================
   RESPONSIVE — BOOKS SECTION
============================================ */
@media (max-width: 900px) {
  .section-divider {
    margin: 48px 0 28px;
  }
}

@media (max-width: 768px) {
  .section-divider {
    margin: 40px 0 24px;
    gap: 14px;
  }

  .divider-badge {
    padding: 8px 18px;
    font-size: 10.5px;
  }

  .books-section-inner {
    padding: 24px 18px 28px;
  }
}

@media (max-width: 480px) {
  .section-divider {
    margin: 32px 0 20px;
    gap: 12px;
  }

  .divider-badge {
    padding: 7px 14px;
    font-size: 10px;
    letter-spacing: 0.07em;
  }

  .books-section-inner {
    padding: 18px 14px 22px;
    border-radius: var(--radius-lg);
  }
}

/* ============================================
   BANNER SLIDER
============================================ */
.banner-slider-wrap {
  position: relative;
  margin-bottom: 0;
  user-select: none;
}

.bs-viewport {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.bs-track {
  display: flex;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.bs-slide {
  flex: 0 0 100%;
  width: 100%;
  min-height: 260px;
  padding: 52px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

/* Decorative blob */
.bs-deco {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  right: -50px;
  top: -70px;
  background: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}
.bs-deco::after {
  content: '';
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  right: 70px;
  bottom: -30px;
  background: rgba(255, 255, 255, 0.04);
}

/* Slide Gradients */
.bs-s1 { background: linear-gradient(135deg, #0b1f3a 0%, #1a3d6b 60%, #0f766e 100%); }
.bs-s2 { background: linear-gradient(135deg, #0f3d35 0%, #065f46 55%, #0b1f3a 100%); }
.bs-s3 { background: linear-gradient(135deg, #2d1a5e 0%, #4c1d95 55%, #1e3a5f 100%); }
.bs-s4 { background: linear-gradient(135deg, #3d2800 0%, #92400e 55%, #7c2d12 100%); }
.bs-s5 { background: linear-gradient(135deg, #052e16 0%, #166534 55%, #0b1f3a 100%); }

/* Badge */
.bs-badge {
  display: inline-flex;
  width: fit-content;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.9);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 30px;
  margin-bottom: 12px;
}
.bs-badge-purple {
  background: rgba(167, 139, 250, 0.2);
  border-color: rgba(167, 139, 250, 0.4);
  color: #c4b5fd;
}
.bs-badge-amber {
  background: rgba(251, 191, 36, 0.15);
  border-color: rgba(251, 191, 36, 0.35);
  color: #fbbf24;
}

/* Title */
.bs-title {
  font-family: var(--font-display);
  font-size: clamp(18px, 3vw, 30px);
  color: #fff;
  line-height: 1.25;
  margin-bottom: 10px;
  letter-spacing: -0.2px;
}

/* Subtitle */
.bs-sub {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.7;
  max-width: 500px;
  margin-bottom: 22px;
}

/* Button */
.bs-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--accent);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: var(--radius);
  transition: background 0.2s, transform 0.2s, gap 0.2s;
  width: fit-content;
  border: none;
  cursor: pointer;
  text-decoration: none;
}
.bs-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  gap: 11px;
}
.bs-btn-purple {
  background: #a78bfa;
  color: #1e0050;
}
.bs-btn-purple:hover { background: #8b5cf6; }

/* Arrows */
.bs-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  z-index: 2;
  backdrop-filter: blur(4px);
}
.bs-arrow:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-50%) scale(1.08);
}
.bs-prev { left: 14px; }
.bs-next { right: 14px; }

/* Dots */
.bs-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  padding-top: 13px;
}
.bs-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  transition: background 0.2s, width 0.25s, border-radius 0.25s;
  padding: 0;
}
.bs-dot.active {
  background: var(--navy);
  width: 22px;
  border-radius: 4px;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .bs-slide {
    min-height: 220px;
    padding: 36px 28px;
    padding-right: 52px;
    padding-left: 52px;
  }
  .bs-sub { font-size: 13px; margin-bottom: 16px; }
  .bs-arrow { width: 30px; height: 30px; }
  .bs-prev { left: 10px; }
  .bs-next { right: 10px; }
}

@media (max-width: 480px) {
  .bs-slide {
    min-height: 195px;
    padding: 26px 18px;
    padding-right: 44px;
    padding-left: 44px;
  }
  .bs-title { font-size: 17px; }
  .bs-sub { font-size: 12px; max-width: 100%; }
  .bs-btn { font-size: 12px; padding: 9px 16px; }
  .bs-deco { display: none; }
  .bs-arrow { width: 28px; height: 28px; }
  .bs-prev { left: 6px; }
  .bs-next { right: 6px; }
}