/* ============================= Single template ======================= */

body.single.single-post .main-content h1,
body.single.single-post .main-content h2,
body.single.single-post .main-content h3,
body.single.single-post .main-content h4,
body.single.single-post .main-content h5,
body.single.single-post .main-content h6,
body.single.single-post .main-content p,
body.single.single-post .main-content li {
    color: #000000;
}

.single-post .post-content a {
    text-decoration: underline;
}

.single-post .cta-post-blog a {
    text-decoration: none;
}

/* ----------------------------------------
   Single post — neutralise Salient
---------------------------------------- */
.single-post #ajax-content-wrap {
    padding-top: 0 !important;
}


/* ----------------------------------------
   Post hero header (single.php)
---------------------------------------- */
.sd-post-hero {
    height: 480px;
    background-color: #111;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
}

.sd-post-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.7) 100%);
    display: flex;
    align-items: flex-end;
    width: 100%;
}

.sd-post-hero__content {
    width: 100%;
    max-width: var(--small-container-width);
    margin: 0 auto;
    padding: 32px var(--container-padding-desktop);
}

.sd-post-hero__title {
    color: #fff;
    margin: 0 0 10px;
    font-size: clamp(24px, 3vw, 40px);
    line-height: 1.2;
}

.sd-post-hero__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.75);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.sd-post-hero__sep {
    opacity: 0.5;
}

@media (max-width: 767px) {
    .sd-post-hero {
        height: 280px;
    }
    .sd-post-hero__content {
        padding-left: var(--container-padding-mobile);
        padding-right: var(--container-padding-mobile);
    }
    .sd-post-hero__title {
        font-size: 22px;
    }
}

/* ----------------------------------------
   Post body (single.php)
---------------------------------------- */
.sd-post-body__inner p a {
    color: #5541ef !important;
}

.sd-post-body {
    padding: 60px 0 80px;
}

.sd-post-body__inner {
    max-width: var(--small-container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding-desktop);
}

@media (max-width: 767px) {
    .sd-post-body {
        padding: 40px 0 60px;
    }
    .sd-post-body__inner {
        padding: 0 var(--container-padding-mobile);
    }
}

/* ----------------------------------------
   Post prev/next nav — extracted from Salient, self-contained.
   Safe to keep when Salient is removed.
---------------------------------------- */
.blog_next_prev_buttons[data-style="fullwidth_next_prev"] .controls > .hidden { display: none !important; }
.blog_next_prev_buttons[data-style="fullwidth_next_prev"] .controls > .only { width: 100% !important; }
.blog_next_prev_buttons[data-style="fullwidth_next_prev"] .only span:not(.text) { text-align: center !important; }
.blog_next_prev_buttons[data-style="fullwidth_next_prev"] ul { margin: 0; padding: 0; }

.blog_next_prev_buttons[data-style="fullwidth_next_prev"] .controls {
    display: -webkit-flex;
    display: flex;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    width: 100%;
}

.blog_next_prev_buttons[data-style="fullwidth_next_prev"] ul .previous-post,
.blog_next_prev_buttons[data-style="fullwidth_next_prev"] ul .next-post {
    width: 50%;
    line-height: 0;
    height: auto !important;
    padding: 6% 9%;
    min-height: 300px;
    -webkit-justify-content: center;
    justify-content: center;
    display: -webkit-flex;
    display: flex;
    -moz-box-align: center;
    align-items: center;
    -webkit-align-items: center;
    float: none !important;
    overflow: hidden;
    position: relative;
    background-color: #333;
}

.blog_next_prev_buttons[data-style="fullwidth_next_prev"] ul .previous-post:after,
.blog_next_prev_buttons[data-style="fullwidth_next_prev"] ul .next-post:after {
    background-color: rgba(13,13,13,0.35);
    position: absolute;
    left: 0; top: 0;
    content: '';
    display: block;
    z-index: 1;
    width: 100%; height: 100%;
    -webkit-transition: background-color 0.4s cubic-bezier(0.05, 0.2, 0.1, 1) 0s;
    transition: background-color 0.4s cubic-bezier(0.05, 0.2, 0.1, 1) 0s;
}

.blog_next_prev_buttons[data-style="fullwidth_next_prev"] ul .previous-post:hover:after,
.blog_next_prev_buttons[data-style="fullwidth_next_prev"] ul .next-post:hover:after {
    background-color: rgba(13,13,13,0.9);
}

.blog_next_prev_buttons[data-style="fullwidth_next_prev"] li a {
    position: absolute;
    top: 0; left: 0;
    width: 100% !important;
    height: 100% !important;
    z-index: 101;
    display: block;
}

.blog_next_prev_buttons[data-style="fullwidth_next_prev"] h3 {
    display: inline-block;
    -webkit-transform: translateX(0px) translateZ(0);
    transform: translateX(0px) translateZ(0);
    -webkit-transition: transform 0.4s cubic-bezier(0.05, 0.2, 0.1, 1);
    transition: transform 0.4s cubic-bezier(0.05, 0.2, 0.1, 1);
}

.blog_next_prev_buttons[data-style="fullwidth_next_prev"] .next-post:hover h3 {
    -webkit-transform: translateX(-40px) translateZ(0);
    transform: translateX(-40px) translateZ(0);
    backface-visibility: hidden;
}
.blog_next_prev_buttons[data-style="fullwidth_next_prev"] .previous-post:hover h3 {
    -webkit-transform: translateX(40px) translateZ(0);
    transform: translateX(40px) translateZ(0);
    backface-visibility: hidden;
}

.blog_next_prev_buttons[data-style="fullwidth_next_prev"] .next-post span:not(.text) {
    display: block; font-size: 14px; text-align: left;
}
.blog_next_prev_buttons[data-style="fullwidth_next_prev"] .previous-post span:not(.text) {
    display: block; font-size: 14px; text-align: right;
}

.blog_next_prev_buttons[data-style="fullwidth_next_prev"] .next-post h3,
.blog_next_prev_buttons[data-style="fullwidth_next_prev"] .next-post span,
.blog_next_prev_buttons[data-style="fullwidth_next_prev"] .previous-post h3,
.blog_next_prev_buttons[data-style="fullwidth_next_prev"] .previous-post span {
    color: #fff;
    position: relative;
    z-index: 100;
}

/* Background image + zoom */
.blog_next_prev_buttons[data-style="fullwidth_next_prev"] .post-bg-img {
    width: 100%; height: 100%;
    position: absolute;
    left: 0; top: 0;
    background-size: cover;
    background-position: center;
    -ms-transition: transform 0.4s cubic-bezier(0.05, 0.2, 0.1, 1) 0s;
    -webkit-transition: transform 0.4s cubic-bezier(0.05, 0.2, 0.1, 1) 0s;
    transition: transform 0.4s cubic-bezier(0.05, 0.2, 0.1, 1) 0s;
}
.blog_next_prev_buttons[data-style="fullwidth_next_prev"] li:hover .post-bg-img {
    -webkit-transform: scale(1.1);
    transform: scale(1.1);
}

/* SVG arrow */
.blog_next_prev_buttons[data-style="fullwidth_next_prev"] h3 .next-arrow {
    position: absolute;
    backface-visibility: hidden;
    right: -43px; top: 50%;
    margin-top: -15px;
    height: 30px; width: 40px;
    display: block;
    transform: translateX(38px);
}
.blog_next_prev_buttons[data-style="fullwidth_next_prev"] .previous-post h3 .next-arrow {
    -webkit-transform: translateX(38px) rotate(180deg);
    transform: translateX(38px) rotate(180deg);
    left: -43px; right: auto;
}
.blog_next_prev_buttons[data-style="fullwidth_next_prev"] .next-post:hover h3 .next-arrow {
    animation: sd-rightArrowStart 0.4s cubic-bezier(0.05, 0.2, 0.1, 1) forwards;
}
.blog_next_prev_buttons[data-style="fullwidth_next_prev"] .previous-post:hover h3 .next-arrow {
    animation: sd-rightArrowStart2 0.4s cubic-bezier(0.05, 0.2, 0.1, 1) forwards;
}
.blog_next_prev_buttons[data-style="fullwidth_next_prev"] .next-post.mouse-leaving h3 .next-arrow {
    animation: sd-rightArrowEnd 0.7s cubic-bezier(0, 0.2, 0.1, 1) forwards;
}
.blog_next_prev_buttons[data-style="fullwidth_next_prev"] .previous-post.mouse-leaving h3 .next-arrow {
    animation: sd-rightArrowEnd2 0.7s cubic-bezier(0, 0.2, 0.1, 1) forwards;
}

/* Animated line */
.blog_next_prev_buttons[data-style="fullwidth_next_prev"] h3 .text .line {
    height: 2px; width: 45px;
    background-color: #fff;
    position: absolute;
    right: -74px;
    display: block;
    backface-visibility: hidden;
    top: 50%;
    -webkit-transform: translateY(-50%) translateX(28px) scaleX(0);
    transform: translateY(-50%) translateX(28px) scaleX(0);
    transform-origin: right;
}
.blog_next_prev_buttons[data-style="fullwidth_next_prev"] .previous-post h3 .text .line {
    -webkit-transform: translateY(-50%) translateX(-28px) scaleX(0);
    transform: translateY(-50%) translateX(-28px) scaleX(0);
    transform-origin: left;
    left: -74px; right: auto;
}
.blog_next_prev_buttons[data-style="fullwidth_next_prev"] .next-post:hover h3 .text .line {
    animation: sd-rightLineStart 0.4s cubic-bezier(0.05, 0.2, 0.1, 1) forwards;
}
.blog_next_prev_buttons[data-style="fullwidth_next_prev"] .previous-post:hover h3 .text .line {
    animation: sd-rightLineStart2 0.4s cubic-bezier(0.05, 0.2, 0.1, 1) forwards;
}
.blog_next_prev_buttons[data-style="fullwidth_next_prev"] .next-post.mouse-leaving h3 .text .line {
    animation: sd-rightLineEnd 0.4s cubic-bezier(0.05, 0.2, 0.1, 1) forwards;
}
.blog_next_prev_buttons[data-style="fullwidth_next_prev"] .previous-post.mouse-leaving h3 .text .line {
    animation: sd-rightLineEnd2 0.4s cubic-bezier(0.05, 0.2, 0.1, 1) forwards;
}

/* SVG stroke */
.blog_next_prev_buttons[data-style="fullwidth_next_prev"] h3 .next-arrow line {
    stroke-width: 2px;
    stroke-dasharray: 10px;
    stroke-dashoffset: 30px;
    stroke: #ffffff;
}
.blog_next_prev_buttons[data-style="fullwidth_next_prev"] .controls .previous-post:hover .next-arrow line,
.blog_next_prev_buttons[data-style="fullwidth_next_prev"] .controls .next-post:hover .next-arrow line {
    animation: sd-rightArrowLineStart 0.3s cubic-bezier(0.05, 0.2, 0.1, 1) 0.1s forwards;
}
.blog_next_prev_buttons[data-style="fullwidth_next_prev"] .previous-post.mouse-leaving h3 .next-arrow line,
.blog_next_prev_buttons[data-style="fullwidth_next_prev"] .next-post.mouse-leaving h3 .next-arrow line {
    animation: sd-rightArrowLineEnd 0.4s cubic-bezier(0.3, 0.2, 0.1, 1) 0.25s forwards;
    stroke-dashoffset: 40px;
}

/* Keyframes — prefixed sd- to avoid conflicts with Salient during coexistence */
@keyframes sd-rightLineStart   { 0%{transform:translateY(-50%) translateX(-88px) scaleX(0)}  100%{transform:translateY(-50%) translateX(0px) scaleX(1)} }
@keyframes sd-rightLineEnd     { 0%{transform:translateY(-50%) translateX(0px) scaleX(1)}    100%{transform:translateY(-50%) translateX(28px) scaleX(0)} }
@keyframes sd-rightLineStart2  { 0%{transform:translateY(-50%) translateX(88px) scaleX(0)}   100%{transform:translateY(-50%) translateX(0px) scaleX(1)} }
@keyframes sd-rightLineEnd2    { 0%{transform:translateY(-50%) translateX(0px) scaleX(1)}    100%{transform:translateY(-50%) translateX(-28px) scaleX(0)} }
@keyframes sd-rightArrowStart  { 0%{transform:translateX(-50px)}                             100%{transform:translateX(42px)} }
@keyframes sd-rightArrowEnd    { 0%{transform:translateX(42px)}                              100%{transform:translateX(75px)} }
@keyframes sd-rightArrowStart2 { 0%{transform:translateX(50px) rotate(180deg)}               100%{transform:translateX(-42px) rotate(180deg)} }
@keyframes sd-rightArrowEnd2   { 0%{transform:translateX(-42px) rotate(180deg)}              100%{transform:translateX(-75px) rotate(180deg)} }
@keyframes sd-rightArrowLineStart { 0%{stroke-dashoffset:30px} 100%{stroke-dashoffset:40px} }
@keyframes sd-rightArrowLineEnd   { 0%{stroke-dashoffset:40px} 100%{stroke-dashoffset:50px} }
