/* Custom styles */

.hide-videos .video-container {
  display: none;
}

.hide-grades .rating {
  display: none;
}

/* Must Play card highlighting - only when filter is active */
.highlight-mustplay .mod-card[data-mod-mustplay="true"] {
  border: 2px solid #eab308 !important;
  box-shadow: 0 0 8px rgba(234, 179, 8, 0.4) !important;
}

.cards-list.highlight-mustplay .mod-card[data-mod-mustplay="true"] {
  border: 1px solid #eab308 !important;
  box-shadow: 0 0 6px rgba(234, 179, 8, 0.3) !important;
}

h3, .platform-block {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rating {
  flex-shrink: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mod-card {
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out, background-color 0.2s ease-in-out;
}

.mod-card:hover {
  transform: scale(1.01);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  background-color: rgba(55, 65, 81, 0.5);
}

/* Override hover effects for must-play highlighted cards */
.highlight-mustplay .mod-card[data-mod-mustplay="true"]:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15), 0 0 12px rgba(234, 179, 8, 0.6) !important;
}

.cards-list.highlight-mustplay .mod-card[data-mod-mustplay="true"]:hover {
  box-shadow: 0 0 0 1px rgba(250, 204, 21, 0.4), 0 0 8px rgba(234, 179, 8, 0.4) !important;
}

.platform-full {
  display: flex;
  align-items: center;
  gap: 0.375rem; 
}

.platform-compact {
  display: none;
}

/* When cards are at smallest size (cards-4), show compact platform */
.cards-4 .platform-full {
  display: none;
}

.cards-4 .platform-compact {
  display: flex;
  align-items: center;
}

/* Title and rating layout control */
/* Default: show horizontal layout (side by side) */
.title-rating-horizontal {
  display: flex;
}

.title-rating-vertical {
  display: none;
}

/* For cards-4: hide horizontal layout and show vertical layout */
.cards-4 .title-rating-horizontal {
  display: none;
}

.cards-4 .title-rating-vertical {
  display: block;
}

/* Allow title to wrap in cards-4 layout */
.cards-4 .title-rating-vertical h3 {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

/* Fix for video alignment - make grid content use flexbox */
.grid-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.grid-content .video-container {
  margin-top: auto;
}

/* CLS FIXES - Reserve space for video thumbnails */
.video-container {
  aspect-ratio: 16/9;
  min-height: 120px;
  /* CLS FIX: Add background to prevent white flash while YouTube images load */
  background-color: #1f2937;
}

/* CLS FIXES - Consistent image dimensions */
.video-thumbnail img,
.gallery-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* CLS FIXES - Prevent layout shift on image load */
.gallery-thumbnail,
.video-thumbnail {
  width: 100%;
  aspect-ratio: 16/9;
  display: block;
  overflow: hidden;
  /* CLS FIX: Add subtle background to prevent white flash */
  background-color: #1f2937;
}

/* List view styles */
.cards-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cards-list .mod-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  height: 32px; /* Same height as search bar */
  min-height: 32px;
  background-color: rgba(31, 41, 55, 0.8);
  border: 1px solid rgba(55, 65, 81, 0.5);
  border-radius: 0.375rem;
  transition: all 0.2s ease-in-out;
}

.cards-list .mod-card:hover {
  background-color: rgba(55, 65, 81, 0.7);
  border-color: rgba(250, 204, 21, 0.6);
  transform: none; /* Override the scale transform */
  box-shadow: 0 0 0 1px rgba(250, 204, 21, 0.4);
}

/* Show/hide content based on layout */
.cards-list .list-content {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 1rem;
}

.cards-list .grid-content {
  display: none !important;
}

.cards-2 .list-content,
.cards-3 .list-content,
.cards-4 .list-content {
  display: none !important;
}

.cards-2 .grid-content,
.cards-3 .grid-content,
.cards-4 .grid-content {
  display: flex !important;
  flex-direction: column;
  height: 100%;
}

/* List content layout with progressive truncation */
.list-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.list-left h3 {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 0; /* Title has lowest shrink priority - shrinks last */
  min-width: 3rem; /* Reasonable minimum for title visibility */
}

.list-right {
  flex-shrink: 0;
}

/* Progressive truncation for list view elements */
.cards-list .platform-list-compact {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 2; /* Platform shrinks first */
  min-width: 1.5rem; /* Minimum width for about 3 characters */
}

/* Standalone element with progressive truncation */
.cards-list .list-left > span:not(.platform-list-compact) {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 1; /* Standalone shrinks after platform but before title */
  min-width: 1.5rem; /* Minimum width for about 3 characters */
}

/* Hide grades in list view when toggle is active */
.hide-grades .cards-list .list-right {
  display: none;
}

#filter-dropdown {
  transition: all 0.3s ease;
  transform: translateY(-5px);
  opacity: 0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  pointer-events: none;
  padding: 0.5rem 0.75rem;
  margin-top: 2px;
  min-height: fit-content;
}

#filter-dropdown:not(.hidden) {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

#filter-dropdown .flex.flex-wrap.items-center {
  gap: 0.25rem 1rem; 
  white-space: nowrap; 
}

#filter-dropdown .flex.items-center.gap-1 {
  gap: 0.375rem; 
  flex-shrink: 0; 
}

#filter-dropdown .flex.items-center.gap-2 {
  gap: 0.75rem;
  flex-shrink: 0;
}

#filter-dropdown input[type="radio"] + span {
  margin-left: 0.25rem; 
}

#filter-dropdown input[type="checkbox"] + span {
  margin-left: 0.25rem; 
}

#filter-dropdown span {
  font-size: 0.75rem !important;
  line-height: 1.2 !important;
}

#filter-dropdown label {
  font-size: 0.75rem !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.2 !important;
  cursor: pointer;
  white-space: nowrap; 
}

#filter-dropdown input[type="checkbox"],
#filter-dropdown input[type="radio"] {
  width: 12px !important;
  height: 12px !important;
  margin: 0 !important;
  flex-shrink: 0; 
}

#controls-container {
  position: relative;
  z-index: 40; /* Increased from z-index: 5 */
  background: transparent;
  transition: margin-bottom 0.2s ease;
}

#controls-container.filter-dropdown-open {
  /* CLS FIX: Slightly increased from 2.5rem to prevent minor layout jump */
  margin-bottom: 2.75rem;
}

#search-input {
  padding-right: 4rem !important;
}

#filter-text {
  user-select: none;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

#filter-text:hover {
  color: #f3f4f6;
}

#filter-text.dropdown-open #filter-arrow {
  transform: rotate(180deg);
}

#controls-container button,
#controls-container input {
  height: 32px !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

#search-container {
  position: relative;
}

.filter-checkbox,
.filter-radio {
  accent-color: #eab308;
  transform: scale(1);
}

.filter-checkbox:focus,
.filter-radio:focus {
  outline: 2px solid #eab308;
  outline-offset: 2px;
}

.flex.flex-wrap.items-start {
  align-items: flex-start;
}

#sort-button,
#cards-less,
#cards-more {
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#search-input {
  height: 32px;
}

.image-gallery {
  display: flex;
  gap: 0.5rem;
  margin: 1rem 0;
}

.gallery-thumbnail {
  flex: 1;
  aspect-ratio: 16/9;
  border-radius: 0.375rem;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 2px solid transparent;
}

.gallery-thumbnail:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border-color: #fbbf24;
}

.gallery-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 0.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, transform 0.2s ease;
  z-index: 1001;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-nav:active {
  transform: translateY(-50%) scale(0.95);
}

.lightbox-prev::before {
  content: '‹';
  color: white;
  font-size: 18px;
  font-weight: bold;
}

.lightbox-next::before {
  content: '›';
  color: white;
  font-size: 18px;
  font-weight: bold;
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, transform 0.2s ease;
  z-index: 1001;
}

.lightbox-close:hover {
  background: rgba(255, 0, 0, 0.7);
  transform: scale(1.1);
}

.lightbox-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 1rem;
  font-size: 14px;
  z-index: 1001;
}

/* CLS FIX: Ensure all images display consistently to prevent layout shifts */
img {
  display: block;
}

@media (max-width: 768px) {
  .image-gallery {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .gallery-thumbnail {
    aspect-ratio: 16/9;
  }
  
  .lightbox-content {
    max-width: 95vw;
    max-height: 95vh;
  }
  
  .lightbox-nav {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  
  .lightbox-prev {
    left: 10px;
  }
  
  .lightbox-next {
    right: 10px;
  }
  
  .lightbox-close {
    top: 10px;
    right: 10px;
    width: 35px;
    height: 35px;
    font-size: 18px;
  }

  #filter-dropdown {
    padding: 0.5rem 0.625rem; 
    left: 0.25rem;
    right: 0.25rem;
    z-index: 50 !important; /* Increased from z-10 */
    left: 0 !important;
    right: 0 !important;
    margin-left: 0;
    margin-right: 0;
    max-width: 100vw;
    box-sizing: border-box;
    overflow-x: auto; /* Allow horizontal scroll if needed */
    white-space: nowrap; /* Prevent text wrapping that could cause issues */
  }

  #filter-dropdown span {
    font-size: 0.6875rem !important; 
  }

  #filter-dropdown label {
    font-size: 0.6875rem !important; 
  }

  #filter-dropdown input[type="checkbox"],
  #filter-dropdown input[type="radio"] {
    width: 10px !important; 
    height: 10px !important;
    transform: scale(0.9); 
  }

  #filter-dropdown .flex.flex-wrap.items-center {
    gap: 0.125rem 0.5rem;
    flex-wrap: nowrap !important; /* Prevent wrapping on very small screens */
    overflow-x: auto;
    padding-bottom: 0.25rem; /* Add space for potential scrollbar */
    -webkit-overflow-scrolling: touch; /* iOS smooth scrolling */
    scrollbar-width: thin; /* Firefox - always show thin scrollbar */
  }

  #filter-dropdown .flex.items-center.gap-1 {
    gap: 0.1875rem;
  }

  #filter-dropdown .flex.items-center.gap-2 {
    gap: 0.375rem;
  }

  /* Force webkit scrollbar to always be visible */
  #filter-dropdown .flex.flex-wrap.items-center::-webkit-scrollbar {
    height: 8px;
    -webkit-appearance: none;
  }
  
  #filter-dropdown .flex.flex-wrap.items-center::-webkit-scrollbar-track {
    background: rgba(55, 65, 81, 0.5);
    border-radius: 4px;
  }
  
  #filter-dropdown .flex.flex-wrap.items-center::-webkit-scrollbar-thumb {
    background: #6b7280;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  #filter-dropdown .flex.flex-wrap.items-center::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
  }
  
  /* Adjust font sizes to fit better on mobile */
  #filter-dropdown span,
  #filter-dropdown label {
    font-size: 0.65rem !important;
    white-space: nowrap;
  }

  /* Mobile list view adjustments with progressive truncation */
  .cards-list .list-left {
    gap: 0.375rem;
  }

  /* Tighter spacing and more aggressive shrinking on mobile */
  .cards-list .platform-list-compact {
    flex-shrink: 3; /* Even more aggressive shrinking on mobile */
    min-width: 1rem; /* Smaller minimum on mobile */
  }

  .cards-list .list-left > span:not(.platform-list-compact) {
    flex-shrink: 2; /* More aggressive shrinking on mobile */
    min-width: 1rem; /* Smaller minimum on mobile */
  }

  .cards-list .list-left h3 {
    min-width: 2rem; /* Smaller minimum for title on mobile */
  }

  /* CLS FIXES - Mobile video container with background */
  .video-container {
    min-height: 100px;
    background-color: #1f2937;
  }
}

@media (max-width: 600px) {
  #filter-dropdown .flex.flex-wrap.items-center {
    gap: 0.125rem 0.75rem; 
  }

  #filter-dropdown .flex.items-center.gap-1 {
    gap: 0.25rem;
  }
}

@media (max-width: 320px) {
  #controls-container.filter-dropdown-open {
    margin-bottom: 1.75rem; 
  }
  
  #filter-dropdown {
    padding: 0.25rem 0.375rem; 
  }

  #filter-dropdown span {
    font-size: 0.5625rem !important; 
  }

  #filter-dropdown label {
    font-size: 0.5625rem !important; 
  }

  #filter-dropdown input[type="checkbox"],
  #filter-dropdown input[type="radio"] {
    width: 8px !important;
    height: 8px !important;
    transform: scale(0.8);
  }

  #filter-dropdown .flex.flex-wrap.items-center {
    gap: 0.0625rem 0.375rem; 
  }

  #filter-dropdown .flex.items-center.gap-1 {
    gap: 0.125rem;
  }

  #filter-dropdown .flex.items-center.gap-2 {
    gap: 0.25rem;
  }

  /* Extra small mobile list view with even more aggressive truncation */
  .cards-list .list-left {
    gap: 0.25rem;
  }

  .cards-list .platform-list-compact {
    flex-shrink: 4; /* Maximum shrinking on very small screens */
    min-width: 0.75rem; /* Very small minimum */
  }

  .cards-list .list-left > span:not(.platform-list-compact) {
    flex-shrink: 3; /* High shrinking priority */
    min-width: 0.75rem; /* Very small minimum */
  }

  .cards-list .list-left h3 {
    min-width: 1.5rem; /* Minimum title width on very small screens */
  }
}

.pros-section ul li {
  color: #4ade80; 
  font-size: 0.875rem; 
  line-height: 1.4;
  margin-bottom: 0.25rem;
}

.cons-section ul li {
  color: #f87171; 
  font-size: 0.875rem; 
  line-height: 1.4;
  margin-bottom: 0.25rem;
}

.pros-section ul li span:first-child,
.cons-section ul li span:first-child {
  font-weight: 700; 
  font-size: 1rem; 
}

@media (max-width: 768px) {
  .pros-section ul li,
  .cons-section ul li {
    font-size: 0.8rem;
  }
}

.video-thumbnail {
  position: relative;
  cursor: pointer;
  background: #000;
  border-radius: 0.375rem;
  overflow: hidden;
  aspect-ratio: 16/9;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
}

.video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.2s ease;
}

.video-thumbnail:hover img {
  opacity: 0.8;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 51px;
  height: 36px;
  background: rgba(255, 0, 0, 0.8);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.play-button:hover {
  background: rgba(255, 0, 0, 1);
  transform: translate(-50%, -50%) scale(1.1);
}

.play-button::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 15px solid white;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  margin-left: 3px;
}

.mod-page-video .video-thumbnail {
  aspect-ratio: 16/9;
  height: auto;
  min-height: 150px;
}

.mod-page-video .play-button {
  width: 51px;
  height: 36px;
}

.mod-page-video .play-button::after {
  border-left: 15px solid white;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  margin-left: 3px;
}

.mod-page-sections {
  display: grid;
  grid-template-columns: 1.6fr 1.4fr;
  gap: 1.25rem; 
}

.mod-page-sections section {
  padding: 1.25rem; 
}

.mod-page-sections h2 {
  font-size: 1.29rem; 
  font-weight: 600;
}

.mod-page-sections svg {
  width: 1.25rem; 
  height: 1.25rem;
}

.video-loaded iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 0.375rem;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
}

.arrow-pointer {
  width: 0;
  height: 0;
  border-left: 6px solid white;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  display: inline-block;
  margin-right: 6px;
}

.button-active {
  border-color: white;
  box-shadow: 0 0 4px rgba(255, 255, 255, 1), 0 0 8px rgba(255, 255, 255, 0.8);
}

.cards-2 {
  grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
}

.cards-3 {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.cards-4 {
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

#essentials-button,
#contact-button,
#toggle-grades,
#toggle-videos,
#essentials-button-mobile,
#contact-button-mobile,
#toggle-grades-mobile,
#toggle-videos-mobile {
  font-size: 0.875rem !important; 
  padding: 0.375rem 0.75rem !important; 
  transition: all 0.2s ease;
}

.prose {
  color: #d1d5db;
}

.prose h1, .prose h2, .prose h3, .prose h4, .prose h5, .prose h6 {
  color: #ffffff;
  font-weight: 600;
}

.prose h1 {
  font-size: 1.875rem;
  line-height: 2.25rem;
}

.prose h2 {
  font-size: 1.25rem; 
  line-height: 1.75rem; 
  margin-top: 1.25rem; 
  margin-bottom: 0.75rem; 
}

.prose h3 {
  font-size: 1.125rem; 
  line-height: 1.5rem;
  margin-top: 1rem; 
  margin-bottom: 0.5rem; 
}

.prose h3:nth-of-type(2) {
  margin-top: 2rem; 
}

.prose p {
  margin-bottom: 0.75rem;
  line-height: 1.5; 
}

.prose ul, .prose ol {
  margin-bottom: 1rem; 
  padding-left: 1.5rem;
}

.prose li {
  margin-bottom: 0.5rem; 
  line-height: 1.6;
}

.prose a {
  color: #60a5fa;
  text-decoration: underline;
}

.prose a:hover {
  color: #93c5fd;
}

.prose code {
  background-color: #374151;
  color: #f3f4f6;
  padding: 0.125rem 0.25rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
}

.prose pre {
  background-color: #1f2937;
  color: #f3f4f6;
  padding: 1rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin-bottom: 0.75rem; 
}

.prose blockquote {
  border-left: 4px solid #fbbf24;
  padding-left: 1rem;
  color: #9ca3af;
  font-style: italic;
  margin: 0.75rem 0; 
}

.prose strong {
  color: #ffffff;
  font-weight: 600;
}

.prose em {
  font-style: italic;
}

.prose-compact {
  font-size: 0.875rem; 
}

.prose-compact h2 {
  font-size: 1.125rem; 
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.prose-compact h3 {
  font-size: 1rem;
  margin-top: 0.75rem;
  margin-bottom: 0.375rem;
}

.prose-compact p {
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.prose-compact ul, .prose-compact ol {
  margin-bottom: 0.75rem; 
}

.prose-compact li {
  margin-bottom: 0.375rem; 
  line-height: 1.5; 
}

.prose-compact .space-y-3 {
  margin-top: 1rem;
}

.prose-compact .space-y-3 > div {
  margin-bottom: 0.5rem;
}

.prose-compact .space-y-3 > div:last-child {
  margin-bottom: 0;
}

.prose .space-y-3 .flex.items-start {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem; 
  margin-bottom: 0.25rem; 
}

.prose .space-y-3 .flex.items-start span {
  color: #fbbf24; 
  font-weight: bold;
  font-size: 0.875rem; 
  flex-shrink: 0;
  line-height: 1.5;
  width: 1.2rem; 
  text-align: left;
  margin-top: 0; 
}

.prose .space-y-3 .flex.items-start div {
  flex: 1;
  line-height: 1.5;
  display: block;
  margin-top: 0; 
}

.prose .space-y-3 .flex.items-start p {
  margin: 0;
  color: #d1d5db;
  display: block;
  font-size: 0.875rem; 
  line-height: 1.5; 
}

.prose .space-y-3 {
  display: block;
}

.prose .space-y-3 > div {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.25rem; 
}

.prose .space-y-3 > div:last-child {
  margin-bottom: 0;
}

.prose .text-yellow-400 {
  color: #fbbf24;
}

.prose .text-gray-300 {
  color: #d1d5db;
}

.prose .font-bold {
  font-weight: bold;
}

.prose .text-lg {
  font-size: 0.875rem !important; 
}

.prose .flex-shrink-0 {
  flex-shrink: 0;
}

/* Credits section specific styling */
.credits-list ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.credits-list ul li {
  color: #ffffff;
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 0.25rem;
  position: relative;
  padding-left: 1rem;
}

.credits-list ul li::before {
  content: '•';
  color: #fbbf24;
  position: absolute;
  left: 0;
  font-weight: bold;
}

.credits-list p {
  margin: 0;
  color: #ffffff;
  font-size: 0.875rem;
  line-height: 1.5;
}

/* Override prose styles for credits specifically */
.credits-list .prose p,
.credits-list .prose ul,
.credits-list .prose li {
  color: #ffffff;
  font-size: 0.875rem;
  line-height: 1.5;
}

.credits-list .prose ul {
  margin-bottom: 0;
}

.credits-list .prose li {
  margin-bottom: 0.25rem;
}

section h2 {
  font-size: 1.38rem; 
  font-weight: 600;
}

@media (max-width: 640px) {
  .cards-2, .cards-3, .cards-4 {
    grid-template-columns: 1fr;
  }
  
  .platform-block .flex {
    flex-wrap: wrap;
  }
  
  .platform-block span {
    white-space: normal;
  }

  .mod-page-sections {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .mod-page-video .video-thumbnail {
    min-height: 120px;
  }
}

@media (min-width: 641px) and (max-width: 1024px) {
  .mod-page-sections {
    grid-template-columns: 1.6fr 1.4fr; 
    gap: 1rem;
  }
}

.main-page #essentials-button,
.main-page #contact-button,
.main-page #toggle-grades,
.main-page #toggle-videos,
.main-page #essentials-button-mobile,
.main-page #contact-button-mobile,
.main-page #toggle-grades-mobile,
.main-page #toggle-videos-mobile {
  font-size: 0.75rem !important; 
  padding: 0.25rem 0.5rem !important; 
}
