/* ============================================================
   Social Baniya Academy — Global Design System
   style.css — Link from every page
   ============================================================ */

/* — Google Font Import — */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

/* — Design Tokens — */
:root {
  /* Colors */
  --ink:       #0c0c0f;
  --ink-2:     #141418;
  --ink-3:     #1e1e24;
  --white:     #ffffff;
  --blue:      #2563eb;
  --blue-h:    #1d4ed8;
  --blue-s:    #eff6ff;
  --blue-t:    rgba(37,99,235,0.08);
  --accent:    #60a5fa;
  --grey:      #f8f8fa;
  --grey-2:    #f1f1f4;
  --muted:     #71717a;
  --text:      #27272a;
  --border:    #e4e4e7;
  --border-d:  rgba(255,255,255,0.07);
  --success:   #16a34a;
  --warning:   #d97706;
  --error:     #dc2626;

  /* Typography */
  --font:      'Plus Jakarta Sans', -apple-system, sans-serif;
  --font-mono: 'Fira Code', monospace;

  /* Spacing */
  --gap-xs:    8px;
  --gap-sm:    16px;
  --gap-md:    24px;
  --gap-lg:    48px;
  --gap-xl:    80px;
  --gap-2xl:   120px;

  /* Radius */
  --r-sm:  6px;
  --r-md:  12px;
  --r-lg:  20px;
  --r-xl:  28px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg:  0 20px 56px rgba(0,0,0,0.1);
  --shadow-blue:0 12px 32px rgba(37,99,235,0.35);

  /* Transitions */
  --t-fast:  0.15s ease;
  --t-base:  0.25s ease;
  --t-slow:  0.4s ease;
}

/* — Reset — */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}
img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
input, textarea, select, button { font-family: var(--font); }
button { cursor: pointer; border: none; background: none; }

/* — Layout — */
.container { max-width: 1080px; margin: 0 auto; padding: 0 28px; }
.container-sm { max-width: 760px; margin: 0 auto; padding: 0 28px; }
.container-lg { max-width: 1280px; margin: 0 auto; padding: 0 28px; }

.sec { padding: var(--gap-xl) 0; }
.sec-sm { padding: 64px 0; }
.sec-grey { background: var(--grey); }
.sec-dark { background: var(--ink-2); }
.sec-ink { background: var(--ink); }

/* — Typography — */
.kicker {
  font-size: 11px; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--blue); margin-bottom: 14px; display: block;
}
.kicker-white { color: var(--accent); }

.heading-xl {
  font-size: clamp(40px, 5.5vw, 70px);
  font-weight: 800; letter-spacing: -2.5px;
  line-height: 1.04; color: var(--ink);
}
.heading-lg {
  font-size: clamp(28px, 3.5vw, 46px);
  font-weight: 800; letter-spacing: -1.8px;
  line-height: 1.1; color: var(--ink);
}
.heading-md {
  font-size: clamp(22px, 2.5vw, 34px);
  font-weight: 800; letter-spacing: -1px;
  line-height: 1.15; color: var(--ink);
}
.heading-sm {
  font-size: 20px; font-weight: 700;
  letter-spacing: -0.4px; color: var(--ink);
}
.heading-white { color: var(--white); }

.body-lg { font-size: 18px; line-height: 1.78; color: var(--muted); }
.body-md { font-size: 16px; line-height: 1.75; color: var(--muted); }
.body-sm { font-size: 14px; line-height: 1.65; color: var(--muted); }
.body-white { color: rgba(255,255,255,0.52); }

.gradient-text {
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* — Buttons — */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--r-md);
  font-size: 15px; font-weight: 700;
  letter-spacing: -0.2px; transition: all var(--t-base);
  font-family: var(--font); cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--blue); color: var(--white);
}
.btn-primary:hover {
  background: var(--blue-h);
  transform: translateY(-2px);
  box-shadow: var(--shadow-blue);
}
.btn-secondary {
  background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.78);
  border: 1px solid rgba(255,255,255,0.12);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.1); color: var(--white);
}
.btn-outline {
  background: transparent; color: var(--blue);
  border: 1.5px solid var(--blue);
}
.btn-outline:hover { background: var(--blue); color: var(--white); }
.btn-white {
  background: var(--white); color: var(--blue);
}
.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.16);
}
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--blue); }
.btn-sm { padding: 10px 20px; font-size: 13px; }
.btn-lg { padding: 18px 36px; font-size: 17px; }
.btn-full { width: 100%; justify-content: center; }

/* — Navigation — */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(12,12,15,0.97);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-d);
}
.navbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; max-width: 1080px; margin: 0 auto; padding: 0 28px;
}
.nav-logo {
  font-size: 17px; font-weight: 800; color: var(--white);
  letter-spacing: -0.3px;
}
.nav-logo span { color: var(--accent); }
.nav-menu { display: flex; align-items: center; gap: 32px; }
.nav-link {
  font-size: 14px; font-weight: 500;
  color: rgba(255,255,255,0.55);
  transition: color var(--t-fast);
  position: relative;
}
.nav-link:hover { color: var(--white); }
.nav-link.active { color: var(--white); }
.nav-link.active::after {
  content: '';
  position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--blue); border-radius: 2px;
}
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-demo {
  font-size: 14px; font-weight: 600;
  color: rgba(255,255,255,0.65);
  padding: 8px 16px; border-radius: var(--r-sm);
  border: 1px solid rgba(255,255,255,0.15);
  transition: all var(--t-fast);
}
.nav-demo:hover { color: var(--white); border-color: rgba(255,255,255,0.35); }
.nav-enroll {
  font-size: 14px; font-weight: 700;
  background: var(--blue); color: var(--white);
  padding: 9px 20px; border-radius: var(--r-sm);
  transition: background var(--t-fast);
}
.nav-enroll:hover { background: var(--blue-h); }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.nav-hamburger span { width: 22px; height: 2px; background: rgba(255,255,255,0.7); border-radius: 2px; transition: all var(--t-fast); }

/* — Ticker — */
.ticker { background: var(--blue); padding: 12px 0; overflow: hidden; }
.ticker-track { display: flex; white-space: nowrap; animation: ticker-scroll 28s linear infinite; }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker-item {
  font-size: 11px; font-weight: 700;
  color: rgba(255,255,255,0.9);
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 0 32px; flex-shrink: 0;
}
.ticker-sep { color: rgba(255,255,255,0.35); padding: 0 4px; }

/* — Hero Shapes — */
.hero-ring {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(96,165,250,0.07);
  pointer-events: none;
}

/* — Cards — */
.card {
  background: var(--white); border-radius: var(--r-lg);
  border: 1.5px solid var(--border);
  padding: 32px; transition: all var(--t-base);
}
.card:hover { box-shadow: var(--shadow-lg); border-color: var(--blue); }
.card-dark {
  background: var(--ink); border-color: var(--border-d);
}
.card-dark:hover { border-color: rgba(96,165,250,0.3); }

/* — Badges / Tags — */
.badge {
  display: inline-block;
  font-size: 10px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; padding: 5px 12px;
  border-radius: var(--r-xl);
}
.badge-blue { background: var(--blue-s); color: var(--blue); }
.badge-dark {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.09);
  color: rgba(255,255,255,0.45);
}

/* — Stats — */
.stat-num {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 800; letter-spacing: -1.5px;
  line-height: 1; color: var(--white);
}
.stat-num .accent { color: var(--accent); }
.stat-label { font-size: 12px; color: rgba(255,255,255,0.35); margin-top: 5px; }

/* — Proof Bar — */
.proof-bar {
  display: flex; border: 1px solid var(--border-d);
  border-radius: var(--r-lg); overflow: hidden;
}
.proof-item {
  flex: 1; padding: 22px 24px;
  border-right: 1px solid var(--border-d);
}
.proof-item:last-child { border-right: none; }

/* — Divider — */
.divider { height: 1px; background: var(--border); margin: 0; }
.divider-dark { background: var(--border-d); }

/* — Image Placeholder (for development) — */
.img-placeholder {
  background: linear-gradient(135deg, #1e1e24, #141418);
  border: 1px dashed rgba(96,165,250,0.3);
  border-radius: var(--r-md);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 8px; color: rgba(96,165,250,0.6);
  font-size: 13px; font-weight: 600;
  text-align: center; padding: 20px;
}
.img-placeholder .img-icon { font-size: 32px; opacity: 0.5; }
.img-placeholder .img-label { font-size: 11px; color: rgba(255,255,255,0.3); margin-top: 4px; }

/* — Section Headers — */
.sec-header { margin-bottom: 48px; }
.sec-header.centered { text-align: center; }
.sec-header.centered .body-md { margin: 0 auto; }

/* — Grid Utilities — */
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.grid-2-1 { display: grid; grid-template-columns: 2fr 1fr; gap: 48px; align-items: start; }
.grid-1-2 { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; align-items: center; }
.grid-1-1 { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }

/* — Checklist — */
.checklist { display: flex; flex-direction: column; gap: 10px; }
.checklist li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 15px; color: var(--text); font-weight: 500;
}
.checklist li::before {
  content: '';
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--blue); flex-shrink: 0; margin-top: 2px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6l3 3 5-5' stroke='white' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 65%; background-repeat: no-repeat; background-position: center;
}
.checklist-white li { color: rgba(255,255,255,0.75); }

/* — FAQ — */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 0; cursor: pointer; gap: 16px;
  font-size: 16px; font-weight: 600; color: var(--ink);
  transition: color var(--t-fast);
}
.faq-question:hover { color: var(--blue); }
.faq-icon {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--blue-s); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0; transition: all var(--t-base);
  line-height: 1; font-weight: 300;
}
.faq-answer {
  font-size: 15px; color: var(--muted); line-height: 1.75;
  max-height: 0; overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.faq-item.open .faq-answer { max-height: 300px; padding-bottom: 20px; }
.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--blue); color: var(--white); }

/* — Testimonials — */
.testimonial-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-d);
  border-radius: var(--r-lg); padding: 28px;
  transition: all var(--t-base);
}
.testimonial-card:hover {
  border-color: rgba(96,165,250,0.22);
  background: rgba(37,99,235,0.04);
}
.stars { display: flex; gap: 3px; margin-bottom: 14px; }
.star {
  width: 14px; height: 14px; background: #f59e0b;
  clip-path: polygon(50% 0%,61% 35%,98% 35%,68% 57%,79% 91%,50% 70%,21% 91%,32% 57%,2% 35%,39% 35%);
}
.testimonial-text {
  font-size: 15px; color: rgba(255,255,255,0.72);
  line-height: 1.75; font-style: italic; margin-bottom: 20px;
}
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--blue); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 800; flex-shrink: 0;
}
.author-name { font-size: 14px; font-weight: 700; color: var(--white); }
.author-role { font-size: 12px; color: rgba(255,255,255,0.35); margin-top: 2px; }

/* — Footer — */
.footer {
  background: var(--ink); padding: 60px 0 28px;
  border-top: 1px solid var(--border-d);
}
.footer-grid {
  display: grid; grid-template-columns: 2.5fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 48px;
}
.footer-logo {
  font-size: 17px; font-weight: 800; color: var(--white);
  display: block; margin-bottom: 12px;
}
.footer-logo span { color: var(--accent); }
.footer-desc {
  font-size: 13px; color: rgba(255,255,255,0.3);
  line-height: 1.75; max-width: 280px; margin-bottom: 20px;
}
.footer-badges { display: flex; gap: 7px; flex-wrap: wrap; }
.footer-col h4 {
  font-size: 10px; font-weight: 700; color: rgba(255,255,255,0.85);
  text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 18px;
}
.footer-col a {
  display: block; font-size: 13px;
  color: rgba(255,255,255,0.38);
  margin-bottom: 10px; transition: color var(--t-fast);
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border-d);
  padding-top: 24px;
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 10px;
}
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.2); }

/* — Scroll reveal animation — */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* — Blog Content Styles — */
.blog-content h1 { font-size: 2.2rem; font-weight: 800; letter-spacing: -1px; margin: 2rem 0 1rem; color: var(--ink); }
.blog-content h2 { font-size: 1.7rem; font-weight: 800; letter-spacing: -0.5px; margin: 2.5rem 0 1rem; color: var(--ink); border-bottom: 2px solid var(--blue-s); padding-bottom: 8px; }
.blog-content h3 { font-size: 1.3rem; font-weight: 700; margin: 2rem 0 0.75rem; color: var(--ink); }
.blog-content h4 { font-size: 1.1rem; font-weight: 700; margin: 1.5rem 0 0.5rem; color: var(--ink); }
.blog-content h5 { font-size: 1rem; font-weight: 700; margin: 1.25rem 0 0.5rem; color: var(--ink); }
.blog-content h6 { font-size: 0.9rem; font-weight: 700; margin: 1rem 0 0.5rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; }
.blog-content p { font-size: 17px; line-height: 1.82; color: #374151; margin-bottom: 1.25rem; }
.blog-content ul, .blog-content ol { padding-left: 24px; margin: 1.25rem 0; }
.blog-content ul { list-style: disc; }
.blog-content ol { list-style: decimal; }
.blog-content li { font-size: 16px; line-height: 1.75; color: #374151; margin-bottom: 6px; }
.blog-content a { color: var(--blue); font-weight: 500; transition: opacity var(--t-fast); }
.blog-content a:hover { opacity: 0.75; }
.blog-content strong { color: var(--ink); font-weight: 700; }
.blog-content em { font-style: italic; }
.blog-content blockquote {
  border-left: 3px solid var(--blue);
  padding: 16px 20px; margin: 2rem 0;
  background: var(--blue-s); border-radius: 0 var(--r-md) var(--r-md) 0;
  font-style: italic; font-size: 17px; color: var(--ink);
}
.blog-content img {
  width: 100%; border-radius: var(--r-md);
  margin: 2rem 0; box-shadow: var(--shadow-md);
}
.blog-content code {
  background: var(--grey); padding: 2px 7px;
  border-radius: 4px; font-size: 14px; color: #c0392b;
  font-family: var(--font-mono);
}
.blog-content pre {
  background: var(--ink); padding: 20px 24px;
  border-radius: var(--r-md); overflow-x: auto;
  margin: 1.5rem 0;
}
.blog-content pre code { color: #a3e635; background: none; font-size: 14px; }
.blog-content table {
  width: 100%; border-collapse: collapse;
  margin: 2rem 0; border-radius: var(--r-md); overflow: hidden;
  border: 1.5px solid var(--border);
}
.blog-content th {
  background: var(--ink); color: var(--white);
  padding: 14px 18px; font-size: 13px; font-weight: 700;
  text-align: left;
}
.blog-content td {
  padding: 12px 18px; font-size: 14px;
  border-bottom: 1px solid var(--border); color: var(--text);
}
.blog-content tr:last-child td { border-bottom: none; }

/* — Responsive — */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-menu { display: none; }
  .nav-hamburger { display: flex; }
  .nav-menu.open {
    display: flex; flex-direction: column;
    position: absolute; top: 68px; left: 0; right: 0;
    background: var(--ink-2); padding: 20px 28px;
    border-bottom: 1px solid var(--border-d);
    gap: 20px;
  }
  .grid-2, .grid-3, .grid-4, .grid-2-1, .grid-1-2, .grid-1-1 {
    grid-template-columns: 1fr;
  }
  .proof-bar { flex-direction: column; }
  .proof-item { border-right: none; border-bottom: 1px solid var(--border-d); }
  .proof-item:last-child { border-bottom: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .sec { padding: 64px 0; }
  .heading-xl { letter-spacing: -1.5px; }
}

@media (max-width: 480px) {
  .container, .container-sm, .container-lg { padding: 0 18px; }
  .btn { padding: 12px 22px; font-size: 14px; }
  .btn-lg { padding: 15px 28px; font-size: 15px; }
}

/* — Utility Classes — */
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.text-blue { color: var(--blue); }
.text-white { color: var(--white); }
.mt-sm { margin-top: var(--gap-sm); }
.mt-md { margin-top: var(--gap-md); }
.mt-lg { margin-top: var(--gap-lg); }
.mb-sm { margin-bottom: var(--gap-sm); }
.mb-md { margin-bottom: var(--gap-md); }
.mb-lg { margin-bottom: var(--gap-lg); }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-sm { gap: var(--gap-sm); }
.gap-md { gap: var(--gap-md); }
.gap-lg { gap: var(--gap-lg); }
.w-full { width: 100%; }
.hidden { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
