﻿
/* خط زیر عنوان */
.title-line {
    width: 50px; /* کمی کوتاه‌تر */
    height: 3px;
    background-color: var(--bs-primary);
    border-radius: 2px;
}

/* کانتینر اصلی اسلایدر */
.articles-wrapper {
    position: relative;
    padding: 5px 0; /* کاهش فاصله عمودی */
}

.articles-container {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 15px; /* فاصله بین کارت‌ها از 25 به 15 کاهش یافت */
    padding: 15px 5px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

    .articles-container::-webkit-scrollbar {
        display: none;
    }

/* بخش اصلی تغییر: عرض کارت از 320 به 265 کاهش یافت */
.article-item {
    min-width: 265px;
    max-width: 265px;
}

/* استایل کارت مقاله */
.article-card {
    transition: all 0.3s ease; /* سرعت انیمیشن کمی بیشتر شد */
    border-radius: 15px; /* گوشه‌ها کمی جمع‌وجورتر */
    border: 1px solid rgba(0,0,0,0.05) !important; /* یک بردر بسیار محو */
}

    .article-card:hover {
        transform: translateY(-7px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.08) !important;
    }

/* تصویر مقاله: ارتفاع از 220 به 155 کاهش یافت */
.card-img-container {
    position: relative;
    height: 155px;
    padding: 10px; /* پدینگ داخلی عکس */
}

.card-img-top {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.5s ease;
}

/* لایه روی تصویر (Overlay) */
.card-overlay {
    position: absolute;
    inset: 10px; /* هماهنگ با پدینگ کانتینر */
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.article-card:hover .card-overlay {
    opacity: 1;
}

/* دکمه‌های اسکرول: کمی کوچک‌تر برای ظرافت */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #fff;
    border: none;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    z-index: 10;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bs-primary);
}

    .nav-btn:hover {
        background: var(--bs-primary);
        color: #fff;
        box-shadow: 0 4px 15px rgba(var(--bs-primary-rgb), 0.3);
    }

    .nav-btn.prev {
        right: -15px;
    }

    .nav-btn.next {
        left: -15px;
    }

/* عنوان مقاله: کوچک‌تر و مرتب */
.card-title {
    font-size: 1rem; /* از 1.1 به 1 تغییر کرد */
    line-height: 1.4;
    height: 2.8em; /* ارتفاع ثابت برای تراز شدن دکمه‌های ادامه مطلب */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px;
}

/* متن خلاصه مقاله */
.card-text {
    display: -webkit-box;
    -webkit-line-clamp: 2; /* تعداد خط از 3 به 2 کاهش یافت برای جمع‌وجور شدن */
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.82rem; /* متن ریزتر و شیک‌تر */
    line-height: 1.5;
    color: #6c757d;
}

/* متای مقاله (تاریخ و نویسنده) */
.article-meta {
    font-size: 0.72rem;
    margin-bottom: 6px;
}

@media (max-width: 768px) {
    .nav-btn {
        display: none;
    }

    .article-item {
        min-width: 250px; /* در موبایل هم کمی کوچک‌تر شد */
    }

    .articles-container {
        gap: 12px;
    }
}


.articles-admin-container {
    font-size: 0.85rem; /* اندازه فونت استاندارد معمولا 1rem است */
}

/* ظریف کردن تیتر جدول */
.table thead th {
    font-weight: 600;
    font-size: 0.8rem;
    color: #555;
    background-color: #f8f9fa;
}

/* جلوگیری از بزرگ شدن بیش از حد سلول‌های جدول */
.table td {
    padding: 0.5rem 0.4rem;
    vertical-align: middle;
}

/* کوچک کردن دکمه‌های عملیات */
.btn-sm {
    padding: 0.25rem 0.4rem;
    font-size: 0.75rem;
}

/* استایل برای متن‌های طولانی (Body) در پیش‌نمایش */
.text-truncate-custom {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.8rem;
}

.hero {
    padding: 100px 0;
    /*background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);*/ /* ایجاد یک هاله ملایم */
}

.hero-content h1 {
    font-size: 2.8rem;
    font-weight: 800;
    color: #2c3e50;
    line-height: 1.4;
    margin-bottom: 25px;
}

.hero-content p {
    font-size: 1.1rem;
    color: #5d6d7e;
    line-height: 1.8;
    text-align: justify;
}

/* استایل دکمه اصلی */
.btn-primary {
    background-color: #007bff;
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

    .btn-primary:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
        color: white;
    }

/* بخش آمار */
.hero-stats {
    display: flex;
    gap: 30px;
    margin-top: 40px;
    border-top: 1px solid #dee2e6;
    padding-top: 30px;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: #007bff;
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    color: #7f8c8d;
}

/* تصویر هیرو */
.hero-image img {
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.1));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

.bg-light-primary {
    background-color: rgba(var(--bs-primary-rgb), 0.1);
}



.info-card {
    border: 1px solid #f0f0f0 !important;
}

.social-btn {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #f8f9fa;
    color: #555;
    font-size: 1.2rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

    /* هاور اختصاصی برای هر شبکه */
    .social-btn.instagram:hover {
        background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
        color: white;
        transform: translateY(-5px);
    }

    .social-btn.whatsapp:hover {
        background-color: #25D366;
        color: white;
        transform: translateY(-5px);
    }

    .social-btn.telegram:hover {
        background-color: #0088cc;
        color: white;
        transform: translateY(-5px);
    }

    .social-btn:hover {
        box-shadow: 0 8px 15px rgba(0,0,0,0.1);
    }


/* استایل کارت‌های کوچک مسیریابی */
.nav-link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 5px;
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    font-size: 0.8rem;
    font-weight: bold;
    background-color: #fcfcfc;
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.nav-logo {
    width: 28px;
    height: 28px;
    margin-bottom: 5px;
    border-radius: 6px;
}

.nav-link-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    background-color: #fff;
}

/* رنگ حاشیه در هاور برای هر اپلیکیشن */
.neshan:hover {
    border-color: #f05a28;
    color: #f05a28;
}

.balad:hover {
    border-color: #008eb3;
    color: #008eb3;
}

.google:hover {
    border-color: #4285F4;
    color: #4285F4;
}

.contact-map-wrapper iframe {
    filter: contrast(1.1);
}

/* کارت تیم */
.member-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f0f0f0;
}

    .member-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
    }

/* تصویر درمانگر */
.member-img-wrapper {
    position: relative;
    height: 300px;
    overflow: hidden;
}

    .member-img-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

.member-card:hover .member-img-wrapper img {
    transform: scale(1.1);
}

/* لایه شبکه‌های اجتماعی روی عکس */
.member-social-overlay {
    position: absolute;
    inset: 0;
    background: rgba(var(--bs-primary-rgb), 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.member-card:hover .member-social-overlay {
    opacity: 1;
}

.member-social-overlay a {
    color: white;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

    .member-social-overlay a:hover {
        transform: scale(1.2);
    }

/* تیترهای گروه‌ها */
.team-group-header h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #444;
}

.member-content h5 {
    font-size: 1.1rem;
    color: #333;
}

.about-content .lead {
    font-size: 1.15rem;
    line-height: 1.8;
}

/* کارت‌های اعداد */
.stat-card {
    background-color: #fcfcfc;
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

    .stat-card:hover {
        background-color: #fff;
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(var(--bs-primary-rgb), 0.1) !important;
    }

/* افکت تصویر */
.about-image-wrapper {
    z-index: 1;
}

.main-about-img {
    z-index: 2;
    position: relative;
    border: 8px solid #fff;
}

.image-border-effect {
    position: absolute;
    top: -20px;
    right: 30px;
    width: 80%;
    height: 80%;
    border: 10px solid rgba(var(--bs-primary-rgb), 0.05);
    border-radius: 20px;
    z-index: 0;
}

/* کارت شناور */
.about-floating-card {
    position: absolute;
    bottom: -30px;
    right: -20px;
    z-index: 10;
    min-width: 240px;
    border-right: 5px solid var(--bs-primary);
}

.floating-icon-box {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hover-primary:hover {
    color: var(--bs-primary) !important;
}

@media (max-width: 991px) {
    .about-image-wrapper {
        padding-left: 0 !important;
        margin-top: 50px;
    }

    .about-floating-card {
        right: 10px;
        bottom: 10px;
    }
}

.service-card {
    transition: all 0.3s ease;
    position: relative;
    top: 0;
}

    .service-card:hover {
        top: -10px;
        box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
    }

.service-icon {
    width: 65px;
    height: 65px;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: rotateY(180deg);
}

/* رنگ‌های ملایم پس‌زمینه آیکون‌ها */
.bg-light-primary {
    background-color: rgba(13, 110, 253, 0.1);
}

.bg-light-info {
    background-color: rgba(13, 202, 240, 0.1);
}

.bg-light-success {
    background-color: rgba(25, 135, 84, 0.1);
}

.bg-light-warning {
    background-color: rgba(255, 193, 7, 0.1);
}

.bg-light-danger {
    background-color: rgba(220, 53, 69, 0.1);
}

.bg-light-secondary {
    background-color: rgba(108, 117, 125, 0.1);
}
