/* ==================== FONT IMPORTS ==================== */
@font-face {
  font-family: 'Lexend';
  src: url('../font/Lexend/Lexend-Thin.woff2') format('woff2'),
       url('../font/Lexend/Lexend-Thin.ttf') format('truetype');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Lexend';
  src: url('../font/Lexend/Lexend-ExtraLight.woff2') format('woff2'),
       url('../font/Lexend/Lexend-ExtraLight.ttf') format('truetype');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Lexend';
  src: url('../font/Lexend/Lexend-Light.woff2') format('woff2'),
       url('../font/Lexend/Lexend-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Lexend';
  src: url('../font/Lexend/Lexend-Regular.woff2') format('woff2'),
       url('../font/Lexend/Lexend-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Lexend';
  src: url('../font/Lexend/Lexend-Medium.woff2') format('woff2'),
       url('../font/Lexend/Lexend-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Lexend';
  src: url('../font/Lexend/Lexend-SemiBold.woff2') format('woff2'),
       url('../font/Lexend/Lexend-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Lexend';
  src: url('../font/Lexend/Lexend-Bold.woff2') format('woff2'),
       url('../font/Lexend/Lexend-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Lexend';
  src: url('../font/Lexend/Lexend-ExtraBold.woff2') format('woff2'),
       url('../font/Lexend/Lexend-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Lexend';
  src: url('../font/Lexend/Lexend-Black.woff2') format('woff2'),
       url('../font/Lexend/Lexend-Black.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* ==================== RESET & BASE STYLES ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-blue: #0A4B8F;
  --secondary-blue: #1565C0;
  --light-blue: #E3F2FD;
  --light-grey: #F5F5F5;
  --deep-grey: #333333;
  --medium-grey: #666666;
  --success-green: #28a745;
  --failure-red: #8B0000;
  --white: #FFFFFF;
  --border-color: #E0E0E0;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.15);
}

body {
  font-family: 'Lexend', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--deep-grey);
  background-color: var(--light-grey);
  overflow-x: hidden;
}

a {
  color: inherit;
}

.top {
  background: linear-gradient(180deg, #fffef9 0%, #fff8e9 100%);
  border-bottom: 1px solid #ebdfc3;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 20;
}

.top-shell {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  border-top: 1px solid #ecd9aa;
  border-bottom: 1px solid #ecd9aa;
  border-left: 0;
  border-right: 0;
  border-radius: 0;
  background: linear-gradient(180deg, #fffef9 0%, #fff8e9 100%);
  box-shadow: 0 4px 14px rgba(18, 53, 111, 0.07);
  overflow: hidden;
}

.top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 88px;
  padding: 8px 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 72px;
}

.brand-logo {
  width: auto;
  height: 68px;
  max-width: 100%;
  display: block;
}

.buttons {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 0;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  text-decoration: none;
  padding: 0 20px;
  border-radius: 9px;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.8px;
  line-height: 1;
}

.btn-login {
  background: #10356d;
  color: #fff;
  border: 1px solid #2b4f8f;
}

.btn-register {
  background: #d89f2a;
  color: #fff;
  border: 1px solid #c28a18;
}

.menu {
  margin-top: 0;
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 0;
  background: linear-gradient(180deg, #183e7b, #0f2f63);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.menu a {
  text-decoration: none;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.25px;
  white-space: nowrap;
}

.menu a.active,
.menu a:hover {
  border-color: #e0a423;
  background: rgba(224, 164, 35, 0.25);
}

.wrap {
  max-width: 1280px;
  margin: 12px auto 0;
  padding: 0 10px 30px;
}

.card {
  background: var(--white);
  border: 1px solid #ead8ad;
  border-radius: 12px;
  padding: 16px;
}

.small {
  font-size: 13px;
  color: #44516a;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.tile {
  background: #fff;
  border: 1px solid #ead8ad;
  border-radius: 12px;
  padding: 14px;
}

.tile h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

input {
  width: 100%;
  margin-top: 8px;
  margin-bottom: 14px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

button {
  background: #0c2656;
  color: #fff;
  border: 0;
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
}

.msg-error {
  color: #a01919;
}

.msg-success {
  color: #11642a;
}

.hero-main {
  background: radial-gradient(140% 180% at 90% 15%, #ffe8a8 0%, #f6c454 42%, #efb33d 100%);
  border-radius: 0;
  border-top: 1px solid #edcf86;
  border-bottom: 1px solid #dfbd6f;
  color: #0f2f63;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
  padding: 20px max(12px, calc((100vw - 1280px) / 2 + 12px)) 24px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65), 0 12px 30px rgba(153, 107, 21, 0.17);
}

.eyebrow {
  font-size: 12px;
  font-weight: 800;
  color: #7d5412;
  letter-spacing: 1.2px;
  margin-bottom: 10px;
}

.hero-left h1 {
  font-size: clamp(38px, 9.4vw, 78px);
  line-height: 1.03;
  margin-bottom: 14px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0e2a5d;
  text-wrap: balance;
}

.step-stack {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
  width: 100%;
  justify-items: stretch;
}

.step-ribbon {
  position: relative;
  height: 76px;
  width: 100%;
  display: grid;
  grid-template-columns: 136px 1fr;
  align-items: stretch;
  filter: drop-shadow(0 8px 14px rgba(15, 47, 99, 0.16));
}

.step-tag {
  position: relative;
  z-index: 2;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
}

.step-tag::after {
  content: "";
  position: absolute;
  right: -26px;
  top: 0;
  width: 0;
  height: 0;
  border-top: 38px solid transparent;
  border-bottom: 38px solid transparent;
  border-left: 26px solid;
}

.step-no {
  font-size: 34px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.step-label {
  margin-top: 3px;
  font-size: 14px;
  letter-spacing: 0.22em;
  font-weight: 500;
}

.step-copy {
  position: relative;
  z-index: 1;
  margin: 0;
  margin-left: -2px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(15, 47, 99, 0.12);
  border-left: 0;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
  display: flex;
  align-items: center;
  padding: 0 28px 0 38px;
  color: #0f2f63;
  font-size: clamp(22px, 2.8vw, 38px);
  line-height: 1;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
}

.step-ribbon-gold .step-tag {
  background: linear-gradient(180deg, #f4c351, #d89f2a);
}

.step-ribbon-gold .step-tag::after {
  border-left-color: #d89f2a;
}

.step-ribbon-blue .step-tag {
  background: linear-gradient(180deg, #2c7ab7, #1d5f98);
}

.step-ribbon-blue .step-tag::after {
  border-left-color: #1d5f98;
}

.step-ribbon-navy .step-tag {
  background: linear-gradient(180deg, #174077, #10315f);
}

.step-ribbon-navy .step-tag::after {
  border-left-color: #10315f;
}

.hero-note {
  width: 100%;
  max-width: none;
  min-height: 76px;
  display: flex;
  align-items: center;
  font-size: 14px;
  line-height: 1.5;
  color: #133c73;
  margin-bottom: 16px;
  padding: 12px 22px;
  border: 1px solid rgba(15, 47, 99, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 8px 14px rgba(15, 47, 99, 0.16);
}

.hero-cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cta {
  text-decoration: none;
  text-align: center;
  min-width: 136px;
  padding: 11px 18px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
}

.cta.primary {
  background: linear-gradient(180deg, #143c77, #0f2f63);
  color: #fff;
  border: 1px solid #0f2f63;
  box-shadow: 0 8px 18px rgba(15, 47, 99, 0.26);
}

.cta.secondary {
  border: 1px solid rgba(15, 47, 99, 0.35);
  color: #0f2f63;
  background: rgba(255, 255, 255, 0.68);
}

.hero-panel {
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.82));
  border: 1px solid rgba(15, 47, 99, 0.2);
  padding: 18px;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 22px rgba(19, 60, 115, 0.14);
}

.hero-panel h3 {
  font-size: 17px;
  line-height: 1.1;
  color: #133c73;
  margin-bottom: 14px;
}

.meter {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #1f4170;
  font-weight: 600;
  margin: 8px 0 5px;
}

.bar {
  height: 7px;
  border-radius: 999px;
  background: rgba(19, 60, 115, 0.25);
  overflow: hidden;
  margin-bottom: 10px;
}

.bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #e2a834, #c98912);
}

.panel-btn {
  display: block;
  text-align: center;
  text-decoration: none;
  font-size: 13px;
  margin-top: auto;
  background: linear-gradient(180deg, #143c77, #0f2f63);
  color: #fff;
  padding: 11px;
  border-radius: 8px;
  font-weight: 700;
}

.stats-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 14px;
  padding: 10px 0;
}

.stat {
  background: #fff;
  border: 1px solid #ecdab1;
  border-top: 3px solid #dfa42b;
  border-radius: 10px;
  padding: 10px;
  text-align: center;
}

.stat strong {
  display: block;
  font-size: clamp(34px, 8vw, 50px);
  color: #0f2f63;
  line-height: 1;
}

.stat span {
  display: block;
  font-size: 11px;
  color: #586177;
  margin-top: 5px;
}

.home-section {
  margin-top: 30px;
}

.home-section.alt {
  padding: 20px;
  border-radius: 14px;
  background: linear-gradient(180deg, #f6f8fc, #f9f2df);
  border: 1px solid #ebdfc0;
}

.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 14px;
  align-items: start;
}

.section-head h2 {
  color: #0c2656;
  font-size: clamp(31px, 8.8vw, 52px);
  line-height: 1.08;
  letter-spacing: 0.5px;
}

.section-head p {
  background: #fff;
  border: 1px solid #ecd4a3;
  border-left: 4px solid #d9a437;
  border-radius: 8px;
  padding: 10px;
  color: #38475f;
  font-size: 12px;
}

.home-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.exam-card {
  background: #fff;
  border: 1px solid #dde5f0;
  border-top: 3px solid #f0be53;
  border-radius: 10px;
  padding: 12px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.exam-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.exam-card h3 {
  font-size: 16px;
  color: #0d2f63;
  margin-bottom: 8px;
}

.exam-card p {
  min-height: 66px;
  font-size: 12px;
  color: #38475f;
  margin-bottom: 10px;
}

.exam-card a {
  display: block;
  text-decoration: none;
  text-align: center;
  background: linear-gradient(180deg, #173f7d, #0d2e62);
  color: #fff;
  font-size: 11px;
  border-radius: 7px;
  padding: 8px 10px;
  font-weight: 600;
}

.update-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.update-card {
  background: #fff;
  border: 1px solid #e5e8f1;
  border-radius: 10px;
  padding: 12px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.update-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.update-card h3 {
  color: #12356f;
  font-size: 17px;
  line-height: 1.2;
  margin-bottom: 8px;
}

.update-card p {
  color: #49566e;
  font-size: 12px;
}

.section-action {
  margin-top: 10px;
}

.section-action a {
  display: inline-block;
  text-decoration: none;
  background: #12356f;
  color: #fff;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
}

.site-footer {
  margin-top: 30px;
  background: linear-gradient(180deg, #173f7d, #0f2d63);
  color: #e8eef9;
  border-radius: 12px;
  padding: 20px 16px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.footer-logo {
  width: 155px;
  background: #fff;
  border-radius: 4px;
  margin-bottom: 8px;
}

.footer-brand p {
  font-size: 12px;
  color: rgba(232, 238, 249, 0.85);
}

.footer-links h4 {
  font-size: 14px;
  margin-bottom: 8px;
}

.footer-links a {
  display: block;
  color: #e8eef9;
  text-decoration: none;
  font-size: 12px;
  margin-bottom: 5px;
}

.post-login-note {
  margin-top: 10px;
  color: #102c5e;
  font-size: 13px;
}

.post-login-note a {
  color: #102c5e;
  font-weight: 600;
}

.link-gold {
  color: #ffd16a;
}

.panel-navy {
  max-width: 900px;
  margin: 40px auto;
  background: #13346f;
  border: 1px solid #e0a423;
  border-radius: 14px;
  padding: 24px;
  color: #fff;
}

.panel-cream {
  max-width: 900px;
  margin: 40px auto;
  background: #fff;
  border: 1px solid #e7d3a1;
  border-radius: 14px;
  padding: 24px;
}

@media (min-width: 640px) {
  .brand-logo {
    height: 74px;
  }

  .btn {
    font-size: 11px;
  }

  .menu a {
    font-size: 12px;
  }

  .stats-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-grid,
  .update-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .top-row {
    min-height: 96px;
    padding: 8px 24px;
  }

  .top {
    padding: 0;
  }

  .menu {
    flex-wrap: nowrap;
    overflow: visible;
    padding: 12px 24px;
  }

  .btn {
    font-size: 12px;
    height: 44px;
    padding: 0 24px;
  }

  .menu a {
    font-size: 13px;
    padding: 10px 18px;
  }

  .wrap {
    padding: 0 12px 30px;
  }

  .hero-main {
    grid-template-columns: minmax(0, 1.7fr) minmax(360px, 1fr);
    gap: 20px;
    padding-top: 28px;
    padding-bottom: 30px;
  }

  .hero-left h1 {
    font-size: clamp(56px, 4.6vw, 72px);
  }

  .step-ribbon {
    height: 78px;
    grid-template-columns: 144px 1fr;
  }

  .step-tag::after {
    right: -28px;
    border-top-width: 39px;
    border-bottom-width: 39px;
    border-left-width: 28px;
  }

  .step-no {
    font-size: 36px;
  }

  .step-copy {
    font-size: clamp(28px, 2.7vw, 44px);
    padding-left: 42px;
  }

  .hero-note {
    min-height: 78px;
  }

  .section-head {
    grid-template-columns: 1.2fr 1fr;
  }

  .stats-strip,
  .home-grid,
  .update-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .site-footer {
    grid-template-columns: 1.4fr repeat(4, 1fr);
  }
}

@media (min-width: 1200px) {
  .hero-left h1 {
    font-size: 68px;
  }

  .step-ribbon {
    max-width: 920px;
  }

  .hero-note {
    max-width: 920px;
  }

  .step-copy {
    font-size: 44px;
  }

  .brand-logo {
    height: 82px;
  }
}

@media (max-width: 380px) {
  .hero-left h1 {
    font-size: 30px;
  }

  .step-ribbon {
    height: 56px;
    grid-template-columns: 84px 1fr;
  }

  .step-tag::after {
    right: -18px;
    border-top-width: 28px;
    border-bottom-width: 28px;
    border-left-width: 18px;
  }

  .step-no {
    font-size: 24px;
  }

  .step-label {
    font-size: 10px;
  }

  .step-copy {
    font-size: 17px;
    padding: 0 12px 0 24px;
  }

  .hero-note {
    min-height: auto;
    padding: 10px 12px;
  }

  .brand-logo {
    height: 52px;
    width: auto;
  }

  .btn {
    padding: 8px 12px;
    font-size: 10px;
  }

  .menu a {
    padding: 8px 12px;
    font-size: 11px;
  }
}
