* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Vazirmatn', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}



.container {
  /*  */
    margin: 0 auto;
    margin-bottom: 10%;
    padding: 0 15px;
}

.header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background:#DFF9FB;
    border-radius: 15px;
    color: black;
    box-shadow: 0 5px 15px rgba(64, 224, 208, 0.2);
}

.header h1 {
    font-size: 24px;
    font-weight: 700;
}

.header i {
    margin-left: 10px;
    font-size: 26px;
}

/* استایل گرید مقالات */
.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 30px;
}

.article-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e0f7fa;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.article-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border-color: #40E0D0;
}

/* قسمت عکس */
.imageboxarti {
    height: 130px;
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.card-image {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; 
    transition: transform 0.5s ease;
}

.article-card:hover .card-image img {
    transform: scale(1.1);
}

/* دایره فیروزه‌ای برای شماره مقاله در گوشه */
.card-id-circle {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #D31E3C;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: 2px solid white;
    z-index: 2;
}

.article-card:hover .card-image img {
    transform: scale(1.05);
}

.card-id {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(64, 224, 208, 0.9);
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

/* قسمت محتوا */
.card-content-wrapper {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-header {
    margin-bottom: 10px;
}

.card-date {
    font-size: 13px;
    color: #666;
    background: #f8fdff;
    padding: 5px 12px;
    border-radius: 15px;
    display: inline-block;
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    
    color: #2a5a5a;
    line-height: 1.2;
    min-height: 30px;
}

.card-content {
    color: #666;
    line-height: 1.7;
    margin-bottom: 20px;
    flex-grow: 1;
    font-size: 14px;
    text-align: justify;
}

/* دکمه بیشتر */
.read-more {
    background: #D31E3C;
;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: auto;
}

.read-more:hover {
    background: #20B2AA;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(64, 224, 208, 0.3);
}

.read-more i {
    margin-right: 8px;
}

/* کنترل‌ها */
.controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 15px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.nav-btn-arti {
    background: #D31E3C;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.nav-btn-arti:hover {
    background: #20B2AA;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(64, 224, 208, 0.3);
}

.nav-btn-arti i {
    margin: 0 5px;
}

.nav-btn-arti:disabled {
    background: #b0e0e6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.slide-indicator {
    font-size: 18px;
    font-weight: 700;
    color: black;
}

/* رسپانسیو */
@media (max-width: 992px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .card-image {
        height: 160px;
    }
}

@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: 1fr;
    }
    
    .header h1 {
        font-size: 20px;
    }
    
    .controls {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-btn {
        width: 100%;
        justify-content: center;
    }
    
    .card-image {
        height: 200px;
    }
    
    .card-title {
        font-size: 17px;
        min-height: auto;
    }
}