/* ===================================
   CSS VARIABLES - CHANGE COLORS HERE
   =================================== */
:root {
  /* Primary Colors */
  --primary-color: #e81123;
  --primary-shade: #e76e6e;
  --primary-dark: #1e40af;
  --primary-light: #dbeafe;

  /* Secondary Colors */
  --secondary-color: #10b981;
  --secondary-dark: #059669;
  --secondary-light: #d1fae5;

  /* Neutral Colors */
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --text-muted: #9ca3af;
  --background: #ffffff;
  --background-alt: #f9fafb;
  --background-dark: #f3f4f6;

  /* Accent Colors */
  --accent-orange: #f59e0b;
  --accent-red: #ef4444;
  --accent-purple: #8b5cf6;

  /* Border & Shadow */
  --border-color: #e5e7eb;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

  /* Modal & Overlay */
  --modal-overlay: rgba(0, 0, 0, 0.7);
  --modal-page-background: #e0e0e0;
  --page-white: #ffffff;
  --button-hover-shadow: 0 4px 12px rgba(232, 17, 35, 0.3);

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.85rem;
  --radius-xl: 1rem;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 500ms ease;

  /* Typography */
  --font-family: "Lexend", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --font-size-5xl: 3rem;
}

/* ===================================
   RESET & BASE STYLES
   =================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--background);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

/* ===================================
   UTILITY CLASSES
   =================================== */
.container {
  /* max-width: 1800px; */
  max-width: 100%;
  margin: 0 auto;
  /* padding: 0 var(--spacing-md); */
}

.containerhome {
  max-width: 1400px;
  /* max-width: 100%; */
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.section-title {
  font-size: var(--font-size-4xl);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: var(--spacing-sm);
  text-align: center;
}

.section-subtitle {
  font-size: var(--font-size-lg);
  color: var(--text-light);
  text-align: center;
  margin-bottom: var(--spacing-xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ===================================
   FEATURE CARDS
   =================================== */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
  /* max-width: 1200px; */
  margin: 0 auto;
}

.feature-cards {
  background: var(--background-alt);
  padding: var(--spacing-md);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  transition: all var(--transition-base);
  text-align: left;
  box-shadow: var(--shadow-xl);
}

.feature-cards:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.feature-cards i {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: var(--spacing-sm);
}

.feature-cards h5 {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: var(--spacing-xs);
}

.feature-cards p {
  font-size: var(--font-size-sm);
  margin: 0;
}

/* ===================================
   NAVIGATION
   =================================== */
.navbar {
  background: var(--background);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow var(--transition-base);
}

/* Mobile navigation - Solid background with shadow */
@media (max-width: 1024px) {
  .navbar {
    background: var(--background);
    backdrop-filter: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  }

  :root[data-theme="dark"] .navbar {
    background: var(--background);
    backdrop-filter: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  }
}

.navbar.scrolled {
  box-shadow: var(--shadow-lg);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-sm) var(--spacing-md);
}

.logo a {
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--primary-color);
}

.nav-menu {
  display: flex;
  gap: var(--spacing-xs);
  align-items: center;
}

.nav-menu a {
  color: var(--text-dark);
  font-weight: 500;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-xl);
  transition: all var(--transition-fast);
  font-size: var(--font-size-sm);
}

/* Hide mobile-only elements on desktop */
.mobile-menu-header,
.mobile-logout {
  display: none;
}

@media (max-width: 1024px) {
  .mobile-menu-header,
  .mobile-logout {
    display: block;
  }
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--background);
  background: var(--primary-color);
  transition: all var(--transition-base);
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--background);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
  padding: var(--spacing-sm);
  min-width: 250px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition-base);
  margin-top: 1.5rem;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  margin: 10;
  padding: 0rem 0;
}

.dropdown-menu a {
  display: block;
  padding: var(--spacing-sm);
  border-radius: var(--radius-sm);
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: var(--spacing-xs);
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* ===================================
   BUTTONS
   =================================== */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  font-size: var(--font-size-base);
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  cursor: pointer;
  text-align: center;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background: var(--background);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--primary-color);
}

.btn-secondary {
  background: var(--background);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background: var(--primary-color);
  color: white;
}

.btn-block {
  display: block;
  width: 100%;
}

/* ===================================
   NEW HERO SECTION STYLES
   =================================== */

.hero {
  position: relative;
  min-height: 2%;
  padding: var(--spacing-2xl) 0;
  /* background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%); */
  background: linear-gradient(
    135deg,
    var(--primary-color) 10%,
    #c80530 100%,
    var(--primary-color) 100%
  );
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* Animated Gradient Blobs */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.3;
  animation: float 20s ease-in-out infinite;
}

.hero::before {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
  top: -200px;
  right: -150px;
  animation-delay: 0s;
}

.hero::after {
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    var(--secondary-color) 0%,
    transparent 70%
  );
  bottom: -200px;
  left: -150px;
  animation-delay: 7s;
}

.hero-container::before {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  /* background: radial-gradient(circle, var(--accent-purple) 0%, transparent 70%); */
  top: 50%;
  right: 10%;
  transform: translateY(-50%);
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.25;
  animation: float 25s ease-in-out infinite;
  animation-delay: 3s;
  z-index: 0;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(40px, -60px) rotate(5deg);
  }
  50% {
    transform: translate(-50px, 40px) rotate(-5deg);
  }
  75% {
    transform: translate(30px, 30px) rotate(3deg);
  }
}

.hero-container {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  align-items: center;
  z-index: 1;
}

.hero-content {
  animation: fadeInUp 0.8s ease;
  position: relative;
  z-index: 2;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title {
  font-size: var(--font-size-5xl);
  font-weight: 800;
  line-height: 1.2;
  color: var(--background);
  margin-bottom: var(--spacing-md);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0);
}

.hero-subtitle {
  font-size: var(--font-size-sm);
  color: var(--text-light);
  margin-bottom: var(--spacing-lg);
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-xl);
}

.hero-stats {
  display: flex;
  gap: var(--spacing-xl);
  padding-top: var(--spacing-lg);
  border-top: 2px solid rgba(255, 255, 255, 0.1);
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  color: var(--background);
}

.stat-label {
  font-size: var(--font-size-sm);
  color: #94a3b8;
  opacity: 0.9;
}

/* Hero Image - Abstract Visual */
.hero-image {
  position: relative;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInRight 0.8s ease;
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-visual {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Floating Cards/Elements */
.floating-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-xl);
  padding: var(--spacing-lg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  animation: floatCard 6s ease-in-out infinite;
  display: none;
}

.card-1 {
  width: 200px;
  height: 140px;
  top: 10%;
  right: 10%;
  animation-delay: 0s;
}

.card-2 {
  width: 180px;
  height: 120px;
  bottom: 20%;
  left: 5%;
  animation-delay: 2s;
}

.card-3 {
  width: 160px;
  height: 100px;
  top: 50%;
  right: 30%;
  animation-delay: 4s;
}

@keyframes floatCard {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(2deg);
  }
}

.card-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-shade)
  );
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: var(--font-size-lg);
}

.card-text {
  color: white;
  font-size: var(--font-size-sm);
  font-weight: 600;
}

/* Responsive */
@media (max-width: 968px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .hero-image {
    height: 300px;
    order: -1;
  }

  .hero-title {
    font-size: var(--font-size-3xl);
  }

  .floating-card {
    transform: scale(0.8);
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: auto;
    padding: var(--spacing-xl) 0;
  }

  .hero-title {
    font-size: var(--font-size-2xl);
  }

  .hero-subtitle {
    font-size: var(--font-size-base);
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-stats {
    flex-direction: column;
    gap: var(--spacing-md);
  }

  .hero-image {
    display: none;
  }
}

/* ===================================
   SUBJECTS SECTION
   =================================== */
.subjects-section {
  padding: var(--spacing-2xl) 0;
  background: var(--background);
}

.subjects-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-2xl);
  gap: var(--spacing-xl);
}

.subjects-title {
  flex: 0 0 45%;
}

.subjects-title .section-title {
  font-size: var(--font-size-3xl);
  color: var(--text-dark);
  margin-bottom: var(--spacing-sm);
}

.subjects-title .section-subtitle {
  font-size: var(--font-size-lg);
  color: var(--text-light);
  line-height: 1.6;
}

.level-tabs {
  display: flex;
  gap: var(--spacing-sm);
  background: var(--white);
  padding: 6px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.level-tab {
  padding: 12px 24px;
  border: none;
  background: transparent;
  color: var(--text-light);
  font-size: var(--font-size-base);
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.level-tab:hover {
  color: var(--primary-color);
  background: rgba(239, 68, 68, 0.05);
}

.level-tab.active {
  background: var(--primary-color);
  color: var(--background);
}

.level-content {
  display: none;
}

.level-content.active {
  display: grid;
}

.subjects-grid {
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.course-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  text-decoration: none;
  display: block;
}

.course-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.course-image {
  position: relative;
  height: 0px;

  display: flex;
  align-items: center;
  justify-content: center;
}

.course-category {
  padding: 8px 20px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  display: none;
}

.course-category.physics {
  background: rgba(59, 130, 246, 0.9);
}

.course-category.chemistry {
  background: rgba(16, 185, 129, 0.9);
}

.course-category.maths {
  background: rgba(245, 158, 11, 0.9);
}

.course-category.cs {
  background: rgba(139, 92, 246, 0.9);
}

.course-category.biology {
  background: rgba(236, 72, 153, 0.9);
}

.course-content {
  padding: 25px;
}

.course-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  font-size: 14px;
  color: var(--text-light);
}

.course-rating {
  display: flex;
  align-items: center;
  gap: 3px;
}

.course-rating i {
  color: #fbbf24;
  font-size: 12px;
}

.course-rating span {
  margin-left: 5px;
  color: var(--text-light);
}

.course-content h3 {
  font-size: 1.25rem;
  color: var(--text-dark);
  margin-bottom: 12px;
  font-weight: 700;
}

.course-content p {
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.course-footer {
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.card-link {
  color: var(--primary-color);
  font-weight: 600;
  display: inline-block;
  transition: transform var(--transition-fast);
  font-size: 0.95rem;
}

.course-card:hover .card-link {
  transform: translateX(5px);
}

@media (max-width: 768px) {
  .subjects-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .subjects-title {
    flex: 1;
  }

  .level-tabs {
    width: 100%;
    overflow-x: auto;
  }

  .subjects-grid {
    grid-template-columns: 1fr;
  }
}

/* ==================================
    WHY CHOOSE US SECTION
    ================================== */

.why-choose-section {
  padding: 100px 0;
  background: var(--primary-color);
  color: var(--white);
}

.why-choose-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.why-choose-text .section-label {
  color: var(--accent-color);
}

.why-choose-text h2 {
  color: var(--primary-light);
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.why-choose-text > p {
  opacity: 0.8;
  margin-bottom: 40px;
}

.features-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.feature-item {
  display: flex;
  gap: 15px;
}

.feature-item .feature-icon {
  width: 60px;
  height: 60px;
  background: var(--primary-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  color: var(--primary-color);
}

.feature-item h4 {
  margin-bottom: 8px;
  color: var(--background);
}

.feature-item p {
  font-size: 14px;
  opacity: 0.7;
}

.why-choose-image img {
  width: 100%;
  border-radius: 0px 0px 150px 0px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  opacity: 0.35;
}

/* ===================================
   VIDEO SECTION
   =================================== */
.video-section {
  padding: var(--spacing-2xl) 0;
  background: var(--background-alt);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
}

.video-card {
  background: var(--background);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.video-info {
  padding: var(--spacing-md);
}

.video-info h3 {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: var(--spacing-xs);
}

.video-info p {
  color: var(--text-light);
  font-size: var(--font-size-sm);
}

/* ===================================
   TESTIMONIALS SECTION
   =================================== */
.testimonials-section {
  padding: var(--spacing-2xl) 0;
  background: var(--background);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
}

.testimonial-card {
  background: var(--background-alt);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.testimonial-rating {
  font-size: var(--font-size-lg);
  margin-bottom: var(--spacing-md);
}

.testimonial-text {
  font-size: var(--font-size-base);
  color: var(--text-dark);
  line-height: 1.7;
  margin-bottom: var(--spacing-lg);
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--font-size-lg);
}

.author-info h4 {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.author-info p {
  font-size: var(--font-size-sm);
  color: var(--text-light);
}

/* ===================================
   ABOUT SECTION
   =================================== */

/* About Section */
.about-section {
  padding: 100px 0;
  background: var(--background-alt);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-images {
  position: relative;
}

.image-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: end;
}

.image-grid img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.image-grid img:first-child {
  grid-row: span 2;
}

.experience-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: var(--accent-color);
  color: var(--white);
  padding: 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 10px 300px rgba(220, 38, 38, 0.9);
}

.experience-badge i {
  font-size: 4rem;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 14px;
  text-transform: uppercase;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.about-text h2 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.about-text > p {
  color: var(--text-light);
  margin-bottom: 30px;
  line-height: 1.7;
}

.services {
  margin: 40px 0;
}

.service-item {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
}

.service-icon {
  width: 60px;
  height: 60px;
  background: var(--accent-color);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
  flex-shrink: 0;
}

.service-text h4 {
  color: var(--primary-color);
  margin-bottom: 5px;
}

.service-text p {
  color: var(--text-light);
  font-size: 14px;
}

.about-stats {
  display: flex;
  align-items: center;
  gap: 30px;
  margin: 40px 0;
}

.stat-text {
  flex: 1;
}

.stat-text p {
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.6;
}

.stat-number2 {
  font-size: 4rem;
  font-weight: 700;
  color: #dc2626;
}

.about-actions {
  display: flex;
  align-items: center;
  gap: 30px;
}

.about-actions .contact-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.about-actions .contact-info i {
  width: 50px;
  height: 50px;
  background: var(--accent-red);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===================================
   CTA - SECTION
   =================================== */

.cta-section {
  padding: 80px 0;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-light)
  );
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.cta-content {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

.cta-text h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.cta-text p {
  font-size: 1.1rem;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  flex-shrink: 0;
}

.cta-buttons .btn {
  padding: 15px 35px;
  font-size: 15px;
}

/* ===================================
   CONTACT SECTION (About Style)
   =================================== */

.contact-section {
  padding: var(--spacing-2xl) 0;
  background: var(--background-alt);
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-2xl);
  align-items: start;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* Left Side - Form */
.contact-form-wrapper {
  background: var(--background);
  padding: var(--spacing-2xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  box-shadow: 0 10px 300px rgba(220, 38, 38, 0.3);
  height: 730px;
}

.contact-form-wrapper h2 {
  font-size: var(--font-size-4xl);
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
  color: var(--text-dark);
}

.contact-form-wrapper > p {
  color: var(--text-light);
  margin-bottom: var(--spacing-xl);
  line-height: 1.7;
}

.form-group {
  margin-bottom: var(--spacing-md);
}

.form-group label {
  display: block;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: var(--spacing-xs);
  font-size: var(--font-size-sm);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: var(--spacing-sm);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  font-family: var(--font-family);
  font-size: var(--font-size-sm);
  transition: all var(--transition-base);
  background: var(--background);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(232, 17, 35, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.btn-submit {
  width: 100%;
  padding: var(--spacing-md);
  background: var(--primary-color);
  color: var(--background);
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: var(--font-size-base);
  cursor: pointer;
  transition: all var(--transition-base);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-submit:hover {
  background: #c00e1e;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(232, 17, 35, 0.3);
}

/* Right Side - Contact Info */
.contact-info-wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-weight: 900;
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  margin-bottom: var(--spacing-md);
  color: var(--primary-color);
}

.contact-info-wrapper h2 {
  font-size: var(--font-size-4xl);
  line-height: 1.2;
  margin-bottom: var(--spacing-lg);
  color: var(--text-dark);
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.contact-item {
  display: flex;
  gap: var(--spacing-lg);
  align-items: flex-start;
}

.contact-icon {
  width: 60px;
  height: 60px;
  background: var(--primary-color);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--background);
  font-size: var(--font-size-2xl);
  flex-shrink: 0;
}

.contact-details strong {
  display: block;
  color: var(--text-dark);
  margin-bottom: var(--spacing-xs);
  font-size: var(--font-size-base);
}

.contact-details p {
  color: var(--text-light);
  font-size: var(--font-size-sm);
  line-height: 1.6;
  margin: 0;
}

/* WhatsApp QR Code Section */
.whatsapp-qr-section {
  /* padding: var(--spacing-xl); */
  border-radius: var(--radius-lg);
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.whatsapp-qr-section h3 {
  color: var(--text-dark);
  margin-bottom: var(--spacing-md);
  font-size: var(--font-size-xl);
}

.whatsapp-qr-section p {
  color: var(--text-light);
  font-size: var(--font-size-sm);
  margin-bottom: var(--spacing-lg);
}

.qr-code-wrapper {
  display: inline-block;
  padding: var(--spacing-lg);
  background: var(--background);
  border-radius: var(--radius-lg);
  border: 2px solid var(--border-color);
  transition: all var(--transition-base);
}

.qr-code-wrapper:hover {
  transform: translateX(10px);
  box-shadow: 0 5px 150px rgba(220, 38, 38, 0.3);
  transition: all var(--transition-base);
}

.qr-code-wrapper img {
  width: 200px;
  height: 200px;
  display: block;
}

.whatsapp-button {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  margin-top: var(--spacing-lg);
  padding: var(--spacing-sm) var(--spacing-xl);
  background: #25d366;
  color: var(--background);
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 600;
  transition: all var(--transition-base);
}

.whatsapp-button:hover {
  background: #20ba5a;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.whatsapp-button i {
  font-size: var(--font-size-xl);
}

/* Responsive Design */
@media (max-width: 968px) {
  .contact-container {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
  }

  .contact-form-wrapper h2,
  .contact-info-wrapper h2 {
    font-size: var(--font-size-3xl);
  }

  .contact-form-wrapper {
    padding: var(--spacing-xl) var(--spacing-lg);
  }
}

/* ===================================
   FOOTER
   =================================== */

/* Footer */
.footer {
  background: var(--background);
  color: var(--text-dark);
  padding: 60px 20px 24px;
}

.footer-section {
    background: var(--background);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto 40px;
}

.footer-section h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 10px;
  text-decoration-color: var(--primary-color); /* any color */
}


.footer-section p,
.footer-section a {
  color: var(--text-light);
  font-size: 15px;
  line-height: 1.8;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 8px;
}

.footer-section a:hover {
  color: var(--primary-color);
}

.social-links {
  display: flex;
  gap: 16px;
  font-size: 24px;
}

.social-links a {
  transition: transform 0.2s;
}

.social-links a:hover {
  transform: scale(1.2);
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #9ca3af;
}

/* ===================================
   FLOATING CTA BUTTON
   =================================== */
.floating-cta {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--accent-red);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 5px;
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-weight: 600;
  z-index: 999;
  transition: all var(--transition-base);
  animation: pulse 2s infinite;
  display: none;
}

.floating-cta:hover {
  background: var(--secondary-dark);
  transform: translateY(-5px);
  box-shadow: 0 25px 30px -10px rgba(0, 0, 0, 0.2);
}

.cta-icon {
  font-size: var(--font-size-xl);
}

/* ===================================
   ANIMATIONS
   =================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 1024px) {
  /* Navigation */
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 60px;
    left: -100%;
    width: 320px;
    max-width: 85vw;
    height: calc(100vh - 60px);
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(25px);
    flex-direction: column;
    padding: var(--spacing-md);
    transition: left var(--transition-base);
    box-shadow: 4px 0 30px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
    gap: 0;
  }

  :root[data-theme="dark"] .nav-menu {
    background: rgba(34, 34, 34, 0.75);
    box-shadow: 4px 0 30px rgba(0, 0, 0, 0.5);
  }

  .nav-menu.active {
    left: 0;
  }

  /* Mobile Menu Header */
  .mobile-menu-header {
    font-size: 0.875rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    color: var(--text-dark);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-xs);
    border-bottom: 3px solid var(--primary-color);
    text-align: left;
  }

  .nav-menu li {
    width: 100%;
    margin-bottom: 0;
  }

  .nav-menu li a {
    display: block;
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    margin: 0.15rem 0;
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    transition: all var(--transition-fast);
  }

  /* Subjects Toggle Button */
  .subjects-toggle {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
  }

  .toggle-icon {
    font-size: 0.875rem;
    transition: transform var(--transition-fast);
  }

  /* Mobile Logout Section */
  .mobile-logout {
    margin-top: auto;
    padding-top: var(--spacing-md);
    border-top: 3px solid var(--primary-color);
  }

  .mobile-logout .logout-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    background: var(--primary-color);
    color: white !important;
    font-weight: 700;
    padding: var(--spacing-md) !important;
    box-shadow: 0 2px 10px rgba(232, 17, 35, 0.3);
  }

  .mobile-logout .logout-link:hover {
    background: var(--primary-dark);
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(232, 17, 35, 0.4);
  }

  /* Subjects dropdown - Collapsible accordion style on mobile */
  .mobile-subjects-dropdown {
    position: static !important;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.4s ease, opacity 0.9s ease, padding 0.3s ease;
    background: rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
    margin: 0.25rem 0;
    padding: 0;
    border-radius: var(--radius-md);
    box-shadow: none;
  }

  :root[data-theme="dark"] .mobile-subjects-dropdown {
    background: rgba(255, 255, 255, 0.05);
  }

  .mobile-subjects-dropdown.active {
    max-height: 500px;
    opacity: 1;
    visibility: visible;
    padding: var(--spacing-sm);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.1);
  }

  /* Style subjects dropdown content */
  .mobile-subjects-dropdown .board-item,
  .mobile-subjects-dropdown .level-item,
  .mobile-subjects-dropdown .subject-item {
    font-size: var(--font-size-xs);
    padding: var(--spacing-xs) var(--spacing-sm);
    margin: 0.2rem 0;
  }

  /* Mobile nav backdrop - Darker shadow overlay */
  .nav-backdrop {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    height: calc(100vh - 60px);
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(2px);
    z-index: 999;
    opacity: 1;
    transition: opacity var(--transition-base);
  }

  .nav-backdrop.active {
    display: block;
    opacity: 1;
  }

  /* Hide desktop-only elements on mobile */
  @media (min-width: 1025px) {
    .mobile-menu-header,
    .mobile-logout {
      display: none !important;
    }
  }
}

@media (max-width: 768px) {
  /* Adjust for smaller screens */
  .nav-menu {
    width: 280px;
    padding: var(--spacing-sm);
  }

  .mobile-menu-header {
    font-size: 0.8125rem;
    padding: var(--spacing-sm);
  }

  .nav-menu li a {
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: 0.8125rem;
  }

  .mobile-logout .logout-link {
    padding: var(--spacing-sm) !important;
  }

  /* Hero */
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-title {
    font-size: var(--font-size-3xl);
  }

  .hero-subtitle {
    font-size: var(--font-size-lg);
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-stats {
    justify-content: space-around;
    gap: var(--spacing-md);
  }

  .hero-image {
    order: -1;
  }

  /* Sections */
  .section-title {
    font-size: var(--font-size-3xl);
  }

  .section-subtitle {
    font-size: var(--font-size-base);
  }

  /* Contact */
  .contact-container {
    grid-template-columns: 1fr;
  }

  /* Floating CTA */
  .floating-cta {
    bottom: 1rem;
    right: 1rem;
    padding: 0.875rem 1.25rem;
  }

  .cta-text {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: var(--font-size-2xl);
  }

  .stat-number {
    font-size: var(--font-size-2xl);
  }

  .subjects-grid,
  .video-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--background);
  color: var(--text-dark);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  display: none;
  padding: var(--spacing-sm);
  min-width: 280px;
  z-index: 100;
}

.dropdown-menu.active {
  display: block;
}

.board-item {
  cursor: pointer;
  font-weight: 600;
  padding: var(--spacing-xs) var(--spacing-xs);
  transition: color var(--transition-fast);
  font-size: var(--font-size-sm);
  border-radius: var(--radius-sm);
}
.level-item {
  cursor: pointer;
  font-weight: 400;
  padding: var(--spacing-xs) var(--spacing-xs);
  transition: color var(--transition-fast);
  font-size: var(--font-size-sm);
  border-radius: var(--radius-sm);
}

.board-item:hover {
  color: var(--background);
  background: var(--primary-color);
  border-radius: var(--radius-sm);
  transition: var(--transition-base);
  padding: var(--spacing-xs) var(--spacing-md);
}

.level-item:hover {
  cursor: pointer;
  font-weight: 400;
  padding: var(--spacing-xs) var(--spacing-md);
  background: var(--primary-color);
  color: var(--background);
  transition: var(--transition-fast);
}

.levels,
.subjects {
  margin-left: var(--spacing-sm);
  margin-top: var(--spacing-xs);
}

.hidden {
  display: none;
}

.subject-item {
  cursor: pointer;
  font-size: var(--font-size-sm);
  transition: color var(--transition-fast);
  padding: var(--spacing-xs) var(--spacing-md);
  transition: all var(--transition-fast);
  margin: 0.3rem 1rem 0.3rem 1.2rem;
}

.subject-item:hover {
  color: var(--primary-color);
  padding: 0 var(--spacing-md);
  transition: all var(--transition-base);
}

/* ===================================
   SUBJECTS SLIDE-IN PANEL
   =================================== */

/* Panel Backdrop */
.subjects-panel-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.subjects-panel-backdrop.active {
  opacity: 1;
  visibility: visible;
}

/* Main Panel Container */
.subjects-panel {
  position: fixed;
  top: 0;
  left: -100%;
  width: 80%;
  max-width: 1200px;
  height: 100vh;
  background: var(--background);
  z-index: 1999;
  transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.subjects-panel.active {
  left: 0;
}

/* Panel Header */
.subjects-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-md) var(--spacing-lg);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  background: var(--background);
  min-height: 60px;
}

.subjects-back-link {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  color: var(--text-dark);
  font-size: var(--font-size-sm);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.subjects-back-link:hover {
  color: var(--primary-color);
}

.subjects-back-link i {
  font-size: 1rem;
}

.subjects-panel-header h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0;
  flex: 1;
  text-align: center;
}

.close-panel-btn {
  background: none;
  border: none;
  color: var(--text-dark);
  font-size: 1.5rem;
  cursor: pointer;
  padding: var(--spacing-xs);
  transition: all var(--transition-fast);
  border-radius: var(--radius-sm);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-panel-btn:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--primary-color);
}

/* Panel Content */
.subjects-panel-content {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* Left Sidebar */
.subjects-sidebar {
  width: 280px;
  background:  rgba(255, 255, 255, 0.);
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(10px);
  border-right: 1px solid rgba(0, 0, 0, 0.1);
  overflow-y: auto;
  padding: var(--spacing-md);
}

.sidebar-title {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: var(--spacing-md);
  padding: var(--spacing-xs) 0;
}

/* Subjects List */
.subjects-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.subjects-list li {
  padding: var(--spacing-sm) var(--spacing-md);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  color: var(--text-dark);
  font-size: var(--font-size-sm);
  margin-bottom: var(--spacing-xs);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.subjects-list li i {
  font-size: 1rem;
  width: 20px;
  text-align: center;
  color: var(--primary-color);
  transition: color var(--transition-fast);
}

.subjects-list li:hover {
  background: var(--primary-color);
  color: white;
}

.subjects-list li:hover i {
  color: white;
}

.subjects-list li.active {
  background: var(--primary-color);
  color: white;
  font-weight: 600;
}

.subjects-list li.active i {
  color: white;
}

/* Right Content Area */
.subjects-main-content {
  flex: 1;
  overflow-y: auto;
  padding: var(--spacing-lg);
  background: var(--background-alt);
}

/* Empty State */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  color: var(--text-light);
  text-align: center;
  padding: var(--spacing-xl);
}

.empty-state i {
  font-size: 4rem;
  margin-bottom: var(--spacing-md);
  color: var(--text-light);
}

.empty-state p {
  font-size: var(--font-size-base);
  max-width: 400px;
}

/* Boards Container */
.boards-container {
  width: 100%;
}

/* Exam Board Sections */
.board-section {
  margin-bottom: var(--spacing-2xl);
  padding-bottom: var(--spacing-xl);
  border-bottom: 1px solid var(--border-color);
}

.board-section:last-child {
  border-bottom: none;
}

.board-header {
  margin-bottom: var(--spacing-lg);
}

.board-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: var(--spacing-xs);
}

.board-subtitle {
  font-size: var(--font-size-sm);
  color: var(--text-light);
}

/* Level Sections */
.level-section {
  margin-bottom: var(--spacing-xl);
}

.level-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: var(--spacing-md);
  padding-bottom: var(--spacing-xs);
  border-bottom: 2px solid var(--primary-color);
  display: inline-block;
}

/* Resource Links */
.resource-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--spacing-sm);
  margin-top: var(--spacing-md);
}

.resource-link {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-md);
  background: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  font-weight: 500;
  transition: all var(--transition-fast);
  border: 1px solid var(--primary-color);
  position: relative;
}

.resource-link i {
  font-size: 1.25rem;
  color: white;
}

.resource-link:hover {
  background: white;
  color: var(--text-dark);
  border-color: var(--border-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.resource-link:hover i {
  color: var(--primary-color);
}

.resource-link.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.resource-link.disabled i {
  color: var(--text-light);
}

.resource-link.disabled::after {
  content: 'Coming Soon';
  position: absolute;
  top: -8px;
  right: 8px;
  background: var(--text-light);
  color: white;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.65rem;
  font-weight: 600;
}

/* Tutor CTA Button */
.tutor-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-md) var(--spacing-lg);
  background: linear-gradient(135deg, var(--primary-color), var(--primary-shade));
  color: white;
  text-decoration: none;
  border-radius: var(--radius-md);
  font-size: var(--font-size-base);
  font-weight: 600;
  transition: all var(--transition-fast);
  border: none;
  margin-top: var(--spacing-md);
  box-shadow: var(--shadow-md);
}

.tutor-cta i {
  font-size: 1.25rem;
}

.tutor-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Exam Board Sections */
.exam-board-section {
  margin-bottom: var(--spacing-xl);
}

.exam-board-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: var(--spacing-md);
  padding-bottom: var(--spacing-sm);
  border-bottom: 2px solid var(--primary-color);
}

.exam-board-content {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

/* Resource Links */
.resource-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
}

.resource-link {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-xs) var(--spacing-md);
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-dark);
  text-decoration: none;
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  transition: all var(--transition-fast);
  border: 1px solid transparent;
}

.resource-link:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.resource-link.new-badge::after {
  content: 'New';
  background: #ef4444;
  color: white;
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 600;
  margin-left: var(--spacing-xs);
}

.resource-link.modular-badge::after {
  content: 'Modular';
  background: #8b5cf6;
  color: white;
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 600;
  margin-left: var(--spacing-xs);
}

/* Subject Levels */
.subject-level {
  margin-bottom: var(--spacing-lg);
}

.subject-level-title {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: var(--spacing-sm);
}

.subject-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

.subject-pill {
  padding: var(--spacing-sm) var(--spacing-lg);
  background: white;
  color: var(--text-dark);
  text-decoration: none;
  border-radius: var(--radius-xl);
  font-size: var(--font-size-sm);
  font-weight: 500;
  transition: all var(--transition-fast);
  border: 1px solid rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

.subject-pill:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Mobile Responsive Styles */
@media (max-width: 1024px) {
  .subjects-panel {
    width: 100%;
    max-width: 100%;
  }

  .subjects-panel-content {
    flex-direction: column;
  }

  .subjects-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    max-height: 200px;
    flex-shrink: 0;
  }

  .subjects-main-content {
    padding: var(--spacing-md);
  }

  .exam-board-title {
    font-size: 1.1rem;
  }

  .resource-links {
    flex-direction: column;
  }

  .resource-link {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .subjects-panel-header h2 {
    font-size: 1.2rem;
  }

  .subjects-sidebar {
    max-height: 150px;
    padding: var(--spacing-sm);
  }

  .subject-categories li {
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: 0.85rem;
  }

  .subjects-main-content {
    padding: var(--spacing-sm);
  }

  .subject-pills {
    flex-direction: column;
  }

  .subject-pill {
    width: 100%;
    text-align: center;
  }
}

/* Dark Mode Support for Panel */
:root[data-theme="dark"] .subjects-panel {
  background: var(--background);
  box-shadow: 2px 0 20px rgba(0, 0, 0, 0.5);
}

:root[data-theme="dark"] .subjects-panel-header {
  border-bottom: 1px solid var(--border-color);
  background: var(--background-alt);
}

:root[data-theme="dark"] .subjects-main-content {
  background: var(--background-alt);
}

:root[data-theme="dark"] .subjects-sidebar {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-right: 1px solid var(--border-color);
}

:root[data-theme="dark"] .close-panel-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

:root[data-theme="dark"] .subjects-list li {
  color: var(--text-dark);
}

:root[data-theme="dark"] .subjects-list li i {
  color: var(--primary-color);
}

:root[data-theme="dark"] .subjects-list li:hover {
  background: var(--primary-color);
  color: var(--text-dark);
}

:root[data-theme="dark"] .subjects-list li:hover i {
  color: white;
}

:root[data-theme="dark"] .subjects-list li.active {
  background: var(--primary-color);
  color: white;
}

:root[data-theme="dark"] .subjects-list li.active i {
  color: white;
}

:root[data-theme="dark"] .empty-state {
  color: var(--text-muted);
}

:root[data-theme="dark"] .empty-state i {
  color: var(--text-light);
}

:root[data-theme="dark"] .resource-link {
  background: var(--background-dark);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-dark);
}

:root[data-theme="dark"] .resource-link i {
  color: var(--primary-color);
}

:root[data-theme="dark"] .resource-link:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

:root[data-theme="dark"] .resource-link:hover i {
  color: white;
}

:root[data-theme="dark"] .board-title {
  color: var(--text-dark);
}

:root[data-theme="dark"] .board-subtitle {
  color: var(--text-light);
}

:root[data-theme="dark"] .level-title {
  color: var(--text-dark);
  border-bottom-color: var(--primary-color);
}

/* ===================================
   DARK MODE SUPPORT
   =================================== */

/* ===================================
   DARK MODE VARIABLES
   =================================== */

/* Dark Mode Variables */
:root[data-theme="dark"] {
  /* Primary Colors - Adjusted for dark mode */
  --primary-color: #f87171;
  --primary-shade: #fca5a5;
  --primary-dark: #60a5fa;
  --primary-light: #1e3a8a;

  /* Secondary Colors */
  --secondary-color: #34d399;
  --secondary-dark: #6ee7b7;
  --secondary-light: #064e3b;

  /* Neutral Colors - Key changes */
  --text-dark: #f9fafb;
  --text-light: #d1d5db;
  --text-muted: #C5C5C5;
  --background: #222222;
  --background-alt: #171717;
  --background-dark: #1E1E1E;

  /* Accent Colors - Brightened */
  --accent-orange: #fbbf24;
  --accent-red: #f87171;
  --accent-purple: #a78bfa;

  /* Border & Shadow */
  --border-color: #374151;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5);

  /* Modal & Overlay */
  --modal-overlay: rgba(0, 0, 0, 0.85);
  --modal-page-background: #2a2a2a;
  --page-white: #1a1a1a;
  --button-hover-shadow: 0 4px 12px rgba(248, 113, 113, 0.4);
}

/* Automatic dark mode based on system preference */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    /* Same dark mode variables as above */
    --primary-color: #f87171;
    --primary-shade: #fca5a5;
    --primary-dark: #B4BFE4;
    --primary-light: #1F1E1C;

    --secondary-color: #34d399;
    --secondary-dark: #6ee7b7;
    --secondary-light: #064e3b;

    --text-dark: #f9fafb;
    --text-light: #d1d5db;
    --text-muted: #C5C5C5;
    --background: #222222;
    --background-alt: #171717;
    --background-dark: #1E1E1E;

    --accent-orange: #fbbf24;
    --accent-red: #f87171;
    --accent-purple: #a78bfa;

    --border-color: #374151;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5);

    /* Modal & Overlay */
    --modal-overlay: rgba(0, 0, 0, 0.85);
    --modal-page-background: #2a2a2a;
    --page-white: #1a1a1a;
    --button-hover-shadow: 0 4px 12px rgba(248, 113, 113, 0.4);
  }
}

/* Dark Mode Toggle Button in Navbar */
.theme-toggle {
  background: var(--background-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  font-size: 1.25rem;
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-dark);
  height: 38px;
  width: 38px;
  box-shadow: var(--shadow-xl);
}

.theme-toggle:hover {
  background: var(--background-alt);
  /* transform: scale(1.05); */
}

.theme-toggle:active {
  transform: scale(0.95);
}

/* Only apply transitions when theme is being toggled, not on page load */
body.theme-transitioning * {
  transition: background-color var(--transition-base),
    color var(--transition-base), border-color var(--transition-base) !important;
}

/* ===================================
  HEADER STYLES (Default/Desktop)
  =================================== */
.landing-top-bar {
  /* Layout: display: flex; align-items: center; justify-content: center; */
  display: flex;
  align-items: center;
  justify-content: center;
  /* Spacing: gap: 1.5rem; margin-bottom: 4rem; margin-top: 3rem; */
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-2xl);
  margin-top: var(--spacing-xl);
}

/* 1. Atom Icon */
.landing-top-bar > .fa-solid.fa-meteor{
  /* Size & Color: font-size: 3rem; color: var(--primary-color); */
  font-size: var(--font-size-5xl);
  color: var(--primary-color);
}

/* 2. Vertical Separator Line (The second child div) */
.landing-top-bar > div:nth-child(2) {
  /* Dimensions: width: 6px; height: 4rem; */
  width: 6px;
  height: 4rem;
  /* Appearance: background: var(--primary-color); margin: 0rem; */
  background: var(--primary-color);
  margin: 0;
}

/* 3. Heading Text */
.landing-top-bar > h1 {
  /* Size, Weight, Color: font-size: 2rem; font-weight:800; color: var(--primary-color); */
  font-size: 2rem; /* Using 2rem for exact match, as closest variable is 2.25rem */
  font-weight: 800;
  color: var(--primary-color);
  /* Spacing: margin: 0rem; */
  margin: 0;
}

/* ===================================
  RESPONSIVENESS (Mobile/Tablet)
  =================================== */
@media (max-width: 768px) {
  .landing-top-bar {
    /* Reduce overall top/bottom margin and gap on smaller screens */
    margin-top: var(--spacing-lg); /* 2rem */
    margin-bottom: var(--spacing-xl); /* 3rem */
    gap: var(--spacing-sm); /* 1rem */
  }

  /* Reduce icon size */
  .landing-top-bar > .fa-solid.fa-atom {
    font-size: var(--spacing-xl); /* 3rem -> 2rem (for example) */
  }

  /* Reduce separator height */
  .landing-top-bar > div:nth-child(2) {
    height: 3rem; /* 4rem -> 3rem */
  }

  /* Reduce heading size */
  .landing-top-bar > h1 {
    font-size: var(--font-size-2xl); /* 2rem -> 1.5rem */
  }
}

/* ===================================
  HERO SECTION TEXT STYLES
  =================================== */

/* Hero Title (h2) */
.hero-title {
  /* Layout/Text: text-align: center; margin-bottom: 1rem; */
  text-align: center;
  margin-bottom: var(--spacing-sm); /* 1rem */

  /* Typography: font-size: 2.5rem; font-weight: 700; color: var(--text-dark); */
  font-size: 2.5rem; /* Closest variable is 2.25rem or 3rem. Using 2.5rem for exact match. */
  font-weight: 700;
  color: var(--text-dark);
}

/* Hero Subtitle (p) */
.hero-subtitle {
  /* Layout/Text: text-align: center; margin: 2rem 0rem; */
  text-align: center;
  margin: var(--spacing-lg) 0; /* 2rem top/bottom, 0 left/right */

  /* Fallback/Default Typography for subtitle */
  color: var(--text-light);
  font-size: var(--font-size-lg);
}

/* ===================================
  HERO SEARCH BAR STYLES
  =================================== */

/* Outer container for max-width and margin */
.hero-search-container {
  max-width: 800px;
  margin: 0 auto var(--spacing-2xl); /* 4rem bottom margin */
  padding: 0 var(--spacing-md); /* Add horizontal padding for smaller screens */
  transition: all var(--transition-base);
}

.hero-search-container:hover {
  max-width: 800px;
  margin: 0 auto var(--spacing-2xl); /* 4rem bottom margin */
  padding: 0 var(--spacing-md); /* Add horizontal padding for smaller screens */
  transform: translateY(-5%);
  transition: all var(--transition-base);
}

/* Inner wrapper for positioning the icon */
.hero-search-wrapper {
  /* Layout: position: relative; */
  position: relative;
}

/* Input Field */
.hero-search-wrapper input[type="text"] {
  width: 100%;

  padding: var(--spacing-sm) 3.5rem var(--spacing-sm) var(--spacing-md);

  border: 2px solid var(--border-color);
  box-shadow: var(--shadow-xl);
  border-radius: 50px;
  background: var(--background-alt);
  font-family: var(--font-family);
  font-size: var(--font-size-base); /* 1rem */
  transition: border-color var(--transition-fast);
  color: var(--text-dark);
}

/* Input Focus State */
.hero-search-wrapper input[type="text"]:focus {
  outline: none;
  border-color: var(--primary-shade);
  background: var(--background);
}

/* Search Icon */
.hero-search-wrapper .fas.fa-search {
  position: absolute;
  right: var(--spacing-lg);
  top: 50%;
  transform: translateY(-50%);

  color: var(--text-light);
  font-size: var(--font-size-xl);
  pointer-events: none; /* Allows clicks to pass through to the input */
}

/* ===================================
  RESPONSIVENESS (Mobile/Tablet)
  =================================== */
@media (max-width: 768px) {
  /* Reduce title size on smaller screens */
  .hero-title {
    font-size: var(--font-size-3xl); /* 2.5rem -> 1.875rem */
  }

  /* Reduce subtitle margin */
  .hero-subtitle {
    margin: var(--spacing-md) 0; /* 2rem -> 1.5rem */
    font-size: var(--font-size-base);
  }

  /* Adjust search bar margins for mobile */
  .hero-search-container {
    margin: 0 auto var(--spacing-xl); /* 4rem -> 3rem bottom margin */
  }

  /* Make input padding smaller for better fit */
  .hero-search-wrapper input[type="text"] {
    padding: var(--spacing-xs) 3rem var(--spacing-xs) var(--spacing-sm); /* Reduced vertical padding and icon clearance */
    font-size: var(--font-size-sm);
  }

  /* Adjust icon size and position to match smaller input */
  .hero-search-wrapper .fas.fa-search {
    right: var(--spacing-sm); /* 1.5rem -> 1rem */
    font-size: var(--font-size-base);
  }
}

/* ===================================
   SECTION LAYOUTS
   =================================== */
.section-dark {
  padding: var(--spacing-2xl) 0; /* 4rem 0 */
  background: var(--background-dark);
}

/* .section-header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
} */

/* ===================================
   FEATURES GRID & CARDS
   =================================== */
.features-grid {
  display: grid;
  /* Responsive Grid: Automatically fits cards, min-width 300px */
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg); /* 2rem */
}

.feature-card-link {
  text-decoration: none;
  display: block; /* Ensures the anchor tag wraps the whole card properly */
}

.feature-card {
  height: 100%; 
  display: flex;
  flex-direction: column;
  text-align: left; 
  padding: var(--spacing-md); 
  background: var(--background-alt); 
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-xl); 
  transition: all var(--transition-base); 
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--primary-color);
  transition: all var(--transition-base);
}

/* Card Header (Icon + Titles) */
.card-header {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
}

/* Icon Container Base Style */
.card-icon {
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Icon Sizes */
.card-icon.size-lg {
  width: 60px;
  height: 60px;
  font-size: 1.75rem;
}

.card-icon.size-md {
  width: 50px;
  height: 50px;
  font-size: 1.5rem;
}

/* Card Typography */
.card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 0.25rem 0;
}

.card-meta {
  font-size: 0.95rem;
  color: var(--text-light);
  margin: 0;
}

.card-divider {
  width: 100%;
  height: 2px;
  margin-bottom: var(--spacing-md);
  border-radius: 2px;
}

.card-description {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: var(--spacing-md);
  flex-grow: 1; /* Pushes the footer to the bottom */
}

.card-description strong {
  color: var(--text-dark);
}

/* Card Footer (Quote/CTA Box) */
.card-footer {
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  border-left-width: 3px;
  border-left-style: solid;
}

.card-footer p {
  font-size: 0.875rem;
  color: var(--text-light);
  font-style: italic;
  margin: 0;
}

/* ===================================
   COLOR THEMES (Gradients & Tints)
   =================================== */

/* 1. Physics (Blue-Purple Gradient) */
.theme-physics .card-icon {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}
.theme-physics .card-divider {
  background: var(--primary-color);
}
.theme-physics .card-footer {
  background: rgba(232, 17, 35, 0.05);
  border-left-color: var(--primary-color);
}

/* 2. Math (Pink-Red Gradient) */
.theme-math .card-icon {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
}
.theme-math .card-divider {
  background: var(--primary-color);
}
.theme-math .card-footer {
  background: rgba(232, 17, 35, 0.05);
  border-left-color: var(--primary-color);
}

/* 3. Chemistry (Blue-Aqua Gradient) */
.theme-chemistry .card-icon {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  color: white;
}
.theme-chemistry .card-divider {
  background: var(--primary-color);
}
.theme-chemistry .card-footer {
  background: rgba(232, 17, 35, 0.05);
  border-left-color: var(--primary-color);
}

/* 4. Computer Science (Pink-Yellow Gradient) */
.theme-cs .card-icon {
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
  color: white;
}
.theme-cs .card-divider {
  background: var(--primary-color);
}
.theme-cs .card-footer {
  background: rgba(232, 17, 35, 0.05);
  border-left-color: var(--primary-color);
}

/* 5. IGCSE (Red Tint) */
.theme-igcse .card-icon {
  background: rgba(232, 17, 35, 0.15);
  color: var(--primary-color);
}
.theme-igcse .card-divider {
  background: var(--primary-color);
}
.theme-igcse .card-footer {
  background: rgba(232, 17, 35, 0.05);
  border-left-color: var(--primary-color);
}

/* 6. A-Level (Blue Tint) */
.theme-alevel .card-icon {
  background: rgba(102, 126, 234, 0.15);
  color: #667eea;
}
.theme-alevel .card-divider {
  background: #667eea;
}
.theme-alevel .card-footer {
  background: rgba(102, 126, 234, 0.05);
  border-left-color: #667eea;
}

/* 7. Checkpoint (Green Tint) */
.theme-checkpoint .card-icon {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}
.theme-checkpoint .card-divider {
  background: #10b981;
}
.theme-checkpoint .card-footer {
  background: rgba(16, 185, 129, 0.05);
  border-left-color: #10b981;
}

/* 8. Topical (Orange Tint) */
.theme-topical .card-icon {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}
.theme-topical .card-divider {
  background: #f59e0b;
}
.theme-topical .card-footer {
  background: rgba(245, 158, 11, 0.05);
  border-left-color: #f59e0b;
}

/* 9. Mark Schemes / Help Desk (Purple Tint) */
.theme-purple .card-icon {
  background: rgba(139, 92, 246, 0.15);
  color: #8b5cf6;
}
.theme-purple .card-divider {
  background: #8b5cf6;
}
.theme-purple .card-footer {
  background: rgba(139, 92, 246, 0.05);
  border-left-color: #8b5cf6;
}

/* 10. USP Gradients (Why Choose Us) */
.theme-usp-red .card-icon {
  background: linear-gradient(135deg, var(--primary-color) 0%, #c81020 100%);
  color: white;
}
.theme-usp-blue .card-icon {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}
.theme-usp-green .card-icon {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
}
.theme-usp-orange .card-icon {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
}
.theme-usp-purple .card-icon {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  color: white;
}

/* Generic styles for USP divider/footer consistency */
.theme-usp-red .card-divider,
.theme-usp-red .card-footer {
  border-color: var(--primary-color);
  background-color: rgba(232, 17, 35, 0.05);
}
.theme-usp-red .card-divider {
  background: var(--primary-color);
}

.theme-usp-blue .card-divider {
  background: #667eea;
}
.theme-usp-blue .card-footer {
  background: rgba(102, 126, 234, 0.05);
  border-left-color: #667eea;
}

.theme-usp-green .card-divider {
  background: #10b981;
}
.theme-usp-green .card-footer {
  background: rgba(16, 185, 129, 0.05);
  border-left-color: #10b981;
}

.theme-usp-orange .card-divider {
  background: #f59e0b;
}
.theme-usp-orange .card-footer {
  background: rgba(245, 158, 11, 0.05);
  border-left-color: #f59e0b;
}

.theme-usp-purple .card-divider {
  background: #8b5cf6;
}
.theme-usp-purple .card-footer {
  background: rgba(139, 92, 246, 0.05);
  border-left-color: #8b5cf6;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }
  .features-grid {
    grid-template-columns: 1fr; /* Stack cards on mobile */
  }
}

/* ===================================
   AUTHENTICATION UI STYLES
   =================================== */

/* Auth Buttons in Navbar */
.auth-buttons {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  list-style: none;
}

.btn-login,
.btn-signup {
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-login {
  background: transparent;
  color: var(--text-dark);
  border: 2px solid var(--border-color);
}

.btn-login:hover {
  background: var(--background-alt);
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.btn-signup {
  background: linear-gradient(135deg, var(--primary-color) 0%, #c81020 100%);
  color: white;
  border: none;
}

.btn-signup:hover {
  box-shadow: var(--button-hover-shadow);
  transform: translateY(-2px);
}

/* User Menu */
.user-menu {
  position: relative;
  list-style: none;
}

.user-menu-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--background-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--text-dark);
  transition: all var(--transition-base);
}

.user-menu-btn:hover {
  border-color: var(--primary-color);
  background: var(--background-alt);
}

.user-menu-btn i.fa-user-circle {
  font-size: 1.5rem;
  color: var(--primary-color);
}

.user-menu-btn i.fa-chevron-down {
  font-size: 0.75rem;
  transition: transform var(--transition-base);
}

.user-menu-btn:hover i.fa-chevron-down {
  transform: rotate(180deg);
}

.user-tier-badge {
  padding: 0.25rem 0.5rem;
  background: linear-gradient(135deg, var(--primary-color) 0%, #c81020 100%);
  color: white;
  border-radius: var(--radius-sm);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* User Dropdown */
.user-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background: var(--background-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition-base);
  z-index: 1000;
}

.user-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--text-dark);
  font-size: var(--font-size-sm);
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-bottom: 0.5rem;
  border-radius: 0px;
}

.dropdown-item:hover {
  background: var(--background-alt);
  color: var(--primary-color);
  
}

.dropdown-item i {
  width: 1rem;
  text-align: center;
  color: var(--text-light);
}

.dropdown-item:hover i {
  color: var(--primary-light);
}

.dropdown-divider {
  height: 1px;
  background: var(--border-color);
  margin: 0.5rem 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .auth-buttons {
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
  }

  .btn-login,
  .btn-signup {
    width: 100%;
    justify-content: center;
  }

  .user-menu-btn {
    width: 100%;
    justify-content: center;
  }

  .user-dropdown {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    max-width: none;
  }
}

/* Dark Mode Support */
body.dark-mode .btn-login {
  color: var(--text-light-dark);
  border-color: var(--border-color-dark);
}

body.dark-mode .btn-login:hover {
  background: var(--background-alt-dark);
  color: var(--primary-color);
}

body.dark-mode .user-menu-btn {
  background: var(--background-alt-dark);
  border-color: var(--border-color-dark);
  color: var(--text-light-dark);
}

body.dark-mode .user-menu-btn:hover {
  background: var(--background-dark);
}

body.dark-mode .user-dropdown {
  background: var(--background-dark);
  border-color: var(--border-color-dark);
}

body.dark-mode .dropdown-item {
  color: var(--text-light-dark);
}

body.dark-mode .dropdown-item:hover {
  background: var(--background-alt-dark);
  color: var(--primary-color);
}

body.dark-mode .dropdown-divider {
  background: var(--border-color-dark);
}

/* ===================================
   FLOATING THEME TOGGLE BUTTON
   =================================== */

.floating-theme-toggle {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fbbf24;
  color: white;
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: all 0.3s ease;
  z-index: 9999;
}

.floating-theme-toggle:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.floating-theme-toggle:active {
  transform: translateY(0) scale(1);
}

/* Dark mode - change to moon color */
body.dark-mode .floating-theme-toggle {
  background: #3b82f6;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .floating-theme-toggle {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 48px;
    height: 48px;
    font-size: 1.125rem;
  }
}
