/* ==========================================================================
   Variables & Base Setup
   ========================================================================== */
.front-page-main {
    --primary-color: #0d2240;
    --secondary-color: #f19000;
    --text-main: #333333;
    --text-muted: #666666;
    --bg-light: #f9f9f9;
    --border-color: #e5e5e5;
    --transition: all 0.3s ease;
    --border-radius: 8px;
    font-family: inherit;
    direction: rtl;
    text-align: right;
    color: var(--text-main);
    overflow-x: hidden;
    padding: 0;
    max-width: none;
    margin: 0 auto;
}

/* Utilities */
.hero-slide .container {
    padding: 0 15px;
    display: flex;
    justify-content: flex-start;
    flex-direction: row;
    align-items: flex-start;
    width: 1280px;
}

.best-sellers-section .container {
    padding: 48px 0 20px 0;
}



.front-page-main .bg-dark {
    background-color: var(--primary-color);
}


.front-page-main .text-center {
    text-align: right;
}

.front-page-main .text-white {
    color: #ffffff;
}

.front-page-main .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Typography */
.front-page-main .section-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 14px;
    color: #000;
}

.front-page-main .section-header {
    margin-bottom: 30px;
}

/* Buttons */
.front-page-main .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
}

.front-page-main .btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    padding: 12px 32px;
}

.front-page-main .btn-primary:hover {
    background-color: #09172b;
    color: #fff;
}

.front-page-main .btn-warning {
    background-color: var(--secondary-color);
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    padding: 12px 32px;
}

.front-page-main .btn-warning:hover {
    background-color: #d67f00;
    color: #fff;
}

.front-page-main .btn-lg {
    padding: 14px 32px;
    font-size: 1.1rem;
}

.front-page-main .btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

/* ==========================================================================
   Hero Slider Section
   ========================================================================== */
.hero-section {
    padding: 0;
    /* حذف پدینگ قبلی تا اسلایدر تمام صفحه شود */
    overflow: hidden;
    position: relative;
}

.hero-slide {
    position: relative;
    display: flex;
    min-height: 523px;
    padding: 80px 0;
    justify-content: center;
}

/* تبدیل تگ picture به حالت background-image */
.hero-bg-picture {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    /* قرار دادن تصویر زیر محتوا */
}

.hero-bg-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* دقیقا مثل background-size: cover عمل می‌کند */
    object-position: center;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 550px;
    /* محدود کردن عرض متن تا روی کل عکس پخش نشود */
    /* در صورت نیاز می‌توانی اینجا یک بک‌گراند نیمه‌شفاف هم اضافه کنی */
}

.hero-title {
    font-size: 24px;
    line-height: 1.6;
    margin-bottom: 25px;
    color: #000;
    font-weight: 600;
}

.hero-title span {
    color: #000000;
}

.slide2 .hero-title span {
    color: #fff;
}

.slide2 .hero-features-list li {
    color: #fff;
}

.hero-title.text-white {
    color: #fff;
}

.hero-features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 35px 0;
}

.hero-features-list li {
    position: relative;
    padding-right: 19px;
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 500;
    color: #000;
}

.hero-features-list li::before {
    content: "●";
    position: absolute;
    right: 0;
    top: 0;
    color: var(--secondary-color);
    font-size: 1.1rem;
}

/* اورراید کردن رفتار پیش‌فرض Owl Carousel که کل اسلایدر را مخفی می‌کند */
.hero-slider.owl-carousel:not(.owl-loaded) {
    display: block !important;
    width: 100%;
    overflow: hidden;
}

/* مخفی کردن تمام اسلایدها در زمان لود اولیه */
.hero-slider.owl-carousel:not(.owl-loaded) .hero-slide {
    display: none;
}

/* نمایش اجباری و فوری فقط اسلاید اول قبل از اجرای جاوااسکریپت */
.hero-slider.owl-carousel:not(.owl-loaded) .hero-slide:first-child {
    display: flex !important;
    /* مطابقت با دیسپلی اصلی شما در .hero-slide */
    width: 100%;
}

.hero-slider .owl-dots .owl-dot {
    background-color: #a67524 !important;
    width: 10px;
    height: 10px;
}

.hero-slider .owl-dots .owl-dot.active {
    width: 28px;
}

/* ==========================================================================
   Best Sellers (Products)
   ========================================================================== */
.products-tabs-nav {
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 25px;
    width: auto;
    max-width: max-content;
}

.tabs-list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 20px;
    overflow-x: auto;
    scrollbar-width: none;
}

.tab-item {
    padding: 6px 5px;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-muted);
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    transition: var(--transition);
    font-size: 16px;
}

.tab-item.active {
    color: var(--primary-color);
    border-bottom-color: #0A3762;
}

.product-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 15px;
    text-align: center;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    will-change: transform, box-shadow;
}

.product-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
    /* جایگزین بهتری برای ایجاد افکت هاور */
}

.product-thumb {
    position: relative;
    margin: 0 0 15px 0;
    aspect-ratio: 1 / 1;
    /* اگه woocommerce_thumbnail چیزی غیر از مربع کراپ میشه، این عدد رو عوض کن */
    overflow: hidden;
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--secondary-color);
    color: #fff;
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 4px;
}

.product-name {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

.product-name a {
    text-decoration: none;
    text-align: right;
    font-size: 14px;
    font-weight: 600;
    color: #000 !important;
    line-height: 1.5;
    padding: 0 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 42px;
}

span.rating-value {
    color: #333333;
    font-size: 12px;
    font-weight: 500;
}

.owl-carousel .owl-nav button.owl-next,
.owl-carousel .owl-nav button.owl-prev {
    top: 50%;
}

.product-rating svg {
    width: 14px;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    position: absolute;
    top: 0;
}

.product-price {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
    text-align: right;
}

span.price-prefix {
    display: block;
    font-size: 12px;
    text-align: right;
    color: #a0a0a0;
    font-weight: 400;
}

/* ==========================================================================
   Products Slider Pre-initialization State (CLS Fix)
   ========================================================================== */
.products-carousel:not(.owl-loaded) {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow: hidden !important;
    /* حذف gap - تطبیق با رفتار ذاتی Owl Carousel در حالت RTL */
}

.products-carousel:not(.owl-loaded) .product-card {
    flex: 0 0 auto;
    /* محاسبه دقیق: (100% تقسیم بر تعداد آیتم) منهای (حاشیه 8 پیکسلی) */
    width: calc((100% / 2.2) - 8px);
    margin-left: 8px;
    min-height: 280px;
}

@media (min-width: 576px) {
    .products-carousel:not(.owl-loaded) .product-card {
        width: calc((100% / 3.5) - 8px);
    }
}

@media (min-width: 768px) {
    .products-carousel:not(.owl-loaded) .product-card {
        width: calc((100% / 4.5) - 8px);
    }
}

@media (min-width: 992px) {
    .products-carousel:not(.owl-loaded) .product-card {
        width: calc((100% / 5.5) - 8px);
    }
}

@media (min-width: 1200px) {
    .products-carousel:not(.owl-loaded) .product-card {
        width: calc((100% / 7.5) - 8px);
    }
}

/* ==========================================================================
   Other Utilities
   ========================================================================== */
.services-carousel .service-img a img {
    padding: 18px;
}

@media (min-width: 768px) {
    .services-carousel .service-img a img {
        padding: 14px;
    }
}

.services-carousel .owl-stage-outer,
.blog-carousel .owl-stage-outer,
.products-carousel .owl-stage-outer {
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%);
    mask-image: linear-gradient(to right, transparent 0%, black 8%);
}

/* ==========================================================================
   Services Network Carousel
   ========================================================================== */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: right;
    margin-bottom: 20px;
}

.best-sellers-section .section-header {
    display: block;
}

.why-us-section .section-header {
    text-align: center;
    display: block;
}

.service-img {
    margin: 0;
    overflow: hidden;
    background-color: #EFF5FA;
    border-radius: 8px;
}

.service-content {
    padding: 20px 10px;
}

.service-title {
    font-size: 14px;
    font-weight: 600;
    color: #000;
    margin: 0;
    line-height: 1.6;
    text-align: center;
}

.service-title a {
    color: #000;
}

/* ==========================================================================
   Services Carousel Pre-initialization State (CLS Fix)
   ========================================================================== */
.services-carousel:not(.owl-loaded) {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow: hidden !important;
}

.services-carousel:not(.owl-loaded) .service-card {
    flex: 0 0 auto;
    /* Base/Mobile (0px+): items 2.5, margin 10px */
    width: calc((100% / 2.5) - 10px);
    margin-left: 10px;
    /* RTL Alignment */
}

@media (min-width: 576px) {
    .services-carousel:not(.owl-loaded) .service-card {
        /* 576px+: items 3.5, margin 12px (inherits from global JS config) */
        width: calc((100% / 3.5) - 12px);
        margin-left: 12px;
    }
}

@media (min-width: 768px) {
    .services-carousel:not(.owl-loaded) .service-card {
        /* 768px+: items 4.5 */
        width: calc((100% / 4.5) - 12px);
    }
}

@media (min-width: 992px) {
    .services-carousel:not(.owl-loaded) .service-card {
        /* 992px+: items 5.5 */
        width: calc((100% / 5.5) - 12px);
    }
}

@media (min-width: 1200px) {
    .services-carousel:not(.owl-loaded) .service-card {
        /* 1200px+: items 7.5 */
        width: calc((100% / 7.5) - 12px);
    }
}

/* ==========================================================================
   Category Icons
   ========================================================================== */
.category-icons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
    gap: 20px;
    text-align: center;
}

.category-icon-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-main);
    transition: var(--transition);
}

.category-icon-box:hover {
    color: var(--secondary-color);
}

.icon-wrapper {
    width: 40px;
    height: 40px;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.category-name {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
}

.category-icons-section .container {
    margin: 0 auto 48px auto;
}

/* ==========================================================================
   Why Choose Us Section (Dark Cards)
   ========================================================================== */
.why-us-section {
    position: relative;
    background-image: url("https://falnic.com/wp-content/uploads/a7ee5058b2f552b64d8820374a744f5c.webp");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    overflow: hidden;
}

/* Overlay */
.why-us-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: var(--e-global-color-3d3de09);
    opacity: 0.5;
    /* در صورت نیاز قابل تغییر است */
    z-index: 1;
}

/* نمایش محتوا روی Overlay */
.why-us-section .container {
    position: relative;
    z-index: 2;
}

.why-us-section .section-title {
    color: #ffffff;
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: 600;
}

.insurance-tabs-section .section-title {
    text-align: center;
}

.why-us-section .section-subtitle {
    color: #fff;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 32px;
    font-weight: 300;
}

.why-us-section .container {
    padding-block: 48px;
}

.features-grid-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.feature-box {
    border: 1px solid #FFFFFF;
    border-radius: 8px;
    padding: 20px;
    background-color: #031830;
}


.feature-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* در حالت RTL عناصر را از سمت راست می‌چیند */
    gap: 12px;
    margin-bottom: 15px;
}

.feature-icon {
    /* می‌توانید آیکون را با رنگ زرد/نارنجی فالنیک ست کنید */
    color: #fca311;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* اگر از تگ img برای آیکون‌های SVG استفاده می‌کنی این کد فعال باشد */
.feature-icon img {
    width: 35px;
    height: auto;
}

.feature-title {
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    margin: 0;
}

.feature-desc {
    color: #fff;
    font-size: 14px;
    line-height: 22px;
    margin: 0;
    text-align: right;
    font-weight: 200;
}

.services-cards-section .container {
    padding: 0px 0 48px 0;
}

.office-machine-section .container {
    padding: 64px 0 48px 0;
}

/* ==========================================================================
   Testimonials & Logos Section
   ========================================================================== */
.testimonials-section {
    background-color: #ffffff;
}

.testimonials-section .section-header {
    margin-bottom: 8px;
    /* فضای بیشتر برای آواتارهایی که بیرون می‌زنند */
}

.testimonials-slider-wrapper {
    position: relative;
}

.testimonial-card {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 0 25px 25px;
    margin-top: 40px;
    /* فضای خالی برای بیرون زدن عکس از بالا */
    transition: var(--transition);
}

.testimonial-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-color: #dcdcdc;
}

.testimonial-header {
    margin-top: -31px;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 20px;
    margin-bottom: 20px;
    flex-direction: row-reverse;
}

.author-info {
    margin-top: auto;
    text-align: right;
    padding: 5px;
    display: flex;
    flex-direction: column;
}

.author-name {
    font-size: 16px;
    font-weight: 600;
    color: #222;
    margin: 0 0 5px 0;
}

.author-title {
    font-size: 15px;
    color: #333;
    font-weight: 400;
}

.author-avatar-wrapper {

    flex-shrink: 0;
}

.author-avatar-wrapper img {
    width: 104px !important;
    height: 104px !important;
    border-radius: 10px;
    object-fit: cover;
    border: 4px solid #ffffff;
}

.testimonial-content p {
    font-size: 14px;
    line-height: 22px;
    color: #000;
    text-align: right;
    margin: 0;
    font-weight: 400;
}

.office-machine .container {
    padding: 64px 0 48px 0;
}

/* Customizing Owl Carousel Navigation Arrows */
.testimonials-slider-wrapper .owl-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    left: 0;
    transform: translateY(-50%);
    pointer-events: none;
    /* کلیک‌ها از کانتینر عبور کنند تا متن‌ها قابل انتخاب باشند */
    margin: 0;
}

.testimonials-section .owl-carousel.owl-rtl .owl-item {
    display: flex;
}

.testimonials-section .owl-carousel .owl-stage {
    display: flex;
}

.owl-nav button {
    position: absolute;
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    transition: all 0.3s ease;
}


/* جایگذاری دکمه‌ها در راست و چپ */
.owl-nav .owl-prev {
    right: -56px;
}

.owl-nav .owl-next {
    left: -56px;
}

.services-carousel .owl-nav .owl-prev,
.services-carousel .owl-nav .owl-next,
.brands-carousel .owl-nav .owl-prev,
.brands-carousel .owl-nav .owl-next {
    top: 50%;
}

/* SVG Icon sizing */
.owl-nav button svg {
    width: 24px;
    height: 24px;
}

/* Logos Section (New Carousel) */
.customer-logos-wrapper {
    padding: 40px 0 62px 0;
}

.logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
}

.logo-item img {
    max-width: 100%;
    max-height: 100%;
    transition: all 0.3s ease;
}

.logo-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

.brand-item img {
    display: block;
    height: 114px;
    padding: 4px;
    width: 100%;
    border-style: solid;
    border-width: 1px 1px 1px 1px;
    border-color: #dadada;
    border-radius: 20px 20px 20px 20px;
    -webkit-filter: grayscale(1);
    opacity: 0.65;
    filter: gray;
    transition: all ease 0.5s;
    object-fit: contain;
}

.brand-item img:hover {
    border-style: solid !important;
    border-color: #1F608D !important;
    border-radius: 20px 20px 20px 20px;
    border-width: 1px;
    transition: all ease 0.5s;
    -webkit-filter: grayscale(0);
    opacity: 1;
    box-shadow: 0px 15px 20px 0px rgba(0, 0, 0, 0.1);
}

.partner-brands-section .container {
    padding: 64px 0 80px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .testimonials-slider-wrapper {
        padding: 0 10px;
    }

    /* مخفی کردن دکمه‌های چپ و راست در موبایل برای فضای بیشتر */
    .testimonials-slider-wrapper .owl-nav {
        display: none !important;
    }
}

/* ==========================================================================
   Testimonials Carousel Pre-initialization State (CLS Fix)
   ========================================================================== */
.testimonials-carousel:not(.owl-loaded) {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow: hidden !important;
    /* اعمال پدینگ بالا برای جلوگیری از برش آواتار (به دلیل margin-top منفی) */
    padding-top: 10px;
}

.testimonials-carousel:not(.owl-loaded) .testimonial-card {
    flex: 0 0 auto;
    /* Base/Mobile (0px+): items 1.05, margin 12px */
    width: calc((100% / 1.05) - 12px);
    margin-left: 12px;
    /* RTL Alignment */
}

@media (min-width: 768px) {
    .testimonials-carousel:not(.owl-loaded) .testimonial-card {
        /* 768px+: items 2.5 */
        width: calc((100% / 2.5) - 12px);
    }
}

@media (min-width: 1024px) {
    .testimonials-carousel:not(.owl-loaded) .testimonial-card {
        /* 1024px+: items 2.15 */
        width: calc((100% / 2.15) - 12px);
    }
}

@media (min-width: 1200px) {
    .testimonials-carousel:not(.owl-loaded) .testimonial-card {
        /* 1200px+: items 3.10 */
        width: calc((100% / 3.10) - 12px);
    }
}

/* ==========================================================================
   Blog Carousel Pre-initialization State (CLS Fix)
   ========================================================================== */
.blog-carousel:not(.owl-loaded) {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow: hidden !important;
}

.blog-carousel:not(.owl-loaded) .post-card {
    flex: 0 0 auto;
    /* Base/Mobile (0px+): items 1.5, margin 20px */
    width: calc((100% / 1.5) - 20px);
    margin-left: 20px;
    /* RTL Alignment */
}

@media (min-width: 768px) {
    .blog-carousel:not(.owl-loaded) .post-card {
        /* 768px+: items 2.5 */
        width: calc((100% / 2.5) - 20px);
    }
}

@media (min-width: 992px) {
    .blog-carousel:not(.owl-loaded) .post-card {
        /* 992px+: items 3.5 */
        width: calc((100% / 3.5) - 20px);
    }
}

@media (min-width: 1200px) {
    .blog-carousel:not(.owl-loaded) .post-card {
        /* 1200px+: items 4.5 */
        width: calc((100% / 4.5) - 20px);
    }
}

/* ==========================================================================
   Brands Carousel Pre-initialization State (CLS Fix)
   ========================================================================== */
.brands-carousel:not(.owl-loaded) {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow: hidden !important;
}

.brands-carousel:not(.owl-loaded) .brand-item {
    flex: 0 0 auto;
    /* Base/Mobile (0px+): items 3.5, margin 8px (Override based on JS config) */
    width: calc((100% / 3.5) - 8px);
    margin-left: 8px;
    /* RTL Alignment */
}

@media (min-width: 576px) {
    .brands-carousel:not(.owl-loaded) .brand-item {
        /* 576px+: items 2.5, margin reverts to 16px */
        width: calc((100% / 2.5) - 16px);
        margin-left: 16px;
    }
}

@media (min-width: 768px) {
    .brands-carousel:not(.owl-loaded) .brand-item {
        /* 768px+: items 5.5 */
        width: calc((100% / 5.5) - 16px);
    }
}

@media (min-width: 992px) {
    .brands-carousel:not(.owl-loaded) .brand-item {
        /* 992px+: items 7.5 */
        width: calc((100% / 7.5) - 16px);
    }
}

@media (min-width: 1200px) {
    .brands-carousel:not(.owl-loaded) .brand-item {
        /* 1200px+: items 9 */
        width: calc((100% / 9) - 16px);
    }
}

/* ==========================================================================
   Logos Carousel Pre-initialization State (CLS Fix)
   ========================================================================== */
.logos-carousel:not(.owl-loaded) {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow: hidden !important;
}

.logos-carousel:not(.owl-loaded) .logo-item {
    flex: 0 0 auto;
    /* Base/Mobile (0px+): items 4.5, margin 8px */
    width: calc((100% / 4.5) - 8px);
    margin-left: 8px;
    /* RTL Alignment */
}

@media (min-width: 576px) {
    .logos-carousel:not(.owl-loaded) .logo-item {
        /* 576px+: items 7.5 */
        width: calc((100% / 7.5) - 8px);
    }
}

@media (min-width: 768px) {
    .logos-carousel:not(.owl-loaded) .logo-item {
        /* 768px+: items 8.5 */
        width: calc((100% / 8.5) - 8px);
    }
}

@media (min-width: 1024px) {
    .logos-carousel:not(.owl-loaded) .logo-item {
        /* 1024px+: items 10 */
        width: calc((100% / 10) - 8px);
    }
}

/* ==========================================================================
   Consultation CTA Section (Overlapping Image)
   ========================================================================== */
.consultation-cta-section {
    background-color: var(--primary-color);
    padding: 130px 0 100px 0;
}

.cta-inner-box {
    background-color: #e8eff5;
    /* آبی/طوسی بسیار روشن منطبق بر عکس */
    border-radius: 12px;
    padding: 45px 60px;
    display: flex;
    align-items: center;
    position: relative;
    /* این باکس نباید overflow: hidden داشته باشد تا عکس بتواند از آن بیرون بزند */
}

.latest-blog-section .container,
.testimonials-section .container {
    padding-inline: 0;
}

.cta-content {
    flex: 0 0 60%;
    text-align: right;
    position: relative;
    z-index: 2;
    /* قرار گرفتن متن روی لایه‌های دیگر در صورت نیاز */

}

.cta-title {
    color: var(--primary-color);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.partner-brands-section .section-title {
    text-align: center;
}

.cta-subtitle {
    color: #041831;
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 25px;
}

/* تنظیم دقیق دکمه نارنجی */
.cta-content .btn-warning {
    background-color: #f19000;
    color: #ffffff;
    font-weight: 500;
    border-radius: 8px;
    padding: 12px 50px;
    font-size: 16px;
    display: inline-flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(241, 144, 0, 0.2);
}

.cta-content .btn-warning:hover {
    background-color: #d67f00;
    transform: translateY(-2px);
}

/* تنظیمات تصویر بیرون‌زده */
.cta-image-wrapper {
    position: absolute;
    bottom: 0;
    /* چسبیدن دقیق عکس به کف کادر روشن */
    left: 10%;
    /* فاصله از سمت چپ */
    height: 140%;
    /* ارتفاع بیشتر از کادر تا از بالا بیرون بزند */
    display: flex;
    align-items: flex-end;
    /* تراز شدن عکس به سمت پایین */
    z-index: 1;
}

.cta-image-wrapper img {
    max-height: 100%;
    /* جلوگیری از بزرگ شدن بیش از حد عکس */
    width: auto;
    display: block;
}

/* Responsive */
@media (max-width: 992px) {
    .cta-image-wrapper {
        left: 2%;
        height: 120%;
    }
}

@media (max-width: 768px) {
    .consultation-cta-section {
        padding: 60px 0 0 0;
        /* حذف پدینگ پایین در موبایل */
    }

    .cta-inner-box {
        flex-direction: column;
        padding: 40px 20px 0;
        /* حذف پدینگ پایین برای چسبیدن عکس */
        text-align: center;
    }

    /* در موبایل عکس را از حالت absolute خارج می‌کنیم تا روی متن نیفتد و پایین کادر قرار بگیرد */


    .cta-image-wrapper img {
        max-height: 300px;
        margin-bottom: -1px;
        /* جلوگیری از ایجاد خط بین عکس و کادر در بعضی مرورگرها */
    }
}

/* ==========================================================================
   Latest Blog
   ========================================================================== */
.latest-blog-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.view-all-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    gap: 8px;
}

.latest-blog-section .container {
    margin-top: 48px;
}

.post-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.post-thumb img {
    width: 100%;
    height: auto;
}

.post-content {
    padding: 15px;
}

.post-title {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.post-title a {
    transition: var(--transition);
    text-decoration: none;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #000 !important;
    line-height: 1.5;
    padding: 0 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 42px;
}

.post-title a:hover {
    color: var(--secondary-color);
}

.post-meta {
    font-size: 0.8rem;
    color: #999;
}

/* ==========================================================================
   Bottom Final CTA
   ========================================================================== */
.bottom-cta-banner {
    background-image: url("https://falnic.com/wp-content/uploads/Group-1.webp");
    background-position: center left;
    background-repeat: no-repeat;
    background-size: 441px auto;
    padding: 80px 0;
    overflow: hidden;
    min-height: 401px;
}

.banner-content h2 {
    font-size: 20px;
    color: #fff;
    margin-bottom: 15px;
    font-weight: 600;
}

.banner-content p {
    color: #fff;
    margin-bottom: 30px;
    font-size: 16px;
    font-weight: 400;
    width: 48%;
}

/* ==========================================================================
   Responsive (Media Queries)
   ========================================================================== */
@media (max-width: 991px) {
    .hero-title {
        font-size: 1.6rem;
    }

    .cta-action {
        text-align: right;
        margin-top: 20px;
        flex: 1 1 100%;
        padding-top: 0;
    }

    .seo-content-wrapper {
        flex-direction: column;
    }

    .seo-image-area {
        text-align: center;
    }
}

@media (max-width: 768px) {


    .hero-content,
    .hero-image {
        flex: 1 1 100%;
    }

    .hero-image {
        display: none;
        /* Hide image on mobile based on design */
    }

    .hero-content {
        padding-bottom: 20px;
        text-align: center;
    }

    .cta-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .cta-image {
        display: none;
        /* Often hidden on mobile for space */
    }

    .cta-text {
        padding: 30px 15px 15px;
    }

    .cta-action {
        text-align: center;
        padding: 0 15px 30px;
    }

    .latest-blog-section .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .category-icons-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
}


/* ثابت نگه داشتن ارتفاع برای جلوگیری از CLS */
.tabs-content-container {
    min-height: 300px;
    position: relative;
}

/* استایل‌های اسکلتون (Skeleton) */
.skeleton-wrapper {
    display: flex;
    gap: 12px;
    overflow: hidden;
}

.skeleton-img,
.skeleton-text,
.skeleton-price {
    background: #eee;
    background: linear-gradient(110deg, #ececec 8%, #f5f5f5 18%, #ececec 33%);
    background-size: 200% 100%;
    animation: 1.5s shine linear infinite;
    border-radius: 4px;
}

.skeleton-img {
    height: auto;
    aspect-ratio: 1 / 1;
    margin-bottom: 15px;
}

.skeleton-text {
    height: 20px;
    width: 80%;
    margin: 0 auto 15px;
}

.skeleton-price {
    height: 25px;
    width: 50%;
    margin: 0 auto;
}

@keyframes shine {
    to {
        background-position-x: -200%;
    }
}

.skeleton-card {
    flex: 0 0 calc(13.33% - 8px);
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 15px;
    height: 270px;
}

@media (max-width: 1200px) {
    .skeleton-card {
        flex: 0 0 calc(18.18% - 8px);
    }
}

@media (max-width: 992px) {
    .skeleton-card {
        flex: 0 0 calc(22.22% - 8px);
    }
}

@media (max-width: 768px) {
    .skeleton-card {
        flex: 0 0 calc(28.57% - 8px);
    }
}

@media (max-width: 576px) {
    .skeleton-card {
        flex: 0 0 calc(40% - 4px);
    }
}



/* ==========================================================================
   Trust Badges (Achievements) Section
   ========================================================================== */
.trust-badges-section {
    background-color: #ffffff;
    padding-top: 50px;
    padding-bottom: 64px;
}

.trust-badges-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.trust-badge-card {
    background-color: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    transition: var(--transition);
    cursor: default;
}

/* افکت هاور که بردر را شبیه به عکس سورمه‌ای می‌کند */
.trust-badge-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(13, 34, 64, 0.08);
}

.trust-icon {
    margin-bottom: 14px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.trust-icon img {
    width: 45px;
    height: auto;
    /* اگر آیکون‌ها مشکی هستند و می‌خواهی سورمه‌ای شوند، می‌توانی از فیلتر استفاده کنی یا SVG سورمه‌ای آپلود کنی */
}

/* اگر از تگ <i> و فونت‌آیکون استفاده می‌کنی این استایل اعمال می‌شود */
.trust-badge-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.trust-badge-card p {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-main);
    line-height: 22px;
    margin: 0;
}

.trust-badge-card p strong {
    font-size: 1.1rem;
    color: #0A3762;
    padding: 0 2px;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 992px) {
    .trust-badges-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 576px) {
    .trust-badges-grid {
        grid-template-columns: 1fr;
    }

    .trust-badge-card {
        padding: 25px 20px;
    }
}



/* Responsive Grid */
@media (max-width: 1200px) {
    .features-grid-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .section-padding {
        padding-inline: 16px;
    }

    .owl-nav button {
        display: none;
    }

}


@media (max-width: 768px) {
    .features-grid-cards {
        grid-template-columns: 1fr;
    }

    .why-us-section .section-subtitle {
        text-align: justify;
        padding: 0 10px;
    }
}

/* ==========================================================================
   Insurance & Guarantee Tabs Section
   ========================================================================== */
.insurance-tabs-section {
    background-color: #ffffff;
    /* یا هر رنگ روشنی که در تم داری */
}

.main-heading {
    font-size: 1.5rem;
    font-weight: 800;
    color: #000;
    margin-bottom: 40px;
}

/* Tabs Navigation */
.custom-tabs-wrapper {
    border-bottom: 1px solid #DADADA;
    margin-bottom: 50px;
}

.custom-tabs-nav {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 60px;
    /* فاصله بین تب‌ها */
}

.custom-tabs-nav .tab-link {
    padding: 11px 27px;
    font-size: 16px;
    font-weight: 500;
    color: #444;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: var(--transition);
    margin-bottom: -1px;
    /* برای قرار گرفتن دقیق بردر روی خط زیرین */
}

.insurance-tabs-section .container {
    padding-bottom: 48px;
}

.custom-tabs-nav .tab-link:hover {
    color: var(--primary-color);
}

.custom-tabs-nav .tab-link.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    /* بردر آبی تیره */
}

/* Tabs Content Layout */
.content-flex {
    display: flex;
    align-items: center;
    gap: 50px;
}

/* در حالت راست‌چین، اولین عنصر (متن) در راست و دومین (عکس) در چپ قرار می‌گیرد */
.content-text {
    flex: 1 1 50%;
    padding-left: 20px;
}

.content-image {
    flex: 1 1 50%;
}

.content-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
    object-fit: cover;
}

.content-title {
    color: #0056b3;
    /* رنگ آبی عنوان مطابق عکس */
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.content-text p {
    font-size: 16px;
    line-height: 24px;
    color: #444;
    margin-bottom: 30px;
    text-align: right;
    font-weight: 400;
}

/* Button Styling */
.btn-outline-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 24px;
    background: transparent;
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition);
}

.btn-outline-primary:hover {
    background-color: #D6E6F3;
    color: #0A3762;
}

/* Responsive */
@media (max-width: 992px) {
    .content-flex {
        gap: 30px;
    }

    .custom-tabs-nav {
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .content-flex {
        flex-direction: column-reverse;
        /* در موبایل عکس بالا و متن پایین قرار می‌گیرد */
    }

    .content-text {
        padding-left: 0;
        text-align: center;
    }

    .content-text p {
        text-align: center;
    }

    .custom-tabs-nav {
        gap: 20px;
        overflow-x: auto;
        white-space: nowrap;
        justify-content: flex-start;
        padding-bottom: 5px;
        scrollbar-width: none;
    }

    h1.hero-title {
        text-align: right;
        font-size: 14px;
    }

    .hero-features-list li {
        display: block;
        margin-left: 15px;
        text-align: right;
        font-size: 14px;
        line-height: 20px;
    }

    .front-page-main .btn-primary {
        font-size: 12px;
        font-weight: 500;
        padding: 12px 15px;

    }

    .hero-actions {
        text-align: right;
    }

    .hero-features-list {
        margin: 0 0 20px 0;
    }

    .hero-title.text-white {
        color: #fff;
        text-align: right;
        font-size: 14px;
    }

    .front-page-main .btn-warning {
        font-size: 12px;
        font-weight: 500;
        padding: 12px 15px;
    }

    .category-icons-grid {
        display: grid !important;
        grid-template-rows: repeat(2, auto) !important;
        grid-auto-flow: column !important;
        grid-auto-columns: minmax(85px, 1fr) !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        gap: 8px 4px !important;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .category-icons-grid::-webkit-scrollbar {
        display: none;
    }

    .category-icon-box {
        min-width: 85px;
    }

    .author-name {
        font-size: 12px;
        font-weight: 600;
    }

    .author-title {
        font-size: 12px;
        color: #333;
        font-weight: 400;
    }

    .testimonial-card {
        padding: 0 14px 16px;
    }

    .testimonial-header {
        margin-top: 10px;
        padding-bottom: 12px;
        margin-bottom: 20px;
    }

    .author-avatar-wrapper img {
        width: 80px !important;
        height: 80px !important;
    }

    .section-padding {
        padding-inline: 16px;
    }

    .cta-inner-box {
        overflow: visible;
        border-radius: 24px;
    }


    .cta-image-wrapper {
        background: #E4ECF3;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        height: auto;
        left: 0;
        width: 100%;
        border-radius: 24px;
    }

    .cta-image-wrapper img {
        display: block;
        max-width: 100%;
        height: auto;
        margin-top: -65px;
    }

    .cta-inner-box {
        flex-direction: column-reverse;
        padding: 0;
        text-align: center;
        background: #0d2240;
    }

    .cta-content {
        background: #0d2240;
        color: #fff;
        flex: 1 1 100%;
        text-align: center;
        margin: 32px 0;
        width: 100%;
    }

    .consultation-cta-section {
        padding-top: 82px;
    }

    .cta-subtitle {
        color: #fff;
        font-size: 16px;
        font-weight: 400;
        margin-bottom: 24px;
    }

    .cta-title {
        color: #fff;
        font-size: 16px;
        font-weight: 600;
        margin-bottom: 12px;
    }

    .custom-tabs-nav .tab-link {
        border-bottom: 4px solid transparent;
        margin-bottom: -7px;
    }

    .custom-tabs-nav .tab-link {
        font-size: 12px;
        font-weight: 500;
        color: #444;
    }

    .content-title {
        font-size: 16px;
        font-weight: 700;
        margin-bottom: 20px;
        text-align: right;
    }
}

@media (max-width: 600px) {
    .hero-slide {
        min-height: 304px;
        padding: 22px 0;
    }

    .section-padding .container {
        padding-inline: 0;
    }

    .front-page-main .section-title {
        font-size: 16px;
    }

    .tabs-content-container {
        min-height: 277px;
    }

    .why-us-section .section-title {
        text-align: center;
        font-size: 16px;
    }

    .why-us-section .section-subtitle {
        color: #DADADA;
        font-size: 14px;
        margin-bottom: 16px;
    }

    .best-sellers-section .container {
        padding: 34px 0 20px 0;
    }

    .testimonial-card {
        margin-top: 12px;
    }

    .woocommerce-Price-amount {
        color: #045EB2;
        font-size: 14px;
    }

    .services-cards-section .container {
        padding: 0px 0 32px 0;
    }

    .office-machine .container {
        padding: 32px 0 48px 0;
    }

    .content-text p {
        text-align: right;
        font-size: 14px;
    }

    .content-text .btn {
        justify-content: center;
        padding: 10px 24px;
        min-width: 100%;
    }

    .content-flex {
        flex-direction: column;
    }

    .insurance-tabs-section .container {
        padding-bottom: 24px;
    }

    .customer-logos-wrapper {
        padding: 20px 0 30px 0;
    }

    .latest-blog-section .section-header {
        flex-direction: row;
    }

    .partner-brands-section .section-title {
        text-align: right;
        margin-bottom: 20px;
    }

    .partner-brands-section .container {
        padding: 48px 0 42px 0;
    }

    .brand-item img {
        height: 88px;
    }

    .front-page-main .text-center {
        text-align: center;
    }

    .banner-content h2 {
        font-size: 16px;
        color: #fff;
        margin-bottom: 15px;
        font-weight: 600;
    }


    .banner-content h2 {
        font-size: 16px;
        color: #fff;
        margin-bottom: 15px;
        font-weight: 600;
    }

    .banner-content p {
        margin-bottom: 26px;
        font-size: 14px;
        width: 100%;
    }

    .bottom-cta-banner {
        background-repeat: no-repeat;
        background-image: url(https://falnic.com/wp-content/uploads/Group2552.webp);
        padding: 56px 0;
        overflow: hidden;
        min-height: 401px;
        background-position: 50% 240px;
        background-size: 320px auto;
    }

    .latest-blog-section .section-header {
        flex-direction: row;
    }

    .latest-blog-section .section-header {
        margin-bottom: 8px;
    }

    .cta-content .btn,
    .banner-content .btn {
        width: 100%;
    }
}

/* ==========================================================================
   customer-club
   ========================================================================== */
#customer-club {
    background: #041831;
    color: #ffffff;
    padding: 28px;
}

.customer-club-content {
    display: flex;
    gap: 30px;
    justify-content: center;
    align-items: center;
}

.customer-club-image-wrapper {
    min-width: fit-content;
    width: auto;
}

.customer-club-info {
    width: 100%;
}

.customer-club-image-wrapper img {
    width: 400px;
    aspect-ratio: 407/270;
}

h2.customer-club-title {
    font-size: 20px;
    text-align: center;
}

#customer-club .btn.btn-warning.btn-lg {
    margin: auto;
    display: flex;
    width: fit-content;
    gap: 9px;
    align-items: center;
    font-size: 14px;
}

@media (max-width: 768px) {

    .customer-club-content {
        flex-direction: column;
    }

    h2.customer-club-title {
        font-size: 12px;
    }

    #customer-club .btn.btn-warning.btn-lg {
        width: 100%;

    }

    .customer-club-image-wrapper img {
        width: 80%;
        margin: auto;
    }
}