.home-banner-wrapper {
    display: flex;
}

.home-banner-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-catalog-wrapper {
    margin-top: 2rem;
    padding: 2rem 4.688rem;
    display: grid;
    grid-template-columns: repeat(6, 1fr);  
    grid-template-rows: repeat(2, 1fr);
    grid-template-areas:
        "img1 img1 img2 img2 img3 img3"
        "img4 img4 img4 img6 img6 img6";  
    gap: 1rem;
    margin-bottom: 8.625rem;
}

.home-catalog-wrapper .img1 { grid-area: img1; }
.home-catalog-wrapper .img2 { grid-area: img2; }
.home-catalog-wrapper .img3 { grid-area: img3; }
.home-catalog-wrapper .img4 { grid-area: img4; }
.home-catalog-wrapper .img5 { grid-area: img5; }
.home-catalog-wrapper .img6 { grid-area: img6; }
.home-catalog-wrapper .img7 { 
    grid-area: img7; 
}

.home-catalog-wrapper .img1, .home-catalog-wrapper .img2, .home-catalog-wrapper .img3,
.home-catalog-wrapper .img4, .home-catalog-wrapper .img5, .home-catalog-wrapper .img6, .home-catalog-wrapper .img7 {
    width: 100%;
    height: 26.563rem;
    overflow: hidden;
    display: flex;
    position: relative;
}

.home-catalog-wrapper img {
    width: 100%;
    height: 26.563rem;
    object-fit: cover;
    display: block;
    cursor: pointer;
    object-position: bottom;
}

.home-catalog-wrapper .catalog-hover-card {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 30%;
    width: max-content;
    min-height: 3rem;
    white-space: nowrap;
    background: rgba(255,255,255,0.2);
    border: 3px solid #fff;
    color: #fff;
    border-radius: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 1.3rem;
    text-align: center;
    padding: 1rem 1rem;
    cursor: pointer;
    z-index: 2;
}

.home-catalog-wrapper .img1:hover .catalog-hover-card,
.home-catalog-wrapper .img2:hover .catalog-hover-card,
.home-catalog-wrapper .img3:hover .catalog-hover-card,
.home-catalog-wrapper .img4:hover .catalog-hover-card,
.home-catalog-wrapper .img5:hover .catalog-hover-card,
.home-catalog-wrapper .img6:hover .catalog-hover-card,
.home-catalog-wrapper .img7:hover .catalog-hover-card {
    opacity: 1;
    pointer-events: auto;
}

.home-articles-wrapper {
    margin-top: 4rem;
    padding: 6.938rem 4.688rem;
    background-color: #F7F4F1;
}

.home-articles-wrapper .home-articles-container {
    display: flex;
    flex-direction: row;
    gap: 3rem;
    justify-content: space-between;
}

.home-articles-wrapper .home-articles-container .home-article-card {
    background: white;
    width: 24.375rem;
}

.home-articles-wrapper .home-articles-container .home-article-card .home-article-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.home-articles-wrapper .home-articles-container .home-article-card .home-article-card-image {
    padding: 0;
    margin: 0;
    height: 23.563rem;
}

.home-articles-wrapper .home-articles-container .home-article-card .home-article-card-image img {
    width: 24.375rem;
    height: 100%;
    object-fit: cover;
    object-position: bottom;
}

.home-articles-wrapper .home-articles-container .home-article-card .home-article-card-content {
    direction: rtl;
    padding: 2.375rem 2.563rem;;
    display: flex;
    flex-direction: column;
}

.home-articles-wrapper .home-articles-container .home-article-card .home-article-card-content .home-article-card-title {
    font-size: 24px;
    font-weight: 200;
    color: #2A2A2A;
}


.home-articles-wrapper .home-articles-container .home-article-card .home-article-card-content .home-article-card-subtitle {
    font-size: 16px;
    font-weight: 400;
    color: #2A2A2A;
}

.home-articles-wrapper .home-articles-view-all-wrapper {
    direction: rtl;
    display: flex;
    align-items: center;
    justify-content: left;
    margin-top: 4rem;
}

.home-articles-wrapper .home-articles-view-all-wrapper a {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 18px;
    font-weight: 600;
}

.home-articles-wrapper .home-articles-view-all-wrapper a img {
    width: 32px;
    height: auto;
}

.home-articles-wrapper .mobile-headline {
    display: none;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .home-catalog-wrapper {
        padding: 1.5rem 0;
        grid-template-columns: 1fr;
        grid-template-rows: unset;
        grid-template-areas:
            "img1"
            "img2"
            "img3"
            "img4"
            "img6";
        margin-bottom: 1rem;
    }

    .home-catalog-wrapper .catalog-hover-card { 
        font-size: 20px;
        min-height: unset;
        padding: 0.8rem 2rem;
        width: max-content;
        white-space: nowrap;
        /* font-weight: 600; */
        /* width: 100%; */
        /* padding: 0.5rem 0.5rem; */
        /* border-radius: 0; */
        /* min-height: 1rem; */
        /* color: #2A2A2A; */
        opacity: 1;
    }

    .home-catalog-wrapper .img1, .home-catalog-wrapper .img2,
    .home-catalog-wrapper .img3, .home-catalog-wrapper .img4,
    .home-catalog-wrapper .img5, .home-catalog-wrapper .img7 {
        aspect-ratio: 1 / 1;
        height: unset;
    }
    .home-catalog-wrapper .img6 {
        aspect-ratio: 1 / 1;
        height: unset;
    }

    .home-articles-wrapper {
        padding: 1rem;
        margin-top: 0;
    }

    .home-articles-wrapper .home-articles-container  {
        flex-direction: column;
        gap: 1rem;
    }

    .home-articles-wrapper .home-articles-container .home-article-card .home-article-card-image  {
        height: unset;
        aspect-ratio: 1 / 1;
    }

    .home-articles-wrapper .home-articles-container .home-article-card .home-article-card-image img {
        aspect-ratio: 1 / 1;
        height: unset;
        width: 100%;
    }

    .home-articles-wrapper .home-articles-container .home-article-card {
        background: white;
        width: 100%;
    }

    .home-articles-wrapper .home-articles-view-all-wrapper {
        direction: rtl;
        display: flex;
        align-items: center;
        justify-content: right;
        margin-top: 1rem;
    }


    .home-articles-wrapper .mobile-headline {
        display: flex;
        justify-content: flex-end;
    }

    .home-articles-wrapper .mobile-headline h1 {
        font-size: 18px;
        font-weight: 600;
        color: #2A2A2A;
    }

    .home-articles-wrapper .home-articles-container .home-article-card .home-article-card-content {
        padding: 0 1rem 1rem 1rem;
    }
}