/* ==========================================================================
   Edunixa Main Stylesheet
   Modern Pakistani Education Portal Design (Desktop, Tablet, Mobile)
   ========================================================================== */

/* 1. Header Navigation */
.edx-site-header {
  background: var(--edx-bg-surface);
  border-bottom: 1px solid var(--edx-border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--edx-shadow-sm);
}

.edx-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 1.5rem;
}

.edx-site-logo-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.edx-site-logo-link.text-logo {
  font-family: var(--edx-font-heading);
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.edx-brand-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--edx-radius-md);
  background: var(--edx-primary);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.edx-navy { color: var(--edx-primary); }
.edx-orange { color: var(--edx-secondary); }

.edx-desktop-nav {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: center;
}

.edx-nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.edx-nav-menu > li {
  position: relative;
}

.edx-nav-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 0.85rem;
  color: var(--edx-text-main);
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: var(--edx-radius-md);
  transition: var(--edx-transition);
}

.edx-nav-link:hover,
.edx-nav-menu > li:hover > .edx-nav-link {
  background: var(--edx-primary-soft);
  color: var(--edx-primary);
}

.edx-nav-icon {
  color: var(--edx-text-muted);
  display: flex;
  align-items: center;
}

.edx-nav-link:hover .edx-nav-icon,
.edx-nav-menu > li:hover .edx-nav-icon {
  color: var(--edx-secondary);
}

.edx-dropdown-arrow {
  font-size: 12px;
  color: var(--edx-text-light);
  transition: transform 0.2s ease;
}

.edx-nav-menu > li:hover .edx-dropdown-arrow {
  transform: rotate(180deg);
}

/* Mega Menu Dropdowns (Landscape Cards) */
.edx-dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: #FFFFFF;
  border: 1px solid var(--edx-border-color);
  border-radius: var(--edx-radius-lg);
  box-shadow: var(--edx-shadow-xl);
  padding: 1rem;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1001;
}

.has-dropdown:hover > .edx-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.edx-mega-menu {
  display: flex;
  padding: 1.25rem;
  gap: 1.5rem;
}

.edx-mega-books { width: 540px; }
.edx-mega-results { width: 580px; }
.edx-mega-notes { width: 440px; }

.edx-mega-col {
  flex: 1;
}

.edx-mega-border-left {
  border-left: 1px solid var(--edx-border-color);
  padding-left: 1.5rem;
}

.edx-dropdown-header {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--edx-text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid var(--edx-primary-soft);
}

.edx-mega-list,
.edx-mega-grid-2 {
  list-style: none;
  margin: 0;
  padding: 0;
}

.edx-mega-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem 0.75rem;
}

.edx-mega-list li a,
.edx-mega-grid-2 li a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.5rem;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--edx-text-main);
  border-radius: var(--edx-radius-sm);
  transition: all 0.15s ease;
}

.edx-mega-list li a:hover,
.edx-mega-grid-2 li a:hover {
  background: var(--edx-primary-soft);
  color: var(--edx-primary);
  transform: translateX(3px);
}

.edx-sub-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--edx-secondary);
}

/* Header Quick Actions */
.edx-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.edx-search-trigger-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--edx-bg-alt);
  border: 1px solid var(--edx-border-color);
  padding: 0.5rem 0.85rem;
  border-radius: var(--edx-radius-full);
  color: var(--edx-text-muted);
  font-size: 0.875rem;
  cursor: pointer;
  transition: var(--edx-transition);
}

.edx-search-trigger-btn:hover {
  background: #FFFFFF;
  border-color: var(--edx-primary-light);
  color: var(--edx-primary);
}

.edx-search-shortcut {
  background: #FFFFFF;
  border: 1px solid var(--edx-border-color);
  border-radius: 4px;
  padding: 0.1rem 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
}

.edx-mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--edx-primary);
  cursor: pointer;
  padding: 0.25rem;
}

/* 2. Hero Finder Section */
.edx-hero {
  background: linear-gradient(135deg, #07192F 0%, #0B2545 60%, #133E87 100%);
  color: #FFFFFF;
  padding: 4.5rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.edx-hero-content {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.edx-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.35rem 0.85rem;
  border-radius: var(--edx-radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  color: #FFA726;
}

.edx-hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.15;
  color: #FFFFFF;
  margin-bottom: 1rem;
  letter-spacing: -0.025em;
}

.edx-hero-subtitle {
  font-size: 1.125rem;
  color: #CBD5E1;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.edx-finder-card {
  background: #FFFFFF;
  border-radius: var(--edx-radius-xl);
  padding: 1.5rem 1.75rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.edx-finder-form {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr auto;
  gap: 1rem;
  align-items: flex-end;
  text-align: left;
}

.edx-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.edx-form-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--edx-text-muted);
}

.edx-select {
  height: 48px;
  border: 1.5px solid var(--edx-border-color);
  border-radius: var(--edx-radius-md);
  padding: 0 0.85rem;
  font-size: 0.9375rem;
  font-family: inherit;
  background: #FFFFFF;
  color: var(--edx-text-main);
  outline: none;
  transition: var(--edx-transition);
}

.edx-select:focus {
  border-color: var(--edx-primary-light);
  box-shadow: 0 0 0 3px rgba(19, 62, 135, 0.15);
}

/* 3. Buttons & Badges */
.edx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.25rem;
  font-weight: 700;
  font-size: 0.9375rem;
  border-radius: var(--edx-radius-md);
  cursor: pointer;
  transition: var(--edx-transition);
  border: 1.5px solid transparent;
  text-decoration: none;
  font-family: var(--edx-font-heading);
}

.edx-btn-primary {
  background: var(--edx-secondary);
  color: #FFFFFF;
}

.edx-btn-primary:hover {
  background: var(--edx-secondary-hover);
  color: #FFFFFF;
  transform: translateY(-1px);
}

.edx-btn-navy {
  background: var(--edx-primary);
  color: #FFFFFF;
}

.edx-btn-navy:hover {
  background: var(--edx-primary-dark);
  color: #FFFFFF;
}

.edx-btn-outline {
  background: transparent;
  border-color: var(--edx-border-color);
  color: var(--edx-text-main);
}

.edx-btn-outline:hover {
  border-color: var(--edx-primary);
  color: var(--edx-primary);
  background: var(--edx-primary-soft);
}

.edx-btn-sm {
  padding: 0.4rem 0.75rem;
  font-size: 0.8125rem;
  border-radius: var(--edx-radius-sm);
}

.edx-btn-lg {
  padding: 0.85rem 1.75rem;
  font-size: 1.05rem;
  border-radius: var(--edx-radius-lg);
}

.edx-btn-block {
  width: 100%;
}

.edx-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  border-radius: var(--edx-radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
}

.edx-badge-announced {
  background: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}

.edx-badge-coming {
  background: #FEF3C7;
  color: #92400E;
  border: 1px solid #FDE68A;
}

.edx-badge-expected {
  background: #EFF6FF;
  color: #1E40AF;
  border: 1px solid #BFDBFE;
}

.edx-badge-medium {
  background: rgba(7, 25, 47, 0.85);
  color: #FFFFFF;
  font-size: 0.7rem;
  backdrop-filter: blur(4px);
}

.edx-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.edx-status-dot.pulse {
  animation: edxPulse 1.5s infinite;
}

@keyframes edxPulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

/* 4. Sections & Grid */
.edx-section {
  padding: 4rem 0;
}

.edx-section-header {
  margin-bottom: 2.5rem;
}

.edx-section-header.text-center {
  text-align: center;
}

.edx-section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--edx-secondary);
  margin-bottom: 0.5rem;
}

.edx-section-title {
  font-size: 2.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

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

.edx-grid {
  display: grid;
  gap: 1.5rem;
}

.edx-grid-4 { grid-template-columns: repeat(4, 1fr); }
.edx-grid-3 { grid-template-columns: repeat(3, 1fr); }
.edx-grid-2 { grid-template-columns: repeat(2, 1fr); }

/* 5. Class Cards */
.edx-class-card {
  background: #FFFFFF;
  border: 1px solid var(--edx-border-color);
  border-radius: var(--edx-radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--edx-shadow-sm);
  transition: var(--edx-transition);
}

.edx-class-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--edx-shadow-lg);
  border-color: var(--edx-primary-light);
}

.edx-class-card-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.edx-class-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--edx-radius-md);
  background: linear-gradient(135deg, #07192F 0%, #0B2545 100%);
  color: #FFA726;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 800;
  font-family: var(--edx-font-heading);
}

.edx-class-title {
  font-size: 1.15rem;
  margin: 0 0 0.15rem;
}

.edx-class-subtext {
  font-size: 0.8125rem;
  color: var(--edx-text-muted);
  margin: 0;
}

.edx-class-pills {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.edx-subject-pill {
  background: var(--edx-bg-alt);
  color: var(--edx-primary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
}

.edx-class-actions {
  display: flex;
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--edx-border-light);
}

/* 6. Book Card & Dynamic Covers */
.edx-book-card {
  background: #FFFFFF;
  border: 1px solid var(--edx-border-color);
  border-radius: var(--edx-radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--edx-shadow-sm);
  transition: var(--edx-transition);
}

.edx-book-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--edx-shadow-xl);
  border-color: var(--edx-secondary);
}

.edx-book-thumb-wrap {
  position: relative;
  padding-top: 125%;
  background: #0B2545;
  overflow: hidden;
}

.edx-book-cover-link {
  position: absolute;
  inset: 0;
  display: flex;
}

.edx-book-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.edx-book-card:hover .edx-book-cover-img {
  transform: scale(1.04);
}

/* Dynamic Subject Cover (No generic placeholder) */
.edx-subject-cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.25rem;
  color: #FFFFFF;
  overflow: hidden;
}

.edx-cover-spine {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 12px;
  background: rgba(0, 0, 0, 0.25);
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.edx-cover-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-left: 8px;
}

.edx-fallback-badge {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.edx-cover-board-tag {
  font-size: 0.65rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
}

.edx-cover-center {
  text-align: center;
  padding-left: 8px;
}

.edx-cover-symbol {
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0.25rem;
}

.edx-cover-subject-name {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin-bottom: 0.6rem;
  text-transform: uppercase;
}

.edx-cover-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.edx-cover-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-left: 8px;
  font-size: 0.7rem;
  font-weight: 700;
}

.edx-cover-medium-pill {
  background: rgba(0, 0, 0, 0.35);
  padding: 0.15rem 0.45rem;
  border-radius: 3px;
}

.edx-cover-seal {
  color: #FFA726;
}

.edx-book-info {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.edx-book-tags {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-bottom: 0.6rem;
}

.edx-book-tag {
  background: var(--edx-primary-soft);
  color: var(--edx-primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.edx-book-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 0.75rem;
}

.edx-book-title a {
  color: var(--edx-primary);
}

.edx-book-title a:hover {
  color: var(--edx-secondary);
}

.edx-book-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--edx-text-muted);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--edx-border-light);
}

.edx-book-meta-bar span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.edx-book-buttons {
  display: flex;
  gap: 0.5rem;
}

/* 7. Result Card */
.edx-result-card {
  background: #FFFFFF;
  border: 1px solid var(--edx-border-color);
  border-radius: var(--edx-radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--edx-shadow-sm);
  transition: var(--edx-transition);
}

.edx-result-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--edx-shadow-lg);
  border-color: var(--edx-secondary);
}

.edx-result-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.edx-result-card-badges {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.edx-result-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.35;
  margin: 0 0 0.75rem;
}

.edx-result-card-title a {
  color: var(--edx-primary);
}

.edx-result-card-title a:hover {
  color: var(--edx-secondary);
}

.edx-result-card-date {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  color: var(--edx-text-muted);
  margin: 0 0 1.25rem;
}

.edx-result-card-actions {
  display: flex;
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--edx-border-light);
}

/* 8. Single Book Layout */
.edx-single-book-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 2.5rem;
  align-items: flex-start;
}

.edx-book-sidebar-card {
  background: #FFFFFF;
  border: 1px solid var(--edx-border-color);
  border-radius: var(--edx-radius-xl);
  padding: 1.5rem;
  box-shadow: var(--edx-shadow-md);
  position: sticky;
  top: 90px;
}

.edx-book-sidebar-cover {
  position: relative;
  padding-top: 135%;
  border-radius: var(--edx-radius-lg);
  overflow: hidden;
  margin-bottom: 1.25rem;
  box-shadow: var(--edx-shadow-md);
}

.edx-meta-table-list {
  width: 100%;
  margin-top: 1.25rem;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.edx-meta-table-list tr {
  border-bottom: 1px solid var(--edx-border-light);
}

.edx-meta-table-list th {
  text-align: left;
  padding: 0.6rem 0;
  color: var(--edx-text-muted);
  font-weight: 600;
  width: 45%;
}

.edx-meta-table-list td {
  text-align: right;
  padding: 0.6rem 0;
  font-weight: 700;
  color: var(--edx-primary);
}

/* 9. Breadcrumbs */
.edx-breadcrumbs-wrap {
  background: var(--edx-bg-alt);
  border-bottom: 1px solid var(--edx-border-color);
  padding: 0.75rem 0;
  font-size: 0.8125rem;
}

.edx-breadcrumbs-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.edx-crumb-item {
  display: inline-flex;
  align-items: center;
}

.edx-crumb-link {
  color: var(--edx-text-muted);
  font-weight: 500;
}

.edx-crumb-link:hover {
  color: var(--edx-secondary);
}

.edx-crumb-current {
  color: var(--edx-primary);
  font-weight: 700;
}

.edx-crumb-divider {
  color: var(--edx-text-light);
  font-size: 14px;
}

/* 10. Footer */
.edx-site-footer {
  background: #07192F;
  color: #FFFFFF;
  padding: 4.5rem 0 2rem;
  border-top: 4px solid var(--edx-secondary);
  margin-top: 4rem;
}

.edx-footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1.1fr 1.3fr 1.2fr;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}

.edx-footer-about-text {
  font-size: 0.875rem;
  color: #94A3B8;
  line-height: 1.7;
  margin-top: 1rem;
}

.edx-footer-title {
  font-size: 1rem;
  color: #FFFFFF;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}

.edx-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.edx-footer-links li {
  margin-bottom: 0.6rem;
}

.edx-footer-links a {
  color: #CBD5E1;
  font-size: 0.85rem;
  transition: all 0.15s ease;
}

.edx-footer-links a:hover {
  color: #FFA726;
  padding-left: 4px;
}

.edx-footer-grid-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.edx-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8125rem;
  color: #94A3B8;
  flex-wrap: wrap;
  gap: 1rem;
}

.edx-footer-legal-menu {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.edx-footer-legal-menu a {
  color: #94A3B8;
}

.edx-footer-legal-menu a:hover {
  color: #FFFFFF;
}

/* 11. Mobile Drawer */
.edx-mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.edx-mobile-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.edx-mobile-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  bottom: 0;
  width: 300px;
  background: #FFFFFF;
  z-index: 1999;
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.edx-mobile-drawer.active {
  right: 0;
}

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

.edx-drawer-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--edx-text-main);
}

.edx-drawer-body {
  padding: 1.25rem;
  overflow-y: auto;
  flex: 1;
}

.edx-mobile-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.edx-mobile-nav-list li a {
  display: flex;
  align-items: center;
  padding: 0.65rem 0;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--edx-text-main);
}

.edx-drawer-footer {
  padding: 1.25rem;
  border-top: 1px solid var(--edx-border-color);
}

/* 12. Responsive Breakpoints */
@media (max-width: 1024px) {
  .edx-desktop-nav { display: none; }
  .edx-mobile-toggle { display: block; }
  .edx-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .edx-footer-grid { grid-template-columns: 1fr 1fr; }
  .edx-finder-form { grid-template-columns: 1fr 1fr; }
  .edx-single-book-layout { grid-template-columns: 1fr; }
  .edx-book-sidebar { max-width: 400px; margin: 0 auto 2rem; }
}

@media (max-width: 640px) {
  .edx-hero-title { font-size: 1.95rem; }
  .edx-grid-4, .edx-grid-3, .edx-grid-2 { grid-template-columns: 1fr; }
  .edx-finder-form { grid-template-columns: 1fr; }
  .edx-footer-grid { grid-template-columns: 1fr; }
  .edx-search-trigger-btn .edx-search-shortcut,
  .edx-search-trigger-btn .edx-search-text { display: none; }
  .edx-footer-bottom { flex-direction: column; text-align: center; }
}
