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

:root {
  --bg-primary: #0a0a0c;
  --bg-secondary: #121218;
  --bg-tertiary: #1a1a24;
  --accent-gradient: linear-gradient(135deg, #ff416c, #ff4b2b);
  --accent-color: #ff4b2b;
  --accent-glow: rgba(255, 75, 43, 0.45);
  --text-primary: #ffffff;
  --text-secondary: #a0a0ab;
  --text-muted: #626270;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(255, 75, 43, 0.5);
  --glass-bg: rgba(20, 20, 28, 0.65);
  --glass-border: rgba(255, 255, 255, 0.06);
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --sidebar-width: 260px;
  --shadow-glow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --font-main: 'Plus Jakarta Sans', sans-serif;
  --font-header: 'Outfit', sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --card-width: 240px;
  --card-gap: 24px;
}

body.light-theme {
  --bg-primary: #f5f6fa;
  --bg-secondary: #ffffff;
  --bg-tertiary: #edf0f5;
  --text-primary: #111116;
  --text-secondary: #525262;
  --text-muted: #888896;
  --border-color: rgba(0, 0, 0, 0.08);
  --border-focus: rgba(255, 75, 43, 0.7);
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(0, 0, 0, 0.06);
  --shadow-glow: 0 8px 32px 0 rgba(0, 0, 0, 0.05);
}

/* Global Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-color) var(--bg-secondary);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-color);
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  overflow-y: auto !important;
  /* Prevent text selection and copying */
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

input, textarea, select {
  -webkit-user-select: auto;
  -moz-user-select: auto;
  -ms-user-select: auto;
  user-select: auto;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-header);
  font-weight: 700;
  letter-spacing: -0.02em;
}

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

/* Glass Card Base Style */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-glow);
  transition: var(--transition);
}

.glass-card:hover {
  border-color: rgba(255, 75, 43, 0.25);
  box-shadow: 0 8px 24px rgba(255, 75, 43, 0.1);
  transform: translateY(-4px);
}

/* Premium Gradient Button */
.btn-primary {
  background: var(--accent-gradient);
  color: var(--text-primary);
  border: none;
  padding: 12px 28px;
  border-radius: 8px;
  font-family: var(--font-main);
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px var(--accent-glow);
  transition: var(--transition);
  /* Touch-friendly minimum size */
  min-height: 44px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 75, 43, 0.6);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border-color);
  padding: 11px 26px;
  border-radius: 8px;
  font-family: var(--font-main);
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--text-secondary);
}

body.light-theme .btn-secondary:hover {
  background: rgba(0, 0, 0, 0.05);
}

/* Toast Notification Styles */
.toast-container {
  position: fixed;
  top: 24px;
  right: 16px;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 12px;
  /* Prevent overflow on small screens */
  max-width: calc(100vw - 32px);
}

.toast {
  background: rgba(18, 18, 24, 0.95);
  border: 1.5px solid var(--glass-border);
  backdrop-filter: blur(8px);
  padding: 16px 20px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: min(300px, calc(100vw - 32px));
  animation: slideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  color: var(--text-primary);
}

.toast.success { border-left: 4px solid var(--success); }
.toast.error { border-left: 4px solid var(--danger); }
.toast.info { border-left: 4px solid var(--accent-color); }

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

/* Navigation Bar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  height: 80px;
  display: flex;
  align-items: center;
}

.nav-container {
  width: 90%;
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-header);
  font-size: 24px;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

/* ---- Mobile slide-down nav panel ---- */
@media (max-width: 768px) {
  .nav-links {
    /* Hidden by default on mobile */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 12, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    padding: 0;
    /* Slide-down animation using max-height */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.35s ease;
    z-index: 999;
  }

  .nav-links.mobile-open {
    max-height: 400px;
    padding: 8px 0 16px 0;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 14px 24px;
    font-size: 15px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    transition: background 0.2s, color 0.2s;
  }

  .nav-links a:hover, .nav-links a.active {
    background: rgba(255, 75, 43, 0.06);
    color: var(--text-primary);
    text-shadow: none;
    padding-left: 28px;
  }
}

.nav-links a {
  font-weight: 500;
  color: var(--text-secondary);
}

.nav-links a:hover, .nav-links a.active {
  color: var(--text-primary);
  text-shadow: 0 0 10px rgba(255, 75, 43, 0.3);
}

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

.hamburger {
  display: none;
  background: none;
  border: 1.5px solid var(--border-color);
  color: var(--text-primary);
  font-size: 20px;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 8px;
  transition: var(--transition);
  flex-shrink: 0;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.hamburger:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
}

/* Hero Section */
.hero {
  padding: 160px 0 100px 0;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 70% 30%, rgba(255, 75, 43, 0.08) 0%, transparent 60%);
}

.hero-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 60px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 75, 43, 0.1);
  color: var(--accent-color);
  border: 1px solid rgba(255, 75, 43, 0.2);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(28px, 5.5vw, 56px);
  line-height: 1.15;
  margin-bottom: 24px;
}

.hero h1 span {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
}

.hero p {
  font-size: clamp(14px, 2vw, 18px);
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 400px;
  aspect-ratio: 1;
  background: rgba(255, 75, 43, 0.03);
  border: 2px dashed rgba(255, 75, 43, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: rotateDashed 60s linear infinite;
}

.hero-circle {
  width: 80%;
  height: 80%;
  background: var(--accent-gradient);
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  position: absolute;
}

.hero-box {
  position: absolute;
  width: 220px;
  padding: 16px;
  background: rgba(18, 18, 24, 0.85);
  border: 1.5px solid var(--glass-border);
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  animation: floatCard 6s ease-in-out infinite;
}

.hero-box-1 {
  top: 10%;
  right: -5%;
  animation-delay: 0s;
}

.hero-box-2 {
  bottom: 10%;
  left: -5%;
  animation-delay: 3s;
}

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

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

/* Stats Section */
.stats {
  padding: 60px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.stats-grid {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.stat-item h3 {
  font-size: clamp(28px, 4vw, 44px);
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 4px;
}

.stat-item p {
  color: var(--text-secondary);
  font-size: 15px;
}

/* Home Section Layouts */
.section {
  padding: clamp(60px, 8vw, 100px) 0;
}

.section-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: clamp(24px, 4vw, 38px);
  margin-bottom: 16px;
}

.section-header h2 span {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 16px;
  max-width: 600px;
  margin: 0 auto;
}

/* Course Cards & Catalog */
.courses-grid {
  display: grid;
  /* min(100%, 350px) prevents overflow on very narrow screens */
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 30px;
}

.course-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.course-card-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 75, 43, 0.15);
  color: var(--accent-color);
  border: 1px solid rgba(255, 75, 43, 0.25);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  z-index: 10;
}

.course-title {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.course-meta {
  display: flex;
  gap: 16px;
  color: var(--text-secondary);
  font-size: 13px;
  margin-bottom: 16px;
}

.course-meta i {
  color: var(--accent-color);
}

.course-description {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 24px;
  flex-grow: 1;
}

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

.course-pricing {
  display: flex;
  flex-direction: column;
}

.course-price-current {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
}

.course-price-original {
  font-size: 14px;
  text-decoration: line-through;
  color: var(--text-muted);
}

/* Catalog Filter */
.courses-filter {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 10px 20px;
  border-radius: 50px;
  font-family: var(--font-main);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
  background: var(--accent-gradient);
  border-color: transparent;
  color: var(--text-primary);
}

/* Authentication Page Forms */
/* Authentication Page Forms — Premium Split-Screen Layout */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 0% 0%, rgba(255, 75, 43, 0.06) 0%, transparent 50%),
              radial-gradient(circle at 100% 100%, rgba(255, 75, 43, 0.04) 0%, transparent 50%),
              #08080c;
  font-family: var(--font-main);
  padding: clamp(10px, 4vw, 30px);
  overflow-x: hidden;
  position: relative;
}

/* Floating animated background blobs */
.auth-bg-blob {
  position: absolute;
  width: min(350px, 80vw);
  height: min(350px, 80vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 75, 43, 0.08) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
  animation: authBlobFloat 8s infinite alternate ease-in-out;
}

.auth-bg-blob-1 {
  top: 10%;
  left: 5%;
}

.auth-bg-blob-2 {
  bottom: 10%;
  right: 5%;
  animation-delay: -4s;
}

@keyframes authBlobFloat {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(30px) scale(1.08); }
}

.auth-wrapper {
  display: flex;
  width: 100%;
  max-width: 1000px;
  background: rgba(18, 18, 24, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  z-index: 1;
}

.auth-brand-panel {
  flex: 1.1;
  background: linear-gradient(135deg, rgba(255, 75, 43, 0.05) 0%, rgba(255, 65, 108, 0.01) 100%);
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
}

.auth-brand-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(circle at 10% 20%, rgba(255, 75, 43, 0.03) 0%, transparent 60%);
  pointer-events: none;
}

.brand-panel-header {
  z-index: 1;
}

.brand-features-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 40px 0;
  z-index: 1;
}

.brand-feature-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.brand-feature-icon {
  width: 38px;
  height: 38px;
  background: rgba(255, 75, 43, 0.1);
  color: var(--accent-color);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  border: 1px solid rgba(255, 75, 43, 0.15);
}

.brand-feature-text h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  font-family: var(--font-header);
}

.brand-feature-text p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.auth-form-panel {
  flex: 0.9;
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-card {
  width: 100%;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.auth-header {
  text-align: center;
  margin-bottom: 30px;
}

.auth-header h2 {
  font-size: 28px;
  margin-bottom: 8px;
  font-family: var(--font-header);
  color: var(--text-primary);
}

.auth-header p {
  color: var(--text-secondary);
  font-size: 14px;
}

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

.auth-form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.auth-input-wrapper {
  position: relative;
}

.auth-input-wrapper i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.auth-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 12px 16px 12px 44px;
  border-radius: 8px;
  font-family: var(--font-main);
  font-size: 14px;
  outline: none;
  transition: var(--transition);
}

.auth-input:focus {
  border-color: var(--border-focus);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 10px rgba(255, 75, 43, 0.15);
}

.auth-btn {
  width: 100%;
  justify-content: center;
  margin-top: 12px;
  padding: 14px;
  font-size: 15px;
}

/* Password Show/Hide Eye Toggle */
.auth-input-eye {
  padding-right: 46px; /* room for the eye button */
}

.eye-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 15px;
  padding: 0;
  min-height: unset;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
  z-index: 5;
}

.eye-toggle:hover {
  color: var(--accent-color);
}


.auth-redirect {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: var(--text-secondary);
}

.auth-redirect a {
  color: var(--accent-color);
  font-weight: 600;
}

/* Collapsing layout for mobile and tablet views */
@media (max-width: 900px) {
  .auth-brand-panel {
    display: none;
  }
  .auth-wrapper {
    max-width: 480px;
  }
  .auth-form-panel {
    padding: 36px 24px;
  }
}

/* Dashboard Sidebar Layout */
.dashboard-wrapper {
  display: flex;
  min-height: 100vh;
  padding-top: 80px;
}

.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-color);
  position: fixed;
  top: 80px;
  bottom: 0;
  left: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  padding: 24px 0;
  transition: var(--transition);
}

.sidebar-profile {
  padding: 0 24px 24px 24px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-header);
  font-weight: 700;
  color: var(--text-primary);
}

.sidebar-profile-info h4 {
  font-size: 15px;
  line-height: 1.2;
}

.sidebar-profile-info p {
  font-size: 12px;
  color: var(--text-secondary);
}

.sidebar-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 12px;
  flex-grow: 1;
  overflow-y: auto;
  min-height: 0;
  margin-bottom: 16px;
}

.sidebar-menu::-webkit-scrollbar {
  width: 5px;
}

.sidebar-menu::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar-menu::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

.sidebar-menu::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}

.sidebar-item a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: var(--text-secondary);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
}

.sidebar-item a:hover, .sidebar-item.active a {
  background: rgba(255, 75, 43, 0.06);
  color: var(--text-primary);
}

.sidebar-item.active a {
  background: var(--accent-gradient);
  box-shadow: 0 4px 15px rgba(255, 75, 43, 0.25);
}

.sidebar-footer {
  padding: 0 16px;
}

.logout-btn {
  width: 100%;
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.2);
  padding: 12px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.logout-btn:hover {
  background: var(--danger);
  color: var(--text-primary);
}

.dashboard-content {
  margin-left: var(--sidebar-width);
  flex-grow: 1;
  padding: 40px;
  min-height: calc(100vh - 80px);
  background-color: var(--bg-primary);
}

/* Dashboard Tabs/Sections */
.dashboard-panel {
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

.dashboard-panel.active {
  display: block;
}

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

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

.panel-header h2 {
  font-size: 28px;
}

/* Stat Cards */
.stats-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.stat-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stat-card-info h5 {
  color: var(--text-secondary);
  font-size: 13px;
  text-transform: uppercase;
  margin-bottom: 6px;
  font-weight: 600;
}

.stat-card-info h2 {
  font-size: 32px;
}

.stat-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 75, 43, 0.1);
  color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.stat-card-icon.revenue {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
}

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

/* Notices & Announcements */
.notices-list, .announcements-list, .classes-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.notice-item, .announcement-item, .class-item {
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.notice-item-header, .class-item-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  align-items: center;
}

.notice-title, .class-title {
  font-size: 18px;
  color: var(--text-primary);
}

.notice-date, .announcement-date, .class-date {
  font-size: 12px;
  color: var(--text-muted);
}

.notice-body, .announcement-body {
  color: var(--text-secondary);
  font-size: 14px;
}

/* Data Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: var(--bg-secondary);
}

/* Enable custom horizontal scrolling for multi-column tables to prevent clipping */
#admin-payments .data-table {
  min-width: 1300px;
}
#admin-certificates .data-table {
  min-width: 1000px;
}
#admin-enrollments .data-table {
  min-width: 900px;
}

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

.data-table th {
  background: rgba(255, 255, 255, 0.02);
  padding: 16px 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  border-bottom: 1.5px solid var(--border-color);
}

.data-table td {
  padding: 16px 20px;
  font-size: 14px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
}

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

.data-table tr:hover td {
  background: rgba(255, 255, 255, 0.01);
  color: var(--text-primary);
}

/* Status Badges */
.badge {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.badge.pending {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.badge.approved, .badge.captured, .badge.sent {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge.failed {
  background: rgba(239, 108, 108, 0.1);
  color: var(--danger);
  border: 1px solid rgba(239, 108, 108, 0.2);
}

/* Modal Popup Window */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1050;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease forwards;
}

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

.modal-content {
  width: 90%;
  max-width: 500px;
  position: relative;
  background: var(--bg-secondary);
  border: 1.5px solid var(--glass-border);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.8);
  border-radius: 16px;
  overflow: hidden;
  animation: scaleUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes scaleUp {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-header {
  padding: 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-size: 20px;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 20px;
  cursor: pointer;
  transition: var(--transition);
}

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

.modal-body {
  padding: 24px;
  max-height: 75vh;
  overflow-y: auto;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* Form Styles inside Dashboard & Modals */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 12px 16px;
  border-radius: 8px;
  font-family: var(--font-main);
  font-size: 14px;
  outline: none;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--border-focus);
  background: rgba(255, 255, 255, 0.05);
}

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

/* Custom Highlighted Dropdowns */
select.form-control {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ff4b2b' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px;
  padding-right: 40px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border: 1.5px solid rgba(255, 75, 43, 0.45);
  background-color: rgba(255, 75, 43, 0.04);
  box-shadow: 0 0 12px rgba(255, 75, 43, 0.1);
  font-weight: 600;
}

select.form-control:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 15px rgba(255, 75, 43, 0.3);
  background-color: rgba(255, 75, 43, 0.08);
}

select.form-control option {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
}

/* Certificate Lock Screen */
.certificate-lock-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  text-align: center;
}

.certificate-lock-icon {
  font-size: 72px;
  color: var(--accent-color);
  margin-bottom: 24px;
  text-shadow: 0 0 30px var(--accent-glow);
  animation: glowPulse 2s ease-in-out infinite;
}

.certificate-title-locked {
  font-size: 24px;
  margin-bottom: 12px;
}

.certificate-text-locked {
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 400px;
}

@keyframes glowPulse {
  0% { transform: scale(1); filter: drop-shadow(0 0 5px rgba(255, 75, 43, 0.4)); }
  50% { transform: scale(1.05); filter: drop-shadow(0 0 20px rgba(255, 75, 43, 0.8)); }
  100% { transform: scale(1); filter: drop-shadow(0 0 5px rgba(255, 75, 43, 0.4)); }
}

/* Certificate Success Container */
.certificate-unlocked-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 24px;
  text-align: center;
}

.certificate-unlocked-icon {
  font-size: 72px;
  color: var(--success);
  margin-bottom: 24px;
}

.certificate-title-unlocked {
  font-size: 24px;
  margin-bottom: 16px;
  color: var(--success);
}

.certificate-info-unlocked {
  background: rgba(16, 185, 129, 0.05);
  border: 1px dashed rgba(16, 185, 129, 0.2);
  padding: 24px;
  border-radius: 12px;
  color: var(--text-primary);
  max-width: 500px;
}

/* Footer Section */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 80px 0 30px 0;
}

.footer-grid {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  margin-bottom: 60px;
}

.footer-col h4 {
  font-size: 16px;
  text-transform: uppercase;
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 8px;
}

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

.footer-about p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 20px;
}

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

.footer-links a {
  color: var(--text-secondary);
  font-size: 14px;
}

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

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 12px;
  /* Allow long email to wrap */
  word-break: break-word;
}

.footer-contact-item i {
  color: var(--accent-color);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 30px;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 14px;
  color: var(--text-secondary);
}

/* Custom Dashboard Grids */
.responsive-grid-1-3-0-7 {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 24px;
}
.responsive-grid-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.responsive-grid-profile {
  display: flex;
  gap: 24px;
}
.responsive-grid-profile > div:first-child {
  flex: 0 0 320px;
}
.responsive-grid-profile > div:last-child {
  flex: 1;
}

@media (max-width: 900px) {
  .responsive-grid-1-3-0-7,
  .responsive-grid-two-col,
  .responsive-grid-profile {
    display: flex;
    flex-direction: column;
  }
  .responsive-grid-profile > div:first-child,
  .responsive-grid-profile > div:last-child {
    flex: auto;
  }
}

/* Mobile Sidebar Toggle Action Dashboard */
.sidebar-toggle-btn {
  display: none;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 16px;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  align-items: center;
  gap: 8px;
}

/* ========================================================
   RESPONSIVE MEDIA QUERIES — COMPREHENSIVE
   ======================================================== */

/* --- Tablet / Small Laptop (max 1023px) --- */
@media (max-width: 1023px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
  }
  .hero p {
    margin: 0 auto 30px auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .dashboard-wrapper {
    flex-direction: row;
  }
  .sidebar {
    position: fixed;
    top: 80px;
    bottom: 0;
    left: 0;
    width: var(--sidebar-width) !important;
    height: auto;
    transform: translateX(-100%);
    z-index: 95;
    border-right: 1px solid var(--border-color);
    border-bottom: none;
    display: flex !important;
    flex-direction: column;
    padding: 24px 0 !important;
    background: var(--bg-secondary);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .sidebar-profile {
    display: flex !important;
  }
  .sidebar-menu {
    flex-direction: column !important;
    overflow-x: visible !important;
    overflow-y: auto !important;
    padding: 0 12px !important;
  }
  .sidebar-item a {
    white-space: nowrap;
  }
  .sidebar-footer {
    display: block !important;
  }
  .dashboard-content {
    margin-left: 0 !important;
    width: 100% !important;
    padding: 24px !important;
  }
  .sidebar-toggle-btn {
    display: inline-flex;
  }
  .certificate-section-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .certificate-section-grid button {
    margin: 0 auto;
  }
}

/* --- Mobile Large (max 767px) --- */
@media (max-width: 767px) {
  /* Show hamburger, let .nav-links be driven by mobile-open class */
  .hamburger {
    display: inline-flex;
  }
  .nav-auth .btn-primary, .nav-auth .btn-secondary, .nav-auth > a {
    display: none !important;
  }
  .logo {
    font-size: 16px;
  }
  .logo img {
    width: 32px !important;
    height: 32px !important;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .panel-header {
    flex-direction: column;
    align-items: flex-start;
  }
  /* Hero section on tablet */
  .hero {
    padding: 120px 0 70px 0;
  }
  .hero-image-wrapper {
    max-width: 280px;
  }
  .contact-section-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .contact-info-list {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* --- Mobile (max 480px) --- */
@media (max-width: 480px) {
  /* Hero */
  .hero {
    padding: 100px 0 50px 0;
  }
  /* Hide the floating animated cards to avoid overflow */
  .hero-box {
    display: none;
  }
  .hero-image-wrapper {
    max-width: 220px;
  }
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  .hero-actions a, .hero-actions button {
    width: 100%;
    justify-content: center;
  }

  /* Stats: 1 column */
  .stats-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  /* Courses: 1 column */
  .courses-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Contact info cards: 1 column */
  .contact-info-list {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  /* Section header */
  .section-header {
    margin-bottom: 36px;
  }

  /* Auth card edge padding */
  .auth-card {
    padding: 28px 20px;
  }

  /* Dashboard padding */
  .dashboard-content {
    padding: 16px;
  }

  /* Footer bottom stack */
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  /* WhatsApp float button */
  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 16px;
    font-size: 26px;
  }

  /* Panel header */
  .panel-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  /* Modal: full width on small screens */
  .modal-content {
    width: 95%;
  }
  .modal-body {
    padding: 16px;
  }
  .modal-header, .modal-footer {
    padding: 14px 16px;
  }
}

/* --- Very Small (max 375px) --- */
@media (max-width: 375px) {
  .nav-container {
    padding: 0 12px;
  }
  .section-container {
    width: 94%;
  }
  .course-footer {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
  .btn-primary, .btn-secondary {
    font-size: 14px;
    padding: 10px 18px;
  }
}

/* ========================================================
   STICKY NAVBAR & PLACEMENT CAROUSEL STYLES
   ======================================================== */

html {
  scroll-behavior: smooth;
}

.navbar.sticky {
  background: rgba(10, 10, 12, 0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.nav-links a {
  position: relative;
  padding: 6px 0;
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2.5px;
  background: var(--accent-gradient);
  border-radius: 2px;
}


/* ========================================================
   GET IN TOUCH & WHATSAPP FLOATING BUTTON STYLES
   ======================================================== */

#contact {
  background-color: var(--bg-primary);
  position: relative;
  overflow: hidden;
  padding: 100px 0;
  border-top: 1px solid var(--border-color);
}

/* background ambient glow animations */
@keyframes backgroundGlow {
  0%, 100% {
    transform: scale(1) translate(0, 0);
    opacity: 0.12;
  }
  50% {
    transform: scale(1.15) translate(5%, 5%);
    opacity: 0.22;
  }
}

#contact::before {
  content: '';
  position: absolute;
  top: -15%;
  left: -15%;
  width: 50%;
  height: 50%;
  background: var(--accent-gradient);
  filter: blur(140px);
  border-radius: 50%;
  z-index: 0;
  opacity: 0.15;
  pointer-events: none;
  animation: backgroundGlow 10s ease-in-out infinite alternate;
}

#contact::after {
  content: '';
  position: absolute;
  bottom: -15%;
  right: -15%;
  width: 50%;
  height: 50%;
  background: var(--accent-gradient);
  filter: blur(140px);
  border-radius: 50%;
  z-index: 0;
  opacity: 0.15;
  pointer-events: none;
  animation: backgroundGlow 10s ease-in-out infinite alternate-reverse;
}

.contact-section-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* contact.html standalone page grid */
.contact-page-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info-panel, .contact-form-panel {
  position: relative;
  z-index: 2;
}

.contact-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-color);
  letter-spacing: 2px;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.contact-heading {
  font-size: clamp(24px, 4vw, 38px);
  margin-bottom: 16px;
  line-height: 1.25;
  font-family: var(--font-header);
}

.contact-heading span {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.contact-desc {
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 40px;
  max-width: 560px;
}

/* =========================================================
   CONTACT INFO LIST & CARDS — FULLY RESPONSIVE
   ========================================================= */

/* Default: 2 columns on desktop */
.contact-info-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: stretch; /* Equal heights across all cards in a row */
}

.contact-info-card {
  display: flex;
  align-items: flex-start; /* Icon aligns with top of text block */
  gap: 16px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 18px;
  box-shadow: var(--shadow-glow);
  transition: var(--transition);
  /* No fixed min-height — let grid stretch control equal heights */
  width: 100%;
  box-sizing: border-box;
}

/* Hover effects only on devices with a real pointer/mouse (not touch) */
@media (hover: hover) and (pointer: fine) {
  .contact-info-card:hover {
    border-color: rgba(255, 75, 43, 0.25);
    box-shadow: 0 8px 24px rgba(255, 75, 43, 0.15);
    transform: translateY(-3px);
  }
}

.info-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: rgba(255, 75, 43, 0.1);
  color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0; /* Icon never shrinks, text wraps instead */
}

.info-content {
  flex: 1;
  min-width: 0; /* Allow flex child to shrink below its content size */
}

.info-content h4 {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 4px;
  font-family: var(--font-header);
}

.info-content p {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  word-break: break-word;
  overflow-wrap: break-word;
}

/* Phone: never break the number across lines */
.contact-phone {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Email: wrap naturally at the @ sign or any character to avoid overflow */
.contact-email {
  word-break: break-all;
  overflow-wrap: anywhere;
  hyphens: auto;
}

/* Address, hours, timings: word-level wrapping */
.contact-address,
.contact-hours,
.contact-timings {
  word-break: keep-all;
  overflow-wrap: break-word;
}

.contact-form-panel .glass-card {
  padding: 30px;
  border-color: rgba(255, 255, 255, 0.08);
}

.form-title {
  font-size: 24px;
  margin-bottom: 24px;
  font-family: var(--font-header);
  color: var(--text-primary);
}

/* WhatsApp Floating Button — desktop default */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 40px;
  right: 40px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50%;
  text-align: center;
  font-size: 32px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@media (hover: hover) and (pointer: fine) {
  .whatsapp-float:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.6);
    background-color: #20ba5a;
    color: #fff;
  }
}

/* Scroll Reveal Helper Classes */
.scroll-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   RESPONSIVE CONTACT SECTION — TABLET & MOBILE
   ========================================================= */

/* ---- Tablet Large: 1025px and below — collapse 2-col page grid to 1-col ---- */
@media (max-width: 1023px) {
  .contact-section-grid,
  .contact-page-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ---- Tablet: 768px – 1024px — 2 contact cards per row, reduced spacing ---- */
@media (min-width: 768px) and (max-width: 1024px) {
  .contact-info-list {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .contact-info-card {
    padding: 14px;
    gap: 14px;
    border-radius: 10px;
  }

  .info-icon {
    width: 40px;
    height: 40px;
    font-size: 18px;
    border-radius: 8px;
  }

  .info-content h4 {
    font-size: 13px;
  }

  .info-content p {
    font-size: 14px;
  }
}

/* ---- Mobile: below 768px — 1 card per row, full width ---- */
@media (max-width: 767px) {
  .contact-info-list {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .contact-info-card {
    padding: 14px 16px;
    gap: 14px;
    border-radius: 10px;
    align-items: center; /* Icon vertically centered on single-line rows */
  }

  .info-icon {
    width: 42px;
    height: 42px;
    font-size: 18px;
    border-radius: 8px;
  }

  .info-content h4 {
    font-size: 13px;
  }

  .info-content p {
    font-size: 14px;
  }

  /* Align cards with multi-line text (e.g. Batch Timings) back to top */
  .contact-info-card:has(.contact-timings) {
    align-items: flex-start;
  }

  /* Contact section layout on mobile */
  .contact-section-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* WhatsApp button: safe from footer overlap on mobile */
  .whatsapp-float {
    width: 52px;
    height: 52px;
    bottom: 24px;
    right: 20px;
    font-size: 28px;
  }
}

/* ---- Small Mobile: below 480px (360px, 375px, 390px, 414px) ---- */
@media (max-width: 480px) {
  .contact-info-list {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .contact-info-card {
    padding: 12px 14px;
    gap: 12px;
    border-radius: 10px;
  }

  .info-icon {
    width: 38px;
    height: 38px;
    font-size: 16px;
    border-radius: 8px;
  }

  .info-content h4 {
    font-size: 12px;
    margin-bottom: 3px;
  }

  .info-content p {
    font-size: 13px;
  }

  /* Email must wrap safely on very narrow screens */
  .contact-email {
    font-size: 12px;
  }

  /* Keep phone readable and on one line */
  .contact-phone {
    font-size: 13px;
  }

  /* WhatsApp button on small mobile */
  .whatsapp-float {
    width: 48px;
    height: 48px;
    bottom: 20px;
    right: 16px;
    font-size: 25px;
  }
}

/* ---- Very Small Mobile: below 375px (320px) ---- */
@media (max-width: 374px) {
  .contact-info-card {
    padding: 10px 12px;
    gap: 10px;
  }

  .info-icon {
    width: 34px;
    height: 34px;
    font-size: 15px;
    border-radius: 7px;
  }

  .info-content h4 {
    font-size: 11px;
  }

  .info-content p,
  .contact-phone,
  .contact-hours,
  .contact-timings {
    font-size: 12px;
  }

  /* Email wraps at character level to prevent ANY overflow at 320px */
  .contact-email {
    font-size: 11px;
    word-break: break-all;
  }

  /* Section padding reduction */
  #contact {
    padding: 64px 0;
  }

  /* WhatsApp button: smallest safe size */
  .whatsapp-float {
    width: 44px;
    height: 44px;
    bottom: 16px;
    right: 14px;
    font-size: 22px;
  }
}

/* ========================================================
   PREMIUM CERTIFICATE UNLOCK STYLES
   ======================================================== */

.certificate-section-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  align-items: center;
}

.certificate-preview-card-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 1.414;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  border: 1.5px solid var(--border-color);
  background: #111115;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.4s ease, box-shadow 0.4s ease;
}

.certificate-preview-card-wrapper:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(255, 75, 43, 0.4);
  box-shadow: 0 25px 50px rgba(255, 75, 43, 0.15);
}

.certificate-blurred-content {
  filter: blur(8px);
  opacity: 0.3;
  padding: 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  pointer-events: none;
  user-select: none;
  background-image: radial-gradient(circle, #222227 0%, #0d0d10 100%);
  transition: opacity 0.4s ease;
}

.certificate-inner-border {
  border: 2px solid rgba(255, 255, 255, 0.04);
  padding: 16px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cert-header-title {
  font-family: var(--font-header);
  letter-spacing: 2.5px;
  font-size: 11px;
  color: var(--text-muted);
}

.cert-header-line {
  width: 30px;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 6px auto;
}

.cert-sub {
  font-size: 9px;
  color: var(--text-muted);
}

.cert-name-placeholder {
  font-size: 18px;
  color: var(--text-primary);
  margin: 4px 0;
  letter-spacing: 1px;
  font-family: var(--font-header);
}

.cert-course-placeholder {
  font-size: 12px;
  color: var(--accent-color);
  margin-top: 2px;
}

.cert-footer-details {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-size: 7.5px;
  color: var(--text-muted);
}

.cert-seal {
  font-size: 20px;
  color: var(--accent-color);
}

.certificate-lock-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(8, 8, 10, 0.45);
  z-index: 2;
  transition: background 0.4s ease;
}

.locked-preview-badge {
  background: rgba(255, 75, 43, 0.1);
  color: var(--accent-color);
  border: 1.5px solid rgba(255, 75, 43, 0.4);
  font-size: 10px;
  padding: 5px 12px;
  border-radius: 50px;
  margin-bottom: 12px;
  letter-spacing: 1.2px;
  box-shadow: 0 0 15px rgba(255, 75, 43, 0.2);
  text-transform: uppercase;
}

.lock-pulse-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 1.5px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
  animation: lockGlow 2s infinite ease-in-out;
}

@keyframes lockGlow {
  0% {
    transform: scale(1);
    box-shadow: 0 0 5px rgba(255, 75, 43, 0.2), 0 10px 20px rgba(0, 0, 0, 0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 75, 43, 0.6), 0 10px 20px rgba(0, 0, 0, 0.4);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 5px rgba(255, 75, 43, 0.2), 0 10px 20px rgba(0, 0, 0, 0.4);
  }
}

/* Responsive adjustment for Certificate section */
@media (max-width: 992px) {
  .certificate-section-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .certificate-section-grid button {
    margin: 0 auto;
  }
  .certificate-section-grid div[style*="display: flex"] {
    justify-content: center;
  }
}

/* Student Profile Settings Styles */
.sidebar-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

#profile-avatar-display img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

/* Custom Social Badges */
.social-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid var(--border-color);
}
.social-badge.connected {
  background: rgba(16, 185, 129, 0.12);
  color: var(--success);
  border-color: rgba(16, 185, 129, 0.25);
}
.social-badge.missing {
  background: rgba(98, 98, 112, 0.1);
  color: var(--text-muted);
  border-color: rgba(98, 98, 112, 0.2);
}

@media (max-width: 992px) {
  .profile-settings-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ==================== QUIZ SYSTEM STYLES ==================== */
.quiz-options-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0;
}

.quiz-option-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1.5px solid var(--border-color);
  border-radius: 8px;
  padding: 14px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: var(--transition);
  font-family: var(--font-main);
  font-size: 14px;
}

.quiz-option-item:hover {
  background: rgba(255, 75, 43, 0.04);
  border-color: rgba(255, 75, 43, 0.3);
}

.quiz-option-item.selected {
  background: rgba(255, 75, 43, 0.08);
  border-color: var(--accent-color);
  box-shadow: 0 0 12px rgba(255, 75, 43, 0.15);
}

.quiz-option-prefix {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  transition: var(--transition);
}

.quiz-option-item.selected .quiz-option-prefix {
  background: var(--accent-gradient);
  border-color: transparent;
  color: var(--text-primary);
}

/* Review Answer Sheet */
.review-question-card {
  border-bottom: 1.5px solid var(--border-color);
  padding-bottom: 24px;
  margin-bottom: 24px;
}

.review-question-card:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.review-option-item {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 13px;
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.review-option-item.correct {
  background: rgba(16, 185, 129, 0.08);
  border-color: var(--success);
  color: #a7f3d0;
}

.review-option-item.incorrect-selected {
  background: rgba(239, 68, 68, 0.08);
  border-color: var(--danger);
  color: #fca5a5;
}

/* Result Circular Score */
.result-score-circle {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(18, 18, 24, 0.9) 0%, rgba(10, 10, 12, 0.95) 100%);
  border: 4px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
  box-shadow: var(--shadow-glow);
}

.result-score-circle.pass {
  border-color: var(--success);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.25);
}

.result-score-circle.fail {
  border-color: var(--danger);
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.25);
}

/* Admin Questions Builder styles */
.admin-question-builder-item {
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.01);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  position: relative;
}

.admin-question-builder-item:hover {
  border-color: rgba(255, 75, 43, 0.15);
}

.remove-question-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 4px;
  padding: 4px 8px;
  cursor: pointer;
  font-size: 11px;
  transition: var(--transition);
}

.remove-question-btn:hover {
  background: var(--danger);
  color: white;
}

/* Double Tab styles */
.admin-tabs-nav {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  border-bottom: 1.5px solid var(--border-color);
  padding-bottom: 10px;
}

.admin-tab-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 16px;
  position: relative;
  transition: var(--transition);
}

.admin-tab-btn.active {
  color: var(--text-primary);
}

.admin-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -11.5px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent-gradient);
}

/* ========================================================
   ADDITIONAL RESPONSIVE & LAYOUT OPTIMIZATIONS
   ======================================================== */

/* Logo responsiveness across all headers */
@media (max-width: 1023px) {
  .logo {
    font-size: 20px;
  }
  .logo img {
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 767px) {
  .logo {
    font-size: 18px;
    gap: 6px;
  }
  .logo img {
    width: 32px;
    height: 32px;
  }
}

@media (max-width: 480px) {
  .logo {
    font-size: 15px;
    gap: 5px;
  }
  .logo img {
    width: 30px;
    height: 30px;
  }
}

/* Founder Section Responsiveness */
.founder-section-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
  align-items: center;
}

.founder-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 1023px) {
  .founder-section-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .founder-section-grid > div:first-child {
    display: flex;
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .founder-cards-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .founder-section-grid h2 {
    font-size: 28px !important;
  }
}

/* Courses page header responsive padding */
.courses-page-header {
  padding: clamp(100px, 12vw, 140px) 0 40px 0;
}

/* Dashboard Sidebar Horizontal Menu Styling */
@media (max-width: 1023px) {
  .sidebar-menu {
    scrollbar-width: none; /* Hide scrollbar for Firefox */
  }
  .sidebar-menu::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome/Safari */
  }
  .sidebar-item a {
    padding: 8px 12px;
    font-size: 13px;
  }
}

.admin-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -11.5px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent-gradient);
}

/* ========================================================
   ADDITIONAL RESPONSIVE UTILITIES & HELPER CLASSES
   ======================================================== */

/* Sidebar Overlay */
.sidebar-overlay {
  position: fixed;
  top: 80px;
  left: 0;
  width: 100vw;
  height: calc(100vh - 80px);
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 91;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.sidebar-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Explicit Stats Cards Responsive Grid */
@media (min-width: 1024px) {
  .stats-cards-grid {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}
@media (max-width: 1023px) and (min-width: 768px) {
  .stats-cards-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 767px) {
  .stats-cards-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Horizontal Table scroll and default minimum sizes */
.table-responsive .data-table {
  min-width: 800px;
}

/* Responsive grid layouts replacing hardcoded inline styles */
.responsive-grid-1-3-0-7 {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 30px;
  margin-top: 40px;
}

.responsive-grid-1-1 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 40px;
}

.responsive-grid-profile {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 30px;
}

.responsive-grid-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.attendance-control-grid {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 20px;
  align-items: flex-end;
}

@media (max-width: 1023px) {
  .responsive-grid-1-3-0-7,
  .responsive-grid-1-1 {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .responsive-grid-profile {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 767px) {
  .attendance-control-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: stretch;
  }
  .attendance-control-grid button {
    width: 100%;
    margin-top: 8px;
  }
}

@media (max-width: 576px) {
  .responsive-grid-two-col {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  /* Modal footer button stacking */
  .modal-footer {
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
  }
  .modal-footer button {
    width: 100%;
  }
}

/* General Mobile adjustments to prevent clipping */
img {
  max-width: 100%;
  height: auto;
}
iframe {
  max-width: 100%;
}

/* ==========================================
   COURSE PROGRESS BAR STYLES
   ========================================== */

.course-progress-wrapper {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
}

.course-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.course-progress-label {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.course-progress-pct {
  font-size: 13px;
  font-weight: 800;
  color: var(--accent-color);
}

.course-progress-bar-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50px;
  overflow: hidden;
  position: relative;
}

.course-progress-bar-fill {
  height: 100%;
  border-radius: 50px;
  background: var(--accent-gradient);
  box-shadow: 0 0 8px rgba(255, 75, 43, 0.5);
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.course-progress-bar-fill::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  animation: progressShimmer 2s infinite;
}

@keyframes progressShimmer {
  0% { left: -60%; }
  100% { left: 160%; }
}

.progress-milestone {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 50px;
  font-weight: 700;
  margin-top: 6px;
}

.progress-milestone.not-started { background: rgba(255,255,255,0.05); color: var(--text-muted); }
.progress-milestone.in-progress { background: rgba(245,158,11,0.1); color: var(--warning); }
.progress-milestone.almost { background: rgba(59,130,246,0.1); color: #3b82f6; }
.progress-milestone.completed { background: rgba(16,185,129,0.1); color: var(--success); }

/* Admin progress input row */
.progress-update-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.progress-update-row input[type="number"] {
  width: 70px;
  padding: 5px 8px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  background: rgba(255,255,255,0.04);
  color: var(--text-primary);
  font-size: 13px;
  text-align: center;
}

/* ==========================================
   STREAK TRACKER STYLES
   ========================================== */

.streak-hero-card {
  background: linear-gradient(135deg, rgba(255, 75, 43, 0.12) 0%, rgba(255, 65, 108, 0.08) 100%);
  border: 1.5px solid rgba(255, 75, 43, 0.25);
  border-radius: 20px;
  padding: 36px;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 28px;
}

.streak-hero-card::before {
  content: '';
  position: absolute;
  top: -40%;
  left: -20%;
  width: 60%;
  height: 180%;
  background: radial-gradient(circle, rgba(255,75,43,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.streak-fire-icon {
  font-size: 64px;
  display: block;
  margin-bottom: 8px;
  animation: fireFlicker 1.5s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 16px rgba(255, 75, 43, 0.6));
}

@keyframes fireFlicker {
  0% { transform: scale(1) rotate(-2deg); filter: drop-shadow(0 0 12px rgba(255, 75, 43, 0.5)); }
  100% { transform: scale(1.07) rotate(2deg); filter: drop-shadow(0 0 22px rgba(255, 75, 43, 0.8)); }
}

.streak-count {
  font-size: 72px;
  font-family: var(--font-header);
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 4px;
}

.streak-label {
  font-size: 16px;
  color: var(--text-secondary);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.streak-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.streak-stat-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 20px 16px;
  text-align: center;
}

.streak-stat-card h3 {
  font-size: 28px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 4px;
}

.streak-stat-card p {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 600;
}

/* Milestone Badges */
.streak-badges-section h3 {
  font-size: 18px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.streak-badges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px;
}

.streak-badge-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 20px 16px;
  text-align: center;
  position: relative;
  transition: var(--transition);
}

.streak-badge-card.unlocked {
  border-color: rgba(255, 75, 43, 0.35);
  background: rgba(255, 75, 43, 0.06);
}

.streak-badge-card.locked {
  opacity: 0.45;
  filter: grayscale(0.5);
}

.streak-badge-card .badge-icon {
  font-size: 32px;
  display: block;
  margin-bottom: 8px;
}

.streak-badge-card .badge-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  display: block;
  margin-bottom: 4px;
}

.streak-badge-card .badge-req {
  font-size: 11px;
  color: var(--text-muted);
}

.streak-badge-card.unlocked .badge-icon {
  animation: badgePop 0.5s ease;
  filter: drop-shadow(0 0 8px rgba(255,75,43,0.5));
}

@keyframes badgePop {
  0% { transform: scale(0.7); }
  70% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

.unlocked-check {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 20px;
  height: 20px;
  background: var(--accent-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: white;
}

/* ==========================================
   ASSIGNMENT STYLES
   ========================================== */

.assignment-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.assignment-card:hover {
  border-color: rgba(255, 75, 43, 0.25);
  transform: translateY(-3px);
}

.assignment-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  gap: 12px;
}

.assignment-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  flex: 1;
}

.assignment-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.assignment-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
  flex-grow: 1;
}

.assignment-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
  gap: 12px;
  flex-wrap: wrap;
}

/* Submission status badges */
.badge-submitted {
  background: rgba(59,130,246,0.12);
  color: #3b82f6;
  border: 1px solid rgba(59,130,246,0.25);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
}

.badge-graded {
  background: rgba(16,185,129,0.12);
  color: var(--success);
  border: 1px solid rgba(16,185,129,0.25);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
}

.badge-pending-sub {
  background: rgba(245,158,11,0.12);
  color: var(--warning);
  border: 1px solid rgba(245,158,11,0.25);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
}

/* Grade display in student panel */
.grade-display-box {
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.2);
  border-radius: 10px;
  padding: 12px 16px;
  margin-top: 10px;
}

.grade-score {
  font-size: 24px;
  font-weight: 800;
  color: var(--success);
  font-family: var(--font-header);
}

.grade-feedback {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
  line-height: 1.5;
}

/* Assignment notes textarea */
.assignment-notes-area {
  width: 100%;
  min-height: 80px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 13px;
  padding: 10px 14px;
  resize: vertical;
  transition: var(--transition);
}

.assignment-notes-area:focus {
  outline: none;
  border-color: var(--border-focus);
}

/* Due date warning */
.due-date-overdue {
  color: var(--danger) !important;
  font-weight: 700;
}

.due-date-near {
  color: var(--warning) !important;
  font-weight: 700;
}

/* Admin assignments grid */
.assignments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 24px;
}

/* Admin grade modal / inline */
.grade-input-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
  flex-wrap: wrap;
}

.grade-input-row input {
  width: 90px;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  background: rgba(255,255,255,0.04);
  color: var(--text-primary);
  font-size: 13px;
}

/* Streak admin row */
.streak-admin-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,75,43,0.08);
  border: 1px solid rgba(255,75,43,0.2);
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-color);
}

@media (max-width: 576px) {
  .streak-stats-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  .streak-count { font-size: 52px; }
  .streak-fire-icon { font-size: 48px; }
  .streak-badges-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================
   INTERACTIVE COURSE FINDER & PROJECTS SHOWCASE
   ========================================== */
.wizard-opt-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 16px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-start;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  width: 100%;
  text-align: left;
}

.wizard-opt-btn i {
  font-size: 18px;
  color: var(--accent-color);
  transition: transform 0.25s ease;
}

.wizard-opt-btn:hover {
  background: rgba(255, 75, 43, 0.05);
  border-color: rgba(255, 75, 43, 0.4);
  color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(255, 75, 43, 0.08);
}

.wizard-opt-btn:hover i {
  transform: scale(1.15);
}

.progress-dot {
  display: inline-block;
  height: 6px;
  border-radius: 50px;
}

.project-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 75, 43, 0.25);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 75, 43, 0.05);
}

.project-img-wrapper img {
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .project-img-wrapper img {
  transform: scale(1.08);
}

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

@media (max-width: 576px) {
  .responsive-grid-two-col {
    grid-template-columns: 1fr !important;
  }
}

/* Print Resume Styling */
@media print {
  body * {
    visibility: hidden;
  }
  #resume-cv-paper, #resume-cv-paper * {
    visibility: visible;
  }
  #resume-cv-paper {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    max-width: 100%;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: white !important;
    color: black !important;
  }
}



/* ================================================================
   COMPLETE RESPONSIVE SYSTEM — ALL PAGES, ALL BREAKPOINTS
   Covers: 320px, 360px, 375px, 390px, 412px, 430px, 480px,
           576px, 768px, 820px, 992px, 1024px, 1200px, 1366px,
           1440px, 1600px, 1920px
   Rules: Mobile-first, no horizontal scroll, no overflow,
          preserve all desktop design/colors/animations exactly.
   ================================================================ */

/* ─── GLOBAL BASELINE ─────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  /* Prevent iOS font-size auto-zoom on input focus */
  -webkit-text-size-adjust: 100%;
}

body {
  /* Prevent any horizontal overflow across all pages */
  overflow-x: hidden;
  width: 100%;
}

/* All images are responsive by default */
img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

iframe {
  max-width: 100%;
}

/* Touch-friendly tap targets — minimum 44×44px */
button,
.btn-primary,
.btn-secondary,
.filter-btn,
.sidebar-item a,
.hamburger {
  min-height: 44px;
  touch-action: manipulation;
}

/* Prevent long email / URLs from overflowing any container */
p, span, li, td, th {
  overflow-wrap: break-word;
  word-wrap: break-word;
}


/* ─── NAVBAR ─────────────────────────────────────────────────── */

/* Ensure nav-container never overflows */
.nav-container {
  padding: 0 clamp(16px, 4vw, 40px);
  box-sizing: border-box;
  max-width: 1400px;
}

/* Notification dropdown: clamp width so it never overflows viewport */
#notif-dropdown-pane {
  max-width: min(320px, calc(100vw - 32px)) !important;
  right: 0 !important;
  left: auto !important;
}


/* ─── HERO SECTION ─────────────────────────────────────────── */

/* The "online only" notice badge wraps on small screens */
.online-only-notice {
  flex-wrap: wrap;
  text-align: center;
  justify-content: center;
}


/* ─── STATS SECTION ─────────────────────────────────────────── */

.stats-grid {
  text-align: center;
}

.stat-item {
  padding: clamp(12px, 3vw, 24px);
}


/* ─── SECTION SPACING (clamp-based, fluid) ──────────────────── */

.section {
  padding: clamp(50px, 7vw, 100px) 0;
}

.section-container {
  padding-left: clamp(16px, 4vw, 0px);
  padding-right: clamp(16px, 4vw, 0px);
}

.section-header {
  margin-bottom: clamp(32px, 5vw, 60px);
}


/* ─── COURSE CARDS ─────────────────────────────────────────── */

/* Desktop: 4 col → Laptop: 3 col → Tablet: 2 col → Mobile: 1 col */
.courses-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
}

/* Make all course card images the same height */
.course-card img,
.project-img-wrapper img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}


/* ─── FOOTER ─────────────────────────────────────────────────── */

.footer-contact-item {
  /* Icon stays on same line; long email text wraps cleanly */
  display: flex;
  align-items: flex-start;
  gap: 10px;
  word-break: break-word;
}

.footer-contact-item i {
  flex-shrink: 0;
  margin-top: 2px;
}

/* Footer bottom row wraps gracefully */
.footer-bottom {
  text-align: center;
}


/* ─── DASHBOARD SIDEBAR ─────────────────────────────────────── */

/* Sidebar menu items: icon always visible, text truncated if needed */
.sidebar-item a {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


/* ─── TABLES ─────────────────────────────────────────────────── */

/* Student dashboard payment / attendance tables */
.table-responsive {
  -webkit-overflow-scrolling: touch; /* Smooth scroll on iOS */
}

/* Student dashboard: smaller min-widths than admin tables */
#dashboard-payments .data-table,
#dashboard-attendance .data-table {
  min-width: 600px;
}


/* ─── MODALS ─────────────────────────────────────────────────── */

.modal-overlay {
  /* Prevent modal from causing body scroll on mobile */
  -webkit-overflow-scrolling: touch;
  padding: 16px;
}

.modal-content {
  max-height: 90vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}


/* ─── FORMS ─────────────────────────────────────────────────── */

/* All form controls 100% wide inside any container */
.form-control,
.auth-input,
select.form-control {
  width: 100%;
  max-width: 100%;
}

/* Fix text visibility on autofill in auth-inputs */
.auth-input:-webkit-autofill,
.auth-input:-webkit-autofill:hover, 
.auth-input:-webkit-autofill:focus, 
.auth-input:-webkit-autofill:active{
    -webkit-box-shadow: 0 0 0 30px #121218 inset !important;
    -webkit-text-fill-color: var(--text-primary) !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* Prevent iOS auto-zoom on small inputs (font-size ≥ 16px) */
@media (max-width: 767px) {
  .form-control,
  .auth-input,
  select.form-control,
  textarea.form-control {
    font-size: 16px !important;
  }
}


/* ─── WHATSAPP FLOAT BUTTON ──────────────────────────────────── */

/* Ensure WhatsApp button never overlaps footer or cards */
.whatsapp-float {
  /* z-index already 999, keep above footer */
  bottom: clamp(16px, 4vw, 40px);
  right: clamp(14px, 4vw, 40px);
}


/* ================================================================
   BREAKPOINT: 1440px and below (Large laptop)
   ================================================================ */
@media (max-width: 1440px) {
  .section-container {
    width: 92%;
  }
}

/* ================================================================
   BREAKPOINT: 1200px and below (Standard laptop)
   ================================================================ */
@media (max-width: 1200px) {
  .hero-container {
    gap: 40px;
  }
  .courses-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  }
}

/* ================================================================
   BREAKPOINT: 1024px and below (Tablet landscape / small laptop)
   ================================================================ */
@media (max-width: 1024px) {
  /* Hero */
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero p {
    margin-left: auto;
    margin-right: auto;
  }

  /* 3-column course grid on tablet landscape */
  .courses-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  }

  /* Contact/page grids collapse to 1 col */
  .contact-section-grid,
  .contact-page-grid,
  .founder-section-grid,
  .certificate-section-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* Center-align founder section on tablet */
  .founder-section-grid {
    text-align: center;
  }
  .founder-section-grid > div:first-child {
    display: flex;
    justify-content: center;
  }

  /* Reduce founder image on tablet */
  .founder-section-grid .glass-card {
    display: inline-block;
  }

  /* Admin/student tabs nav: allow horizontal scroll on smaller screens */
  .admin-tabs-nav {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    padding-bottom: 2px;
  }
  .admin-tab-btn {
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* Dashboard panel padding */
  .dashboard-content {
    padding: 28px !important;
  }
}

/* ================================================================
   BREAKPOINT: 992px and below (iPad Pro / Tablet)
   ================================================================ */
@media (max-width: 992px) {

  /* Stats: 2 columns */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  /* Streak stats always 3-col so numbers stay readable */
  .streak-stats-row {
    gap: 12px;
  }

  /* Course-finder wizard: single column options on tablet */
  .responsive-grid-two-col {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  /* Profile settings: single column */
  .profile-settings-grid {
    grid-template-columns: 1fr !important;
  }

  /* Playground: stack editor & console vertically */
  .responsive-grid-profile {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  #playground-code {
    height: 260px !important;
  }

  /* Certificate section */
  .certificate-section-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .certificate-section-grid button {
    margin: 0 auto;
  }
}

/* ================================================================
   BREAKPOINT: 820px and below (iPad Mini portrait)
   ================================================================ */
@media (max-width: 820px) {
  /* 2-column course grid */
  .courses-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  /* Founder image: shrink slightly */
  .founder-section-grid .glass-card div {
    width: 240px !important;
    height: 300px !important;
  }

  /* Responsive 1-1 layout grid */
  .responsive-grid-1-1,
  .responsive-grid-1-3-0-7 {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ================================================================
   BREAKPOINT: 768px and below (Mobile landscape / large phones)
   ================================================================ */
@media (max-width: 768px) {
  /* Show hamburger */
  .hamburger {
    display: inline-flex;
  }

  /* Navbar: hide desktop nav-auth on mobile (hamburger menu handles login) */
  .nav-auth {
    display: none;
  }

  /* Hero heading size */
  .hero h1 {
    font-size: clamp(22px, 6vw, 36px);
  }

  /* Hero visual: smaller circle */
  .hero-image-wrapper {
    max-width: 260px;
    margin: 0 auto;
  }

  /* Stacked buttons stay touch-friendly */
  .hero-actions {
    flex-wrap: wrap;
    gap: 12px;
  }

  /* Stats: 2 column on mobile */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  /* Courses: 1 column on mobile portrait */
  .courses-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Contact section */
  .contact-section-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* Contact info cards: 1 per row */
  .contact-info-list {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  /* Founder section */
  .founder-section-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }
  .founder-section-grid > div:first-child {
    justify-content: center;
  }
  .founder-cards-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  /* Course finder wizard: 1-col options on mobile */
  .responsive-grid-two-col {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  /* Dashboard sidebar: slide-out on mobile */
  .dashboard-content {
    margin-left: 0 !important;
    padding: 20px !important;
    width: 100% !important;
  }

  /* Panel header: wrap on mobile */
  .panel-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  /* Quiz navigation buttons: wrap */
  #quiz-active-view > div:last-child {
    flex-wrap: wrap;
    gap: 10px;
  }

  /* Assignment footer wrap */
  .assignment-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Leaderboard: stack */
  .responsive-grid-1-3-0-7 {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* Forum filter: wrap on mobile */
  #forum-filter-buttons {
    flex-wrap: wrap;
    gap: 6px;
  }

  /* Attendance control grid */
  .attendance-control-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    align-items: stretch;
  }
  .attendance-control-grid button {
    width: 100%;
  }

  /* Stats cards grid: 1 col on mobile */
  .stats-cards-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px;
  }

  /* Streak stats row on mobile */
  .streak-stats-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  .streak-count {
    font-size: clamp(40px, 10vw, 72px);
  }
  .streak-fire-icon {
    font-size: clamp(40px, 10vw, 64px);
  }

  /* Badges: 2 per row */
  .streak-badges-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* WhatsApp button */
  .whatsapp-float {
    width: 52px;
    height: 52px;
    bottom: 24px;
    right: 18px;
    font-size: 26px;
  }

  /* Modals */
  .modal-content {
    width: 95%;
  }
  .modal-body {
    padding: 16px;
  }
  .modal-header,
  .modal-footer {
    padding: 14px 16px;
  }
}

/* ================================================================
   BREAKPOINT: 576px and below (Small tablet / large phone)
   ================================================================ */
@media (max-width: 576px) {
  /* Course filter: wrap */
  .courses-filter {
    gap: 8px;
  }
  .filter-btn {
    padding: 8px 14px;
    font-size: 13px;
  }

  /* Course finder wizard: 1-col on small screens */
  .responsive-grid-two-col {
    grid-template-columns: 1fr !important;
    gap: 10px;
  }

  /* Founder image: smaller on phone */
  .founder-section-grid .glass-card div {
    width: 200px !important;
    height: 250px !important;
  }

  /* Stats: 1-col on very small tablet */
  .stats-cards-grid {
    grid-template-columns: 1fr !important;
    gap: 14px;
  }

  /* Section header margin */
  .section-header {
    margin-bottom: 28px;
  }

  /* Modal footer: stack buttons */
  .modal-footer {
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
  }
  .modal-footer button {
    width: 100%;
    justify-content: center;
  }

  /* Hero: hide floating boxes */
  .hero-box {
    display: none;
  }
  .hero-image-wrapper {
    max-width: 220px;
  }

  /* Streak stats: compact */
  .streak-stat-card h3 {
    font-size: 22px;
  }
  .streak-stat-card p {
    font-size: 11px;
  }
}

/* ================================================================
   BREAKPOINT: 480px and below (Most phones)
   ================================================================ */
@media (max-width: 480px) {
  /* Section spacing */
  .section {
    padding: clamp(40px, 8vw, 70px) 0;
  }

  /* Hero */
  .hero {
    padding: clamp(90px, 15vw, 120px) 0 clamp(40px, 8vw, 70px) 0;
  }
  .hero h1 {
    font-size: clamp(20px, 6.5vw, 32px);
  }
  .hero p {
    font-size: clamp(13px, 3.5vw, 16px);
  }
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  .hero-actions a,
  .hero-actions button {
    width: 100%;
    justify-content: center;
  }

  /* Stats: 1 col on very small phone */
  .stats-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 16px;
  }

  /* Auth card */
  .auth-card {
    padding: 28px 18px;
  }

  /* Dashboard padding */
  .dashboard-content {
    padding: 14px !important;
  }

  /* Panel header */
  .panel-header h2 {
    font-size: clamp(20px, 5vw, 28px);
  }

  /* Contact section */
  #contact {
    padding: 60px 0;
  }
  .contact-heading {
    font-size: clamp(22px, 6vw, 34px);
  }

  /* Contact info cards */
  .contact-info-card {
    padding: 12px 14px;
    gap: 12px;
  }
  .info-icon {
    width: 38px;
    height: 38px;
    font-size: 16px;
  }
  .info-content h4 {
    font-size: 12px;
  }
  .info-content p {
    font-size: 13px;
  }
  .contact-email {
    font-size: 12px;
    word-break: break-all;
  }

  /* Course card footer: stack */
  .course-footer {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  /* Footer bottom */
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 8px;
    font-size: 13px;
  }

  /* WhatsApp button: smaller on phone */
  .whatsapp-float {
    width: 48px;
    height: 48px;
    bottom: 20px;
    right: 14px;
    font-size: 24px;
  }

  /* Modal */
  .modal-content {
    width: 97%;
  }
  .modal-body {
    padding: 14px;
  }
  .modal-header,
  .modal-footer {
    padding: 12px 14px;
  }

  /* Admin tab buttons: smaller font */
  .admin-tab-btn {
    font-size: 12px;
    padding: 6px 10px;
  }

  /* Code playground textarea: smaller on phone */
  #playground-code {
    height: 200px !important;
    font-size: 12px !important;
  }

  /* Streak hero */
  .streak-hero-card {
    padding: 24px 16px;
  }
  .streak-count {
    font-size: clamp(36px, 12vw, 60px);
  }
  .streak-fire-icon {
    font-size: clamp(36px, 10vw, 56px);
  }

  /* Streak badges: 2 per row */
  .streak-badges-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .streak-badge-card {
    padding: 14px 10px;
  }
  .streak-badge-card .badge-icon {
    font-size: 26px;
  }

  /* Section header typography */
  .section-header h2 {
    font-size: clamp(22px, 6vw, 36px);
  }
}

/* ================================================================
   BREAKPOINT: 430px and below (iPhone Plus / large Android)
   ================================================================ */
@media (max-width: 430px) {
  .section-container {
    width: 92%;
  }

  /* Courses filter: smaller chips */
  .filter-btn {
    font-size: 12px;
    padding: 7px 12px;
  }

  /* Buttons */
  .btn-primary,
  .btn-secondary {
    font-size: 14px;
    padding: 11px 20px;
  }

  /* Dashboard stat cards: 1 col */
  .stats-cards-grid {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }

  /* Streak stats: compact */
  .streak-stats-row {
    gap: 8px;
  }
}

/* ================================================================
   BREAKPOINT: 390px and below (iPhone 14 / common Android)
   ================================================================ */
@media (max-width: 390px) {
  .nav-container {
    padding: 0 14px;
  }

  /* Hero badge */
  .hero-badge {
    font-size: 12px;
    padding: 5px 12px;
  }

  /* Auth card */
  .auth-card {
    padding: 24px 16px;
  }

  /* Contact info: tighter */
  .contact-info-card {
    padding: 10px 12px;
    gap: 10px;
  }
  .info-icon {
    width: 36px;
    height: 36px;
    font-size: 15px;
  }
  .info-content h4 {
    font-size: 11px;
  }
  .info-content p,
  .contact-phone,
  .contact-hours,
  .contact-timings {
    font-size: 12px;
  }
  .contact-email {
    font-size: 11px;
    word-break: break-all;
  }
}

/* ================================================================
   BREAKPOINT: 375px and below (iPhone SE / mid-range Android)
   ================================================================ */
@media (max-width: 375px) {
  .section-container {
    width: 94%;
  }

  /* Logo: compact */
  .logo {
    font-size: 15px !important;
    gap: 5px !important;
  }
  .logo img {
    width: 28px !important;
    height: 28px !important;
  }

  /* Hero */
  .hero h1 {
    font-size: clamp(18px, 6vw, 28px);
  }

  /* Buttons */
  .btn-primary,
  .btn-secondary {
    font-size: 13px;
    padding: 10px 16px;
  }

  /* Course footer: vertical */
  .course-footer {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }

  /* WhatsApp button: minimum size */
  .whatsapp-float {
    width: 44px;
    height: 44px;
    bottom: 16px;
    right: 12px;
    font-size: 22px;
  }

  /* Modal */
  .modal-content {
    width: 98%;
    border-radius: 12px;
  }
}

/* ================================================================
   BREAKPOINT: 360px and below (Common small Android)
   ================================================================ */
@media (max-width: 360px) {
  /* Section padding */
  .section {
    padding: 36px 0;
  }

  /* Dashboard content */
  .dashboard-content {
    padding: 12px !important;
  }

  /* Contact */
  .contact-info-card {
    padding: 9px 11px;
    gap: 9px;
    border-radius: 9px;
  }
  .info-icon {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
  .info-content h4 {
    font-size: 10.5px;
  }
  .info-content p {
    font-size: 11.5px;
  }

  /* Streak */
  .streak-count {
    font-size: clamp(32px, 12vw, 52px);
  }
  .streak-hero-card {
    padding: 20px 12px;
  }
}

/* ================================================================
   BREAKPOINT: 320px (Minimum supported — older iPhones / small Android)
   ================================================================ */
@media (max-width: 320px) {
  /* Ensure nothing ever overflows on 320px width */
  .section-container {
    width: 96%;
    padding-left: 4px;
    padding-right: 4px;
  }

  .hero h1 {
    font-size: 18px;
  }

  .auth-card {
    padding: 20px 12px;
  }

  .contact-info-list {
    gap: 10px;
  }
  .contact-info-card {
    padding: 8px 10px;
    gap: 8px;
  }
  .info-icon {
    width: 30px;
    height: 30px;
    font-size: 13px;
    border-radius: 6px;
  }
  .info-content h4 {
    font-size: 10px;
  }
  .info-content p,
  .contact-phone,
  .contact-hours,
  .contact-timings {
    font-size: 11px;
  }
  .contact-email {
    font-size: 10px;
    word-break: break-all;
  }

  .btn-primary,
  .btn-secondary {
    font-size: 12px;
    padding: 9px 14px;
    min-height: 40px;
  }

  .logo {
    font-size: 13px !important;
  }

  .streak-count {
    font-size: 30px;
  }
  .streak-fire-icon {
    font-size: 32px;
  }

  .whatsapp-float {
    width: 40px;
    height: 40px;
    bottom: 14px;
    right: 10px;
    font-size: 20px;
  }
}

/* ================================================================
   LARGE SCREENS: 1600px and above
   ================================================================ */
@media (min-width: 1600px) {
  .section-container {
    max-width: 1400px;
  }
  .hero-container {
    max-width: 1400px;
    gap: 80px;
  }
  /* 4-column course grid on wide screens */
  .courses-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ================================================================
   WIDE SCREENS: 1920px and above (4K / UHD)
   ================================================================ */
@media (min-width: 1920px) {
  .section-container {
    max-width: 1600px;
  }
  .hero-container {
    max-width: 1600px;
  }
  .hero h1 {
    font-size: 60px;
  }
  .section-header h2 {
    font-size: 44px;
  }
}

/* ================================================================
   PRINT MEDIA — already exists, preserved unchanged
   ================================================================ */

/* ================================================================
   ACCESSIBILITY & PERFORMANCE
   ================================================================ */

/* Skip-to-content focus ring for keyboard navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 3px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .scroll-reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Lazy-load shimmer placeholder */
img[loading="lazy"] {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.03) 25%,
    rgba(255, 255, 255, 0.06) 50%,
    rgba(255, 255, 255, 0.03) 75%
  );
  background-size: 200% 100%;
  animation: lazyShimmer 1.5s infinite;
}

@keyframes lazyShimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Hide theme toggle on mobile */
@media (max-width: 768px) {
  #theme-toggle-btn {
    display: none !important;
  }
}
