section.car-magazine-page {
    width: 100%;
    min-height: 100vh;
    position: relative;
    justify-content: start!important;
    gap: 4vw;
    margin-bottom: 5vw;
}

section.car-magazine-page h1 {
    margin-top: 6vw;
    font-size: 3vw;
    color: var(--dark-blue);
}

.latest-news-banners {
    width: 100%;
    height: 30vw;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.frame-banner {
    position: relative;
    overflow: hidden;
}

.frame-banner .banner-card {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 2;
    transition: all 0.3s;
    background-size: cover;
    background-position: center;
}

.latest-news-banners a {
    position: relative;
    z-index: 3;
}

.frame-banner:nth-child(1) .banner-card {
    background-image: url("../images/hyundai_palisade.webp");
}

.frame-banner:nth-child(2) .banner-card {
    background-image: url("../images/dubai-view.jpg");
}

.frame-banner:nth-child(3) .banner-card {
    background-image: url("../images/honda_zrv_review_55.jpg");
}

.frame-banner .banner-details {
    padding: 1vw;
    width: 100%;
    height: 65%;
    background: linear-gradient(to top, rgba(0, 0, 0, 1), transparent);
    position: absolute;
    bottom: 0;
    z-index: 3;
    transition: all 0.3s;
}

.frame-banner:hover .banner-card {
    transform: scale(1.1);
}

.frame-banner:hover .banner-details {
    height: 85%;
}

.frame-banner .banner-details h2 {
    padding: 1vw;
    color: silver;
    transform: translateY(5vw);
}

.frame-banner .banner-details .banner-sub-details {
    padding: 1vw;
    width: 100%;
    transform: translateY(5vw);
    color: silver;
    font-weight: normal;
    justify-content: start;
    font-size: 0.9vw;
    gap: 3vw;
    opacity: 0;
    transition: all 0.3s;
}

.frame-banner:hover .banner-details .banner-sub-details {
    opacity: 1;
}

.frame-banner .banner-details .banner-sub-details span {
    gap: 0.35vw;
}

.car-magazine-main-container {
    padding: 1vw;
    width: 100%;
    gap: 2vw;
    position: relative;
    align-items: start!important;
}

.news-container {
    padding: 1vw;
    width: 60vw;
    height: 20%;
    border-radius: 1vw;
    box-shadow: 0 0 1vw rgba(0, 0, 0, 0.35);
    background: #e1e1e1;
}

.car-magazine-main-container aside {
    padding: 1vw;
    width: 27vw;
    border-radius: 1vw;
    box-shadow: 0 0 1vw rgba(0, 0, 0, 0.35);
    background: #e1e1e1;
    gap: 1vw;
    position: relative;
}

.car-magazine-main-container aside h3 {
    padding: 1vw;
    width: 100%;
    text-align: start;
    border-bottom: 0.1vw solid silver;
}

.aside-news-card {
    padding: 1vw;
    width: 100%;
    position: relative;
    justify-content: space-around;
    border-bottom: 1px dashed rgba(134, 134, 134, 0.35);
}

.aside-news-card figure {
    width: 5vw;
    height: 5vw;
    border-radius: 0.5vw;
    overflow: hidden;
    position: relative;
}

.aside-news-card figure img {
    width: 100%;
    border-radius: 0.5vw;
}

.aside-news-card a {
    display: inline-block;
    width: 70%;
    font-weight: normal;
    font-size: 0.9vw;
    color: var(--dark-blue);
    transition: all 0.2s;
}

.aside-news-card a:hover {
    color: var(--dark-gold);
}

.news-container h3 {
    margin-bottom: 2vw;
    padding: 1vw;
    width: 100%;
    text-align: start;
    border-bottom: 0.1vw solid silver;
}

.card-news {
    padding: 1vw;
    width: 100%;
    height: 12vw;
    gap: 2vw;
    justify-content: space-between!important;
    border-bottom: 0.05vw dashed rgba(117, 117, 117, 0.2);
}

.card-news figure {
    position: relative;
    width: 20%;
    height: 100%;
    background-position: center;
    background-size: 1vw;
    border-radius: 0.5vw;
    overflow: hidden;
}

.card-news figure img {
    width: 100%;
}

.card-news-details {
    padding: 1vw;
    width: 80%;
    height: 100%;
    gap: 1vw;
    justify-content: space-between;
    align-items: start;
}

.card-news-details h4 {
    font-size: 1.2vw;
    color: var(--dark-blue);
}

.card-news-details h4 a {
    transition: all 0.25s;
}

.card-news-details h4:hover a {
    color: var(--dark-gold);
}

.card-news-details p {
    font-weight: normal;
    font-size: 0.85vw;
}

.card-news-sub-details {
    font-weight: normal;
    font-size: 0.8vw;
    color: #363636;
    gap: 1.8vw;
}

.card-news-sub-details span {
    gap: 0.35vw;
}

.card-news-sub-details span:nth-child(1) i {
    color: #007094;
}

.card-news-sub-details span:nth-child(2) i {
    color: #8f0040;
}

nav.pagination {
    margin: 4vw;
    gap: 0.6vw;
}

nav.pagination button {
    padding: 0.2vw;
    width: 2.5vw;
    height: 2.5vw;
    background: #bcc6d9;
    border-radius: 0.5vw;
    cursor: pointer;
    transition: all 0.25s;
}

nav.pagination button i {
    font-size: 1.35vw;
    transform: translateY(0.1vw);
}

nav.pagination button:hover {
    background: #7688a8;
}

nav.pagination button:disabled {
    opacity: 0.8;
}

nav.pagination button:disabled:hover {
    background: #bcc6d9;
}

nav.pagination ul {
    gap: 0.6vw;
}

nav.pagination ul li {
    width: 2.5vw;
    height: 2.5vw;
    background: #bcc6d9;
    border-radius: 0.5vw;
    cursor: pointer;
    font-weight: bolder;
    transition: all 0.25s;
    font-family: "Vazir Black FD", sans-serif;
}

nav.pagination ul li:hover {
    background: #7688a8;
}

nav.pagination ul li.active {
    background-color: var(--dark-blue);
    color: var(--light-gold);
}




@media screen and (max-width: 992px) {

    section.car-magazine-page {
        gap: 6vw;
    }

    section.car-magazine-page h1 {
        margin-top: 8vw;
        font-size: 4.5vw;
    }

    .latest-news-banners {
        height: 120vw;
        grid-template-columns: repeat(1, 1fr);
    }

    .frame-banner .banner-details {
        padding: 1vw;
        width: 100%;
        height: 75%;
    }

    .frame-banner:hover .banner-card {
        transform: scale(1.1);
    }

    .frame-banner:hover .banner-details {
        height: 85%;
    }

    .frame-banner .banner-details h2 {
        padding: 2vw;
        transform: translateY(5vw);
        font-size: 3.2vw;
        text-align: center;
    }

    .frame-banner .banner-details .banner-sub-details {
        padding: 1vw;
        transform: translateY(5vw);
        justify-content: center;
        font-size: 1.9vw;
        gap: 3vw;
    }

    .frame-banner:hover .banner-details .banner-sub-details {
        opacity: 1;
    }

    .frame-banner .banner-details .banner-sub-details span {
        gap: 1vw;
    }

}

@media screen and (max-width: 450px) {

    section.car-magazine-page {
        gap: 10vw;
    }

    section.car-magazine-page h1 {
        margin-top: 20vw;
        font-size: 8.5vw;
    }

    .latest-news-banners {
        height: 180vw;
    }

    .frame-banner .banner-details {
        padding: 2vw;
        height: 65%;
    }

    .frame-banner:hover .banner-details {
        height: 85%;
    }

    .frame-banner .banner-details h2 {
        padding: 3vw;
        transform: translateY(10vw);
        font-size: 4.5vw;
        text-align: center;
    }

    .frame-banner .banner-details .banner-sub-details {
        padding: 1vw;
        transform: translateY(10vw);
        justify-content: center;
        font-size: 2.4vw;
        gap: 6vw;
    }

    .frame-banner .banner-details .banner-sub-details span {
        gap: 1.6vw;
    }

    .car-magazine-main-container {
        flex-direction: column!important;
        padding: 3vw;
        gap: 4vw;
    }

    .news-container {
        padding: 2vw;
        width: 100%;
        border-radius: 10px;
        box-shadow: 0 0 12px rgba(0, 0, 0, 0.35);
    }

    .car-magazine-main-container aside {
        padding: 2vw;
        width: 100%;
        border-radius: 10px;
        box-shadow: 0 0 12px rgba(0, 0, 0, 0.35);
        gap: 2vw;
        order: 2;
    }

    .car-magazine-main-container aside h3 {
        padding: 2vw;
        font-size: 4vw;
        border-bottom: 0.2vw solid silver;
    }

    .aside-news-card {
        padding: 2vw;
        gap: 6vw;
    }

    .aside-news-card figure {
        width: 24vw;
        height: 24vw;
        border-radius: 8px;
    }

    .aside-news-card figure img {
        width: 100%;
        border-radius: 8px;
    }

    .aside-news-card a {
        width: 65%;
        font-size: 3.4vw;
        color: var(--dark-blue);
        transition: all 0.2s;
    }

    .aside-news-card a:hover {
        color: var(--dark-gold);
    }

    .news-container h3 {
        margin-bottom: 4vw;
        padding: 3vw;
        font-size: 4.4vw;
        border-bottom: 0.4vw solid silver;
    }

    .card-news {
        padding: 3vw 1vw;
        width: 100%;
        height: 50vw;
        gap: 4vw;
        border-bottom: 0.25vw dashed rgba(117, 117, 117, 0.2);
    }

    .card-news figure {
        width: 25vw;
        height: 25vw!important;
        border-radius: 8px;
    }

    .card-news figure img {
        width: 100%;
        height: 100%;
    }

    .card-news-details {
        padding: 1vw;
        width: 65%;
        height: 100%;
        gap: 2vw;
    }

    .card-news-details h4 {
        font-size: 3.2vw;
    }

    .card-news-details p {
        font-weight: normal;
        font-size: 2.4vw;
    }

    .card-news-sub-details {
        margin-top: 4vw;
        flex-direction: column;
        align-items: start;
        font-size: 2.3vw;
        gap: 1vw;
    }

    .card-news-sub-details span {
        gap: 1vw;
    }

    .card-news-sub-details span i {
        font-size: 2.5vw;
    }

    nav.pagination {
        margin: 8vw;
        gap: 1.2vw;
    }

    nav.pagination button {
        padding: 0.2vw;
        width: 7vw;
        height: 7vw;
        border-radius: 5px;
        font-size: 3vw;
    }

    nav.pagination button i {
        font-size: 4vw;
    }

    nav.pagination button:hover {
        background: #7688a8;
    }

    nav.pagination button:disabled {
        opacity: 0.8;
    }

    nav.pagination button:disabled:hover {
        background: #bcc6d9;
    }

    nav.pagination ul {
        gap: 1vw;
    }

    nav.pagination ul li {
        width: 7vw;
        height: 7vw;
        border-radius: 5px;
        font-size: 3vw;
    }

}