/* ============================================================ */
/* ===== فونت وزیر ===== */
/* ============================================================ */
/*@import url('https://v1.fontapi.ir/css/Vazir');*/
@font-face {
    font-family: 'Vazir';
    src: url('/fonts/vazirmatn/Vazirmatn-Thin.woff2') format('woff2');
    font-weight: 100;
    font-display: swap;
}

@font-face {
    font-family: 'Vazir';
    src: url('/fonts/vazirmatn/Vazirmatn-ExtraLight.woff2') format('woff2');
    font-weight: 200;
    font-display: swap;
}

@font-face {
    font-family: 'Vazir';
    src: url('/fonts/vazirmatn/Vazirmatn-Light.woff2') format('woff2');
    font-weight: 300;
    font-display: swap;
}

@font-face {
    font-family: 'Vazir';
    src: url('/fonts/vazirmatn/Vazirmatn-Regular.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Vazir';
    src: url('/fonts/vazirmatn/Vazirmatn-Medium.woff2') format('woff2');
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: 'Vazir';
    src: url('/fonts/vazirmatn/Vazirmatn-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: 'Vazir';
    src: url('/fonts/vazirmatn/Vazirmatn-Bold.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: 'Vazir';
    src: url('/fonts/vazirmatn/Vazirmatn-ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-display: swap;
}

@font-face {
    font-family: 'Vazir';
    src: url('/fonts/vazirmatn/Vazirmatn-Black.woff2') format('woff2');
    font-weight: 900;
    font-display: swap;
}

body {
    font-family: 'Vazir', Tahoma, sans-serif;
    background: #f0f4fc;
    scroll-behavior: smooth;
}

/* ============================================================ */
/* ===== رنگ‌های اصلی قالب ===== */
/* ============================================================ */
.bg-navy-dark { background-color: #011e4f; }
.bg-deepblue { background-color: #00bfff; }
.text-deepblue { color: #00bfff; }
.hover-bg-deepblue:hover { background-color: #0099cc; transition: 0.2s; }

/* ============================================================ */
/* ===== دکمه‌های شناور ===== */
/* ============================================================ */
.floating-whatsapp {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #25D366;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 14px rgba(0,0,0,0.2);
    z-index: 40;
    transition: 0.2s;
    cursor: pointer;
}
.floating-whatsapp:hover { transform: scale(1.05); background: #20b859; }

.floating-call {
    position: fixed;
    bottom: 24px;
    left: 24px;
    background: #011e4f;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 14px rgba(0,0,0,0.2);
    z-index: 40;
    transition: 0.2s;
    cursor: pointer;
}
.floating-call:hover { transform: scale(1.05); background: #002d6e; }

/* ============================================================ */
/* ===== آیکون اطلاعات رسمی دفتر ===== */
/* ============================================================ */
.info-icon {
    background: linear-gradient(135deg, #011e4f 0%, #00bfff 100%);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
}

/* ============================================================ */
/* ===== شعار هدر ===== */
/* ============================================================ */
.hero-slogan {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(6px);
    padding: 12px 24px;
    border-radius: 16px;
    border-right: 4px solid #00bfff;
    max-width: 400px;
}
.hero-fade-bottom { mask-image: none !important; -webkit-mask-image: none !important; }

/* ============================================================ */
/* ===== کارت نظرات کاربران ===== */
/* ============================================================ */
.testimonial-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    border-right: 4px solid #00bfff;
    transition: all 0.3s ease;
}
.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 3px solid #00bfff;
    object-fit: cover;
}

/* ============================================================ */
/* ===== کارت اخبار و اطلاعیه‌ها ===== */
/* ============================================================ */
.news-item {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}
.news-item:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    border-color: #00bfff;
}
.news-item .news-image {
    width: 120px;
    height: 120px;
    min-width: 120px;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    flex-shrink: 0;
}
.news-item .news-content {
    flex: 1;
    padding: 12px 0;
}
.news-item .news-title {
    font-weight: bold;
    font-size: 15px;
    color: #1a1a2e;
    margin-bottom: 4px;
}
.news-item .news-desc {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.6;
}
.news-item .news-desc-full {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0 0 0 0;
}
.news-item .news-desc-full.open {
    max-height: 300px;
    padding: 8px 0 0 0;
}
.news-item .news-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 6px;
    font-size: 11px;
    color: #9ca3af;
}
.news-item .news-read-more {
    color: #00bfff;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.news-item .news-read-more:hover {
    color: #011e4f;
    gap: 8px;
}
.news-item .news-badge {
    font-size: 10px;
    padding: 2px 12px;
    border-radius: 20px;
    display: inline-block;
    background: #011e4f;
    color: white;
}
.news-item .news-badge.important { background: #dc2626; }
.news-item .news-badge.discount { background: #eab308; color: #1a1a2e; }
.news-item .news-badge.new { background: #00bfff; }
.news-item .news-badge.announce { background: #8b5cf6; }

/* ============================================================ */
/* ===== ساعت کاری ===== */
/* ============================================================ */
.hours-title {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a2e;
    display: flex;
    align-items: center;
    gap: 6px;
}
.hours-title .fa { color: #00bfff; }

/* ============================================================ */
/* ===== گواهینامه‌ها ===== */
/* ============================================================ */
.cert-img {
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}
.cert-img:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* ============================================================ */
/* ===== گالری ===== */
/* ============================================================ */
.gallery-slider-wrapper {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
    border-radius: 16px;
    overflow: hidden;
}

/* ============================================================ */
/* ===== لایت‌باکس ===== */
/* ============================================================ */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: 0.2s;
    cursor: pointer;
}
.lightbox.active { visibility: visible; opacity: 1; }
.lightbox img {
    max-width: 90%;
    max-height: 85%;
    border-radius: 20px;
    box-shadow: 0 20px 35px rgba(0,0,0,0.4);
    border: 3px solid white;
}
.close-lightbox {
    position: absolute;
    top: 25px;
    left: 35px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    background: rgba(0,0,0,0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}
.close-lightbox:hover { background: #00bfff; transform: scale(1.05); }

/* ============================================================ */
/* ===== پیام Toast ===== */
/* ============================================================ */
.toast-message {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: #011e4f;
    color: white;
    padding: 10px 20px;
    border-radius: 40px;
    font-size: 0.8rem;
    z-index: 50;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    white-space: nowrap;
}

/* ============================================================ */
/* ===== ریسپانسیو موبایل ===== */
/* ============================================================ */
@media (max-width: 640px) {
    .news-item .news-image {
        width: 80px;
        height: 80px;
        min-width: 80px;
    }
    .news-item .news-title { font-size: 13px; }
    .news-item .news-desc { font-size: 12px; }
    .hero-slogan {
        bottom: 16px;
        right: 16px;
        padding: 8px 16px;
        max-width: 85%;
    }
    .hero-slogan h3 { font-size: 14px !important; }
    .hero-slogan p { font-size: 11px !important; }
    .floating-whatsapp,
    .floating-call {
        width: 45px;
        height: 45px;
        bottom: 18px;
    }
    .toast-message {
        font-size: 0.7rem;
        bottom: 85px;
        white-space: normal;
        width: 90%;
        text-align: center;
    }
}
/* ===== اسکرول بخش اخبار ===== */
.news-scroll-container {
    max-height: 520px;
    overflow-y: auto;
    padding: 5px;
}
.news-scroll-container::-webkit-scrollbar {
    width: 6px;
}
.news-scroll-container::-webkit-scrollbar-track {
    background: #e2e8f0;
    border-radius: 10px;
}
.news-scroll-container::-webkit-scrollbar-thumb {
    background: #00bfff;
    border-radius: 10px;
}
.news-scroll-container::-webkit-scrollbar-thumb:hover {
    background: #0099cc;
}

/* ===== اسکرول بخش نظرات ===== */
.testimonials-scroll-container {
    max-height: 300px;
    overflow-y: auto;
    padding: 5px;
    margin-bottom: 16px;
}
.testimonials-scroll-container::-webkit-scrollbar {
    width: 6px;
}
.testimonials-scroll-container::-webkit-scrollbar-track {
    background: #e2e8f0;
    border-radius: 10px;
}
.testimonials-scroll-container::-webkit-scrollbar-thumb {
    background: #00bfff;
    border-radius: 10px;
}
.testimonials-scroll-container::-webkit-scrollbar-thumb:hover {
    background: #0099cc;
}


/*update*/

/* ===== استایل یکدست برای هر دو بخش بیمه‌ها ===== */
.insurance-card {
    background: white;
    border-radius: 16px;
    padding: 14px 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    border-right: 4px solid #00bfff;
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.insurance-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    border-color: #0099cc;
}
.insurance-card .icon-wrapper {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    background: rgba(0, 191, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #00bfff;
    margin-top: 2px;
}
.insurance-card .card-content {
    flex: 1;
    min-width: 0;
}
.insurance-card .card-title {
    font-weight: bold;
    font-size: 14px;
    color: #1a1a2e;
    margin-bottom: 2px;
}
.insurance-card .card-desc {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.6;
}
.insurance-card .card-desc-full {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0 0 0 0;
}
.insurance-card .card-desc-full.open {
    max-height: 300px;
    padding: 6px 0 0 0;
}
.insurance-card .card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
}
.insurance-card .card-read-more {
    color: #00bfff;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.insurance-card .card-read-more:hover {
    color: #011e4f;
    gap: 8px;
}
.insurance-card .card-arrow {
    color: #d1d5db;
    font-size: 12px;
    flex-shrink: 0;
    margin-top: 4px;
}

/* ===== استایل بخش اصلی خدمات با چیدمان ۲+۲ ===== */
.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
@media (max-width: 640px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== استایل باکس تخفیف‌های ویژه ===== */
.discount-box {
    background: white;
    border-radius: 12px;
    padding: 8px 10px;
    text-align: center;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}
.discount-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-color: #00bfff;
}
.discount-box .icon-circle {
    width: 32px;
    height: 32px;
    margin: 0 auto;
    border-radius: 50%;
    background: rgba(0, 191, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00bfff;
    font-size: 14px;
}
.discount-box .discount-label {
    font-size: 10px;
    font-weight: bold;
    color: #fd0101;
    background: #fcdcdc;
    padding: 1px 10px;
    border-radius: 20px;
    display: inline-block;
}
.discount-box .insurance-name {
    font-size: 10px;
    font-weight: bold;
    color: #1a1a2e;
    margin-top: 2px;
}


.office-header-with-image {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.office-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.office-header-image {
    flex-shrink: 0;
    width: auto;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.office-header-image img {
    width: auto;
    height: 100%;
    object-fit: cover;
    display: block;
}
@media (max-width: 640px) {
    .office-header-image {
        width: auto;
        height: 45px;
    }
}

.hero-height {
    height: 30rem !important;
}

@media screen and (max-width: 640px) {
    .hero-height {
        height: 16rem !important;
        min-height: 16rem !important;
        max-height: 16rem !important;
    }
}





