/* =========================================================================
   Single Post Refactored Styles (Friendly UI/UX)
   ========================================================================= */

/* ── Lazy Load: плавна поява зображень без блимання ─────────────────────── */
.single-article img,
.wrapper_news_content img,
.fc img,
.recommended-posts img,
.gallery-img,
.blog-info-img,
.author-avatar,
.author-sig-avatar {
    opacity: 0;
    transition: opacity 0.35s ease;
}

.single-article img.is-loaded,
.wrapper_news_content img.is-loaded,
.fc img.is-loaded,
.recommended-posts img.is-loaded,
.gallery-img.is-loaded,
.blog-info-img.is-loaded,
.author-avatar.is-loaded,
.author-sig-avatar.is-loaded {
    opacity: 1;
}
/* ── /Lazy Load ──────────────────────────────────────────────────────────── */

/* ── Breadcrumb ──────────────────────────────────────────────────────────── */
.hero__breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0 4px;
    margin-bottom: 12px;
}

.bc-crumb {
    font-size: 13px;
    font-weight: 400;
    color: #888;
    text-decoration: none;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.bc-crumb:hover {
    color: #333;
}

.bc-sep {
    font-size: 13px;
    color: #bbb;
    user-select: none;
}

/* Остання крихта — категорія, клікабельна */
.eyebrow-category.bc-current {
    font-size: 13px;
}

/* Дата — праворуч через auto margin */
.bc-date {
    margin-left: auto;
    font-size: 14px;
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 500;
    color: #888;
    white-space: nowrap;
}
/* ── /Breadcrumb ─────────────────────────────────────────────────────────── */

#poem {
    border-radius: 28px;
    width: 75%;
    padding: 8% 12% 5%;
    margin: 40px auto;
    font-weight: 300;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: #ffffff;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.fc.fc-text.fc-slider {
    padding-top: 1rem;
}

.privacy_text._full {
    padding-left: 0px;
    padding-right: 0px;
}

.hero-author-avatar {
    display: none !important;
}

.fc.fc-text.fc-highlighted {
    padding-top: 1rem;
    /* padding-bottom: 1rem; */
}

.separator+.fc-text .rte h2 {
    margin-top: 1rem;
}

.fc.fc-text.fc-slider.full-width-breakout.js-gallery-wrapper.overflow-hidden {
    max-width: 100%;
}

.post_style+.fc.fc-text.fc-highlighted {
    /* margin-top: -1rem; */
}

.fc.fc-text+section:has(.wrap .separator) {
    /* margin-top: 2rem;
    margin-bottom: -1rem; */
}

section:has(.wrap .separator)+section.fc.fc-text.fc-heading:has(.rte h2) {
    margin-top: -2rem;
}

.contform {
    margin-bottom: 7rem;
    border: 0px solid #DADADA !important;
    background: none !important;
    padding: 0rem 0rem !important;
    border-radius: 8px !important;
}

.fc.fc-text .wrap .rte h3 {
    padding-bottom: 1rem;
    padding-top: 1rem;
}

section.join-in.dir-hero.bg-white.sc-padding {
    padding-bottom: 0 !important;
}

.fc.fc-text:has(.wrap .rte h3)+.fc.fc-text.fc-highlighted {
    /* margin-top: 1rem; */
}

.rte ol {
    line-height: 1.7;
    margin: 0 0 1em;
    font-size: 18px;
    font-weight: 400;
    list-style: auto;
}

.fc.fc-text.fc-big.fc-big--lg.fc-big--left {
    padding-bottom: 2rem;
    padding-top: 1rem;
}

.rte ol li {
    padding-bottom: 0.6rem;
}

blockquote.q-text {
    padding-left: 10%;
    padding-right: 10%;
}

.rte p strong {
    font-weight: 600;
    color: #111;
}

section.fc .wrap {
    margin: 0;
}

section.post_style {
    padding-bottom: 1rem;
}

section.post_style .wrapper_news_content {
    line-height: 1.6;
}

/* === GENERAL STYLES === */
a.hero-author-avatar {
    text-decoration: none;
    color: #000;
}

.hero-title-row .hero__title {
    text-align: center;
    font-weight: 600;
}

.bg-white,
.blog-info-grid:last-of-type {
    background: #fff;
}

.hero__inner {
    color: #000;
}

/* === BREADCRUMBS & DATE === */
.hero__eyebrow {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.hero__eyebrow-text {
    flex-wrap: wrap;
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: center;
    gap: 15px;
    margin: 0 auto;
}

time.eyebrow__date {
    padding-left: 0;
    opacity: 0.5;
}

/* === AUTHOR AVATAR === */
.hero-author-avatar {
    display: inline-flex;
    align-items: center;
    margin-left: 10px;
    vertical-align: middle;
}

.hero-author-avatar img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    padding-right: 1rem;
    object-fit: contain;
    transition: transform 0.25s ease;
}

.hero-author-avatar:hover img {
    transform: scale(1.08);
}

/* === TITLE & TAGS === */
.hero-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    flex-direction: column;
}

.hero-title-row .hero__title {
    margin: 0;
    line-height: 1.15;
    flex: 1 1 auto;
    text-transform: none;
}

.hero-title-row .post-tags {
    position: relative;
    background: #111;
    border-radius: 99px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    flex: 0 0 auto;
    z-index: 2;
    padding: 4px 6px;
}

.hero-title-row .post-tag {
    text-transform: uppercase;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    border-radius: 999px;
    letter-spacing: .03em;
    white-space: nowrap;
    background: rgba(255, 255, 255, .15);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.hero-title-row .post-tag:hover {
    background: rgba(255, 255, 255, .25);
    transform: translateY(-2px);
}

/* === FLEXIBLE CONTENT STYLES === */
.wrap {
    margin-inline: auto;
    /* width: min(1120px, 100% - 2rem); */
}


.wrap.narrow {
    width: min(760px, 100% - 2rem);
}

.fc {
    /* padding: clamp(24px, 4vw, 56px) 0; */
    padding: 12px 0px;
}

.fc+.fc {
    margin-top: 0;
}

/* Quote */
.fc-quote {
    position: relative;
}

.fc-quote .wrap {
    position: relative;
}

.fc-quote .q-mark {
    font-size: clamp(44px, 10vw, 100px);
    line-height: 1;
    color: #E6EFEA;
    position: absolute;
    left: 13%;
    top: -16px;
    pointer-events: none;
    user-select: none;
}

blockquote.q-text p {
    background: #f8f9fa;
    padding: 2.5rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 24px;
    line-height: 1.45;
    font-style: italic;
    font-family: 'IBM Plex Sans', sans-serif;
    color: #1a1a1a;
}

.fc-quote .q-author {
    color: #070707;
    padding-left: 30%;
    padding-right: 15%;
    padding-bottom: 1rem;
    padding-top: 1.5rem;
    text-align: right;
}

.fc-quote .q-name {
    font-weight: 600;
    font-family: 'IBM Plex Sans', sans-serif;
    letter-spacing: 0;
    font-size: 22px;
    line-height: 1.1;
    padding-bottom: 0.5rem;
}

.fc-quote .q-title {
    font-size: 16px;
    line-height: 1.55;
    font-weight: 400;
    color: #555;
}

/* Big Text */
.fc-big .bigtext {
    font-weight: 500;
    letter-spacing: -0.01em;
    color: #111;
}

.fc-big--xl .bigtext {
    font-size: clamp(32px, 6vw, 64px);
    line-height: 1.2;
}

.fc-big--lg .bigtext {
    font-size: 26px;
    font-weight: 500;
    line-height: 1.45;
}

.fc-big--md .bigtext {
    font-size: 24px;
    line-height: 1.3;
}

.fc-big--center .bigtext {
    text-align: center;
}

/* Images */
.fc-image-full {
    width: 100%;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
}

.fc-image-full img {
    width: 100%;
    height: auto;
    display: block;
}

.fc-image-full.is-ratio img {
    height: 100%;
    object-fit: cover;
}

.fc-image-full.ratio-16-9 {
    aspect-ratio: 16/9;
}

.fc-image-full.ratio-4-3 {
    aspect-ratio: 4/3;
}

.fc-image-full.ratio-3-2 {
    aspect-ratio: 3/2;
}

.fc-image-full .caption {
    font-size: 0.95rem;
    color: #666;
    margin-top: 12px;
    text-align: right;
    font-weight: 400;
}

section.fc.full-image {
    padding-bottom: 2.5rem;
}

.fc-image-note p {
    font-size: 13px !important;
    padding-top: 1.2rem !important;
    line-height: 1.6 !important;
    opacity: 0.7 !important;
}

/* Text/Rich Text */
.fc.fc-text {
    /* padding-bottom: 1.5rem; */
}

.fc.fc-text.fc-highlighted .wrap {
    border-left: 2.33px solid color(srgb 0.1686 0.1686 0.1686);
    padding-left: 2rem;
}

.fc-text .rte {
    color: #222;
}

.fc-text .rte h2 {
    font-size: clamp(26px, 3.5vw, 36px);
    /* margin: 1.8em 0 0.8em; */
    font-weight: 600;
}

.fc.fc-text .wrap .rte h3 {
    font-size: clamp(24px, 2.2vw, 28px);
    font-weight: 600;
}

.fc-heading__title {
    font-weight: 600;
    line-height: 1.35;
    text-transform: none;
    color: #111;
}

section.fc.fc-text ul li,
.rte ul li {
    font-size: 18px;
    padding-bottom: 0.6rem;
    line-height: 1.7;
    font-weight: 400;
}

.rte ul {
    list-style: disc;
}

.fc-text .rte p,
.rte p {
    line-height: 1.65;
    margin: 0 0 1.2em;
    font-size: 17px;
    font-weight: 400;
}

.fc-text .rte ul,
.fc-text .rte ol {
    padding-left: 1.4em;
    margin: 1em 0;
}

/* Slider */
.fc-slider .wrap {
    position: relative;
}

.fc-slider .swiper {
    width: 100%;
    height: auto;
    border-radius: 16px;
    overflow: hidden;
    background: transparent;
}

.fc-slider .swiper-slide {
    padding-top: 0rem;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
    height: auto;
}

.fc-slider .swiper-slide img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 16px;
}

.fc-slider .swiper-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 0;
}

/* Pagination */
.fc-slider .swiper-pagination {
    position: static;
    bottom: auto;
    transform: none;
    flex-grow: 1;
    text-align: center;
    padding-top: 12px;
}

.fc-slider .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #ccc;
    opacity: 0.8;
    margin: 0 5px;
    transition: all 0.25s ease;
}

.fc-slider .swiper-pagination-bullet-active {
    background: #111;
    transform: scale(1.2);
}

/* Separator */
.separator {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
    padding-bottom: 2.5rem;
    padding-top: 2rem;
    border-radius: 999px;
}

span.dot-s {
    height: 4px;
    width: 4px;
    background: #222;
    border-radius: 99px;
    opacity: 0.4;
}

/* Video */
.video-responsive-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    border-radius: 16px;
}

.video-responsive-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Misc */
.single section.hero.sc-standart {
    padding-bottom: 2.5rem;
}

.news_content_text.privacy_text._full,
.fc.fc-text {
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

.privacy_text._full {
    padding-bottom: 0px;
}

.privacy_text p {
    margin-bottom: 0px;
}

.news_content_text.privacy_text._full a {
    color: #111;
}

.rte a {
    text-decoration: underline;
    color: #111;
    padding-bottom: 0;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 4px;
    text-decoration-skip-ink: auto;
    display: inline;
    border: none;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.rte a:hover {
    color: #555;
    text-decoration-color: #555;
}

.single .wrapper_news_content {
    padding-top: 0.1rem;
    margin-top: 2em;
    padding-bottom: 0px;
}

.single .wrapper_news_content p {
    font-weight: 500;
    font-size: 20px;
    line-height: 1.55;
    font-family: "IBM Plex Sans", sans-serif;
    font-style: italic;
}

section.post_style .wrapper_news_content p {
    line-height: 1.7;
}

.ec-heros {
    border-radius: 24px;
    padding: 0;
    overflow: hidden;
    /* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04); */
}

.ec-heros img {
    width: 100%;
    display: block;
    object-fit: contain;
    aspect-ratio: 16 / 9;
}

/* BLOG INFORMATION / TEAM (Extracted from lines 1613-1809) */
.blog-information {
    transform: translateY(-6rem);
    margin-bottom: -2rem;
    margin-top: -6rem;
}

.blog-info-label {
    padding-bottom: 0rem;
    text-transform: uppercase;
    margin: 0 0 6px;
    font-size: 22px;
    line-height: 1.15;
    color: #111;
    font-weight: 600;
}

.single section.hero.sc-standart {
    /* duplicated/overriding */
    padding-bottom: 1.5rem;
}

.blog-info-bar h1.hero__title {
    font-size: 44px;
    font-weight: 700;
}

.blog-info-bar section.hero.sc-standart {
    padding-bottom: 2.5rem;
}

.blog-info-bar time.eyebrow__date {
    display: none;
}

.blog-info-grid {
    padding: 1.5rem 2.5rem;
    margin: 0 0 16px 0;
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 2rem;
    align-items: center;
    background: #faf9f6;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.blog-info-grid:last-of-type {
    margin-bottom: 0;
}

.blog-info-grid .blog-info-cell {
    min-width: 0;
}

.blog-info-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.blog-info-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blog-info-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    background: #e7eaee;
    color: #2b2f33;
    font-weight: 700;
    font-size: 36px;
}

.blog-info-meta {
    min-width: 0;
}

.blog-info-value {
    margin: 0;
    font-weight: 400;
    line-height: 1.6;
    font-size: 16px;
    color: #4b5563;
    text-transform: none;
}

.blog-info-grid .blog-info-value {
    color: #333;
}

.blog-info-grid .blog-info-value.clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: calc(1.6em * 3);
}

.blog-info-grid .blog-info-value.clamp-3 p {
    display: inline;
    margin: 0;
}

.blog-info-grid .blog-info-value.clamp-3 br {
    display: none;
}

dt.blog-info-label a {
    text-decoration: none;
    color: #111;
}

a.blog-archive-card__link {
    display: flex;
    text-transform: uppercase;
    font-weight: 500;
    gap: 15px;
    color: #111;
    text-decoration: none;
    padding-top: 1rem;
    transition: color 0.2s ease;
}

a.blog-archive-card__link:hover {
    color: #555;
}

/* === SHARE & POPUP / SPOTIFY === */
.sp-player-wrap {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    background: rgba(24, 24, 24, 0.95);
    backdrop-filter: blur(10px);
    color: white;
    padding: 14px 24px;
    border-radius: 100px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    z-index: 99999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sp-player-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.sp-info {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 0;
}

.sp-icon {
    background: rgba(255, 255, 255, 0.1);
    min-width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #1DB954;
}

.sp-text {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sp-title,
.sp-subtitle {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sp-title {
    font-size: 15px;
    font-weight: 600;
}

.sp-subtitle {
    font-size: 13px;
    color: #b3b3b3;
}

.sp-controls {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 2;
}

.sp-play-btn {
    background: #1DB954;
    border: none;
    min-width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
    padding: 0;
    flex-shrink: 0;
}

.sp-play-btn:hover {
    transform: scale(1.05);
    background: #1ed760;
}

.sp-progress-area {
    flex: 1;
    display: flex;
    align-items: center;
    height: 24px;
}

.sp-progress-bg {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: height 0.2s;
}

.sp-progress-bg:hover {
    height: 8px;
}

.sp-progress-fill {
    height: 100%;
    background: #1DB954;
    width: 0%;
    pointer-events: none;
}

/* CUSTOM SHARE HOVER */
.custom-share-item a {
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.custom-share-item a:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

@media (max-width: 1280px) {
    .recommended-posts__container {
        padding-left: 40px;
        padding-right: 40px;
    }
}

/* === RESPONSIVE STYLES === */
@media (max-width: 1100px) {
    .blog-info-grid {
        grid-template-columns: 80px 1fr;
    }
}

@media (max-width: 992px) {

    .news_content_text.privacy_text._full,
    .fc.fc-text {
        /* padding: 0 8%; */
    }

    .fc-quote .q-text {
        /* padding-right: 8%;
        padding-left: 8%; */
        font-size: 22px;
    }

    blockquote.q-text {
        padding-left: 0%;
    }

    blockquote.q-text p {
        padding: 1.5rem;
        font-weight: 500;
        font-size: 20px;
        line-height: 1.45;

    }

    .fc-quote .q-author {
        padding-left: 20%;
        padding-right: 10%;
    }
}

@media (max-width: 900px) {
    .blog-info-grid {
        grid-template-columns: 70px 1fr;
        gap: 1.2rem;
    }
}

@media (max-width: 860px) {
    section.fc.full-image {
        padding-top: 2rem;
    }

    .fc.fc-text.fc-highlighted .wrap {
        border-left: 2.33px solid color(srgb 0.1686 0.1686 0.1686);
        padding-left: 1rem;
    }

    blockquote.q-text {
        padding-right: 0%;
    }

    .fc-image-note {
        padding-bottom: 0.5rem;
    }

    span.hero__eyebrow-text {
        font-size: 15px;
    }

    section.fc.fc-quote .wrap {
        width: 100%;
    }

    .separator {
        padding-top: 1.55rem;
        padding-bottom: 0.55rem;
    }

    .fc-text .rte h2 {
        font-size: clamp(28px, 3.5vw, 32px);
    }
}

@media (max-width: 768px) {
    #poem {
        border-radius: 20px;
        width: 90%;
        padding: 10% 12% 8%;
    }

    .share-float-btn {
        bottom: 90px !important;
    }

    .meta-shere {
        padding-top: 0rem !important;
    }

    h1.hero__title {
        font-weight: 600;
        font-size: 34px;
        padding-bottom: 1.5rem;
    }
}

@media (max-width: 750px) {
    section.hero.sc-standart {
        padding-bottom: 2rem;
    }

    .recommended-posts__container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .fc-big--lg .bigtext p {
        font-size: 22px;
    }

    .news_content_text.privacy_text._full,
    .fc.fc-text {
        padding: 0 0%;
    }

    .fc-quote .q-author {
        padding-top: 1.2rem;
        padding-left: 0% !important;
        padding-right: 0% !important;
    }

    .fc-quote .q-mark {
        left: 40px;
    }

    .fc-quote .q-text {
        font-size: 20px !important;
    }

    .single .wrapper_news_content p {
        font-size: 19px !important;
    }

    .ec-heros img {
        aspect-ratio: auto;
        width: 100%;
        height: auto;
        object-fit: initial;
    }

    section.fc.fc-text ul li,
    .rte ol li {
        font-size: 17px;
    }

    .fc-text .rte p {
        line-height: 1.55;
        margin: 0 0 1em;
        font-size: 16px;
    }
}

@media (max-width: 560px) {
    span.hero__eyebrow-text {
        text-align: center;
        width: 100%;
        justify-content: center;
    }

    .hero-eyebrow__right {
        display: none;
    }

    #poem {
        width: 100% !important;
        padding: 12% !important;
        margin-bottom: 1.5rem;
        border-radius: 18px;
    }

    .blog-info-grid {
        grid-template-columns: 60px 1fr;
        gap: 15px;
        padding: 1.2rem;
    }

    .single section.hero.sc-standart {
        padding-bottom: 0rem !important;
    }


    .blog-info-grid .blog-info-value.clamp-3 {
        font-size: 13px;
        line-height: 1.4;
    }

    .blog-info-label {
        font-size: 18px;
    }

    .blog-info-bar h1.hero__title {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .sp-subtitle {
        display: none;
    }

    .sp-player-wrap {
        bottom: 15px;
        width: 92%;
        padding: 12px 18px;
        border-radius: 50px;
    }

    .sp-controls {
        gap: 12px;
    }
}


/* Extracted Fancybox form CSS */
.fancybox__content .wpcf7-form {
    display: block
}

.fancybox__content .wpcf7 form {
    display: grid;
    gap: 12px
}

.fancybox__content input[type="text"],
.fancybox__content input[type="tel"],
.fancybox__content input[type="email"],
.fancybox__content textarea {
    width: 100%;
    background: #fff;
    color: #1a1a1a;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 12px 14px;
    outline: none;
    font-family: inherit;
}

.fancybox__content textarea {
    min-height: 120px;
    resize: vertical
}

.fancybox__content input[type="submit"] {
    background: #124f3c;
    color: #fff;
    border: 0;
    padding: 14px 18px;
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
}

.fancybox__content input[type="submit"]:hover {
    background: #0e4031
}

/* Success/Error Message Styling (Modern Editorial) */
.fancybox__content .wpcf7-response-output {
    margin: 20px 0 0 !important;
    padding: 16px !important;
    border: none !important;
    border-radius: 12px !important;
    text-align: center !important;
    font-size: 15px !important;
    line-height: 1.5 !important;
}

.fancybox__content .wpcf7-form.sent .wpcf7-response-output {
    background: #f0fdf4 !important;
    color: #166534 !important;
    margin: 40px 0 !important;
}

.fancybox__content .wpcf7-form.invalid .wpcf7-response-output,
.fancybox__content .wpcf7-form.unaccepted .wpcf7-response-output {
    background: #fef2f2 !important;
    color: #991b1b !important;
}

/* Hide form fields when sent successfully */
.fancybox__content .wpcf7-form.sent p,
.fancybox__content .wpcf7-form.sent br,
.fancybox__content .wpcf7-form.sent .f-pop-body>*:not(.wpcf7-response-output) {
    display: none !important;
}

/* If the form is sent, we can also target specific elements inside common CF7 structures */
.fancybox__content .wpcf7-form.sent .wpcf7-form-control-wrap,
.fancybox__content .wpcf7-form.sent input[type="submit"] {
    display: none !important;
}

/* ==========================================================================
   Redesigned Hero Section Styles
   ========================================================================== */

.hero-top-redesign {
    max-width: 900px;
    /* Optional, depends on wrap */
    margin: 0 auto;
    width: 100%;
}

section.join-in.dir-hero.bg-white.sc-padding {
    margin-bottom: -6rem;
}

.hero__eyebrow-redesign {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 24px;
    font-family: 'IBM Plex Sans', sans-serif;
}

.newsletter {
    background: #fff;
    margin-bottom: -1rem;
    position: relative;
    z-index: 4;
}

.gallery-nav-btn {
    background: color(srgb 0.1686 0.1686 0.1686);
}

.gallery-nav-btn:hover {
    background: rgba(43, 43, 43, 1);
}

.gallery-img-wrap {
    px;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0);
}

.carousel-dot {
    background: rgba(43, 43, 43, 0.6);
}

.carousel-dot.active {
    background: rgba(43, 43, 43, 1);
}

.eyebrow-category {
    background: #ebebeb;
    color: #111;
    font-weight: 600;
    padding: 6px 18px;
    border-radius: 4px;
    text-transform: none;
    font-size: 15px;
}

.eyebrow-dot {
    display: none;
}

.eyebrow-date {
    color: #8c8c8c;
    font-weight: 500;
    font-size: 15px;
}

.hero__title-redesign {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 600;
    line-height: 1.2;
    color: #1a1a1a;
    width: 100%;
    margin: 0 0 40px 0;
    text-align: left;
    text-decoration: none;
    text-transform: none;
}

.hero-bottom-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    border-top: 1px solid transparent;
    padding-top: 10px;
    position: relative;
    z-index: 4;
    padding-bottom: 30px;
}

/* Author block specific adjustments for redesign */
.hero-bottom-grid .author-block {
    display: flex;
    align-items: center;
    gap: 16px;
}

.hero-bottom-grid .author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.hero-bottom-grid .author-info {
    display: flex;
    flex-direction: column;
}

.hero-bottom-grid .author-label {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 15px;
    color: #8c8c8c;
    text-transform: none;
    font-weight: 500;
    margin-bottom: 2px;
}

.hero-bottom-grid .author-name {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #111;
}

/* Reading Time */
.reading-time {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.reading-time svg {
    color: #333;
}

/* Share Pill Button */
.btn-share-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f1f3f4;
    color: #333;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.btn-share-pill:hover {
    background: #e2e5e7;
    /* transform: translateY(-2px); */
}

.btn-share-pill svg {
    color: #333;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-bottom-grid {
        flex-direction: row;
        align-items: center;
        gap: 20px;
    }

    .hero-top-redesign {
        padding-top: 2rem;
    }

    section.join-in.dir-hero.bg-white.sc-padding {
        margin-bottom: -8rem;
    }

    .hero-bottom-grid .author-block {
        width: 100%;
    }

    .share-btn-wrap {
        margin-left: auto;
    }

    .hero__title-redesign {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .btn-share-pill {
        width: auto;
        justify-content: center;
    }
}

/* SHARE MODAL REDESIGN */
.share-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    z-index: 99999;
    display: none;
    /* Changed via JS */
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.share-modal-overlay[style*="display: flex"] {
    animation: fadeinModal 0.3s forwards;
}

@keyframes fadeinModal {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.share-modal-box {
    background: #fff;
    padding: 32px 40px;
    border-radius: 12px;
    position: relative;
    max-width: 90%;
    width: auto;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transform: scale(0.95);
    animation: popModal 0.3s ease forwards;
}

@keyframes popModal {
    to {
        transform: scale(1);
    }
}

.share-close-btn {
    position: absolute;
    top: 16px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #999;
    cursor: pointer;
    transition: color 0.2s;
    font-family: sans-serif;
}

.share-close-btn:hover {
    color: #111;
}

.share-modal-title {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 24px;
    color: #111;
    margin-top: 0;
}

.share-icons-row-clean {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.share-circle-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 1.5px solid #111;
    background: #fff;
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
}

.share-circle-btn:hover {
    background: #111;
    color: #fff;
}

.share-circle-btn.copy-bg {
    background: #f4f4f4;
}

.share-circle-btn.copy-bg:hover {
    background: #111;
}

@media (max-width: 600px) {
    .share-circle-btn {
        width: 48px;
        height: 48px;
    }

    .share-icons-row-clean {
        gap: 12px;
    }

    .share-modal-box {
        padding: 30px 24px;
        border-radius: 20px;
    }
}

/* ============================================
   Recommended Posts — Editorial List
   ============================================ */
.recommended-posts {
    padding: 60px 0 40px;
    margin-top: 40px;
}

.recommended-posts__container {
    max-width: 900px;
    margin: 0 auto;
}

.recommended-posts__title {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 32px 0;
    letter-spacing: -0.01em;
}

/* List container */
.recommended-posts__list {
    display: flex;
    flex-direction: column;
}

/* Row — editorial horizontal layout */
.recommended-row {
    position: relative;
    display: grid;
    grid-template-columns: 120px 1fr 160px;
    gap: 24px;
    align-items: start;
    padding: 28px 0;
    border-bottom: 1px solid #e8e8e8;
}

.recommended-row:first-child {
    border-top: 1px solid #e8e8e8;
}

/* Full-row invisible link for clickability */
.recommended-row__link {
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* Meta column */
.recommended-row__meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 2px;
}

.recommended-row__date {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #999;
    font-weight: 400;
}

.recommended-row__cat {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #1a1a1a;
    background: #ebebeb;
    padding: 3px 10px;
    border-radius: 3px;
    width: fit-content;
}

/* Body column */
.recommended-row__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    z-index: 2;
}

.recommended-row__title {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.35;
    color: #1a1a1a;
    margin: 0;
}

.recommended-row__title a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.recommended-row:hover .recommended-row__title a {
    opacity: 0.65;
}

.recommended-row__excerpt {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #777;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recommended-row__readmore {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #1a1a1a;
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.recommended-row:hover .recommended-row__readmore {
    opacity: 1;
    transform: translateX(0);
}

/* Thumbnail column */
.recommended-row__thumb {
    width: 160px;
    aspect-ratio: 16 / 11;
    overflow: hidden;
    border-radius: 6px;
    background: #f5f5f5;
    position: relative;
    z-index: 2;
}

.recommended-row__thumb a {
    display: block;
    width: 100%;
    height: 100%;
}

.recommended-row__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.recommended-row:hover .recommended-row__thumb img {
    transform: scale(1.04);
}

/* "More" button */
.recommended-posts__more {
    padding-top: 28px;
}

.recommended-posts__more-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #1a1a1a;
    text-decoration: none;
    padding: 10px 24px;
    border: 1px solid #d5d5d5;
    border-radius: 4px;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.recommended-posts__more-link:hover {
    background: #f5f5f5;
    border-color: #bbb;
}

.recommended-posts__more-link svg {
    transition: transform 0.3s ease;
}

.recommended-posts__more-link:hover svg {
    transform: translateX(3px);
}

/* ── Mobile: horizontal card layout ── */
@media (max-width: 768px) {
    .recommended-posts {
        padding: 40px 0 24px;
        margin-top: 24px;
    }

    .recommended-posts__list {
        gap: 20px;
    }

    .recommended-row {
        display: flex;
        gap: 14px;
        padding: 0;
        border: none;
    }

    .recommended-row:first-child {
        border: none;
    }

    .recommended-row__meta {
        display: none;
    }

    .recommended-row__excerpt {}

    .recommended-row__readmore {
        display: none;
    }

    .recommended-row__thumb {
        width: 110px;
        min-width: 110px;
        aspect-ratio: 1 / 1;
        border-radius: 6px;
        order: -1;
    }

    .recommended-row__body {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 4px;
    }

    .recommended-row__title {
        font-size: 15px;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .recommended-posts__more {
        padding-top: 16px;
    }

    .recommended-posts__more-link {
        font-size: 14px;
        padding: 8px 20px;
    }
}