.mak-news-widget,
.mak-news-widget * {
    box-sizing: border-box;
}

.mak-news-widget {
    width: 100%;
    max-width: 100%;
    position: relative;
    isolation: isolate;
    font-family: var(--mak-body-font, Arial, Helvetica, sans-serif);
    font-size: var(--mak-body-size, 16px);
    font-weight: var(--mak-body-weight, 400);
    color: var(--mak-body-color, #1f2937);
    background: var(--mak-page-bg, #ffffff);
    overflow: visible;
}

.mak-news-widget--full {
    width: 100vw;
    max-width: 100vw;
    margin-inline: calc(50% - 50vw);
}

.mak-news-widget__canvas {
    width: 100%;
    min-width: 0;
    background: var(--mak-page-bg, #ffffff);
    overflow-x: clip;
}

.mak-news-theme {
    width: min(calc(100% - (var(--mak-page-pad, 28px) * 2)), var(--mak-content-max, 1480px));
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--mak-section-gap, 0px);
    font-family: var(--mak-body-font, Arial, Helvetica, sans-serif);
    color: var(--mak-body-color, #1f2937);
}

.mak-news-theme img,
.mak-news-theme svg {
    max-width: 100%;
}

.mak-news-theme img {
    display: block;
}

.mak-news-theme a {
    color: inherit;
    text-decoration: none;
}

.mak-news-theme h1,
.mak-news-theme h2,
.mak-news-theme h3,
.mak-news-theme h4,
.mak-news-theme p,
.mak-news-theme figure,
.mak-news-theme blockquote {
    margin-top: 0;
}

.mak-news-theme h1,
.mak-news-theme h2,
.mak-news-theme h3,
.mak-news-theme h4 {
    font-family: var(--mak-heading-font, Arial, Helvetica, sans-serif);
    font-weight: var(--mak-heading-weight, 700);
    color: var(--mak-section-heading-color, var(--mak-title-color, var(--mak-navy, #0d2b5c)));
    text-align: var(--mak-section-heading-align, var(--mak-global-heading-align, left));
}

.mak-news-section {
    min-width: 0;
    background: var(--mak-section-bg, transparent);
    padding: var(--mak-section-padding, 0);
    margin: var(--mak-section-margin, 0 0 10px 0);
    color: var(--mak-section-body-color, var(--mak-body-color, #1f2937));
    text-align: var(--mak-section-body-align, var(--mak-global-body-align, left));
}

.mak-news-section h2 {
    font-size: var(--mak-section-heading-size, var(--mak-section-title-size, 28px));
}

.mak-news-section p,
.mak-news-section li {
    font-size: var(--mak-section-body-size, var(--mak-body-size, 16px));
}

.mak-news-theme svg {
    width: 1.1em;
    height: 1.1em;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: 0 0 auto;
}

.mak-news-generic-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.mak-news-generic-grid > article {
    padding: 22px;
    background: var(--mak-card-bg, #ffffff);
    border: 1px solid var(--mak-card-border, #e6eaf0);
    border-radius: 12px;
}

.mak-news-generic-navigation {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    margin: var(--mak-section-margin, 0 0 10px 0);
}

.mak-news-generic-quote {
    width: 100%;
    margin: var(--mak-section-margin, 0 0 10px 0);
}

.mak-news-quote-card {
    width: 100%;
    position: relative;
    overflow: hidden;
    padding: var(--mak-quote-card-padding, 30px 34px);
    border: var(--mak-quote-border-width, 1px) solid var(--mak-quote-border-color, var(--mak-card-border, #e5e9ef));
    border-left: 5px solid var(--mak-quote-accent-color, var(--mak-accent, #ed1b24));
    border-radius: var(--mak-quote-radius, 14px);
    background: var(--mak-quote-card-bg, #f7f9fc);
    box-shadow: 0 12px 30px rgba(13, 43, 92, .08);
}

.mak-news-quote-card__title {
    margin: 0 0 10px;
    color: var(--mak-quote-title-color, var(--mak-section-heading-color, var(--mak-navy, #0d2b5c)));
    font-family: var(--mak-heading-font, Arial, Helvetica, sans-serif);
    font-size: var(--mak-quote-title-size, 26px);
    font-weight: var(--mak-quote-title-weight, var(--mak-heading-weight, 800));
    line-height: 1.25;
    text-align: var(--mak-quote-title-align, var(--mak-section-heading-align, left));
}

.mak-news-quote-card__text,
.mak-news-quote-card__text p {
    color: var(--mak-quote-text-color, var(--mak-section-body-color, var(--mak-body-color, #283548)));
    font-family: var(--mak-body-font, Arial, Helvetica, sans-serif);
    font-size: var(--mak-quote-text-size, var(--mak-section-body-size, var(--mak-body-size, 16px)));
    font-weight: var(--mak-quote-text-weight, var(--mak-body-weight, 400));
    line-height: 1.7;
    text-align: var(--mak-quote-text-align, var(--mak-section-body-align, left));
}

.mak-news-quote-card__text p {
    margin: 0 0 10px;
}

.mak-news-quote-card__text p:last-child {
    margin-bottom: 0;
}

.mak-news-hide-desktop { display: none !important; }

.mak-news-lightbox-open { overflow: hidden; }
.mak-news-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: grid;
    place-items: center;
    padding: 28px;
    background: rgba(3, 15, 39, .92);
}
.mak-news-lightbox img {
    max-width: min(92vw, 1500px);
    max-height: 90vh;
    object-fit: contain;
    border-radius: 10px;
}
.mak-news-lightbox__close {
    position: fixed;
    top: 18px;
    right: 22px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: #ffffff;
    color: #0d2b5c;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
}

@media (max-width: 1024px) {
    .mak-news-theme {
        width: min(calc(100% - (var(--mak-page-pad, 28px) * 2)), var(--mak-content-max, 1480px));
    }
    .mak-news-hide-desktop { display: block !important; }
    .mak-news-hide-tablet { display: none !important; }
}

@media (max-width: 767px) {
    .mak-news-theme {
        width: min(calc(100% - (var(--mak-page-pad, 18px) * 2)), var(--mak-content-max, 1480px));
    }
    .mak-news-hide-desktop,
    .mak-news-hide-tablet { display: block !important; }
    .mak-news-hide-mobile { display: none !important; }
    .mak-news-generic-grid { grid-template-columns: 1fr; }
}

.mak-news-related-card {
    color: inherit;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.mak-news-related-card[href]:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(13,43,92,.10);
}
.mak-news-related-card__body { min-width: 0; }
