/* ============================================
   RESET + BASE
============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Brand palette */
  --green-400: #20964f;
  --green-secondary: #1db38b;
  --green-hover-dark: #157e47;
  --green-hover-light: #ebffee;
  --text-primary: #242424;
  --text-body: #4a4a4a;
  --text-link: #6b6b6b;
  --border-color: #f2f2f2;
  --neutral-200: #f4f4f4;
  --neutral-50: #fafafa;
  --cat-amber: #cd921b;
  --cat-teal: #1db38b;
  --cat-blue: #1583ba;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, Roboto, Helvetica, Arial, sans-serif;
  --max-w: 1140px;

  /* Standardized semantic variables */
  --text: #242424;
  --text-muted: #4a4a4a;
  --primary-100: #ebffee;
  --primary-500: #20964f;
  --primary-700: #157e47;
  --primary-800: #0d5e35;
  --accent-400: #1db38b;
  --accent-500: #157e47;
  --white: #ffffff;
  --gray-300: #f2f2f2;
  --gray-600: #6b6b6b;
  --background: #f4f4f4;
  --border: #f2f2f2;
  --surface-100: #ebffee;
  --box-shadow-sm: 0 1px 3px 0 rgba(34, 40, 42, 0.1);
  --box-shadow-md: 0 4px 20px 0 rgba(33, 37, 41, 0.05);
  --box-shadow-lg: 0 4px 20px 0 rgba(33, 37, 41, 0.15);
}

html { font-size: 16px; font-family: var(--font); overflow-x: clip; }
body {
  font-family: var(--font);
  color: var(--text-body);
  font-size: 16px;
  line-height: 1.5;
  background: #fff;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: clip;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font); }

/* ============================================
   LOGO
============================================ */
.logo {
  max-width: 180px;
}
img.logo {
  max-height: 32px;
  width: auto;
}
.logo a {
  display: flex;
}

/* Override CMS scroll trap: .cols.fixedno captures scroll events, breaking
   window.scroll listeners (nav sticky, analytics, etc.). Force visible so
   the document handles scroll at window level. */
.cols.fixedno {
  overflow: visible !important;
}

/* ============================================
   NAVIGATION
============================================ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: #fff;
}

/* — Logo Row — */
.nav-logo-row {
  position: relative;
  height: 64px;
  display: flex;
  align-items: center;
  padding: 12px;
  background: #fff;
  transition: background-color 300ms ease-in-out;
  box-shadow: inset 0 -1px 0 var(--border-color);
}
.nav-logo-row::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  transform: translateX(-50%);
  width: 100vw;
  background: inherit;
  z-index: -1;
  transition: background-color 300ms ease-in-out;
}
.nav-logo-row-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
}

/* Logo wrapper */
.nav-logo a { display: flex; align-items: center; line-height: 1; }

/* Scrolled state */
.site-nav.scrolled .nav-logo-row { background: var(--green-400); }
.site-nav.scrolled .logo {
  filter: brightness(0) saturate(100%) invert(100%);
}
.nav-scrolled-cta {
  display: none;
  margin-left: auto;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 0.25rem 0;
  position: relative;
}
.nav-scrolled-cta::after {
  content: '';
  display: inline-block;
  width: 1rem; height: 1rem;
  background: url('https://cdn.gobankingrates.com/wp-content/uploads/2024/01/arrow-right-1.svg') no-repeat center/contain;
  vertical-align: middle;
  margin-left: 0.25rem;
  filter: brightness(0) saturate(100%) invert(100%);
}
.site-nav.scrolled .nav-scrolled-cta { display: block; }

/* — Category Bar — */
.nav-cat-row {
  display: flex;
  align-items: stretch;
  justify-content: center;
  position: relative;
  background: #fff;
  box-shadow: inset 0 -1px 0 var(--border-color);
}
.nav-cat-row::before {
  content: '';
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  transform: translateX(-50%);
  width: 100vw;
  background: #fff;
  z-index: -1;
}
.nav-cat-item {
  position: relative;
  flex: 0 0 auto;
}
.nav-cat-item > a {
  display: inline-block;
  padding: 8px 20px;
  font-size: 16px;
  font-weight: 400;
  color: var(--text-link);
  white-space: nowrap;
  font-family: var(--font);
  line-height: 24px;
  transition: color 0.15s;
}
.nav-cat-item:hover > a {
  color: var(--green-400);
  text-decoration: none;
}
.nav-cat-item:hover {
  background-color: var(--neutral-50);
  box-shadow: inset 0 -2px 0 var(--green-400);
}
.nav-cat-item:hover::after {
  content: '';
  position: fixed;
  top: 88px; left: 0;
  width: 100%; height: calc(100vh - 88px);
  background: rgba(0,0,0,0.2);
  pointer-events: none;
  z-index: -1;
}

/* Dropdown */
.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%; left: 0;
  min-width: 220px;
  background: #fff;
  box-shadow: 0 0.5rem 1rem rgba(132,147,175,0.2);
  padding: 1.25rem;
  z-index: 100;
}
.nav-cat-item:hover .nav-dropdown { display: block; }
.nav-dropdown a {
  display: block;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-link);
  padding: 0.3rem 0;
  letter-spacing: 0.5px;
}
.nav-dropdown a:hover { color: var(--green-400); }

/* ============================================
   MOBILE MENU
============================================ */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.mobile-menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: background 0.2s;
}
.site-nav.scrolled .mobile-menu-btn span { background: #fff; }

.mobile-menu {
  position: fixed;
  top: 0; right: -300px;
  width: 300px;
  height: 100vh;
  background: #fff;
  z-index: 10000;
  box-shadow: -4px 0 20px rgba(0,0,0,0.12);
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.mobile-menu.open { right: 0; }
.mobile-menu__overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 9999;
}
.mobile-menu__overlay.open { display: block; }
.mobile-menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
}
.mobile-menu__header-logo { font-size: 1rem; font-weight: 700; color: var(--text-primary); }
.mobile-menu__close {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--text-primary);
  line-height: 1;
  padding: 0.25rem 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobile-menu__nav {
  padding: 0.5rem 0;
  display: flex;
  flex-direction: column;
}
.mobile-menu__nav a {
  display: block;
  padding: 0.875rem 1.25rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-body);
  border-bottom: 1px solid var(--border-color);
  font-family: var(--font);
  transition: color 0.15s, background 0.15s;
}
.mobile-menu__nav a:hover { color: var(--green-400); background: var(--neutral-50); }

/* Nav mobile header — only shown inside the mobile drawer */
.nav-mobile-header {
  display: none;
  align-items: center;
  justify-content: flex-end;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-color);
}

@media (max-width: 768px) {
  .mobile-menu-btn { display: flex; }
  .nav-scrolled-cta { display: none !important; }

  /* Nav cat row becomes the mobile off-canvas drawer */
  .nav-cat-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    position: fixed;
    top: 0; right: -300px;
    width: 300px;
    height: 100vh;
    background: #fff;
    z-index: 10000;
    box-shadow: -4px 0 20px rgba(0,0,0,0.12);
    transition: right 0.3s ease;
    overflow-y: auto;
  }
  .nav-cat-row.mobile-open { right: 0; }

  .nav-mobile-header { display: flex; }

  /* Flat links — hide dropdowns */
  .nav-dropdown { display: none !important; }
  .nav-cat-item > a {
    display: block;
    padding: 0.875rem 1.25rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-body);
    border-bottom: 1px solid var(--border-color);
    white-space: normal;
  }
  .nav-cat-item:hover { background: none; box-shadow: none; }
}

/* ============================================
   MAIN CONTENT WRAPPER
============================================ */
.page-content {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ============================================
   HERO / SITE INTRO
============================================ */
.site-intro {
  text-align: center;
  padding: 2.5rem 0 1.5rem;
}
.site-intro__headline {
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.375;
  margin-bottom: 0.75rem;
  letter-spacing: 0;
}
.site-intro__subheadline {
  font-size: 1rem;
  font-weight: 400;
  color: #111b29;
  letter-spacing: 0.5px;
  line-height: 1.5rem;
}

/* ============================================
   TABS
============================================ */
.tab-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 1.5rem;
}
.tab-item {
  flex: 0 0 auto;
  background: var(--neutral-200);
  color: var(--text-link);
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--font);
  letter-spacing: 0.5px;
  line-height: 1.5rem;
  padding: 0.4rem 1.25rem;
  text-transform: uppercase;
  border-radius: 2rem;
  cursor: pointer;
  text-align: center;
  transition: background 0.2s, color 0.2s;
  border: none;
  outline: none;
  margin-right: 8px;
}
.tab-item.active {
  background: var(--green-400);
  color: #fff;
}
.tab-item:not(.active):hover {
  background: #e0e0e0;
}

/* ============================================
   TAB CONTENT + ARTICLE GRID
============================================ */
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.article-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  padding: 1.5rem 0;
}

/* — Vertical Card (Featured Left) — */
.card-vertical {
  display: flex;
  flex-direction: column;
}
.card-vertical__thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: #e0e0e0;
}
.card-vertical__thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.card-vertical:hover .card-vertical__thumb img {
  transform: scale(1.04);
}
.card-vertical__cat {
  position: absolute;
  top: 1rem; left: 0;
  z-index: 2;
}
.card-vertical__cat a {
  display: inline-block;
  font-size: 1rem;
  font-weight: 600;
  color: #fff !important;
  padding: 2px 8px;
  letter-spacing: 0.25px;
  line-height: 1.5rem;
}
.card-vertical__bottom {
  padding: 0;
}
.card-vertical__title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #333;
  line-height: 1.35;
  margin: 1rem 0;
}
.card-vertical__title a { color: inherit; }
.card-vertical__title a:hover { color: var(--green-400); }
.card-vertical__excerpt {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-body);
  line-height: 1.5;
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
}
.card-vertical__meta {
  font-size: 0.875rem;
  color: #888;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.card-vertical__meta a { color: #888; }
.card-vertical__meta a:hover { color: var(--green-400); }
.meta-divider { color: #ccc; }

/* — Horizontal Cards Stack (Right Column) — */
.cards-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.card-horizontal {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}
.card-horizontal:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}
.card-horizontal__thumb {
  width: 120px;
  flex-shrink: 0;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #e0e0e0;
  align-self: flex-start;
}
.card-horizontal__thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.card-horizontal:hover .card-horizontal__thumb img {
  transform: scale(1.05);
}
.card-horizontal__body { flex: 1; min-width: 0; }
.card-horizontal__cat {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  line-height: 1.25rem;
  margin-bottom: 0.5rem;
  display: block;
}
.card-horizontal__title {
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  line-height: 1.5rem;
  letter-spacing: 0.25px;
  margin-bottom: 0.5rem;
}
.card-horizontal__title a { color: inherit; }
.card-horizontal__title a:hover { color: var(--green-400); }
.card-horizontal__excerpt {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-body);
  line-height: 1.25rem;
  letter-spacing: 0.5px;
}

/* ============================================
   FEATURED IN BAR
============================================ */
.featured-in-bar {
  padding: 1.5rem 1.5rem;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  text-align: center;
  background: #fff;
}
.featured-in-bar__label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #b0b0b0;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.featured-in-bar__logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.featured-logo {
  font-size: 1rem;
  font-weight: 700;
  color: #c0c0c0;
  font-style: italic;
  letter-spacing: -0.5px;
  filter: grayscale(100%) opacity(0.45);
}

/* ============================================
   TODAY'S HEADLINES
============================================ */
.headlines-section {
  padding: 2.5rem 0;
}
.section-heading {
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 1.5rem;
  line-height: 2.75rem;
  letter-spacing: -0.5px;
}
.headlines-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
  counter-reset: headline-counter;
}
.headline-card {
  display: grid;
  grid-template-areas: "number title" "number readmore";
  grid-template-columns: 3.125rem auto;
  column-gap: 0.5rem;
}
.headline-card__number {
  grid-area: number;
  font-family: var(--font);
  font-size: 2rem;
  font-weight: 600;
  line-height: 2.75rem;
  letter-spacing: -0.5px;
  color: #474747;
  text-align: center;
  counter-increment: headline-counter;
}
.headline-card__number::before {
  content: counter(headline-counter, decimal-leading-zero);
}
.headline-card__title {
  grid-area: title;
  margin-bottom: 0.5rem;
}
.headline-card__title a {
  font-size: 1rem;
  font-weight: 600;
  color: #474747;
  line-height: 1.5rem;
  letter-spacing: 0.25px;
  display: block;
  text-decoration: none;
}
.headline-card__title a:hover { color: var(--green-400); }
.headline-card__readmore {
  grid-area: readmore;
}
.headline-card__readmore a {
  font-size: 1rem;
  font-weight: 600;
  color: var(--green-400);
  letter-spacing: 1px;
  line-height: 24px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.headline-card__readmore a::after {
  content: '';
  display: inline-block;
  width: 1rem;
  height: 1rem;
  margin-left: 0.5rem;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTciIHZpZXdCb3g9IjAgMCAxNiAxNyIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxwYXRoIGQ9Ik05LjA4NjkgMy4zNzcxN0wxMy44MDA4IDcuODc2NzlDMTMuOTI4IDcuOTk4MTQgMTQgOC4xNjYzMiAxNCA4LjM0MjI5QzE0IDguNTE4MjUgMTMuOTI4IDguNjg2MTggMTMuODAwOCA4LjgwNzc4TDkuMDg2OSAxMy4zMDc0QzguODI5OTQgMTMuNTUxOCA4LjQyMzIxIDEzLjU0MjYgOC4xNzc4NyAxMy4yODU2QzcuOTMyNjQgMTMuMDMxMiA3Ljk0MTg1IDEyLjYyMjcgOC4xOTk2MyAxMi4zNzY2TDExLjc1MzggOC45ODU4MkgyLjY0MzA3QzIuMjg4MTkgOC45ODU4MiAyIDguNjk3NjMgMiA4LjM0Mjc1QzIgNy45ODc4NyAyLjI4ODE5IDcuNzAwMjIgMi42NDMwNyA3LjcwMDIySDExLjc1MjFMOC4xOTc5NiA0LjMwOTQzQzcuOTQwNTcgNC4wNjI4MyA3LjkzMjUzIDMuNjU0MzggOC4xNzYyNiAzLjM5OTEzQzguNDIyNjcgMy4xNDIwMSA4LjgwNTY3IDMuMTMyOTEgOS4wODY5IDMuMzc3MTdaIiBmaWxsPSIjMjA5NjRGIi8+Cjwvc3ZnPgo=");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}
.headline-card__readmore a:hover { color: #044d48; text-decoration: none; }

/* ============================================
   PERSONALIZED CONTENT SECTION
============================================ */
.personalized-section {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border-color);
}
.media-blocks__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.media-blocks__container:last-child { margin-bottom: 0; }
.media-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.media-block__image {
  width: 100%;
  margin-bottom: 1rem;
}
.media-block__image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.media-block__content {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.media-block__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}
.media-block__content p {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-body);
  margin-bottom: 1.25rem;
  line-height: 1.5;
  letter-spacing: 0.25px;
  max-width: 400px;
}
.media-block__btn {
  display: inline-block;
  background: var(--green-400);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 9999px;
  font-family: var(--font);
  text-decoration: none;
  transition: background 0.2s;
}
.media-block__btn:hover { background: var(--green-hover-dark); color: #fff; }

/* ============================================
   NEWSLETTER / SEARCH SECTION
============================================ */
.newsletter-section {
  background: var(--green-400);
  padding: 3rem 1.5rem;
  text-align: center;
  margin-top: 2.5rem;
  position: relative;
  overflow: hidden;
}
.newsletter-section::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
}
.newsletter-section::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -20px;
  width: 250px; height: 250px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
}
.newsletter-inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
}
.newsletter-section h2 {
  font-size: 1.75rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.75rem;
  line-height: 1.375;
}
.newsletter-section p {
  font-size: 1rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
}
/* Search form — exact classes from about-finance.org */
#site-search-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}
#site-search-form .form-group { margin: 0; padding: 0; }
#site-search-form .col-xl-8 { flex: 1; }
#site-search-form .col-xl-4 { flex: 0 0 auto; }
#site-search-form .form-control {
  width: 100%;
  height: 48px;
  padding: 0.5rem 1.25rem;
  font-size: 1rem;
  font-family: var(--font);
  border: none;
  border-radius: 4rem;
  outline: none;
  background: #fff;
  color: #333;
  box-shadow: none;
}
#site-search-form .form-control::placeholder { color: #999; }
#site-search-form .btn {
  height: 48px;
  padding: 0 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  white-space: nowrap;
  border-radius: 4rem;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  border: 2px solid #fff;
  font-family: var(--font);
  transition: background 0.2s, color 0.2s;
}
#site-search-form .btn-orange {
  background: transparent;
  color: #fff;
}
#site-search-form .btn-orange:hover {
  background: #fff;
  color: var(--green-400);
}

/* ============================================
   FOOTER
============================================ */
.site-footer {
  background: #1a1a1a;
  color: #999;
  padding: 3rem 1.5rem 1.5rem;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.footer-inner > .logo {
  max-width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}
.footer-logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}
.footer-logo-text span { color: var(--green-400); }
.footer-links-standard {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #2a2a2a;
}
.footer-links-standard a {
  font-size: 0.8125rem;
  color: #777;
  letter-spacing: 0.5px;
  transition: color 0.15s;
}
.footer-links-standard a:hover { color: var(--green-400); }
.footer-bottom {
  margin-bottom: 1rem;
}
.footer-copyright {
  font-size: 0.75rem;
  color: #555;
  letter-spacing: 0.5px;
  text-align: center;
}
.site-disclaimer {
  margin-top: 1.5rem;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
  text-align: center;
}

/* ============================================
   LAYOUT RESET
============================================ */
.home .container.main {
  width: 100%;
  max-width: 100%;
  padding: 0;
}

.container.layout {
  max-width: 100%;
  padding: 0;
}

.container.layout .row.layout {
  margin: 0;
}

.container.layout .row.layout > .cols {
  overflow-x: hidden;
}

.home .container.layout .row.layout > .cols {
  padding: 0;
}

.pages .main-wrapper .container.main {
  padding: 24px 16px;
}

/* ============================================
   FONTS RESET
============================================ */
.main-paragraph h1,
.main-paragraph h2 {
  font-weight: 700;
  color: var(--text);
}

.main-paragraph h1,
.main-paragraph h2,
.main-paragraph h3,
.main-paragraph p,
.main-paragraph strong {
  color: var(--text);
}

.main-paragraph h1 {
  font-size: 36px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}

.main-paragraph h2 {
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 40px 0 18px;
}

.main-paragraph h3 {
  font-size: 22px;
  line-height: 1.3;
  font-weight: 600;
  margin: 24px 0 10px;
}

.main-paragraph p {
  font-size: 17px;
  line-height: 1.7;
  margin: 0 0 16px;
}

.main-paragraph strong {
  font-weight: 700;
}

@media (max-width: 768px) {
  .main-paragraph h1 {
    font-size: 30px;
    margin-bottom: 16px;
  }

  .main-paragraph h2 {
    font-size: 25px;
    margin: 32px 0 16px;
  }

  .main-paragraph h3 {
    font-size: 20px;
    margin: 22px 0 8px;
  }

  .main-paragraph p {
    font-size: 16px;
    line-height: 1.65;
    margin-bottom: 14px;
  }
}

/* ============================================
   TABLE RESET
============================================ */
table { margin: 32px 0; }

table th, table td {
  border-color: var(--border) !important;
  padding: 8px 16px !important;
}

table td {
  color: var(--text) !important;
}

table th {
  background: var(--primary-500) !important;
  color: var(--white) !important;
  font-size: 13px !important;
  font-weight: bold !important;
}

table tbody tr:nth-child(even) td {
  background: var(--surface-100) !important;
}

@media (max-width: 992px) {
  table {
    display: block !important;
    overflow-x: auto !important;
    border: 0 !important;
  }
}

/* ============================================
   CONTACT US FORM
============================================ */
#contact-form {
  margin: 45px auto 0;
  max-width: 500px;
}

#contact-form input,
#contact-form textarea {
  flex: 1;
  border: 2px solid var(--gray-300);
  border-radius: 6px;
  outline: 0;
  padding: 14px 18px;
  font-size: 14px;
  color: var(--text);
  min-width: 100%;
}

#contact-form input:active,
#contact-form input:focus,
#contact-form textarea:active,
#contact-form textarea:focus {
  border: 2px solid var(--primary-500);
}

#contact-form input::placeholder,
#contact-form textarea::placeholder {
  color: var(--gray-600);
}

#contact-form button {
  background: var(--primary-500);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  padding: 16px;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.2s;
  white-space: nowrap;
  width: 100%;
}

#contact-form button:hover {
  background: var(--accent-500);
}

/* ═══════════════════════════════════
           WIDGETS
═══════════════════════════════════ */

/* IMAGE STYLE RESET */
.item-current-image img {
  box-shadow: none !important;
  border-radius: 4px !important;
  border-color: var(--gray-300) !important;
}

/* SUBLIST */
.item-sublist a {
  width: 100%;
  height: 100%;
}

.item.item-bubbles {
  margin-bottom: 32px;
}

.item-bubbles .row {
  margin: 0;
}

.bubbles-chip {
  align-items: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  display: flex;
  font-weight: 500;
  height: 100%;
  padding: 16px 48px 16px 24px;
  position: relative;
  transition: padding 0.2s ease-in-out;
}

.bubbles-chip:hover {
  color: var(--primary-800);
  background: var(--surface-100);
  border-color: var(--primary-100);
  padding-left: 20px;
}

.bubbles-chip:active,
.bubbles-chip:focus {
  background: var(--accent-500);
  color: var(--white);
}

.bubbles-link {
  display: block;
  width: 100%;
  max-width: 100%;
  text-decoration: none;
}

.bubbles-link .bubbles-outer {
  height: 100%;
  padding: 5px;
  max-width: 100%;
}

.sibling.link-button .bubbles-link .bubbles-outer,
.sibling.link-button .bubbles-chip {
  height: auto;
}

.col-gap:has(> .item-bubbles)::before {
  display: none !important;
}

.bubbles-chip::after {
  content: url("data:image/svg+xml,%3Csvg width='13' height='12' viewBox='0 0 13 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8.87771 7.01782H1.02042C0.737361 7.01782 0.496528 6.91886 0.297917 6.72094C0.0993056 6.52317 0 6.2833 0 6.00136C0 5.71942 0.0993056 5.4781 0.297917 5.2774C0.496528 5.07657 0.737361 4.97615 1.02042 4.97615H8.87771L5.66583 1.76428C5.46111 1.55955 5.35681 1.31719 5.35292 1.03719C5.34889 0.757332 5.45076 0.510249 5.65854 0.295943C5.86632 0.0948319 6.11014 -0.00377823 6.39 0.000110661C6.66986 0.00399955 6.91236 0.108583 7.1175 0.313861L12.0713 5.27407C12.1699 5.37282 12.2464 5.4856 12.3008 5.6124C12.3551 5.73935 12.3823 5.86865 12.3823 6.00032C12.3823 6.13199 12.3551 6.26122 12.3008 6.38803C12.2464 6.51497 12.1727 6.62497 12.0798 6.71803L7.10958 11.688C6.89403 11.9037 6.65368 12.0081 6.38854 12.0012C6.12354 11.9942 5.88715 11.8862 5.67938 11.6772C5.4716 11.4629 5.36771 11.2166 5.36771 10.9382C5.36771 10.6599 5.4716 10.4192 5.67938 10.2162L8.87771 7.01782Z' fill='%2320964f'/%3E%3C/svg%3E%0A");
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  transition: 0.2s ease-in-out;
}

.bubbles-chip:hover::after {
  right: 10px;
}

/* SUBLIST CARDS */
.item-sublist:has(.sublist.card) .row > div {
  padding: 5px !important;
}

.sublist.card {
  border: none;
  border-radius: 6px;
  box-shadow: var(--box-shadow-md);
  transition: 0.2s ease-in;
}

.sublist.card:hover {
  box-shadow: var(--box-shadow-lg);
  color: var(--primary-500);
  transform: translateY(-4px);
}

.sublist.card h5 {
  margin-bottom: 0;
  font-weight: 500;
}

.sublist.card .card-body {
  padding: 16px;
}

@media (max-width: 767.98px) {
  .row div:has(> .sublist.card) {
    padding: 0 !important;
  }

  .row:has(> div .sublist.card) {
    margin: 0;
    gap: 10px;
  }

  .sublist.card {
    display: flex;
    flex-direction: row;
    align-items: center;
  }

  .sublist.card .card-img-top {
    border-radius: calc(var(--bs-border-radius) - (var(--bs-border-width)));
    width: 120px;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
  }

  .sublist.card .card-body {
    flex: 1;
    padding: 1rem;
  }

  .sublist.card .card-body * {
    line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }

  .sublist.card .card-body h5 {
    font-size: 16px;
  }
}

/* ============================================
   RESPONSIVE — CONTENT (must be last to win cascade)
============================================ */
@media (max-width: 768px) {
  .site-intro__headline { font-size: 1.5rem; }

  .tab-bar {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.375rem;
    overflow-x: visible;
  }
  .tab-item {
    margin-right: 0;
    padding: 0.4rem 0.5rem;
    font-size: 0.75rem;
    text-align: center;
    white-space: normal;
    line-height: 1.2;
  }

  .article-grid { grid-template-columns: 1fr; }
  .card-horizontal__thumb { width: 90px; }
  .headlines-grid { grid-template-columns: 1fr 1fr; }
  .media-blocks__container { grid-template-columns: 1fr; }
  .newsletter-inner { padding: 2rem 1.25rem; }
}

@media (max-width: 480px) {
  .headlines-grid { grid-template-columns: 1fr; }
}
