/* ================================================ */
/* ===== متغیرهای رنگی و تنظیمات پایه ===== */
/* ================================================ */
:root {
    --primary: #2563eb;
    --primary-color: #2563eb;
    --secondary: #f59e0b;
    --secondary-color: #f59e0b;
    --dark: #1e293b;
    --dark-color: #1e293b;
    --light: #f8fafc;
    --light-bg: #f8fafc;
    --white: #ffffff;
    --text: #334155;
    --text-color: #334155;
    --border-radius: 12px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Vazirmatn', sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ================================================ */
/* ===== بخش هیرو (بنر) ===== */
/* ================================================ */
.hero {
    background: var(--dark);
    color: white;
    padding: 100px 0;
    text-align: center;
    position: relative;
    background-size: cover;
    background-attachment: fixed;
    display: flex;
    align-items: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
    position: relative;
    z-index: 2;
}

/* ================================================ */
/* ===== بخش درباره ما ===== */
/* ================================================ */
.about-story {
    display: flex;
    gap: 50px;
    align-items: center;
    padding: 80px 0;
}

.story-img {
    flex: 1;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.story-img img {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

.story-img:hover img {
    transform: scale(1.05);
}

.story-content {
    flex: 1;
    padding: 0 20px;
}

.about-title {
    font-size: 2rem;
    color: var(--dark);
    margin-bottom: 25px;
    font-weight: 700;
    text-align: center;
}

.story-text {
    color: #64748b;
    line-height: 1.85;
    text-align: justify;
    font-size: 1.1rem;
    padding: 0;
}

/* دکمه جزئیات */
.btn-detail {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    background: var(--primary);
    color: white;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.25);
    white-space: nowrap;
    min-height: 52px;
    border: none;
    cursor: pointer;
}

.btn-detail:hover {
    background: #1e40af;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.35);
    color: white;
}

.btn-detail:active {
    transform: translateY(1px);
}

.btn-wrapper {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

/* ================================================ */
/* ===== بخش Fun Facts ===== */
/* ================================================ */
.rts-fun-facts-area {
    padding: 80px 0;
    background-color: #f8fafc;
}

.signle-fun-facts-one {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition);
    text-align: center;
    height: 100%;
    border: 2px solid transparent;
}

.signle-fun-facts-one:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-color: var(--primary);
}

.icon {
    width: 80px;
    height: 80px;
    object-fit: cover;
    margin: 0 auto 25px;
    display: block;
    border-radius: 50%;
    padding: 15px;
    background: #eff6ff;
}

.counter .title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    display: block;
}

.bototm {
    font-size: 1rem;
    color: #64748b;
    display: block;
    margin-top: 5px;
}

/* ================================================ */
/* ===== بخش تیم ===== */
/* ================================================ */
.section-padding {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--primary);
    margin: 10px auto 0;
    border-radius: 2px;
}

.section-title p {
    color: #64748b;
    font-size: 1.1rem;
}

.team-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.team-card:hover {
    transform: translateY(-8px);
    border-color: var(--secondary) !important;
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.15);
}

.team-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    border: 4px solid var(--light);
    transition: transform 0.5s ease;
}

.team-card:hover .team-img {
    transform: scale(1.05);
}

.team-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 5px;
}

.team-role {
    color: var(--primary);
    font-size: 0.9rem;
    margin-bottom: 15px;
    font-weight: 500;
}

.team-card .btn {
    margin-top: auto;
    width: 100%;
    padding: 10px;
    font-size: 0.95rem;
    border-radius: 50px;
}

.team-card .btn:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

/* ================================================ */
/* ===== دکمه عمومی ===== */
/* ================================================ */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary);
    color: var(--white);
    border-radius: 50px;
    font-weight: 500;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Vazirmatn', sans-serif;
    font-size: 0.95rem;
    text-align: center;
}

.btn:hover {
    background-color: var(--dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: #1e40af;
    color: white;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: white;
}

/* ================================================ */
/* ===== سیستم گرید (شبیه‌سازی بوت‌استرپ) ===== */
/* ================================================ */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.row.g-4 {
    margin-right: -15px;
    margin-left: -15px;
}

.row.g-4 > [class*="col-"] {
    padding-right: 15px;
    padding-left: 15px;
}

.row.g-5 {
    margin-right: -15px;
    margin-left: -15px;
}

.row.g-5 > [class*="col-"] {
    padding-right: 15px;
    padding-left: 15px;
}

.col-lg-4 {
    width: 33.333%;
    padding: 15px;
    box-sizing: border-box;
}

.col-md-3 {
    width: 25%;
    padding: 15px;
    box-sizing: border-box;
}

.col-md-6 {
    width: 50%;
    padding: 15px;
    box-sizing: border-box;
}

.col-sm-6 {
    width: 50%;
    padding: 15px;
    box-sizing: border-box;
}

.col-12 {
    width: 100%;
    padding: 15px;
    box-sizing: border-box;
}

/* ================================================ */
/* ===== کلاس‌های Border ===== */
/* ================================================ */
.border {
    border: 1px solid #e2e8f0;
}

.border-2 {
    border-width: 2px;
}

.border-3 {
    border-width: 3px;
}

.border-primary {
    border-color: var(--primary);
}

.border-secondary {
    border-color: var(--secondary);
}

.rounded-4 {
    border-radius: 12px;
}

.shadow-sm {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* ================================================ */
/* ===== کلاس‌های Utility ===== */
/* ================================================ */
.w-100 {
    width: 100%;
}

.h-100 {
    height: 100%;
}

.mt-auto {
    margin-top: auto;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

.py-5 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.text-center {
    text-align: center;
}

.d-flex {
    display: flex;
}

.flex-column {
    flex-direction: column;
}

.align-items-stretch {
    align-items: stretch;
}

.align-items-center {
    align-items: center;
}

.justify-content-center {
    justify-content: center;
}

.flex-grow-1 {
    flex-grow: 1;
}

.gap-4 {
    gap: 1.5rem;
}

/* ================================================ */
/* ===== کلاس‌های Hover ===== */
/* ================================================ */
.hover-team {
    transition: all 0.3s ease;
}

.hover-team:hover {
    transform: translateY(-8px);
    border-color: var(--secondary) !important;
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.15);
}

.hover-team:hover .team-img {
    transform: scale(1.05);
}

/* ================================================ */
/* ===== واکنش‌گرایی ===== */
/* ================================================ */

/* تبلت و دسکتاپ کوچک */
@media (max-width: 992px) {
    .col-lg-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .team-img {
        width: 130px;
        height: 130px;
    }
}

/* موبایل بزرگ */
@media (max-width: 768px) {
    .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .team-img {
        width: 120px;
        height: 120px;
    }
    
    .signle-fun-facts-one {
        padding: 30px 20px;
    }
}

/* موبایل کوچک */
@media (max-width: 576px) {
    .col-sm-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .col-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .section-title h2 {
        font-size: 1.5rem;
    }
    
    .team-img {
        width: 100px;
        height: 100px;
    }
    
    .icon {
        width: 60px;
        height: 60px;
        padding: 12px;
    }
    
    .counter .title {
        font-size: 1.2rem;
    }
}


/* استایل پایه برای کانتینر */
.about-story {
    width: 100%;
    padding: 20px 0; /* فاصله بالا و پایین */
}

/* استایل برای نگهدارنده عکس */
.story-img {
    width: 100%;
    max-width: 800px; /* حداکثر عرض عکس در دسکتاپ (اختیاری، قابل تغییر) */
    margin: 0 auto; /* وسط چین کردن عکس */
}

/* استایل اصلی عکس برای ریسپانسیو */
.story-img img {
    width: 100%; /* عرض عکس کامل شود اما از کانتینر خارج نشود */
    height: auto; /* ارتفاع به صورت خودکار متناسب با عرض تنظیم شود */
    max-height: 500px; /* در دسکتاپ حداکثر ارتفاع 500 پیکسل باشد */
    object-fit: cover; /* خیلی مهم: باعث میشود عکس کِشیده نشود و برش بخورد تا جا شود */
    border-radius: 12px; /* کمی گردی گوشه‌ها برای زیبایی (اختیاری) */
    display: block; /* حذف فاصله اضافی زیر عکس */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* سایه ملایم (اختیاری) */
}

/* تنظیمات برای تبلت */
@media (max-width: 768px) {
    .story-img img {
        max-height: 350px; /* کاهش ارتفاع در تبلت */
    }
}

/* تنظیمات برای موبایل */
@media (max-width: 480px) {
    .story-img img {
        max-height: 220px; /* کاهش ارتفاع در موبایل */
        border-radius: 8px;
    }
}