.download-grid-carousel-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.download-carousel {
    margin: 50px 0 0 0;
}

.download-item,
.slick-initialized .slick-slide.download-item {
    background: transparent;
    border-radius: 6px;
    padding: 24px;
    border: 1px solid var(--tertiary-color);
    min-height: 155px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.slick-initialized .slick-slide.download-item {
    margin-right: 20px;
}

.download-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--tertiary-color);
    font-family: var(--secondary-font);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.download-description {
    font-size: 18px;
    color: var(--tertiary-color);
    font-family: var(--secondary-font);
    margin: 20px 0;
}

.elementor .download-button,
.elementor .read-more-button {
    display: inline-flex;
    align-items: center;
    position: relative;
    font-size: 14px;
    padding-right: 45px;
    color: var(--tertiary-color);
    margin-left: auto;
    text-decoration: underline;
    transition: all 0.3s ease;
}

.elementor .download-button::after,
.elementor .read-more-button::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 0px;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #0F4A73;
    background-image: url('../../icons/chevron-right.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 8px;
}

.download-item:hover,
.slick-initialized .slick-slide.download-item:hover {
    background-color: #F2F2F2;
	transform: translatey(-5px);
}

.download-item:hover .download-title,
.download-item:hover .download-description,
.download-item:hover .download-button {
}

.download-item:hover .download-button::after {
    background-color: var(--primary-color);
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
    .download-title {
        font-size: 14px;
    }

    /* Force grid layout on mobile/tablet for both grid and carousel */
    .download-carousel,
    .download-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
    }

    .download-carousel {
        margin: 40px 0 0 0;
    }

    .header-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    /* Hide carousel navigation on mobile */
    .carousel-navigation {
        display: none;
    }

    /* Reset slick styles on mobile */
    .download-carousel .slick-slide.download-item {
        margin-right: 0 !important;
    }
}

@media (max-width: 768px) {

    .download-carousel,
    .download-grid {
        grid-template-columns: repeat(1, 1fr) !important;
        gap: 15px;
    }

    .download-carousel {
        margin: 30px 0 0 0;
    }

    .download-grid-carousel-wrapper {
        gap: 20px;
    }

    .download-item,
    .slick-initialized .slick-slide.download-item {
        padding: 20px;
        min-height: 140px;
    }

    .download-description {
        margin: 15px 0;
    }
}