/* styles.css */
:root{
  --bg: #0f1014;
  --panel: rgba(255,255,255,.06);
  --panel2: rgba(255,255,255,.08);
  --stroke: rgba(255,255,255,.12);

  --text: rgba(255,255,255,.92);

  --accent: #44d7c6;
  --accent2:#b98cff;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin:0;
  color: var(--text);
  font-family: 'Epilogue', 'Roboto', sans-serif;
}

main{
  width: min(990px, 92vw);
  margin: clamp(22px, 4vw, 54px) auto;
}

.mcq-icon > img, .frq-icon > img{
    width: 24px;
}

.mcq-icon > img{
    bottom: 3px;
}

.frq-icon > img{
    bottom: 2px;
}

.muted{ color: var(--muted); }



.pill{
  font-size: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  color: #101116;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  font-weight: 700;
  width: 110px;
}

.pill-ghost{
  background: transparent;
  color: var(--text);
  border-color: var(--stroke);
}

/* JUMP LINKS */
.jump{
  display:flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 6px;
  padding: 10px 0;
}

.jump a{
  text-decoration:none;
  color: rgba(255,255,255,.82);
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.04);
  padding: 7px 10px;
  border-radius: 999px;
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}

.jump a:hover{
  transform: translateY(-1px);
  border-color: rgba(68,215,198,.35);
  background: rgba(255,255,255,.06);
}

.card-description{
    color: rgba(255,255,255,.68);
    margin-bottom: 2%;
    font-family: 'Epilogue', 'Roboto', sans-serif;
    font-style: italic;
}

/* GROUPS */
.group{
  margin-top: 16px;
  padding-top: 10px;
}

.group-head{
  display:flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin: 8px 0 10px;
}

.group-head h2{
  margin:0;
  font-size: 16px;
  letter-spacing: -0.01em;
  position: relative;
}

.group-head h2::after{
  content:"";
  display:block;
  height: 2px;
  width: 56px;
  margin-top: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  opacity: .9;
}

.group-head p{
  margin:0;
  color: var(--muted);
  font-size: 13px;
}

/* GRID */
.grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}



/* CARD */
.card{
  border: 1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.04));
  border-radius: 16px;
  padding: 16px;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
  margin-bottom: 1%;
}

.card:hover{
  transform: translateY(-2px);
  border-color: rgba(185,140,255,.32);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.05));
}

.card-top{
  display:flex;
  gap: 12px;
  align-items: flex-start;
}

.badge{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display:grid;
  place-items:center;
  font-weight: 800;
  color: #101116;
  background: #a33077;
  font-family: 'Epilogue', 'Roboto', sans-serif;
  /* background: linear-gradient(90deg, var(--accent), var(--accent2)); */
  flex: 0 0 auto;
}

.badge > div{
    position: relative;
    top: 2px
}

.title-wrap h3{
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.01em;
  font-family: 'Epilogue', 'Roboto', sans-serif;
}

.title-wrap p{
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

/* ACTION BUTTONS */
.actions{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
  margin-left: 40px;
}

/* .btn{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration:none;

  background: linear-gradient(90deg, var(--accent), var(--accent2));
  color: #101116;
  border: 1px solid rgba(255,255,255,.10);
  font-weight: 750;

  transition: transform .12s ease, filter .12s ease, border-color .12s ease;
} */

.btn{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration:none;
  font-family: 'Epilogue', 'Roboto', sans-serif;
  background-color: #499fb7;
  color: #101116;
  border: 1px solid rgba(255,255,255,.10);
  font-weight: 750;
  font-size: 15px;
  transition: transform .12s ease, filter .12s ease, border-color .12s ease;
}

.btn:hover{
  transform: translateY(-1px);
  filter: brightness(1.05);
}

/* .btn-ghost{
  background: transparent;
  color: var(--text);
  border: 1px solid var(--stroke);
} */

.btn-ghost:hover{
  border-color: rgba(68,215,198,.35);
  filter: none;
}

.icon{ opacity: .95; }

/* ACCESSIBILITY */
a:focus-visible{
  outline: 3px solid rgba(68,215,198,.55);
  outline-offset: 3px;
  border-radius: 12px;
}

@media (max-width: 520px) {
  main{
    width: min(990px, 94vw);
    margin: 18px auto;
  }

  .grid{
    grid-template-columns: 1fr; /* was 2 columns */
    gap: 12px;
  }

  .card{
    padding: 14px;
  }

  .badge{
    width: 30px;
    height: 30px;
    border-radius: 10px;
  }

  .title-wrap h3{
    font-size: 16px;
  }

  .actions{
    margin-left: 0; /* was 40px */
    gap: 8px;
  }

  /* make buttons easier to tap + avoid awkward wrapping */
  .btn{
    width: 100%;
    justify-content: center;
    font-size: 14px;
    padding: 10px 12px;
  }

  .mcq-icon > img, .frq-icon > img{
    width: 20px;
  }
}

/* Very small screens */
@media (max-width: 360px) {
  .title-wrap h3{
    font-size: 15px;
  }
  .btn{
    font-size: 13px;
    padding: 9px 10px;
  }
}