@font-face {
  font-family: "Poppins";
  src: url("../assets/fonts/Poppins-Regular.ttf") format("truetype");
  font-weight: 400;
}

@font-face {
  font-family: "Poppins";
  src: url("../assets/fonts/Poppins-Bold.ttf") format("truetype");
  font-weight: 700;
}

@font-face {
  font-family: "Poppins";
  src: url("../assets/fonts/Poppins-Black.ttf") format("truetype");
  font-weight: 900;
}

:root {
  --blue: #0aa5f7;
  --blue-bright: #17b6ff;
  --blue-dark: #0077bd;
  --blue-shadow: #025f9f;
  --ink: #111111;
  --muted: #8f8f8f;
  --paper: #ffffff;
  --wash: #f6f6f6;
  --footer: #18120f;
  --glass-blue: rgba(10, 165, 247, 0.92);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Poppins", Arial, sans-serif;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
  padding: 0 36px;
  background: linear-gradient(90deg, rgba(10, 165, 247, 0.78), rgba(0, 119, 189, 0.78));
  transition: min-height 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled,
.blog-header,
.post-page .site-header {
  min-height: 78px;
  background: var(--glass-blue);
  box-shadow: 0 8px 24px rgba(0, 70, 130, 0.22);
  backdrop-filter: blur(12px);
}

.blog-header {
  position: sticky;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand img {
  width: 118px;
  max-height: 58px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  color: var(--paper);
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.site-nav a {
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  color: #dff6ff;
}

.nav-cta,
.big-cta {
  border-radius: 14px;
  color: var(--paper) !important;
  box-shadow: 0 5px 0 var(--blue-shadow);
}

.nav-cta {
  padding: 14px 20px;
  background: var(--paper);
  color: var(--blue-dark) !important;
}

.big-cta {
  background: var(--blue);
}

.nav-outline {
  padding: 16px 22px;
  border: 2px solid var(--paper);
  border-radius: 3px;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 42px;
  border: 2px solid var(--paper);
  border-radius: 3px;
  background: transparent;
}

.nav-toggle span {
  display: block;
  width: 23px;
  height: 3px;
  margin: 4px auto;
  background: var(--paper);
}

.home-hero {
  position: relative;
  min-height: 720px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #777777;
}

.home-hero > img,
.post-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-hero > img {
  object-position: center;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 120, 215, 0.12), rgba(0, 80, 160, 0.32)),
    rgba(0, 0, 0, 0.16);
}

.home-hero-copy,
.post-hero-title {
  position: relative;
  z-index: 1;
  padding: 0 20px;
  color: var(--paper);
  text-align: center;
}

.post-hero-title p {
  margin: 0 0 20px;
  color: var(--paper);
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 8px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.post-hero h1 {
  margin: 0 0 34px;
  color: var(--paper);
  font-size: 5.4rem;
  font-weight: 900;
  letter-spacing: 2px;
  line-height: 1;
  text-transform: uppercase;
}

.hero-logo {
  width: min(620px, 78vw);
  max-height: 300px;
  object-fit: contain;
  margin: 0 auto 36px;
}

.big-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0 28px;
  color: var(--paper);
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.join-section,
.latest-news,
.student-section {
  padding: 78px 20px;
}

.narrow,
.latest-news,
.student-section {
  max-width: 900px;
  margin: 0 auto;
}

.join-section {
  text-align: center;
}

.join-section h2,
.latest-news h2,
.student-section h2 {
  margin-bottom: 22px;
  color: var(--ink);
  font-size: 2.4rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.15;
}

p,
li {
  color: #303030;
  font-size: 1rem;
  line-height: 1.75;
}

.two-column {
  max-width: 900px;
  margin: 0 auto;
  padding: 18px 20px 78px;
}

.two-column h2 {
  font-size: 1.55rem;
  font-weight: 700;
}

.post-card img {
  background: var(--wash);
}

.check-list {
  margin: 20px 0 0;
  padding-left: 22px;
}

.check-list li {
  margin-bottom: 8px;
  font-weight: 700;
}

.latest-news {
  border-top: 1px solid #e5e5e5;
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 30px;
}

.section-title-row a,
.read-more,
.inline-button {
  color: var(--blue-dark);
  font-size: 0.95rem;
}

.inline-button,
.quiet-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.inline-button {
  margin-top: 14px;
  background: var(--blue);
  color: var(--paper);
  box-shadow: 0 4px 0 var(--blue-shadow);
}

.quiet-button {
  background: #eaf8ff;
  color: var(--blue-dark);
}

.home-posts,
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 54px 52px;
}

.post-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin-bottom: 18px;
}

.post-card h2,
.post-card h3 {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 1.45rem;
  font-weight: 400;
  letter-spacing: 1px;
  line-height: 1.2;
  text-transform: uppercase;
}

.post-card time,
.post-card .category {
  display: inline-block;
  margin-bottom: 14px;
  color: #b0b0b0;
  font-size: 0.95rem;
}

.post-card p {
  margin-bottom: 12px;
  font-size: 0.95rem;
  line-height: 1.55;
}

.muted-section {
  background: var(--wash);
}

.blog-main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 150px 20px 110px;
}

.blog-tools {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  margin-bottom: 36px;
}

.blog-tools p {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  text-transform: uppercase;
}

.search-box {
  position: relative;
  display: block;
}

.search-box span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.search-box input {
  width: 100%;
  min-height: 54px;
  padding: 0 20px;
  border: 1px solid #c9c9c9;
  border-radius: 0;
  color: var(--ink);
  font: inherit;
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 44px 190px;
}

.category-tabs button {
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
}

.category-tabs button.is-active {
  color: var(--blue);
}

.post-hero {
  position: relative;
  min-height: 640px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #777777;
}

.post-article {
  max-width: 760px;
  margin: 0 auto;
  padding: 86px 20px 110px;
}

.post-article .post-meta-line {
  margin-bottom: 36px;
  color: #999999;
  text-align: center;
}

.post-article h2 {
  margin: 46px 0 14px;
  color: var(--ink);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
}

.post-article h2:first-of-type {
  margin-top: 0;
}

.post-article p {
  margin-bottom: 24px;
  font-size: 1.05rem;
}

.post-article ul {
  margin: 0 0 28px;
  padding-left: 24px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  min-height: 126px;
  padding: 30px 20px;
  background: var(--footer);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--paper);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.no-posts {
  grid-column: 1 / -1;
  color: var(--muted);
}

.student-id-main {
  padding: 140px 20px 86px;
  background: var(--paper);
}

.student-id-intro {
  max-width: 980px;
  margin: 0 auto 34px;
  color: var(--ink);
  text-align: center;
}

.small-label {
  margin-bottom: 10px;
  color: var(--blue-dark);
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.student-id-intro h1 {
  margin-bottom: 16px;
  color: var(--blue);
  font-size: 4.4rem;
  font-weight: 900;
  line-height: 1;
}

.student-id-intro p:not(.small-label) {
  max-width: 720px;
  margin: 0 auto;
  color: var(--ink);
}

.id-builder {
  max-width: 1260px;
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  margin: 0 auto;
}

.id-controls {
  display: grid;
  gap: 18px;
  padding: 22px;
  border-radius: 18px;
  background: var(--paper);
  box-shadow: 0 18px 40px rgba(0, 72, 134, 0.18);
}

.id-controls label {
  display: grid;
  gap: 8px;
  color: var(--blue-dark);
  font-weight: 900;
}

.id-controls input,
.id-controls select {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  border: 2px solid #c7ecff;
  border-radius: 10px;
  background: #f7fcff;
  color: var(--ink);
  font: inherit;
}

.id-controls input[type="file"] {
  min-height: auto;
  padding: 12px;
}

.id-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.student-card {
  position: relative;
  aspect-ratio: 16 / 9;
  container-type: inline-size;
  overflow: hidden;
  border-radius: 0;
  background: url("../assets/student-id-reference.png") center / contain no-repeat;
  box-shadow: 0 20px 50px rgba(0, 72, 134, 0.28);
}

.student-card-body {
  position: absolute;
  inset: 0;
  display: block;
  padding: 0;
}

.student-photo {
  position: absolute;
  left: 5.6%;
  top: 31.2%;
  width: 25.7%;
  height: 46.6%;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 9.5%;
  background: transparent;
  background-position: center;
  background-size: cover;
  color: var(--paper);
  font-size: clamp(0.8rem, 1.4vw, 1.2rem);
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.student-photo.has-photo {
  background-color: #dff6ff;
}

.student-info p {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.student-info strong {
  position: absolute;
  left: 36.6%;
  width: 31.8%;
  color: var(--ink);
  font-size: clamp(1.05rem, 3.8cqw, 2.25rem);
  font-weight: 700;
  line-height: 1;
  text-align: left;
  overflow-wrap: anywhere;
}

.student-info strong:nth-of-type(1) {
  top: 41.8%;
}

.student-info strong:nth-of-type(2) {
  top: 56.4%;
}

.student-info strong:nth-of-type(3) {
  top: 71%;
}

.student-tag {
  display: none;
}

@media (max-width: 960px) {
  .site-header {
    min-height: 78px;
    padding: 0 20px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    right: 16px;
    left: 16px;
    display: grid;
    gap: 0;
    padding: 14px 18px;
    background: var(--blue);
    opacity: 0;
    pointer-events: none;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    padding: 12px 0;
    white-space: normal;
  }

  .home-hero,
  .post-hero {
    min-height: 560px;
  }

  .post-hero h1 {
    font-size: 4rem;
  }

  .post-hero-title p {
    font-size: 1rem;
    letter-spacing: 4px;
  }

  .home-posts,
  .post-grid,
  .blog-tools,
  .id-builder,
  .student-card-body {
    grid-template-columns: 1fr;
  }

  .category-tabs {
    margin-left: 0;
  }
}

@media (max-width: 560px) {
  .brand img {
    width: 96px;
    max-height: 48px;
  }

  .home-hero,
  .post-hero {
    min-height: 500px;
  }

  .post-hero h1 {
    font-size: 3rem;
  }

  .join-section,
  .values-section,
  .latest-news,
  .student-section {
    padding: 54px 18px;
  }

  .student-id-main {
    padding-top: 112px;
  }

  .student-id-intro h1 {
    font-size: 3rem;
  }

  .student-card-body {
    padding: 0;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }
}
