/* ===== Money Mate Blog — shared styles (listing + post pages) ===== */

:root {
  --mm-green: #3cac62;
  --mm-green-dark: #2e9e6e;
  --mm-green-deep: #236b48;
  --mm-text: #222222;
  --mm-text-body: #555555;
  --mm-bg-soft: #f6f9f7;
  --mm-border: #e7ece9;
  --mm-white: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter-Regular', sans-serif;
  color: var(--mm-text-body);
}

a {
  text-decoration: none;
  color: inherit;
}

.mm-blog-page {
  overflow-x: hidden;
}

/* ===== Header — identical to the site's common header (about/services/technology/contact), not a separate implementation ===== */
.mm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 25px 60px;
  background-color: #fff;
  position: fixed;
  top: 0px;
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  z-index: 999;
}

.mm-logo img {
  width: 210px;
  height: auto;
  cursor: pointer;
}

/* ===== Navigation ===== */
.mm-nav {
  display: flex;
  align-items: center;
  gap: 60px;
}

.mm-link {
  font-family: Inter-Regular, sans-serif;
  font-size: 100px;
  font-weight: 500;
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.mm-link:hover {
  color: #36b37e;
}

/* ===== Dropdown (Services) ===== */
.mm-dropdown {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.mm-icon {
  width: 12px;
  height: 12px;
}

/* ===== Call-to-Action Button ===== */
.mm-button {
  background-color: #3cac62;
  color: #fff;
  font-family: Inter-Regular, sans-serif;
  font-size: 16px;
  font-weight: 500;
  border: none;
  padding: 12px 28px;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.mm-button:hover {
  background-color: #2e9e6e;
}

/* ===== Responsive between 900px – 1500px ===== */
@media (min-width: 900px) {
  .mm-header {
    padding: 20px 40px;
  }

  .mm-logo img {
    width: 210px;
  }

  .mm-nav {
    gap: 40px;
  }

  .mm-link {
    font-size: 18px;
    font-weight: 500;
  }

  .mm-button {
    font-size: 15px;
    padding: 10px 24px;
  }
}

/* Hide by default menu */
.vector {
  display: none;
}

.mm-cta {
  display: none;
}

/* ---------- Mobile View (below 900px) ---------- */
@media (max-width: 900px) {
  .mm-header {
    justify-content: space-between;
    padding: 10px 16px;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background-color: #fff;
    z-index: 999;
  }

  .mm-nav {
    display: none;
  }

  .vector {
    display: inline-block;
    width: 18px;
    height: 18px;
    object-fit: contain;
  }

  .mm-cta {
    display: inline-block;
  }

  .mm-logo img {
    width: 140px;
    height: auto;
  }

  .mm-cta {
    display: flex;
    gap: 12px;
    align-items: center;
  }

  .mm-button {
    padding: 7px 16px;
    font-size: 12px;
  }
}

/* ===== Breadcrumb ===== */
.mm-breadcrumb {
  max-width: 1200px;
  margin: 0 auto;
  padding: 130px 40px 0;
  font-size: 14px;
  color: #8a938e;
}

.mm-breadcrumb a {
  color: var(--mm-green-dark);
}

.mm-breadcrumb a:hover {
  text-decoration: underline;
}

/* ===== Blog Hero ===== */
.blog-hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 40px 40px;
  text-align: center;
}

.blog-hero-eyebrow {
  display: inline-block;
  color: var(--mm-green-dark);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.blog-hero h1 {
  font-size: 44px;
  font-weight: 700;
  color: var(--mm-text);
  line-height: 1.2;
  margin-bottom: 16px;
}

.blog-hero p {
  font-size: 18px;
  line-height: 1.6;
  max-width: 680px;
  margin: 0 auto;
}

/* ===== Category filter pills ===== */
.blog-filters {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.blog-filter-pill {
  border: 1px solid var(--mm-border);
  background: #fff;
  color: var(--mm-text);
  font-size: 14px;
  font-weight: 500;
  padding: 9px 20px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Inter-Regular', sans-serif;
}

.blog-filter-pill:hover {
  border-color: var(--mm-green);
  color: var(--mm-green-dark);
}

.blog-filter-pill.is-active {
  background: var(--mm-green);
  border-color: var(--mm-green);
  color: #fff;
}

/* ===== Layout: content + sidebar ===== */
.blog-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 40px 100px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 50px;
  align-items: start;
}

.blog-main {
  min-width: 0;
}

/* ===== Featured post ===== */
.blog-featured {
  display: block;
  max-width: 720px;
  background: var(--mm-bg-soft);
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 44px;
  border: 1px solid var(--mm-border);
}

.blog-featured-media {
  background: linear-gradient(135deg, var(--mm-green) 0%, var(--mm-green-deep) 100%);
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

.blog-featured-media img {
  width: 88px;
  height: 88px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.blog-featured-media--photo {
  padding: 0;
  overflow: hidden;
  min-height: 0;
  height: auto;
  aspect-ratio: 2.3 / 1;
  display: block;
}

.blog-featured-media--photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: none;
  opacity: 1;
}

.blog-featured-body {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.blog-tag {
  display: inline-block;
  align-self: flex-start;
  background: rgba(60, 172, 98, 0.12);
  color: var(--mm-green-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.blog-featured-body h2 {
  font-size: 26px;
  font-weight: 700;
  color: var(--mm-text);
  line-height: 1.3;
  margin-bottom: 12px;
}

.blog-featured-body h2 a:hover {
  color: var(--mm-green-dark);
}

.blog-featured-body p {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #8a938e;
  margin-bottom: 4px;
}

.blog-meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #8a938e;
}

.blog-read-link {
  color: var(--mm-green-dark);
  font-weight: 600;
  font-size: 14px;
}

.blog-read-link:hover {
  text-decoration: underline;
}

/* ===== Post grid ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.blog-card {
  border: 1px solid var(--mm-border);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  box-shadow: 0 12px 28px rgba(34, 34, 34, 0.08);
  transform: translateY(-3px);
}

.blog-card-media {
  background: var(--mm-bg-soft);
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-card-media img {
  width: 46px;
  height: 46px;
  opacity: 0.85;
}

.blog-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card-body h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--mm-text);
  line-height: 1.4;
  margin: 6px 0 10px;
}

.blog-card-body h3 a:hover {
  color: var(--mm-green-dark);
}

.blog-card-body p {
  font-size: 14px;
  line-height: 1.65;
  margin-bottom: 16px;
  flex: 1;
}

/* ===== Sidebar ===== */
.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: sticky;
  top: 130px;
}

.blog-widget {
  border: 1px solid var(--mm-border);
  border-radius: 16px;
  padding: 22px;
  background: #fff;
}

.blog-widget h4 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--mm-text);
  margin-bottom: 16px;
}

.blog-search {
  display: flex;
  border: 1px solid var(--mm-border);
  border-radius: 10px;
  overflow: hidden;
}

.blog-search input {
  flex: 1;
  border: none;
  padding: 10px 12px;
  font-size: 14px;
  font-family: 'Inter-Regular', sans-serif;
  outline: none;
}

.blog-search button {
  border: none;
  background: var(--mm-green);
  color: #fff;
  padding: 0 16px;
  cursor: pointer;
}

.blog-recent-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.blog-recent-list a {
  font-size: 14px;
  font-weight: 500;
  color: var(--mm-text);
  line-height: 1.5;
}

.blog-recent-list a:hover {
  color: var(--mm-green-dark);
}

.blog-category-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.blog-category-list button {
  display: flex;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 9px 4px;
  font-size: 14px;
  font-family: 'Inter-Regular', sans-serif;
  color: var(--mm-text);
  cursor: pointer;
  border-radius: 8px;
}

.blog-category-list button:hover,
.blog-category-list button.is-active {
  background: var(--mm-bg-soft);
  color: var(--mm-green-dark);
}

.blog-category-list span.count {
  color: #8a938e;
  font-size: 13px;
}

.blog-widget-cta {
  background: linear-gradient(135deg, var(--mm-green) 0%, var(--mm-green-deep) 100%);
  border: none;
}

.blog-widget-cta h4 {
  color: #fff;
}

.blog-widget-cta p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 16px;
}

.blog-widget-cta__button {
  display: block;
  text-align: center;
  background: #fff;
  color: var(--mm-green-dark);
  font-weight: 600;
  font-size: 14px;
  padding: 11px 20px;
  border-radius: 8px;
  margin-bottom: 18px;
  transition: background-color 0.3s ease;
}

.blog-widget-cta__button:hover {
  background: #f0f0f0;
}

.blog-no-results {
  display: none;
  text-align: center;
  padding: 60px 20px;
  color: #8a938e;
  font-size: 15px;
}

.blog-more-soon {
  text-align: center;
  padding: 30px 20px 10px;
  color: #8a938e;
  font-size: 14px;
}

/* ===== Article (single post) page ===== */
.blog-article-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px 40px 0;
}

.blog-article-header {
  text-align: center;
  margin-bottom: 30px;
}

.blog-article-header h1 {
  font-size: 38px;
  font-weight: 700;
  color: var(--mm-text);
  line-height: 1.25;
  margin: 16px 0 18px;
}

.blog-article-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
  color: #8a938e;
}

.blog-article-hero {
  background: linear-gradient(135deg, var(--mm-green) 0%, var(--mm-green-deep) 100%);
  border-radius: 20px;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;
}

.blog-article-hero img {
  width: 76px;
  height: 76px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.blog-article-hero--photo {
  background: var(--mm-bg-soft);
  min-height: 0;
  min-width: 0;
  height: auto;
  display: block;
  overflow: hidden;
  border-radius: 20px;
}

.blog-article-hero--photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
  filter: none;
  opacity: 1;
}

.blog-article-figure {
  margin: 8px 0 32px;
}

.blog-article-figure img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid var(--mm-border);
}

.blog-article-body {
  font-size: 17px;
  line-height: 1.85;
  color: var(--mm-text-body);
  padding-bottom: 20px;
}

.blog-article-body h2 {
  font-size: 25px;
  font-weight: 700;
  color: var(--mm-text);
  margin: 42px 0 16px;
}

.blog-article-body h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--mm-text);
  margin: 30px 0 12px;
}

.blog-article-body p {
  margin-bottom: 20px;
}

.blog-article-body ul {
  list-style-type: disc;
  margin: 0 0 20px 22px;
}

.blog-article-body ol {
  list-style-type: decimal;
  margin: 0 0 20px 22px;
}

.blog-article-body ul li::marker {
  color: var(--mm-green);
}

.blog-article-body li {
  margin-bottom: 10px;
}

.blog-article-body strong {
  color: var(--mm-text);
}

.blog-article-cta {
  background: var(--mm-bg-soft);
  border: 1px solid var(--mm-border);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  margin: 44px 0;
}

.blog-article-cta h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--mm-text);
  margin-bottom: 10px;
}

.blog-article-cta p {
  font-size: 14px;
  margin-bottom: 18px;
}

.blog-article-cta a.mm-button {
  display: inline-block;
}

.blog-article-footer {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 40px 30px;
}

.blog-share {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--mm-border);
  border-bottom: 1px solid var(--mm-border);
  padding: 20px 0;
  margin-bottom: 50px;
  font-size: 14px;
  color: var(--mm-text);
}

.blog-share a {
  color: var(--mm-green-dark);
  font-weight: 600;
}

.blog-related {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px 100px;
}

.blog-related h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--mm-text);
  margin-bottom: 24px;
}

.blog-related .blog-grid {
  grid-template-columns: repeat(3, 1fr);
}
