/* ==========================================================================
   Methodology show page — separate layout from blog showPage
   Scoped under .mgm-method (added to .show_blog_container.mgm-blog)
   ========================================================================== */

/* ---------- Header: breadcrumb + H1 + published-by bar ---------- */
.mgm-blog.mgm-method .mgm-methodhead {
    padding: 30px 0 12px;
}

.mgm-blog.mgm-method .mgm-methodhead .mgm-breadcrumb .breadcrumb {
    margin: 0px;
}
.mgm-cta-band {
        display: none;
}
.mgm-blog.mgm-method .mgm-methodhead__title { 
    margin: 0 0 24px;
    font-family: var(--mgm-font-head);
    font-weight: 700;
    font-size: clamp(28px, 3.6vw, 38px);
    line-height: 1.2;
    letter-spacing: -.01em;
    color: var(--mgm-deep, #16283a);
    text-wrap: balance;
}

/* ---------- Published-by bar (image 2) ---------- */
.mgm-blog.mgm-method .mgm-pubbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px 24px;
    margin-bottom: 26px;
    padding: 2px 0 22px;
    border-bottom: 1px solid var(--mgm-line-2, #e6edf3);
}

.mgm-blog.mgm-method .mgm-pubbar__by {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

/* .blog_inner img { width:100% !important } in show_blogpage.css must be beaten */
.mgm-blog.mgm-method .mgm-pubbar__logo {
    width: 28px !important;
    height: 28px !important;
    flex: 0 0 auto;
    object-fit: contain;
    border-radius: 10px;
}

.mgm-blog.mgm-method .mgm-pubbar__text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    font-family: var(--mgm-font-body);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.35;
    color: #33475b;
}

.mgm-blog.mgm-method .mgm-pubbar__label {
    font-size: 11px;
    font-weight: 400;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--mgm-muted, #5b6672);
}

.mgm-blog.mgm-method .mgm-pubbar__text a {
    color: #1e75bb;
    font-weight: 700;
    text-decoration: none;
    font-size:14px;
}

.mgm-blog.mgm-method .mgm-pubbar__text a:hover {
    text-decoration: underline;
}

.mgm-blog.mgm-method .mgm-pubbar__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 20px;
}

.mgm-blog.mgm-method .mgm-pubbar__date {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--mgm-font-body);
    font-size: 14px;
    color: var(--mgm-muted, #5b6672);
}

.mgm-blog.mgm-method .mgm-pubbar__date svg {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    color: var(--mgm-blue, #1e75bb);
}

.mgm-blog.mgm-method .mgm-pubbar__date time {
    font-weight: 700;
    color: var(--mgm-heading, #10243a);
}

/* ---------- Layout: article left, sidebar right (flipped vs blog) ---------- */
.mgm-blog.mgm-method .mgm-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    margin-top: 0;
}

.mgm-blog.mgm-method .mgm-side {
    order: 2;
}

@media (max-width: 1199.98px) {
    .mgm-blog.mgm-method .mgm-layout {
        grid-template-columns: minmax(0, 1fr) 270px;
        gap: 32px;
    }
}

@media (max-width: 991.98px) {
    .mgm-blog.mgm-method .mgm-layout {
        grid-template-columns: minmax(0, 1fr);
        margin-top: 0;
    }
}

/* ---------- Sidebar: table of contents ---------- */
.mgm-blog.mgm-method .mgm-tocside {
    margin-bottom: 18px;
    padding: 18px 20px;
    background: var(--mgm-soft-2, #f6f9fc);
    border: 1px solid var(--mgm-line-2, #e6edf3);
    border-radius: var(--mgm-radius, 16px);
}

.mgm-blog.mgm-method .mgm-tocside__title {
    display: block;
    margin-bottom: 8px;
    font-family: var(--mgm-font-body);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--mgm-heading, #10243a);
}

.mgm-blog.mgm-method .mgm-tocside__list {
    margin: 0;
    padding: 0 10px 0 0;
    list-style: none;
    max-height: 205px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--mgm-line, #dbe9f4) transparent;
}

.mgm-blog.mgm-method .mgm-tocside__list::-webkit-scrollbar {
    width: 6px;
}

.mgm-blog.mgm-method .mgm-tocside__list::-webkit-scrollbar-track {
    background: transparent;
}

.mgm-blog.mgm-method .mgm-tocside__list::-webkit-scrollbar-thumb {
    background: var(--mgm-line, #dbe9f4);
    border-radius: 999px;
}

.mgm-blog.mgm-method .mgm-tocside__list::-webkit-scrollbar-thumb:hover {
    background: var(--mgm-blue, #1e75bb);
}

.mgm-blog.mgm-method .mgm-tocside__list li {
    margin: 0;
}

.mgm-blog.mgm-method .mgm-tocside__list a {
    display: block;
    padding: 8px 0 8px 16px;
    border-left: 2px solid var(--mgm-line, #dbe9f4);
    font-family: var(--mgm-font-body);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
    color: var(--mgm-muted, #5b6672);
    text-decoration: none;
    transition: color .15s ease, border-color .15s ease;
}

.mgm-blog.mgm-method .mgm-tocside__list a:hover {
    color: var(--mgm-blue, #1e75bb);
}

.mgm-blog.mgm-method .mgm-tocside__list a.is-active {
    border-left-color: var(--mgm-blue, #1e75bb);
    color: var(--mgm-blue, #1e75bb);
    font-weight: 700;
}

/* ---------- Sidebar: share row + brand CTA card ---------- */
.mgm-blog.mgm-method .mgm-share--side {
    padding-bottom: 4px;
}
.mgm-blog .mgm-layout{
        gap: 95px !important;
}
.mgm-blog.mgm-method .mgm-ctacard {
    position: relative;
    overflow: hidden;
    padding: 26px 24px 24px;
    border-radius: var(--mgm-radius, 16px);
    background: linear-gradient(160deg, var(--mgm-navy, #0f2a47) 0%, var(--mgm-blue, #1e75bb) 118%);
    box-shadow: var(--mgm-shadow, 0 10px 30px -12px rgba(16, 36, 58, .18));
}

.mgm-blog.mgm-method .mgm-ctacard::before {
    content: "";
    position: absolute;
    top: -70px;
    right: -70px;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
}

.mgm-blog.mgm-method .mgm-ctacard__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .14);
    color: #fff;
}

.mgm-blog.mgm-method .mgm-ctacard__icon svg {
    width: 22px;
    height: 22px;
}

.mgm-blog.mgm-method .mgm-ctacard__title {
    margin: 0 0 8px;
    font-family: var(--mgm-font-head);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.32;
    letter-spacing: -.01em;
    color: #fff;
    text-wrap: balance;
}

.mgm-blog.mgm-method .mgm-ctacard__text {
    margin: 0 0 18px !important;
    font-family: var(--mgm-font-body) !important;
    font-size: 13.5px !important;
    line-height: 1.55 !important;
    color: rgba(255, 255, 255, .82) !important;
}

.mgm-blog.mgm-method .mgm-ctacard__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 22px;
    border: 0;
    border-radius: var(--mgm-radius-sm, 10px);
    background: #fff;
    color: var(--mgm-cta, #0043c0);
    font-family: var(--mgm-font-body);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s ease, transform .15s ease;
}

.mgm-blog.mgm-method .mgm-ctacard__btn svg {
    width: 16px;
    height: 16px;
}

.mgm-blog.mgm-method .mgm-ctacard__btn:hover {
    background: var(--mgm-soft, #eef5fa);
    transform: translateY(-1px);
}

/* ---------- Small screens ---------- */
@media (max-width: 991.98px) {
    .mgm-blog.mgm-method .mgm-layout {
        gap: 40px !important; /* base rule uses !important */
    }
}

@media (max-width: 575.98px) {
    .mgm-blog.mgm-method .mgm-methodhead {
        padding: 16px 0 8px;
    }

    .mgm-blog.mgm-method .mgm-methodhead .mgm-breadcrumb .breadcrumb {
        margin: 0 0 12px;
        font-size: 13px;
    }

    .mgm-blog.mgm-method .mgm-methodhead__title {
        margin: 0 0 16px;
        font-size: 26px;
        line-height: 1.25;
    }

    .mgm-blog.mgm-method .mgm-pubbar {
        gap: 12px;
        margin-bottom: 20px;
               margin-top: 29px;
        padding: 0 0 16px;}

    .mgm-blog.mgm-method .mgm-pubbar__by {
        gap: 10px;
    }

    .mgm-blog.mgm-method .mgm-pubbar__logo {
        width: 40px !important;
        height: 40px !important;
    }

    .mgm-blog.mgm-method .mgm-pubbar__text {
        font-size: 14px;
    }

    .mgm-blog.mgm-method .mgm-pubbar__meta {
        width: 100%;
        justify-content: flex-start;
    }

    .mgm-blog.mgm-method .mgm-pubbar__date {
        font-size: 13px;
    }

    .mgm-blog.mgm-method .mgm-tocside {
        padding: 14px 16px;
    }

    .mgm-blog.mgm-method .mgm-tocside__list {
        max-height: 180px;
    }

    .mgm-blog.mgm-method .mgm-ctacard {
        padding: 20px 18px 18px;
    }
}
