/* ===== StudyToons Common Styles ===== */

/* ===== Root Variables ===== */
:root {
  --primary-color: #FF6B9D;
  --secondary-color: #4F46E5;
  --accent-color: #FEC84B;
  --success-color: #10B981;
  --info-color: #06B6D4;
  --purple-color: #A855F7;
  --orange-color: #F97316;
}

/* ===== Global Styles ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Fredoka', cursive;
  font-weight: 700;
}

/* ===== Animated Background ===== */
.animated-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.floating-shapes {
  position: absolute;
  width: 100%;
  height: 100%;
}

.shape {
  position: absolute;
  opacity: 0.15;
  animation: float 15s infinite ease-in-out;
}

.shape:nth-child(1) { top: 10%; left: 10%; font-size: 80px; animation-delay: 0s; }
.shape:nth-child(2) { top: 60%; left: 80%; font-size: 60px; animation-delay: 2s; }
.shape:nth-child(3) { top: 80%; left: 20%; font-size: 70px; animation-delay: 4s; }
.shape:nth-child(4) { top: 30%; left: 70%; font-size: 90px; animation-delay: 1s; }
.shape:nth-child(5) { top: 50%; left: 50%; font-size: 100px; animation-delay: 3s; }

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-30px) rotate(180deg); }
}

/* ===== Navbar Styles ===== */
.navbar {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
}

.navbar-brand { 
  transition: transform 0.3s; 
}

.navbar-brand:hover { 
  transform: scale(1.05); 
}

.logo-text {
  font-family: 'Fredoka', cursive;
  font-weight: 700;
  font-size: 1.8rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-sub {
  font-size: 11px;
  color: #666;
  font-weight: 500;
}

.nav-link {
  font-weight: 600;
  color: #333 !important;
  position: relative;
  padding: 0.5rem 1rem !important;
  transition: all 0.3s;
}

.nav-link:hover {
  color: var(--primary-color) !important;
  transform: translateY(-2px);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transition: all 0.3s;
  transform: translateX(-50%);
  border-radius: 10px;
}

.nav-link:hover::after {
  width: 80%;
}

/* ===== Mega Menu ===== */
.mega-menu {
  min-width: 750px;
  border-radius: 20px;
  border: none;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 0.98);
  padding: 2rem !important;
}

.mega-menu h6 {
  font-weight: 700;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.mega-menu ul li a {
  color: #555;
  text-decoration: none;
  padding: 0.4rem 0;
  display: block;
  transition: all 0.3s;
  border-radius: 8px;
  padding-left: 10px;
}

.mega-menu ul li a:hover {
  color: var(--primary-color);
  padding-left: 20px;
  background: rgba(255, 107, 157, 0.1);
}

/* ===== Mobile Menu ===== */
.offcanvas {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
}

.offcanvas a {
  color: white !important;
  text-decoration: none;
  padding: 0.7rem;
  border-radius: 10px;
  transition: all 0.3s;
  font-weight: 600;
}

.offcanvas a:hover {
  background: rgba(255, 255, 255, 0.2);
  padding-left: 1.5rem;
}

.btn-close {
  filter: invert(1);
}

/* ===== Glass Effect ===== */
.glass {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* ===== Page Header ===== */
.page-header {
  padding: 3rem 0 2rem;
  text-align: center;
}

.page-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: white;
  text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.2);
  margin-bottom: 1rem;
}

.page-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

/* ===== Breadcrumb ===== */
.breadcrumb-custom {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  display: inline-block;
  margin-bottom: 1.5rem;
}

.breadcrumb-custom a {
  color: white;
  text-decoration: none;
  font-weight: 600;
}

.breadcrumb-custom a:hover {
  color: var(--accent-color);
}

/* ===== Social Icons ===== */
.social-icons {
  font-size: 1.8rem;
}

.social-icons i {
  margin: 0 10px;
  cursor: pointer;
  transition: all 0.3s;
}

.social-icons i:hover {
  color: var(--primary-color);
  transform: translateY(-5px) rotate(360deg);
}

/* ===== Footer ===== */
footer {
  background: linear-gradient(135deg, #1e1e2e 0%, #2d2d44 100%);
  padding: 4rem 0 2rem;
  color: white;
  margin-top: 4rem;
}

footer h6 {
  color: var(--accent-color);
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

footer a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s;
  display: block;
  padding: 0.3rem 0;
}

footer a:hover {
  color: var(--primary-color);
  padding-left: 10px;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar { 
  width: 10px; 
}

::-webkit-scrollbar-track { 
  background: #f1f1f1; 
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover { 
  background: var(--secondary-color); 
}

/* ===== Responsive Utilities ===== */
@media (max-width: 768px) {
  .mega-menu {
    min-width: auto;
    width: 100%;
  }
  
  .page-title { 
    font-size: 2rem; 
  }
  
  .page-subtitle { 
    font-size: 1rem; 
  }
}

/* ===== INDEX.HTML SPECIFIC STYLES ===== */

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.2);
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: clamp(1rem, 3vw, 1.4rem);
  margin-bottom: 2rem;
  text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-hero {
  background: white;
  color: var(--secondary-color);
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.2rem;
  border: none;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.btn-hero:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
  background: var(--accent-color);
  color: white;
}

.btn-hero::before {
  content: '🚀';
  position: absolute;
  font-size: 1.5rem;
  left: -50px;
  transition: all 0.3s;
}

.btn-hero:hover::before {
  left: 10px;
}

/* Class Cards - Index Page */
.class-card {
  border-radius: 25px;
  padding: 2rem;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  height: 100%;
  border: 3px solid transparent;
}

.class-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 25px;
  padding: 3px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s;
}

.class-card:hover::before {
  opacity: 1;
}

.class-card:hover {
  transform: translateY(-15px) scale(1.05);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.class-icon-wrapper {
  width: 100px;
  height: 100px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.class-card h5 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: #333;
}

.class-card p {
  color: #666;
  font-size: 0.9rem;
}

/* Subject Cards - Index Page */
.subject-card {
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s;
  cursor: pointer;
  height: 100%;
  position: relative;
}

.subject-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.2);
}

.subject-card img {
  height: 200px;
  object-fit: cover;
  width: 100%;
  transition: transform 0.3s;
}

.subject-card:hover img {
  transform: scale(1.1);
}

.subject-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.9rem;
}

/* Feature Cards - Index Page */
.feature-card {
  padding: 2.5rem;
  text-align: center;
  border-radius: 25px;
  transition: all 0.4s;
  cursor: pointer;
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-10px) rotate(2deg);
}

.feature-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  display: inline-block;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.feature-card h5 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #333;
}

/* Section Headers - Index Page */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

/* Video Cards - Index Page */
.video-card {
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s;
  cursor: pointer;
  position: relative;
  height: 100%;
}

.video-card:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.2);
}

.video-thumbnail {
  position: relative;
  overflow: hidden;
}

.video-thumbnail img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s;
}

.video-card:hover .video-thumbnail img {
  transform: scale(1.1);
}

.play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--secondary-color);
  transition: all 0.3s;
}

.video-card:hover .play-overlay {
  transform: translate(-50%, -50%) scale(1.2);
  background: var(--accent-color);
  color: white;
}

/* Stats Section - Index Page */
.stats-card {
  text-align: center;
  padding: 2rem;
  border-radius: 20px;
}

.stats-number {
  font-size: 3rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  margin-bottom: 0.5rem;
}

.stats-label {
  font-size: 1.1rem;
  color: #333;
  font-weight: 600;
}

/* Loading Animation */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Index Page Responsive */
@media (max-width: 768px) {
  .class-icon-wrapper {
    width: 80px;
    height: 80px;
    font-size: 2.5rem;
  }
  
  .hero-section {
    padding: 3rem 0;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .stats-number {
    font-size: 2rem;
  }
}

/* ===== CONTACT-US.HTML SPECIFIC STYLES ===== */

/* Contact Cards */
.contact-cards {
  margin: auto;
}

.contact-card {
  border-radius: 25px;
  padding: 2.5rem;
  text-align: center;
  transition: all 0.4s;
  cursor: pointer;
  height: 100%;
}

.contact-card:hover {
  transform: translateY(-10px) rotate(2deg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.contact-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  animation: pulse 2s infinite;
}

.contact-card h4 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #333;
  text-align: center;
}

.contact-card p {
  color: #666;
  font-size: 1rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.contact-link {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
}

.contact-link:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
  color: white;
}

/* Contact Form */
.contact-form-section {
  margin: auto;
}

.form-control, .form-select {
  padding: 1rem;
  border-radius: 15px;
  border: 2px solid rgba(79, 70, 229, 0.2);
  transition: all 0.3s;
}

.form-control:focus, .form-select:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 5px 20px rgba(79, 70, 229, 0.2);
}

.form-label {
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
}

.submit-btn {
  padding: 1rem 3rem;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  border: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s;
  width: 100%;
}

.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(79, 70, 229, 0.4);
}

/* Map Section */
.map-section {
  margin: auto;
}

.map-wrapper {
  border-radius: 25px;
  overflow: hidden;
  height: 400px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* FAQ Section */
.faq-section {
  margin: auto;
}

.accordion-item {
  border: none;
  border-radius: 15px !important;
  margin-bottom: 1rem;
  overflow: hidden;
}

.accordion-button {
  border-radius: 15px;
  font-weight: 600;
  padding: 1.2rem 1.5rem;
  background: white;
  color: #333;
}

.accordion-button:not(.collapsed) {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
}

.accordion-button:focus {
  box-shadow: none;
}

.accordion-body {
  padding: 1.5rem;
  background: white;
}

/* Contact Page Responsive */
@media (max-width: 768px) {
  .contact-icon {
    width: 80px;
    height: 80px;
    font-size: 2.5rem;
  }
  
  .map-wrapper {
    height: 300px;
  }
}

/* ===== CLASS.HTML SPECIFIC STYLES ===== */

/* Class Selector */
.class-selector-wrapper {
  margin: auto;
}

.class-pills {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  justify-content: center;
  padding: 1rem 0;
}

.class-pill {
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  border: 2px solid transparent;
}

.class-pill:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 107, 157, 0.4);
}

.class-pill.active {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.4);
}

/* Search & Filter Bar */
.filter-bar {
  margin: 2rem 0;
  padding: 2rem;
  border-radius: 20px;
}

.search-box {
  position: relative;
}

.search-box input {
  width: 100%;
  padding: 1rem 1rem 1rem 3.5rem;
  border-radius: 50px;
  border: 2px solid rgba(79, 70, 229, 0.2);
  font-size: 1rem;
  transition: all 0.3s;
}

.search-box input:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 8px 25px rgba(79, 70, 229, 0.2);
}

.search-box i {
  position: absolute;
  left: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  color: var(--secondary-color);
}

.filter-buttons {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.7rem 1.5rem;
  border-radius: 50px;
  background: white;
  border: 2px solid rgba(79, 70, 229, 0.2);
  color: #333;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-btn:hover {
  background: var(--secondary-color);
  color: white;
  border-color: var(--secondary-color);
  transform: translateY(-2px);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  border-color: transparent;
}

.filter-btn i {
  font-size: 1.2rem;
}

/* Subject Cards - Class Page */
.subjects-grid {
  margin: auto;
}

.subjects-grid .subject-card {
  border-radius: 25px;
  overflow: hidden;
  transition: all 0.4s;
  cursor: pointer;
  height: 100%;
  position: relative;
  border: 3px solid transparent;
}

.subjects-grid .subject-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.subject-card-header {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  position: relative;
  overflow: hidden;
}

.subject-card-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.1;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(255, 255, 255, 0.1) 10px,
    rgba(255, 255, 255, 0.1) 20px
  );
}

.subject-icon {
  position: relative;
  z-index: 2;
  animation: bounce 2s infinite;
}

.subject-card-body {
  padding: 1.5rem;
  text-align: center;
}

.subject-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #333;
}

.subject-description {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.subject-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 2px solid rgba(0, 0, 0, 0.1);
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: #666;
}

.stat-item i {
  color: var(--accent-color);
}

.view-btn {
  padding: 0.7rem 1.8rem;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  border: none;
  font-weight: 600;
  transition: all 0.3s;
  width: 100%;
  margin-top: 1rem;
}

.view-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
}

/* No Results */
.no-results {
  text-align: center;
  padding: 4rem 2rem;
}

.no-results-icon {
  font-size: 5rem;
  margin-bottom: 1rem;
}

/* Class Page Responsive */
@media (max-width: 768px) {
  .filter-bar {
    padding: 1.5rem;
  }
  
  .filter-buttons {
    flex-direction: column;
  }
  
  .filter-btn {
    width: 100%;
    justify-content: center;
  }
  
  .class-pills {
    gap: 0.5rem;
  }
  
  .class-pill {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }
  
  .subject-card-header {
    height: 150px;
    font-size: 4rem;
  }
}

/* ===== SUBJECT.HTML SPECIFIC STYLES ===== */

/* Subject Icon Header */
.subject-icon-header {
  font-size: 4rem;
  display: inline-block;
  animation: bounce 2s infinite;
}

/* Search Bar */
.search-bar {
  margin: auto;
}

/* Chapter Cards */
.chapter-section {
  margin: auto;
}

.chapter-card {
  border-radius: 20px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  transition: all 0.3s;
}

.chapter-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  cursor: pointer;
  padding: 1rem;
  border-radius: 15px;
  transition: all 0.3s;
}

.chapter-header:hover {
  background: rgba(79, 70, 229, 0.05);
  transform: translateX(5px);
}

.chapter-number {
  width: 60px;
  height: 60px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.chapter-info {
  flex: 1;
}

.chapter-title {
  font-size: 1.4rem;
  margin-bottom: 0.3rem;
  color: #333;
}

.chapter-meta {
  display: flex;
  gap: 1.5rem;
  color: #666;
  font-size: 0.9rem;
}

.chapter-meta span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.toggle-icon {
  font-size: 1.5rem;
  color: var(--secondary-color);
  transition: transform 0.3s;
}

.toggle-icon.rotated {
  transform: rotate(180deg);
}

/* Video Grid */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  padding: 1rem 0;
}

.video-card {
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.3s;
  cursor: pointer;
  background: white;
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.video-thumbnail {
  position: relative;
  padding-top: 56.25%; /* 16:9 aspect ratio */
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  overflow: hidden;
}

.video-thumbnail img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--secondary-color);
  transition: all 0.3s;
  z-index: 2;
}

.video-card:hover .play-button {
  transform: translate(-50%, -50%) scale(1.2);
  background: var(--accent-color);
  color: white;
}

.video-duration {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 0.3rem 0.6rem;
  border-radius: 5px;
  font-size: 0.85rem;
  font-weight: 600;
}

.video-info {
  padding: 1rem;
  text-align: center;
}

.video-title {
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-stats {
  display: flex;
  justify-content: space-between;
  color: #666;
  font-size: 0.85rem;
}

/* Video Modal */
.modal-content {
  border-radius: 20px;
  border: none;
  overflow: hidden;
}

.modal-header {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  border: none;
  padding: 1.5rem;
}

.modal-title {
  font-weight: 700;
}

.modal-body {
  padding: 0;
}

.video-wrapper {
  position: relative;
  padding-top: 56.25%;
  background: #000;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.video-description {
  padding: 1.5rem;
  background: #f8f9fa;
}

/* Subject Page Responsive */
@media (max-width: 768px) {
  .videos-grid {
    grid-template-columns: 1fr;
  }
  
  .chapter-header {
    flex-direction: column;
    text-align: center;
  }
  
  .chapter-meta {
    justify-content: center;
  }
}

/* ===== TEAM.HTML SPECIFIC STYLES ===== */

/* Team Section */
.team-section {
  margin: auto;
}

.team-card {
  border-radius: 25px;
  padding: 2rem;
  text-align: center;
  transition: all 0.4s;
  cursor: pointer;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.team-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.team-avatar {
  width: 150px;
  height: 150px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  position: relative;
  animation: pulse 3s infinite;
  border: 5px solid white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.team-name {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #333;
  text-align: center;
}

.team-role {
  color: var(--secondary-color);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 1rem;
  text-align: center;
}

.team-description {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
  text-align: center;
}

.team-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.skill-badge {
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(79, 70, 229, 0.1);
  color: var(--secondary-color);
}

.team-social {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  text-decoration: none;
  font-size: 1.2rem;
  transition: all 0.3s;
}

.social-link:hover {
  transform: translateY(-3px) rotate(360deg);
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.4);
}

/* Mission Section */
.mission-section {
  margin: auto;
}

.mission-card {
  padding: 3rem;
  text-align: center;
}

.mission-icon {
  font-size: 5rem;
  margin-bottom: 1.5rem;
  display: inline-block;
  animation: bounce 2s infinite;
}

.mission-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mission-text {
  font-size: 1.1rem;
  color: #666;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto;
}

/* Stats Section */
.stats-section {
  margin: 3rem 0;
}

.stat-card {
  text-align: center;
  padding: 2rem;
  border-radius: 20px;
  transition: all 0.3s;
}

.stat-card:hover {
  transform: translateY(-5px);
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1.1rem;
  color: #333;
  font-weight: 600;
}

/* Team Page Responsive */
@media (max-width: 768px) {
  .team-avatar {
    width: 120px;
    height: 120px;
    font-size: 3rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
}

/* ===== QUIZ.HTML SPECIFIC STYLES ===== */

/* Quiz Cards */
.quiz-card {
  padding: 2rem;
  text-align: center;
  transition: all 0.4s;
  cursor: pointer;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.quiz-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.quiz-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.badge-active {
  background: rgba(16, 185, 129, 0.2);
  color: #10B981;
}

.badge-upcoming {
  background: rgba(59, 130, 246, 0.2);
  color: #3B82F6;
}

.badge-completed {
  background: rgba(107, 114, 128, 0.2);
  color: #6B7280;
}

.quiz-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  display: inline-block;
  animation: bounce 2s infinite;
}

.quiz-title {
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
  color: #333;
}

.quiz-description {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  min-height: 48px;
}

.quiz-meta {
  display: flex;
  justify-content: space-around;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: rgba(79, 70, 229, 0.05);
  border-radius: 15px;
}

.meta-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.meta-item i {
  font-size: 1.3rem;
  color: var(--secondary-color);
}

.meta-item span {
  font-size: 0.85rem;
  color: #666;
  font-weight: 600;
}

.quiz-stats {
  display: flex;
  justify-content: space-around;
  padding-top: 1rem;
  border-top: 2px solid rgba(0, 0, 0, 0.1);
  margin-bottom: 1.5rem;
}

.quiz-stats .stat-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #666;
}

.quiz-stats .stat-item i {
  color: var(--accent-color);
}

.quiz-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 10px;
  margin-bottom: 1.5rem;
  color: #3B82F6;
  font-weight: 600;
}

.btn-participate {
  padding: 0.8rem 2rem;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  border: none;
  font-weight: 600;
  transition: all 0.3s;
  width: 100%;
  font-size: 1rem;
  cursor: pointer;
}

.btn-participate:hover:not(:disabled) {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
}

.btn-participate:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ===== QUIZ-PARTICIPATE.HTML SPECIFIC STYLES ===== */

/* Quiz Form */
.quiz-icon-large {
  font-size: 5rem;
  margin-bottom: 1rem;
}

.quiz-form-title {
  color: #333;
  margin-bottom: 0.5rem;
}

.form-control {
  padding: 0.8rem 1rem;
  border-radius: 10px;
  border: 2px solid rgba(79, 70, 229, 0.2);
  transition: all 0.3s;
}

.form-control:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 0.2rem rgba(79, 70, 229, 0.15);
}

.form-label {
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
}

/* Quiz Timer */
.quiz-timer {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.5rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  border-radius: 50px;
  font-size: 1.2rem;
  font-weight: 700;
}

.quiz-progress {
  font-weight: 600;
  color: #333;
}

/* Question Card */
.question-number {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(79, 70, 229, 0.1);
  color: var(--secondary-color);
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.9rem;
}

.question-text {
  color: #333;
  line-height: 1.6;
  font-size: 1.3rem;
}

/* Options */
.options-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.option-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border: 2px solid rgba(79, 70, 229, 0.2);
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.3s;
  background: white;
}

.option-item:hover {
  border-color: var(--secondary-color);
  background: rgba(79, 70, 229, 0.05);
  transform: translateX(5px);
}

.option-item.selected {
  border-color: var(--secondary-color);
  background: rgba(79, 70, 229, 0.1);
}

.option-radio {
  width: 20px;
  height: 20px;
  border: 2px solid #ddd;
  border-radius: 50%;
  flex-shrink: 0;
  transition: all 0.3s;
}

.option-item.selected .option-radio {
  border-color: var(--secondary-color);
  background: var(--secondary-color);
  position: relative;
}

.option-item.selected .option-radio::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
}

.option-text {
  font-size: 1rem;
  color: #333;
  flex: 1;
  text-align: left;
}

/* Question Navigation Grid */
.question-nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
  gap: 0.8rem;
}

.question-nav-btn {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  border: 2px solid #ddd;
  background: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  color: #666;
}

.question-nav-btn:hover {
  border-color: var(--secondary-color);
  transform: scale(1.1);
}

.question-nav-btn.answered {
  background: var(--success-color);
  color: white;
  border-color: var(--success-color);
}

.question-nav-btn.current {
  background: var(--accent-color);
  color: white;
  border-color: var(--accent-color);
}

/* ===== QUIZ-RESULT.HTML SPECIFIC STYLES ===== */

/* Result Display */
.result-icon {
  font-size: 6rem;
  animation: bounce 2s infinite;
}

.result-title {
  color: #333;
  font-size: 2.5rem;
}

.score-display {
  display: flex;
  justify-content: center;
  align-items: center;
}

.score-circle {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 40px rgba(79, 70, 229, 0.3);
  animation: pulse 2s infinite;
}

.score-number {
  font-size: 3rem;
  font-weight: 700;
  color: white;
}

.score-label {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

.result-stat {
  padding: 1rem;
  text-align: center;
}

.stat-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: #333;
}

.stat-label {
  font-size: 0.9rem;
  color: #666;
  font-weight: 600;
}

/* User Info Display */
.info-item {
  padding: 0.8rem;
  background: rgba(79, 70, 229, 0.05);
  border-radius: 10px;
}

.info-item strong {
  color: var(--secondary-color);
  margin-right: 0.5rem;
}

.info-item span {
  color: #333;
}

/* Answer Review */
.answer-review-item {
  padding: 1.5rem;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: 15px;
  margin-bottom: 1.5rem;
  background: white;
}

.question-text-review {
  color: #333;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.options-review {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.option-review {
  padding: 0.8rem 1rem;
  border-radius: 10px;
  background: #f8f9fa;
  border: 2px solid transparent;
}

.correct-option {
  background: rgba(16, 185, 129, 0.1);
  border-color: #10B981;
  color: #10B981;
  font-weight: 600;
}

.wrong-option {
  background: rgba(239, 68, 68, 0.1);
  border-color: #EF4444;
  color: #EF4444;
  font-weight: 600;
}

/* Quiz Page Responsive */
@media (max-width: 768px) {
  .quiz-meta {
    flex-direction: column;
    gap: 0.8rem;
  }
  
  .quiz-timer {
    font-size: 1rem;
  }
  
  .score-circle {
    width: 150px;
    height: 150px;
  }
  
  .score-number {
    font-size: 2.5rem;
  }
  
  .result-icon {
    font-size: 4rem;
  }
  
  .result-title {
    font-size: 1.8rem;
  }
  
  .question-nav-grid {
    grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
  }
  
  .question-nav-btn {
    width: 40px;
    height: 40px;
  }
}
