/* ========================================
   Goodwill Learning Centre - Responsive Styles
   Comprehensive mobile-first approach
   ======================================== */

/* =============================================
   BREAKPOINTS (mobile-first)
   Base:     < 480px   (very small phones)
   xs:       480px+    (small phones)
   sm:       576px+    (large phones)
   md:       768px+    (tablets)
   lg:       992px+    (small desktops)
   xl:       1200px+   (large desktops)
   xxl:      1400px+   (extra large screens)
   ============================================= */

/* =============================================
   BASE LAYOUT (< 480px) — default mobile styles
   ============================================= */

/* Typography - fluid scaling */
html { font-size: 15px; }

/* Fix for very small screens (down to 320px) */
@media (max-width: 379px) {
  html { font-size: 13px !important; }
  .container { padding: 0 0.5rem; }
  .dashboard-main { padding: 0.375rem; }
  .card-content { padding: 0.625rem; }
}
h1 { font-size: clamp(1.5rem, 5vw, 2rem); }
h2 { font-size: clamp(1.2rem, 4vw, 1.5rem); }
h3 { font-size: clamp(1rem, 3vw, 1.25rem); }
h4 { font-size: clamp(0.9rem, 2.5vw, 1rem); }

.text-3xl { font-size: clamp(1.5rem, 5vw, 1.875rem); }
.text-2xl { font-size: clamp(1.2rem, 4vw, 1.5rem); }
.text-xl { font-size: clamp(1.1rem, 3vw, 1.25rem); }
.text-lg { font-size: clamp(1rem, 2.5vw, 1.125rem); }
.text-base { font-size: clamp(0.9rem, 2.5vw, 1rem); }
.text-sm { font-size: clamp(0.8rem, 2vw, 0.875rem); }
.text-xs { font-size: clamp(0.7rem, 1.8vw, 0.75rem); }

/* Container */
.container {
  width: 100%;
  padding: 0 0.75rem;
  margin: 0 auto;
}
.container-sm,
.container-md {
  width: 100%;
  padding: 0 0.75rem;
}

/* Spacing adjustments */
.py-14 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.py-16 { padding-top: 3rem; padding-bottom: 3rem; }
.mt-12 { margin-top: 2rem; }
.mt-10 { margin-top: 1.5rem; }

/* Table wrapper for horizontal scroll */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin-bottom: 0.75rem;
}

/* Tables base mobile */
.data-table {
  min-width: 500px;
  font-size: 0.75rem;
}
.data-table th,
.data-table td {
  padding: 0.5rem 0.625rem;
  white-space: nowrap;
}
.enrollments-table thead th,
.enrollments-table tbody td {
  padding: 0.625rem 0.75rem;
  font-size: 0.75rem;
}

/* Data tables in cards: ensure wrapper scrolls */
.card-content.p-0:has(.data-table) {
  overflow-x: auto;
}
.card-content.p-0:has(.sm-table) {
  overflow-x: auto;
}

/* Stats grid - 2 columns on mobile */
.stats-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 0.625rem;
}
.stats-grid .card-content {
  padding: 0.75rem;
}
.stat-card-value {
  font-size: clamp(1.1rem, 4vw, 1.375rem);
}

/* Dashboard */
.dashboard-main {
  padding: 0.625rem;
}

.dashboard-header-inner {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.625rem;
  padding: 1rem;
}
.dashboard-header-left {
  width: 100%;
}
.dashboard-header-title {
  font-size: clamp(1.1rem, 4vw, 1.35rem);
}
.dashboard-header-right {
  width: 100%;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.dashboard-header-date {
  width: 100%;
  justify-content: center;
}
.dashboard-header-icon {
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1rem;
}

/* Content grids always stack on mobile */
.content-grid.sidebar-layout,
.content-grid.wide-sidebar,
.content-grid.medium-sidebar,
.content-grid.three-col,
.content-grid.two-col {
  grid-template-columns: 1fr;
}
.content-grid {
  gap: 0.75rem;
}

/* Cards */
.card-content {
  padding: 0.875rem;
}
.card-content.p-6 {
  padding: 1rem;
}
.card-content.p-5 {
  padding: 0.875rem;
}
.card-content.p-4 {
  padding: 0.75rem;
}

/* Forms */
.form-row.cols-2,
.form-row.cols-3 {
  grid-template-columns: 1fr;
}
.form-group {
  margin-bottom: 0.75rem;
}
.form-actions {
  flex-direction: column;
  gap: 0.5rem;
}
.form-actions .btn {
  width: 100%;
}
.form-label {
  font-size: 0.8125rem;
}

/* Buttons */
.btn {
  font-size: 0.8125rem;
  padding: 0.5rem 0.875rem;
  min-height: 40px;
}
.btn-sm {
  font-size: 0.75rem;
  padding: 0.375rem 0.625rem;
  min-height: 32px;
}
.btn-lg {
  font-size: 0.9375rem;
  padding: 0.75rem 1.25rem;
  min-height: 46px;
}

/* Tables inside cards need scroll */
.card-content.p-0 {
  overflow-x: auto;
}
.card-content.p-0 .data-table {
  min-width: 500px;
}

/* Visibility */
.hide-mobile {
  display: none !important;
}
.show-mobile {
  display: revert !important;
}

/* Public header */
.public-header-inner {
  padding: 0 0.75rem;
  height: 60px;
  min-height: 60px;
  overflow: visible;
}
.public-logo {
  font-size: 0.9375rem;
  gap: 0.6rem;
}  .public-logo img {
    width: 70px;
    height: 70px;
  }
.public-logo-text {
  max-width: 200px;
}
.public-logo-text strong {
  font-size: 1.7rem;
}
.public-logo-text small {
  font-size: 0.95rem;
  letter-spacing: 0.12em;
}
.public-nav {
  display: none !important;
}
.public-header-actions {
  display: none !important;
}
.hamburger-btn {
  display: inline-flex;
}

/* Mobile menu */
.mobile-menu-overlay {
  top: 3.5rem;
}
.mobile-menu {
  top: 3.5rem;
  padding: 0.75rem;
}

/* =============================================
   MOBILE (< 768px): Public nav pinned to top
   The header is fixed so it never scrolls away;
   body gets matching top padding so content is
   not hidden underneath it. No JS scroll-lock.
   ============================================= */
@media (max-width: 767px) {
  .public-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 60;
  }
  body:has(> .public-header) {
    padding-top: 74px;
  }
  .mobile-menu,
  .mobile-menu-overlay {
    top: 74px;
  }
}

/* Footer - Public Shared Footer */
.public-footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 0.75rem;
}
.public-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  padding: 2rem 0;
}

/* Brand column - centered on mobile */
.footer-brand-col {
  text-align: center;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand-row {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.footer-brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 0.8rem;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  display: grid;
  place-items: center;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(79,70,229,0.25);
}
.footer-brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.footer-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-align: left;
}
.footer-brand-text strong {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}
.footer-brand-text small {
  font-size: 0.6rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.05rem;
}
.footer-desc {
  max-width: 280px;
  margin: 0.75rem auto 0;
  font-size: 0.78rem;
  line-height: 1.7;
  color: #94a3b8;
}

/* Trust strip */
.footer-trust-strip {
  display: inline-flex;
  gap: 0.5rem;
  margin-top: 1rem;
}
.trust-chip {
  padding: 0.45rem 0.65rem;
  border: 1px solid rgba(148,163,184,0.12);
  border-radius: 0.6rem;
  background: rgba(255,255,255,0.035);
  text-align: center;
  min-width: 60px;
}
.trust-chip strong {
  display: block;
  color: #fff;
  font-size: 0.8rem;
}
.trust-chip span {
  display: block;
  margin-top: 0.1rem;
  color: #64748b;
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Social icons */
.footer-social {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}
.footer-social a {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border: 1px solid rgba(148,163,184,0.16);
  border-radius: 0.6rem;
  background: rgba(255,255,255,0.04);
  color: #cbd5e1;
  font-size: 0.85rem;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
  text-decoration: none;
}
.footer-social a:hover {
  transform: translateY(-2px);
  background: #4f46e5;
  color: #fff;
}

/* Footer columns */
.footer-col {
  text-align: center;
}
.footer-col-title {
  position: relative;
  display: inline-block;
  margin: 0 0 1rem;
  padding-bottom: 0.55rem;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.footer-col-title::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 28px;
  height: 2.5px;
  border-radius: 999px;
  background: linear-gradient(90deg, #6366f1, #f97316);
}
.footer-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
}
.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #94a3b8;
  font-size: 0.78rem;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}
.footer-links a i {
  font-size: 0.45rem;
  color: #60a5fa;
}
.footer-links a:hover {
  color: #fff;
  transform: translateX(3px);
}

/* Contact list */
.footer-contact-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.contact-item {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: inherit;
  max-width: 220px;
}
.contact-icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border: 1px solid rgba(96,165,250,0.18);
  border-radius: 0.55rem;
  background: rgba(37,99,235,0.11);
  color: #60a5fa;
  font-size: 0.75rem;
}
.contact-detail {
  display: flex;
  flex-direction: column;
  min-width: 0;
  text-align: left;
}
.contact-detail small {
  color: #64748b;
  font-size: 0.6rem;
}
.contact-detail strong {
  color: #cbd5e1;
  font-size: 0.72rem;
  font-weight: 600;
  overflow-wrap: anywhere;
  margin-top: 0.05rem;
}
.contact-item:hover strong {
  color: #fff;
}

/* Footer bottom */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.2);
}
.footer-bottom-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 0.75rem;
  text-align: center;
}
.footer-bottom-inner p {
  color: #64748b;
  font-size: 0.68rem;
  margin: 0;
}
.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-bottom-links a {
  color: #64748b;
  font-size: 0.68rem;
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-bottom-links a:hover {
  color: #fff;
}
.dot-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #334155;
  flex-shrink: 0;
}

/* Page header */
.page-header {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.625rem;
}
.page-header h1 {
  font-size: clamp(1.1rem, 4vw, 1.35rem);
}

/* Dashboard header band */
.dashboard-header-inner {
  border-radius: 12px;
  padding: 1rem 1.15rem;
}

/* Hero sections */
.dark-hero-content {
  padding-top: 1.5rem !important;
  padding-bottom: 1.5rem !important;
}
.dark-hero {
  min-height: 0 !important;
}
.dark-hero::before {
  width: 250px !important;
  height: 250px !important;
  right: -15% !important;
}
.dark-hero::after {
  width: 150px !important;
  height: 150px !important;
  bottom: -20% !important;
  left: -10% !important;
}
.dark-hero h1,
.hero-title {
  font-size: clamp(1.8rem, 8vw, 2.5rem) !important;
  max-width: 100%;
}
.dark-hero p {
  font-size: clamp(0.875rem, 2.5vw, 1rem);
}

/* Hero grid - stack on mobile, side-by-side on desktop */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

/* Hero images column - fix oversized spacing on mobile */
.hero-images {
  min-height: 0 !important;
  padding-left: 0 !important;
}
.hero-images-inner {
  gap: 0.75rem !important;
}

/* Hero buttons - stack on very small screens */
.hero-actions {
  flex-direction: column;
  gap: 0.75rem !important;
}
.hero-actions .btn {
  width: 100%;
  text-align: center;
}

/* Hero images - mobile/tablet refinements (keep 2-column staggered layout) */
@media (max-width: 991px) {
  .hero-images-inner {
    max-width: 100% !important;
    gap: 1rem !important;
  }
  .hero-images-inner .hero-image-card:first-child {
    transform: translateY(-1.25rem) !important;
  }
  .hero-images-inner .hero-image-card:last-child {
    transform: translateY(0.5rem) !important;
  }
  .hero-actions .btn {
    padding: 0.75rem 1.25rem !important;
    font-size: 0.9375rem !important;
  }
}

/* Hero heading row */
.dark-hero-content > .flex {
  flex-direction: column;
  gap: 0.5rem;
}

/* Hero filter on mobile */
.hero-filter-wrapper {
  width: 100%;
}

/* Section padding */
section[style*="padding: 2.5rem"],
section[style*="padding:2.5rem"] {
  padding: 1.25rem 0.75rem !important;
}

/* WhatsApp button */
.whatsapp-float {
  padding: 0.65rem 1rem;
  font-size: 0.85rem;
  right: 0.75rem;
  bottom: 3rem;
}

/* Compact stat cards gap */
section .grid[style*="gap: 1.25rem"],
section .grid[style*="gap:1.25rem"] {
  gap: 0.625rem !important;
}

/* Breadcrumb */
.breadcrumb-page,
.breadcrumb-contact {
  flex-wrap: wrap;
  gap: 0.25rem;
  font-size: 0.7rem;
}

/* Auth container */
.auth-container {
  padding: 0.75rem;
  padding-top: clamp(1.5rem, 5vw, 2.5rem);
}
.auth-card {
  padding: clamp(0.875rem, 3vw, 1.25rem);
}
.auth-header h1 {
  font-size: clamp(1.3rem, 5vw, 1.85rem);
}

/* Fieldset */
.fieldset {
  padding: 0.75rem;
}
.fieldset-legend {
  font-size: 0.875rem;
}

/* Tabs */
.tabs-list {
  grid-template-columns: repeat(2, 1fr);
  gap: 0.25rem;
}
.tabs-trigger {
  font-size: 0.75rem;
  padding: 0.4rem 0.625rem;
  min-height: 34px;
}

/* Filter bars */
.flex.gap-2[style*="margin-bottom"],
.flex.items-center.gap-3 {
  flex-wrap: wrap;
  gap: 0.5rem;
}
.flex.gap-2[style*="margin-bottom"] select,
.flex.items-center.gap-3 select {
  width: 100% !important;
  min-width: 0 !important;
}
.flex.gap-2[style*="margin-bottom"] .btn,
.flex.items-center.gap-3 .btn {
  margin-left: 0 !important;
  width: 100%;
}

/* Quick actions */
.quick-actions-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}
.quick-action-card {
  padding: 0.75rem 0.875rem;
}

/* Dashboard main first child (title row) */
.dashboard-main > div:first-child {
  flex-direction: column;
  align-items: flex-start !important;
  gap: 0.625rem;
  margin-bottom: 0.75rem !important;
}
.dashboard-main > div:first-child h1 {
  font-size: clamp(1.1rem, 4vw, 1.35rem);
}

/* Section header */
.section-header {
  flex-direction: column;
  align-items: flex-start !important;
  gap: 0.375rem;
  margin-bottom: 1rem !important;
}
.section-header h2 {
  font-size: clamp(1rem, 3.5vw, 1.25rem);
}
.section-header p {
  font-size: 0.8125rem;
}

/* Chart containers */
.chart-container {
  height: 180px !important;
}

/* Floating form card / modal */
.form-as-modal {
  overflow-y: auto !important;
}

/* Short viewport height — reduce padding for better fit */
@media (max-height: 650px) {
  .form-as-modal {
    padding: 12px 8px !important;
  }
}

.modal-content {
  width: 94%;
  max-width: 440px;
}
.modal-header {
  padding: 0.75rem 1rem;
}
.modal-body {
  padding: 1rem;
}
.modal-footer {
  padding: 0.75rem 1rem;
}

/* Hero cards */
.hero-cards {
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

/* Course detail page */
.grid[style*="align-items:start"] {
  grid-template-columns: 1fr !important;
}
.grid[style*="align-items:start"] .md\:col-span-2 {
  grid-column: span 1;
}

/* Course cards, resource cards */
.course-card .card-content,
.resource-card .card-content {
  padding: 0.875rem;
}

/* Book cover placeholder */
.book-cover-placeholder {
  height: 160px !important;
}

/* Video player */
.video-embed {
  aspect-ratio: 16 / 9;
  border-radius: 10px;
}
.lesson-video-placeholder,
.video-locked {
  aspect-ratio: 16 / 9;
  padding: 1rem;
}
.lesson-video-placeholder p,
.video-locked p {
  font-size: 0.875rem;
}

/* Lesson sidebar */
.lesson-sidebar-item {
  padding: 0.5rem 0.625rem;
}
.lesson-sidebar-item .lesson-title {
  font-size: 0.8125rem;
}

/* Contact page */
.contact-hero h1 {
  font-size: 1.75rem !important;
}
.contact-hero {
  padding: 1.5rem 0 !important;
}
.contact-info-grid {
  margin-top: -1.5rem !important;
  gap: 0.75rem !important;
}
.contact-info-card {
  padding: 1rem !important;
}
.contact-form-wrapper {
  grid-template-columns: 1fr !important;
  gap: 1.25rem !important;
}
.form-card {
  padding: 1rem !important;
}
.form-card .form-subtitle {
  margin-bottom: 1rem !important;
}
.info-panel-card {
  padding: 0.875rem !important;
}

/* Social section */
.social-section {
  padding: 1.25rem 0.75rem !important;
}
.social-links-grid {
  gap: 0.625rem !important;
}

/* Contact CTA */
.contact-cta {
  padding: 1.25rem 0.75rem !important;
}
.cta-actions {
  flex-direction: column;
  gap: 0.5rem;
}
.cta-actions .btn {
  width: 100%;
}

/* Study materials */
.material-row {
  padding: 0.875rem;
  gap: 0.75rem;
}
.material-icon {
  width: 2.25rem;
  height: 2.25rem;
  font-size: 0.875rem;
}

/* Student greeting band */
.student-greeting {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

/* Course cards in grid */
.class-card .class-footer {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}
.class-card .class-price {
  width: 100%;
}

/* Admin hero */
.admin-hero {
  padding: 1rem 1.15rem;
  border-radius: 0 0 1.25rem 1.25rem;
}
.admin-hero h1 {
  font-size: 1.25rem;
}
.admin-hero p {
  font-size: 0.8125rem;
}
.admin-hero .hero-right {
  display: none;
}

/* Sidebar on mobile - drawer style */
@media (max-width: 767px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .sidebar-overlay {
    display: none;
  }
  .sidebar-overlay.open {
    display: block;
  }
}

/* Enrollment table responsive */
.enrollments-card {
  border-radius: 12px;
  overflow: hidden;
}

/* Profile page */
.profile-header {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

/* Settings page */
.settings-section {
  padding: 1rem;
}

/* Follow us page */
.follow-card {
  padding: 1rem;
}

/* Notes / tutes page */
.note-card {
  padding: 0.875rem;
}

/* Available classes page */
.class-card .card-content {
  padding: 0.875rem;
}

/* Grades page */
.grade-card {
  padding: 0.875rem;
}

/* Recordings page */
.recording-item {
  padding: 0.75rem;
}

/* Access control page */
.access-card {
  padding: 0.875rem;
}

/* Social media admin page */
.social-platform-card {
  padding: 0.875rem;
}

/* Empty state */
.empty-state {
  padding: 2rem 0.75rem;
}

/* Loading state */
.loading-spinner {
  padding: 2rem;
}
.spinner {
  width: 2rem;
  height: 2rem;
}

/* Alert */
.alert {
  padding: 0.625rem 0.75rem;
  font-size: 0.8125rem;
}

/* Separator */
.separator {
  margin: 0.75rem 0;
}

/* Tabs switching */
.tab-content {
  padding: 0;
}

/* Layout for dashboard with sidebar */
.dashboard-layout {
  display: flex;
  flex-direction: column;
}
.dashboard-layout .sidebar {
  position: fixed;
}

/* Student videos page */
.video-grid {
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

/* =============================================
   COMPREHENSIVE INLINE-STYLE OVERRIDES
   Target common patterns across ALL pages
   ============================================= */

/* --- Generic responsive table fallback --- */
.data-table-responsive {
  width: 100%;
  overflow-x: auto;
}

/* --- Enrollment/course tables */
table.data-table th.p-3,
table.data-table td.p-3 {
  padding: 0.5rem !important;
}

/* --- Admin hero heading icon (always) --- */
.admin-hero h1 i {
  margin-right: 0.4rem;
  font-size: 0.9em;
}

/* ===== MOBILE-ONLY OVERRIDES (max-width: 767px) ===== */
@media (max-width: 767px) {

  /* Responsive toggle for inline grids — collapse to 2 columns */
  div[style*="grid-template-columns:repeat("],
  div[style*="grid-template-columns: repeat("] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.625rem !important;
  }
  /* Single column on very small screens */
  @media (max-width: 479px) {
    div[style*="grid-template-columns:repeat("],
    div[style*="grid-template-columns: repeat("] {
      grid-template-columns: 1fr !important;
    }
  }

  /* Admin & Student Hero: flex row that must wrap on mobile */
  .admin-hero > div[style*="display:flex"],
  .admin-hero div[style*="justify-content:space-between"],
  .gw-welcome {
    flex-wrap: wrap !important;
  }
  .admin-hero > div[style*="display:flex"] > div:first-child {
    min-width: 0;
    flex: 1 1 100%;
  }
  .admin-hero .hero-date {
    margin-left: auto;
  }

  /* Hero date display (visible on mobile inside admin-hero) */
  .hero-date {
    white-space: nowrap;
    font-size: 0.78rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.7rem;
    background: rgba(255,255,255,0.08);
    border-radius: 10px;
    color: rgba(255,255,255,0.85);
  }

  /* Modal overlay (admin pages inline style) */
  .modal-overlay[style*="position:fixed"] {
    padding: 0.5rem !important;
    align-items: center !important;
  }
  .modal-overlay[style*="position:fixed"] .modal {
    max-width: 92vw !important;
    max-height: 85vh !important;
  }

  /* Admin students page: Add student button full-width */
  .card .flex.items-center.gap-2.border-bottom {
    flex-wrap: wrap;
  }
  .card .flex.items-center.gap-2.border-bottom .btn {
    width: 100%;
    margin-left: 0 !important;
  }

  /* Filter bars with inline styles on admin pages */
  div[style*="display:flex"][style*="gap"][style*="margin-bottom"] {
    flex-wrap: wrap !important;
  }
  div[style*="display:flex"][style*="gap"][style*="margin-bottom"] select,
  div[style*="display:flex"][style*="gap"][style*="margin-bottom"] .btn {
    width: 100% !important;
  }

  /* Hero filter on courses page */
  .hero-filter-wrapper .hero-filter-btn {
    width: 100%;
    justify-content: space-between;
  }
  .hero-filter-options {
    width: 100%;
    min-width: 0 !important;
  }

  /* Course detail hero flex row */
  .dark-hero-content .flex[style*="gap"] {
    flex-wrap: wrap;
  }
  .dark-hero-content .flex[style*="gap"] h1 {
    width: 100%;
  }

  /* Course cards: badges with absolute positioning */
  .course-card-cover div[style*="position:absolute"],
  [class*="course-card"] div[style*="position:absolute"] {
    font-size: 0.55rem !important;
    padding: 0.15rem 0.35rem !important;
  }

  /* Form save/cancel button rows */
  form .flex.gap-2 .btn {
    flex: 1;
  }

  /* Student dashboard: QL grid cards */
  .ql-grid .ql-card {
    padding: 0.75rem;
  }
  .ql-grid .ql-arrow {
    display: none;
  }

  /* Admin pages: recordings, notes, students card forms */
  .card-content form .flex.gap-2 {
    flex-wrap: wrap;
  }
  .card-content form .flex.gap-2 .btn {
    flex: 1;
    min-width: 100px;
  }

  /* Sidebar toggle on mobile (inside hero) */
  .sidebar-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--gw-border, #e4e7ec);
    border-radius: 10px;
    background: var(--card, #fff);
    color: var(--foreground, #111827);
    font-size: 1rem;
    cursor: pointer;
    flex-shrink: 0;
    margin-bottom: 0.5rem;
  }

  /* Notifications panel */
  .notif-panel .notif-card {
    padding: 0.5rem 0.625rem;
  }
  .gw-notif-body .t {
    font-size: 0.85rem;
  }
  .gw-notif-body .d {
    font-size: 0.75rem;
  }

  /* Admin recent activity timeline */
  .timeline .tl-item {
    padding: 0.5rem 0;
  }
  .tl-item .tl-dot {
    width: 2rem;
    height: 2rem;
    font-size: 0.7rem;
  }
  .tl-head .tl-title {
    font-size: 0.8rem;
  }
  .tl-head .tl-time {
    font-size: 0.65rem;
  }
  .tl-meta {
    font-size: 0.72rem;
  }

  /* Welcome banner (student dashboard) */
  .gw-welcome {
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 1rem;
  }
  .gw-welcome h1 {
    font-size: clamp(1rem, 3.5vw, 1.25rem);
  }
  .gw-welcome p {
    font-size: 0.78rem;
  }
  .gw-avatar {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1rem;
  }

}
/* ===== END MOBILE-ONLY OVERRIDES ===== */

/* Desktop override for hero filter button (768px+) */
@media (min-width: 768px) {
  .hero-filter-wrapper .hero-filter-btn {
    width: auto;
  }
  .hero-filter-options {
    width: auto;
    min-width: 180px !important;
  }
}

/* =============================================
   XS BREAKPOINT (480px+) — small phones landscape
   ============================================= */
@media (min-width: 480px) {
  html { font-size: 15.5px; }

  .container {
    padding: 0 1rem;
    max-width: 100%;
  }
  .container-sm,
  .container-md {
    padding: 0 1rem;
  }

  .public-header-inner {
    padding: 0 1rem;
    height: 68px;
    min-height: 68px;
    overflow: visible;
  }
  .public-logo-text {
    max-width: 220px;
  }
  .public-logo-text strong {
    font-size: 1.8rem;
  }
  .public-logo-text small {
    font-size: 1.0rem;
  }

  .dashboard-main {
    padding: 0.75rem;
  }

  .stats-grid {
    gap: 0.75rem;
  }

  .quick-actions-grid {
    grid-template-columns: repeat(2, 1fr);
  }


  /* Footer - Shared Footer 480px+ */
  .public-footer-inner {
    padding: 0 1rem;
  }
  .public-footer-grid {
    padding: 2rem 0;
  }
  .footer-brand-text strong {
    font-size: 1.1rem;
  }
  .footer-brand-text small {
    font-size: 0.65rem;
  }
  .footer-brand-icon {
    width: 46px;
    height: 46px;
  }

  .tabs-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .data-table {
    min-width: 450px;
  }
  .data-table th,
  .data-table td {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
  }

  .dashboard-header-date {
    width: auto;
  }
}

/* =============================================
   SM BREAKPOINT (576px+) — large phones / small tablets
   ============================================= */
@media (min-width: 576px) {
  html { font-size: 16px; }

  .container {
    max-width: 540px;
    padding: 0 1rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dashboard-main {
    padding: 1rem;
  }

  .quick-actions-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .data-table th,
  .data-table td {
    padding: 0.625rem;
    font-size: 0.8125rem;
  }

  .dashboard-main > div:first-child {
    flex-direction: row;
    align-items: center !important;
  }
  .dashboard-main > div:first-child h1 {
    font-size: 1.5rem;
  }

  .dashboard-header-right {
    width: auto;
  }
  .dashboard-header-date {
    width: auto;
  }

  .hero-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .tabs-list {
    grid-template-columns: repeat(3, 1fr);
  }


  .dark-hero h1,
  .hero-title {
    font-size: clamp(2rem, 6vw, 3rem) !important;
  }

  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .class-card .class-footer {
    flex-direction: row;
    align-items: center;
  }
  .class-card .class-price {
    width: auto;
  }
}

/* =============================================
   MD BREAKPOINT (768px+) — tablets
   ============================================= */
@media (min-width: 576px) {
  /* Hero buttons - side by side on larger phones */
  .hero-actions {
    flex-direction: row;
    gap: 1rem !important;
  }
  .hero-actions .btn {
    width: auto;
  }
  
  /* Hero images grid gap */
  .hero-images-inner {
    gap: 1.25rem !important;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
    padding: 0 1.5rem;
  }
  .container-sm {
    max-width: 640px;
  }
  .container-md {
    max-width: 768px;
  }

  /* Visibility */
  .hide-desktop {
    display: none !important;
  }
  .hide-mobile {
    display: revert !important;
  }
  .show-mobile {
    display: none !important;
  }

  .dashboard-main {
    padding: 1.5rem;
  }

  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
  .stats-grid .card-content {
    padding: 1rem;
  }
  .stat-card-value {
    font-size: 1.5rem;
  }

  .dashboard-header-inner {
    flex-direction: row;
    align-items: center;
  }
  .dashboard-header-title {
    font-size: 1.5rem;
  }
  .dashboard-header-right {
    width: auto;
  }
  .dashboard-header-date {
    width: auto;
  }

  .content-grid {
    gap: 1.25rem;
  }
  .content-grid.sidebar-layout {
    grid-template-columns: 1fr 300px;
  }
  .content-grid.wide-sidebar {
    grid-template-columns: 1fr 350px;
  }
  .content-grid.two-col {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Public header */
  .public-header-inner {
    padding: 0 1.5rem;
    height: 74px;
    min-height: 74px;
    overflow: visible;
  }
  .public-logo img {
    width: 76px;
    height: 76px;
  }
  .public-logo-text {
    max-width: none;
  }
  .public-logo-text strong {
    font-size: 1.8rem;
  }
  .public-logo-text small {
    font-size: 1.0rem;
  }
  .public-nav {
    display: flex !important;
  }
  .public-header-actions {
    display: flex !important;
  }
  .hamburger-btn {
    display: none !important;
  }
  .mobile-menu,
  .mobile-menu-overlay {
    display: none !important;
  }

  /* Footer - Shared Footer Tablet+ */
  .public-footer-inner {
    padding: 0 1.5rem;
  }
  .public-footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    padding: 2.5rem 0;
  }
  .footer-brand-col {
    text-align: left;
    border-bottom: none;
    padding-bottom: 0;
  }
  .footer-desc {
    margin: 0.75rem 0 0;
  }
  .footer-trust-strip {
    justify-content: flex-start;
  }
  .footer-social {
    justify-content: flex-start;
  }
  .footer-col {
    text-align: left;
  }
  .footer-col-title {
    display: inline-block;
  }
  .footer-col-title::after {
    left: 0;
    transform: none;
  }
  .footer-links {
    align-items: flex-start;
  }
  .footer-contact-list {
    align-items: flex-start;
  }
  .footer-bottom-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    padding: 1rem 1.5rem;
  }

  /* Hero */
  .dark-hero-content > .flex {
    flex-direction: row;
  }
  .hero-filter-wrapper {
    width: auto;
  }

  .tabs-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .quick-actions-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .flex.gap-2[style*="margin-bottom"] select,
  .flex.items-center.gap-3 select {
    width: auto !important;
  }
  .flex.gap-2[style*="margin-bottom"] .btn,
  .flex.items-center.gap-3 .btn {
    width: auto;
  }

  /* Tables */
  .data-table {
    min-width: 0;
  }
  .data-table th,
  .data-table td {
    padding: 0.75rem;
    font-size: 0.875rem;
    white-space: normal;
  }
  .enrollments-table thead th,
  .enrollments-table tbody td {
    padding: 0.875rem 1.5rem;
    font-size: 0.875rem;
  }

  /* Forms */
  .form-row.cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .form-actions {
    flex-direction: row;
  }
  .form-actions .btn {
    width: auto;
  }

  .modal-content {
    max-width: 500px;
  }

  /* Hero cards */
  .hero-cards {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Dashboard header */
  .dashboard-header-inner {
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
  }

  /* Admin hero */
  .admin-hero {
    padding: 1.25rem 1.5rem;
    border-radius: 0 0 1.5rem 1.5rem;
  }
  .admin-hero h1 {
    font-size: 1.5rem;
  }
  .admin-hero .hero-right {
    display: flex;
  }

  /* Video grid */
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  /* Course detail - back to sidebar layout */
  .grid[style*="align-items:start"] {
    grid-template-columns: 1fr 380px !important;
  }
  .grid[style*="align-items:start"] .md\:col-span-2 {
    grid-column: span 2;
  }

  /* Contact page */
  .contact-form-wrapper {
    grid-template-columns: 1fr 1fr !important;
  }
  .contact-info-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }

  /* Student greeting */
  .student-greeting {
    flex-direction: row;
    align-items: center;
  }

  /* Profile */
  .profile-header {
    flex-direction: row;
    text-align: left;
  }

  /* Books grid */
  .book-cover-placeholder {
    height: 200px !important;
  }

  /* Chart containers */
  .chart-container {
    height: 220px !important;
  }
}

/* =============================================
   LG BREAKPOINT (992px+) — small desktops
   ============================================= */
@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }

  .dashboard-main {
    padding: 2rem;
  }

  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
  .stats-grid .card-content {
    padding: 1.25rem;
  }
  .stat-card-value {
    font-size: 1.75rem;
  }

  .dashboard-header-title {
    font-size: 1.75rem;
  }

  .hero-cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .content-grid.three-col {
    grid-template-columns: repeat(3, 1fr);
  }
  .content-grid.two-col {
    grid-template-columns: repeat(2, 1fr);
  }
  .content-grid.sidebar-layout {
    grid-template-columns: 1fr 320px;
  }
  .content-grid.wide-sidebar {
    grid-template-columns: 1fr 380px;
  }

  .public-footer-grid {
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
  }
  .footer-desc {
    max-width: 320px;
  }

  .quick-actions-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .tabs-list {
    grid-template-columns: repeat(4, 1fr);
  }

  .hero-grid {
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
  }

  .hero-images {
    padding-left: 2rem !important;
  }

  .dark-hero h1,
  .hero-title {
    font-size: clamp(2.35rem, 4.5vw, 3.8rem) !important;
  }

  /* Stats - 4 columns for dense dashboards */
  .stats-grid.cols-4 {
    grid-template-columns: repeat(4, 1fr);
  }

  .video-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .admin-hero h1 {
    font-size: 1.65rem;
  }

  .chart-container {
    height: 250px !important;
  }

  /* Dashboard header band */
  .dashboard-header-inner {
    padding: 1.5rem 1.75rem;
    border-radius: 16px;
  }

  /* Ensure public nav & actions are visible (override premium-ui.css max-width: 991px) */
  .public-nav {
    display: flex !important;
  }
  .public-header-actions {
    display: flex !important;
  }
  .hamburger-btn {
    display: none !important;
  }
}

/* =============================================
   XL BREAKPOINT (1200px+) — large desktops
   ============================================= */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }

  .dashboard-main {
    padding: 2.5rem;
  }

  .stats-grid .card-content {
    padding: 1.5rem;
  }
  .stat-card-value {
    font-size: 2rem;
  }

  .stats-grid.cols-4 {
    grid-template-columns: repeat(4, 1fr);
  }
  .stats-grid.cols-6 {
    grid-template-columns: repeat(6, 1fr);
  }

  .hero-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
  .dark-hero-content {
    padding: 3.5rem 1.5rem !important;
  }

  .video-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }

  .content-grid.sidebar-layout {
    grid-template-columns: 1fr 350px;
  }
  .content-grid.wide-sidebar {
    grid-template-columns: 1fr 400px;
  }

  .chart-container {
    height: 280px !important;
  }

  .quick-actions-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }
}

/* =============================================
   XXL BREAKPOINT (1400px+) — extra large screens
   ============================================= */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }

  .dashboard-main {
    padding: 3rem;
  }

  .stats-grid {
    gap: 1.5rem;
  }

  .stats-grid.cols-6 {
    grid-template-columns: repeat(6, 1fr);
  }

  .hero-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .content-grid {
    gap: 1.75rem;
  }

  .video-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}

/* =============================================
   XXXL (1600px+) — ultrawide
   ============================================= */
@media (min-width: 1600px) {
  .container {
    max-width: 1400px;
  }
}

/* =============================================
   PRINT
   ============================================= */
@media print {
  .sidebar,
  .public-header,
  .public-footer,
  .btn,
  .sidebar-toggle,
  .form-as-modal,
  .hamburger-btn,
  .mobile-menu,
  .mobile-menu-overlay,
  .whatsapp-float,
  .sidebar-overlay {
    display: none !important;
  }
  .dashboard-main {
    padding: 0 !important;
  }
  .dashboard-layout {
    display: block !important;
  }
  body {
    background: white !important;
    color: black !important;
  }
  .card,
  .stat-card,
  .enrollments-card {
    box-shadow: none !important;
    border: 1px solid #ddd !important;
    break-inside: avoid;
  }
}

/* =============================================
   REDUCED MOTION
   ============================================= */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* =============================================
   FIX: Dashboard layout with sidebar
   ============================================= */

/* Dashboard body layout */
.dashboard-body {
  display: flex;
  min-height: 100vh;
}

/* Main content area */
.dashboard-main {
  flex: 1;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
}

/* NOTE: .dashboard-main margin-left on desktop is handled in institutional-dashboard.css */

/* =============================================
   RESPONSIVE: Dashboard layout grids
   ============================================= */

/* Analytics grid (Enrollment Trends + Course Performance side-by-side) */
.analytics-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 1.25rem;
  margin-top: 1.25rem;
}
@media (max-width: 991px) {
  .analytics-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* KPI grid (admin dashboard stat cards) */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}
@media (max-width: 767px) {
  .kpi-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.625rem;
  }
}
@media (max-width: 479px) {
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* Admin columns (activity + notifications side-by-side) */
.admin-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
@media (max-width: 991px) {
  .admin-cols {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* QA grid (quick actions) */
.qa-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.875rem;
  margin-top: 1rem;
}
@media (max-width: 767px) {
  .qa-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.625rem;
  }
}
@media (max-width: 479px) {
  .qa-grid {
    grid-template-columns: 1fr;
  }
}

/* Learning stats grid (student dashboard) */
.lstat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.25rem;
}
@media (max-width: 767px) {
  .lstat-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
  }
  /* Override #studentStats ID selector for 3 columns on mobile */
  #studentStats {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}
@media (max-width: 479px) {
  .lstat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  #studentStats {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* Course grid (student dashboard my courses) */
.course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 1rem;
}
@media (max-width: 991px) {
  .course-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 576px) {
  .course-grid {
    grid-template-columns: 1fr;
  }
}

/* =============================================
   RESPONSIVE: Top bar (gw-topbar)
   ============================================= */
@media (max-width: 991px) {
  .gw-topbar {
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.625rem 1rem !important;
    min-height: 0 !important;
  }
  .gw-topbar .sidebar-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--gw-border, #e4e7ec);
    border-radius: 10px;
    background: var(--card, #fff);
    color: var(--foreground, #111827);
    font-size: 1rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s ease;
  }
  .gw-topbar .sidebar-toggle:hover {
    background: var(--muted, #f1f3f9);
  }
  .gw-topbar-greeting h1 {
    font-size: clamp(1rem, 3.5vw, 1.25rem);
  }
  .gw-topbar-greeting p {
    font-size: 0.75rem;
  }
  .gw-top-actions .gw-icon-btn:not(#notifMenuBtn) {
    display: none;
  }
  .gw-user .gw-user-role {
    display: none;
  }
}

/* --- Simplified tablet topbar (768px - 991px) --- */
@media (min-width: 768px) and (max-width: 991px) {
  .gw-topbar-greeting p {
    display: none !important;
  }
}

/* --- Simplified phone topbar (< 768px) --- */
@media (max-width: 767px) {
  .gw-topbar {
    flex-wrap: nowrap !important;
    gap: 0.65rem;
    padding: 0.7rem 1rem;
    margin: 0.85rem 0.35rem 0.85rem !important;
    min-height: 0;
    border-radius: 16px;
    border: 1px solid var(--gw-border, #E2E8F0);
    box-shadow: var(--gw-shadow-sm, 0 1px 3px rgba(15,23,42,0.06));
    background: rgba(255, 255, 255, 0.85);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    backdrop-filter: blur(12px) saturate(160%);
  }
  /* Hide avatar/user button and emoji on mobile, keep only toggle + page icon */
  .gw-topbar .gw-user {
    display: none !important;
  }
  .gw-topbar .gw-topbar-greeting h1 span {
    display: none !important;
  }
  .gw-topbar .sidebar-toggle {
    width: 36px;
    height: 36px;
    font-size: .9rem;
    border-radius: 10px;
    margin-bottom: 0;
    flex-shrink: 0;
  }
  .gw-topbar-greeting {
    flex: 1;
    min-width: 0;
    padding: 0 0.35rem;
  }
  .gw-topbar-greeting p {
    display: none !important;
  }
  .gw-topbar-greeting h1 {
    font-size: 1rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.35;
  }
  .gw-top-actions {
    gap: 0.35rem;
    flex-shrink: 0;
  }
  .gw-top-actions .gw-icon-btn#notifMenuBtn {
    display: none !important;
  }
  .gw-user {
    padding: 0.15rem;
    border: none;
    background: transparent;
    margin-left: 0;
  }
  .gw-user .gw-user-name,
  .gw-user .fa-chevron-down {
    display: none !important;
  }
  .gw-user .gw-avatar {
    width: 2.15rem;
    height: 2.15rem;
    font-size: .85rem;
  }
  .gw-topbar-spacer {
    display: none;
  }
}

/* =============================================
   RESPONSIVE: Admin pages specific
   ============================================= */

/* Admin class operations - filter area */
.filter-bar {
  flex-direction: column;
  gap: 0.5rem;
}
@media (min-width: 576px) {
  .filter-bar {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
  }
}

/* Admin card grid */
.admin-card-grid {
  grid-template-columns: 1fr;
  gap: 0.75rem;
}
@media (min-width: 576px) {
  .admin-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 992px) {
  .admin-card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Student list / table */
.student-row {
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.75rem;
}
@media (min-width: 576px) {
  .student-row {
    flex-direction: row;
    align-items: center;
  }
}

/* =============================================
   RESPONSIVE: course-detail page
   ============================================= */
.course-detail-hero {
  padding: 2rem 0 !important;
}
.course-detail-hero h1 {
  font-size: clamp(1.5rem, 5vw, 2.5rem);
}
@media (min-width: 768px) {
  .course-detail-hero {
    padding: 3rem 0 !important;
  }
}

/* =============================================
   RESPONSIVE: 404 / 500 error pages
   ============================================= */
.error-page {
  padding: 3rem 1rem;
  text-align: center;
}
.error-page h1 {
  font-size: clamp(3rem, 12vw, 6rem);
}
.error-page p {
  font-size: clamp(0.875rem, 2.5vw, 1.125rem);
}
@media (min-width: 768px) {
  .error-page {
    padding: 5rem 2rem;
  }
}

/* =============================================
   RESPONSIVE: Resources page
   ============================================= */
.resources-grid {
  grid-template-columns: 1fr;
  gap: 0.75rem;
}
@media (min-width: 576px) {
  .resources-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 992px) {
  .resources-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
