/* =========================================================
   DIVILEN NEWSROOM
   Desktop-first corporate editorial design
========================================================= */

:root {
    --news-bg: #f4efe7;
    --news-bg-light: #f8f4ed;

    --news-text: #171614;
    --news-muted: #5f5a53;

    --news-gold: #ad7c35;

    --news-border: rgba(29, 25, 20, 0.14);
    --news-border-soft: rgba(29, 25, 20, 0.08);
}



/* =========================================================
   PAGE
========================================================= */

body {
    background: var(--news-bg);
}

#main-content {
    background: var(--news-bg);
}



/* =========================================================
   NEWS HERO
========================================================= */

.news-hero {
    position: relative;

    width: 100%;
    height: 470px;

    overflow: hidden;
    isolation: isolate;

    background:
        linear-gradient(
            90deg,
            rgba(247, 240, 230, 0.22) 0%,
            rgba(247, 240, 230, 0.08) 55%,
            rgba(215, 198, 178, 0.08) 100%
        ),
        #eee3d4;

    border-bottom: 1px solid rgba(91, 82, 72, 0.16);
}


/* cijeli hero postoji normalno iza navbar-a */

.news-hero__inner {
    position: relative;

    width: min(100% - 12vw, 1560px);
    height: 100%;

    margin-inline: auto;
}


/* =========================
   HERO CONTENT
========================= */

.news-hero__content {
    position: absolute;
    z-index: 2;

    top: 150px;
    left: 0;

    color: #292722;
}


.news-hero__breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;

    margin: 0 0 20px;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 10px;
    font-weight: 700;

    line-height: 1;

    letter-spacing: 0.16em;
    text-transform: uppercase;

    color: #587494;
}


.news-hero h1 {
    margin: 0;

    font-family:
        "Bodoni MT",
        Didot,
        "Times New Roman",
        serif;

    font-size: clamp(62px, 5vw, 82px);
    font-weight: 400;

    line-height: 0.9;
    letter-spacing: -0.035em;

    color: #292722;
}


.news-hero__description {
    max-width: 36ch;

    margin: 25px 0 0;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    font-weight: 400;

    line-height: 1.55;

    color: #4d4841;
}


.news-hero__line {
    display: block;

    width: 52px;
    height: 1px;

    margin-top: 24px;

    background: #7892ad;
}


/* =========================
   DIVILEN MARK
========================= */

.news-hero__mark {
    position: absolute;
    z-index: 1;

    top: 50%;
    right: 1.5vw;

    width: clamp(230px, 21vw, 340px);

    transform: translateY(-42%);

    pointer-events: none;
    user-select: none;

    opacity: 1;
}

.news-hero__mark img {
    display: block;

    width: 100%;
    height: auto;

    object-fit: contain;

    filter: none;
}


/* =========================================================
   NEWS HERO — TABLET
========================================================= */

@media (max-width: 900px) {

    .news-hero {
        height: 360px;
    }

    .news-hero__inner {
        width: min(100% - 10vw, 720px);
    }

    .news-hero__content {
        top: 122px;
    }

    .news-hero__mark {
        right: -20px;

        width: 280px;

        opacity: 1;
    }
}


/* =========================================================
   NEWS HERO — MOBILE
========================================================= */

@media (max-width: 520px) {

    .news-hero {
        height: 345px;
    }

    .news-hero__inner {
        width: calc(100% - 40px);
    }

    .news-hero__content {
        top: 105px;
        left: 0;

        width: calc(100% - 125px);
    }

    .news-hero h1 {
        font-size: 52px;
    }

    .news-hero__description {
        max-width: 21ch;
    }

    .news-hero__mark {
        display: none;
    }    
}

/* =========================================================
   FEATURED
========================================================= */

.news-featured {
    width: 100%;

    padding:
        0
        clamp(30px, 3vw, 48px);

    background: var(--news-bg);
}


.news-featured-card {
    width: 100%;
    max-width: 1540px;

    margin: 0 auto;

    display: grid;
    grid-template-columns: 1.08fr 0.92fr;

    border: 1px solid var(--news-border);

    background: var(--news-bg-light);

    color: inherit;
    text-decoration: none;
}


.news-featured-image {
    width: 100%;

    aspect-ratio: 16 / 9;

    overflow: hidden;
}


.news-featured-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    transition: transform 0.75s cubic-bezier(.2, .7, .2, 1);
}


.news-featured-card:hover
.news-featured-image img {
    transform: scale(1.015);
}


.news-featured-content {
    padding: 38px 52px;

    display: flex;
    flex-direction: column;
    justify-content: center;
}



/* =========================================================
   FEATURED META
========================================================= */

.news-meta {
    display: flex;

    align-items: center;

    gap: 13px;

    margin-bottom: 25px;

    font-size: 11px;

    text-transform: uppercase;

    letter-spacing: 0.055em;
}


.news-meta-category {
  color: #7892ad;

  font-weight: 600;
}


.news-meta time {
    color: #56514b;
}


.news-meta-separator {
    display: inline-block;

    width: 13px;
    height: 1px;

    background:
        rgba(20, 20, 20, 0.28);
}



/* =========================================================
   FEATURED TEXT
========================================================= */

.news-featured-content h2 {
    max-width: 620px;

    margin: 0;

    color: var(--news-text);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:
        clamp(34px, 3vw, 50px);

    font-weight: 400;

    line-height: 1.08;

    letter-spacing: -0.025em;
}


.news-featured-content > p {
    max-width: 510px;

    margin: 27px 0 0;

    color: #38342f;

    font-size: 15px;

    line-height: 1.55;
}



/* =========================================================
   READ STORY
========================================================= */

.news-read-link {
    width: fit-content;
    margin-top: 25px;
    padding-bottom: 4px;
    display: inline-flex;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid #7892ad;
    color: #171614;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.07em;
}

.news-read-link span {
  color: #7892ad;
  font-size: 16px;
}

/* =========================================================
   TOOLBAR
========================================================= */

.news-toolbar {
    width: calc(100% - 96px);

    max-width: 1540px;

    margin: 0 auto;

    scroll-margin-top: 78px;

    padding:
        27px 0
        25px;

    display: flex;

    justify-content: space-between;

    align-items: center;

    border-bottom:
        1px solid
        var(--news-border-soft);
}



/* =========================================================
   FILTERS
========================================================= */

.news-filters {
    display: flex;

    align-items: center;

    gap:
        clamp(28px, 3vw, 55px);
}


.news-filter {
    position: relative;

    padding:
        6px 0
        10px;

    color: #171614;

    font-size: 12px;

    font-weight: 500;

    letter-spacing: 0.035em;

    text-decoration: none;
}


.news-filter::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    width: 0;
    height: 1px;

    background: #7892ad;

    transition:
        width
        0.2s ease;
}


.news-filter:hover::after {
    width: 18px;
}


.news-filter.active::after {
    width: 22px;
}



/* =========================================================
   SORT
========================================================= */

.news-sort {
    position: relative;
}


.news-sort-button {
    padding: 5px 0;

    display: flex;

    align-items: center;

    gap: 13px;

    border: 0;

    background: transparent;

    color: #171614;

    cursor: pointer;
}


.news-sort-button span {
    font-size: 11px;

    letter-spacing: 0.05em;
}


.news-sort-button svg {
    width: 13px;
    height: 13px;

    fill: none;

    stroke: currentColor;

    stroke-width: 1.4;

    stroke-linecap: round;

    stroke-linejoin: round;

    transition:
        transform
        0.2s ease;
}


.news-sort.open
.news-sort-button svg {
    transform:
        rotate(180deg);
}


.news-sort-menu {
    position: absolute;

    z-index: 50;

    top: calc(100% + 12px);
    right: 0;

    width: 130px;

    padding: 7px;

    border:
        1px solid
        var(--news-border);

    background: #f8f4ed;

    box-shadow:
        0 14px 32px
        rgba(0, 0, 0, 0.07);

    opacity: 0;

    visibility: hidden;

    transform:
        translateY(-6px);

    transition:
        0.18s ease;
}


.news-sort.open
.news-sort-menu {
    opacity: 1;

    visibility: visible;

    transform:
        translateY(0);
}


.news-sort-menu a {
    display: block;

    padding: 10px;

    color: #171614;

    font-size: 11px;

    text-decoration: none;
}


.news-sort-menu a:hover {
    background:
        rgba(0, 0, 0, 0.035);
}



/* =========================================================
   NEWS RESULTS
========================================================= */

#newsResults {
    background: var(--news-bg);
}



/* =========================================================
   GRID
========================================================= */

.news-grid-section {
    width: calc(100% - 96px);

    max-width: 1540px;

    margin: 0 auto;

    padding:
        0 0
        45px;

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap:
        20px 20px;

    background: transparent;
}



/* =========================================================
   CARD
========================================================= */

.news-card {
    min-width: 0;

    display: flex;

    flex-direction: column;

    border:
        1px solid
        var(--news-border);

    background:
        rgba(248, 244, 237, 0.55);
}


.news-card-image {
    display: block;

    height:
        clamp(220px, 18vw, 290px);

    overflow: hidden;
}


.news-card-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition:
        transform
        0.75s
        cubic-bezier(.2, .7, .2, 1);
}


.news-card:hover
.news-card-image img {
    transform:
        scale(1.018);
}



/* =========================================================
   CARD CONTENT
========================================================= */

.news-card-content {
    min-height: 225px;

    padding:
        20px 22px
        21px;

    display: flex;

    flex-direction: column;
}


.news-card-meta {
    display: flex;

    align-items: center;

    gap: 10px;

    margin-bottom: 12px;

    font-size: 10px;

    text-transform: uppercase;

    letter-spacing: 0.045em;
}


.news-card-meta > span:first-child {
    color: #7892ad;

    font-weight: 600;
}


.news-card-meta time {
    color: #625d57;
}


.news-card-content h2 {
    margin: 0;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:
        clamp(20px, 1.5vw, 25px);

    font-weight: 400;

    line-height: 1.18;

    letter-spacing: -0.015em;
}


.news-card-content h2 a {
    color: var(--news-text);

    text-decoration: none;
}



/* =========================================================
   CARD READ LINK
========================================================= */

.news-card-read {
    width: fit-content;

    margin-top: auto;

    padding-top: 26px;
    padding-bottom: 3px;

    display: inline-flex;

    align-items: center;

    gap: 13px;

    border-bottom:
      1px solid
      #7892ad;

    color: var(--news-text);

    font-size: 10px;

    font-weight: 600;

    letter-spacing: 0.065em;

    text-decoration: none;
}


.news-card-read span {
    color: #7892ad;

    font-size: 15px;
}



/* =========================================================
   EMPTY
========================================================= */

.news-empty {
    grid-column: 1 / -1;

    padding: 80px 0;

    text-align: center;
}


.news-empty h2 {
    margin: 0 0 10px;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-weight: 400;

    font-size: 32px;
}


.news-empty p {
    margin: 0;

    color: var(--news-muted);
}



/* =========================================================
   PAGINATION
========================================================= */

.news-pagination {
    width: calc(100% - 96px);

    max-width: 1540px;

    margin: 0 auto;

    padding:
        3px 0
        56px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 22px;

    background: transparent;
}


.news-page-number,
.news-page-arrow {
    position: relative;

    min-width: 27px;
    height: 34px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    color: #181715;

    text-decoration: none;

    font-size: 13px;

    font-weight: 400;
}


.news-page-number::after {
    content: "";

    position: absolute;

    left: 50%;
    bottom: 0;

    width: 0;
    height: 1px;

    transform:
        translateX(-50%);

    background: #7892ad;
}


.news-page-number:hover::after {
    width: 17px;
}


.news-page-number.active {
    font-weight: 600;
}


.news-page-number.active::after {
    width: 18px;
}


.news-pagination-dots {
    color: #6f6961;

    font-size: 13px;
}


.news-page-arrow {
    margin-left: 2px;

    font-size: 22px;
}



/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1024px) {

    /* FEATURED — zadržava desktop raspored */

    .news-featured-card {
        grid-template-columns:
            minmax(0, 1.08fr)
            minmax(0, 0.92fr);
    }

    .news-featured-image {
        min-height: 0;
        aspect-ratio: 16 / 9;
    }

    .news-featured-content {
        padding: 30px 34px;
    }

    .news-featured-content h2 {
        font-size: clamp(30px, 3.5vw, 40px);
    }

    .news-featured-content > p {
        margin-top: 20px;
        font-size: 14px;
    }


    /* TOOLBAR */

    .news-toolbar {
        align-items: flex-start;
    }

    .news-filters {
        flex-wrap: wrap;
        gap: 15px 28px;
    }


    /* NEWS — 3 U REDU */

    .news-grid-section {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

    .news-card-image {
        height: 200px;
    }

    .news-card-content {
        min-height: 220px;
        padding: 18px 18px 20px;
    }

    .news-card-content h2 {
        font-size: 20px;
    }
}

@media (max-width: 800px) {

    /* NEWS — 2 x 2 x 2 */

    .news-grid-section {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .news-card-image {
        height: 230px;
    }

    .news-card-content {
        min-height: 220px;
    }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    /* =========================================
       HERO
    ========================================= */

    .news-hero {
        height: 330px;
        min-height: 0;
    }

    .news-hero__inner {
        width: calc(100% - 36px);
    }

    .news-hero__content {
        top: 105px;
    }

    .news-hero h1 {
        font-size: clamp(52px, 15vw, 62px);
    }

    .news-hero__description {
        max-width: 25ch;
        margin-top: 20px;
        font-size: 13px;
        line-height: 1.55;
    }

    .news-hero__mark {
        top: 52%;
        right: -80px;
        width: 230px;
    }


    /* =========================================
       FEATURED
    ========================================= */

    .news-featured {
        padding: 0 16px;
    }

    .news-featured-card {
        display: grid;
        grid-template-columns: 1fr;
    }

    .news-featured-image {
        width: 100%;
        min-height: 0;
        aspect-ratio: 16 / 9;
    }

    .news-featured-content {
        padding: 26px 22px 30px;
    }

    .news-featured-content h2 {
        font-size: 30px;
        line-height: 1.05;
    }

    .news-featured-content > p {
        margin-top: 18px;
        font-size: 14px;
    }

    .news-meta {
        margin-bottom: 18px;
    }

    .news-read-link {
        margin-top: 22px;
    }


    /* =========================================
       FILTERS
    ========================================= */

    .news-toolbar {
        width: calc(100% - 32px);

        margin-inline: auto;
        padding: 22px 0;

        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;

        gap: 16px;
        align-items: start;
    }

    .news-filters {
        display: flex;
        flex-wrap: wrap;

        gap: 10px 18px;
    }

    .news-filter {
        font-size: 9px;
        padding-bottom: 8px;
    }

    .news-sort-button span {
        font-size: 9px;
    }


    /* =========================================
       NEWS GRID — 2 / 2 / 2 / 2...
    ========================================= */

    .news-grid-section {
        width: calc(100% - 32px);

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 12px;

        padding-bottom: 36px;
    }

    .news-card-image {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 0.78;
    }

    .news-card-content {
        min-height: 190px;

        padding:
            14px
            13px
            15px;
    }

    .news-card-meta {
        gap: 6px;
        margin-bottom: 10px;

        font-size: 8px;
    }

    .news-card-meta-separator {
        display: none;
    }

    .news-card-content h2 {
        font-size: 17px;
        line-height: 1.15;
    }

    .news-card-read {
        padding-top: 18px;

        gap: 8px;

        font-size: 8px;
    }


    /* =========================================
       PAGINATION
    ========================================= */

    .news-pagination {
        width: calc(100% - 32px);

        justify-content: center;

        gap: 10px;

        padding-bottom: 42px;

        overflow: visible;
    }

    .news-page-number,
    .news-page-arrow {
        min-width: 25px;
    }
}