/* ===================== پایه ===================== */
:root {
    --brand: #0f6f5c;
    --brand-dark: #0b5347;
    --gold: #d4a24c;
    --ink: #1c2430;
    --muted: #667085;
    --bg: #f7f8f5;
    --card: #ffffff;
    --border: #e7e9e3;
    --radius: 16px;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); }
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.5; margin: 0; }
img { max-width: 100%; display: block; }

/* رفع باگ مرورگرها: دکمه/اینپوت/سلکت به‌صورت پیش‌فرض فونت صفحه را ارث نمی‌برند */
button, input, select, textarea {
    font-family: inherit;
}

/* ===================== هدر ===================== */
.site-header { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; gap: 20px; }
.brand-name { font-weight: 700; font-size: 17px; color: var(--brand-dark); }
.brand-tagline { font-size: 11px; color: var(--muted); }
.main-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.main-nav a { font-size: 13.5px; color: var(--ink); }
.main-nav a:hover { color: var(--brand); }
.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.btn-ghost { border: 1px solid var(--border); padding: 9px 16px; border-radius: 10px; font-size: 13px; display: inline-flex; align-items: center; gap: 7px; }
.btn-brand { background: var(--gold); color: #2a1e05; padding: 9px 18px; border-radius: 10px; font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; gap: 7px; }
.btn-brand-outline { border: 2px solid var(--brand); color: var(--brand); padding: 12px 22px; border-radius: 12px; font-weight: 700; font-size: 14px; display: inline-flex; align-items:center; gap:8px; }
.btn-brand-solid { background: var(--brand); color: #fff; padding: 13px 24px; border-radius: 12px; font-weight: 700; font-size: 14px; display: inline-flex; align-items:center; gap:8px; border:none; cursor:pointer; }

/* ===================== هیرو ===================== */
.hero { background: linear-gradient(180deg, #fff 0%, var(--bg) 100%); padding: 56px 0 40px; }
.hero-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: 34px; font-weight: 800; margin-bottom: 18px; }
.hero p.lead { color: var(--muted); font-size: 15.5px; line-height: 2; margin-bottom: 28px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-visual { position: relative; border-radius: 24px; overflow: hidden; min-height: 380px; display: flex; align-items: center; justify-content: flex-start; padding: 28px; }
.hero-visual.has-image { background: var(--brand-dark); }
.hero-slideshow { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.4s ease; }
.hero-slide.active { opacity: 1; }
.hero-visual.has-image::after { content: ''; position: absolute; inset: 0; background: linear-gradient(200deg, rgba(11,83,71,.15), rgba(11,83,71,.75)); z-index: 1; }
.hero-visual:not(.has-image) { background: linear-gradient(135deg, var(--brand-dark), var(--brand)); }
.hero-visual:not(.has-image)::before {
    content: ''; position: absolute; inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.14) 1.5px, transparent 1.5px);
    background-size: 22px 22px;
}
.hero-pattern-icon { position: absolute; opacity: .16; color: #fff; }
.day-card {
    position: relative; z-index: 2; background: rgba(255,255,255,0.62); backdrop-filter: blur(22px) saturate(180%);
    -webkit-backdrop-filter: blur(22px) saturate(180%); border-radius: 22px; padding: 24px; width: 260px;
    border: 1px solid rgba(255,255,255,0.55);
    box-shadow: 0 30px 60px rgba(0,0,0,0.32), 0 1px 0 rgba(255,255,255,0.6) inset, 0 0 0 1px rgba(255,255,255,0.15);
    border-top: 3px solid rgba(212,162,76,0.85);
}
.day-card .progress-label { font-size: 12px; color: #3c463f; margin-bottom: 8px; font-weight: 700; letter-spacing: .02em; }
.day-progress { height: 6px; background: rgba(255,255,255,0.5); border-radius: 4px; overflow: hidden; margin-bottom: 18px; box-shadow: 0 1px 2px rgba(0,0,0,0.06) inset; }
.day-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), #e8bd6f); }
.day-card ul { list-style: none; padding: 0; margin: 0; }
.day-card li { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 13px; color: #23291f; border-bottom: 1px dashed rgba(0,0,0,0.08); }
.day-card li:last-child { border-bottom: none; }
.day-card .li-icon { width: 24px; height: 24px; border-radius: 8px; background: rgba(15,111,92,0.14); color: var(--brand-dark); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.day-card .li-icon svg { width: 13px; height: 13px; }

/* ===================== بخش‌های عمومی ===================== */
section { padding: 44px 0; }
.section-title { text-align: center; font-size: 22px; font-weight: 800; margin-bottom: 30px; }
.section-title span { color: var(--brand); }

.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.grid-6 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

.week-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform .15s, box-shadow .15s; }
.week-card:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(15,111,92,0.12); }
.week-card .thumb { height: 110px; background: linear-gradient(135deg, var(--brand), var(--brand-dark)); display:flex; align-items:center; justify-content:center; color: #fff; position: relative; }
.week-card .thumb svg { width: 34px; height: 34px; position: relative; z-index: 1; }
.week-card .thumb::before {
    content: ''; position: absolute; inset: 0; opacity: .5;
    background-image: radial-gradient(circle, rgba(255,255,255,0.25) 1.5px, transparent 1.5px);
    background-size: 16px 16px;
}
.week-card .body { padding: 14px 16px; }
.week-card .step-no { font-size: 10.5px; color: var(--gold); font-weight: 800; letter-spacing: .04em; margin-bottom: 4px; }
.week-card .body h3 { font-size: 14px; margin-bottom: 6px; }
.week-card .body p { font-size: 12.5px; color: var(--muted); margin: 0; }

.feature-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 22px; text-align: center; }
.feature-card .icon { width: 54px; height: 54px; border-radius: 15px; background: #eef6f3; color: var(--brand); display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.feature-card .icon svg { width: 26px; height: 26px; }
.feature-card h3 { font-size: 15px; margin-bottom: 8px; }
.feature-card p { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.9; }

.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.guide-item {
    position: relative; border-radius: 14px; overflow: hidden; height: 108px;
    display: flex; align-items: flex-end; padding: 10px;
    background: linear-gradient(135deg, var(--brand-dark), var(--brand)); background-size: cover; background-position: center;
}
.guide-item.has-image::before { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.55), rgba(0,0,0,.05)); }
.guide-item span { color: #fff; font-size: 12.5px; font-weight: 700; position: relative; display: flex; align-items: center; gap: 5px; }
.guide-item span svg { width: 14px; height: 14px; flex-shrink: 0; }

.demo-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.demo-table { width: 100%; font-size: 13.5px; margin-bottom: 16px; }
.demo-table td { padding: 6px 0; border-bottom: 1px solid var(--border); }
.demo-table td:first-child { color: var(--muted); width: 90px; }
.demo-exercise { background: var(--bg); border-radius: 12px; padding: 14px; }
.demo-exercise .opts { display: flex; gap: 8px; margin-top: 10px; }
.demo-exercise .opts span { border: 1px solid var(--border); background: #fff; padding: 8px 16px; border-radius: 8px; font-size: 13px; }

.cta-banner { background: linear-gradient(135deg, var(--brand-dark), var(--brand)); border-radius: 24px; padding: 36px; color: #fff; text-align: center; }
.cta-banner h2 { font-size: 22px; margin-bottom: 10px; }
.cta-banner p { opacity: .9; margin-bottom: 22px; }
.cta-chips { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 22px; }
.cta-chips span { background: rgba(255,255,255,0.12); padding: 8px 16px; border-radius: 20px; font-size: 12.5px; display: inline-flex; align-items: center; gap: 6px; }
.cta-banner .btn-gold { background: var(--gold); color: #2a1e05; padding: 12px 26px; border-radius: 12px; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; }

.pricing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 700px; margin: 0 auto; }
.plan-card { background: var(--card); border: 2px solid var(--border); border-radius: var(--radius); padding: 26px; }
.plan-card.featured { border-color: var(--gold); background: #fffaf0; position: relative; }
.plan-card .badge-tag { position: absolute; top: -12px; left: 20px; background: var(--gold); color: #2a1e05; font-size: 11px; padding: 4px 12px; border-radius: 20px; font-weight: 700; }
.plan-card h3 { font-size: 17px; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.plan-card h3 svg { color: var(--gold); flex-shrink: 0; }
.plan-card .price { font-size: 22px; font-weight: 800; margin: 10px 0 16px; }
.plan-card .price small { font-size: 12px; font-weight: 400; color: var(--muted); }
.plan-card ul { list-style: none; padding: 0; margin: 0 0 20px; }
.plan-card li { font-size: 13px; padding: 6px 0; display: flex; gap: 8px; align-items: center; }
.plan-card li svg { color: var(--brand); flex-shrink: 0; }

.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); padding: 16px 0; }
.faq-item summary { cursor: pointer; font-size: 14.5px; font-weight: 600; list-style: none; display:flex; justify-content:space-between; align-items:center; gap:10px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary span { color: var(--brand); flex-shrink: 0; transition: transform .2s; transform: rotate(-90deg); }
.faq-item[open] summary span { transform: rotate(90deg); }
.faq-item p { color: var(--muted); font-size: 13.5px; margin: 10px 0 0; line-height: 1.9; }

/* ===================== فوتر ===================== */
.site-footer { background: var(--brand-dark); color: #cfe4de; padding: 40px 0 0; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; padding-bottom: 30px; }
.footer-grid h4 { color: #fff; font-size: 13px; margin-bottom: 12px; }
.footer-grid a { display: block; font-size: 12.5px; color: #cfe4de; padding: 4px 0; }
.footer-about { font-size: 12.5px; margin: 8px 0 14px; opacity: .85; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { background: rgba(255,255,255,0.1); padding: 6px 12px; border-radius: 8px; font-size: 11.5px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding: 16px 0; font-size: 12px; text-align: center; opacity: .8; }

.search-box { position: relative; margin-bottom: 22px; }
.search-box input {
    width: 100%; padding: 13px 46px 13px 16px; border: 1px solid var(--border); border-radius: 12px;
    font-family: inherit; font-size: 14px; background: #fff;
}
.search-box input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(15,111,92,0.12); }
.search-box svg { position: absolute; top: 50%; right: 16px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search-empty { display: none; text-align: center; color: var(--muted); font-size: 13.5px; padding: 30px 0; }

/* ===================== صفحه‌بندی ===================== */
.pagination { display: flex; justify-content: center; align-items: center; gap: 6px; margin: 30px 0; flex-wrap: wrap; }
.page-btn {
    min-width: 38px; height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--border);
    background: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 13.5px; color: var(--ink);
}
.page-btn:hover { border-color: var(--brand); color: var(--brand); }
.page-btn.active { background: var(--brand); color: #fff; border-color: var(--brand); font-weight: 700; }
.page-btn.disabled { opacity: .4; pointer-events: none; }
.page-dots { padding: 0 4px; color: var(--muted); }
.page-header { background: #fff; border-bottom: 1px solid var(--border); padding: 30px 0; margin-bottom: 30px; }
.page-header h1 { font-size: 22px; }
.simple-list { display: grid; gap: 14px; }
.list-card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 18px 20px; }
.list-card h3 { font-size: 15px; margin-bottom: 6px; }
.list-card p { font-size: 13px; color: var(--muted); margin: 0; }
.badge-plan { font-size: 11px; padding: 3px 10px; border-radius: 20px; background: #fff4ed; color: #b93815; }
.badge-plan.free { background: #ecfdf3; color: #067647; }
.form-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; max-width: 560px; margin: 0 auto; }
.form-card .form-group { margin-bottom: 16px; }
.form-card label { display: block; font-size: 13px; margin-bottom: 6px; }
.form-card input, .form-card select, .form-card textarea {
    width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: 10px; font-family: inherit; font-size: 13.5px;
}

/* ===================== پنل یادگیری تعاملی ===================== */
.learn-header { background: linear-gradient(135deg, var(--brand-dark), var(--brand)); padding: 22px 0; color: #fff; }
.learn-header .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.learn-header h1 { font-size: 17px; }
.learn-progress-track { background: rgba(255,255,255,0.2); border-radius: 8px; height: 8px; overflow: hidden; width: 200px; }
.learn-progress-track span { display: block; height: 100%; background: var(--gold); transition: width .3s; }
.learn-progress-label { font-size: 12px; opacity: .9; margin-top: 6px; }

.learn-stage { max-width: 560px; margin: 40px auto; padding: 0 20px; }

.flash-wrap { text-align: center; }
.flashcard { perspective: 1200px; cursor: pointer; height: 260px; }
.flashcard-inner {
    position: relative; width: 100%; height: 100%; transition: transform .6s; transform-style: preserve-3d;
}
.flashcard.flipped .flashcard-inner { transform: rotateY(180deg); }
.flashcard-face {
    position: absolute; inset: 0; backface-visibility: hidden; border-radius: 20px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px;
    box-shadow: 0 12px 30px rgba(15,111,92,0.12);
}
.flashcard-front { background: #fff; border: 1px solid var(--border); }
.flashcard-back { background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff; transform: rotateY(180deg); }
.fc-label { font-size: 12px; opacity: .7; margin-bottom: 10px; text-transform: uppercase; letter-spacing: .05em; }
.fc-main { font-size: 26px; font-weight: 800; margin-bottom: 10px; }
.fc-sub { font-size: 14px; opacity: .9; margin-top: 4px; }
.fc-note { font-size: 12.5px; opacity: .8; margin-top: 10px; border-top: 1px solid rgba(255,255,255,0.25); padding-top: 10px; }
.fc-hint { font-size: 12px; color: var(--muted); margin-top: 14px; }

.flash-actions { display: flex; gap: 12px; margin-top: 20px; justify-content: center; }
.btn-secondary-lg, .btn-brand-solid-lg {
    padding: 13px 22px; border-radius: 12px; font-weight: 700; font-size: 14px; border: none; cursor: pointer; font-family: inherit;
}
.btn-secondary-lg { background: #f1f2f4; color: #374151; }
.btn-brand-solid-lg { background: var(--brand); color: #fff; }

.exercise-card { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 30px; box-shadow: 0 12px 30px rgba(15,111,92,0.08); }
.ex-question { font-size: 18px; font-weight: 700; margin-bottom: 20px; text-align: center; }
.ex-options { display: grid; gap: 10px; }
.ex-option {
    padding: 14px; border-radius: 12px; border: 1.5px solid var(--border); background: #fff; font-family: inherit;
    font-size: 14px; cursor: pointer; text-align: center; transition: all .15s;
}
.ex-option:hover:not(:disabled) { border-color: var(--brand); background: #f3f9f7; }
.ex-option:disabled { cursor: default; }
.ex-option-correct { background: #ecfdf3 !important; border-color: #17b26a !important; color: #067647; }
.ex-option-wrong { background: #fef2f2 !important; border-color: #d92d20 !important; color: #b42318; }
.ex-input-wrap { display: flex; gap: 10px; }
.ex-input { flex: 1; padding: 13px; border: 1.5px solid var(--border); border-radius: 12px; font-family: inherit; font-size: 14px; }
.ex-feedback { margin-top: 18px; padding: 14px; border-radius: 12px; font-size: 14px; font-weight: 600; text-align: center; }
.ex-correct { background: #ecfdf3; color: #067647; }
.ex-incorrect { background: #fef2f2; color: #b42318; }
.ex-explain { font-size: 12.5px; font-weight: 400; margin-top: 8px; opacity: .85; }

.learn-done { text-align: center; padding: 40px 0; }
.learn-done-icon { font-size: 50px; margin-bottom: 10px; }
.learn-done h2 { font-size: 22px; margin-bottom: 8px; }
.learn-done p { color: var(--muted); margin-bottom: 24px; }

.locked-box { max-width: 480px; margin: 60px auto; text-align: center; padding: 40px 24px; background: #fff; border-radius: 20px; border: 1px solid var(--border); }
.locked-box .lock-icon { width: 60px; height: 60px; border-radius: 16px; background: #fff4ed; color: #b93815; display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; }

/* داشبورد یادگیری */
.dash-header { background: linear-gradient(135deg, var(--brand-dark), var(--brand)); color: #fff; padding: 30px 0; }
.dash-stats { display: flex; gap: 20px; margin-top: 16px; flex-wrap: wrap; }
.dash-stats .stat { background: rgba(255,255,255,0.12); padding: 10px 18px; border-radius: 12px; font-size: 13px; }
.dash-stats .stat b { font-size: 18px; display: block; }
.course-progress-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 20px; margin-bottom: 16px; }
.course-progress-track { background: #f1f2f4; border-radius: 8px; height: 8px; overflow: hidden; margin: 10px 0; }
.course-progress-track span { display: block; height: 100%; background: var(--brand); }
.day-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 20px; font-size: 12px; margin: 3px; }
.day-pill.done { background: #ecfdf3; color: #067647; }
.day-pill.next { background: var(--brand); color: #fff; }
.day-pill.locked { background: #f1f2f4; color: var(--muted); }
.day-pill.todo { background: #fff; border: 1px solid var(--border); color: var(--ink); }

/* ===================== محتوای غنی (از ادیتور) و ویدیو ===================== */
.video-embed { position: relative; width: 100%; aspect-ratio: 16/9; border-radius: 14px; overflow: hidden; margin: 20px 0; background: #000; box-shadow: 0 12px 32px rgba(11,83,71,0.18); }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-embed-native video { width: 100%; height: 100%; object-fit: cover; background: #000; }

.rich-content { font-size: 14.5px; line-height: 2; color: var(--ink); }
.rich-content h3 { font-size: 18px; margin: 24px 0 10px; }
.rich-content p { margin: 0 0 14px; }
.rich-content a { color: var(--brand); text-decoration: underline; }
.rich-content img { max-width: 100%; border-radius: 12px; margin: 14px 0; }
.rich-content blockquote { border-right: 3px solid var(--brand); background: #f3f7f5; padding: 10px 18px; margin: 16px 0; border-radius: 0 10px 10px 0; color: #445; }
.rich-content ul { padding-right: 22px; margin: 0 0 14px; }

/* ===================== تقویم شمسی ===================== */
.jalali-popup {
    position: absolute; z-index: 999; background: #fff; border: 1px solid var(--border); border-radius: 14px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.15); padding: 14px; width: 280px; font-size: 13px;
}
.jalali-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-weight: 700; }
.jalali-header button { background: #f1f2f4; border: none; width: 28px; height: 28px; border-radius: 8px; cursor: pointer; font-size: 15px; }
.jalali-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.jalali-wd { text-align: center; font-size: 11px; color: var(--muted); padding: 4px 0; }
.jalali-day { background: none; border: none; padding: 8px 0; border-radius: 8px; cursor: pointer; font-family: inherit; font-size: 13px; }
.jalali-day:hover { background: #eef6f3; }
.jalali-day.selected { background: var(--brand); color: #fff; }

/* ===================== صفحه‌ی جزئیات (شهر/هتل/مقاله) ===================== */
.detail-hero { position: relative; height: 300px; background: linear-gradient(135deg, var(--brand-dark), var(--brand)); background-size: cover; background-position: center; display: flex; align-items: flex-end; }
.detail-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.6), rgba(0,0,0,.1)); }
.detail-hero .container { position: relative; z-index: 1; padding-bottom: 28px; color: #fff; }
.detail-hero h1 { font-size: 26px; margin-bottom: 6px; }
.detail-hero p { opacity: .9; font-size: 14px; }
.detail-body { max-width: 780px; margin: 0 auto; padding: 34px 20px; }
.detail-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.detail-meta span { background: #eef6f3; color: var(--brand-dark); font-size: 12.5px; padding: 6px 14px; border-radius: 20px; display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 900px) {
    .hero-inner, .grid-2 { grid-template-columns: 1fr; }
    .grid-4, .grid-3, .grid-6, .guide-grid { grid-template-columns: repeat(2, 1fr); }
    .pricing-grid { grid-template-columns: 1fr; }
    .main-nav { display: none; }
    .hero-visual { justify-content: center; min-height: 320px; }
    .day-card { width: 100%; max-width: 300px; }
}
