/**
 * Blog Styles
 *
 * Standalone styles for single-post.php and home.php templates.
 * Uses the MPN design system CSS variables defined in the child
 * theme's style.css.
 *
 * Loaded conditionally on blog pages only. No dependency on the
 * MPN Widgets plugin CSS. No !important declarations.
 *
 * Reference: BlogPost4Page.tsx, BlogPage.tsx, PageHeader.tsx,
 *            SocialShare.tsx
 *
 * @package My_Property_Network
 * @since   1.1.0
 */

/* ==========================================================================
   SINGLE POST: HERO (Blog-type PageHeader)
   --------------------------------------------------------------------------
   Full-width title and description at the top, with a wide panoramic
   image below that overlaps upward into the hero section.
   ========================================================================== */

.mpn-post-hero {
    background-color: rgba(240, 244, 248, 0.5);
    padding: 48px 0 128px 0;
    position: relative;
    z-index: 20;
    border-bottom: 1px solid var(--mpn-slate-100);
    font-family: var(--mpn-font-sans);
}

.mpn-post-hero *,
.mpn-post-hero *::before,
.mpn-post-hero *::after {
    box-sizing: border-box;
}

.mpn-post-hero__container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 var(--mpn-container-padding);
    position: relative;
    z-index: 10;
}

/* ---- Breadcrumbs ---- */
.mpn-post-hero__breadcrumbs {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
    color: var(--mpn-slate-500);
    margin-bottom: 32px;
    font-family: var(--mpn-font-sans);
}

a.mpn-post-hero__crumb-link,
a.mpn-post-hero__crumb-link:visited {
    color: var(--mpn-slate-500);
    text-decoration: none;
    transition: color var(--mpn-transition);
}

a.mpn-post-hero__crumb-link:hover {
    color: var(--mpn-brand-900);
}

.mpn-post-hero__crumb-sep {
    margin: 0 12px;
    color: var(--mpn-slate-300);
}

.mpn-post-hero__crumb-current {
    color: var(--mpn-brand-900);
}

/* ---- Text block ---- */
.mpn-post-hero__text {
    max-width: 896px;
}

.mpn-post-hero__title {
    font-size: 36px;
    font-weight: 800;
    color: var(--mpn-brand-900);
    margin: 0 0 24px 0;
    padding: 0;
    line-height: 1.1;
    letter-spacing: -0.025em;
    font-family: var(--mpn-font-sans);
}

.mpn-post-hero__description {
    font-size: 20px;
    font-weight: 300;
    color: var(--mpn-slate-600);
    line-height: 1.625;
    margin: 0;
    padding: 0;
    font-family: var(--mpn-font-sans);
}

/* ---- Wide hero image (overlaps upward) ---- */
.mpn-post-hero__image-wrap {
    width: 100%;
    max-width: 1140px;
    margin: -80px auto 48px auto;
    padding: 0 var(--mpn-container-padding);
    position: relative;
    z-index: 30;
}

.mpn-post-hero__image-container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
}

.mpn-post-hero__image-card {
    width: 100%;
    aspect-ratio: 21 / 9;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    border: 4px solid #ffffff;
    background-color: #ffffff;
}

.mpn-post-hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ==========================================================================
   SINGLE POST: CONTENT SECTION
   ========================================================================== */

.mpn-post {
    padding: 32px 0 80px 0;
    background-color: #ffffff;
    font-family: var(--mpn-font-sans);
}

.mpn-post *,
.mpn-post *::before,
.mpn-post *::after {
    box-sizing: border-box;
}

.mpn-post__container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 var(--mpn-container-padding);
}

.mpn-post__layout {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.mpn-post__main {
    flex: 1 1 0%;
    min-width: 0;
}

/* ==========================================================================
   META BAR
   ========================================================================== */

.mpn-post__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    color: var(--mpn-slate-500);
    margin-bottom: 32px;
    border-bottom: 1px solid var(--mpn-slate-100);
    padding-bottom: 32px;
    font-family: var(--mpn-font-sans);
}

.mpn-post__meta-date {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--mpn-slate-50);
    padding: 4px 12px;
    border-radius: var(--mpn-radius-full);
    font-family: var(--mpn-font-sans);
}

.mpn-post__meta-date svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.mpn-post__meta-category {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--mpn-slate-50);
    padding: 4px 12px;
    border-radius: var(--mpn-radius-full);
    color: var(--mpn-brand-600);
    font-weight: 500;
    font-family: var(--mpn-font-sans);
}

/* ==========================================================================
   POST BODY (Block Editor Output)
   ========================================================================== */

.mpn-post__body {
    font-size: 16px;
    color: var(--mpn-slate-600);
    line-height: 1.625;
    font-family: var(--mpn-font-sans);
}

.mpn-post__body h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--mpn-brand-900);
    margin: 48px 0 24px 0;
    padding: 0;
    line-height: 1.2;
    font-family: var(--mpn-font-sans);
}

.mpn-post__body h2:first-child {
    margin-top: 0;
}

.mpn-post__body p {
    font-size: 16px;
    color: var(--mpn-slate-600);
    line-height: 1.625;
    margin: 0 0 24px 0;
    font-family: var(--mpn-font-sans);
}

.mpn-post__body p:last-child {
    margin-bottom: 0;
}

.mpn-post__body strong {
    color: var(--mpn-brand-900);
    font-weight: 700;
}

.mpn-post__body h3,
.mpn-post__body h4 {
    font-weight: 700;
    color: var(--mpn-brand-900);
    font-size: 18px;
    margin: 32px 0 8px 0;
    padding: 0;
    line-height: 1.3;
    font-family: var(--mpn-font-sans);
}

.mpn-post__body h5 {
    font-weight: 700;
    color: var(--mpn-brand-900);
    font-size: 18px;
    margin: 24px 0 8px 0;
    padding: 0;
    line-height: 1.3;
    font-family: var(--mpn-font-sans);
}

.mpn-post__body ul {
    list-style: disc;
    padding-left: 24px;
    margin: 0 0 24px 0;
}

.mpn-post__body ul li {
    font-size: 16px;
    color: var(--mpn-slate-600);
    line-height: 1.625;
    margin-bottom: 8px;
    font-family: var(--mpn-font-sans);
}

.mpn-post__body ol {
    list-style: decimal;
    padding-left: 24px;
    margin: 0 0 24px 0;
}

.mpn-post__body ol li {
    font-size: 16px;
    color: var(--mpn-slate-600);
    line-height: 1.625;
    margin-bottom: 8px;
    font-family: var(--mpn-font-sans);
}

.mpn-post__body a {
    color: var(--mpn-accent-500);
    text-decoration: underline;
    transition: color var(--mpn-transition);
}

.mpn-post__body a:hover {
    color: var(--mpn-accent-600);
}

.mpn-post__body blockquote {
    border-left: 4px solid var(--mpn-accent-500);
    background-color: var(--mpn-slate-50);
    padding: 16px 24px;
    margin: 24px 0;
    font-style: italic;
    border-radius: 0 var(--mpn-radius) var(--mpn-radius) 0;
}

.mpn-post__body blockquote p {
    margin: 0;
}

.mpn-post__body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--mpn-radius-md);
    margin: 24px 0;
}

.mpn-post__body figure {
    margin: 24px 0;
}

.mpn-post__body figcaption {
    font-size: 13px;
    color: var(--mpn-slate-400);
    text-align: center;
    margin-top: 8px;
}

/* Lead paragraph (first paragraph styled larger) */
.mpn-post__body > p:first-of-type {
    font-size: 20px;
    color: var(--mpn-slate-600);
    margin-bottom: 32px;
}

/* ==========================================================================
   AUTHOR BIO
   ========================================================================== */

.mpn-post__author-wrap {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid var(--mpn-slate-100);
}

.mpn-post__author {
    background-color: var(--mpn-slate-50);
    border-radius: var(--mpn-radius-xl);
    padding: 32px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    border: 1px solid var(--mpn-slate-200);
}

.mpn-post__author-avatar {
    width: 96px;
    height: 96px;
    border-radius: var(--mpn-radius-full);
    object-fit: cover;
    border: 4px solid #ffffff;
    box-shadow: var(--mpn-shadow-md);
    flex-shrink: 0;
}

.mpn-post__author-content {
    text-align: center;
}

.mpn-post__author-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--mpn-brand-900);
    margin: 0 0 8px 0;
    padding: 0;
    font-family: var(--mpn-font-sans);
}

.mpn-post__author-bio {
    font-size: 14px;
    color: var(--mpn-slate-600);
    line-height: 1.625;
    margin: 0 0 16px 0;
    font-family: var(--mpn-font-sans);
}

a.mpn-post__author-link,
a.mpn-post__author-link:visited {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--mpn-brand-900);
    text-decoration: none;
    transition: color var(--mpn-transition);
    font-family: var(--mpn-font-sans);
}

a.mpn-post__author-link:hover {
    color: var(--mpn-brand-700);
}

a.mpn-post__author-link svg {
    width: 16px;
    height: 16px;
    color: var(--mpn-accent-500);
    transition: transform var(--mpn-transition);
}

a.mpn-post__author-link:hover svg {
    transform: translateX(4px);
}

/* ==========================================================================
   SIDEBAR
   ========================================================================== */

.mpn-post__sidebar {
    display: block;
    width: 100%;
}

.mpn-post__sidebar-sticky {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* ---- Newsletter ---- */
.mpn-post__sidebar-newsletter {
    background-color: var(--mpn-brand-900);
    border-radius: var(--mpn-radius-xl);
    padding: 32px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    box-shadow: var(--mpn-shadow-xl);
    font-family: var(--mpn-font-sans);
}

.mpn-post__sidebar-newsletter-glow {
    position: absolute;
    top: 0;
    right: 0;
    transform: translate(50%, -50%);
    width: 128px;
    height: 128px;
    background-color: rgba(197, 157, 50, 0.2);
    border-radius: var(--mpn-radius-full);
    filter: blur(40px);
    pointer-events: none;
}

.mpn-post__sidebar-newsletter-inner {
    position: relative;
    z-index: 10;
}

.mpn-post__sidebar-newsletter-title {
    font-weight: 700;
    font-size: 20px;
    color: #ffffff;
    margin: 0 0 8px 0;
    padding: 0;
    letter-spacing: -0.025em;
    font-family: var(--mpn-font-sans);
}

.mpn-post__sidebar-newsletter-text {
    color: rgba(188, 204, 220, 0.8);
    font-size: 14px;
    margin: 0 0 24px 0;
    padding: 0;
    line-height: 1.625;
    font-family: var(--mpn-font-sans);
}

.mpn-post__sidebar-newsletter-fine {
    font-size: 10px;
    color: var(--mpn-slate-400);
    margin: 16px 0 0 0;
    padding: 0;
    opacity: 0.6;
    font-family: var(--mpn-font-sans);
}

/* ---- Social Share ---- */
.mpn-post__sidebar-share {
    background-color: var(--mpn-brand-900);
    border-radius: var(--mpn-radius-xl);
    padding: 32px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    box-shadow: var(--mpn-shadow-xl);
    font-family: var(--mpn-font-sans);
}

.mpn-post__sidebar-share-glow {
    position: absolute;
    top: 0;
    right: 0;
    transform: translate(50%, -50%);
    width: 96px;
    height: 96px;
    background-color: rgba(197, 157, 50, 0.1);
    border-radius: var(--mpn-radius-full);
    filter: blur(40px);
    pointer-events: none;
}

.mpn-post__sidebar-share-inner {
    position: relative;
    z-index: 10;
}

.mpn-post__sidebar-share-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--mpn-brand-200);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 16px 0;
    padding: 0;
    font-family: var(--mpn-font-sans);
}

.mpn-post__sidebar-share-links {
    display: flex;
    gap: 12px;
}

a.mpn-post__share-btn,
a.mpn-post__share-btn:visited {
    width: 48px;
    height: 48px;
    border-radius: var(--mpn-radius-full);
    background-color: var(--mpn-brand-800);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    transition: all var(--mpn-transition-slow);
    box-shadow: var(--mpn-shadow-lg);
    border: 1px solid rgba(51, 78, 104, 0.5);
}

a.mpn-post__share-btn:hover {
    background-color: var(--mpn-brand-700);
    transform: translateY(-2px);
    box-shadow: var(--mpn-shadow-xl);
}

a.mpn-post__share-btn svg {
    width: 16px;
    height: 16px;
}

/* ==========================================================================
   GRAVITY FORMS OVERRIDES (Dark Newsletter Container)
   ========================================================================== */

.mpn-post__sidebar-newsletter-inner .gform_wrapper {
    --gf-ctrl-border-color: transparent;
    --gf-ctrl-border-color-hover: transparent;
    --gf-ctrl-border-color-focus: var(--mpn-accent-500);
    --gf-ctrl-border-radius: 8px;
    --gf-ctrl-bg-color: #ffffff;
    --gf-ctrl-bg-color-hover: #ffffff;
    --gf-ctrl-size: 14px;
    --gf-ctrl-label-color-primary: var(--mpn-slate-300);
    --gf-ctrl-label-color-secondary: var(--mpn-slate-300);
    --gf-ctrl-choice-size: 16px;
    --gf-ctrl-btn-bg-color-primary: var(--mpn-accent-500);
    --gf-ctrl-btn-bg-color-primary-hover: #a68023;
    --gf-ctrl-btn-color-primary: #ffffff;
    --gf-color-primary: var(--mpn-accent-500);
    --gf-local-bg-color: transparent;
    --gf-color-out-ctrl-label-primary: var(--mpn-slate-300);
    --gf-color-out-ctrl-label-secondary: var(--mpn-slate-300);
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    font-family: var(--mpn-font-sans);
}

.mpn-post__sidebar-newsletter-inner .gform_body {
    padding: 0;
}

.mpn-post__sidebar-newsletter-inner .gform_wrapper fieldset,
.mpn-post__sidebar-newsletter-inner .gform_wrapper .gfield fieldset,
.mpn-post__sidebar-newsletter-inner .gform_wrapper fieldset.gfield,
.mpn-post__sidebar-newsletter-inner fieldset {
    border: 0 none;
    border-width: 0;
    border-style: none;
    border-color: transparent;
    padding: 0;
    margin: 0;
    min-width: 0;
    box-shadow: none;
    outline: none;
}

.mpn-post__sidebar-newsletter-inner legend,
.mpn-post__sidebar-newsletter-inner legend.gfield_label,
.mpn-post__sidebar-newsletter-inner .gform_wrapper legend {
    display: block;
    float: none;
    width: 100%;
    font-size: 11px;
    font-weight: 700;
    color: var(--mpn-slate-300);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 4px 0;
    padding: 0;
    font-family: var(--mpn-font-sans);
    line-height: 1.4;
    border: none;
    background: transparent;
}

.mpn-post__sidebar-newsletter-inner .gfield--type-consent legend,
.mpn-post__sidebar-newsletter-inner .gfield--type-consent legend.gfield_label,
.mpn-post__sidebar-newsletter-inner .gfield--type-consent > .gfield_label,
.mpn-post__sidebar-newsletter-inner .gfield--type-checkbox legend,
.mpn-post__sidebar-newsletter-inner .gfield--type-checkbox legend.gfield_label,
.mpn-post__sidebar-newsletter-inner .gfield--type-checkbox > .gfield_label {
    display: none;
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.mpn-post__sidebar-newsletter-inner .gform_fields {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mpn-post__sidebar-newsletter-inner .gfield {
    padding: 0;
    margin: 0;
}

.mpn-post__sidebar-newsletter-inner .gfield_label,
.mpn-post__sidebar-newsletter-inner .gform-field-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--mpn-slate-300);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 4px 0;
    padding: 0;
    font-family: var(--mpn-font-sans);
    line-height: 1.4;
}

.mpn-post__sidebar-newsletter-inner .gfield_required {
    color: #f87171;
    font-size: 0;
    letter-spacing: 0;
}

.mpn-post__sidebar-newsletter-inner .gfield_required * {
    display: none;
}

.mpn-post__sidebar-newsletter-inner .gfield_required::after {
    content: '*';
    display: inline;
    font-size: 12px;
    line-height: 1;
    color: #f87171;
    font-weight: 700;
    vertical-align: baseline;
    margin-left: 2px;
}

.mpn-post__sidebar-newsletter-inner .ginput_container_name label {
    display: none;
}

.mpn-post__sidebar-newsletter-inner .ginput_container_name {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.mpn-post__sidebar-newsletter-inner .ginput_container_name > span {
    display: block;
}

.mpn-post__sidebar-newsletter-inner .gfield input[type="text"],
.mpn-post__sidebar-newsletter-inner .gfield input[type="email"],
.mpn-post__sidebar-newsletter-inner .gfield input[type="tel"],
.mpn-post__sidebar-newsletter-inner .gfield textarea,
.mpn-post__sidebar-newsletter-inner .gform_wrapper .gfield input[type="text"],
.mpn-post__sidebar-newsletter-inner .gform_wrapper .gfield input[type="email"],
.mpn-post__sidebar-newsletter-inner .gform_wrapper .gfield input[type="tel"],
.mpn-post__sidebar-newsletter-inner .gform_wrapper .gfield textarea {
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    border: none;
    background: #ffffff;
    color: var(--mpn-brand-900);
    font-size: 14px;
    font-family: var(--mpn-font-sans);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    outline: none;
    transition: box-shadow 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
    height: auto;
    min-height: 0;
    line-height: 1.4;
}

.mpn-post__sidebar-newsletter-inner .gfield input[type="text"]::placeholder,
.mpn-post__sidebar-newsletter-inner .gfield input[type="email"]::placeholder,
.mpn-post__sidebar-newsletter-inner .gform_wrapper .gfield input[type="text"]::placeholder,
.mpn-post__sidebar-newsletter-inner .gform_wrapper .gfield input[type="email"]::placeholder {
    color: #94a3b8;
}

.mpn-post__sidebar-newsletter-inner .gfield input[type="text"]:focus,
.mpn-post__sidebar-newsletter-inner .gfield input[type="email"]:focus,
.mpn-post__sidebar-newsletter-inner .gform_wrapper .gfield input[type="text"]:focus,
.mpn-post__sidebar-newsletter-inner .gform_wrapper .gfield input[type="email"]:focus {
    box-shadow: 0 0 0 2px var(--mpn-accent-500);
}

.mpn-post__sidebar-newsletter-inner .gfield--type-consent,
.mpn-post__sidebar-newsletter-inner .gfield--type-checkbox {
    display: block;
}

.mpn-post__sidebar-newsletter-inner .ginput_container_consent {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.mpn-post__sidebar-newsletter-inner .ginput_container_consent .gchoice,
.mpn-post__sidebar-newsletter-inner .gfield--type-consent .gchoice,
.mpn-post__sidebar-newsletter-inner .gfield--type-checkbox .gchoice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0;
    padding: 0;
}

.mpn-post__sidebar-newsletter-inner .ginput_container_consent input[type="checkbox"],
.mpn-post__sidebar-newsletter-inner .gfield--type-checkbox input[type="checkbox"],
.mpn-post__sidebar-newsletter-inner .gfield--type-consent input[type="checkbox"],
.mpn-post__sidebar-newsletter-inner .gform_wrapper .gfield--type-consent input[type="checkbox"],
.mpn-post__sidebar-newsletter-inner .gform_wrapper .ginput_container_consent input[type="checkbox"],
.mpn-post__sidebar-newsletter-inner .gform_wrapper .gfield--type-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    min-width: 16px;
    max-width: 16px;
    min-height: 16px;
    max-height: 16px;
    border-radius: 4px;
    border: 1px solid #334e68;
    background-color: #243b53;
    background-image: none;
    cursor: pointer;
    margin: 2px 0 0 0;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    flex-shrink: 0;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    padding: 0;
    box-shadow: none;
    display: inline-block;
    position: relative;
    outline: none;
    vertical-align: top;
}

.mpn-post__sidebar-newsletter-inner .gfield--type-consent input[type="checkbox"]::before,
.mpn-post__sidebar-newsletter-inner .gfield--type-consent input[type="checkbox"]::after,
.mpn-post__sidebar-newsletter-inner .gfield--type-checkbox input[type="checkbox"]::before,
.mpn-post__sidebar-newsletter-inner .gfield--type-checkbox input[type="checkbox"]::after,
.mpn-post__sidebar-newsletter-inner .gform_wrapper .gfield--type-consent input[type="checkbox"]::before,
.mpn-post__sidebar-newsletter-inner .gform_wrapper .gfield--type-consent input[type="checkbox"]::after,
.mpn-post__sidebar-newsletter-inner .gform_wrapper .gfield--type-checkbox input[type="checkbox"]::before,
.mpn-post__sidebar-newsletter-inner .gform_wrapper .gfield--type-checkbox input[type="checkbox"]::after {
    display: none;
    content: none;
}

.mpn-post__sidebar-newsletter-inner .ginput_container_consent input[type="checkbox"]:checked,
.mpn-post__sidebar-newsletter-inner .gfield--type-checkbox input[type="checkbox"]:checked,
.mpn-post__sidebar-newsletter-inner .gfield--type-consent input[type="checkbox"]:checked,
.mpn-post__sidebar-newsletter-inner .gform_wrapper .gfield--type-consent input[type="checkbox"]:checked,
.mpn-post__sidebar-newsletter-inner .gform_wrapper .ginput_container_consent input[type="checkbox"]:checked,
.mpn-post__sidebar-newsletter-inner .gform_wrapper .gfield--type-checkbox input[type="checkbox"]:checked {
    background-color: var(--mpn-accent-500);
    border-color: var(--mpn-accent-500);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23102a43' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-size: 12px;
    background-position: center;
    background-repeat: no-repeat;
}

.mpn-post__sidebar-newsletter-inner .ginput_container_consent label,
.mpn-post__sidebar-newsletter-inner .gfield_consent_label,
.mpn-post__sidebar-newsletter-inner .gfield--type-consent .gchoice label {
    font-size: 12px;
    color: var(--mpn-slate-300);
    line-height: 1.4;
    cursor: pointer;
    font-family: var(--mpn-font-sans);
    margin: 0;
    padding: 0;
    font-weight: 400;
    text-transform: none;
    letter-spacing: normal;
    display: inline;
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    white-space: normal;
    visibility: visible;
}

.mpn-post__sidebar-newsletter-inner .ginput_container_consent label a,
.mpn-post__sidebar-newsletter-inner .gfield_consent_label a {
    color: var(--mpn-slate-300);
    text-decoration: underline;
}

.mpn-post__sidebar-newsletter-inner .ginput_container_consent label a:hover,
.mpn-post__sidebar-newsletter-inner .gfield_consent_label a:hover {
    color: #ffffff;
}

.mpn-post__sidebar-newsletter-inner .gfield_consent_description {
    display: none;
}

.mpn-post__sidebar-newsletter-inner .gfield_checkbox {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mpn-post__sidebar-newsletter-inner .gfield_checkbox li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 0;
    margin: 0;
}

.mpn-post__sidebar-newsletter-inner .gfield_checkbox label {
    font-size: 12px;
    color: var(--mpn-slate-300);
    line-height: 1.4;
    cursor: pointer;
    font-family: var(--mpn-font-sans);
    margin: 0;
    font-weight: 400;
    text-transform: none;
    letter-spacing: normal;
}

.mpn-post__sidebar-newsletter-inner .gform_footer,
.mpn-post__sidebar-newsletter-inner .gform_page_footer {
    padding: 16px 0 0 0;
    margin: 0;
    border: none;
}

.mpn-post__sidebar-newsletter-inner .gform_footer input[type="submit"],
.mpn-post__sidebar-newsletter-inner .gform_footer button[type="submit"],
.mpn-post__sidebar-newsletter-inner .gform_button,
.mpn-post__sidebar-newsletter-inner .gform_wrapper input[type="submit"] {
    width: 100%;
    display: block;
    background: var(--mpn-accent-500);
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-family: var(--mpn-font-sans);
    box-shadow: 0 10px 25px -5px rgba(197, 157, 50, 0.25);
    transition: background 0.2s ease, box-shadow 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
    text-align: center;
    line-height: 1.4;
    letter-spacing: 0;
    text-transform: none;
    box-sizing: border-box;
    outline: none;
}

.mpn-post__sidebar-newsletter-inner .gform_footer input[type="submit"]:hover,
.mpn-post__sidebar-newsletter-inner .gform_footer button[type="submit"]:hover,
.mpn-post__sidebar-newsletter-inner .gform_button:hover,
.mpn-post__sidebar-newsletter-inner .gform_wrapper input[type="submit"]:hover {
    background: #a68023;
    border: none;
    outline: none;
    box-shadow: 0 15px 30px -5px rgba(166, 128, 35, 0.4);
}

.mpn-post__sidebar-newsletter-inner .gform_footer input[type="submit"]:focus-visible,
.mpn-post__sidebar-newsletter-inner .gform_footer button[type="submit"]:focus-visible,
.mpn-post__sidebar-newsletter-inner .gform_button:focus-visible {
    outline: 2px solid var(--mpn-accent-500);
    outline-offset: 2px;
}

.mpn-post__sidebar-newsletter-inner .gform_footer input[type="submit"]:active,
.mpn-post__sidebar-newsletter-inner .gform_footer button[type="submit"]:active,
.mpn-post__sidebar-newsletter-inner .gform_button:active {
    background: #85631a;
    box-shadow: 0 5px 15px -5px rgba(133, 99, 26, 0.3);
}

.mpn-post__sidebar-newsletter-inner .gform_ajax_spinner {
    display: inline-block;
    margin-left: 8px;
    vertical-align: middle;
}

.mpn-post__sidebar-newsletter-inner .gform_validation_errors {
    color: #fca5a5;
    font-size: 12px;
    font-family: var(--mpn-font-sans);
    background: rgba(248, 113, 113, 0.15);
    border: 1px solid rgba(248, 113, 113, 0.35);
    border-radius: 8px;
    padding: 12px 16px;
    margin: 0 0 16px 0;
    box-shadow: none;
}

.mpn-post__sidebar-newsletter-inner .gform_validation_errors h2,
.mpn-post__sidebar-newsletter-inner .gform_validation_errors h3 {
    font-size: 13px;
    color: #fca5a5;
    margin: 0 0 4px 0;
    font-family: var(--mpn-font-sans);
    font-weight: 700;
}

.mpn-post__sidebar-newsletter-inner .gform_validation_errors ol,
.mpn-post__sidebar-newsletter-inner .gform_validation_errors ul {
    list-style: none;
    padding: 0;
    margin: 4px 0 0 0;
}

.mpn-post__sidebar-newsletter-inner .gform_validation_errors li {
    color: #fca5a5;
    font-size: 12px;
    margin: 2px 0;
}

.mpn-post__sidebar-newsletter-inner .gform_validation_errors a {
    color: #fca5a5;
    text-decoration: underline;
}

.mpn-post__sidebar-newsletter-inner .gform_validation_errors .gform-icon,
.mpn-post__sidebar-newsletter-inner .gform_validation_errors svg {
    display: none;
}

.mpn-post__sidebar-newsletter-inner .validation_message,
.mpn-post__sidebar-newsletter-inner .gfield_description.validation_message {
    color: #fca5a5;
    font-size: 11px;
    font-family: var(--mpn-font-sans);
    margin: 4px 0 0 0;
    padding: 0;
    background: transparent;
    border: none;
    display: block;
    opacity: 1;
}

.mpn-post__sidebar-newsletter-inner .gfield_error input[type="text"],
.mpn-post__sidebar-newsletter-inner .gfield_error input[type="email"],
.mpn-post__sidebar-newsletter-inner .gfield_error textarea {
    box-shadow: 0 0 0 2px #f87171;
}

.mpn-post__sidebar-newsletter-inner .gfield_error .gfield_label,
.mpn-post__sidebar-newsletter-inner .gfield_error legend {
    color: var(--mpn-slate-300);
}

.mpn-post__sidebar-newsletter-inner .gform_confirmation_message {
    color: #ffffff;
    font-size: 14px;
    line-height: 1.6;
    font-family: var(--mpn-font-sans);
    padding: 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    text-align: center;
}

.mpn-post__sidebar-newsletter-inner .gform_validation_container,
.mpn-post__sidebar-newsletter-inner .gfield_visibility_hidden {
    display: none;
    position: absolute;
    left: -9999px;
}

.mpn-post__sidebar-newsletter-inner .gfield_description:not(.gfield_consent_description):not(.validation_message) {
    font-size: 11px;
    color: var(--mpn-slate-400);
    margin: 4px 0 0 0;
    font-family: var(--mpn-font-sans);
    opacity: 0.7;
}

/* ==========================================================================
   BLOG ARCHIVE: PAGE HEADER
   ========================================================================== */

.mpn-blog-hero {
    background-color: rgba(240, 244, 248, 0.5);
    padding: 64px 0;
    border-bottom: 1px solid var(--mpn-slate-100);
    position: relative;
    z-index: 20;
    font-family: var(--mpn-font-sans);
}

.mpn-blog-hero__container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 var(--mpn-container-padding);
}

.mpn-blog-hero__content {
    text-align: center;
    max-width: 896px;
    margin: 0 auto;
}

.mpn-blog-hero__title {
    font-size: 36px;
    font-weight: 700;
    color: var(--mpn-brand-900);
    margin: 0 0 24px 0;
    padding: 0 0 8px 0;
    line-height: 1.1;
    letter-spacing: -0.025em;
    font-family: var(--mpn-font-sans);
}

.mpn-blog-hero__description {
    font-size: 18px;
    font-weight: 300;
    color: var(--mpn-slate-500);
    line-height: 1.625;
    margin: 0 auto;
    max-width: 640px;
    font-family: var(--mpn-font-sans);
}

/* ==========================================================================
   BLOG ARCHIVE: POST GRID
   ========================================================================== */

.mpn-blog-grid {
    padding: 80px 0;
    background-color: #ffffff;
    font-family: var(--mpn-font-sans);
}

.mpn-blog-grid__container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 var(--mpn-container-padding);
}

.mpn-blog-grid__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

/* ---- Card ---- */
a.mpn-blog-card,
a.mpn-blog-card:visited {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.mpn-blog-card__inner {
    background-color: var(--mpn-slate-50);
    border-radius: var(--mpn-radius-xl);
    border: 1px solid var(--mpn-slate-200);
    overflow: hidden;
    transition: all var(--mpn-transition-slow);
    height: 100%;
    display: flex;
    flex-direction: column;
}

a.mpn-blog-card:hover .mpn-blog-card__inner {
    border-color: var(--mpn-brand-300);
    box-shadow: var(--mpn-shadow-xl);
}

/* ---- Card image ---- */
.mpn-blog-card__image-wrap {
    position: relative;
    height: 256px;
    overflow: hidden;
    background-color: var(--mpn-slate-100);
}

.mpn-blog-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
    will-change: transform;
}

a.mpn-blog-card:hover .mpn-blog-card__image {
    transform: scale(1.02);
}

.mpn-blog-card__image-placeholder {
    width: 100%;
    height: 100%;
    background-color: var(--mpn-slate-100);
}

.mpn-blog-card__image-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(16, 42, 67, 0.05);
    transition: background-color var(--mpn-transition-slow);
}

a.mpn-blog-card:hover .mpn-blog-card__image-overlay {
    background-color: transparent;
}

/* ---- Category tag overlay ---- */
.mpn-blog-card__tag-wrap {
    position: absolute;
    top: 16px;
    left: 16px;
}

.mpn-blog-card__tag {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--mpn-brand-900);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: var(--mpn-radius-full);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid var(--mpn-slate-100);
    box-shadow: var(--mpn-shadow-sm);
    font-family: var(--mpn-font-sans);
}

/* ---- Card content ---- */
.mpn-blog-card__content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.mpn-blog-card__date {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--mpn-slate-400);
    font-weight: 500;
    margin-bottom: 12px;
    font-family: var(--mpn-font-sans);
}

.mpn-blog-card__date svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

.mpn-blog-card__title {
    font-size: 20px;
    font-weight: 700;
    color: var(--mpn-brand-900);
    margin: 0 0 12px 0;
    padding: 0;
    line-height: 1.3;
    transition: color var(--mpn-transition);
    font-family: var(--mpn-font-sans);
}

a.mpn-blog-card:hover .mpn-blog-card__title {
    color: var(--mpn-brand-700);
}

.mpn-blog-card__excerpt {
    font-size: 14px;
    color: var(--mpn-slate-500);
    line-height: 1.625;
    margin: 0 0 24px 0;
    flex-grow: 1;
    font-family: var(--mpn-font-sans);
}

.mpn-blog-card__footer {
    padding-top: 16px;
    border-top: 1px solid var(--mpn-slate-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.mpn-blog-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--mpn-brand-900);
    font-family: var(--mpn-font-sans);
    transition: gap var(--mpn-transition);
}

a.mpn-blog-card:hover .mpn-blog-card__cta {
    gap: 12px;
}

.mpn-blog-card__cta svg {
    width: 16px;
    height: 16px;
    color: var(--mpn-accent-500);
}

/* ---- Pagination ---- */
.mpn-blog-grid__pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 48px;
    font-family: var(--mpn-font-sans);
}

.mpn-blog-grid__pagination a,
.mpn-blog-grid__pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: var(--mpn-radius);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--mpn-transition);
    font-family: var(--mpn-font-sans);
}

.mpn-blog-grid__pagination a {
    color: var(--mpn-slate-600);
    background-color: var(--mpn-slate-50);
    border: 1px solid var(--mpn-slate-200);
}

.mpn-blog-grid__pagination a:hover {
    color: var(--mpn-brand-900);
    background-color: #ffffff;
    border-color: var(--mpn-brand-300);
    box-shadow: var(--mpn-shadow-sm);
}

.mpn-blog-grid__pagination span.current {
    color: #ffffff;
    background-color: var(--mpn-brand-900);
    border: 1px solid var(--mpn-brand-900);
}

.mpn-blog-grid__empty {
    text-align: center;
    padding: 64px 24px;
    color: var(--mpn-slate-500);
    font-size: 16px;
    font-family: var(--mpn-font-sans);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

/* ---- Tablet (768px) ---- */
@media (min-width: 768px) {
    .mpn-post-hero {
        padding: 80px 0 160px 0;
    }

    .mpn-post-hero__breadcrumbs {
        margin-bottom: 48px;
    }

    .mpn-post-hero__title {
        font-size: 48px;
    }

    .mpn-post-hero__description {
        font-size: 24px;
    }

    .mpn-post-hero__image-wrap {
        margin-top: -112px;
    }

    .mpn-post-hero__image-card {
        aspect-ratio: 21 / 9;
    }

    .mpn-post__author {
        flex-direction: row;
        align-items: flex-start;
        padding: 40px;
        gap: 32px;
    }

    .mpn-post__author-avatar {
        width: 128px;
        height: 128px;
    }

    .mpn-post__author-content {
        text-align: left;
    }

    .mpn-post__author-bio {
        font-size: 16px;
    }

    .mpn-blog-hero {
        padding: 96px 0;
    }

    .mpn-blog-hero__title {
        font-size: 48px;
    }

    .mpn-blog-grid__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ---- Desktop (1024px) ---- */
@media (min-width: 1024px) {
    .mpn-post-hero__title {
        font-size: 60px;
    }

    .mpn-post__layout {
        flex-direction: row;
        gap: 80px;
    }

    .mpn-post__sidebar {
        width: 33.333%;
        min-width: 320px;
    }

    .mpn-post__sidebar-sticky {
        position: sticky;
        top: 112px;
    }

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

/* ---- Small mobile (max 767px) ---- */
@media (max-width: 767px) {
    .mpn-post-hero__title {
        font-size: 28px;
    }

    .mpn-post-hero__description {
        font-size: 16px;
    }

    .mpn-post-hero__image-card {
        aspect-ratio: 16 / 9;
        border-radius: 24px;
    }

    .mpn-post__body > p:first-of-type {
        font-size: 18px;
    }

    .mpn-blog-hero__title {
        font-size: 28px;
    }

    .mpn-blog-hero__description {
        font-size: 16px;
    }

    .mpn-blog-card__image-wrap {
        height: 200px;
    }
}
