body {
    overflow-x: hidden;
    width: 100dvw !important;
}

.swiper img {
    width: 100%;
}

.swiper-slide {
    transition: all 0.4s ease;
}

.swiper-pagination {
    position: static;
}

.swiper-pagination-bullet-active {
    background-color: var(--mainColor) !important;
}

.swiper-button-prev,
.swiper-button-next {
    position: static;
    width: 40px;
    padding: 8px;
    color: var(--mainColor);
    font-weight: bold;
    border-radius: 2px;
    height: 40px;
    padding: 8px;
    border-radius: 50%;
    border: 2px solid var(--mainColor);
    margin: 0 5px;
    background-color: #ffc4fa3c;
}

.secondary .swiper-button-prev,
.secondary .swiper-button-next {
    color: var(--secondaryColor);
    border: 2px solid var(--secondaryColor);
}


.carousel-section .swiper {
    width: 100%;
    max-width: 400px;
    height: auto;
    overflow: unset;
}

.carousel-section {
    margin: 160px auto;
    position: relative;
}

.carousel-section .swiper-pagination {
    width: fit-content;
}

.carousel-section .swiper-slide-active {
    transform: translateY(-6px);
    scale: 1.07;
}

.carousel-section .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background-color: rgb(55, 54, 54);
}

.grid-card:first-of-type {
    width: 100%;
}

.grid-card {
    height: 400px;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 2px;
    overflow: hidden;
    box-shadow:
        0 6px 8px rgba(0, 0, 0, 0.403),
        0 2px 4px rgba(0, 0, 0, 0.345);
    display: flex;
    width: 48%;
    margin-right: 2%;
    margin-top: 16px;
}

.grid-card .content {
    background: rgba(15, 14, 14, 0.885);
    color: var(--lightColor);
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 8px;
    margin-top: auto;
    width: 100%;
    padding: 0 12px 12px 12px;
}

a:has(.grid-card.small) {
    width: 50%;
}

.grid-card.small {
    height: auto;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
    width: 96%;
    height: 300px;
}

.grid-extra {
    width: 96%;
    border-radius: 0 0 2px 2px;
    padding: 16px;
    box-shadow:
        0 16px 16px rgba(0, 0, 0, 0.142),
        0 4px 8px rgba(0, 0, 0, 0.147);
    height: 110px;

}

.grid-extra .grid-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 100%;
}

.grid-card.small .content {
    height: 100%;
    background: #000000;
    background: linear-gradient(0deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%);
}

.grid-card .grid-line,
.grid-extra .grid-line {
    height: 6px;
    width: 45%;
    background-color: var(--mainColor);
    margin-left: 10px;
    position: relative;
}

.grid-card .grid-line::before,
.grid-extra .grid-line::before {
    content: "";
    position: absolute;
    width: 12px;
    top: 0;
    left: -21px;
    height: 6px;
    background-color: var(--mainColor);
}

.grid-extra .grid-line {
    transform: translateX(12px);
    margin-bottom: 10px;
}

.grid-card .grid-title {
    margin-top: 22px;
    margin-bottom: 32px;
}

.grid-card .grid-author-picture {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    margin-right: 12px;
}

.grid-card .grid-author {
    color: var(--mainColor);
    font-size: 16px;
    margin-bottom: 5px;
}

.grid-card .grid-date {
    font-size: 13px;
    color: var(--lightColor);
    opacity: 0.7;
    font-weight: 300;
    margin-bottom: 5px;
}

.grid-card .grid-category {
    font-weight: bold;
    font-size: 18px;
    color: var(--mainColor);
    padding: 2px 16px 4px 16px;
    border: 2px solid var(--mainColor);
    border-right-width: 2px;
    border-bottom-width: 2px;
    font-family: "Orbitron", sans-serif;
}

.card-section {
    margin: 160px auto;
}

.card-review {
    align-items: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px;
    border-radius: 3px;
    background-color: #28272804;
    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.12),
        0 2px 4px rgba(0, 0, 0, 0.08);
}

.card-profile {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    margin-right: 12px;
}

.card-description {
    font-size: 14px;
    line-height: 145%;
    color: #9B9B9B;
}

.card-date {
    font-size: 14px;
    color: var(--secondaryColor);
    font-weight: 600;
}

.card-img {
    width: 40%;
    border-radius: 3px;
    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.12),
        0 2px 4px rgba(0, 0, 0, 0.08);
}

.card-author {
    color: var(--darkColor);
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 0px;
}

.card-button {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    color: var(--secondaryColor);
}

.card-button .icon.review {
    width: 28px;
    height: 28px;
    background-color: var(--secondaryColor);
    mask-size: cover;
    -webkit-mask: url("./../../icons/arrow-circle.svg") no-repeat center;
    mask: url("./../../icons/arrow-circle.svg") no-repeat center;
    mask-size: cover;
    width: 23px;
    height: 23px;
}

.card-rating {
    --rating: 0;
    --star-size: 24px;

    position: relative;
    display: inline-block;
    font-size: var(--star-size);
    line-height: 1;
}

.card-rating .stars {
    position: relative;
    color: #ddd;
}

.card-rating .stars::after {
    content: "★★★★★";
    position: absolute;
    left: 0;
    top: 0;
    color: #ffc107;
    width: calc(var(--rating) / 5 * 100%);
    overflow: hidden;
    white-space: nowrap;
}


@keyframes zoomInOut {
    0% {
        width: 105%;
        height: 105%;
    }

    50% {
        width: 125%;
        height: 125%;
    }

    100% {
        width: 105%;
        height: 105%;
    }
}

.hero-section {
    width: 100dvw;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-section .swiper {
    width: 100%;
    max-width: calc(100dvw - 32px);
    height: auto;
    overflow: visible;
    margin: 16px auto;
}

.hero-section .swiper-pagination {
    width: fit-content;
    padding: 8px;
    border-radius: 3px;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.186);
    backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);

    border-radius: 100px;
    padding: 12px;
    transition:
        background .3s ease,
        border .3s ease,
        box-shadow .3s ease,
        backdrop-filter .3s ease;
    left: 50%;
    z-index: 2;
    bottom: 50px;
    display: flex;
    position: absolute;
}

.hero-section .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background-color: rgb(187, 187, 187);
}

.featured-card {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    display: flex;
    height: calc(100dvh - 32px);
    width: 100%;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 5px 3px rgba(67, 66, 66, 0.2);
}

.featured-card .featured-card_bk {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    z-index: 0;
    transition: all 0.4s ease;
}

.featured-card .featured-card_gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: #1c0513;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.932) 0%, rgba(0, 0, 0, 0.632) 40%, rgba(0, 0, 0, 0.632) 70%, rgba(0, 0, 0, 0.832) 100%);
    z-index: 1;
}

.featured-card .featured-card_container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
    padding: 22px;
    margin: auto;
}

.featured-card .featured-card_author-picture {
    width: 35px;
    height: 35px;
    border-radius: 50%;
}

.featured-card {
    color: var(--lightColor);
}

.featured-card h3 {
    font-size: max(32px, 6vw);
    font-weight: 800;
    color: var(--lightColor);
    margin: auto;
    text-align: center;
    letter-spacing: 3px;
    text-shadow: 2px 2px 0 rgba(2px, 2px, 2px, 0.4);
}

.featured-card .featured-card_line {
    color: var(--mainColor);
    font-weight: bold;
    font-size: 52px;
    margin: -12px 0 16px 0;
    margin-top: 80px;
}

.featured-card .featured-category {
    font-size: 18px;
    color: var(--mainColor);
    border: 3px solid var(--mainColor);
    border-right-width: 2px;
    border-bottom-width: 2px;
    padding: 4px 8px;
    font-family: "Orbitron", sans-serif;
}

.featured-card .featured-card_author-name {
    font-weight: 700;
    color: var(--mainColor);
}

.featured-card .featured-card_date {
    color: var(--lightColor);
    opacity: .7;
    margin-left: 5px;
    font-weight: 300;
}


.featured-card .featured-card_bk {
    position: absolute;
}

.swiper-slide-active .featured-card_bk {
    animation: zoomInOutHero 16s ease-in-out infinite;
}

@keyframes zoomInOutHero {
    0% {
        width: 100%;
        height: 100%;
    }

    50% {
        width: 110%;
        height: 110%;
    }

    100% {
        width: 100%;
        height: 100%;
    }
}

@media screen and (max-width: 768px) {
    .card-section {
        margin: 100px auto;
    }
    .carousel-section {
        padding-top: 25px;
        overflow: hidden;
        width: 100dvw;
        margin: 100px auto;
    }

    .carousel-section .swiper {
        width: 100%;
        max-width: 320px;
        height: auto;
        overflow: visible;
    }

    .hero-section .swiper-pagination {
        bottom: 20px;
    }

    .hero-section .swiper-pagination-bullet {
        width: 8px;
        height: 8px;
    }


    .featured-card h3 {
        font-size: 32px;
        font-weight: 900;
    }

    .featured-card .featured-card_line {
        font-size: 20px;
        margin-top: 60px;
        margin-bottom: 5px;
    }

    .featured-card .featured-category {
        font-size: 14px;
    }


    .featured-card .featured-card_author-name {
        font-weight: 700;
        color: var(--mainColor);
        font-size: 13px;
    }

    .featured-card .featured-card_date {
        color: var(--lightColor);
        opacity: .7;
        margin-left: 5px;
        font-weight: 300;
        font-size: 13px;
    }

    .card-img {
        width: 100%;
    }

    a:has(.grid-card.small) {
        height: 400px;
        width: 100%;
        margin-top: 27px;
    }

    .grid-card {
        margin-left: auto;
        margin-right: auto;
    }

    .grid-card.small {
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .grid-extra {
        margin-bottom: 40px;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

}