/* ============================================================
   ELITE PLUS - PW STYLE MODERN REDESIGN
   Complete UI/UX Overhaul with Text Visibility Fixes
   ============================================================ */

:root {
  --elite-primary: #8b5cf6;
  --elite-secondary: #3b82f6;
  --elite-tertiary: #06b6d4;
  --elite-accent: #f59e0b;
  --elite-dark: #1a1a2e;
  --elite-light: #f8f9ff;
  --elite-border: rgba(139, 92, 246, 0.15);
  --elite-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --elite-shadow-hover: 0 20px 50px rgba(139, 92, 246, 0.15);

  /* Background colors for Light Mode */
  --bg-primary: #f8fafc;
  --bg-card: #ffffff;

  /* Clear and Dark text for Light mode */
  --text-primary: #0f172a;
  --text-secondary: #1e293b;
  --text-muted: #475569;
}

/* ============================================================
   ELITE HEADER - CLEAN AND MODERN
   ============================================================ */
.elite-header {
  position: relative;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, rgba(59, 130, 246, 0.08) 100%);
  padding: 60px 20px;
  margin-top: 60px;
  border-bottom: 1px solid var(--elite-border);
  overflow: hidden;
}

.elite-header::before,
.elite-header::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  opacity: 0.3;
  z-index: 0;
}

.elite-header::before {
  top: -20%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.2), transparent);
}

.elite-header::after {
  bottom: -20%;
  left: -10%;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15), transparent);
}

.elite-header-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.12) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

.elite-header-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
}

.elite-badge {
  display: inline-block;
  background: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 100%);
  color: white;
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 1.2px;
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.3);
  text-transform: uppercase;
}

.page-title {
  font-size: 3.5rem;
  font-weight: 900;
  margin: 16px 0 12px 0;
  color: var(--text-primary);
  letter-spacing: -1px;
  line-height: 1.1;
}

.elite-gradient {
  background: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.elite-highlights {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--elite-border);
}

.highlight-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(139, 92, 246, 0.1);
  color: var(--text-primary);
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(139, 92, 246, 0.2);
  transition: all 0.3s ease;
}

.highlight-badge:hover {
  background: rgba(139, 92, 246, 0.15);
  border-color: rgba(139, 92, 246, 0.4);
  transform: translateY(-2px);
}

/* ============================================================
   ELITE BATCHES GRID - PW STYLE CARD LAYOUT
   ============================================================ */
.elite-content {
  padding: 60px 20px;
  background: var(--bg-primary);
}

.section-header {
  margin-bottom: 40px !important;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 8px 0 !important;
  letter-spacing: -0.5px;
}

.section-header p {
  font-size: 1rem;
  color: var(--text-secondary);
  margin: 0 !important;
  font-weight: 500;
}

.batch-count-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(59, 130, 246, 0.15) 100%);
  color: var(--text-primary);
  padding: 10px 18px;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 700;
  border: 1px solid rgba(139, 92, 246, 0.25);
  white-space: nowrap;
}

/* Grid Layout - PW Style */
.elite-batches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
  margin-bottom: 40px;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 1200px) {
  .elite-batches-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .elite-batches-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
  }

  .page-title {
    font-size: 2.5rem;
  }

  .page-subtitle {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .elite-batches-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .elite-content {
    padding: 40px 16px;
  }

  .page-title {
    font-size: 2rem;
  }

  .elite-highlights {
    gap: 8px;
  }

  .highlight-badge {
    font-size: 0.8rem;
    padding: 6px 10px;
  }
}

/* ============================================================
   ELITE BATCH CARD - MODERN WORLD-CLASS OVERHAUL
   ============================================================ */
.elite-batch-card {
  background: var(--bg-card);
  border: 1px solid var(--elite-border);
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: var(--elite-shadow);
  position: relative;
  min-height: 480px;
  padding: 0;
  opacity: 0;
  transform: translateY(16px);
  animation: eliteCardLoad 400ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes eliteCardLoad {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Glowing Dynamic Accent Shadow matching batch color */
.elite-batch-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-glow) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12), 0 0 25px var(--accent-glow)1f;
}

/* Dynamic Cover Section styling */
.batch-card-cover-wrapper {
  position: relative;
  height: 170px;
  overflow: hidden;
  width: 100%;
  border-radius: 20px 20px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
}

.batch-card-cover-glow {
  position: absolute;
  inset: 0;
  opacity: 0.8;
  mix-blend-mode: screen;
  pointer-events: none;
  filter: blur(20px);
}

.batch-card-cover-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1px);
  background-size: 10px 10px;
  opacity: 0.5;
  pointer-events: none;
}

.batch-card-cover-watermark {
  position: absolute;
  right: -10px;
  bottom: -20px;
  font-size: 8rem;
  opacity: 0.12;
  font-family: Arial, sans-serif;
  user-select: none;
  pointer-events: none;
  transform: rotate(-15deg);
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.elite-batch-card:hover .batch-card-cover-watermark {
  transform: rotate(-5deg) scale(1.1);
  opacity: 0.2;
}

.batch-card-cover-title-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  z-index: 2;
  text-align: center;
  padding: 20px;
}

.cover-display-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.elite-batch-card:hover .cover-display-icon {
  transform: scale(1.15) rotate(10deg);
}

.cover-display-name {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5), 0 0 15px rgba(255, 255, 255, 0.2);
  letter-spacing: 0.5px;
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Floating Level/Premium Badge */
.batch-card-floating-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-weight: 800;
  font-size: 0.72rem;
  border-radius: 30px;
  padding: 6px 12px;
  text-transform: uppercase;
  color: #ffffff;
  letter-spacing: 0.5px;
  z-index: 3;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.badge-elite {
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.badge-placement {
  background: linear-gradient(135deg, #00C6FF 0%, #0072FF 100%);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Faculty Stack Group */
.batch-card-faculty-group {
  position: absolute;
  bottom: 12px;
  left: 12px;
  display: flex;
  align-items: center;
  z-index: 3;
}

.faculty-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid #ffffff;
  margin-left: -10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  display: block;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.faculty-avatar:first-child {
  margin-left: 0;
}

.faculty-avatar:hover {
  transform: scale(1.15) translateY(-2px);
  z-index: 4;
}

[data-theme="dark"] .faculty-avatar {
  border-color: #0c1a2e;
}

/* WhatsApp Share Placement Override */
.elite-batch-card .batch-card-whatsapp-share {
  position: absolute;
  top: 12px !important;
  right: 12px !important;
  width: 34px !important;
  height: 34px !important;
  z-index: 10 !important;
  margin: 0 !important;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

.elite-batch-card .batch-card-whatsapp-share:hover {
  background: #25d366;
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(37, 211, 102, 0.5);
}

.elite-batch-card .batch-card-whatsapp-share svg {
  width: 16px;
  height: 16px;
  fill: #fff;
}

/* Content Area */
.batch-card-content-wrapper {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  text-align: left;
}

.batch-card-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.batch-card-logo-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.batch-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.2;
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: -0.01em;
}

.batch-card-description {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin: 0 0 16px 0;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.64rem;
}

/* Feature Pills */
.batch-card-feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.feature-pill {
  background: rgba(139, 92, 246, 0.08);
  color: var(--text-primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 30px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(139, 92, 246, 0.15);
  transition: all 0.2s ease;
}

.feature-pill:hover {
  background: rgba(139, 92, 246, 0.12);
  border-color: rgba(139, 92, 246, 0.3);
}

.batch-card-divider {
  height: 1px;
  border: none;
  background: var(--elite-border);
  margin-bottom: 16px;
}

/* Highlights Section */
.batch-card-highlights {
  margin-bottom: 16px;
}

.highlights-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
}

.highlight-bullet {
  font-size: 0.95rem;
  display: inline-block;
}

.highlight-text {
  font-weight: 600;
  color: var(--text-secondary);
}

/* Stats badges styling */
.elite-batch-card-stats {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.stat-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  background: rgba(139, 92, 246, 0.05);
  border: 1px solid var(--elite-border);
  color: var(--text-secondary);
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  transition: all 0.3s ease;
}

.elite-batch-card:hover .stat-badge {
  background: rgba(139, 92, 246, 0.08);
}

/* Pricing and CTA Wrapper */
.batch-card-action-wrapper {
  padding: 16px 24px 24px;
  background: rgba(248, 250, 252, 0.5);
  border-top: 1px solid var(--elite-border);
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-radius: 0 0 20px 20px;
}

[data-theme="dark"] .batch-card-action-wrapper {
  background: rgba(15, 23, 42, 0.2);
}

.batch-card-price-area {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.current-price {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--text-primary);
}

.current-price.free-price {
  color: #10b981 !important;
}

[data-theme="dark"] .current-price.free-price {
  color: #34d399 !important;
}

.original-price {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.discount-percent {
  font-size: 0.75rem;
  font-weight: 800;
  color: #10b981;
  background: rgba(16, 185, 129, 0.08);
  padding: 2px 8px;
  border-radius: 6px;
}

[data-theme="dark"] .discount-percent {
  color: #34d399;
  background: rgba(52, 211, 153, 0.1);
}

.batch-card-cta-area {
  width: 100%;
}

.batch-cta-button {
  width: 100%;
  border-radius: 12px !important;
  font-size: 0.92rem !important;
  font-weight: 800 !important;
  padding: 12px 20px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  text-decoration: none;
}

.batch-cta-button:hover {
  transform: translateY(-2px) scale(1.02);
  filter: brightness(1.05);
}

.enrolled-gradient {
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.25);
  border: none !important;
  cursor: pointer;
}

.buy-gradient {
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%) !important;
  color: #000000 !important;
  box-shadow: 0 4px 15px rgba(255, 165, 0, 0.25);
  border: none !important;
  cursor: pointer;
}

.buy-gradient:hover {
  box-shadow: 0 8px 25px -5px rgba(255, 165, 0, 0.5) !important;
}

/* Close redundant hover details */

/* ============================================================
   BATCH DETAIL MODAL - UPDATED STYLING
   ============================================================ */
.elite-batch-modal {
  max-width: 750px;
  max-height: 85vh;
  overflow-y: auto;
  border-radius: 18px;
  background: var(--bg-card);
}

.batch-modal-header {
  padding: 40px 36px 28px;
  text-align: center;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, rgba(59, 130, 246, 0.08) 100%);
  border-bottom: 1px solid var(--elite-border);
  border-radius: 18px 18px 0 0;
  position: sticky;
  top: 0;
  z-index: 10;
}

.batch-icon {
  font-size: 4rem;
  margin-bottom: 16px;
  display: inline-block;
  animation: pulse-icon 2s ease-in-out infinite;
}

@keyframes pulse-icon {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }
}

#modalBatchTitle {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

#modalBatchSubtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  margin: 0;
  font-weight: 500;
}

.batch-modal-sections {
  padding: 32px 36px;
}

.section-item {
  margin-bottom: 28px;
}

.section-item:last-child {
  margin-bottom: 0;
}

.section-label {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(139, 92, 246, 0.2);
  display: block;
  letter-spacing: -0.3px;
}

.section-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.content-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(59, 130, 246, 0.08));
  border: 1px solid rgba(139, 92, 246, 0.15);
  border-radius: 10px;
  text-decoration: none;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  cursor: pointer;
}

.content-link:hover {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(59, 130, 246, 0.12));
  border-color: rgba(139, 92, 246, 0.3);
  transform: translateX(6px);
  box-shadow: 0 6px 16px rgba(139, 92, 246, 0.2);
}

.content-link svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.content-link-text {
  flex: 1;
  word-break: break-word;
}

.empty-content {
  padding: 24px;
  background: rgba(139, 92, 246, 0.05);
  border: 1px dashed var(--elite-border);
  border-radius: 10px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}

/* ============================================================
   EMPTY STATE & LOADING STATES
   ============================================================ */
.elite-empty-state {
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.05), rgba(59, 130, 246, 0.05));
  border-radius: 16px;
  border: 1px solid var(--elite-border);
}

.elite-empty-state .empty-icon {
  font-size: 4.5rem;
  margin-bottom: 20px;
  animation: float 3s ease-in-out infinite;
}

.elite-empty-state h3 {
  color: var(--text-primary);
  margin: 0 0 10px 0;
  font-size: 1.5rem;
  font-weight: 800;
}

.elite-empty-state p {
  color: var(--text-secondary);
  margin: 0;
  font-weight: 500;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

/* Loading state */
.elite-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  gap: 14px;
}

.elite-loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(139, 92, 246, 0.2);
  border-top-color: #8b5cf6;
  border-radius: 50%;
  animation: spin-loader 0.8s linear infinite;
}

@keyframes spin-loader {
  to {
    transform: rotate(360deg);
  }
}

.elite-loading-text {
  font-size: 1.1rem;
  color: var(--text-secondary);
  font-weight: 600;
}

/* ============================================================
   DARK MODE SUPPORT
   ============================================================ */
[data-theme="dark"] {
  --text-primary: #ffffff;
  /* Crisp pure white */
  --text-secondary: #e2e8f0;
  /* Clear bright off-white */
  --text-muted: #cbd5e1;
  /* Clear bright gray */
  --bg-primary: #020817;
  /* Dark deep space background */
  --bg-card: #0c1a2e;
  /* Matches main site dark cards */
  --elite-border: rgba(255, 255, 255, 0.08);
  --elite-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  --elite-shadow-hover: 0 20px 50px rgba(139, 92, 246, 0.3);
}

[data-theme="dark"] .elite-batch-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .elite-batch-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--accent-glow) !important;
}

[data-theme="dark"] .batch-modal-header {
  background: rgba(255, 255, 255, 0.02);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .content-link {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

[data-theme="dark"] .content-link:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
}

/* ============================================================
   HIDE NAVBAR INSIDE BATCH CARDS FIX
   ============================================================ */
.elite-batch-card .navbar,
.elite-batch-card nav {
  display: none !important;
}
/* Ensure no navbar overlaps */
.elite-batches-grid {
  position: relative;
  z-index: 2;
}

/* ============================================================
   RESPONSIVE DESIGN - MOBILE OPTIMIZATION
   ============================================================ */
@media (max-width: 768px) {
  .elite-header {
    padding: 50px 20px;
  }
  .elite-batch-card {
    min-height: auto;
  }
  .batch-card-cover-wrapper {
    height: 150px;
  }
  .cover-display-icon {
    width: 46px;
    height: 46px;
    font-size: 1.6rem;
  }
  .cover-display-name {
    font-size: 1.15rem;
  }
  .batch-card-content-wrapper {
    padding: 18px;
  }
  .batch-card-title {
    font-size: 1.15rem;
  }
  .section-header h2 {
    font-size: 1.6rem;
  }
  .batch-modal-header {
    padding: 32px 24px 20px;
  }
  .batch-modal-sections {
    padding: 24px;
  }
}

@media (max-width: 480px) {
  .elite-header {
    padding: 40px 16px;
    margin-top: 50px;
  }
  .elite-batch-card {
    min-height: auto;
  }
  .batch-card-cover-wrapper {
    height: 130px;
  }
  .cover-display-icon {
    width: 40px;
    height: 40px;
    font-size: 1.4rem;
  }
  .cover-display-name {
    font-size: 1.05rem;
    max-width: 180px;
  }
  .batch-card-content-wrapper {
    padding: 16px;
  }
  .batch-card-title-row {
    gap: 10px;
    margin-bottom: 10px;
  }
  .batch-card-logo-icon {
    width: 36px;
    height: 36px;
    font-size: 1.25rem;
  }
  .batch-card-title {
    font-size: 1.1rem;
  }
  .batch-card-description {
    font-size: 0.82rem;
    margin-bottom: 12px;
  }
  .feature-pill {
    font-size: 0.7rem;
    padding: 3px 8px;
  }
  .highlight-item {
    font-size: 0.78rem;
  }
  .batch-card-action-wrapper {
    padding: 12px 16px 16px;
  }
  .view-batch-btn {
    padding: 10px 14px;
    font-size: 0.88rem;
  }
  .batch-modal-header {
    padding: 28px 20px 18px;
  }
  .batch-icon {
    font-size: 3rem;
  }
  #modalBatchTitle {
    font-size: 1.6rem;
  }
}

/* ============================================================
   ACCESSIBILITY & PERFORMANCE
   ============================================================ */
/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {

  .elite-batch-card,
  .elite-batch-card-icon,
  .view-batch-btn,
  .content-link {
    animation: none !important;
    transition: none !important;
  }
}

/* Focus states for keyboard navigation */
.elite-batch-card:focus,
.view-batch-btn:focus,
.content-link:focus {
  outline: 2px solid #8b5cf6;
  outline-offset: 2px;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Print styles */
@media print {

  .elite-header,
  .elite-batch-card-footer {
    background: white;
    border: 1px solid #ddd;
  }

  .elite-batch-card {
    page-break-inside: avoid;
  }
}

/* ============================================================
   MODAL OVERLAY & CONTROLS
   ============================================================ */
.modal {
  display: none;
}

.modal.active {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  background: rgba(139, 92, 246, 0.2);
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-primary);
  transition: all 0.3s ease;
  z-index: 10;
}

.modal-close:hover {
  background: rgba(139, 92, 246, 0.4);
  transform: rotate(90deg) scale(1.1);
}



/* Particulate Background Z-index Fix */
#particles-js,
.elite-plus-bg,
.particles-container {
  z-index: 0 !important;
  pointer-events: none !important;
  opacity: 0.5;
}

.elite-content,
.elite-tabs-content {
  position: relative;
  z-index: 10 !important;
}

.elite-batches-grid,
.videos-grid,
.notes-grid,
.dpp-grid,
.live-grid,
#videos-grid,
#notes-grid,
#dpp-grid,
#live-grid {
  position: relative;
  z-index: 20 !important;
}

.content-card {
  position: relative;
  z-index: 30 !important;
  background: var(--bg-card, #ffffff);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.content-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(139, 92, 246, 0.2);
  border-color: var(--color-purple, #8b5cf6);
}

.content-thumbnail {
  position: relative;
  z-index: 1;
  background: #111;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 16/9;
}

.video-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.video-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 2;
  opacity: 0;
}

.content-card.video-card:hover .video-play-overlay {
  opacity: 1;
}

.play-btn-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--color-purple, #8b5cf6);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease;
  transform: scale(0.8);
}

.content-card.video-card:hover .play-btn-circle {
  transform: scale(1.1);
}

/* ==================== RESPONSIVE BEHAVIOR ==================== */
@media (max-width: 992px) {
  .semester-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 768px) {
  .semester-grid {
    grid-template-columns: 1fr !important;
  }

  .faculty-avatar {
    width: 24px;
    height: 24px;
    border-width: 2px;
  }

  .batch-card-floating-badge {
    font-size: 0.68rem;
    padding: 4px 10px;
  }

  .batch-cta-button {
    padding: 14px 20px !important;
  }
}

/* Redesigned Batch Card Style Spec (PW-Style Premium) */
.elite-batch-card {
  min-height: auto !important;
  height: 100% !important;
  border-radius: 16px !important;
  background: var(--bg-card, #ffffff) !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05) !important;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease, border-color 0.3s ease !important;
  border: 1px solid rgba(139, 92, 246, 0.12) !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}

[data-theme="dark"] .elite-batch-card {
  background: #0f172a !important;
  border-color: rgba(255,255,255,0.06) !important;
  box-shadow: 0 4px 30px rgba(0,0,0,0.3) !important;
}

.elite-batch-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 12px 30px rgba(139, 92, 246, 0.15) !important;
  border-color: var(--accent-glow) !important;
}

/* Redesigned Card Inner Structure */
.redesigned-card-inner {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  width: 100% !important;
}

/* 1. Thumbnail Container */
.redesigned-card-thumbnail-box {
  width: 100% !important;
  aspect-ratio: 16 / 9 !important;
  overflow: hidden !important;
  position: relative !important;
  background: #1e293b !important;
  height: auto !important;
}

.redesigned-card-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  opacity: 1 !important;
  mix-blend-mode: normal !important;
  transition: transform 0.5s ease !important;
  display: block !important;
}

.elite-batch-card:hover .redesigned-card-img {
  transform: scale(1.06) !important;
}

/* 2. Content Box */
.redesigned-card-content {
  padding: 16px !important;
  display: flex !important;
  flex-direction: column !important;
  flex-grow: 1 !important;
  background: transparent !important;
}

.redesigned-card-title-row {
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  gap: 12px !important;
  margin-bottom: 12px !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}

.redesigned-card-title {
  font-size: 1.05rem !important;
  font-weight: 850 !important;
  color: var(--text-primary) !important;
  margin: 0 !important;
  line-height: 1.35 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  height: 2.7rem !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  text-align: left !important;
}

[data-theme="dark"] .redesigned-card-title {
  color: #f8fafc !important;
}

.redesigned-card-share-btn {
  background: rgba(37, 211, 102, 0.1) !important;
  border: 1px solid rgba(37, 211, 102, 0.2) !important;
  color: #25d366 !important;
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
  transition: all 0.2s ease !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
}

.redesigned-card-share-btn:hover {
  background: #25d366 !important;
  color: white !important;
  transform: scale(1.1) !important;
}

.redesigned-card-share-btn svg {
  width: 14px !important;
  height: 14px !important;
  fill: currentColor !important;
  display: block !important;
}

.redesigned-card-share-btn:hover svg {
  fill: white !important;
}

/* 3. Metadata Row */
.redesigned-card-metadata {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  margin-bottom: 16px !important;
  margin-top: auto !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}

.metadata-pill {
  font-size: 0.7rem !important;
  font-weight: 600 !important;
  color: var(--text-muted, #64748b) !important;
  background: rgba(139, 92, 246, 0.04) !important;
  padding: 4px 8px !important;
  border-radius: 6px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  white-space: nowrap !important;
  border: 1px solid rgba(139, 92, 246, 0.08) !important;
}

[data-theme="dark"] .metadata-pill {
  background: rgba(255, 255, 255, 0.04) !important;
  color: #94a3b8 !important;
  border-color: rgba(255, 255, 255, 0.05) !important;
}

.pill-icon {
  font-size: 0.75rem !important;
}

/* 4. Actions Row */
.redesigned-card-actions {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  border-top: 1px solid rgba(139, 92, 246, 0.08) !important;
  padding-top: 12px !important;
  margin-top: 4px !important;
  background: transparent !important;
}

[data-theme="dark"] .redesigned-card-actions {
  border-top-color: rgba(255, 255, 255, 0.06) !important;
}

.redesigned-card-price-box {
  display: flex !important;
  align-items: baseline !important;
  gap: 6px !important;
}

.price-current {
  font-size: 1.15rem !important;
  font-weight: 900 !important;
  color: var(--text-primary) !important;
}

[data-theme="dark"] .price-current {
  color: #f8fafc !important;
}

.price-current.is-free {
  color: #10b981 !important;
}

[data-theme="dark"] .price-current.is-free {
  color: #34d399 !important;
}

.price-original {
  font-size: 0.75rem !important;
  color: var(--text-muted) !important;
  text-decoration: line-through !important;
  display: inline !important;
}

.redesigned-card-cta-box {
  flex-shrink: 0 !important;
}

.redesigned-card-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 8px 16px !important;
  border-radius: 8px !important;
  font-size: 0.78rem !important;
  font-weight: 800 !important;
  border: none !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  text-decoration: none !important;
  margin: 0 !important;
}

.redesigned-card-btn.enroll-btn {
  background: linear-gradient(135deg, var(--btn-color, #8b5cf6) 0%, rgba(139, 92, 246, 0.8) 100%) !important;
  color: white !important;
  box-shadow: 0 4px 10px rgba(139, 92, 246, 0.15) !important;
}

.redesigned-card-btn.study-btn {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
  color: white !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
}

[data-theme="dark"] .redesigned-card-btn.study-btn {
  background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.08) 100%) !important;
  color: white !important;
}

.redesigned-card-btn:hover {
  transform: translateY(-1.5px) !important;
  filter: brightness(1.08) !important;
}

/* Hide legacy elements/badges that might still render or conflict */
.elite-batch-card > .batch-card-cover-wrapper,
.elite-batch-card > .batch-card-content-wrapper,
.elite-batch-card > .batch-card-action-wrapper,
.elite-batch-card > .batch-card-floating-badge,
.elite-batch-card > .batch-card-status-badge,
.elite-batch-card > .batch-card-faculty-group,
.elite-batch-card > .batch-card-whatsapp-share,
.elite-batch-card > div:not(.redesigned-card-inner) {
  display: none !important;
}

/* Ensure our inner is shown */
.elite-batch-card .redesigned-card-inner {
  display: flex !important;
}