/* ================================================================
   Macring Page Layout Block  — Figma node 2-4857
   Two-column: main content (left) + sticky sidebar (right)
   ================================================================ */

.macring-page-layout {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 56px 32px;
    display: grid;
    grid-template-columns: 1fr 408px;
    gap: 56px;
    align-items: start;
    box-sizing: border-box;
}

.macring-page-layout.mpl--no-sidebar {
    grid-template-columns: 1fr;
    max-width: 900px;
}

/* ── Main content ────────────────────────────────────────────── */

.mpl__main {
    min-width: 0;
}

/* ── Sidebar shell ───────────────────────────────────────────── */

.mpl__sidebar {
    position: sticky;
    top: 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ── Card 1: What's included ─────────────────────────────────── */

.mpl__sidebar-included {
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 21px;
    background: #ffffff;
}

.mpl__si__heading {
    margin: 0 0 16px;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 17.6px;
    font-weight: 600;
    line-height: 1.75;
    color: #002856;
}

.mpl__si__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mpl__si__item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.mpl__si__icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-top: 2px;
    background: #e03a1a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mpl__si__text {
    font-family: "Inter", sans-serif;
    font-size: 12.8px;
    font-weight: 400;
    line-height: 1.5;
    color: #374151;
}

/* ── Card 2: CTA (navy) ──────────────────────────────────────── */

.mpl__sidebar-contact {
    background: #002856;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.mpl__sc__title {
    margin: 0;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 18.4px;
    font-weight: 600;
    line-height: 1.75;
    color: #ffffff;
}

.mpl__sc__subtitle {
    margin: 4px 0 0;
    max-width: 216px;
    font-family: "Inter", sans-serif;
    font-size: 12.48px;
    font-weight: 400;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

.mpl__sc__btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: 16px;
    padding: 12px 16px;
    background: #e03a1a;
    color: #ffffff;
    text-decoration: none;
    font-family: "Inter", sans-serif;
    font-size: 11.2px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0.896px;
    text-transform: uppercase;
    transition: background 0.2s ease;
    box-sizing: border-box;
}

.mpl__sc__btn:hover,
.mpl__sc__btn:focus-visible {
    background: #c73216;
    color: #ffffff;
}

/* ── Card 3: All Services link ───────────────────────────────── */

.mpl__sidebar-all {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 17px 21px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #ffffff;
    color: #002856;
    text-decoration: none;
    font-family: "Inter", sans-serif;
    font-size: 11.2px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0.896px;
    text-transform: uppercase;
    transition: background 0.15s ease, color 0.15s ease;
}

.mpl__sidebar-all:hover,
.mpl__sidebar-all:focus-visible {
    background: #f4f5f7;
    color: #002856;
}

/* ── Blocks inside the content column ───────────────────────────
   Specificity (0,2,0) beats individual block selectors (0,1,0).
   Removes horizontal padding (page-layout handles it) and
   reduces vertical spacing to 48px between sections.             */

.mpl__main > [class*="macring-"],
.mpl__main > .wp-block-macring-page-layout > [class*="macring-"] {
    padding-top: 48px;
    padding-bottom: 48px;
    padding-left: 0;
    padding-right: 0;
    max-width: none;
}

.mpl__main > [class*="macring-"]:first-child,
.mpl__main > .wp-block-macring-page-layout > [class*="macring-"]:first-child {
    padding-top: 0;
}

.mpl__main > [class*="macring-"]:last-child,
.mpl__main > .wp-block-macring-page-layout > [class*="macring-"]:last-child {
    padding-bottom: 0;
}

.mpl__main > .macring-text-content,
.mpl__main > .wp-block-macring-page-layout > .macring-text-content {
    padding-top: 0;
    padding-bottom: 0;
    margin-bottom: 48px;
}

.mpl__main > .macring-text-content:last-child,
.mpl__main > .wp-block-macring-page-layout > .macring-text-content:last-child {
    margin-bottom: 0;
}

.macring-page-layout .mpl__main > .macring-text-content + [class*="macring-"],
.macring-page-layout .mpl__main > .wp-block-macring-page-layout > .macring-text-content + [class*="macring-"] {
    padding-top: 0;
}

.macring-page-layout .mpl__main > .macring-product-faq,
.macring-page-layout .mpl__main > .wp-block-macring-page-layout > .macring-product-faq {
    padding: 0;
}

.macring-page-layout .mpl__main > .macring-product-faq .mfaq__container,
.macring-page-layout .mpl__main > .wp-block-macring-page-layout > .macring-product-faq .mfaq__container {
    max-width: none;
    width: 100%;
    padding: 48px;
    box-sizing: border-box;
}

.macring-page-layout .mpl__main > .macring-product-form .mpf__container,
.macring-page-layout .mpl__main > .wp-block-macring-page-layout > .macring-product-form .mpf__container {
    padding: 0;
}

/* ── Blog sidebar: Featured Machine card ─────────────────────── */

.mpl__sidebar-product {
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: #ffffff;
    overflow: hidden;
}

.mpl__sp__image {
    position: relative;
    height: 190px;
    overflow: hidden;
    background: #f4f5f7;
    flex-shrink: 0;
}

.mpl__sp__image::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #e03a1a;
    z-index: 1;
}

.mpl__sp__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mpl__sp__cat {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.92);
    font-family: "Inter", sans-serif;
    font-size: 9px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.9px;
    text-transform: uppercase;
    color: #374151;
    z-index: 2;
}

.mpl__sp__body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.mpl__sp__label {
    margin: 0 0 8px;
    font-family: "Inter", sans-serif;
    font-size: 10.4px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 1.456px;
    text-transform: uppercase;
    color: #e03a1a;
}

.mpl__sp__title {
    margin: 0 0 8px;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 19.2px;
    font-weight: 600;
    line-height: 1.2;
    color: #002856;
}

.mpl__sp__desc {
    margin: 0 0 12px;
    font-family: "Inter", sans-serif;
    font-size: 12.48px;
    font-weight: 400;
    line-height: 1.6;
    color: #6b7280;
}

.mpl__sp__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.mpl__sp__tag {
    padding: 3px 8px;
    background: #f4f5f7;
    font-family: "Inter", sans-serif;
    font-size: 9.92px;
    font-weight: 400;
    line-height: 1.5;
    color: #374151;
}

.mpl__sp__btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: auto;
    padding: 11px 16px;
    background: #002856;
    color: #ffffff;
    text-decoration: none;
    font-family: "Inter", sans-serif;
    font-size: 11.2px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 1.12px;
    text-transform: uppercase;
    box-sizing: border-box;
    transition: background 0.2s ease;
}

.mpl__sp__btn:hover,
.mpl__sp__btn:focus-visible {
    background: #003d7a;
    color: #ffffff;
}

/* ── Blog sidebar: Share article card ────────────────────────── */

.mpl__sidebar-share {
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 17px;
    background: #ffffff;
}

.mpl__ss__label {
    margin: 0 0 12px;
    font-family: "Inter", sans-serif;
    font-size: 10.4px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 1.456px;
    text-transform: uppercase;
    color: #9ca3af;
}

.mpl__ss__buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mpl__ss__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: #ffffff;
    color: #374151;
    cursor: pointer;
    text-decoration: none;
    transition: border-color 0.15s ease, color 0.15s ease;
    box-sizing: border-box;
    padding: 0;
    flex-shrink: 0;
}

.mpl__ss__btn:hover,
.mpl__ss__btn:focus-visible {
    border-color: rgba(0, 40, 86, 0.3);
    color: #002856;
}

/* ── Responsive ───────────────────────────────────────────────── */

@media (max-width: 1024px) {
    .macring-page-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .mpl__sidebar {
        position: static;
    }
}

@media (max-width: 767px) {
    .macring-page-layout {
        padding: 40px 24px;
        gap: 32px;
    }

    /* FAQ: reduce padding inside layout on mobile */
    .macring-page-layout .mpl__main > .macring-product-faq .mfaq__container,
    .macring-page-layout .mpl__main > .wp-block-macring-page-layout > .macring-product-faq .mfaq__container {
        padding: 24px;
    }

    /* Latest posts: single column inside layout on mobile */
    .mpl__main .mlp__grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}
