/* Student-loan article only. No calculator, dashboard, or shared application logic is affected. */

.student-loan-page {
  background: #f4f7fa;
}

.student-loan-page .student-loan-hero {
  padding: 48px 0;
  border-bottom: 1px solid #b9ccdc;
  background: #eaf2f8;
}

.student-loan-page .student-loan-hero .blog-hero-grid {
  grid-template-columns: minmax(0, 1.18fr) minmax(310px, 0.72fr);
  gap: 44px;
  align-items: center;
}

.student-loan-page .student-loan-hero h1 {
  max-width: 820px;
  margin: 14px 0 18px;
  font-size: clamp(2.45rem, 5vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.student-loan-page .student-loan-hero p {
  max-width: 760px;
  font-size: 1.03rem;
}

.student-loan-page .blog-kicker {
  padding: 0;
  border-radius: 0;
  color: #145da0;
  background: transparent;
  letter-spacing: 0.08em;
}

.student-loan-page .blog-primary-btn,
.student-loan-page .blog-secondary-btn {
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 6px;
  box-shadow: none;
}

.student-loan-page .blog-primary-btn {
  color: #fff;
  background: #145da0;
}

.student-loan-page .blog-secondary-btn {
  border: 1px solid #a9bdce;
  color: #174f7f;
  background: #fff;
}

.student-status-card {
  padding: 26px;
  border: 1px solid #aac5b5;
  border-left: 6px solid #16a34a;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(15, 35, 71, 0.08);
}

.student-status-card .status-label,
.student-sidebar > div > span,
.student-example > span {
  color: #087a45;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.student-status-card h2 {
  margin: 9px 0 16px;
  color: #0f2347;
  font-size: 1.45rem;
  letter-spacing: 0;
}

.student-status-card ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.student-status-card li {
  position: relative;
  padding-left: 20px;
  color: #263d54;
  line-height: 1.45;
}

.student-status-card li::before {
  position: absolute;
  top: 0.52em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #16a34a;
  content: "";
}

.student-status-card p {
  margin: 17px 0 0;
  padding-top: 15px;
  border-top: 1px solid #d8e3dc;
  font-size: 0.89rem;
}

.student-article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 28px;
  align-items: start;
  padding: 38px 0 58px;
}

.student-article {
  padding: clamp(25px, 4vw, 46px);
  border: 1px solid #cbd8e2;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 35, 71, 0.06);
}

.article-byline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid #d5e0e8;
  color: #52677d;
  font-size: 0.8rem;
  font-weight: 700;
}

.student-article .blog-lead {
  margin-bottom: 25px;
  padding: 19px 20px;
  border: 0;
  border-left: 5px solid #145da0;
  border-radius: 0;
  color: #263d54 !important;
  background: #edf4f9;
  font-size: 1.12rem !important;
}

.article-contents {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 22px;
  margin: 0 0 42px;
  padding: 21px 22px;
  border: 1px solid #cbd8e2;
  border-radius: 8px;
  background: #f8fafc;
}

.article-contents strong {
  grid-column: 1 / -1;
  margin-bottom: 3px;
  color: #0f2347;
}

.article-contents a {
  color: #145da0;
  font-size: 0.9rem;
  font-weight: 750;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.student-article section {
  position: relative;
  margin-top: 46px;
  padding-top: 8px;
}

.student-article section + section {
  padding-top: 42px;
  border-top: 1px solid #d5e0e8;
}

.student-article .section-number {
  display: block;
  margin-bottom: 6px;
  color: #16824c;
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.09em;
}

.student-article h2 {
  margin: 0 0 15px;
  color: #0f2347;
  font-size: clamp(1.55rem, 2.5vw, 2.25rem);
  line-height: 1.12;
  letter-spacing: 0;
}

.student-article h3 {
  margin: 28px 0 9px;
  color: #163253;
  font-size: 1.16rem;
  letter-spacing: 0;
}

.student-article p {
  margin: 0 0 17px;
  color: #3c5065;
  font-size: 1rem;
  line-height: 1.75;
}

.student-alert,
.student-note,
.student-example {
  margin: 28px 0;
  padding: 22px 23px;
  border-radius: 8px;
}

.student-alert {
  border: 1px solid #efcf83;
  border-left: 5px solid #d89b12;
  background: #fffaf0;
}

.student-note {
  border: 1px solid #b9ccdc;
  border-left: 5px solid #145da0;
  background: #f2f7fb;
}

.student-example {
  border: 1px solid #acd9bf;
  border-left: 5px solid #16a34a;
  background: #f2fbf6;
}

.student-alert h3,
.student-note h3,
.student-example h3 {
  margin-top: 0;
}

.student-alert p:last-child,
.student-note p:last-child,
.student-example p:last-child {
  margin-bottom: 0;
}

.action-steps {
  display: grid;
  gap: 0;
  margin: 25px 0 0;
  padding: 0;
  counter-reset: action;
  list-style: none;
}

.action-steps li {
  position: relative;
  padding: 19px 12px 19px 54px;
  border-top: 1px solid #d5e0e8;
  counter-increment: action;
}

.action-steps li:last-child {
  border-bottom: 1px solid #d5e0e8;
}

.action-steps li::before {
  position: absolute;
  top: 17px;
  left: 5px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #145da0;
  font-size: 0.78rem;
  font-weight: 900;
  content: counter(action);
}

.action-steps strong,
.action-steps span {
  display: block;
}

.action-steps strong {
  margin-bottom: 5px;
  color: #0f2347;
}

.action-steps span {
  color: #52677d;
  line-height: 1.6;
}

.paycheck-framework {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 25px 0 31px;
  overflow: hidden;
  border: 1px solid #b9ccdc;
  border-radius: 8px;
}

.paycheck-framework > div {
  padding: 20px;
  border-right: 1px solid #b9ccdc;
}

.paycheck-framework > div:last-child {
  border-right: 0;
  background: #f0faf4;
}

.paycheck-framework span,
.paycheck-framework strong {
  display: block;
}

.paycheck-framework span {
  margin-bottom: 8px;
  color: #145da0;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.paycheck-framework strong {
  margin-bottom: 7px;
  color: #0f2347;
  font-size: 1.05rem;
}

.paycheck-framework p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
}

.priority-table {
  margin: 22px 0 30px;
  overflow: hidden;
  border: 1px solid #cbd8e2;
  border-radius: 8px;
}

.priority-row {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(0, 0.9fr);
}

.priority-row + .priority-row {
  border-top: 1px solid #d5e0e8;
}

.priority-row > * {
  padding: 13px 15px;
  color: #42566a;
  font-size: 0.88rem;
  line-height: 1.45;
}

.priority-row > * + * {
  border-left: 1px solid #d5e0e8;
}

.priority-row strong {
  color: #173452;
}

.priority-heading {
  color: #fff;
  background: #123a61;
}

.priority-heading span {
  color: #fff;
  font-weight: 850;
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 24px 0 30px;
  overflow: hidden;
  border: 1px solid #cbd8e2;
  border-radius: 8px;
}

.comparison-grid article {
  padding: 22px;
  border-right: 1px solid #d5e0e8;
  border-bottom: 1px solid #d5e0e8;
}

.comparison-grid article:nth-child(2n) {
  border-right: 0;
}

.comparison-grid article:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.comparison-grid h3 {
  margin-top: 0;
}

.comparison-grid p {
  font-size: 0.91rem;
  line-height: 1.62;
}

.comparison-grid p:last-child {
  margin-bottom: 0;
}

.student-faq {
  border-top: 1px solid #cbd8e2;
}

.student-faq details {
  border-bottom: 1px solid #cbd8e2;
}

.student-faq summary {
  padding: 18px 4px;
  color: #153352;
  font-weight: 850;
  cursor: pointer;
}

.student-faq details p {
  padding: 0 4px 17px;
}

.student-loan-page .blog-source-box {
  margin: 46px 0 0;
  padding: 24px;
  border: 1px solid #b9ccdc;
  border-radius: 8px;
  background: #f6f9fb;
  box-shadow: none;
}

.student-loan-page .blog-source-box h2 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.student-loan-page .blog-source-box li {
  margin: 8px 0;
}

.student-loan-page .blog-source-box a {
  color: #145da0;
  font-weight: 750;
}

.source-date {
  margin-top: 18px !important;
  padding-top: 16px;
  border-top: 1px solid #d5e0e8;
  font-size: 0.82rem !important;
}

.student-loan-page .blog-footer-cta {
  margin-top: 28px;
  padding: 27px;
  border: 1px solid #aad4bc;
  border-left: 6px solid #16a34a;
  border-radius: 8px;
  background: #f3fbf6;
  box-shadow: none;
}

.student-loan-page .blog-footer-cta h2 {
  margin: 0 0 9px;
  font-size: 1.55rem;
}

.student-sidebar {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 16px;
}

.student-sidebar > div {
  padding: 21px;
  border: 1px solid #cbd8e2;
  border-radius: 8px;
  background: #fff;
}

.student-sidebar h2 {
  margin: 8px 0 14px;
  color: #0f2347;
  font-size: 1.12rem;
  letter-spacing: 0;
}

.sidebar-brief {
  border-top: 5px solid #16a34a !important;
}

.sidebar-brief ol {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 22px;
  color: #42566a;
  font-size: 0.87rem;
}

.sidebar-links {
  display: grid;
}

.sidebar-links a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid #d5e0e8;
  color: #145da0;
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
}

.sidebar-note {
  border-left: 5px solid #d89b12 !important;
  background: #fffaf0 !important;
}

.sidebar-note strong {
  color: #6f4a00;
}

.sidebar-note p {
  margin: 8px 0 0;
  color: #5d5547;
  font-size: 0.84rem;
  line-height: 1.55;
}

@media (max-width: 980px) {
  .student-loan-page .student-loan-hero .blog-hero-grid,
  .student-article-layout {
    grid-template-columns: 1fr;
  }

  .student-status-card {
    max-width: 720px;
  }

  .student-sidebar {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .student-loan-page .student-loan-hero {
    padding: 34px 0 31px;
  }

  .student-loan-page .student-loan-hero h1 {
    font-size: 2.25rem;
  }

  .student-article-layout {
    padding: 22px 0 40px;
  }

  .student-article {
    padding: 22px 18px;
  }

  .article-contents,
  .paycheck-framework,
  .comparison-grid,
  .student-sidebar {
    grid-template-columns: 1fr;
  }

  .article-contents strong {
    grid-column: auto;
  }

  .paycheck-framework > div {
    border-right: 0;
    border-bottom: 1px solid #b9ccdc;
  }

  .paycheck-framework > div:last-child {
    border-bottom: 0;
  }

  .priority-row {
    grid-template-columns: 1fr;
  }

  .priority-row > * + * {
    padding-top: 0;
    border-left: 0;
  }

  .priority-heading {
    display: none;
  }

  .comparison-grid article,
  .comparison-grid article:nth-child(2n),
  .comparison-grid article:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid #d5e0e8;
  }

  .comparison-grid article:last-child {
    border-bottom: 0;
  }
}
