.slider-section {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    direction: rtl;
}

/* Header */

.slider-header {
    text-align: center;
    margin-bottom: 25px;
}

.slider-header h2 {
    font-size: 32px;
    font-weight: 800;
}

.slider {
    width: 100%;
}

.slider-viewport {
    width: 100%;
    overflow: hidden;
}

.slider-track {
    display: flex;
    gap: 20px;
    direction: rtl;
    transition: transform 0.7s ease;
    will-change: transform;
}

.slider-card {
    flex: 0 0 calc(
        (100% - (var(--visible-slides) - 1) * 20px)
        / var(--visible-slides)
    );
    background: var(--card-color);
    overflow: hidden;
    text-align: right;
    direction: rtl;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    border: 1px solid var(--card-border-color);
}

.card-image {
    width: calc(100% - 30px);
    height: 210px;
    margin: 15px;
    overflow: hidden;
    border-radius: 12px;
}

.card-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 12px;
}

/* Content */

.card-content {
    padding: 0 20px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-title {
    font-size: 21px;
    margin-bottom: 12px;
    font-weight: 800;
    text-align: center;
    color:#1e3b2b;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.25);
}

.card-description {
    font-size: 14px;
    line-height: 2;
    min-height: 85px;
    color: #333;
    flex: 1;
}

.card-button {
    display: block;
    width: fit-content;
    margin: 12px auto 0;
    padding: 9px 22px;
    background: var(--card-button-color);
    color: white;
    text-decoration: none;
    border-radius: 7px;
    font-size: 14px;
    font-weight: bold;
    transition: 0.2s ease;
    box-shadow: var(--card-button-shadow);
    transition: background 0.5s ease;
}

.card-button:hover {
    background: var(--card-button-hover-color);
    box-shadow: var(--card-button-hover-shadow);
}

/* Pagination */

.slider-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 9px;
    margin-top: 25px;
}


.pagination-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: var(--pagination-dot-color);
    cursor: pointer;
    transition:
        background 0.3s ease,
        transform 0.3s ease;
}

.pagination-dot.active {
    background: var(--pagination-dot-active-color);
}

/* Mobile */

@media (max-width: 600px) {
    .slider-section {
        padding: 30px 15px;
    }
    .card-image {
        height: 200px;
    }
    .slider-header h2 {
        font-size: 27px;
    }
}