/* cms-blocks.css
 * Styles for ALL CMS block types, so DB-rendered pages look correct WITHOUT
 * depending on any page-specific CSS (about.css, home.css, etc.).
 * Loaded by Views/PageRender/Index.cshtml on every DB page.
 * Reuses the site's CSS variables (defined in Layout.css) for visual consistency.
 */

/* =====================================================================
   MODERN DESIGN TOKENS (brand navy #1b2a6f + derived tints/shades).
   Scoped names (--cms-*) so they never collide with other stylesheets.
   ===================================================================== */
:root {
    --cms-primary: #1b2a6f;
    --cms-primary-500: #2c40a3;
    --cms-primary-400: #4459c4;
    --cms-primary-dark: #141f52;
    --cms-primary-900: #0d1436;
    --cms-tint: #eef1fb;
    --cms-tint-2: #e2e7f7;
    --cms-accent: #ff8500;
    --cms-surface: #f4f6fc;
    --cms-card: #ffffff;
    --cms-text: #1f2430;
    --cms-muted: #6b7280;
    --cms-border: #e6e9f2;
    --cms-radius: 24px;
    --cms-radius-sm: 16px;
    --cms-pill: 9999px;
    --cms-shadow-soft: 0 10px 30px -6px rgba(27, 42, 111, 0.10);
    --cms-shadow-hover: 0 24px 55px -14px rgba(27, 42, 111, 0.32);
    --cms-dots: radial-gradient(circle, rgba(27,42,111,0.14) 1.4px, transparent 1.6px);
    --cms-font-head: var(--ma-font-heading, 'Plus Jakarta Sans', 'Inter', sans-serif);
}
@keyframes cmsFadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }

/* ---- PageHeader (modern navy gradient + pill breadcrumb) ---- */
.page_header_section {
    background-image: radial-gradient(120% 140% at 85% -20%, rgba(68,89,196,0.45), transparent 55%), linear-gradient(135deg, rgba(27,42,111,0.88) 0%, rgba(20,31,82,0.80) 55%, rgba(13,20,54,0.72) 100%), url(/assets/images/header-breadcrumb.jpg); background-color: #1b2a6f; background-position: center; background-size: cover; background-repeat: no-repeat;
    padding: 66px 0 58px;
    position: relative;
    overflow: hidden;
}
.page_header_section:before {
    content: "";
    position: absolute; inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.10) 1.3px, transparent 1.5px);
    background-size: 26px 26px;
    -webkit-mask-image: radial-gradient(circle at 80% 20%, #000, transparent 62%);
    mask-image: radial-gradient(circle at 80% 20%, #000, transparent 62%);
    opacity: 1;
    background-color: transparent;
}
.page_header_section h1 {
    font-family: var(--cms-font-head);
    font-size: var(--fs-h1);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
    position: relative; z-index: 1;
    margin-bottom: 14px;
}
.page_header_section .breadcrumb {
    background-color: transparent; margin: 0; position: relative; z-index: 1;
    padding: 8px 16px;
    display: inline-flex; flex-wrap: wrap; align-items: center; list-style: none;
    border-radius: var(--cms-pill);
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.18);
    backdrop-filter: blur(4px);
}
.page_header_section .breadcrumb li { margin-right: 8px; font-size: var(--fs-small); color: rgba(255,255,255,0.75); }
.page_header_section .breadcrumb li a { color: rgba(255,255,255,0.75); transition: color 0.2s ease; }
.page_header_section .breadcrumb li a:hover { color: #fff; text-decoration: none; }
.page_header_section .breadcrumb li span { color: rgba(255,255,255,0.45); }
.page_header_section .breadcrumb li strong { color: #fff; font-weight: 600; }

/* ---- TextWithImage (intro) ---- */
.pos_terminals_section { background-color: var(--cms-card); padding: var(--section-py) 0; position: relative; overflow: hidden; }
.pos_terminals_section .row { row-gap: 34px; }
.pos_terminals_section h2 {
    font-family: var(--cms-font-head);
    color: var(--cms-text); font-size: var(--fs-h2);
    font-weight: 800; letter-spacing: -0.01em; line-height: 1.15; margin-bottom: 18px;
}
.pos_terminals_section p { color: var(--cms-muted); font-size: var(--fs-body); line-height: 1.8; width: 100%; }
.pos_terminals_section img {
    border-radius: 40px 4px 40px 4px;
    filter: drop-shadow(0 26px 46px rgba(27, 42, 111, 0.20));
    max-width: 100%;
}

/* ---- IconGrid (values / floating cards) ---- */
.values_section { background-color: var(--cms-surface); padding: var(--section-py) 0; position: relative; overflow: hidden; }
.values_section::before {
    content: ""; position: absolute; right: -70px; top: 60px; width: 260px; height: 260px;
    background-image: var(--cms-dots); background-size: 22px 22px; opacity: 0.5; pointer-events: none;
}
.values_section .container { position: relative; z-index: 2; }
.values_section h2 {
    font-family: var(--cms-font-head);
    color: var(--cms-primary); font-size: var(--fs-h2);
    font-weight: 800; letter-spacing: -0.01em; margin-bottom: 40px; text-align: center;
}
.values_section .row { row-gap: 26px; }
.values_box {
    height: 100%;
    background: var(--cms-card);
    border: 1px solid var(--cms-border);
    border-radius: var(--cms-radius);
    padding: 32px 28px 30px;
    margin-bottom: 0;
    position: relative;
    box-shadow: var(--cms-shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    animation: cmsFadeUp 0.6s ease both;
}
.values_box:hover { transform: translateY(-8px); border-color: transparent; box-shadow: var(--cms-shadow-hover); }
.values_box i {
    position: static; display: block;
    height: 60px; width: 60px;
    background-size: 32px; background-position: center; background-repeat: no-repeat;
    border-radius: 16px; background-color: var(--cms-tint);
    box-shadow: inset 0 0 0 1px rgba(27, 42, 111, 0.06);
    margin-bottom: 20px; font-size: 0;
    transition: transform 0.3s ease, background-color 0.3s ease;
}
.values_box:hover i { transform: translateY(-3px) scale(1.06); background-color: var(--cms-tint-2); }
.values_box h3 { font-family: var(--cms-font-head); color: var(--cms-primary); font-size: var(--fs-h5); font-weight: 700; width: 100%; margin-bottom: 10px; }
.values_box p { color: var(--cms-muted); font-size: var(--fs-body); line-height: 1.65; width: 100%; margin-bottom: 0; }

/* ---- TwoColumnText (expert team / culture) — surface cards ---- */
.organization_expert_team_section { background-color: var(--cms-card); padding: var(--section-py) 0; }
.organization_expert_team_section .row { row-gap: 26px; }
.organization_expert_team_section > .container > .row > [class*="col-"] {
    position: relative;
    padding: 34px 40px;
}
.organization_expert_team_section > .container > .row > [class*="col-"]::before {
    content: ""; position: absolute; inset: 0 16px;
    background: var(--cms-surface); border: 1px solid var(--cms-border);
    border-radius: var(--cms-radius); z-index: 0;
}
.organization_expert_team_section > .container > .row > [class*="col-"] > * { position: relative; z-index: 1; }
.organization_expert_team_section h2 {
    font-family: var(--cms-font-head);
    color: var(--cms-primary); font-size: var(--fs-h3);
    font-weight: 800; letter-spacing: -0.01em; margin-bottom: 12px;
}
.organization_expert_team_section h6 { color: var(--cms-text); font-size: var(--fs-h6); font-weight: 600; width: 100%; margin-bottom: 16px; }
.organization_expert_team_section p { color: var(--cms-muted); font-size: var(--fs-body); line-height: 1.8; width: 100%; margin-bottom: 0; }

/* ---- CTABanner (rounded navy panel) ---- */
.any_project_section {
    background-image: none;
    background-color: var(--cms-card);
    padding: 20px 0 80px;
    position: relative; text-align: center;
}
.any_project_section:before { display: none; }
.any_project_section .container {
    position: relative; z-index: 2;
    background: linear-gradient(135deg, var(--cms-primary) 0%, var(--cms-primary-dark) 60%, var(--cms-primary-900) 100%);
    border-radius: var(--cms-radius);
    padding: 60px 24px;
    overflow: hidden;
    box-shadow: 0 30px 60px -24px rgba(13, 20, 54, 0.5);
}
.any_project_section .container::before {
    content: ""; position: absolute; inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.10) 1.4px, transparent 1.6px);
    background-size: 26px 26px;
    -webkit-mask-image: radial-gradient(circle at 82% 18%, #000, transparent 60%);
    mask-image: radial-gradient(circle at 82% 18%, #000, transparent 60%);
    pointer-events: none;
}
.any_project_section h2 {
    font-family: var(--cms-font-head);
    color: #fff; font-size: var(--fs-h2);
    font-weight: 800; letter-spacing: -0.01em; margin-bottom: 24px; position: relative; z-index: 3;
}
.any_project_section a {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 32px; border: none; color: var(--cms-primary);
    background: #fff; border-radius: var(--cms-pill);
    font-size: var(--fs-body); font-weight: 600; position: relative; z-index: 3;
    box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.5);
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}
.any_project_section a::after { content: "→"; transition: transform 0.25s ease; }
.any_project_section a:hover,
.any_project_section a:focus {
    background-color: var(--cms-accent); color: #fff; text-decoration: none;
    transform: translateY(-2px); box-shadow: 0 20px 38px -12px rgba(255, 133, 0, 0.5);
}
.any_project_section a:hover::after { transform: translateX(4px); }

/* ---- About / Our-Team responsive ---- */
@media only screen and (max-width: 767px) {
    .page_header_section { padding: 48px 0 40px; }
    .values_section::before { display: none; }
    .organization_expert_team_section > .container > .row > [class*="col-"] { padding: 28px 26px; }
    .organization_expert_team_section > .container > .row > [class*="col-"]::before { inset: 0; }
    .any_project_section .container { padding: 48px 20px; width: auto; margin: 0 10px; }
}

/* ---- RichText ---- */
.cms_richtext_section { background-color: var(--ma-body-bg); padding: var(--section-py) 0; }
.cms_richtext_section h2, .cms_richtext_section h3, .cms_richtext_section h4 { color: var(--ma-type-primary); margin-bottom: 12px; }
.cms_richtext_section p, .cms_richtext_section li { color: var(--ma-type-secondary); font-size: var(--ma-body-text); }
.cms_richtext_section ul, .cms_richtext_section ol { padding-left: 20px; }

/* ---- CustomHtml ---- */
.cms_customhtml_section { padding: 30px 0px; }

/* ---- Embed ---- */
.cms_embed_section { padding: 30px 0px; }
.cms_embed_section iframe { width: 100%; border: 0; display: block; }

/* ---- BlogList (blog index): toolbar + card grid + pager ---- */
.blog_list_section { background-color: var(--cms-surface); padding: var(--section-py) 0; }
.blog_list_section h2 {
    font-family: var(--cms-font-head); color: var(--cms-primary);
    font-size: var(--fs-h2); font-weight: 800; margin-bottom: 28px;
}
.blog_toolbar {
    display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    background: #fff; border: 1px solid var(--cms-border); border-radius: 16px;
    padding: 12px 12px 12px 22px; margin-bottom: 26px; box-shadow: var(--cms-shadow-soft);
}
.blog_count { margin: 0; color: var(--cms-muted); font-size: var(--fs-body); }
.blog_count strong { color: var(--cms-primary); font-family: var(--cms-font-head); font-size: var(--fs-lead); font-weight: 800; }
.blog_search { position: relative; margin: 0; flex: 0 1 320px; }
.blog_search::before {
    content: ""; position: absolute; left: 16px; top: 50%; width: 14px; height: 14px;
    transform: translateY(-60%); border: 2px solid var(--cms-muted); border-radius: 50%; pointer-events: none;
}
.blog_search::after {
    content: ""; position: absolute; left: 28px; top: 58%; width: 7px; height: 2px;
    background: var(--cms-muted); transform: rotate(45deg); border-radius: 2px; pointer-events: none;
}
.blog_search input {
    width: 100%; height: 46px; padding: 0 18px 0 44px;
    border: 1px solid var(--cms-border); border-radius: var(--cms-pill);
    background: var(--cms-surface); color: var(--cms-text); font-size: var(--fs-body);
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.blog_search input:focus {
    outline: none; background: #fff;
    border-color: rgba(27,42,111,0.35); box-shadow: 0 0 0 4px rgba(27,42,111,0.10);
}
.blog_grid { row-gap: 24px; }
.blog_grid [data-blog-item][hidden] { display: none !important; }
.blog_list_section .post_box {
    display: flex; flex-direction: column; height: 100%;
    background: #fff; border: 1px solid var(--cms-border); border-radius: 20px; overflow: hidden;
    box-shadow: var(--cms-shadow-soft); text-decoration: none;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.blog_list_section .post_box:hover,
.blog_list_section .post_box:focus-visible {
    transform: translateY(-6px); border-color: transparent; box-shadow: var(--cms-shadow-hover); text-decoration: none;
}
.post_box_media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--cms-tint); }
.post_box_media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s ease; }
.blog_list_section .post_box:hover .post_box_media img { transform: scale(1.05); }
.post_box_body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.post_box_body time {
    align-self: flex-start; font-size: var(--fs-caption); font-weight: 600; letter-spacing: .02em;
    color: var(--cms-primary); background: var(--cms-tint);
    padding: 4px 12px; border-radius: var(--cms-pill); margin-bottom: 12px;
}
.post_box_body h4 {
    font-family: var(--cms-font-head); color: var(--cms-text);
    font-size: var(--fs-h6); font-weight: 700; line-height: 1.45; margin: 0 0 16px;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.blog_list_section .post_box:hover h4 { color: var(--cms-primary); }
.post_box_more {
    margin-top: auto; display: inline-flex; align-items: center; gap: 6px;
    color: var(--cms-primary); font-size: var(--fs-small); font-weight: 700;
}
.post_box_more::after { content: "\2192"; transition: transform .25s ease; }
.blog_list_section .post_box:hover .post_box_more::after { transform: translateX(4px); }
.blog_empty {
    background: #fff; border: 1px dashed var(--cms-border); border-radius: 16px;
    padding: 32px; text-align: center; color: var(--cms-muted); margin: 0;
}
.blog_pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 34px; }
.blog_pager:empty { display: none; }
.blog_pager button {
    min-width: 42px; height: 42px; padding: 0 12px;
    border: 1px solid var(--cms-border); border-radius: 12px; background: #fff;
    color: var(--cms-text); font-weight: 600; font-size: var(--fs-small); cursor: pointer;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.blog_pager button:hover:not(:disabled) { background: var(--cms-tint); color: var(--cms-primary); border-color: rgba(27,42,111,0.2); }
.blog_pager button.is-active { background: var(--cms-primary); border-color: var(--cms-primary); color: #fff; }
.blog_pager button:disabled { opacity: .4; cursor: default; }
@media (max-width: 991px) {
    .blog_list_section aside { margin-top: 36px; }
}
@media (max-width: 575px) {
    .blog_toolbar { padding: 14px; }
    .blog_search { flex: 1 1 100%; }
}

/* Safe fallback if a page-level variable is missing */
.cms-page-content img { max-width: 100%; height: auto; }

/* ---- Team page (scoped) — Our-Team leadership grid: profile cards ---- */
.cms_team_section { background-color: var(--cms-surface); padding: var(--section-py) 0; position: relative; overflow: hidden; }
.cms_team_section::before {
    content: ""; position: absolute; left: -70px; top: 90px; width: 240px; height: 240px;
    background-image: var(--cms-dots); background-size: 22px 22px; opacity: 0.5; pointer-events: none;
}
.cms_team_section .container { max-width: 1140px; margin: 0 auto; position: relative; z-index: 2; }
.cms_team_section .row { row-gap: 28px; }
.cms_team_section h2.cms_team_title {
    font-family: var(--cms-font-head);
    color: var(--cms-primary); font-size: var(--fs-h2);
    margin-bottom: 44px; text-align: center; font-weight: 800; letter-spacing: -0.01em;
}
.cms_team_box {
    height: 100%;
    padding: 20px 20px 26px;
    margin-bottom: 0;
    text-align: center;
    position: relative;
    background: var(--cms-card);
    border: 1px solid var(--cms-border);
    border-radius: var(--cms-radius);
    box-shadow: var(--cms-shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    animation: cmsFadeUp 0.6s ease both;
    overflow: hidden;
}
.cms_team_box::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 96px;
    background: linear-gradient(135deg, var(--cms-tint) 0%, #dfe6fa 100%); z-index: 0;
}
.cms_team_box:hover { transform: translateY(-8px); border-color: transparent; box-shadow: var(--cms-shadow-hover); }
.cms_team_box img {
    position: relative; z-index: 1;
    border-radius: 18px; margin-bottom: 18px; margin-top: 26px;
    height: 230px; width: 100%; object-fit: cover;
    box-shadow: 0 18px 34px -16px rgba(27, 42, 111, 0.4);
    transition: transform 0.35s ease;
}
.cms_team_box:hover img { transform: scale(1.03); }
.cms_team_box h3 { font-family: var(--cms-font-head); color: var(--cms-primary); font-size: var(--fs-h5); text-align: center; font-weight: 800; margin: 0 0 4px; position: relative; z-index: 1; }
.cms_team_box p {
    color: var(--cms-muted); font-size: var(--fs-body); font-weight: 500;
    letter-spacing: 0.06em; text-transform: uppercase;
    text-align: center; margin: 0; position: relative; z-index: 1;
}

/* CEO message: spotlight card with badge title */
.cms_ceo_section { background-color: var(--cms-card); padding: var(--section-py) 0; }
.cms_ceo_section .container {
    max-width: 1140px; margin: 0 auto;
    background: var(--cms-surface); border: 1px solid var(--cms-border);
    border-radius: var(--cms-radius); padding: 44px; box-shadow: var(--cms-shadow-soft);
}
.cms_ceo_section .row { row-gap: 30px; }
.cms_ceo_section img {
    margin-bottom: 0; border-radius: 40px 4px 40px 4px;
    height: 380px; width: 100%; object-fit: contain;
    filter: drop-shadow(0 26px 46px rgba(27, 42, 111, 0.22));
}
.cms_ceo_banner {
    display: inline-block;
    background: linear-gradient(135deg, var(--cms-primary-500), var(--cms-primary));
    color: #fff; font-family: var(--cms-font-head);
    font-size: var(--fs-overline); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
    margin-bottom: 20px; padding: 10px 22px; border-radius: var(--cms-pill); text-align: left;
    box-shadow: 0 12px 24px -12px rgba(27, 42, 111, 0.6);
}
.cms_ceo_section h4 { font-family: var(--cms-font-head); color: var(--cms-text); font-weight: 800; font-size: var(--fs-h4); margin-bottom: 16px; }
.cms_ceo_section p { color: var(--cms-muted); font-size: var(--fs-body); line-height: 1.85; margin-bottom: 14px; }
.cms_ceo_section p:last-child { margin-bottom: 0; }
.cms_ceo_section p strong { color: var(--cms-primary); font-family: var(--cms-font-head); }

@media only screen and (max-width: 991px) {

    .cms_ceo_section .container { padding: 34px; }
}
@media only screen and (max-width: 767px) {
    .cms_team_section::before { display: none; }
    .cms_ceo_section img { height: 300px; }
    .cms_ceo_section .container { padding: 26px; }
}

/* ---- Sitemap (scoped) — used by the Sitemap RichText/CustomHtml block ---- */
.cms_sitemap { background-color: #fff; padding: var(--section-py) 0; }
.cms_sitemap .container { max-width: 1140px; margin: 0 auto; }
.cms_sitemap h2 { color: var(--ma-type-primary); font-size: var(--ma-page-title); margin: 20px 0 5px; font-weight: 700; }
.cms_sitemap h3 { color: var(--ma-type-secondary); font-size: var(--ma-pane-header); margin: 20px 0 10px; }
.cms_sitemap h3 a { color: var(--ma-type-primary); }
.cms_sitemap p { color: var(--ma-type-secondary); font-size: var(--ma-body-text); margin-bottom: 5px; }
.cms_sitemap a { color: var(--ma-type-secondary); text-decoration: none; }
.cms_sitemap a:hover { color: var(--ma-type-secondary); text-decoration: underline; }
.cms_sitemap hr { margin: 8px 0 16px; }

/* ---- Policy / Terms (scoped) — long-form legal pages ---- */
.cms_policy { background-color: var(--ma-body-bg); padding: var(--section-py) 0; }
.cms_policy .container { max-width: 1140px; margin: 0 auto; }
.cms_policy h2 { color: var(--ma-type-primary); font-size: var(--ma-page-title); font-weight: 700; margin-bottom: 12px; }
.cms_policy h3 { color: var(--ma-type-primary); font-size: var(--ma-pane-header); font-weight: 700; margin: 20px 0 10px; }
.cms_policy p { color: var(--ma-type-secondary); font-size: var(--ma-body-text); margin-bottom: 12px; }
.cms_policy p.list_name span, .cms_policy p.list_point span { font-weight: 700; margin-right: 6px; }
.cms_policy hr { margin: 16px 0; }
.cms_policy a { color: var(--ma-type-primary); }

/* ---- Product category (scoped) — used by product-category CustomHtml blocks ---- */
.cms_products_section { background-color: #fff; padding: var(--section-py) 0; }
.cms_products_section .container { max-width: 1140px; margin: 0 auto; }
.cms_products_section h4 { color: var(--ma-type-primary); font-size: var(--ma-pane-header); width: 100%; }
.cms_products_section img { max-height: 200px; }
.cms_products_section h2 { color: var(--ma-type-primary); font-size: var(--ma-page-title); margin-bottom: 10px; }
.cms_products_section h6 { color: var(--ma-type-secondary); font-size: var(--ma-header); width: 100%; margin-bottom: 20px; }
.cms_products_section p { color: var(--ma-type-secondary); font-size: var(--ma-body-text); width: 100%; }
.cms_products_section a { color: var(--ma-type-secondary); font-size: var(--ma-body-text); display: inline-block; text-decoration: underline; }
.cms_products_section a:hover { color: var(--ma-type-secondary); text-decoration: underline; }
.cms_products_section hr { margin: 20px 0; }

/* ---- Blog post (scoped) — used by the blog post template (_BlogPost.cshtml) ---- */
.cms_blog_section { background-color: #fff; padding: var(--section-py) 0; }
/* .cms_blog_section .container { max-width: 1140px; margin: 0 auto; } */
.cms_post_header { display: block; margin-bottom: 20px; }
.cms_post_header h2 { color: var(--ma-type-primary); font-size: var(--ma-page-title); margin-bottom: 10px; font-weight: 700; }
.cms_post_header .cms_post_meta { color: var(--ma-type-secondary); font-size: var(--ma-body-text); width: 100%; }
.cms_post_header img {
    display: block; width: 100%; height: auto; object-fit: cover;
    margin-top: 15px;
}

/* Post body — the article HTML lives in a CustomHtml block; style it like bloginner.css */
.cms_post_content { color: var(--ma-type-secondary); }
.cms_post_content .cms_customhtml_section { padding: 0; }
.cms_post_content p { color: var(--ma-type-secondary); font-size: var(--ma-body-text); width: 100%; margin-bottom: 12px; }
.cms_post_content h1 { color: var(--ma-type-primary); font-size: var(--ma-page-title); margin-bottom: 10px; }
.cms_post_content h4 { color: var(--ma-type-secondary); font-size: var(--ma-header); margin-bottom: 10px; }
.cms_post_content strong { color: var(--ma-type-primary); }
.cms_post_content hr { margin: 16px 0; }
.cms_post_content a { color: var(--ma-type-primary); text-decoration: underline; }
.cms_post_content a:hover { color: var(--ma-type-primary); text-decoration: underline; }

/* ---- Blog sidebar (.right_links) — Products / Solutions link cards ---- */
.right_links { display: flex; flex-direction: column; gap: 20px; }
@media (min-width: 992px) {
    .right_links { position: sticky; top: 100px; }
}
.right_links_card {
    background: #fff; border: 1px solid var(--cms-border); border-radius: 20px;
    padding: 22px; box-shadow: var(--cms-shadow-soft);
}
.right_links h2 {
    font-family: var(--cms-font-head); color: var(--cms-text);
    font-size: var(--fs-h5); font-weight: 800; margin: 0 0 14px; padding-bottom: 12px;
    border-bottom: 1px solid var(--cms-border); position: relative;
}
.right_links h2::after {
    content: ""; position: absolute; left: 0; bottom: -1px; width: 36px; height: 3px;
    border-radius: 3px; background: var(--cms-primary);
}
.right_links_group { display: flex; flex-direction: column; gap: 2px; }
.right_links_group + .right_links_group { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--cms-border); }
.right_links a {
    display: flex; align-items: center; justify-content: space-between;
    padding: 7px 10px; border-radius: 10px;
    color: var(--cms-muted); font-size: var(--fs-small); text-decoration: none;
    transition: background-color .2s ease, color .2s ease;
}
.right_links a::after {
    content: "\2192"; opacity: 0; transform: translateX(-4px);
    transition: opacity .2s ease, transform .2s ease; color: var(--cms-primary);
}
.right_links a:hover,
.right_links a:focus-visible { background: var(--cms-tint); color: var(--cms-primary); text-decoration: none; }
.right_links a:hover::after,
.right_links a:focus-visible::after { opacity: 1; transform: translateX(0); }
.right_links a.right_links_cat {
    padding-left: 10px; margin-bottom: 2px;
    font-family: var(--cms-font-head); font-size: var(--fs-overline); letter-spacing: .06em; text-transform: uppercase;
}
.right_links a.right_links_cat strong { color: var(--cms-primary); font-weight: 700; }
@media (max-width: 991px) {
    .right_links { flex-direction: row; flex-wrap: wrap; }
    .right_links_card { flex: 1 1 280px; }
}
