/* تایپوگرافی عمومی و یوتیلیتی‌های سفارشی */
.max-w-800 { max-width: 800px; }
.max-w-600 { max-width: 600px; }
.line-height-2 { line-height: 2; }
.opacity-90 { opacity: 0.9; }

/* بنر اصلی */
.events-hero-banner {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 0 0 50px 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(62, 181, 158, 0.6) 0%, rgba(0, 0, 0, 0.08) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    pointer-events: none; 
}

.section-subtitle {
    color: #0b7c66;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.5px;
}

.section-main-title {
    font-weight: 800;
    color: #1f1f1f;
    font-size: 30px;
}

/* نوار آمار (طراحی شده برای پس‌زمینه #f5f5f5) */
.overall-stats-box {
    background: #ffffff;
    border: none;
    border-radius: 16px;
    padding: 35px 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.04);
}

.stat-item i {
    font-size: 38px;
    color: #0b7c66;
    margin-bottom: 10px;
    display: inline-block;
}

.counter-num {
    display: block;
    font-size: 24px;
    font-weight: 800;
    color: #222;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 13px;
    color: #777;
}

/* کارت‌های رویداد */
.event-card {
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.03);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.event-card-img {
    position: relative;
    height: 210px;
    overflow: hidden;
}

.event-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.event-card:hover .event-card-img img {
    transform: scale(1.08);
}

.event-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(11, 124, 102, 0.9);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
}

.event-card-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.event-date {
    font-size: 13px;
    color: #0b7c66;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.event-title {
    font-size: 18px;
    font-weight: 800;
    color: #222;
    margin: 10px 0 12px 0;
    line-height: 1.5;
}

.event-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-card-footer {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.btn-read-more {
    color: #0b7c66;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: color 0.3s ease;
}

.btn-read-more i {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.event-card:hover .btn-read-more i {
    transform: translateX(-5px);
}

/* رویداد ویژه (Featured) */
.featured-event-card {
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    margin: 60px 0 0 0 ;
}

.featured-img-wrap {
    position: relative;
    height: 100%;
    min-height: 320px;
}

/* اصلاح شد تا در گرید بوت‌استرپ به درستی جا بگیرد */
.featured-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.spotlight-tag {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: #1f1f1f;
    color: #fff;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
}

.btn-primary-custom {
    background: #0b7c66;
    color: #fff;
    border-radius: 12px;
    padding: 12px 28px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: background 0.3s ease;
}

.btn-primary-custom:hover {
    background: #085e4d;
    color: #fff;
}

.pillar-card {
    background: #ffffff;
    border-radius: 16px;
    border: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pillar-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
}

.pillar-icon {
    width: 60px;
    height: 60px;
    background: rgba(11, 124, 102, 0.1);
    color: #0b7c66;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 28px;
}

.events-slide{
    height: 100%;
}

.cta-title{
    color: #fff;
}

.cta-p{
    color: #fff;
}

.events-cta-banner {
    background: linear-gradient(135deg, #0b7c66 0%, #09745e 100%);
    box-shadow: 0 15px 35px rgba(11, 124, 102, 0.25);
}

/* رسپانسیو */
@media (max-width: 992px) {
    .events-hero-banner {
        height: 300px;
        border-radius: 0 0 30px 30px;
    }
    
    .featured-img-wrap {
        height: 280px; 
    }
}

@media (max-width: 768px) {

    .counter-num{
        font-size: 15px;
    }

    .events-hero-banner {
        height: auto;
        border-radius: 0 0 20px 20px;
    }

    .hero-overlay {
        background: unset;
    }
    
    .section-main-title {
        font-size: 22px;
    }
}