.im-article-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse 50% 70% at 85% 30%, rgba(224, 38, 31, .35), transparent 60%),
        radial-gradient(ellipse 40% 50% at 10% 100%, rgba(47, 91, 255, .35), transparent 60%),
        var(--navy);
    color: #fff;
}

.im-article-hero::before {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(90deg, transparent, #000 60%);
    content: "";
    pointer-events: none;
}

.im-home .im-article-hero__inner { position: relative; padding-block: 30px clamp(76px, 12vw, 170px); }
.im-article-hero__title { display: grid; justify-items: start; gap: 20px; max-width: 900px; margin-top: 42px; }
.im-home .im-article-category { padding: 6px 14px; border-radius: 999px; background: var(--yellow); color: var(--navy); font-size: 13px; font-weight: 800; }
.im-home .im-article-category:hover { background: #fff; }
.im-article-hero h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(32px, 4vw, 56px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.03em;
    overflow-wrap: anywhere;
}

.im-article-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; color: #e3e6f7; font-size: 14px; }
.im-article-meta > span { display: inline-flex; align-items: center; gap: 8px; }
.im-article-meta svg { width: 18px; height: 18px; color: var(--yellow); }

.im-article-content { padding: 56px 0 100px; }
.im-article-columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 300px); align-items: start; gap: 48px; }
.im-article-entry,
.im-article-prose { min-width: 0; }

.im-article-prose { color: #2a2f4f; font-size: 17px; line-height: 1.85; overflow-wrap: anywhere; }
.im-article-prose p { margin: 0 0 20px; }
.im-article-prose :is(strong, b) { color: var(--navy); }
.im-article-prose :is(h2, h3, h4, h5, h6)[id],
.im-article-page #form-post { scroll-margin-top: calc(var(--im-home-sticky-height, 88px) + var(--im-home-admin-offset, 0px) + 20px); }
.im-article-prose h2 {
    margin: 56px 0 18px;
    padding-left: 16px;
    border-left: 5px solid var(--red);
    color: var(--navy);
    font-size: clamp(24px, 2.4vw, 32px);
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -.01em;
}

.im-article-prose h3 { margin: 28px 0 10px; color: var(--navy); font-size: 20px; font-weight: 700; line-height: 1.4; }
.im-article-prose :is(ul, ol) { padding-left: 1.5em; }
.im-article-prose :is(figure, img, iframe, video) { max-width: 100%; }
.im-article-prose figure { margin-inline: 0; }
.im-article-prose img { height: auto; }
.im-article-prose figcaption { color: #565c7d; font-size: 14px; }
.im-home .im-article-prose a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.im-home .im-article-prose a:hover { color: var(--red); }
.im-article-prose :is(pre, .wp-block-table, .im-article-table-scroll) { max-width: 100%; overflow: auto; }
.im-article-prose table { width: 100%; border-collapse: collapse; margin-block: 20px; }
.im-article-prose :is(td, th) { padding: 10px 14px; border: 1px solid #e3e7f5; vertical-align: top; }
.im-article-prose th { background: var(--tint); }
.im-article-prose blockquote { margin: 24px 0; padding: 10px 20px; border-left: 4px solid var(--yellow); color: #474d6e; }
.im-article-prose :is(#ftwp-postcontent, .im-article-prose) > p:first-of-type,
.im-article-prose > p:first-of-type {
    padding: 4px 0 4px 20px;
    border-left: 4px solid var(--yellow);
    color: #474d6e;
    font-size: 19px;
    font-style: italic;
    line-height: 1.75;
}

.im-article-prose--side-toc :is(#ftwp-container-outer, #ftwp-container),
.im-article-prose #ftwp-trigger { display: none !important; }
.im-article-share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 28px; }
.im-article-share > span:first-child { color: #565c7d; font-size: 13px; font-weight: 600; }
.im-home .im-article-share__button {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid #e3e7f5;
    border-radius: 12px;
    background: #fff;
    color: var(--navy);
    cursor: pointer;
    transition: background .25s ease, color .25s ease, transform .25s ease;
}

.im-home .im-article-share__button:is(:hover, :focus-visible) { transform: translateY(-3px); background: var(--navy); color: #fff; }
.im-home .im-article-share__button--facebook:is(:hover, :focus-visible) { background: #1877f2; }
.im-home .im-article-share__button--linkedin:is(:hover, :focus-visible) { background: #0a66c2; }
.im-home .im-article-share__button--x:is(:hover, :focus-visible) { background: #111; }
.im-article-share__status { color: var(--navy); font-size: 13px; }
.im-article-share__url { width: 100%; padding: 8px; }

.im-article-sidebar { display: flex; min-width: 0; flex-direction: column; gap: 22px; }
.im-article-panel { padding: 24px; border: 1px solid #e3e7f5; border-radius: 22px; background: #fff; }
.im-article-panel__title,
.im-article-toc summary {
    width: fit-content;
    margin: 0 0 12px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--red);
    color: var(--navy);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.im-article-toc ol,
.im-article-latest { list-style: none; margin: 0; padding: 0; }
.im-article-sidebar li + li,
.im-article-toc li + li { border-top: 1px solid #e3e7f5; }
.im-home .im-article-toc a,
.im-home .im-article-latest a { display: block; padding: 10px 0; color: #2a2f4f; font-size: 14px; font-weight: 600; line-height: 1.5; }
.im-home .im-article-toc a:hover,
.im-home .im-article-latest a:hover { color: var(--red); }
.im-home .im-article-latest a { display: flex; align-items: center; gap: 12px; }
.im-article-latest img { width: 76px; height: 56px; flex: 0 0 auto; border-radius: 10px; object-fit: cover; }
.im-article-toc--mobile { display: none; }

.im-home .im-article-audit {
    display: flex;
    flex-direction: column;
    gap: 14px;
    border-color: var(--navy);
    background: radial-gradient(ellipse 70% 60% at 100% 0%, rgba(47, 91, 255, .45), transparent 60%), var(--navy);
    color: #fff;
}

.im-article-audit img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 16px; }
.im-article-audit strong { font-size: 20px; line-height: 1.3; }
.im-article-audit > span:not(.im-home-btn) { color: #c9cdf0; font-size: 14px; line-height: 1.6; }
.im-article-audit .im-home-btn { align-self: flex-start; }
.im-article-audit:is(:hover, :focus-visible) .im-home-arr { transform: translateX(5px); }

.im-article-inline-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 36px 0 10px;
    padding: 24px 28px;
    border-radius: 20px;
    background: var(--red);
    color: #fff;
}

.im-article-inline-cta strong { color: #fff; font-size: 19px; }
.im-article-inline-cta p { margin: 6px 0 0; color: #ffe9e7; font-size: 15px; line-height: 1.55; }
.im-home .im-article-inline-cta .im-home-btn { color: var(--navy); text-decoration: none; }

.im-article-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 28px; padding: 22px 0; border-block: 1px solid #e3e7f5; color: var(--navy); font-size: 14px; }
.im-home .im-article-tags a { padding: 6px 12px; border-radius: 999px; background: var(--tint); color: var(--navy); font-size: 13px; font-weight: 600; transition: background .25s ease, color .25s ease; }
.im-home .im-article-tags a:hover { background: var(--navy); color: #fff; }
.im-article-author { display: flex; align-items: center; gap: 20px; margin-top: 28px; padding: 24px; border-radius: 22px; background: var(--tint); }
.im-article-author img { border-radius: 50%; flex: 0 0 auto; }
.im-article-author > div { display: grid; gap: 6px; min-width: 0; }
.im-article-author span { color: var(--red); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.im-article-author strong { color: var(--navy); font-size: 18px; }
.im-article-author__bio { color: #474d6e; font-size: 14px; line-height: 1.65; overflow-wrap: anywhere; }
.im-article-author__bio p { margin: 0; }
.im-article-comments { margin-top: 28px; }
.im-home .im-article-protected { padding-block: 50px; }

.im-article-page .im-case-booking__form .form1 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr)); gap: 14px; }
.im-article-page .im-case-booking__form .form1 p { display: contents; }
.im-article-page .im-case-booking__form .form1 br { display: none; }
.im-article-page .im-case-booking__form label { display: grid; min-width: 0; gap: 8px; color: var(--navy); font-size: 14px; font-weight: 600; }
.im-article-page .im-case-booking__form label br { display: none; }
.im-article-page .im-case-booking__form :is(input:not([type=hidden]):not([type=submit]), textarea) {
    width: 100%;
    max-width: 100%;
    min-height: 52px;
    padding: 12px 16px;
    border: 1px solid #d5daf0;
    border-radius: 12px;
    background: #fff;
    color: #12163a;
    font: 400 15px 'Be Vietnam Pro', sans-serif;
}

.im-article-page .im-case-booking__form textarea { height: 96px; resize: vertical; }
.im-article-page .im-case-booking__form :is(input, textarea):focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.im-article-page .im-case-booking__form .buttom { position: relative; }
.im-article-page .im-case-booking__form input[type=submit] {
    width: 100%;
    min-height: 56px;
    border: 0;
    border-radius: 999px;
    background: var(--red);
    color: #fff;
    font: 700 16px 'Be Vietnam Pro', sans-serif;
    cursor: pointer;
    transition: background .25s ease;
}

.im-article-page .im-case-booking__form input[type=submit]:hover { background: var(--navy); }
.im-article-page .im-case-booking__form .wpcf7-spinner { position: absolute; inset: 16px auto auto 12px; margin: 0; }

.im-article-related { padding: 110px 0 120px; background: var(--tint); }
.im-article-related__heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 36px; }
.im-article-related__heading h2 { margin: 12px 0 0; color: var(--navy); font-size: clamp(28px, 3vw, 42px); }
.im-article-related__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 22px; }
.im-news-card--related { overflow: hidden; border: 1px solid #e3e7f5; border-radius: 20px; }
.im-news-card--related .im-news-card__title { -webkit-line-clamp: 3; }

@media (max-width: 980px) {
    .im-article-columns { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .im-article-toc--desktop { display: none; }
    .im-article-toc--mobile { display: block; margin-bottom: 28px; }
    .im-article-toc summary { width: auto; margin: 0; padding: 0; border: 0; cursor: pointer; }
    .im-article-toc[open] summary { margin-bottom: 10px; }
}

@media (max-width: 640px) {
    .im-home .im-article-hero__inner { padding-block: 26px 60px; }
    .im-article-hero__title { margin-top: 28px; }
    .im-article-content { padding-block: 34px 64px; }
    .im-article-prose { font-size: 16px; line-height: 1.75; }
    .im-article-prose h2 { margin-top: 36px; }
    .im-article-prose .im-article-table-scroll :is(td, th) { min-width: 120px; }
    .im-article-author { align-items: flex-start; flex-wrap: wrap; }
    .im-article-related { padding-block: 70px; }
}

@media (prefers-reduced-motion: reduce) {
    .im-home .im-article-share__button { transition: none; }
    .im-home .im-article-share__button:is(:hover, :focus-visible) { transform: none; }
}
