/* ============================================================
   ALGORIXSTUDIOS — SINGLE BLOG ARTICLE
   File: assets/blog-post.css

   Article-specific styles only.
   Shared navbar / footer / buttons / reveal animations
   remain in shared.css.
============================================================ */


/* ============================================================
   PAGE VARIABLES
============================================================ */

body.has-algorix-blog-post-page .ax-blog-post-page {
    --ax-post-dark: #0d3540;
    --ax-post-dark-2: #143f50;
    --ax-post-teal: #1c7080;
    --ax-post-accent: #4a8fa3;
    --ax-post-accent-light: #a7d7e0;

    --ax-post-heading: #102b36;
    --ax-post-text: #24454e;
    --ax-post-muted: #647d84;

    --ax-post-line: #d8e5e8;
    --ax-post-surface: #f5f9fa;
    --ax-post-surface-2: #edf5f7;
    --ax-post-code: #0f2932;

    --ax-post-white: #ffffff;

    width: 100% !important;
    max-width: none !important;

    margin: 0 !important;
    padding: 0 !important;

    overflow: clip;

    color: var(--ax-post-text);
    background: #ffffff;
}


/* ============================================================
   ASTRA / WORDPRESS RESET
   SINGLE BLOG POSTS ONLY

   IMPORTANT:
   This removes Astra's content-width restrictions without
   touching the navbar, other pages, or the shared footer.
============================================================ */


/* ------------------------------------------------------------
   REMOVE DEFAULT ASTRA POST ELEMENTS
------------------------------------------------------------ */

body.has-algorix-blog-post-page .entry-header,
body.has-algorix-blog-post-page header.entry-header,
body.has-algorix-blog-post-page .entry-title,
body.has-algorix-blog-post-page .post-thumb,
body.has-algorix-blog-post-page .ast-single-post-order,
body.has-algorix-blog-post-page .ast-post-format-single {
    display: none !important;
}


/* ------------------------------------------------------------
   FULL-WIDTH ASTRA CONTENT CHAIN

   This is the important fix.
------------------------------------------------------------ */

body.has-algorix-blog-post-page #content,
body.has-algorix-blog-post-page .site-content,

body.has-algorix-blog-post-page #content > .ast-container,
body.has-algorix-blog-post-page .site-content > .ast-container,

body.has-algorix-blog-post-page .site-content .ast-container,

body.has-algorix-blog-post-page #primary,
body.has-algorix-blog-post-page .content-area,

body.has-algorix-blog-post-page #main,
body.has-algorix-blog-post-page .site-main,

body.has-algorix-blog-post-page article.post,
body.has-algorix-blog-post-page .ast-article-single,
body.has-algorix-blog-post-page .entry-content {
    width: 100% !important;
    max-width: none !important;

    min-width: 0 !important;

    flex: 0 0 100% !important;

    float: none !important;

    margin: 0 !important;
    padding: 0 !important;
}


/* ------------------------------------------------------------
   ASTRA CONTAINER DISPLAY

   Astra commonly keeps this as a flex container.
------------------------------------------------------------ */

body.has-algorix-blog-post-page #content > .ast-container,
body.has-algorix-blog-post-page .site-content > .ast-container,
body.has-algorix-blog-post-page .site-content .ast-container {
    display: block !important;
}


/* ------------------------------------------------------------
   REMOVE ASTRA SIDEBAR
------------------------------------------------------------ */

body.has-algorix-blog-post-page #secondary,
body.has-algorix-blog-post-page .secondary,
body.has-algorix-blog-post-page .widget-area,
body.has-algorix-blog-post-page .widget-area.secondary {
    display: none !important;
}


/* ------------------------------------------------------------
   REMOVE ASTRA ARTICLE CARD STYLING
------------------------------------------------------------ */

body.has-algorix-blog-post-page .ast-separate-container #primary,
body.has-algorix-blog-post-page .ast-separate-container .ast-article-single,
body.has-algorix-blog-post-page .ast-article-single {
    width: 100% !important;
    max-width: none !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
    border-radius: 0 !important;

    box-shadow: none !important;

    background: transparent !important;
}


/* ------------------------------------------------------------
   CUSTOM BLOG PAGE MUST FILL AVAILABLE CONTENT
------------------------------------------------------------ */

body.has-algorix-blog-post-page .ax-blog-post-page {
    position: relative !important;

    left: auto !important;
    right: auto !important;

    width: 100% !important;
    max-width: none !important;

    margin: 0 !important;
    padding: 0 !important;

    overflow: clip;
}


/* ------------------------------------------------------------
   HIDE ASTRA VISUAL FOOTER

   single-blog.php already includes the Algorix shared footer.
   wp_footer() still runs through get_footer().
------------------------------------------------------------ */

body.has-algorix-blog-post-page
.site-footer:not(.ax-site-footer),

body.has-algorix-blog-post-page
#colophon:not(.ax-site-footer) {
    display: none !important;
}



/* ============================================================
   STRUCTURAL SHELL
============================================================ */

body.has-algorix-blog-post-page
.ax-blog-post-page
.ax-shell {
    width: min(
        1180px,
        calc(100% - clamp(32px, 7vw, 96px))
    ) !important;

    max-width: 1180px !important;

    margin-left: auto !important;
    margin-right: auto !important;
}


/* ============================================================
   ARTICLE HERO
============================================================ */

.ax-blog-post-hero {
    position: relative;
    isolation: isolate;

    width: 100%;

    overflow: hidden;

    color: #ffffff;

    background:
        radial-gradient(
            circle at 83% 22%,
            rgba(87, 173, 191, 0.28),
            transparent 29%
        ),
        radial-gradient(
            circle at 12% 88%,
            rgba(255, 255, 255, 0.04),
            transparent 24%
        ),
        linear-gradient(
            105deg,
            #103c49 0%,
            #155565 60%,
            #287789 100%
        );
}


.ax-blog-post-hero::before {
    content: "";

    position: absolute;
    inset: 0;
    z-index: -2;

    pointer-events: none;

    opacity: 0.14;

    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.09) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.09) 1px,
            transparent 1px
        );

    background-size: 72px 72px;
}


.ax-blog-post-hero::after {
    content: "";

    position: absolute;
    right: -150px;
    bottom: -260px;
    z-index: -1;

    width: 520px;
    height: 520px;

    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;

    background:
        rgba(255, 255, 255, 0.025);
}


.ax-blog-post-hero__inner {
    max-width: 960px !important;

    padding-top: clamp(92px, 10vw, 140px);
    padding-bottom: clamp(86px, 9vw, 124px);
}


/* ============================================================
   BACK LINK
============================================================ */

.ax-blog-post-back {
    width: fit-content;

    display: inline-flex;
    align-items: center;

    gap: 10px;

    margin-bottom: 48px;

    color: rgba(255, 255, 255, 0.72) !important;

    text-decoration: none !important;

    font-size: 13px;
    line-height: 1;

    font-weight: 700;

    transition:
        color 180ms ease,
        transform 180ms ease;
}


.ax-blog-post-back span {
    font-size: 18px;
    line-height: 1;
}


.ax-blog-post-back:hover {
    color: #ffffff !important;

    transform: translateX(-3px);
}


/* ============================================================
   HERO META
============================================================ */

.ax-blog-post-meta {
    display: flex;
    flex-wrap: wrap;

    align-items: center;

    gap: 9px;

    margin-bottom: 22px;

    color: rgba(255, 255, 255, 0.62);

    font-size: 12px;
    line-height: 1.4;

    font-weight: 650;
}


.ax-blog-post-category {
    color: var(--ax-post-accent-light);

    font-weight: 800;

    letter-spacing: 0.08em;

    text-transform: uppercase;
}


/* ============================================================
   HERO TITLE
============================================================ */

.ax-blog-post-title {
    max-width: 930px;

    margin: 0 0 28px;

    color: #ffffff;

    font-size: clamp(48px, 6.4vw, 86px);
    line-height: 0.98;

    letter-spacing: -0.055em;

    font-weight: 700;

    text-wrap: balance;
}


.ax-blog-post-intro {
    max-width: 760px;

    margin: 0 0 30px;

    color: rgba(255, 255, 255, 0.76);

    font-size: clamp(17px, 1.4vw, 20px);
    line-height: 1.75;
}


.ax-blog-post-date {
    display: flex;
    flex-wrap: wrap;

    align-items: center;

    gap: 8px;

    color: rgba(255, 255, 255, 0.56);

    font-size: 11px;
    line-height: 1.4;

    font-weight: 700;

    letter-spacing: 0.05em;

    text-transform: uppercase;
}


/* ============================================================
   FEATURED IMAGE SECTION
============================================================ */

.ax-blog-post-media {
    position: relative;

    width: 100%;

    padding:
        clamp(56px, 6vw, 84px)
        0
        0;

    background: #ffffff;
}


.ax-blog-post-featured {
    position: relative;

    width: 100%;

    margin: 0;

    overflow: hidden;

    border: 1px solid var(--ax-post-line);
    border-radius: 26px;

    background: var(--ax-post-surface);

    box-shadow:
        0 30px 80px rgba(17, 62, 73, 0.10);
}


.ax-blog-post-featured__image {
    width: 100%;
    height: auto;

    max-height: 720px;

    display: block;

    object-fit: cover;
}


/* ============================================================
   ARTICLE BODY SECTION
============================================================ */

.ax-blog-post-body {
    width: 100%;

    padding:
        clamp(72px, 8vw, 112px)
        0
        clamp(86px, 9vw, 130px);

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #fafcfc 100%
        );
}


/* ============================================================
   READABLE ARTICLE COLUMN
============================================================ */

.ax-blog-article {
    width: min(100%, 780px);

    margin-left: auto;
    margin-right: auto;
}


.ax-blog-article__content {
    color: var(--ax-post-text);

    font-size: clamp(16px, 1.15vw, 18px);
    line-height: 1.85;

    overflow-wrap: anywhere;
}


/* ============================================================
   ARTICLE TYPOGRAPHY
============================================================ */

.ax-blog-article__content > *:first-child {
    margin-top: 0;
}


.ax-blog-article__content > *:last-child {
    margin-bottom: 0;
}


.ax-blog-article__content p {
    margin:
        0
        0
        1.65em;

    color: var(--ax-post-text);
}


.ax-blog-article__content h2,
.ax-blog-article__content h3,
.ax-blog-article__content h4,
.ax-blog-article__content h5,
.ax-blog-article__content h6 {
    color: var(--ax-post-heading);

    text-wrap: balance;
}


.ax-blog-article__content h2 {
    margin:
        1.8em
        0
        0.65em;

    font-size: clamp(31px, 3vw, 43px);
    line-height: 1.08;

    letter-spacing: -0.04em;
}


.ax-blog-article__content h3 {
    margin:
        1.7em
        0
        0.65em;

    font-size: clamp(25px, 2.3vw, 33px);
    line-height: 1.12;

    letter-spacing: -0.035em;
}


.ax-blog-article__content h4 {
    margin:
        1.55em
        0
        0.6em;

    font-size: clamp(20px, 1.8vw, 25px);
    line-height: 1.2;
}


.ax-blog-article__content h5,
.ax-blog-article__content h6 {
    margin:
        1.5em
        0
        0.55em;

    font-size: 18px;
    line-height: 1.3;
}


/* ============================================================
   LINKS
============================================================ */

.ax-blog-article__content a {
    color: var(--ax-post-teal);

    text-decoration-thickness: 1px;
    text-underline-offset: 3px;

    transition:
        color 160ms ease;
}


.ax-blog-article__content a:hover {
    color: #125f6f;
}


/* ============================================================
   LISTS
============================================================ */

.ax-blog-article__content ul,
.ax-blog-article__content ol {
    margin:
        0
        0
        1.75em;

    padding-left: 1.45em;
}


.ax-blog-article__content li {
    margin-bottom: 0.65em;

    padding-left: 0.2em;
}


.ax-blog-article__content li::marker {
    color: var(--ax-post-teal);

    font-weight: 700;
}


/* ============================================================
   BLOCKQUOTES
============================================================ */

.ax-blog-article__content blockquote {
    position: relative;

    margin:
        2.3em
        0;

    padding:
        26px
        28px
        26px
        32px;

    border: 0;
    border-left: 4px solid var(--ax-post-accent);

    border-radius: 0 16px 16px 0;

    color: #345961;

    background: var(--ax-post-surface);
}


.ax-blog-article__content blockquote p {
    margin: 0;

    color: inherit;

    font-size: 1.08em;
    line-height: 1.75;

    font-weight: 500;
}


.ax-blog-article__content blockquote cite {
    display: block;

    margin-top: 14px;

    color: var(--ax-post-muted);

    font-size: 12px;

    font-style: normal;

    font-weight: 700;
}


/* ============================================================
   IMAGES
============================================================ */

.ax-blog-article__content img {
    max-width: 100%;
    height: auto;

    border-radius: 16px;
}


.ax-blog-article__content figure {
    max-width: 100%;

    margin:
        2.4em
        0;
}


.ax-blog-article__content figcaption {
    margin-top: 10px;

    color: #7b9096;

    text-align: center;

    font-size: 12px;
    line-height: 1.55;
}


/* Gutenberg wide/full images stay responsive. */
.ax-blog-article__content
.wp-block-image.alignwide,
.ax-blog-article__content
.wp-block-image.alignfull {
    width: 100%;
    max-width: 100%;

    margin-left: 0;
    margin-right: 0;
}


/* ============================================================
   CODE
============================================================ */

.ax-blog-article__content code {
    padding:
        2px
        6px;

    border-radius: 6px;

    color: #145263;

    background: #e8f2f4;

    font-size: 0.88em;

    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        "Liberation Mono",
        monospace;
}


.ax-blog-article__content pre {
    width: 100%;
    max-width: 100%;

    margin:
        2.2em
        0;

    padding:
        24px
        26px;

    overflow-x: auto;

    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;

    color: #d9edf1;

    background: var(--ax-post-code);

    box-shadow:
        0 18px 46px rgba(15, 41, 50, 0.12);

    -webkit-overflow-scrolling: touch;
}


.ax-blog-article__content pre code {
    padding: 0;

    border-radius: 0;

    color: inherit;

    background: transparent;

    font-size: 13px;
    line-height: 1.7;
}


/* ============================================================
   TABLES
============================================================ */

.ax-blog-article__content
.wp-block-table {
    width: 100%;

    margin:
        2.2em
        0;

    overflow-x: auto;

    border: 1px solid var(--ax-post-line);
    border-radius: 14px;

    background: #ffffff;

    -webkit-overflow-scrolling: touch;
}


.ax-blog-article__content table {
    width: 100%;
    min-width: 560px;

    border-collapse: collapse;

    font-size: 14px;
}


.ax-blog-article__content th,
.ax-blog-article__content td {
    padding:
        14px
        16px;

    border-bottom: 1px solid #e5edef;

    text-align: left;
    vertical-align: top;
}


.ax-blog-article__content th {
    color: var(--ax-post-heading);

    background: var(--ax-post-surface);

    font-weight: 750;
}


.ax-blog-article__content tr:last-child td {
    border-bottom: 0;
}


/* ============================================================
   HORIZONTAL RULE
============================================================ */

.ax-blog-article__content hr {
    height: 1px;

    margin:
        3em
        0;

    border: 0;

    background: var(--ax-post-line);
}


/* ============================================================
   BUTTON BLOCKS INSIDE ARTICLES
============================================================ */

.ax-blog-article__content
.wp-block-button__link {
    min-height: 46px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding:
        11px
        20px;

    border-radius: 10px;

    color: #ffffff !important;

    background: var(--ax-post-teal);

    text-decoration: none !important;

    font-size: 14px;

    font-weight: 750;

    transition:
        transform 180ms ease,
        background-color 180ms ease;
}


.ax-blog-article__content
.wp-block-button__link:hover {
    transform: translateY(-2px);

    background: #155e6c;
}


/* ============================================================
   EMBEDS / VIDEO
============================================================ */

.ax-blog-article__content iframe {
    max-width: 100%;
}


.ax-blog-article__content
.wp-block-embed {
    margin:
        2.3em
        0;
}


.ax-blog-article__content
.wp-block-embed__wrapper {
    max-width: 100%;

    overflow: hidden;

    border-radius: 16px;
}


/* ============================================================
   MULTI-PAGE ARTICLE NAVIGATION
============================================================ */

.ax-blog-post-pages {
    margin-top: 46px;

    padding-top: 24px;

    display: flex;
    flex-wrap: wrap;

    align-items: center;

    gap: 8px;

    border-top: 1px solid var(--ax-post-line);

    color: var(--ax-post-muted);

    font-size: 13px;
}


.ax-blog-post-pages a,
.ax-blog-post-pages > span:not(:first-child) {
    min-width: 34px;
    height: 34px;

    display: inline-grid;
    place-items: center;

    border: 1px solid var(--ax-post-line);
    border-radius: 8px;

    color: var(--ax-post-teal);

    background: #ffffff;

    text-decoration: none;
}


/* ============================================================
   ARTICLE TOPICS
============================================================ */

.ax-blog-post-topics {
    margin-top: clamp(54px, 6vw, 78px);

    padding-top: 30px;

    border-top: 1px solid var(--ax-post-line);
}


.ax-blog-post-topics__label {
    margin:
        0
        0
        14px;

    color: var(--ax-post-heading);

    font-size: 13px;

    font-weight: 800;

    letter-spacing: 0.05em;

    text-transform: uppercase;
}


.ax-blog-post-topics__list {
    display: flex;
    flex-wrap: wrap;

    gap: 9px;
}


.ax-blog-post-topics__list a,
.ax-blog-post-topics__list span {
    min-height: 34px;

    display: inline-flex;
    align-items: center;

    padding:
        7px
        12px;

    border: 1px solid #d8e5e8;
    border-radius: 999px;

    color: #49676f;

    background: var(--ax-post-surface);

    text-decoration: none;

    font-size: 11px;
    line-height: 1;

    font-weight: 700;
}


.ax-blog-post-topics__list a {
    transition:
        color 160ms ease,
        border-color 160ms ease,
        background-color 160ms ease;
}


.ax-blog-post-topics__list a:hover {
    color: var(--ax-post-teal);

    border-color: #b9d1d6;

    background: #edf6f7;
}


/* ============================================================
   PROJECT CTA
============================================================ */

.ax-blog-post-cta {
    position: relative;

    width: 100%;

    overflow: hidden;

    padding:
        clamp(74px, 7vw, 108px)
        0;

    color: #ffffff;

    background:
        radial-gradient(
            circle at 84% 18%,
            rgba(255, 255, 255, 0.11),
            transparent 26%
        ),
        linear-gradient(
            110deg,
            #103c49,
            #176173 65%,
            #287789
        );
}


.ax-blog-post-cta::after {
    content: "";

    position: absolute;

    right: -110px;
    bottom: -190px;

    width: 370px;
    height: 370px;

    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 50%;
}


.ax-blog-post-cta__inner {
    position: relative;
    z-index: 1;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(320px, 0.72fr);

    gap: clamp(42px, 7vw, 102px);

    align-items: center;
}


body.has-algorix-blog-post-page
.ax-blog-post-cta
.ax-eyebrow {
    color: var(--ax-post-accent-light) !important;
}


.ax-blog-post-cta__title {
    max-width: 720px;

    margin:
        14px
        0
        0;

    color: #ffffff;

    font-size: clamp(38px, 4.7vw, 66px);
    line-height: 1;

    letter-spacing: -0.048em;
}


.ax-blog-post-cta__action {
    max-width: 520px;

    justify-self: end;
}


.ax-blog-post-cta__action p {
    margin:
        0
        0
        24px;

    color: rgba(255, 255, 255, 0.72);

    font-size: 15px;
    line-height: 1.75;
}


/* ============================================================
   RELATED ARTICLES
============================================================ */

.ax-blog-related {
    width: 100%;

    padding:
        clamp(82px, 8vw, 120px)
        0
        clamp(92px, 9vw, 138px);

    background:
        linear-gradient(
            180deg,
            #ffffff,
            #f6fafb
        );
}


.ax-blog-related__header {
    display: flex;

    align-items: end;
    justify-content: space-between;

    gap: 30px;

    margin-bottom: 42px;
}


.ax-blog-related__header > div {
    max-width: 650px;
}


.ax-blog-related__all {
    flex: 0 0 auto;

    display: inline-flex;
    align-items: center;

    gap: 10px;

    margin-bottom: 7px;

    color: var(--ax-post-teal) !important;

    text-decoration: none !important;

    font-size: 13px;

    font-weight: 800;
}


.ax-blog-related__all span {
    font-size: 18px;

    transition:
        transform 180ms ease;
}


.ax-blog-related__all:hover span {
    transform: translateX(4px);
}


/* ============================================================
   RELATED GRID
============================================================ */

.ax-blog-related__grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 24px;
}


/* ============================================================
   RELATED CARD
============================================================ */

.ax-blog-related-card {
    min-width: 0;

    display: flex;
    flex-direction: column;

    overflow: hidden;

    border: 1px solid var(--ax-post-line);
    border-radius: 20px;

    background: #ffffff;

    box-shadow:
        0 18px 48px rgba(17, 62, 73, 0.045);

    transition:
        transform 220ms ease,
        box-shadow 220ms ease,
        border-color 220ms ease;
}


.ax-blog-related-card:hover {
    transform: translateY(-6px);

    border-color: #bfd3d8;

    box-shadow:
        0 28px 64px rgba(17, 62, 73, 0.09);
}


.ax-blog-related-card__media {
    position: relative;

    display: block;

    aspect-ratio: 16 / 10;

    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            #143f50,
            #2b7181
        );
}


.ax-blog-related-card__media img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition:
        transform 500ms cubic-bezier(.2, .7, .2, 1);
}


.ax-blog-related-card:hover
.ax-blog-related-card__media img {
    transform: scale(1.045);
}


.ax-blog-related-card__placeholder {
    position: absolute;
    inset: 0;

    display: grid;
    place-items: center;

    color: #ffffff;

    background:
        radial-gradient(
            circle at 75% 20%,
            rgba(255, 255, 255, 0.12),
            transparent 27%
        ),
        linear-gradient(
            145deg,
            #143f50,
            #2b7181
        );
}


.ax-blog-related-card__placeholder::before {
    content: "";

    position: absolute;

    width: 125px;
    height: 125px;

    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 50%;
}


.ax-blog-related-card__placeholder span {
    position: relative;
    z-index: 1;

    font-size: 40px;
    line-height: 1;

    font-weight: 650;

    letter-spacing: -0.06em;
}


.ax-blog-related-card__content {
    flex: 1;

    display: flex;
    flex-direction: column;

    padding:
        25px
        25px
        23px;
}


.ax-blog-related-card__category {
    margin:
        0
        0
        12px;

    color: var(--ax-post-teal);

    font-size: 10px;
    line-height: 1;

    font-weight: 800;

    letter-spacing: 0.08em;

    text-transform: uppercase;
}


.ax-blog-related-card h3 {
    margin:
        0
        0
        22px;

    color: var(--ax-post-heading);

    font-size: clamp(21px, 1.8vw, 27px);
    line-height: 1.14;

    letter-spacing: -0.032em;
}


.ax-blog-related-card h3 a {
    color: inherit !important;

    text-decoration: none !important;
}


.ax-blog-related-card__footer {
    margin-top: auto;

    padding-top: 18px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 14px;

    border-top: 1px solid #e8eff1;

    color: #81969c;

    font-size: 11px;
}


.ax-blog-related-card__footer a {
    width: 34px;
    height: 34px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    color: var(--ax-post-teal) !important;

    background: var(--ax-post-surface);

    text-decoration: none !important;

    font-size: 17px;

    transition:
        color 180ms ease,
        background-color 180ms ease,
        transform 180ms ease;
}


.ax-blog-related-card__footer a:hover {
    transform: translateX(3px);

    color: #ffffff !important;

    background: var(--ax-post-teal);
}


/* ============================================================
   SHARED FOOTER WIDTH
   Appearance remains in shared.css.
============================================================ */

body.has-algorix-blog-post-page
.ax-blog-post-page
.ax-site-footer {
    width: 100% !important;
    max-width: none !important;

    margin-left: 0 !important;
    margin-right: 0 !important;
}


/* ============================================================
   LAPTOP / SMALL DESKTOP
============================================================ */

@media (max-width: 1180px) {

    .ax-blog-post-hero__inner {
        max-width: 900px !important;
    }


    .ax-blog-related__grid {
        gap: 20px;
    }
}


/* ============================================================
   IPAD / TABLET
============================================================ */

@media (max-width: 920px) {

    body.has-algorix-blog-post-page
    .ax-blog-post-page
    .ax-shell {
        width: min(
            calc(100% - 44px),
            760px
        ) !important;
    }


    .ax-blog-post-hero__inner {
        padding-top: 86px;
        padding-bottom: 80px;
    }


    .ax-blog-post-back {
        margin-bottom: 38px;
    }


    .ax-blog-post-title {
        max-width: 730px;

        font-size: clamp(46px, 8vw, 68px);
    }


    .ax-blog-post-intro {
        max-width: 690px;
    }


    .ax-blog-post-featured {
        border-radius: 22px;
    }


    .ax-blog-article {
        width: min(100%, 720px);
    }


    .ax-blog-post-cta__inner {
        grid-template-columns: 1fr;

        gap: 30px;
    }


    .ax-blog-post-cta__action {
        max-width: 650px;

        justify-self: start;
    }


    .ax-blog-related__grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    .ax-blog-related-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;

        max-width: calc(50% - 10px);
    }
}


/* ============================================================
   MOBILE
============================================================ */

@media (max-width: 620px) {

    body.has-algorix-blog-post-page
    .ax-blog-post-page
    .ax-shell {
        width: min(
            calc(100% - 30px),
            560px
        ) !important;
    }


    .ax-blog-post-hero__inner {
        padding-top: 68px;
        padding-bottom: 66px;
    }


    .ax-blog-post-back {
        margin-bottom: 32px;
    }


    .ax-blog-post-meta {
        margin-bottom: 18px;

        font-size: 11px;
    }


    .ax-blog-post-title {
        margin-bottom: 22px;

        font-size: clamp(40px, 12vw, 56px);
        line-height: 0.99;
    }


    .ax-blog-post-intro {
        margin-bottom: 24px;

        font-size: 16px;
        line-height: 1.68;
    }


    .ax-blog-post-media {
        padding-top: 38px;
    }


    .ax-blog-post-featured {
        border-radius: 17px;
    }


    .ax-blog-post-featured__image {
        max-height: 480px;
    }


    .ax-blog-post-body {
        padding-top: 58px;
        padding-bottom: 76px;
    }


    .ax-blog-article {
        width: 100%;
    }


    .ax-blog-article__content {
        font-size: 16px;
        line-height: 1.8;
    }


    .ax-blog-article__content h2 {
        font-size: 31px;
    }


    .ax-blog-article__content h3 {
        font-size: 25px;
    }


    .ax-blog-article__content blockquote {
        margin:
            2em
            0;

        padding:
            22px
            20px
            22px
            23px;

        border-radius:
            0
            13px
            13px
            0;
    }


    .ax-blog-article__content pre {
        margin:
            2em
            0;

        padding:
            20px
            18px;

        border-radius: 13px;
    }


    .ax-blog-article__content pre code {
        font-size: 12px;
    }


    .ax-blog-post-topics {
        margin-top: 48px;
    }


    .ax-blog-post-cta {
        padding-top: 66px;
        padding-bottom: 72px;
    }


    .ax-blog-post-cta__title {
        font-size: clamp(36px, 10vw, 50px);
    }


    .ax-blog-post-cta__action .ax-button {
        width: 100%;
    }


    .ax-blog-related {
        padding-top: 66px;
        padding-bottom: 82px;
    }


    .ax-blog-related__header {
        align-items: flex-start;

        flex-direction: column;

        gap: 14px;

        margin-bottom: 30px;
    }


    .ax-blog-related__all {
        margin-bottom: 0;
    }


    .ax-blog-related__grid {
        grid-template-columns: 1fr;

        gap: 18px;
    }


    .ax-blog-related-card:last-child:nth-child(odd) {
        grid-column: auto;

        max-width: none;
    }


    .ax-blog-related-card {
        border-radius: 18px;
    }


    .ax-blog-related-card__content {
        padding:
            23px
            21px
            21px;
    }


    .ax-blog-related-card h3 {
        font-size: 24px;
    }
}


/* ============================================================
   SMALL MOBILE
============================================================ */

@media (max-width: 390px) {

    body.has-algorix-blog-post-page
    .ax-blog-post-page
    .ax-shell {
        width: calc(100% - 24px) !important;
    }


    .ax-blog-post-title {
        font-size: 39px;
    }


    .ax-blog-post-meta {
        gap: 6px;
    }


    .ax-blog-article__content h2 {
        font-size: 29px;
    }


    .ax-blog-article__content h3 {
        font-size: 24px;
    }


    .ax-blog-article__content ul,
    .ax-blog-article__content ol {
        padding-left: 1.2em;
    }


    .ax-blog-article__content pre {
        padding:
            18px
            15px;
    }


    .ax-blog-related-card__content {
        padding:
            22px
            18px
            20px;
    }
}


/* ============================================================
   ACCESSIBILITY — REDUCED MOTION
============================================================ */

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

    .ax-blog-post-back,
    .ax-blog-article__content a,
    .ax-blog-article__content .wp-block-button__link,
    .ax-blog-post-topics__list a,
    .ax-blog-related__all span,
    .ax-blog-related-card,
    .ax-blog-related-card__media img,
    .ax-blog-related-card__footer a {
        transition: none !important;
    }


    .ax-blog-post-back:hover,
    .ax-blog-article__content .wp-block-button__link:hover,
    .ax-blog-related__all:hover span,
    .ax-blog-related-card:hover,
    .ax-blog-related-card:hover
    .ax-blog-related-card__media img,
    .ax-blog-related-card__footer a:hover {
        transform: none !important;
    }
}