/* WPCode 71575 — CT – Single Post Styling */
/* CLASSIC TRANSFERS — SINGLE POST STYLING */

/* Main article container */
body .ct-single-post {
    width: 100% !important;
    max-width: 1100px !important;
    margin: 0 auto !important;
    padding: 55px 0 75px !important;
    box-sizing: border-box;
}

/* Category badges */
.ct-single-post .wp-block-post-terms {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin: 0 0 16px !important;
    font-size: 12px;
    font-weight: 650;
    color: #007a4d;
}

.ct-single-post .wp-block-post-terms a {
    display: inline-block;
    background: #edf7f1;
    color: #007a4d !important;
    border-radius: 20px;
    padding: 6px 12px;
    text-decoration: none !important;
}

.ct-single-post .wp-block-post-terms a:hover {
    background: #d6ebdf;
}

/* Article title */
.ct-single-post .wp-block-post-title {
    max-width: 900px;
    margin: 0 0 14px !important;
    color: #17221c !important;
    font-size: clamp(32px, 3.5vw, 48px) !important;
    font-weight: 700 !important;
    line-height: 1.15 !important;
    letter-spacing: -1.4px;
}

/* Publication date */
.ct-single-post .wp-block-post-date {
    margin: 0 0 25px !important;
    color: #78827d;
    font-size: 14px;
    line-height: 1.5;
}

/* Main featured image */
.ct-single-post .wp-block-post-featured-image {
    width: 100%;
    margin: 0 0 35px !important;
    overflow: hidden;
    border-radius: 12px;
}

.ct-single-post .wp-block-post-featured-image img {
    display: block;
    width: 100% !important;
    height: auto !important;
    max-height: 520px;
    object-fit: cover;
    border-radius: 12px;
}

/* Article content */
.ct-single-post .wp-block-post-content {
    max-width: 800px;
    margin: 0 auto !important;
    color: #404a44;
    font-size: 16px;
    line-height: 1.85;
}

.ct-single-post .wp-block-post-content p {
    margin: 0 0 22px;
}

.ct-single-post .wp-block-post-content h2 {
    margin: 38px 0 15px;
    color: #17221c;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -.5px;
}

.ct-single-post .wp-block-post-content h3 {
    margin: 28px 0 12px;
    color: #17221c;
    font-size: 22px;
    font-weight: 650;
    line-height: 1.35;
}

/* Images inside article */
.ct-single-post .wp-block-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 9px;
}

.ct-single-post .wp-block-post-content figure {
    margin-top: 25px;
    margin-bottom: 25px;
}

/* Links */
.ct-single-post .wp-block-post-content a {
    color: #007a4d;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Responsive layout */
@media (max-width: 1200px) {
    body .ct-single-post {
        padding: 45px 30px 65px !important;
    }
}

@media (max-width: 600px) {
    body .ct-single-post {
        padding: 30px 20px 45px !important;
    }

    .ct-single-post .wp-block-post-title {
        font-size: 30px !important;
        letter-spacing: -.7px;
    }

    .ct-single-post .wp-block-post-featured-image img {
        max-height: none;
    }

    .ct-single-post .wp-block-post-content {
        font-size: 15px;
        line-height: 1.75;
    }

    .ct-single-post .wp-block-post-content h2 {
        font-size: 24px;
    }
}

/* SINGLE POSTS — FULL WIDTH GREY BACKGROUND */

body .ct-single-post {
    background: #f5f5f5 !important;
    box-shadow: 0 0 0 100vmax #f5f5f5;
    clip-path: inset(0 -100vmax);
}

/* SINGLE POSTS — WIDER DESKTOP CONTENT */

@media (min-width: 1201px) {
    body .ct-single-post {
        width: 100% !important;
        max-width: none !important;
        padding-left: 220px !important;
        padding-right: 220px !important;
        box-sizing: border-box !important;
    }

    body .ct-single-post .wp-block-post-content {
        width: 100% !important;
        max-width: none !important;
    }

    body .ct-single-post .wp-block-post-content > .wp-block-group,
    body .ct-single-post .wp-block-post-content > .wp-block-columns {
        max-width: 100% !important;
    }
}

/* TABLET */
@media (min-width: 601px) and (max-width: 1200px) {
    body .ct-single-post {
        padding-left: 30px !important;
        padding-right: 30px !important;
    }
}

/* MOBILE */
@media (max-width: 600px) {
    body .ct-single-post {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}
