/* Shared navigation cards: one icon style, a clear destination, and restrained movement. */
.line-icon {
  width: 52px;
  height: 52px;
  display: block;
  flex-shrink: 0;
}
.card-arrow, .arrow-wrap .line-icon {
  width: 44px;
  height: 44px;
  transition: transform 280ms ease;
}
.premium-card {
  --card-background: #152d33;
  --card-border: #3a5157;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  text-align: left;
  background: var(--card-background);
  color: #f5f7f4;
  border: 1px solid var(--card-border);
  border-radius: 15px;
  padding: 34px;
  transition: transform 280ms ease, background-color 280ms ease, border-color 280ms ease;
}
.premium-card h3 {
  font-size: clamp(28px, 2.5vw, 36px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -.04em;
  margin: 38px 0 18px;
  max-width: 340px;
}
.premium-card p {
  font-size: 14px;
  line-height: 1.8;
  color: #bdcbcc;
  margin-bottom: 30px;
  max-width: 330px;
}
.premium-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}
.premium-card-top > .line-icon, .feature-icon {
  color: #b8cecd;
  transition: transform 280ms ease;
}
.card-index {
  font-size: 12px;
  letter-spacing: .08em;
  font-variant-numeric: tabular-nums;
  color: #b3c2c3;
}
.premium-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid #ffffff21;
  font-size: 12px;
  font-weight: 500;
}
.premium-card-bottom > span:first-child { max-width: 80%; }
.premium-card.is-featured {
  --card-background: #27685f;
  --card-border: #61978d;
}
.premium-card.is-featured .feature-icon,
.premium-card.is-featured .card-index,
.premium-card.is-featured p { color: #e1eeea; }
.premium-card:focus-visible,
.learning-card:focus-visible,
.certificate-mini:focus-visible,
.metric-card[href]:focus-visible {
  outline: 3px solid #c9954c;
  outline-offset: 5px;
}
@media (hover: hover) {
  .premium-card:hover {
    background: #1b383e;
    border-color: #8ba7a8;
    transform: translateY(-4px);
  }
  .premium-card.is-featured:hover { background: #2b7167; border-color: #c0d9cc; }
  .premium-card:hover .card-arrow,
  .premium-card:hover .arrow-wrap .line-icon,
  .learning-card:hover .card-arrow,
  .certificate-mini:hover .card-arrow,
  .metric-card[href]:hover .card-arrow { transform: translateX(6px); }
  .premium-card:hover .feature-icon,
  .premium-card:hover .premium-card-top > .line-icon { transform: translateY(-2px); }
}
.premium-card:focus-visible .card-arrow,
.premium-card:focus-visible .arrow-wrap .line-icon,
.learning-card:focus-visible .card-arrow,
.certificate-mini:focus-visible .card-arrow { transform: translateX(6px); }

/* The homepage is a destination map, not a grid of small dashboard widgets. */
.feature-hub {
  padding: 80px 0 88px;
  background: #0e2329;
  color: #f6f7f4;
  border-top: 1px solid #344e53;
}
.hub-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 45px;
  margin-bottom: 44px;
}
.hub-heading .eyebrow { color: #9ebeb9; margin-bottom: 20px; }
.hub-heading h2 { max-width: 650px; font-size: clamp(30px, 3.4vw, 46px); font-weight: 500; line-height: 1.16; margin: 0; }
.hub-heading > p { color: #b5c8c8; font-size: 14px; max-width: 240px; margin: 0 0 4px; }
.premium-feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.feature-card { min-height: 397px; }
.feature-card[data-coming-soon] .premium-card-bottom > span:first-child { color: #d6c49c; }

/* Dashboard sections remain directly reachable from homepage cards. */
.dashboard-section-nav { display: flex; flex-wrap: wrap; gap: 8px 25px; border-bottom: 1px solid var(--line); margin: 28px 0 35px; padding: 0 0 17px; }
.dashboard-section-nav a { font-size: 13px; color: var(--green); padding: 8px 0; border-bottom: 1px solid transparent; }
.dashboard-section-nav a:hover { border-bottom-color: var(--green); }
.progress-overview { padding: 0; border: 0; border-radius: 0; background: transparent; }
.progress-overview .section-heading { align-items: center; }
.progress-overview h2 { font-size: 22px; }
.metric-cards { padding: 24px 0 20px; gap: 16px; }
.metric-card {
  background: white;
  border: 1px solid #ccdada;
  border-radius: 11px;
  min-width: 0;
  min-height: 179px;
  padding: 22px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: border-color 280ms ease, background-color 280ms ease;
}
.stat-grid > .metric-card { border: 1px solid #ccdada; padding-right: 22px; }
.stat-grid > .metric-card:last-child { border: 1px solid #ccdada; }
.metric-card > span { font-size: 11px; font-weight: 500; }
.metric-card strong { font-size: 38px; line-height: 1.3; padding-top: 20px; padding-right: 25px; }
.metric-card .line-icon { width: 28px; height: 28px; position: absolute; right: 18px; bottom: 20px; color: #507c76; }
.metric-card.level-metric strong { font-size: 24px; line-height: 1.2; padding-right: 0; }
.metric-card.level-metric > small { font-size: 11px; margin-top: 10px; color: var(--muted); }
.metric-card[href]:hover { border-color: #5c8980; background: #f9fcfa; }
.overall-progress-label { display: flex; justify-content: space-between; gap: 15px; font-size: 12px; color: var(--muted); }
.overall-progress-label strong { color: var(--ink); }
.progress-overview > progress { height: 8px; }

/* Module status changes the hierarchy without turning every card into a new design. */
.module-grid { gap: 22px; }
.learning-card {
  min-height: 372px;
  padding: 28px;
  border: 1px solid #c5d6d3;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  box-shadow: none;
  transition: transform 280ms ease, border-color 280ms ease, background-color 280ms ease;
}
.learning-card .card-top { align-items: center; flex-wrap: nowrap; margin-bottom: 27px; }
.module-index { font-size: 32px; font-weight: 400; color: #537a73; letter-spacing: -.06em; line-height: 1; }
.learning-card .status { display: inline-flex; align-items: center; gap: 4px; padding: 5px 8px; font-size: 10px; }
.learning-card .status .line-icon { width: 15px; height: 15px; }
.learning-card h3 { font-size: clamp(24px, 2vw, 29px); font-weight: 500; line-height: 1.16; margin: 0 0 16px; }
.learning-card .module-number { font-size: 9px; color: #55756f; letter-spacing: 1.4px; }
.module-card-content > p:last-child { font-size: 13px; line-height: 1.8; margin-bottom: 24px; }
.module-meta { display: flex; flex-wrap: wrap; gap: 6px 15px; margin-top: auto; padding-bottom: 18px; color: #5b716d; font-size: 10px; }
.module-meta > span:first-child { font-weight: 600; }
.module-card-progress > div { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 10px; color: #536d65; }
.module-card-progress strong { font-weight: 500; }
.learning-card .module-card-progress progress { height: 4px; margin: 9px 0 0; background: #e6eeea; }
.learning-card .button.card-navigation { background: transparent; border: 0; border-top: 1px solid #d7e1dd; color: var(--green); padding: 17px 0 0; margin-top: 20px; border-radius: 0; font-size: 12px; display: flex; justify-content: space-between; gap: 12px; }
.learning-card .card-arrow { width: 38px; height: 38px; }
.learning-card.featured { background: #164c47; border-color: #387970; color: #f3f7f4; }
.learning-card.featured .module-index { color: #c6ddd3; }
.learning-card.featured .status { background: #376761; color: #f3f7f4; }
.learning-card.featured .module-card-content p,
.learning-card.featured .module-meta,
.learning-card.featured .module-card-progress > div { color: #cfdfd8; }
.learning-card.featured .button.card-navigation { color: white; border-color: #58867b; }
.learning-card.featured progress::-webkit-progress-bar { background: #476e61; }
.learning-card.featured progress::-webkit-progress-value { background: #c1dbc7; }
.learning-card.featured progress::-moz-progress-bar { background: #c1dbc7; }
.learning-card.is-active:not(.featured) { background: #edf4f0; }
.learning-card.is-complete { border-top: 3px solid #b09a66; background: #fffef9; }
.learning-card.is-complete .status { background: #edf2e7; color: #44623e; }
.next-card { background: white; border: 1px solid var(--line); color: var(--ink); }
.next-card .eyebrow, .next-card p { color: var(--muted); }
.next-card .button { border: 1px solid #b8ceca; background: transparent; color: var(--green); }
@media (hover: hover) {
  .learning-card:hover { transform: translateY(-4px); border-color: #527e72; }
  .learning-card.featured:hover { background: #205c54; border-color: #95bdae; }
  .certificate-mini:hover { transform: translateY(-4px); border-color: #929c89; }
}

/* Practice stays connected to the existing flashcards and assessments. */
.dashboard-section { margin-top: 55px; }
.dashboard-section .section-heading { gap: 24px; }
.dashboard-section .section-heading h2 { font-size: 28px; font-weight: 500; }
.dashboard-section .section-heading .eyebrow { margin-bottom: 12px; }
.practice-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 22px; }
.practice-card { padding: 32px; border: 1px solid #bbceca; border-radius: 12px; background: #eaf2ee; display: flex; flex-direction: column; }
.practice-card h3 { font-size: 29px; font-weight: 500; margin: 30px 0 16px; }
.practice-card p { font-size: 14px; }
.practice-card .line-icon { color: #3e7267; }
.practice-card .card-index { color: var(--muted); }
.practice-card label { margin-top: 8px; font-weight: 500; }
.practice-card select { background: #f8fcfa; border-color: #9ab9ae; }
.practice-links { margin-top: 20px; }
.practice-links a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; text-decoration: none; border-top: 1px solid #bacec3; }
.practice-links a:hover { text-decoration: underline; }
.practice-links .card-arrow { width: 33px; height: 33px; }
.planned-card { background: #f1f2ee; border-color: #d5dcd4; }
.availability { display: inline-block; color: #cddbd7; font-size: 12px; }
.planned-card .availability { margin-top: auto; padding-top: 25px; color: #63715f; }

/* Earned and upcoming certificates both have a clear next action. */
.certificate-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.certificate-mini {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 345px;
  padding: 30px;
  border-radius: 12px;
  border: 1px solid #cbd5d0;
  background: #fdfdfa;
  transition: transform 280ms ease, border-color 280ms ease;
}
.certificate-card-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; color: #6e7866; }
.certificate-card-top > span { font-size: 10px; letter-spacing: .05em; }
.certificate-card-top .line-icon { width: 46px; height: 46px; }
.certificate-card-copy { margin-top: 28px; }
.certificate-card-copy .status { background: transparent; padding: 0; color: #6a7667; font-size: 10px; }
.certificate-mini h3 { font-size: 26px; font-weight: 500; line-height: 1.18; margin: 12px 0 18px; }
.certificate-mini p { font-size: 13px; line-height: 1.7; margin-bottom: 20px; max-width: 340px; }
.certificate-mini .premium-card-bottom { border-color: #d9dfd4; padding-top: 16px; }
.certificate-mini .text-link { text-decoration: none; }
.certificate-mini.is-earned { background: #fcf8ec; border-color: #c9bb95; }
.certificate-mini.is-earned .certificate-card-top { color: #806b3c; }
.certificate-mini.is-earned .status { color: #57754f; }
.certificate-mini .certificate-card-score { margin-top: -8px; color: var(--ink); }
.certificate-mini .card-arrow { color: #637b66; width: 38px; height: 38px; }

.tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.tool-card { min-height: 360px; padding: 28px; }
.tool-card h3 { font-size: 29px; }
.tools-section .section-heading > p { font-size: 13px; max-width: 300px; }
#feature-preview { padding-top: 40px; }
#feature-preview h2 { font-size: 29px; padding-right: 15px; }
#feature-preview-description { line-height: 1.85; margin: 22px 0 5px; }
@media (max-width: 1200px) {
  .premium-feature-grid, .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-card { min-height: 390px; }
  .learning-card { padding: 24px; }
  .metric-card { padding: 18px; }
  .metric-card strong { font-size: 32px; }
  .metric-card.level-metric strong { font-size: 21px; }
  .metric-card .line-icon { width: 23px; height: 23px; }
}
@media (max-width: 1050px) {
  .metric-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-card { min-height: 160px; }
  .hub-heading { align-items: flex-start; flex-direction: column; gap: 20px; }
  .hub-heading > p { max-width: 400px; }
  .practice-grid { grid-template-columns: 1fr 1fr; }
  .practice-card { padding: 24px; }
  .practice-card h3 { font-size: 26px; }
}
@media (max-width: 760px) {
  .feature-hub { padding: 55px 0; }
  .premium-feature-grid { gap: 18px; }
  .premium-card { padding: 27px; }
  .feature-card { min-height: 365px; }
  .premium-card h3 { font-size: 30px; margin-top: 32px; }
  .premium-card p { font-size: 13px; }
  .hub-heading { margin-bottom: 32px; }
  .hub-heading h2 { font-size: 35px; }
  .line-icon { width: 47px; height: 47px; }
  .learning-card { min-height: 360px; }
  .learning-card h3 { font-size: 25px; }
  .certificate-mini { padding: 24px; }
  .certificate-mini h3 { font-size: 25px; }
  .dashboard-section-nav { gap: 4px 18px; }
  .dashboard-section-nav a { font-size: 12px; }
  .progress-overview .section-heading { align-items: flex-start; }
}
@media (max-width: 560px) {
  .premium-feature-grid, .tool-grid, .certificate-grid, .practice-grid { grid-template-columns: 1fr; }
  .premium-card { padding: 30px; }
  .feature-card { min-height: 365px; }
  .premium-card h3 { font-size: 35px; }
  .premium-card p { font-size: 14px; }
  .metric-cards { gap: 12px; }
  .stat-grid > .metric-card { padding: 17px; }
  .metric-card strong { font-size: 32px; padding-right: 0; }
  .metric-card > .line-icon { width: 20px; height: 20px; right: 14px; bottom: 13px; }
  .metric-card.level-metric strong { font-size: 20px; }
  .metric-card > span { font-size: 10px; }
  .metric-card strong small { font-size: 13px; }
  .learning-card { min-height: 370px; padding: 27px; }
  .learning-card h3 { font-size: 29px; }
  .module-grid { gap: 20px; }
  .module-card-content > p:last-child { font-size: 14px; }
  .certificate-mini { min-height: 335px; padding: 28px; }
  .certificate-mini h3 { font-size: 28px; }
  .dashboard-section .section-heading { flex-wrap: wrap; }
  .tools-section .section-heading > p { margin: 0; max-width: none; }
  .tool-card { min-height: 345px; }
  .tool-card h3 { font-size: 31px; }
}
@media (prefers-reduced-motion: reduce) {
  .premium-card, .learning-card, .certificate-mini, .metric-card,
  .line-icon, .feature-icon { transition: none !important; transform: none !important; }
}

/* Screenshot-inspired direction: a photographic welcome and an atmospheric navy canvas. */
body[data-page="home"] { background: #081a34; }
.home-header { min-height: 98px; background: #fff; width: 100%; padding: 20px max(40px, calc((100% - 1160px) / 2)); border-top: 5px solid #248e9b; }
.home-header .brand-mark { background: #17486e; }
.home-header .brand-dot { color: #187c88; }
.home-header nav { gap: 24px; }
.home-header nav > a { color: #23556c; }
.cinematic-hero { position: relative; isolation: isolate; min-height: 680px; padding-top: 90px; color: white; overflow: hidden; background: #0b1f3d; }
.hero-background, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-background { object-fit: cover; object-position: center 42%; }
.hero-shade { background: linear-gradient(90deg, rgba(5,20,43,.94) 0%, rgba(6,24,45,.80) 42%, rgba(5,19,39,.23) 100%); }
.hero-content { padding-bottom: 58px; }
.hero-content .eyebrow { color: #c3e5e7; font-size: 11px; letter-spacing: 2px; margin-bottom: 28px; }
.hero-content h1 { font-size: clamp(36px, 4.7vw, 64px); font-weight: 400; line-height: 1.13; letter-spacing: -.045em; max-width: 920px; margin-bottom: 28px; }
.hero-content h1 strong { font-weight: 600; }
.hero-content .hero-description { max-width: 510px; color: #e0e8f0; font-size: 17px; line-height: 1.8; margin-bottom: 26px; }
.cinematic-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 28px; }
.cinematic-actions .button { background: #fff; color: #10364d; border-color: #fff; border-radius: 7px; padding: 10px 20px; gap: 26px; }
.cinematic-actions .button:hover { background: #e0f0f0; }
.cinematic-actions a { display: inline-flex; align-items: center; gap: 16px; font-size: 13px; color: white; }
.cinematic-actions a:hover { text-decoration: underline; text-underline-offset: 5px; }
.cinematic-actions .line-icon { width: 32px; height: 32px; }
.hero-caption { margin: 18px 0 0; color: #c4d7df; font-size: 12px; }
.journey-strip { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); position: relative; background: #f5f8fa; color: #153853; border-radius: 16px 16px 0 0; padding: 26px 32px; gap: 24px; margin-top: 0; }
.journey-strip > div { display: flex; align-items: center; gap: 18px; border-right: 1px solid #cbdcde; padding-right: 20px; }
.journey-strip > div:last-child { border: 0; padding-right: 0; }
.journey-step { font-size: 28px; font-weight: 400; color: #347f8b; }
.journey-strip small { display: block; font-size: 10px; color: #536d7b; margin-bottom: 5px; }
.journey-strip strong { display: block; font-size: 14px; font-weight: 500; line-height: 1.5; }
.feature-hub { background: radial-gradient(ellipse at 88% 10%, #14395d 0%, #0c2345 43%, #08182f 85%); border-top: 0; padding-top: 78px; }
.hub-heading .eyebrow { color: #a8d3e0; }
.hub-heading > p { color: #c3d2e1; }
.hub-heading h2 { font-weight: 400; }
.premium-card { --card-background: rgba(8,24,50,.55); --card-border: #33758c; border-radius: 25px; padding: 36px; }
.premium-card h3 { font-weight: 400; }
.premium-card p { color: #d1ddec; }
.premium-card-top > .line-icon, .feature-icon { color: #edf6fb; }
.premium-card-top .line-icon, .feature-icon .line-icon { width: 62px; height: 62px; }
.card-index { color: #b9d3de; }
.premium-card.is-featured { background: linear-gradient(125deg, #087e83 0%, #146496 58%, #204f91 100%); border-color: #4497ad; }
.premium-card.is-featured p, .premium-card.is-featured .card-index, .premium-card.is-featured .feature-icon { color: #f1f8fb; }
.premium-card-bottom { flex-direction: column; align-items: flex-start; gap: 10px; border-top: 0; padding-top: 12px; }
.premium-card-bottom > span:first-child { max-width: 100%; }
.premium-card-bottom > .card-arrow, .arrow-wrap .line-icon { width: 58px; height: 58px; }
.feature-card { min-height: 425px; }
.feature-card h3 { margin-top: 32px; }
.feature-card[data-coming-soon] .premium-card-bottom > span:first-child { color: #ead6a6; }
.tool-card { background: #0c2441; min-height: 400px; }
.tool-card h3 { font-size: 29px; }
.tool-card .availability { color: #d5e4ee; }
.certificate-mini .premium-card-bottom { flex-direction: row; align-items: center; border-top: 1px solid #d9dfd4; padding-top: 16px; }
.certificate-mini .premium-card-bottom .card-arrow { width: 40px; height: 40px; }
body[data-page="home"] > .footer { color: #bacbdb; padding-top: 28px; padding-bottom: 28px; }
@media (hover: hover) {
  .premium-card:hover { background: #132f50; border-color: #88bfd3; }
  .premium-card.is-featured:hover { background: linear-gradient(125deg, #0b888d 0%, #1a6b9f 58%, #275799 100%); border-color: #b5e2ee; }
}
@media (min-width: 1600px) { .cinematic-hero { padding-top: 112px; } }
@media (max-width: 1050px) {
  .home-header { padding-left: 40px; padding-right: 40px; }
  .cinematic-hero { padding-top: 70px; min-height: 0; }
  .hero-shade { background: linear-gradient(90deg, rgba(5,20,43,.95), rgba(5,20,43,.60)); }
  .journey-strip { padding: 25px; gap: 18px; }
  .journey-strip > div { gap: 12px; padding-right: 12px; }
}
@media (max-width: 760px) {
  .home-header { padding: 19px 20px; min-height: 90px; gap: 18px; }
  .home-header nav { gap: 16px; }
  .cinematic-hero { padding-top: 60px; }
  .hero-content h1 { font-size: 43px; }
  .hero-content .eyebrow { font-size: 9px; letter-spacing: 1.3px; }
  .hero-content .hero-description { font-size: 16px; }
  .hero-content { padding-bottom: 42px; }
  .journey-strip { gap: 16px; padding: 22px; }
  .journey-strip > div { align-items: flex-start; flex-direction: column; gap: 6px; }
  .journey-strip strong { font-size: 12px; }
  .journey-step { font-size: 23px; }
  .feature-hub { padding-top: 55px; }
  .premium-card { padding: 30px; }
}
@media (max-width: 560px) {
  .hero-background { object-position: 63% center; }
  .hero-shade { background: linear-gradient(90deg, rgba(5,20,43,.91), rgba(5,20,43,.66)); }
  .hero-content h1 { font-size: clamp(32px, 8.6vw, 44px); }
  .cinematic-actions { gap: 16px 24px; }
  .hero-content .hero-description { font-size: 15px; }
  .journey-strip { grid-template-columns: 1fr; padding: 14px 22px; gap: 0; }
  .journey-strip > div { flex-direction: row; align-items: center; gap: 18px; padding: 14px 0; border-right: 0; border-bottom: 1px solid #cbdcde; }
  .journey-strip strong { font-size: 14px; }
  .journey-strip small { margin-bottom: 2px; }
  .feature-card { min-height: 410px; }
  .tool-card { min-height: 395px; }
}
