.mst-blog-app {
    --mst-ink: #101527;
    --mst-muted: #667085;
    --mst-purple: #6c4cf4;
    --mst-purple-soft: #eee9ff;
    --mst-border: #e7e8ee;
    --mst-bg: #ffffff;
    width: 100%;
    color: var(--mst-ink);
    font-family: inherit;
    padding-top: 150px;
}

@media (max-width: 767px) {
    .mst-blog-app { padding-top: 64px; }
}

.mst-blog-app *, .mst-blog-app *::before, .mst-blog-app *::after { box-sizing: border-box; }
.mst-blog-app a { color: inherit; text-decoration: none; }

.mst-blog-toolbar {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: clamp(46px, 6vw, 84px);
}

.mst-category-scroll {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    min-width: 0;
    overflow: visible;
    padding: 3px 1px;
    flex: 1 1 auto;
}
.mst-category-scroll::-webkit-scrollbar { display: none; }

.mst-filter-btn {
    appearance: none;
    border: 1px solid #dcdfe7;
    background: #fff;
    border-radius: 999px;
    min-height: 36px;
    padding: 7px 17px;
    color: #515869;
    font-size: 14px;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: .2s ease;
}
.mst-filter-btn:hover,
.mst-filter-btn.is-active {
    border-color: var(--mst-purple);
    color: var(--mst-purple);
    background: #f8f6ff;
}

.mst-blog-search {
    display: flex;
    align-items: center;
    width: 38px;
    transition: width .25s ease;
    border: 1px solid #cfc8ff;
    border-radius: 5px;
    overflow: hidden;
    background: #fff;
}
.mst-blog-search:focus-within { width: 220px; }
.mst-search-input {
    width: 100%; min-width: 0; height: 34px; border: 0; outline: 0;
    padding: 0 0 0 11px; opacity: 0; transition: opacity .2s;
}
.mst-blog-search:focus-within .mst-search-input { opacity: 1; }
.mst-search-btn {
    width: 36px; height: 34px; border: 0; background: #f0edff;
    color: var(--mst-purple); display: grid; place-items: center; cursor: pointer; flex: 0 0 36px;
}
.mst-search-btn svg { width: 17px; height: 17px; }

.mst-section-title {
    margin: 0 0 30px;
    font-size: clamp(26px, 2.2vw, 34px);
    line-height: 1.2;
    letter-spacing: -.025em;
    font-weight: 750;
}

.mst-featured-wrap { margin-bottom: clamp(70px, 9vw, 120px); }
.mst-featured-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr);
    gap: 24px;
}
.mst-featured-lead { min-width: 0; }
.mst-featured-image,
.mst-side-image,
.mst-card-image,
.mst-image-placeholder {
    display: block;
    width: 100%;
    object-fit: cover;
    background: linear-gradient(135deg, #120f45, #271671 56%, #4b35c9);
}
.mst-featured-image,
.mst-featured-thumb > .mst-image-placeholder { aspect-ratio: 1.76 / 1; }
.mst-side-image,
.mst-side-thumb > .mst-image-placeholder { aspect-ratio: 1.75 / 1; }
.mst-card-image,
.mst-post-thumb > .mst-image-placeholder { aspect-ratio: 1.76 / 1; }
.mst-image-placeholder { align-items: flex-end; padding: 18px; color: white; font-weight: 700; }

.mst-featured-content { padding-top: 20px; }
.mst-category-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 8px;
    border-radius: 3px;
    background: var(--mst-purple-soft);
    color: var(--mst-purple);
    font-size: 12px;
    line-height: 1.1;
}
.mst-featured-content h3,
.mst-side-content h3,
.mst-post-card-content h3 { margin: 0; }
.mst-featured-content h3 {
    margin-top: 15px;
    font-size: clamp(22px, 2vw, 30px);
    line-height: 1.22;
    letter-spacing: -.025em;
}
.mst-featured-content p {
    margin: 11px 0 13px;
    color: var(--mst-muted);
    font-size: 16px;
    line-height: 1.55;
}

.mst-featured-side { display: grid; gap: 16px; }
.mst-side-post {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(190px, .82fr);
    gap: 20px;
    align-items: center;
}
.mst-side-content h3 {
    margin-top: 12px;
    font-size: clamp(17px, 1.35vw, 21px);
    line-height: 1.28;
    letter-spacing: -.015em;
}
.mst-side-content .mst-post-meta { margin-top: 20px; }

.mst-post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: var(--mst-purple);
    font-size: 13px;
    font-weight: 600;
}
.mst-dot { color: #9f8cf7; }

.mst-post-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 52px 24px;
}
.mst-post-card { min-width: 0; }
.mst-featured-thumb { display: block; overflow: hidden; }
.mst-post-thumb { display: block; overflow: hidden; }
.mst-post-thumb img { transition: transform .35s ease; }
.mst-post-card:hover .mst-post-thumb img { transform: scale(1.025); }
.mst-post-card-content { padding-top: 15px; }
.mst-card-topline {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: #444c5e;
    font-size: 12px;
}
.mst-post-card-content h3 {
    font-size: clamp(20px, 1.6vw, 25px);
    line-height: 1.22;
    letter-spacing: -.02em;
    min-height: 2.44em;
}
.mst-post-card-content .mst-post-meta { margin-top: 17px; }

.mst-pagination {
    border-top: 1px solid var(--mst-border);
    margin-top: 72px;
    padding-top: 26px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    position: relative;
}
.mst-pagination .page-numbers {
    min-width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    font-size: 13px;
    color: #425066;
}
.mst-pagination .current { background: var(--mst-purple); color: #fff; }
.mst-pagination .prev { position: absolute; left: 0; width: auto; gap: 8px; }
.mst-pagination .next { position: absolute; right: 0; width: auto; gap: 8px; }

.mst-empty-state,
.mst-ajax-message,
.mst-empty {
    padding: 50px 20px;
    text-align: center;
    background: #faf9ff;
    border: 1px solid #eeeaff;
}
.mst-empty-state h3 { margin: 0 0 8px; }
.mst-empty-state p { margin: 0; color: var(--mst-muted); }
.mst-blog-app.is-loading .mst-blog-results { opacity: .45; pointer-events: none; }
.mst-blog-results { transition: opacity .2s ease; }

@media (max-width: 1024px) {
    .mst-featured-grid { grid-template-columns: 1fr; }
    .mst-featured-side { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .mst-side-post { display: block; }
    .mst-side-content { padding-top: 13px; }
    .mst-post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
    .mst-blog-toolbar { margin-bottom: 42px; }
    .mst-blog-search { flex: 0 0 38px; }
    .mst-blog-search:focus-within { width: min(180px, 55vw); }
    .mst-featured-side { grid-template-columns: 1fr; }
    .mst-side-post { display: grid; grid-template-columns: 42% 1fr; gap: 14px; }
    .mst-side-content h3 { font-size: 16px; }
    .mst-side-content .mst-post-meta { margin-top: 12px; }
    .mst-post-grid { grid-template-columns: 1fr; gap: 42px; }
    .mst-post-card-content h3 { min-height: auto; }
    .mst-pagination { justify-content: center; padding-bottom: 52px; flex-wrap: wrap; }
    .mst-pagination .prev,
    .mst-pagination .next { bottom: 0; top: auto; }
}

/* Category filter visibility fix */
@media (max-width: 767px) {
    .mst-blog-toolbar {
        align-items: stretch;
        flex-direction: column;
    }
    .mst-category-scroll {
        width: 100%;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 8px;
        scrollbar-width: thin;
    }
    .mst-blog-search,
    .mst-blog-search:focus-within {
        width: 100%;
    }
    .mst-search-input { opacity: 1; }
}

/* v1.2 category toolbar hardening */
.mst-blog-app .mst-blog-toolbar {
    align-items: flex-start;
}
.mst-blog-app .mst-category-scroll {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 10px !important;
    width: calc(100% - 60px) !important;
    max-width: none !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    white-space: nowrap !important;
    scrollbar-width: thin;
    padding-bottom: 6px;
}
.mst-blog-app .mst-filter-btn {
    display: inline-flex !important;
    flex: 0 0 auto !important;
    visibility: visible !important;
    opacity: 1 !important;
}
.mst-blog-app .mst-search-btn svg {
    display: block !important;
    width: 17px !important;
    height: 17px !important;
}
@media (max-width: 767px) {
    .mst-blog-app .mst-category-scroll {
        width: 100% !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        padding-bottom: 6px;
    }
}

/* v1.5 multi-category filters and improved search UI */
.mst-blog-app .mst-blog-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    gap: 22px;
    align-items: end;
    padding: 18px;
    margin-bottom: clamp(42px, 5vw, 72px);
    border: 1px solid var(--mst-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 35px rgba(16, 21, 39, .055);
}
.mst-filter-panel { min-width: 0; }
.mst-filter-heading-row { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:12px; }
.mst-filter-label { font-size:13px; font-weight:700; color:var(--mst-ink); }
.mst-reset-filters { padding:0; border:0; background:transparent; color:var(--mst-purple); font-size:12px; font-weight:700; cursor:pointer; }
.mst-reset-filters[hidden] { display:none !important; }
.mst-blog-app .mst-category-scroll { width:100% !important; gap:8px !important; }
.mst-blog-app .mst-filter-btn { min-height:38px; padding:8px 14px; gap:6px; font-weight:600; }
.mst-checkmark { display:none; width:16px; height:16px; border-radius:50%; place-items:center; background:var(--mst-purple); color:#fff; font-size:10px; }
.mst-filter-btn.is-active .mst-checkmark { display:inline-grid; }
.mst-blog-app .mst-filter-btn.is-active { background:var(--mst-purple); color:#fff; border-color:var(--mst-purple); box-shadow:0 5px 14px rgba(108,76,244,.2); }
.mst-blog-app .mst-all-filter.is-active { background:#f4f1ff; color:var(--mst-purple); box-shadow:none; }
.mst-blog-app .mst-blog-search { position:relative; display:flex; width:100%; height:46px; border:1px solid #d9dce5; border-radius:10px; overflow:hidden; background:#fff; transition:.2s ease; }
.mst-blog-app .mst-blog-search:focus-within { width:100%; border-color:var(--mst-purple); box-shadow:0 0 0 3px rgba(108,76,244,.1); }
.mst-search-icon { position:absolute; left:14px; top:50%; transform:translateY(-50%); width:18px; height:18px; color:#7b8190; pointer-events:none; }
.mst-blog-app .mst-search-input { opacity:1; height:44px; padding:0 74px 0 42px; font-size:14px; }
.mst-search-clear { position:absolute; right:70px; top:50%; transform:translateY(-50%); width:28px; height:28px; padding:0; border:0; border-radius:50%; background:#f0f1f5; color:#596071; font-size:20px; line-height:1; cursor:pointer; }
.mst-search-clear[hidden] { display:none !important; }
.mst-blog-app .mst-search-btn { width:auto; min-width:66px; height:44px; padding:0 14px; background:var(--mst-purple); color:#fff; font-size:13px; font-weight:700; }
.mst-active-filter-summary { margin:-48px 0 40px; padding:10px 14px; border-radius:8px; background:#f7f5ff; color:#5c6474; font-size:13px; }
.mst-post-card { border-radius:12px; transition:transform .25s ease, box-shadow .25s ease; }
.mst-post-card:hover { transform:translateY(-4px); }
.mst-post-thumb { border-radius:10px; }
.mst-blog-app.is-loading .mst-blog-results { min-height:260px; }
@media (max-width:1024px) {
    .mst-blog-app .mst-blog-toolbar { grid-template-columns:1fr; align-items:stretch; }
    .mst-active-filter-summary { margin-top:-46px; }
}
@media (max-width:767px) {
    .mst-blog-app .mst-blog-toolbar { padding:14px; border-radius:12px; }
    .mst-blog-app .mst-category-scroll { flex-wrap:nowrap !important; overflow-x:auto !important; }
    .mst-blog-app .mst-blog-search, .mst-blog-app .mst-blog-search:focus-within { width:100%; }
    .mst-active-filter-summary { margin-top:-30px; margin-bottom:32px; }
}

/* v1.8 compact search bar and refined filter toolbar */
.mst-blog-app .mst-blog-toolbar {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 18px 24px;
    padding: 16px 18px;
}
.mst-blog-app .mst-blog-search {
    width: 300px;
    max-width: 100%;
    height: 40px;
    margin-top: 28px;
    border-radius: 9px;
}
.mst-blog-app .mst-blog-search:focus-within {
    width: 320px;
    max-width: 100%;
}
.mst-search-icon {
    left: 12px;
    width: 16px;
    height: 16px;
}
.mst-blog-app .mst-search-input {
    height: 38px;
    min-width: 0;
    padding: 0 66px 0 36px;
    font-size: 13px;
    line-height: 38px;
}
.mst-search-clear {
    right: 58px;
    width: 24px;
    height: 24px;
    font-size: 17px;
}
.mst-blog-app .mst-search-btn {
    min-width: 56px;
    height: 38px;
    padding: 0 12px;
    font-size: 12px;
}
.mst-blog-app .mst-filter-btn {
    min-height: 34px;
    padding: 7px 12px;
    font-size: 12px;
}
.mst-filter-heading-row {
    margin-bottom: 10px;
}
@media (max-width: 1024px) {
    .mst-blog-app .mst-blog-toolbar {
        grid-template-columns: 1fr;
    }
    .mst-blog-app .mst-blog-search,
    .mst-blog-app .mst-blog-search:focus-within {
        width: min(100%, 360px);
        margin-top: 2px;
        justify-self: end;
    }
}
@media (max-width: 767px) {
    .mst-blog-app .mst-blog-toolbar {
        gap: 14px;
        padding: 14px;
    }
    .mst-blog-app .mst-blog-search,
    .mst-blog-app .mst-blog-search:focus-within {
        width: 100%;
        justify-self: stretch;
    }
}

/* Premium single blog template */
.mst-premium-single-active .site-main,
.mst-premium-single-active #primary { max-width:none!important; padding:0!important; margin:0!important; }
.mst-single-page { --mst-single-ink:#111827; --mst-single-muted:#667085; --mst-single-purple:#6d4aff; --mst-single-soft:#faf7f2; color:var(--mst-single-ink); background:#fff; }
.mst-single-shell { width:min(1600px, calc(100% - 64px)); margin-inline:auto; }
.mst-single-hero { background:linear-gradient(135deg,#fbf7f0 0%,#fffaf4 65%,#f8f3ff 100%); padding:72px 0 68px; border-bottom:1px solid #eee9e2; }
.mst-single-hero-grid { display:grid; grid-template-columns:minmax(0,1.1fr) minmax(360px,.9fr); gap:72px; align-items:center; }
.mst-single-kicker,.mst-related-category { display:inline-flex; padding:7px 11px; border-radius:999px; background:#f0eaff; color:#623eea; font-size:12px; font-weight:700; text-decoration:none; }
.mst-single-hero h1 { margin:20px 0 18px; font-size:clamp(38px,5vw,68px); line-height:1.04; letter-spacing:-.045em; max-width:760px; }
.mst-single-deck { max-width:690px; margin:0 0 28px; color:#596273; font-size:18px; line-height:1.7; }
.mst-single-meta { display:flex; align-items:center; gap:12px; }
.mst-author-avatar { border-radius:50%; }
.mst-single-meta div { display:flex; flex-direction:column; gap:2px; }
.mst-single-meta strong { font-size:14px; }
.mst-single-meta span { color:#7a8393; font-size:13px; }
.mst-single-hero-media { position:relative; }
.mst-single-hero-media:before { content:""; position:absolute; inset:9% -4% -7% 12%; background:#ded4ff; border-radius:30px; transform:rotate(3deg); }
.mst-single-featured-image,.mst-single-featured-placeholder { position:relative; z-index:1; display:block; width:100%; border-radius:26px; box-shadow:0 24px 60px rgba(52,38,101,.18); }
.mst-single-featured-image { height:auto; }
.mst-single-featured-placeholder { aspect-ratio:4/3; object-fit:cover; display:flex; flex-direction:column; align-items:center; justify-content:center; background:linear-gradient(145deg,#24145f,#6941d9); color:#fff; font-size:26px; font-weight:800; }
.mst-single-featured-placeholder small { margin-top:7px; font-size:12px; opacity:.7; text-transform:uppercase; letter-spacing:.12em; }
.mst-single-layout { display:grid; grid-template-columns:310px minmax(0,750px) 300px; justify-content:center; gap:40px; padding-top:150px; padding-bottom:90px; align-items:stretch; }
.mst-single-shell.mst-single-layout {
    margin-top: 50px;
}
.mst-single-content-wrap { min-width:0; }
.mst-sticky-card,.mst-single-cta { position:sticky; top:110px; }
.mst-sticky-card { padding:22px; border:1px solid #ebe8f0; border-radius:18px; background:#fff; box-shadow:0 14px 40px rgba(17,24,39,.06); }
.mst-sidebar-label { margin:0 0 14px; font-size:12px; font-weight:800; text-transform:uppercase; letter-spacing:.1em; }
.mst-single-toc ol { list-style:none; padding:0; margin:0; }
.mst-single-toc li { margin:0; }
.mst-single-toc li.is-sub a { padding-left:14px; font-size:12px; }
.mst-single-toc a { display:block; padding:8px 0; color:#626b7a; font-size:13px; line-height:1.35; text-decoration:none; border-bottom:1px solid #f1eff4; }
.mst-single-toc a:hover { color:var(--mst-single-purple); }
.mst-toc-empty { color:#9aa1ad; font-size:12px; }
.mst-share-block { margin-top:20px; padding-top:18px; border-top:1px solid #eeeaf2; }
.mst-share-block>span { display:block; margin-bottom:10px; color:#7f8794; font-size:11px; font-weight:700; text-transform:uppercase; }
.mst-share-links { display:flex; flex-wrap:wrap; gap:8px; }
.mst-share-links a,.mst-share-links button { width:36px; height:36px; padding:0; display:grid; place-items:center; border:1px solid #e7e2ef; border-radius:10px; background:#fff; color:#30244f; font-weight:800; text-decoration:none; cursor:pointer; transition:transform .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease; }
.mst-share-links a:hover,.mst-share-links button:hover { transform:translateY(-2px); border-color:#cfc3f4; color:#6847e8; box-shadow:0 8px 18px rgba(78,50,155,.12); }
.mst-share-links svg { width:17px; height:17px; display:block; fill:currentColor; stroke:currentColor; stroke-width:1.8; }
.mst-share-links button:first-child svg { fill:none; }
.mst-single-content { color:#303846; font-size:17px; line-height:1.82; }
.mst-single-content>*:first-child { margin-top:0; }
.mst-single-content h2 { margin:54px 0 18px; color:#111827; font-size:31px; line-height:1.25; letter-spacing:-.025em; scroll-margin-top:120px; }
.mst-single-content h3 { margin:34px 0 14px; color:#172033; font-size:23px; line-height:1.32; scroll-margin-top:120px; }
.mst-single-content p { margin:0 0 22px; }
.mst-single-content a { color:#6341e8; text-underline-offset:3px; }
.mst-single-content img { border-radius:18px; box-shadow:0 14px 40px rgba(17,24,39,.09); }
.mst-single-content blockquote { margin:38px 0; padding:26px 28px; border-left:4px solid var(--mst-single-purple); border-radius:0 16px 16px 0; background:#f7f4ff; color:#30264e; font-size:20px; font-weight:600; }
.mst-single-content ul,.mst-single-content ol { padding-left:25px; margin-bottom:24px; }
.mst-single-content li { margin-bottom:10px; }
.mst-single-content table { width:100%; border-collapse:separate; border-spacing:0; overflow:hidden; border:1px solid #e9e6ed; border-radius:14px; font-size:14px; }
.mst-single-content th,.mst-single-content td { padding:13px 15px; border-bottom:1px solid #ece9f0; text-align:left; }
.mst-single-content th { background:#f7f5fa; }
.mst-single-cta { padding:24px; border-radius:20px; background:linear-gradient(145deg,#20114f,#6d4aff); color:#fff; box-shadow:0 18px 40px rgba(74,45,170,.22); }
.mst-single-cta>span { color:#d9cfff; font-size:11px; font-weight:800; letter-spacing:.1em; text-transform:uppercase; }
.mst-single-cta h3 { margin:12px 0; color:#fff; font-size:23px; line-height:1.25; }
.mst-single-cta p { color:#ded8ef; font-size:14px; line-height:1.6; }
.mst-single-cta a { display:flex; justify-content:space-between; align-items:center; margin-top:18px; padding:12px 14px; border-radius:11px; background:#fff; color:#36207b; font-size:13px; font-weight:800; text-decoration:none; }
.mst-single-cta .mst-cta-subscribe-form { margin-top:18px; display:flex; flex-direction:column; gap:10px; }
.mst-single-cta .mst-cta-subscribe-input { width:100%; padding:12px 14px; border:1px solid rgba(255,255,255,.25); border-radius:11px; background:rgba(255,255,255,.08); color:#fff; font-size:13px; font-family:inherit; outline:none; transition:border-color .2s ease, background .2s ease; }
.mst-single-cta .mst-cta-subscribe-input::placeholder { color:#cdc3f0; }
.mst-single-cta .mst-cta-subscribe-input:focus { border-color:#fff; background:rgba(255,255,255,.14); }
.mst-single-cta button.mst-cta-subscribe-btn { display:flex; justify-content:space-between; align-items:center; width:100%; padding:12px 14px; border:0; border-radius:11px; background:#fff; color:#36207b; font-size:13px; font-weight:800; font-family:inherit; cursor:pointer; transition:transform .15s ease, box-shadow .15s ease; }
.mst-single-cta button.mst-cta-subscribe-btn:hover { transform:translateY(-1px); box-shadow:0 8px 18px rgba(0,0,0,.18); }
.mst-single-cta .mst-cta-subscribe-btn span { font-size:14px; }
.mst-author-box { display:flex; gap:18px; margin-top:56px; padding:28px; border-radius:20px; background:#faf8fc; border:1px solid #ede9f1; }
.mst-author-box-avatar { border-radius:50%; width:72px; height:72px; }
.mst-author-box span { color:#8a8492; font-size:11px; font-weight:800; text-transform:uppercase; letter-spacing:.08em; }
.mst-author-box h3 { margin:5px 0 8px; font-size:20px; }
.mst-author-box p { margin:0; color:#68707e; font-size:14px; line-height:1.6; }
.mst-related-section { padding:74px 0 88px; background:#faf7f2; border-top:1px solid #eee8df; }
.mst-related-heading { display:flex; justify-content:space-between; align-items:end; margin-bottom:30px; }
.mst-related-heading span { color:#7050d9; font-size:12px; font-weight:800; text-transform:uppercase; letter-spacing:.1em; }
.mst-related-heading h2 { margin:7px 0 0; font-size:36px; letter-spacing:-.03em; }
.mst-related-heading>a { color:#5136bc; font-weight:700; text-decoration:none; }
.mst-related-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; }
.mst-related-card { overflow:hidden; border:1px solid #ebe6df; border-radius:20px; background:#fff; transition:transform .25s ease, box-shadow .25s ease; }
.mst-related-card:hover { transform:translateY(-5px); box-shadow:0 20px 45px rgba(26,20,45,.1); }
.mst-related-thumb { display:block; aspect-ratio:16/10; overflow:hidden; background:#2d1d72; }
.mst-related-thumb img { width:100%; height:100%; object-fit:cover; transition:transform .4s ease; }
.mst-related-card:hover img { transform:scale(1.04); }
.mst-related-placeholder { display:grid; place-items:center; width:100%; height:100%; color:#fff; font-weight:800; }
.mst-related-card-body { padding:20px; }
.mst-related-card h3 { margin:12px 0 9px; font-size:20px; line-height:1.3; }
.mst-related-card h3 a { color:#161b28; text-decoration:none; }
.mst-related-card p { color:#707786; font-size:14px; line-height:1.55; }
.mst-related-meta { color:#8b92a0; font-size:12px; }
@media(max-width:1080px){.mst-single-layout{grid-template-columns:180px minmax(0,1fr)}.mst-single-cta-column{display:none}.mst-single-hero-grid{gap:42px}}
@media(max-width:800px){.mst-single-hero{padding:48px 0}.mst-single-hero-grid{grid-template-columns:1fr}.mst-single-hero-media{max-width:620px}.mst-single-layout{grid-template-columns:1fr;padding-top:64px}.mst-single-sidebar{display:none}.mst-related-grid{grid-template-columns:1fr 1fr}.mst-single-hero h1{font-size:clamp(36px,9vw,54px)}}
@media(max-width:560px){.mst-single-shell{width:min(100% - 28px,1180px)}.mst-single-hero{padding:34px 0 44px}.mst-single-hero-grid{gap:30px}.mst-single-deck{font-size:16px}.mst-single-content{font-size:16px}.mst-single-content h2{font-size:27px}.mst-related-grid{grid-template-columns:1fr}.mst-related-heading{align-items:flex-start;gap:16px;flex-direction:column}.mst-related-heading h2{font-size:30px}.mst-author-box{align-items:flex-start;padding:22px}.mst-author-box-avatar{width:56px;height:56px}}


/* ================================================================
   Premium single-post hardening — v2.0
   These rules reset common theme/Elementor constraints and ensure the
   plugin template remains full-width and consistently styled.
================================================================ */
body.mst-premium-single-active,
body.mst-premium-single-active #page,
body.mst-premium-single-active .site,
body.mst-premium-single-active .site-content,
body.mst-premium-single-active #content,
body.mst-premium-single-active .content-area,
body.mst-premium-single-active main#primary {
    width:100% !important;
    max-width:none !important;
    margin:0 !important;
    padding:0 !important;
}
body.mst-premium-single-active .site-main,
body.mst-premium-single-active .mst-single-page {
    width:100% !important;
    max-width:none !important;
}
body.mst-premium-single-active .mst-single-page *,
body.mst-premium-single-active .mst-single-page *::before,
body.mst-premium-single-active .mst-single-page *::after { box-sizing:border-box; }
body.mst-premium-single-active .mst-single-page { font-family:inherit; }
body.mst-premium-single-active .mst-single-article { margin:0 !important; padding:0 !important; width:100%; max-width:none; }
body.mst-premium-single-active .mst-single-hero h1,
body.mst-premium-single-active .mst-single-content h2,
body.mst-premium-single-active .mst-single-content h3,
body.mst-premium-single-active .mst-related-heading h2,
body.mst-premium-single-active .mst-related-card h3 { color:#111827 !important; }
body.mst-premium-single-active .mst-single-hero h1 { font-weight:800; }
body.mst-premium-single-active .mst-single-shell { width:min(1600px,calc(100% - 64px)) !important; max-width:1600px !important; margin-left:auto !important; margin-right:auto !important; padding:0 !important; }
body.mst-premium-single-active .mst-single-hero { margin:0 !important; }
body.mst-premium-single-active .mst-single-featured-image { margin:0 !important; }
body.mst-premium-single-active .mst-single-content img { max-width:100%; height:auto; display:block; margin:28px auto; }
body.mst-premium-single-active .mst-single-content figure { max-width:100%; margin:30px 0; }
body.mst-premium-single-active .mst-single-content figure img { margin:0; }
body.mst-premium-single-active .mst-single-content iframe,
body.mst-premium-single-active .mst-single-content video { max-width:100%; }
body.mst-premium-single-active .mst-related-thumb img { margin:0 !important; }
body.mst-premium-single-active .mst-related-card { margin:0 !important; }
body.mst-premium-single-active .mst-related-card-body p { margin:0 0 14px; }
body.mst-premium-single-active .mst-single-meta img,
body.mst-premium-single-active .mst-author-box img { margin:0 !important; }

@media (max-width:800px){
 body.mst-premium-single-active .mst-single-shell{width:min(100% - 32px,1600px)!important}
 body.mst-premium-single-active .mst-single-hero-grid{grid-template-columns:1fr!important}
 body.mst-premium-single-active .mst-single-layout{grid-template-columns:1fr!important}
}
@media (max-width:560px){
 body.mst-premium-single-active .mst-single-shell{width:min(100% - 24px,1600px)!important}
 body.mst-premium-single-active .mst-single-hero h1{font-size:34px!important;line-height:1.08!important}
}
