/* Design: html-design/index.html */
/* =========================================
   SECTION
========================================= */

.top-rated-magazine-section {
    width: 100%;
    padding: 100px 0;
    background: #ffffff;
    overflow: hidden;
}


/* =========================================
   HEADING
========================================= */

.magazine-section-label {
    display: inline-block;

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 3px;
    text-transform: uppercase;

    color: #777;

    margin-bottom: 14px;
}


.magazine-section-title {
    margin: 0;

    font-size: 48px;
    line-height: 1.15;

    font-weight: 400;

    color: #171717;
}


.magazine-section-title span {
    font-weight: 700;
}


.magazine-section-description {
    max-width: 620px;

    margin: 18px auto 0;

    font-size: 16px;
    line-height: 1.7;

    color: #777;
}


/* =========================================
   MAGAZINE CARD
========================================= */

.magazine-card {
    width: 100%;

    position: relative;

    transition:
        transform 0.4s ease;
}


/* =========================================
   IMAGE WRAPPER
========================================= */

.magazine-image-wrap {
    width: 100%;

    aspect-ratio: 0.70;

    position: relative;

    overflow: hidden;

    background: #eeeeee;

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.12);

    transition:
        box-shadow 0.4s ease,
        transform 0.4s ease;
}


/* =========================================
   IMAGE
========================================= */

.magazine-image-wrap img {
    width: 100%;
    height: 100%;

    /*object-fit: cover;*/

    display: block;

    transition:
        transform 0.6s ease;
}


/* =========================================
   HOVER
========================================= */

.magazine-card:hover {
    transform: translateY(-10px);
}


.magazine-card:hover .magazine-image-wrap {
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.18);
}


.magazine-card:hover img {
    transform: scale(1.05);
}


/* =========================================
   OVERLAY
========================================= */

.magazine-overlay {
    position: absolute;

    inset: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    background: rgba(0, 0, 0, 0.38);

    opacity: 0;

    transition:
        opacity 0.4s ease;
}


.magazine-card:hover .magazine-overlay {
    opacity: 1;
}


/* =========================================
   VIEW BUTTON
========================================= */

.magazine-view-btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 11px 18px;

    background: #ffffff;

    color: #171717;

    text-decoration: none;

    font-size: 12px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.5px;

    transition:
        background 0.3s ease,
        color 0.3s ease;
}


.magazine-view-btn:hover {
    background: #171717;

    color: #ffffff;
}


/* =========================================
   VIEW ALL BUTTON
========================================= */

.magazine-all-btn {
    display: inline-flex;

    align-items: center;

    gap: 12px;

    padding: 14px 26px;

    border: 1px solid #171717;

    color: #171717;

    text-decoration: none;

    font-size: 14px;

    font-weight: 600;

    transition:
        all 0.3s ease;
}


.magazine-all-btn span {
    font-size: 18px;

    line-height: 1;

    transition:
        transform 0.3s ease;
}


.magazine-all-btn:hover {
    background: #171717;

    color: #ffffff;
}


.magazine-all-btn:hover span {
    transform: translateX(5px);
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 991.98px) {

    .top-rated-magazine-section {
        padding: 80px 0;
    }


    .magazine-section-title {
        font-size: 40px;
    }


    .magazine-section-description {
        font-size: 15px;
    }


    .magazine-image-wrap {
        aspect-ratio: 0.70;
    }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 575.98px) {

    .top-rated-magazine-section {
        padding: 65px 0;
    }


    .magazine-section-label {
        font-size: 10px;

        letter-spacing: 2px;

        margin-bottom: 10px;
    }


    .magazine-section-title {
        font-size: 30px;
    }


    .magazine-section-description {
        font-size: 14px;

        line-height: 1.6;

        margin-top: 14px;

        padding: 0 10px;
    }


    .top-rated-magazine-section .row.g-4 {
        --bs-gutter-x: 16px;
        --bs-gutter-y: 25px;
    }


    .magazine-card:hover {
        transform: none;
    }


    .magazine-card:hover img {
        transform: none;
    }


    /* Mobile overlay always subtle */
    .magazine-overlay {
        display: none;
    }


    .magazine-all-btn {
        padding: 12px 20px;

        font-size: 13px;
    }

}
