/* =========================
   GLOBAL RESET
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

/* =========================
   THEME VARIABLES (CLASSIC)
========================= */
:root {
  --primary-gold: #d4af37;
  --secondary-gold: #b8860b;
  --deep-navy: #1b263b;
  --warm-cream: #fdf4e3;
  --light-parchment: #fff8e7;
  --charcoal-dark: #2c2c2c;
  --text-secondary: #5a5a5a;
  --shadow-main: 0 8px 32px rgb(0 0 0 / 12%);
  --shadow-hover: 0 20px 40px rgb(0 0 0 / 18%);
}

/* =========================
   BASE STYLES
========================= */
body {
  font-family: "Crimson Text", "Georgia", serif;
  font-size: 15px;
  line-height: 1.7;
  background: linear-gradient(
    135deg,
    var(--light-parchment) 0%,
    var(--warm-cream) 100%
  );
  color: var(--charcoal-dark);
}

/* =========================
   HEADER / NAVBAR
========================= */

      header {
        background: rgb(255 255 255 / 98%);
        backdrop-filter: saturate(180%) blur(20px);
        border-bottom: 3px solid var(--primary-gold);
        padding: 1rem 6%;
        position: sticky;
        top: 0;
        z-index: 1000;
        box-shadow: var(--shadow-main);
      }

      .navbar-container {
        max-width: 1400px;
        margin: 0 auto;
        display: flex;
        justify-content: space-between;
        align-items: center;
      }

      header h1 {
        font-family: "Playfair Display", serif;
        font-size: clamp(1.6rem, 3vw, 1.9rem); /* Smaller logo */
        font-weight: 700;
        background: linear-gradient(
          135deg,
          var(--deep-navy) 0%,
          var(--primary-gold) 70%
        );
        background-clip: text;
        -webkit-text-fill-color: transparent;
        letter-spacing: -0.01em;
      }

      .nav-links {
        display: flex;
        align-items: center;
        gap: 2rem;
      }

      .nav-links a {
        text-decoration: none;
        color: var(--charcoal-dark) !important;
        font-family: "Inter", -apple-system, sans-serif;
        font-weight: 500;
        font-size: 0.95rem; /* Smaller nav links */
        padding: 0.4rem 0;
        position: relative;
        transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        white-space: nowrap;
        text-transform: uppercase;
        letter-spacing: 0.3px;
      }

      .nav-links a::before {
        content: "";
        position: absolute;
        bottom: 0;
        left: 50%;
        width: 0;
        height: 2px; /* Thinner underline */
        background: linear-gradient(
          90deg,
          var(--primary-gold),
          var(--secondary-gold)
        );
        transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        transform: translateX(-50%);
        border-radius: 1px;
      }

      .nav-links a:hover {
        color: var(--deep-navy) !important;
        transform: translateY(-1px);
      }

      .nav-links a:hover::before {
        width: 70%;
      }


main {
  margin-top: 0;
  padding-top: 0;
}
header h1 i {
  font-size: 0.95em;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}



/* =========================
   SECTIONS
========================= */
main section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 5rem 6%;
}

section h3 {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.2rem, 4.5vw, 2.9rem);
  font-weight: 700;
  text-align: center;
  color: var(--deep-navy);
  margin-bottom: 1.2rem;
}

section h3::after {
  content: "";
  display: block;
  width: 90px;
  height: 3px;
  margin: 1.2rem auto 0;
  background: linear-gradient(
    90deg,
    var(--primary-gold),
    var(--secondary-gold)
  );
}

section p {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 3.5rem;
  font-size: 1.05rem;
  color: var(--text-secondary);
}

/* =========================
   CARD GRID
========================= */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  justify-items: center;
}

.card {
  width: 100%;
  max-width: 360px;
  padding: 2.2rem;
  border-radius: 20px;
  background: rgb(255 255 255 / 95%);
  box-shadow: var(--shadow-main);
  text-align: center;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.card h4 {
  font-family: "Playfair Display", serif;
  font-size: 1.45rem;
  color: var(--deep-navy);
  margin-bottom: 1.1rem;
}

.card p {
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* =========================
   FOOTER
========================= */
footer {
  background: var(--deep-navy);
  color: var(--warm-cream);
  text-align: center;
  padding: 3rem 6% 2.5rem;
  font-size: 0.95rem;
}

/* stylelint-disable-next-line no-descending-specificity */
footer a {
  color: var(--primary-gold);
  text-decoration: none;
  font-weight: 500;
}

/* =========================
   RESPONSIVE
========================= */
@media (width <= 768px) {
  .navbar-container {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
  }

  main section {
    padding: 3rem 5%;
  }

  section h3 {
    font-size: 2rem;
  }
}

@media (width <= 480px) {
  body {
    font-size: 14px;
  }

  .nav-links a {
    font-size: 0.8rem;
  }

  .card {
    padding: 1.6rem 1.3rem;
  }

  .card h4 {
    font-size: 1.25rem;
  }
}

/* =========================
   QUIZ SECTION SCROLLBAR
========================= */
#level-chain-wrapper::-webkit-scrollbar {
  display: none;
}
    