/*
Theme Name: MySafar Hajj
Theme URI: https://mysafarhajj.com
Author: MySafar Hajj
Description: হজ ও উমরাহ রিসোর্স হাবের থিম — বাংলা, মোবাইল-বান্ধব। "MySafar Hajj" প্লাগইনের সাথে ব্যবহারের জন্য।
Version: 1.2.0
Requires at least: 6.2
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: mysafar-hajj-theme
*/

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body { margin: 0; background: #F7F4EC; color: #1D2A22; font-family: "Hind Siliguri", "Noto Sans Bengali", system-ui, sans-serif; font-size: 17px; line-height: 1.65; }
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; }
a { color: #12693A; }
a:hover { color: #0B4726; }
h1, h2, h3, h4 { line-height: 1.3; color: #1D2A22; }
:focus-visible { outline: 3px solid #F08A24; outline-offset: 2px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed !important; top: 8px; left: 8px; width: auto; height: auto; clip: auto; z-index: 9999; background: #fff; padding: 10px 16px; border-radius: 8px; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.site-main { outline: none; }
.section { padding-top: 56px; padding-bottom: 24px; }
.section:last-child { padding-bottom: 80px; }
.narrow { max-width: 820px; }
.narrow-wide { max-width: 960px; }
.empty { color: #55645A; }
@media (max-width: 640px) { .wrap { padding-left: 16px; padding-right: 16px; } .section { padding-top: 40px; } }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 10px; border: 1.5px solid transparent; font-family: inherit; font-size: 16px; font-weight: 700; text-decoration: none; cursor: pointer; line-height: 1.2; }
.btn-block { display: flex; width: 100%; }
.btn-primary { background: #12693A; color: #fff; }
.btn-primary:hover { background: #0B4726; color: #fff; }
.btn-accent { background: #F08A24; color: #1D2A22; }
.btn-accent:hover { background: #E07A14; color: #1D2A22; }
.btn-soft { background: #EEF5EF; color: #12693A; }
.btn-ghost { background: #fff; border-color: #CFC8B6; color: #1D2A22; }
.btn-ghost:hover { border-color: #12693A; color: #12693A; }
.more { font-weight: 600; text-decoration: none; }
.more:hover { text-decoration: underline; }
.more-brown { color: #6E4A12; }
.pill { display: inline-block; align-self: flex-start; font-size: 13px; font-weight: 600; background: #EEF5EF; color: #12693A; padding: 2px 10px; border-radius: 99px; }
.eyebrow { margin: 0; font-size: 14px; font-weight: 600; color: #8A5A12; }

/* ---------- Top bar & header ---------- */
.site-top { background: #0B4726; color: #E7F0E9; font-size: 14px; }
.site-top a { color: #fff; }
.site-top-in { display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: space-between; align-items: center; padding-top: 8px; padding-bottom: 8px; }
.site-top-l { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.site-header { background: #fff; border-bottom: 1px solid #E4DFD2; position: relative; z-index: 50; }
.site-header-in { display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; padding-top: 10px; padding-bottom: 10px; }
.site-logo { display: block; flex: 0 0 auto; line-height: 0; }
.site-logo img { height: 60px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 8px 24px; flex-wrap: wrap; justify-content: flex-end; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 22px; }
.site-nav li { position: relative; }
.site-nav a:not(.btn) { display: block; padding: 10px 0; color: #1D2A22; text-decoration: none; font-weight: 500; border-bottom: 3px solid transparent; }
.site-nav a:not(.btn):hover { color: #12693A; }
.site-nav .current-menu-item > a, .site-nav .current-menu-ancestor > a, .site-nav a[aria-current="page"] { color: #12693A; font-weight: 700; border-bottom-color: #F08A24; }
.site-nav .sub-menu { display: none; position: absolute; top: 100%; left: -12px; min-width: 220px; background: #fff; border: 1px solid #E4DFD2; border-radius: 12px; padding: 8px 12px; flex-direction: column; gap: 0; box-shadow: 0 12px 30px rgba(0,0,0,.08); }
.site-nav li:hover > .sub-menu, .site-nav li:focus-within > .sub-menu { display: flex; }
.nav-cta { font-size: 15px; padding: 0 18px; }
.nav-toggle { display: none; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border: 1.5px solid #CFC8B6; background: #fff; border-radius: 10px; font-family: inherit; font-size: 16px; font-weight: 600; color: #1D2A22; cursor: pointer; }
@media (max-width: 1080px) {
	.nav-toggle { display: inline-flex; }
	.site-header-in { flex-wrap: wrap; }
	.site-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 12px; padding: 8px 0 16px; }
	.site-nav.is-open { display: flex; }
	.site-nav ul { flex-direction: column; gap: 0; }
	.site-nav a:not(.btn) { padding: 12px 4px; border-bottom: 1px solid #ECE7DA; }
	.site-nav .current-menu-item > a, .site-nav a[aria-current="page"] { border-bottom-color: #ECE7DA; border-left: 4px solid #F08A24; padding-left: 10px; }
	.site-nav .sub-menu { display: flex; position: static; border: 0; box-shadow: none; padding: 0 0 0 16px; }
}
@media (max-width: 640px) { .site-logo img { height: 52px; } }

/* ---------- Page head ---------- */
.page-head { padding: 36px 0 8px; }
.page-head h1 { margin: 8px 0 6px; font-size: 42px; font-weight: 700; }
.page-sub { margin: 0; color: #55645A; max-width: 760px; font-size: 18px; }
.page-meta { display: flex; flex-wrap: wrap; gap: 4px 20px; color: #55645A; font-size: 15px; margin-top: 4px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 15px; color: #55645A; }
.crumbs a { color: #12693A; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.page-head.is-green { background: #12693A; color: #fff; padding: 44px 0 52px; }
.page-head.is-green h1 { color: #fff; }
.page-head.is-green .page-sub, .page-head.is-green .crumbs, .page-head.is-green .crumbs a { color: #DCEBE0; }
.page-head.is-green + .wrap.overlap { margin-top: -20px; }
.overlap { position: relative; }
@media (max-width: 640px) { .page-head h1 { font-size: 32px; } .page-sub { font-size: 17px; } }

/* ---------- Hero ---------- */
.hero { background: #12693A; color: #fff; position: relative; overflow: hidden; }
.hero-art { position: absolute; right: -120px; top: -90px; opacity: .09; pointer-events: none; }
.hero-in { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 80px; position: relative; }
.hero-main { flex: 999 1 520px; min-width: 0; }
.hero-ar { margin: 0; font-family: "Amiri", "Noto Naskh Arabic", serif; font-size: 30px; color: #F5B45E; line-height: 1.5; text-align: left; }
.hero h1 { margin: 12px 0 16px; font-size: 52px; line-height: 1.25; font-weight: 700; color: #fff; }
.hero-text { margin: 0 0 28px; font-size: 19px; color: #DCEBE0; max-width: 600px; }
.hero-search { display: flex; flex-wrap: wrap; gap: 10px; max-width: 600px; margin: 0 0 22px; }
.hero-search input { flex: 1 1 260px; min-width: 0; height: 52px; border: 1.5px solid #CFC8B6; border-radius: 10px; padding: 0 18px; font-family: inherit; font-size: 17px; color: #1D2A22; background: #fff; }
.hero .hero-search input { border-color: transparent; }
.hero-search .btn { height: 52px; }
.search-page-form { margin-bottom: 32px; }
.hero-popular { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 15px; color: #DCEBE0; margin: 0; }
.hero-popular a { color: #fff; }
.hero-card { flex: 1 1 340px; min-width: 0; background: #fff; color: #1D2A22; border-radius: 18px; padding: 28px; }
.glance { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.glance-1 { grid-template-columns: 1fr; }
.glance div { border-radius: 12px; padding: 14px 16px; }
.glance span { display: block; font-size: 14px; }
.glance b { font-size: 17px; }
.glance-g { background: #EEF5EF; } .glance-g span { color: #3F5A48; }
.glance-o { background: #FDF1E3; } .glance-o span { color: #6E4A12; }
.hero-card-note { margin: 18px 0 20px; padding-top: 16px; border-top: 1px solid #ECE7DA; font-size: 15px; }
.hero-card-note b { display: block; }
.hero-card-note span { color: #47574D; }
@media (max-width: 640px) { .hero-in { padding-top: 48px; padding-bottom: 56px; gap: 32px; } .hero h1 { font-size: 36px; } .hero-text { font-size: 17px; } }

/* ---------- Sections ---------- */
.section-title { margin: 0 0 8px; font-size: 34px; font-weight: 700; }
.section-sub { margin: 0 0 28px; color: #55645A; }
.section-head { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: flex-end; margin-bottom: 28px; }
.section-head .section-sub { margin: 0; }
.section-center { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.center-link { text-align: center; margin: 28px 0 0; }
.band { background: #fff; border-top: 1px solid #E4DFD2; border-bottom: 1px solid #E4DFD2; margin-top: 56px; }
.band .section { padding-bottom: 64px; }
.h-sm { font-size: 22px; margin: 28px 0 12px; }
@media (max-width: 640px) { .section-title { font-size: 28px; } }

.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.tile { display: flex; gap: 16px; align-items: flex-start; height: 100%; background: #fff; border: 1px solid #E4DFD2; border-radius: 16px; padding: 22px; text-decoration: none; color: #1D2A22; }
.tile:hover { border-color: #12693A; color: #1D2A22; }
.tile-icon { flex: 0 0 52px; height: 52px; border-radius: 12px; background: #EEF5EF; display: flex; align-items: center; justify-content: center; }
.tile b { display: block; font-size: 19px; }
.tile small { display: block; color: #55645A; font-size: 15px; margin-top: 2px; }

.steps4 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.steps4 a { display: flex; flex-direction: column; gap: 8px; height: 100%; background: #fff; border-radius: 16px; padding: 24px; border-top: 4px solid #F08A24; text-decoration: none; color: #1D2A22; }
.steps4 a:hover { box-shadow: 0 8px 24px rgba(29,42,34,.08); color: #1D2A22; }
.steps4-n { font-size: 40px; font-weight: 700; color: #12693A; line-height: 1; }
.steps4 b { font-size: 22px; margin-top: 6px; }
.steps4-t { color: #47574D; font-size: 15px; flex: 1 1 auto; }

.hajj-days { list-style: none; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); background: #fff; border: 1px solid #E4DFD2; border-radius: 16px; overflow: hidden; }
.hajj-days li + li { border-left: 1px solid #ECE7DA; }
.hajj-days a { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 22px; text-decoration: none; color: #47574D; font-size: 15px; }
.hajj-days a:hover { background: #FAF8F2; }
.hajj-date { font-size: 14px; font-weight: 600; color: #8A5A12; }
.hajj-days b { font-size: 20px; color: #12693A; }
@media (max-width: 700px) { .hajj-days li + li { border-left: 0; border-top: 1px solid #ECE7DA; } }

.home-split { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.home-split-main { flex: 999 1 560px; min-width: 0; }
.home-split-main .section-title { margin-bottom: 24px; }
.home-split-side { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.dl-card { background: #0B4726; color: #CFE1D4; border-radius: 16px; padding: 28px; font-size: 15px; }
.dl-card h2 { color: #fff; font-size: 21px; margin: 12px 0 6px; }
.dl-card p { margin: 0 0 18px; }
.check-card { background: #FDF1E3; border-radius: 16px; padding: 28px; color: #5C4520; font-size: 15px; }
.check-card h2, .plan-card h2 { font-size: 21px; margin: 0 0 6px; }
.check-card p { margin: 0 0 14px; }
.plan-card { background: #fff; border: 1px solid #E4DFD2; border-radius: 16px; padding: 28px; font-size: 15px; color: #47574D; }
.plan-card p { margin: 0 0 16px; }

/* ---------- Two-column layouts ---------- */
.layout-2 { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.layout-main { flex: 999 1 600px; min-width: 0; }
.layout-side { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.layout-side.sticky { position: sticky; top: 16px; }
@media (max-width: 960px) { .layout-side.sticky { position: static; } }
.side-card { background: #fff; border: 1px solid #E4DFD2; border-radius: 16px; padding: 24px; }
.side-card h2 { font-size: 18px; margin: 0 0 4px; }
.cta-card { background: #12693A; color: #DCEBE0; border-radius: 16px; padding: 24px; font-size: 15px; }
.cta-card h2 { color: #fff; font-size: 19px; margin: 0 0 4px; }
.cta-card p { margin: 0 0 16px; }
.promo-card { display: block; background: #FDF1E3; border-radius: 16px; padding: 18px 20px; color: #4E3B1C; text-decoration: none; font-size: 15px; }
.promo-card b { display: block; color: #6E4A12; font-size: 17px; }
.promo-card:hover { color: #4E3B1C; background: #FBE8D2; }

.pkg-switch { display: inline-flex; flex-wrap: wrap; gap: 6px; background: #fff; border: 1px solid #E4DFD2; border-radius: 12px; padding: 6px; margin-top: 16px; }
.pkg-switch a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 8px; font-size: 15px; font-weight: 600; color: #1D2A22; text-decoration: none; }
.pkg-switch a.is-on { background: #12693A; color: #fff; }
.pkg-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 8px; }
.pkg-facts div { background: #fff; border: 1px solid #E4DFD2; border-radius: 14px; padding: 14px 16px; }
.pkg-facts span { display: block; font-size: 14px; color: #55645A; }
.feature-list { margin-bottom: 32px; }
.msh-itin { margin-top: 32px; }

/* ---------- Guides ---------- */
.guide-intro { max-width: 860px; margin-bottom: 28px; }
.guide-list { list-style: none; margin: 0 0 32px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.guide-card { display: flex; flex-direction: column; gap: 8px; height: 100%; background: #fff; border: 1px solid #E4DFD2; border-radius: 16px; padding: 24px; text-decoration: none; color: #47574D; }
.guide-card:hover { border-color: #12693A; color: #47574D; }
.guide-card b { font-size: 22px; color: #1D2A22; }
.guide-card small { color: #55645A; font-size: 14px; margin-top: auto; }
.guide-layout { align-items: flex-start; }
.guide-layout .msh-guide { display: block; }

/* ---------- Content ---------- */
.entry { font-size: 17px; }
.entry > *:first-child { margin-top: 0; }
.entry h2 { font-size: 26px; margin: 32px 0 12px; }
.entry h3 { font-size: 21px; margin: 24px 0 10px; }
.entry ul, .entry ol { padding-left: 22px; }
.entry li { margin-bottom: 6px; }
.entry blockquote { margin: 24px 0; padding: 16px 20px; border-radius: 12px; background: #FDF1E3; color: #4E3B1C; }
.entry table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.entry td, .entry th { border: 1px solid #E4DFD2; padding: 8px 12px; }
.entry-hero { margin: 0 0 24px; }
.entry-hero img { border-radius: 16px; }
.answer-card { background: #fff; border: 1px solid #E4DFD2; border-radius: 16px; padding: 24px 28px; margin-bottom: 20px; }
.topic-links { color: #55645A; font-size: 15px; }

/* ---------- Generic cards ---------- */
.card-list { list-style: none; margin: 0 0 32px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid #E4DFD2; border-radius: 16px; overflow: hidden; text-decoration: none; color: #47574D; }
.card:hover { border-color: #12693A; color: #47574D; }
.card-img img { width: 100%; height: 170px; object-fit: cover; display: block; }
.card-body { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 20px; }
.card-title { font-size: 20px; font-weight: 700; color: #1D2A22; }
.card-text { font-size: 15px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.nav-links .page-numbers { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; padding: 0 12px; border-radius: 10px; background: #fff; border: 1px solid #E4DFD2; text-decoration: none; }
.nav-links .current { background: #12693A; color: #fff; border-color: #12693A; }

/* ---------- FAQ tools ---------- */
.faq-tools { display: flex; flex-direction: column; gap: 14px; margin-bottom: 24px; }
.faq-tools input { height: 52px; border: 1.5px solid #CFC8B6; border-radius: 10px; padding: 0 18px; font-family: inherit; font-size: 17px; background: #fff; width: 100%; }
.faq-tools .msh-chip { display: inline-flex; align-items: center; text-decoration: none; }
.ask-card { margin-top: 28px; background: #FDF1E3; border-radius: 16px; padding: 20px 24px; color: #4E3B1C; }
.ask-card b { display: block; color: #6E4A12; font-size: 18px; }

/* ---------- Places single ---------- */
.place-hero { margin: 0 0 16px; }
.place-hero img { width: 100%; max-height: 460px; object-fit: cover; border-radius: 16px; display: block; }
.place-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-bottom: 8px; }
.place-gallery img { width: 100%; height: 110px; object-fit: cover; border-radius: 10px; display: block; }
.credit { font-size: 13px; color: #55645A; margin: 0 0 20px; }
.tips-card { background: #FDF1E3; border-radius: 16px; padding: 22px 26px; color: #4E3B1C; margin: 24px 0; }
.tips-card h2 { font-size: 20px; margin: 0 0 8px; color: #6E4A12; }
.tips-card ul { margin: 0; padding-left: 22px; }
.place-facts { display: flex; flex-direction: column; gap: 10px; }
.place-facts p { margin: 0; }
.place-facts .msh-map-single { height: 260px; margin: 6px 0; border-radius: 12px; }

/* ---------- Downloads ---------- */
.dl-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.dl-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; background: #fff; border: 1px solid #E4DFD2; border-radius: 16px; padding: 20px 22px; }
.dl-icon { flex: 0 0 52px; height: 52px; border-radius: 12px; background: #EEF5EF; display: flex; align-items: center; justify-content: center; }
.dl-body { flex: 1 1 260px; display: flex; flex-direction: column; color: #55645A; font-size: 15px; }
.dl-body b { font-size: 19px; color: #1D2A22; }
.dl-ex { color: #47574D; margin-top: 4px; }
.dl-soon { color: #6E4A12; font-weight: 600; }

/* ---------- 1.1 additions ---------- */
.guide-jump { margin-bottom: 8px; }
.guide-jump .msh-chip { display: inline-flex; align-items: center; text-decoration: none; }
.guide-group { margin-top: 36px; scroll-margin-top: 16px; }
.guide-body { background: #fff; border: 1px solid #E4DFD2; border-radius: 20px; padding: 32px 36px; }
.guide-body table { display: table; border-radius: 12px; overflow: hidden; font-size: 16px; }
.guide-body th { background: #EEF5EF; text-align: left; }
@media (max-width: 640px) { .guide-body { padding: 22px 18px; } .guide-body table { display: block; overflow-x: auto; } }
.side-links { margin: 8px 0 12px; padding-left: 18px; font-size: 15px; }
.side-links li { margin-bottom: 6px; }
.tips-panel { background: #fff; border: 1px solid #E4DFD2; border-radius: 20px; padding: 32px 36px; }
.tips-panel .msh-source { display: none; }
.hero-card-note .more { display: inline-block; margin-top: 4px; font-size: 15px; }
@media (max-width: 640px) { .tips-panel { padding: 22px 18px; } }

/* ---------- Footer ---------- */
.site-footer { background: #0B4726; color: #CFE1D4; font-size: 15px; margin-top: 40px; }
.site-footer a { color: #CFE1D4; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; padding-top: 56px; padding-bottom: 32px; }
.footer-logo { display: inline-block; background: #fff; border-radius: 12px; padding: 10px 14px; line-height: 0; }
.footer-logo img { height: 70px; width: auto; }
.footer-h { color: #fff; font-size: 16px; margin: 0 0 12px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.footer-address { font-style: normal; }
.footer-social { display: flex; gap: 14px; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: space-between; padding-top: 18px; padding-bottom: 28px; border-top: 1px solid #1E5E3A; font-size: 14px; color: #A9C4B1; }

/* ---------- Print ---------- */
@media print {
	.site-top, .site-header, .site-footer, .pkg-switch, .layout-side, .msh-gtabs, .msh-gnav, .crumbs { display: none !important; }
	body { background: #fff; font-size: 13pt; }
	.layout-main { flex-basis: 100%; }
	.msh-gpanel[hidden] { display: block !important; }
	.msh-gstep { border: 0; padding: 0; }
}

/* ---------- 1.2: Blog (ব্লগ) ---------- */
.blog-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.blog-cats .msh-chip { display: inline-flex; align-items: center; gap: 4px; text-decoration: none; }
.blog-cats .msh-chip span { font-weight: 400; opacity: .75; }
.post-grid { list-style: none; margin: 0 0 32px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.post-li-feat { grid-column: 1 / -1; }
@media (max-width: 1000px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .post-grid { grid-template-columns: 1fr; gap: 18px; } }
.post-card { position: relative; display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid #E4DFD2; border-radius: 18px; overflow: hidden; transition: border-color .15s, box-shadow .15s, transform .15s; }
.post-card:hover { border-color: #12693A; box-shadow: 0 10px 28px rgba(18, 105, 58, .10); transform: translateY(-2px); }
.post-card:focus-within { border-color: #12693A; }
.post-card-media { aspect-ratio: 16 / 9; overflow: hidden; background: #EEF5EF; }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-art { position: relative; display: flex; align-items: flex-end; width: 100%; height: 100%; padding: 16px 18px; color: var(--tone-line); background: var(--tone-bg); }
.post-art svg { position: absolute; inset: 0; }
.post-art b { position: relative; font-size: 15px; font-weight: 700; color: var(--tone-ink); background: rgba(255, 255, 255, .82); padding: 3px 12px; border-radius: 99px; }
.tone-green { --tone-bg: #12693A; --tone-line: #6FB28A; --tone-ink: #0B4726; }
.tone-gold { --tone-bg: #F0B45E; --tone-line: #FFF1DA; --tone-ink: #6E4A12; }
.tone-blue { --tone-bg: #1F6F9A; --tone-line: #8CC3E0; --tone-ink: #12455F; }
.tone-sand { --tone-bg: #E9DFC8; --tone-line: #B9A57A; --tone-ink: #5A4A26; }
.tone-plum { --tone-bg: #5B4A86; --tone-line: #B3A6D6; --tone-ink: #3A2E5C; }
.post-card-body { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 20px; flex: 1 1 auto; }
.post-card-cat { position: relative; z-index: 2; align-self: flex-start; font-size: 13px; font-weight: 700; color: #12693A; text-decoration: none; background: #EEF5EF; padding: 2px 10px; border-radius: 99px; }
.post-card-cat:hover { background: #12693A; color: #fff; }
.post-card-title { margin: 2px 0 0; font-size: 21px; line-height: 1.4; }
.post-card-title a { color: #1D2A22; text-decoration: none; }
.post-card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: 18px; }
.post-card-title a:focus-visible { outline: none; }
.post-card-title a:focus-visible::after { outline: 3px solid #1F7FB0; outline-offset: -3px; }
.post-card-text { margin: 0; color: #47574D; font-size: 16px; }
.post-card-meta { margin: auto 0 0; padding-top: 8px; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; color: #6B786F; }
.post-card-meta span + span::before { content: "·"; margin-right: 14px; }
.post-card.is-featured { flex-direction: row; }
.post-card.is-featured .post-card-media { flex: 0 0 46%; aspect-ratio: auto; min-height: 300px; }
.post-card.is-featured .post-card-body { padding: 32px 36px; justify-content: center; gap: 10px; }
.post-card.is-featured .post-card-title { font-size: 30px; }
.post-card.is-featured .post-card-text { font-size: 17px; }
.post-card.is-featured .post-card-meta { margin-top: 4px; }
.post-card.is-featured .post-art b { font-size: 17px; }
@media (max-width: 820px) {
	.post-card.is-featured { flex-direction: column; }
	.post-card.is-featured .post-card-media { flex: none; aspect-ratio: 16 / 9; min-height: 0; }
	.post-card.is-featured .post-card-body { padding: 20px; }
	.post-card.is-featured .post-card-title { font-size: 24px; }
}
.quiz-band { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; margin-top: 8px; background: #12693A; color: #DCEBE0; border-radius: 20px; padding: 22px 26px; }
.quiz-band-icon { flex: 0 0 56px; height: 56px; border-radius: 16px; background: #F08A24; color: #1D2A22; display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 700; }
.quiz-band-text { flex: 1 1 360px; }
.quiz-band-text b { display: block; color: #fff; font-size: 20px; }
.quiz-band .btn { flex: 0 0 auto; }

/* Article */
.post-body { background: #fff; border: 1px solid #E4DFD2; border-radius: 20px; padding: 36px 40px; font-size: 18px; line-height: 1.8; }
.post-body h2 { scroll-margin-top: 16px; }
.post-body table { display: table; width: 100%; border-radius: 12px; overflow: hidden; font-size: 16px; line-height: 1.6; }
.post-body th { background: #EEF5EF; text-align: left; }
.post-body .msh-pcards { font-size: 16px; line-height: 1.6; }
.post-body .msh-ar, .post-body .is-style-msh-arabic { font-family: "Amiri", serif; font-size: 27px; line-height: 2; text-align: right; direction: rtl; background: #F7F4EC; border-radius: 12px; padding: 14px 18px; color: #1D2A22; }
.post-body .is-style-msh-source, .post-body .msh-source { font-size: 14px; color: #6B786F; border-top: 1px dashed #D8D2C2; padding-top: 12px; }
.post-body .is-style-msh-hadith, .post-body blockquote { border-left: 4px solid #F08A24; }
.post-body .is-style-msh-tip { background: #EEF5EF; border-radius: 14px; padding: 16px 20px; }
@media (max-width: 640px) { .post-body { padding: 22px 18px; font-size: 17px; } .post-body table { display: block; overflow-x: auto; } .post-body .msh-ar { font-size: 23px; } }
.post-side { position: sticky; top: 16px; }
@media (max-width: 960px) { .post-side { position: static; } }
.post-toc ol { margin: 8px 0 0; padding-left: 20px; font-size: 15px; }
.post-toc li { margin-bottom: 6px; }
.post-toc a { color: #2E3B33; text-decoration: none; }
.post-toc a:hover { color: #12693A; text-decoration: underline; }
.post-toc-inline { display: none; background: #fff; border: 1px solid #E4DFD2; border-radius: 14px; padding: 12px 18px; margin-bottom: 16px; }
.post-toc-inline summary { cursor: pointer; font-weight: 700; }
@media (max-width: 960px) { .post-toc-inline { display: block; } .post-side .post-toc { display: none; } }
.post-foot { margin-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.post-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.share-btn { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 10px; border: 1.5px solid #CFC8B6; background: #fff; color: #1D2A22; font: inherit; font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer; }
.share-btn:hover { border-color: #12693A; color: #12693A; }
.share-fb { background: #1877F2; border-color: #1877F2; color: #fff; }
.share-wa { background: #1E8E4E; border-color: #1E8E4E; color: #fff; }
.share-fb:hover, .share-wa:hover { color: #fff; opacity: .9; }
.post-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.post-note { margin: 0; font-size: 14px; color: #6B786F; }
.post-related { margin-top: 48px; }
@media print { .post-share, .post-side, .post-related, .quiz-band, .post-toc-inline { display: none !important; } .post-body { border: 0; padding: 0; } }
