/* ============= Accordion CSS-Only ============= */

.accordion-item {
    margin: 18px 0;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    background: #ffffff;
}

/* مخفی کردن چک‌باکس */
.accordion-item input {
    display: none;
}

.accordion-label {
    display: block;
    padding: 14px 18px;
    cursor: pointer;
    background: #f8fafc;
    font-size: 15px;
    font-weight: 600;
    color: #043A71;
    position: relative;
    transition: 0.25s ease;
}

/* آیکون فلش */
.accordion-label::after {
    content: "▼";
    font-size: 14px;
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #777;
    transition: 0.3s ease;
}

/* وقتی باز می‌شود — فلش برعکس */
.accordion-item input:checked + .accordion-label::after {
    transform: translateY(-50%) rotate(180deg);
    color: #043A71;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 18px;
    background: #ffffff;
    transition: max-height 0.35s ease;
}

/* باز شدن محتوا */
.accordion-item input:checked ~ .accordion-content {
    max-height: 2000px; /* بزرگ بزار که هرچقدر متن باشد باز شود */
    padding: 14px 18px;
}

/* بهبود متن */
.accordion-content p,
.accordion-content li,
.accordion-content strong {
    margin: 12px 0;
    line-height: 1.9;
}

/* موبایل */
@media(max-width:640px) {
    .accordion-label {
        font-size: 14px;
        padding: 12px;
    }
}


/* --- Lightbox Fullscreen Viewer --- */

.kando-lightbox-overlay {
    position: fixed;
    top: 0;
    right: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.kando-lightbox-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.kando-lightbox-overlay img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}



/* ===========================================================
   ULTRA-PREMIUM EEAT SECTION
   بر اساس استانداردهای Google Quality Rater Guidelines 2025
  =========================================================== */

.kando-article.eeat-section {
    background: #ffffff;
    padding: 42px 48px;                  /* فاصله زیاد برای حس Premium */
    border-radius: 20px;
    line-height: 2;
    font-size: 18px;
    color: #1c2534;
    border: 1px solid #e7ecf3;
    box-shadow: 0 12px 36px rgba(0,0,0,0.06); /* عمق واضح - حس اعتماد */
    margin: 48px 0;
    direction: rtl;
}

/* -----------------------------------------------------------
   HEADER STYLE – مطابق Medical/Financial Trust Landing Pages
------------------------------------------------------------ */

.kando-article.eeat-section h2,
.kando-article.eeat-section h3 {
    font-weight: 900;
    color: #0A3D73;
    margin-top: 32px;
    margin-bottom: 18px;
    line-height: 1.65;
    letter-spacing: -0.3px;
}

.kando-article.eeat-section h2 {
    font-size: 28px;
    border-bottom: 3px solid #0A89B8; /* خط تأکیدی */
    padding-bottom: 8px;
}

.kando-article.eeat-section h3 {
    font-size: 23px;
}


/* -----------------------------------------------------------
   PARAGRAPH STYLE – شفاف، علمی، قابل‌اعتماد
------------------------------------------------------------ */

.kando-article.eeat-section p {
    margin-bottom: 22px;
    color: #1e293b; /* شفافیت بالا */
    font-weight: 450;
}


/* -----------------------------------------------------------
   LISTS – نسخه استاندارد صفحات YMYL گوگل
------------------------------------------------------------ */

.kando-article.eeat-section ul {
    margin: 0 0 26px 0;
    padding-right: 26px;
}

.kando-article.eeat-section ul li {
    margin-bottom: 12px;
    font-weight: 450;
    line-height: 2;
}


/* -----------------------------------------------------------
   STRONG – مشابه تأکید در Google Health/Lens Articles
------------------------------------------------------------ */

.kando-article.eeat-section strong {
    color: #0B4F8A;
    font-weight: 800;
}


/* -----------------------------------------------------------
   BOXES INSIDE EEAT SECTION – Polished & Trust-enhancing
------------------------------------------------------------ */

.kando-article.eeat-section .note-box,
.kando-article.eeat-section .note-box-warning,
.kando-article.eeat-section .note-box-error {
    margin-top: 24px;
    margin-bottom: 28px;
    border-radius: 12px;
    font-size: 16px;
    line-height: 2;
}

/* -----------------------------------------------------------
   IMAGES – Google's "Educational Image Module" style
------------------------------------------------------------ */

.kando-article.eeat-section .kando-img {
    max-width: 95%;
    margin: 32px auto;
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(0,0,0,0.08);
    border: 1px solid #e6edf5;
    padding: 8px;
    transition: all 0.3s ease;
}

.kando-article.eeat-section .kando-img:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(0,0,0,0.12);
}

.kando-article.eeat-section .kando-img-caption {
    font-size: 14px !important;
    text-align: center !important;
    margin-top: -14px !important;
    margin-bottom: 26px !important;
    color: #475569 !important;
}


/* -----------------------------------------------------------
   RESPONSIVE – موبایل با خوانایی بالا مثل Google Discover
------------------------------------------------------------ */

@media(max-width: 720px) {
    .kando-article.eeat-section {
        padding: 28px 22px;
        font-size: 16.3px;
    }

    .kando-article.eeat-section h2 {
        font-size: 24px;
    }

    .kando-article.eeat-section h3 {
        font-size: 20px;
    }
}



/* --- استایل مرحله‌به‌مرحله (steps) --- */

.steps {
    margin: 24px 0;
    padding: 0;
}

/* لیست مراحل (steps) */
.steps {
    list-style: none;
    counter-reset: step-counter;
    margin: 20px 0;
    padding: 0;
}
.steps li {
    counter-increment: step-counter;
    background: #F7FBFF;
    border: 1px solid #DCE6F3;
    padding: 14px 16px;
    margin-bottom: 10px;
    border-radius: 8px;
    position: relative;
    line-height: 1.8;
}
.steps li::before {
    content: counter(step-counter);
    background: #04A777;
    color: #fff;
    font-weight: bold;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: -13px;
    top: -10px;
    font-size: 14px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* --- استایل عمومی تصاویر آموزشی و راهنمایی سایت کندو --- */

.kando-img {
    display: block;                 /* نمایش تصویر به صورت بلوکی */
    margin: 24px auto;              /* وسط‌چین و فاصله بالا/پایین */
    max-width: 100%;                /* رسپانسیو کامل */
    height: auto;                   /* حفظ تناسب تصویر */
    border-radius: 12px;            /* گوشه‌های نرم و زیبا */
    box-shadow: 0 4px 12px rgba(0,0,0,0.08); /* سایه ملایم */
    border: 1px solid #e6eef2;      /* خط دور خیلی ظریف */
    padding: 6px;                   /* فاصله داخلی برای زیبایی */
    background: #fff;               /* پس‌زمینه سفید در صفحات رنگی */
    transition: all 0.25s ease;     /* انیمیشن برای هاور */
}

.kando-img:hover {
    transform: translateY(-3px);    /* افکت بالا آمدن ملایم */
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

/* کپشن (اختیاری) زیر عکس */
.kando-img-caption {
    font-size: 13px !important;
    color: #555 !important;
    margin-top: -12px !important;
    margin-bottom: 20px !important;
    text-align: center !important;
    line-height: 1.8 !important;
}

.note-box {
    position: relative;
    padding: 1rem 2.9rem 1rem .9rem;
    border-radius: 12px;
    margin-top: 1.25rem;
    font-size: 0.9rem;
    line-height: 1.8;
    background: #ECFDF5;
    color: #065F46;
    border-right: 4px solid #10B981;
}
.note-box-warning {
    position: relative;
    padding: 1rem 2.9rem 1rem .9rem;
    border-radius: 12px;
    margin-top: 1.25rem;
    font-size: 0.9rem;
    line-height: 1.8;
    background: #FFF7ED;
    color: #9A3412;
    border-right: 4px solid #F97316;
}
.note-box-error {
    position: relative;
    padding: 1rem 2.9rem 1rem .9rem;
    border-radius: 12px;
    margin-top: 1.25rem;
    font-size: 0.9rem;
    line-height: 1.8;
    background: #FEF2F2;
    color: #991B1B;
    border-right: 4px solid #EF4444;
}
.note-box-info {
    position: relative;
    padding: 1rem 2.9rem 1rem .9rem;
    border-radius: 12px;
    margin-top: 1.25rem;
    font-size: 0.9rem;
    line-height: 1.8;
    background: #EFF6FF;
    color: #1E40AF;
    border-right: 4px solid #3B82F6;
}
.note-box::before,
.note-box-warning::before,
.note-box-error::before,
.note-box-info::before
{
    content: "";
    position: absolute;
    top: 1rem;
    right: .9rem;
    width: 20px;
    height: 20px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}
/* hide the auto icon: <div class="kandoo-alert kandoo-alert-info kandoo-alert-no-icon"> */
.note-box-no-icon {
    padding-right: .9rem;
}
.note-box-no-icon::before {
    display: none;
}

/* info — circle + i */
.note-box-info::before {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233B82F6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><line x1='12' y1='16' x2='12' y2='12'/><line x1='12' y1='8' x2='12.01' y2='8'/></svg>");
}
/* success — check circle */
.note-box::before {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310B981' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M22 11.08V12a10 10 0 1 1-5.93-9.14'/><polyline points='22 4 12 14.01 9 11.01'/></svg>");
}
/* warning — alert triangle */
.note-box-warning::before {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F97316' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M10.29 3.86 1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z'/><line x1='12' y1='9' x2='12' y2='13'/><line x1='12' y1='17' x2='12.01' y2='17'/></svg>");
}
/* danger — alert octagon */
.note-box-error::before {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23EF4444' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polygon points='7.86 2 16.14 2 22 7.86 22 16.14 16.14 22 7.86 22 2 16.14 2 7.86 7.86 2'/><line x1='12' y1='8' x2='12' y2='12'/><line x1='12' y1='16' x2='12.01' y2='16'/></svg>");
}

/* نوت باکس نسخه پیام موفقیت*/

.note-box strong {
    color: #04A777;
}

.note-box-warning strong {
    color: #D97706; /* نارنجی متوسط برای تاکید */
}

.note-box-error strong {
    color: #C62828; /* قرمز متوسط برای تاکید */
}

/* ===============================
   جدول‌های سبک کندو – comparison-table
   =============================== */

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    font-size: 16px;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.comparison-table thead tr {
    background: #004C6D; /* رنگ هد – نزدیک به هدر جدول‌های قبلی */
    color: #ffffff;
    text-align: center;
    font-weight: bold;
}

.comparison-table th,
.comparison-table td {
    padding: 14px 18px;
    border-bottom: 1px solid #e9ecef;
}

.comparison-table tbody tr:nth-child(even) {
    background: #f9fafb; /* ردیف‌های راه‌راه */
}

.comparison-table tbody tr:hover {
    background: #eef7ff;
    transition: 0.2s ease;
}

.comparison-table td {
    text-align: right;
    line-height: 1.8;
    color: #333;
}

.comparison-table td strong {
    color: #0b6fa4; /* تاکید جذاب */
}

/* ریسپانسیو برای موبایل */
@media(max-width: 768px) {
    .comparison-table {
        font-size: 14px;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 12px 10px;
    }
}


/* استایل جدول لحظه ای */

.live-table-box {
    background: #ffffff;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
    margin: 30px 0;
}

.live-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 5px;
    color: #043A71;
}

.live-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.live-bank-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.live-bank-table th {
    background: #f0f5ff;
    padding: 12px;
    text-align: center;
    font-weight: 700;
    color: #043A71;
}

.live-bank-table td {
    padding: 14px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

/* ردیف زنده */
.row-live {
    animation: fadeRow 0.8s ease-in-out;
}

/* افکت بروزرسانی */
@keyframes fadeRow {
    from { background-color: #e6f3ff; }
    to { background-color: #fff; }
}

/* نقطه سبز چشمک‌زن */
.live-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: #22c55e;
    border-radius: 50%;
    margin-left: 6px;
    animation: blink 1.5s infinite;
}
.live-dot.off {
    background: #ef4444;
    animation: none;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
}

/* وضعیت باز و بسته */
.status-open { color: #22c55e; font-weight: 600; }
.status-close { color: #ef4444; font-weight: 600; }

/* دکمه ثبت نام */
.btn-register {
    background: #0f8bff;
    color: #fff !important;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 14px;
    display: inline-block;
    transition: 0.2s;
}
.btn-register:hover {
    background: #0c6fdc;
}
.btn-register.disabled {
    background: #ccc;
}


/* استایل مقاله ای */

.kando-article {
    line-height: 1.9;
    font-size: 17px;
    color: #1d2939;
    background: #ffffff;
}

.kando-article h3 {
    font-size: 20px;
    font-weight: 700;
    color: #0B4F8A;
    margin: 28px 0 16px;
}

.kando-article p {
    margin-bottom: 18px;
}

.kando-article ul {
    margin: 0 0 20px 0;
    padding-right: 22px;
}

.kando-article ul li {
    margin-bottom: 10px;
}

.kando-article strong {
    color: #0B4F8A;
}

@media (max-width: 600px) {
    .kando-article {
        font-size: 16px;
        line-height: 1.85;
    }
    .kando-article h2 {
        font-size: 22px;
    }
    .kando-article h3 {
        font-size: 19px;
    }
}




/* استایل پلیر ویدیو */
/* Box Style */
.video-box {
    background: #ffffff;
    border-radius: 16px;
    padding: 4px !important;
    margin: 40px auto;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    max-width: 800px;
    text-align: center;
}

/* Title */
.video-title {
    font-size: 20px;
    font-weight: 700;
    color: #043A71; /* رنگ تیره شبیه متن‌های هدر صفحه */
    margin-bottom: 20px;
}

/* Video Player */
.video-player {
    width: 100%;
    border-radius: 12px;
    outline: none;
    border: 1px solid #e8edf7;
    background: #f8faff;
}

/* Responsive for small screens */
@media (max-width: 600px) {
    .video-box {
        padding: 16px;
    }

    .video-title {
        font-size: 18px;
    }
}


/* استایل کلی برای جدول‌ها در سایت کندو */
.kando-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    font-size: 15px;
    direction: rtl;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* هدر جدول */
.kando-table thead tr {
    background: #e9edf7; /* رنگ ملایم هماهنگ با تم */
}

.kando-table th {
    padding: 14px 10px;
    font-weight: 700;
    color: #203656; /* تم آبی کندو */
    font-size: 15px;
}

/* بدنه جدول */
.kando-table td {
    padding: 14px 10px;
    color: #444;
    border-bottom: 1px solid #f1f3f8;
}

/* آخرین ردیف بدون خط */
.kando-table tbody tr:last-child td {
    border-bottom: none;
}

/* افکت Hover */
.kando-table tbody tr:hover {
    background: #f7f9ff;
    transition: 0.25s ease;
}

/* ریسپانسیو برای موبایل */
@media (max-width: 680px) {
    .kando-table thead {
        display: none;
    }

    .kando-table tr {
        display: block;
        margin-bottom: 15px;
        border-radius: 10px;
        background: #fff;
        padding: 10px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    }

    .kando-table td {
        display: flex;
        justify-content: space-between;
        padding: 10px 6px;
        border-bottom: 1px solid #eee;
        font-size: 14px;
    }

    .kando-table td:last-child {
        border-bottom: none;
    }

    .kando-table td::before {
        content: attr(data-label);
        font-weight: bold;
        color: #203656;
    }
}