/* IJ Home — conversion-focused home sections */
.ijh {
	--h-text: var(--ij-text, #eef0f6);
	--h-soft: var(--ij-text-soft, #c9cedd);
	--h-muted: var(--ij-muted, #959cb3);
	--h-card: var(--ij-surface, #141b31);
	--h-card2: var(--ij-surface-2, #1a2340);
	--h-bg2: var(--ij-bg-2, #0f1529);
	--h-line: var(--ij-border, rgba(255,255,255,.08));
	--h-line2: var(--ij-border-strong, rgba(255,255,255,.14));
	--h-gold: var(--ij-gold, #e2b660);
	--h-gold2: var(--ij-gold-2, #f4d58f);
	--h-grad: var(--ij-gold-grad, linear-gradient(135deg,#f4d58f,#e2b660 45%,#c4933a));
	--h-goldsoft: var(--ij-gold-soft, rgba(226,182,96,.12));
	direction: rtl;
	text-align: right;
	color: var(--h-soft);
	font-family: var(--ij-font, "IBM Plex Sans Arabic", sans-serif);
	position: relative;
}
.ijh *, .ijh *::before, .ijh *::after { box-sizing: border-box; }
.ijh h1, .ijh h2, .ijh h3 { color: var(--h-text) !important; font-weight: 700 !important; letter-spacing: 0 !important; }
.ijh p { margin: 0; }
.ijh-ic { width: 20px; height: 20px; flex: 0 0 20px; }

.ijh-eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--h-gold); font-size: 15px; font-weight: 600; margin-bottom: 14px; }
.ijh-eyebrow::before { content: ""; width: 28px; height: 2px; border-radius: 2px; background: var(--h-grad); }
.ijh-head { max-width: 760px; margin: 0 0 40px; }
.ijh-head h2 { font-size: clamp(26px, 3.2vw, 42px) !important; line-height: 1.35 !important; margin: 0 0 12px !important; }
.ijh-head p { font-size: 17px; line-height: 1.9; color: var(--h-soft); }
.ijh-head-center { margin-left: auto; margin-right: auto; text-align: center; }
.ijh-head-center .ijh-eyebrow { justify-content: center; }

.ijh-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; padding: 12px 28px; border-radius: 14px; font-weight: 700; font-size: 16px; text-decoration: none !important; transition: transform .25s, box-shadow .25s, background .25s, color .25s; white-space: nowrap; }
.ijh-btn-gold { background: var(--h-grad); color: #1a1305 !important; box-shadow: 0 14px 30px -14px rgba(226,182,96,.9); }
.ijh-btn-gold:hover { transform: translateY(-2px); box-shadow: 0 20px 38px -14px rgba(226,182,96,1); }
.ijh-btn-ghost { border: 1px solid rgba(226,182,96,.5); color: var(--h-gold2) !important; background: rgba(255,255,255,.02); }
.ijh-btn-ghost:hover { background: var(--h-goldsoft); }
.ijh-btn-sm { min-height: 44px; padding: 9px 18px; font-size: 14.5px; border-radius: 12px; }
.ijh-link { display: inline-flex; align-items: center; gap: 6px; color: var(--h-gold2) !important; font-weight: 600; font-size: 14.5px; text-decoration: none !important; }
.ijh-link .ijh-ic { width: 16px; height: 16px; transition: transform .25s; }
.ijh-link:hover .ijh-ic, a:hover > .ijh-link .ijh-ic { transform: translateX(-4px); }
.ijh-pill { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--h-goldsoft); color: var(--h-gold); font-size: 13px; font-weight: 600; }
.ijh-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Hero ---------- */
.ijh-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 4vw, 64px); align-items: center; padding: clamp(10px, 2vw, 30px) 0; }
.ijh-hero h1 { font-size: clamp(34px, 4.6vw, 62px) !important; line-height: 1.25 !important; margin: 0 0 20px !important; }
.ijh-hero h1 em { font-style: normal !important; background: var(--h-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ijh-lead { font-size: clamp(16.5px, 1.4vw, 19px); line-height: 2; color: var(--h-soft); margin: 0 0 30px !important; max-width: 600px; }
.ijh-trust { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.ijh-trust li { display: inline-flex; align-items: center; gap: 8px; color: var(--h-soft); font-size: 14.5px; }
.ijh-trust .ijh-ic { color: var(--h-gold); }
.ijh-hero-visual { position: relative; }
.ijh-hero-glow { position: absolute; inset: -10% 0 10%; background: radial-gradient(closest-side, rgba(226,182,96,.28), transparent 70%); filter: blur(10px); pointer-events: none; }
.ijh-hero-visual img { position: relative; width: 100%; height: auto; display: block; border-radius: 18px; filter: drop-shadow(0 40px 50px rgba(0,0,0,.55)); }
.ijh-hero-badge { position: absolute; top: -18px; left: 6%; display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-radius: 18px; background: rgba(20,27,49,.88); border: 1px solid rgba(226,182,96,.4); backdrop-filter: blur(10px); box-shadow: 0 20px 40px -20px rgba(0,0,0,.8); }
.ijh-hero-badge strong { font-size: 34px; line-height: 1; background: var(--h-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ijh-hero-badge span { color: var(--h-soft); font-size: 13px; line-height: 1.5; }
.ijh-byline { position: relative; margin-top: 18px !important; text-align: center; color: var(--h-muted); font-size: 14px; }
.ijh-byline b { color: var(--h-text); }

/* ---------- New releases ---------- */
.ijh-new-grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 22px; }
.ijh-new-card { display: flex; flex-direction: column; background: var(--h-card); border: 1px solid var(--h-line); border-radius: 24px; overflow: hidden; transition: transform .4s, border-color .4s, box-shadow .4s; }
.ijh-new-card:hover { transform: translateY(-6px); border-color: rgba(226,182,96,.4); box-shadow: 0 30px 60px -26px rgba(0,0,0,.8); }
.ijh-new-cover { display: grid; place-items: center; padding: 30px 20px 24px; background: radial-gradient(circle at 50% 30%, rgba(226,182,96,.2), transparent 60%), linear-gradient(180deg, #1b2442, #121830); }
.ijh-new-cover img { height: 230px; width: auto; max-width: 80%; object-fit: contain; border-radius: 4px; box-shadow: -14px 22px 30px rgba(0,0,0,.55); transition: transform .6s; }
.ijh-new-card.is-featured .ijh-new-cover img { height: 270px; }
.ijh-new-card:hover .ijh-new-cover img { transform: translateY(-6px) rotate(-1.5deg); }
.ijh-new-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.ijh-new-body .ijh-pill { align-self: flex-start; }
.ijh-new-body h3 { font-size: 19px !important; line-height: 1.55 !important; margin: 0 !important; }
.ijh-new-body h3 a { color: inherit !important; text-decoration: none !important; }
.ijh-new-body p { font-size: 15px; line-height: 1.9; color: var(--h-soft); }
.ijh-new-actions { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- Paths ---------- */
.ijh-paths-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 18px; }
.ijh-path { display: flex; gap: 18px; align-items: stretch; padding: 18px; background: var(--h-card); border: 1px solid var(--h-line); border-radius: 20px; transition: border-color .35s, transform .35s, background .35s; }
.ijh-path:hover { border-color: rgba(226,182,96,.4); transform: translateY(-3px); background: var(--h-card2); }
.ijh-path-cover { flex: 0 0 96px; align-self: center; }
.ijh-path-cover img { width: 96px; height: auto; display: block; border-radius: 3px; box-shadow: -8px 12px 20px rgba(0,0,0,.5); }
.ijh-path-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; }
.ijh-path h3 { font-size: 17.5px !important; line-height: 1.5 !important; margin: 0 !important; }
.ijh-path p { font-size: 14.5px; line-height: 1.8; color: var(--h-soft); }
.ijh-path-book { display: inline-flex; align-items: center; gap: 6px; color: var(--h-gold); font-size: 13px; font-weight: 600; margin-top: 2px; }
.ijh-path-book .ijh-ic { width: 15px; height: 15px; flex-basis: 15px; }
.ijh-path-actions { margin-top: auto; padding-top: 10px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

/* ---------- Bundle ---------- */
.ijh-bundle { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; padding: clamp(28px, 4vw, 56px); border-radius: 30px; overflow: hidden;
	background: radial-gradient(600px 360px at 85% 10%, rgba(226,182,96,.16), transparent 60%), linear-gradient(160deg, #161e38, #0d1326); border: 1px solid rgba(226,182,96,.25); }
.ijh-bundle h2 { font-size: clamp(26px, 3vw, 40px) !important; line-height: 1.35 !important; margin: 0 0 14px !important; }
.ijh-bundle p { font-size: 16.5px; line-height: 2; margin: 0 0 18px !important; }
.ijh-checks { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 10px; }
.ijh-checks li { display: flex; align-items: center; gap: 10px; font-size: 15.5px; color: var(--h-soft); }
.ijh-checks .ijh-ic { color: var(--h-gold); width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: var(--h-goldsoft); }
.ijh-bundle-covers { position: relative; height: 340px; }
.ijh-bundle-covers img { position: absolute; top: 50%; right: 50%; width: 150px; height: auto; border-radius: 3px; box-shadow: -12px 18px 28px rgba(0,0,0,.6);
	transform: translate(calc(50% + (var(--i) - 3) * -62px), -50%) rotate(calc((var(--i) - 3) * 6deg)); transform-origin: 50% 120%; transition: transform .6s cubic-bezier(.22,1,.36,1); z-index: calc(10 - var(--i)); }
.ijh-bundle:hover .ijh-bundle-covers img { transform: translate(calc(50% + (var(--i) - 3) * -74px), -52%) rotate(calc((var(--i) - 3) * 7deg)); }

/* ---------- Author ---------- */
.ijh-author { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.ijh-author-photo { position: relative; display: flex; justify-content: center; }
.ijh-author-photo::before { content: ""; position: absolute; inset: 12% 8% 0; border-radius: 30px 30px 0 0; background: radial-gradient(circle at 50% 30%, rgba(226,182,96,.25), transparent 70%), var(--h-card); border: 1px solid var(--h-line); }
.ijh-author-photo img { position: relative; width: 100%; max-width: 380px; height: auto; display: block; -webkit-mask-image: linear-gradient(180deg, #000 82%, transparent); mask-image: linear-gradient(180deg, #000 82%, transparent); }
.ijh-author h2 { font-size: clamp(30px, 3.4vw, 44px) !important; margin: 0 0 4px !important; }
.ijh-author-role { color: var(--h-gold2); font-weight: 500; font-size: 17px; margin: 0 0 16px !important; }
.ijh-author-text > p:not(.ijh-author-role), .ijh-about p { font-size: 16.5px; line-height: 2; margin-bottom: 22px !important; }
.ijh-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 26px; }
.ijh-stats div { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 14px 16px; border-radius: 16px; background: var(--h-card); border: 1px solid var(--h-line); }
.ijh-stats .ijh-ic { grid-row: 1 / 3; width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--h-goldsoft); color: var(--h-gold); }
.ijh-stats b { color: var(--h-text); font-size: 18px; line-height: 1.3; }
.ijh-stats span { color: var(--h-muted); font-size: 13px; line-height: 1.5; }

/* ---------- Free ---------- */
.ijh-free-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 900px; margin: 0 auto; }
.ijh-free-card { display: flex; flex-direction: column; gap: 10px; padding: 28px; border-radius: 22px; background: var(--h-card); border: 1px solid var(--h-line); text-decoration: none !important; transition: transform .35s, border-color .35s; }
.ijh-free-card:hover { transform: translateY(-4px); border-color: rgba(226,182,96,.4); }
.ijh-free-ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--h-goldsoft); color: var(--h-gold); margin-bottom: 6px; }
.ijh-free-ic .ijh-ic { width: 28px; height: 28px; }
.ijh-free-card h3 { font-size: 20px !important; margin: 0 !important; }
.ijh-free-card p { color: var(--h-soft); font-size: 15px; line-height: 1.8; }

/* ---------- How ---------- */
.ijh-steps { list-style: none; margin: 0 0 40px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: s; }
.ijh-steps li { position: relative; padding: 28px 24px 24px; border-radius: 22px; background: var(--h-card); border: 1px solid var(--h-line); }
.ijh-steps li span { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--h-grad); color: #1a1305; font-weight: 700; font-size: 18px; margin-bottom: 16px; }
.ijh-steps h3 { font-size: 19px !important; margin: 0 0 8px !important; }
.ijh-steps p { font-size: 15px; line-height: 1.8; color: var(--h-soft); }
.ijh-final { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: clamp(24px, 3vw, 36px) clamp(24px, 3vw, 40px); border-radius: 26px; background: radial-gradient(500px 240px at 10% 50%, rgba(226,182,96,.18), transparent 70%), var(--h-card2); border: 1px solid rgba(226,182,96,.3); }
.ijh-final h3 { font-size: clamp(22px, 2.4vw, 30px) !important; margin: 0 0 6px !important; }
.ijh-final p { color: var(--h-soft); font-size: 16px; line-height: 1.8; }
.ijh-final-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.ijh-final-actions .ijh-ic { width: 18px; height: 18px; }

/* ---------- About ---------- */
.ijh-about-main { max-width: 900px; }
.ijh-about h2 { font-size: clamp(26px, 3vw, 40px) !important; margin: 0 0 18px !important; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.ijh-hero, .ijh-bundle, .ijh-author { grid-template-columns: 1fr; }
	.ijh-hero-visual { max-width: 720px; margin: 0 auto; width: 100%; }
	.ijh-new-grid { grid-template-columns: 1fr 1fr; }
	.ijh-new-card.is-featured { grid-column: 1 / -1; flex-direction: row; }
	.ijh-new-card.is-featured .ijh-new-cover { flex: 0 0 42%; }
	.ijh-author-photo { order: -1; max-width: 360px; margin: 0 auto; }
}
@media (max-width: 767px) {
	.ijh-hero { text-align: center; }
	.ijh-hero .ijh-eyebrow { justify-content: center; }
	.ijh-lead { margin-left: auto; margin-right: auto; }
	.ijh-actions, .ijh-trust { justify-content: center; }
	.ijh-actions .ijh-btn { width: 100%; }
	.ijh-hero-badge { top: -26px; left: 50%; transform: translateX(-50%); padding: 8px 14px; }
	.ijh-hero-badge strong { font-size: 26px; }
	.ijh-new-grid { grid-template-columns: 1fr; }
	.ijh-new-card.is-featured { flex-direction: column; }
	.ijh-new-cover img, .ijh-new-card.is-featured .ijh-new-cover img { height: 210px; }
	.ijh-paths-grid { grid-template-columns: 1fr; }
	.ijh-path { padding: 14px; gap: 14px; }
	.ijh-path-cover { flex-basis: 78px; }
	.ijh-path-cover img { width: 78px; }
	.ijh-bundle-covers { height: 230px; }
	.ijh-bundle-covers img { width: 100px; transform: translate(calc(50% + (var(--i) - 3) * -36px), -50%) rotate(calc((var(--i) - 3) * 6deg)); }
	.ijh-bundle .ijh-btn { width: 100%; }
	.ijh-stats { grid-template-columns: 1fr; }
	.ijh-free-grid, .ijh-steps { grid-template-columns: 1fr; }
	.ijh-final { flex-direction: column; align-items: stretch; text-align: center; }
	.ijh-final-actions .ijh-btn { width: 100%; }
	.ijh-author .ijh-btn { width: 100%; }
	.ijh-head-center p { font-size: 16px; }
}

/* refinements */
.ijh-hero h1 { font-size: clamp(32px, 3.7vw, 54px) !important; }
.ijh-hero h1 span, .ijh-hero h1 em { display: block; }
@media (min-width: 1025px) { .ijh-hero h1 span, .ijh-hero h1 em { white-space: nowrap; } }
.ijh-paths-grid { display: flex; flex-wrap: wrap; justify-content: center; }
.ijh-path { flex: 0 1 calc((100% - 36px) / 3); }
@media (max-width: 1024px) { .ijh-path { flex-basis: calc((100% - 18px) / 2); } }
@media (max-width: 767px) { .ijh-path { flex-basis: 100%; } }

/* ---- Hero shelf of 3D books (v2) ---- */
.ijh-shelf { --ov: clamp(30px, 4.2vw, 58px); position: relative; display: flex; justify-content: center; align-items: flex-end; height: clamp(250px, 29vw, 380px); padding: 0 var(--ov) 26px; }
.ijh-shelf::after { content: ""; position: absolute; left: 6%; right: 6%; bottom: 14px; height: 22px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.6), transparent); z-index: 0; }
.ijh-shelf-book { position: relative; z-index: 1; flex: 0 0 auto; height: 76%; margin-inline: calc(var(--ov) * -1); transition: transform .45s cubic-bezier(.22,1,.36,1), filter .3s; filter: brightness(.82); }
.ijh-shelf-book:nth-child(2), .ijh-shelf-book:nth-child(4) { height: 88%; z-index: 2; filter: brightness(.92); }
.ijh-shelf-book:nth-child(3) { height: 100%; z-index: 3; filter: none; }
.ijh-shelf-book:hover { transform: translateY(-10px); filter: none; z-index: 4; }
.ijh-hero-visual .ijh-shelf-book img { height: 100%; width: auto; max-width: none; border-radius: 0; filter: drop-shadow(-10px 22px 22px rgba(0,0,0,.55)); }
.ijh-verse { position: relative; margin: 18px auto 0 !important; padding: 0 !important; border: 0 !important; background: none !important; text-align: center; max-width: 440px; }
.ijh-verse p { margin: 0 0 4px !important; font-size: clamp(17px, 1.6vw, 20px) !important; line-height: 1.8 !important; color: var(--h-text) !important; font-weight: 500; font-style: normal; }
.ijh-verse cite { color: var(--h-gold, #e2b660); font-size: 13.5px; font-style: normal; letter-spacing: .02em; }
@media (max-width: 600px) {
	.ijh-shelf { --ov: 26px; height: 230px; }
	.ijh-shelf-book:nth-child(1), .ijh-shelf-book:nth-child(5) { display: none; }
}
.ijh-shelf { --ov: clamp(26px, 3.4vw, 46px); }
.ijh-shelf-book, .ijh-shelf-book:nth-child(3) { height: 84%; z-index: 1; filter: brightness(.86); }
.ijh-shelf-book:nth-child(2) { height: 100%; z-index: 3; filter: none; }
.ijh-shelf-book:hover { filter: none; }
.ijh-verse::before, .ijh-verse::after { display: none !important; content: none !important; }
.ijh-verse cite { text-decoration: none !important; border: 0 !important; }
@media (max-width: 600px) {
	.ijh-shelf { --ov: 22px; height: 240px; }
	.ijh-shelf-book:nth-child(1) { display: block; }
}
@media (min-width: 1025px) { .ijh-paths-grid > .ijh-path:last-child:nth-child(3n+1) { grid-column: 2; } }

/* ---- v2.2 polish ---- */
/* Equal cover areas so titles line up across "new releases" cards */
@media (min-width: 1025px) {
	.ijh-new-cover { height: 300px; box-sizing: border-box; }
	.ijh-new-cover img, .ijh-new-card.is-featured .ijh-new-cover img { height: 240px; max-height: 100%; }
}
.ijh-new-cover img { border-radius: 0; box-shadow: none; filter: drop-shadow(-12px 20px 22px rgba(0,0,0,.55)); }
/* Full-collection fan: shape-aware shadows, no rectangle shadow artifacts */
.ijh-bundle-covers img { box-shadow: none !important; border-radius: 0 !important; filter: drop-shadow(-10px 16px 18px rgba(0,0,0,.55)); backface-visibility: hidden; -webkit-backface-visibility: hidden; }

/* Unavailable print edition (paths cards) */
.ijh-unavail { display: inline-flex; align-self: flex-start; margin-top: 8px; padding: 4px 12px; border-radius: 999px; border: 1px dashed rgba(226,182,96,.45); color: var(--h-gold2, #f4d58f); font-size: 12.5px; font-weight: 600; }
