/* ==========================================================================
   The Money Game - Homepage (Webflow Fidelity)
   ========================================================================== */

/* Section container */
.home-section {
  padding-top: clamp(24px, 4vw, 48px);
  padding-bottom: 80px;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.home-section .container-default {
  max-width: 1286px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 1rem;
  box-sizing: border-box;
  width: 100%;
}

/* Two-column layout */
.home-article-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  grid-column-gap: 0;
  align-items: start;
  width: 100%;
}

/* -------------------------------------------------------------
 * 1. Left Main Column
 * ------------------------------------------------------------- */
.home-col-left {
  max-width: 740px;
  padding-right: clamp(24px, 4vw, 56px);
  box-sizing: border-box;
}

/* Featured Story */
.home-featured-card {
  display: block;
  text-decoration: none;
  color: inherit;
  margin-bottom: 64px;
}

.home-featured-image-wrap {
  width: 100%;
  aspect-ratio: 1.8 / 1;
  border-radius: 3px;
  overflow: hidden;
  display: block;
  background-color: transparent;
  position: relative;
  transition: transform .25s ease;
}

.home-featured-card:hover .home-featured-image-wrap {
  transform: translateY(-2px);
}

.home-featured-image-wrap img,
.home-featured-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.home-featured-content {
  margin-top: 24px;
}

.home-featured-title {
  font-family: 'Mona Sans', Monasans, sans-serif;
  font-size: clamp(24px, 2.5vw, 32px);
  font-weight: 600;
  line-height: 1.35;
  color: #100f0f;
  margin: 0 0 16px 0;
  letter-spacing: -0.02em;
  transition: color .2s;
}

.home-featured-title a {
  color: inherit;
  text-decoration: none;
  transition: color .2s;
}

.home-featured-card:hover .home-featured-title,
.home-featured-title a:hover {
  color: var(--cat-color, #100f0f);
}

.home-featured-excerpt {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #69645d;
  margin: 0 0 20px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Meta row (Featured) */
.home-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-family: 'Hubot Sans', Hubotsans, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #69645d;
}

.home-meta-category {
  color: var(--cat-color, #69645d);
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
}

.home-meta-divider-dot {
  background-color: #69645d;
  border-radius: 50%;
  width: 4px;
  height: 4px;
  display: inline-block;
  opacity: 0.6;
}

.home-meta-reading-time {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.home-meta-clock-icon {
  width: 13px;
  height: 13px;
  display: inline-block;
  vertical-align: middle;
}

/* -------------------------------------------------------------
 * 2. Story List Rows (Horizontal Cards)
 * ------------------------------------------------------------- */
.home-story-list {
  display: flex;
  flex-direction: column;
  gap: 44px;
}

.home-story-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  grid-column-gap: 24px;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.home-story-row-image-wrap {
  width: 200px;
  height: 200px;
  aspect-ratio: 1 / 1;
  border-radius: 3px;
  overflow: hidden;
  display: block;
  background-color: transparent;
  flex-shrink: 0;
  transition: transform .25s ease;
}

.home-story-row:hover .home-story-row-image-wrap {
  transform: translateY(-2px);
}

.home-story-row-image-wrap img,
.home-story-row-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.home-story-row-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.home-story-row-title {
  font-family: 'Mona Sans', Monasans, sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  color: #100f0f;
  margin: 0;
  letter-spacing: -0.01em;
  transition: color .2s;
}

.home-story-row-title a {
  color: inherit;
  text-decoration: none;
  transition: color .2s;
}

.home-story-row:hover .home-story-row-title,
.home-story-row-title a:hover {
  color: var(--cat-color, #100f0f);
}

.home-story-row-divider {
  height: 1px;
  width: 100%;
  background-color: rgba(16, 15, 15, 0.1);
  margin: 14px 0 16px 0;
}

.home-story-row-excerpt {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: #69645d;
  margin: 0 0 16px 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Browse All Articles Button */
.home-browse-all-wrap {
  margin-top: 52px;
  display: flex;
  justify-content: center;
}

.home-btn-browse-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 32px;
  border: 1px solid #100f0f;
  border-radius: 3px;
  background-color: transparent;
  color: #100f0f;
  font-family: 'Mona Sans', Monasans, sans-serif;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}

.home-btn-browse-all:hover {
  background-color: #100f0f;
  color: #fffcf0;
  transform: translateY(-1px);
}

/* -------------------------------------------------------------
 * 3. Right Sidebar ("Latest stories")
 * ------------------------------------------------------------- */
.home-col-right {
  border-left: 1px solid rgba(16, 15, 15, 0.1);
  padding-left: 2rem;
  width: 100%;
  max-width: 380px;
  box-sizing: border-box;
  align-self: stretch;
  height: 100%;
  min-height: 100%;
  position: relative;
}

.home-sidebar-sticky {
  position: -webkit-sticky;
  position: sticky;
  top: 100px;
  width: 100%;
}

.home-sidebar-heading {
  font-family: 'Mona Sans', Monasans, sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  color: #100f0f;
  margin: 0 0 32px 0;
}

.home-sidebar-list {
  display: flex;
  flex-direction: column;
}

.home-sidebar-item {
  border-bottom: 1px solid rgba(16, 15, 15, 0.1);
  margin-bottom: 24px;
  padding-bottom: 24px;
}

.home-sidebar-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.home-sidebar-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.home-sidebar-title {
  font-family: 'Mona Sans', Monasans, sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.45;
  color: #100f0f;
  margin: 0 0 10px 0;
  transition: color .2s;
}

.home-sidebar-link:hover .home-sidebar-title {
  color: var(--cat-color, #100f0f);
}

.home-sidebar-category {
  font-family: 'Hubot Sans', Hubotsans, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--cat-color, #69645d);
  text-decoration: none;
}

/* -------------------------------------------------------------
 * 4. Responsive Breakpoints
 * ------------------------------------------------------------- */
@media screen and (max-width: 991px) {
  .home-article-grid {
    grid-template-columns: 1fr;
    grid-row-gap: 60px;
  }

  .home-col-left {
    max-width: 100%;
    padding-right: 0;
  }

  .home-col-right {
    border-left: none;
    border-top: 1px solid rgba(16, 15, 15, 0.1);
    padding-left: 0;
    padding-top: 48px;
    max-width: 100%;
  }

  .home-sidebar-sticky {
    position: static;
  }

  .home-story-row-image-wrap {
    width: 180px;
    height: 180px;
  }
}

@media screen and (max-width: 600px) {
  .home-story-row {
    grid-template-columns: 1fr;
    grid-row-gap: 20px;
  }

  .home-story-row-image-wrap {
    width: 100%;
    height: auto;
    aspect-ratio: 1.8 / 1;
    max-width: 100%;
  }
}

@media screen and (max-width: 767px) {
  .home-section .container-default {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media screen and (max-width: 479px) {
  .home-featured-title {
    font-size: 22px;
  }

  .home-featured-image-wrap {
    height: auto;
    aspect-ratio: 1.8 / 1;
  }
}

/* -------------------------------------------------------------
 * 5. Dark Mode Overrides (html[data-theme="dark"])
 * ------------------------------------------------------------- */
html[data-theme="dark"] .home-featured-title,
html[data-theme="dark"] .home-story-row-title,
html[data-theme="dark"] .home-sidebar-heading,
html[data-theme="dark"] .home-sidebar-title {
  color: #fffcf0;
}

html[data-theme="dark"] .home-featured-excerpt,
html[data-theme="dark"] .home-story-row-excerpt,
html[data-theme="dark"] .home-meta-row {
  color: #b7b5ac;
}

html[data-theme="dark"] .home-meta-divider-dot {
  background-color: #b7b5ac;
}

html[data-theme="dark"] .home-col-right,
html[data-theme="dark"] .home-sidebar-item {
  border-color: rgba(255, 252, 240, 0.12);
}

html[data-theme="dark"] .home-story-row-divider {
  background-color: rgba(255, 252, 240, 0.12);
}

html[data-theme="dark"] .home-btn-browse-all {
  border-color: rgba(255, 252, 240, 0.3);
  color: #fffcf0;
}

html[data-theme="dark"] .home-btn-browse-all:hover {
  background-color: #fffcf0;
  color: #100f0f;
  border-color: #fffcf0;
}
