/* ============================================
   NM Creative Learning - Complete Theme
   Modern Educational Platform Design
============================================ */

/* ============================================
   CSS Variables - Brand Colors
============================================ */
:root {
  /* Primary Brand Colors - Educational Theme */
  --primary: #FF6B35;
  --primary-dark: #E55A2B;
  --primary-light: #FF8F66;
  --primary-rgb: 255, 107, 53;
  
  /* Secondary Colors */
  --secondary: #4ECDC4;
  --secondary-dark: #3DB8B0;
  --secondary-light: #7EDDD6;
  
  /* Accent Colors */
  --accent-purple: #7C3AED;
  --accent-blue: #3B82F6;
  --accent-green: #10B981;
  --accent-yellow: #FBBF24;
  --accent-pink: #EC4899;
  
  /* Neutral Colors */
  --dark: #1A1A2E;
  --dark-secondary: #16213E;
  --dark-tertiary: #0F3460;
  --gray-900: #1F2937;
  --gray-800: #374151;
  --gray-700: #4B5563;
  --gray-600: #6B7280;
  --gray-500: #9CA3AF;
  --gray-400: #D1D5DB;
  --gray-300: #E5E7EB;
  --gray-200: #F3F4F6;
  --gray-100: #F9FAFB;
  --white: #FFFFFF;
  
  /* Status Colors */
  --success: #10B981;
  --warning: #F59E0B;
  --error: #EF4444;
  --info: #3B82F6;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
  --gradient-secondary: linear-gradient(135deg, #4ECDC4 0%, #44A08D 100%);
  --gradient-hero: linear-gradient(135deg, #1A1A2E 0%, #16213E 50%, #0F3460 100%);
  --gradient-card: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  --gradient-purple: linear-gradient(135deg, #7C3AED 0%, #A855F7 100%);
  --gradient-blue: linear-gradient(135deg, #3B82F6 0%, #60A5FA 100%);
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-primary: 0 10px 40px -10px rgba(255, 107, 53, 0.4);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-card-hover: 0 20px 40px rgba(0, 0, 0, 0.12);
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-2xl: 2rem;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition: 300ms ease;
  --transition-slow: 500ms ease;
  
  /* Typography */
  --font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Poppins', sans-serif;
}

/* ============================================
   Reset & Base Styles
============================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  background: var(--gray-100);
  color: var(--gray-800);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
}

/* ============================================
   Container
============================================ */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 1536px) {
  .container {
    max-width: 1400px;
  }
}

/* ============================================
   Header & Navigation
============================================ */
.header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  gap: 2rem;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-image {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  object-fit: cover;
  box-shadow: var(--shadow);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.2;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-subtitle {
  font-size: 0.7rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--gray-700);
  border-radius: var(--radius-full);
  transition: var(--transition);
  position: relative;
}

.nav-link:hover {
  color: var(--primary);
  background: rgba(var(--primary-rgb), 0.08);
}

.nav-link.active {
  color: var(--primary);
  background: rgba(var(--primary-rgb), 0.1);
}

.nav-link i {
  font-size: 1rem;
}

.nav-link.youtube-link {
  background: #FF0000;
  color: var(--white);
}

.nav-link.youtube-link:hover {
  background: #CC0000;
  color: var(--white);
  transform: scale(1.05);
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: var(--gray-100);
  border-radius: var(--radius);
  color: var(--gray-700);
  font-size: 1.25rem;
  transition: var(--transition);
}

.mobile-menu-btn:hover {
  background: var(--gray-200);
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: flex;
  }
  
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 1rem;
    flex-direction: column;
    gap: 0.5rem;
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--gray-200);
  }
  
  .nav.active {
    display: flex;
  }
  
  .nav-link {
    width: 100%;
    justify-content: center;
    padding: 1rem;
  }
  
  .logo-subtitle {
    display: none;
  }
}

/* ============================================
   Hero Section
============================================ */
.hero {
  background: var(--gradient-hero);
  padding: 5rem 0 6rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
  opacity: 0.5;
}

/* Animated shapes */
.hero-shapes {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.1;
  animation: float 20s infinite ease-in-out;
}

.hero-shape:nth-child(1) {
  width: 300px;
  height: 300px;
  background: var(--primary);
  top: -100px;
  right: -50px;
  animation-delay: 0s;
}

.hero-shape:nth-child(2) {
  width: 200px;
  height: 200px;
  background: var(--secondary);
  bottom: -50px;
  left: 10%;
  animation-delay: -5s;
}

.hero-shape:nth-child(3) {
  width: 150px;
  height: 150px;
  background: var(--accent-purple);
  top: 50%;
  left: -50px;
  animation-delay: -10s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  33% {
    transform: translateY(-30px) rotate(5deg);
  }
  66% {
    transform: translateY(20px) rotate(-5deg);
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-text {
  color: var(--white);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-badge i {
  color: var(--accent-yellow);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-title .highlight {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
}

.hero-image-container {
  position: relative;
  padding: 2rem;
}

.hero-image-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  height: 90%;
  background: var(--gradient-primary);
  border-radius: var(--radius-2xl);
  opacity: 0.2;
  filter: blur(40px);
}

.hero-image {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 4px solid rgba(255, 255, 255, 0.1);
}

.hero-image img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

/* Stats Cards */
.hero-stats {
  display: flex;
  gap: 1.5rem;
  margin-top: 3rem;
}

.stat-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  min-width: 100px;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0.25rem;
}

@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-visual {
    display: none;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .hero-stats {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 3rem 0 4rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
  
  .hero-stats {
    flex-wrap: wrap;
  }
  
  .stat-card {
    flex: 1;
    min-width: 80px;
  }
}

/* ============================================
   Buttons
============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--white);
  box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 50px -10px rgba(255, 107, 53, 0.5);
}

.btn-secondary {
  background: var(--white);
  color: var(--dark);
  box-shadow: var(--shadow);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
}

.btn-danger {
  background: var(--error);
  color: var(--white);
}

.btn-danger:hover {
  background: #DC2626;
}

.btn-sm {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius);
}

/* ============================================
   Filter Section
============================================ */
.filters-section {
  background: var(--white);
  padding: 1.5rem 0;
  position: sticky;
  top: 70px;
  z-index: 100;
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--gray-200);
}

.filters-content {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.search-box {
  flex: 1;
  min-width: 280px;
  position: relative;
}

.search-box i {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  font-size: 1rem;
}

.search-box input {
  width: 100%;
  padding: 0.875rem 1rem 0.875rem 3rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-full);
  font-size: 0.9375rem;
  font-family: inherit;
  transition: var(--transition);
  background: var(--gray-50);
}

.search-box input:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.1);
}

.search-box input::placeholder {
  color: var(--gray-400);
}

.filter-group {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.filter-select-wrapper {
  position: relative;
}

.filter-select {
  appearance: none;
  padding: 0.75rem 2.5rem 0.75rem 1rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-full);
  font-size: 0.9375rem;
  font-family: inherit;
  background: var(--white);
  cursor: pointer;
  min-width: 160px;
  transition: var(--transition);
}

.filter-select:focus {
  outline: none;
  border-color: var(--primary);
}

.filter-select-wrapper::after {
  content: '\f078';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  pointer-events: none;
  font-size: 0.75rem;
}

.btn-reset {
  padding: 0.75rem 1.25rem;
  background: var(--gray-100);
  color: var(--gray-600);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--transition);
}

.btn-reset:hover {
  background: var(--gray-200);
  color: var(--gray-800);
}

@media (max-width: 768px) {
  .filters-section {
    position: static;
  }
  
  .filters-content {
    flex-direction: column;
    align-items: stretch;
  }
  
  .search-box {
    width: 100%;
  }
  
  .filter-group {
    width: 100%;
    justify-content: space-between;
  }
  
  .filter-select {
    flex: 1;
    min-width: 0;
  }
}

/* ============================================
   Section Styles
============================================ */
.section {
  padding: 4rem 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
}

.section-title i {
  color: var(--primary);
}

.section-badge {
  background: var(--gradient-primary);
  color: var(--white);
  padding: 0.375rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
}

/* ============================================
   Video Grid
============================================ */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.video-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
}

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

.video-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: var(--transition);
}

.video-card:hover::before {
  opacity: 1;
}

.video-thumbnail {
  position: relative;
  padding-bottom: 56.25%;
  background: var(--gray-200);
  overflow: hidden;
}

.video-thumbnail img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

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

.video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.video-card:hover .video-overlay {
  opacity: 1;
}

.play-button {
  width: 70px;
  height: 70px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.5rem;
  box-shadow: var(--shadow-lg);
  transform: scale(0.8);
  transition: var(--transition);
}

.video-card:hover .play-button {
  transform: scale(1);
}

.video-duration {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  background: rgba(0, 0, 0, 0.85);
  color: var(--white);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
}

.video-info {
  padding: 1.25rem;
}

.video-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

.video-meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-class {
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--primary);
}

.badge-subject {
  background: rgba(78, 205, 196, 0.1);
  color: var(--secondary-dark);
}

.badge-category {
  background: rgba(124, 58, 237, 0.1);
  color: var(--accent-purple);
}

.badge-draft {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning);
}

.badge-published {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
}

.video-description {
  font-size: 0.875rem;
  color: var(--gray-500);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.6;
}

/* ============================================
   Video Modal
============================================ */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  animation: fadeIn 0.3s ease;
  overflow-y: auto;
  padding: 2rem;
}

.modal-content {
  position: relative;
  background: var(--white);
  max-width: 1000px;
  margin: 0 auto;
  border-radius: var(--radius-xl);
  overflow: hidden;
  animation: slideUp 0.4s ease;
  box-shadow: var(--shadow-xl);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-100);
  border-radius: 50%;
  font-size: 1.5rem;
  color: var(--gray-600);
  transition: var(--transition);
  z-index: 10;
}

.modal-close:hover {
  background: var(--error);
  color: var(--white);
  transform: rotate(90deg);
}

.modal-header {
  padding: 1.5rem 2rem;
  padding-right: 4rem;
  border-bottom: 1px solid var(--gray-200);
}

.modal-header h2 {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.75rem;
}

.modal-meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  background: var(--dark);
}

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

.modal-body {
  padding: 1.5rem 2rem;
}

.modal-body h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.75rem;
}

.modal-body p {
  color: var(--gray-600);
  line-height: 1.8;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* ============================================
   Loading & Empty States
============================================ */
.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid var(--gray-200);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading p {
  color: var(--gray-500);
  font-size: 0.9375rem;
}

.no-content {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
}

.no-content-icon {
  width: 100px;
  height: 100px;
  background: var(--gray-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.no-content-icon i {
  font-size: 2.5rem;
  color: var(--gray-400);
}

.no-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.no-content p {
  color: var(--gray-500);
  margin-bottom: 1.5rem;
}

/* ============================================
   Pagination
============================================ */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 3rem;
  padding: 1rem;
  background: var(--white);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-card);
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.pagination button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--gray-100);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-700);
  transition: var(--transition);
}

.pagination button:hover:not(:disabled) {
  background: var(--primary);
  color: var(--white);
}

.pagination button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.page-info {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--dark);
  padding: 0 1rem;
}

/* ============================================
   Blog Section
============================================ */
.blog-hero {
  background: var(--gradient-primary);
  padding: 4rem 0;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.blog-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.blog-hero h1 {
  position: relative;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.blog-hero p {
  position: relative;
  font-size: 1.125rem;
  opacity: 0.9;
}

/* Blog Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 2rem;
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

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

.blog-card-image {
  height: 200px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.blog-card-image i {
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.3);
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card-body {
  padding: 1.5rem;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
  font-size: 0.8125rem;
  color: var(--gray-500);
}

.blog-card-meta i {
  color: var(--primary);
}

.blog-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.blog-card-title a {
  color: var(--dark);
  transition: var(--transition);
}

.blog-card-title a:hover {
  color: var(--primary);
}

.blog-card-excerpt {
  color: var(--gray-500);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-100);
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: var(--transition);
}

.read-more:hover {
  gap: 0.75rem;
}

/* ============================================
   Blog Post Page
============================================ */
.blog-post-page {
  padding: 2rem 0 4rem;
  min-height: 60vh;
}

.post-header {
  margin-bottom: 2rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.back-link:hover {
  gap: 0.75rem;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}

.post-date,
.post-views {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray-500);
  font-size: 0.875rem;
}

.post-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--dark);
  margin-bottom: 1rem;
}

.post-author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray-600);
}

.post-featured-image {
  margin-bottom: 2rem;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.post-body {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  line-height: 1.9;
  font-size: 1.0625rem;
  color: var(--gray-700);
}

.post-body h1, .post-body h2, .post-body h3 {
  color: var(--dark);
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.post-body h1 { font-size: 1.75rem; }
.post-body h2 { font-size: 1.5rem; }
.post-body h3 { font-size: 1.25rem; }

.post-body p {
  margin-bottom: 1.25rem;
}

.post-body a {
  color: var(--primary);
  text-decoration: underline;
}

.post-body img {
  border-radius: var(--radius-lg);
  margin: 1.5rem 0;
}

.post-body blockquote {
  border-left: 4px solid var(--primary);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--gray-50);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  font-style: italic;
  color: var(--gray-600);
}

.post-body pre {
  background: var(--dark);
  color: var(--gray-100);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  overflow-x: auto;
  margin: 1.5rem 0;
}

.post-body code {
  background: var(--gray-100);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  font-family: 'Fira Code', monospace;
  font-size: 0.9em;
}

.post-body pre code {
  background: none;
  padding: 0;
}

.post-body ul, .post-body ol {
  margin-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.post-body li {
  margin-bottom: 0.5rem;
}

/* Post Tags & Share */
.post-tags {
  margin-top: 2rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tag {
  background: var(--gray-100);
  color: var(--gray-600);
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--transition);
}

.tag:hover {
  background: var(--primary);
  color: var(--white);
}

.post-share {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
}

.post-share h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--dark);
}

.share-buttons {
  display: flex;
  gap: 0.75rem;
}

.share-btn {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--white);
  font-size: 1.25rem;
  transition: var(--transition);
}

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

.share-btn.twitter { background: #1DA1F2; }
.share-btn.facebook { background: #4267B2; }
.share-btn.linkedin { background: #0077B5; }
.share-btn.whatsapp { background: #25D366; }

/* ============================================
   Footer
============================================ */
.footer {
  background: var(--dark);
  color: var(--white);
  padding: 4rem 0 0;
  margin-top: auto;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .logo {
  margin-bottom: 1rem;
}

.footer-brand .logo-title {
  color: var(--white);
  -webkit-text-fill-color: var(--white);
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social a {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--white);
  font-size: 1.125rem;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

.footer-section h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  color: var(--white);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary);
  padding-left: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
}

.footer-bottom a {
  color: var(--primary);
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-social {
    justify-content: center;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ============================================
   Admin Styles
============================================ */
.admin-body {
  background: var(--gray-100);
}

/* Login Screen */
.login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-hero);
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.login-screen::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,107,53,0.1) 0%, transparent 50%);
  animation: rotate 30s linear infinite;
}

@keyframes rotate {
  to { transform: rotate(360deg); }
}

.login-container {
  position: relative;
  background: var(--white);
  padding: 3rem;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  max-width: 440px;
  width: 100%;
}

.login-header {
  text-align: center;
  margin-bottom: 2rem;
}

.login-logo {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.login-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
}

.login-header p {
  color: var(--gray-500);
  font-size: 0.9375rem;
  margin-top: 0.5rem;
}

/* Form Styles */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--dark);
  font-size: 0.9375rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
  background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.1);
}

.form-group small {
  display: block;
  margin-top: 0.375rem;
  color: var(--gray-500);
  font-size: 0.8125rem;
}

.error-message {
  background: rgba(239, 68, 68, 0.1);
  color: var(--error);
  padding: 0.875rem;
  border-radius: var(--radius-lg);
  margin-top: 1rem;
  text-align: center;
  font-size: 0.9375rem;
}

.back-to-home {
  display: block;
  text-align: center;
  margin-top: 1.5rem;
  color: var(--primary);
  font-weight: 500;
}

/* Admin Layout */
.admin-header {
  background: var(--dark);
  padding: 0.5rem 0;
}

.admin-header .header-content {
  padding: 0.5rem 0;
}

.admin-header .logo-title {
  color: var(--white);
  -webkit-text-fill-color: var(--white);
}

.admin-header .logo-subtitle {
  color: rgba(255, 255, 255, 0.5);
}

.admin-header .nav-link {
  color: rgba(255, 255, 255, 0.8);
}

.admin-header .nav-link:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.btn-logout {
  background: rgba(239, 68, 68, 0.2);
  color: #FCA5A5;
  padding: 0.625rem 1rem;
  border-radius: var(--radius-full);
  font-weight: 500;
  transition: var(--transition);
}

.btn-logout:hover {
  background: var(--error);
  color: var(--white);
}

/* Admin Sidebar */
.admin-layout {
  display: flex;
  min-height: calc(100vh - 70px);
}

.admin-sidebar {
  width: 260px;
  background: var(--white);
  border-right: 1px solid var(--gray-200);
  padding: 1.5rem;
  position: sticky;
  top: 70px;
  height: calc(100vh - 70px);
  overflow-y: auto;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border-radius: var(--radius-lg);
  font-weight: 500;
  color: var(--gray-600);
  background: transparent;
  transition: var(--transition);
  width: 100%;
  text-align: left;
}

.sidebar-link:hover {
  background: var(--gray-100);
  color: var(--dark);
}

.sidebar-link.active {
  background: var(--gradient-primary);
  color: var(--white);
  box-shadow: var(--shadow-primary);
}

.sidebar-link i {
  font-size: 1.125rem;
  width: 24px;
  text-align: center;
}

/* Admin Main Content */
.admin-main {
  flex: 1;
  padding: 2rem;
  overflow-x: auto;
}

.admin-tab {
  display: none;
}

.admin-tab.active {
  display: block;
}

.tab-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.tab-header h2 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
}

.tab-header h2 i {
  color: var(--primary);
}

/* Admin Modal */
.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: 2rem;
}

.admin-modal .modal-content {
  background: var(--white);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 700px;
  box-shadow: var(--shadow-xl);
  animation: slideUp 0.3s ease;
}

.admin-modal .modal-large {
  max-width: 900px;
}

.admin-modal .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--gray-200);
}

.admin-modal .modal-header h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--dark);
}

.admin-modal form {
  padding: 2rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

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

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gray-200);
}

/* Admin Table */
.admin-table-container {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--gray-100);
}

.admin-table th {
  background: var(--gray-50);
  font-weight: 600;
  color: var(--dark);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-table tbody tr:hover {
  background: rgba(var(--primary-rgb), 0.03);
}

.admin-table .thumbnail {
  width: 100px;
  height: 56px;
  object-fit: cover;
  border-radius: var(--radius);
}

.admin-table .actions {
  display: flex;
  gap: 0.5rem;
}

.btn-icon.edit {
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--primary);
}

.btn-icon.edit:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-icon.delete {
  background: rgba(239, 68, 68, 0.1);
  color: var(--error);
}

.btn-icon.delete:hover {
  background: var(--error);
  color: var(--white);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toast {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  animation: slideIn 0.3s ease;
  min-width: 300px;
}

.toast.success {
  border-left: 4px solid var(--success);
}

.toast.error {
  border-left: 4px solid var(--error);
}

.toast.info {
  border-left: 4px solid var(--info);
}

.toast i {
  font-size: 1.25rem;
}

.toast.success i { color: var(--success); }
.toast.error i { color: var(--error); }
.toast.info i { color: var(--info); }

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

/* Tiptap Editor */
.tiptap-editor {
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.tiptap-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 0.75rem;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}

.tiptap-toolbar button {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--gray-600);
  transition: var(--transition);
}

.tiptap-toolbar button:hover {
  background: var(--primary);
  color: var(--white);
}

.tiptap-toolbar button.is-active {
  background: var(--primary);
  color: var(--white);
}

.tiptap-toolbar .separator {
  width: 1px;
  height: 24px;
  background: var(--gray-300);
  margin: 6px 0.5rem;
}

.tiptap-content {
  min-height: 300px;
  padding: 1.25rem;
  outline: none;
  line-height: 1.8;
}

.tiptap-content:focus {
  outline: none;
}

/* Responsive Admin */
@media (max-width: 1024px) {
  .admin-sidebar {
    width: 200px;
  }
}

@media (max-width: 768px) {
  .admin-sidebar {
    display: none;
  }
  
  .admin-main {
    padding: 1rem;
  }
  
  .admin-table-container {
    overflow-x: auto;
  }
}