@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=Nunito:wght@400;500;600;700;800&family=Fuzzy+Bubbles:wght@700&display=swap');

/* -------------------------------------------------------------
   THE ABACUS HUB DESIGN SYSTEM & BRAND TOKENS
   Playful Hand-Drawn Sketchbook & Doodle Aesthetic
   Primary: #2E3092 (Deep Royal Blue)
   Secondary: #4CB0B3 (Teal Cyan)
   Accent: #EF6326 (Vibrant Orange / Coral)
   Canvas Tint: #FEFCE3 (Warm Ivory / Cream)
   Border Pale: #F9F3C4 (Pale Vanilla)
   Text: #383838 (Charcoal Slate)
   Footer: #1A164B (Deep Midnight Indigo)
   ------------------------------------------------------------- */
:root {
  --primary: #2E3092;
  --primary-dark: #231651;
  --secondary: #4CB0B3;
  --accent: #EF6326;
  --accent-hover: #d5531d;
  --text: #383838;
  --text-muted: #6b7280;
  --bg-cream: #FEFCE3;
  --bg-subtle: #f9fafb;
  --border-pale: #F9F3C4;
  --border-light: #e5e7eb;
  --indigo: #3F2791;
  --gold: #FFCB28;
  --cyan-soft: #8FCED0;
  --white: #FFFFFF;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-pill: 9999px;
  --shadow-sm: 0 2px 8px rgba(46, 48, 146, 0.06);
  --shadow-md: 0 8px 24px rgba(46, 48, 146, 0.1);
  --shadow-lg: 0 16px 36px rgba(46, 48, 146, 0.14);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Hallmark Focus Ring & Keyboard Accessibility */
:focus-visible {
  outline: 3px solid #ef6326;
  outline-offset: 3px;
  border-radius: 4px;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #2e3092;
  outline-offset: 1px;
}

html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  font-family: 'Nunito', sans-serif;
  color: var(--text);
  background-color: var(--white);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Fredoka', sans-serif;
  color: var(--primary);
  font-weight: 600;
  line-height: 1.25;
}

h1 {
  font-size: clamp(2.2rem, 1.8rem + 2.2vw, 3.8rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.5rem);
}

h3 {
  font-size: clamp(1.4rem, 1.2rem + 1vw, 2rem);
}

h4 {
  font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.45rem);
}

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.25s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Section Common */
.section {
  padding: 52px 0;
  position: relative;
}

@media (max-width: 640px) {
  .section {
    padding: 38px 0;
  }
}

.section-cream {
  background-color: #faf7f0;
  background-image: radial-gradient(#d6cfc4 1.3px, transparent 1.3px);
  background-size: 22px 22px;
  border-top: 2.5px dashed #ded7ca;
  border-bottom: 2.5px dashed #ded7ca;
}

.section-subtle {
  background-color: #f0f9ff;
  background-image: radial-gradient(#bae6fd 1.3px, transparent 1.3px);
  background-size: 22px 22px;
  border-top: 2.5px dashed #bae6fd;
  border-bottom: 2.5px dashed #bae6fd;
}

.section-primary {
  background-color: #22283a;
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1.3px, transparent 1.3px);
  background-size: 22px 22px;
  border-top: 3px dashed rgba(255, 255, 255, 0.3);
  border-bottom: 3px dashed rgba(255, 255, 255, 0.3);
  color: #ffffff;
  position: relative;
}

.section-primary h1,
.section-primary h2,
.section-primary h3,
.section-primary h4 {
  color: #ffffff;
}

.section-title-wrap {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 28px auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Fredoka', cursive, sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #1a1c22;
  background-color: #fef08a;
  border: 2px solid #252830;
  border-radius: 999px;
  padding: 4px 16px;
  box-shadow: 2.5px 2.5px 0px #252830;
  margin-bottom: 12px;
  transform: rotate(-1deg);
  transition: transform 0.2s ease;
}

.section-tag:hover {
  transform: rotate(1deg) scale(1.03);
}

.section-title {
  font-family: 'Fredoka', cursive, sans-serif;
  color: #252830;
  font-weight: 700;
  margin-bottom: 16px;
}

.section-desc {
  color: #334155;
  font-size: 1.12rem;
  line-height: 1.6;
  font-weight: 500;
}

/* Buttons - Sketchbook Hand-Drawn Doodle Physics */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 30px;
  font-family: 'Fredoka', cursive, sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.3px;
  border-radius: 255px 15px 225px 15px/15px 225px 15px 255px;
  border: 2.5px solid #252830;
  cursor: pointer;
  box-shadow: 3.5px 3.5px 0px #252830;
  transition: all 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-transform: capitalize;
  user-select: none;
  text-decoration: none;
}

.btn:hover {
  transform: translate(-1.5px, -1.5px) rotate(-0.5deg);
  box-shadow: 5px 5px 0px #252830;
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0px #252830;
}

.btn:focus-visible {
  outline: 3px solid #ef6326;
  outline-offset: 3px;
}

.btn-accent {
  background-color: #ff5a1f;
  color: #ffffff;
}

.btn-accent:hover {
  background-color: #ff4705;
  color: #ffffff;
}

.btn-primary {
  background-color: #2e3092;
  color: #ffffff;
}

.btn-primary:hover {
  background-color: #231651;
  color: #ffffff;
}

.btn-outline {
  background-color: #ffffff;
  color: #252830;
  border-color: #252830;
}

.btn-outline:hover {
  background-color: #fef08a;
  color: #1a1c22;
}

.btn-white {
  background-color: #ffffff;
  color: #252830;
  border-color: #252830;
}

.btn-white:hover {
  background-color: #a7f3d0;
  color: #1a1c22;
}

/* Header & Navbar */
/* Header & Navbar - Sketchbook Doodle Edition */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #ffffff;
  background-image: radial-gradient(#ece6dd 1px, transparent 1px);
  background-size: 20px 20px;
  border-bottom: 2.5px dashed #dcd4c7;
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

.site-header.scrolled {
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
  background-color: #ffffff;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 82px;
  max-width: 1360px;
}

.brand-logo {
  display: flex;
  align-items: center;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  flex-shrink: 0;
}

.brand-logo:hover {
  transform: scale(1.02);
}

.brand-logo img {
  height: 48px;
  max-width: 190px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
  flex-shrink: 0;
}

.nav-link {
  font-family: 'Fredoka', cursive, sans-serif;
  font-weight: 700;
  font-size: 1.02rem;
  color: #252830;
  height: 40px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 10px;
  border: 2px solid transparent;
  white-space: nowrap !important;
  text-decoration: none;
  transition: all 0.15s ease;
  position: relative;
  user-select: none;
  box-sizing: border-box;
}

/* Inactive Nav Hover */
.nav-link:hover {
  background: #ffffff;
  color: #1a1c22;
  border: 2px solid #252830;
  box-shadow: 2px 2px 0px #252830;
}

/* Active Nav Link (Yellow box on tap/active, with EXACT SAME 40px HEIGHT) */
.nav-link.active,
.nav-link:active {
  background: #fef08a; /* Honey Pastel Highlighter */
  color: #1a1c22;
  border: 2px solid #252830;
  border-radius: 10px;
  box-shadow: 2.5px 2.5px 0px #252830;
  transform: none;
  height: 40px;
  box-sizing: border-box;
}

.nav-link.active:hover {
  background: #fde047;
  transform: translateY(-1px);
  box-shadow: 3.5px 3.5px 0px #252830;
}

/* Dropdown Menu (Notebook Card Style with Washi Tape) */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(10px) scale(0.96);
  background: #faf7f0;
  background-image: radial-gradient(#d6cfc4 1.1px, transparent 1.1px);
  background-size: 18px 18px;
  min-width: 255px;
  border: 2.5px solid #252830;
  border-radius: 18px;
  box-shadow: 5px 5px 0px #252830;
  padding: 16px 10px 10px 10px;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 1100;
}

/* Washi tape on dropdown top edge */
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%) rotate(-1deg);
  width: 60px;
  height: 16px;
  background: #bae6fd;
  border: 1.5px solid #252830;
  border-radius: 3px;
  box-shadow: 1px 1px 0px rgba(0,0,0,0.15);
}

.nav-item:hover .dropdown-menu,
.nav-item:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0) scale(1);
}

.dropdown-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  margin-bottom: 4px;
  font-family: 'Fredoka', cursive, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #334155;
  border-radius: 10px;
  border: 1.5px solid transparent;
  transition: all 0.16s ease;
}

.dropdown-link:hover {
  background: #ffffff;
  color: #1e222b;
  border-color: #252830;
  box-shadow: 2px 2px 0px #252830;
  transform: translateX(3px);
}

.header-action {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  white-space: nowrap !important;
}

.header-action a,
.header-action .btn,
.header-action .btn-outline,
.header-action .btn-accent {
  white-space: nowrap !important;
}

/* Reverted Helpline Phone Button (White by default, Yellow doodle on hover/tap/active) */
.header-action .btn-outline {
  height: 40px;
  box-sizing: border-box;
  background-color: #ffffff !important;
  color: #252830 !important;
  font-family: 'Fredoka', cursive, sans-serif !important;
  font-weight: 700 !important;
  font-size: 0.96rem !important;
  padding: 0 15px !important;
  border: 2px solid #252830 !important;
  border-radius: 12px !important;
  box-shadow: 2.5px 2.5px 0px #252830 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  white-space: nowrap !important;
  text-decoration: none !important;
  transition: all 0.15s ease !important;
}

.header-action .btn-outline:hover,
.header-action .btn-outline:active,
.header-action .btn-outline:focus {
  background-color: #fef08a !important;
  color: #1a1c22 !important;
  transform: translateY(-1px) !important;
  box-shadow: 3.5px 3.5px 0px #252830 !important;
}

/* Doodlified "Contact Us" CTA Button (Exact Same 40px Height) */
.header-action .btn-accent {
  height: 40px;
  box-sizing: border-box;
  background: #ff5a1f;
  color: #ffffff !important;
  font-family: 'Fredoka', cursive, sans-serif;
  font-weight: 700;
  font-size: 0.98rem;
  padding: 0 18px;
  border: 2px solid #252830;
  border-radius: 12px;
  box-shadow: 2.5px 2.5px 0px #252830;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap !important;
  gap: 8px;
  letter-spacing: 0.2px;
  text-decoration: none;
}

.header-action .btn-accent:hover {
  background: #ea4b12;
  transform: translateY(-1px);
  box-shadow: 3.5px 3.5px 0px #252830;
}

.header-action .btn-accent:hover {
  background: #ea4b12;
  transform: translate(-1.5px, -1.5px) rotate(-1deg);
  box-shadow: 5px 5px 0px #252830;
}

.header-action .btn-accent:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0px #252830;
}

/* Mobile Toggle Hamburger Button */
.mobile-toggle {
  display: none;
  background: #fef08a;
  border: 2.2px solid #252830;
  border-radius: 12px;
  box-shadow: 3px 3px 0px #252830;
  font-size: 1.5rem;
  color: #252830;
  cursor: pointer;
  padding: 6px 12px;
  line-height: 1;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.mobile-toggle:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0px #252830;
}

.mobile-toggle:active {
  transform: translate(1.5px, 1.5px);
  box-shadow: 1px 1px 0px #252830;
}

/* Mobile Drawer (Doodle Sketchbook Edition) */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 320px;
  height: 100vh;
  background: #faf7f0;
  background-image: radial-gradient(#d6cfc4 1.1px, transparent 1.1px);
  background-size: 20px 20px;
  border-left: 3.5px solid #252830;
  z-index: 1001;
  box-shadow: -6px 0 24px rgba(0,0,0,0.18);
  padding: 28px 20px;
  overflow-y: auto;
  transition: right 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
}

.mobile-drawer.open {
  right: 0;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 14px;
  border-bottom: 2px dashed #dcd4c7;
}

.drawer-close {
  background: #fee2e2;
  border: 2px solid #252830;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 700;
  color: #991b1b;
  cursor: pointer;
  box-shadow: 2px 2px 0px #252830;
  transition: transform 0.12s ease;
}

.drawer-close:hover {
  transform: scale(1.1);
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 28px;
}

.mobile-nav-link {
  font-family: 'Fredoka', cursive, sans-serif;
  font-size: 1.12rem;
  font-weight: 700;
  color: #252830;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1.8px solid transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.15s ease;
}

.mobile-nav-link:hover, .mobile-nav-link.active {
  background: #fef08a;
  border-color: #252830;
  box-shadow: 2.5px 2.5px 0px #252830;
  color: #1e222b;
}

.drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.4);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.drawer-backdrop.active {
  opacity: 1;
  visibility: visible;
}

/* Hero Section - Sketchbook Doodle Canvas */
.hero {
  padding: 56px 0 46px 0;
  background-color: #fdfbf7;
  background-image: radial-gradient(#dcd5c9 1.2px, transparent 1.2px);
  background-size: 22px 22px;
  border-bottom: 2.5px dashed #ded7ca;
  overflow: hidden;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
}

.hero-abacus-wrap {
  position: relative;
  width: 100%;
  max-width: 580px;
  margin: 0 auto;
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-family: 'Fredoka', cursive, sans-serif;
  font-weight: 700;
  font-size: clamp(2.1rem, 1.5rem + 2.2vw, 3.6rem);
  line-height: 1.15;
  color: #252830;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.hero-text {
  font-size: 1.2rem;
  color: #4b5563;
  margin-bottom: 36px;
  max-width: 580px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-image-wrap {
  position: relative;
  z-index: 1;
}

.hero-main-img {
  border-radius: 20px;
  border: 3.5px solid #252830;
  box-shadow: 6px 6px 0px #252830;
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.hero-main-img:hover {
  transform: scale(1.02) rotate(-0.5deg);
}

/* Feature Cards Grid (Home / Why Choose Us) */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.grid-2 img {
  border: 3.5px solid #252830;
  border-radius: 20px;
  box-shadow: 5px 5px 0px #252830;
  background: #ffffff;
  transition: transform 0.25s ease;
}

.grid-2 img:hover {
  transform: scale(1.02) rotate(-0.5deg);
}

/* Doodlified Feature Cards with Washi Tape Accents */
.feature-card {
  background: #ffffff;
  padding: 38px 26px 28px 26px;
  border-radius: 20px 16px 22px 18px;
  border: 2.5px solid #252830;
  box-shadow: 4.5px 4.5px 0px #252830;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  display: flex;
  flex-direction: column;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%) rotate(-1deg);
  width: 65px;
  height: 20px;
  background: rgba(254, 240, 138, 0.9);
  border: 1.5px dashed #b45309;
  border-radius: 3px;
  pointer-events: none;
  z-index: 3;
}

.feature-card:nth-child(2)::before {
  background: rgba(167, 243, 208, 0.9);
  border-color: #047857;
  transform: translateX(-50%) rotate(1.5deg);
}

.feature-card:nth-child(3)::before {
  background: rgba(186, 230, 253, 0.9);
  border-color: #0369a1;
  transform: translateX(-50%) rotate(-2deg);
}

.feature-card:nth-child(4)::before {
  background: rgba(254, 205, 211, 0.9);
  border-color: #be123c;
  transform: translateX(-50%) rotate(1deg);
}

.feature-card:hover {
  transform: translateY(-6px) rotate(-0.5deg);
  box-shadow: 7px 7px 0px #252830;
  border-color: #252830;
}

.card-icon {
  width: 62px;
  height: 62px;
  border-radius: 50% 45% 55% 48%/48% 55% 45% 52%;
  background-color: #fef08a;
  border: 2.2px solid #252830;
  box-shadow: 2.5px 2.5px 0px #252830;
  color: #252830;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 22px;
  transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.feature-card:hover .card-icon {
  background-color: #ff5a1f;
  color: #ffffff;
  transform: scale(1.1) rotate(4deg);
}

.card-title {
  font-family: 'Fredoka', cursive, sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #252830;
  margin-bottom: 12px;
}

.card-desc {
  color: #4b5563;
  font-size: 1rem;
  line-height: 1.6;
}

/* -------------------------------------------------------------
   DOODLE PILLARS SECTION (CORE DEVELOPMENTAL PILLARS)
   Dotted Background + Hand-Drawn Washi Tape Cards + SVGs
   ------------------------------------------------------------- */
.doodle-pillars-section {
  background-color: #faf7f0;
  background-image: radial-gradient(#d6cfc4 1.3px, transparent 1.3px);
  background-size: 22px 22px;
  border-top: 2.5px dashed #ded7ca;
  border-bottom: 2.5px dashed #ded7ca;
  padding: 50px 0 54px 0;
  position: relative;
  overflow: hidden;
}

.doodle-section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 28px auto;
}

.doodle-section-pill {
  display: inline-block;
  background: #ffffff;
  border: 2px solid #252830;
  border-radius: 999px;
  padding: 6px 18px;
  font-family: 'Fredoka', cursive, sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: #252830;
  box-shadow: 2.5px 2.5px 0px #252830;
  margin-bottom: 12px;
}

.doodle-section-title {
  font-family: 'Fredoka', cursive, sans-serif;
  font-size: 2.1rem;
  font-weight: 700;
  color: #1e222b;
  letter-spacing: -0.5px;
}

/* Doodle Feature Cards */
.doodle-feature-card {
  background: #ffffff;
  border: 3px solid #252830;
  border-radius: 22px;
  padding: 34px 26px 26px 26px;
  box-shadow: 5px 5px 0px #252830;
  position: relative;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.22s ease;
  display: flex;
  flex-direction: column;
  user-select: none;
}

.doodle-feature-card:hover {
  transform: translateY(-8px) rotate(-1deg);
  box-shadow: 8px 8px 0px #252830;
}

.doodle-feature-card:nth-child(2):hover {
  transform: translateY(-8px) rotate(1deg);
}

.doodle-feature-card:nth-child(3):hover {
  transform: translateY(-8px) rotate(-1.5deg);
}

/* Washi Tape Accent on Top */
.washi-tape {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 22px;
  border: 2px solid #252830;
  border-radius: 4px;
  box-shadow: 1.5px 1.5px 0px rgba(0,0,0,0.15);
  z-index: 3;
}

.tape-yellow { background: #fef08a; transform: translateX(-50%) rotate(-1.5deg); }
.tape-mint   { background: #a7f3d0; transform: translateX(-50%) rotate(2deg); }
.tape-sky    { background: #bae6fd; transform: translateX(-50%) rotate(-1deg); }
.tape-coral  { background: #fecdd3; transform: translateX(-50%) rotate(1.5deg); }
.tape-purple { background: #e9d5ff; transform: translateX(-50%) rotate(-2deg); }
.tape-orange { background: #fed7aa; transform: translateX(-50%) rotate(1.2deg); }
.tape-teal   { background: #99f6e4; transform: translateX(-50%) rotate(-1.5deg); }
.tape-rose   { background: #fbcfe8; transform: translateX(-50%) rotate(2deg); }

/* Illustration Wrapper */
.doodle-card-art {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.doodle-card-illustration {
  width: 120px;
  height: 100px;
  display: block;
  overflow: visible;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.doodle-feature-card:hover .doodle-card-illustration {
  transform: scale(1.1) translateY(-3px);
}

/* Badge Sticker */
.doodle-card-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 4px 12px;
  border: 1.8px solid #252830;
  border-radius: 999px;
  font-family: 'Fredoka', cursive, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.badge-yellow { background: #fef9c3; color: #854d0e; }
.badge-mint   { background: #dcfce7; color: #166534; }
.badge-sky    { background: #e0f2fe; color: #075985; }
.badge-coral  { background: #ffe4e6; color: #9f1239; }
.badge-purple { background: #f3e8ff; color: #6b21a8; }
.badge-orange { background: #ffedd5; color: #9a3412; }
.badge-teal   { background: #ccfbf1; color: #115e59; }
.badge-rose   { background: #fce7f3; color: #831843; }

.doodle-card-title {
  font-family: 'Fredoka', cursive, sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #1e222b;
  margin-bottom: 12px;
  line-height: 1.3;
}

.doodle-card-desc {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Footer Tag */
.doodle-card-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 14px;
  border-top: 2px dashed #e2e8f0;
  font-family: 'Fredoka', cursive, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: #334155;
}

.footer-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #252830;
  color: #ffffff;
  font-size: 0.7rem;
}

/* Counter Bar - Sketched Memo Sticky Note */
.counter-box {
  background: #ffffff;
  padding: 38px 24px;
  border-radius: 20px 16px 22px 18px;
  border: 2.5px solid #252830;
  box-shadow: 4.5px 4.5px 0px #252830;
  text-align: center;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.counter-box::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%) rotate(0.8deg);
  width: 60px;
  height: 18px;
  background: rgba(254, 240, 138, 0.9);
  border: 1.5px dashed #b45309;
  border-radius: 3px;
  pointer-events: none;
}

.counter-box:nth-child(2)::before {
  background: rgba(167, 243, 208, 0.9);
  border-color: #047857;
  transform: translateX(-50%) rotate(-1.2deg);
}

.counter-box:nth-child(3)::before {
  background: rgba(186, 230, 253, 0.9);
  border-color: #0369a1;
  transform: translateX(-50%) rotate(1.5deg);
}

.counter-box:hover {
  transform: translateY(-5px) rotate(-0.5deg);
  box-shadow: 7px 7px 0px #252830;
}

.counter-number {
  font-family: 'Fredoka', cursive, sans-serif;
  font-size: 3.4rem;
  font-weight: 700;
  color: #ff5a1f;
  line-height: 1.1;
  margin-bottom: 8px;
  display: inline-block;
  letter-spacing: -0.5px;
}

.counter-title {
  font-family: 'Fredoka', cursive, sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #252830;
  margin-bottom: 4px;
}

.counter-sub {
  color: #4b5563;
  font-size: 0.95rem;
  font-weight: 700;
}

/* Modules Curriculum - Illustrated Sketchbook Syllabus */
.module-card {
  background: #ffffff;
  border-radius: 22px;
  padding: 38px 30px;
  border: 2.8px solid #252830;
  box-shadow: 5px 5px 0px #252830;
  display: flex;
  flex-direction: column;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.module-card:hover {
  transform: translateY(-6px) rotate(-0.5deg);
  box-shadow: 8px 8px 0px #252830;
}

.module-header {
  border-bottom: 2.5px dashed #252830;
  padding-bottom: 20px;
  margin-bottom: 24px;
}

.module-header h3 {
  font-family: 'Fredoka', cursive, sans-serif;
  font-weight: 700;
  color: #252830;
  font-size: 1.5rem;
}

.module-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 8px;
  font-family: 'Fredoka', cursive, sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  border: 2px solid #252830;
  box-shadow: 2px 2px 0px #252830;
  transform: rotate(-1.5deg);
}

.badge-foundation {
  background-color: #bae6fd;
  color: #0369a1;
}

.badge-construction {
  background-color: #fef08a;
  color: #b45309;
}

.badge-advanced {
  background-color: #fecdd3;
  color: #be123c;
}

.module-list {
  list-style: none;
  margin-bottom: 24px;
}

.module-list li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 12px;
  font-size: 0.98rem;
  color: #334155;
  font-weight: 600;
}

.module-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 1px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #a7f3d0;
  border: 1.8px solid #252830;
  color: #065f46;
  font-size: 0.75rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   8 Progressive Levels Curriculum - Doodle Grid
   ============================================================ */
.levels-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  align-items: stretch;
}

@media (max-width: 1080px) {
  .levels-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }
}

@media (max-width: 640px) {
  .levels-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.level-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 30px 22px 24px;
  border: 2.6px solid #252830;
  box-shadow: 5px 5px 0px #252830;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  scroll-margin-top: 100px;
}

.level-card:hover {
  transform: translateY(-6px) rotate(-0.5deg);
  box-shadow: 8px 8px 0px #252830;
}

.level-header {
  border-bottom: 2px dashed #cbd5e1;
  padding-bottom: 16px;
  margin-bottom: 16px;
}

.level-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-family: 'Fredoka', cursive, sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
  border: 1.8px solid #252830;
  box-shadow: 2px 2px 0px #252830;
  transform: rotate(-1.5deg);
}

.level-title {
  font-family: 'Fredoka', cursive, sans-serif;
  font-weight: 700;
  color: #1e222b;
  font-size: 1.35rem;
  line-height: 1.25;
  margin: 0 0 4px 0;
}

.level-tagline {
  font-family: 'Fredoka', cursive, sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.level-desc {
  color: #475569;
  font-size: 0.88rem;
  line-height: 1.45;
  margin: 0;
}

.level-topics {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  flex-grow: 1;
}

.level-topics li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-bottom: 9px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #334155;
  line-height: 1.35;
}

.level-topics li:last-child {
  margin-bottom: 0;
}

.level-bullet-svg {
  flex-shrink: 0;
  margin-top: 1px;
}

.level-cta-btn {
  margin-top: auto;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 10px 14px;
  display: block;
  width: 100%;
}

/* Comic Jars Grid */
.jars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.jar-item {
  background: #ffffff;
  border-radius: 18px;
  padding: 26px 20px;
  text-align: center;
  border: 2.5px solid #252830;
  box-shadow: 4px 4px 0px #252830;
  transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.jar-item:hover {
  transform: translateY(-4px) rotate(-1deg);
  box-shadow: 6px 6px 0px #252830;
}

.jar-icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.jar-title {
  font-family: 'Fredoka', cursive, sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: #252830;
}

/* Leadership Team Grid - Polaroid Hand-drawn Style */
.team-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 14px 14px 20px 14px;
  box-shadow: 5px 5px 0px #252830;
  border: 2.8px solid #252830;
  text-align: center;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.team-card:hover {
  transform: translateY(-5px) rotate(1deg);
  box-shadow: 7px 7px 0px #252830;
}

.team-img-wrap {
  width: 100%;
  aspect-ratio: 1/1;
  overflow: hidden;
  border-radius: 12px;
  border: 2px solid #252830;
}

.team-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.team-card:hover .team-img {
  transform: scale(1.05);
}

.team-info {
  padding: 18px 12px 6px 12px;
}

.team-name {
  font-family: 'Fredoka', cursive, sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #252830;
  margin-bottom: 4px;
}

.team-role {
  color: #ff5a1f;
  font-family: 'Fredoka', cursive, sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
}

/* Video Responsive Wrapper - Retro Sketched TV Monitor */
.video-responsive {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 22px;
  border: 3.5px solid #252830;
  box-shadow: 6px 6px 0px #252830;
  background: #1a1c22;
}

.video-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Forms - Sketched Clipboard Memo */
.form-card {
  background: #ffffff;
  padding: 44px 40px;
  border-radius: 22px;
  box-shadow: 6px 6px 0px #252830;
  border: 3px solid #252830;
  position: relative;
}

.form-card::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 22px;
  background: #252830;
  border-radius: 6px 6px 0 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-family: 'Fredoka', cursive, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 8px;
  color: #252830;
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 13px 18px;
  border: 2.2px solid #252830;
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  color: #252830;
  background-color: #ffffff;
  box-shadow: 2.5px 2.5px 0px #252830;
  transition: all 0.18s ease;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  box-shadow: 4px 4px 0px #ff5a1f;
  background-color: #fffdf5;
}

.form-textarea {
  min-height: 130px;
  resize: vertical;
}

/* Directory / Country Search */
.directory-controls {
  max-width: 600px;
  margin: 0 auto 40px auto;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 15px 24px 15px 52px;
  font-family: 'Fredoka', cursive, sans-serif;
  font-size: 1.1rem;
  border-radius: 999px;
  border: 2.8px solid #252830;
  box-shadow: 4px 4px 0px #252830;
  background: #ffffff;
  transition: all 0.2s ease;
}

.search-input:focus {
  outline: none;
  box-shadow: 5px 5px 0px #ff5a1f;
}

.search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  color: #252830;
}

.country-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.country-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 26px;
  box-shadow: 4px 4px 0px #252830;
  border: 2.5px solid #252830;
  transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
}

.country-card:hover {
  transform: translateY(-4px) rotate(-0.5deg);
  box-shadow: 6px 6px 0px #252830;
}

.country-name {
  font-family: 'Fredoka', cursive, sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #252830;
  margin-bottom: 12px;
  border-bottom: 2px dashed #ded7ca;
  padding-bottom: 8px;
}

.country-meta {
  font-size: 0.95rem;
  color: #4b5563;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.country-meta-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.country-meta-item span.icon {
  color: #ff5a1f;
  flex-shrink: 0;
  font-weight: 700;
}

/* Research Paper Card */
.paper-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 34px 28px;
  border: 2.5px solid #252830;
  box-shadow: 4.5px 4.5px 0px #252830;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.paper-card:hover {
  transform: translateY(-5px) rotate(-0.5deg);
  box-shadow: 7px 7px 0px #252830;
}

.paper-badge {
  align-self: flex-start;
  background-color: #fef08a;
  color: #1a1c22;
  border: 1.8px solid #252830;
  box-shadow: 2px 2px 0px #252830;
  padding: 4px 12px;
  border-radius: 8px;
  font-family: 'Fredoka', cursive, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 16px;
  transform: rotate(-1.5deg);
}

.paper-title {
  font-family: 'Fredoka', cursive, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #252830;
  margin-bottom: 14px;
}

.paper-authors {
  color: #4b5563;
  font-size: 0.95rem;
  margin-bottom: 24px;
  font-style: italic;
}

.paper-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Fredoka', cursive, sans-serif;
  font-weight: 700;
  color: #ff5a1f;
  font-size: 1rem;
}

.paper-link:hover {
  color: #d5440d;
  text-decoration: underline;
}

/* Site Footer - Chalkboard Sketchbook Edition */
.site-footer {
  background-color: #1b1e27;
  background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1.2px, transparent 1.2px);
  background-size: 22px 22px;
  color: #e2e8f0;
  padding: 85px 0 35px 0;
  border-top: 3.5px dashed #4b5563;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-col h4 {
  font-family: 'Fredoka', cursive, sans-serif;
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 24px;
  position: relative;
  letter-spacing: 0.5px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 42px;
  height: 3.5px;
  background-color: #fef08a;
  border-radius: 3px;
}

.footer-logo-wrap {
  display: inline-block;
  margin-bottom: 20px;
}

.footer-logo {
  height: 52px;
  width: auto;
  background: #ffffff;
  padding: 6px 14px;
  border-radius: 14px;
  border: 2px solid #252830;
  box-shadow: 3px 3px 0 #fef08a;
  display: block;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
}

.footer-logo-wrap:hover .footer-logo {
  transform: rotate(-2deg) scale(1.04);
  box-shadow: 4px 4px 0 #ff5a1f;
}

.footer-about {
  color: #cbd5e1;
  font-size: 0.98rem;
  margin-bottom: 24px;
  line-height: 1.65;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ffffff;
  color: #252830;
  border: 2.2px solid #252830;
  box-shadow: 3px 3px 0px #fef08a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fredoka', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.social-btn:hover {
  background: #ff5a1f;
  color: #ffffff;
  box-shadow: 4px 4px 0px #ffffff;
  transform: translate(-2px, -2px) rotate(-4deg);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  font-family: 'Fredoka', cursive, sans-serif;
  color: #cbd5e1;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  display: inline-block;
}

.footer-link:hover {
  color: #fef08a;
  transform: translateX(4px);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.95rem;
  color: #cbd5e1;
}

.footer-bottom {
  border-top: 2px dashed #374151;
  padding-top: 30px;
  text-align: center;
  font-size: 0.92rem;
  color: #94a3b8;
  font-family: 'Fredoka', cursive, sans-serif;
}

/* Toast alert */
.toast-msg {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: var(--primary);
  color: var(--white);
  padding: 16px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 2000;
  display: none;
  font-weight: 700;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .jars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .country-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1120px) {
  .main-nav {
    display: none !important;
  }
  .mobile-toggle {
    display: block !important;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }
  .grid-3, .grid-4, .grid-2, .jars-grid, .country-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
  .form-card {
    padding: 28px 20px;
  }
}

/* -------------------------------------------------------------
   HAND-DRAWN INTERACTIVE SOROBAN: CLEAN COMPACT DESK ARCHITECTURE
   Authentic Contact Stacking Physics & Zero-Clutter Mobile Design
   ------------------------------------------------------------- */
.abacus-section {
  padding: 50px 0;
  background-color: #faf7f0;
  background-image: radial-gradient(#ded7ca 1.5px, transparent 1.5px);
  background-size: 24px 24px;
  border-top: 2px dashed #ded7ca;
  border-bottom: 2px dashed #ded7ca;
  position: relative;
  overflow: hidden;
  color: #2b2d35;
}

/* Compact Container */
.clean-soroban-wrapper {
  width: 100%;
  max-width: 580px;
  margin: 0 auto;
  padding: 6px;
  user-select: none;
}

/* Minimalist Top Bar (Clear Button on Left, Total Sum on Right) */
.soroban-header-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 12px;
  margin-bottom: 12px;
}

.soroban-sum-box {
  background: #ffffff;
  border: 2.2px solid #272a33;
  border-radius: 12px;
  padding: 4px 18px;
  box-shadow: 2px 2px 0px #272a33;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.sum-tag {
  font-family: 'Fredoka', cursive, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #717d91;
}

.sum-value {
  font-family: 'Fredoka', cursive, sans-serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: #1e222b;
  line-height: 1;
}

.soroban-btn-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.clean-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #ffffff;
  border: 2px solid #272a33;
  border-radius: 8px;
  padding: 6px 12px;
  font-family: 'Fredoka', cursive, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: #272a33;
  cursor: pointer;
  box-shadow: 2px 2px 0px #272a33;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.15s ease;
  user-select: none;
}

.clean-btn:hover {
  transform: translateY(-1.5px);
  box-shadow: 3px 3px 0px #272a33;
  background: #fdfaf3;
}

.clean-btn:active {
  transform: translate(1.5px, 1.5px);
  box-shadow: 0.5px 0.5px 0px #272a33;
}

.btn-erase { background: #fff1f2; }
.btn-ref   { background: #e6f7f0; }
.btn-audio { background: #fef9c3; }

.btn-muted {
  opacity: 0.6;
}

/* -------------------------------------------------------------
   THE SKETCHED ABACUS FRAME
   ------------------------------------------------------------- */
.sketched-abacus-frame {
  position: relative;
  height: 175px;
  background: #ffffff;
  border: 3.5px solid #252830;
  border-radius: 16px;
  box-shadow: 
    4px 4px 0px #252830,
    0 10px 24px rgba(0,0,0,0.06);
  margin-bottom: 14px;
  overflow: hidden;
  z-index: 4;
}

/* 4 Corner Reinforcement Brackets with Brass Rivets */
.corner-bracket {
  position: absolute;
  width: 22px;
  height: 22px;
  background: #f6d582;
  border: 2px solid #252830;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bracket-pin {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #252830;
}

.corner-tl { top: -2px; left: -2px; border-radius: 14px 0 14px 0; }
.corner-tr { top: -2px; right: -2px; border-radius: 0 14px 0 14px; }
.corner-bl { bottom: -2px; left: -2px; border-radius: 0 14px 0 14px; }
.corner-br { bottom: -2px; right: -2px; border-radius: 14px 0 14px 0; }

/* Solid Charcoal Reckoning Beam with White Unit Marker Dots */
.sketched-reckoning-beam {
  position: absolute;
  top: 44px;
  left: 0;
  right: 0;
  height: 14px;
  background: #252830;
  border-top: 2px solid #1a1c22;
  border-bottom: 2px solid #1a1c22;
  z-index: 6;
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
}

/* White Circular Unit Dots on Reckoning Beam (Rods 3, 5, 7) */
.beam-unit-dot {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #1a1c22;
  box-shadow: 0 0 3px rgba(255,255,255,0.9);
  pointer-events: none;
  z-index: 10;
}

.unit-dot-2 { left: calc(8px + (100% - 16px) * (2.5 / 7)); }
.unit-dot-4 { left: calc(8px + (100% - 16px) * (4.5 / 7)); }
.unit-dot-6 { left: calc(8px + (100% - 16px) * (6.5 / 7)); }

/* 7 Sketched Rods Container */
.sketched-rods-container {
  display: flex;
  justify-content: space-around;
  height: 100%;
  padding: 0 8px;
  position: relative;
  z-index: 5;
}

.sketched-rod {
  position: relative;
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Vertical Hand-drawn Ink Rod Wire (Pierces Dead Center) */
.sketched-rod-wire {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2.5px;
  background: #272a33;
  z-index: 1;
}

/* Upper Deck (Heaven: 44px) */
.doodle-deck.upper-deck {
  position: relative;
  height: 44px;
  width: 100%;
  z-index: 2;
}

/* Reckoning Beam Segment per rod (ensures unit dots are 100% aligned with rod wire) */
.rod-beam-slot {
  position: relative;
  height: 14px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 7;
}

/* White Circular Unit Dots on Rods 3, 5, 7 */
.beam-unit-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #1a1c22;
  box-shadow: 0 0 3px rgba(255,255,255,0.9);
  pointer-events: none;
}

/* Lower Deck (Earth: 110px) */
.doodle-deck.lower-deck {
  position: relative;
  height: 110px;
  width: 100%;
  margin-top: 0;
  z-index: 2;
}

/* -------------------------------------------------------------
   DIAMOND BEADS: EXACT TOUCH-STACKING GEOMETRY
   ------------------------------------------------------------- */
.diamond-bead {
  position: absolute;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: 52px;
  height: 22px;
  cursor: pointer;
  z-index: 4;
  touch-action: manipulation;
  transform-origin: center center;
  transition: filter 0.15s ease;
}

.diamond-svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

/* Inactive State: Hollow White Diamond with Clean Sketched Border */
.diamond-poly {
  fill: #ffffff;
  stroke: #252830;
  stroke-width: 2.2;
  stroke-linejoin: round;
  transition: fill 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), stroke-width 0.15s ease;
}

/* Active State: The Paintbrush Watercolor Wash! */
/* Upper Bead (Heaven, 5): Honey Yellow */
.diamond-bead.upper-bead.active-bead .diamond-upper-poly {
  fill: #f6d582 !important;
  stroke: #252830 !important;
  stroke-width: 2.4 !important;
  filter: drop-shadow(0 2px 4px rgba(246, 213, 130, 0.8));
}

/* Lower Beads (Earth, 1): Sage / Mint Green */
.diamond-bead.lower-bead.active-bead .diamond-lower-poly {
  fill: #8fc2af !important;
  stroke: #252830 !important;
  stroke-width: 2.4 !important;
  filter: drop-shadow(0 2px 4px rgba(143, 194, 175, 0.8));
}

.diamond-bead:hover {
  filter: drop-shadow(0 2px 5px rgba(0,0,0,0.2));
}

.diamond-bead:active {
  filter: brightness(0.95);
}

/* -------------------------------------------------------------
   COLUMN PLACE VALUE INDICATORS
   ------------------------------------------------------------- */
.soroban-column-indicators {
  display: flex;
  justify-content: space-around;
  padding: 0 8px;
  position: relative;
  z-index: 4;
}

.column-indicator-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.indicator-bubble {
  width: 32px;
  height: 32px;
  background: #ffffff;
  border: 2px solid #272a33;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 2px 2px 0px #272a33;
  margin-bottom: 3px;
  transition: all 0.2s ease;
}

.indicator-digit {
  font-family: 'Fredoka', cursive, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #272a33;
  line-height: 1;
}

.indicator-label {
  font-family: 'Fredoka', cursive, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  color: #717d91;
  text-transform: uppercase;
}

.column-indicator-item.col-active .indicator-bubble {
  background: #8fc2af;
  border-color: #252830;
  color: #1a1c22;
  transform: scale(1.08);
}

/* -------------------------------------------------------------
   MOBILE ADAPTIVE SCALING (320px - 600px) - ZERO GLITCHING
   ------------------------------------------------------------- */
@media (max-width: 600px) {
  .container {
    padding: 0 16px;
  }
  .abacus-section {
    padding: 35px 0;
  }
  .doodle-pillars-section {
    padding: 45px 0 55px 0;
  }
  .doodle-section-header {
    margin-bottom: 32px;
  }
  .doodle-section-title {
    font-size: 1.65rem;
  }
  .doodle-feature-card {
    padding: 30px 20px 22px 20px;
    margin-bottom: 12px;
  }
  .clean-soroban-wrapper {
    padding: 8px 6px;
  }
  .soroban-header-strip {
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
  }
  .soroban-sum-box {
    padding: 3px 12px;
  }
  .sum-value {
    font-size: 1.35rem;
  }
  .sketched-abacus-frame {
    height: 152px;
    border-width: 3px;
  }
  .sketched-reckoning-beam {
    top: 38px;
    height: 12px;
  }
  .rod-beam-slot {
    height: 12px;
  }
  .doodle-deck.upper-deck {
    height: 38px;
  }
  .doodle-deck.lower-deck {
    height: 96px;
    margin-top: 0;
  }
  .diamond-bead {
    width: 38px;
    height: 18px;
  }
  .indicator-bubble {
    width: 26px;
    height: 26px;
  }
  .indicator-digit {
    font-size: 0.95rem;
  }
  .indicator-label {
    font-size: 0.65rem;
  }
}



/* -------------------------------------------------------------
   Doodle Icons & Micro-Interactions System
   ------------------------------------------------------------- */
.doodle-icon-svg,
.doodle-jar-svg,
.doodle-style-svg {
  display: inline-block;
  vertical-align: middle;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: drop-shadow(1.5px 1.5px 0 rgba(37, 40, 48, 0.15));
}

.feature-card:hover .doodle-icon-svg,
.feature-card:hover .doodle-jar-svg,
.jar-item:hover .doodle-jar-svg {
  transform: scale(1.15) rotate(4deg);
}

.meta-doodle-icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.country-meta-item:hover .meta-doodle-icon {
  transform: scale(1.18) rotate(-6deg);
}

.footer-doodle-icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  margin-right: 8px;
}

/* ============================================================
   DETAILED LEVEL PAGES STYLING (THE ABACUS HUB SYLLABUS)
   ============================================================ */
.level-detail-hero {
  padding: 48px 0 36px;
  background-color: #fdfbf7;
  background-image: radial-gradient(#d1d5db 1.2px, transparent 1.2px);
  background-size: 20px 20px;
  border-bottom: 2.8px solid #252830;
  position: relative;
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Fredoka', cursive, sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.breadcrumb-nav a {
  color: #252830;
  text-decoration: underline;
  text-decoration-style: dashed;
}

.breadcrumb-nav a:hover {
  color: #e11d48;
}

.level-hero-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 38px 34px;
  border: 2.8px solid #252830;
  box-shadow: 6px 6px 0px #252830;
  position: relative;
}

.level-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 18px;
}

.level-theme-banner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 2px solid #252830;
  box-shadow: 2.5px 2.5px 0px #252830;
  font-family: 'Fredoka', cursive, sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
}

.level-hero-title {
  font-family: 'Fredoka', cursive, sans-serif;
  font-size: clamp(2rem, 1.6rem + 1.8vw, 3rem);
  font-weight: 700;
  color: #1e222b;
  line-height: 1.15;
  margin-bottom: 8px;
}

.level-hero-tagline {
  font-family: 'Fredoka', cursive, sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.level-hero-desc {
  font-size: 1.1rem;
  color: #475569;
  line-height: 1.65;
  max-width: 820px;
  margin-bottom: 26px;
}

.level-hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Syllabus Grid 10 Items */
.syllabus-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 24px;
}

@media (max-width: 768px) {
  .syllabus-grid {
    grid-template-columns: 1fr;
  }
}

.syllabus-item {
  background: #ffffff;
  border-radius: 14px;
  padding: 16px 18px;
  border: 2.2px solid #252830;
  box-shadow: 3.5px 3.5px 0px #252830;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.syllabus-item:hover {
  transform: translateY(-2px);
  box-shadow: 4.5px 4.5px 0px #252830;
}

.syllabus-num-badge {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 2px solid #252830;
  box-shadow: 1.5px 1.5px 0px #252830;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fredoka', cursive, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.syllabus-text {
  font-family: 'Fredoka', cursive, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: #1e222b;
  line-height: 1.35;
}

/* Dual Card Grid for Skills & Practice */
.dual-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 32px;
}

@media (max-width: 860px) {
  .dual-card-grid {
    grid-template-columns: 1fr;
  }
}

.detail-subcard {
  background: #ffffff;
  border-radius: 20px;
  padding: 30px 26px;
  border: 2.6px solid #252830;
  box-shadow: 5px 5px 0px #252830;
  position: relative;
  display: flex;
  flex-direction: column;
}

.detail-subcard-header {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 2px dashed #cbd5e1;
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.detail-subcard-title {
  font-family: 'Fredoka', cursive, sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #1e222b;
  margin: 0;
}

.detail-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #334155;
  line-height: 1.4;
}

/* Level Completion Goal Card */
.level-goal-card {
  background: #fffbeb;
  border-radius: 22px;
  padding: 32px 30px;
  border: 2.8px solid #252830;
  box-shadow: 5.5px 5.5px 0px #252830;
  margin-top: 36px;
  display: flex;
  align-items: flex-start;
  gap: 22px;
}

@media (max-width: 640px) {
  .level-goal-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

.goal-icon-wrap {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  background: #fef08a;
  border: 2.4px solid #252830;
  box-shadow: 2.5px 2.5px 0px #252830;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.goal-title {
  font-family: 'Fredoka', cursive, sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #1e222b;
  margin-bottom: 8px;
}

.goal-desc {
  font-size: 1.05rem;
  color: #475569;
  line-height: 1.6;
  margin: 0;
}

/* Learning Steps (Learn -> Practise -> Improve -> Master) */
.learning-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 28px;
}

@media (max-width: 992px) {
  .learning-steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 580px) {
  .learning-steps-grid {
    grid-template-columns: 1fr;
  }
}

.step-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 24px 20px;
  border: 2.4px solid #252830;
  box-shadow: 4px 4px 0px #252830;
  position: relative;
  transition: transform 0.2s ease;
}

.step-card:hover {
  transform: translateY(-4px);
}

.step-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 6px;
  border: 1.8px solid #252830;
  font-family: 'Fredoka', cursive, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.step-title {
  font-family: 'Fredoka', cursive, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e222b;
  margin-bottom: 6px;
}

.step-desc {
  font-size: 0.92rem;
  color: #475569;
  line-height: 1.5;
  margin: 0;
}

/* Student Progress Dashboard Mockup */
.progress-dashboard-card {
  background: #ffffff;
  border-radius: 22px;
  padding: 34px 30px;
  border: 2.8px solid #252830;
  box-shadow: 6px 6px 0px #252830;
  margin-top: 30px;
}

.progress-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  border-bottom: 2px dashed #cbd5e1;
  padding-bottom: 18px;
  margin-bottom: 24px;
}

.progress-bar-wrap {
  background: #f1f5f9;
  border-radius: 999px;
  height: 18px;
  border: 2px solid #252830;
  overflow: hidden;
  position: relative;
  margin: 12px 0 24px;
}

.progress-bar-fill {
  background: #10b981;
  height: 100%;
  border-right: 2px solid #252830;
  border-radius: 999px 0 0 999px;
}

.progress-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

@media (max-width: 860px) {
  .progress-features-grid {
    grid-template-columns: 1fr;
  }
}

.progress-feature-box {
  background: #f8fafc;
  border-radius: 14px;
  padding: 18px;
  border: 2px solid #252830;
  box-shadow: 3px 3px 0px #252830;
}

.progress-feature-title {
  font-family: 'Fredoka', cursive, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #1e222b;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.progress-feature-desc {
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.45;
  margin: 0;
}

/* Level Navigation Bar (Prev / Next) */
.level-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 30px 0 10px;
  border-top: 2.4px dashed #252830;
  margin-top: 48px;
}

/* ==========================================================================
   THE ABACUS HUB — SCHOLARSHIP EXAM
   ========================================================================== */

/* Exam Hero & Highlight Perks */
.exam-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffde59;
  color: #252830;
  padding: 8px 18px;
  border-radius: 999px;
  font-family: 'Fredoka', cursive, sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid #252830;
  box-shadow: 3px 3px 0 #252830;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.exam-perks-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 16px;
  margin-top: 32px;
  width: 100%;
}

.exam-perk-card {
  background: #ffffff;
  border: 2.5px solid #252830;
  border-radius: 16px;
  padding: 20px 14px;
  box-shadow: 4px 4px 0 #252830;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  min-width: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@media (max-width: 992px) {
  .exam-perks-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px;
  }
}

@media (max-width: 520px) {
  .exam-perks-grid {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }
}

.exam-perk-card:hover {
  transform: translateY(-3px);
  box-shadow: 6px 6px 0 #252830;
}

.exam-perk-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 2px solid #252830;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.exam-perk-title {
  font-family: 'Fredoka', cursive, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #252830;
}

.exam-perk-desc {
  font-size: 0.9rem;
  color: #4b5563;
  line-height: 1.45;
  margin: 0;
}

/* Exam Form Layout */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

.form-step-title {
  font-family: 'Fredoka', cursive, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #252830;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  margin-bottom: 18px;
  border-bottom: 2px dashed #cbd5e1;
}

.form-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ff5a1f;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 800;
  border: 2px solid #252830;
}

.fee-summary-box {
  background: #fffdf5;
  border: 2.4px solid #252830;
  border-radius: 16px;
  padding: 20px 24px;
  box-shadow: 4px 4px 0 #252830;
  margin: 24px 0 28px;
}

.fee-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 0.95rem;
  color: #4b5563;
}

.fee-row.total {
  border-top: 2px dashed #252830;
  margin-top: 10px;
  padding-top: 12px;
  font-size: 1.25rem;
  font-weight: 800;
  color: #252830;
  font-family: 'Fredoka', cursive, sans-serif;
}

.fee-row.total .price {
  color: #059669;
  font-size: 1.45rem;
}

/* Admit Card Screen & Print Styles */
.admit-card-wrap {
  display: none;
  max-width: 680px;
  margin: 32px auto;
  animation: fadeInSlip 0.4s ease forwards;
}

.admit-card-wrap.active {
  display: block;
}

@keyframes fadeInSlip {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.admit-card {
  background: #ffffff;
  border: 3.5px solid #252830;
  border-radius: 20px;
  box-shadow: 8px 8px 0 #252830;
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
}

.admit-card-badge {
  position: absolute;
  top: 24px;
  right: 28px;
  background: #ecfdf5;
  color: #065f46;
  border: 2px solid #10b981;
  padding: 6px 14px;
  border-radius: 999px;
  font-family: 'Fredoka', cursive, sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 2px 2px 0 #10b981;
}

.admit-header {
  border-bottom: 2.5px dashed #252830;
  padding-bottom: 20px;
  margin-bottom: 24px;
}

.admit-logo {
  height: 48px;
  margin-bottom: 8px;
}

.admit-title {
  font-family: 'Fredoka', cursive, sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: #252830;
  margin: 0 0 4px 0;
}

.admit-subtitle {
  font-size: 0.95rem;
  color: #4b5563;
  margin: 0;
}

.admit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
  margin-bottom: 24px;
}

@media (max-width: 600px) {
  .admit-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.admit-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.admit-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  color: #64748b;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.admit-value {
  font-family: 'Fredoka', cursive, sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #252830;
}

.admit-venue-box {
  background: #fffdf5;
  border: 2px solid #252830;
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 24px;
}

.admit-venue-title {
  font-family: 'Fredoka', cursive, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #252830;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.admit-venue-text {
  font-size: 0.92rem;
  color: #374151;
  line-height: 1.45;
  margin: 0;
}

.admit-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
}

/* ========================================================
   OFFICIAL REGISTRATION RECEIPT & PRINT STYLING
   Executive-Grade Academic Design for Single-Sheet A4 Print
   ======================================================== */
.receipt-container {
  max-width: 820px;
  margin: 28px auto 40px;
  padding: 0 14px;
  animation: fadeInSlip 0.25s ease-out;
}

.official-receipt-sheet {
  background: #ffffff;
  border: 2.5px solid #1e293b;
  border-radius: 14px;
  box-shadow: 6px 6px 0 #1e293b;
  padding: 26px 30px;
  color: #1e293b;
  font-family: 'Nunito', sans-serif;
  position: relative;
}

.receipt-top-ribbon {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #0f172a;
  color: #f8fafc;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.receipt-top-ribbon .ribbon-badge {
  background: #10b981;
  color: #ffffff;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.68rem;
  text-transform: uppercase;
}

.receipt-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 14px;
  margin-bottom: 14px;
}

.receipt-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.receipt-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
  flex-shrink: 0;
}

.receipt-brand {
  font-family: 'Fredoka', cursive, sans-serif;
  font-size: 1.55rem;
  font-weight: 900;
  color: #0f172a;
  margin: 0;
  line-height: 1.1;
  letter-spacing: 0.5px;
}

.receipt-center-tag {
  font-size: 0.8rem;
  font-weight: 700;
  color: #d97706;
  margin: 2px 0 3px;
}

.receipt-address {
  font-size: 0.77rem;
  color: #475569;
  line-height: 1.4;
  margin: 0;
}

.receipt-header-right {
  text-align: right;
  min-width: 130px;
  flex-shrink: 0;
}

.receipt-code-box {
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 6px;
  padding: 4px 8px;
  text-align: center;
}

.rcpt-code-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #64748b;
}

.rcpt-code-val {
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  color: #0f172a;
}

.receipt-title-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: #eff6ff;
  border: 1.5px solid #bfdbfe;
  border-radius: 8px;
  padding: 8px 14px;
  margin-bottom: 12px;
}

.receipt-title-main h3 {
  font-family: 'Fredoka', cursive, sans-serif;
  font-size: 1.02rem;
  font-weight: 800;
  color: #1e3a8a;
  margin: 0;
  line-height: 1.2;
}

.receipt-title-hi {
  font-size: 0.78rem;
  font-weight: 700;
  color: #2563eb;
  margin: 2px 0 0;
}

.receipt-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #dcfce7;
  color: #15803d;
  border: 1.5px solid #86efac;
  border-radius: 20px;
  padding: 5px 12px;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.receipt-meta-bar {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 8px 12px;
  margin-bottom: 14px;
}

.meta-item {
  display: flex;
  flex-direction: column;
}

.meta-lbl {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #64748b;
}

.meta-val {
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
}

.meta-val.highlight-val {
  font-family: monospace;
  font-size: 1.15rem;
  font-weight: 800;
  color: #0284c7;
}

.meta-val.status-val {
  color: #059669;
}

.receipt-particulars-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.particulars-card {
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
}

.particulars-card-head {
  background: #f1f5f9;
  border-bottom: 1.5px solid #cbd5e1;
  padding: 6px 10px;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 6px;
}

.receipt-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.receipt-data-table tr {
  border-bottom: 1px solid #f1f5f9;
}

.receipt-data-table tr:last-child {
  border-bottom: none;
}

.receipt-data-table td {
  padding: 6px 10px;
  vertical-align: top;
}

.receipt-data-table td.lbl {
  width: 42%;
  color: #64748b;
  font-weight: 700;
  font-size: 0.76rem;
}

.receipt-data-table td.val {
  width: 58%;
  color: #0f172a;
  font-weight: 600;
}

.receipt-data-table td.val.primary-val {
  font-weight: 800;
  color: #0f172a;
  font-size: 0.88rem;
}

.receipt-fee-card {
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 12px;
}

.receipt-fee-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.receipt-fee-table th {
  background: #f8fafc;
  color: #475569;
  font-weight: 800;
  font-size: 0.7rem;
  text-transform: uppercase;
  padding: 6px 10px;
  border-bottom: 1px solid #cbd5e1;
}

.receipt-fee-table td {
  padding: 7px 10px;
  font-size: 0.82rem;
}

.receipt-instructions-box {
  background: #fffbeb;
  border: 1.5px solid #fde68a;
  border-radius: 8px;
  padding: 9px 12px;
  margin-bottom: 12px;
  font-size: 0.78rem;
  line-height: 1.4;
  color: #78350f;
}

.instr-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  font-size: 0.82rem;
  color: #92400e;
  margin-bottom: 3px;
}

.instr-body p {
  margin: 0 0 3px;
}

.instr-list {
  margin: 0;
  padding-left: 16px;
}

.instr-list li {
  margin-bottom: 2px;
}

.receipt-footer-signatures {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.3fr;
  align-items: center;
  gap: 14px;
  border-top: 1.5px dashed #cbd5e1;
  padding-top: 12px;
  margin-top: 6px;
}

.sig-block.sig-left .dpdp-verif-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.7rem;
  font-weight: 800;
  color: #047857;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 4px;
  padding: 2px 6px;
  margin-bottom: 3px;
}

.sig-note {
  font-size: 0.66rem;
  color: #64748b;
  line-height: 1.3;
  margin: 0;
}

.sig-center {
  text-align: center;
}

.official-seal-box {
  display: inline-block;
}

.seal-circle {
  width: 82px;
  height: 82px;
  border: 2px dashed #0284c7;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4px;
  font-size: 0.56rem;
  font-weight: 800;
  color: #0369a1;
  text-align: center;
  line-height: 1.15;
  margin: 0 auto;
}

.seal-circle small {
  color: #d97706;
  font-size: 0.52rem;
  margin: 2px 0;
}

.sig-right {
  text-align: center;
}

.sig-line {
  border-bottom: 1.5px solid #0f172a;
  width: 80%;
  margin: 20px auto 4px;
}

.sig-title {
  display: block;
  font-size: 0.76rem;
  font-weight: 800;
  color: #0f172a;
}

.sig-sub {
  display: block;
  font-size: 0.66rem;
  color: #64748b;
  line-height: 1.2;
}

.receipt-screen-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 20px;
}

.btn-print-action {
  padding: 12px 22px;
  font-size: 1rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-whatsapp-action {
  background: #25d366;
  color: #ffffff;
  border-color: #1e293b;
  padding: 12px 22px;
  font-size: 0.95rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-whatsapp-action:hover {
  background: #1eb856;
  color: #ffffff;
}

@media (max-width: 768px) {
  .receipt-particulars-grid {
    grid-template-columns: 1fr;
  }
  .receipt-meta-bar {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .receipt-footer-signatures {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .sig-block.sig-left {
    text-align: center;
  }
}

/* ----------------------------------------------------
   EXECUTIVE A4 PRINT STYLING
   Fits on 1 standard sheet of A4 without unwanted pages
   ---------------------------------------------------- */
@media print {
  @page {
    size: A4 portrait;
    margin: 8mm 10mm;
  }
  
  html, body {
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 9.5pt !important;
    line-height: 1.25 !important;
    margin: 0 !important;
    padding: 0 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  /* Completely suppress all screen headers, footers & buttons */
  .site-header,
  .site-footer,
  .mobile-drawer,
  .drawer-backdrop,
  .exam-hero,
  .exam-perks-grid,
  .form-card,
  .receipt-screen-actions,
  #receiptBackNav,
  .admit-actions,
  .btn,
  .whatsapp-pulse,
  .whatsapp-floating-btn,
  .whatsapp-channel-callout,
  .dpdp-banner,
  .cookie-consent-bar,
  .cookie-banner,
  #dpdpBanner,
  section:not(#register-form),
  .section:not(#register-form),
  .section-cream,
  .section-subtle,
  .admin-navbar,
  .admin-sidebar,
  .admin-tabs,
  .kpi-grid,
  .toolbar-bar,
  .table-card,
  .admin-modal-backdrop,
  .toast,
  #adminLoginModal {
    display: none !important;
    visibility: hidden !important;
  }

  #register-form {
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    background: transparent !important;
  }

  #register-form > .container {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .receipt-container,
  .receipt-container * {
    visibility: visible !important;
  }

  .receipt-container {
    display: block !important;
    position: static !important;
    width: 100% !important;
    max-width: 190mm !important;
    margin: 0 auto !important;
    padding: 0 !important;
    box-shadow: none !important;
  }

  /* When admin receipt modal is open in admin desk, print only the receipt sheet */
  #adminReceiptModal[style*="display: flex"],
  #adminReceiptModal[style*="display: flex"] * {
    visibility: visible !important;
  }

  #adminReceiptModal[style*="display: flex"] {
    display: block !important;
    position: static !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    border: none !important;
  }

  #adminReceiptModal[style*="display: flex"] .admin-modal-card {
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 auto !important;
    max-width: 190mm !important;
    max-height: none !important;
    overflow: visible !important;
    background: transparent !important;
  }

  #adminReceiptModal[style*="display: flex"] .modal-close-btn,
  #adminReceiptModal[style*="display: flex"] .action-btn,
  #adminReceiptModal[style*="display: flex"] > .admin-modal-card > div:first-child,
  #adminReceiptModal[style*="display: flex"] > .admin-modal-card > div:last-child {
    display: none !important;
  }

  .official-receipt-sheet {
    border: 2px solid #000000 !important;
    border-radius: 4px !important;
    box-shadow: none !important;
    padding: 5mm 6mm !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  .receipt-top-ribbon {
    background: #000000 !important;
    color: #ffffff !important;
  }

  .receipt-particulars-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }

  .receipt-footer-signatures {
    display: grid !important;
    grid-template-columns: 1.3fr 1fr 1.3fr !important;
    gap: 10px !important;
  }

  .receipt-status-pill {
    border: 1px solid #15803d !important;
    background: #dcfce7 !important;
    color: #15803d !important;
  }
}

/* Inline UPI Direct Payment & Screenshot Upload System */
.upi-direct-pay-card {
  background: #fffdf5;
  border: 2.5px solid #252830;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 4px 4px 0 #252830;
  margin: 20px 0 24px;
}

.upi-direct-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px;
  align-items: center;
}

@media (max-width: 640px) {
  .upi-direct-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.upi-qr-display {
  background: #ffffff;
  border: 2.2px solid #252830;
  border-radius: 14px;
  padding: 10px;
  box-shadow: 3px 3px 0 #252830;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.upi-qr-display img {
  width: 170px;
  height: 170px;
  display: block;
  border-radius: 6px;
}

.upi-qr-badge {
  margin-top: 8px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #065f46;
  background: #ecfdf5;
  border: 1.5px solid #10b981;
  padding: 3px 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.upi-info-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.upi-vpa-pill {
  background: #f8fafc;
  border: 2px solid #252830;
  border-radius: 12px;
  padding: 9px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  box-shadow: 2px 2px 0 #252830;
}

.upi-vpa-code {
  font-family: monospace;
  font-size: 1.05rem;
  font-weight: 800;
  color: #1e293b;
  letter-spacing: 0.5px;
}

.upi-copy-action {
  background: #ff5a1f;
  color: #ffffff;
  border: 1.8px solid #252830;
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  font-family: 'Fredoka', cursive, sans-serif;
}

.upi-copy-action:hover {
  background: #e04b16;
}

.upi-apps-headline {
  font-family: 'Fredoka', cursive, sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  color: #374151;
  margin: 4px 0 0 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

@media (max-width: 640px) {
  .upi-apps-headline {
    justify-content: center;
  }
}

.upi-apps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

@media (max-width: 480px) {
  .upi-apps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.upi-app-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 9px 4px;
  border: 1.8px solid #252830;
  border-radius: 12px;
  background: #ffffff;
  text-decoration: none;
  color: #252830;
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: 2px 2px 0 #252830;
  transition: transform 0.15s ease, background 0.15s ease;
}

.upi-app-card:hover, .upi-app-card:active {
  transform: translateY(-2px);
  background: #fffdf5;
}

.upi-app-ico {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 900;
  font-size: 0.95rem;
}

.upi-ico-gpay { background: #1a73e8; }
.upi-ico-phonepe { background: #5f259f; }
.upi-ico-paytm { background: #00b9f5; }
.upi-ico-bhim { background: #00796b; }

/* Screenshot Upload Styling */
.ss-upload-wrap {
  margin-top: 18px;
  border-top: 2px dashed #cbd5e1;
  padding-top: 18px;
}

.ss-upload-label {
  font-family: 'Fredoka', cursive, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #252830;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.ss-upload-hint {
  font-size: 0.82rem;
  color: #64748b;
  margin-bottom: 12px;
  display: block;
}

.ss-dropzone {
  border: 2.2px dashed #252830;
  background: #ffffff;
  border-radius: 14px;
  padding: 22px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.ss-dropzone:hover, .ss-dropzone.dragover {
  background: #fffbeb;
  border-color: #ff5a1f;
  transform: scale(1.01);
}

.ss-dropzone-icon {
  font-size: 2rem;
  line-height: 1;
}

.ss-dropzone-title {
  font-family: 'Fredoka', cursive, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #252830;
}

.ss-dropzone-sub {
  font-size: 0.78rem;
  color: #64748b;
}

.ss-preview-box {
  display: none;
  background: #ecfdf5;
  border: 2px solid #10b981;
  border-radius: 14px;
  padding: 12px 16px;
  align-items: center;
  gap: 14px;
  box-shadow: 2.5px 2.5px 0 #10b981;
}

.ss-preview-box.active {
  display: flex;
}

.ss-preview-thumb {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
  border: 2px solid #252830;
  background: #ffffff;
  flex-shrink: 0;
}

.ss-preview-meta {
  flex: 1;
  overflow: hidden;
}

.ss-preview-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: #065f46;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ss-preview-size {
  font-size: 0.76rem;
  color: #047857;
  margin-top: 2px;
}

.ss-remove-btn {
  background: #fee2e2;
  color: #991b1b;
  border: 1.6px solid #ef4444;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.ss-remove-btn:hover {
  background: #fecaca;
}

/* DPDP Act 2023 Compliance & Consent Banner System */
.dpdp-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 980px;
  margin: 0 auto;
  background: #ffffff;
  border: 2.8px solid #252830;
  border-radius: 18px;
  box-shadow: 6px 6px 0 #252830;
  padding: 16px 22px;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  animation: dpdpSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes dpdpSlideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.dpdp-banner-content {
  flex: 1;
  min-width: 280px;
}

.dpdp-banner-title {
  font-family: 'Fredoka', cursive, sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: #252830;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.dpdp-banner-text {
  font-size: 0.86rem;
  color: #4b5563;
  line-height: 1.45;
  margin: 0;
}

.dpdp-banner-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.dpdp-btn {
  font-family: 'Fredoka', cursive, sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 10px;
  cursor: pointer;
  border: 2px solid #252830;
  box-shadow: 2px 2px 0 #252830;
  transition: transform 0.15s ease, background 0.15s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dpdp-btn:hover {
  transform: translateY(-2px);
}

.dpdp-btn-accept {
  background: #10b981;
  color: #ffffff;
}

.dpdp-btn-accept:hover {
  background: #059669;
}

.dpdp-btn-secondary {
  background: #ffffff;
  color: #252830;
}

.dpdp-btn-secondary:hover {
  background: #f8fafc;
}

/* DPDP Consent Checkbox Box in Forms */
.dpdp-consent-box {
  background: #f0fdf4;
  border: 2px solid #10b981;
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 3px 3px 0 #10b981;
  margin: 18px 0 22px;
}

.dpdp-consent-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Fredoka', cursive, sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  color: #065f46;
  margin-bottom: 8px;
}

.dpdp-consent-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 0.86rem;
  color: #1e293b;
  line-height: 1.45;
}

.dpdp-checkbox {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: #10b981;
  flex-shrink: 0;
}

/* Modal Preferences */
.dpdp-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.dpdp-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.dpdp-modal-card {
  background: #ffffff;
  border: 3px solid #252830;
  border-radius: 20px;
  box-shadow: 8px 8px 0 #252830;
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 26px;
  position: relative;
}
