/*
Theme Name: hadafmohajer Theme
Theme URI: https://webfa24.com
Author: webfa24
Author URI: https://webfa24.com
Description: Custom Theme
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: hadafmohajertheme
*/

/***************شروع تغییر دادن رنگ دوم کل سایت *******************/


:root {
    /* =========================================
       BRAND COLORS — GOLD & NAVY
    ========================================= */

    --imm-primary: #EAB12B;
    --imm-primary-hover: #D99E18;
    --imm-primary-light: #FFF6DF;
    --imm-primary-dark: #B98412;

    --imm-navy: #243653;
    --imm-navy-deep: #1B2940;
    --imm-navy-light: #344966;

    /* =========================================
       TEXT COLORS
    ========================================= */

    --imm-text: #30434D;
    --imm-text-muted: #69777D;
    --imm-heading: #243653;

    /* =========================================
       BACKGROUNDS
    ========================================= */

    --imm-background: #FFFFFF;
    --imm-surface: #F7F6F2;
    --imm-surface-hover: #EFEEE8;

    /* =========================================
       BORDERS & SHADOWS
    ========================================= */

    --imm-border: #D4D8DC;
    --imm-border-light: #E8EBED;

    --imm-shadow: 0 8px 25px rgba(27, 41, 64, 0.08);
    --imm-shadow-hover: 0 12px 30px rgba(27, 41, 64, 0.13);

    /* =========================================
       FOOTER COLORS
    ========================================= */

    --imm-footer-bg: #243653;
    --imm-footer-bg-deep: #1B2940;

    --imm-footer-text: #D0D8E3;
    --imm-footer-heading: #FFFFFF;

    --imm-footer-panel: #344966;
    --imm-footer-panel-border: #53647D;

    --imm-footer-input-bg: #FFFFFF;
    --imm-footer-input-text: #243653;
    --imm-footer-newsletter-icon-bg: #FFFFFF;

    /* =========================================
       LAYOUT
    ========================================= */

    --imm-container-width: 1688px;
    --imm-header-height: 124px;

    --imm-footer-container: 1352px;
    --imm-footer-radius: 24px;

    --imm-card-radius: 14px;
    --imm-content-width: 1352px;

    /* =========================================
       TYPOGRAPHY
    ========================================= */

    --imm-font: "yekan-bakh-fn", "IRANYekan", Tahoma, sans-serif;
}



/* =========================================================
   IMMIGRATION WEBSITE — PREMIUM TABLE DESIGN
   WordPress Gutenberg | Posts + Services
========================================================= */

body {
    --imm-table-navy: #29395D;
    --imm-table-navy-deep: #202F50;
    --imm-table-gold: #EAB12B;
    --imm-table-gold-dark: #B98412;
    --imm-table-text: #30434D;
    --imm-table-muted: #69777D;
    --imm-table-border: #E5E9ED;
    --imm-table-row: #F7F8FA;
    --imm-table-white: #FFFFFF;
}

/* محدوده جدول */
body:is(.single-post, .single-service) .wp-block-table {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 32px 0 38px;
    padding: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    scrollbar-color: #C5A04A #F0F2F5;
    border: 1px solid var(--imm-table-border);
    border-radius: 14px;
    background: var(--imm-table-white);
    box-shadow: 0 8px 28px rgba(35, 49, 57, 0.07);
}

/* اسکرول‌بار */
body:is(.single-post, .single-service) .wp-block-table::-webkit-scrollbar {
    height: 7px;
}

body:is(.single-post, .single-service) .wp-block-table::-webkit-scrollbar-track {
    background: #F0F2F5;
    border-radius: 10px;
}

body:is(.single-post, .single-service) .wp-block-table::-webkit-scrollbar-thumb {
    background: #C5A04A;
    border-radius: 10px;
}

body:is(.single-post, .single-service) .wp-block-table::-webkit-scrollbar-thumb:hover {
    background: var(--imm-table-gold-dark);
}

/* جدول اصلی */
body:is(.single-post, .single-service) .wp-block-table table {
    width: 100%;
    min-width: 560px;
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: auto;
    background: var(--imm-table-white);
    font-family: "yekan-bakh-fn", "IRANYekan", Tahoma, sans-serif;
    font-size: 14px;
    line-height: 1.9;
}

/* حذف حاشیه‌های پیش‌فرض قالب */
body:is(.single-post, .single-service) .wp-block-table table,
body:is(.single-post, .single-service) .wp-block-table thead,
body:is(.single-post, .single-service) .wp-block-table tbody,
body:is(.single-post, .single-service) .wp-block-table tr,
body:is(.single-post, .single-service) .wp-block-table th,
body:is(.single-post, .single-service) .wp-block-table td {
    border-left: 0;
    border-top: 0;
}

/* سربرگ جدول */
body:is(.single-post, .single-service) .wp-block-table thead th {
    padding: 19px 20px;
    color: #FFFFFF;
    background: var(--imm-table-navy);
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: 3px solid var(--imm-table-gold);
    text-align: right;
    vertical-align: middle;
    font-family: "yekan-bakh-fn", "IRANYekan", Tahoma, sans-serif;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.9;
}

/* سلول‌های بدنه */
body:is(.single-post, .single-service) .wp-block-table tbody td,
body:is(.single-post, .single-service) .wp-block-table tbody th {
    padding: 16px 20px;
    color: var(--imm-table-text);
    background: #FFFFFF;
    border-right: 1px solid #EDF0F3;
    border-bottom: 1px solid var(--imm-table-border);
    text-align: right;
    vertical-align: middle;
    font-family: "yekan-bakh-fn", "IRANYekan", Tahoma, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 2;
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* ردیف‌های یکی‌درمیان */
body:is(.single-post, .single-service) .wp-block-table tbody tr:nth-child(even) td,
body:is(.single-post, .single-service) .wp-block-table tbody tr:nth-child(even) th {
    background: var(--imm-table-row);
}

/* هاور */
body:is(.single-post, .single-service) .wp-block-table tbody tr:hover td,
body:is(.single-post, .single-service) .wp-block-table tbody tr:hover th {
    background: #FFF9E9;
}

/* آخرین ردیف */
body:is(.single-post, .single-service) .wp-block-table tbody tr:last-child td,
body:is(.single-post, .single-service) .wp-block-table tbody tr:last-child th {
    border-bottom: 0;
}

/* جدول بدون بخش thead: ردیف اول به‌عنوان سربرگ */
body:is(.single-post, .single-service) .wp-block-table:not(:has(thead)) tbody tr:first-child td,
body:is(.single-post, .single-service) .wp-block-table:not(:has(thead)) tbody tr:first-child th {
    color: #FFFFFF;
    background: var(--imm-table-navy);
    font-weight: 800;
    border-bottom: 3px solid var(--imm-table-gold);
}

body:is(.single-post, .single-service) .wp-block-table:not(:has(thead)) tbody tr:first-child td + td,
body:is(.single-post, .single-service) .wp-block-table:not(:has(thead)) tbody tr:first-child th + td {
    border-right-color: rgba(255, 255, 255, 0.12);
}

/* متن برجسته داخل جدول */
body:is(.single-post, .single-service) .wp-block-table td strong,
body:is(.single-post, .single-service) .wp-block-table td b {
    color: var(--imm-table-navy);
    font-weight: 800;
}

/* لینک‌ها */
body:is(.single-post, .single-service) .wp-block-table td a,
body:is(.single-post, .single-service) .wp-block-table th a {
    color: var(--imm-table-gold-dark);
    font-weight: 700;
    text-decoration: none;
    text-underline-offset: 4px;
}

body:is(.single-post, .single-service) .wp-block-table td a:hover,
body:is(.single-post, .single-service) .wp-block-table th a:hover {
    color: var(--imm-table-navy);
    text-decoration: underline;
}

/* توضیح زیر جدول */
body:is(.single-post, .single-service) .wp-block-table figcaption {
    margin: 0;
    padding: 12px 16px;
    color: var(--imm-table-muted);
    background: #F7F8FA;
    border-top: 1px solid var(--imm-table-border);
    font-family: "yekan-bakh-fn", "IRANYekan", Tahoma, sans-serif;
    font-size: 12px;
    line-height: 1.9;
    text-align: right;
}

/* جدول‌های عریض */
body:is(.single-post, .single-service) .wp-block-table.alignwide,
body:is(.single-post, .single-service) .wp-block-table.alignfull {
    width: 100%;
    max-width: 100%;
}

/* نسخه موبایل */
@media (max-width: 767px) {
    body:is(.single-post, .single-service) .wp-block-table {
        margin: 25px 0 30px;
        border-radius: 11px;
    }

    body:is(.single-post, .single-service) .wp-block-table table {
        min-width: 500px;
        font-size: 13px;
    }

    body:is(.single-post, .single-service) .wp-block-table thead th {
        padding: 14px 15px;
        font-size: 13px;
    }

    body:is(.single-post, .single-service) .wp-block-table tbody td,
    body:is(.single-post, .single-service) .wp-block-table tbody th {
        padding: 12px 15px;
        font-size: 13px;
    }
}

/* کاهش انیمیشن در صورت نیاز کاربر */
@media (prefers-reduced-motion: reduce) {
    body:is(.single-post, .single-service) .wp-block-table *,
    body:is(.single-post, .single-service) .wp-block-table *::before,
    body:is(.single-post, .single-service) .wp-block-table *::after {
        transition: none !important;
    }
}

/* عنوان ستون‌ها: سرمه‌ای */
body:is(.single-post, .single-service) .wp-block-table thead th {
    background-color: #29395D !important;
    color: #FFFFFF !important;
    border-color: #43516F !important;
    border-bottom: 3px solid #EAB12B !important;
}

/* عنوان ردیف‌ها: خاکستری روشن */
body:is(.single-post, .single-service) .wp-block-table tbody th {
    background-color: #EEF1F5 !important;
    color: #29395D !important;
    border-color: #E1E5EB !important;
}

/* سلول‌های اطلاعات: بدون تغییر رنگ قبلی */
body:is(.single-post, .single-service) .wp-block-table tbody td {
    color: #30434D;
}


.woocommerce-button, .woocommerce .button {
    background:var(--accent) !important;
}



.woocommerce-product-search button {
      background: var(--accent) !important;
}

.woocommerce .widget_price_filter .price_slider_amount .button {
	background:var(--accent)!important;
}
/***************پایان تغییر دادن  رنگ دوم کل سایت *******************/

/*******
img.avatar.avatar-26.photo {
	display: none;
}
******/
a {
	text-decoration: none !important;
}

a,bdi, label, h2, h1, h3, h4, h5, h6, th, strong, p, input {
	font-family: 'iranyekan' !important;
}
.woocommerce-Price-currencySymbol{
padding-right:2px;
}
@media (max-width: 600px) {
.woocommerce-Price-currencySymbol{
padding-right:0.5px;
}}
@media (max-width: 500px) {
.mobile-none {
	display: none !important;
}}

@media (min-width: 500px) {
.windows-none {
	display: none !important;
}}
/* =========================================
   تصویر پرچم در کارت کشورها
========================================= */

.imm-country-flag {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f6f8;
}

.imm-country-flag img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.imm-country-flag-placeholder {
    color: var(--imm-dest-navy);
    font-size: 17px;
    font-weight: 800;
}


/* =========================================
   توضیحات کارت کشور
========================================= */

.imm-country-description {
    margin-bottom: 20px;
    color: var(--imm-dest-text);
    font-size: 12px;
    line-height: 2.1;
}


/* =========================================
   صفحه اختصاصی کشور
========================================= */

.imm-country-single-page {
    padding: 55px 20px 70px;
    background: #f7f8fa;
    direction: rtl;
}

.imm-country-single-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.imm-country-single-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    color: var(--imm-dest-muted);
    font-size: 12px;
}

.imm-country-single-breadcrumb a {
    color: var(--imm-dest-navy);
    text-decoration: none;
}

.imm-country-single-content {
    padding: 40px;
    background: #fff;
    border: 1px solid var(--imm-dest-border);
    border-radius: 16px;
    box-shadow: var(--imm-dest-shadow);
}

.imm-country-single-flag {
    width: 100px;
    height: 66px;
    margin-bottom: 22px;
    overflow: hidden;
    border: 1px solid var(--imm-dest-border);
    border-radius: 7px;
}

.imm-country-single-flag img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.imm-country-single-content h1 {
    margin: 0 0 18px;
    color: var(--imm-dest-navy);
    font-size: 30px;
    font-weight: 800;
    line-height: 1.8;
}

.imm-country-single-divider {
    width: 100%;
    height: 1px;
    margin: 22px 0;
    background: var(--imm-dest-border);
}

.imm-country-single-description {
    color: var(--imm-dest-text);
    font-size: 15px;
    line-height: 2.4;
}

.imm-country-single-description p {
    margin-bottom: 18px;
}

.imm-country-single-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 48px;
    margin-top: 25px;
    padding: 0 22px;
    color: var(--imm-dest-navy-deep);
    background: var(--imm-dest-gold);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    transition: .25s ease;
}

.imm-country-single-button:hover {
    color: var(--imm-dest-navy-deep);
    background: #F5C653;
    transform: translateY(-2px);
}


/* =========================================
   موبایل
========================================= */

@media (max-width: 600px) {

    .imm-country-single-page {
        padding: 30px 16px 45px;
    }

    .imm-country-single-content {
        padding: 23px 18px;
        border-radius: 12px;
    }

    .imm-country-single-content h1 {
        font-size: 23px;
    }

    .imm-country-single-description {
        font-size: 13px;
    }

    .imm-country-single-button {
        width: 100%;
        padding: 0 12px;
        font-size: 12px;
    }

}