/* ==========================================================================
   Mouse Agents Product Updates blog
   Loaded by home.php and single-post.php in blocksy-child.
   Brand: navy #0d2847 / teal #00B4C5. Montserrat body, DM Serif Display headlines.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=Montserrat:wght@400;500;600;700&display=swap');

.ma-blog {
  font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
  color: #1f2937;
  background: #f8fafb;
}
.ma-blog *, .ma-blog *::before, .ma-blog *::after { box-sizing: border-box; }
.ma-blog a { color: #00B4C5; text-decoration: none; }
.ma-blog a:hover { color: #008A99; }

/* Layout -------------------------------------------------------------- */
.ma-wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.ma-wrap--narrow { max-width: 760px; }

/* Shared meta --------------------------------------------------------- */
.ma-eyebrow {
  margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: #00B4C5;
}
.ma-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500; color: #6b7280;
}
.ma-meta__cat { font-weight: 700; color: #00B4C5; text-transform: uppercase; letter-spacing: .06em; font-size: 12px; }
.ma-meta__dot { width: 4px; height: 4px; border-radius: 50%; background: #d1d5db; display: inline-block; }
.ma-meta--light { color: rgba(255,255,255,.72); }
.ma-meta--light .ma-meta__cat { color: #00B4C5; }
.ma-meta--light .ma-meta__dot { background: rgba(255,255,255,.35); }

/* Buttons ------------------------------------------------------------- */
.ma-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px; border-radius: 8px; font-weight: 600; font-size: 15px;
  line-height: 1; border: 2px solid transparent; transition: background .15s, color .15s, border-color .15s;
}
.ma-btn--teal { background: #00B4C5; color: #ffffff; border-color: #00B4C5; }
.ma-btn--teal:hover { background: #008A99; border-color: #008A99; color: #ffffff; }
.ma-btn--ghost { background: transparent; color: #ffffff; border-color: rgba(255,255,255,.4); }
.ma-btn--ghost:hover { border-color: #ffffff; color: #ffffff; }
.ma-btn--ghost-dark { background: transparent; color: #0d2847; border-color: #0d2847; }
.ma-btn--ghost-dark:hover { background: #0d2847; color: #ffffff; }
.ma-readmore { font-weight: 600; font-size: 14px; }

.ma-pill {
  display: inline-block; padding: 8px 16px; border-radius: 999px; font-size: 13px; font-weight: 600;
  color: #0d2847; background: #ffffff; border: 1px solid #e5e7eb; transition: all .15s;
}
.ma-pill:hover { border-color: #00B4C5; color: #00B4C5; }
.ma-pill.is-active { background: #0d2847; color: #ffffff; border-color: #0d2847; }
.ma-pill--small { padding: 5px 12px; font-size: 12px; }

/* ==========================================================================
   Index page
   ========================================================================== */
.ma-blog-hero {
  background: #0d2847; color: #ffffff; padding: 56px 0 44px; text-align: left;
  background-image: radial-gradient(1200px 400px at 85% -20%, rgba(0,180,197,.18), transparent 60%);
}
.ma-blog-hero__title {
  font-family: 'DM Serif Display', Georgia, serif; font-weight: 400;
  font-size: 40px; line-height: 1.1; margin: 0 0 14px; color: #ffffff;
}
.ma-blog-hero__lede { margin: 0; max-width: 620px; font-size: 17px; line-height: 1.6; color: rgba(255,255,255,.78); }

.ma-blog-filter { background: #ffffff; border-bottom: 1px solid #e5e7eb; }
.ma-blog-filter .ma-wrap {
  display: flex; gap: 8px; overflow-x: auto; padding-top: 14px; padding-bottom: 14px;
  scrollbar-width: none; -ms-overflow-style: none;
}
.ma-blog-filter .ma-wrap::-webkit-scrollbar { display: none; }
.ma-blog-filter .ma-pill { flex: 0 0 auto; }

.ma-blog-grid-section { padding: 36px 0 56px; }

/* Featured post */
.ma-feature {
  display: grid; grid-template-columns: 1fr; gap: 0; background: #ffffff;
  border: 1px solid #e5e7eb; border-radius: 14px; overflow: hidden; margin-bottom: 32px;
}
.ma-feature__body { padding: 26px 24px 28px; }
.ma-feature__title { font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; font-size: 28px; line-height: 1.2; margin: 12px 0 12px; }
.ma-feature__title a { color: #0d2847; }
.ma-feature__title a:hover { color: #00B4C5; }
.ma-feature__excerpt { font-size: 16px; line-height: 1.65; color: #4b5563; margin: 0 0 18px; }

/* Card grid */
.ma-grid { display: grid; grid-template-columns: 1fr; gap: 22px; }
.ma-card {
  background: #ffffff; border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden;
  display: flex; flex-direction: column; transition: box-shadow .18s, transform .18s;
}
.ma-card:hover { box-shadow: 0 10px 28px rgba(13,40,71,.10); transform: translateY(-2px); }
.ma-card__body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.ma-card__title { font-size: 19px; font-weight: 700; line-height: 1.3; margin: 10px 0 8px; }
.ma-card__title a { color: #0d2847; }
.ma-card__title a:hover { color: #00B4C5; }
.ma-card__excerpt { font-size: 14px; line-height: 1.6; color: #6b7280; margin: 0 0 14px; flex: 1; }
.ma-card--compact { border-radius: 10px; }

/* Media + branded fallback */
.ma-card__media { aspect-ratio: 16 / 9; overflow: hidden; background: #12202D; }
.ma-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ma-card__media--brand {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; padding: 18px 20px;
  background: linear-gradient(135deg, #0d2847 0%, #12202D 55%, #0a1628 100%);
}
.ma-card__media--brand::before {
  content: ''; position: absolute; right: -40px; top: -60px; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,180,197,.35) 0%, rgba(0,180,197,0) 70%);
}
.ma-card__media--brand::after {
  content: ''; position: absolute; left: 20px; bottom: 58px; width: 36px; height: 3px; background: #00B4C5; border-radius: 2px;
}
.ma-card__brand-label { position: relative; font-family: 'DM Serif Display', Georgia, serif; font-size: 24px; color: #ffffff; line-height: 1.15; }
.ma-card__brand-mark { position: relative; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.6); margin-top: 6px; }

/* Pagination */
.ma-pagination { margin-top: 36px; }
.ma-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.ma-pagination .page-numbers {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 8px;
  background: #ffffff; border: 1px solid #e5e7eb; color: #0d2847; font-weight: 600; font-size: 14px;
}
.ma-pagination .page-numbers.current { background: #0d2847; color: #ffffff; border-color: #0d2847; }
.ma-pagination .page-numbers:hover:not(.current) { border-color: #00B4C5; color: #00B4C5; }

.ma-empty { text-align: center; padding: 60px 0; color: #6b7280; }
.ma-empty h2 { font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; color: #0d2847; }

/* Subscribe strip */
.ma-blog-cta { background: #0d2847; color: #ffffff; padding: 44px 0; }
.ma-blog-cta__inner { display: flex; flex-direction: column; gap: 22px; }
.ma-blog-cta__title { font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; font-size: 26px; margin: 0 0 8px; color: #ffffff; }
.ma-blog-cta__text { margin: 0; max-width: 560px; color: rgba(255,255,255,.78); line-height: 1.6; font-size: 15px; }
.ma-blog-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ==========================================================================
   Single post
   ========================================================================== */
.ma-post-hero {
  background: #0d2847; color: #ffffff; padding: 40px 0 48px;
  background-image: radial-gradient(900px 360px at 90% -30%, rgba(0,180,197,.18), transparent 60%);
}
.ma-crumb { display: inline-block; font-size: 13px; font-weight: 600; color: rgba(255,255,255,.7); margin-bottom: 22px; }
.ma-crumb:hover { color: #ffffff; }
.ma-post-hero__title {
  font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; font-size: 36px; line-height: 1.15;
  margin: 14px 0 14px; color: #ffffff;
}
.ma-post-hero__lede { margin: 0; font-size: 17px; line-height: 1.6; color: rgba(255,255,255,.78); }

.ma-post-figure { margin: -24px 0 0; border-radius: 12px; overflow: hidden; border: 1px solid #e5e7eb; background: #ffffff; }
.ma-post-figure img { display: block; width: 100%; height: auto; }

.ma-post { padding: 40px 0 8px; }

/* Article typography */
.ma-prose { font-size: 17px; line-height: 1.75; color: #1f2937; }
.ma-prose > * + * { margin-top: 1.1em; }
.ma-prose p { margin: 0; }
.ma-prose p + p { margin-top: 1.1em; }
.ma-prose h2 { font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; font-size: 28px; line-height: 1.2; color: #0d2847; margin-top: 2em; }
.ma-prose h3 { font-size: 20px; font-weight: 700; color: #0d2847; margin-top: 1.8em; }
.ma-prose h4 { font-size: 17px; font-weight: 700; color: #0d2847; }
.ma-prose strong { color: #0d2847; font-weight: 700; }
.ma-prose ul, .ma-prose ol { padding-left: 1.4em; }
.ma-prose li + li { margin-top: .45em; }
.ma-prose li::marker { color: #00B4C5; font-weight: 700; }
.ma-prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(0,180,197,.4); }
.ma-prose a:hover { text-decoration-color: #008A99; }
.ma-prose blockquote {
  margin: 1.6em 0; padding: 14px 20px; border-left: 4px solid #00B4C5; background: #ffffff;
  border-radius: 0 8px 8px 0; color: #4b5563; font-style: normal;
}
.ma-prose img, .ma-prose figure { max-width: 100%; height: auto; border-radius: 10px; }
.ma-prose figcaption { font-size: 13px; color: #6b7280; margin-top: 8px; text-align: center; }
.ma-prose hr { border: 0; border-top: 1px solid #e5e7eb; margin: 2.2em 0; }
.ma-prose table { width: 100%; border-collapse: collapse; font-size: 15px; background: #ffffff; }
.ma-prose th, .ma-prose td { padding: 10px 12px; border: 1px solid #e5e7eb; text-align: left; }
.ma-prose th { background: #0d2847; color: #ffffff; font-weight: 600; }
.ma-prose code { font-size: .92em; background: #eef2f5; padding: 2px 6px; border-radius: 4px; }

.ma-post-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 34px; }
.ma-post-tags__label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #6b7280; margin-right: 4px; }

/* In-post CTA */
.ma-post-cta {
  margin: 44px 0 0; padding: 28px 26px; background: #ffffff; border: 1px solid #e5e7eb;
  border-top: 4px solid #00B4C5; border-radius: 12px;
}
.ma-post-cta__title { font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; font-size: 24px; color: #0d2847; margin: 0 0 8px; }
.ma-post-cta p { margin: 0 0 18px; color: #4b5563; line-height: 1.6; font-size: 15px; }
.ma-post-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Prev / next */
.ma-post-nav { padding: 40px 0 8px; }
.ma-post-nav__inner { display: grid; grid-template-columns: 1fr; gap: 14px; }
.ma-post-nav__link {
  display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; background: #ffffff;
  border: 1px solid #e5e7eb; border-radius: 10px; color: #0d2847; transition: border-color .15s;
}
.ma-post-nav__link:hover { border-color: #00B4C5; color: #0d2847; }
.ma-post-nav__link--next { text-align: right; }
.ma-post-nav__label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #00B4C5; }
.ma-post-nav__title { font-weight: 600; font-size: 15px; line-height: 1.4; }

/* Related */
.ma-related { padding: 48px 0 64px; }
.ma-related__title { font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; font-size: 26px; color: #0d2847; margin: 0 0 20px; }

/* ==========================================================================
   Breakpoints
   ========================================================================== */
@media (min-width: 640px) {
  .ma-grid { grid-template-columns: repeat(2, 1fr); }
  .ma-blog-hero { padding: 72px 0 56px; }
  .ma-blog-hero__title { font-size: 48px; }
  .ma-post-hero__title { font-size: 42px; }
  .ma-post-nav__inner { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .ma-wrap { padding: 0 32px; }
  .ma-grid { grid-template-columns: repeat(3, 1fr); }
  .ma-grid--related { grid-template-columns: repeat(3, 1fr); }
  .ma-feature { grid-template-columns: 1.15fr 1fr; }
  .ma-feature .ma-card__media { aspect-ratio: auto; height: 100%; min-height: 320px; }
  .ma-feature__body { padding: 40px 40px 44px; align-self: center; }
  .ma-feature__title { font-size: 34px; }
  .ma-blog-cta__inner { flex-direction: row; align-items: center; justify-content: space-between; }
  .ma-post-hero { padding: 52px 0 64px; }
  .ma-post-hero__title { font-size: 48px; }
  .ma-post-figure { margin-top: -32px; }
}
/* Blocksy link-colour override fix */
.ma-blog .ma-btn--teal,
.ma-blog .ma-btn--teal:hover,
.ma-blog .ma-btn--teal:focus { color: #ffffff !important; }
.ma-blog .ma-btn--ghost,
.ma-blog .ma-btn--ghost:hover { color: #ffffff !important; }
.ma-blog .ma-btn--ghost-dark { color: #0d2847 !important; }
.ma-blog .ma-btn--ghost-dark:hover { color: #ffffff !important; }
.ma-blog .ma-pill.is-active,
.ma-blog .ma-pill.is-active:hover { color: #ffffff !important; }
.ma-blog .ma-crumb { color: rgba(255,255,255,.7) !important; }
.ma-blog .ma-crumb:hover { color: #ffffff !important; }

/* Blocksy container overrides */
.site-main > .ma-blog { width: 100%; max-width: none; margin: 0; padding: 0; }
.ma-blog .ma-post-hero,
.ma-blog .ma-blog-hero,
.ma-blog .ma-blog-cta { display: block !important; visibility: visible !important; height: auto !important; overflow: visible !important; }
.ma-blog .ma-btn--teal,
.ma-blog .ma-btn--teal:hover,
.ma-blog .ma-btn--teal:focus { color: #ffffff !important; }
.ma-blog .ma-btn--ghost,
.ma-blog .ma-btn--ghost:hover { color: #ffffff !important; }
.ma-blog .ma-btn--ghost-dark { color: #0d2847 !important; }
.ma-blog .ma-btn--ghost-dark:hover { color: #ffffff !important; }
.ma-blog .ma-pill.is-active,
.ma-blog .ma-pill.is-active:hover { color: #ffffff !important; }
.ma-blog .ma-crumb { color: rgba(255,255,255,.7) !important; }
.ma-blog .ma-crumb:hover { color: #ffffff !important; }

/* Top navigation (matches public homepage) */
.ma-topnav { background: #0d2847; }
.ma-topnav__inner { display: flex; align-items: center; justify-content: space-between; padding-top: 18px; padding-bottom: 18px; }
.ma-topnav__logo img { height: 48px; width: auto; display: block; }
.ma-topnav__links { display: flex; align-items: center; gap: 28px; }
.ma-topnav__links a { color: #ffffff !important; font-weight: 500; font-size: 14.5px; letter-spacing: .02em; transition: opacity .2s; }
.ma-topnav__links a:hover { opacity: .7; color: #ffffff !important; }
.ma-topnav__links a.is-current { color: #00B4C5 !important; font-weight: 600; }
.ma-topnav__btn { padding: 10px 22px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.4); border-radius: 6px; font-weight: 600 !important; font-size: 13.5px !important; letter-spacing: .03em; }
.ma-topnav__btn:hover { background: #00B4C5; border-color: #00B4C5; opacity: 1 !important; }
.ma-blog-hero, .ma-post-hero { padding-top: 36px; }
@media (max-width: 600px) {
  .ma-topnav__logo img { height: 40px; }
  .ma-topnav__links { gap: 16px; }
  .ma-topnav__links a:not(.ma-topnav__btn):not(.is-current) { display: none; }
}