/* ==========================================================================
   محتوا و صفحه‌های داخلی: مجله، آرشیو، مقاله، اردوها، تماس، ۴۰۴
   (روی همه‌ی صفحات بارگذاری می‌شود چون کارت مقاله و لیست تماس در صفحه اصلی هم هست)
   ========================================================================== */

/* ---------- اجزای مشترک ---------- */
.cat-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-chips .chip { padding: .5em 1.2em; font-size: .9375rem; }
.chip.is-active { background: var(--ink); color: var(--cream); }

.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; font-size: .875rem; color: var(--ink-2); }
.crumbs li + li::before { content: "‹"; margin-inline: .7em; color: var(--ink-2); opacity: .6; }
.crumbs a:hover { color: var(--berry); text-decoration: underline; text-underline-offset: 4px; }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }

.empty {
    display: grid; justify-items: center; gap: 12px;
    padding: clamp(32px, 6vw, 64px) 20px;
    text-align: center;
    background: var(--paper); border-radius: var(--r-xl);
}
.empty__art { width: 140px; height: auto; }
.empty h2, .empty h3 { font-size: var(--fs-h3); }
.empty p { color: var(--ink-2); max-width: 44ch; }
.empty .btn { margin-top: 10px; }

/* لیست راه‌های ارتباطی (صفحه اصلی و صفحه تماس) */
.reach__list li + li { border-top: 1.5px dashed var(--line); }
.reach__list a, .reach__addr {
    display: flex; align-items: center; gap: 16px;
    padding: 16px 4px;
    transition: transform .3s var(--ease-pop);
}
.reach__list a:hover { transform: translateX(-6px); }
.reach__list small  { display: block; color: var(--ink-2); font-size: .8125rem; line-height: 1.6; }
.reach__list strong { display: block; font-size: 1.125rem; font-weight: 800; line-height: 1.7; }

/* ==========================================================================
   کارت مقاله
   ========================================================================== */
.post-grid { display: grid; gap: clamp(16px, 2.5vw, 28px); }
@media (min-width: 640px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .post-grid { grid-template-columns: repeat(3, 1fr); } }

.post-card {
    display: flex; flex-direction: column;
    background: var(--paper);
    border-radius: var(--r-l);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: transform .4s var(--ease-pop), box-shadow .4s;
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }

.post-card__media {
    display: block; position: relative; overflow: hidden;
    aspect-ratio: 4 / 3;
    margin: 10px 10px 0;
    border-radius: calc(var(--r-l) - 10px);
    background: var(--sky-wash);
}
.post-card__media img, .post-card__media .block-art {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 1s var(--ease-out);
}
.post-card:hover .post-card__media img,
.post-card:hover .post-card__media .block-art { transform: scale(1.06); }

.post-card__body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 18px 22px 24px; }
.post-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: .8125rem; color: var(--ink-2); }
.post-card__title { font-size: 1.55rem; line-height: 1.65; }
.post-card__title a { transition: color .3s; }
.post-card:hover .post-card__title a, .post-card__title a:focus-visible { color: var(--berry); }
.post-card__excerpt { color: var(--ink-2); font-size: .9375rem; line-height: 1.95; }
.post-card .link-more { margin-top: auto; padding-top: 8px; }

/* کارت شاخص: دو ستون پهن، تصویر بزرگ */
@media (min-width: 640px) {
    .post-card--feature { grid-column: 1 / -1; display: grid; grid-template-columns: 1.15fr 1fr; }
    .post-card--feature .post-card__media { aspect-ratio: auto; min-height: 280px; margin: 10px; }
    .post-card--feature .post-card__body { justify-content: center; padding: clamp(20px, 3vw, 40px); }
    .post-card--feature .post-card__title { font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem); }
    .post-card--feature .post-card__excerpt { font-size: 1rem; }
}
@media (min-width: 960px) {
    .post-card--feature { grid-column: span 2; }
}

/* موبایل: در صفحه اصلی فقط سه مقاله تا صفحه خیلی بلند نشود */
@media (max-width: 639px) { .post-grid--home .post-card:nth-child(n+4) { display: none; } }

/* تصویر جایگزین بلوکی */
.block-art { display: block; }

/* ==========================================================================
   آرشیو مقالات
   ========================================================================== */
.archive__head { padding-top: clamp(20px, 4vw, 48px); display: grid; gap: 22px; }
.archive__titles h1 { font-size: var(--fs-h2); line-height: 1.45; }
.archive__titles .section-lead { margin-top: 10px; }
.archive__body { padding-block: clamp(24px, 4vw, 40px) 0; }

.search-form {
    position: relative; max-width: 460px;
}
.search-form input[type="search"] {
    width: 100%; min-height: 54px;
    padding: 0 22px; padding-inline-end: 62px;
    border: 2px solid rgba(58,41,56,.12); border-radius: 999px;
    background: var(--paper); color: var(--ink);
    font: 400 1rem/1.7 var(--font-body);
    transition: border-color .2s, box-shadow .25s;
    -webkit-appearance: none; appearance: none;
}
.search-form input[type="search"]::placeholder { color: var(--ink-2); opacity: .8; }
.search-form input[type="search"]:focus { outline: none; border-color: var(--berry); box-shadow: 0 0 0 5px rgba(194,59,110,.14); }
.search-form__btn {
    position: absolute; inset-block: 6px; inset-inline-end: 6px;
    width: 42px; border: 0; border-radius: 50%;
    background: var(--yellow); display: grid; place-items: center; cursor: pointer;
    transition: transform .25s var(--ease-pop);
}
.search-form__btn:hover { transform: rotate(-10deg) scale(1.06); }
.search-form__btn svg { width: 20px; height: 20px; }

@media (min-width: 900px) {
    .archive__head { grid-template-columns: 1fr auto; align-items: end; column-gap: 48px; }
    .archive__head .crumbs, .archive__head .cat-chips { grid-column: 1 / -1; }
    .archive__head .search-form { width: 340px; margin-bottom: 6px; }
}

/* صفحه‌بندی */
.pagination { margin-top: clamp(36px, 6vw, 64px); }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; }
.pagination .page-numbers {
    min-width: 46px; height: 46px; padding: 0 16px;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    border-radius: 999px; background: var(--paper);
    box-shadow: var(--shadow-soft);
    font-weight: 700;
    transition: transform .25s var(--ease-pop), background-color .2s;
}
.pagination a.page-numbers:hover { transform: translateY(-3px); background: var(--yellow-wash); }
.pagination .page-numbers.current { background: var(--ink); color: var(--cream); }
.pagination .page-numbers.dots { background: transparent; box-shadow: none; }
.pagination .page-numbers svg { width: 16px; height: 16px; }
.pagination .prev svg { transform: scaleX(-1); }

/* ==========================================================================
   مقاله
   ========================================================================== */
.single__head { padding-top: clamp(20px, 4vw, 48px); display: grid; gap: 18px; }
.single__title { font-size: clamp(2rem, 1.4rem + 2.8vw, 3.4rem); line-height: 1.55; }
.single__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; color: var(--ink-2); font-size: .9375rem; }
.single__read { display: inline-flex; align-items: center; gap: 6px; }
.single__read svg { width: 18px; height: 18px; }

.single__cover { margin-top: clamp(24px, 4vw, 44px); }
.single__cover img {
    width: 100%; height: auto; max-height: 640px; object-fit: cover;
    aspect-ratio: 16 / 9;
    border-radius: var(--r-xl) var(--r-xl) var(--r-xl) 140px;
}
@media (max-width: 600px) { .single__cover img { border-radius: 36px 36px 36px 80px; aspect-ratio: 4 / 3; } }

/* متن مقاله: خوانا، خط کوتاه، فاصله‌ی عمودی آزاد */
.entry-content { padding-block: clamp(28px, 5vw, 56px); font-size: 1.125rem; line-height: 2.15; }
.entry-content > * + * { margin-top: 1.25em; }
.entry-content h2 { font-size: clamp(1.7rem, 1.4rem + 1.2vw, 2.3rem); margin-top: 2em; }
.entry-content h3 { font-size: clamp(1.35rem, 1.2rem + .6vw, 1.7rem); margin-top: 1.7em; }
.entry-content h4 { font-size: 1.25rem; margin-top: 1.5em; }
.entry-content a { color: var(--berry); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1.5px; }
.entry-content a:hover { text-decoration-thickness: 3px; }
.entry-content ul, .entry-content ol { padding-inline-start: 1.4em; }
.entry-content ul { list-style: none; }
.entry-content ul > li { position: relative; }
.entry-content ul > li::before {
    content: ""; position: absolute; inset-inline-start: -1.25em; top: .95em;
    width: .55em; height: .55em; border-radius: 50%; background: var(--yellow);
}
.entry-content ul > li:nth-child(3n+2)::before { background: var(--pink); border-radius: .2em; }
.entry-content ul > li:nth-child(3n)::before   { background: var(--sky);  border-radius: .55em .55em 0 0; }
.entry-content ol { list-style: decimal; }
.entry-content ol > li::marker { color: var(--berry); font-weight: 800; }
.entry-content li + li { margin-top: .35em; }
.entry-content img, .entry-content video { border-radius: var(--r-m); height: auto; }
.entry-content figure { margin-block: 2em; }
.entry-content figcaption { margin-top: 10px; text-align: center; font-size: .875rem; color: var(--ink-2); line-height: 1.8; }
.entry-content blockquote {
    margin-inline: 0; padding: 26px 28px;
    background: var(--yellow-wash); border-radius: var(--r-m) var(--r-m) var(--r-m) 70px;
    font-size: 1.1875rem; line-height: 2.05;
}
.entry-content blockquote p + p { margin-top: .8em; }
.entry-content blockquote cite { display: block; margin-top: 12px; font-style: normal; font-weight: 700; font-size: .9375rem; color: var(--ink-2); }
.entry-content hr { border: 0; height: 14px; margin-block: 2.2em; background: radial-gradient(circle, var(--pink) 0 5px, transparent 5.5px) 0 50% / 28px 14px repeat-x; }
.entry-content table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 1rem; line-height: 1.8; }
.entry-content th, .entry-content td { padding: 12px 16px; text-align: start; border-bottom: 1.5px solid var(--line); }
.entry-content th { background: var(--sky-wash); font-weight: 700; }
.entry-content th:first-child { border-start-start-radius: 14px; } .entry-content th:last-child { border-start-end-radius: 14px; }
.entry-content pre, .entry-content code { direction: ltr; text-align: left; font-size: .9375rem; }
.entry-content pre { padding: 18px; overflow-x: auto; background: var(--paper); border-radius: var(--r-s); }
.entry-content iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--r-m); }
.entry-content .alignleft, .entry-content .alignright, .entry-content .aligncenter { float: none; margin-inline: auto; display: block; }
.entry-content .wp-block-image img { margin-inline: auto; }
.page-links { display: flex; gap: 8px; flex-wrap: wrap; }

.single__tags { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: clamp(20px, 4vw, 40px); }

.single__cta-wrap { margin-top: 8px; }
.single__cta {
    display: grid; gap: 20px; align-items: center;
    padding: clamp(24px, 4vw, 40px);
    background: var(--yellow);
    border-radius: var(--r-xl) var(--r-l) var(--r-l) var(--r-l);
}
.single__cta h2 { font-size: var(--fs-h3); }
.single__cta p { margin-top: 6px; }
@media (min-width: 720px) { .single__cta { grid-template-columns: 1fr auto; gap: 32px; } }

.post-nav { display: grid; gap: 12px; margin-top: 24px; }
.post-nav__item {
    display: block; padding: 18px 22px;
    background: var(--paper); border-radius: var(--r-m); box-shadow: var(--shadow-soft);
    transition: transform .3s var(--ease-pop);
}
.post-nav__item:hover { transform: translateY(-3px); }
.post-nav__item small { display: block; color: var(--ink-2); font-size: .8125rem; }
.post-nav__item span { display: block; font-weight: 700; line-height: 1.8; }
@media (min-width: 720px) { .post-nav { grid-template-columns: 1fr 1fr; } .post-nav__item--next { text-align: left; } }

.related .section-title { margin-bottom: clamp(24px, 4vw, 40px); }

/* صفحه‌ی ساده */
.simple-page { padding-top: clamp(20px, 4vw, 48px); }
.simple-page__head h1 { font-size: var(--fs-h2); }

/* ==========================================================================
   سربرگ صفحه‌های داخلی
   ========================================================================== */
.page-hero { padding-top: clamp(24px, 5vw, 64px); display: grid; justify-items: center; gap: 18px; text-align: center; }
.page-hero h1 { font-size: clamp(2.4rem, 1.4rem + 4.6vw, 4.8rem); line-height: 1.4; }
.page-hero .section-lead { margin-top: 0; margin-inline: auto; }

/* ==========================================================================
   اردوها
   ========================================================================== */
.tour-card-wrap { margin-top: clamp(32px, 6vw, 64px); }
.tour-card {
    display: grid;
    background: var(--paper);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}
.tour-card__media { position: relative; aspect-ratio: 4 / 3; margin: 10px; border-radius: 46px 46px 22px 22px; overflow: hidden; background: var(--sky-wash); }
.tour-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.tour-card:hover .tour-card__media img { transform: scale(1.05); }
.tour-card__media .chip { position: absolute; inset-block-start: 14px; inset-inline-start: 14px; background: var(--yellow); font-weight: 700; }
.tour-card__body { display: grid; gap: 14px; align-content: center; justify-items: start; padding: clamp(20px, 4vw, 48px); }
.tour-date {
    display: grid; justify-items: center; min-width: 78px;
    padding: 10px 14px 12px;
    background: var(--sky-wash); border-radius: 26px 26px 14px 14px;
    line-height: 1.3;
}
.tour-date strong { font: 400 2rem/1.2 var(--font-display); }
.tour-date span { font-weight: 700; font-size: .875rem; color: var(--sky-deep); }
.tour-card h2 { font-size: var(--fs-h2); line-height: 1.5; }
.tour-card__sub { color: var(--ink-2); font-size: var(--fs-lead); margin-top: -6px; }
.checks { display: grid; gap: 10px; margin-block: 6px 10px; }
.checks li { display: flex; align-items: flex-start; gap: 12px; font-weight: 600; line-height: 1.8; }
.checks svg { flex: none; width: 26px; height: 26px; padding: 4px; margin-top: 2px; border-radius: 50%; background: var(--green); }
@media (min-width: 900px) {
    .tour-card { grid-template-columns: 1fr 1fr; }
    .tour-card__media { aspect-ratio: auto; min-height: 460px; border-radius: 140px 140px 28px 28px; margin: 14px; }
}

.panel-lite { padding: clamp(28px, 6vw, 72px) clamp(16px, 4vw, 56px); background: var(--sky-wash); border-radius: var(--r-xl); }
@media (max-width: 600px) { .panel-lite { border-radius: 36px; } }
.past__head { text-align: center; margin-bottom: clamp(24px, 4vw, 48px); }
.past__head .section-lead { margin-inline: auto; }
.past__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(10px, 2vw, 20px); }
.past-item {
    position: relative; display: block; overflow: hidden;
    aspect-ratio: 4 / 5;
    background: var(--paper);
    border-radius: var(--r-l);
    cursor: zoom-in;
}
.past-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out); }
.past-item:hover img { transform: scale(1.07); }
.past-1 { border-radius: 999px 999px var(--r-l) var(--r-l); }
.past-2 { border-radius: var(--r-l) 90px var(--r-l) var(--r-l); }
.past-3 { border-radius: var(--r-l) var(--r-l) 90px var(--r-l); }
.past-4 { border-radius: 999px 999px var(--r-l) var(--r-l); }
.past-item__cap {
    position: absolute; inset-inline: 8px; inset-block-end: 8px;
    display: block; padding: 10px 16px;
    background: color-mix(in srgb, var(--paper) 92%, transparent);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    border-radius: 22px;
    transition: transform .35s var(--ease-pop);
}
.past-item:hover .past-item__cap { transform: translateY(-4px); }
.past-item__cap strong { display: block; font-weight: 800; font-size: .9375rem; line-height: 1.6; }
.past-item__cap small { display: block; color: var(--ink-2); font-size: .8125rem; line-height: 1.6; }
@media (min-width: 900px) { .past__grid { grid-template-columns: repeat(4, 1fr); } .past-2, .past-3 { aspect-ratio: 4 / 4.6; } }

/* ==========================================================================
   تماس
   ========================================================================== */
.contact { padding-top: clamp(20px, 4vw, 56px); }
.contact__grid { display: grid; gap: clamp(28px, 5vw, 56px); align-items: start; }
.contact__title { font-size: clamp(2.2rem, 1.4rem + 3.6vw, 4rem); line-height: 1.45; }
.contact__list { margin-top: 22px; }
.contact__form {
    padding: clamp(22px, 4vw, 52px);
    background: var(--paper);
    border-radius: var(--r-xl) var(--r-xl) var(--r-xl) 120px;
    box-shadow: var(--shadow-soft);
}
.contact__form h2 { font-size: var(--fs-h3); margin-bottom: 22px; }
@media (min-width: 900px) { .contact__grid { grid-template-columns: 1fr 1.05fr; } }

/* ==========================================================================
   ۴۰۴
   ========================================================================== */
.notfound { display: grid; justify-items: center; gap: 14px; padding-block: clamp(32px, 7vw, 96px) 0; text-align: center; }
.notfound__art { width: clamp(150px, 40vw, 220px); height: auto; animation: peek 3.2s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes peek { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg) translateY(-6px); } }
.notfound__code { font: 400 clamp(3.5rem, 2rem + 8vw, 7rem)/1.2 var(--font-display); color: var(--berry); }
.notfound h1 { font-size: var(--fs-h2); }
.notfound .section-lead { margin-inline: auto; margin-top: 0; }
.notfound__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 14px; }
