/* ============================================================
   Blog index (/blog/), single posts and long-form pages
   Loaded by archive.php, single.php and page.php
   ============================================================ */

/* ---------- Blog index ---------- */
.blogroll a {
    text-decoration: none;
}

.blogroll > .hero {
    padding: 150px 0 40px 0;
    min-height: auto;
    height: auto;
    display: block;
}

.blogroll .hero--row {
    position: relative;
    z-index: 2;
}

.blogroll_kicker {
    display: inline-block;
    color: var(--highlight-color);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.blogroll .hero--title {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.1;
    color: #fff;
    margin-bottom: 16px;
}

.blogroll_intro {
    max-width: 640px;
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(242, 242, 242, 0.75);
}

.blogroll_intro p {
    margin: 0;
}

.content--inner {
    padding-top: 30px;
    padding-bottom: 70px;
}

.blogroll_item {
    background: linear-gradient(145deg, rgba(21, 27, 40, 0.9) 0%, rgba(12, 12, 20, 0.9) 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 20px;
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.blogroll_item:not(:first-child) {
    margin-top: 28px;
}

.blogroll_item:hover {
    border-color: rgba(92, 235, 122, 0.45);
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35), 0 0 30px rgba(92, 235, 122, 0.08);
}

.blogroll_left {
    margin-bottom: 18px;
}

.blogroll_imageContainer {
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #0c0c14;
}

.blogroll_image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.blogroll_item:hover .blogroll_image {
    transform: scale(1.04);
}

.blogroll_date {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--highlight-color);
}

.blogroll_title {
    margin-top: 10px;
    font-size: 24px;
    line-height: 1.3;
    color: #fff;
    font-weight: 600 !important;
    text-align: left;
}

.blogroll_excerpt {
    margin-top: 14px;
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(242, 242, 242, 0.72);
}

.blogroll_more {
    display: inline-block;
    margin-top: 18px;
    color: var(--highlight-color);
    font-weight: 600;
    font-size: 15px;
    border-bottom: 2px solid rgba(92, 235, 122, 0.45);
    transition: border-color 0.25s ease;
}

.blogroll_item:hover .blogroll_more {
    border-color: var(--highlight-color);
}

.blogroll_empty {
    color: rgba(242, 242, 242, 0.7);
}

.blogroll_pagination {
    margin-top: 40px;
}

.blogroll_pagination .nav-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.blogroll_pagination .page-numbers {
    color: #fff;
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.blogroll_pagination .page-numbers.current,
.blogroll_pagination .page-numbers:hover {
    border-color: var(--highlight-color);
    color: var(--highlight-color);
}

@media (min-width: 768px) {
    .blogroll > .hero {
        padding: 180px 0 50px 0;
    }

    .blogroll .hero--title {
        font-size: 4rem;
    }

    .content--inner {
        padding-top: 40px;
        padding-bottom: 100px;
    }

    .blogroll_item {
        padding: 24px;
    }

    .blogroll_itemContainer {
        display: flex;
        align-items: center;
    }

    .blogroll_left {
        width: 46%;
        flex: 0 0 46%;
        margin-right: 36px;
        margin-bottom: 0;
    }

    .blogroll_right {
        flex: 1 1 auto;
    }

    .blogroll_title {
        font-size: 27px;
    }
}

/* ---------- Single post / long-form page ---------- */
.blogPost {
    padding-top: 150px;
}

.blogPost .container {
    max-width: 900px;
}

.blogPost_meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(242, 242, 242, 0.6);
    margin-bottom: 22px;
}

.blogPost_back {
    color: var(--highlight-color);
    text-decoration: none;
    border-bottom: 2px solid rgba(92, 235, 122, 0.4);
    transition: border-color 0.25s ease;
}

.blogPost_back:hover {
    border-color: var(--highlight-color);
}

.blogPost_sep {
    opacity: 0.4;
}

.blogPost_title {
    font-size: 2.6rem;
    line-height: 1.15;
    margin-bottom: 34px;
    padding-bottom: 18px;
}

.blogPost_title::after {
    left: 0;
    transform: none;
    width: 70px;
}

.blogPost_hero {
    margin: 0 0 44px 0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45), 0 0 40px rgba(92, 235, 122, 0.08);
}

.blogPost_hero img,
.blogPost_img {
    display: block;
    width: 100%;
    height: auto;
}

.blogPost_content {
    opacity: 1;
}

.blogPost_content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 22px;
    color: rgba(242, 242, 242, 0.9);
}

.blogPost_content .s2b-lead {
    font-size: 1.3rem;
    line-height: 1.7;
    font-weight: 300;
    color: #fff;
    margin-bottom: 30px;
}

.blogPost_content h2 {
    position: relative;
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 56px 0 20px 0;
    padding-left: 18px;
    color: #fff;
}

.blogPost_content h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.22em;
    width: 5px;
    height: 0.95em;
    border-radius: 3px;
    background: linear-gradient(180deg, var(--highlight-color) 0%, #10c767 100%);
    box-shadow: 0 0 12px rgba(92, 235, 122, 0.5);
}

.blogPost_content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 36px 0 14px 0;
    color: #fff;
}

.blogPost_content strong {
    color: #fff;
    font-weight: 600;
}

.blogPost_content .s2b-list-label {
    font-weight: 600;
    color: #fff;
    margin-bottom: 12px;
}

/* Lists */
.blogPost_content ul,
.blogPost_content ol {
    margin: 0 0 28px 0;
    padding: 0;
    list-style: none;
}

.blogPost_content li {
    position: relative;
    font-size: 1.05rem;
    line-height: 1.75;
    color: rgba(242, 242, 242, 0.9);
}

.blogPost_content ul.s2b-list > li {
    padding-left: 30px;
    margin-bottom: 10px;
}

.blogPost_content ul.s2b-list > li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 0.72em;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--highlight-color);
    box-shadow: 0 0 10px rgba(92, 235, 122, 0.6);
}

/* Definition-style lists: "Term - description" */
.blogPost_content ul.s2b-list--def > li {
    padding: 16px 20px 16px 22px;
    margin-bottom: 12px;
    border-left: 3px solid var(--highlight-color);
    background: linear-gradient(90deg, rgba(92, 235, 122, 0.08) 0%, rgba(92, 235, 122, 0) 70%);
    border-radius: 0 10px 10px 0;
}

.blogPost_content ul.s2b-list--def > li::before {
    display: none;
}

.blogPost_content ul.s2b-list--def > li strong {
    color: var(--highlight-color);
}

/* Block lists: long items with nested content */
.blogPost_content ul.s2b-list--blocks > li {
    padding: 18px 22px;
    margin-bottom: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.025);
    border-radius: 12px;
}

.blogPost_content ul.s2b-list--blocks > li::before {
    display: none;
}

.blogPost_content ul.s2b-list--blocks > li strong {
    color: var(--highlight-color);
}

.blogPost_content ul.s2b-list--blocks > li p,
.blogPost_content ul.s2b-list--blocks > li ul {
    margin: 12px 0 0 0;
}

.blogPost_content ul.s2b-list--blocks > li ul > li {
    padding-left: 24px;
    margin-bottom: 6px;
    font-size: 1rem;
}

.blogPost_content ul.s2b-list--blocks > li ul > li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 0.75em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--highlight-color);
}

/* Numbered steps */
.blogPost_content ol.s2b-steps {
    counter-reset: s2b-step;
}

.blogPost_content ol.s2b-steps > li {
    counter-increment: s2b-step;
    padding: 6px 0 6px 62px;
    margin-bottom: 14px;
    min-height: 48px;
}

.blogPost_content ol.s2b-steps > li::before {
    content: counter(s2b-step, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 0;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    color: #0c0c14;
    background: linear-gradient(135deg, var(--highlight-color) 0%, #10c767 100%);
    box-shadow: 0 6px 18px rgba(92, 235, 122, 0.25);
}

/* Callouts */
.blogPost_content .s2b-callout {
    position: relative;
    margin: 34px 0;
    padding: 26px 28px 26px 32px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(92, 235, 122, 0.12) 0%, rgba(21, 27, 40, 0.6) 100%);
    border: 1px solid rgba(92, 235, 122, 0.25);
    overflow: hidden;
}

.blogPost_content .s2b-callout::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: var(--highlight-color);
}

.blogPost_content .s2b-callout p {
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.7;
    color: #fff;
}

.blogPost_content .s2b-callout--quote {
    background: linear-gradient(135deg, rgba(21, 27, 40, 0.9) 0%, rgba(12, 12, 20, 0.9) 100%);
}

.blogPost_content .s2b-callout--quote p {
    font-style: italic;
    font-weight: 300;
    font-size: 1.25rem;
}

.blogPost_content .s2b-callout--quote::after {
    content: '\201D';
    position: absolute;
    right: 22px;
    top: -18px;
    font-size: 7rem;
    line-height: 1;
    color: rgba(92, 235, 122, 0.18);
    font-family: Georgia, serif;
}

.blogPost_content .s2b-callout--stat p {
    font-size: 1.2rem;
}

.blogPost_content .s2b-callout--stat strong {
    color: var(--highlight-color);
    font-size: 1.35em;
    font-weight: 700;
}

/* Figures */
.blogPost_content .s2b-figure {
    margin: 36px 0;
}

.blogPost_content .s2b-figure img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.4);
}

.blogPost_content .s2b-figure figcaption {
    margin-top: 12px;
    font-size: 0.9rem;
    color: rgba(242, 242, 242, 0.55);
    text-align: left;
}

@media (min-width: 768px) {
    .blogPost_content .s2b-figure--half {
        float: right;
        width: 44%;
        margin: 8px 0 24px 36px;
    }

    .blogPost_content h2 {
        clear: both;
    }
}

.blogPost_footer {
    clear: both;
    margin-top: 50px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1rem;
}

@media (max-width: 767px) {
    .blogPost {
        padding-top: 120px;
    }

    .blogPost_title {
        font-size: 1.9rem;
    }

    .blogPost_content h2 {
        font-size: 1.5rem;
        margin-top: 42px;
    }

    .blogPost_content .s2b-lead {
        font-size: 1.15rem;
    }

    .blogPost_content .s2b-callout {
        padding: 20px 20px 20px 24px;
    }
}


/* ---------- Related posts (end of every post) ---------- */
.relatedPosts {
    padding: 10px 0 100px 0;
    background: var(--dark-navy);
}

.relatedPosts_title {
    font-size: 1.9rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 28px;
}

.relatedPosts_grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
}

.relatedPosts_card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    background: linear-gradient(145deg, rgba(21, 27, 40, 0.9) 0%, rgba(12, 12, 20, 0.9) 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.relatedPosts_card:hover {
    border-color: rgba(92, 235, 122, 0.45);
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35), 0 0 30px rgba(92, 235, 122, 0.08);
}

.relatedPosts_image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #0c0c14;
}

.relatedPosts_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.relatedPosts_card:hover .relatedPosts_image img {
    transform: scale(1.05);
}

.relatedPosts_body {
    padding: 20px 22px 24px;
}

.relatedPosts_cardTitle {
    font-size: 1.15rem;
    line-height: 1.35;
    font-weight: 600;
    color: #fff;
    margin: 10px 0 0 0;
}

.relatedPosts_body .blogroll_more {
    margin-top: 14px;
    font-size: 14px;
}

@media (min-width: 768px) {
    .relatedPosts_grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ---------- Profile page (Uri Poliavich) ---------- */
.blogPost_content .s2b-profile {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 36px;
    padding: 24px;
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(21, 27, 40, 0.95) 0%, rgba(12, 12, 20, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(92, 235, 122, 0.06);
}

.blogPost_content .s2b-profile_photo {
    margin: 0 auto;
    width: 100%;
    max-width: 320px;
    aspect-ratio: 1 / 1;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.blogPost_content .s2b-profile_photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    display: block;
}

.blogPost_content .s2b-profile_card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.blogPost_content .s2b-profile_kicker {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--highlight-color);
    margin-bottom: 8px;
}

.blogPost_content .s2b-profile_name {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.15;
    color: #fff;
}

.blogPost_content .s2b-profile_role {
    font-size: 1rem;
    color: rgba(242, 242, 242, 0.7);
    margin: 6px 0 22px 0;
}

.blogPost_content .s2b-facts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 0;
    list-style: none;
}

.blogPost_content .s2b-facts li {
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(92, 235, 122, 0.07);
    border: 1px solid rgba(92, 235, 122, 0.2);
    font-size: 0.85rem;
    line-height: 1.4;
    color: rgba(242, 242, 242, 0.85);
}

.blogPost_content .s2b-facts strong {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--highlight-color);
    line-height: 1.2;
    margin-bottom: 2px;
}

@media (min-width: 768px) {
    .blogPost_content .s2b-profile {
        grid-template-columns: 300px 1fr;
        gap: 32px;
        padding: 28px;
        align-items: center;
    }

    .blogPost_content .s2b-profile_photo {
        max-width: none;
    }

    .blogPost_content .s2b-facts {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Timeline */
.blogPost_content .s2b-timeline {
    margin: 40px 0 48px;
    padding: 30px 30px 18px;
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(21, 27, 40, 0.9) 0%, rgba(12, 12, 20, 0.9) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.blogPost_content .s2b-timeline_head {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--highlight-color);
    margin-bottom: 22px;
}

.blogPost_content ol.s2b-timeline_list {
    margin: 0;
    padding: 0;
    list-style: none;
    position: relative;
}

.blogPost_content ol.s2b-timeline_list::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 8px;
    bottom: 14px;
    width: 2px;
    background: linear-gradient(180deg, var(--highlight-color) 0%, rgba(92, 235, 122, 0.1) 100%);
}

.blogPost_content ol.s2b-timeline_list > li {
    position: relative;
    padding: 0 0 22px 34px;
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 14px;
    font-size: 1rem;
}

.blogPost_content ol.s2b-timeline_list > li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 7px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--dark-bg);
    border: 3px solid var(--highlight-color);
    box-shadow: 0 0 12px rgba(92, 235, 122, 0.6);
}

.blogPost_content .s2b-timeline_year {
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
}

.blogPost_content .s2b-timeline_text {
    color: rgba(242, 242, 242, 0.85);
}

@media (max-width: 767px) {
    .blogPost_content ol.s2b-timeline_list > li {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .blogPost_content .s2b-timeline {
        padding: 22px 18px 10px;
    }
}
