/* RESET / GLOBAL */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background-color: #e6f7e6;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
  }
  
  /* HEADER & TAGLINE */
  .header {
    background-color: #e74c3c;
    color: white;
    width: 100%;
    /* padding: 20px; */
    padding: 10px;
    text-align: center;
    margin-bottom: 2px;
    /* border-radius: 10px; */
  }
  
  .controls {
    margin-top: 2px;
  }
  
  .controls label,
  .controls select {
    margin: 0 0.5px;
    /* font-size: 1rem; */
    font-size: 0.9rem;
    padding: 5px 8px;
  }
  
  .compact-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 10px 0;
    flex-wrap: wrap;
  }
  
  .stat-item {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 15px;
    border-radius: 20px;
    gap: 8px;
  }
  
  .timer-container {
    font-size: 24px;
    font-weight: bold;
  }
  
  /* TAGLINE */
  .tagline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 5px auto;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    width: fit-content;
  }
  
  .tagline i {
    font-size: 0.9rem;
    color: #ffd700;
  }
  
  /* SOUND TOGGLE */
  .sound-toggle {
    position: fixed;
    top: 10px;
    right: 10px;
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  .sound-toggle:hover {
    background-color: #f0f0f0;
  }
  
  .sound-toggle i {
    font-size: 18px;
    color: #e74c3c;
  }
  
  /* BUTTONS */
  .button-container {
    display: flex;
    gap: 10px;
    margin: 2px;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .new-game-button,
  .print-button,
  .show-answer-button,
  .hint-button {
    padding: 12px 24px;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
  }
  
  .new-game-button {
    background-color: #e74c3c;
  }
  .print-button {
    background-color: #2ecc71;
  }
  .show-answer-button {
    background-color: #3498db;
  }
  .hint-button {
    background-color: #f1c40f;
    color: #000;
  }
  
  /* MAIN GAME CONTAINER */
  .game-container {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 1500px;
    padding: 20px;
    margin: 0 auto;
    align-items: flex-start;
  }
  
  .puzzle-container {
    display: grid;
    grid-template-columns: repeat(10, 40px); /* default for 'easy' - JS changes it */
    gap: 5px;
    margin-right: 20px;
    background-color: #fff;
    padding: 10px;
    border-radius: 10px;
  }
  
  /* CELLS */
  .puzzle-cell {
    width: 40px;
    height: 40px;
    background-color: #fff8dc;
    border: 1px solid #f0e5c9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    transition: background 0.3s, transform 0.2s, border-color 0.2s;
  }
  
  .puzzle-cell:hover {
    background-color: #f1f1f1;
    border: 2px solid #a0c4ff;
    border-radius: 5px;
  }
  
  .puzzle-cell.selected {
    background-color: #ffd700;
    transform: scale(1.05);
    border: 2px solid #e74c3c;
    z-index: 1;
  }
  
  .puzzle-cell.found {
    background-color: #8bc34a;
    color: #fff;
  }
  
  /* Show answer highlight */
  .puzzle-cell.answer {
    background-color: #ffb6c1;
    color: #000;
  }
  
  /* WORD LIST */
  aside {
    min-width: 200px;
    background-color: #fff;
    padding: 10px 15px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }
  
  aside h2 {
    margin-bottom: 10px;
  }
  
  #wordList {
    list-style: none;
    padding-left: 0;
  }
  
  #wordList li {
    margin-bottom: 5px;
  }
  
  #wordList .found {
    background-color: #2ecc71;
    color: #fff;
    text-decoration: line-through;
    padding: 3px;
    border-radius: 3px;
  }
  
  /* PRINT STYLES */
  .print-only {
    display: none;
  }
  
 
  /* FOOTER NAV */
  .footer-nav {
    background-color: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin: 20px auto 40px;
    max-width: 1200px;
    width: 95%;
  }
  
  .footer-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    padding: 0;
    margin: 0;
  }
  
  .footer-nav a {
    color: #e74c3c;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    transition: color 0.3s ease;
  }
  
  .footer-nav a:hover {
    color: #c0392b;
  }
  

  

  /*******************************************************
   * EXTRA ANIMATIONS
   *******************************************************/
  
  /* BOUNCE / FADE for found word */
  @keyframes foundWordBounce {
    0% {
      transform: scale(1);
      background-color: #ffd700;
    }
    50% {
      transform: scale(1.2);
      background-color: #8bc34a;
    }
    100% {
      transform: scale(1);
    }
  }
  .found-animation {
    animation: foundWordBounce 0.5s ease;
  }
  
  /* HINT HIGHLIGHT */


  .hint-highlight {
  position: relative;
  z-index: 2;
  border: 3px solid #ffae00 !important;   /* deeper gold border */
  border-radius: 4px;
  animation: hintPulse 0.9s ease-in-out infinite alternate;
}

/* pulsing glow + slight zoom */
@keyframes hintPulse {
  0% {
    transform: scale(1);
    box-shadow:
      0 0 0   0   rgba(255,174,0,0.9),
      0 0 8px 4px rgba(255,215,0,0.3);
  }
  100% {
    transform: scale(1.06);
    box-shadow:
      0 0 6px 2px rgba(255,174,0,0.9),
      0 0 14px 8px rgba(255,215,0,0.4);
  }
}
  
  /* FLYING WORD ANIMATION (unchanged) */
  @keyframes flyWord {
    0% {
      transform: translateY(0);
      opacity: 1;
    }
    100% {
      transform: translateY(-200px);
      opacity: 0;
    }
  }
  .flying-word {
    position: absolute;
    font-size: 20px;
    font-weight: bold;
    color: #e74c3c;
    animation: flyWord 1.5s ease-out forwards;
    pointer-events: none;
    z-index: 1000;
  }
  
  /* CELEBRATION POPUP */
  .celebration-overlay {
    position: fixed;      /* This is critical */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;        /* center children horizontally/vertically */
    justify-content: center;
    align-items: center;
    z-index: 9999;        /* above everything else */
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .celebration-popup {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    transform: scale(0.7);
    animation: popIn 0.5s ease forwards;
    max-width: 90%;
    width: 400px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
  }
  
  
  .celebration-popup h2 {
    color: #e74c3c;
    font-size: 2rem;
    margin-bottom: 1rem;
  }
  
  .celebration-popup p {
    color: #333;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
  }
  
  .celebration-popup button {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s ease;
  }
  .celebration-popup button:hover {
    background: #c0392b;
  }
  
  .confetti {
    position: fixed;
    animation: confettiFall 3s linear forwards;
    z-index: 10001;
  }
  
  @keyframes confettiFall {
    0% {
      transform: translateY(-100vh) rotate(0deg);
    }
    100% {
      transform: translateY(100vh) rotate(360deg);
    }
  }
  
  @keyframes popIn {
    0% {
      transform: scale(0.7);
      opacity: 0;
    }
    100% {
      transform: scale(1);
      opacity: 1;
    }
  }
  
  .trophy {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: trophyShine 2s infinite;
  }
  
  @keyframes trophyShine {
    0%,
    100% {
      transform: scale(1);
      color: #ffd700;
    }
    50% {
      transform: scale(1.1);
      color: #ffed4a;
    }
  }
  
  /* LOADING / ERROR */
  .loading {
    padding: 20px;
    text-align: center;
    font-size: 1.2em;
    color: #666;
  }
  
  .error-message {
    padding: 20px;
    text-align: center;
    color: #e74c3c;
  }
  .error-message button {
    margin-top: 10px;
    padding: 5px 10px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
  }

  /* SEO Content Section */
.seo-content {
  max-width: 1200px;               /* Matches your typical container width */
  width: 95%;                      /* For a consistent responsive layout */
  margin: 20px auto;               /* Center and add vertical spacing */
  background-color: #fff;          /* White card background */
  padding: 20px;                   /* Internal spacing */
  border-radius: 10px;             /* Rounded corners */
  box-shadow: 0 4px 6px rgba(0,0,0,0.1); /* Subtle shadow */
  font-size: 1rem;                 /* Base font size */
  color: #333;                     /* Text color to contrast the white background */
  line-height: 1.6;               /* Comfortable line spacing */
}

/* Headings Inside SEO Content */
.seo-content h2 {
  color: #e74c3c;      /* Matches your header's red theme */
  margin-bottom: 1rem; /* Spacing below heading */
  font-size: 1.6rem;   /* Slightly larger than body text */
  text-align: center;  /* Centered heading looks nice in a card layout */
}

/* Paragraphs Inside SEO Content */
.seo-content p {
  margin-bottom: 1rem; /* Vertical spacing between paragraphs */
}

/* RESPONSIVE & PRINT STYLES */

/* For devices up to 1024px (iPads and similar) */


  @media (max-width: 1024px) {
    .grid {
      padding: 10px;
      gap: 6px;
      max-width: 100%;
    }
    .cell {
      width: 32px;
      height: 32px;
      font-size: 14px;
      touch-action: manipulation;
    }
    .game-container {
      margin-top: 10px;
      flex-direction: row;
      align-items: flex-start;
      padding: 5px;
    }
    aside {
      min-width: 200px;
    }
  .word-list {
    width: 90%;
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    padding: 10px;
    background-color: white;
  }
  .word-item {
    display: inline-block;
    padding: 5px 10px;
    margin: 0;
    font-size: 14px;
    border-radius: 5px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
  }
  .compact-stats {
    gap: 12px;
    font-size: 14px;
  }
  .stat-item {
    padding: 3px 8px;
    font-size: 12px;
  }
  .button-container button {
    padding: 8px 16px;
    font-size: 14px;
  }
  .sound-toggle {
    width: 30px;
    height: 30px;
  }
  .sound-toggle i {
    font-size: 14px;
  }
  .tagline {
    font-size: 0.75rem;
    padding: 3px 10px;
  }
  .tagline i {
    font-size: 0.5rem;
  }
}
@media (min-width: 769px) and (max-width: 950px) {
  /* Keep puzzle and word list side by side */
  .game-container {
    flex-direction: column;
    align-items: center;
    gap: 20px;         /* extra space between puzzle and word list */
    margin-top: 10px;
    padding: 5px;
  }

  /* Let puzzle container shrink or grow,
     and if it’s too big, allow horizontal scrolling */
     .puzzle-container {
      margin: 0 auto;         /* center horizontally */
      grid-template-columns: repeat(10, 30px); /* or 28px, if you want smaller cells */
      gap: 6px;
    }

  /* Keep “Words to Find” at a reasonable width so it doesn’t collapse */
  aside {
    width: 100%;
    max-width: 500px;      /* optional max width, so it doesn't get too wide */
    margin: 0 auto;        /* center horizontally */
  }
  #wordList {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center; /* center the words horizontally */
    padding: 10px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }

  #wordList li {
    display: inline-block;
    padding: 5px 10px;
    margin: 0;
    font-size: 14px;
    border-radius: 5px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
  }
}



/* Desktop / Larger screens (min-width: 769px) */


/* For devices with max-width: 768px (tablets and smaller) */
/* @media (max-width: 768px) {
  .grid {
    padding: 10px;
    gap: 28px;
    max-width: 100%;
  }
  .cell {
    width: 42px;
    height: 42px;
    font-size: 18px;
    touch-action: manipulation;
  }
  .game-container {
    flex-direction: column;
    align-items: center;
    padding: 5px;
    margin-top: 10px;
  }
  .button-container {
    padding-top: 10px;
  }
  .word-list {
    width: 95%;
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    padding: 10px;
    background-color: white;
  }
  .word-item {
    display: inline-block;
    padding: 5px 10px;
    margin: 0;
    font-size: 14px;
    border-radius: 5px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
  }
  .compact-stats {
    gap: 10px;
    font-size: 14px;
  }

  .stat-item {
    padding: 3px 8px;
    font-size: 12px;
  }
  .button-container button {
    padding: 8px 16px;
    font-size: 14px;
  }
  .sound-toggle {
    width: 30px;
    height: 30px;
  }
  .sound-toggle i {
    font-size: 14px;
  }
  .tagline {
    font-size: 0.85rem;
    padding: 4px 12px;
    text-align: center;
    color: #666;
  }
  .tagline i {
    font-size: 0.8rem;
  }
  .puzzle-container {
    grid-template-columns: repeat(10, 32px);
    gap: 4px;
  }
  .puzzle-cell {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
  .seo-content {
    padding: 15px;
  }
  .seo-content h2 {
    font-size: 1.4rem;
  }
  .seo-content p {
    font-size: 0.95rem;
  }
} */

@media (max-width: 768px) {

  /* Stack puzzle & word list vertically */
  .game-container {
    flex-direction: column;
    align-items: center;
    gap: 20px;         /* extra space between puzzle and word list */
    margin-top: 10px;
    padding: 5px;
  }
  .game-container h2 {
    text-align: center; /* Centers the text */
    font-size: 15px; /* Smaller font size */
    display: block; /* Ensures it's a block element */
    width: 100%; /* Takes full width for proper centering */
}

  /* Center the puzzle container & reduce cell size if needed */
  .puzzle-container {
    margin: 0 auto;         /* center horizontally */
    grid-template-columns: repeat(10, 30px); /* or 28px, if you want smaller cells */
    gap: 4px;
  }
  .puzzle-cell {
    width: 30px !important;
    height: 30px !important;
    font-size: 13px;       /* slightly smaller text to fit mobile */
  }

  /* Word list container: limit width and center it */
  aside {
    width: 100%;
    max-width: 500px;      /* optional max width, so it doesn't get too wide */
    margin: 0 auto;        /* center horizontally */
  }

  #wordList {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center; /* center the words horizontally */
    padding: 10px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }

  #wordList li {
    display: inline-block;
    padding: 5px 10px;
    margin: 0;
    font-size: 14px;
    border-radius: 5px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
  }
  .print-button {
    display: none;
  }
  /* Adjust other elements as needed (stats, etc.) */
  .compact-stats {
    gap: 10px;
    font-size: 14px;
  }
  .stat-item {
    padding: 3px 8px;
    font-size: 12px;
  }
  .button-container {
    padding-top: 10px;
  }
  .button-container button {
    padding: 8px 16px;
    font-size: 14px;
  }
  .sound-toggle {
    width: 30px;
    height: 30px;
  }
  .sound-toggle i {
    font-size: 14px;
  }
  .tagline {
    font-size: 0.85rem;
    padding: 4px 12px;
    text-align: center;
    color: #666;
  }
  .tagline i {
    font-size: 0.8rem;
  }

  /* SEO content adjustments */
  .seo-content {
    padding: 15px;
  }
  .seo-content h2 {
    font-size: 1.4rem;
  }
  .seo-content p {
    font-size: 0.95rem;
  }
}


/* For devices with max-width: 480px (small mobiles) */
@media (max-width: 480px) {
  .puzzle-cell {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }
  .header, .controls, .compact-stats {
    font-size: 0.9rem;
  }

  .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(35px, 1fr));
    justify-content: center;
    width: 100%;
    padding: 10px;
    gap: 24px;
    background-color: #fff8dc;
    border: 0.5px solid #f0e5c9;
    margin-top: 10px;
  }
  .cell {
    width: 35px;
    height: 35px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 4px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  }
  .word-item {
    font-size: 12px;
    padding: 5px 10px;
  }
  /* .word-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  } */
   .controls{
    margin-top: 2px;
   }
  #wordList{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
  .print-button {
    display: none;
  }
  .button-container {
    padding-top: 10px;
  }
  .sound-toggle {
    width: 30px;
    height: 30px;
  }
  .sound-toggle i {
    font-size: 14px;
  }
  .tagline {
    font-size: 0.85rem;
    padding: 4px 12px;
    text-align: center;
    color: #666;
    display: none;
  }
  .tagline i {
    font-size: 0.8rem;
  }
  .seo-content {
    padding: 10px;
  }
  .seo-content h2 {
    font-size: 1.2rem;
  }
  .seo-content p {
    font-size: 0.9rem;
  }
}

/* For very small devices (max-width: 375px) */
@media (max-width: 375px) {
  .game-container {
    padding: 5px;
    padding-top: 2px;
  }
  .grid {
    grid-template-columns: repeat(7, 1fr);
    gap: 18px;
  }
  .cell {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  .button-container {
    padding-top: 15px;
  }
  .word-item {
    font-size: 12px;
    padding: 4px 8px;
  }
  .print-button {
    display: none;
  }
  .word-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .sound-toggle {
    width: 28px;
    height: 28px;
  }
  .sound-toggle i {
    font-size: 12px;
  }
  .tagline {
    font-size: 0.8rem;
    padding: 4px 10px;
    text-align: center;
    color: #666;
  }
  .tagline i {
    font-size: 0.75rem;
  }
}



/* PRINT STYLES */
@media print {
  @page {
    size: A4;
    margin: 1cm;
  }

  body {
    background: white;
    font-size: 12px;
    line-height: 1.5;
    margin: 0;
    padding: 0.5cm;
  }

  /* Hide on-screen only elements */
  .no-print,
  .sound-toggle,
  .button-container {
    display: none !important;
  }

  /* Header adjustments */
  .header {
    background-color: white !important;
    color: black !important;
    padding: 10px !important;
    text-align: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #ddd;
    border-radius: 0;
  }

  /* Game container */
  .game-container {
    display: block;
    page-break-inside: avoid;
    max-width: 100%;
    padding: 0;
    margin: 0 auto;
  }

  /* Dynamic puzzle grid for print */
  .puzzle-container {
    grid-template-columns: repeat(var(--print-grid-size, 15), var(--print-cell-size, 32px)) !important;
    grid-auto-rows: var(--print-cell-size, 32px) !important;
    gap: 1px !important;
    border: 1px solid #ddd;
    padding: 0 !important;
    box-shadow: none !important;
    margin: 0 auto !important;
    page-break-inside: avoid;
  }

  /* Puzzle cells */
  .puzzle-cell {
    width: var(--print-cell-size, 32px) !important;
    height: var(--print-cell-size, 32px) !important;
    border: 1px solid #000 !important;
    font-size: calc(var(--print-cell-size, 32px) * 0.4375) !important; /* Scales font to ~14px for 32px cells */
    font-weight: bold;
    text-align: center;
    background-color: #fff !important;
    transform: none !important;
    box-shadow: none !important;
  }

  /* Word list styles */
  aside {
    box-shadow: none !important;
    page-break-inside: avoid;
  }
  #wordList li {
    font-size: 12px !important;
    border: 1px solid #ddd;
    margin: 2px;
    display: inline-block;
    padding: 3px 5px;
  }

  /* Print-only headers, instructions, etc. */
  .print-only {
    display: block !important;
    margin-bottom: 10px;
    text-align: center;
  }
  .print-header {
    text-align: center;
    margin-bottom: 10px;
    font-weight: bold;
  }
  .print-instructions {
    margin-bottom: 15px;
    font-size: 12px;
    text-align: center;
  }

  /* Force exact color adjustments for printing */
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
}

.button-group {
  display: flex;
  gap: 10px; 
  justify-content: center; /* or 'flex-end' or any layout you prefer */
  margin-top: 1rem;
}


.button-group {
  margin: 20px 0;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  text-decoration: none;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.btn-maker {
  background-color: #e74c3c;
}
.btn-maker:hover {
  background-color: #c0392b;
}
.btn-more {
  background-color: #3498db;
}
.btn-more:hover {
  background-color: #2980b9;
}


/* ---------- Footer alignment patch ---------- */
.footer-nav ul{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:30px;
}

.footer-nav li{
  display:flex;
  align-items:center;
  gap:6px;
}

/* colour tweaks */
.footer-nav li i{ color:#e74c3c; }                 /* icons */
.footer-nav .lang-selector label{                  /* label */
  color:#e74c3c;
  font-weight:500;
}

/* <select> look */
#langSelect{
  padding:6px 10px;
  border:1px solid #e74c3c;
  border-radius:4px;
  color:#e74c3c;
  background:#fff;
  font-size:0.95rem;
  cursor:pointer;
  vertical-align:middle;
}
#langSelect:hover{ background:#fcecec; }



/* Related Quizzes - Minimalist */
.related-quizzes {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  padding: 0;
  margin-top: 1rem;
}

.related-quizzes li {
  border-radius: 6px;
}

.related-quizzes a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  color: #e74c3c;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  border: 1px solid #e74c3c;
  border-radius: 6px;
  transition: background-color 0.2s, color 0.2s;
}

.related-quizzes a:hover {
  background-color: #e74c3c;
  color: #fff;
}

.related-quizzes i {
  font-size: 0.95rem;
}


