/* ==========================================================================
   MCP-ADS Theme - Main Stylesheet
   A modern, professional WordPress theme for financial content
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Reset & Base
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
  font-size: 1rem;
  color: #1a1a2e;
  background-color: #ffffff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

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

ul,
ol {
  list-style: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

hr {
  border: none;
  border-top: 1px solid #e2e8f0;
  margin: 2rem 0;
}

::selection {
  background-color: #482d70;
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   2. Typography System
   -------------------------------------------------------------------------- */

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: #1a1a2e;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2rem, 4vw + 0.5rem, 3.25rem);
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.625rem, 3vw + 0.25rem, 2.5rem);
  margin-bottom: 0.875rem;
}

h3 {
  font-size: clamp(1.375rem, 2.5vw + 0.125rem, 2rem);
  margin-bottom: 0.75rem;
}

h4 {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  margin-bottom: 0.625rem;
}

h5 {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  margin-bottom: 0.5rem;
}

h6 {
  font-size: clamp(0.875rem, 1.25vw, 1.125rem);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

p {
  font-size: clamp(0.9375rem, 1vw + 0.125rem, 1.0625rem);
  line-height: 1.75;
  color: #1a1a2e;
  margin-bottom: 1.25rem;
}

a:not([class]) {
  color: #482d70;
  text-decoration: underline;
  text-decoration-color: rgba(72, 45, 112, 0.3);
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

a:not([class]):hover {
  color: #6b4b9a;
  text-decoration-color: #6b4b9a;
}

strong, b {
  font-weight: 600;
}

em, i {
  font-style: italic;
}

small {
  font-size: 0.875rem;
  color: #64748b;
}

/* --------------------------------------------------------------------------
   3. Layout
   -------------------------------------------------------------------------- */

.mcp-container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1rem, 3vw, 2rem);
  padding-right: clamp(1rem, 3vw, 2rem);
}

.mcp-main {
  flex: 1;
  padding-top: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: clamp(2rem, 4vw, 4rem);
}

.mcp-content-area {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 1024px) {
  .mcp-content-area--with-sidebar {
    grid-template-columns: 1fr 320px;
  }
}

/* --------------------------------------------------------------------------
   4. Header
   -------------------------------------------------------------------------- */

.mcp-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #ffffff;
  border-bottom: 1px solid #eaeaea;
  transition: box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

.mcp-header-scrolled {
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(0,0,0,.06);
}

.mcp-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.mcp-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: #482d70;
  letter-spacing: -0.02em;
  transition: opacity 0.2s ease;
  flex-shrink: 0;
}

.mcp-logo:hover {
  opacity: 0.85;
}

.mcp-logo img {
  height: 36px;
  width: auto;
}

/* --------------------------------------------------------------------------
   5. Navigation
   -------------------------------------------------------------------------- */

.mcp-nav {
  display: flex;
  align-items: center;
}

.mcp-nav-list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.mcp-nav-list a {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.875rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #1a1a2e;
  border-radius: 8px;
  transition: color 0.2s ease, background-color 0.2s ease;
  white-space: nowrap;
}

.mcp-nav-list a:hover,
.mcp-nav-list .current-menu-item > a,
.mcp-nav-list .current_page_item > a {
  color: #482d70;
  background-color: rgba(72, 45, 112, 0.06);
}

.mcp-nav-cta {
  margin-left: 0.75rem;
}

.mcp-nav-cta a {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #ffffff !important;
  background-color: #15803d;
  border-radius: 8px;
  transition: background-color 0.2s ease, transform 0.15s ease,
    box-shadow 0.2s ease;
}

.mcp-nav-cta a:hover {
  background-color: #166534;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(21, 128, 61, 0.3);
}

/* Hamburger Menu Toggle */
.mcp-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  cursor: pointer;
  background: none;
  border: none;
  border-radius: 8px;
  transition: background-color 0.2s ease;
  position: relative;
  z-index: 1001;
}

.mcp-menu-toggle:hover {
  background-color: rgba(72, 45, 112, 0.06);
}

.mcp-menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: #1a1a2e;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
}

.mcp-menu-toggle span:nth-child(1) {
  margin-bottom: 5px;
}

.mcp-menu-toggle span:nth-child(3) {
  margin-top: 5px;
}

/* Hamburger open state */
.mcp-menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mcp-menu-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mcp-menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Nav */
@media (max-width: 767px) {
  .mcp-menu-toggle {
    display: flex;
  }

  .mcp-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 85vw);
    height: 100vh;
    background-color: #ffffff;
    flex-direction: column;
    align-items: stretch;
    padding: 5rem 1.5rem 2rem;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    overflow-y: auto;
  }

  .mcp-nav.active {
    transform: translateX(0);
  }

  .mcp-nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.125rem;
  }

  .mcp-nav-list a {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border-radius: 10px;
  }

  .mcp-nav-cta {
    margin-left: 0;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
  }

  .mcp-nav-cta a {
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1.25rem;
  }

  /* Mobile nav overlay */
  .mcp-nav-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(26, 26, 46, 0.4);
    backdrop-filter: blur(2px);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
  }

  .mcp-nav-overlay.active {
    opacity: 1;
    pointer-events: auto;
  }
}

/* --------------------------------------------------------------------------
   6. Blog Post Grid
   -------------------------------------------------------------------------- */

.mcp-post-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

@media (min-width: 768px) {
  .mcp-post-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .mcp-post-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --------------------------------------------------------------------------
   7. Cards
   -------------------------------------------------------------------------- */

.mcp-card {
  background-color: #ffffff;
  border-radius: 0;
  overflow: hidden;
  border: none;
  border-bottom: 1px solid #eaeaea;
  padding-bottom: 1.5rem;
  transition: opacity 0.2s ease;
  display: flex;
  flex-direction: column;
}

.mcp-card:hover {
  opacity: 0.85;
}

.mcp-card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background-color: #f5f5f5;
  border-radius: 4px;
}

.mcp-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.mcp-card:hover .mcp-card-image img {
  transform: scale(1.02);
}

.mcp-card-body {
  padding: 1rem 0 0;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Featured first post (larger) */
.mcp-post-grid .mcp-card:first-child {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 2px solid #1a1a2e;
}
.mcp-post-grid .mcp-card:first-child .mcp-card-image {
  aspect-ratio: 3 / 2;
  border-radius: 4px;
}
.mcp-post-grid .mcp-card:first-child .mcp-card-body {
  padding: 0;
  justify-content: center;
}
.mcp-post-grid .mcp-card:first-child .mcp-card-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  -webkit-line-clamp: 4;
}
.mcp-post-grid .mcp-card:first-child .mcp-card-excerpt {
  font-size: 1.0625rem;
  -webkit-line-clamp: 4;
  line-height: 1.7;
}
@media (max-width: 767px) {
  .mcp-post-grid .mcp-card:first-child {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.mcp-card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: #999;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.mcp-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.mcp-card-meta .mcp-card-category {
  color: #1a1a2e;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.7rem;
}

.mcp-card-title {
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.4rem;
  color: #1a1a2e;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  letter-spacing: -0.02em;
}

.mcp-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.mcp-card-title a:hover {
  color: #482d70;
}

.mcp-card-excerpt {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #666;
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.mcp-card-link {
  display: none;
}

/* --------------------------------------------------------------------------
   8. Single Article
   -------------------------------------------------------------------------- */

.mcp-single-container { max-width: 800px; }

.mcp-article {
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.mcp-article-header {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #eaeaea;
  text-align: left;
}

.mcp-article-title {
  font-size: clamp(2rem, 5vw + 0.5rem, 3rem);
  font-weight: 800;
  line-height: 1.1;
  color: #1a1a2e;
  letter-spacing: -0.035em;
  margin-bottom: 1rem;
}

.mcp-article-custom-subtitle {
  font-size: clamp(1.15rem, 2.25vw, 1.4rem);
  color: var(--mcp-primary, #482d70);
  line-height: 1.5;
  margin-top: 0.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.mcp-article-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: #666;
  line-height: 1.55;
  margin-top: 0.75rem;
  font-weight: 400;
}


.mcp-article-meta {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.8125rem;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 500;
}

.mcp-article-meta a {
  color: #482d70;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.mcp-article-meta a:hover {
  color: #6b4b9a;
}

.mcp-article-meta-divider {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background-color: #cbd5e1;
}

.mcp-article-featured {
  margin-bottom: 2.5rem;
  border-radius: 4px;
  overflow: hidden;
}

.mcp-article-featured img {
  width: 100%;
  height: auto;
  display: block;
}

/* Article Prose Content */
.mcp-article-content {
  font-size: clamp(1rem, 1vw + 0.125rem, 1.0625rem);
  line-height: 1.8;
  color: #1a1a2e;
}

.mcp-article-content > * + * {
  margin-top: 1.25rem;
}

.mcp-article-content h2 {
  font-size: clamp(1.375rem, 2.5vw, 1.875rem);
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0;
  border-bottom: none;
}

.mcp-article-content h3 {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  margin-top: 2rem;
  margin-bottom: 0.625rem;
}

.mcp-article-content h4 {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}

.mcp-article-content p {
  margin-bottom: 1.375rem;
}

.mcp-article-content a {
  color: #482d70;
  text-decoration: underline;
  text-decoration-color: rgba(72, 45, 112, 0.25);
  text-underline-offset: 3px;
  font-weight: 500;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.mcp-article-content a:hover {
  color: #6b4b9a;
  text-decoration-color: #6b4b9a;
}

.mcp-article-content ul,
.mcp-article-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.375rem;
}

.mcp-article-content ul {
  list-style-type: disc;
}

.mcp-article-content ol {
  list-style-type: decimal;
}

.mcp-article-content li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
  padding-left: 0.25rem;
}

.mcp-article-content li::marker {
  color: #482d70;
}

.mcp-article-content blockquote {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid #482d70;
  background-color: rgba(72, 45, 112, 0.04);
  border-radius: 0 10px 10px 0;
  font-style: italic;
  color: #2d1a47;
}

.mcp-article-content blockquote p:last-child {
  margin-bottom: 0;
}

.mcp-article-content code {
  font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 0.875em;
  background-color: #f1f5f9;
  padding: 0.15em 0.4em;
  border-radius: 4px;
  color: #482d70;
  border: 1px solid #e2e8f0;
}

.mcp-article-content pre {
  margin: 1.75rem 0;
  padding: 1.25rem 1.5rem;
  background-color: #1a1a2e;
  border-radius: 12px;
  overflow-x: auto;
  line-height: 1.6;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mcp-article-content pre code {
  background: none;
  padding: 0;
  border: none;
  border-radius: 0;
  color: #e2e8f0;
  font-size: 0.875rem;
}

.mcp-article-content img {
  border-radius: 12px;
  margin: 1.5rem 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.mcp-article-content figure {
  margin: 2rem 0;
}

.mcp-article-content figcaption {
  text-align: center;
  font-size: 0.875rem;
  color: #64748b;
  margin-top: 0.75rem;
  font-style: italic;
}

.mcp-article-content table {
  width: 100%;
  margin: 1.75rem 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  font-size: 0.9375rem;
}

.mcp-article-content thead {
  background-color: #482d70;
  color: #ffffff;
}

.mcp-article-content th {
  padding: 0.75rem 1rem;
  font-weight: 600;
  text-align: left;
}

.mcp-article-content td {
  padding: 0.75rem 1rem;
  border-top: 1px solid #e2e8f0;
}

.mcp-article-content tbody tr:nth-child(even) {
  background-color: #f8f9fc;
}

.mcp-article-content tbody tr:hover {
  background-color: rgba(72, 45, 112, 0.03);
}

.mcp-article-content .wp-block-separator,
.mcp-article-content hr {
  border: none;
  border-top: 2px solid #e2e8f0;
  margin: 2.5rem auto;
  max-width: 120px;
}

/* --------------------------------------------------------------------------
   9. Page Header
   -------------------------------------------------------------------------- */

.mcp-page-header {
  text-align: center;
  padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(1.5rem, 3vw, 2.5rem);
  margin-bottom: 1rem;
}

.mcp-page-title {
  font-size: clamp(1.75rem, 4vw + 0.25rem, 2.75rem);
  font-weight: 800;
  color: #1a1a2e;
  letter-spacing: -0.025em;
}

.mcp-page-description {
  max-width: 600px;
  margin: 0.75rem auto 0;
  font-size: clamp(0.9375rem, 1.25vw, 1.0625rem);
  color: #64748b;
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   10. Pagination
   -------------------------------------------------------------------------- */

.mcp-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 2rem;
  border-top: 1px solid #e2e8f0;
}

.mcp-pagination a,
.mcp-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 0.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: 10px;
  transition: background-color 0.2s ease, color 0.2s ease,
    box-shadow 0.2s ease;
}

.mcp-pagination a {
  color: #1a1a2e;
  background-color: #ffffff;
  border: 1px solid #ddd;
}

.mcp-pagination a:hover {
  background-color: #482d70;
  color: #ffffff;
  border-color: #482d70;
  box-shadow: 0 2px 8px rgba(72, 45, 112, 0.2);
}

.mcp-pagination .current,
.mcp-pagination span.current {
  background-color: #482d70;
  color: #ffffff;
  border: 1px solid #482d70;
  font-weight: 600;
}

.mcp-pagination .dots {
  background: none;
  border: none;
  color: #64748b;
  min-width: auto;
  padding: 0 0.25rem;
}

.mcp-pagination .prev,
.mcp-pagination .next {
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   11. Post Navigation (Prev/Next)
   -------------------------------------------------------------------------- */

.mcp-post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid #e2e8f0;
}

@media (max-width: 767px) {
  .mcp-post-nav {
    grid-template-columns: 1fr;
  }
}

.mcp-post-nav-link {
  display: block;
  padding: 1.25rem 0;
  transition: opacity 0.2s ease;
}

.mcp-post-nav-link:hover {
  opacity: 0.7;
}

.mcp-post-nav-item--next {
  text-align: right;
}

.mcp-post-nav-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.375rem;
}

.mcp-post-nav-title {
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a2e;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   12. Buttons
   -------------------------------------------------------------------------- */

.mcp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6875rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
  border-radius: 10px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.mcp-btn:focus-visible {
  outline: 2px solid #482d70;
  outline-offset: 2px;
}

.mcp-btn-primary {
  color: #ffffff;
  background-color: #15803d;
  border-color: #15803d;
}

.mcp-btn-primary:hover {
  background-color: #166534;
  border-color: #166534;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(21, 128, 61, 0.3);
}

.mcp-btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(21, 128, 61, 0.2);
}

.mcp-btn-secondary {
  color: #482d70;
  background-color: transparent;
  border-color: #482d70;
}

.mcp-btn-secondary:hover {
  background-color: #482d70;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(72, 45, 112, 0.25);
}

.mcp-btn-secondary:active {
  transform: translateY(0);
}

.mcp-btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  border-radius: 8px;
}

.mcp-btn-lg {
  padding: 0.875rem 2rem;
  font-size: 1.0625rem;
  border-radius: 12px;
}

/* --------------------------------------------------------------------------
   13. Forms (for plugin integration)
   -------------------------------------------------------------------------- */

.mcp-form-wrapper {
  background-color: #ffffff;
  border: 1px solid #eaeaea;
  border-radius: 4px;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  max-width: 480px;
  margin: 1.5rem auto;
}

.mcp-form-wrapper label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 0.375rem;
}

.mcp-form-wrapper input[type="text"],
.mcp-form-wrapper input[type="email"],
.mcp-form-wrapper input[type="tel"],
.mcp-form-wrapper input[type="url"],
.mcp-form-wrapper input[type="number"],
.mcp-form-wrapper input[type="password"],
.mcp-form-wrapper textarea,
.mcp-form-wrapper select {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  color: #1a1a2e;
  background-color: #f8f9fc;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease,
    background-color 0.2s ease;
  margin-bottom: 1.25rem;
}

.mcp-form-wrapper input:focus,
.mcp-form-wrapper textarea:focus,
.mcp-form-wrapper select:focus {
  outline: none;
  border-color: #482d70;
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(72, 45, 112, 0.1);
}

.mcp-form-wrapper input::placeholder,
.mcp-form-wrapper textarea::placeholder {
  color: #94a3b8;
}

.mcp-form-wrapper textarea {
  min-height: 120px;
  resize: vertical;
}

.mcp-form-wrapper button[type="submit"],
.mcp-form-wrapper input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.8125rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  background-color: #15803d;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease,
    box-shadow 0.2s ease;
}

.mcp-form-wrapper button[type="submit"]:hover,
.mcp-form-wrapper input[type="submit"]:hover {
  background-color: #166534;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(21, 128, 61, 0.3);
}

/* --------------------------------------------------------------------------
   14. Search Form
   -------------------------------------------------------------------------- */

.mcp-search-form {
  display: flex;
  gap: 0;
  position: relative;
}

.mcp-search-form input[type="search"],
.mcp-search-form .search-field {
  flex: 1;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  color: #1a1a2e;
  background-color: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px 0 0 10px;
  border-right: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mcp-search-form input[type="search"]:focus,
.mcp-search-form .search-field:focus {
  outline: none;
  border-color: #482d70;
  box-shadow: 0 0 0 3px rgba(72, 45, 112, 0.1);
  position: relative;
  z-index: 1;
}

.mcp-search-form button,
.mcp-search-form .search-submit {
  padding: 0.75rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #ffffff;
  background-color: #482d70;
  border: none;
  border-radius: 0 10px 10px 0;
  cursor: pointer;
  transition: background-color 0.2s ease;
  white-space: nowrap;
}

.mcp-search-form button:hover,
.mcp-search-form .search-submit:hover {
  background-color: #6b4b9a;
}

/* --------------------------------------------------------------------------
   15. Sidebar & Widgets
   -------------------------------------------------------------------------- */

.mcp-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.mcp-widget {
  background-color: #ffffff;
  border: none;
  border-bottom: 1px solid #eaeaea;
  border-radius: 0;
  padding: 0 0 1.5rem;
}

.mcp-widget-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #482d70;
}

.mcp-widget ul {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.mcp-widget ul li a {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 0.9375rem;
  color: #1a1a2e;
  border-radius: 8px;
  transition: background-color 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}

.mcp-widget ul li a:hover {
  background-color: rgba(72, 45, 112, 0.06);
  color: #482d70;
  padding-left: 1rem;
}

/* --------------------------------------------------------------------------
   16. Footer
   -------------------------------------------------------------------------- */

.mcp-footer {
  background-color: #ffffff;
  color: #666;
  padding: clamp(2.5rem, 5vw, 4rem) 0 0;
  margin-top: auto;
  border-top: 2px solid #1a1a2e;
}

.mcp-footer a {
  color: #666;
  text-decoration: none;
  transition: color 0.2s ease;
}

.mcp-footer a:hover {
  color: #1a1a2e;
}

.mcp-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-bottom: clamp(2rem, 4vw, 3rem);
}

@media (min-width: 768px) {
  .mcp-footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
}

.mcp-footer-brand {
  max-width: 320px;
}

.mcp-footer-brand .mcp-logo {
  color: #1a1a2e;
  margin-bottom: 1rem;
}

.mcp-footer-brand p {
  color: #999;
  font-size: 0.9375rem;
  line-height: 1.65;
  margin-bottom: 0;
}

.mcp-footer-heading {
  font-size: 0.75rem;
  font-weight: 700;
  color: #1a1a2e;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.mcp-footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mcp-footer-links a {
  font-size: 0.9375rem;
  padding: 0.25rem 0;
}

.mcp-footer-disclaimer {
  padding: 1.5rem 0;
  border-top: 1px solid #eaeaea;
  font-size: 0.8125rem;
  line-height: 1.7;
  color: #999;
}

.mcp-footer-bottom {
  padding: 1.25rem 0;
  border-top: 1px solid #eaeaea;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.8125rem;
  color: #999;
}

.mcp-footer-bottom a {
  color: #999;
}

.mcp-footer-bottom a:hover {
  color: #1a1a2e;
}

.mcp-footer-secondary-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}

.mcp-footer-secondary-links li {
  list-style: none;
}

.mcp-footer-secondary-links a {
  font-size: 0.8125rem;
  color: #999;
  text-decoration: none;
  transition: color 0.2s ease;
}

.mcp-footer-secondary-links a:hover {
  color: #1a1a2e;
}

/* --------------------------------------------------------------------------
   17. 404 Page
   -------------------------------------------------------------------------- */

.mcp-404 {
  text-align: center;
  padding: clamp(3rem, 8vw, 6rem) 1rem;
}

.mcp-404-code {
  font-size: clamp(5rem, 15vw, 10rem);
  font-weight: 800;
  line-height: 1;
  color: #482d70;
  opacity: 0.15;
  margin-bottom: 1rem;
  letter-spacing: -0.04em;
}

.mcp-404-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 0.75rem;
}

.mcp-404-text {
  font-size: 1.0625rem;
  color: #64748b;
  max-width: 480px;
  margin: 0 auto 2rem;
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   18. Tags
   -------------------------------------------------------------------------- */

.mcp-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.3125rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #482d70;
  background-color: rgba(72, 45, 112, 0.07);
  border-radius: 6px;
  transition: background-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.mcp-tag:hover {
  background-color: #482d70;
  color: #ffffff;
}

.mcp-article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e2e8f0;
}

.mcp-article-tags-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #64748b;
  margin-right: 0.25rem;
  line-height: 2;
}

/* --------------------------------------------------------------------------
   19. Comments
   -------------------------------------------------------------------------- */

.mcp-comments {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 2px solid #e2e8f0;
}

.mcp-comments-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.75rem;
}

.mcp-comment-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mcp-comment {
  padding: 1.25rem 0;
  background-color: #ffffff;
  border: none;
  border-bottom: 1px solid #eaeaea;
  border-radius: 0;
}

.mcp-comment-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.mcp-comment-avatar img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.mcp-comment-author {
  font-weight: 600;
  font-size: 0.9375rem;
  color: #1a1a2e;
}

.mcp-comment-date {
  font-size: 0.8125rem;
  color: #64748b;
}

.mcp-comment-body {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: #374151;
}

.mcp-comment-body p:last-child {
  margin-bottom: 0;
}

.mcp-comment-reply a {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #482d70;
  margin-top: 0.75rem;
  display: inline-block;
  transition: color 0.2s ease;
}

.mcp-comment-reply a:hover {
  color: #6b4b9a;
}

/* Nested comments */
.mcp-comment .children {
  margin-top: 1rem;
  padding-left: 1.5rem;
  border-left: 2px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Comment form */
.mcp-comment-form {
  margin-top: 2rem;
}

.mcp-comment-form textarea {
  width: 100%;
  min-height: 120px;
  padding: 0.875rem 1rem;
  font-size: 0.9375rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  background-color: #f8f9fc;
  resize: vertical;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mcp-comment-form textarea:focus {
  outline: none;
  border-color: #482d70;
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(72, 45, 112, 0.1);
}

/* --------------------------------------------------------------------------
   20. Loader Overlay
   -------------------------------------------------------------------------- */

.mcp-loader-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 1;
  transition: opacity 0.3s ease;
}

.mcp-loader-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.mcp-loader-spinner {
  width: 44px;
  height: 44px;
  border: 3px solid #e2e8f0;
  border-top-color: #482d70;
  border-radius: 50%;
  animation: mcpSpin 0.75s linear infinite;
}

@keyframes mcpSpin {
  to {
    transform: rotate(360deg);
  }
}

/* --------------------------------------------------------------------------
   21. Ad Slots
   -------------------------------------------------------------------------- */

.mcp-ad-slot {
  margin: 2rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
  background-color: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  overflow: hidden;
}

.mcp-ad-slot img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

.mcp-ad-slot--leaderboard {
  max-width: 728px;
  margin-left: auto;
  margin-right: auto;
}

.mcp-ad-slot--sidebar {
  max-width: 300px;
}

.mcp-ad-slot--in-content {
  margin: 2.5rem auto;
  max-width: 100%;
}

.mcp-ad-banner-wrapper {
  margin: 0 0 2.5rem;
  text-align: center;
}

.mcp-ad-label {
  display: block;
  font-size: 0.6875rem;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.mcp-ad-large-banner {
  min-height: 250px;
  max-width: 100%;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   22. Capture Form (plugin integration)
   -------------------------------------------------------------------------- */

.mcp-capture-form {
  background: linear-gradient(135deg, #482d70 0%, #2d1a47 100%);
  border-radius: 16px;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  color: #ffffff;
  box-shadow: 0 8px 32px rgba(72, 45, 112, 0.2);
}

.mcp-capture-form-title {
  font-size: clamp(1.25rem, 2vw, 1.625rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.mcp-capture-form-description {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.mcp-capture-form label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.375rem;
}

.mcp-capture-form input[type="text"],
.mcp-capture-form input[type="email"],
.mcp-capture-form input[type="tel"] {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  color: #1a1a2e;
  background-color: #ffffff;
  border: 2px solid transparent;
  border-radius: 10px;
  margin-bottom: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mcp-capture-form input:focus {
  outline: none;
  border-color: #15803d;
  box-shadow: 0 0 0 3px rgba(21, 128, 61, 0.2);
}

.mcp-capture-form input::placeholder {
  color: #94a3b8;
}

.mcp-capture-form button[type="submit"],
.mcp-capture-form .mcp-capture-submit {
  display: block;
  width: 100%;
  padding: 0.8125rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  background-color: #15803d;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease,
    box-shadow 0.2s ease;
}

.mcp-capture-form button[type="submit"]:hover,
.mcp-capture-form .mcp-capture-submit:hover {
  background-color: #166534;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(21, 128, 61, 0.35);
}

.mcp-capture-form-disclaimer {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 0.75rem;
  line-height: 1.5;
}

.mcp-capture-form .mcp-form-success {
  text-align: center;
  padding: 1rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
}

.mcp-capture-form .mcp-form-error {
  font-size: 0.8125rem;
  color: #fca5a5;
  margin-top: -0.5rem;
  margin-bottom: 0.75rem;
}

/* --------------------------------------------------------------------------
   23. Utility Classes
   -------------------------------------------------------------------------- */

.mcp-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.mcp-text-center {
  text-align: center;
}

.mcp-text-muted {
  color: #64748b;
}

.mcp-mt-0 { margin-top: 0; }
.mcp-mt-1 { margin-top: 0.5rem; }
.mcp-mt-2 { margin-top: 1rem; }
.mcp-mt-3 { margin-top: 1.5rem; }
.mcp-mt-4 { margin-top: 2rem; }

.mcp-mb-0 { margin-bottom: 0; }
.mcp-mb-1 { margin-bottom: 0.5rem; }
.mcp-mb-2 { margin-bottom: 1rem; }
.mcp-mb-3 { margin-bottom: 1.5rem; }
.mcp-mb-4 { margin-bottom: 2rem; }

.mcp-hidden {
  display: none !important;
}

@media (max-width: 767px) {
  .mcp-hide-mobile {
    display: none !important;
  }
}

@media (min-width: 768px) {
  .mcp-hide-desktop {
    display: none !important;
  }
}

/* --------------------------------------------------------------------------
   24. Animations
   -------------------------------------------------------------------------- */

@keyframes mcpFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes mcpSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mcp-animate-fade-in {
  animation: mcpFadeIn 0.5s ease both;
}

.mcp-animate-slide-up {
  animation: mcpSlideUp 0.5s ease both;
}

/* Staggered children animation */
.mcp-stagger > *:nth-child(1) { animation-delay: 0ms; }
.mcp-stagger > *:nth-child(2) { animation-delay: 60ms; }
.mcp-stagger > *:nth-child(3) { animation-delay: 120ms; }
.mcp-stagger > *:nth-child(4) { animation-delay: 180ms; }
.mcp-stagger > *:nth-child(5) { animation-delay: 240ms; }
.mcp-stagger > *:nth-child(6) { animation-delay: 300ms; }
.mcp-stagger > *:nth-child(7) { animation-delay: 360ms; }
.mcp-stagger > *:nth-child(8) { animation-delay: 420ms; }
.mcp-stagger > *:nth-child(9) { animation-delay: 480ms; }

/* Intersection Observer - elements start hidden, animate on scroll */
.mcp-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.mcp-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   25. Focus & Accessibility
   -------------------------------------------------------------------------- */

:focus-visible {
  outline: 2px solid #482d70;
  outline-offset: 2px;
}

/* Skip to content link */
.mcp-skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  padding: 0.75rem 1.25rem;
  background-color: #482d70;
  color: #ffffff;
  font-weight: 600;
  border-radius: 0 0 8px 8px;
  z-index: 10000;
  transition: top 0.2s ease;
}

.mcp-skip-link:focus {
  top: 0;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --------------------------------------------------------------------------
   26. CPA Offer Card (Credexia style)
   -------------------------------------------------------------------------- */

.mcp-offer-card {
  margin: 2rem -2rem;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  transition: box-shadow .25s ease, border-color .25s ease;
}
.mcp-offer-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 8px 30px rgba(0,0,0,.10);
}

.mcp-offer-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 2rem 2.5rem;
}
.mcp-offer-card-link:hover { color: inherit; text-decoration: none; }

/* ── Header badge ── */
.mcp-offer-card-header {
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #f1f5f9;
}
.mcp-offer-card-badge {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #0369a1;
  background: #e0f2fe;
  padding: .3rem .75rem;
  border-radius: 6px;
}
.mcp-offer-card-badge--rec {
  color: var(--mcp-primary, #482d70);
  background: #f0eaf8;
}

/* ── Top row: logo + info + rating ── */
.mcp-offer-card-top {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}

/* Logo */
.mcp-offer-card-logo-wrap {
  flex-shrink: 0;
  width: 140px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mcp-offer-card-logo {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #fff;
  padding: 8px 12px;
}

/* Info: title + subtitle */
.mcp-offer-card-info {
  flex: 1;
  min-width: 0;
}
.mcp-offer-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  line-height: 1.3;
}
.mcp-offer-card-subtitle {
  font-size: .9rem;
  color: #64748b;
  line-height: 1.55;
  margin: .35rem 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Rating box */
.mcp-offer-card-rating {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  min-width: 72px;
  padding: .625rem .75rem;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 12px;
  text-align: center;
}
.mcp-offer-card-rating-num {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
  color: #0369a1;
}
.mcp-offer-card-stars {
  display: flex;
  gap: 1px;
  color: #f59e0b;
}
.mcp-offer-card-star { flex-shrink: 0; }
.mcp-offer-card-rating-label {
  font-size: .65rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-top: 2px;
}

/* Recommended rating variant */
.mcp-offer-card--recommended .mcp-offer-card-rating {
  background: #faf5ff;
  border-color: #d8b4fe;
}
.mcp-offer-card--recommended .mcp-offer-card-rating-num {
  color: var(--mcp-primary, #482d70);
}

/* ── Stats row: amount + TAE ── */
.mcp-offer-card-stats {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.mcp-offer-card-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: .75rem 1rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}
.mcp-offer-card-stat-label {
  font-size: .75rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.mcp-offer-card-stat-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
}

/* ── Features list ── */
.mcp-offer-card-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem 1.5rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}
.mcp-offer-card-feature {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .9rem;
  color: #334155;
  line-height: 1.5;
}
.mcp-offer-card-check {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: #22c55e;
}
.mcp-offer-card--recommended .mcp-offer-card-check {
  color: var(--mcp-primary, #482d70);
}

/* ── CTA button ── */
.mcp-offer-card-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
}
.mcp-offer-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: 1rem 2.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background: #0369a1;
  border: none;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: .04em;
  white-space: nowrap;
  cursor: pointer;
  transition: background .2s ease, transform .15s ease, box-shadow .2s ease;
  box-shadow: 0 4px 14px rgba(3,105,161,.25);
  width: 100%;
  max-width: 420px;
}
.mcp-offer-card:hover .mcp-offer-card-btn {
  background: #075985;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(3,105,161,.3);
}
.mcp-offer-card-btn svg {
  transition: transform .2s ease;
}
.mcp-offer-card:hover .mcp-offer-card-btn svg {
  transform: translateX(3px);
}
.mcp-offer-card-disclaimer {
  font-size: .7rem;
  color: #94a3b8;
  text-align: center;
  margin: 0;
  line-height: 1;
}

/* Recommended variant */
.mcp-offer-card--recommended .mcp-offer-card-btn {
  background: var(--mcp-primary, #5a3a8a);
  box-shadow: 0 4px 14px rgba(72,45,112,.25);
}
.mcp-offer-card--recommended:hover .mcp-offer-card-btn {
  background: #3a2560;
  box-shadow: 0 6px 20px rgba(72,45,112,.3);
}

/* ── Mobile responsive ── */
@media (max-width: 768px) {
  .mcp-offer-card {
    margin-left: -1rem;
    margin-right: -1rem;
    border-radius: 12px;
  }
  .mcp-offer-card-link {
    padding: 1.5rem;
  }
  /* Logo on its own row, big and centered */
  .mcp-offer-card-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .mcp-offer-card-logo-wrap {
    width: 160px;
    height: 80px;
    align-self: flex-start;
  }
  .mcp-offer-card-logo {
    padding: 10px 16px;
  }
  .mcp-offer-card-info {
    width: 100%;
  }
  .mcp-offer-card-title {
    font-size: 1.15rem;
  }
  .mcp-offer-card-rating {
    align-self: flex-start;
    flex-direction: row;
    gap: 8px;
    padding: .5rem .75rem;
  }
  .mcp-offer-card-rating-num {
    font-size: 1.4rem;
  }
  .mcp-offer-card-stats {
    gap: .625rem;
  }
  .mcp-offer-card-stat {
    padding: .625rem .75rem;
  }
  .mcp-offer-card-features {
    grid-template-columns: 1fr;
    gap: .375rem;
  }
  .mcp-offer-card-btn {
    max-width: 100%;
    padding: .875rem 1.5rem;
  }
}

/* --------------------------------------------------------------------------
   27. Related Posts
   -------------------------------------------------------------------------- */

.mcp-related-posts {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 2px solid #e2e8f0;
}

.mcp-related-posts-heading {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 800;
  color: #1a1a2e;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.mcp-related-posts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

@media (min-width: 600px) {
  .mcp-related-posts-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Override featured first-card styling inside related posts */
.mcp-related-posts-grid .mcp-card:first-child {
  grid-column: auto;
  display: flex;
  gap: 0;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #eaeaea;
}

.mcp-related-posts-grid .mcp-card:first-child .mcp-card-image {
  aspect-ratio: 16 / 10;
  border-radius: 4px;
}

.mcp-related-posts-grid .mcp-card:first-child .mcp-card-body {
  padding: 1rem 0 0;
}

.mcp-related-posts-grid .mcp-card:first-child .mcp-card-title {
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  font-weight: 700;
  letter-spacing: normal;
  -webkit-line-clamp: unset;
}

.mcp-related-posts-grid .mcp-card:first-child .mcp-card-excerpt {
  font-size: inherit;
  -webkit-line-clamp: unset;
}

/* --------------------------------------------------------------------------
   28. Print Styles
   -------------------------------------------------------------------------- */

@media print {
  body {
    background: #ffffff;
    color: #000000;
    font-size: 12pt;
  }

  .mcp-header,
  .mcp-footer,
  .mcp-sidebar,
  .mcp-ad-slot,
  .mcp-capture-form,
  .mcp-pagination,
  .mcp-post-nav,
  .mcp-menu-toggle,
  .mcp-search-form,
  .mcp-loader-overlay,
  .mcp-comments {
    display: none !important;
  }

  .mcp-article {
    max-width: 100%;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #666;
  }
}
