/* ==========================================================================
   Homepage body (area: home) — measured from the archived Publisher 7.6.2
   travel-guides homepage at 1354px viewport. See spec/home.md.
   Content column: 1206px (1240 container − 2×17 padding), RTL, no sidebar.
   ========================================================================== */

.ash-home {
	direction: rtl;
	width: 1206px;
	max-width: calc(100% - 34px);
	margin: 28.33px auto 0;            /* gap below the nav (main starts 28px under header) */
	font-size: 14px;
	line-height: 23.8px;
	color: #7b7b7b;
}
.ash-home *, .ash-home *::before, .ash-home *::after { box-sizing: border-box; }
.ash-home a { text-decoration: none; transition: .07s; }
.ash-home a:hover, .ash-home a:focus { text-decoration: none; }

.ash-block { margin: 0 0 34px; }

/* ---------- shared image holder ---------- */
.ash-img { display: block; position: relative; overflow: hidden; background: transparent; color: #444; cursor: pointer; }
.ash-img > img,
.ash-img > .yt,
.ash-img > .ph {
	position: absolute; top: 0; right: 0; bottom: 0; left: 0;
	width: 100%; height: 100%; margin: 0; max-width: none;
	display: block; object-fit: cover; object-position: 50% 0;
}
.ash-img > .yt img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; display: block; }
.ash-img > .yt b {
	position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
	width: 54px; height: 38px; border-radius: 9px; background: rgba(0, 0, 0, .7);
	color: #fff; font-size: 18px; line-height: 38px; text-align: center; font-weight: 400;
}
/* No-image placeholder: the old site showed its lazy-load placeholder colour (#e9ebee). */
.ash-img > .ph { background: #e9ebee; font-size: 0; line-height: 0; color: transparent; }

/* ---------- section heading (Publisher sh-t1 sh-s1) ---------- */
.ash-heading {
	position: relative;
	display: block;
	margin: 0 0 35px;
	padding: 0;
	font-size: 16px;
	line-height: 20px;
	font-weight: 400;
	color: #2d2d2d;
	text-align: right;
}
.ash-heading::after {
	content: "";
	display: block;
	position: absolute;
	top: 50%;
	right: 0;
	left: auto;
	width: 100%;
	height: 2px;
	margin-top: -.5px;
	background-color: #1587cc;
	opacity: .08;
	transition: .35s cubic-bezier(.39, .58, .57, 1);
}
.ash-heading-link, .ash-heading-link:hover, .ash-heading-link:focus { color: #444; }
.ash-h-text {
	display: inline-block;
	position: relative;
	z-index: 1;
	padding: 4px 0 4px 17px;
	background-color: #f7f7f7;
	color: #000;
	font-size: 28px;
	line-height: 28px;
	font-weight: 400;
	text-transform: capitalize;
	transition: .35s cubic-bezier(.39, .58, .57, 1);
}
.ash-heading-link:hover .ash-h-text { color: #000; }

/* ---------- 1. modern grid (listing-modern-grid-4, overlay-simple-gr) ---------- */
.ash-mg {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	column-gap: 24px;                   /* 4 × 283.5 + 3 × 24 = 1206 */
	padding: 10px 0 25px;               /* item margin 10 + article margin-bottom 15 */
	align-items: start;
}
.ash-mg-item { position: relative; overflow: hidden; margin: 0; padding: 0; }
.ash-mg-content {
	position: relative;
	overflow: hidden;
	box-shadow: 0 4px 5px 0 rgba(0, 0, 0, .09);
}
.ash-mg-content::before { content: " "; display: block; width: 100%; padding-top: 56.25%; }
.ash-mg-img {
	position: absolute;
	top: -2px; right: -2px; bottom: -2px; left: -2px;
	transition: .5s;
}
.ash-mg-img > img { object-position: 50% 50%; }
.ash-mg-item:hover .ash-mg-img { transform: scale(1.1); }
.ash-mg-text {
	position: relative;
	padding: 20px;
	background-color: #fff;
	box-shadow: 0 4px 5px 0 rgba(0, 0, 0, .09);
	overflow: hidden;
	font-size: 18px;
	line-height: 30.6px;
	text-transform: capitalize;
}
.ash-mg-title {
	margin: 0;
	padding: 0;
	font-size: 18px;
	line-height: 25.2px;
	font-weight: 400;
	color: #2d2d2d;
	text-align: center;
	text-transform: capitalize;
}
.ash-mg-title a,
.ash-mg-title a:hover,
.ash-mg-item:hover .ash-mg-title a { color: #1d1d1d !important; }

/* ---------- 2/3/5. classic-2 cards (3 columns) ---------- */
.ash-classic {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	column-gap: 27px;                   /* 3 × 384 + 2 × 27 = 1206 */
	row-gap: 30px;
	padding-bottom: 30px;               /* last row's article margin-bottom */
	align-items: start;
}
.ash-classic-item { margin: 0; padding: 0; }
.ash-classic-inner {
	padding: 20px;
	background-color: #fff;
	box-shadow: 0 4px 5px 0 rgba(0, 0, 0, .09);
}
.ash-classic-featured { position: relative; margin: -20px -20px 20px; }
.ash-classic-img::before { content: " "; display: block; width: 100%; padding-top: 56%; }   /* 384 × 215 */

.ash-title {
	margin: 0 0 6px;
	padding: 0;
	font-size: 20px;
	line-height: 26px;
	font-weight: 700;
	color: #383838;
	text-transform: capitalize;
	text-align: right;
}
.ash-title a { color: #383838; }
.ash-classic-item .ash-title a { font-size: 17.6px; line-height: 22.88px; }
.ash-classic-item:hover .ash-title a,
.ash-blog-item:hover .ash-title a,
.ash-title a:hover { color: #1587cc; }

.ash-summary {
	font-size: 14px;
	line-height: 23px;
	color: #696969;
	text-align: right;
	word-wrap: break-word;
}

/* ---------- 4. blog-5 cards (2 columns, image floated right) ---------- */
.ash-blog {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 36px;                   /* 2 × 585 + 36 = 1206 */
	row-gap: 30px;
	padding-bottom: 30px;
	align-items: start;
}
.ash-blog-item { margin: 0; padding: 0; }
.ash-blog-inner {
	padding: 20px;
	background-color: #fff;
	box-shadow: 0 4px 5px 0 rgba(0, 0, 0, .09);
}
.ash-blog-inner::before, .ash-blog-inner::after { content: " "; display: table; }
.ash-blog-inner::after { clear: both; }
.ash-blog-featured {
	position: relative;
	float: right;
	width: 300px;
	margin: -20px -20px -20px 20px;
}
.ash-blog-img::before { content: " "; display: block; width: 100%; padding-top: 64%; }  /* 300 × 192 */
.ash-blog-item .ash-title { line-height: 30px; }
.ash-blog-item .ash-title a { font-size: 20px; line-height: 30px; }

/* ---------- load-more button (bs-pagination more_btn) ---------- */
.ash-pagination { text-align: center; font-size: 14px; line-height: 23.8px; }
.ash-more-btn {
	display: inline-block;
	max-width: 100%;
	padding: 6px 42px;
	background-color: #1587cc;
	border: .70922px solid rgba(138, 138, 138, .33);
	color: #fff;
	font-size: 14px;
	line-height: 26px;
	font-weight: 400;
	text-align: center;
	cursor: pointer;
	transition: .4s;
}
.ash-home .ash-more-btn:hover,
.ash-home .ash-more-btn:focus { color: #fff; background-color: #1587cc; border-color: #1587cc; filter: saturate(1.3); }
.ash-more-btn .fa { font-size: 14px; line-height: 14px; font-weight: 700; }
.ash-more-btn .ash-icon .fa { margin: 0 2px 0 0; }
.ash-more-btn .fa-fw { width: 18px; margin: 0 auto 0 2px; }
.ash-more-btn .ash-loading,
.ash-more-btn .ash-no-more { display: none; }
.ash-more-btn.is-loading .ash-loaded { display: none; }
.ash-more-btn.is-loading .ash-loading { display: inline; }
.ash-more-btn.is-done { cursor: default; }
.ash-more-btn.is-done .ash-loaded,
.ash-more-btn.is-done .ash-loading { display: none; }
.ash-more-btn.is-done .ash-no-more { display: inline; }

/* ---------- responsive (measured on the archive at 390-1000px viewports) ----------
   mg: 4 cols > 900, 3 cols <= 900, 2 cols <= 620, 1 col <= 500 (cards 10px inset -> 35px between rows)
   classic: 3 cols > 600, 2 cols <= 600, 1 col <= 500
   blog-5: 2 cols > 500; image stacks on top (full card width) <= 829
   gap under header 20px <= 667; side gutter 15px <= 479 */
@media (max-width: 900px) {
	.ash-mg { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 26px; row-gap: 35px; }
}
@media (max-width: 829px) {
	/* old featured box was inline-block: the line box adds ~7px under the image -> 27px to the title */
	.ash-blog-featured { float: none; width: auto; margin: -20px -20px 27px; }
}
@media (max-width: 667px) {
	.ash-home { margin-top: 20px; }
}
@media (max-width: 620px) {
	.ash-mg { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 27px; }
}
@media (max-width: 600px) {
	.ash-classic { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 25px; }
}
@media (max-width: 500px) {
	.ash-mg, .ash-classic, .ash-blog { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 479px) {
	.ash-home { max-width: calc(100% - 30px); }
}

/* review fixes */
.ash-home a.ash-mg-img { transition: .5s; }
.ash-home a.ash-more-btn { transition: .4s; }
.ash-home a.ash-classic-img, .ash-home a.ash-blog-img { transition: none; }
.ash-classic-img::before, .ash-blog-img::before { background-color: #e9ebee; }
/* phones: shorter landscape images in the first block (title cards look better than tall portraits) */
@media (max-width: 620px) {
	.ash-mg-content::before { padding-top: 56.25%; }
}

/* top grid: image area matches 16:9 photos so titles are never cropped */
.ash-mg-img { bottom: auto; height: auto; aspect-ratio: 16 / 9; }
.ash-mg-img > img { width: 100%; height: 100%; object-fit: cover; display: block; }


/* ===== taste pass r11 ===== */
/* taste #1: news cards — image | text as a grid, no squeezed column at 830–1180px */
@media (min-width: 830px) {
	.ash-blog-inner { display: grid; grid-template-columns: minmax(0, 46%) minmax(0, 1fr); column-gap: 22px; align-items: center; padding: 0 0 0 22px; }
	.ash-blog-inner::before, .ash-blog-inner::after { display: none; }
	.ash-blog-featured { float: none; width: auto; margin: 0; align-self: stretch; }
	.ash-blog-img { height: 100%; }
	.ash-blog-img::before { padding-top: 62%; }
	.ash-blog-item .ash-title { margin: 0; padding: 16px 0; }
	.ash-blog-item .ash-title a { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
}
/* taste #2: equal card heights per row */
@media (min-width: 621px) {
	.ash-classic, .ash-blog { align-items: stretch; }
	.ash-classic-item, .ash-blog-item { display: flex; flex-direction: column; }
	.ash-classic-inner, .ash-blog-inner { flex: 1 1 auto; }
	/* top grid: fixed 2-line text area (stretching would enlarge the image box, see note A) */
	.ash-mg-text { min-height: calc(2 * 16px * 1.65 + 32px); display: flex; align-items: center; justify-content: center; }
}
/* taste #4: section headings — bold navy label, blue accent bar, fading blue rule */
@media (min-width: 621px) {
	.ash-heading { display: flex; align-items: center; gap: 18px; margin: 0 0 26px; }
	.ash-heading::after { position: static; flex: 1 1 auto; width: auto; height: 1px; margin: 0; opacity: 1;
		background: linear-gradient(to left, rgba(21, 135, 204, .35), rgba(21, 135, 204, 0)); }
	.ash-heading-link { flex: none; }
	.ash-h-text { background: none; padding: 0 16px 0 0; font-size: 24px; line-height: 1.5; font-weight: 700; color: #14304d; }
	.ash-h-text::before { content: ""; position: absolute; right: 0; top: 50%; width: 5px; height: 1.15em; margin-top: -.6em; border-radius: 3px; background: #1587cc; }
	.ash-heading-link:hover .ash-h-text { color: #1587cc; }
}
/* taste #5: card surface + hover */
@media (min-width: 621px) {
	.ash-mg-item { overflow: visible; }
	.ash-classic-inner, .ash-blog-inner, .ash-mg-content {
		border-radius: 12px; overflow: hidden;
		box-shadow: 0 1px 2px rgba(16, 42, 67, .06), 0 6px 18px rgba(16, 42, 67, .07);
		transition: box-shadow .25s ease, transform .25s ease;
	}
	.ash-mg-text { box-shadow: none; }
	.ash-classic-item:hover .ash-classic-inner,
	.ash-blog-item:hover .ash-blog-inner,
	.ash-mg-item:hover .ash-mg-content { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(16, 42, 67, .06), 0 14px 30px rgba(16, 42, 67, .12); }
	.ash-mg-item:hover .ash-mg-img { transform: scale(1.04); }
	.ash-classic-img > *, .ash-blog-img > * { transition: transform .5s ease; }
	.ash-classic-item:hover .ash-classic-img > *, .ash-blog-item:hover .ash-blog-img > * { transform: scale(1.04); }
	.ash-mg-item:hover .ash-mg-title a { color: #1587cc !important; }
}
@media (prefers-reduced-motion: reduce) {
	.ash-home * { transition: none !important; }
	.ash-home .ash-mg-item:hover .ash-mg-img, .ash-home [class*="-item"]:hover .ash-img > *, .ash-home [class*="-item"]:hover [class$="-inner"], .ash-home .ash-mg-item:hover .ash-mg-content { transform: none !important; }
}
/* taste #6: Kufi needs air — line-height ~1.65–1.7, consistent navy titles, clamps */
@media (min-width: 621px) {
	.ash-mg-text { padding: 16px 18px; }
	.ash-mg-title { font-size: 16px; line-height: 1.65; font-weight: 700; }
	.ash-mg-title a { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
	.ash-title, .ash-title a { color: #1d2b36; }
	.ash-classic-item .ash-title { margin: 0 0 8px; }
	.ash-classic-item .ash-title a { font-size: 17px; line-height: 1.7; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
	.ash-blog-item .ash-title, .ash-blog-item .ash-title a { font-size: 18px; line-height: 1.7; }
	.ash-classic-item:hover .ash-title a, .ash-blog-item:hover .ash-title a { color: #1587cc; }
	.ash-summary { font-size: 13.5px; line-height: 1.85; color: #6b7280; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
}
/* taste #8: calm vertical rhythm — 56px between sections, 24px gutters (20px on tablet) */
@media (min-width: 621px) {
	.ash-home { margin-top: 36px; padding-bottom: 24px; }
	.ash-block { margin: 0 0 56px; }
	.ash-mg { padding: 0; column-gap: 24px; row-gap: 24px; }
	.ash-classic, .ash-blog { padding-bottom: 0; column-gap: 24px; row-gap: 28px; }
	.ash-pagination { margin-top: 30px; }
}
@media (min-width: 621px) and (max-width: 1023px) {
	.ash-block { margin-bottom: 44px; }
	.ash-classic, .ash-blog { column-gap: 20px; row-gap: 22px; }
}
/* taste #7: no orphan 4th sermon on tablets */
@media (min-width: 621px) and (max-width: 900px) {
	.ash-mg { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; row-gap: 22px; }
}
/* taste #9: outlined pill, fills blue on hover */
.ash-home .ash-more-btn {
	padding: 10px 36px; border: 1.5px solid #1587cc; border-radius: 999px;
	background: #fff; color: #1587cc; font-size: 14px; line-height: 22px;
	box-shadow: 0 2px 10px rgba(21, 135, 204, .12);
	transition: background-color .25s ease, color .25s ease, box-shadow .25s ease;
}
.ash-home .ash-more-btn:hover,
.ash-home .ash-more-btn:focus { background: #1587cc; color: #fff; border-color: #1587cc; filter: none; box-shadow: 0 6px 18px rgba(21, 135, 204, .28); }
.ash-home .ash-more-btn:focus-visible { outline: 2px solid #1587cc; outline-offset: 3px; }
.ash-home .ash-more-btn.is-done { background: transparent; color: #8a94a0; border-color: #d5dbe1; box-shadow: none; }
/* ===== taste: mobile polish (home) ===== */
@media (max-width:620px){
	/* 5. section headings: smaller, blue accent bar at the start (right) */
	.ash-heading{margin:0 0 20px}
	.ash-heading::after{opacity:.18;height:1px}
	.ash-h-text{font-size:22px;line-height:30px;padding:2px 12px 2px 14px;border-right:4px solid #1587cc}
	.ash-block{margin-bottom:28px}

	/* shared card look: soft radius + lighter shadow */
	.ash-mg-content,.ash-classic-inner,.ash-blog-inner{border-radius:10px;overflow:hidden;box-shadow:0 2px 10px rgba(16,40,64,.08)}

	/* 1. hero sermons: image is a real 16:9 box ABOVE the title, never cropped */
	.ash-mg{padding:4px 0 10px;row-gap:20px}
	.ash-mg-content::before{display:none}
	.ash-mg-img{position:relative;top:auto;right:auto;bottom:auto;left:auto;aspect-ratio:16/9;transform:none !important}
	.ash-mg-text{padding:14px 16px 16px;box-shadow:none}
	.ash-mg-title{font-size:17px;line-height:1.65}

	/* 10. classic cards (sermons + fatawa): exact 16:9, comfortable Arabic line-height */
	.ash-classic{row-gap:20px;padding-bottom:20px}
	.ash-classic-inner{padding:16px}
	.ash-classic-featured{margin:-16px -16px 14px}
	.ash-classic-img::before{padding-top:56.25%}
	.ash-classic-item .ash-title{margin:0}
	.ash-classic-item .ash-title a{font-size:18px;line-height:1.6}
	.ash-summary{margin-top:8px;font-size:15px;line-height:1.8}

	/* 2. news: compact list (thumb right, title left) instead of 10 giant cards */
	.ash-blog{row-gap:12px;padding-bottom:20px}
	.ash-blog-inner{display:flex;align-items:center;gap:12px;padding:10px}
	.ash-blog-inner::before,.ash-blog-inner::after{display:none}
	.ash-blog-featured{float:none;flex:0 0 124px;width:124px;margin:0;border-radius:6px;overflow:hidden}
	.ash-blog-img::before{padding-top:56.25%}
	.ash-blog-item .ash-title{margin:0;flex:1;min-width:0;line-height:1.6}
	.ash-blog-item .ash-title a{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;font-size:15px;line-height:1.6;font-weight:700}

	/* 10. load-more: full-width 46px button */
	.ash-more-btn{display:block;width:100%;padding:10px 16px;border:0;border-radius:8px;font-size:15px;line-height:26px}
}
