/* ===========================
   Reset & Base
=========================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background-color: #f5f6f7;
  color: #2d2d2d;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ===========================
   Navbar
=========================== */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #ffffff;
  border-bottom: 1px solid #e0e0e0;
  padding: 0 32px;
  height: 64px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}

/* --- Logo --- */
.navbar__logo a {
  display: flex;
  align-items: center;
  gap: 8px;
}

.navbar__logo-img {
  height: 38px;
  width: auto;
  display: block;
}

.navbar__logo-text {
  font-size: 1.05rem;
  font-weight: 700;
  color: #2d2d2d;
  letter-spacing: -0.3px;
  white-space: nowrap;
}

/* --- Menu --- */
.navbar__menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 4px;
}

.navbar__link {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.92rem;
  font-weight: 500;
  color: #2d2d2d;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.navbar__link:hover {
  background-color: #f0f4f8;
  color: #1a1a2e;
}

/* Active state */
.navbar__link--active {
  background-color: #ddeeff;
  color: #1a4a80;
  font-weight: 600;
}

.navbar__link--active:hover {
  background-color: #cce4ff;
  color: #1a4a80;
}

/* --- Hamburger (hidden on desktop) --- */
.navbar__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  width: 36px;
  height: 36px;
}

.navbar__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: #2d2d2d;
  border-radius: 2px;
  transition: background-color 0.18s ease;
}

.navbar__hamburger:hover span {
  background-color: #1a4a80;
}

/* --- Search Button --- */
.navbar__actions {
  display: flex;
  align-items: center;
}

.navbar__search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid #d0d0d0;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  cursor: pointer;
  color: #555;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.navbar__search-btn:hover {
  background-color: #f0f4f8;
  border-color: #a0b4c8;
  color: #1a4a80;
}

/* ===========================
   Main Content
=========================== */
.main-content {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.main-content h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 12px;
}

.main-content p {
  font-size: 1rem;
  color: #555;
  line-height: 1.65;
}

/* ===========================
   Financial Path Section
=========================== */
.path-section {
  width: 100%;
  background-color: #e8f3ff;
  padding: 20px 24px 32px;
}

.path-section__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.path-section__heading {
  font-size: 1.6rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 20px;
  letter-spacing: -0.3px;
}

/* 4-column grid */
.path-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

/* Path Card */
.path-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #ffffff;
  border: 1px solid #e4e8ed;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  padding: 24px 20px 20px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.path-card:hover {
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.07);
  transform: translateY(-2px);
}

/* Top logo */
.path-card__image-wrap {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.path-card__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Body */
.path-card__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  min-width: 0;
  width: 100%;
}

.path-card__title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.35;
  margin-bottom: 6px;
}

.path-card__content {
  font-size: 0.78rem;
  color: #666;
  line-height: 1.55;
  flex: 1;
  margin-bottom: 12px;
}

.path-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #1a4a80;
  white-space: nowrap;
  border: 1.5px solid #1a4a80;
  border-radius: 20px;
  padding: 5px 14px;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.path-card:hover .path-card__btn {
  background-color: #1a4a80;
  color: #ffffff;
}

/* Individual card backgrounds */
.path-card--budget    { background-color: #deefff; border-color: #b8d9f5; }
.path-card--investing { background-color: #f0f0e4; border-color: #deded0; }
.path-card--credit    { background-color: #dcf0ee; border-color: #c4e3e0; }
.path-card--side      { background-color: #e6e6f2; border-color: #d0d0e4; }

/* ===========================
   Browse All Categories Section
=========================== */
.categories-section {
  width: 100%;
  background-color: #f5f6f7;
  border-top: 1px solid #e4e8ed;
  border-bottom: 1px solid #e4e8ed;
  padding: 36px 24px;
}

.categories-section__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.categories-section__heading {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 20px;
  letter-spacing: -0.2px;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.categories-col {
  list-style: none;
  padding: 0 32px 0 0;
  border-right: 1px solid #e4e8ed;
}

.categories-col:last-child {
  border-right: none;
  padding-right: 0;
  padding-left: 32px;
}

.categories-col:nth-child(2) {
  padding-left: 32px;
}

.categories-col__item {
  padding: 9px 0;
  border-bottom: 1px solid #f0f2f5;
}

.categories-col__item:last-child {
  border-bottom: none;
}

.categories-col__item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  color: #444;
  text-decoration: none;
  transition: color 0.15s ease;
  gap: 8px;
}

.categories-col__item a:hover {
  color: #1a4a80;
}

/* Main category row (heading of each column) */
.categories-col__item--main {
}

/* Article count badge */
.categories-col__count {
  font-size: 0.72rem;
  font-weight: 600;
  background-color: #eef3f9;
  color: #7a8fa8;
  padding: 2px 7px;
  border-radius: 20px;
  flex-shrink: 0;
}

/* Category icon + label */
.cat-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cat-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
  vertical-align: middle;
}

/* ===========================
   Latest Articles Section
=========================== */
.articles-section {
  width: 100%;
  padding: 36px 24px;
}

.articles-section__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.articles-section__heading {
  font-size: 1.6rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 28px;
  letter-spacing: -0.3px;
}

/* Grid: 3 cards per row */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ===========================
   Article Card
=========================== */
.article-card {
  background-color: #ffffff;
  border: 1px solid #e4e8ed;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.article-card:hover {
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.07);
  transform: translateY(-2px);
}

/* Image */
.article-card__image-wrap {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.article-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.article-card:hover .article-card__image {
  transform: none;
}

/* Card Body */
.article-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px 22px 0;
}

/* Category Badge */
.article-card__category {
  display: inline-block;
  background-color: #ddeeff;
  color: #1a4a80;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
  align-self: flex-start;
}

.article-card__category--investing {
  background-color: #e0f5e9;
  color: #1a6640;
}

.article-card__category--credit {
  background-color: #fdecea;
  color: #8b1a1a;
}

.article-card__category--side {
  background-color: #fff3e0;
  color: #7a4100;
}

/* Title */
.article-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.45;
  margin-bottom: 10px;
}

/* Excerpt */
.article-card__excerpt {
  font-size: 0.875rem;
  color: #666;
  line-height: 1.65;
  flex: 1;
  margin-bottom: 0;
}

/* Footer row */
.article-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  border-top: 1px solid #edf0f4;
  margin-top: 12px;
  padding: 14px 0 18px;
  gap: 8px;
}

.article-card__meta {
  font-size: 0.78rem;
  color: #999;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Read more link */
.article-card__read-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #1a4a80;
  white-space: nowrap;
  transition: gap 0.18s ease, color 0.18s ease;
}

.article-card__read-more:hover {
  color: #0d2f5a;
  gap: 8px;
}

.article-card:hover .article-card__read-more {
  color: #1a4a80;
  gap: 4px;
}

/* ===========================
   Responsive – Home Grid
=========================== */
@media (max-width: 1100px) {
  .path-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 800px) {
  /* Switch to hamburger layout */
  .navbar {
    position: relative;
    justify-content: space-between;
  }

  .navbar__hamburger {
    display: flex;
    flex-shrink: 0;
  }

  .navbar__logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .navbar__menu {
    display: none;
  }
}

@media (max-width: 580px) {
  .path-section {
    padding-top: 15px;
  }

  .path-grid {
    grid-template-columns: 1fr;
  }

  .articles-grid {
    grid-template-columns: 1fr;
  }

  /* Categories: stack columns vertically */
  .categories-grid {
    grid-template-columns: 1fr;
  }

  .categories-col {
    border-right: none;
    border-bottom: 1px solid #e4e8ed;
    padding: 0 0 16px 0;
    margin-bottom: 16px;
  }

  .categories-col:last-child {
    border-bottom: none;
    padding-left: 0;
    margin-bottom: 0;
  }

  .categories-col:nth-child(2) {
    padding-left: 0;
  }
}

/* ===========================
   Mobile Drawer
=========================== */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.35);
  z-index: 200;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.nav-overlay--visible {
  display: block;
  opacity: 1;
}

.nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 272px;
  height: 100%;
  background-color: #ffffff;
  z-index: 300;
  transform: translateX(-100%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 2px 0 12px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

.nav-drawer--open {
  transform: translateX(0);
}

.nav-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  height: 64px;
  border-bottom: 1px solid #e0e0e0;
  flex-shrink: 0;
}

.nav-drawer__logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-drawer__logo-img {
  height: 34px;
  width: auto;
  display: block;
}

.nav-drawer__logo-text {
  font-size: 1rem;
  font-weight: 700;
  color: #2d2d2d;
  letter-spacing: -0.3px;
}

.nav-drawer__close {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: #555;
  padding: 4px;
  border-radius: 6px;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.nav-drawer__close:hover {
  background-color: #f0f4f8;
  color: #1a4a80;
}

.nav-drawer__menu {
  list-style: none;
  overflow-y: auto;
  flex: 1;
}

.nav-drawer__link {
  display: block;
  padding: 13px 24px;
  font-size: 0.97rem;
  font-weight: 500;
  color: #2d2d2d;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.nav-drawer__link:hover {
  background-color: #f0f4f8;
  color: #1a4a80;
}

.nav-drawer__link--active {
  background-color: #ddeeff;
  color: #1a4a80;
  font-weight: 600;
}

/* ===========================
   Search Modal
=========================== */
.search-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 400;
  background-color: rgba(15, 20, 30, 0.45);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  align-items: flex-start;
  justify-content: center;
  padding: 72px 16px 24px;
}

.search-modal--open {
  display: flex;
}

.search-modal__box {
  background-color: #ffffff;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  width: 100%;
  max-width: 560px;
  overflow: hidden;
}

.search-modal__input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid #edf0f4;
}

.search-modal__icon {
  flex-shrink: 0;
  color: #999;
}

.search-modal__input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1rem;
  color: #2d2d2d;
  background: transparent;
  font-family: inherit;
}

.search-modal__input::placeholder {
  color: #bbb;
}

.search-modal__close {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: #888;
  padding: 4px;
  border-radius: 6px;
  flex-shrink: 0;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.search-modal__close:hover {
  background-color: #f0f4f8;
  color: #1a4a80;
}

.search-modal__results {
  max-height: 60vh;
  overflow-y: auto;
  padding: 8px 0 12px;
}

.search-modal__section-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: #aaa;
  padding: 10px 18px 4px;
}

.search-modal__list {
  list-style: none;
}

.search-modal__result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 18px;
  font-size: 0.9rem;
  color: #2d2d2d;
  transition: background-color 0.15s ease;
}

.search-modal__result-item:hover {
  background-color: #f4f7fb;
  color: #1a4a80;
}

.search-modal__result-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-modal__result-badge {
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 600;
  background-color: #eef3f9;
  color: #7a8fa8;
  padding: 2px 8px;
  border-radius: 20px;
}

.search-modal__empty {
  font-size: 0.88rem;
  color: #999;
  text-align: center;
  padding: 20px 18px;
}

/* ===========================
   Article Page
=========================== */
/* Breadcrumb */
.article-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: #999;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.article-breadcrumb a {
  color: #1a4a80;
}

.article-breadcrumb a:hover {
  text-decoration: underline;
}

.article-breadcrumb span:last-child {
  color: #555;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 300px;
}

.article-page {
  width: 100%;
  padding: 48px 24px;
}

.article-page__layout {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  align-items: start;
}

/* --- Table of Contents (Left) --- */
.article-toc {
  position: sticky;
  top: 88px;
  background-color: #ffffff;
  border: 1px solid #e4e8ed;
  border-radius: 12px;
  padding: 24px 20px;
}

.article-toc__heading {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #999;
  margin-bottom: 14px;
}

.article-toc__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.article-toc__link {
  display: block;
  font-size: 0.875rem;
  color: #444;
  padding: 7px 10px;
  border-radius: 6px;
  line-height: 1.4;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.article-toc__link:hover {
  background-color: #f0f4f8;
  color: #1a4a80;
}

.article-toc__link.is-active {
  background-color: #ddeeff;
  color: #1a4a80;
  font-weight: 600;
}

/* --- Article Content (Right) --- */
.article-content {
  min-width: 0;
}

/* Category badge */
.article-content__category {
  display: inline-block;
  background-color: #ddeeff;
  color: #1a4a80;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 3px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.article-content__category--investing {
  background-color: #e0f5e9;
  color: #1a6640;
}

.article-content__category--credit-debt {
  background-color: #fdecea;
  color: #8b1a1a;
}

.article-content__category--side-hustles {
  background-color: #fff3e0;
  color: #7a4100;
}

/* Title */
.article-content__title {
  font-size: 2rem;
  font-weight: 800;
  color: #1a1a2e;
  line-height: 1.25;
  margin-bottom: 10px;
}

/* Meta */
.article-content__meta {
  font-size: 0.82rem;
  color: #999;
  margin-bottom: 28px;
}

/* Hero image */
.article-content__hero {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 40px;
}

.article-content__hero img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}

/* Content sections */
.article-content__section {
  margin-bottom: 36px;
  scroll-margin-top: 88px;
}

.article-content__section-heading {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid #edf0f4;
}

.article-content__section-body {
  font-size: 0.975rem;
  color: #444;
  line-height: 1.8;
  text-align: left;
}

.article-content__section-body ul,
.article-content__section-body ol {
  padding-left: 1.5rem;
  margin: 0.5rem 0;
}

.article-content__section-body li {
  margin-bottom: 0.25rem;
}

/* Back link */
.article-content__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #1a4a80;
  margin-top: 12px;
  padding: 8px 14px;
  border: 1px solid #c8dcf0;
  border-radius: 8px;
  transition: background-color 0.15s ease;
}

.article-content__back svg {
  display: block;
  flex-shrink: 0;
  position: relative;
  top: 1px;
}

.article-content__back:hover {
  background-color: #d6e8f7;
}

/* --- Article Page Responsive --- */
@media (max-width: 860px) {
  .article-page__layout {
    grid-template-columns: 1fr;
  }

  .article-toc {
    position: static;
  }

  .article-content__hero img {
    height: 260px;
  }
}

/* ===========================
   Category Page
=========================== */
.category-header {
  padding: 36px 0 28px;
  border-bottom: 1px solid #e4e8ed;
  margin-bottom: 36px;
}

.category-header__breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: #999;
  margin-bottom: 10px;
}

.category-header__breadcrumb a {
  color: #1a4a80;
  text-decoration: none;
}

.category-header__breadcrumb a:hover {
  text-decoration: underline;
}

.category-header__breadcrumb span {
  color: #ccc;
}

.category-header__title {
  font-size: 2rem;
  font-weight: 800;
  color: #1a1a2e;
  margin-bottom: 8px;
}

.category-header__count {
  font-size: 0.9rem;
  color: #666;
}

.category-header__count strong {
  color: #1a1a2e;
}

/* Empty state */
.category-empty {
  text-align: center;
  padding: 64px 24px;
  color: #888;
  font-size: 0.95rem;
}

.category-empty__link {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #1a4a80;
}

/* Back link spacing */
.category-back {
  margin-top: 48px;
  padding-bottom: 48px;
}

/* ===========================
   Footer
=========================== */
.footer {
  background-color: #e1e7ef;
  color: #555;
  margin-top: auto;
  border-top: 1px solid #e0e4ea;
}

.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer__logo {
  display: flex;
  align-items: center;
}

.footer__logo-img {
  height: 32px;
  width: auto;
  display: block;
}

.footer__tagline {
  font-size: 0.82rem;
  color: #888;
  margin-top: 3px;
}

.footer__nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
}

.footer__nav a {
  font-size: 0.875rem;
  color: #555;
  padding: 5px 10px;
  border-radius: 6px;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.footer__nav a:hover {
  background-color: rgba(0, 0, 0, 0.06);
  color: #1a4a80;
}

.footer__bottom {
  border-top: 1px solid #dde2e8;
  text-align: center;
  padding: 10px 24px;
  font-size: 0.78rem;
  color: #999;
}

@media (max-width: 580px) {
  .footer__inner {
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
  }

  .footer__brand {
    flex: 1;
    min-width: 0;
  }

  .footer__nav {
    flex-shrink: 0;
  }

  .footer__nav ul {
    flex-direction: column;
    gap: 2px;
  }
}

/* ===========================
   404 Not Found Page
=========================== */
.not-found {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 24px;
}

.not-found__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 480px;
}

/* --- Big 404 display --- */
.not-found__code {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  line-height: 1;
}

.not-found__digit {
  font-size: 7rem;
  font-weight: 900;
  color: #1a1a2e;
  letter-spacing: -4px;
  font-family: 'Segoe UI', Arial, sans-serif;
  user-select: none;
}

.not-found__circle {
  display: block;
  width: 110px;
  height: 110px;
  flex-shrink: 0;
}

.not-found__circle svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* --- Text --- */
.not-found__heading {
  font-size: 1.65rem;
  font-weight: 800;
  color: #1a1a2e;
  margin-bottom: 12px;
}

.not-found__sub {
  font-size: 0.97rem;
  color: #666;
  line-height: 1.7;
  margin-bottom: 36px;
}

/* --- Button --- */
.not-found__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #1a4a80;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 10px;
  text-decoration: none;
  transition: background-color 0.18s ease, transform 0.15s ease;
}

.not-found__btn:hover {
  background-color: #153d6b;
  transform: translateY(-1px);
}

.not-found__btn svg {
  flex-shrink: 0;
}

