/* assets/css/style.css - ISLTextbook Premium UI System */

:root {
  --primary-color: #4f46e5;
  --primary-hover: #4338ca;
  --primary-light: #e0e7ff;
  --secondary-color: #0ea5e9;
  --accent-color: #f59e0b;
  --bg-gradient: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  --nav-gradient: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
  --card-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
  --card-hover-shadow: 0 20px 30px -10px rgba(79, 70, 229, 0.15);
  --border-radius: 16px;
  --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

body {
  font-family: var(--font-family);
  background: var(--bg-gradient);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: #1e293b;
}

main, .main-content-wrapper {
  flex: 1 0 auto;
}

/* ==========================================================================
   Modern Dashboard Side Navigation & Topbar System
   ========================================================================== */

:root {
  --sidebar-width: 270px;
  --sidebar-collapsed-width: 80px;
  --topbar-height: 64px;
  --sidebar-bg: linear-gradient(180deg, #0f172a 0%, #1e1b4b 45%, #0f172a 100%);
  --sidebar-color: #94a3b8;
  --sidebar-active-bg: rgba(99, 102, 241, 0.18);
  --sidebar-active-color: #ffffff;
  --sidebar-hover-bg: rgba(255, 255, 255, 0.08);
  --topbar-bg: rgba(255, 255, 255, 0.88);
}

.app-layout {
  display: flex;
  min-height: 100vh;
  width: 100%;
  position: relative;
  overflow-x: hidden;
}

/* --------------------------------------------------------------------------
   Left Sidebar Navigation
   -------------------------------------------------------------------------- */
.app-sidebar {
  width: var(--sidebar-width);
  background: var(--sidebar-bg);
  color: var(--sidebar-color);
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 1040;
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 25px rgba(0, 0, 0, 0.15);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.sidebar-header {
  height: var(--topbar-height);
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 42, 0.4);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #ffffff;
  overflow: hidden;
}

.brand-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.35rem;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
}

.brand-text {
  display: flex;
  flex-direction: column;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.brand-name {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.3px;
  line-height: 1.2;
  color: #ffffff;
}

.brand-sub {
  font-size: 0.72rem;
  color: #a5b4fc;
  font-weight: 500;
}

.btn-sidebar-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: color 0.2s;
}

.btn-sidebar-close:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

/* Sidebar Body & Nav Links */
.sidebar-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 1.25rem 0.85rem;
}

.sidebar-body::-webkit-scrollbar {
  width: 5px;
}
.sidebar-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
}

.nav-section-title {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #64748b;
  padding: 0.75rem 0.85rem 0.35rem;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.sidebar-nav {
  margin-bottom: 0.75rem;
}

.sidebar-nav .nav-item {
  margin-bottom: 4px;
}

.sidebar-nav .nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.65rem 0.85rem;
  color: #cbd5e1;
  font-weight: 500;
  font-size: 0.9rem;
  border-radius: 12px;
  transition: all 0.2s ease;
  white-space: nowrap;
  position: relative;
  text-decoration: none;
}

.sidebar-nav .nav-link i {
  font-size: 1.2rem;
  min-width: 24px;
  text-align: center;
  color: #818cf8;
  transition: transform 0.2s ease, color 0.2s ease;
}

.sidebar-nav .nav-link:hover {
  color: #ffffff;
  background: var(--sidebar-hover-bg);
  transform: translateX(3px);
}

.sidebar-nav .nav-link:hover i {
  color: #c7d2fe;
  transform: scale(1.1);
}

.sidebar-nav .nav-link.active {
  color: #ffffff !important;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.9) 0%, rgba(99, 102, 241, 0.8) 100%) !important;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.35);
}

.sidebar-nav .nav-link.active i {
  color: #ffffff !important;
}

.sidebar-nav .nav-link .badge {
  margin-left: auto;
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 10px;
}

/* Sidebar Footer */
.sidebar-footer {
  padding: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 42, 0.4);
}

.sidebar-user-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.6rem 0.75rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  backdrop-filter: blur(10px);
  text-decoration: none;
  color: #ffffff;
  transition: all 0.2s ease;
}

.sidebar-user-card:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.user-avatar-circle {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f46e5 0%, #0ea5e9 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
}

.user-card-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.user-card-name {
  font-weight: 600;
  font-size: 0.85rem;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-card-role {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #a5b4fc;
  font-weight: 600;
}

.user-role-pill {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: 12px;
}
.role-admin   { background: linear-gradient(135deg, #7c3aed, #d97706); color: #ffffff; font-weight: 700; box-shadow: 0 2px 6px rgba(124, 58, 237, 0.3); }
.role-signer  { background: #10b981; color: #ffffff; font-weight: 600; }
.role-teacher { background: #0284c7; color: #ffffff; font-weight: 600; }
.role-user    { background: #64748b; color: #ffffff; font-weight: 600; }

/* --------------------------------------------------------------------------
   Main App Content Wrapper & Topbar
   -------------------------------------------------------------------------- */
.app-main-wrapper {
  flex: 1;
  margin-left: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--bg-gradient);
}

.no-sidebar .app-main-wrapper {
  margin-left: 0 !important;
}

.app-topbar {
  height: var(--topbar-height);
  background: var(--topbar-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  position: sticky;
  top: 0;
  z-index: 1030;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar-toggle-btn {
  background: transparent;
  border: 1px solid #e2e8f0;
  color: #334155;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.topbar-toggle-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: var(--primary-color);
}

.topbar-page-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #e0e7ff;
  color: #3730a3;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.app-content {
  flex: 1 0 auto;
  width: 100%;
}

.app-footer {
  margin-top: auto;
  padding: 1.25rem 1.5rem;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  color: #64748b;
  font-size: 0.85rem;
  text-align: center;
}

/* --------------------------------------------------------------------------
   Desktop Collapsed Sidebar State (.sidebar-collapsed)
   -------------------------------------------------------------------------- */
@media (min-width: 992px) {
  body.sidebar-collapsed .app-sidebar {
    width: var(--sidebar-collapsed-width);
  }

  body.sidebar-collapsed .brand-text,
  body.sidebar-collapsed .nav-section-title,
  body.sidebar-collapsed .nav-link-text,
  body.sidebar-collapsed .user-card-info,
  body.sidebar-collapsed .nav-link .badge {
    display: none !important;
  }

  body.sidebar-collapsed .sidebar-header {
    justify-content: center;
    padding: 0;
  }

  body.sidebar-collapsed .sidebar-brand {
    justify-content: center;
  }

  body.sidebar-collapsed .sidebar-nav .nav-link {
    justify-content: center;
    padding: 0.75rem 0;
  }

  body.sidebar-collapsed .sidebar-nav .nav-link i {
    font-size: 1.4rem;
  }

  body.sidebar-collapsed .sidebar-user-card {
    justify-content: center;
    padding: 0.5rem;
  }

  body.sidebar-collapsed .app-main-wrapper {
    margin-left: var(--sidebar-collapsed-width);
  }
}

/* --------------------------------------------------------------------------
   Responsive Mobile Offcanvas Drawer (< 992px)
   -------------------------------------------------------------------------- */
.sidebar-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1035;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

@media (max-width: 991.98px) {
  .app-sidebar {
    transform: translateX(-100%);
    width: 280px;
  }

  body.sidebar-mobile-open .app-sidebar {
    transform: translateX(0);
  }

  body.sidebar-mobile-open .sidebar-backdrop {
    opacity: 1;
    visibility: visible;
  }

  .app-main-wrapper {
    margin-left: 0 !important;
  }
}

/* Dashboard Cards */
.glass-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
  box-shadow: var(--card-hover-shadow);
}

.card-header-gradient {
  background: linear-gradient(135deg, var(--primary-color), #6366f1);
  color: white;
  border-radius: 16px 16px 0 0 !important;
  padding: 1.25rem 1.5rem;
}

/* Video Card Grid */
.video-card {
  border: none;
  border-radius: var(--border-radius);
  overflow: hidden;
  background: #ffffff;
  box-shadow: var(--card-shadow);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-hover-shadow);
}

.video-thumbnail-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  background: #0f172a;
}

.video-thumbnail-wrapper video,
.video-thumbnail-wrapper img,
.video-thumbnail-wrapper .thumb-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 23, 42, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
  cursor: pointer;
}

.video-thumbnail-wrapper:hover .play-overlay {
  opacity: 1;
}

.play-btn-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary-color);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 0 20px rgba(79, 70, 229, 0.6);
  transform: scale(0.9);
  transition: transform 0.2s ease;
}

.video-thumbnail-wrapper:hover .play-btn-circle {
  transform: scale(1);
}

/* Controls & Buttons */
.btn-primary-custom {
  background: linear-gradient(135deg, var(--primary-color), #6366f1);
  border: none;
  color: white;
  font-weight: 600;
  border-radius: 10px;
  padding: 0.6rem 1.25rem;
  transition: all 0.2s ease;
}

.btn-primary-custom:hover {
  background: linear-gradient(135deg, var(--primary-hover), var(--primary-color));
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

/* Playback Speed Pill Buttons */
.speed-btn {
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #475569;
  font-weight: 600;
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 20px;
  transition: all 0.2s ease;
}

.speed-btn.active, .speed-btn:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

/* Upload Dropzone */
.dropzone-custom {
  border: 2px dashed #a5b4fc;
  background: rgba(238, 242, 255, 0.6);
  border-radius: var(--border-radius);
  padding: 3rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dropzone-custom:hover, .dropzone-custom.dragover {
  background: rgba(224, 231, 255, 0.9);
  border-color: var(--primary-color);
}

/* Custom Indigo & Accent Color Utilities for Badges & Icons */
.bg-indigo-100 {
  background-color: #e0e7ff !important;
}
.text-indigo-800 {
  color: #3730a3 !important;
}
.text-indigo-600 {
  color: #4f46e5 !important;
}
.text-indigo-300 {
  color: #a5b4fc !important;
}
.bg-indigo-600 {
  background-color: #4f46e5 !important;
}

.btn-subtle-indigo {
  background-color: #e0e7ff;
  color: #3730a3;
  border: 1px solid #c7d2fe;
  transition: all 0.2s ease;
}

.btn-subtle-indigo:hover {
  background-color: #4f46e5;
  color: #ffffff;
  border-color: #4f46e5;
}

/* Badge Enhancements & Custom Class Badge */
.badge.bg-indigo-100 {
  background-color: #e0e7ff !important;
  color: #1e1b4b !important;
  border-color: #c7d2fe !important;
}

.class-badge {
  background-color: #4f46e5 !important;
  color: #ffffff !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  padding: 0.35rem 0.75rem !important;
  border-radius: 8px !important;
  display: inline-block !important;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 4px rgba(79, 70, 229, 0.2);
}

/* ==========================================================================
   Home Page Hero & Empathy Design System
   ========================================================================== */

/* Hero Banner */
.hero-wrapper {
  position: relative;
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4338ca 100%);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 40px -15px rgba(30, 27, 75, 0.3);
}

.hero-wrapper::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(129, 140, 248, 0.25) 0%, rgba(79, 70, 229, 0) 70%);
  pointer-events: none;
}

.hero-wrapper::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.15) 0%, rgba(79, 70, 229, 0) 70%);
  pointer-events: none;
}

/* Full Window Width Hero Section - Entire Uncropped Image */
.hero-fullwidth-wrapper {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 2.5rem;
}

.hero-banner-image-container {
  width: 100%;
  text-align: center;
  background: #f8fafc;
}

.hero-banner-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.hero-banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.92) 0%, rgba(30, 27, 75, 0.82) 45%, rgba(15, 23, 42, 0.55) 100%);
  z-index: 2;
}

.hero-banner-content-box {
  position: relative;
  z-index: 3;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.hero-full-title {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.2;
  color: #ffffff;
}

.hero-full-subtitle {
  font-size: 1.15rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 400;
}

.hero-glass-card {
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
  .hero-full-title {
    font-size: 2.1rem;
  }
  .hero-fullwidth-wrapper {
    min-height: auto;
  }
  .hero-banner-content-box {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(12px);
  color: #fbbf24;
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.2;
  color: #ffffff;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }
}

.hero-subtitle {
  font-size: 1.15rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 400;
}

.hero-card-right {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.hero-stat-pill {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 12px 18px;
  border-radius: 14px;
  color: #fff;
}

/* Empathy & Need Cards */
.empathy-card {
  background: #ffffff;
  border-radius: var(--border-radius);
  border: 1px solid #e2e8f0;
  padding: 2rem;
  box-shadow: var(--card-shadow);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  position: relative;
  overflow: hidden;
}

.empathy-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
  transition: width 0.3s ease;
}

.empathy-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--card-hover-shadow);
  border-color: #c7d2fe;
}

.empathy-card:hover::before {
  width: 6px;
}

.empathy-icon-box {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
}

.icon-box-rose { background: #ffe4e6; color: #e11d48; }
.icon-box-indigo { background: #e0e7ff; color: #4f46e5; }
.icon-box-amber { background: #fef3c7; color: #d97706; }
.icon-box-teal { background: #ccfbf1; color: #0d9488; }

/* Interactive Sign Cards Showcase */
.sign-showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
}

.sign-card {
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.5rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  user-select: none;
}

.sign-card:hover, .sign-card.active {
  border-color: var(--primary-color);
  background: #f5f3ff;
  transform: translateY(-4px);
  box-shadow: 0 10px 20px -5px rgba(79, 70, 229, 0.15);
}

.sign-card .sign-icon-lg {
  font-size: 2.5rem;
  color: var(--primary-color);
  transition: transform 0.25s ease;
}

.sign-card:hover .sign-icon-lg {
  transform: scale(1.15);
}

.sign-detail-panel {
  background: linear-gradient(135deg, #ffffff 0%, #faf5ff 100%);
  border: 1px solid #ddd6fe;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(124, 58, 237, 0.08);
}

/* Section Header Custom */
.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary-color);
  background: var(--primary-light);
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.5px;
}

/* Stat Card */
.stat-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid #cbd5e1;
  border-radius: 20px;
  padding: 1.75rem;
  text-align: center;
  box-shadow: var(--card-shadow);
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-3px);
  border-color: #818cf8;
}

.stat-number {
  font-size: 2.75rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-color), #0ea5e9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 0.5rem;
}

/* Special Quote Banner */
.quote-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
  color: #ffffff;
  border-radius: 24px;
  padding: 3.5rem 2.5rem;
  position: relative;
  overflow: hidden;
}

.quote-banner::before {
  content: '“';
  position: absolute;
  top: -20px;
  left: 20px;
  font-size: 12rem;
  color: rgba(255, 255, 255, 0.05);
  font-family: Georgia, serif;
  line-height: 1;
}

/* Grade Filter Pills */
.grade-pill {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #475569;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 30px;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.grade-pill:hover {
  background: var(--primary-color);
  color: #ffffff;
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

/* Interactive ISL Reader Split-Screen Layout */
.text-reader-pane {
  max-height: calc(100vh - 150px);
  overflow-y: auto;
  padding-right: 0.5rem;
}

.video-reader-pane {
  width: 100%;
}

/* Authentic Textbook Paper Page & Paragraph Flow */
.textbook-paper-page {
  background: #ffffff;
  border-radius: 16px;
  padding: 2.25rem 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  border: 1px solid #e2e8f0;
}

.textbook-chapter-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #1e1b4b;
  line-height: 1.3;
}

.textbook-body {
  margin-top: 1rem;
}

.textbook-paragraph {
  font-size: 1.15rem;
  line-height: 1.95;
  color: #1e293b;
  margin-bottom: 1.75rem;
  text-align: justify;
  text-justify: inter-word;
}

.interactive-sentence {
  display: inline;
  padding: 3px 6px;
  margin: 0 2px;
  border-radius: 6px;
  cursor: pointer;
  position: relative;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border-bottom: 2px solid transparent;
}

.interactive-sentence:hover {
  background: #eef2ff;
  color: #3730a3;
  border-bottom-color: #a5b4fc;
}

.interactive-sentence .inline-play-icon {
  font-size: 0.85rem;
  color: #6366f1;
  opacity: 0.4;
  margin-right: 3px;
  transition: opacity 0.2s ease, transform 0.2s ease;
  display: inline-block;
}

.interactive-sentence:hover .inline-play-icon {
  opacity: 1;
  transform: scale(1.15);
}

.interactive-sentence.active-sentence {
  background: #4f46e5;
  color: #ffffff;
  border-radius: 6px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
  padding: 4px 8px;
}

.interactive-sentence.active-sentence .inline-play-icon {
  color: #ffffff;
  opacity: 1;
}

/* Sticky Reader Video Card */
.sticky-video-card {
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.video-container-ratio {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  background: #0f172a;
}

.video-container-ratio video,
.video-container-ratio iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: contain;
}



