/* --- Base: light theme, clear defaults --- */
:root {
  font-family: system-ui, Avenir, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  font-weight: 400;

  /* Light theme */
  color-scheme: light;
  color: #212529;
  background-color: #ffffff;

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  --banner-duration: 17s;
}

/* Smooth scroll for anchor jumps */
html { scroll-behavior: smooth; }

/* App frame (no vertical centering) - Dark Mode */
html, body, #root { min-height: 100%; margin: 0; padding: 0; }
body {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 320px;
  background: #000000; /* Pure black background */
  color: #ffffff; /* White text */
}
#root { flex: 1; display: flex; flex-direction: column; }
main, .nv-page { display: block; }

/* Links */
a { font-weight: 500; color: #646cff; text-decoration: none; }
a:hover { color: #535bf2; }

/* Headings / Buttons (baseline) */
h1 { font-size: 3.2em; line-height: 1.1; }
button {
  border-radius: 8px; border: 1px solid transparent;
  padding: 0.6em 1.2em; font-size: 1em; font-weight: 500;
  font-family: inherit; background-color: #f8f9fa; cursor: pointer;
  transition: border-color .25s;
}
button:hover { border-color: #646cff; }
button:focus, button:focus-visible { outline: 4px auto -webkit-focus-ring-color; }

@media (prefers-color-scheme: light) {
  :root { color: #213547; background-color: #ffffff; }
  a:hover { color: #747bff; }
  button { background-color: #f9f9f9; }
}

/* === Navbar (Dark Mode) === */
.nv-navbar { 
  position: sticky; 
  top: 0; 
  z-index: 100; 
  background: rgba(0, 0, 0, 0.95); /* Dark semi-transparent */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Subtle white border */
  width: 100%; 
  transition: transform 0.3s ease-in-out;
}

/* Navbar scroll visibility (mobile only) */
@media (max-width: 991px) {
  .nv-navbar.navbar-hidden {
    transform: translateY(-100%);
  }
  
  .nv-navbar.navbar-visible {
    transform: translateY(0);
  }
}

.nv-navbar-light { 
  color: #ffffff; /* White text */
}

.nv-container { 
  max-width: 1368px; 
  margin: 0 auto; 
  padding: 0 16px; 
  display: flex; 
  align-items: center; 
  min-height: 56px; 
  position: relative; 
}

@media (max-width: 991px) {
  .nv-container {
    min-height: 48px;
    padding: 0 12px;
    flex-wrap: wrap;
  }
}

.nv-brand { 
  display: inline-flex; 
  align-items: center; 
  gap: 8px; 
  text-decoration: none; 
  color: #ffffff; /* White brand text */
  font-weight: 600; 
}

@media (max-width: 991px) {
  .nv-brand {
    gap: 6px;
  }
  
  .nv-brand-img {
    width: 24px;
    height: 24px;
  }
  
  .nv-brand-text {
    font-size: 15px;
  }
}

.nv-brand-img { 
  height: auto; 
  display: inline-block; 
  vertical-align: middle; 
}

.nv-brand-text { 
  display: inline-block; 
  vertical-align: middle; 
}

.nv-burger { 
  margin-left: auto; 
  display: none; 
  border: 1px solid rgba(255, 255, 255, 0.2); /* Light border */
  background: rgba(255, 255, 255, 0.05); /* Subtle background */
  border-radius: 4px; 
  padding: 6px 8px; 
  cursor: pointer; 
}

@media (max-width: 991px) {
  .nv-burger {
    padding: 5px 7px;
  }
}

.nv-burger-icon { 
  display: inline-block; 
  width: 22px; 
  height: 2px; 
  background: #ffffff; /* White burger icon */
  position: relative; 
}

.nv-burger-icon::before, .nv-burger-icon::after { 
  content: ""; 
  position: absolute; 
  left: 0; 
  width: 22px; 
  height: 2px; 
  background: #ffffff; /* White lines */
}

.nv-burger-icon::before { top: -6px; }
.nv-burger-icon::after { top: 6px; }

/* Hide mobile-only elements on desktop */
.mobile-only { display: none !important; }
.mobile-only-nav { display: none; }

/* Desktop-only elements */
.desktop-only { display: block; }

/* ============================================
   NAVBAR SEARCH BAR
   ============================================ */

.nv-navbar-search {
  flex-shrink: 0;
  margin: 0 1rem;
  display: flex;
  align-items: center;
}

.nv-search {
  position: relative;
  width: 100%;
  max-width: 350px;
}

.nv-search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  padding: 0 16px;
  height: 40px; /* Fixed height prevents stretching to navbar height */
  max-height: 40px;
  transition: all 0.3s ease;
}

.nv-search-input-wrapper.focused {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.nv-search-icon {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  margin-right: 10px;
  flex-shrink: 0;
}

.nv-search-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 14px;
  padding: 10px 0;
  outline: none;
  min-width: 0;
}

.nv-search-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.nv-search-clear {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  transition: color 0.2s ease;
  font-size: 12px;
}

.nv-search-clear:hover {
  color: #ffffff;
}

/* Search Dropdown */
.nv-search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  max-height: 501px;
  overflow-y: auto;
  z-index: 1000;
  animation: slideDown 0.2s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Loading State */
.nv-search-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  color: #666666;
}

/* Search Results */
.nv-search-results {
  padding: 8px 0;
}

.nv-search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease;
  border-radius: 0;
}

.nv-search-result-item:hover {
  background-color: #f5f5f5;
}

.nv-search-result-image {
  width: 60px;
  height: 45px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  background: #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nv-search-result-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nv-search-result-placeholder {
  color: #999999;
  font-size: 20px;
}

.nv-search-result-info {
  flex: 1;
  min-width: 0;
}

.nv-search-result-name {
  font-weight: 600;
  color: #000000;
  font-size: 14px;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nv-search-result-meta {
  font-size: 12px;
  color: #666666;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Search Footer */
.nv-search-footer {
  border-top: 1px solid #e0e0e0;
  padding: 8px;
}

.nv-search-view-all {
  width: 100%;
  padding: 10px 16px;
  background: transparent;
  border: none;
  color: #04285c;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  border-radius: 6px;
  text-align: left;
}

.nv-search-view-all:hover {
  background-color: #f5f5f5;
}

/* No Results */
.nv-search-no-results {
  padding: 32px 24px;
  text-align: center;
  color: #666666;
}

.nv-search-no-results svg {
  color: #cccccc;
  margin-bottom: 12px;
}

.nv-search-no-results p {
  font-weight: 600;
  color: #333333;
  margin: 8px 0 4px;
}

.nv-search-no-results span {
  font-size: 14px;
  color: #999999;
}

/* Mobile: Hide search bar on small screens */
@media (max-width: 991px) {
  .nv-navbar-search.desktop-only {
    display: none;
  }
}

/* ========================================
   Mobile Search
   ======================================== */

/* Mobile User Icon in Top Row */
.nv-navbar-user-mobile {
  display: none;
  margin-left: auto;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.85);
  padding: 8px 8px;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.nv-navbar-user-mobile:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

@media (max-width: 991px) {
  .nv-navbar-user-mobile.mobile-only {
    display: flex !important;
    align-items: center;
  }
  
  /* Ensure dropdown is positioned correctly on mobile */
  .nv-navbar-user-mobile.nv-dropdown {
    position: relative;
  }
}

.nv-profile-button-mobile {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.85);
  padding: 8px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s ease;
  white-space: nowrap;
  font-size: 14px;
  line-height: 1;
}

.nv-profile-button-mobile:hover {
  background: rgba(255, 255, 255, 0.1);
}

.nv-profile-button-mobile svg {
  flex-shrink: 0;
}

.nv-profile-button-mobile span {
  font-size: 14px;
}

/* Navbar Search Row (Second Row on Mobile) */
/* Mobile Quick Links Row (Second Row on Mobile) */
.nv-navbar-quick-links {
  display: none;
}

@media (max-width: 991px) {
  .nv-navbar-quick-links.mobile-only {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 0;
  }
}

.nv-quick-link {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  padding: 0 8px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.nv-quick-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.nv-quick-link.active {
  color: #ffffff;
  font-weight: 600;
}

.nv-quick-link-divider {
  color: rgba(255, 255, 255, 0.4);
  font-size: 12px;
}

/* Mobile Search Row (Third Row on Mobile) */
.nv-navbar-search-row {
  display: none;
}

@media (max-width: 991px) {
  .nv-navbar-search-row.mobile-only {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 6px 0 8px 0;
  }
}

/* Mobile Search Bar (Full-width clickable button) */
.nv-mobile-search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 90%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 10px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.nv-mobile-search-bar:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.nv-mobile-search-bar:active {
  transform: scale(0.98);
}

.nv-mobile-search-icon {
  color: rgba(255, 255, 255, 0.6);
  font-size: 16px;
  flex-shrink: 0;
}

.nv-mobile-search-placeholder {
  color: rgba(255, 255, 255, 0.5);
  font-size: 15px;
  flex: 1;
}

/* Old mobile search button - now hidden */
.nv-mobile-search-button {
  display: none;
}

.nv-mobile-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Mobile Search Overlay */
.mobile-search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #000000;
  z-index: 9999;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-search-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Mobile Search Header */
.mobile-search-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: #000000;
  position: sticky;
  top: 0;
  z-index: 10;
}

.mobile-search-title {
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mobile-search-title svg {
  color: #04285c;
}

.mobile-search-close {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 1.5rem;
  padding: 0.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.mobile-search-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Mobile Search Input */
.mobile-search-input-wrapper {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 0 16px;
  margin: 1rem;
  transition: all 0.3s ease;
}

.mobile-search-input-wrapper:focus-within {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.mobile-search-icon {
  color: rgba(255, 255, 255, 0.6);
  font-size: 16px;
  margin-right: 12px;
  flex-shrink: 0;
}

.mobile-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 16px;
  padding: 14px 0;
}

.mobile-search-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.mobile-search-clear {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  padding: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  border-radius: 50%;
  transition: all 0.2s ease;
  margin-left: 4px;
}

.mobile-search-clear:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

/* Mobile Search Results */
.mobile-search-results {
  flex: 1;
  padding: 0 1rem 1rem;
}

.mobile-search-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  gap: 1rem;
}

.mobile-search-loading p {
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

/* Mobile Search Result Item */
.mobile-search-results-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mobile-search-result-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease;
  width: 100%;
}

.mobile-search-result-item:active {
  background: rgba(255, 255, 255, 0.05);
}

.mobile-search-result-image {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  background: #1a1a1a;
}

.mobile-search-result-image-placeholder {
  width: 80px;
  height: 60px;
  border-radius: 8px;
  background: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
}

.mobile-search-result-content {
  flex: 1;
  min-width: 0;
}

.mobile-search-result-name {
  color: #ffffff;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.3;
}

.mobile-search-result-meta {
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Mobile Search View All */
.mobile-search-view-all {
  width: 100%;
  background: #04285c;
  color: #ffffff;
  border: none;
  padding: 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 1rem;
  transition: all 0.2s ease;
}

.mobile-search-view-all:active {
  background: #052f6e;
  transform: scale(0.98);
}

/* Mobile Search Empty States */
.mobile-search-no-results,
.mobile-search-empty,
.mobile-search-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  text-align: center;
}

.mobile-search-no-results svg,
.mobile-search-empty svg {
  color: rgba(255, 255, 255, 0.2);
  margin-bottom: 1rem;
}

.mobile-search-no-results p,
.mobile-search-empty h3 {
  color: #ffffff;
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.mobile-search-no-results span,
.mobile-search-empty p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  margin: 0;
}

.mobile-search-hint p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  margin: 0;
}

/* ========================================
   Search Results Page
   ======================================== */

.search-results-page {
  min-height: calc(100vh - 200px);
  padding: 2rem 0;
}

.search-results-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Search Header */
.search-results-header {
  margin-bottom: 2rem;
}

.search-results-title {
  color: #ffffff;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.search-results-title svg {
  color: #04285c;
}

/* Search Form */
.search-results-form {
  margin-bottom: 1rem;
}

.search-results-input-wrapper {
  display: flex;
  align-items: center;
  gap: 0;
  max-width: 600px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  padding: 0 16px;
  transition: all 0.3s ease;
}

.search-results-input-wrapper:focus-within {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.search-results-input-icon {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  margin-right: 10px;
  flex-shrink: 0;
}

.search-results-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 14px;
  padding: 10px 0;
}

.search-results-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.search-results-submit {
  background: #04285c;
  color: #ffffff;
  border: none;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-left: 8px;
}

.search-results-submit:hover {
  background: #052f6e;
  transform: translateY(-1px);
}

.search-results-submit:active {
  transform: translateY(0);
}

/* Results Count */
.search-results-count {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  margin: 0;
}

.search-results-count strong {
  color: #ffffff;
  font-weight: 600;
}

/* Loading State */
.search-results-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  gap: 1rem;
}

.search-results-loading p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
}

/* Error State */
.search-results-error {
  background: rgba(220, 53, 69, 0.1);
  border: 1px solid rgba(220, 53, 69, 0.3);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
}

.search-results-error p {
  color: #dc3545;
  margin: 0;
  font-weight: 500;
}

/* Empty State */
.search-results-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
}

.search-results-empty svg {
  color: rgba(255, 255, 255, 0.2);
  margin-bottom: 1.5rem;
}

.search-results-empty h2 {
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.search-results-empty p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1rem;
  margin: 0.25rem 0;
}

.search-results-empty strong {
  color: #ffffff;
}

.search-results-hint {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Search Highlighting */
.search-highlight {
  background-color: rgba(4, 40, 92, 0.3);
  color: #5eb3ff;
  padding: 2px 4px;
  border-radius: 3px;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
  .search-results-title {
    font-size: 1.5rem;
  }

  .search-results-input-wrapper {
    max-width: 100%;
  }

  .nv-grid-3 {
    grid-template-columns: 1fr;
  }
}


.nv-collapse { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  flex: 1; 
}

.nv-nav { 
  display: flex; 
  align-items: center; 
  gap: 8px; 
  list-style: none; 
  margin: 0; 
  padding: 0; 
}

.nv-nav-left { margin-left: 16px; }
.nv-nav-right { margin-left: auto; }

.nv-nav-item { position: relative; }

.nv-nav-link { 
  display: inline-block; 
  padding: 8px 12px; 
  color: rgba(255, 255, 255, 0.85); /* Light gray text */
  text-decoration: none; 
  border-radius: 4px; 
  transition: all 0.2s ease;
}

.nv-nav-link:hover { 
  background: rgba(255, 255, 255, 0.1); /* Subtle white background */
  color: #ffffff; /* Pure white on hover */
}

.nv-nav-link.active { 
  color: #0d6efd; /* Blue for active */
  background: rgba(13, 110, 253, 0.1); /* Subtle blue background */
}

.nv-navbar-text { display: inline-flex; align-items: center; padding: 8px 12px; }
.nv-spinner { width: 1rem; height: 1rem; border: 2px solid #adb5bd; border-top-color: transparent; border-radius: 50%; display: inline-block; animation: nv-spin .75s linear infinite; }
@keyframes nv-spin { to { transform: rotate(360deg); } }
.nv-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.nv-dropdown { position: relative; }

.nv-dropdown-toggle { 
  background: none; 
  border: none; 
  cursor: pointer; 
  padding: 8px 12px; 
  color: rgba(255, 255, 255, 0.85); /* Light gray text */
  border-radius: 4px; 
  transition: all 0.2s ease;
}

.nv-dropdown-toggle:hover { 
  background: rgba(255, 255, 255, 0.1); /* Subtle white background */
  color: #ffffff; /* Pure white on hover */
}

.nv-caret { 
  margin-left: .35em; 
  border-top: .3em solid; 
  border-right: .3em solid transparent; 
  border-left: .3em solid transparent; 
  display: inline-block; 
  vertical-align: .255em; 
}

.nv-dropdown-menu { 
  position: absolute; 
  right: 0; 
  top: calc(100% + 6px); 
  min-width: 200px; 
  background: #111111; /* Dark card background */
  border: 1px solid rgba(255, 255, 255, 0.1); /* Subtle white border */
  border-radius: 6px; 
  padding: 6px; 
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6); /* Darker shadow */
  display: none; 
}

.nv-dropdown-menu.is-open { display: block; }

.nv-dropdown-item { 
  display: block; 
  width: 100%; 
  text-align: left; 
  background: none; 
  border: none; 
  padding: 8px 10px; 
  color: rgba(255, 255, 255, 0.85); /* Light gray text */
  text-decoration: none; 
  cursor: pointer; 
  border-radius: 4px; 
  transition: all 0.2s ease;
}

.nv-dropdown-item:hover { 
  background: rgba(13, 110, 253, 0.15); /* Subtle blue background */
  color: #0d6efd; /* Blue text on hover */
}

.nv-divider { 
  height: 1px; 
  background: rgba(255, 255, 255, 0.1); /* Subtle white divider */
  margin: 6px 4px; 
}

/* === Mobile Navbar (Phase 1 Fixes) === */
@media (max-width: 991px) {
  /* Move burger to left side */
  .nv-burger { 
    display: inline-flex; 
    margin-left: 0;
    margin-right: 12px;
    order: -1;  /* Place before brand */
  }
  
  .nv-brand {
    margin-right: auto;  /* Push user menu to right */
  }
  
  /* Show mobile-only elements */
  .mobile-only { 
    display: flex !important; 
  }
  
  .mobile-only-nav { 
    display: block; 
  }
  
  /* Mobile nav divider */
  .nv-nav-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 12px 20px;
    list-style: none;
  }
  
  /* Logout button in mobile menu */
  .nv-logout-button {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
  }
  
  /* Hide desktop user/login in collapsible menu - we show it in top row on mobile */
  .nv-collapse .nv-nav-right {
    display: none;
  }
  
  /* Mobile menu overlay with solid background and proper layering */
  .nv-collapse { 
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
    padding: 12px 0;
    /* Dark background for mobile menu */
    background-color: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(12px);
    /* Position absolutely below navbar */
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    /* Proper z-index layering (below navbar, above content) */
    z-index: 90;
    /* Dark border separator */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    /* Animation support */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out, padding 0.3s ease-in-out;
    padding-top: 0;
    padding-bottom: 0;
  }
  
  .nv-collapse.is-open { 
    display: flex;
    max-height: 80vh;
    overflow-y: auto;
    padding-top: 12px;
    padding-bottom: 12px;
  }
  
  .nv-nav { 
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  
  .nv-nav-left { margin-left: 0; }
  .nv-nav-right { margin-left: 0; }
  
  /* FIX: Larger touch targets for mobile */
  .nv-nav-link, .nv-dropdown-toggle { 
    padding: 12px 12px;
    font-size: 18px;  /* Increased from 16px for better readability */
    font-weight: 500;  /* Slightly bolder for mobile */
    min-height: 44px;  /* Increased from 48px */
    display: flex;
    align-items: center;
  }
  
  /* FIX: Larger icons for mobile */
  .nv-nav-link svg,
  .nv-dropdown-toggle svg {
    width: 20px;  /* Increased from 24px */
    height: 20px;
  }
  
  /* FIX: Better mobile dropdown styling */
  .nv-dropdown-menu { 
    position: static;
    box-shadow: none;
    border: none;
    padding: 0;
    background: rgba(0, 0, 0, 0.02);
    margin: 4px 0;
  }
  
  .nv-dropdown-item { 
    margin: 0;
    padding: 16px 20px;  /* Increased from 14px */
    font-size: 18px;  /* Increased from 16px */
    font-weight: 500;  /* Match nav links */
    min-height: 52px;  /* Increased from 48px */
  }
  
  .nv-divider { margin: 0; }
}

/* PHASE 3: General mobile typography & spacing improvements */
@media (max-width: 768px) {
  /* Improve base font size for readability */
  body {
    font-size: 16px;  /* Prevent iOS auto-zoom */
    line-height: 1.6;
  }
  
  /* Better heading sizes on mobile */
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }
  h4 { font-size: 1.25rem; }
  
  /* Better link touch targets */
  a {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
  }
  
  /* Page container padding */
  .nv-page {
    padding: 0.5rem;
  }
}

@media (max-width: 501px) {
  /* Tighter spacing on very small screens */
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
}

/* --- Page container --- */
.nv-page { max-width: 1400px; margin: 0 auto; padding: 1rem; }

/* --- Hero (Home) --- */
.nv-hero { background: #f8f9fa; border-radius: .75rem; padding: 2rem; margin: 1rem 0 2rem; }
.nv-hero-inner { padding: 2rem 0; }
.nv-hero-title { font-size: 2.5rem; font-weight: 700; margin: 0 0 .5rem; }
.nv-hero-subtitle { font-size: 1.25rem; max-width: 640px; margin: 0 0 1rem; }

/* Buttons */
.nv-btn { display: inline-block; text-decoration: none; padding: .5rem 1rem; border-radius: .5rem; border: 1px solid transparent; cursor: pointer; }
.nv-btn-lg { padding: .75rem 1.25rem; font-size: 1.1rem; }
.nv-btn-primary { background: #0d6efd; color: #fff; border-color: #0d6efd; }
.nv-btn-primary:hover { background: #0b5ed7; border-color: #0a58ca; }
.nv-btn-outline { color: #0d6efd; background: #fff; border-color: #0d6efd; }
.nv-btn-outline:hover { background: rgba(13,110,253,0.08); }

/* Quick nav cards - Dark gradient theme */
.text-center { text-align: center; }
.nv-row { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1rem; margin-bottom: 1rem; }
.nv-col { grid-column: span 12; }
@media (min-width: 768px) { .nv-col { grid-column: span 4; } }
.nv-card { 
  border: 1px solid #374151; 
  border-radius: .5rem; 
  background: linear-gradient(145deg, #1f2937 0%, #111827 100%); 
  height: 100%; 
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}
.nv-card-body { 
  padding: 1rem 1rem 1.25rem; 
  background: linear-gradient(145deg, #1f2937 0%, #111827 100%);
}
.nv-card-body-center { text-align: center; } /* Center text in card body */
.nv-card-title { 
  margin: 0 0 .5rem; 
  color: #f9fafb;
  /* Limit to 2 lines with ellipsis */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
  max-height: calc(1.3em * 2); /* 2 lines */
}
.nv-card-text { margin: 0 0 .75rem; color: #e5e7eb; }

/* Recent list - Dark theme */
.nv-recent { margin-bottom: 2rem; }
.nv-list { list-style: none; padding: 0; margin: .75rem 0 0; width: 50%; min-width: 300px; }
.nv-list-item { display: flex; align-items: center; justify-content: space-between; border: 1px solid #374151; border-radius: .5rem; padding: .5rem .75rem; margin-bottom: .5rem; background: linear-gradient(145deg, #1f2937 0%, #111827 100%); }
.nv-list-link { color: #60a5fa; text-decoration: none; }
.nv-list-link:hover { text-decoration: underline; }
.nv-badge { display: inline-block; background: #4b5563; color: #f9fafb; border-radius: 999px; padding: .25rem .6rem; font-size: .85rem; }

/* Categories grid */
.nv-grid { display: grid; gap: 1rem; }
.nv-grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
@media (min-width:768px){ .nv-grid-3{ grid-template-columns: repeat(3, minmax(0,1fr)); } }
.nv-card-hover { transition: box-shadow .15s ease, transform .15s ease; }
.nv-card-hover:hover { box-shadow: 0 10px 24px rgba(0,0,0,.4); transform: translateY(-2px); border-color: #4b5563; }

.nv-card-media {
  width: 100%;
  height: 180px;
  background: #374151;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.nv-card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;   /* show full image without cropping */
  object-position: center; /* center it horizontally/vertically */
  display: block;
  background-color: #1f2937; /* dark background for images */
}
.nv-card-qty-pill {
  position: absolute;
  top: 8px;
  right: 8px;
  background-color: #0066cc;
  color: white;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
}
.nv-card-link { text-decoration: none; color: inherit; display: block; }
.nv-empty { grid-column: 1 / -1; padding: 1rem; color: #9ca3af; }

/* Category page header */
.nv-breadcrumb { margin-bottom: .75rem; }
.nv-link { color: #60a5fa; text-decoration: none; }
.nv-link:hover { text-decoration: underline; }
.nv-h1 { margin-top: 0; margin-bottom: .5rem; }
.nv-card-sub { color: #9ca3af; font-size: .9rem; margin-top: .25rem; }

.nv-category-header { 
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.nv-category-hero { width: 100%; max-height: 220px; object-fit: cover; border-radius: .5rem; display: block; margin-bottom: .5rem; }

/* Scale filter pills - Dark theme */
.scale-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin: 1rem 0;
  padding: 0.75rem 0;
  border-bottom: 1px solid #374151;
}

.scale-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 50px;
  height: 32px;
  padding: 0.25rem 0.5rem;
  background: #374151;
  color: #e5e7eb;
  border: 1px solid #4b5563;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.scale-pill:hover {
  background: #4b5563;
  border-color: #6b7280;
  transform: translateY(-1px);
}

.scale-pill.active {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}

.scale-pill.active:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
}

/* Sideshow-like breadcrumbs (lightweight styling for review pages) */
.breadcrumbs {
  text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  color: #101820;
  font-family: Montserrat, sans-serif;
  box-sizing: border-box;
  list-style: none;
  display: block;
  text-transform: capitalize;
  font-size: 1.15rem;
  font-weight: 200;
  line-height: 2.2rem;
  margin: 1.5rem auto;
  max-width: 1024px;
  padding: 0 1rem;
}
.breadcrumbs li { display: inline; }
.breadcrumbs li + li::before { content: '\00a0•\00a0'; color: #666; }
.breadcrumbs a { color: inherit; text-decoration: none; font-weight: 500; }
.breadcrumbs a:hover { text-decoration: underline; }
.review-detail__back { margin-bottom: .5rem; }

/* Taller cards for train listings - Dark theme */
.nv-card-tall { min-height: 320px; }
.nv-card-tall .nv-card-media { height: 240px; }
.nv-card-img-placeholder {
  width: 100%; height: 100%; background: #374151; display: flex; align-items: center; justify-content: center;
  color: #6b7280; font-size: .9rem; border: 2px dashed #4b5563;
}

/* Mobile: Reduce card height for train listings */
@media (max-width: 767px) {
  .nv-card-tall { 
    min-height: auto !important;
    height: auto !important;
  }
  .nv-card-tall .nv-card-media { height: 140px; }
  .nv-card-tall .nv-card-body { padding: 0.75rem; }
}

/* Review gallery thumbnails (small row) */
.review-thumbs-row { display: flex; gap: 6px; flex-wrap: nowrap; align-items: center; margin: 8px 0 12px; }
.review-thumb { display: inline-flex; align-items: center; justify-content: center; padding: 1px; background: transparent; border: none; cursor: pointer; }
.review-thumb img { width: 80px; height: 60px; object-fit: cover; display: block; border-radius: 4px; }
.review-thumb .review-card__img--placeholder { width: 80px; height: 60px; border-radius: 4px; }

/* Fullscreen modal thumbs styling (match TrainDetail) */
.swiper-modal-overlay .swiper-thumbs { height: 80px; box-sizing: border-box; padding: 8px 0; width: 90%; max-width: 1000px; }
.swiper-modal-overlay .swiper-thumbs .swiper-slide { width: 80px; height: 100%; opacity: .6; transition: opacity .3s ease; cursor: pointer; overflow: hidden; padding: 1px; box-sizing: border-box; }
.swiper-modal-overlay .swiper-thumbs .swiper-slide-thumb-active { opacity: 1; border: 2px solid #fff; }
.swiper-modal-overlay .swiper-thumbs .swiper-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Train Detail (page layout) */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600;900&display=swap');

.train-detail-component { font-family: sans-serif; font-weight: 500; max-width: 1400px; margin: 0 auto; padding: 1.5rem 1rem; }
.train-detail-component h1,
.train-detail-component h2,
.train-detail-component h3,
.train-detail-component h4 { font-family: 'Montserrat', sans-serif; font-weight: 900; color: #ffffff; }

.train-detail-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 992px) { .train-detail-grid { grid-template-columns: 58fr 42fr; gap: 2rem; } }

/* Desktop gallery grid (outside modal) */
.mobile-gallery-swiper { display: none; }
.desktop-gallery-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 15px; }
.thumbnail-item.desktop-item { position: relative; width: 100%; padding-bottom: 100%; overflow: hidden; cursor: pointer; border: 1px solid #ddd; background-color: #f0f0f0; transition: transform .2s ease-in-out; }
.thumbnail-item.desktop-item:hover { transform: scale(1.03); }
.thumbnail-item.desktop-item .gallery-thumbnail { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.desktop-view-more-hint { grid-column: 1 / -1; text-align: center; padding: 10px; font-size: .9rem; color: #ffffff; cursor: pointer; margin-top: -5px; }
.desktop-view-more-hint:hover { color: #5eb3ff; }
.no-images-message { width: 100%; text-align: center; padding: 20px; color: #ffffff; }
.desktop-gallery-grid .no-images-message { grid-column: 1 / -1; }

/* Mobile gallery strip - Sideshow-inspired design */
@media (max-width: 991.98px) {
  /* Prevent horizontal scroll on entire page */
  body {
    overflow-x: hidden;
    max-width: 100vw;
  }
  
  /* Ensure all images respect mobile viewport */
  img {
    max-width: 100%;
    height: auto;
  }
  
  .desktop-gallery-grid { display: none; }
  
  /* TRAIN DETAIL: Mobile-specific container constraints */
  .train-detail-component {
    max-width: 100vw;
    overflow-x: hidden;
    padding: 1rem 0.75rem;
    box-sizing: border-box;
  }
  
  .train-detail-grid {
    max-width: 100%;
    overflow-x: hidden;
  }
  
  .gallery-column,
  .info-column {
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  
  /* Ensure all child elements respect viewport */
  .info-column > * {
    max-width: 100%;
    box-sizing: border-box;
  }
  
  /* TRAIN DETAIL: Mobile gallery horizontal scrolling */
  .mobile-gallery-swiper { 
    display: block; 
    width: 100%; 
    max-width: 100vw;
    height: 276px;  /* Square images like Sideshow */
    margin: 0 0 1.5rem;  /* Space below gallery */
    position: relative; 
    overflow: visible;  /* Allow smooth scrolling */
    padding: 0;
    box-sizing: border-box;
  }
  
  .mobile-gallery-swiper .swiper-slide.mobile-slide { 
    height: 276px;  /* Square format */
    width: 276px !important;   /* Fixed width - force override Swiper's inline styles */
    cursor: pointer; 
    position: relative; 
    background: #f0f0f0; 
    overflow: hidden; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
  }
  
  .mobile-gallery-swiper .mobile-gallery-img { 
    display: block; 
    width: 100%; 
    height: 100%; 
    object-fit: cover;
  }
  
  /* Navigation buttons for mobile gallery - Sideshow style */
  .mobile-swiper-button-prev, .mobile-swiper-button-next {
    position: absolute; 
    top: 50%; 
    width: 44px; 
    height: 44px; 
    margin-top: -22px; 
    z-index: 10; 
    cursor: pointer;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: #333;  /* Dark gray text */
    background: rgba(255, 255, 255, 0.9);  /* White transparent like Sideshow */
    border: none;
    border-radius: 4px;  /* Subtle rounded corners */
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    font-size: 32px;  /* Large chevron size */
    line-height: 1;
    padding: 0;
    outline: none;
  }
  
  .mobile-swiper-button-prev:hover,
  .mobile-swiper-button-next:hover {
    background: rgba(255, 255, 255, 1);  /* Fully opaque on hover */
    color: #000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: scale(1.05);
  }
  
  .mobile-swiper-button-prev:active,
  .mobile-swiper-button-next:active {
    transform: scale(0.95);
  }
  
  /* Focus state for accessibility */
  .mobile-swiper-button-prev:focus,
  .mobile-swiper-button-next:focus {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
  }
  
  /* Chevron icons */
  .mobile-swiper-button-prev span,
  .mobile-swiper-button-next span {
    display: block;
    line-height: 1;
    font-weight: 300;  /* Thinner chevrons */
  }
  
  /* Remove default Swiper icons */
  .mobile-swiper-button-prev::after, 
  .mobile-swiper-button-next::after { 
    content: '';  /* Remove default content */
  }
  
  .mobile-swiper-button-prev { left: 10px; } 
  .mobile-swiper-button-next { right: 10px; }
  
  .mobile-gallery-swiper .no-images-message { 
    position: absolute; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%); 
    z-index: 5; 
  }
}

/* Adjust for smaller mobile devices */
@media (max-width: 501px) {
  .mobile-gallery-swiper {
    height: 240px;  /* Smaller on small screens */
  }
  
  .mobile-gallery-swiper .swiper-slide.mobile-slide {
    width: 240px !important;  /* Force override Swiper's inline styles */
    height: 240px;
  }
  
  /* Adjust navigation buttons for smaller screens */
  .mobile-swiper-button-prev,
  .mobile-swiper-button-next {
    width: 36px;
    height: 36px;
    margin-top: -18px;
    font-size: 24px;  /* Smaller chevrons */
  }
}

/* Very small screens (iPhone SE) */
@media (max-width: 400px) {
  .mobile-gallery-swiper {
    height: 220px;
  }
  
  .mobile-gallery-swiper .swiper-slide.mobile-slide {
    width: 220px !important;  /* Force override Swiper's inline styles */
    height: 220px;
  }
}

/* “More photos” overlay on last desktop tile */
.more-photos-tag {
  position: absolute; bottom: 5px; right: 5px; background: rgba(0,0,0,.7); color: #fff;
  padding: 3px 8px; font-size: .7rem; font-weight: bold; border-radius: 3px; border: 1px solid rgba(255,255,255,.8); line-height: 1.2; text-align: center; pointer-events: none;
}

/* Right column (detail meta) */
.train-hero-section { margin-bottom: 1.5rem; }
.train-title { font-family: 'Montserrat', sans-serif; font-weight: 900; text-transform: uppercase; margin-bottom: .25rem; font-size: 1.75rem; color: #ffffff; }
.train-subtitle { font-family: sans-serif; font-weight: 500; color: #cccccc; font-size: 1rem; margin-bottom: 0; line-height: 1.6; }
.pdp-info-details { margin-top: 1.5rem; }

/* Product details sections - now using <details> for accordion */
.product-details-section { margin-bottom: 1.5rem; border-top: 1px solid #444444; padding-top: 1.5rem; }
.product-details-section:first-child { border-top: none; padding-top: 0; }
.product-details-section__title { 
  margin-bottom: 1rem; 
  font-family: 'Montserrat', sans-serif; 
  font-weight: 600; 
  text-transform: uppercase; 
  font-size: 1.1rem; 
  color: #ffffff;
}

/* Accordion-specific styling for details/summary */
details.product-details-section summary { 
  cursor: pointer; 
  list-style: none; 
  user-select: none;
  margin-bottom: 0;
  padding: 0.75rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color 0.2s ease;
}
details.product-details-section summary:hover { color: #4a9eff; }
details.product-details-section summary::-webkit-details-marker { display: none; }
details.product-details-section summary::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  color: #ffffff;
  transition: transform 0.2s ease;
}
details.product-details-section[open] summary::after {
  content: '−';
  transform: rotate(0deg);
}
details.product-details-section .product-details-section__content {
  padding-top: 0.5rem;
  animation: slideDown 0.2s ease-out;
}

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

.product-details-section__title .details-title { 
  font-family: 'Montserrat', sans-serif; 
  font-weight: 600; 
  text-transform: uppercase; 
  font-size: 1.1rem; 
  color: #ffffff; 
}
.product-details-section__content { font-family: sans-serif; font-weight: 500; font-size: .95rem; line-height: 1.6; color: #ffffff; }
.details-list dt { font-weight: 600; padding-right: 10px; margin-bottom: .5rem; width: 140px; float: left; clear: left; color: #aaaaaa; }
.details-list dd { margin-left: 160px; margin-bottom: .5rem; color: #ffffff; }

/* === Swiper Fullscreen Modal (React fix: horizontal thumbs + contained main) === */
.swiper-modal-overlay {
  position: fixed; inset: 0; z-index: 1050; background: rgba(0,0,0,.9);
  display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 20px; box-sizing: border-box;
}
.swiper-close-button {
  position: absolute; top: 20px; right: 30px; font-size: 3rem; color: #fff;
  background: none; border: none; cursor: pointer; z-index: 1060; line-height: 1;
}

/* Main viewer fills vertical space; images contained (no overflow) */
.swiper-modal-overlay .swiper-main { width: 100%; max-height: calc(100vh - 140px); margin-bottom: 10px; }
.swiper-modal-overlay .swiper-main .swiper-slide {
  text-align: center; background: #000; display: flex; justify-content: center; align-items: center; height: 100%;
}
.swiper-modal-overlay .swiper-main .swiper-slide img {
  display: block; height: 100%; max-height: calc(100vh - 140px); max-width: 100%; object-fit: contain; width: auto;
}

/* Horizontal thumbs strip */
.swiper-modal-overlay .swiper-thumbs {
  height: 100px; box-sizing: border-box; padding: 10px 0; width: 90%; max-width: 1000px; flex-shrink: 0; margin-bottom: 0;
}
.swiper-modal-overlay .swiper-thumbs .swiper-slide {
  width: 80px; height: 100%; opacity: .6; transition: opacity .3s ease; cursor: pointer; overflow: hidden; flex-shrink: 0; position: static; padding-bottom: 0; background: transparent;
}
.swiper-modal-overlay .swiper-thumbs .swiper-slide-thumb-active { opacity: 1; border: 2px solid #fff; }
.swiper-modal-overlay .swiper-thumbs .swiper-slide img { display: block; width: 100%; height: 100%; object-fit: cover; position: static; }

/* Thumbs breakpoints */
@media (max-width: 991.98px) {
  .swiper-modal-overlay .swiper-thumbs { height: 80px; }
  .swiper-modal-overlay .swiper-thumbs .swiper-slide { width: 60px; }
}
@media (max-width: 767.98px) {
  .swiper-modal-overlay .swiper-thumbs { height: 70px; }
  .swiper-modal-overlay .swiper-thumbs .swiper-slide { width: 50px; }
  .swiper-close-button { font-size: 2.5rem; top: 10px; right: 15px; }
}


/* Container space for sections */
.section { padding: clamp(1rem, 2vw, 1.5rem) 0; }



/* === Hero Dark Mode === */
.nv-hero {
  position: relative;
  min-height: auto; /* Fit content instead of viewport height */
  overflow: hidden;
  margin: 0 0 clamp(1rem, 3vw, 2rem);
  /* Radial gradient: black center to blue outer */
  background: radial-gradient(circle at top left, #04285c 15%, #000000 45%, transparent 45.1%),
              radial-gradient(circle at 100% 60%, #04285c 10%, #000000 45%, transparent 45.1%);
  padding: clamp(2rem, 4vw, 3rem) 0; /* Add vertical padding */
}

.nv-hero-inner {
  position: relative;
  z-index: 2;
  width: min(1200px, 92vw);
  margin: 0 auto;
  padding: 0 clamp(1rem, 2.5vw, 2rem);
  color: #fff;
  display: grid;
  grid-template-columns: 50% 50%; /* Equal 50/50 split */
  gap: 3rem;
  align-items: center;
}

.nv-hero-content {
  display: grid;
  gap: 1rem;
  max-width: 100%; /* Allow full use of 50% column */
}

/* Hero image with gradient opacity fade */
.nv-hero-image {
  position: relative;
  max-width: 100%; /* Use full available space */
  justify-self: start; /* Move to left side */
  overflow: visible; /* Prevent clipping */
}

.nv-hero-image img {
  width: 100%;
  max-width: 450px; /* Slightly smaller max width */
  height: auto;
  border-radius: 12px;
  /* Gradient mask for opacity fade (0% left → 100% right) - REVERSED */
  mask-image: linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,0.8) 50%, rgba(0,0,0,1) 100%);
  -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,0.8) 50%, rgba(0,0,0,1) 100%);
}

/* Hero title - reduced size */
.nv-hero-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem); /* Reduced from 2rem-4rem */
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 .5rem;
  text-shadow: 0 2px 4px rgba(0,0,0,.5);
}

/* Primary CTA + (optional) pills */
.nv-hero-ctas {
  display: grid;
  gap: .75rem;
  justify-items: start; /* overridden below for right-align */
}
.nv-hero--right .nv-hero-ctas { justify-items: end; }

.btn {
  display: inline-block;
  border: none;
  border-radius: 12px;
  padding: 1rem 1.4rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform .12s ease, background .2s ease, box-shadow .2s ease;
  will-change: transform;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: #0d6efd; color: #fff; box-shadow: 0 8px 18px rgba(13,110,253,.25); }
.btn-primary:hover { background: #0a58ca; }

/* Category pills (desktop only) */
.nv-hero-pills {
  display: grid;
  grid-auto-flow: column;
  gap: .5rem;
  margin-top: .25rem;
}
.pill {
  color: #fff;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;
  padding: .55rem .9rem;
  backdrop-filter: blur(4px);
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.pill:hover { background: rgba(255,255,255,.18); }

/* Mobile: single column layout */
@media (max-width: 768px) {
  .nv-hero {
    padding: clamp(1.5rem, 3vw, 2rem) 0; /* Reduced mobile padding */
  }
  
  .nv-hero-inner {
    grid-template-columns: 1fr; /* Single column */
    gap: 1.5rem;
    text-align: center;
    padding: 0 clamp(1rem, 2.5vw, 1.5rem);
  }
  
  .nv-hero-content {
    order: 1;
    max-width: 100%;
  }
  
  /* Hide hero image on mobile */
  .nv-hero-image {
    display: none;
  }
  
  .nv-hero-title {
    font-size: clamp(1.5rem, 5vw, 2rem); /* Smaller on mobile */
  }
  
  .nv-hero-ctas {
    justify-items: center;
  }
  
  /* Pills remain in 2-column grid on mobile */
  .nv-hero-pills {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-top: 0.5rem;
    width: 100%;
    max-width: 340px;
  }
  
  .pill {
    padding: 0.65rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* PHASE 2: Larger, more prominent buttons for mobile */
  .btn { 
    padding: 18px 36px;
    font-size: 18px;
    font-weight: 700;
    min-height: 56px;
    min-width: 200px;
    border-radius: 14px;
  }
  
  /* Even larger for primary CTA (Browse Collection) */
  .btn-lg,
  .btn-primary {
    padding: 20px 40px;  /* Extra prominent */
    font-size: 20px;  /* Larger text */
    min-height: 60px;  /* Larger touch target */
    font-weight: 800;  /* Bold for emphasis */
  }
  
  /* Full-width CTA layout on mobile */
  .nv-hero-ctas {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem; /* Increased gap for pills */
    width: 100%;
    max-width: 100%; /* Prevent overflow */
    padding: 0 1rem; /* Add horizontal padding to prevent clipping */
    box-sizing: border-box; /* Include padding in width calculation */
  }
  
  .nv-hero-ctas .btn {
    width: calc(100% - 32px); /* Full width minus margin (16px each side) */
    max-width: 340px; /* But not absurdly wide */
  }
}

/* Extra small screens - adjust button sizing */
@media (max-width: 501px) {
  .btn {
    min-width: auto;  /* Allow natural sizing */
    width: 100%;
    padding: 16px 28px;  /* Slightly smaller on very small screens */
  }
  
  .btn-lg,
  .btn-primary {
    padding: 18px 32px;
  }
  
  /* PHASE 3: Hero title optimization for very small screens */
  .nv-hero-title {
    font-size: 1.75rem;  /* Smaller on tiny screens to prevent wrapping */
    line-height: 1.2;
  }
  
  /* Pills in 2 rows (3 columns) on very small screens */
  .nv-hero-pills {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.375rem;
    max-width: 100%;
  }
  
  .pill {
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
  }
  
  /* PHASE 3: Tighter spacing on very small screens */
  .nv-hero-inner {
    padding: clamp(0.75rem, 2vw, 1.5rem);
    width: 100%; /* Full width on small screens */
    max-width: 100vw; /* Never exceed viewport */
    box-sizing: border-box; /* Include padding in width */
  }
}

/* === Feature “bands” === */
.band {
  /* Same gradient as hero: blue to black to blue */
  background: radial-gradient(circle at top left, #04285c 8%, #000000 25%, transparent 35.1%),
              radial-gradient(circle at 100% 60%, #04285c 10%, #000000 65%, transparent 65.1%);
  border-radius: .75rem;
  margin: 1rem 0;
}
.band-alt { 
  /* Alternate: reverse gradient for visual variety */
  background: linear-gradient(to right, #000000 0%, #04285c 50%, #000000 100%);
}
.grid-auto {
  display: grid;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  max-width: min(1200px, 92vw);
  margin: 0 auto;
  padding: clamp(2rem, 4vw, 3.5rem) clamp(1.5rem, 2vw, 2rem);
}
.band-text {
  display: grid;
  gap: .75rem;
}
.band-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  margin: 0;
  color: #ffffff; /* White text */
}
.band-body {
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  color: rgba(255, 255, 255, 0.8); /* Light gray text */
  margin-bottom: .5rem;
}
.btn-outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
}
.btn-outline:hover { 
  background: rgba(255, 255, 255, 0.1); 
  border-color: rgba(255, 255, 255, 0.5);
}
.band-media img {
  width: 100%;
  height: clamp(220px, 30vw, 360px);
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1); /* Subtle white border */
}

/* PHASE 3: Feature bands mobile optimization */
@media (max-width: 768px) {
  .grid-auto {
    padding: clamp(1.5rem, 3vw, 2rem) 1rem;
  }
  
  .band-title {
    font-size: 1.75rem;  /* Smaller but still prominent */
    margin-bottom: 0.75rem;
  }
  
  .band-body {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
  }
  
  .band-media img {
    height: clamp(180px, 50vw, 280px);  /* Proportional on mobile */
    border-radius: 8px;
  }
  
  /* Buttons in bands */
  .band-text .btn,
  .band-text .btn-outline {
    width: 100%;
    max-width: 280px;
    padding: 14px 24px;
    font-size: 16px;
  }
}

@media (max-width: 501px) {
  .band-title {
    font-size: 1.5rem;
  }
  
  .band-body {
    font-size: 0.95rem;
  }
}

/* === Feature Sections (Blog, Reviews) - Dark Mode === */
.feature-section {
  /* Pure black background for outer section */
  background: #000000;
  padding: clamp(1.5rem, 3vw, 2.5rem) 0;
  max-width: 100%;
  overflow: hidden;
  border-radius: .75rem;
  margin: 1rem 0;
}

.feature-alt {
  /* Alternate: reverse gradient for visual variety */
  background: #000000;
}

.feature-container {
  max-width: min(1400px, 96%);
  margin: 0 auto;
  /* Gradient moved here - blue to black to blue */
  background: radial-gradient(circle at top left, #04285c 15%, #000000 45%, transparent 45.1%),
              radial-gradient(circle at 100% 60%, #04285c 10%, #000000 45%, transparent 45.1%);
  border-radius: 16px;
  padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1rem, 2vw, 1.5rem);
  box-shadow: none; /* Remove shadow */
  border: 1px solid rgba(255, 255, 255, 0.05); /* Subtle white border */
}

.feature-alt .feature-container {
  /* Alternate: reverse gradient */
  background: radial-gradient(circle at top left, #04285c 15%, #000000 45%, transparent 45.1%),
              radial-gradient(circle at 100% 60%, #04285c 10%, #000000 45%, transparent 45.1%);
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-header {
  margin: 0 auto 2rem;
  padding: 0;
  text-align: center;
}

.feature-title {
  font-size: clamp(2.25rem, 4vw, 3rem);
  font-weight: 800;
  margin: 0;
  color: #ffffff; /* White text */
}

.feature-footer {
  text-align: center;
  padding-top: 1.5rem;
  margin-top: -1.5rem;
}

.feature-link {
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  font-weight: 600;
  color: #0d6efd;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.feature-link:hover {
  color: #4d94ff; /* Lighter blue on hover */
  text-decoration: underline;
}

.feature-swiper {
  width: 100%;
  margin: 0;
  padding: 0 0 3rem 0;
}

.feature-swiper .swiper-slide {
  width: 276px !important;
}

.feature-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #111111; /* Dark card background */
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1); /* Subtle white border */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.feature-alt .feature-card {
  background: #111111;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 255, 255, 0.2); /* Brighter border on hover */
}

/* Review Card Image Wrapper & Chugga Badge */
.review-card-image-wrapper {
  position: relative;
  width: 100%;
}

.review-chugga-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  z-index: 10;
  letter-spacing: 0.5px;
}

.feature-image {
  width: 100%;
  height: 276px;
  object-fit: cover;
  display: block;
}

.feature-image-placeholder {
  width: 100%;
  height: 276px;
  background: linear-gradient(135deg, #1a1a1a 0%, #222222 100%); /* Dark gradient */
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.4); /* Light gray text */
  font-size: 0.875rem;
}

.feature-card-title {
  padding: 1rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  min-height: 3.6em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #ffffff; /* White text */
}

.feature-loading,
.feature-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: rgba(255, 255, 255, 0.6); /* Light gray text */
  font-size: 1.125rem;
}

/* Feature Swiper Navigation Buttons - Dark Mode */
.feature-swiper .swiper-button-prev,
.feature-swiper .swiper-button-next {
  width: 44px;
  height: 44px;
  background: rgba(17, 17, 17, 0.95); /* Dark background */
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2); /* White border */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  transition: all 0.2s ease;
}

.feature-swiper .swiper-button-prev:hover,
.feature-swiper .swiper-button-next:hover {
  background: #1a1a1a;
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
  transform: scale(1.05);
}

.feature-swiper .swiper-button-prev:after,
.feature-swiper .swiper-button-next:after {
  content: '';
  display: none;
}

.feature-swiper .swiper-button-prev::before {
  content: '‹';
  font-size: 32px;
  font-weight: 300;
  color: #ffffff; /* White chevron */
  line-height: 1;
  display: block;
}

.feature-swiper .swiper-button-next::before {
  content: '›';
  font-size: 32px;
  font-weight: 300;
  color: #ffffff; /* White chevron */
  line-height: 1;
  display: block;
}

.feature-swiper .swiper-button-disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .feature-section {
    padding: clamp(2rem, 4vw, 3rem) 1rem;
  }

  .feature-container {
    padding: clamp(1.5rem, 3vw, 2rem) clamp(1rem, 2vw, 1.5rem);
    border-radius: 12px;
  }

  .feature-header {
    padding: 0;
    margin-bottom: 1.5rem;
  }

  .feature-title {
    font-size: 2rem;
  }

  .feature-swiper {
    padding: 0 0 2.5rem 0;
  }

  .feature-swiper .swiper-slide {
    width: 240px !important;
  }

  .feature-image {
    height: 240px;
  }

  .feature-image-placeholder {
    height: 240px;
  }

  .review-chugga-badge {
    font-size: 0.875rem;
    padding: 5px 10px;
    top: 10px;
    right: 10px;
  }

  .feature-card-title {
    font-size: 0.9375rem;
    padding: 0.875rem;
  }

  .feature-swiper .swiper-button-prev,
  .feature-swiper .swiper-button-next {
    width: 40px;
    height: 40px;
  }

  .feature-swiper .swiper-button-prev::before,
  .feature-swiper .swiper-button-next::before {
    font-size: 28px;
  }
}

@media (max-width: 501px) {
  .feature-swiper .swiper-slide {
    width: 220px !important;
  }

  .feature-image {
    height: 220px;
  }

  .feature-image-placeholder {
    height: 220px;
  }

  .review-chugga-badge {
    font-size: 0.8125rem;
    padding: 4px 9px;
    top: 8px;
    right: 8px;
  }
}

/* === Reveal Animations === */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.is-visible { opacity: 1; transform: none; transition: none; }
}

/* === Footer - Dark Mode === */
.site-footer { 
  background: #000000; /* Pure black to match body */
  color: #aaa; 
  padding: 2rem 0; 
  border-top: 1px solid rgba(255, 255, 255, 0.15); /* White top border separator */
}
.footer-wrap {
  max-width: min(1200px, 92vw);
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.site-footer h4, .site-footer h5 { color: #fff; margin: 0 0 .5rem; }
.site-footer a { color: #ddd; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  text-align: center;
  color: #888;
  border-top: 1px solid #222;
  margin-top: 1.5rem;
  padding-top: 1rem;
}

/* PHASE 3: Footer mobile optimization */
@media (max-width: 768px) {
  .site-footer {
    padding: 1.5rem 0;
  }
  
  .footer-wrap {
    grid-template-columns: 1fr;  /* Stack on mobile */
    gap: 2rem;
    padding: 0 1rem;
  }
  
  .site-footer h4,
  .site-footer h5 {
    font-size: 1.1rem;
  }
  
  .site-footer ul {
    padding-left: 0;
  }
  
  .site-footer li {
    margin-bottom: 0.5rem;
  }
  
  .site-footer a {
    font-size: 0.95rem;
    display: inline-block;
    padding: 0.25rem 0;
  }
}

@media (max-width: 501px) {
  .footer-bottom {
    font-size: 0.85rem;
    padding: 0.75rem 1rem;
  }
}

/* Make the page container let hero and bands breathe full-width while keeping inner max width */
.nv-page { padding: 0 0 2rem; }

/* === SOCIAL ICONS - Dark Mode === */
.social-icons {
  display: flex;
  gap: 1.25rem;
  margin-top: 1rem;
}
.social-link {
  color: #ffffff; /* White icons */
  transition: transform .2s ease, color .2s ease;
}
.social-link:hover {
  color: #0d6efd; /* Blue on hover */
  transform: scale(1.1);
}

/* Large social icons in band media section */
.band-social-icons {
  display: flex;
  align-items: center;
  justify-content: center;
}
.social-icons-large {
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: center;
}
.social-icons-large .social-link {
  color: #ffffff;
  transition: transform .3s ease, color .3s ease;
}
.social-icons-large .social-link:hover {
  color: #0d6efd;
  transform: scale(1.15);
}

/* === AFFILIATE SECTION - Modern Dark with Red Accent === */
.affiliate-section {
  background: #000000; /* Pure black */
  padding: clamp(3rem, 5vw, 5rem) 1rem;
  text-align: center;
  border-top: 2px solid #dc3545; /* Red top border */
  border-bottom: 2px solid #dc3545; /* Red bottom border */
  border-radius: .75rem;
  margin: 1rem 0;
  position: relative;
}

/* Optional: Add subtle red glow effect */
.affiliate-section::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid #dc3545;
  pointer-events: none;
  box-shadow: 
    inset 0 0 40px rgba(220, 53, 69, 0.1),
    0 0 40px rgba(220, 53, 69, 0.15);
}

.affiliate-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.affiliate-img {
  width: clamp(250px, 30vw, 350px);
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease;
}

.affiliate-img:hover {
  transform: scale(1.05);
}

.affiliate-text {
  max-width: 501px;
}

.affiliate-text h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
  color: #ffffff; /* White text */
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.affiliate-text p {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9); /* White text */
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.affiliate-text strong {
  color: #dc3545; /* Red for emphasis */
  font-weight: 700;
}

/* Special styling for affiliate button */
.affiliate-btn {
  background: #dc3545; /* Red button */
  color: #ffffff;
  border: none;
  padding: 16px 32px;
  font-size: 1.125rem;
  font-weight: 700;
  border-radius: 12px;
  box-shadow: 
    0 4px 16px rgba(220, 53, 69, 0.4),
    0 0 0 2px rgba(220, 53, 69, 0.2);
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.affiliate-btn:hover {
  background: #c82333;
  transform: translateY(-2px);
  box-shadow: 
    0 8px 24px rgba(220, 53, 69, 0.5),
    0 0 0 3px rgba(220, 53, 69, 0.3);
}

/* PHASE 3: Affiliate section mobile optimization */
@media (max-width: 768px) {
  .affiliate-section {
    padding: 2.5rem 1rem;
  }
  
  .affiliate-content {
    flex-direction: column;
    gap: 2rem;
  }
  
  .affiliate-img {
    width: clamp(200px, 60vw, 300px);
  }
  
  .affiliate-text {
    max-width: 100%;
    padding: 0 1rem;
  }
  
  .affiliate-text h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
  }
  
  .affiliate-text p {
    font-size: 1rem;
    margin-bottom: 1.25rem;
  }
  
  .affiliate-btn {
    width: 100%;
    max-width: 320px;
    padding: 14px 28px;
    font-size: 1rem;
  }
}

@media (max-width: 501px) {
  .affiliate-text h2 {
    font-size: 1.5rem;
  }
  
  .affiliate-text p {
    font-size: 0.95rem;
  }
}

/* = CONTINUOUS MARQUEE BANNER (38px) === */
.banner-ticker {
  position: fixed;
  top: 0; left: 0; width: 100%;
  height: 38px;
  background: #0d6efd;
  color: #fff;
  z-index: 1100;
  border-bottom: 1px solid rgba(255,255,255,0.2);

  display: flex;                 /* vertical centering */
  align-items: center;           /* ✅ centers text inside 38px */
  overflow: hidden;
}

/* The scrolling track: two identical sequences -> seamless loop */
.banner-track {
  display: flex;
  align-items: center;
  gap: 33vw;                     /* ✅ ~1/3 page gap between messages */
  min-width: max-content;        /* track width equals content width */
  will-change: transform;
  animation: marquee var(--banner-duration, 40s) linear infinite;
}

/* One message "chip" */
.banner-item {
  white-space: nowrap;
  font-weight: 600;
  font-size: 0.95rem;
}

/* Links inherit color + hover affordance */
.banner-link {
  color: #fff;
  text-decoration: none;
}
.banner-link:hover { text-decoration: underline; }

/* The marquee animation:
   because we render two identical sequences, -50% lands at the start again */
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Optional: pause on hover for accessibility */
@media (hover: hover) {
  .banner-ticker:hover .banner-track {
    animation-play-state: paused;
  }
}

/* PHASE 3: Banner ticker mobile optimization */
@media (max-width: 768px) {
  .banner-ticker {
    height: 36px;  /* Slightly smaller on mobile */
    font-size: 0.9rem;
  }
  
  .banner-item {
    font-size: 0.85rem;  /* Smaller text for mobile */
    font-weight: 500;
  }
}

@media (max-width: 501px) {
  .banner-ticker {
    height: 32px;  /* Even smaller on tiny screens */
  }
  
  .banner-item {
    font-size: 0.8rem;  /* Compact text */
  }
}

/* Keep the rest of the layout pushed down below the fixed banner */
/* Flexbox layout pushes footer to bottom when content is short */
.layout-with-banner { 
  margin-top: 38px; 
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 38px);
}

/* Layout for pages without banner - no top margin needed */
.layout-without-banner { 
  margin-top: 0; 
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Make main content area grow to push footer down */
.layout-with-banner > main,
.layout-without-banner > main {
  flex: 1;
  width: 100%;
}

/* # frontend/src/style.css (add/update these) */

/* Blog page container */
.blog-page.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 16px;
}

/* Responsive padding for narrower viewports */
@media (max-width: 1156px) {
  .blog-page.container {
    padding: 24px 24px;
  }
}

@media (max-width: 768px) {
  .blog-page.container {
    padding: 20px 16px;
  }
}

@media (max-width: 501px) {
  .blog-page.container {
    padding: 16px 12px;
  }
}

/* Section headings */
.section-title {
  margin: 12px 0 16px;
  font-size: 1.5rem;
  font-weight: 700;
}

/* Stack list (vertical) with spacing */
.blog-list--stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

/* Horizontal card layout */
.blog-card {
  background: var(--nv-card-bg, #f3f1f1);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

/* Sticky posts get blue border */
.blog-card.is-sticky {
  border: 1px solid #007bff;
}

.blog-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.16);
  box-shadow: 0 6px 24px rgba(0,0,0,0.25);
}

.blog-card.is-sticky:hover {
  border-color: #0056b3; /* Darker blue on hover */
}

.blog-card__link {
  display: grid;
  grid-template-columns: 320px 1fr; /* media left (fixed width) + text right */
  gap: 16px;
  align-items: stretch;
  text-decoration: none;
  color: inherit;
}

/* Responsive: stack vertically on mobile (image top, text bottom) */
@media (max-width: 768px) {
  .blog-card__link {
    grid-template-columns: 1fr; /* Single column */
    gap: 0; /* Remove gap, handled by padding */
  }
}

/* Media (left on desktop, top on mobile) */
.blog-card__media {
  position: relative;
  min-height: 200px; /* ensures a nice tile even if image is small */
  background: rgba(247, 245, 245, 0.04);
  overflow: hidden;
}

@media (max-width: 768px) {
  .blog-card__media {
    min-height: 0;
    height: 200px; /* Fixed height for mobile cards */
  }
}

.blog-card__img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;   /* fills the media area correctly */
  object-position: center;
}

.blog-card__img.placeholder {
  background: 
    radial-gradient(ellipse at center, rgba(255,255,255,0.06), rgba(255,255,255,0) 60%),
    linear-gradient(135deg, #2b3240, #1e2430);
}

/* Text (right on desktop, bottom on mobile) */
.blog-card__body {
  padding: 16px 16px 16px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 768px) {
  .blog-card__body {
    padding: 16px; /* Even padding all around on mobile */
    justify-content: flex-start;
  }
}

.blog-card__badge {
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 4px 8px;
  border-radius: 999px;
  background: #ffc107;
  color: #111;
}

.blog-card__title {
  margin: 0 0 6px 0;
  font-size: 1.25rem;
  line-height: 1.25;
  font-weight: 800;
  color: #000000; /* Black text */
}

@media (max-width: 768px) {
  .blog-card__title {
    font-size: 1.125rem; /* Slightly smaller on mobile */
    margin: 0 0 8px 0;
  }
}

.blog-card__meta {
  margin: 0 0 8px 0;
  font-size: 0.9rem;
  opacity: 0.7;
  color: #000000; /* Black text */
}

@media (max-width: 768px) {
  .blog-card__meta {
    margin: 0; /* No bottom margin on mobile (no excerpt below) */
    font-size: 0.875rem;
  }
}

.blog-card__excerpt {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  opacity: 0.9;
  color: #000000; /* Black text */
}

/* Hide excerpt on mobile */
@media (max-width: 768px) {
  .blog-card__excerpt {
    display: none;
  }
}

/* Back to top button */
.back-to-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 1.2rem;
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
  z-index: 100;
}
.back-to-top:hover { transform: translateY(-2px); }

/* Load More button */
.load-more-container {
  display: flex;
  justify-content: center;
  margin: 32px 0;
  padding: 16px 0;
}

.btn-load-more {
  padding: 12px 32px !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  color: #fff !important;
  background: linear-gradient(135deg, #667eea 0%, #1004b4 100%) !important;
  border: 2px solid #FFFFFF !important;
  border-radius: 8px !important;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4) !important;
}

.btn-load-more:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.5) !important;
}

.btn-load-more:active {
  transform: translateY(0) !important;
}

.btn-load-more:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

/* Mobile: Prevent full width and maintain button styling */
@media (max-width: 768px) {
  .load-more-container {
    margin: 24px 0;
    padding: 12px 0;
  }

  .btn-load-more {
    width: auto !important;
    max-width: 280px !important;
    padding: 10px 28px !important;
    font-size: 0.95rem !important;
  }
}

/* Loading sentinel spacer */
.io-sentinel { height: 1px; }
.loading { padding: 12px; text-align: center; opacity: .8; }

/* Reviews list layout */
.reviews-page.container { max-width: 1100px; margin: 0 auto; padding: 24px 16px; }

/* Responsive padding for reviews page */
@media (max-width: 1156px) {
  .reviews-page.container {
    padding: 24px 24px;
  }
}

@media (max-width: 768px) {
  .reviews-page.container {
    padding: 20px 16px;
  }
}

@media (max-width: 501px) {
  .reviews-page.container {
    padding: 16px 12px;
  }
}

.review-list--stack { display: grid; gap: 16px; }

.review-card {
  background: var(--nv-card-bg, #f3f1f1);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 12px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.review-card:hover { transform: translateY(-2px); border-color: rgba(0,0,0,0.12); box-shadow: 0 6px 24px rgba(0,0,0,.08); }

.review-card__link {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 16px;
  text-decoration: none;
  color: inherit;
}
@media (max-width: 720px) { .review-card__link { grid-template-columns: 1fr; } }

.review-card__media { min-height: 220px; background: #222831; overflow: hidden; }
.review-card__img { width: 100%; height: 100%; object-fit: cover; display:block; }
.review-card__img--placeholder { background: linear-gradient(135deg,#2b3240,#1e2430); height: 100%; }

.review-card__body { color:#222; padding: 16px 16px 16px 0; }
.review-card__title { color:#111; margin:0 0 6px 0; font-size:1.25rem; font-weight:800; }
.review-card__meta { color:#556; margin:0 0 8px 0; font-size:.9rem; }
.review-card__excerpt { color:#444; margin:0; }

/* Chuggas (rating) */
.chuggas {
  display:flex;
  align-items:center;
  gap:12px;
  margin-top:10px;
  width:100%;
}
/* Make chuggas container fill available width and space icons evenly */
.chuggas { justify-content: space-between; }
.chuggas .chug-row { flex: 1 1 auto; display:flex; justify-content: space-between; align-items:center; }
.chug-img { display:block; max-width:90px; max-height:90px; width:auto; height:auto; opacity:.25; transition: opacity .18s ease, transform .18s ease; }
.chug-img.on { opacity:1; transform: translateY(-6px); }
.chuggas-label { font-weight:700; color:#cdd6de; margin-left: 8px; white-space:nowrap; }
.chuggas--lg .chug-img { max-width:90px; max-height:90px; }

/* Ensure chug-row doesn't overflow on small screens; allow equal spacing with wrapping fallback */
.chuggas .chug-row { gap: 8px; }
@media (max-width: 501px) {
  .chuggas .chug-row { flex-wrap: wrap; justify-content: center; gap:6px; }
  .chug-img { max-width:56px; max-height:56px; }
}

/* Blog detail */
.blog-detail.container { 
  max-width: 900px; 
  margin: 0 auto; 
  padding: 24px 16px; 
  background: #000000; /* Black background for dark mode */
  color: #ffffff; /* White text */
}

.blog-detail-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  margin: 0 0 1rem;
  color: #ffffff; /* White heading */
}

.blog-detail-header .hero-img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 12px 0 24px;
}

.blog-detail-body {
  font-size: 1.0625rem;
  line-height: 1.7;
  margin: 24px 0;
  color: #ffffff; /* White text for body */
}

/* Override CKEditor black text to white for dark mode */
.blog-detail-body * {
  color: #ffffff !important; /* Force all text to white */
}

/* Override any inline black color from CKEditor */
.blog-detail-body p,
.blog-detail-body span,
.blog-detail-body div,
.blog-detail-body h1,
.blog-detail-body h2,
.blog-detail-body h3,
.blog-detail-body h4,
.blog-detail-body h5,
.blog-detail-body h6,
.blog-detail-body li,
.blog-detail-body td,
.blog-detail-body th {
  color: #ffffff !important;
}

/* Style links in blog content */
.blog-detail-body a {
  color: #5eb3ff !important; /* Light blue for links */
  text-decoration: underline;
}

.blog-detail-body a:hover {
  color: #8fcdff !important; /* Lighter blue on hover */
}

.blog-detail-gallery {
  margin-top: 32px;
}

.blog-detail-gallery h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: #ffffff; /* White gallery heading */
}

/* Override TrainDetail grid styles for blog gallery */
.blog-detail-gallery .desktop-gallery-grid {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}

.blog-detail-gallery .thumbnail-item.desktop-item {
  padding-bottom: 75%; /* 4:3 aspect ratio instead of square */
}

.blog-detail-gallery .gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}

.blog-detail-gallery figure {
  margin: 0;
}

.blog-detail-gallery img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.blog-detail-gallery figcaption {
  margin-top: 8px;
  font-size: 0.875rem;
  color: #666;
  text-align: center;
}

/* Responsive padding for blog detail */
@media (max-width: 1156px) {
  .blog-detail.container {
    padding: 24px 24px;
  }
}

@media (max-width: 768px) {
  .blog-detail.container {
    padding: 20px 16px;
  }
  
  .blog-detail-body {
    font-size: 1rem;
  }
}

@media (max-width: 501px) {
  .blog-detail.container {
    padding: 16px 12px;
  }
  
  .blog-detail-gallery .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* Review detail */
.review-detail.container { max-width: 900px; margin: 0 auto; padding: 24px 16px; }

/* Responsive padding for review detail */
@media (max-width: 1156px) {
  .review-detail.container {
    padding: 24px 24px;
  }
}

@media (max-width: 768px) {
  .review-detail.container {
    padding: 20px 16px;
  }
}

@media (max-width: 501px) {
  .review-detail.container {
    padding: 16px 12px;
  }
}
.review-detail__meta { color:#9aa4af; }
.review-detail__hero { width:100%; height:auto; border-radius: 10px; margin: 12px 0 0; }
.review-detail__summary { margin-top: 20px; }
.review-detail__proscons { display:grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top:16px; }
@media (max-width: 720px) { .review-detail__proscons { grid-template-columns: 1fr; } }

/* Review detail body - white text for dark mode */
.review-detail__body {
  font-size: 1.0625rem;
  line-height: 1.7;
  margin: 24px 0;
  color: #ffffff; /* White text for body */
}

/* Override CKEditor black text to white for dark mode */
.review-detail__body * {
  color: #ffffff !important; /* Force all text to white */
}

/* Override any inline black color from CKEditor */
.review-detail__body p,
.review-detail__body span,
.review-detail__body div,
.review-detail__body h1,
.review-detail__body h2,
.review-detail__body h3,
.review-detail__body h4,
.review-detail__body h5,
.review-detail__body h6,
.review-detail__body li,
.review-detail__body td,
.review-detail__body th {
  color: #ffffff !important;
}

/* Style links in review content */
.review-detail__body a {
  color: #5eb3ff !important; /* Light blue for links */
  text-decoration: underline;
}

.review-detail__body a:hover {
  color: #8fcdff !important; /* Lighter blue on hover */
}

.review-detail__gallery .gallery-grid { display:grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap:12px; margin-top:10px; }
.review-detail__rating { margin: 24px 0 0; text-align: center; }
.review-detail__rating .verdict { margin-top: 8px; color:#ffffff; font-weight:600; }

/* Align the rating header and inline numeric label */
.review-detail__rating .rating-header { display:flex; align-items:center; justify-content:center; gap:12px; }
.chuggas-inline-label { font-weight:800; color:red; font-size:1.05rem; margin-left: 12px; }


/* ============================================
   FILTER MODAL SYSTEM
   ============================================ */

/* Filter Toggle Button */
.filter-toggle-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background-color: #04285c;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.filter-toggle-btn:hover {
  background-color: #03204a;
}

.filter-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background-color: #dc3545;
  color: #ffffff;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

/* Filter Modal Overlay */
.filter-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
  overflow-y: auto;
}

/* Filter Modal Container */
.filter-modal {
  background-color: #ffffff;
  border-radius: 12px;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Filter Modal Header */
.filter-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 2px solid #e0e0e0;
  flex-shrink: 0;
}

.filter-modal-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #000000;
}

.filter-modal-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666666;
  transition: color 0.2s ease;
  font-size: 24px;
  line-height: 1;
}

.filter-modal-close:hover {
  color: #000000;
}

/* Filter Modal Body */
.filter-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

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

.filter-section:last-child {
  margin-bottom: 0;
}

.filter-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e0e0e0;
}

.filter-section-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #000000;
}

.filter-section-actions {
  display: flex;
  gap: 8px;
}

.filter-action-btn {
  padding: 4px 10px;
  background-color: transparent;
  color: #04285c;
  border: 1px solid #04285c;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-action-btn:hover {
  background-color: #04285c;
  color: #ffffff;
}

/* Filter Options Grid */
.filter-options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
}

/* Filter Checkbox */
.filter-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 6px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.filter-checkbox:hover {
  background-color: #f5f5f5;
}

.filter-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #04285c;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border: 2px solid #999;
  border-radius: 3px;
  outline: none;
  transition: all 0.2s ease;
  background-color: #fff;
  flex-shrink: 0;
}

.filter-checkbox input[type="checkbox"]:hover {
  border-color: #04285c;
  background-color: #f0f0f0;
}

.filter-checkbox input[type="checkbox"]:checked {
  background-color: #04285c;
  border-color: #04285c;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 11-1.06-1.06l7.25-7.25a.75.75 0 011.06 0z'/%3E%3C/svg%3E");
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
}

.filter-checkbox input[type="checkbox"]:focus {
  box-shadow: 0 0 0 3px rgba(4, 40, 92, 0.1);
}

.filter-checkbox span {
  font-size: 14px;
  color: #333333;
  user-select: none;
}

/* Filter Modal Footer */
.filter-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-top: 2px solid #e0e0e0;
  flex-shrink: 0;
  gap: 12px;
}

.filter-clear-all-btn {
  padding: 10px 20px;
  background-color: transparent;
  color: #dc3545;
  border: 2px solid #dc3545;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-clear-all-btn:hover {
  background-color: #dc3545;
  color: #ffffff;
}

.filter-apply-btn {
  padding: 10px 24px;
  background-color: #04285c;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.filter-apply-btn:hover {
  background-color: #03204a;
}

/* Mobile Responsive */
@media (max-width: 640px) {
  .filter-modal {
    max-width: 100%;
    max-height: 95vh;
    border-radius: 8px;
  }
  
  .filter-modal-header {
    padding: 16px 20px;
  }
  
  .filter-modal-body {
    padding: 20px;
  }
  
  .filter-options {
    grid-template-columns: 1fr;
  }
  
  .filter-modal-footer {
    flex-direction: column-reverse;
    padding: 12px 20px;
  }
  
  .filter-clear-all-btn,
  .filter-apply-btn {
    width: 100%;
  }
}


