/* ============================================
   PAGES CSS — Courses, About, Contact, Dashboard
   ============================================ */

/* ── PAGE HEADER ── */
.page-header {
  padding: 8rem 2rem 4rem;
  position: relative;
  overflow: hidden;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
}
.page-header-bg {
  position: absolute;
  inset: 0;
  /* Grid pattern removed - created unwanted vertical bars */
}
.page-header-glow {
  position: absolute;
  top: -50%;
  left: 20%;
  width: 60%;
  height: 150%;
  background: radial-gradient(ellipse, rgba(4,159,217,0.08) 0%, transparent 60%);
}
.page-header-inner {
  max-width: 1300px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--cisco-blue); }
.breadcrumb i { font-size: 0.6rem; }
.page-header-title {
  font-family: 'Orbitron', monospace;
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 0.8rem;
}
.page-header-desc { font-size: 1rem; color: var(--muted); max-width: 560px; }

/* ============================================
   COURSES PAGE
   ============================================ */
.filter-toolbar {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 2rem;
  position: sticky;
  top: 72px;
  z-index: 100;
}
.filter-toolbar-inner {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.filter-btns {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}
.filter-btn {
  padding: 7px 16px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: var(--transition);
}
.filter-btn:hover { border-color: var(--cisco-blue); color: var(--cisco-blue); }
.filter-btn.active {
  background: rgba(4,159,217,0.12);
  border-color: var(--cisco-blue);
  color: var(--cisco-blue);
}
.filter-separator {
  width: 1px;
  height: 24px;
  background: var(--border);
  flex-shrink: 0;
}
.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg3);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 8px 14px;
  min-width: 240px;
  transition: var(--transition);
}
.search-input-wrap:focus-within { border-color: var(--cisco-blue); }
.search-input-wrap i { color: var(--muted2); font-size: 0.85rem; }
.search-input-wrap input {
  background: none;
  border: none;
  color: var(--text);
  font-size: 0.88rem;
  outline: none;
  flex: 1;
  width: 100%;
}
.search-input-wrap input::placeholder { color: var(--muted2); }
.sort-select {
  background: var(--bg3);
  border: 1.5px solid var(--border);
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.82rem;
  outline: none;
  cursor: pointer;
  transition: var(--transition);
  margin-left: auto;
}
.sort-select:focus { border-color: var(--cisco-blue); color: var(--text); }
.results-count {
  font-size: 0.8rem;
  color: var(--muted);
  margin-left: 0.5rem;
}
.results-count span { color: var(--cisco-blue); font-weight: 700; }

/* ── COURSE DETAIL MODAL ── */
.course-detail-modal { max-width: 700px; }
.cdm-header {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.8rem;
  align-items: flex-start;
}
.cdm-thumb {
  width: 90px; height: 90px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  flex-shrink: 0;
}
.cdm-meta-row {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.cdm-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--muted);
}
.cdm-meta-item i { color: var(--cisco-blue); }
.cdm-meta-item strong { color: var(--text); }
.curriculum-title {
  font-family: 'Orbitron', monospace;
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.8rem;
}
.curriculum-list { display: flex; flex-direction: column; gap: 6px; }
.curriculum-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.84rem;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 7px;
  transition: var(--transition);
}
.curriculum-item:hover { background: var(--bg4); color: var(--text); }
.ci-num {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(4,159,217,0.12);
  color: var(--cisco-blue);
  font-size: 0.68rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.instructor-strip {
  background: var(--bg4);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1.5rem;
}
.is-label { font-size: 0.72rem; color: var(--muted); margin-bottom: 2px; }
.is-name { font-size: 0.9rem; font-weight: 600; color: var(--white); }
.is-cert { font-size: 0.72rem; color: var(--cisco-blue); }
.is-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cisco-blue), var(--cisco-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Orbitron', monospace;
  font-weight: 800;
  font-size: 0.88rem;
  color: #fff;
  flex-shrink: 0;
}
.enroll-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.enroll-price {
  font-family: 'Orbitron', monospace;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--white);
}
.enroll-price.free { color: var(--green); }

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-full-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 4rem;
  align-items: start;
}
.about-sidebar {
  position: sticky;
  top: 100px;
}
.about-photo-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.about-photo-inner {
  aspect-ratio: 3/4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8rem;
  background: linear-gradient(180deg, var(--bg3) 0%, var(--bg4) 100%);
  position: relative;
}
.about-photo-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-name-plate {
  padding: 1.5rem;
  border-top: 1px solid var(--border);
}
.about-full-name {
  font-family: 'Orbitron', monospace;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 3px;
}
.about-full-role { font-size: 0.82rem; color: var(--cisco-blue); font-weight: 600; }
.about-certs-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1rem;
}
.about-certs-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.cert-list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
}
.cert-list-item:last-child { border-bottom: none; }
.cli-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: rgba(4,159,217,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.cli-name { font-size: 0.84rem; font-weight: 600; color: var(--white); }
.cli-code { font-size: 0.7rem; color: var(--muted); }
.cli-badge { margin-left: auto; }
.about-content-main {}
.about-bio-section { margin-bottom: 2.5rem; }
.about-bio-title {
  font-family: 'Orbitron', monospace;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.about-bio-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.about-bio-text {
  color: var(--muted);
  line-height: 1.8;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}
.skills-section { margin-bottom: 2.5rem; }
.skill-row { margin-bottom: 1rem; }
.skill-row-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  margin-bottom: 6px;
}
.skill-row-label { font-weight: 600; color: var(--text); }
.skill-row-pct { color: var(--cisco-blue); font-weight: 700; }
.skill-bar-bg {
  height: 6px;
  background: var(--bg4);
  border-radius: 6px;
  overflow: hidden;
}
.skill-bar-fill {
  height: 100%;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--cisco-blue), rgba(4,159,217,0.4));
  width: 0;
  transition: width 1.2s cubic-bezier(0.4,0,0.2,1);
}
.achievements-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.achieve-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  text-align: center;
  transition: var(--transition);
}
.achieve-card:hover { border-color: var(--cisco-blue); transform: translateY(-3px); }
.achieve-num {
  font-family: 'Orbitron', monospace;
  font-size: 2rem;
  font-weight: 800;
  color: var(--cisco-blue);
}
.achieve-label { font-size: 0.75rem; color: var(--muted); margin-top: 4px; }
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border);
}
.timeline-item { position: relative; margin-bottom: 1.5rem; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.6rem;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cisco-blue);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 2px rgba(4,159,217,0.3);
}
.tl-year { font-size: 0.72rem; font-weight: 700; color: var(--cisco-blue); margin-bottom: 3px; }
.tl-title { font-size: 0.92rem; font-weight: 600; color: var(--white); }
.tl-desc { font-size: 0.8rem; color: var(--muted); margin-top: 4px; }

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
}
.contact-info-stack { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-info-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: var(--transition);
}
.contact-info-card:hover { border-color: var(--border2); }
.cic-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.cic-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(4,159,217,0.1);
  border: 1px solid rgba(4,159,217,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cisco-blue);
  font-size: 1rem;
  flex-shrink: 0;
}
.cic-label { font-size: 0.72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 3px; }
.cic-value { font-size: 0.9rem; color: var(--text); font-weight: 500; }
.contact-social { margin-top: 0.5rem; }
.social-row { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 0.8rem; }
.social-btn {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--bg3);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.9rem;
}
.social-btn:hover {
  border-color: var(--cisco-blue);
  color: var(--cisco-blue);
  background: rgba(4,159,217,0.08);
  transform: translateY(-2px);
}
.contact-form-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
}
.office-hours {
  background: var(--bg4);
  border-radius: var(--radius);
  padding: 1rem;
}
.oh-title { font-size: 0.78rem; font-weight: 700; color: var(--white); margin-bottom: 0.5rem; }
.oh-row { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--muted); padding: 3px 0; }
.oh-row span:last-child { color: var(--green); }

/* ============================================
   DASHBOARD PAGE
   ============================================ */
.dashboard-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: calc(100vh - 72px);
  margin-top: 72px;
}
.dash-sidebar {
  background: var(--bg2);
  border-right: 1px solid var(--border);
  position: sticky;
  top: 72px;
  height: calc(100vh - 72px);
  overflow-y: auto;
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
}
.dash-sidebar-logo {
  font-family: 'Orbitron', monospace;
  font-size: 1rem;
  font-weight: 800;
  color: var(--white);
  padding: 0 0.8rem;
  margin-bottom: 0.5rem;
}
.dash-sidebar-sub {
  font-size: 0.72rem;
  color: var(--muted);
  padding: 0 0.8rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}
.dash-nav { display: flex; flex-direction: column; gap: 0.2rem; flex: 1; }
.dash-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.87rem;
  font-weight: 500;
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid transparent;
}
.dash-nav-item i { width: 18px; text-align: center; font-size: 0.9rem; }
.dash-nav-item:hover { background: var(--bg4); color: var(--text); }
.dash-nav-item.active {
  background: rgba(4,159,217,0.1);
  color: var(--cisco-blue);
  border-color: rgba(4,159,217,0.2);
}
.dash-nav-separator {
  height: 1px;
  background: var(--border);
  margin: 0.8rem 0;
}
.dash-nav-logout {
  margin-top: auto;
  color: var(--muted) !important;
}
.dash-nav-logout:hover { color: var(--accent) !important; }
.dash-main { padding: 2.5rem; overflow-y: auto; }
.dash-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.dash-greeting-name {
  font-family: 'Orbitron', monospace;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--white);
}
.dash-greeting-sub { font-size: 0.85rem; color: var(--muted); margin-top: 3px; }
.dash-plan-badge {
  background: rgba(4,159,217,0.1);
  border: 1px solid rgba(4,159,217,0.25);
  border-radius: 10px;
  padding: 0.7rem 1.2rem;
  text-align: center;
}
.dpb-label { font-size: 0.68rem; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.dpb-plan { font-size: 0.9rem; font-weight: 700; color: var(--cisco-blue); margin-top: 2px; }
.dash-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}
.dash-stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.3rem;
  transition: var(--transition);
}
.dash-stat-card:hover { border-color: var(--border2); transform: translateY(-2px); }
.dsc-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  margin-bottom: 0.8rem;
}
.dsc-icon.blue { background: rgba(4,159,217,0.1); color: var(--cisco-blue); }
.dsc-icon.green { background: rgba(4,217,100,0.1); color: var(--green); }
.dsc-icon.orange { background: rgba(255,107,53,0.1); color: var(--accent); }
.dsc-icon.purple { background: rgba(120,80,220,0.1); color: #a07de0; }
.dsc-num {
  font-family: 'Orbitron', monospace;
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--white);
}
.dsc-label { font-size: 0.75rem; color: var(--muted); margin-top: 3px; }
.dash-section-title {
  font-family: 'Orbitron', monospace;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
}
.enrolled-list { display: flex; flex-direction: column; gap: 0.8rem; }
.enrolled-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: var(--transition);
}
.enrolled-item:hover { border-color: var(--border2); }
.ei-thumb {
  width: 46px; height: 46px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.ei-name { font-size: 0.88rem; font-weight: 600; color: var(--white); }
.ei-prog-label { font-size: 0.7rem; color: var(--muted); margin-top: 3px; }
.ei-prog-wrap { display: flex; align-items: center; gap: 10px; flex: 1; }
.ei-prog-bar {
  flex: 1;
  height: 5px;
  background: var(--bg4);
  border-radius: 5px;
  overflow: hidden;
}
.ei-prog-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--cisco-blue), rgba(4,159,217,0.5));
  border-radius: 5px;
  transition: width 1s ease;
}
.ei-pct { font-size: 0.8rem; font-weight: 700; color: var(--cisco-blue); white-space: nowrap; }
.dash-panel { display: none; }
.dash-panel.active { display: block; }
.upgrade-banner {
  background: linear-gradient(135deg, rgba(4,159,217,0.08), rgba(255,107,53,0.05));
  border: 1px solid rgba(4,159,217,0.2);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}
.ub-title {
  font-family: 'Orbitron', monospace;
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
}
.ub-desc { font-size: 0.82rem; color: var(--muted); margin-top: 3px; }
.profile-form-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 600px;
}
.empty-state {
  text-align: center;
  padding: 3rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.empty-state-icon { font-size: 3rem; margin-bottom: 1rem; }
.empty-state-title { font-family: 'Orbitron', monospace; font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: 0.4rem; }
.empty-state-desc { font-size: 0.84rem; color: var(--muted); margin-bottom: 1.5rem; }

/* ── TIER SELECTOR ── */
.tier-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; margin-bottom: 1.5rem; }
.tier-opt {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
  cursor: pointer;
  transition: var(--transition);
  background: var(--bg4);
  position: relative;
}
.tier-opt:hover { border-color: var(--cisco-blue); }
.tier-opt.selected {
  border-color: var(--cisco-blue);
  background: rgba(4,159,217,0.06);
}
.tier-opt.selected::after {
  content: '✓';
  position: absolute;
  top: 8px;
  right: 10px;
  color: var(--cisco-blue);
  font-size: 0.8rem;
  font-weight: 700;
}
.tier-name { font-size: 0.9rem; font-weight: 700; color: var(--white); }
.tier-price {
  font-family: 'Orbitron', monospace;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--cisco-blue);
  margin: 4px 0;
}
.tier-features { font-size: 0.72rem; color: var(--muted); line-height: 1.5; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .about-full-grid { grid-template-columns: 1fr; }
  .about-sidebar { position: static; max-width: 400px; }
  .contact-layout { grid-template-columns: 1fr; }
  .dashboard-layout { grid-template-columns: 1fr; }
  .dash-sidebar { display: none; }
  .dash-stats-row { grid-template-columns: repeat(2, 1fr); }
}

/* ════════════════════════════════════════════════════════════════════
   PAGES MOBILE RESPONSIVE FIXES — Courses, About, Contact, Dashboard
   ════════════════════════════════════════════════════════════════════ */

/* ──── LARGE PHONE (390px–480px) ──── */
@media (max-width: 425px) {
  .page-header-title { font-size: 1.6rem; }
  .filter-btn { padding: 7px 10px; font-size: 0.7rem; }
}

@media (max-width: 768px) {
  /* Page header responsive padding */
  .page-header {
    padding: 5rem 1rem 3rem !important;
  }

  .page-header-title {
    font-size: 1.8rem;
  }

  .page-header-desc {
    font-size: 0.95rem;
  }

  /* Breadcrumb adjustments */
  .breadcrumb {
    font-size: 0.75rem;
    gap: 6px;
    margin-bottom: 1rem;
  }

  /* Filter toolbar mobile */
  .filter-toolbar {
    padding: 1rem;
    top: 70px;
    position: sticky;
    z-index: 100;
  }

  .filter-toolbar-inner {
    flex-direction: column;
    gap: 0.75rem;
  }

  .search-input-wrap {
    width: 100%;
    min-width: 0 !important;
  }

  .search-input-wrap input {
    width: 100%;
  }

  /* Courses grid improvements */
  .courses-grid {
    gap: 1.5rem;
  }

  /* About section */
  .about-full-grid {
    padding: 0 1rem !important;
  }

  .about-sidebar {
    order: 2;
    margin-top: 2rem;
  }

  /* Contact section */
  .contact-layout {
    gap: 1.5rem;
    padding: 0 1rem !important;
  }

  .contact-form-card {
    padding: 1.5rem !important;
  }
}

@media (max-width: 480px) {
  /* ── PAGE HEADER CRITICAL FIX ── */
  .page-header {
    padding: 3rem 1rem 2rem !important;
    margin-top: 0;
  }

  .page-header-inner {
    padding: 0;
  }

  .page-header-title {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    line-height: 1.2;
  }

  .page-header-desc {
    font-size: 0.9rem;
  }

  /* ── FILTER TOOLBAR RESPONSIVE ── */
  .filter-toolbar {
    padding: 0.75rem;
    top: 70px;
  }

  .filter-toolbar-inner {
    flex-direction: column;
    gap: 0.5rem;
    align-items: stretch;
  }

  .search-input-wrap {
    width: 100%;
    min-width: 0 !important;
    padding: 8px 10px 8px 32px;
  }

  .search-input-wrap input {
    width: 100%;
  }

  .filter-btns {
    gap: 0.4rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
  }

  .filter-btn {
    padding: 8px 12px;
    font-size: 0.75rem;
    min-height: 44px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .sort-select {
    width: 100%;
    margin-left: 0;
  }

  /* ── COURSES GRID ── */
  .courses-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem;
  }

  .course-card {
    margin: 0;
  }

  .course-image {
    height: 150px;
  }

  .course-image-fallback {
    padding: 1rem;
  }

  .course-image-fallback i {
    font-size: 1.8rem;
  }

  .course-image-fallback span {
    font-size: 0.75rem;
  }

  .course-body {
    padding: 1rem;
  }

  .course-title {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
  }

  .course-desc {
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
  }

  .course-meta {
    font-size: 0.75rem;
    gap: 0.5rem;
  }

  .course-badge {
    padding: 0.3rem 0.7rem;
    font-size: 0.65rem;
  }

  .course-footer {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .course-actions {
    flex-direction: row;
    gap: 0.4rem;
    flex-shrink: 0;
  }

  .course-action-btn {
    padding: 8px 12px;
    font-size: 0.75rem;
    min-height: 44px;
    min-height: 32px;
  }

  /* ── COURSE DETAIL MODAL ── */
  .course-detail-modal {
    max-width: 100%;
    margin: 0 !important;
    border-radius: 12px 12px 0 0 !important;
  }

  .cdm-header {
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
  }

  .cdm-thumb {
    width: 70px !important;
    height: 70px !important;
    flex-shrink: 0;
  }

  .cdm-meta {
    gap: 0.5rem;
  }

  .cdm-meta span {
    font-size: 0.75rem;
  }

  .enroll-price {
    font-size: 1.4rem;
  }

  .enroll-bar {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .enroll-btn {
    flex: 1;
    min-width: 120px;
    min-height: 44px;
  }

  /* ── ABOUT PAGE ── */
  .about-container {
    padding: 0 1rem !important;
  }

  .about-full-grid {
    grid-template-columns: 1fr !important;
    padding: 0 !important;
  }

  .about-sidebar {
    order: 2;
    margin-top: 1.5rem;
  }

  .about-photo-card {
    max-width: 100%;
    margin: 0 auto;
  }

  .about-text h2,
  .about-text h3 {
    font-size: 1.2rem;
  }

  /* ── CONTACT PAGE ── */
  .contact-container {
    padding: 0 1rem !important;
  }

  .contact-layout {
    gap: 2rem;
    grid-template-columns: 1fr !important;
  }

  .contact-info-group {
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
  }

  .contact-form-card {
    padding: 1.2rem !important;
  }

  .contact-form-card h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
  }

  .form-group {
    margin-bottom: 1rem;
  }

  .form-row2 {
    grid-template-columns: 1fr !important;
    gap: 1rem;
  }

  .finp {
    width: 100%;
    padding: 10px 12px;
    min-height: 40px;
  }

  .form-submit {
    width: 100%;
    min-height: 44px;
    padding: 12px 16px;
  }

  /* ── ABOUT PREVIEW SECTION ── */
  .about-preview-grid {
    grid-template-columns: 1fr !important;
  }

  .about-prev-item {
    padding: 1.2rem;
  }

  /* ── ACHIEVEMENTS ── */
  .achievements-row {
    grid-template-columns: 1fr !important;
    gap: 1rem;
  }

  .achieve-card {
    padding: 1rem;
  }

  .achieve-num {
    font-size: 1.6rem;
  }

  .achieve-label {
    font-size: 0.8rem;
  }

  /* ── DASHBOARD RELATED ── */
  .dashboard-layout {
    grid-template-columns: 1fr !important;
    gap: 1rem;
  }

  .dash-main {
    padding: 1rem !important;
  }

  .dash-stats-row {
    grid-template-columns: 1fr !important;
    gap: 1rem;
  }
}

@media (max-width: 390px) {
  /* iPhone 14/15 standard width */
  .page-header {
    padding: 2.8rem 0.8rem 1.5rem !important;
  }

  .page-header-title {
    font-size: 1.25rem;
  }

  .filter-btn {
    min-height: 44px;
    padding: 9px 12px;
  }
}

@media (max-width: 375px) {
  .page-header {
    padding: 2.5rem 0.75rem 1.5rem !important;
  }

  .page-header-title {
    font-size: 1.2rem;
  }

  .courses-container,
  .about-container,
  .contact-container {
    padding: 0 0.75rem !important;
  }

  .courses-grid {
    gap: 0.75rem;
  }

  .course-image {
    height: 120px;
  }

  .course-title {
    font-size: 0.9rem;
  }

  .filter-btn {
    padding: 6px 10px;
    font-size: 0.7rem;
  }

  .contact-form-card {
    padding: 1rem !important;
  }

  .about-full-grid {
    padding: 0 !important;
  }
}

/* ──── MEDIUM PHONES (425px–480px) ──── */
@media (max-width: 425px) {
  .page-header { padding: 3rem 0.9rem 2rem !important; }
  .page-header-title { font-size: 1.3rem; }
  .courses-container,
  .about-container,
  .contact-container { padding: 0 0.9rem !important; }
  .filter-btn { min-height: 44px; padding: 8px 12px; }
  .course-action-btn { min-height: 44px; padding: 8px 12px; }
}

/* ──── TOUCH TARGET FIXES FOR TABLETS (481px–1024px) ──── */
@media (min-width: 481px) and (max-width: 1024px) {
  .filter-btn { min-height: 44px; padding: 10px 14px; }
  .course-action-btn { min-height: 44px; padding: 10px 14px; }
  .social-btn { width: 44px !important; height: 44px !important; }
  .filter-pill { min-height: 44px; }
}

/* ──── 320px TINY SCREENS ──── */
@media (max-width: 320px) {
  .page-header { padding: 2rem 0.5rem 1rem !important; }
  .page-header-title { font-size: 1.1rem; }
  .courses-container,
  .about-container,
  .contact-container { padding: 0 0.5rem !important; }
  .courses-grid { gap: 0.5rem; }
}
