/**
 * ATC Blog Engine — Article Styles v1.1
 *
 * Upload to:
 * /wp-content/plugins/atc-blog-engine/assets/css/article.css
 */

/* ---------------------------------------------------------
   DESIGN TOKENS
--------------------------------------------------------- */

:root {
    --atc-blue: #254CB4;
    --atc-blue-deep: #18357F;
    --atc-blue-soft: #EEF3FF;
    --atc-green: #3BB54A;
    --atc-lime: #8BC34A;

    --atc-ink: #172033;
    --atc-copy: #3F4A5D;
    --atc-muted: #697386;
    --atc-border: #E2E8F0;
    --atc-surface: #F7F9FC;
    --atc-white: #FFFFFF;

    --atc-radius-sm: 12px;
    --atc-radius-md: 18px;
    --atc-radius-lg: 28px;

    --atc-shadow-soft: 0 18px 55px rgba(24, 53, 127, 0.08);

    --atc-shell: 1280px;
    --atc-reading: 820px;
}


/* ---------------------------------------------------------
   PAGE RESET / BASE
--------------------------------------------------------- */

.atc-blog-main,
.atc-blog-main * {
    box-sizing: border-box;
}

.atc-blog-main {
    width: 100%;
    margin: 0;
    padding: 0;
    background: var(--atc-white);
    color: var(--atc-copy);
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.atc-article {
    margin: 0;
    padding: 0;
}

.atc-article img {
    max-width: 100%;
    height: auto;
}


/* ---------------------------------------------------------
   HERO
--------------------------------------------------------- */

.atc-article-hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.14), transparent 34%),
        radial-gradient(circle at 88% 10%, rgba(139, 195, 74, 0.16), transparent 30%),
        linear-gradient(135deg, var(--atc-blue-deep) 0%, var(--atc-blue) 58%, #2F5CCB 100%);
    color: var(--atc-white);
}

.atc-article-hero::after {
    content: "";
    position: absolute;
    width: 440px;
    height: 440px;
    right: -180px;
    bottom: -260px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    z-index: -1;
}

.atc-article-hero__inner {
    width: min(calc(100% - 40px), 1120px);
    margin: 0 auto;
    padding: 88px 0 92px;
    text-align: center;
}

.atc-article-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    margin: 0 0 22px;
    padding: 7px 14px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
    color: var(--atc-white);
    font-family: "Poppins", sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.atc-article-title {
    max-width: 1040px;
    margin: 0 auto;
    color: var(--atc-white);
    font-family: "Poppins", sans-serif;
    font-size: clamp(38px, 5.2vw, 70px);
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -0.035em;
    text-wrap: balance;
}

.atc-article-deck {
    max-width: 820px;
    margin: 26px auto 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(17px, 1.8vw, 20px);
    line-height: 1.65;
}

.atc-article-deck p {
    margin: 0;
    color: inherit;
    font: inherit;
}

.atc-article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 30px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
    line-height: 1.5;
}

.atc-article-meta__separator {
    opacity: 0.55;
}


/* ---------------------------------------------------------
   OUTER ARTICLE SHELL
--------------------------------------------------------- */

.atc-article-shell {
    width: min(calc(100% - 40px), var(--atc-shell));
    margin: 0 auto;
    padding: 54px 0 96px;
}


/* ---------------------------------------------------------
   FEATURED IMAGE
--------------------------------------------------------- */

.atc-featured-image {
    width: 100%;
    margin: 0 0 70px;
    overflow: hidden;
    border-radius: var(--atc-radius-lg);
    background: var(--atc-surface);
    box-shadow: var(--atc-shadow-soft);
}

.atc-featured-image__img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 8;
    object-fit: cover;
}


/* ---------------------------------------------------------
   TWO-COLUMN ARTICLE LAYOUT
--------------------------------------------------------- */

.atc-article-layout {
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(0, var(--atc-reading));
    justify-content: center;
    align-items: start;
    gap: clamp(44px, 5vw, 82px);
}


/* ---------------------------------------------------------
   STICKY TABLE OF CONTENTS
--------------------------------------------------------- */

.atc-toc {
    min-width: 0;
}

.atc-toc__inner {
    position: sticky;
    top: 112px;
    padding: 2px 0 0;
}

.atc-toc__eyebrow {
    margin-bottom: 8px;
    color: var(--atc-green);
    font-family: "Poppins", sans-serif;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.atc-toc__title {
    margin: 0 0 20px;
    color: var(--atc-ink);
    font-family: "Poppins", sans-serif;
    font-size: 25px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.atc-toc__nav {
    max-height: calc(100vh - 220px);
    overflow-y: auto;
    padding-right: 12px;
    scrollbar-width: thin;
    scrollbar-color: rgba(37, 76, 180, 0.24) transparent;
}

.atc-toc__nav::-webkit-scrollbar {
    width: 5px;
}

.atc-toc__nav::-webkit-scrollbar-track {
    background: transparent;
}

.atc-toc__nav::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(37, 76, 180, 0.22);
}

.atc-toc__list {
    display: grid;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.atc-toc__item {
    margin: 0;
    padding: 0;
}

.atc-toc__link {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 11px 0;
    border-bottom: 1px solid var(--atc-border);
    color: var(--atc-muted);
    text-decoration: none;
    transition:
        color 180ms ease,
        transform 180ms ease;
}

.atc-toc__link:hover,
.atc-toc__link:focus-visible {
    color: var(--atc-blue);
    transform: translateX(3px);
}

.atc-toc__link.is-active {
    color: var(--atc-blue);
}

.atc-toc__link.is-active .atc-toc__number {
    background: var(--atc-blue);
    color: var(--atc-white);
}

.atc-toc__link.is-active .atc-toc__text {
    font-weight: 700;
}

.atc-toc__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 24px;
    border-radius: 999px;
    background: var(--atc-blue-soft);
    color: var(--atc-blue);
    font-family: "Poppins", sans-serif;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    transition:
        background-color 180ms ease,
        color 180ms ease;
}

.atc-toc__text {
    min-width: 0;
    padding-top: 1px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
}


/* ---------------------------------------------------------
   ARTICLE TYPOGRAPHY
--------------------------------------------------------- */

.atc-article-content {
    min-width: 0;
    width: 100%;
    max-width: var(--atc-reading);
    color: var(--atc-copy);
    font-size: 18px;
    line-height: 1.78;
}

.atc-article-content > *:first-child {
    margin-top: 0;
}

.atc-article-content > *:last-child {
    margin-bottom: 0;
}

.atc-article-content p {
    margin: 0 0 25px;
    color: var(--atc-copy);
    font: inherit;
}

.atc-article-content h2,
.atc-article-content h3,
.atc-article-content h4 {
    color: var(--atc-ink);
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    letter-spacing: -0.025em;
    text-wrap: balance;
}

.atc-article-content h2 {
    position: relative;
    margin: 76px 0 24px;
    padding-top: 13px;
    font-size: clamp(30px, 3.3vw, 42px);
    line-height: 1.18;
    scroll-margin-top: 130px;
}

.atc-article-content h2::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 54px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--atc-green), var(--atc-lime));
}

.atc-article-content h3 {
    margin: 46px 0 18px;
    font-size: clamp(23px, 2.5vw, 29px);
    line-height: 1.28;
    scroll-margin-top: 130px;
}

.atc-article-content h4 {
    margin: 34px 0 14px;
    font-size: 21px;
    line-height: 1.35;
}

.atc-article-content strong,
.atc-article-content b {
    color: var(--atc-ink);
    font-weight: 700;
}

.atc-article-content a {
    color: var(--atc-blue);
    font-weight: 600;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color 160ms ease;
}

.atc-article-content a:hover,
.atc-article-content a:focus-visible {
    color: var(--atc-blue-deep);
}


/* ---------------------------------------------------------
   LISTS
--------------------------------------------------------- */

.atc-article-content ul,
.atc-article-content ol {
    margin: 0 0 28px;
    padding-left: 26px;
}

.atc-article-content li {
    margin: 9px 0;
    padding-left: 5px;
}

.atc-article-content li::marker {
    color: var(--atc-green);
    font-weight: 700;
}


/* ---------------------------------------------------------
   IMAGES + FIGURES
--------------------------------------------------------- */

.atc-article-content figure {
    margin: 42px 0;
}

.atc-article-content figure img,
.atc-article-content > img,
.atc-article-content p > img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--atc-radius-md);
}

.atc-article-content figcaption {
    margin-top: 10px;
    color: var(--atc-muted);
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
}


/* ---------------------------------------------------------
   BLOCKQUOTES
--------------------------------------------------------- */

.atc-article-content blockquote {
    position: relative;
    margin: 42px 0;
    padding: 28px 30px 28px 34px;
    border: 1px solid #DCE5FA;
    border-left: 5px solid var(--atc-blue);
    border-radius: 0 var(--atc-radius-md) var(--atc-radius-md) 0;
    background: var(--atc-blue-soft);
    color: var(--atc-ink);
}

.atc-article-content blockquote p:last-child {
    margin-bottom: 0;
}


/* ---------------------------------------------------------
   ATC CUSTOM CALLOUTS
--------------------------------------------------------- */

.atc-callout {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 18px;
    margin: 38px 0;
    padding: 24px 26px;
    border: 1px solid var(--atc-border);
    border-radius: var(--atc-radius-md);
    background: var(--atc-white);
}

.atc-callout__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    font-family: "Poppins", sans-serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
}

.atc-callout__title {
    margin: 0 0 7px;
    color: var(--atc-ink);
    font-family: "Poppins", sans-serif;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
}

.atc-callout__content {
    color: var(--atc-copy);
    font-size: 16px;
    line-height: 1.68;
}

.atc-callout__content p {
    margin: 0 0 12px;
    color: inherit;
    font: inherit;
}

.atc-callout__content p:last-child {
    margin-bottom: 0;
}

.atc-callout--quick {
    border-color: #CFE0FF;
    background: #F5F8FF;
}

.atc-callout--quick .atc-callout__icon {
    background: var(--atc-blue);
    color: var(--atc-white);
}

.atc-callout--tip {
    border-color: #D8EED9;
    background: #F5FBF5;
}

.atc-callout--tip .atc-callout__icon {
    background: #E6F6E7;
    color: #207B2B;
}

.atc-callout--warning {
    border-color: #F0DFC5;
    background: #FFF9EF;
}

.atc-callout--warning .atc-callout__icon {
    background: #F6E9CC;
    color: #8A5A00;
}

.atc-callout--local {
    border-color: #D9E6F7;
    background: #F7FAFF;
}

.atc-callout--local .atc-callout__icon {
    background: #E6EEFB;
    color: var(--atc-blue);
}

.atc-callout--note {
    background: var(--atc-surface);
}

.atc-callout--note .atc-callout__icon {
    background: #E9EDF3;
    color: var(--atc-muted);
}


/* ---------------------------------------------------------
   SERVICE CTA
--------------------------------------------------------- */

.atc-service-cta {
    position: relative;
    overflow: hidden;
    margin: 56px 0;
    padding: 42px;
    border-radius: 26px;
    background:
        radial-gradient(circle at 100% 0%, rgba(139, 195, 74, 0.18), transparent 34%),
        linear-gradient(135deg, var(--atc-blue-deep), var(--atc-blue));
    color: var(--atc-white);
}

.atc-service-cta__eyebrow {
    margin-bottom: 10px;
    color: #DFF1CC;
    font-family: "Poppins", sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.atc-service-cta__title {
    margin: 0 0 14px !important;
    padding: 0 !important;
    color: var(--atc-white) !important;
    font-size: clamp(27px, 3.2vw, 38px) !important;
    line-height: 1.16 !important;
}

.atc-service-cta__title::before {
    display: none !important;
}

.atc-service-cta__text {
    max-width: 650px;
    margin: 0 0 24px !important;
    color: rgba(255, 255, 255, 0.86) !important;
    font-size: 16px !important;
    line-height: 1.65 !important;
}

.atc-service-cta__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 13px 22px;
    border-radius: 999px;
    background: var(--atc-green);
    color: var(--atc-white) !important;
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition:
        transform 180ms ease,
        background-color 180ms ease;
}

.atc-service-cta__button:hover,
.atc-service-cta__button:focus-visible {
    background: #2FA23D;
    color: var(--atc-white) !important;
    transform: translateY(-1px);
}


/* ---------------------------------------------------------
   TABLES
--------------------------------------------------------- */

.atc-article-content .wp-block-table {
    width: 100%;
    margin: 42px 0;
    overflow-x: auto;
    border: 1px solid var(--atc-border);
    border-radius: var(--atc-radius-md);
    background: var(--atc-white);
    box-shadow: 0 10px 35px rgba(24, 53, 127, 0.05);
    -webkit-overflow-scrolling: touch;
}

.atc-article-content table {
    width: 100%;
    min-width: 620px;
    margin: 0;
    border: 0;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--atc-white);
    font-size: 15px;
    line-height: 1.55;
}

.atc-article-content table th,
.atc-article-content table td {
    padding: 16px 18px;
    border: 0;
    border-right: 1px solid var(--atc-border);
    border-bottom: 1px solid var(--atc-border);
    text-align: left;
    vertical-align: top;
}

.atc-article-content table th:last-child,
.atc-article-content table td:last-child {
    border-right: 0;
}

.atc-article-content table tr:last-child td {
    border-bottom: 0;
}

.atc-article-content table thead th {
    background: var(--atc-blue);
    color: var(--atc-white);
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    font-weight: 700;
}

.atc-article-content table tbody tr:nth-child(even) {
    background: #FAFBFD;
}


/* ---------------------------------------------------------
   GUTENBERG BUTTONS
--------------------------------------------------------- */

.atc-article-content .wp-block-button {
    margin: 30px 0;
}

.atc-article-content .wp-block-button__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 13px 22px;
    border-radius: 999px;
    background: var(--atc-blue);
    color: var(--atc-white);
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    transition:
        background-color 180ms ease,
        transform 180ms ease;
}

.atc-article-content .wp-block-button__link:hover,
.atc-article-content .wp-block-button__link:focus-visible {
    background: var(--atc-blue-deep);
    color: var(--atc-white);
    transform: translateY(-1px);
}


/* ---------------------------------------------------------
   SEPARATORS
--------------------------------------------------------- */

.atc-article-content hr,
.atc-article-content .wp-block-separator {
    width: 100%;
    margin: 52px 0;
    border: 0;
    border-top: 1px solid var(--atc-border);
}


/* ---------------------------------------------------------
   EMBEDS
--------------------------------------------------------- */

.atc-article-content iframe,
.atc-article-content video {
    max-width: 100%;
    border-radius: var(--atc-radius-md);
}


/* ---------------------------------------------------------
   ACCESSIBILITY
--------------------------------------------------------- */

.atc-blog-main a:focus-visible {
    outline: 3px solid rgba(59, 181, 74, 0.35);
    outline-offset: 3px;
}


/* ---------------------------------------------------------
   TABLET
--------------------------------------------------------- */

@media (max-width: 1024px) {

    .atc-article-hero__inner {
        padding: 72px 0 76px;
    }

    .atc-article-shell {
        padding-top: 44px;
    }

    .atc-featured-image {
        margin-bottom: 54px;
    }

    .atc-article-layout {
        grid-template-columns: 220px minmax(0, 1fr);
        gap: 42px;
    }

    .atc-toc__inner {
        top: 90px;
    }

    .atc-article-content {
        font-size: 17px;
    }
}


/* ---------------------------------------------------------
   MOBILE / SMALL TABLET
--------------------------------------------------------- */

@media (max-width: 820px) {

    .atc-article-hero__inner {
        width: min(calc(100% - 30px), 700px);
        padding: 58px 0 62px;
    }

    .atc-article-title {
        font-size: clamp(34px, 9vw, 52px);
        line-height: 1.08;
    }

    .atc-article-deck {
        margin-top: 20px;
        font-size: 17px;
        line-height: 1.62;
    }

    .atc-article-meta {
        margin-top: 24px;
        font-size: 13px;
    }

    .atc-article-shell {
        width: min(calc(100% - 30px), 760px);
        padding: 34px 0 72px;
    }

    .atc-featured-image {
        margin-bottom: 34px;
        border-radius: 20px;
    }

    .atc-featured-image__img {
        aspect-ratio: 16 / 10;
    }

    .atc-article-layout {
        display: block;
    }

    .atc-toc {
        margin-bottom: 46px;
    }

    .atc-toc__inner {
        position: static;
        padding: 24px;
        border: 1px solid var(--atc-border);
        border-radius: var(--atc-radius-md);
        background: var(--atc-surface);
    }

    .atc-toc__title {
        margin-bottom: 14px;
        font-size: 23px;
    }

    .atc-toc__nav {
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }

    .atc-toc__link {
        grid-template-columns: 32px minmax(0, 1fr);
        padding: 10px 0;
    }

    .atc-toc__text {
        font-size: 14px;
    }

    .atc-article-content {
        max-width: none;
        font-size: 17px;
        line-height: 1.72;
    }

    .atc-article-content h2 {
        margin-top: 58px;
        scroll-margin-top: 95px;
    }

    .atc-article-content h3 {
        margin-top: 38px;
        scroll-margin-top: 95px;
    }

    .atc-service-cta {
        padding: 32px 28px;
    }
}


/* ---------------------------------------------------------
   SMALL PHONES
--------------------------------------------------------- */

@media (max-width: 520px) {

    .atc-article-hero__inner {
        width: min(calc(100% - 24px), 480px);
        padding: 48px 0 52px;
    }

    .atc-article-kicker {
        margin-bottom: 17px;
        padding: 6px 11px;
        font-size: 10px;
    }

    .atc-article-title {
        font-size: clamp(31px, 10.2vw, 43px);
    }

    .atc-article-deck {
        font-size: 16px;
    }

    .atc-article-meta {
        gap: 6px;
        font-size: 12px;
    }

    .atc-article-shell {
        width: min(calc(100% - 24px), 480px);
        padding-top: 24px;
    }

    .atc-featured-image {
        margin-bottom: 28px;
        border-radius: 16px;
    }

    .atc-toc {
        margin-bottom: 38px;
    }

    .atc-toc__inner {
        padding: 20px;
    }

    .atc-article-content {
        font-size: 16.5px;
    }

    .atc-article-content h2 {
        margin-top: 52px;
        font-size: 30px;
    }

    .atc-article-content h3 {
        margin-top: 34px;
        font-size: 23px;
    }

    .atc-article-content blockquote {
        margin: 34px 0;
        padding: 22px 22px 22px 24px;
    }

    .atc-article-content figure,
    .atc-article-content .wp-block-table {
        margin: 34px 0;
    }

    .atc-callout {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 14px;
        padding: 20px;
    }

    .atc-callout__icon {
        width: 42px;
        height: 42px;
        border-radius: 12px;
        font-size: 18px;
    }

    .atc-service-cta {
        margin: 44px 0;
        padding: 28px 22px;
        border-radius: 20px;
    }
}


/* ---------------------------------------------------------
   REDUCED MOTION
--------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {

    .atc-toc__link,
    .atc-toc__number,
    .atc-article-content a,
    .atc-article-content .wp-block-button__link,
    .atc-service-cta__button {
        transition: none;
    }
}

/* ---------------------------------------------------------
   RELATED ARTICLES
--------------------------------------------------------- */

.atc-related {
    margin-top: 94px;
    padding-top: 72px;
    border-top: 1px solid var(--atc-border);
}

.atc-related__heading {
    max-width: 760px;
    margin: 0 auto 38px;
    text-align: center;
}

.atc-related__eyebrow {
    margin-bottom: 9px;
    color: var(--atc-green);
    font-family: "Poppins", sans-serif;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.atc-related__title {
    margin: 0;
    color: var(--atc-ink);
    font-family: "Poppins", sans-serif;
    font-size: clamp(30px, 3.6vw, 44px);
    font-weight: 700;
    line-height: 1.14;
    letter-spacing: -0.03em;
    text-wrap: balance;
}

.atc-related__intro {
    max-width: 620px;
    margin: 14px auto 0;
    color: var(--atc-muted);
    font-size: 16px;
    line-height: 1.65;
}

.atc-related__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.atc-related-card {
    display: flex;
    min-width: 0;
    height: 100%;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--atc-border);
    border-radius: 20px;
    background: var(--atc-white);
    box-shadow: 0 14px 42px rgba(24, 53, 127, 0.06);
    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        border-color 180ms ease;
}

@media (hover: hover) and (pointer: fine) {

    .atc-related-card:hover {
        transform: translateY(-4px);
        border-color: #D2DCF0;
        box-shadow: 0 20px 52px rgba(24, 53, 127, 0.10);
    }
}

.atc-related-card__image-link {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--atc-surface);
    text-decoration: none;
}

.atc-related-card__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 300ms ease;
}

@media (hover: hover) and (pointer: fine) {

    .atc-related-card:hover .atc-related-card__image {
        transform: scale(1.035);
    }
}

.atc-related-card__placeholder {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 80% 15%, rgba(139, 195, 74, 0.24), transparent 30%),
        linear-gradient(135deg, var(--atc-blue-deep), var(--atc-blue));
}

.atc-related-card__placeholder span {
    color: rgba(255, 255, 255, 0.94);
    font-family: "Poppins", sans-serif;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.04em;
}

.atc-related-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 22px;
}

.atc-related-card__label {
    margin-bottom: 9px;
    color: var(--atc-green);
    font-family: "Poppins", sans-serif;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.10em;
    text-transform: uppercase;
}

.atc-related-card__title {
    margin: 0;
    color: var(--atc-ink);
    font-family: "Poppins", sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.28;
    letter-spacing: -0.02em;
}

.atc-related-card__title a {
    color: inherit;
    text-decoration: none;
}

.atc-related-card__title a:hover,
.atc-related-card__title a:focus-visible {
    color: var(--atc-blue);
}

.atc-related-card__excerpt {
    margin: 12px 0 18px;
    color: var(--atc-muted);
    font-size: 14px;
    line-height: 1.65;
}

.atc-related-card__more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    margin-top: auto;
    color: var(--atc-blue);
    font-family: "Poppins", sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
}

.atc-related-card__more span {
    display: inline-block;
    transition: transform 180ms ease;
}

.atc-related-card__more:hover span,
.atc-related-card__more:focus-visible span {
    transform: translateX(3px);
}


/* ---------------------------------------------------------
   RELATED ARTICLES — RESPONSIVE
--------------------------------------------------------- */

@media (max-width: 1024px) {

    .atc-related {
        margin-top: 78px;
        padding-top: 60px;
    }

    .atc-related__grid {
        gap: 18px;
    }

    .atc-related-card__body {
        padding: 19px;
    }

    .atc-related-card__title {
        font-size: 18px;
    }
}

@media (max-width: 820px) {

    .atc-related {
        margin-top: 64px;
        padding-top: 50px;
    }

    .atc-related__heading {
        margin-bottom: 30px;
    }

    .atc-related__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .atc-related-card {
        display: grid;
        grid-template-columns: minmax(170px, 38%) minmax(0, 1fr);
        align-items: stretch;
    }

    .atc-related-card__image-link {
        height: 100%;
        aspect-ratio: auto;
        min-height: 200px;
    }

    .atc-related-card__body {
        padding: 22px;
    }
}

@media (max-width: 560px) {

    .atc-related {
        margin-top: 54px;
        padding-top: 42px;
    }

    .atc-related__heading {
        margin-bottom: 26px;
        text-align: left;
    }

    .atc-related__intro {
        margin-left: 0;
        margin-right: 0;
    }

    .atc-related-card {
        display: flex;
    }

    .atc-related-card__image-link {
        min-height: 0;
        aspect-ratio: 16 / 9;
    }

    .atc-related-card__body {
        padding: 20px;
    }

    .atc-related-card__title {
        font-size: 19px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .atc-related-card,
    .atc-related-card__image,
    .atc-related-card__more span {
        transition: none;
    }
}

/* ---------------------------------------------------------
   AUTHOR / EXPERT BOX
--------------------------------------------------------- */

.atc-author-box {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 24px;
    align-items: center;
    margin: 54px 0 0;
    padding: 28px;
    border: 1px solid var(--atc-border);
    border-radius: 22px;
    background:
        linear-gradient(180deg, #FFFFFF 0%, #FAFCFF 100%);
    box-shadow: 0 12px 36px rgba(24, 53, 127, 0.05);
}

.atc-author-box__media {
    width: 96px;
    height: 96px;
}

.atc-author-box__avatar {
    display: block;
    width: 96px;
    height: 96px;
    border: 4px solid var(--atc-white);
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 8px 24px rgba(24, 53, 127, 0.12);
}

.atc-author-box__content {
    min-width: 0;
}

.atc-author-box__eyebrow {
    margin-bottom: 5px;
    color: var(--atc-green);
    font-family: "Poppins", sans-serif;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.atc-author-box__name {
    margin: 0 0 8px !important;
    padding: 0 !important;
    color: var(--atc-ink) !important;
    font-family: "Poppins", sans-serif;
    font-size: 23px !important;
    font-weight: 700;
    line-height: 1.25 !important;
    letter-spacing: -0.02em;
}

.atc-author-box__name::before {
    display: none !important;
}

.atc-author-box__bio {
    margin: 0 !important;
    color: var(--atc-muted) !important;
    font-size: 15px !important;
    line-height: 1.65 !important;
}

.atc-author-box__link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 13px;
    color: var(--atc-blue) !important;
    font-family: "Poppins", sans-serif;
    font-size: 13px;
    font-weight: 700 !important;
    line-height: 1.3;
    text-decoration: none !important;
}

.atc-author-box__link span {
    display: inline-block;
    transition: transform 180ms ease;
}

.atc-author-box__link:hover span,
.atc-author-box__link:focus-visible span {
    transform: translateX(3px);
}


/* ---------------------------------------------------------
   AUTHOR BOX — RESPONSIVE
--------------------------------------------------------- */

@media (max-width: 620px) {

    .atc-author-box {
        grid-template-columns: 72px minmax(0, 1fr);
        gap: 18px;
        margin-top: 44px;
        padding: 22px;
        border-radius: 18px;
    }

    .atc-author-box__media,
    .atc-author-box__avatar {
        width: 72px;
        height: 72px;
    }

    .atc-author-box__name {
        font-size: 20px !important;
    }

    .atc-author-box__bio {
        font-size: 14px !important;
    }
}

@media (max-width: 430px) {

    .atc-author-box {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .atc-author-box__media {
        width: 68px;
        height: 68px;
    }

    .atc-author-box__avatar {
        width: 68px;
        height: 68px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .atc-author-box__link span {
        transition: none;
    }
}

/* ---------------------------------------------------------
   FAQ ACCORDION
--------------------------------------------------------- */

.atc-faq {
    margin: 64px 0 12px;
}

.atc-faq__header {
    margin-bottom: 24px;
}

.atc-faq__eyebrow {
    margin-bottom: 8px;
    color: var(--atc-green);
    font-family: "Poppins", sans-serif;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.atc-faq__title {
    margin: 0 !important;
    padding: 0 !important;
    color: var(--atc-ink) !important;
    font-family: "Poppins", sans-serif;
    font-size: clamp(30px, 3.4vw, 40px) !important;
    font-weight: 700;
    line-height: 1.18 !important;
    letter-spacing: -0.025em;
}

.atc-faq__title::before {
    display: none !important;
}

.atc-faq__intro {
    max-width: 680px;
    margin: 12px 0 0 !important;
    color: var(--atc-muted) !important;
    font-size: 16px !important;
    line-height: 1.65 !important;
}

.atc-faq__list {
    display: grid;
    gap: 12px;
}

.atc-faq__item {
    overflow: hidden;
    border: 1px solid var(--atc-border);
    border-radius: 16px;
    background: var(--atc-white);
    transition:
        border-color 180ms ease,
        box-shadow 180ms ease,
        background-color 180ms ease;
}

.atc-faq__item[open] {
    border-color: #CCD8F3;
    background: #FBFCFF;
    box-shadow: 0 10px 28px rgba(24, 53, 127, 0.06);
}

.atc-faq__question {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 32px;
    gap: 18px;
    align-items: center;
    min-height: 68px;
    padding: 18px 20px;
    color: var(--atc-ink);
    font-family: "Poppins", sans-serif;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.atc-faq__question::-webkit-details-marker {
    display: none;
}

.atc-faq__question::marker {
    display: none;
    content: "";
}

.atc-faq__question:hover {
    color: var(--atc-blue);
}

.atc-faq__question:focus-visible {
    outline: 3px solid rgba(59, 181, 74, 0.28);
    outline-offset: -3px;
}

.atc-faq__question-text {
    min-width: 0;
}

.atc-faq__icon {
    position: relative;
    display: inline-flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--atc-blue-soft);
}

.atc-faq__icon::before,
.atc-faq__icon::after {
    content: "";
    position: absolute;
    width: 12px;
    height: 2px;
    border-radius: 999px;
    background: var(--atc-blue);
    transition: transform 180ms ease;
}

.atc-faq__icon::after {
    transform: rotate(90deg);
}

.atc-faq__item[open] .atc-faq__icon::after {
    transform: rotate(0deg);
}

.atc-faq__answer {
    padding: 0 20px 20px;
    color: var(--atc-copy);
    font-size: 16px;
    line-height: 1.7;
}

.atc-faq__answer p {
    margin: 0 0 14px;
    color: inherit;
    font: inherit;
}

.atc-faq__answer p:last-child {
    margin-bottom: 0;
}

.atc-faq__answer ul,
.atc-faq__answer ol {
    margin-bottom: 14px;
}


/* ---------------------------------------------------------
   FAQ — RESPONSIVE
--------------------------------------------------------- */

@media (max-width: 620px) {

    .atc-faq {
        margin-top: 52px;
    }

    .atc-faq__question {
        grid-template-columns: minmax(0, 1fr) 30px;
        gap: 14px;
        min-height: 62px;
        padding: 16px 17px;
        font-size: 16px;
    }

    .atc-faq__icon {
        width: 30px;
        height: 30px;
    }

    .atc-faq__answer {
        padding: 0 17px 18px;
        font-size: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .atc-faq__item,
    .atc-faq__icon::before,
    .atc-faq__icon::after {
        transition: none;
    }
}

/* =========================================================
   ATC BLOG V2 — REFINEMENTS v1.5
   Sticky TOC + calmer related cards + wider related section
========================================================= */


/* ---------------------------------------------------------
   1. KEEP "ON THIS PAGE" STICKY WHILE READING
--------------------------------------------------------- */

/*
 * Some themes/page-builder wrappers can interfere with sticky
 * positioning when they introduce overflow or stretching.
 * These rules make the article column safe for sticky behavior.
 */
.atc-article-shell,
.atc-article-layout {
    overflow: visible !important;
}

.atc-article-layout {
    align-items: stretch;
}

.atc-toc {
    position: relative;
    align-self: stretch;
    min-width: 0;
}

.atc-toc__inner {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 132px !important;
    z-index: 4;
    height: fit-content;
}

/*
 * The TOC can be taller than a laptop viewport on long articles.
 * Keep the navigation itself scrollable without losing the heading.
 */
.atc-toc__nav {
    max-height: calc(100vh - 245px);
}


/* ---------------------------------------------------------
   2. RELATED POST TITLES — SMALLER + LESS DISTRACTING
--------------------------------------------------------- */

.atc-related-card__title {
    margin: 0 !important;
    font-size: 18px !important;
    line-height: 1.34 !important;
    letter-spacing: -0.015em !important;
    font-weight: 700 !important;
}

.atc-related-card__title a {
    display: -webkit-box;
    overflow: hidden;
    color: var(--atc-ink) !important;
    font-size: inherit !important;
    line-height: inherit !important;
    font-weight: inherit !important;
    text-decoration: none !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    line-clamp: 4;
}

.atc-related-card__title a:hover,
.atc-related-card__title a:focus-visible {
    color: var(--atc-blue) !important;
}

.atc-related-card__excerpt {
    margin-top: 11px;
    font-size: 13.5px;
    line-height: 1.6;
}


/* ---------------------------------------------------------
   3. WIDEN RELATED GUIDES TO MATCH SITE-WIDE CTA WIDTH
--------------------------------------------------------- */

/*
 * The reading shell stays intentionally narrower, while this section
 * breaks out to the same wide visual rhythm as the site CTA/footer.
 */
.atc-related {
    position: relative;
    left: 50%;
    width: min(1510px, calc(100vw - 64px));
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    transform: translateX(-50%);
}

.atc-related__grid {
    width: 100%;
}


/* ---------------------------------------------------------
   RESPONSIVE REFINEMENTS
--------------------------------------------------------- */

@media (max-width: 1200px) {

    .atc-related {
        width: min(100%, calc(100vw - 48px));
    }

    .atc-related-card__title {
        font-size: 17px !important;
    }
}

@media (max-width: 820px) {

    .atc-toc__inner {
        position: static !important;
        top: auto !important;
    }

    .atc-related {
        left: auto;
        width: 100%;
        transform: none;
    }

    .atc-related-card__title {
        font-size: 18px !important;
    }
}

@media (max-width: 560px) {

    .atc-related-card__title {
        font-size: 17px !important;
        line-height: 1.36 !important;
    }
}

/* =========================================================
   ATC BLOG V2 — PRODUCTION REFINEMENTS v1.6
   Full featured image + blue H3 hierarchy
========================================================= */

/* Show the complete featured image with no forced crop or max height. */
.atc-featured-image__img {
    display: block;
    width: 100%;
    height: auto !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
}

/* Make H3s clearly distinguishable from H2/body copy. */
.atc-article-content h3 {
    color: var(--atc-blue) !important;
}

/* =========================================================
   ATC BLOG V2 — MOBILE HORIZONTAL PADDING
   23px on both sides
========================================================= */

@media (max-width: 820px) {

    .atc-article-hero__inner,
    .atc-article-shell {
        width: calc(100% - 46px) !important;
        max-width: none !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

@media (max-width: 520px) {

    .atc-article-hero__inner,
    .atc-article-shell {
        width: calc(100% - 46px) !important;
        max-width: none !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

/* =========================================================
   ATC BLOG V2 — STRONGER TIP BOXES + FAQS
========================================================= */

/* ---------------------------------------------------------
   TIP / CALLOUT BOXES — MORE PROMINENT
--------------------------------------------------------- */

.atc-callout {
    border-width: 1.5px;
    box-shadow: 0 14px 36px rgba(24, 53, 127, 0.07);
}

.atc-callout--quick {
    border-color: #BFD1FA;
    background:
        linear-gradient(180deg, #F5F8FF 0%, #EEF3FF 100%);
}

.atc-callout--tip {
    border-color: #BFE4C2;
    background:
        linear-gradient(180deg, #F4FBF4 0%, #EAF7EB 100%);
}

.atc-callout--warning {
    border-color: #E8CF9F;
    background:
        linear-gradient(180deg, #FFF9ED 0%, #FFF3D9 100%);
}

.atc-callout--local {
    border-color: #C8D8F4;
    background:
        linear-gradient(180deg, #F6F9FF 0%, #ECF2FD 100%);
}

.atc-callout--note {
    border-color: #D5DCE6;
    background:
        linear-gradient(180deg, #FAFBFC 0%, #F3F5F8 100%);
}

.atc-callout__title {
    font-size: 18px;
}

.atc-callout__content {
    color: #354052;
}


/* ---------------------------------------------------------
   FAQS — MORE DEFINED, LESS "WHITE ON WHITE"
--------------------------------------------------------- */

.atc-faq__list {
    gap: 14px;
}

.atc-faq__item {
    border: 1.5px solid #CFD9EC;
    background:
        linear-gradient(180deg, #FAFCFF 0%, #F4F7FC 100%);
    box-shadow: 0 10px 28px rgba(24, 53, 127, 0.055);
}

.atc-faq__item:hover {
    border-color: #B8C9EA;
    background:
        linear-gradient(180deg, #F8FBFF 0%, #EFF4FC 100%);
}

.atc-faq__item[open] {
    border-color: #AFC2E8;
    background:
        linear-gradient(180deg, #F4F8FF 0%, #EAF1FC 100%);
    box-shadow: 0 16px 34px rgba(24, 53, 127, 0.08);
}

.atc-faq__question {
    padding: 20px 22px;
}

.atc-faq__question-text {
    color: var(--atc-ink);
}

.atc-faq__item[open] .atc-faq__question-text {
    color: var(--atc-blue);
}

.atc-faq__icon {
    background: #E1EAFB;
    box-shadow: inset 0 0 0 1px #C7D5EF;
}

.atc-faq__item[open] .atc-faq__icon {
    background: var(--atc-blue);
}

.atc-faq__item[open] .atc-faq__icon::before,
.atc-faq__item[open] .atc-faq__icon::after {
    background: #FFFFFF;
}

.atc-faq__answer {
    padding: 2px 22px 22px;
    color: #3E4B61;
}


/* ---------------------------------------------------------
   MOBILE
--------------------------------------------------------- */

@media (max-width: 620px) {

    .atc-callout {
        box-shadow: 0 10px 26px rgba(24, 53, 127, 0.06);
    }

    .atc-faq__question {
        padding: 18px 18px;
    }

    .atc-faq__answer {
        padding: 2px 18px 18px;
    }
}

