.container {
    max-width: 1044px;
    margin: 0 auto;
    padding: 0 20px;
}
.carousel {
    display: block;
    position: relative;
    margin-bottom: 22px;
}
.carousel > input {
    display: none;
}
/* انتقال بین اسلایدها */
.carousel > input:nth-of-type(5):checked ~ .carousel__slides .carousel__slide:first-of-type { margin-left: -400%; }
.carousel > input:nth-of-type(4):checked ~ .carousel__slides .carousel__slide:first-of-type { margin-left: -300%; }
.carousel > input:nth-of-type(3):checked ~ .carousel__slides .carousel__slide:first-of-type { margin-left: -200%; }
.carousel > input:nth-of-type(2):checked ~ .carousel__slides .carousel__slide:first-of-type { margin-left: -100%; }
.carousel > input:nth-of-type(1):checked ~ .carousel__slides .carousel__slide:first-of-type { margin-left: 0%; }

/* هایلایت بندانگشتی فعال */
.carousel > input:nth-of-type(1):checked ~ .carousel__thumbnails li:nth-of-type(1),
.carousel > input:nth-of-type(2):checked ~ .carousel__thumbnails li:nth-of-type(2),
.carousel > input:nth-of-type(3):checked ~ .carousel__thumbnails li:nth-of-type(3),
.carousel > input:nth-of-type(4):checked ~ .carousel__thumbnails li:nth-of-type(4),
.carousel > input:nth-of-type(5):checked ~ .carousel__thumbnails li:nth-of-type(5) {
    box-shadow: 0 0 0 5px rgba(0, 0, 255, 0.5);
}

.carousel__slides {
    display: flex;
    padding: 0;
    margin: 0;
    overflow: hidden;
    transition: margin-left 0.3s ease-out;
}
.carousel__slide {
    flex: 0 0 100%;
    position: relative;
    transition: all 0.3s ease-out;
}
.carousel__slide figure {
    display: block;
    margin: 0;
    position: relative;
}
.carousel__slide div {
    position: relative;
    width: 100%;
}
.carousel__slide div:before {
    content: "";
    display: block;
    padding-top: 56.25%;
}
.carousel__slide div > img {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
	  border-radius: 25px ;
}
/* کپشن روی عکس پایین */
.carousel__slide figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 10px 15px;
    font-size: 0.9em;
    box-sizing: border-box;
  	border-radius:25px ;
}
.carousel__slide .credit {
    display: block;
    font-size: 0.8em;
    color: rgba(255,255,255,0.7);
    margin-top: 5px;
}

/* بندانگشتی‌ها */
.carousel__thumbnails {
    justify-content: center;
    display: flex;
    list-style: none;
    padding: 0;
    margin: 20px -10px 0 -10px;
}
.carousel__thumbnails li {
    flex: 1 1 auto;
    max-width: calc((100% / 6) - 20px);
    margin: 0 10px;
}
.carousel__thumbnails label {
    display: block;
    position: relative;
    cursor: pointer;
}
.carousel__thumbnails label:before {
    content: "";
    display: block;
    padding-top: 100%;
}
.carousel__thumbnails label > img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}

/* کپشن پایین عکس */
.carousel__slide figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    background: rgba(0,0,0,0.4);
    padding: 15px;
    box-sizing: border-box;
    color: white;
}

/* متن توضیح */
.carousel__slide figcaption p {
    margin: 0 0 10px 0;
    font-size: 0.95em;
    line-height: 1.4;
}

/* دکمه ادامه مطلب */
.carousel__slide .more-button {
    background-color: #00d475;
    color: white;
    padding: 8px 16px;
    font-size: 0.9em;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    display: inline-block;
}

.carousel__slide .more-button:hover {
    background-color: #00a463;
}

