/* STEAMPEDIA UI Components CSS
   Covers Navbar, Hero, Subject Cards, Article Grid, HowStuffWorks Puzzle Section,
   Free Books Horizontal Scroll, Curriculum Navigator, Impact Counter, Schools CTA, Footer */

/* ==========================================================================
   1. NAVBAR
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1rem 0;
  transition: var(--transition-normal);
}

.navbar.scrolled {
  background: rgba(11, 15, 25, 0.95);
  border-bottom-color: rgba(0, 212, 170, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-heading-en);
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-steam {
  background: linear-gradient(135deg, var(--steam-teal), var(--steam-violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-pedia {
  color: #FFFFFF;
  font-weight: 400;
}

.logo-badge {
  background: var(--steam-orange);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  text-transform: uppercase;
  font-family: var(--font-tag);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1.05rem;
  position: relative;
  padding: 0.25rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--steam-teal);
  transition: var(--transition-fast);
  border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Mobile Toggle */
.nav-mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-md);
  font-family: var(--font-bangla);
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  border: none;
  transition: var(--transition-normal);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--steam-orange), #FF8555);
  color: #FFFFFF;
  box-shadow: 0 4px 15px var(--steam-orange-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.45);
  color: #FFFFFF;
}

.btn-secondary {
  background: rgba(0, 212, 170, 0.1);
  color: var(--steam-teal);
  border: 1px solid var(--steam-teal);
}

.btn-secondary:hover {
  background: rgba(0, 212, 170, 0.25);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--steam-teal-glow);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.btn-outline:hover {
  border-color: var(--steam-teal);
  color: var(--steam-teal);
  background: rgba(255, 255, 255, 0.03);
}

.lang-btn {
  background: var(--steam-bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-tag);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.lang-btn:hover {
  border-color: var(--steam-teal);
}


/* Hide mobile nav btn on desktop */
.nav-mobile-btn {
  display: none;
}

/* ==========================================================================
   2. HERO SECTION
   ========================================================================== */
.hero {
  position: relative;
  padding: 7rem 0 5rem;
  background: radial-gradient(circle at 50% 20%, rgba(124, 92, 252, 0.15), transparent 60%),
              radial-gradient(circle at 80% 80%, rgba(0, 212, 170, 0.12), transparent 50%);
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
  margin: 0 auto;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(124, 92, 252, 0.12);
  border: 1px solid rgba(124, 92, 252, 0.3);
  color: #A78BFA;
  padding: 0.4rem 1.2rem;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.text-gradient {
  background: linear-gradient(135deg, var(--steam-teal), var(--steam-violet), var(--steam-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.35rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  margin-bottom: 3.5rem;
}

.hero-proof {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 1rem;
}

.hero-proof-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-proof-item span {
  color: var(--steam-gold);
  font-weight: 700;
}

/* Floating Shapes Background */
.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.float-shape {
  position: absolute;
  border-radius: var(--radius-lg);
  opacity: 0.15;
  filter: blur(1px);
}

.float-shape.s1 { top: 15%; left: 8%; width: 65px; height: 65px; background: var(--steam-teal); animation: float 7s ease-in-out infinite; }
.float-shape.s2 { top: 60%; left: 5%; width: 80px; height: 80px; background: var(--steam-violet); animation: float 9s ease-in-out infinite 1s; }
.float-shape.s3 { top: 20%; right: 7%; width: 75px; height: 75px; background: var(--steam-orange); animation: float 8s ease-in-out infinite 0.5s; }
.float-shape.s4 { top: 65%; right: 10%; width: 55px; height: 55px; background: var(--subject-math); animation: float 6s ease-in-out infinite 2s; }

/* ==========================================================================
   3. SUBJECT DISCOVERY CARDS (BrainPop-style)
   ========================================================================== */
.subject-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
}

.subject-card {
  background: var(--steam-bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.25rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.subject-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--card-color);
}

.subject-card:hover {
  transform: translateY(-8px);
  border-color: var(--card-color);
  box-shadow: 0 15px 30px -10px var(--card-glow);
}

.subject-icon-wrapper {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 1.8rem;
  color: var(--card-color);
  transition: var(--transition-normal);
}

.subject-card:hover .subject-icon-wrapper {
  background: var(--card-color);
  color: #FFFFFF;
  transform: scale(1.1) rotate(5deg);
}

.subject-name-bn {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.subject-name-en {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: var(--font-tag);
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.subject-grade-badge {
  display: inline-block;
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}

.subject-action {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--card-color);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
}

/* Specific Subject Card Accent Bindings */
.subject-card.science { --card-color: var(--subject-science); --card-glow: var(--subject-science-glow); }
.subject-card.tech { --card-color: var(--subject-tech); --card-glow: var(--subject-tech-glow); }
.subject-card.engineering { --card-color: var(--subject-eng); --card-glow: var(--subject-eng-glow); }
.subject-card.arts { --card-color: var(--subject-arts); --card-glow: var(--subject-arts-glow); }
.subject-card.math { --card-color: var(--subject-math); --card-glow: var(--subject-math-glow); }

/* ==========================================================================
   4. "জানতে চাও?" ARTICLE CARDS GRID (HowStuffWorks-style)
   ========================================================================== */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.article-card {
  background: var(--steam-bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-highlight);
  box-shadow: var(--shadow-card);
}

.article-img-holder {
  height: 200px;
  position: relative;
  background: var(--steam-bg-elevated);
  overflow: hidden;
}

.article-img-holder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.article-card:hover .article-img-holder img {
  transform: scale(1.06);
}

.article-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(8px);
  color: var(--tag-color, var(--steam-teal));
  border: 1px solid var(--tag-color, var(--steam-teal));
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-tag);
}

.article-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.article-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.article-card:hover .article-title {
  color: var(--steam-teal);
}

.article-excerpt {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.article-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.read-more-link {
  font-weight: 700;
  color: var(--steam-teal);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

/* ==========================================================================
   5. HOWSTUFFWORKS-STYLE PUZZLE & QUIZ BLOCK
   ========================================================================== */
.puzzle-section {
  background: linear-gradient(135deg, rgba(0, 212, 170, 0.12) 0%, rgba(124, 92, 252, 0.12) 100%),
              var(--steam-bg-card);
  border: 1px solid rgba(0, 212, 170, 0.25);
  border-radius: 24px;
  padding: 3.5rem 2.5rem;
  position: relative;
  overflow: hidden;
}

.puzzle-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.puzzle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.puzzle-card {
  background: rgba(11, 15, 25, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: var(--transition-normal);
}

.puzzle-card:hover {
  transform: translateY(-5px);
  border-color: var(--steam-teal);
  box-shadow: 0 10px 25px rgba(0, 212, 170, 0.2);
}

.puzzle-type-badge {
  align-self: flex-start;
  background: rgba(255, 107, 53, 0.15);
  color: var(--steam-orange);
  border: 1px solid rgba(255, 107, 53, 0.3);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.puzzle-question {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  color: #FFFFFF;
}

.puzzle-answer-box {
  background: var(--steam-bg-elevated);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  margin-bottom: 1.25rem;
  display: none;
  font-size: 0.95rem;
  color: var(--steam-gold);
  border-left: 3px solid var(--steam-gold);
}

.puzzle-answer-box.active {
  display: block;
  animation: fadeIn 0.3s ease-in-out;
}

.puzzle-toggle-btn {
  width: 100%;
  padding: 0.6rem;
  background: rgba(0, 212, 170, 0.15);
  color: var(--steam-teal);
  border: 1px solid rgba(0, 212, 170, 0.3);
  border-radius: var(--radius-sm);
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
}

.puzzle-toggle-btn:hover {
  background: var(--steam-teal);
  color: #0B0F19;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   6. FREE BOOKS SPOTLIGHT (Horizontal Scroll)
   ========================================================================== */
.books-scroll-wrapper {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding: 1rem 0.5rem 2rem;
  scroll-snap-type: x mandatory;
}

.book-card {
  flex: 0 0 240px;
  scroll-snap-align: start;
  background: var(--steam-bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition-normal);
}

.book-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--steam-gold);
  box-shadow: 0 12px 25px rgba(255, 209, 102, 0.2);
}

.book-cover {
  width: 100%;
  height: 260px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #1E293B, #0F172A);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.25rem;
  position: relative;
  margin-bottom: 1rem;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.book-tier-badge {
  align-self: flex-start;
  background: var(--tier-color, var(--steam-teal));
  color: #0B0F19;
  font-weight: 800;
  font-size: 0.7rem;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  font-family: var(--font-tag);
}

.book-cover-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.3;
}

.book-cover-subject {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-tag);
}

.book-info-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}

.book-info-grade {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.book-download-btn {
  margin-top: auto;
  width: 100%;
  padding: 0.55rem;
  background: rgba(255, 209, 102, 0.15);
  color: var(--steam-gold);
  border: 1px solid rgba(255, 209, 102, 0.3);
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: var(--transition-fast);
}

.book-download-btn:hover {
  background: var(--steam-gold);
  color: #0B0F19;
}

/* Tier Colors */
.tier-seed { --tier-color: #10B981; }
.tier-sprout { --tier-color: #3B82F6; }
.tier-branch { --tier-color: #F59E0B; }
.tier-bloom { --tier-color: #EC4899; }
.tier-fruit { --tier-color: #8B5CF6; }

/* ==========================================================================
   7. CURRICULUM NAVIGATOR (Mystery Science-style)
   ========================================================================== */
.class-selector-tabs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  margin-bottom: 2.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.class-tab {
  background: var(--steam-bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.class-tab:hover {
  border-color: var(--steam-teal);
  color: var(--text-primary);
}

.class-tab.active {
  background: var(--steam-teal);
  color: #0B0F19;
  border-color: var(--steam-teal);
  box-shadow: 0 4px 15px var(--steam-teal-glow);
}

.curriculum-result-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.curriculum-module-card {
  background: var(--steam-bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: var(--transition-normal);
}

.curriculum-module-card:hover {
  border-color: var(--steam-blue);
  transform: translateY(-4px);
}

.module-subject-pill {
  font-size: 0.75rem;
  font-family: var(--font-tag);
  font-weight: 700;
  color: var(--steam-blue);
  background: rgba(77, 168, 255, 0.1);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
  display: inline-block;
}

.module-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.module-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.module-lessons-count {
  font-size: 0.85rem;
  color: var(--steam-gold);
  font-weight: 700;
}

/* ==========================================================================
   8. IMPACT COUNTER (Code.org-style)
   ========================================================================== */
.impact-section {
  background: var(--steam-bg-card);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 4.5rem 0;
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}

.impact-item {
  padding: 1rem;
}

.impact-number {
  font-size: 3.5rem;
  font-weight: 900;
  font-family: var(--font-heading-en);
  background: linear-gradient(135deg, var(--steam-teal), var(--steam-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.impact-label {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.impact-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ==========================================================================
   9. FOR SCHOOLS B2B CTA
   ========================================================================== */
.schools-cta-box {
  background: linear-gradient(135deg, rgba(124, 92, 252, 0.2), rgba(11, 15, 25, 0.9)),
              var(--steam-bg-card);
  border: 1px solid rgba(124, 92, 252, 0.3);
  border-radius: 24px;
  padding: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.schools-cta-text {
  max-width: 650px;
}

.schools-cta-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #FFFFFF;
}

.schools-cta-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   10. FOOTER
   ========================================================================== */
.footer {
  background: #070A12;
  border-top: 1px solid var(--border-subtle);
  padding: 5rem 0 2rem;
  color: var(--text-secondary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-about p {
  margin-top: 1rem;
  font-size: 0.95rem;
  line-height: 1.7;
}

.footer-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--steam-teal);
  padding-left: 4px;
}

.social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 1.25rem;
}

.social-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--steam-bg-elevated);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  border: 1px solid var(--border-subtle);
  transition: var(--transition-fast);
}

.social-icon-btn:hover {
  background: var(--steam-teal);
  color: #0B0F19;
  transform: translateY(-3px);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
}

/* ==========================================================================
   RESPONSIVE LAYOUT BREAKPOINTS
   ========================================================================== */
@media (max-width: 1024px) {
  .nav-actions .hide-on-mobile { display: none !important; }
  .subject-grid { grid-template-columns: repeat(3, 1fr); }
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .puzzle-grid { grid-template-columns: 1fr; }
  .curriculum-result-grid { grid-template-columns: repeat(2, 1fr); }
  .schools-cta-box { flex-direction: column; text-align: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-mobile-btn { display: inline-flex; margin-top: 1rem; width: 100%; justify-content: center; }
  .navbar { padding: 0.75rem 0; }
  .logo { font-size: 1.35rem; }
  .logo-badge { font-size: 0.55rem; padding: 0.1rem 0.3rem; }
  
  .nav-actions { gap: 0.5rem; }
  .nav-actions .hide-on-mobile { display: none !important; } /* Hide large header CTA on mobile, available in menu & hero */
  .lang-btn { padding: 0.35rem 0.6rem; font-size: 0.8rem; }
  
  .nav-menu { display: none; }
  .nav-mobile-toggle { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 8px; background: rgba(255,255,255,0.05); }

  .hero { padding: 4rem 0 2.5rem; }
  .hero-pill { font-size: 0.8rem; padding: 0.3rem 0.9rem; margin-bottom: 1.25rem; }
  .hero-title { font-size: 2.1rem; line-height: 1.3; margin-bottom: 1rem; }
  .hero-subtitle { font-size: 1rem; margin-bottom: 2rem; line-height: 1.6; }
  
  .hero-actions { flex-direction: column; gap: 0.85rem; align-items: center; margin-bottom: 2.5rem; }
  .hero-actions .btn { width: 100%; max-width: 300px; padding: 0.7rem 1.25rem; font-size: 0.95rem; }
  
  .hero-proof { flex-direction: row; flex-wrap: wrap; gap: 1rem; justify-content: center; font-size: 0.85rem; padding-top: 1.5rem; }
  .hero-proof-item { gap: 0.35rem; }

  .subject-grid { grid-template-columns: repeat(2, 1fr); gap: 0.85rem; }
  .subject-card { padding: 1.25rem 0.85rem; }
  .subject-icon-wrapper { width: 52px; height: 52px; font-size: 1.4rem; margin-bottom: 0.85rem; }
  .subject-name-bn { font-size: 1.15rem; }
  .subject-name-en { font-size: 0.75rem; margin-bottom: 0.6rem; }
  
  .article-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .article-img-holder { height: 170px; }
  
  .puzzle-section { padding: 2rem 1.25rem; border-radius: 16px; }
  .puzzle-header { margin-bottom: 1.75rem; }
  .puzzle-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  
  .impact-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .impact-number { font-size: 2.75rem; }
  .impact-label { font-size: 1.05rem; }
  
  .curriculum-result-grid { grid-template-columns: 1fr; }
  .schools-cta-box { padding: 2rem 1.25rem; border-radius: 16px; }
  .schools-cta-title { font-size: 1.6rem; }
  
  .footer { padding: 3.5rem 0 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}

@media (max-width: 480px) {
  .logo { font-size: 1.2rem; }
  .hero-title { font-size: 1.8rem; }
  .hero-subtitle { font-size: 0.9rem; }
  .hero-actions .btn { max-width: 100%; }
  .subject-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
}



/* Temporarily hide curriculum section as requested */
#curriculum,
a[href="#curriculum"],
a[href="../index.html#curriculum"],
a[href="../../index.html#curriculum"] {
  display: none !important;
}
