/* =====================================================================
   BLOG - overview and single post. Dark hero band, content column with a
   sticky sidebar (subscribe box, collapsible index, categories). Colours
   come from the theme tokens in style.css.
   ===================================================================== */

.blog-page,
.blog-hero {
    font-family: var(--font-family-base, "Averta", "Ubuntu", sans-serif);
}

/* ---- Hero ------------------------------------------------------------- */

.blog-hero {
    padding: 150px 24px 72px;
    text-align: center;
}

.blog-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 820px;
    margin: 0 auto;
}

.blog-hero__eyebrow {
    margin: 0 0 14px;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--njorka-light-blue, #56c9f4);
}

.blog-hero__title {
    margin: 0;
    font-size: clamp(2.1rem, 4.5vw, 3.1rem);
    line-height: 1.15;
    font-weight: 700;
    color: #fff;
    text-align: center;
}

.blog-hero__lead {
    margin: 20px auto 0;
    max-width: 640px;
    font-size: 1.15rem;
    line-height: 1.65;
    opacity: .88;
}

.blog-hero__count {
    display: inline-block;
    margin: 28px 0 0;
    padding: 6px 14px;
    font-size: .85rem;
    font-weight: 600;
    letter-spacing: .04em;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 999px;
    opacity: .9;
}

.blog-hero--post {
    padding-top: 115px;
    padding-bottom: 120px;
    text-align: left;
}

.blog-hero--post .blog-hero__inner {
    max-width: 1280px;
    padding-right: 360px; /* keeps the title above the content column, not the sidebar */
}

.blog-hero--post .blog-hero__title {
    text-align: left;
    font-size: clamp(1.9rem, 3.8vw, 2.7rem);
}

.blog-hero__back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    font-size: .95rem;
    color: rgba(255, 255, 255, .75);
    text-decoration: none;
    transition: color var(--duration-normal, 250ms) ease;
}

.blog-hero__back:hover {
    color: var(--njorka-light-blue, #56c9f4);
}

.blog-hero__cats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.blog-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    margin: 20px 0 0;
    font-size: .95rem;
    opacity: .85;
}

.blog-hero__meta i {
    margin-right: 8px;
    color: var(--njorka-light-blue, #56c9f4);
}

/* ---- Page grid -------------------------------------------------------- */

.blog-page {
    padding: 56px 20px 100px;
    background: var(--color-surface, #f8f9fa);
    color: var(--color-text, #333);
}

.blog-page--single {
    padding-top: 0;
}

.blog-page__inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 40px;
    align-items: start;
}

.blog-page--single .blog-page__inner {
    margin-top: -72px; /* the content card overlaps the hero band */
    position: relative;
    z-index: 2;
}

/* The sidebar itself scrolls with the page; only the index box sticks (see
   .blog-page__side .blog-index). align-self: stretch gives that box the full
   column height to travel in. */
.blog-page__side {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.blog-page__side .blog-index {
    position: sticky;
    top: 110px;
}

.blog-page--single .blog-page__side {
    padding-top: 72px;
}

.blog-page__empty {
    padding: 64px 40px;
    text-align: center;
    color: var(--color-text-secondary, #666);
    background: #fff;
    border: 1px dashed var(--njorka-light-gray, #e0e1e1);
}

.blog-page__empty i {
    display: block;
    font-size: 2.4rem;
    margin-bottom: 12px;
    color: var(--njorka-light-blue, #56c9f4);
}

/* ---- Section heading with rule --------------------------------------- */

.blog-section-head {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 48px 0 24px;
}

.blog-section-head__title {
    margin: 0;
    font-size: 1.25rem !important;
    font-weight: 700;
    color: var(--njorka-dark-blue, #0e2032);
    text-align: left !important;
    white-space: nowrap;
}

.blog-section-head__rule {
    flex: 1;
    height: 1px;
    background: var(--njorka-light-gray, #e0e1e1);
}

/* ---- Chips ------------------------------------------------------------ */

.blog-chip {
    display: inline-block;
    padding: 4px 10px;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--njorka-dark-blue, #0e2032);
    background: rgba(var(--njorka-light-blue-rgb, 86, 201, 244), .18);
    border-radius: 4px;
}

.blog-chip--light {
    color: #fff;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .2);
}

.blog-chip--count {
    text-transform: none;
    letter-spacing: 0;
    font-size: .85rem;
    font-weight: 600;
    padding: 6px 12px;
}

.blog-chip--count b {
    margin-left: 4px;
    color: var(--njorka-light-blue-hover, #3db5ea);
}

/* Chips that act as links: tags (filter) and the post type. */
a.blog-chip {
    text-decoration: none;
    transition: background var(--duration-fast, 150ms) ease, color var(--duration-fast, 150ms) ease;
}

a.blog-chip:hover {
    background: rgba(var(--njorka-light-blue-rgb, 86, 201, 244), .35);
    color: var(--njorka-dark-blue, #0e2032);
}

a.blog-chip--light:hover {
    background: rgba(255, 255, 255, .28);
    color: #fff;
}

.blog-chip--type {
    color: #fff;
    background: var(--njorka-dark-blue, #0e2032);
}

a.blog-chip--type:hover {
    background: var(--njorka-light-blue-hover, #3db5ea);
    color: #fff;
}

.blog-chip--tag b {
    margin-left: 4px;
    font-weight: 600;
    opacity: .6;
}

.blog-chip--tag.is-active,
.blog-chip--tag.is-active:hover {
    color: #fff;
    background: var(--njorka-light-blue-hover, #3db5ea);
}

.blog-chip--tag.is-active b {
    opacity: .85;
}

/* ---- Sidebar filter: type switch + tag chips --------------------------- */

.blog-filter__types {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.blog-filter__type {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: .95rem;
    font-weight: 600;
    color: var(--njorka-dark-blue, #0e2032);
    background: var(--color-surface, #f8f9fa);
    text-decoration: none;
    transition: background var(--duration-fast, 150ms) ease, color var(--duration-fast, 150ms) ease;
}

.blog-filter__type i {
    color: var(--njorka-light-blue-hover, #3db5ea);
}

.blog-filter__type b {
    margin-left: auto;
    font-weight: 600;
    opacity: .55;
}

.blog-filter__type:hover {
    background: rgba(var(--njorka-light-blue-rgb, 86, 201, 244), .14);
    color: var(--njorka-dark-blue, #0e2032);
}

.blog-filter__type.is-active,
.blog-filter__type.is-active:hover {
    background: var(--njorka-dark-blue, #0e2032);
    color: #fff;
}

.blog-filter__type.is-active i,
.blog-filter__type.is-active b {
    color: #fff;
    opacity: .85;
}

.blog-filter .blog-filter__title {
    margin-top: 20px;
}

.blog-filter__tags .blog-chip--tag {
    text-transform: none;
    letter-spacing: 0;
    font-size: .85rem;
    font-weight: 600;
    padding: 6px 12px;
}

.blog-page__empty a {
    color: var(--njorka-light-blue-hover, #3db5ea);
}

/* ---- Cards ------------------------------------------------------------ */

.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.blog-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--njorka-light-gray, #e0e1e1);
    box-shadow: 0 1px 10px rgba(193, 193, 193, .4);
    transition: transform var(--duration-normal, 250ms) var(--ease-standard, ease),
                box-shadow var(--duration-normal, 250ms) var(--ease-standard, ease);
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(14, 32, 50, .12);
}

.blog-card__media {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--njorka-dark-blue, #0e2032);
}

.blog-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s var(--ease-standard, ease);
}

.blog-card:hover .blog-card__media img {
    transform: scale(1.04);
}

.blog-card__media--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--njorka-dark-blue, #0e2032) 0%, #1d3f5f 100%);
    color: rgba(var(--njorka-light-blue-rgb, 86, 201, 244), .6);
    font-size: 3rem;
}

.blog-card__media--empty::after {
    content: "";
    position: absolute;
    inset: -60px;
    background: url("/storage/app/media/images/njorka-triangles-extended.svg") center / cover repeat;
    opacity: .14;
    transform: rotate(-15deg);
    pointer-events: none;
}

.blog-card__badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 1;
    padding: 5px 11px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--njorka-dark-blue, #0e2032);
    background: var(--njorka-light-blue, #56c9f4);
}

.blog-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 24px 26px 26px;
}

.blog-card__cats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.blog-card__title {
    margin: 0;
    font-size: 1.3rem !important;
    font-weight: 700;
    line-height: 1.3;
    text-align: left !important;
}

.blog-card__title a {
    color: var(--njorka-dark-blue, #0e2032);
    text-decoration: none;
    transition: color var(--duration-normal, 250ms) ease;
}

.blog-card__title a:hover {
    color: var(--njorka-light-blue-hover, #3db5ea);
}

.blog-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin: 0;
    font-size: .9rem;
    color: var(--color-text-secondary, #666);
}

.blog-card__meta i {
    margin-right: 6px;
    color: var(--njorka-light-blue, #56c9f4);
}

.blog-card__excerpt {
    margin: 0;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card__more {
    margin-top: auto;
    padding-top: 6px;
    align-self: flex-start;
    color: var(--njorka-light-blue-hover, #3db5ea);
    font-weight: 600;
    text-decoration: none;
}

.blog-card__more i {
    transition: transform var(--duration-normal, 250ms) ease;
}

.blog-card__more:hover i {
    transform: translateX(4px);
}

/* Featured (newest) card: image left, text right */
.blog-card--featured {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
}

.blog-card--featured .blog-card__media {
    aspect-ratio: auto;
    min-height: 320px;
    height: 100%;
}

.blog-card--featured .blog-card__body {
    padding: 36px 40px;
    justify-content: center;
}

.blog-card--featured .blog-card__title {
    font-size: 1.85rem !important;
}

.blog-card--featured .blog-card__excerpt {
    -webkit-line-clamp: 4;
    font-size: 1.05rem;
}

/* ---- Pagination -------------------------------------------------------- */

.blog-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 48px;
}

.blog-pagination a {
    padding: 8px 14px;
    border: 1px solid var(--njorka-light-gray, #e0e1e1);
    background: #fff;
    color: var(--njorka-dark-blue, #0e2032);
    text-decoration: none;
}

.blog-pagination a:hover,
.blog-pagination a.is-active {
    background: var(--njorka-dark-blue, #0e2032);
    border-color: var(--njorka-dark-blue, #0e2032);
    color: #fff;
}

/* ---- Single post ------------------------------------------------------ */

.blog-post {
    background: #fff;
    border: 1px solid var(--njorka-light-gray, #e0e1e1);
    box-shadow: 0 8px 30px rgba(14, 32, 50, .08);
    padding: 48px 56px 40px;
}

.blog-post__image {
    width: 100%;
    height: auto;
    display: block;
    margin: -48px -56px 40px;
    width: calc(100% + 112px);
    max-height: 480px;
    object-fit: cover;
}

.blog-post__content {
    font-size: 1.08rem;
    line-height: 1.8;
    color: var(--color-text, #333);
}

.blog-post__content > p:first-of-type {
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--njorka-dark-blue, #0e2032);
}

.blog-post__content h2,
.blog-post__content h3 {
    color: var(--njorka-dark-blue, #0e2032);
    font-weight: 700;
    text-align: left !important;
    scroll-margin-top: 130px;
}

.blog-post__content h2 {
    font-size: 1.7rem !important;
    margin: 52px 0 16px;
    padding-top: 20px;
    border-top: 1px solid var(--njorka-light-gray, #e0e1e1);
}

.blog-post__content h3 {
    font-size: 1.25rem;
    margin: 36px 0 12px;
}

.blog-post__content p {
    margin: 0 0 1.25em;
}

.blog-post__content ul,
.blog-post__content ol {
    margin: 0 0 1.25em;
    padding-left: 1.4em;
}

.blog-post__content li {
    margin-bottom: .4em;
}

.blog-post__content img {
    max-width: 100%;
    height: auto;
    margin: 12px 0;
}

.blog-post__content a,
.blog-post__content a strong,
.blog-post__content a em,
.blog-post__content strong a {
    color: var(--njorka-light-blue-hover, #3db5ea);
    text-decoration: underline;
    text-decoration-color: rgba(var(--njorka-light-blue-rgb, 86, 201, 244), .45);
    text-underline-offset: 3px;
}

.blog-post__content a:hover,
.blog-post__content a:hover strong,
.blog-post__content a:hover em,
.blog-post__content strong a:hover {
    color: var(--njorka-light-blue, #56c9f4);
    text-decoration-color: currentColor;
}

/* style.css makes every <strong> 1.2rem and dark blue; inside the article it is just bold. */
.blog-post__content strong,
.blog-post__content b {
    font-size: inherit;
    font-weight: 700;
    color: inherit;
}

.blog-post__content > p:first-of-type strong {
    color: var(--njorka-dark-blue, #0e2032);
}

.blog-post__content em {
    font-style: italic;
}

.blog-post__content h4,
.blog-post__content h5,
.blog-post__content h6 {
    margin: 28px 0 10px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--njorka-dark-blue, #0e2032);
    text-align: left !important;
}

.blog-post__content hr {
    margin: 40px 0;
    border: 0;
    border-top: 1px solid var(--njorka-light-gray, #e0e1e1);
    opacity: 1;
}

.blog-post__content code {
    padding: 2px 6px !important;
    font-size: .92em;
    color: var(--njorka-dark-blue, #0e2032);
    background: rgba(var(--njorka-light-blue-rgb, 86, 201, 244), .14);
    border-radius: 4px;
}

.blog-post__content pre code {
    padding: 0 !important;
    color: inherit;
    background: none;
}

.blog-post__content del,
.blog-post__content s {
    opacity: .6;
}

.blog-post__content mark {
    padding: 0 4px;
    background: rgba(var(--njorka-light-blue-rgb, 86, 201, 244), .3);
}

.blog-post__content figure {
    margin: 24px 0;
}

.blog-post__content figcaption,
.blog-post__content img + em {
    display: block;
    font-size: .9rem;
    color: var(--color-text-secondary, #666);
}

/* Quotes: italic, wrapped in quotation marks, no stray gap below the last line. */
.blog-post__content blockquote {
    margin: 28px 0;
    padding: 16px 24px;
    border-left: 4px solid var(--njorka-light-blue, #56c9f4);
    background: var(--color-surface, #f8f9fa);
    font-size: 1.1rem;
    font-style: italic;
    color: var(--njorka-dark-blue, #0e2032);
    quotes: "\201C" "\201D";
}

.blog-post__content blockquote > :last-child {
    margin-bottom: 0;
}

.blog-post__content blockquote > :first-child::before {
    content: open-quote;
}

.blog-post__content blockquote > :last-child::after {
    content: close-quote;
}

.blog-post__content blockquote strong {
    color: inherit;
}

.blog-post__content pre {
    padding: 16px;
    overflow-x: auto;
    background: var(--njorka-dark-blue, #0e2032);
    color: #fff;
}

.blog-post__content table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 1.5em;
}

.blog-post__content th,
.blog-post__content td {
    padding: 10px 12px;
    border: 1px solid var(--njorka-light-gray, #e0e1e1);
    text-align: left;
}

/* ---- Call to action under the content ------------------------------- */

.blog-cta {
    margin-top: 48px;
    padding: 32px 36px;
    background: var(--njorka-dark-blue, #0e2032);
    color: #fff;
    border-left: 4px solid var(--njorka-light-blue, #56c9f4);
}

.blog-cta__title {
    margin: 0 0 12px;
    font-size: 1.5rem !important;
    font-weight: 700;
    color: #fff;
    text-align: left !important;
}

.blog-cta__text {
    margin: 0 0 12px;
    font-size: 1.05rem;
    line-height: 1.7;
    opacity: .85;
}

.blog-cta__action {
    margin: 0 0 24px;
    font-size: 1.05rem;
    line-height: 1.7;
    font-weight: 600;
}

.blog-cta__button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    background: var(--njorka-light-blue, #56c9f4);
    color: var(--njorka-dark-blue, #0e2032);
    font-weight: 700;
    text-decoration: none;
    transition: background var(--duration-fast, 150ms) ease;
}

.blog-cta__button:hover {
    background: var(--njorka-light-blue-hover, #3db5ea);
    color: var(--njorka-dark-blue, #0e2032);
}

@media (max-width: 767px) {
    .blog-cta {
        padding: 24px 20px;
    }
}

.blog-post__foot {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--njorka-light-gray, #e0e1e1);
}

.blog-post__share-label {
    margin-right: auto;
    font-size: .9rem;
    font-weight: 600;
    color: var(--color-text-secondary, #666);
}

.blog-post__share {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--njorka-light-gray, #e0e1e1);
    color: var(--njorka-dark-blue, #0e2032);
    font-size: 1.1rem;
    text-decoration: none;
    transition: all var(--duration-normal, 250ms) ease;
}

.blog-post__share:hover {
    background: var(--njorka-dark-blue, #0e2032);
    border-color: var(--njorka-dark-blue, #0e2032);
    color: #fff;
}

/* ---- Sidebar boxes ---------------------------------------------------- */

.blog-box,
.blog-subscribe,
.blog-index {
    background: #fff;
    border: 1px solid var(--njorka-light-gray, #e0e1e1);
    box-shadow: 0 1px 10px rgba(193, 193, 193, .3);
}

.blog-box {
    padding: 20px 22px;
}

.blog-box__title {
    margin: 0 0 14px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--njorka-dark-blue, #0e2032);
    text-align: left;
}

.blog-box__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Subscribe */
.blog-subscribe {
    padding: 24px 22px;
    border-top: 4px solid var(--njorka-light-blue, #56c9f4);
}

.blog-subscribe__title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--njorka-dark-blue, #0e2032);
    margin: 0 0 6px;
    text-align: left;
}

.blog-subscribe__text {
    margin: 0 0 16px;
    font-size: .95rem;
    color: var(--color-text-secondary, #666);
}

.blog-subscribe__form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.blog-subscribe__decoy {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.blog-subscribe__label {
    font-size: .85rem;
    font-weight: 600;
    color: var(--njorka-dark-blue, #0e2032);
}

.blog-subscribe__input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--njorka-light-gray, #e0e1e1);
    font: inherit;
    color: var(--color-text, #333);
    background: #fff;
}

.blog-subscribe__input:focus {
    outline: none;
    border-color: var(--njorka-light-blue, #56c9f4);
    box-shadow: 0 0 0 3px rgba(var(--njorka-light-blue-rgb, 86, 201, 244), .25);
}

.blog-subscribe__consent {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: .85rem;
    line-height: 1.45;
    color: var(--color-text-secondary, #666);
}

.blog-subscribe__consent input {
    margin-top: 3px;
    flex: none;
}

.blog-subscribe__consent a {
    color: var(--njorka-light-blue-hover, #3db5ea);
}

.blog-subscribe__error {
    display: none;
    font-size: .85rem;
    color: #c0392b;
}

.blog-subscribe__error.visible,
.blog-subscribe__error:not(:empty) {
    display: block;
}

.blog-subscribe__submit {
    margin-top: 4px;
    padding: 12px 20px;
    background: var(--njorka-light-blue, #56c9f4);
    color: var(--njorka-dark-blue, #0e2032);
    border: 1px solid transparent;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: background var(--duration-normal, 250ms) ease;
}

.blog-subscribe__submit:hover {
    background: var(--njorka-light-blue-hover, #3db5ea);
}

.blog-subscribe__submit[disabled] {
    opacity: .6;
    cursor: wait;
}

/* Index (Kazalo) */
.blog-index__head {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border: 0;
    border-bottom: 1px solid var(--njorka-light-gray, #e0e1e1);
    background: var(--njorka-dark-blue, #0e2032);
    color: #fff;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.blog-index__head:hover .blog-index__toggle {
    color: #fff;
}

.blog-index__toggle {
    flex: none;
    color: var(--njorka-light-blue, #56c9f4);
    font-size: 1.05rem;
    line-height: 1;
}

.blog-index__title {
    flex: 1;
    text-align: center;
    font-weight: 700;
    letter-spacing: .02em;
    padding-right: 26px; /* balance the toggle so the title sits centred */
}

.blog-index__list {
    list-style: none;
    margin: 0;
    padding: 6px 0;
    max-height: calc(100vh - 460px);
    min-height: 60px;
    overflow-y: auto;
    scrollbar-width: thin;
}

.blog-index.is-collapsed .blog-index__list {
    display: none;
}

.blog-index.is-collapsed .blog-index__head {
    border-bottom: 0;
}

.blog-index__item a {
    display: block;
    padding: 9px 16px 9px 14px;
    color: var(--color-text, #333);
    text-decoration: none;
    font-size: .95rem;
    line-height: 1.4;
    border-left: 3px solid transparent;
    transition: background var(--duration-normal, 250ms) ease, color var(--duration-normal, 250ms) ease;
}

.blog-index__item--l3 a {
    padding-left: 30px;
    font-size: .88rem;
    color: var(--color-text-secondary, #666);
}

.blog-index__item a:hover {
    background: var(--color-surface, #f8f9fa);
    color: var(--njorka-dark-blue, #0e2032);
}

.blog-index__item.is-active a {
    border-left-color: var(--njorka-light-blue, #56c9f4);
    background: rgba(var(--njorka-light-blue-rgb, 86, 201, 244), .1);
    color: var(--njorka-dark-blue, #0e2032);
    font-weight: 600;
}

/* ---- Responsive ------------------------------------------------------- */

@media (max-width: 1199px) {
    .blog-hero--post .blog-hero__inner {
        padding-right: 0;
    }
}

@media (max-width: 991px) {
    .blog-page__inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .blog-page__side {
        align-self: auto;
    }

    /* Overview on one column: the filter box goes above the posts, the
       subscribe box stays below them. */
    .blog-page:not(.blog-page--single) .blog-page__side {
        display: contents;
    }

    .blog-page:not(.blog-page--single) .blog-filter {
        order: -1;
    }

    .blog-page--single .blog-page__side {
        padding-top: 0;
    }

    .blog-page--single .blog-page__inner {
        margin-top: -48px;
    }

    .blog-hero--post {
        padding-top: 40px;
        padding-bottom: 96px;
    }

    .blog-index__list {
        max-height: none;
    }

    .blog-card--featured {
        grid-template-columns: minmax(0, 1fr);
    }

    .blog-card--featured .blog-card__media {
        aspect-ratio: 16 / 9;
        min-height: 0;
        height: auto;
    }

    .blog-post {
        padding: 32px 28px;
    }

    .blog-post__image {
        margin: -32px -28px 28px;
        width: calc(100% + 56px);
    }
}

@media (max-width: 767px) {
    .blog-hero {
        padding: 120px 20px 56px;
    }

    .blog-hero--post {
        padding-top: 40px;
    }

    .blog-page {
        padding: 40px 16px 64px;
    }

    .blog-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .blog-card__body,
    .blog-card--featured .blog-card__body {
        padding: 20px;
    }

    .blog-card--featured .blog-card__title {
        font-size: 1.4rem !important;
    }

    .blog-post {
        padding: 24px 18px;
    }

    .blog-post__image {
        margin: -24px -18px 24px;
        width: calc(100% + 36px);
    }

    .blog-post__content h2 {
        font-size: 1.4rem !important;
    }

    .blog-section-head__title {
        white-space: normal;
    }
}

button.blog-post__share {
    background: #fff;
    cursor: pointer;
    font: inherit;
}

.blog-card[data-href] {
    cursor: pointer;
}

/* ---- Wide subscribe band under the post ------------------------------- */

.blog-subscribe--wide {
    margin-top: 32px;
    padding: 40px 44px;
    border: 0;
    border-top: 0;
    background: linear-gradient(135deg, var(--njorka-dark-blue, #0e2032) 0%, #1d3f5f 100%);
    color: #fff;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px 48px;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.blog-subscribe--wide::after {
    content: "";
    position: absolute;
    inset: -120px;
    background: url("/storage/app/media/images/njorka-triangles-extended.svg") center / cover repeat;
    opacity: .12;
    transform: rotate(-15deg);
    pointer-events: none;
}

.blog-subscribe--wide > * {
    position: relative;
    z-index: 1;
}

.blog-subscribe--wide .blog-subscribe__title {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.blog-subscribe--wide .blog-subscribe__text {
    color: rgba(255, 255, 255, .8);
    margin: 0;
    font-size: 1rem;
}

.blog-subscribe--wide .blog-subscribe__label {
    color: #fff;
}

.blog-subscribe--wide .blog-subscribe__input {
    border-color: rgba(255, 255, 255, .25);
    background: rgba(255, 255, 255, .06);
    color: #fff;
}

.blog-subscribe--wide .blog-subscribe__input::placeholder {
    color: rgba(255, 255, 255, .45);
}

.blog-subscribe--wide .blog-subscribe__consent {
    color: rgba(255, 255, 255, .75);
}

.blog-subscribe--wide .blog-subscribe__consent a {
    color: var(--njorka-light-blue, #56c9f4);
}

.blog-subscribe--wide .blog-subscribe__error {
    color: #ff9b8f;
}

@media (max-width: 767px) {
    .blog-subscribe--wide {
        grid-template-columns: minmax(0, 1fr);
        padding: 28px 20px;
    }
}

/* Kazalo bloga is a desktop aid; on phones the sidebar sits under the article
   where a heading list has no use. */
@media (max-width: 991px) {
    .blog-page--single .blog-page__side .blog-index {
        display: none;
    }
}

/* ---- Inline "Vsebina" box at the top of the article (phones/tablets) ------ */

.blog-index--inline {
    display: none;
    margin: 0 0 28px;
    box-shadow: none;
}

.blog-index--inline .blog-index__head {
    background: var(--color-surface, #f8f9fa);
    color: var(--njorka-dark-blue, #0e2032);
}

.blog-index--inline .blog-index__toggle {
    color: var(--njorka-dark-blue, #0e2032);
}

.blog-index--inline .blog-index__title {
    text-align: left;
    padding-right: 0;
}

.blog-index--inline .blog-index__list {
    max-height: none;
    min-height: 0;
}

@media (max-width: 991px) {
    .blog-index--inline {
        display: block;
    }
}

/* ---- Scroll cue under the hero count (mouse + wheel, light on dark) ------- */

.blog-scroll {
    display: flex;
    justify-content: center;
    margin: 36px auto 0;
    width: max-content;
    text-decoration: none;
}

.blog-scroll__mouse {
    display: flex;
    justify-content: center;
    width: 21px;
    height: 33px;
    padding-top: 6px;
    border: 1.5px solid rgba(255, 255, 255, .45);
    border-radius: 11px;
    transition: border-color var(--duration-normal, 250ms) var(--ease-standard, ease);
}

.blog-scroll__wheel {
    width: 2.5px;
    height: 6px;
    border-radius: 2px;
    background: var(--njorka-light-blue, #56c9f4);
    animation: blog-wheel 1.9s ease-in-out infinite;
}

@keyframes blog-wheel {
    0%   { transform: translateY(0);    opacity: 0; }
    20%  { opacity: 1; }
    70%  { transform: translateY(12px); opacity: .2; }
    100% { transform: translateY(12px); opacity: 0; }
}

.blog-scroll:hover .blog-scroll__mouse,
.blog-scroll:focus-visible .blog-scroll__mouse {
    border-color: #fff;
}

.blog-scroll:focus-visible {
    outline: 3px solid var(--njorka-light-blue, #56c9f4);
    outline-offset: 4px;
}

#blog-posts {
    scroll-margin-top: 90px;
}

@media (max-width: 767px) {
    .blog-scroll {
        margin-top: 28px;
    }
}

/* ---- Swipe-up variant of the scroll cue (touch screens) ------------------- */

.blog-scroll__swipe {
    display: none;
    position: relative;
    width: 44px;
    height: 56px;
}

/* Phone body */
.blog-scroll__phone {
    position: absolute;
    left: 6px;
    top: 0;
    width: 30px;
    height: 52px;
    border: 1.5px solid rgba(255, 255, 255, .6);
    border-radius: 6px;
    overflow: hidden;
}

/* Speaker slit at the top, home bar at the bottom */
.blog-scroll__phone::before,
.blog-scroll__phone::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    height: 2px;
    border-radius: 1px;
    background: rgba(255, 255, 255, .5);
}

.blog-scroll__phone::before { top: 4px; width: 8px; }
.blog-scroll__phone::after  { bottom: 3px; width: 10px; }

/* Swipe trail on the screen: anchored where the finger lands, it grows
   upward behind the fingertip - bright at the top (the finger), fading
   toward the start point below. */
.blog-scroll__trail {
    position: absolute;
    left: 50%;
    bottom: 10px;
    width: 3px;
    height: 28px;
    margin-left: -1.5px;
    border-radius: 2px;
    background: linear-gradient(to bottom, var(--njorka-light-blue, #56c9f4), rgba(86, 201, 244, 0));
    transform-origin: 50% 100%;
    animation: blog-trail 2s ease-in-out infinite;
}

/* Pointing hand, sits over the lower part of the screen and swipes up */
.blog-scroll__hand {
    position: absolute;
    left: 20px;
    bottom: 0;
    font-size: 1.35rem;
    line-height: 1;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, .35);
    transform-origin: 50% 100%;
    animation: blog-hand 2s ease-in-out infinite;
}

@keyframes blog-hand {
    0%   { transform: translateY(6px) rotate(-22deg);   opacity: 0; }
    15%  { transform: translateY(4px) rotate(-22deg);   opacity: 1; }
    65%  { transform: translateY(-18px) rotate(-14deg); opacity: 1; }
    85%  { transform: translateY(-24px) rotate(-14deg); opacity: 0; }
    100% { transform: translateY(-24px) rotate(-14deg); opacity: 0; }
}

@keyframes blog-trail {
    0%, 15%   { transform: scaleY(0); opacity: 0; }
    25%       { opacity: .9; }
    65%       { transform: scaleY(1); opacity: .8; }
    85%, 100% { transform: scaleY(1); opacity: 0; }
}

@media (max-width: 991px), (hover: none) and (pointer: coarse) {
    .blog-scroll__mouse {
        display: none;
    }

    .blog-scroll__swipe {
        display: block;
    }
}

/* ---- Post hero with the featured image as background ---------------------- */

.blog-hero--image {
    position: relative;
    overflow: hidden;
    background-color: var(--njorka-dark-blue, #0e2032) !important;
}

.blog-hero--image::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--hero-image) center / cover no-repeat;
    z-index: 0;
}

/* Dark wash so the white title stays readable on any photo. */
.blog-hero--image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(14, 32, 50, .55) 0%, rgba(14, 32, 50, .85) 100%);
    z-index: 0;
}

.blog-hero--image .blog-hero__inner {
    position: relative;
    z-index: 1;
}

.blog-hero--image .blog-hero__title {
    text-shadow: 0 2px 12px rgba(0, 0, 0, .35);
}
