/* ==========================================================================
   Mandeep Gurjar UPSC - Global Design System & Styles
   ========================================================================== */

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

:root {
  --primary: #1E3A8A;         /* Deep Royal Navy */
  --primary-dark: #0F172A;    /* Dark Slate Navy */
  --primary-light: #3B82F6;   /* Bright Blue */
  --accent: #D97706;          /* Rich Amber / Gold */
  --accent-light: #F59E0B;    /* Warm Yellow Gold */
  --accent-hover: #B45309;
  --bg-light: #F8FAFC;
  --bg-card: #FFFFFF;
  --text-main: #1E293B;
  --text-muted: #64748B;
  --text-white: #FFFFFF;
  --border-color: #E2E8F0;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 10px 25px rgba(15, 23, 42, 0.12);
  --shadow-xl: 0 20px 35px rgba(15, 23, 42, 0.18);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-family: 'Inter', sans-serif;
  color: var(--text-main);
  background-color: var(--bg-light);
}

body {
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  color: var(--primary-dark);
  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;
}

/* ==========================================================================
   Utility Classes & Buttons
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--text-white);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(30, 58, 138, 0.3);
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  color: var(--text-white);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(217, 119, 6, 0.35);
  background: linear-gradient(135deg, var(--accent-hover) 0%, var(--accent) 100%);
}

.btn-outline {
  border-color: var(--primary);
  color: var(--primary);
  background: transparent;
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--text-white);
}

.badge {
  display: inline-block;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: var(--radius-full);
}

.badge-gold {
  background: #FEF3C7;
  color: #92400E;
}

.badge-blue {
  background: #DBEAFE;
  color: #1E40AF;
}

.section-padding {
  padding: 80px 0;
}

.section-title-wrapper {
  text-align: center;
  margin-bottom: 50px;
}

.section-subtitle {
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.85rem;
  margin-bottom: 8px;
  display: block;
}

.section-title {
  font-size: 2.25rem;
  margin-bottom: 12px;
}

.section-desc {
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* ==========================================================================
   Header & Navigation (Raj IAS Academy Inspired)
   ========================================================================== */
/* Announcement Ticker */
.announcement-bar {
  background: linear-gradient(90deg, #991B1B 0%, #DC2626 50%, #991B1B 100%);
  color: #FFFFFF;
  padding: 8px 0;
  font-size: 0.85rem;
  font-weight: 600;
  overflow: hidden;
  position: relative;
}

.ticker-content {
  display: flex;
  align-items: center;
  white-space: nowrap;
  animation: ticker 30s linear infinite;
}

.ticker-content:hover {
  animation-play-state: paused;
}

@keyframes ticker {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* Top Bar */
.top-bar {
  background: var(--primary-dark);
  color: #CBD5E1;
  padding: 8px 0;
  font-size: 0.825rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.top-info {
  display: flex;
  align-items: center;
  gap: 20px;
}

.top-info span, .top-info a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #CBD5E1;
}

.top-info a:hover {
  color: var(--accent-light);
}

.top-social {
  display: flex;
  align-items: center;
  gap: 12px;
}

.top-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #FFF;
  font-size: 0.75rem;
}

.top-social a:hover {
  background: var(--accent);
  color: #FFF;
}

/* Main Header Navbar */
.main-header {
  background: var(--bg-card);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
}

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

.logo-img {
  max-height: 58px;
  width: auto;
  object-fit: contain;
}

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

.logo-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.logo-subtitle {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--primary-dark);
  position: relative;
  padding: 6px 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2.5px;
  background: var(--accent);
  transition: var(--transition);
}

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

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

.mobile-toggle {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: var(--primary-dark);
  cursor: pointer;
}

/* Mobile Nav Drawer */
@media (max-width: 992px) {
  .top-info span.hide-mobile { display: none; }
  .mobile-toggle { display: block; }
  
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-card);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    gap: 16px;
    box-shadow: var(--shadow-lg);
    display: none;
    border-top: 1px solid var(--border-color);
  }
  
  .nav-links.active {
    display: flex;
  }
}

/* ==========================================================================
   Hero Slider Section (16:9 FULL DISPLAY, NOT CROPPED!)
   ========================================================================== */
.hero-slider-section {
  position: relative;
  background: #0B132B;
  overflow: hidden;
  width: 100%;
}

.slider-container {
  position: relative;
  width: 100%;
  /* Pure 32:9 Ultra-wide Aspect Ratio Container */
  aspect-ratio: 32 / 9;
  overflow: hidden;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
  display: flex;
  align-items: center;
}

.slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

/* Background image handling - preserves true proportional 16:9 aspect ratio */
.slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
}

.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.5) 60%, rgba(15, 23, 42, 0.1) 100%);
  z-index: 2;
}

.slide-content {
  position: relative;
  z-index: 3;
  color: var(--text-white);
  max-width: 650px;
  padding: 40px;
}

.slide-badge {
  background: var(--accent);
  color: #FFF;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  display: inline-block;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.slide-title {
  font-size: 2.75rem;
  color: #FFFFFF;
  margin-bottom: 16px;
  line-height: 1.15;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.slide-subtitle {
  font-size: 1.15rem;
  color: #E2E8F0;
  margin-bottom: 28px;
  line-height: 1.5;
  text-shadow: 0 1px 5px rgba(0,0,0,0.5);
}

.slide-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Slider Controls */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFF;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.slider-arrow:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.slider-arrow.prev { left: 20px; }
.slider-arrow.next { right: 20px; }

.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 10px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: var(--transition);
}

.dot.active {
  width: 32px;
  border-radius: 12px;
  background: var(--accent);
}

@media (max-width: 768px) {
  .slider-container {
    aspect-ratio: 32 / 9;
  }
  .slide-content {
    padding: 20px;
  }
  .slide-title {
    font-size: 1.5rem;
    margin-bottom: 8px;
  }
  .slide-subtitle {
    font-size: 0.85rem;
    margin-bottom: 14px;
  }
  .slide-badge {
    font-size: 0.65rem;
    padding: 4px 8px;
    margin-bottom: 8px;
  }
  .btn {
    padding: 8px 16px;
    font-size: 0.8rem;
  }
  .slider-arrow {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
}

/* ==========================================================================
   Features / Why Mandeep Gurjar Section
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-align: center;
  position: relative;
  overflow: hidden;
}

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

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

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

.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #EFF6FF;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 20px;
}

.feature-title {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.feature-desc {
  color: var(--text-muted);
  font-size: 0.925rem;
}

/* ==========================================================================
   Courses Section (Grid & SSK Academy Style Layout)
   ========================================================================== */
.category-filter {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 10px 20px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary);
  color: var(--text-white);
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

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

.course-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.course-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(30, 58, 138, 0.3);
}

.course-header-tags {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 10px;
}

.course-badge-pill {
  background: var(--accent);
  color: #FFF;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.course-mode-pill {
  background: #F1F5F9;
  color: var(--primary-dark);
  font-size: 0.775rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid #E2E8F0;
}

.course-content {
  padding: 0;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.course-cat {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.course-title {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--primary-dark);
  line-height: 1.3;
}

.course-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.course-features-list {
  margin-bottom: 20px;
  padding-top: 12px;
  border-top: 1px dashed var(--border-color);
}

.course-features-list li {
  font-size: 0.85rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.course-features-list li i {
  color: #10B981; /* Green check */
}

.course-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.course-price {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  font-family: 'Outfit', sans-serif;
}

/* ==========================================================================
   Results / Toppers Showcase
   ========================================================================== */
.results-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #1E293B 100%);
  color: #FFF;
}

.results-section .section-title {
  color: #FFF;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 24px;
}

.result-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  transition: var(--transition);
}

.result-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent);
}

.topper-img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  border: 3px solid var(--accent);
  box-shadow: 0 0 15px rgba(217, 119, 6, 0.4);
}

.topper-name {
  font-size: 1.2rem;
  color: #FFF;
  margin-bottom: 4px;
}

.topper-rank {
  display: inline-block;
  background: var(--accent);
  color: #FFF;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
}

.topper-exam {
  font-size: 0.875rem;
  color: #94A3B8;
  margin-bottom: 12px;
}

.topper-quote {
  font-size: 0.85rem;
  color: #CBD5E1;
  font-style: italic;
  line-height: 1.4;
}

/* ==========================================================================
   Gallery Page & Lightbox
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  color: #FFF;
  transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-item-title {
  font-size: 1.05rem;
  font-weight: 700;
}

.gallery-item-cat {
  font-size: 0.75rem;
  color: var(--accent-light);
}

/* Lightbox Modal */
.lightbox-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

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

.lightbox-content {
  max-width: 90%;
  max-height: 85vh;
  border-radius: var(--radius-md);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #FFF;
  font-size: 2.5rem;
  cursor: pointer;
}

/* ==========================================================================
   Contact Page (Raj IAS Academy Inspired)
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 40px;
}

.contact-info-card {
  background: var(--primary-dark);
  color: #FFF;
  border-radius: var(--radius-lg);
  padding: 40px;
}

.contact-info-card h3 {
  color: #FFF;
  font-size: 1.75rem;
  margin-bottom: 20px;
}

.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-text h5 {
  color: #94A3B8;
  font-size: 0.8rem;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.contact-text p, .contact-text a {
  color: #FFF;
  font-size: 1.05rem;
  font-weight: 500;
}

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

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

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--primary-dark);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  font-size: 0.95rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-family: inherit;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.15);
}

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

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

/* ==========================================================================
   Admin Panel Styles
   ========================================================================== */
.admin-login-wrapper {
  max-width: 420px;
  margin: 100px auto;
  background: var(--bg-card);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-color);
}

.admin-dashboard {
  display: flex;
  min-height: calc(100vh - 120px);
}

.admin-sidebar {
  width: 260px;
  background: var(--primary-dark);
  color: #FFF;
  padding: 24px 0;
  flex-shrink: 0;
}

.admin-menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-menu-item {
  padding: 14px 24px;
  color: #94A3B8;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: var(--transition);
}

.admin-menu-item:hover,
.admin-menu-item.active {
  color: #FFF;
  background: rgba(255, 255, 255, 0.1);
  border-left: 4px solid var(--accent);
}

.admin-content {
  flex-grow: 1;
  padding: 30px;
  background: #F1F5F9;
}

.admin-tab {
  display: none;
}

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

.dropzone {
  border: 2px dashed var(--primary);
  border-radius: var(--radius-md);
  padding: 30px;
  text-align: center;
  background: #EFF6FF;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 16px;
}

.dropzone:hover, .dropzone.dragover {
  background: #DBEAFE;
  border-color: var(--accent);
}

.preview-img {
  max-height: 140px;
  border-radius: var(--radius-md);
  margin-top: 10px;
}

.table-responsive {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.admin-table th, .admin-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.9rem;
}

.admin-table th {
  background: #F8FAFC;
  font-weight: 700;
  color: var(--primary-dark);
}

/* ==========================================================================
   Sticky WhatsApp FAB
   ========================================================================== */
.whatsapp-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  z-index: 9999;
  transition: var(--transition);
  animation: pulse-green 2s infinite;
}

.whatsapp-fab:hover {
  transform: scale(1.1);
  background-color: #20BA5A;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

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

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--primary-dark);
  color: #94A3B8;
  padding-top: 60px;
  padding-bottom: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer-col h4 {
  color: #FFF;
  font-size: 1.15rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--accent);
}

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

.footer-links a:hover {
  color: var(--accent-light);
  padding-left: 4px;
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
}

@media (max-width: 992px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .top-bar-inner {
    flex-direction: column;
    gap: 8px;
    padding: 8px 0;
  }
  .top-info {
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.825rem;
  }
  .top-social {
    justify-content: center;
  }
  .category-filter {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 10px;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }
  .filter-btn {
    flex-shrink: 0;
  }
  .courses-grid {
    grid-template-columns: 1fr;
  }
  .slider-container {
    aspect-ratio: 21 / 9;
    min-height: 180px;
  }
  .site-address {
    display: inline-block;
    max-width: 280px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: bottom;
  }
}

@media (max-width: 576px) {
  .footer-grid { grid-template-columns: 1fr; }
  .slider-container {
    aspect-ratio: 16 / 9;
    min-height: 160px;
  }
  .course-card {
    padding: 18px;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .top-info {
    font-size: 0.775rem;
  }
}
