﻿:root {
    --primary: #1a56db;
    --primary-dark: #1e3a8a;
    --primary-light: #3b82f6;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    background-color: #f8fafc;
}

/* Logo */
.logo-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary), #60a5fa);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.logo-icon-sm {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #60a5fa, #93c5fd);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

/* Navbar */
.navbar .nav-link {
    font-weight: 500;
    color: #334155 !important;
    padding: 0.5rem 1rem !important;
}

    .navbar .nav-link:hover {
        color: var(--primary) !important;
    }

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

    .btn-primary:hover {
        background-color: var(--primary-dark);
        border-color: var(--primary-dark);
    }

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

    .btn-outline-primary:hover {
        background-color: var(--primary);
        border-color: var(--primary);
    }

/* Hero */
.hero-section {
    text-align:left;
    background-image: url('../images/hero2.png') !important;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 50%, #f0f9ff 100%);
    padding: 60px 0 80px;
    position: relative;
    overflow: hidden;
    
}
.hero-overlay {
   
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient( rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6) );
    pointer-events: none;
}

.hero-title {
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1.4;
    color: #1e293b;
}


.hero-desc {
    font-size: 1.25rem;
    color: #64748b;
}

.hero-image {
    max-width: 100%;
    filter: drop-shadow(0 25px 50px rgba(0,0,0,0.15));
}
.hero-section .hero-title,
.hero-section .hero-desc {
    text-align: left;
}

.hero-features {
    justify-content: flex-end; /* در RTL از راست شروع می‌شود */
}

.feature-icon-sm {
    width: 36px;
    height: 36px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    box-shadow: 0 4px 12px rgba(26, 86, 219, 0.15);
}

/* Search Box */
.search-box {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    margin-top: -40px;
    position: relative;
    z-index: 10;
}

/* Categories */
.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 1.25rem 0.5rem;
    background: white;
    border-radius: 12px;
    text-decoration: none;
    color: #334155;
    transition: all 0.25s ease;
    border: 1px solid #e2e8f0;
    height: 100%;
}

    .category-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 24px rgba(26, 86, 219, 0.12);
        color: var(--primary);
        border-color: #bfdbfe;
    }

.category-icon {
    width: 52px;
    height: 52px;
    background: #eff6ff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
}

/* Business Cards */
.business-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: all 0.25s ease;
    height: 100%;
}

    .business-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 16px 32px rgba(0,0,0,0.1);
    }

.business-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

    .business-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.badge-featured {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #f59e0b;
    color: white;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
}

.business-body {
    padding: 1rem;
}

    .business-body h5 {
        font-size: 1rem;
        font-weight: 600;
        margin-bottom: 0.35rem;
    }

.business-card-sm {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: all 0.25s;
}

    .business-card-sm:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    }

    .business-card-sm img {
        width: 100%;
        height: 120px;
        object-fit: cover;
    }

/* Why Cards */
.why-card {
    background: white;
    border-radius: 12px;
    padding: 2rem 1.5rem;
    height: 100%;
    border: 1px solid #e2e8f0;
}

.why-icon {
    width: 60px;
    height: 60px;
    background: #eff6ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--primary);
    margin: 0 auto 1rem;
}

/* Cities */
.city-card {
    display: block;
    text-align: center;
    text-decoration: none;
    color: #334155;
}

    .city-card img {
        width: 100%;
        aspect-ratio: 1;
        object-fit: cover;
        border-radius: 12px;
        margin-bottom: 8px;
        transition: transform 0.25s;
    }

    .city-card:hover img {
        transform: scale(1.05);
    }

    .city-card span {
        font-weight: 500;
        font-size: 0.95rem;
    }

/* Final CTA */
.final-cta {
    background: linear-gradient(135deg, #1e3a8a 0%, #1a56db 50%, #3b82f6 100%);
    position: relative;
    overflow: hidden;
}

/* Footer */
.footer-section {
    background: #0f172a;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.5rem;
}

    .footer-links a:hover {
        color: white;
    }

.footer-contact li {
    color: #94a3b8;
    margin-bottom: 0.6rem;
    font-size: 0.9rem;
}

.footer-contact i {
    margin-left: 8px;
    color: #60a5fa;
}

.social-icon {
    width: 36px;
    height: 36px;
    background: #1e293b;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.2s;
}

    .social-icon:hover {
        background: var(--primary);
        color: white;
    }

/* Utilities */
.section-title {
    font-weight: 700;
    color: #1e293b;
}

.min-vh-75 {
    min-height: 75vh;
}

.col-xl-1-5 {
    flex: 0 0 auto;
    width: 12.5%;
}
/* نمایش توضیحات آگهی */
/* ========================================================
   استایل بخش محتوای متنی آگهی (Rich Text Typography)
   ======================================================== */
.ad-content {
    font-size: 1.05rem;
    line-height: 2.05;
    color: #333333;
    text-align: justify;
    word-break: break-word;
    direction: rtl;
}

    /* پاراگراف‌ها */
    .ad-content p {
        margin-bottom: 1.25rem;
    }

    /* تیترها (هدینگ‌ها) */
    .ad-content h1,
    .ad-content h2,
    .ad-content h3,
    .ad-content h4,
    .ad-content h5,
    .ad-content h6 {
        color: #1a202c;
        font-weight: 700;
        line-height: 1.6;
        margin-top: 2rem;
        margin-bottom: 1rem;
        position: relative;
    }

    .ad-content h2 {
        font-size: 1.45rem;
        padding-bottom: 0.5rem;
        border-bottom: 2px solid #edf2f7;
    }

        .ad-content h2::after {
            content: '';
            position: absolute;
            bottom: -2px;
            right: 0;
            width: 60px;
            height: 2px;
            background-color: #007bff; /* یا رنگ اصلی تم سایت */
        }

    .ad-content h3 {
        font-size: 1.25rem;
    }

    /* لیست‌ها */
    .ad-content ul,
    .ad-content ol {
        margin-bottom: 1.5rem;
        padding-right: 1.75rem;
        padding-left: 0;
    }

    .ad-content ul {
        list-style-type: disc;
    }

    .ad-content ol {
        list-style-type: decimal;
    }

    .ad-content li {
        margin-bottom: 0.5rem;
        line-height: 1.9;
    }

    /* تصاویر داخل متن */
    .ad-content img {
        max-width: 100%;
        height: auto !important;
        border-radius: 8px;
        margin: 1.5rem auto;
        display: block;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    }

    /* لینک‌ها */
    .ad-content a {
        color: #0066cc;
        text-decoration: underline;
        text-underline-offset: 4px;
        transition: color 0.2s ease;
    }

        .ad-content a:hover {
            color: #004080;
        }

    /* جداول */
    .ad-content table {
        width: 100%;
        margin-bottom: 1.5rem;
        border-collapse: collapse;
        display: block;
        overflow-x: auto; /* برای جلوگیری از به هم ریختن صفحه در موبایل */
    }

        .ad-content table th,
        .ad-content table td {
            padding: 0.75rem 1rem;
            border: 1px solid #e2e8f0;
            text-align: right;
        }

        .ad-content table th {
            background-color: #f7fafc;
            font-weight: 600;
        }

    /* نقل‌قول‌ها / نکات برجسته */
    .ad-content blockquote {
        margin: 1.5rem 0;
        padding: 1rem 1.25rem;
        background-color: #f8fafc;
        border-right: 4px solid #007bff;
        border-radius: 4px;
        color: #4a5568;
        font-style: normal;
    }


/* */

@media (max-width: 1200px) {
    .col-xl-1-5 {
        width: 25%;
    }
}
