@media (min-width: 1600px) {
    .container {
        min-width: 1540px;
    }
}


.category-masonry-grid {
display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: min-content;
    gap: 20px;
    direction: rtl;
    padding: 20px 0;
}
.grid-item {
    width: 100%;
    aspect-ratio: 1 / 1; 
}

.grid-item.featured-square {
    grid-column: span 2;
    grid-row: span 2;
    aspect-ratio: 1 / 1; 
}
.grid-item.featured-square {
    grid-column: span 2;
    grid-row: span 2;
}

.category-card {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: #fff;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    display: block;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.category-card:hover {
    box-shadow: 0 15px 30px rgba(138, 29, 77, 0.15);
    border-color: rgba(138, 29, 77, 0.2);
}

.card-media {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.category-card:hover .card-media img {
    transform: scale(1.15);
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, 
        rgba(255, 255, 255, 1) 0%, 
        rgba(255, 255, 255, 0.9) 15%, 
        rgba(255, 255, 255, 0) 60%
    );
    z-index: 1;
}

.grid-item.featured-square .card-overlay {
    background: linear-gradient(to top, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.8) 25%, rgba(255, 255, 255, 0) 100%);
}

.card-content-front {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    padding: 30px 25px;
    z-index: 2;
    text-align: right;
}

.card-content-front h3 {
    margin: 0;
    color: #8a1d4d;
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.2;
    text-shadow: 1px 1px 0px #fff, -1px -1px 0px #fff, 1px -1px 0px #fff, -1px 1px 0px #fff;
    width: 80%;
}

.grid-item.highlight .category-card {
    background-color: #a31d58;
    border: none;
}

.grid-item.highlight .card-content-front {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.grid-item.highlight h3 {
    color: #ffffff;
    font-size: 1.6rem;
    text-shadow: none;
    position: static;
}

.grid-item.highlight .card-overlay {
    display: none;
}

.minimal-arrow {
    margin-top: 8px;
    color: #8a1d4d;
    font-size: 0.95rem;
}

.grid-item.highlight .minimal-arrow {
    color: #fff;
}
.join-card {
    background-color: #a01a58 !important;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: right;
    height: 100%;
    text-decoration: none;
    transition: all 0.3s ease;
}
.join-card .card-content-front {
    bottom: auto;
    top: 0;
    padding: 4rem 2rem 0 0;
}
.join-card h3 {
    color: #fff !important;
    margin: 0;
    text-shadow: none;
    font-size: 2rem;
    font-weight: 700;
    line-height: 0.7;
}

.join-card h3 .big-word {
    display: block; 
    font-size: 3.2rem;
    font-weight: 900;
}

.join-card:hover {
    filter: brightness(1.1);
}
.join-card:hover {
    filter: brightness(1.1);
}
@media (max-width: 1024px) {
    .category-masonry-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 250px;
        gap: 15px;
    }
    .grid-item.featured-square {
        grid-column: span 2;
        grid-row: span 2;
    }
}

@media (max-width: 600px) {
    .category-masonry-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 180px;
        gap: 10px;
    }
    .grid-item.featured-square {
        grid-column: span 2;
        grid-row: span 2;
    }
}
@media (max-width: 1024px) {
    .category-masonry-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: min-content;
        gap: 15px;
    }

    .card-content-front h3 {
        font-size: 1.5rem;
    }

    .join-card h3 {
        font-size: 1.6rem;
    }
    .join-card h3 .big-word {
        font-size: 2.6rem;
    }
}

@media (max-width: 600px) {
    .category-masonry-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: min-content;
        gap: 10px;
    }

    .card-content-front {
        padding: 15px;
    }

    .card-content-front h3 {
        font-size: 1.2rem;
        width: 100%;
    }

    .join-card .card-content-front {
        padding: 1.5rem 1rem 0 0;
    }

    .join-card h3 {
        font-size: 1.1rem;
        line-height: 0.9;
    }

    .join-card h3 .big-word {
        font-size: 1.8rem;
        margin-bottom: 2px;
    }

    .grid-item.featured-square {
        grid-row: span 1; 
        aspect-ratio: 2 / 1;
    }
}
/*banners*/
.banners-wrapper {
    display: flex;
    justify-content: center;
    gap: 80px;
    padding: 4rem;
    padding-top: 1rem;
    flex-wrap: wrap;
    direction: rtl;
}

.custom-banner {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
}
.dot {
         color: #e20074;  
 }
.banner-content {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    border: 6px solid #fff;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    aspect-ratio: 8/ 2; 
}

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

.banner-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    padding: 30px;
}

.purple-theme .banner-overlay {
      background: linear-gradient(to left, rgba(160, 190, 70, 0.9) 0%, rgba(160, 190, 70, 0.4) 60%, transparent 100%);
    justify-content: flex-start;
}

.green-theme .banner-overlay {
     background: linear-gradient(to right, rgb(150 20 90) 0%, rgb(150 20 90) 40%, rgba(150, 20, 90, 0.4) 60%, transparent 100%);
    justify-content: flex-end; 
 
}

.text-group {
    color: #fff;
    max-width: 60%;
    display: flex;
    flex-direction: column;
}

.banner-label {font-size: 1.2rem;opacity: 1;}
.banner-title {font-size: 2rem;font-weight: 800;margin-bottom: 5px;}
.banner-more {font-size: 0.9rem;font-weight: bold;}
.banner-content {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    border: 6px solid #fff;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    aspect-ratio: 8 / 2;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                box-shadow 0.4s ease;
}
.banner-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.banner-more {
    font-size: 0.9rem;
    font-weight: bold;
    display: inline-block;
    transition: transform 0.3s ease, color 0.3s ease;
}

.custom-banner a:hover .banner-content {
    box-shadow: 0 15px 35px rgba(0,0,0,0.25);
}

.custom-banner a:hover .banner-content img {
    transform: scale(1.1);
}

.custom-banner a:hover .banner-more {
    transform: translateX(-5px); 
    color: #f0f0f0; 
}

.custom-banner a:hover .banner-overlay {
    filter: brightness(1.1);
    transition: filter 0.3s ease;
}
@media (max-width: 768px) {
    .banners-wrapper { flex-direction: column; }
    .custom-banner { max-width: 100%; }
    .banner-title { font-size: 1.2rem; }
}
@media (max-width: 768px) {
    .banners-wrapper { 
        flex-direction: column; 
        padding: 15px; 
    }

    .custom-banner { 
        max-width: 100%; 
    }

    .banner-content {
        aspect-ratio: 16 / 7; 
    }

    .banner-overlay {
        padding: 20px; 
    }

    .banner-label {
        font-size: 0.9rem; 
        margin-bottom: 0;
    }

    .banner-title { 
        font-size: 1.4rem; 
        line-height: 1.1;
        margin-bottom: 5px;
        white-space: normal; 
    }

    .banner-more { 
        font-size: 0.8rem; 
        margin-top: 2px;
    }

    .custom-banner:hover .banner-overlay {
        padding-inline-start: 25px; 
    }
}

@media (max-width: 400px) {
    .banner-title { 
        font-size: 1.1rem; 
    }
    .banner-content {
        aspect-ratio: 16 / 8;
    }
}
@media (max-width: 1024px) {
    .category-masonry-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .grid-item.featured-square {
        grid-column: span 2;
        grid-row: span 1;
        aspect-ratio: 16 / 9;
    }
}


/*articles*/

.slider-item {
    padding: 15px;
}

.article {
    display: block;
    background: #fff;
    border-radius: 20px;
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.article:hover {
    transform: translateY(-5px);
}
.articles h2 {
    margin: 4rem 0;
    font-weight: bold;
    font-size: 2.5rem;
}
.article .info {
    padding: 20px 0;
}

.article .info h3 {
    font-size: 1.5rem;
    color: #333;
    font-weight: bold;
}

.slick-prev:before, .slick-next:before {
    color: #b31b6d;
    font-size: 25px;
}

.slick-prev:before, .slick-next:before {
    color: #b31b6d;
    font-size: 25px;
}
.read-more {
    border-radius: 30px;
    padding: 0.5rem 0.75rem;
    background: #a21c55;
    color: #ffffff;
    border: 1px solid #a21c55;
}
a.read-more:hover {
    background: white;
    color: #a21c55;
    border: 1px solid #a21c55;
    text-decoration: none;
}
.slick-prev, .slick-next {
    top: 45%;
}

[dir='rtl'] .slick-next {
    left: -20px;
}
[dir='rtl'] .slick-prev {
    right: -20px;
}