/* ========== RESET & BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', sans-serif !important;
    background-color: #F8FAFC;
    direction: rtl;
    line-height: 1.5;
    color: #1a1a1a;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url("../font/Vazirmatn-Regular.woff2");
}

/* پترن پس‌زمینه اختصاصی آهن پارسه */
.pattern-dots {
    background-image: radial-gradient(#ffffff 2px, transparent 2px);
    background-size: 20px 20px;
}

/* حذف اسکرول‌بار مرورگر برای اسلایدرها به منظور زیباسازی قالب */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* --- استایل‌های مشترک کارت‌ها (مورد نیاز برای اسلایدر مقالات صفحه اول) --- */
.custom-card {
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.05));
    transition: all 0.4s ease;
    height: 100%;
}

.custom-card:hover {
    filter: drop-shadow(0 20px 25px rgba(215, 0, 0, 0.15));
    transform: translateY(-5px);
}

.card-shape {
    background-color: white;
    border-radius: 2.5rem;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* دکمه قرمز پایین کارت مقالات */
.card-action-btn {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 70px;
    height: 70px;
    background: #D70000;
    border-top-right-radius: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
    z-index: 10;
}

.custom-card:hover .card-action-btn {
    width: 100%;
    border-top-right-radius: 0;
    border-top-left-radius: 0;
}

.btn-icon {
    font-size: 1.5rem;
    transition: all 0.3s;
}

.btn-text {
    opacity: 0;
    width: 0;
    white-space: nowrap;
    overflow: hidden;
    transition: all 0.3s;
    font-weight: bold;
}

.custom-card:hover .btn-text {
    opacity: 1;
    width: auto;
    margin-right: 10px;
}

.card-image-wrapper {
    overflow: hidden;
    border-radius: 2rem;
    margin: 10px;
    height: 200px;
    position: relative;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.custom-card:hover .card-image-wrapper img {
    transform: scale(1.05);
}

/* استایل آکاردئون بخش سوالات متداول */
.faq-item {
    border-radius: 1.5rem;
    border: 1px solid #f3f4f6;
    transition: all 0.3s ease;
}
.faq-item:hover {
    border-color: #fee2e2;
    transform: translateX(-5px);
}
.faq-active {
    border-color: #D70000;
    background-color: #fff1f2;
}

/* ========== استایل یکپارچه و فیکس شده‌ی فوتر رسمی (مطابق تصویر چهارم شما) ========== */
.site-footer {
    background-color: #191919;
    color: #ffffff;
    padding: 60px 20px 30px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    border-top: 4px solid #D70000;
}

.footer-content {
    width: 100%;
    max-width: 1400px;
    z-index: 2;
}

.footer-slogan {
    font-size: 2.2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 40px;
    color: #ffffff;
}

.contact-box {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.phone-btn {
    font-size: 1.5rem;
    font-weight: 800;
    padding: 12px 30px;
    border-radius: 16px;
    min-width: 260px;
    text-align: center;
    display: inline-block;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-filled {
    background-color: #D70000;
    border: 3px solid #D70000;
    color: white;
}
.btn-filled:hover {
    background-color: #b00000;
    border-color: #b00000;
}

.btn-outline {
    background-color: transparent;
    border: 3px solid #D70000;
    color: white;
}
.btn-outline:hover {
    background-color: #D70000;
}

.footer-links-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 50px;
    text-align: center;
}

.footer-col h4 {
    font-size: 1.35rem;
    margin-bottom: 25px;
    color: #ffffff;
    font-weight: 800;
    border-right: 4px solid #D70000;
    padding-right: 10px;
    text-align: right;
    display: inline-block;
    width: fit-content;
}

.footer-col ul {
    list-style: none;
    text-align: right;
    padding-right: 14px;
}

.footer-col ul li {
    margin-bottom: 15px;
}

.footer-col ul li a {
    font-size: 1rem;
    color: #cbd5e1;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-col ul li a:hover {
    color: #D70000;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.trust-seals {
    display: flex;
    gap: 15px;
    flex: 1;
    justify-content: flex-start;
}

.trust-seal-img {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    object-fit: contain;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright-text {
    flex: 2;
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
}

.social-media {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.social-icon {
    width: 45px;
    height: 45px;
    background-color: #D70000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon svg {
    width: 20px;
    height: 20px;
    fill: white;
}

.social-icon:hover {
    background-color: white;
    transform: translateY(-3px);
}
.social-icon:hover svg {
    fill: #D70000;
}

/* ========== واکنش‌گرایی پیشرفته (RESPONSIVE) ========== */
@media (max-width: 992px) {
    .footer-links-container {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    .footer-col h4 {
        border-right: none;
        border-bottom: 2px solid #D70000;
        padding-right: 0;
        padding-bottom: 5px;
        text-align: center;
        margin: 0 auto 20px;
        display: block;
    }
    .footer-col ul {
        text-align: center;
        padding-right: 0;
    }
    .footer-bottom {
        flex-direction: column-reverse;
        gap: 25px;
    }
    .trust-seals, .social-media {
        justify-content: center;
        width: 100%;
    }
    .copyright-text {
        font-size: 0.95rem;
        margin: 10px 0;
    }
    .footer-slogan {
        font-size: 1.75rem;
    }
    .phone-btn {
        width: 100%;
        font-size: 1.3rem;
    }
}