/* BalkansNetwork isolated single-post layout */
.bnee-single-template {
    margin: 0;
    background: #eef3f7;
    color: #10243a;
}

.bnee-single-template .bnee-site-shell {
    background: #fff;
}

.bnee-editor-edit {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 1000;
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    background: #f58a28;
    color: #fff;
    font: 700 13px/1 system-ui, sans-serif;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(16, 36, 58, .22);
}

.bnee-post-main {
    padding: 34px 0 76px;
    background: #fff;
}

.bnee-post-main .bnee-container {
    max-width: 1260px;
}

.bnee-post-main .bnee-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
    color: #74869a;
    font-size: 13px;
}

.bnee-post-main .bnee-breadcrumbs a {
    color: #50677e;
    text-decoration: none;
}

.bnee-post-main .bnee-breadcrumbs [aria-current="page"] {
    overflow: hidden;
    max-width: 56ch;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bnee-post-layout {
    display: grid;
    grid-template-columns: minmax(0, 820px) minmax(270px, 320px);
    gap: 58px;
    align-items: start;
    justify-content: space-between;
}

.bnee-article {
    min-width: 0;
}

.bnee-article-header {
    max-width: 790px;
    margin-bottom: 24px;
}

.bnee-article-category {
    display: inline-flex;
    margin-bottom: 14px;
    color: #1476c8;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    text-decoration: none;
    text-transform: uppercase;
}

.bnee-article-header h1 {
    margin: 0;
    color: #09243e;
    font-size: clamp(36px, 4vw, 58px);
    font-weight: 760;
    letter-spacing: -.04em;
    line-height: 1.05;
}

.bnee-article-deck {
    max-width: 760px;
    margin: 20px 0 0;
    color: #566c82;
    font-size: 20px;
    line-height: 1.58;
}

.bnee-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin-top: 20px;
    color: #7a8a9a;
    font-size: 13px;
}

.bnee-article-meta span,
.bnee-article-meta time {
    position: relative;
}

.bnee-article-meta span::before {
    position: absolute;
    left: -13px;
    top: 50%;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #93a2b0;
    content: "";
    transform: translateY(-50%);
}

.bnee-share-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 24px 0;
    padding: 12px 0;
    border-top: 1px solid #e7edf3;
    border-bottom: 1px solid #e7edf3;
}

.bnee-share-row > span {
    margin-right: 4px;
    color: #6d7f91;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.bnee-share-row a,
.bnee-share-row button {
    appearance: none;
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 11px;
    border: 1px solid #dae4ed;
    border-radius: 5px;
    background: #fff;
    color: #1d4e77;
    cursor: pointer;
    font: 700 11px/1 system-ui, sans-serif;
    text-decoration: none;
    transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.bnee-share-row a:hover,
.bnee-share-row button:hover {
    border-color: #8fc0e7;
    background: #eef7ff;
    transform: translateY(-1px);
}

.bnee-article-hero-image {
    overflow: hidden;
    margin: 0 0 30px;
    border-radius: 8px;
    background: #eef3f7;
    box-shadow: 0 14px 38px rgba(11, 43, 72, .09);
}

.bnee-article-hero-image img {
    display: block;
    width: 100%;
    max-height: 610px;
    object-fit: cover;
}

.bnee-article-content {
    color: #24384d;
    font-size: 17px;
    line-height: 1.82;
}

.bnee-article-content > *:first-child {
    margin-top: 0;
}

.bnee-article-content p,
.bnee-article-content ul,
.bnee-article-content ol,
.bnee-article-content blockquote,
.bnee-article-content table,
.bnee-article-content figure,
.bnee-article-content .wp-block-group {
    margin-top: 0;
    margin-bottom: 24px;
}

.bnee-article-content h2,
.bnee-article-content h3,
.bnee-article-content h4 {
    color: #0a2945;
    font-weight: 760;
    letter-spacing: -.025em;
    line-height: 1.22;
}

.bnee-article-content h2 {
    margin: 46px 0 18px;
    padding-top: 4px;
    font-size: 30px;
}

.bnee-article-content h3 {
    margin: 34px 0 14px;
    font-size: 23px;
}

.bnee-article-content h4 {
    margin: 28px 0 12px;
    font-size: 19px;
}

.bnee-article-content a {
    color: #0877c9;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.bnee-article-content strong {
    color: #102b45;
}

.bnee-article-content ul,
.bnee-article-content ol {
    padding-left: 24px;
}

.bnee-article-content li {
    margin: 7px 0;
}

.bnee-article-content blockquote {
    position: relative;
    padding: 24px 28px 24px 30px;
    border: 0;
    border-left: 4px solid #f4a62a;
    border-radius: 0 6px 6px 0;
    background: #f3f7fa;
    color: #18354f;
    font-size: 16px;
    line-height: 1.7;
}

.bnee-article-content blockquote p:last-child {
    margin-bottom: 0;
}

.bnee-article-content figure,
.bnee-article-content .wp-block-image {
    max-width: 100%;
}

.bnee-article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 7px;
}

.bnee-article-content figcaption {
    margin-top: 8px;
    color: #7d8d9c;
    font-size: 12px;
    line-height: 1.5;
}

.bnee-article-content table {
    display: block;
    overflow-x: auto;
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    font-size: 14px;
}

.bnee-article-content th,
.bnee-article-content td {
    padding: 13px 15px;
    border: 1px solid #dbe5ed;
    text-align: left;
    vertical-align: top;
}

.bnee-article-content th {
    background: #eef5fa;
    color: #123450;
}

.bnee-article-content .wp-block-columns {
    gap: 18px;
}

.bnee-article-content .wp-block-column,
.bnee-article-content > div[style*="background"] {
    border-radius: 6px;
}

.bnee-share-row-bottom {
    margin-top: 44px;
}

.bnee-post-navigation {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin-top: 28px;
    padding: 26px 0;
    border-top: 1px solid #e3eaf0;
    border-bottom: 1px solid #e3eaf0;
}

.bnee-post-navigation > div:last-child {
    text-align: right;
}

.bnee-post-navigation span {
    display: block;
    margin-bottom: 7px;
    color: #8795a2;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.bnee-post-navigation a {
    color: #17334d;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.45;
    text-decoration: none;
}

.bnee-related {
    margin-top: 38px;
}

.bnee-related-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 18px;
    padding-bottom: 11px;
    border-bottom: 3px solid #45a63b;
}

.bnee-related-heading span {
    color: #1682c8;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.bnee-related-heading h2 {
    margin: 0;
    color: #102b45;
    font-size: 22px;
}

.bnee-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.bnee-related-grid article {
    min-width: 0;
}

.bnee-related-image {
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    margin-bottom: 10px;
    border-radius: 6px;
    background: #e8eff5;
}

.bnee-related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.bnee-related-grid article:hover img {
    transform: scale(1.035);
}

.bnee-related-grid span {
    display: block;
    margin-bottom: 5px;
    color: #1682c8;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.bnee-related-grid h3 {
    margin: 0;
    font-size: 15px;
    line-height: 1.3;
}

.bnee-related-grid h3 a {
    color: #10283f;
    text-decoration: none;
}

.bnee-post-sidebar {
    position: sticky;
    top: 20px;
    display: grid;
    gap: 30px;
}

.bnee-sidebar-newsletter {
    position: relative;
    overflow: hidden;
    padding: 30px 26px;
    border-radius: 8px;
    background:
        radial-gradient(circle at 110% -20%, rgba(255,255,255,.24) 0 28%, transparent 29%),
        linear-gradient(145deg, #062d4b 0%, #076cb4 72%, #169ae0 100%);
    color: #fff;
    box-shadow: 0 16px 36px rgba(8, 54, 91, .18);
}

.bnee-sidebar-newsletter::after {
    position: absolute;
    right: -50px;
    bottom: -55px;
    width: 150px;
    height: 150px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 50%;
    content: "";
}

.bnee-sidebar-newsletter > span {
    display: block;
    margin-bottom: 8px;
    color: #a7dcff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.bnee-sidebar-newsletter h2 {
    margin: 0 0 12px;
    color: #fff;
    font-size: 27px;
    letter-spacing: -.03em;
    line-height: 1.08;
}

.bnee-sidebar-newsletter p {
    margin: 0 0 22px;
    color: rgba(255,255,255,.82);
    font-size: 14px;
    line-height: 1.6;
}

.bnee-sidebar-newsletter a,
.bnee-sidebar-newsletter button {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 17px;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: #0b609d;
    cursor: pointer;
    font-family: inherit;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .06em;
    text-decoration: none;
    text-transform: uppercase;
}

.bnee-sidebar-title {
    margin-bottom: 16px;
    border-bottom: 3px solid #12a28d;
}

.bnee-sidebar-title h2 {
    display: inline-block;
    margin: 0 0 -3px;
    padding: 0 15px 10px 0;
    border-bottom: 3px solid #f04c4c;
    color: #10283f;
    font-size: 16px;
    letter-spacing: .01em;
    text-transform: uppercase;
}

.bnee-sidebar-list {
    display: grid;
    gap: 17px;
}

.bnee-sidebar-list article {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 13px;
    align-items: center;
}

.bnee-sidebar-thumb {
    display: block;
    overflow: hidden;
    width: 74px;
    height: 74px;
    border-radius: 50%;
    background: #e6edf3;
}

.bnee-sidebar-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bnee-sidebar-list span {
    display: block;
    margin-bottom: 4px;
    color: #2582bd;
    font-size: 8px;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.bnee-sidebar-list h3 {
    margin: 0;
    font-size: 13px;
    line-height: 1.28;
}

.bnee-sidebar-list h3 a {
    color: #10283f;
    text-decoration: none;
}

.bnee-sidebar-sections nav {
    display: grid;
    border-top: 1px solid #e1e9ef;
}

.bnee-sidebar-sections nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
    border-bottom: 1px solid #e1e9ef;
    color: #2d4d68;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.bnee-sidebar-sections nav a::after {
    color: #1783cb;
    content: "→";
}

@media (max-width: 1100px) {
    .bnee-post-layout {
        grid-template-columns: minmax(0, 1fr) 280px;
        gap: 36px;
    }

    .bnee-article-header h1 {
        font-size: clamp(34px, 4.4vw, 49px);
    }
}

@media (max-width: 880px) {
    .bnee-post-main {
        padding-top: 24px;
    }

    .bnee-post-layout {
        grid-template-columns: 1fr;
    }

    .bnee-post-sidebar {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }

    .bnee-sidebar-sections {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .bnee-post-main {
        padding-bottom: 48px;
    }

    .bnee-post-main .bnee-breadcrumbs [aria-current="page"] {
        display: none;
    }

    .bnee-article-header h1 {
        font-size: 34px;
        line-height: 1.08;
    }

    .bnee-article-deck {
        font-size: 17px;
    }

    .bnee-article-meta {
        gap: 7px 18px;
    }

    .bnee-share-row {
        gap: 6px;
    }

    .bnee-share-row > span {
        width: 100%;
        margin-bottom: 3px;
    }

    .bnee-share-row a,
    .bnee-share-row button {
        padding: 0 9px;
        font-size: 10px;
    }

    .bnee-article-content {
        font-size: 16px;
        line-height: 1.75;
    }

    .bnee-article-content h2 {
        margin-top: 38px;
        font-size: 27px;
    }

    .bnee-article-content h3 {
        font-size: 21px;
    }

    .bnee-post-navigation {
        grid-template-columns: 1fr;
    }

    .bnee-post-navigation > div:last-child {
        text-align: left;
    }

    .bnee-related-heading {
        display: block;
    }

    .bnee-related-heading h2 {
        margin-top: 4px;
    }

    .bnee-related-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .bnee-related-image {
        aspect-ratio: 16 / 9;
    }

    .bnee-post-sidebar {
        grid-template-columns: 1fr;
    }

    .bnee-sidebar-sections {
        grid-column: auto;
    }

    .bnee-editor-edit {
        right: 10px;
        bottom: 10px;
    }
}

/* Ensure newsletter CTA text stays visible over the global link colour rule. */
body.bnee-homepage-template .bnee-sidebar-newsletter a,
body.bnee-homepage-template .bnee-sidebar-newsletter button {
    color: #0b609d !important;
    -webkit-text-fill-color: #0b609d;
}

body.bnee-homepage-template .bnee-sidebar-newsletter a:hover,
body.bnee-homepage-template .bnee-sidebar-newsletter button:hover {
    background: #f3f9fd;
    color: #064d7d !important;
    -webkit-text-fill-color: #064d7d;
}
