@font-face {
    font-family: 'Vazirmatn RD';
    src: url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Round-Dots/fonts/webfonts/Vazirmatn-RD[wght].woff2') format('woff2 supports variations'),
        url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Round-Dots/fonts/webfonts/Vazirmatn-RD[wght].woff2') format('woff2-variations');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}
body {
    font-family: 'Vazirmatn RD', sans-serif;
    background-color: #f7f7f7;
    color: #333;
    line-height: 1.6;
}

header {
    background-color: #1a3c5e;
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.contact-info {
    background-color: #16324d;
    padding: 0.5rem;
    font-size: 1rem;
}

.contact-info a {
    color: #f1c40f;
    text-decoration: none;
    margin: 0 0.5rem;
}

.contact-info a:hover {
    text-decoration: underline;
}

.navbar-brand {
    font-size: 1.8rem;
}

.banner {
    background-image: linear-gradient(rgba(0, 0, 0, 0.2),
            rgba(0, 0, 0, 0.2)),
        url('image/banner.png');
    /* مسیر تصویر */
    background-size: cover;
    /* پر کردن قاب بدون کشیدگی زیاد */
    background-position: center;
    background-repeat: no-repeat;

    width: 100%;
    max-width: 1500px;
    /* عرض حداکثر روی دسکتاپ */
    height: 500px;
    /* ارتفاع ثابت روی دسکتاپ */
    border-radius: 10px;
    margin: 10px auto;
    /* وسط‌چین کردن */

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;

    opacity: 0;
    animation: fadeIn 1s ease-in forwards;
}

/* متن داخل بنر */
.banner h2 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.banner p {
    max-width: 60ch;
    margin: 0 1rem;
}

/* برای تبلت و موبایل */
@media (max-width: 992px) {
    .banner {
        max-width: 95%;
        /* تقریبا تمام عرض صفحه */
        height: auto;
        /* ارتفاع متناسب با عرض */
        aspect-ratio: 750 / 400;
        /* حفظ نسبت تصویر */
    }
}

@media (max-width: 576px) {
    .banner h2 {
        font-size: 1.6rem;
    }

    .banner p {
        font-size: 0.9rem;
    }
}

.section {
    
    margin-top: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    padding: 2.5rem;
}

.section.christianity {
    background-color: #e8f0fe;
    border: 1px solid #d1e0ff;
}

.section.vpn {
    background-color: #e6f7fa;
    border: 1px solid #b3e5fc;
}

.section.plans {
    background-color: #fff3e0;
    border: 1px solid #ffe0b2;
}

.section.features {
    background-color: #f0f4c3;
    border: 1px solid #dce775;
}

.section.contact {
    background-color: #fce4ec;
    border: 1px solid #f8bbd0;
}

.grid-item,
.pricing-item {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.grid-item:hover,
.pricing-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.grid-item img {
    width: 100%;
    height: auto;
    /* ارتفاع براساس نسبت اصلی */
    object-fit: contain;
    /* تصویر کامل نمایش داده می‌شود */
    border-radius: 8px;
    margin-bottom: 1rem;
}

.pricing-item button {
    background-color: #1a3c5e;
    color: white;
    border: none;
    transition: background-color 0.3s, transform 0.2s;
}

.pricing-item button:hover {
    background-color: #f1c40f;
    color: #1a3c5e;
    transform: scale(1.05);
}

footer {
    background-color: #1a3c5e;
    color: white;
    padding: 1.5rem;
    text-align: center;
}

footer .contact-info {
    background-color: transparent;
    padding: 0;
    margin-top: 0.5rem;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .banner h2 {
        font-size: 1.8rem;
    }

    .banner p {
        font-size: 1rem;
    }

    .grid-item img {
        height: 120px;
    }
}