/* Imports Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800&family=Tajawal:wght@300;400;500;700&display=swap');

:root {
  /* Brand Colors */
  --primary: #064E3B; /* Deep Emerald Green */
  --primary-light: #0B6B53;
  --primary-dark: #033326;
  --primary-tint: rgba(6, 78, 59, 0.05);
  
  --secondary: #B38F5A; /* Accent Gold */
  --secondary-light: #C5A880;
  --secondary-dark: #8E6E41;
  --secondary-tint: rgba(179, 143, 90, 0.1);
  
  --bg-cream: #FDFBF7; /* Warm Ivory Base */
  --bg-beige: #F6F3E6; /* Alternate Section Background */
  --bg-white: #FFFFFF;
  
  --text-dark: #0F2F23; /* Forest-black text */
  --text-muted: #536B60;
  --text-light: #7E9489;
  
  --error: #BA1A1A;
  --error-bg: #FFDAD6;
  
  /* Layout & Corners */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 4px 6px -1px rgba(6, 78, 59, 0.05), 0 2px 4px -1px rgba(6, 78, 59, 0.03);
  --shadow-md: 0 10px 15px -3px rgba(6, 78, 59, 0.08), 0 4px 6px -2px rgba(6, 78, 59, 0.04);
  --shadow-lg: 0 20px 25px -5px rgba(6, 78, 59, 0.12), 0 10px 10px -5px rgba(6, 78, 59, 0.06);
  --shadow-inner: inset 0 2px 4px 0 rgba(6, 78, 59, 0.06);
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Tajawal', sans-serif;
  background-color: var(--bg-cream);
  color: var(--text-dark);
  line-height: 1.6;
  text-align: right;
  direction: rtl;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

button, input, textarea {
  font-family: 'Tajawal', sans-serif;
  outline: none;
}

/* Arabesque Background Texture */
.arabesque-bg {
  position: relative;
}

.arabesque-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("https://www.transparenttextures.com/patterns/arabesque.png");
  opacity: 0.025;
  pointer-events: none;
  z-index: 0;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-cream);
}
::-webkit-scrollbar-thumb {
  background: var(--secondary-light);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--secondary);
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Header & Nav */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 251, 247, 0.85);
  backdrop-filter: blur(12px);
  border-b: 1px solid rgba(6, 78, 59, 0.05);
  transition: var(--transition);
}

header.scrolled {
  background: var(--bg-cream);
  box-shadow: var(--shadow-sm);
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-container img {
  height: 48px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  padding: 8px 0;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary);
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--secondary);
}

.nav-links a:hover::after,
.nav-links li.active a::after {
  width: 100%;
}

.nav-btn {
  background: var(--primary);
  color: var(--bg-cream);
  border: none;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius-full);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.nav-btn:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--primary);
  font-size: 28px;
  cursor: pointer;
}

/* Animations */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
  100% { transform: translateY(0px); }
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 0.3; }
  100% { transform: scale(0.95); opacity: 0.5; }
}

@keyframes counter-glow {
  0%, 100% { text-shadow: 0 0 5px rgba(179,143,90,0.1); }
  50% { text-shadow: 0 0 15px rgba(179,143,90,0.5); }
}

.floating {
  animation: float 6s ease-in-out infinite;
}

/* Hero Section */
.hero {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
  min-height: 620px;
  display: flex;
  align-items: center;
}

.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: left center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  z-index: 0;
}

.hero-slide.active {
  opacity: 1;
}

/* Gradient overlay: right side is dark for text, left side is clear to show the child */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to left, rgba(3, 51, 38, 0.95) 35%, rgba(6, 78, 59, 0.25) 85%);
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-content {
  max-width: 620px;
  color: var(--bg-cream);
  text-align: right;
}

.hero-content h1 {
  font-size: 42px;
  margin-bottom: 24px;
  color: var(--bg-white);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-content p {
  font-size: 18px;
  color: #E6EFEA;
  margin-bottom: 36px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

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

.btn-primary {
  background: var(--primary);
  color: var(--bg-white);
  border: none;
  padding: 16px 36px;
  font-size: 16px;
  font-weight: 700;
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: var(--shadow-md);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 16px 36px;
  font-size: 16px;
  font-weight: 700;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
}

.btn-secondary:hover {
  background: var(--primary-tint);
  transform: translateY(-3px);
}

/* Hero Interactive Widget */
.hero-widget {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(6, 78, 59, 0.06);
  position: relative;
  overflow: hidden;
}

.hero-widget.glass {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--bg-cream);
}

.hero-widget.glass h3, .hero-widget.glass .stat-val {
  color: var(--bg-cream);
}

.hero-widget.glass .progress-percentage {
  color: var(--bg-cream);
}

.hero-widget.glass .stat-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.hero-widget.glass .stat-box:hover {
  background: rgba(179, 143, 90, 0.15);
}

.hero-widget::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 6px;
  background: var(--secondary);
}

.widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.student-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.student-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--primary-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.student-title h3 {
  font-size: 18px;
  color: var(--primary);
}

.student-title p {
  font-size: 12px;
  color: var(--text-light);
}

.widget-score {
  background: var(--secondary-tint);
  color: var(--secondary-dark);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.progress-circle-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 160px;
  height: 160px;
  margin: 0 auto 24px;
}

.progress-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.progress-bg-circle {
  fill: none;
  stroke: var(--bg-beige);
  stroke-width: 10;
}

.progress-active-circle {
  fill: none;
  stroke: var(--secondary);
  stroke-width: 10;
  stroke-dasharray: 440;
  stroke-dashoffset: 440;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-text {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.progress-percentage {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
  font-family: 'Cairo', sans-serif;
}

.progress-label {
  font-size: 12px;
  color: var(--text-muted);
}

.widget-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.stat-box {
  background: var(--bg-beige);
  padding: 12px;
  border-radius: var(--radius-md);
  text-align: center;
  transition: var(--transition);
}

.stat-box:hover {
  background: var(--secondary-tint);
  transform: translateY(-2px);
}

.stat-box i {
  color: var(--secondary-dark);
  font-size: 20px;
  display: block;
  margin-bottom: 4px;
}

.stat-box .stat-val {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}

.stat-box .stat-lbl {
  font-size: 10px;
  color: var(--text-muted);
}

/* Value Proposition Section */
.val-prop {
  padding: 100px 0;
  background-color: var(--bg-beige);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 36px;
  margin-bottom: 16px;
}

.section-header p {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

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

.val-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(6, 78, 59, 0.03);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.val-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--secondary-light);
}

.val-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background-color: var(--primary-tint);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 24px;
  transition: var(--transition);
}

.val-card:hover .val-icon {
  background-color: var(--primary);
  color: var(--bg-white);
}

.val-card h3 {
  font-size: 22px;
  margin-bottom: 16px;
}

.val-card p {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 24px;
  flex-grow: 1;
}

/* Card Interactive Previews */
.micro-widget {
  background: var(--bg-cream);
  border-radius: var(--radius-md);
  padding: 16px;
  border: 1px solid rgba(6, 78, 59, 0.05);
  font-size: 13px;
}

/* Preview 1: Report Card */
.report-widget .report-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.report-widget .report-row:last-child {
  margin-bottom: 0;
}

.report-bar {
  flex-grow: 1;
  height: 8px;
  background: var(--bg-beige);
  border-radius: var(--radius-full);
  margin: 0 12px;
  overflow: hidden;
  position: relative;
}

.report-fill {
  height: 100%;
  background: var(--primary);
  border-radius: var(--radius-full);
}

.report-fill.gold {
  background: var(--secondary);
}

.report-widget .report-val {
  font-weight: 700;
  width: 32px;
  text-align: left;
}

/* Preview 2: Video Library */
.library-widget {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.library-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-white);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}

.library-item:hover, .library-item.active {
  border-color: var(--secondary-light);
  background: var(--secondary-tint);
}

.library-item i {
  color: var(--secondary);
  font-size: 16px;
}

.library-item span {
  font-weight: 600;
  font-size: 12px;
}

/* Preview 3: Chat connection */
.chat-widget {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 150px;
  overflow-y: auto;
}

.chat-bubble {
  padding: 8px 12px;
  border-radius: var(--radius-md);
  max-width: 85%;
  font-size: 11px;
}

.chat-bubble.teacher {
  background: var(--primary-tint);
  align-self: flex-start;
  border-top-right-radius: 0;
}

.chat-bubble.parent {
  background: var(--secondary-tint);
  align-self: flex-end;
  border-top-left-radius: 0;
}

.chat-input-row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.chat-input-row input {
  flex-grow: 1;
  padding: 6px 12px;
  border: 1px solid var(--text-light);
  border-radius: var(--radius-sm);
  font-size: 11px;
  background: var(--bg-white);
}

.chat-input-row button {
  background: var(--primary);
  color: var(--bg-white);
  border: none;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Gamification Hook Section */
.gamification-sec {
  padding: 100px 0;
}

.gami-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
}

.gami-content h2 {
  font-size: 36px;
  margin-bottom: 20px;
}

.gami-content p {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.gami-features {
  list-style: none;
}

.gami-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--primary);
}

.gami-features li i {
  color: var(--secondary);
  font-size: 20px;
}

/* Leaderboard Visual */
.leaderboard-widget {
  background: var(--primary);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-lg);
  color: var(--bg-cream);
  position: relative;
}

.leaderboard-header {
  text-align: center;
  margin-bottom: 32px;
}

.leaderboard-header h3 {
  color: var(--bg-cream);
  font-size: 24px;
  margin-bottom: 4px;
}

.leaderboard-header p {
  color: var(--secondary-light);
  font-size: 14px;
}

/* Podium */
.podium-container {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 16px;
}

.podium-spot {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 90px;
  position: relative;
}

.podium-spot.first {
  width: 110px;
}

.podium-avatar {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  border: 3px solid #ccc;
  background: var(--bg-beige);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 12px;
}

.podium-spot.first .podium-avatar {
  width: 80px;
  height: 80px;
  border-color: var(--secondary);
}

.podium-spot.second .podium-avatar {
  border-color: #B0C4DE; /* Silver */
}

.podium-spot.third .podium-avatar {
  border-color: #CD7F32; /* Bronze */
}

.podium-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.podium-avatar i {
  font-size: 32px;
  color: var(--primary);
}

.podium-crown {
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--secondary);
  font-size: 24px;
  z-index: 2;
}

.podium-name {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 4px;
}

.podium-spot.first .podium-name {
  font-size: 16px;
}

.podium-points {
  font-size: 12px;
  color: var(--secondary-light);
  font-weight: 600;
  margin-bottom: 12px;
}

.podium-block {
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  border-top-left-radius: var(--radius-sm);
  border-top-right-radius: var(--radius-sm);
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Cairo', sans-serif;
  font-weight: 800;
  font-size: 20px;
}

.podium-spot.first .podium-block {
  height: 100px;
  background: var(--secondary);
  color: var(--primary-dark);
}

.podium-spot.second .podium-block {
  height: 70px;
  background: rgba(255, 255, 255, 0.15);
}

.podium-spot.third .podium-block {
  height: 50px;
  background: rgba(255, 255, 255, 0.05);
}

/* Leaderboard Search & List */
.leaderboard-search {
  position: relative;
  margin-bottom: 16px;
}

.leaderboard-search input {
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 12px 16px 12px 40px;
  color: var(--bg-cream);
  font-size: 13px;
  transition: var(--transition);
}

.leaderboard-search input:focus {
  border-color: var(--secondary);
  background: rgba(255, 255, 255, 0.12);
}

.leaderboard-search i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--secondary-light);
  font-size: 18px;
}

.leaderboard-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 240px;
  overflow-y: auto;
  padding-right: 4px;
}

.leaderboard-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  transition: var(--transition);
  border: 1px solid transparent;
}

.leaderboard-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(179, 143, 90, 0.2);
}

.item-rank-name {
  display: flex;
  align-items: center;
  gap: 12px;
}

.item-rank {
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  color: var(--secondary-light);
  width: 20px;
}

.item-avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.item-name {
  font-weight: 600;
}

.item-pts {
  font-weight: 700;
  color: var(--secondary);
}

/* Learning Journey Section */
.journey-sec {
  padding: 100px 0;
  background: var(--bg-cream);
  position: relative;
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 0;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 50%;
  width: 2px;
  background: var(--secondary-light);
  opacity: 0.3;
}

.timeline-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-bottom: 60px;
  position: relative;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-badge {
  position: absolute;
  right: 50%;
  top: 20px;
  transform: translateX(50%);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--primary);
  border: 4px solid var(--bg-cream);
  color: var(--bg-cream);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-family: 'Cairo', sans-serif;
  z-index: 2;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.timeline-item:hover .timeline-badge {
  background: var(--secondary);
  transform: translateX(50%) scale(1.1);
}

.timeline-content {
  background: var(--bg-white);
  padding: 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(6, 78, 59, 0.04);
  transition: var(--transition);
}

.timeline-item:nth-child(even) .timeline-content {
  grid-column-start: 2;
}

.timeline-item:nth-child(odd) .timeline-content {
  grid-column-start: 1;
  text-align: left;
}

.timeline-item:hover .timeline-content {
  box-shadow: var(--shadow-md);
  border-color: var(--secondary-tint);
}

.timeline-content h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.timeline-content p {
  font-size: 14px;
  color: var(--text-muted);
}

/* Testimonials (Social Proof) */
.testimonials {
  padding: 100px 0;
  background-color: var(--bg-beige);
}

.testi-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 60px;
}

.testi-arrows {
  display: flex;
  gap: 12px;
}

.arrow-btn {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  border: 2px solid var(--secondary);
  background: transparent;
  color: var(--secondary);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.arrow-btn:hover {
  background: var(--secondary);
  color: var(--bg-white);
}

.testi-slider-wrapper {
  overflow: hidden;
  width: 100%;
}

.testi-slider {
  display: flex;
  gap: 32px;
  transition: transform 0.5s ease-in-out;
}

.testi-card {
  min-width: calc(33.333% - 22px);
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 0;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(6, 78, 59, 0.03);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.testi-card-img-wrapper {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  border-bottom: 3px solid var(--secondary);
}

.testi-card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

.quote-icon {
  position: absolute;
  top: 16px;
  left: 16px;
  font-size: 32px;
  color: var(--bg-white);
  background: var(--primary);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.9;
  z-index: 5;
  box-shadow: var(--shadow-sm);
}

.stars {
  color: var(--secondary);
  margin-bottom: 16px;
  font-size: 18px;
}

.testi-text {
  font-size: 15px;
  color: var(--text-dark);
  margin-bottom: 24px;
  font-style: italic;
}

.testi-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--secondary-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.user-meta h4 {
  font-size: 15px;
  color: var(--primary);
}

.user-meta p {
  font-size: 11px;
  color: var(--text-light);
}

/* FAQ & CTA Section */
.faq-cta-sec {
  padding: 100px 0;
}

.faq-cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: flex-start;
}

.faq-container h2 {
  font-size: 32px;
  margin-bottom: 36px;
}

/* FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  border: 1px solid rgba(6, 78, 59, 0.05);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition);
}

.faq-question {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 700;
  font-size: 16px;
  color: var(--primary);
  user-select: none;
}

.faq-question i {
  color: var(--secondary);
  font-size: 20px;
  transition: transform 0.3s ease;
}

.faq-item.open {
  border-color: var(--secondary-light);
}

.faq-item.open .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease;
  padding: 0 24px;
  font-size: 14px;
  color: var(--text-muted);
}

.faq-item.open .faq-answer {
  padding-bottom: 20px;
}

/* Registration Form Card */
.cta-form-card {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(6, 78, 59, 0.05);
  position: relative;
}

.cta-form-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 120px;
  height: 120px;
  background-image: url("https://www.transparenttextures.com/patterns/arabesque.png");
  opacity: 0.04;
  pointer-events: none;
}

.cta-form-card h3 {
  font-size: 26px;
  margin-bottom: 12px;
}

.cta-form-card p {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 28px;
}

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

.form-group label {
  display: block;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 8px;
  color: var(--primary);
}

.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--bg-beige);
  border-radius: var(--radius-md);
  font-size: 14px;
  background: var(--bg-cream);
  color: var(--text-dark);
  transition: var(--transition);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--primary);
  background: var(--bg-white);
  box-shadow: 0 0 0 4px var(--primary-tint);
}

.form-group textarea {
  resize: vertical;
  height: 100px;
}

.form-submit-btn {
  width: 100%;
  background: var(--primary);
  color: var(--bg-white);
  border: none;
  padding: 16px;
  font-size: 16px;
  font-weight: 700;
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.form-submit-btn:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Success Popup */
.success-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 47, 35, 0.4);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.success-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.success-card {
  background: var(--bg-cream);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 450px;
  width: 90%;
  text-align: center;
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--secondary);
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.success-overlay.show .success-card {
  transform: scale(1);
}

.success-icon {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-full);
  background: var(--primary-tint);
  color: var(--primary);
  font-size: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.success-card h3 {
  font-size: 24px;
  margin-bottom: 12px;
}

.success-card p {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* Footer */
footer {
  background: var(--primary-dark);
  color: var(--bg-beige);
  padding: 80px 0 32px;
  border-top: 4px solid var(--secondary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-col h4 {
  color: var(--secondary);
  font-size: 18px;
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40px;
  height: 2px;
  background-color: var(--secondary);
}

.footer-col p {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(246, 243, 230, 0.8);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  font-size: 14px;
  color: rgba(246, 243, 230, 0.8);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--secondary);
  padding-right: 6px;
}

.social-icons {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-cream);
  font-size: 18px;
  transition: var(--transition);
}

.social-icon:hover {
  background: var(--secondary);
  color: var(--primary-dark);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 13px;
  color: rgba(246, 243, 230, 0.6);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .hero-grid, .gami-grid, .faq-cta-grid {
    gap: 40px;
  }
  .testi-card {
    min-width: calc(50% - 16px);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none; /* Mobile menu can be handled by JS toggle */
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-content h1 {
    font-size: 32px;
  }
  
  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-ctas {
    justify-content: center;
  }
  
  .val-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .gami-grid {
    grid-template-columns: 1fr;
  }
  
  .timeline::before {
    right: 24px;
  }
  
  .timeline-item {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-right: 48px;
  }
  
  .timeline-badge {
    right: 24px;
    transform: translateX(50%);
  }
  
  .timeline-item:hover .timeline-badge {
    transform: translateX(50%) scale(1.1);
  }
  
  .timeline-item:nth-child(even) .timeline-content,
  .timeline-item:nth-child(odd) .timeline-content {
    grid-column-start: 1;
    text-align: right;
  }
  
  .testi-card {
    min-width: 100%;
  }
  
  .faq-cta-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }

  /* Hero Section Mobile Adjustments */
  .hero {
    padding: 80px 0 100px;
    min-height: 500px;
  }
  
  .hero::after {
    background: linear-gradient(to bottom, rgba(3, 51, 38, 0.9) 0%, rgba(15, 47, 35, 0.75) 100%) !important;
  }

  .hero-content {
    max-width: 100%;
    text-align: center;
  }

  .hero-content h1 {
    font-size: 30px;
  }

  .hero-content p {
    font-size: 16px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Content Hub Mobile Adjustments */
  .hub-tabs {
    overflow-x: auto;
    white-space: nowrap;
    justify-content: flex-start;
    padding-left: 16px;
    padding-right: 16px;
    -webkit-overflow-scrolling: touch;
    gap: 8px;
  }

  .hub-tab-btn {
    padding: 10px 16px;
    font-size: 14px;
    flex-shrink: 0;
  }

  .hub-grid {
    grid-template-columns: 1fr !important;
    gap: 24px;
    padding: 0 16px;
  }

  /* WhatsApp Cards Mobile Adjustments */
  .whatsapp-card {
    height: 380px !important;
  }

  .wa-msg {
    max-width: 90% !important;
    font-size: 12px !important;
  }
}

/* Extra Small Screens (Mobile Portrait) */
@media (max-width: 480px) {
  .hero-ctas {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }

  .hero-ctas .btn-primary,
  .hero-ctas .btn-secondary {
    justify-content: center;
    width: 100%;
  }

  .section-header h2 {
    font-size: 24px;
  }

  .section-header p {
    font-size: 14px;
  }

  .hub-more-btn-wrapper .btn-secondary {
    padding: 12px 20px;
    font-size: 14px;
    width: 100%;
    justify-content: center;
  }
}

/* Content Hub Section */
.content-hub-sec {
  padding: 100px 0;
  background: var(--bg-white);
  border-top: 1px solid rgba(6, 78, 59, 0.05);
}

.hub-tabs {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
  border-bottom: 2px solid rgba(6, 78, 59, 0.05);
  padding-bottom: 12px;
}

.hub-tab-btn {
  background: transparent;
  border: none;
  padding: 12px 28px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  transition: var(--transition);
}

.hub-tab-btn::after {
  content: "";
  position: absolute;
  bottom: -14px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--secondary);
  transform: scaleX(0);
  transition: var(--transition);
}

.hub-tab-btn.active {
  color: var(--primary);
}

.hub-tab-btn.active::after {
  transform: scaleX(1);
}

.hub-tab-content {
  display: none;
}

.hub-tab-content.active {
  display: block;
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}

.hub-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(6, 78, 59, 0.06);
  transition: var(--transition);
}

.hub-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(179, 143, 90, 0.3);
}

.hub-card-img {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: var(--primary-tint);
}

.hub-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 78, 59, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
  z-index: 2;
}

.hub-card:hover .play-overlay {
  opacity: 1;
}

.play-overlay span {
  font-size: 64px;
  color: var(--bg-white);
  transition: transform 0.3s ease;
}

.hub-card:hover .play-overlay span {
  transform: scale(1.1);
}

.hub-card-body {
  padding: 24px;
}

.hub-card-body h3 {
  font-size: 18px;
  color: var(--primary);
  margin-bottom: 12px;
  line-height: 1.5;
}

.hub-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 14px;
}

.hub-card-meta span {
  font-size: 18px;
}

/* More Button Wrapper in Content Hub */
.hub-more-btn-wrapper {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.hub-more-btn-wrapper .btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: 'Cairo', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  border: 2px solid var(--primary);
  background: transparent;
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
}

.hub-more-btn-wrapper .btn-secondary:hover {
  background: var(--primary-tint);
  transform: translateY(-3px);
}

/* WhatsApp Testimonials Mockup */
.whatsapp-card {
  padding: 0 !important;
  background: #E5DDD5 !important; /* Classic WhatsApp background fallback */
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(6, 78, 59, 0.08);
  display: flex;
  flex-direction: column;
  height: 400px; /* Force consistent card height */
  text-align: right;
  direction: rtl;
}

.wa-header {
  background: var(--primary); /* Deep emerald green for WhatsApp header */
  color: var(--bg-cream);
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  flex-shrink: 0;
}

.wa-user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wa-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}

.wa-avatar span {
  font-size: 20px;
  color: var(--secondary) !important;
}

.wa-user-meta h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--bg-white) !important;
  margin: 0 0 2px 0;
  line-height: 1.2;
}

.wa-user-meta p {
  font-size: 11px;
  color: #A3C9BC !important;
  margin: 0;
  line-height: 1;
}

.wa-actions {
  display: flex;
  gap: 12px;
  opacity: 0.85;
}

.wa-actions span {
  font-size: 20px;
  cursor: pointer;
  color: var(--bg-white);
}

.wa-body {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background-image: url('https://user-images.githubusercontent.com/15075759/28719144-86dc0f70-73b1-11e7-911d-60d70fcded21.png'); /* WhatsApp chat background doodle */
  background-size: cover;
  background-repeat: repeat;
  overflow-y: auto;
}

.wa-date {
  align-self: center;
  background: rgba(255, 255, 255, 0.7);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  box-shadow: 0 1px 1px rgba(0,0,0,0.05);
  margin-bottom: 4px;
}

.wa-msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.5;
  position: relative;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

.wa-sent {
  align-self: flex-start;
  background: #E1F3EC;
  border-top-right-radius: 0;
}

.wa-received {
  align-self: flex-end;
  background: #FFFFFF;
  border-top-left-radius: 0;
}

.wa-msg p {
  margin: 0;
  color: #333333;
}

.wa-time {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  font-size: 9px;
  color: #8c8c8c;
  margin-top: 4px;
}

.wa-ticks {
  color: #4fc3f7;
  font-weight: bold;
}

/* login.html Styling */
.login-body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  width: 100%;
  max-width: 1200px;
  min-height: 700px;
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin: 20px;
  border: 1px solid rgba(6, 78, 59, 0.06);
}

/* Left Brand Panel */
.login-brand-panel {
  position: relative;
  background: var(--primary);
  background-image: url('https://user-images.githubusercontent.com/15075759/28719144-86dc0f70-73b1-11e7-911d-60d70fcded21.png'); /* Pattern overlay */
  background-size: cover;
  background-position: center;
  color: var(--bg-white);
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.brand-panel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(6, 78, 59, 0.95) 0%, rgba(15, 47, 35, 0.85) 100%);
  z-index: 1;
}

.brand-panel-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.brand-logo {
  display: inline-block;
}

.brand-logo img {
  height: 54px;
}

.badge-accent {
  display: inline-block;
  background: rgba(179, 143, 90, 0.2);
  color: var(--secondary);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 20px;
}

.brand-welcome-text h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--bg-white);
  line-height: 1.4;
  margin-bottom: 16px;
}

.brand-welcome-text p {
  color: rgba(251, 249, 245, 0.85);
  font-size: 16px;
  line-height: 1.6;
}

.brand-stats-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 30px;
}

.stats-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.stats-item span {
  font-size: 24px;
  color: var(--secondary);
}

.stats-item h5 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--bg-white);
}

.stats-item p {
  font-size: 13px;
  color: rgba(251, 249, 245, 0.7);
  margin: 0;
  line-height: 1.4;
}

/* Right Form Panel */
.login-form-panel {
  padding: 48px;
  background: var(--bg-white);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.back-home-link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  transition: var(--transition);
}

.back-home-link:hover {
  color: var(--primary);
  transform: translateX(-4px);
}

.back-home-link span {
  font-size: 18px;
}

.login-form-card {
  margin: auto 0;
  max-width: 480px;
  width: 100%;
}

.mobile-logo-wrapper {
  display: none;
  margin-bottom: 24px;
}

.mobile-logo-wrapper img {
  height: 48px;
}

.login-card-header {
  margin-bottom: 30px;
}

.login-card-header h3 {
  font-size: 24px;
  color: var(--primary);
  margin-bottom: 8px;
}

.login-card-header p {
  color: var(--text-muted);
  font-size: 15px;
}

/* Tabs */
.login-tabs {
  display: flex;
  background: var(--bg-cream);
  padding: 6px;
  border-radius: var(--radius-md);
  margin-bottom: 28px;
  gap: 4px;
}

.login-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  padding: 10px 12px;
  font-family: 'Cairo', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 6px;
  transition: var(--transition);
}

.login-tab-btn.active {
  background: var(--bg-white);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

/* Panes */
.login-pane {
  display: none;
}

.login-pane.active {
  display: block;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  right: 14px;
  color: var(--text-muted);
  font-size: 20px;
}

.input-wrapper input {
  width: 100%;
  padding: 12px 44px 12px 14px !important;
  border: 1px solid rgba(6, 78, 59, 0.15);
  border-radius: var(--radius-md);
  font-family: 'Tajawal', sans-serif;
  font-size: 14px;
  background: var(--bg-cream);
  transition: var(--transition);
}

.input-wrapper input:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--bg-white);
  box-shadow: 0 0 0 3px rgba(6, 78, 59, 0.08);
}

.form-actions-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  font-size: 13px;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  cursor: pointer;
}

.forgot-pass-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
}

.forgot-pass-link:hover {
  text-decoration: underline;
}

.pane-footer-text {
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 24px;
}

.pane-footer-text a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

.pane-footer-text a:hover {
  text-decoration: underline;
}

.form-row-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Responsive login screen */
@media (max-width: 900px) {
  .login-container {
    grid-template-columns: 1fr;
    max-width: 500px;
  }
  
  .login-brand-panel {
    display: none;
  }
  
  .mobile-logo-wrapper {
    display: block;
  }
  
  .login-form-panel {
    padding: 36px 24px;
  }
}

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

/* dashboard.html Styling */
.dashboard-body {
  background: var(--bg-cream);
  min-height: 100vh;
}

.dash-header {
  background: var(--bg-white);
  box-shadow: var(--shadow-sm);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(6, 78, 59, 0.05);
}

.dash-nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dash-nav-right {
  display: flex;
  align-items: center;
  gap: 32px;
}

.dash-nav-right .logo-container img {
  height: 48px;
}

/* Sibling Switcher Widget */
.sibling-switcher {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-cream);
  padding: 4px 12px;
  border-radius: 40px;
  border: 1px solid rgba(6, 78, 59, 0.06);
}

.switcher-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
}

.switcher-options {
  display: flex;
  gap: 8px;
}

.switcher-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  padding: 6px 14px;
  border-radius: 30px;
  font-family: 'Cairo', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.switcher-btn img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(6, 78, 59, 0.1);
}

.switcher-btn.active {
  background: var(--primary);
  color: var(--bg-white);
}

.switcher-btn.active img {
  border-color: var(--secondary);
}

.dash-back-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  transition: var(--transition);
}

.dash-back-btn:hover {
  color: #ba1a1a; /* Red for logout */
}

.dash-back-btn span {
  font-size: 18px;
}

/* Dashboard Grid Layout */
.dash-grid-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 30px;
  padding: 40px 0;
}

.dash-main-canvas {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.dash-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Welcome Card */
.dash-welcome-card {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius-lg);
  padding: 32px;
  color: var(--bg-white);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.dash-welcome-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('https://user-images.githubusercontent.com/15075759/28719144-86dc0f70-73b1-11e7-911d-60d70fcded21.png');
  background-size: cover;
  opacity: 0.03;
  z-index: 1;
}

.welcome-card-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 2;
}

.badge-gold {
  display: inline-block;
  background: rgba(179, 143, 90, 0.2);
  color: var(--secondary);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
}

.welcome-card-text h2 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.4;
}

.welcome-card-text p {
  color: rgba(251, 249, 245, 0.85);
  font-size: 15px;
}

.welcome-card-avatar img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 3px solid var(--secondary);
  background: var(--bg-cream);
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}

/* Dynamic Zoom Card */
.zoom-btn-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(6, 78, 59, 0.06);
}

.zoom-card-body {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.zoom-card-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.icon-zoom {
  font-size: 40px;
  color: var(--primary);
  opacity: 0.8;
}

.zoom-card-info h4 {
  font-size: 16px;
  color: var(--primary);
  margin-bottom: 4px;
}

.zoom-card-info p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}

.dynamic-zoom-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: var(--radius-md);
  font-family: 'Cairo', sans-serif;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.dynamic-zoom-btn span {
  font-size: 22px;
}

/* Disabled Zoom Button */
.dynamic-zoom-btn.disabled {
  background: #E0E0E0;
  color: #9E9E9E;
  cursor: not-allowed;
  box-shadow: none;
  pointer-events: none;
}

/* Active Zoom Button */
.dynamic-zoom-btn.active-live {
  background: #25D366; /* Bright WhatsApp green */
  color: var(--bg-white);
  animation: pulse-emerald 2s infinite;
  pointer-events: auto;
  cursor: pointer;
}

.dynamic-zoom-btn.active-live:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(37, 211, 102, 0.4);
}

@keyframes pulse-emerald {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* Gamification Progress Widget */
.gamification-widget-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(6, 78, 59, 0.06);
}

.gami-widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.gami-widget-header h4 {
  font-size: 16px;
  color: var(--primary);
}

.points-badge {
  background: var(--primary-tint);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 700;
  border: 1px solid rgba(6, 78, 59, 0.1);
}

.gami-progress-bar {
  height: 16px;
  background: var(--bg-cream);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 16px;
  border: 1px solid rgba(6, 78, 59, 0.06);
}

.gami-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--secondary) 0%, #D4AF37 100%);
  border-radius: 10px;
  transition: width 0.8s ease-in-out;
}

.gami-widget-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
}

.gami-widget-footer p {
  margin: 0;
  font-weight: 500;
}

/* Quick Navigation Cards Grid */
.quick-nav-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.quick-card {
  background: var(--bg-white);
  border: 1px solid rgba(6, 78, 59, 0.06);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  text-align: right;
  font-family: inherit;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.quick-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(6, 78, 59, 0.15);
}

.quick-card-link {
  text-decoration: none;
}

.quick-card-link .quick-card {
  height: 100%;
  width: 100%;
}

.quick-card-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.quick-card-icon span {
  font-size: 26px;
  font-variation-settings: 'FILL' 1;
}

.card-icon-green {
  background: #E8F5E9;
  color: #2E7D32;
}

.card-icon-gold {
  background: #FFF8E1;
  color: #FF8F00;
}

.card-icon-blue {
  background: #E3F2FD;
  color: #1565C0;
}

.card-icon-purple {
  background: #F3E5F5;
  color: #6A1B9A;
}

.quick-card-text h4 {
  font-size: 15px;
  color: var(--primary);
  margin-bottom: 4px;
}

.quick-card-val {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 2px;
}

.quick-card-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}

.card-badge-alert {
  display: inline-block;
  background: #FFEBEE;
  color: #C62828;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  margin-top: 4px;
  animation: pulse-red-alert 2s infinite;
}

@keyframes pulse-red-alert {
  0% { opacity: 0.7; }
  50% { opacity: 1; }
  100% { opacity: 0.7; }
}

/* Simulator Sidebar Panel */
.simulator-card {
  background: var(--bg-white);
  border: 1px solid rgba(179, 143, 90, 0.25);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 90px;
}

.sim-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(6, 78, 59, 0.05);
  padding-bottom: 10px;
}

.sim-header span {
  font-size: 22px;
  color: var(--secondary);
}

.sim-header h4 {
  font-size: 15px;
  color: var(--primary);
}

.simulator-card p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 20px;
}

.sim-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sim-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-cream);
  border: 1px solid rgba(6, 78, 59, 0.1);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
  transition: var(--transition);
  text-align: right;
  line-height: 1.4;
}

.sim-btn span:first-child {
  font-size: 18px;
  flex-shrink: 0;
}

.sim-btn:hover {
  background: var(--primary-tint);
  border-color: var(--primary);
}

.sim-btn-gold {
  background: rgba(179, 143, 90, 0.1);
  border-color: rgba(179, 143, 90, 0.3);
  color: var(--secondary);
}

.sim-btn-gold:hover {
  background: rgba(179, 143, 90, 0.2);
  border-color: var(--secondary);
}

.sim-btn-reset {
  background: #FFF5F5;
  border-color: #FEB2B2;
  color: #C53030;
}

.sim-btn-reset:hover {
  background: #FED7D7;
  border-color: #9B2C2C;
}

/* Modals Styling */
.modal-card {
  max-width: 500px;
  width: 90% !important;
  padding: 0 !important;
  overflow: hidden;
}

.modal-card-large {
  max-width: 700px;
}

.modal-header {
  background: var(--primary);
  color: var(--bg-white);
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-size: 16px;
  margin: 0;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--bg-white);
  cursor: pointer;
  display: flex;
  align-items: center;
}

.modal-close-btn span {
  font-size: 20px;
}

.modal-body {
  padding: 24px;
}

/* Last Score Details */
.score-summary-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--primary-tint);
  border: 4px solid var(--primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: var(--primary-dark);
}

.score-summary-circle h2 {
  font-size: 32px;
  font-weight: 700;
  margin: 0;
  line-height: 1.1;
}

.score-summary-circle span {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
}

.teacher-notes-box {
  background: var(--bg-cream);
  border-radius: var(--radius-md);
  padding: 18px;
  border: 1px solid rgba(6, 78, 59, 0.08);
  margin-bottom: 24px;
}

.teacher-info {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(6, 78, 59, 0.05);
  padding-bottom: 10px;
  margin-bottom: 12px;
}

.teacher-info span {
  font-size: 24px;
  color: var(--primary);
}

.teacher-info strong {
  font-size: 14px;
  color: var(--primary);
}

.teacher-info p {
  font-size: 11px;
  color: var(--text-muted);
  margin: 0;
}

.teacher-notes-text {
  font-size: 13px;
  line-height: 1.6;
  color: #333333;
  margin: 0;
  font-style: italic;
}

/* Grades Table */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.grades-table {
  width: 100%;
  border-collapse: collapse;
  text-align: right;
  font-size: 13px;
}

.grades-table th, .grades-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(6, 78, 59, 0.06);
}

.grades-table th {
  background: var(--bg-cream);
  color: var(--primary);
  font-weight: 700;
}

.grades-table tr:hover {
  background: rgba(6, 78, 59, 0.02);
}

/* Rewards Gallery */
.rewards-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.reward-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px;
  background: var(--bg-cream);
  border-radius: var(--radius-md);
  border: 1px solid rgba(6, 78, 59, 0.05);
}

.reward-item.locked {
  opacity: 0.6;
}

.reward-item span {
  font-size: 36px;
  margin-bottom: 10px;
}

.reward-item h5 {
  font-size: 13px;
  color: var(--primary);
  margin-bottom: 4px;
  font-weight: 700;
}

.reward-item p {
  font-size: 10px;
  color: var(--text-muted);
  margin: 0;
}

/* Dashboard Responsive Layout */
@media (max-width: 991px) {
  .dash-grid-layout {
    grid-template-columns: 1fr;
    padding: 24px 16px;
  }
  
  .simulator-card {
    position: static;
  }
}

@media (max-width: 768px) {
  .dash-nav-right {
    gap: 16px;
  }
  
  .switcher-label {
    display: none;
  }
  
  .welcome-card-content {
    flex-direction: column-reverse;
    align-items: center;
    text-align: center;
    gap: 20px;
  }
  
  .welcome-card-text {
    text-align: center;
  }
  
  .zoom-card-body {
    flex-direction: column;
    align-items: stretch;
  }
  
  .zoom-card-info {
    text-align: center;
    flex-direction: column;
  }
  
  .dynamic-zoom-btn {
    width: 100%;
    justify-content: center;
  }
  
  .quick-nav-grid {
    grid-template-columns: 1fr;
  }
  
  .rewards-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* session-report.html Styling */
.report-grid-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 30px;
  padding: 40px 0;
}

.report-details-canvas {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.report-rewards-canvas {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.report-main-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(6, 78, 59, 0.06);
}

.report-card-header {
  border-bottom: 1px solid rgba(6, 78, 59, 0.06);
  padding-bottom: 20px;
  margin-bottom: 24px;
}

.report-card-header h2 {
  font-size: 24px;
  color: var(--primary-dark);
  margin-top: 10px;
  margin-bottom: 12px;
  font-weight: 700;
}

.report-meta {
  display: flex;
  gap: 24px;
  font-size: 14px;
  color: var(--text-muted);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.meta-item span:first-child {
  font-size: 18px;
  color: var(--primary);
}

/* Metrics Grid inside Report */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.metric-box {
  background: var(--bg-cream);
  border: 1px solid rgba(6, 78, 59, 0.05);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.highlight-metric {
  background: var(--primary-tint);
  border-color: rgba(6, 78, 59, 0.15);
}

.metric-box span {
  font-size: 32px;
  flex-shrink: 0;
}

.metric-icon-green { color: #2E7D32; }
.metric-icon-gold { color: #FF8F00; }
.metric-icon-purple { color: #6A1B9A; }
.metric-icon-emerald { color: var(--primary); }

.metric-info span {
  font-size: 12px;
  color: var(--text-muted);
  display: block;
}

.metric-info h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 4px 0 0;
}

.report-notes-section {
  background: rgba(179, 143, 90, 0.05);
  border-right: 4px solid var(--secondary);
  padding: 20px;
  border-radius: 4px;
}

.report-notes-section h4 {
  font-size: 15px;
  color: var(--primary);
  margin-bottom: 8px;
}

.report-notes-body {
  font-size: 14px;
  line-height: 1.6;
  color: #444444;
  margin: 0;
  font-style: italic;
}

/* Parent Feedback Card */
.parent-feedback-card {
  background: var(--bg-white);
  border: 1px solid rgba(6, 78, 59, 0.06);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.feedback-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.feedback-card-header h4 {
  font-size: 16px;
  color: var(--primary-dark);
  margin: 0;
}

.feedback-card-header span {
  font-size: 24px;
}

.feedback-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FFF8E1;
  color: #FF8F00;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  width: 100%;
  margin-bottom: 20px;
}

.feedback-status-badge.submitted {
  background: #E8F5E9;
  color: #2E7D32;
}

.feedback-status-badge span:first-child {
  font-size: 18px;
}

.reply-form .form-group {
  margin-bottom: 16px;
}

.reply-form label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.reply-form textarea {
  width: 100%;
  border: 1px solid rgba(6, 78, 59, 0.15);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-family: inherit;
  font-size: 14px;
  resize: vertical;
  background: var(--bg-cream);
  transition: var(--transition);
}

.reply-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--bg-white);
  box-shadow: 0 0 0 3px rgba(6, 78, 59, 0.05);
}

/* Submitted Reply View */
.reply-submitted-view {
  background: var(--bg-cream);
  border-radius: var(--radius-md);
  padding: 20px;
  border: 1px solid rgba(6, 78, 59, 0.06);
}

.submitted-note strong {
  font-size: 14px;
  color: var(--primary);
  display: block;
  margin-bottom: 6px;
}

.submitted-note p {
  font-size: 13px;
  line-height: 1.5;
  color: #333333;
  margin: 0 0 8px 0;
  font-style: italic;
}

.reply-time {
  font-size: 11px;
  color: var(--text-muted);
}

/* Corrections Grid */
.images-card-header {
  border-bottom: 1px solid rgba(6, 78, 59, 0.06);
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.images-card-header h4 {
  font-size: 16px;
  color: var(--primary-dark);
  margin-bottom: 6px;
}

.images-card-header p {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
}

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

.grid-img-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(6, 78, 59, 0.08);
  cursor: pointer;
  background: var(--bg-cream);
  aspect-ratio: 4 / 3;
}

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

.grid-img-card:hover img {
  transform: scale(1.08);
}

.grid-img-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 78, 59, 0.6) 0%, transparent 60%);
  opacity: 0.8;
  transition: var(--transition);
}

.grid-img-card:hover::after {
  opacity: 0.9;
}

.img-label {
  position: absolute;
  bottom: 10px;
  right: 12px;
  z-index: 2;
  color: var(--bg-white);
  font-size: 12px;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* Lightbox Modal */
.lightbox-container {
  position: relative;
  max-width: 900px;
  width: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-close {
  position: absolute;
  top: -45px;
  left: 0;
  background: transparent;
  border: none;
  color: var(--bg-white);
  cursor: pointer;
  display: flex;
  align-items: center;
}

.lightbox-close span {
  font-size: 32px;
}

.lightbox-image-wrapper {
  background: var(--bg-white);
  padding: 8px;
  border-radius: var(--radius-md);
  width: 100%;
  max-height: 75vh;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  overflow: hidden;
}

.lightbox-image-wrapper img {
  max-width: 100%;
  max-height: 72vh;
  object-fit: contain;
}

.lightbox-caption {
  color: var(--bg-white);
  font-size: 14px;
  font-weight: 700;
  margin-top: 16px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
  text-align: center;
}

/* Responsive Session Report Layout */
@media (max-width: 991px) {
  .report-grid-layout {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px 16px;
  }
}

@media (max-width: 576px) {
  .report-main-card, .parent-feedback-card {
    padding: 20px;
  }
  
  .metrics-grid {
    grid-template-columns: 1fr;
  }
  
  .corrections-image-grid {
    grid-template-columns: 1fr;
  }
}

/* Achievements Showcase Styles (Stitch Gamified Design) */
.achievements-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(6, 78, 59, 0.06);
  position: relative;
  overflow: hidden;
}

.rewards-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(6, 78, 59, 0.06);
  padding-bottom: 20px;
  margin-bottom: 24px;
}

.rewards-card-header h4 {
  font-size: 20px;
  color: var(--primary-dark);
  font-weight: 700;
  margin: 0;
}

.rewards-showcase-body {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: center;
}

/* Points Showcase Badge */
.session-points-showcase {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 170px;
  height: 170px;
  margin: 10px 0;
}

.session-points-circle {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: linear-gradient(135deg, #b38f5a, #d4af37);
  box-shadow: 0 8px 24px rgba(179, 143, 90, 0.35), inset 0 2px 4px rgba(255,255,255,0.4);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--bg-white);
  position: relative;
  z-index: 5;
  border: 3px solid var(--bg-white);
  animation: float-badge 4s ease-in-out infinite;
}

.points-plus {
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  color: #fffde7;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.points-number {
  font-size: 48px;
  font-weight: 900;
  line-height: 1;
  font-family: 'Cairo', sans-serif;
  color: var(--bg-white);
  text-shadow: 0 2px 4px rgba(0,0,0,0.25);
  margin: 2px 0;
}

.points-lbl {
  font-size: 13px;
  font-weight: 700;
  color: #f7ebd3;
  text-transform: uppercase;
}

.points-badge-shine {
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(179, 143, 90, 0.15) 0%, rgba(179, 143, 90, 0) 70%);
  animation: pulse-shine 3s ease-in-out infinite;
  z-index: 1;
}

@keyframes float-badge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes pulse-shine {
  0%, 100% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.1); opacity: 1; }
}

/* Badges Showcase */
.session-badges-section {
  width: 100%;
}

.session-badges-section h5 {
  font-size: 15px;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 12px;
  border-right: 3px solid var(--gold);
  padding-right: 8px;
}

.session-badges-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.earned-badge-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: linear-gradient(135deg, rgba(179, 143, 90, 0.05) 0%, rgba(179, 143, 90, 0.02) 100%);
  border: 1px solid rgba(179, 143, 90, 0.15);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.earned-badge-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(179, 143, 90, 0.08);
  border-color: rgba(179, 143, 90, 0.3);
}

.badge-showcase-icon {
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.badge-showcase-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.badge-showcase-info h6 {
  font-size: 15px;
  color: var(--primary-dark);
  font-weight: 700;
  margin: 0;
}

.badge-showcase-info p {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
}

.no-badges-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(6, 78, 59, 0.02);
  border: 1px dashed rgba(6, 78, 59, 0.12);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 13px;
  text-align: center;
  gap: 8px;
}

.no-badges-placeholder span {
  font-size: 24px;
  color: var(--primary-tint);
}

/* Impact Meter */
.rewards-impact-section {
  width: 100%;
  border-top: 1px solid rgba(6, 78, 59, 0.06);
  padding-top: 20px;
}

.rewards-impact-section h5 {
  font-size: 15px;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 12px;
  border-right: 3px solid var(--gold);
  padding-right: 8px;
}

.impact-progress-container {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
}

.impact-progress-bar {
  flex-grow: 1;
  height: 12px;
  background: rgba(6, 78, 59, 0.06);
  border-radius: 6px;
  overflow: hidden;
}

.impact-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), #d4af37);
  border-radius: 6px;
  transition: width 0.8s ease-in-out;
}

.impact-percentage {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-dark);
  min-width: 32px;
}

.impact-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* Classroom Dashboard Layout Styles */
.classroom-body {
  background-color: #0f172a; /* Slate-900 dark theme for video rooms */
  color: #f8fafc;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.classroom-header-bar {
  background: #1e293b; /* Slate-800 */
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-logo-section {
  display: flex;
  align-items: center;
  gap: 16px;
}

.classroom-logo {
  height: 40px;
}

.header-title-wrapper h3 {
  font-size: 18px;
  font-weight: 800;
  color: #f8fafc;
  margin: 0;
  font-family: 'Cairo', sans-serif;
}

.classroom-session-type {
  font-size: 12px;
  color: #94a3b8;
  margin: 2px 0 0 0;
}

.header-classroom-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.session-timer-badge {
  background: rgba(0,0,0,0.25);
  padding: 6px 12px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  font-weight: 700;
  color: #38bdf8;
  display: flex;
  align-items: center;
  gap: 6px;
}

.animated-rec-dot {
  color: #ef4444;
  font-size: 16px;
  animation: rec-pulse 1.5s infinite alternate;
}

@keyframes rec-pulse {
  0% { opacity: 0.3; }
  100% { opacity: 1; }
}

.btn-end-session {
  background: #ef4444;
  color: #fff;
  border: none;
  font-size: 13.5px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-end-session:hover {
  background: #dc2626;
  transform: translateY(-1px);
}

/* Classroom Grid Layout */
.classroom-grid-layout {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 24px;
  padding: 24px;
  flex-grow: 1;
}

/* Video Grid Area */
.video-grid-section {
  display: flex;
  flex-direction: column;
}

.video-feeds-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 16px;
  height: calc(100vh - 130px);
  min-height: 500px;
}

.video-feed-card {
  background: #1e293b;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.04);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}

.video-feed-card.teacher-feed {
  background: radial-gradient(circle at center, #1e293b, #0f172a);
  border-color: rgba(179, 143, 90, 0.15);
}

.video-feed-card.active-reciting {
  border-color: #0284c7;
  box-shadow: 0 0 25px rgba(2, 132, 199, 0.45);
}

.video-feed-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  color: #e2e8f0;
}

.teacher-avatar-glow {
  font-size: 64px;
  filter: drop-shadow(0 0 10px rgba(179, 143, 90, 0.3));
}

.feed-student-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.1);
  object-fit: cover;
  transition: transform 0.4s ease;
}

.video-feed-card.active-reciting .feed-student-avatar {
  border-color: #0284c7;
  transform: scale(1.05);
  animation: avatar-float 3s ease-in-out infinite;
}

@keyframes avatar-float {
  0%, 100% { transform: scale(1.05) translateY(0); }
  50% { transform: scale(1.05) translateY(-6px); }
}

.feed-status-text {
  font-size: 13px;
  color: #94a3b8;
  margin: 0;
  font-weight: 600;
}

/* Moderation Overlays and Toolbars */
.feed-moderation-toolbar {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  gap: 8px;
  z-index: 10;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.video-feed-card:hover .feed-moderation-toolbar {
  opacity: 1;
}

.mod-btn {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.mod-btn:hover {
  background: var(--primary);
  color: var(--bg-white);
  border-color: var(--primary);
  transform: scale(1.05);
}

.mod-btn.btn-danger-tint:hover {
  background: #ef4444;
  border-color: #ef4444;
  color: white;
}

.feed-overlay-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4px 10px;
  border-radius: 30px;
  font-size: 11.5px;
  font-weight: 700;
  color: #f8fafc;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 5;
}

.feed-overlay-badge.badge-primary {
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.2);
}

.rec-pulsing-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

.rec-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ef4444;
  animation: rec-pulse 1s infinite alternate;
}

.cam-off-overlay {
  position: absolute;
  inset: 0;
  background: #0f172a;
  z-index: 4;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  color: #64748b;
}

.cam-off-overlay span {
  font-size: 40px;
}

.cam-off-overlay p {
  font-size: 12px;
  font-weight: 600;
  margin: 0;
}

.reciting-glow-border {
  position: absolute;
  inset: 0;
  border: 3px solid transparent;
  border-radius: var(--radius-lg);
  pointer-events: none;
  z-index: 6;
  transition: border-color 0.3s ease;
}

.video-feed-card.active-reciting .reciting-glow-border {
  border-color: #38bdf8;
  animation: border-glow-pulse 2s infinite;
}

@keyframes border-glow-pulse {
  0%, 100% { box-shadow: inset 0 0 15px rgba(56, 189, 248, 0.4); }
  50% { box-shadow: inset 0 0 25px rgba(56, 189, 248, 0.7); }
}

/* Sidebar Panel styles */
.classroom-sidebar-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.student-switcher-tabs {
  display: flex;
  gap: 8px;
  background: #1e293b;
  padding: 6px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.student-switcher-tabs .tab-btn {
  flex-grow: 1;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 14px;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Cairo', sans-serif;
}

.student-switcher-tabs .tab-btn:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #f8fafc;
}

.student-switcher-tabs .tab-btn.active {
  background: var(--primary);
  color: var(--bg-white);
  box-shadow: var(--shadow-sm);
}

.switcher-panel-card {
  flex-grow: 1;
  background: #1e293b !important; /* Overriding body white card */
  border-color: rgba(255, 255, 255, 0.06) !important;
  color: #f8fafc !important;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.active-student-profile {
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 16px;
}

.active-profile-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.1);
  object-fit: cover;
}

.active-profile-info h4 {
  font-size: 18px;
  font-weight: 800;
  color: #f8fafc;
  margin: 0;
}

.active-profile-info .points-badge {
  background: rgba(179, 143, 90, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(179, 143, 90, 0.3);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  display: inline-block;
  margin-top: 4px;
}

.active-target-box {
  background: rgba(15, 23, 42, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: 12px 16px;
}

.active-target-box h5 {
  font-size: 14px;
  font-weight: 700;
  color: #38bdf8;
  margin-bottom: 6px;
  border-right: 3px solid #38bdf8;
  padding-right: 8px;
}

.active-target-box p {
  font-size: 13.5px;
  color: #cbd5e1;
  margin: 0;
}

.recitation-trigger-wrapper {
  background: rgba(6, 78, 59, 0.05);
  border: 1px solid rgba(6, 78, 59, 0.15);
  border-radius: var(--radius-md);
  padding: 12px;
}

.recitation-trigger-help {
  font-size: 11px;
  color: #94a3b8;
  margin: 8px 0 0 0;
  line-height: 1.4;
  text-align: center;
}

/* Error Logger Grid */
.error-logger-section h5 {
  font-size: 14px;
  font-weight: 700;
  color: #fbbf24;
  margin-bottom: 12px;
  border-right: 3px solid #fbbf24;
  padding-right: 8px;
}

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

.error-btn {
  border-radius: var(--radius-md);
  padding: 10px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-family: 'Cairo', sans-serif;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition);
}

.err-memorization {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
  color: #f87171;
}

.err-memorization:hover {
  background: #ef4444;
  color: white;
  border-color: #ef4444;
  transform: translateY(-1px);
}

.err-tajweed {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.3);
  color: #fbbf24;
}

.err-tajweed:hover {
  background: #f59e0b;
  color: white;
  border-color: #f59e0b;
  transform: translateY(-1px);
}

.err-behavior {
  background: rgba(168, 85, 247, 0.15);
  border-color: rgba(168, 85, 247, 0.3);
  color: #c084fc;
}

.err-behavior:hover {
  background: #a855f7;
  color: white;
  border-color: #a855f7;
  transform: translateY(-1px);
}

.err-refund {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.3);
  color: #34d399;
}

.err-refund:hover {
  background: #10b981;
  color: white;
  border-color: #10b981;
  transform: translateY(-1px);
}

/* Dynamic Grade Invoice */
.grade-invoice-panel {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: 16px;
}

.grade-invoice-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 10px;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 700;
  color: #cbd5e1;
}

.invoice-grade-highlight {
  font-size: 20px;
  font-weight: 900;
  color: #10b981;
  text-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

.grade-invoice-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.invoice-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #94a3b8;
}

.invoice-row strong {
  color: #cbd5e1;
}

/* Dismiss Card Button */
.btn-dismiss-card:hover {
  background: #ef4444 !important;
  color: white !important;
  border-color: #ef4444 !important;
}

/* CLASSROOM SUMMARY TABLE */
.classroom-summary-card {
  color: var(--primary-dark) !important;
}

.classroom-summary-card h3 {
  color: var(--primary-dark) !important;
  font-weight: 800;
}

.classroom-summary-card p {
  color: var(--text-muted) !important;
}

.classroom-summary-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 13.5px;
}

.classroom-summary-table th, .classroom-summary-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  text-align: right;
  color: var(--primary-dark) !important; /* Forces dark color for names and targets */
}

.classroom-summary-table td strong {
  color: var(--primary-dark) !important;
}

.classroom-summary-table th {
  font-weight: 700;
  color: var(--primary-dark) !important;
  background: rgba(6, 78, 59, 0.05);
}

.classroom-summary-table td .score-badge {
  background: rgba(16, 185, 129, 0.1);
  color: #0f766e !important;
  padding: 4px 10px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 12.5px;
  white-space: nowrap !important;
  display: inline-block;
}

.classroom-summary-table td .points-plus {
  color: #b38f5a !important; /* Golden/Bronze readable color */
  font-size: 14px !important;
  font-weight: 700 !important;
  text-shadow: none !important;
}

.badge-item-tag {
  background: rgba(179, 143, 90, 0.12);
  color: #9a3412 !important;
  border: 1px solid rgba(179, 143, 90, 0.25);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
}

/* Media Queries for Classroom */
@media (max-width: 1199px) {
  .classroom-grid-layout {
    grid-template-columns: 1fr;
  }
  .video-feeds-container {
    height: auto;
    min-height: auto;
    grid-template-columns: 1fr 1fr;
  }
  .video-feed-card {
    aspect-ratio: 4 / 3;
  }
}

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