/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/

/* Couleurs globales inspirées du site */
:root {
  --gta-main: #0f3d68;       /* bleu logo */
  --gta-main-light: #eaf2ff; /* bleu très clair */
  --gta-border: #d4deef;
  --gta-text: #111827;
}

/* ===== DESKTOP / TABLET : bloc autour de la liste ===== */
.gta-answers {
  max-width: 840px;
  width: 100%;
  box-sizing: border-box;

  margin: 2rem auto;
  padding: 1.5rem 1.8rem 1.8rem;

  background: linear-gradient(135deg, #ffffff, var(--gta-main-light));
  border-radius: 18px;
  border: 1px solid var(--gta-border);
  box-shadow: 0 18px 40px rgba(15, 61, 104, 0.18);
}

/* ===== MOBILE : plus de wrapper visuel ===== */
@media (max-width: 640px) {
  .gta-answers {
    max-width: none;
    width: 100%;
    margin: 0;                 /* plus de marge extérieure */
    padding: 0;                /* plus de padding extérieur */
    border: none;              /* plus de bordure */
    background: transparent;   /* plus de fond */
    box-shadow: none;          /* plus d'ombre globale */
  }
}

/* UL neutre */
.gta-answers ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ===== Style des LI (commun à tout le site) ===== */
.gta-answers li {
  position: relative;
  display: block;

  margin-bottom: 0.8rem;
  padding: 0.9rem 1.1rem 0.9rem 3rem;

  border-radius: 12px;
  background-color: #ffffff;
  border: 1px solid var(--gta-border);

  color: var(--gta-text);
  font-size: 0.98rem;
  line-height: 1.5;

  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
  transform: translateY(0);
  transition:
    background-color 0.16s ease-out,
    border-color 0.16s ease-out,
    box-shadow 0.16s ease-out,
    transform 0.16s ease-out;
}

/* Mobile : un peu de marge sur les côtés, mais pas de "grosse boîte" autour */
@media (max-width: 640px) {
  .gta-answers li {
    margin: 0.7rem 0.7rem;              /* un peu d'air à droite/gauche */
    padding: 0.8rem 0.9rem 0.8rem 2.7rem;
    font-size: 0.95rem;
  }
}

/* Puce "marque du site" (rond stylisé, neutre, pas lié à un jeu) */
.gta-answers li::before {
  content: "";
  position: absolute;
  left: 0.95rem;
  top: 50%;
  transform: translateY(-50%);

  width: 18px;
  height: 18px;
  border-radius: 40%;

  border: 2px solid var(--gta-main);
  background: radial-gradient(circle at 30% 30%, #ffffff 0, #ffffff 40%, #8fbaff 100%);
  box-shadow:
    0 0 0 3px #ffffff,
    0 3px 8px rgba(15, 61, 104, 0.28);
}

/* Hover un peu plus chic sur desktop seulement */
@media (hover: hover) and (pointer: fine) {
  .gta-answers li:hover {
    background-color: var(--gta-main-light);
    border-color: var(--gta-main);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(15, 61, 104, 0.25);
  }
}

/* Intro paragraph above the answers */
.level-intro {
  max-width: 840px;
  margin: 0 auto 1rem;
  color: var(--gta-text);
  font-size: 0.98rem;
  line-height: 1.5;
}

/* Bottom navigation (previous / all levels / next) */
.level-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin: 1.5rem 0 0;
}

.level-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--gta-border);

  background-color: #ffffff;
  color: var(--gta-main);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;

  box-shadow: 0 4px 12px rgba(15, 61, 104, 0.18);
  transition:
    background-color 0.16s ease-out,
    color 0.16s ease-out,
    border-color 0.16s ease-out,
    box-shadow 0.16s ease-out,
    transform 0.16s ease-out;
}

/* Highlight the "all levels" link slightly */
.level-nav a:nth-child(2) {
  background-color: var(--gta-main);
  color: #ffffff;
  border-color: var(--gta-main);
}

/* Hover (desktop only) */
@media (hover: hover) and (pointer: fine) {
  .level-nav a:hover {
    background-color: var(--gta-main-light);
    border-color: var(--gta-main);
    box-shadow: 0 8px 20px rgba(15, 61, 104, 0.25);
    transform: translateY(-1px);
  }

  .level-nav a:nth-child(2):hover {
    background-color: #123f73;
    color: #ffffff;
  }
}

/* Mobile: buttons full-width for easy tapping, no huge side margins */
@media (max-width: 640px) {
  .level-nav {
    margin-top: 1.2rem;
    gap: 0.5rem;
  }

  .level-nav a {
    flex: 1 1 100%;
    padding: 0.7rem 0.9rem;
    font-size: 0.95rem;
  }
}

/* Container */
.level-nav.level-nav-bottom {
  max-width: 780px;
  margin: 1.5rem auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Dark buttons */
.level-nav.level-nav-bottom a {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0.5rem 1.1rem;
  border-radius: 999px;

  font-size: 0.9rem;
  text-decoration: none;
  white-space: nowrap;

  background: #0f3d68;          /* bleu foncé */
  color: #ffffff;
  border: 1px solid #0b2f50;    /* encore plus foncé */

  box-shadow: 0 4px 12px rgba(11, 47, 80, 0.35);
  transition:
    background-color 0.15s ease-out,
    border-color 0.15s ease-out,
    box-shadow 0.15s ease-out,
    transform 0.15s ease-out;
}

/* On peut garder le bouton central un peu plus "important" si tu veux */
.level-nav.level-nav-bottom a:nth-child(2) {
  background: #09243d;      /* encore plus dark pour "All levels" */
  border-color: #061727;
}

/* Hover (desktop only) */
@media (hover: hover) and (pointer: fine) {
  .level-nav.level-nav-bottom a:hover {
    background-color: #09243d;
    border-color: #061727;
    box-shadow: 0 8px 20px rgba(6, 23, 39, 0.45);
    transform: translateY(-1px);
  }

  .level-nav.level-nav-bottom a:nth-child(2):hover {
    background-color: #0f3d68;
    border-color: #0b2f50;
  }
}

/* Mobile: full width buttons, but no big side margins */
@media (max-width: 640px) {
  .level-nav.level-nav-bottom {
    padding: 0 0.5rem;
    gap: 0.5rem;
  }

  .level-nav.level-nav-bottom a {
    flex: 1 1 100%;
    text-align: center;
    padding: 0.7rem 0.9rem;
    font-size: 0.95rem;
  }
}

.level-solved {
  max-width: 780px;
  margin: 1.8rem auto 0;
  padding-top: 0.6rem;
  border-top: 1px solid #d4deef;
}

/* Ligne cliquable (icône + texte) */
.level-solved summary {
  list-style: none;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;

  font-size: 1.05rem;         /* plus grand */
  font-weight: 600;           /* un peu plus bold */
  color: #2563eb;
  text-align: center;
}

/* cacher le petit triangle par défaut */
.level-solved summary::-webkit-details-marker {
  display: none;
}

/* ton icône de coche verte */
.level-solved-image {
  width: 26px;
  height: auto;
  display: block;
}

/* Quand c'est ouvert, on fonce un peu la couleur */
.level-solved[open] summary {
  color: #1d4ed8;
}

/* Contenu qui apparaît après le clic */
.level-solved-body {
  margin-top: 0.7rem;
  padding: 0.8rem 0.9rem;
  border-radius: 8px;
  background: #f5f7ff;
  border: 1px solid #d4deef;
  font-size: 0.94rem;
  line-height: 1.5;
}

.level-solved-body ul {
  margin: 0.4rem 0 0;
  padding-left: 1.1rem;
}

.level-solved-body a {
  color: #0f3d68;
  text-decoration: underline;
}

/* Mobile : petites marges latérales, toujours centré */
@media (max-width: 640px) {
  .level-solved {
    margin: 1.4rem 0.5rem 0;
  }

  .level-solved-body {
    padding: 0.75rem 0.75rem;
  }

  .level-solved summary {
    font-size: 1.02rem;
    flex-wrap: wrap;
  }
}

/* scroll doux vers les commentaires */
html {
  scroll-behavior: smooth;
}
/* ==== LEVEL HIGHLIGHT - BOX CLIQUABLE AVEC IMAGE TRÈS LÉGÈRE ==== */
.level-highlight {
  display: block;
  max-width: 780px;
  margin: 1.6rem auto 0;
  padding: 0.95rem 1.25rem;

  border-radius: 14px;
  border: 1px solid rgba(15, 61, 104, 0.18);

  /* Fallback pastel si pas d'image */
  background-color: #fff7d1; /* jaune pastel très doux */

  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.15);

  text-decoration: none;
  color: #111827;
  position: relative;
  overflow: hidden;
  line-height: 1.4;
}

/* Image de fond ultra légère (si --hl-img est définie en inline) */
.level-highlight::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hl-img);
  background-size: cover;
  background-position: center;
  opacity: 0.09;              /* très léger */
  mix-blend-mode: multiply;   /* pour ne pas tuer le texte */
  pointer-events: none;
}

/* texte au-dessus de l'image */
.level-highlight-title,
.level-highlight-cta {
  position: relative;
  z-index: 1;
}

.level-highlight-title {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.level-highlight-cta {
  display: block;
  font-size: 0.93rem;
  font-weight: 500;
}

/* effet hover léger sur desktop */
@media (hover: hover) and (pointer: fine) {
  .level-highlight:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.22);
  }
}

/* mobile : marges discrètes */
@media (max-width: 640px) {
  .level-highlight {
    margin: 1.4rem 0.5rem 0;
    padding: 0.85rem 0.9rem;
  }

  .level-highlight-title {
    font-size: 0.98rem;
  }

  .level-highlight-cta {
    font-size: 0.9rem;
  }
}

/* Cacher l'image mise en avant au-dessus du titre sur les articles */
.single-post .post-image,
.single-post .featured-image,
.single-post .page-header-image {
  display: none;
}

/* H1 "3 lignes" pour tous les articles dont le titre contient "Level" */
.gta-level-title-layout .entry-title {
  max-width: 840px;
  margin: 1.8rem auto 1.5rem;
  padding: 1.1rem 1.5rem 1.4rem;

  border-radius: 18px;
  background: linear-gradient(90deg, #8ec5fc, #5f9cf6); /* bleu style visuel */
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.22);

  text-align: left;
  line-height: 1.05;
}

/* Chaque partie du titre sur sa propre ligne */
.gta-level-title-layout .entry-title span {
  display: block;
}

/* Ligne 1 : nom du jeu (catégorie ou texte avant Level) */
.gta-level-title-layout .entry-title .glt-game {
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  font-weight: 700;
  text-transform: uppercase;
  color: #0f3d68;            /* bleu foncé */
  margin-bottom: 0.3rem;
}

/* Ligne 2 : "Level XX" */
.gta-level-title-layout .entry-title .glt-level {
  font-size: clamp(1.8rem, 3.8vw, 2.4rem);
  font-weight: 800;
  text-transform: uppercase;
  color: #ffffff;
}

/* Ligne 3 : "Answers", "Solutions"… en rose */
.gta-level-title-layout .entry-title .glt-type {
  margin-top: 0.1rem;
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #3A33E1;
}

/* Aligner la ligne date/auteur avec le bloc H1 */
.single .entry-header .entry-meta {
  max-width: 840px;
  margin: 0.35rem auto 1.1rem; /* centré sous le H1 */
  padding: 0 1.5rem 0;         /* même "retrait" que le texte du H1 */
  box-sizing: border-box;
  text-align: left;
}

/* Mobile : réduire les gros padding sur les pages de niveaux */
@media (max-width: 640px) {
  body.gta-level-title-layout.separate-containers .inside-article {
    padding-left: 16px;
    padding-right: 16px;
  }

  /* Marges plus petites pour chaque réponse */
  .gta-answers li {
    margin: 0.55rem 0.15rem;  /* haut/bas 0.55, gauche/droite 0.15 */
  }
}

/* ===== Zone commentaires – style GrabTheAnswer ===== */

/* Wrapper global des commentaires */
.gta-level-title-layout .comments-area {
  max-width: 840px;
  margin: 2.2rem auto 3rem;
  padding: 0;
  background: transparent;
  border: none;
}

/* Carte principale du formulaire */
.gta-level-title-layout #respond {
  padding: 1.4rem 1.6rem 1.6rem;
  border-radius: 18px;
  background: linear-gradient(135deg, #ffffff, #f5f7ff);
  border: 1px solid var(--gta-border);
  box-shadow: 0 18px 40px rgba(15, 61, 104, 0.14);
}

/* Titre "Leave a Comment" */
.gta-level-title-layout #reply-title {
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gta-main);
  border-bottom: 1px solid var(--gta-border);
}

/* Texte "Logged in as..." etc. */
.gta-level-title-layout .comment-form > p {
  font-size: 0.92rem;
  color: #4b5563;
}

/* Champs & textarea */
.gta-level-title-layout .comment-form input[type="text"],
.gta-level-title-layout .comment-form input[type="email"],
.gta-level-title-layout .comment-form input[type="url"],
.gta-level-title-layout .comment-form textarea {
  width: 100%;
  box-sizing: border-box;
  border-radius: 10px;
  border: 1px solid var(--gta-border);
  background: #f9fbff;
  padding: 0.7rem 0.8rem;
  font-size: 0.95rem;
  color: var(--gta-text);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
  transition:
    border-color 0.16s ease-out,
    box-shadow 0.16s ease-out,
    background-color 0.16s ease-out;
}

/* Focus champs */
.gta-level-title-layout .comment-form input[type="text"]:focus,
.gta-level-title-layout .comment-form input[type="email"]:focus,
.gta-level-title-layout .comment-form input[type="url"]:focus,
.gta-level-title-layout .comment-form textarea:focus {
  border-color: var(--gta-main);
  background-color: #f0f5ff;
  outline: none;
  box-shadow: 0 0 0 2px rgba(15, 61, 104, 0.15);
}

/* Bouton envoyer */
.gta-level-title-layout .comment-form .submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  margin-top: 0.6rem;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  border: none;

  background: var(--gta-main);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;

  box-shadow: 0 10px 24px rgba(15, 61, 104, 0.25);
  transition:
    background-color 0.16s ease-out,
    box-shadow 0.16s ease-out,
    transform 0.16s ease-out;
}

/* Hover bouton (desktop uniquement) */
@media (hover: hover) and (pointer: fine) {
  .gta-level-title-layout .comment-form .submit:hover {
    background-color: #123f73;
    box-shadow: 0 14px 32px rgba(15, 61, 104, 0.3);
    transform: translateY(-1px);
  }
}

/* ----- Mobile : marges réduites, carte compacte ----- */
@media (max-width: 640px) {
  .gta-level-title-layout .comments-area {
    margin: 2rem 0.5rem 2.4rem;
  }

  .gta-level-title-layout #respond {
    padding: 1rem 1.1rem 1.2rem;
    border-radius: 14px;
  }
}

/* ===== CTA "Mark this level as solved" ===== */

.gta-level-title-layout .level-solved {
  max-width: 780px;
  margin: 1.8rem auto 0;
  padding-top: 0.5rem;
  border-top: 1px solid #d4deef;
}

/* Résumé = bouton cliquable */
.gta-level-title-layout .level-solved summary {
  list-style: none;
  cursor: pointer;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;

  padding: 0.6rem 1.5rem;
  border-radius: 999px;
  border: 1px solid #0b2f50;

  background: #0f3d68; /* ton bleu foncé */
  color: #ffffff;
  font-size: 0.96rem;
  font-weight: 600;
  text-align: center;

  box-shadow: 0 10px 24px rgba(11, 47, 80, 0.35);
  position: relative;
  transition:
    background-color 0.16s ease-out,
    box-shadow 0.16s ease-out,
    transform 0.16s ease-out;
}

/* virer le petit triangle par défaut des <summary> */
.gta-level-title-layout .level-solved summary::-webkit-details-marker {
  display: none;
}

/* petite flèche à droite pour montrer que ça s’ouvre */
.gta-level-title-layout .level-solved summary::after {
  content: "▼";
  font-size: 0.75rem;
  margin-left: 0.3rem;
  opacity: 0.9;
}

/* quand c’est ouvert, on remonte la flèche */
.gta-level-title-layout .level-solved[open] summary::after {
  content: "▲";
}

/* icône check */
.gta-level-title-layout .level-solved-image {
  width: 20px;
  height: auto;
  display: block;
}

/* texte */
.gta-level-title-layout .level-solved-label {
  white-space: nowrap;
}

/* Hover desktop : effet CTA */
@media (hover: hover) and (pointer: fine) {
  .gta-level-title-layout .level-solved summary:hover {
    transform: translateY(-1px);
    background-color: #123f73;
    box-shadow: 0 14px 30px rgba(11, 47, 80, 0.45);
  }
}

/* Contenu ouvert (on garde ton ancien style) */
.gta-level-title-layout .level-solved-body {
  margin-top: 0.7rem;
  padding: 0.8rem 0.9rem;
  border-radius: 8px;
  background: #f5f7ff;
  border: 1px solid #d4deef;
  font-size: 0.94rem;
  line-height: 1.5;
}

/* Mobile : centré + compact */
@media (max-width: 640px) {
  .gta-level-title-layout .level-solved {
    margin: 1.4rem 0.5rem 0;
  }

  .gta-level-title-layout .level-solved summary {
    width: 100%;
    padding: 0.7rem 1rem;
    text-align: center;
    flex-wrap: wrap;
  }

  .gta-level-title-layout .level-solved-label {
    white-space: normal;
  }

  .gta-level-title-layout .level-solved-body {
    padding: 0.75rem 0.75rem;
  }
}
/* On masque les <br> dans le summary pour avoir un bouton propre */
.level-solved summary br {
  display: none;
}

/* Conteneur du CTA "Mark this level as solved" */
.gta-level-title-layout .level-solved {
  max-width: 840px;
  margin: 1.8rem auto 0;
  padding-top: 0.6rem;
  border-top: 1px solid #d4deef;
  text-align: center; /* centre le bouton sur desktop */
}

/* SUMMARY = vrai bouton CTA (couleurs différentes de la nav) */
.gta-level-title-layout .level-solved summary {
  list-style: none;
  cursor: pointer;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;

  padding: 0.6rem 1.4rem;
  border-radius: 999px;

  border: 1px solid rgba(15, 61, 104, 0.18);
  background: linear-gradient(135deg, #fff7d1, #e0f2fe); /* pastel, différent de la nav */
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.16);

  font-size: 0.95rem;
  font-weight: 600;
  color: #0f3d68;
  text-align: center;

  box-sizing: border-box;
  margin: 0 auto; /* centré */
}

/* on enlève le petit triangle par défaut des <summary> */
.gta-level-title-layout .level-solved summary::-webkit-details-marker {
  display: none;
}

/* état ouvert : un peu plus marqué */
.gta-level-title-layout .level-solved[open] summary {
  border-color: #0f3d68;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.22);
}

/* hover desktop = effet bouton */
@media (hover: hover) and (pointer: fine) {
  .gta-level-title-layout .level-solved summary:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.22);
    border-color: #0f3d68;
  }
}

/* Contenu ouvert (on garde ton style actuel) */
.gta-level-title-layout .level-solved-body {
  margin-top: 0.7rem;
  padding: 0.8rem 0.9rem;
  border-radius: 8px;
  background: #f5f7ff;
  border: 1px solid #d4deef;
  font-size: 0.94rem;
  line-height: 1.5;
}

/* MOBILE : pas de débordement à droite + marges cohérentes */
@media (max-width: 640px) {
  .gta-level-title-layout .level-solved {
    margin: 1.4rem 0.5rem 0; /* même logique que tes autres blocs */
  }

  .gta-level-title-layout .level-solved summary {
    width: auto;        /* plus de width:100% qui déborde */
    max-width: 100%;
    padding: 0.65rem 1.1rem;
    font-size: 0.96rem;
    flex-wrap: wrap;    /* le texte peut passer sur 2 lignes sans sortir */
  }
}

/* Remettre le texte du bloc déplié à gauche */
.gta-level-title-layout .level-solved-body {
  text-align: left;
}

/* Optionnel : petit retrait propre pour la liste */
.gta-level-title-layout .level-solved-body ul {
  margin: 0.4rem 0 0;
  padding-left: 1.2rem;
}

/* UL : reset + compteur + base pour la timeline */
.gta-answers ul {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: gta-answer;
}

/* Chaque réponse = petite carte + espace pour le rond à gauche */
.gta-answers li {
  position: relative;
  margin: 0 0 1.1rem;
  padding: 0.7rem 1rem 0.7rem 3.4rem;
  background-color: #ffffff;
  border-radius: 0px;
  border: 1px solid var(--gta-border);
  box-shadow: 0 5px 12px rgba(15, 23, 42, 0.10);
  color: var(--gta-text);
  font-size: 0.96rem;
  line-height: 1.5;
}

/* Rond numéroté 1,2,3,... */
.gta-answers li::before {

  position: absolute;
  left: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #023045;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.96rem;
  font-weight: 200;
  box-shadow: 0 4px 10px rgba(56, 189, 248, 0.6);
}

/* ----- Mobile : marges plus petites, ronds un peu réduits ----- */
@media (max-width: 640px) {
  .gta-answers li {
    margin: 0.6rem 0.1rem;
    padding: 0.6rem 0.75rem 0.6rem 3.2rem;
    font-size: 0.96rem;
  }

  .gta-answers li::before {
    left: 1.rem;
    width: 1.rem;
    height: 1.rem;
    font-size: 0.9rem;
	 border:none
  }

}

.gta-level-title-layout .level-solved-count-message {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #4b5563;
}

/* ===== Master page: intro block ===== */
.master-intro {
  max-width: 840px;
  margin: 0 auto 1.4rem;
  font-size: 0.98rem;
  line-height: 1.6;
}

/* Small "how to use" card */
.gta-master-howto {
  max-width: 840px;
  margin: 0 auto 1.6rem;
  padding: 0.9rem 1.1rem;
  border-radius: 12px;
  background: #f5f7ff;
  border: 1px solid var(--gta-border);
  font-size: 0.95rem;
}

.gta-master-howto ul {
  margin: 0.4rem 0 0;
  padding-left: 1.1rem;
}

/* ===== Level index grid ===== */
.gta-level-index {
  max-width: 980px;
  margin: 0 auto 2.2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
}

.gta-level-range {
  padding: 0.9rem 1.1rem;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid var(--gta-border);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.gta-level-range h3 {
  margin: 0 0 0.5rem;
  font-size: 0.98rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gta-main);
}

/* Level links list */
.gta-level-range ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.gta-level-range li {
  margin: 0.12rem 0;
}

.gta-level-range a {
  display: inline-block;
  font-size: 0.92rem;
  text-decoration: none;
  color: var(--gta-text);
  padding: 0.12rem 0;
}

.gta-level-range a:hover {
  color: var(--gta-main);
  text-decoration: underline;
}

/* ===== Small FAQ at the bottom ===== */
.gta-master-faq {
  max-width: 840px;
  margin: 2.4rem auto 0;
  font-size: 0.95rem;
}

.gta-master-faq h2 {
  font-size: 1.25rem;
  margin-bottom: 0.8rem;
}

.gta-master-faq h3 {
  font-size: 1rem;
  margin-top: 1rem;
  margin-bottom: 0.3rem;
}

/* Mobile tweaks: reduce side margins */
@media (max-width: 640px) {
  .gta-master-howto,
  .gta-master-faq {
    margin-left: 0.5rem;
    margin-right: 0.5rem;
  }

  .gta-level-index {
    margin-left: 0.5rem;
    margin-right: 0.5rem;
    grid-template-columns: 1fr; /* one column for easy tapping */
  }
}


