.blog-article-page #inner-page-wrapper {
    background: linear-gradient(180deg, #f2f7fa 0, #fff 580px);
    padding-bottom: 4rem;
}

.blog-article-page #inner-page-wrapper > .container-fluid {
    max-width: 1320px;
    padding-right: 28px;
    padding-left: 28px;
}

.blog-article-page #top-main-header {
    position: relative;
    margin: 1.5rem 0 2rem;
    padding: 4.5rem 2rem 4.25rem;
    overflow: hidden;
    border-radius: 24px;
    background: linear-gradient(125deg, #063d64 0%, #075b82 52%, #09a7d8 130%);
    box-shadow: 0 22px 55px rgba(6, 54, 86, .18);
}

.blog-article-page #top-main-header::before,
.blog-article-page #top-main-header::after {
    position: absolute;
    content: '';
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 50%;
    pointer-events: none;
}

.blog-article-page #top-main-header::before {
    top: -210px;
    right: -80px;
    width: 430px;
    height: 430px;
    background: rgba(255, 255, 255, .05);
}

.blog-article-page #top-main-header::after {
    right: 230px;
    bottom: -240px;
    width: 360px;
    height: 360px;
}

.blog-article-page #top-main-header .page-header {
    position: relative;
    z-index: 1;
    max-width: 1050px;
    margin: 0 auto;
    text-align: center;
}

.blog-article-page #top-main-header .page-header h1 {
    margin: .45rem 0 .8rem;
    color: #fff;
    font-size: clamp(2.15rem, 4vw, 3.65rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.035em;
}

.blog-article-page #top-main-header .page-header .lead {
    max-width: 900px;
    margin: 0 auto;
    color: rgba(255, 255, 255, .86);
    font-size: 1.2rem;
    line-height: 1.6;
}

.blog-article-page .blog-article-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, .82);
    font-size: .86rem;
    font-weight: 600;
}

.blog-article-page .blog-section-badge {
    padding: .42rem .8rem;
    border: 1px solid rgba(255, 255, 255, .38);
    border-radius: 999px;
    color: #fff;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-decoration: none;
    text-transform: uppercase;
}

.blog-article-page .blog-section-badge:hover {
    color: #063d64;
    background: #fff;
}

.blog-article-page .blog-meta-separator {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #61d8ff;
}

.blog-article-page .main {
    max-width: 900px;
    margin-left: auto;
}

/* Članak je čitalačka stranica, ne katalog sa levim sadržajem i praznim
   desnim prostorom. Preuzimamo Bootstrap kolone samo na desktopu i držimo
   sve — sliku, tekst i FAQ — u jednoj centriranoj meri za čitanje. */
@media (min-width: 992px) {
    .blog-article-page #inner-page-wrapper > .container-fluid > .row {
        justify-content: center;
    }

    .blog-article-page #inner-page-wrapper > .container-fluid > .row > .main {
        flex: 0 0 100%;
        width: 100%;
        max-width: 980px;
        margin-right: auto;
        margin-left: auto;
        padding-right: 14px !important;
        padding-left: 14px !important;
    }

    /* Desna kolona je sadržala samo ikonice za deljenje i pravila je utisak
       nedovršene stranice. Ikonice ostaju funkcionalne ispod teksta. */
    .blog-article-page #inner-page-wrapper > .container-fluid > .row > .side-wrapper {
        flex: 0 0 100%;
        width: 100%;
        max-width: 980px;
        margin: 1.4rem auto 0 !important;
        padding: 0 14px !important;
        border-left: 0;
    }

    .blog-article-page .blog-article-sidebar .social-share,
    .blog-article-page .side-wrapper .social-share {
        position: static;
        justify-content: center;
    }
}

.blog-article-page .page-content {
    color: #263b4a;
    font-size: 1.075rem;
    line-height: 1.78;
}

.blog-article-page .page-content > .row-small-title {
    display: none;
}

.blog-article-page .page-content > .breadcrumb {
    margin: .25rem 0 1.6rem;
    color: #728391;
    font-size: .9rem;
}

.blog-article-page .page-content > .breadcrumb a {
    color: #597080;
    font-weight: 500;
}

.blog-article-page .page-content > p:first-of-type {
    margin: 1.75rem 0 2rem;
    padding: 1.35rem 1.5rem;
    border-left: 5px solid #08a7d8;
    border-radius: 0 12px 12px 0;
    color: #18394f;
    background: #edf8fc;
    font-size: 1.22rem;
    line-height: 1.7;
}

/* Slike koje CMS ubacuje kroz stari "image" snippet nemaju isti HTML kao
   noviji hero blok. Stilizujemo ih ovde da uvod članka ne izgleda kao stara
   galerija sa zasebnim natpisom. */
.blog-article-page .page-content .article-thumb-wrapper.snippet-image {
    margin: 0 0 2.35rem;
    padding: 0;
    overflow: hidden;
    border-radius: 18px;
    background: #eaf1f5;
    box-shadow: 0 18px 45px rgba(18, 48, 69, .14);
}

.blog-article-page .page-content .article-thumb-wrapper.snippet-image .article-thumb {
    display: block;
    overflow: hidden;
    background: #dce9ef;
}

.blog-article-page .page-content .article-thumb-wrapper.snippet-image img {
    display: block;
    width: 100%;
    min-height: 250px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform .45s ease;
}

.blog-article-page .page-content .article-thumb-wrapper.snippet-image .article-thumb:hover img {
    transform: scale(1.025);
}

.blog-article-page .page-content .article-thumb-wrapper.snippet-image .image-desc {
    padding: .8rem 1rem;
    color: #607481;
    background: #fff;
    font-size: .84rem;
    line-height: 1.4;
}

/* Uvod dolazi neposredno iza glavne CMS slike, ne kao prvo dete sadržaja. */
.blog-article-page .page-content .article-thumb-wrapper.snippet-image + p {
    margin: 0 0 2rem;
    padding: 1.35rem 1.5rem;
    border-left: 5px solid #08a7d8;
    border-radius: 0 12px 12px 0;
    color: #18394f;
    background: #edf8fc;
    font-size: 1.22rem;
    line-height: 1.7;
}

.blog-article-page .page-content p,
.blog-article-page .page-content ul,
.blog-article-page .page-content ol {
    margin-bottom: 1.35rem;
}

.blog-article-page .page-content h2 {
    margin: 3.25rem 0 1.15rem;
    padding-top: 1.4rem;
    border-top: 1px solid #dbe7ee;
    color: #0b426a;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.22;
    letter-spacing: -.02em;
}

.blog-article-page .page-content h3 {
    margin: 2.25rem 0 .8rem;
    color: #173c56;
    font-size: 1.45rem;
    font-weight: 750;
    line-height: 1.3;
}

.blog-article-page .page-content a {
    color: #007cac;
    font-weight: 650;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.blog-article-page .page-content li {
    margin-bottom: .55rem;
    padding-left: .25rem;
}

.blog-article-page .page-content li::marker {
    color: #09a8df;
    font-weight: 800;
}

.blog-article-page .blog-article-hero {
    width: 100%;
    margin: 0 0 2.35rem;
    overflow: hidden;
    border-radius: 18px;
    background: #eaf1f5;
    box-shadow: 0 18px 45px rgba(18, 48, 69, .14);
}

.blog-article-page .blog-article-hero img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.blog-article-page .page-content .blog-figure {
    margin: 2rem 0 2.25rem;
}

.blog-article-page .page-content .blog-figure img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 14px;
    object-fit: cover;
    box-shadow: 0 12px 30px rgba(18, 48, 69, .12);
}

.blog-article-page .page-content table {
    width: 100%;
    margin: 1.75rem 0;
    overflow: hidden;
    border: 1px solid #d8e3ea;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
}

.blog-article-page .page-content th,
.blog-article-page .page-content td {
    padding: .9rem 1rem;
    border-right: 1px solid #d8e3ea;
    border-bottom: 1px solid #d8e3ea;
    text-align: left;
    vertical-align: top;
}

.blog-article-page .page-content tr:last-child td,
.blog-article-page .page-content tr:last-child th {
    border-bottom: 0;
}

.blog-article-page .page-content th:last-child,
.blog-article-page .page-content td:last-child {
    border-right: 0;
}

.blog-article-page .page-content th {
    color: #143a54;
    background: #edf6fa;
}

.blog-article-page .blog-faq {
    margin: 3.5rem 0 1rem;
    padding: 2rem;
    border-radius: 18px;
    background: #f1f7fa;
}

.blog-article-page .blog-faq > h2 {
    margin: 0 0 1.4rem;
    padding: 0;
    border: 0;
}

.blog-article-page .blog-faq > h3 {
    position: relative;
    margin: .85rem 0 0;
    padding: 1rem 3.2rem 1rem 1.15rem;
    border: 1px solid #d5e6ee;
    border-bottom: 0;
    border-radius: 12px 12px 0 0;
    color: #0b426a;
    background: #fff;
    font-size: 1.08rem;
}

.blog-article-page .blog-faq > h3::after {
    position: absolute;
    top: .85rem;
    right: 1.1rem;
    content: '?';
    display: grid;
    width: 1.75rem;
    height: 1.75rem;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: #08a7d8;
    font-size: .9rem;
    font-weight: 800;
}

.blog-article-page .blog-faq > h3 + p {
    margin: 0 0 .85rem;
    padding: 0 1.15rem 1.15rem;
    border: 1px solid #d5e6ee;
    border-top: 0;
    border-radius: 0 0 12px 12px;
    background: #fff;
}

.blog-article-page .side-wrapper {
    border-left: 1px solid #e2ebf0;
}

.blog-article-page .blog-article-sidebar .social-share {
    position: sticky;
    top: 1.5rem;
    display: flex;
    gap: .4rem;
    margin: 0 !important;
    padding: 1.15rem;
    border: 1px solid #dbe7ee;
    border-radius: 16px;
    background: #f7fafc;
    box-shadow: 0 10px 28px rgba(18, 48, 69, .07);
}

.blog-article-page .blog-article-sidebar .soc {
    display: grid;
    width: 2.5rem;
    height: 2.5rem;
    place-items: center;
    border: 1px solid #d4e2e9;
    border-radius: 50%;
    background: #fff;
    transition: transform .2s ease, border-color .2s ease;
}

.blog-article-page .blog-article-sidebar .soc:hover {
    transform: translateY(-2px);
    border-color: #08a7d8;
}

/* Stariji članci na produkciji još imaju datum u ovoj formi umesto novog
   meta bloka. Zadržavamo ga čitljivim na tamnoj naslovnoj pozadini. */
.blog-article-page #top-main-header .page-header > .text-muted {
    margin-bottom: .9rem;
    color: rgba(255, 255, 255, .82) !important;
    font-size: .9rem;
    font-weight: 600;
}

@media (max-width: 991.98px) {
    .blog-article-page .main {
        max-width: none;
        padding-right: calc(var(--bs-gutter-x) * .5) !important;
    }

    .blog-article-page .side-wrapper {
        margin-top: 2.5rem !important;
        border-left: 0;
    }

    .blog-article-page .blog-article-sidebar .social-share {
        position: static;
        justify-content: center;
    }
}

@media (max-width: 767.98px) {
    .blog-article-page #inner-page-wrapper > .container-fluid {
        padding-right: 18px;
        padding-left: 18px;
    }

    .blog-article-page #top-main-header {
        margin-top: .75rem;
        margin-bottom: 1.25rem;
        padding: 2.5rem 1rem 2.35rem;
        border-radius: 16px;
    }

    .blog-article-page #top-main-header .page-header h1 {
        font-size: 2rem;
        line-height: 1.15;
    }

    .blog-article-page #top-main-header .page-header .lead {
        font-size: 1rem;
        line-height: 1.55;
    }

    .blog-article-page .blog-article-meta {
        flex-wrap: wrap;
        gap: .55rem;
        margin-bottom: .8rem;
        font-size: .78rem;
    }

    .blog-article-page .page-content {
        font-size: 1rem;
        line-height: 1.7;
    }

    .blog-article-page .page-content > p:first-of-type {
        padding: 1rem 1.1rem;
        font-size: 1.08rem;
    }

    .blog-article-page .page-content h2 {
        margin-top: 2.5rem;
        font-size: 1.6rem;
    }

    .blog-article-page .page-content h3 {
        margin-top: 1.8rem;
        font-size: 1.25rem;
    }

    .blog-article-page .blog-article-hero {
        margin-bottom: 1.6rem;
        border-radius: 12px;
    }

    .blog-article-page .page-content .article-thumb-wrapper.snippet-image {
        margin-bottom: 1.6rem;
        border-radius: 12px;
    }

    .blog-article-page .page-content .article-thumb-wrapper.snippet-image img {
        min-height: 0;
    }

    .blog-article-page .page-content .article-thumb-wrapper.snippet-image + p {
        padding: 1rem 1.1rem;
        font-size: 1.08rem;
    }

    .blog-article-page .page-content .blog-figure {
        margin: 1.35rem 0 1.6rem;
    }

    .blog-article-page .page-content table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .blog-article-page .blog-faq {
        margin-right: -6px;
        margin-left: -6px;
        padding: 1.1rem;
        border-radius: 14px;
    }
}
