/* تنظیمات عمومی */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    line-height: 1.8;
    color: #333;
    background-color: #f9f9f9;
    overflow-x: hidden;
}

/* رنگ‌های پاستیلی */
:root {
    --green-pastel: #4a6b3c;
    --red-pastel: #b33a3a;
    --white-pastel: #f5f5f5;
    --light-green: #6b8c5c;
    --light-red: #c45a5a;
}

/* نوار ناوبری */
.navbar {
    background: linear-gradient(135deg, var(--green-pastel), var(--red-pastel)) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 900;
    color: white !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.nav-link {
    color: white !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
    border-radius: 5px;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.nav-link.active {
    background-color: rgba(255, 255, 255, 0.3);
    font-weight: 700;
}

.dropdown-menu {
    background-color: var(--white-pastel);
    border: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    margin-top: 10px;
}

.dropdown-item {
    color: #333;
    padding: 0.7rem 1.5rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.dropdown-item:hover {
    background-color: var(--green-pastel);
    color: white !important;
    transform: translateX(-5px);
}

/* بخش قهرمان */
.hero {
    background: linear-gradient(135deg, var(--green-pastel), var(--red-pastel));
    color: white;
    padding: 5rem 0;
    text-align: center;
    margin-bottom: 0;
}

.hero h1 {
    font-weight: 900;
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    animation: fadeInDown 1s ease;
}

.hero .lead {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease 0.3s both;
}

.hero .btn {
    margin: 0 10px;
    padding: 12px 30px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.hero .btn-light {
    background-color: white;
    color: var(--red-pastel);
    border: none;
}

.hero .btn-light:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.hero .btn-outline-light:hover {
    background-color: white;
    color: var(--green-pastel);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* کارت‌های آمار */
.stats-section {
    padding: 4rem 0;
    background-color: white;
}

.stat-card {
    background: linear-gradient(145deg, #ffffff, #f5f5f5);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.4s ease;
    height: 100%;
    border: 1px solid rgba(74, 107, 60, 0.1);
    margin-bottom: 1.5rem;
}

.stat-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(74, 107, 60, 0.2);
}

.stat-card i {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--green-pastel);
}

.stat-card:nth-child(even) i {
    color: var(--red-pastel);
}

.stat-card h3 {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--green-pastel);
    margin-bottom: 0.5rem;
}

.stat-card p {
    font-size: 1.1rem;
    color: #666;
    font-weight: 500;
}

/* کارت‌های افقی */
.achievements-section {
    padding: 4rem 0;
    background-color: #f9f9f9;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 900;
    font-size: 2.5rem;
    color: var(--green-pastel);
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--green-pastel), var(--red-pastel));
    border-radius: 2px;
}

.horizontal-card,
.card {
    background: white;
    border-radius: 20px !important;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    height: 100%;
    border: none;
    margin-bottom: 1.5rem;
}

.horizontal-card:hover,
.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(74, 107, 60, 0.2);
}

.horizontal-card .row,
.card .row {
    margin: 0;
}

.horizontal-card .col-md-4,
.card .col-md-4 {
    padding: 0;
    overflow: hidden;
}

.horizontal-card img,
.card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.horizontal-card:hover img,
.card:hover img {
    transform: scale(1.1);
}

.horizontal-card .card-body,
.card .card-body {
    padding: 1.8rem;
}

.horizontal-card .card-title,
.card .card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.horizontal-card .card-text,
.card .card-text {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.8;
}

/* صفحات داخلی */
.page-header {
    background: linear-gradient(135deg, var(--green-pastel), var(--red-pastel));
    color: white;
    padding: 3rem 0;
    text-align: center;
    margin-bottom: 3rem;
}

.page-header h1 {
    font-weight: 900;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.content-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(74, 107, 60, 0.15);
}

.content-card h2 {
    color: var(--green-pastel);
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.content-card h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 70px;
    height: 3px;
    background: linear-gradient(90deg, var(--green-pastel), var(--red-pastel));
    border-radius: 2px;
}

.content-card h3 {
    color: var(--red-pastel);
    font-weight: 600;
    margin: 1.5rem 0 1rem;
}

.content-card img {
    border-radius: 15px;
    margin-bottom: 1.5rem;
    width: 100%;
    height: 300px;
    object-fit: cover;
}

/* گالری تصاویر */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, var(--green-pastel), transparent);
    color: white;
    padding: 1.5rem;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h4 {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* فرم تماس */
.contact-form {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
}

.contact-form .form-label {
    font-weight: 600;
    color: var(--green-pastel);
}

.contact-form .form-control {
    border: 2px solid #eee;
    border-radius: 10px;
    padding: 0.8rem;
    transition: all 0.3s ease;
}

.contact-form .form-control:focus {
    border-color: var(--green-pastel);
    box-shadow: 0 0 0 0.2rem rgba(74, 107, 60, 0.25);
}

.contact-form .btn-primary {
    background: linear-gradient(135deg, var(--green-pastel), var(--red-pastel));
    border: none;
    padding: 12px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.contact-form .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(74, 107, 60, 0.4);
}


/* فوتر */
footer {
    background: linear-gradient(135deg, var(--green-pastel), var(--red-pastel));
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 0;
}

footer h5 {
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 3px;
    background-color: white;
    border-radius: 2px;
}

footer ul {
    list-style: none;
    padding: 0;
}

footer ul li {
    margin-bottom: 0.8rem;
}

footer ul li a {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

footer ul li a:hover {
    transform: translateX(-5px);
    opacity: 0.8;
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: white;
    font-size: 1.8rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-5px);
    color: var(--white-pastel);
}

footer hr {
    background-color: rgba(255, 255, 255, 0.2);
    margin: 2rem 0;
}

/* انیمیشن‌ها */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* کلاس‌های کمکی */
.text-green-pastel {
    color: var(--green-pastel);
}

.text-red-pastel {
    color: var(--red-pastel);
}

.bg-green-pastel {
    background-color: var(--green-pastel);
}

.bg-red-pastel {
    background-color: var(--red-pastel);
}

.btn-green-pastel {
    background-color: var(--green-pastel);
    color: white;
    border: none;
}

.btn-red-pastel {
    background-color: var(--red-pastel);
    color: white;
    border: none;
}

/* واکنش‌گرایی */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero .lead {
        font-size: 1.3rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .stat-card {
        margin-bottom: 1rem;
    }

    .horizontal-card img,
    .card img {
        height: 200px;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .content-card {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero .btn {
        display: block;
        width: 80%;
        margin: 10px auto;
    }

    .stat-card h3 {
        font-size: 2rem;
    }
}


/* رفع مشکل آیکون‌ها */
.bi {
    font-family: 'bootstrap-icons' !important;
    speak-as: none;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* اطمینان از نمایش همه آیکون‌ها */
.stat-card i {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--green-pastel);
    display: inline-block;
    font-family: 'bootstrap-icons' !important;
}

.bi-flask::before {
    content: "\f4b4";
    /* کد یونیکد آیکون فلاسک */
    font-family: 'bootstrap-icons' !important;
}


/* استایل برای آیکون‌های پیام‌رسان‌ها */
.icon-circle {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    overflow: hidden;
    margin: 0 auto 5px;
}

.icon-circle:hover {
    transform: translateY(-5px);
    background-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.icon-img {
    width: 35px;
    height: 35px ;
    object-fit: contain;
}

.icon-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* تنظیمات واکنش‌گرا */
@media (max-width: 768px) {
    .icon-circle {
        width: 45px;
        height: 45px;
    }

    .icon-img {
        width: 28px;
        height: 28px;
    }
}




/* رفع مشکل پُر نشدن کامل فضا توسط عکس‌ها */

/* برای کارت‌های افقی (صفحه اصلی) */
.horizontal-card .col-md-4 img,
.card .col-md-4 img {
    width: 100% !important;
    height: 250px !important;
    object-fit: cover !important;
    /* عکس رو بدون کشیدگی برش می‌زنه تا کادر پر بشه */
    object-position: center !important;
    /* مرکز عکس رو نشون میده */
}

/* برای کارت‌های محتوایی (صفحات داخلی) */
.content-card img {
    width: 100% !important;
    height: 300px !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 15px;
}

/* برای گالری تصاویر */
.gallery-item img {
    width: 100% !important;
    height: 250px !important;
    object-fit: cover !important;
    object-position: center !important;
}

/* برای عکس‌های هدر صفحات */
.page-header img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    object-position: center;
}

/* برای عکس‌های بخش قهرمان (Hero) */
.hero img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    object-position: center;
}

/* تنظیمات واکنش‌گرا برای موبایل */
@media (max-width: 768px) {

    .horizontal-card .col-md-4 img,
    .card .col-md-4 img {
        height: 200px !important;
    }

    .content-card img {
        height: 200px !important;
    }

    .gallery-item img {
        height: 180px !important;
    }

    .page-header img {
        height: 250px;
    }

    .hero img {
        height: 350px;
    }
}

/* استایل  برای عکس‌های پیام‌رسان -   صفحه تماس */
.social-media-section {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 15px;
}

.social-item {
    text-align: center;
    transition: all 0.3s ease;
}

.social-item:hover {
    transform: translateY(-5px);
}

.social-image-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 8px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    padding: 12px;  /* این مهمه - باعث می‌شه عکس به لبه نچسبه */
}

.social-item:hover .social-image-wrapper {
    border-color: #4a6b3c;
    box-shadow: 0 8px 20px rgba(74, 107, 60, 0.2);
}

.social-image {
    width: 100%;
    height: 100%;
    object-fit: contain;  /* عکس رو بدون کشیدگی نشون بده */
    display: block;
}

.social-name {
    font-size: 0.85rem;
    color: #333;
    font-weight: 500;
    margin-top: 5px;
}

/* برای موبایل */
@media (max-width: 576px) {
    .social-image-wrapper {
        width: 60px;
        height: 60px;
        padding: 8px;
    }
    
    .social-name {
        font-size: 0.75rem;
    }
}