* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
:root {
  --accent: #6c63ff;
  --surface: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --border: rgba(0,0,0,0.08);
}

body {
  font-family: 'Outfit', sans-serif;
  background: #f7f7f9;
  color: #111827;
}

.page {
  max-width: 1920px;
  /* margin: 24px auto; */
  background: #fff;
  border-radius: 24px;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 12px 30px rgba(0,0,0,0.06);
}

/* Header */

nav a.active,
nav a:hover {
  opacity: 1;
}



h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 42px;
  font-weight: 900;
  letter-spacing: -0.03em;
}


.subtitle {
  margin-top: 10px;
  font-size: 17px;
  color: var(--muted);
}

.semester-heading {
  margin: 56px 0 28px;
  font-family: 'Montserrat', sans-serif;
  font-size: 30px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
}


/* Tabs */
.tabs {
  margin-top: 32px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tabs button {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.08);
  background: transparent;
  cursor: pointer;
}

.tabs button.active {
  background: #6c63ff;
  color: #fff;
  border-color: #6c63ff;
}

/* Search */
#search {
  margin-top: 20px;
  padding: 12px 16px;
  width: 100%;
  max-width: 420px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.08);
}

/* Year Blocks */


.actions button:hover,
.actions a:hover {
  background: #6c63ff;
  color: #fff;
  border-color: #6c63ff;
}

/* Footer */
footer {
  text-align: center;
  padding: 24px;
  color: #6b7280;
  border-top: 1px solid rgba(0,0,0,0.06);
}

/* PDF Modal */
#pdfModal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  justify-content: center;
  align-items: center;
}

.pdfBox {
  width: 90%;
  height: 85vh;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}

.pdfBox span {
  position: absolute;
  right: 14px;
  top: 10px;
  font-size: 24px;
  cursor: pointer;
}

iframe {
  width: 100%;
  height: 100%;
  border: none;
}
.pyq-intro {
  margin-top: 20px;
  max-width: 720px;
  color: var(--muted);
}

.pyq-intro ul {
  margin-top: 12px;
  padding-left: 18px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 6px;
  font-size: 14px;
}

.year-title {
  margin: 32px 0 16px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}

.year-title::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}


.pyq-card strong {
  font-size: 15px;
  line-height: 1.4;
}

.pyq-note {
  margin-top: 28px;
  font-size: 13px;
  color: var(--muted);
}

.year-grid {
  gap: 18px;
}
.year-card {
  margin-top: 48px;
  padding: 32px;
  border-radius: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 12px 30px rgba(0,0,0,0.04);
}
.year-header h3 {
  font-size: 24px;
  font-weight: 700;
}
.year-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.year-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.year-count {
  font-size: 13px;
  color: var(--muted);
}


r-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.year-header h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 22px;
  font-weight: 700;
}


.year-icon {
  font-size: 20px;
}

.pyq-card {
  padding: 22px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform .2s ease, box-shadow .2s ease;
}

.pyq-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(0,0,0,0.08);
}

.pdf-icon {
  font-size: 30px;
}

.pyq-card strong {
  font-size: 15px;
  font-weight: 600;
}



.pdf-icon {
  font-size: 28px;
}


.pyq-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.pyq-actions button,
.pyq-actions a {
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  color: var(--text);
}

.pyq-actions button:hover,
.pyq-actions a:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 0;
}


.pyq-hero {
  margin-top: 32px;
  padding: 40px;
  border-radius: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 12px 30px rgba(0,0,0,0.06);
}
.semester-note {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 20px;
}
.pyq-overview {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px 24px;
}

.pyq-overview div {
  text-align: center;
}

.pyq-overview strong {
  font-size: 22px;
  font-weight: 700;
  display: block;
}

.pyq-overview span {
  font-size: 13px;
  color: #6b7280;
}

.content {
  padding: 56px 24px 80px;
}
.semester-heading {
  margin: 28px 0 20px;
}

#search {
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  border-radius: 16px;
  padding: 14px 18px;
}
.tabs {
  position: sticky;
  top: 72px; /* navbar height */
  z-index: 20;
  background: #fff;
  padding: 12px 0 16px;
  margin-top: 32px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.year-card {
  animation: yearReveal 0.45s ease forwards;
  opacity: 0;
  transform: translateY(14px);
}

@keyframes yearReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.skeleton {
  height: 160px;
  border-radius: 24px;
  background: linear-gradient(
    90deg,
    #f0f0f0 25%,
    #e8e8e8 37%,
    #f0f0f0 63%
  );
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
  margin-top: 24px;
}

@keyframes shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
.latest {
  margin-left: 12px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 999px;

  background: rgba(108, 99, 255, 0.12);
  color: #6c63ff;

  vertical-align: middle;
}
.content::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;

  background:
    radial-gradient(
      rgba(0,0,0,0.08) 1px,
      transparent 1px
    );

  background-size: 22px 22px;
}

/* Dark mode dots */
[data-theme="dark"] .content::before {
  background:
    radial-gradient(
      rgba(255,255,255,0.08) 1px,
      transparent 1px
    );
}

