﻿
/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    background: linear-gradient(145deg, #eef2f7 0%, #f8fafc 100%);
    color: #1e293b;
    line-height: 1.8;
    /*padding: 20px;*/
    direction: rtl;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 40px;
    box-shadow: 0 40px 100px rgba(0, 20, 40, 0.12), 0 0 0 1px rgba(255,255,255,0.6);
    padding: 30px 35px 50px;
    border: 1px solid rgba(255,255,255,0.6);
}

/* ===== HEADER ===== */
.blog-header {
    text-align: center;
    padding: 20px 0 30px;
    border-bottom: 2px solid rgba(0,0,0,0.05);
    margin-bottom: 35px;
    position: relative;
}

    .blog-header::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 50%;
        transform: translateX(-50%);
        width: 120px;
        height: 4px;
        /*background: linear-gradient(90deg, #2563eb, #7c3aed);*/
        border-radius: 4px;
        background: #7bbd89;
    }

    .blog-header h1 {
        font-size: 2.8rem;
        font-weight: 900;
        background: linear-gradient(135deg, #0b2b4a, #2563eb);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        letter-spacing: -0.5px;
    }

        .blog-header h1 i {
            background: linear-gradient(135deg, #2563eb, #7c3aed);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            margin-left: 12px;
        }

    .blog-header p {
        font-size: 1.1rem;
        color: #475569;
        margin-top: 8px;
        font-weight: 300;
    }

.badge-date {
    display: inline-block;
    background: linear-gradient(135deg, #dbeafe, #ede9fe);
    color: #1e4a7a;
    padding: 6px 24px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 12px;
    border: 1px solid rgba(37, 99, 235, 0.15);
    backdrop-filter: blur(4px);
}

/* ===== NAV ===== */
.nav-links {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

    .nav-links a {
        text-decoration: none;
        padding: 10px 28px;
        border-radius: 60px;
        font-weight: 600;
        font-size: 0.95rem;
        transition: all 0.3s ease;
        display: inline-flex;
        align-items: center;
        gap: 10px;
        border: 1px solid transparent;
    }

        .nav-links a:first-child {
            background: linear-gradient(135deg, #2563eb, #4f46e5);
            color: white;
            box-shadow: 0 8px 24px rgba(37, 99, 235, 0.30);
        }

            .nav-links a:first-child:hover {
                transform: translateY(-3px);
                box-shadow: 0 12px 32px rgba(37, 99, 235, 0.45);
            }

        .nav-links a:last-child {
            background: white;
            color: #1e293b;
            border-color: #e2e8f0;
            box-shadow: 0 4px 12px rgba(0,0,0,0.04);
        }

            .nav-links a:last-child:hover {
                border-color: #2563eb;
                color: #2563eb;
                transform: translateY(-3px);
                box-shadow: 0 8px 24px rgba(0,0,0,0.08);
            }

        .nav-links a i {
            font-size: 1.1rem;
        }

/* ===== SECTION TITLE ===== */
.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #0b2b4a;
    margin: 45px 0 25px 0;
    display: flex;
    align-items: center;
    gap: 14px;
    padding-right: 20px;
    position: relative;
}

    .section-title::before {
        content: '';
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        width: 6px;
        /*background: linear-gradient(180deg, #2563eb, #7c3aed);*/
        background: #7bbd89;
        border-radius: 6px;
    }

    .section-title i {
        /*color: #2563eb;*/
        font-size: 1.8rem;
        background: rgba(37, 99, 235, 0.10);
        color: #7bbd89;
        padding: 8px;
        border-radius: 16px;
    }
.fa-gavel * {
    background: #7bbd89;
}
/* ===== RULES GRID (Modern Cards) ===== */
.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

.rule-card {
    background: white;
    border-radius: 28px;
    padding: 26px 24px;
    transition: all 0.35s cubic-bezier(0.15, 0.75, 0.3, 1.1);
    border: 1px solid rgba(226, 232, 240, 0.6);
    box-shadow: 0 8px 24px rgba(0,0,0,0.02);
    /*box-shadow: 0 8px 24px #7bbd89;*/
    position: relative;
    overflow: hidden;
}

    .rule-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, #2563eb, #7c3aed);
        opacity: 0;
        transition: opacity 0.4s;
        background: #7bbd89;
    }

    .rule-card:hover::before {
        opacity: 1;
        background: #7bbd89;
    }

    .rule-card:hover {
        transform: translateY(-8px) scale(1.01);
        border-color: rgba(37, 99, 235, 0.25);
        box-shadow: 0 20px 48px rgba(37, 99, 235, 0.10);
        /*box-shadow: 0 20px 48px #7bbd89;*/
        background: #fafcff;
    }

    .rule-card h3 {
        font-size: 1.3rem;
        font-weight: 700;
        color: #0f3b5e;
        margin-bottom: 10px;
        display: flex;
        align-items: center;
        gap: 12px;
    }

        .rule-card h3 i {
            color: #7bbd89;
            /*color: #2563eb;*/
            font-size: 1.3rem;
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(37, 99, 235, 0.08);
            border-radius: 12px;
        }

    .rule-card p {
        color: #334155;
        font-size: 0.85rem;
        margin-bottom: 14px;
    }


.rule-tag {
    display: inline-block;
    background: linear-gradient(135deg, #dbeafe, #ede9fe);
    color: #1e4a7a;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 18px;
    border-radius: 30px;
    letter-spacing: 0.3px;
    border: 1px solid rgba(37, 99, 235, 0.10);
}

/* ===== DIRECTIVES ===== */
.directive-list {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: 32px;
    padding: 28px 32px;
    margin: 30px 0 20px;
    border: 1px solid rgba(226, 232, 240, 0.6);
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.02);
}

.directive-item {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(0,0,0,0.04);
    transition: all 0.2s;
}

    .directive-item:last-child {
        border-bottom: none;
    }

    .directive-item:hover {
        padding-right: 8px;
    }

    .directive-item i {
        font-size: 1.4rem;
        color: #2563eb;
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: white;
        border-radius: 14px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    }

    .directive-item .dir-title {
        font-weight: 600;
        color: #0b2b4a;
        flex: 1;
    }

    .directive-item .dir-date {
        font-size: 0.8rem;
        background: white;
        padding: 4px 18px;
        border-radius: 40px;
        color: #2563eb;
        font-weight: 600;
        border: 1px solid rgba(37, 99, 235, 0.12);
    }

/* ===== FAQ SECTION (با لینک به صفحه جدا) ===== */
.faq-preview {
    margin-top: 50px;
    padding: 40px 35px;
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border-radius: 36px;
    border: 1px solid rgba(226, 232, 240, 0.5);
    box-shadow: 0 12px 40px rgba(0,0,0,0.03);
    text-align: center;
}

    .faq-preview .faq-icon {
        font-size: 3.5rem;
        color: #2563eb;
        opacity: 0.15;
        margin-bottom: 10px;
    }

    .faq-preview h2 {
        font-size: 2rem;
        font-weight: 800;
        color: #0b2b4a;
        margin-bottom: 12px;
    }

    .faq-preview p {
        color: #475569;
        max-width: 500px;
        margin: 0 auto 28px;
        font-size: 1.05rem;
    }

    .faq-preview .btn-faq {
        display: inline-flex;
        align-items: center;
        gap: 14px;
        padding: 16px 40px;
        /*background: linear-gradient(135deg, #2563eb, #4f46e5);*/
        background: #7cd690;
        color: white;
        border-radius: 60px;
        font-weight: 700;
        font-size: 1.05rem;
        text-decoration: none;
        transition: all 0.3s ease;
        box-shadow: 0 12px 32px rgba(37, 99, 235, 0.30);
        border: 1px solid rgba(255,255,255,0.15);
    }

        .faq-preview .btn-faq:hover {
            transform: translateY(-4px) scale(1.02);
            box-shadow: 0 20px 48px rgba(37, 99, 235, 0.45);
        }

        .faq-preview .btn-faq i {
            font-size: 1.3rem;
        }

    .faq-preview .quick-stats {
        display: flex;
        justify-content: center;
        gap: 40px;
        margin-top: 30px;
        flex-wrap: wrap;
    }

        .faq-preview .quick-stats span {
            display: flex;
            align-items: center;
            gap: 8px;
            color: #64748b;
            font-size: 0.9rem;
        }

        .faq-preview .quick-stats i {
            color: #2563eb;
        }

/* ===== FOOTER ===== */
.footer-note {
    margin-top: 50px;
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
    border-top: 1px solid rgba(0,0,0,0.04);
    padding-top: 30px;
}

    .footer-note i {
        color: #2563eb;
    }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .container {
        padding: 20px 16px;
        border-radius: 28px;
    }

    .blog-header h1 {
        font-size: 2.2rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .directive-list {
        padding: 18px 20px;
    }

    .directive-item {
        flex-wrap: wrap;
        gap: 8px;
    }

        .directive-item .dir-date {
            margin-right: 44px;
        }

    .faq-preview {
        padding: 30px 20px;
    }

        .faq-preview .quick-stats {
            gap: 20px;
        }

    .nav-links a {
        padding: 8px 18px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .rules-grid {
        grid-template-columns: 1fr;
    }

    .blog-header h1 {
        font-size: 1.8rem;
    }

    .faq-preview h2 {
        font-size: 1.5rem;
    }
}

