/* =========================================================
   FASHIONSTORE — HOMEPAGE NEWS / JOURNAL
   GLOBAL NEWS COMPONENT
   ========================================================= */

.home-news-section {
    padding: 90px 0 100px;
}

.home-news-section .container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}


/* =========================================================
   HEADER
   ========================================================= */

.home-news-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 50px;
}

.home-news-kicker {
    display: block;
    margin-bottom: 12px;

    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
}

.home-news-header h2 {
    margin: 0;

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 400;
    line-height: 1.1;
}


/* =========================================================
   VIEW ALL
   ========================================================= */

.home-news-view-all {
    display: inline-block;

    padding: 12px 22px;

    border: 1px solid currentColor;

    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;

    text-decoration: none;

    transition:
        background .3s ease,
        color .3s ease,
        border-color .3s ease;
}


/* =========================================================
   GRID
   ========================================================= */

.home-news-grid {
    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 28px;

    align-items: stretch;
}


/* =========================================================
   CARD
   ========================================================= */

.home-news-card {
    display: flex;
    flex-direction: column;

    min-width: 0;

    overflow: hidden;

    border: 1px solid rgba(0, 0, 0, .12);

    transition:
        transform .35s ease,
        background .35s ease,
        color .35s ease,
        border-color .35s ease,
        box-shadow .35s ease;
}


/* =========================================================
   IMAGE — ALWAYS 1:1
   ========================================================= */

.home-news-image {
    position: relative;

    display: block;

    width: 100%;

    aspect-ratio: 1 / 1;

    overflow: hidden;
}

.home-news-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform .6s ease;
}

.home-news-image-placeholder {
    width: 100%;
    height: 100%;
}


/* =========================================================
   CONTENT
   ========================================================= */

.home-news-content {
    display: flex;
    flex-direction: column;
    flex: 1;

    padding: 26px 26px 28px;
}

.home-news-date {
    display: block;

    margin-bottom: 12px;

    font-size: 11px;
    line-height: 1.4;
    letter-spacing: .05em;
}

.home-news-content h3 {
    margin: 0;

    font-family: Georgia, "Times New Roman", serif;

    font-size: 25px;
    font-weight: 400;
    line-height: 1.25;
}

.home-news-content h3 a {
    text-decoration: none;
}


/* =========================================================
   READ MORE
   Tombol selalu sejajar di bagian bawah kartu
   ========================================================= */

.home-news-read-more {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;

    min-height: 46px;

    margin-top: auto;
    padding: 12px 18px;

    border: 1px solid currentColor;

    font-size: 10px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;

    text-decoration: none;

    transition:
        background .3s ease,
        color .3s ease,
        border-color .3s ease;
}


/* =========================================================
   IMAGE HOVER
   ========================================================= */

.home-news-card:hover .home-news-image img {
    transform: scale(1.05);
}


/* =========================================================
   EMPTY STATE
   ========================================================= */

.home-news-empty {
    grid-column: 1 / -1;

    padding: 60px 20px;

    text-align: center;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .home-news-section {
        padding: 70px 0 80px;
    }

    .home-news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .home-news-section {
        padding: 60px 0 70px;
    }

    .home-news-section .container {
        width: min(100% - 30px, 520px);
    }

    .home-news-header {
        display: block;

        margin-bottom: 35px;
    }

    .home-news-header h2 {
        font-size: 34px;
    }

    .home-news-view-all {
        margin-top: 20px;
    }

    .home-news-grid {
        grid-template-columns: 1fr;

        gap: 24px;
    }

    .home-news-content {
        padding: 22px 22px 24px;
    }

    .home-news-content h3 {
        font-size: 23px;
    }

}

/* =========================================================
   HOMEPAGE NEWS — HOVER EFFECT
   ========================================================= */

.home-news-section .home-news-card {
    transition:
        transform 0.35s ease,
        background-color 0.35s ease,
        border-color 0.35s ease,
        box-shadow 0.35s ease;
}


/* Card hover */

.home-news-section .home-news-card:hover {
    background: #292522;
    color: #ffffff;

    transform: translateY(-10px);

    border-color: #292522;

    box-shadow:
        0 24px 50px rgba(45, 35, 25, 0.18);
}


/* Image zoom */

.home-news-section .home-news-card .home-news-image {
    overflow: hidden;
}

.home-news-section .home-news-card .home-news-image img {
    transition: transform 0.5s ease;
}

.home-news-section .home-news-card:hover .home-news-image img {
    transform: scale(1.07);
}


/* Image overlay */

.home-news-section .home-news-card .home-news-image {
    position: relative;
}

.home-news-section .home-news-card:hover .home-news-image::after {
    content: "";
    position: absolute;
    inset: 0;

    background: rgba(35, 29, 25, 0.08);

    pointer-events: none;
}


/* Content */

.home-news-section .home-news-card .home-news-content {
    transition: color 0.35s ease;
}


/* Date */

.home-news-section .home-news-card .home-news-date {
    transition: color 0.35s ease;
}

.home-news-section .home-news-card:hover .home-news-date {
    color: #c9aa7a;
}


/* Title */

.home-news-section .home-news-card .home-news-content h3,
.home-news-section .home-news-card .home-news-content h3 a {
    transition: color 0.35s ease;
}

.home-news-section .home-news-card:hover .home-news-content h3,
.home-news-section .home-news-card:hover .home-news-content h3 a {
    color: #ffffff;
}


/* Read More */

.home-news-section .home-news-card .home-news-read-more {
    transition:
        color 0.35s ease,
        background-color 0.35s ease,
        border-color 0.35s ease;
}

.home-news-section .home-news-card:hover .home-news-read-more {
    border-color: #c9aa7a;
    color: #c9aa7a;
}


/* Read More hover */

.home-news-section .home-news-card:hover .home-news-read-more:hover {
    background: #c9aa7a;
    border-color: #c9aa7a;
    color: #24211e;
}


/* =========================================================
   HOMEPAGE NEWS — RESPONSIVE
   ========================================================= */

/* TABLET */
@media (max-width: 991px) {

    .home-news-section .home-news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }

    .home-news-section .home-news-header {
        margin-bottom: 40px;
    }

}


/* MOBILE */
@media (max-width: 767px) {

    .home-news-section {
        padding-top: 70px;
        padding-bottom: 70px;
    }

    .home-news-section .home-news-header {
        text-align: center;
        margin-bottom: 35px;
    }

    .home-news-section .home-news-header h2 {
        font-size: 34px;
        line-height: 1.2;
    }

    .home-news-section .home-news-view-all {
        display: inline-block;
        margin-top: 18px;
    }


    /* One card per row */

    .home-news-section .home-news-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }


    /* Card */

    .home-news-section .home-news-card {
        width: 100%;
        transform: none;
    }


    /* Image */

    .home-news-section .home-news-image {
        width: 100%;
        aspect-ratio: 1 / 1;
    }

    .home-news-section .home-news-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }


    /* Content */

    .home-news-section .home-news-content {
        padding: 25px 22px 28px;
    }


    /* Date */

    .home-news-section .home-news-date {
        font-size: 13px;
    }


    /* Title */

    .home-news-section .home-news-content h3 {
        font-size: 23px;
        line-height: 1.35;
        margin-top: 9px;
        margin-bottom: 22px;
    }


    /* Button */

    .home-news-section .home-news-read-more {
        width: 100%;
        text-align: center;
        display: block;
    }


    /*
     * Mobile tidak menggunakan efek
     * translate agar card tidak bergeser
     * saat disentuh.
     */

    .home-news-section .home-news-card:hover {
        transform: none;
    }

}