@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* --- Design System / Variables --- */
:root {
  --font-primary: 'Inter', sans-serif;
  --font-heading: 'Outfit', sans-serif;
  
  /* Light Mode Palette */
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  
  --primary: #0f4c81;
  --primary-hover: #0a355c;
  --primary-rgb: 15, 76, 129;
  
  --secondary: #00a8cc;
  --secondary-hover: #0087a3;
  --accent: #ff7e67;
  
  --border-color: #e2e8f0;
  --border-hover: #cbd5e1;
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  --card-shadow-hover: 0 15px 40px rgba(15, 76, 129, 0.08);
  
  --whatsapp-color: #25d366;
  --whatsapp-hover: #128c7e;
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 20px;
  
  --header-height: 80px;
}

[data-theme="dark"] {
  /* Dark Mode Palette */
  --bg-primary: #0b0f19;
  --bg-secondary: #131b2e;
  --bg-tertiary: #1e293b;
  
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;
  
  --primary: #3b82f6;
  --primary-hover: #60a5fa;
  --primary-rgb: 59, 130, 246;
  
  --secondary: #22d3ee;
  --secondary-hover: #67e8f9;
  
  --border-color: #223049;
  --border-hover: #334155;
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  --card-shadow-hover: 0 15px 40px rgba(59, 130, 246, 0.15);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.25;
}

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

ul {
  list-style: none;
}

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  outline: none;
  border: none;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* --- Layout Components --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
  position: relative;
}

.section-bg-alt {
  background-color: var(--bg-tertiary);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px auto;
}

.section-header .subtitle {
  color: var(--secondary);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  margin-bottom: 12px;
  display: block;
}

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

.section-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* --- Navigation Header --- */
.header {
  height: var(--header-height);
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: var(--transition);
  background-color: transparent;
}

.header.scrolled {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  height: 70px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid var(--border-color);
}

body[data-theme="dark"] .header.scrolled {
  background-color: rgba(19, 27, 46, 0.85);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
}

.logo-datetime {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 2px;
  font-family: var(--font-primary);
  letter-spacing: 0.5px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--primary);
}

.logo span {
  color: var(--secondary);
}

.logo-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent);
  border-radius: 50%;
  display: inline-block;
}

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

.nav-link {
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 8px 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary);
  transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

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

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-weight: 600;
  border-radius: var(--border-radius-sm);
  transition: var(--transition);
  cursor: pointer;
  font-size: 0.95rem;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.2);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background-color: var(--primary);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-accent {
  background-color: var(--accent);
  color: #ffffff;
}

.btn-accent:hover {
  background-color: #ff654a;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 126, 103, 0.3);
}

.btn-outline-white {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.btn-outline-white:hover {
  background-color: #ffffff;
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  border: 1px solid var(--border-color);
}

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

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  padding-top: calc(var(--header-height) + 40px);
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(15, 76, 129, 0.04) 0%, rgba(0, 168, 204, 0.04) 100%);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 168, 204, 0.08) 0%, transparent 70%);
  top: -200px;
  right: -200px;
  z-index: 1;
  pointer-events: none;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  line-height: 1.15;
}

.hero-content h1 span {
  color: var(--primary);
  background: linear-gradient(to right, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
}

.stat-item h3 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 4px;
}

.stat-item p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}

.hero-image-wrapper {
  position: relative;
}

.hero-image-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 24px;
  box-shadow: var(--card-shadow);
  position: relative;
  z-index: 2;
  animation: floatImage 6s ease-in-out infinite;
}

.hero-img-placeholder {
  width: 100%;
  height: 380px;
  background: linear-gradient(135deg, #0f4c81 0%, #00a8cc 100%);
  border-radius: var(--border-radius-md);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #ffffff;
  padding: 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-img-placeholder::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 45%, rgba(255, 255, 255, 0.1) 50%, transparent 55%);
  animation: shimmer 8s infinite linear;
}

.hero-img-placeholder i {
  font-size: 4rem;
  margin-bottom: 16px;
}

.badge-float {
  position: absolute;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 12px 20px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  z-index: 3;
}

.badge-float-1 {
  top: 40px;
  left: -30px;
}

.badge-float-2 {
  bottom: 50px;
  right: -20px;
}

.badge-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(15, 76, 129, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.badge-text span {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.badge-text strong {
  font-size: 0.9rem;
  color: var(--text-primary);
}

/* --- Features Grid --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.feature-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 32px;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  opacity: 0;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--card-shadow-hover);
  border-color: transparent;
}

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

.feature-icon {
  width: 60px;
  height: 60px;
  background-color: rgba(15, 76, 129, 0.05);
  color: var(--primary);
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 24px;
  transition: var(--transition);
}

.feature-card:hover .feature-icon {
  background-color: var(--primary);
  color: #ffffff;
}

.feature-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* --- Pricing / Courses Cards --- */
.courses-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
}

.pricing-table-wrapper {
  margin-top: 40px;
}

.pricing-title {
  margin-bottom: 24px;
  text-align: center;
  font-size: 1.8rem;
}

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

.pricing-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 40px;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition);
}

.pricing-card.featured {
  border: 2px solid var(--primary);
  transform: scale(1.02);
}

.pricing-card.featured::after {
  content: 'POPULAR';
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: var(--accent);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 1px;
}

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

.pricing-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 24px;
  margin-bottom: 24px;
  text-align: center;
}

.pricing-header h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.pricing-price {
  font-size: 2.5rem;
  font-family: var(--font-heading);
  color: var(--primary);
  font-weight: 800;
  margin: 12px 0;
}

.pricing-price span {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.pricing-features {
  margin-bottom: 32px;
  flex-grow: 1;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.pricing-features li i {
  color: var(--secondary);
  font-size: 1rem;
}

.pricing-features li.disabled {
  color: var(--text-muted);
  text-decoration: line-through;
}

.pricing-features li.disabled i {
  color: var(--text-muted);
}

/* --- Crash Course Grid Table --- */
.crash-course-table-container {
  overflow-x: auto;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  box-shadow: var(--card-shadow);
  margin-top: 30px;
}

.crash-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 600px;
}

.crash-table th, .crash-table td {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-color);
}

.crash-table th {
  background-color: var(--bg-tertiary);
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-primary);
}

.crash-table tr:last-child td {
  border-bottom: none;
}

.crash-table tr:hover {
  background-color: rgba(15, 76, 129, 0.02);
}

.crash-price {
  font-weight: 700;
  color: var(--primary);
  font-size: 1.1rem;
}

/* --- Locations Section --- */
.locations-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.locations-text h3 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.locations-text p {
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.location-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.location-badge {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

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

.location-badge:hover {
  background-color: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: scale(1.05);
}

.map-placeholder {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 12px;
  box-shadow: var(--card-shadow);
  height: 400px;
  overflow: hidden;
}

.map-placeholder iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: var(--border-radius-md);
}

/* --- Student Success Stories & Testimonials --- */
.success-stories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 80px;
}

.success-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 24px;
  box-shadow: var(--card-shadow);
  text-align: center;
}

.success-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 16px auto;
  background: linear-gradient(135deg, rgba(15, 76, 129, 0.2) 0%, rgba(0, 168, 204, 0.2) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary);
  border: 3px solid var(--bg-primary);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.success-card h4 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.success-class {
  font-size: 0.85rem;
  color: var(--secondary);
  font-weight: 600;
  margin-bottom: 8px;
}

.success-score {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 12px;
}

.success-quote {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-style: italic;
}

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

.testimonial-slide {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 48px;
  text-align: center;
  box-shadow: var(--card-shadow);
  display: none;
}

.testimonial-slide.active {
  display: block;
  animation: fadeInUp 0.5s ease-out;
}

.testimonial-slide i.quote-icon {
  font-size: 2.5rem;
  color: rgba(15, 76, 129, 0.1);
  margin-bottom: 24px;
  display: block;
}

.testimonial-slide p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 24px;
}

.testimonial-author h4 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.testimonial-author p {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: normal;
  margin-bottom: 0;
}

.carousel-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--border-color);
  cursor: pointer;
  transition: var(--transition);
}

.carousel-dot.active {
  background-color: var(--primary);
  transform: scale(1.2);
}

/* --- FAQ Accordion --- */
.faq-search-wrapper {
  max-width: 500px;
  margin: -20px auto 40px auto;
  position: relative;
}

.faq-search-input {
  width: 100%;
  padding: 14px 20px 14px 48px;
  border-radius: 50px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 1rem;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
}

.faq-search-input:focus {
  border-color: var(--primary);
  box-shadow: var(--card-shadow-hover);
}

.faq-search-wrapper i {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.faq-categories {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.faq-cat-btn {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  color: var(--text-secondary);
  transition: var(--transition);
}

.faq-cat-btn:hover, .faq-cat-btn.active {
  background-color: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item.active {
  border-color: var(--primary);
}

.faq-question {
  padding: 20px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  user-select: none;
}

.faq-question:hover {
  background-color: rgba(15, 76, 129, 0.01);
}

.faq-toggle-icon {
  font-size: 1.2rem;
  transition: var(--transition);
  color: var(--primary);
}

.faq-item.active .faq-toggle-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
  background-color: rgba(15, 76, 129, 0.01);
}

.faq-item.active .faq-answer {
  max-height: 1000px;
  transition: max-height 0.5s ease-in-out;
}

.faq-answer-content {
  padding: 20px 24px;
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* --- Registration Forms --- */
.form-section-container {
  max-width: 750px;
  margin: 0 auto;
}

.form-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 48px;
  box-shadow: var(--card-shadow);
}

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

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

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.form-label span {
  color: var(--accent);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border-color);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary);
  background-color: var(--bg-secondary);
  box-shadow: 0 0 0 4px rgba(15, 76, 129, 0.1);
}

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

.checkbox-group {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.checkbox-label input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.file-upload-box {
  border: 2px dashed var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 30px;
  text-align: center;
  cursor: pointer;
  background-color: var(--bg-primary);
  transition: var(--transition);
}

.file-upload-box:hover {
  border-color: var(--primary);
  background-color: var(--bg-secondary);
}

.file-upload-box i {
  font-size: 2rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.file-upload-box p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.file-upload-box span {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
  margin-top: 4px;
}

/* --- Contact Page Specific --- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
}

.contact-info-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  box-shadow: var(--card-shadow);
}

.contact-info-title {
  margin-bottom: 24px;
}

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

.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: rgba(15, 76, 129, 0.05);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-text h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.contact-text p {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* --- Blog Hub --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.blog-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

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

.blog-img-placeholder {
  height: 220px;
  background: linear-gradient(135deg, rgba(15, 76, 129, 0.8) 0%, rgba(0, 168, 204, 0.8) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  padding: 24px;
  text-align: center;
}

.blog-img-placeholder i {
  font-size: 3rem;
  margin-bottom: 12px;
}

.blog-img-placeholder span {
  font-weight: 700;
  font-size: 1.2rem;
  font-family: var(--font-heading);
}

.blog-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-meta {
  display: flex;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

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

.blog-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  line-height: 1.3;
}

.blog-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

.blog-link {
  color: var(--primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
}

.blog-link:hover {
  color: var(--secondary);
}

/* --- SEO Post Styling --- */
.blog-post-container {
  max-width: 800px;
  margin: calc(var(--header-height) + 60px) auto 100px auto;
  padding: 0 24px;
}

.post-header {
  margin-bottom: 40px;
  text-align: center;
}

.post-header h1 {
  font-size: 2.8rem;
  margin-bottom: 16px;
  line-height: 1.2;
}

.post-banner {
  height: 400px;
  border-radius: var(--border-radius-lg);
  background: linear-gradient(135deg, #0f4c81 0%, #00a8cc 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 48px;
  text-align: center;
  padding: 40px;
  box-shadow: var(--card-shadow);
}

.post-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.post-content p {
  margin-bottom: 24px;
}

.post-content h2 {
  font-size: 1.8rem;
  color: var(--text-primary);
  margin: 40px 0 16px 0;
}

.post-content h3 {
  font-size: 1.4rem;
  color: var(--text-primary);
  margin: 32px 0 12px 0;
}

.post-content ul, .post-content ol {
  margin-bottom: 24px;
  padding-left: 24px;
}

.post-content li {
  margin-bottom: 8px;
}

.post-cta-box {
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 32px;
  margin: 48px 0;
  text-align: center;
}

.post-cta-box h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.post-cta-box p {
  margin-bottom: 24px;
}

/* --- Admin Dashboard CSS --- */
.admin-login-container {
  max-width: 450px;
  margin: 120px auto;
  padding: 0 24px;
}

.admin-wrapper {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
  padding-top: var(--header-height);
  background-color: var(--bg-primary);
}

.admin-sidebar {
  background-color: var(--bg-secondary);
  border-right: 1px solid var(--border-color);
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--border-radius-sm);
  color: var(--text-secondary);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  background: transparent;
  width: 100%;
  text-align: left;
}

.sidebar-btn:hover, .sidebar-btn.active {
  background-color: rgba(15, 76, 129, 0.05);
  color: var(--primary);
}

.admin-main {
  padding: 40px;
  overflow-y: auto;
}

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

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}

.stat-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 24px;
  box-shadow: var(--card-shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stat-card-text span {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  display: block;
}

.stat-card-text h2 {
  font-size: 2rem;
  margin-top: 4px;
}

.stat-card-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.stat-card-icon.blue {
  background-color: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.stat-card-icon.green {
  background-color: rgba(34, 197, 94, 0.1);
  color: #22c55e;
}

.stat-card-icon.yellow {
  background-color: rgba(234, 179, 8, 0.1);
  color: #eab308;
}

.stat-card-icon.red {
  background-color: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.admin-filter-bar {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 16px 24px;
  border-radius: var(--border-radius-sm);
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.admin-search-wrapper {
  position: relative;
  max-width: 300px;
  width: 100%;
}

.admin-search-wrapper input {
  width: 100%;
  padding: 10px 16px 10px 36px;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border-color);
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

.admin-search-wrapper i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.admin-filters {
  display: flex;
  gap: 12px;
}

.admin-filters select {
  padding: 10px 16px;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border-color);
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

.admin-table-container {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  box-shadow: var(--card-shadow);
  overflow-x: auto;
}

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

.admin-table th, .admin-table td {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.95rem;
}

.admin-table th {
  background-color: var(--bg-tertiary);
  font-weight: 700;
}

.admin-table tr:hover {
  background-color: rgba(15, 76, 129, 0.01);
}

.status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.status-badge.pending {
  background-color: rgba(234, 179, 8, 0.1);
  color: #d97706;
}

.status-badge.approved {
  background-color: rgba(34, 197, 94, 0.1);
  color: #16a34a;
}

.status-badge.rejected {
  background-color: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}

.actions-cell {
  display: flex;
  gap: 8px;
}

.btn-table-action {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.9rem;
}

.btn-table-action.approve {
  background-color: rgba(34, 197, 94, 0.1);
  color: #16a34a;
}

.btn-table-action.approve:hover {
  background-color: #16a34a;
  color: #ffffff;
}

.btn-table-action.reject {
  background-color: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}

.btn-table-action.reject:hover {
  background-color: #dc2626;
  color: #ffffff;
}

.btn-table-action.delete {
  background-color: rgba(100, 116, 139, 0.1);
  color: #64748b;
}

.btn-table-action.delete:hover {
  background-color: #64748b;
  color: #ffffff;
}

/* Detail Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  max-width: 600px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
}

.modal-close:hover {
  color: var(--text-primary);
}

.modal-header {
  margin-bottom: 24px;
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
}

.modal-item:last-child {
  border-bottom: none;
}

.modal-item span:first-child {
  font-weight: 600;
  color: var(--text-muted);
}

.teacher-modal-profile {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.teacher-modal-photo {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: bold;
}

/* --- Floating WhatsApp Widget --- */
.whatsapp-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.whatsapp-bubble {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  max-width: 250px;
  animation: floatBubble 4s ease-in-out infinite;
  display: none;
}

.whatsapp-widget:hover .whatsapp-bubble {
  display: block;
}

.whatsapp-btn {
  width: 60px;
  height: 60px;
  background-color: var(--whatsapp-color);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.whatsapp-btn:hover {
  background-color: var(--whatsapp-hover);
  transform: scale(1.1);
}

.whatsapp-btn::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid var(--whatsapp-color);
  animation: pulseRipple 2s infinite;
  top: 0;
  left: 0;
  z-index: -1;
}

/* --- Footer --- */
.footer {
  background-color: #0b0f19;
  color: #94a3b8;
  padding: 80px 0 30px 0;
  border-top: 1px solid #1e293b;
}

body[data-theme="light"] .footer {
  background-color: #0f172a;
}

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

.footer-col h4 {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 24px;
}

.footer-col p {
  font-size: 0.95rem;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: #94a3b8;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: #ffffff;
  padding-left: 6px;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-contact-item {
  display: flex;
  gap: 12px;
  font-size: 0.95rem;
}

.footer-contact-item i {
  color: var(--secondary);
  font-size: 1.1rem;
  margin-top: 3px;
}

.footer-socials {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.footer-social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #1e293b;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.footer-social-icon:hover {
  background-color: var(--primary);
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.85rem;
}

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

@keyframes shimmer {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes pulseRipple {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.4); opacity: 0; }
}

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

@keyframes floatBubble {
  0% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}

/* Scroll reveal helper class */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive Media Queries --- */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-stats {
    justify-content: center;
  }
  
  .hero-image-wrapper {
    max-width: 500px;
    margin: 40px auto 0 auto;
  }
  
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
  
  .footer-col:last-child {
    grid-column: span 3;
  }
  
  .admin-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: var(--bg-secondary);
    flex-direction: column;
    padding: 40px 24px;
    gap: 24px;
    transition: var(--transition);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
    z-index: 999;
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-actions {
    display: none;
  }
  
  .menu-toggle {
    display: block !important;
    cursor: pointer;
  }
  
  .locations-container {
    grid-template-columns: 1fr;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .admin-wrapper {
    grid-template-columns: 1fr;
  }
  
  .admin-sidebar {
    display: none;
  }
  
  .form-card {
    padding: 24px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .footer-col:last-child {
    grid-column: span 2;
  }
}

@media (max-width: 480px) {
  .hero-stats {
    flex-direction: column;
    gap: 20px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-col:last-child {
    grid-column: span 1;
  }
  
  .admin-stats-grid {
    grid-template-columns: 1fr;
  }
  
  .admin-filter-bar {
    flex-direction: column;
    align-items: stretch;
  }
  
  .admin-search-wrapper {
    max-width: 100%;
  }
  
  .admin-filters {
    flex-direction: column;
  }
}

/* Custom Hamburger menu toggle */
.menu-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--text-primary);
}
