/**
 * Ask The Mufti - Main Stylesheet (v2.0 Universal Islamic News & Fatwa Portal)
 * 
 * Theme: Islamic Emerald & Warm Royal Gold
 * Typography: Plus Jakarta Sans (Latin) & Amiri (Arabic)
 */

/* ─── 1. CSS VARIABLES & THEME TOKENS ─────────────────────────────────────── */
:root {
	/* Primary Color Palette */
	--atm-primary: #064e3b;
	--atm-primary-dark: #022c22;
	--atm-primary-light: #0d7a5e;
	--atm-accent: #c5a059;
	--atm-accent-hover: #b38d41;
	--atm-accent-light: #fdf8ed;

	/* Backgrounds & Surfaces */
	--atm-bg-body: #f4fbf7;
	--atm-bg-surface: #ffffff;
	--atm-bg-subtle: #eaf7f0;
	--atm-topbar-bg: #022c22;
	--atm-footer-bg: #022c22;

	/* Typography & Text */
	--atm-text-main: #0f172a;
	--atm-text-muted: #64748b;
	--atm-text-light: #94a3b8;
	--atm-font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--atm-font-arabic: 'Amiri', 'Traditional Arabic', serif;

	/* Borders & Shadows */
	--atm-border: #dcf2e5;
	--atm-border-subtle: #f0fdf4;
	--atm-radius: 10px;
	--atm-radius-lg: 16px;
	--atm-radius-sm: 6px;
	--atm-shadow-sm: 0 1px 3px rgba(6, 78, 59, 0.05);
	--atm-shadow-md: 0 4px 16px rgba(6, 78, 59, 0.08);
	--atm-shadow-lg: 0 10px 30px rgba(6, 78, 59, 0.12);
	--atm-transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
	--atm-ticker-speed: 50s;
}

/* Dark Mode Tokens */
[data-theme="dark"] {
	--atm-bg-body: #0a1714;
	--atm-bg-surface: #11221e;
	--atm-bg-subtle: #172d28;
	--atm-text-main: #f1f5f9;
	--atm-text-muted: #94a3b8;
	--atm-text-light: #64748b;
	--atm-border: #1d3832;
	--atm-border-subtle: #172d28;
	--atm-shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.3);
	--atm-shadow-md: 0 6px 20px rgba(0, 0, 0, 0.4);
	--atm-shadow-lg: 0 12px 36px rgba(0, 0, 0, 0.5);
	--atm-topbar-bg: #050d0b;
	--atm-footer-bg: #050d0b;
}

/* ─── 2. BASE & RESET ──────────────────────────────────────────────────────── */
*, *::before, *::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

body {
	font-family: var(--atm-font-sans);
	background-color: var(--atm-bg-body);
	color: var(--atm-text-main);
	line-height: 1.65;
	font-size: 15px;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	transition: background-color 0.3s ease, color 0.3s ease;
}

a {
	color: inherit;
	text-decoration: none;
	transition: var(--atm-transition);
}

a:hover {
	color: var(--atm-accent);
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

.atm-container {
	width: 100%;
	max-width: 1240px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 20px;
	padding-right: 20px;
}

/* ─── 3. TOPBAR & ISLAMIC HEADER ───────────────────────────────────────────── */
.atm-bismillah-bar {
	background-color: var(--atm-topbar-bg);
	border-bottom: 1px solid rgba(197, 160, 89, 0.25);
	padding: 6px 0;
	text-align: center;
}
.atm-bismillah-bar .atm-bismillah-text {
	font-family: var(--atm-font-arabic);
	color: var(--atm-accent);
	font-size: 1.35rem;
	line-height: 1.4;
	direction: rtl;
}

.atm-topbar {
	background-color: var(--atm-topbar-bg);
	color: #e2e8f0;
	font-size: 12.5px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	padding: 8px 0;
}
.atm-topbar-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 15px;
	flex-wrap: wrap;
}
.atm-topbar-left, .atm-topbar-right {
	display: flex;
	align-items: center;
	gap: 16px;
}

.atm-topbar-hijri {
	display: flex;
	align-items: center;
	gap: 6px;
	color: var(--atm-accent);
	font-weight: 600;
}

/* Prayer Times Strip in Topbar */
.atm-topbar-prayer {
	display: flex;
	align-items: center;
	gap: 12px;
	background: rgba(255, 255, 255, 0.06);
	padding: 3px 12px;
	border-radius: 20px;
	border: 1px solid rgba(255, 255, 255, 0.1);
}
.atm-prayer-city-select-wrap {
	display: flex;
	align-items: center;
	gap: 4px;
}
.atm-prayer-city-select-wrap select {
	background: transparent;
	border: none;
	color: var(--atm-accent);
	font-size: 11.5px;
	font-weight: 700;
	outline: none;
	cursor: pointer;
	text-transform: uppercase;
}
.atm-prayer-city-select-wrap select option {
	background-color: #064e3b;
	color: #ffffff;
}
.atm-prayer-ticker-times {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 12px;
}
.atm-prayer-ticker-times span strong {
	color: #ffffff;
	font-weight: 600;
}

.atm-theme-toggle {
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.15);
	color: #ffffff;
	cursor: pointer;
	border-radius: 20px;
	padding: 4px 10px;
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 11.5px;
	font-weight: 600;
	transition: var(--atm-transition);
}
.atm-theme-toggle:hover {
	background: var(--atm-accent);
	color: var(--atm-primary-dark);
	border-color: var(--atm-accent);
}

/* Main Brand Header */
.atm-main-header {
	background-color: var(--atm-bg-surface);
	padding: 22px 0;
	border-bottom: 1px solid var(--atm-border);
	transition: background-color 0.3s ease;
}
.atm-main-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}
.atm-site-branding {
	display: flex;
	align-items: center;
	gap: 14px;
}
.atm-brand-icon {
	width: 48px;
	height: 48px;
	background: linear-gradient(135deg, var(--atm-primary) 0%, var(--atm-primary-light) 100%);
	border: 2px solid var(--atm-accent);
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--atm-accent);
	box-shadow: 0 4px 12px rgba(6, 78, 59, 0.2);
}
.atm-brand-title {
	font-size: 26px;
	font-weight: 800;
	letter-spacing: -0.5px;
	color: var(--atm-primary);
	line-height: 1.15;
}
[data-theme="dark"] .atm-brand-title {
	color: #ffffff;
}
.atm-brand-title span {
	color: var(--atm-accent);
}
.atm-brand-tagline {
	font-size: 12px;
	color: var(--atm-text-muted);
	font-weight: 500;
	margin-top: 2px;
}
.atm-arabic-motto {
	font-family: var(--atm-font-arabic);
	font-size: 15px;
	color: var(--atm-accent);
	direction: rtl;
	margin-right: 4px;
}

/* Header Buttons */
.atm-header-actions {
	display: flex;
	align-items: center;
	gap: 14px;
}
.atm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 20px;
	border-radius: var(--atm-radius);
	font-weight: 700;
	font-size: 14px;
	cursor: pointer;
	border: none;
	transition: var(--atm-transition);
	text-decoration: none;
}
.atm-btn-gold {
	background: linear-gradient(135deg, var(--atm-accent) 0%, #d8b76c 100%);
	color: #063823;
	box-shadow: 0 3px 12px rgba(197, 160, 89, 0.35);
}
.atm-btn-gold:hover {
	background: linear-gradient(135deg, #d8b76c 0%, var(--atm-accent) 100%);
	color: #022c22;
	transform: translateY(-2px);
}
.atm-btn-primary {
	background-color: var(--atm-primary);
	color: #ffffff;
}
.atm-btn-primary:hover {
	background-color: var(--atm-primary-light);
	color: #ffffff;
	transform: translateY(-2px);
}
.atm-search-btn-trigger {
	background: var(--atm-bg-subtle);
	border: 1px solid var(--atm-border);
	color: var(--atm-text-muted);
	padding: 9px 15px;
	border-radius: 25px;
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	cursor: pointer;
	transition: var(--atm-transition);
}
.atm-search-btn-trigger:hover {
	border-color: var(--atm-accent);
	color: var(--atm-primary);
}

/* ─── 4. PRIMARY NAVIGATION ───────────────────────────────────────────────── */
.atm-navbar-wrapper {
	background-color: var(--atm-primary);
	position: sticky;
	top: 0;
	z-index: 100;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	border-top: 2px solid var(--atm-accent);
}
.atm-navbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.atm-nav-menu {
	display: flex;
	align-items: center;
	list-style: none;
	gap: 2px;
	flex-wrap: wrap;
}
.atm-nav-menu > li > a {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 13px 15px;
	font-weight: 700;
	font-size: 13px;
	color: #f1f5f9;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	border-radius: 4px;
	transition: var(--atm-transition);
}
.atm-nav-menu > li > a:hover,
.atm-nav-menu > li.current-menu-item > a {
	background-color: rgba(255, 255, 255, 0.12);
	color: var(--atm-accent);
}
.atm-mobile-nav-toggle {
	display: none;
	background: transparent;
	border: none;
	color: #ffffff;
	font-size: 24px;
	cursor: pointer;
	padding: 10px;
}

/* ─── 5. BREAKING NEWS TICKER ─────────────────────────────────────────────── */
.atm-ticker-wrapper {
	background: #0f172a;
	color: #ffffff;
	border-bottom: 1px solid var(--atm-border);
	overflow: hidden;
}
[data-theme="dark"] .atm-ticker-wrapper {
	background: #040908;
}
.atm-ticker-inner {
	display: flex;
	align-items: center;
}
.atm-ticker-label {
	background: var(--atm-accent);
	color: #063823;
	font-weight: 800;
	font-size: 11.5px;
	padding: 8px 14px;
	display: flex;
	align-items: center;
	gap: 6px;
	flex-shrink: 0;
	z-index: 2;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}
.atm-ticker-content {
	overflow: hidden;
	white-space: nowrap;
	flex: 1;
	padding-left: 14px;
}
.atm-ticker-track {
	display: inline-block;
	white-space: nowrap;
	animation: atmMarquee var(--atm-ticker-speed) linear infinite;
}
.atm-ticker-track:hover {
	animation-play-state: paused;
}
.atm-ticker-item {
	display: inline-block;
	margin-right: 28px;
	font-size: 13px;
}
.atm-ticker-item a {
	color: #e2e8f0;
	font-weight: 500;
}
.atm-ticker-item a:hover {
	color: var(--atm-accent);
}
.atm-ticker-dot {
	color: var(--atm-accent);
	margin-right: 6px;
}

@keyframes atmMarquee {
	0% { transform: translateX(0); }
	100% { transform: translateX(-50%); }
}

/* ─── 6. SECTION HEADINGS & BADGES ────────────────────────────────────────── */
.atm-section-heading {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	margin-bottom: 22px;
	padding-bottom: 12px;
	border-bottom: 2px solid var(--atm-border);
	position: relative;
}
.atm-section-heading::after {
	content: '';
	position: absolute;
	bottom: -2px;
	left: 0;
	width: 60px;
	height: 2px;
	background-color: var(--atm-accent);
}
.atm-heading-title-group h2 {
	font-size: 20px;
	font-weight: 800;
	color: var(--atm-primary);
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
}
[data-theme="dark"] .atm-heading-title-group h2 {
	color: #ffffff;
}
.atm-heading-title-group .atm-arabic-sub {
	font-family: var(--atm-font-arabic);
	font-size: 16px;
	color: var(--atm-accent);
	font-weight: normal;
	direction: rtl;
	margin-top: 2px;
}
.atm-view-all-link {
	font-size: 13px;
	font-weight: 700;
	color: var(--atm-primary);
	display: flex;
	align-items: center;
	gap: 4px;
}
.atm-view-all-link:hover {
	color: var(--atm-accent);
	gap: 8px;
}

.atm-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px 9px;
	border-radius: 4px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}
.atm-badge-verified {
	background-color: #064e3b;
	color: #d1fae5;
	border: 1px solid #10b981;
}
.atm-badge-cat {
	background-color: var(--atm-bg-subtle);
	color: var(--atm-primary);
	border: 1px solid var(--atm-border);
}
.atm-badge-cat:hover {
	background-color: var(--atm-primary);
	color: #ffffff;
}
.atm-ruling-pill {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 20px;
	font-weight: 800;
	font-size: 12px;
	text-transform: uppercase;
}
.atm-ruling-mubah { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.atm-ruling-wajib { background: #fef3c7; color: #92400e; border: 1px solid #fcd34d; }
.atm-ruling-sunnah { background: #e0e7ff; color: #3730a3; border: 1px solid #a5b4fc; }

/* ─── 7. HERO BERITA UTAMA ────────────────────────────────────────────────── */
.atm-hero-section {
	margin-top: 24px;
	margin-bottom: 36px;
}
.atm-hero-grid {
	display: grid;
	grid-template-columns: 1.6fr 1fr;
	gap: 20px;
}
.atm-hero-main {
	position: relative;
	border-radius: var(--atm-radius-lg);
	overflow: hidden;
	background-color: var(--atm-primary-dark);
	min-height: 420px;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	box-shadow: var(--atm-shadow-md);
}
.atm-hero-main-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.55;
	transition: transform 0.5s ease;
}
.atm-hero-main:hover .atm-hero-main-img {
	transform: scale(1.04);
}
.atm-hero-overlay {
	position: relative;
	z-index: 2;
	padding: 32px;
	background: linear-gradient(0deg, rgba(2, 44, 34, 0.95) 0%, rgba(2, 44, 34, 0.6) 60%, transparent 100%);
	color: #ffffff;
}
.atm-hero-meta {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 12px;
}
.atm-hero-title {
	font-size: 24px;
	font-weight: 800;
	line-height: 1.35;
	color: #ffffff;
	margin-bottom: 12px;
}
.atm-hero-title a:hover {
	color: var(--atm-accent);
}
.atm-hero-excerpt {
	font-size: 14.5px;
	color: #cbd5e1;
	margin-bottom: 16px;
	line-height: 1.55;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.atm-hero-author-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 12.5px;
	color: #94a3b8;
	border-top: 1px solid rgba(255, 255, 255, 0.15);
	padding-top: 12px;
}
.atm-hero-author-footer .atm-mufti-tag {
	color: var(--atm-accent);
	font-weight: 700;
}
.atm-hero-side {
	display: flex;
	flex-direction: column;
	gap: 20px;
}
.atm-hero-side-card {
	flex: 1;
	background: var(--atm-bg-surface);
	border: 1px solid var(--atm-border);
	border-radius: var(--atm-radius);
	padding: 20px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	box-shadow: var(--atm-shadow-sm);
	transition: var(--atm-transition);
}
.atm-hero-side-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--atm-shadow-md);
	border-color: var(--atm-accent);
}
.atm-hero-side-title {
	font-size: 16px;
	font-weight: 700;
	line-height: 1.4;
	margin-top: 10px;
	margin-bottom: 10px;
}

/* ─── 8. DYNAMIC MAGAZINE CATEGORY SECTIONS (1+4 LAYOUT) ─────────────────── */
.atm-mag-grid {
	display: grid;
	grid-template-columns: 1.3fr 1fr;
	gap: 24px;
}
.atm-mag-lead {
	background: var(--atm-bg-surface);
	border: 1px solid var(--atm-border);
	border-radius: var(--atm-radius);
	padding: 20px;
	box-shadow: var(--atm-shadow-sm);
}
.atm-mag-sublist {
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.atm-mag-subitem {
	display: flex;
	align-items: center;
	gap: 14px;
	background: var(--atm-bg-surface);
	border: 1px solid var(--atm-border);
	border-radius: var(--atm-radius-sm);
	padding: 12px;
	box-shadow: var(--atm-shadow-sm);
	transition: var(--atm-transition);
}
.atm-mag-subitem:hover {
	border-color: var(--atm-accent);
	transform: translateX(4px);
}
.atm-sub-thumb-wrap {
	width: 80px;
	height: 65px;
	border-radius: 4px;
	overflow: hidden;
	flex-shrink: 0;
	background: var(--atm-primary-dark);
}
.atm-sub-thumb {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.atm-sub-content {
	flex: 1;
}
.atm-sub-date {
	font-size: 11px;
	color: var(--atm-text-light);
	margin-bottom: 4px;
}
.atm-sub-title {
	font-size: 13.5px;
	font-weight: 700;
	line-height: 1.4;
}

/* ─── 9. BLOCK 2: TOPIC PILLS STRIP ───────────────────────────────────────── */
.atm-topics-section {
	margin-bottom: 36px;
}
.atm-topics-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 12px;
}
.atm-topic-pill {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 16px;
	background: var(--atm-bg-surface);
	border: 1px solid var(--atm-border);
	border-radius: var(--atm-radius);
	box-shadow: var(--atm-shadow-sm);
	transition: var(--atm-transition);
}
.atm-topic-pill:hover {
	border-color: var(--atm-accent);
	background: var(--atm-bg-subtle);
	transform: translateY(-2px);
}
.atm-topic-pill-name {
	font-weight: 700;
	font-size: 13.5px;
	color: var(--atm-primary);
	display: flex;
	align-items: center;
	gap: 8px;
}
[data-theme="dark"] .atm-topic-pill-name {
	color: #ffffff;
}
.atm-topic-pill-count {
	font-size: 11.5px;
	font-weight: 600;
	background: var(--atm-bg-subtle);
	color: var(--atm-accent);
	padding: 2px 8px;
	border-radius: 12px;
	border: 1px solid var(--atm-border);
}

/* ─── 10. CARDS GRID ──────────────────────────────────────────────────────── */
.atm-cards-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}
.atm-post-card {
	background: var(--atm-bg-surface);
	border: 1px solid var(--atm-border);
	border-radius: var(--atm-radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow: var(--atm-shadow-sm);
	transition: var(--atm-transition);
}
.atm-post-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--atm-shadow-md);
	border-color: var(--atm-accent);
}
.atm-card-img-wrap {
	position: relative;
	height: 190px;
	overflow: hidden;
	background-color: var(--atm-primary-dark);
}
.atm-card-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}
.atm-post-card:hover .atm-card-img {
	transform: scale(1.05);
}
.atm-card-badge-pos {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 2;
}
.atm-card-content {
	padding: 20px;
	display: flex;
	flex-direction: column;
	flex: 1;
}
.atm-card-meta-top {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	color: var(--atm-text-muted);
	margin-bottom: 10px;
}
.atm-card-title {
	font-size: 16.5px;
	font-weight: 700;
	line-height: 1.4;
	margin-bottom: 10px;
}
.atm-card-excerpt {
	font-size: 13.5px;
	color: var(--atm-text-muted);
	line-height: 1.55;
	margin-bottom: 16px;
	flex: 1;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.atm-card-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 12px;
	color: var(--atm-text-light);
	border-top: 1px solid var(--atm-border);
	padding-top: 12px;
}
.atm-card-mufti-name {
	color: var(--atm-primary);
	font-weight: 700;
}
[data-theme="dark"] .atm-card-mufti-name {
	color: var(--atm-accent);
}

/* ─── 11. Q&A LIST SECTION ────────────────────────────────────────────────── */
.atm-qa-section {
	margin-bottom: 40px;
}
.atm-qa-layout {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 28px;
}
.atm-qa-list {
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.atm-qa-item {
	background: var(--atm-bg-surface);
	border: 1px solid var(--atm-border);
	border-radius: var(--atm-radius);
	padding: 18px 22px;
	display: flex;
	align-items: flex-start;
	gap: 16px;
	box-shadow: var(--atm-shadow-sm);
	transition: var(--atm-transition);
}
.atm-qa-item:hover {
	border-color: var(--atm-accent);
	background: var(--atm-bg-subtle);
	transform: translateX(4px);
}
.atm-qa-q-icon {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--atm-bg-subtle);
	color: var(--atm-primary);
	font-weight: 800;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	border: 1px solid var(--atm-border);
}
.atm-qa-body {
	flex: 1;
}
.atm-qa-title {
	font-size: 15.5px;
	font-weight: 700;
	line-height: 1.4;
	margin-bottom: 6px;
}
.atm-qa-meta {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 12px;
	color: var(--atm-text-muted);
}
.atm-qa-meta span strong {
	color: var(--atm-primary);
}
[data-theme="dark"] .atm-qa-meta span strong {
	color: var(--atm-accent);
}

/* ─── 12. AYAT & HADITS WISDOM CARD ───────────────────────────────────────── */
.atm-quote-section {
	margin-bottom: 40px;
}
.atm-quote-card {
	background: linear-gradient(135deg, var(--atm-primary) 0%, var(--atm-primary-dark) 100%);
	border-radius: var(--atm-radius-lg);
	padding: 40px;
	color: #ffffff;
	text-align: center;
	position: relative;
	overflow: hidden;
	box-shadow: var(--atm-shadow-lg);
	border: 2px solid var(--atm-accent);
}
.atm-quote-arabic {
	font-family: var(--atm-font-arabic);
	font-size: 26px;
	line-height: 1.8;
	color: var(--atm-accent);
	direction: rtl;
	margin-bottom: 18px;
}
.atm-quote-translation {
	font-size: 16px;
	font-style: italic;
	color: #f1f5f9;
	max-width: 800px;
	margin: 0 auto 14px;
	line-height: 1.6;
}
.atm-quote-source {
	display: inline-block;
	font-size: 13px;
	font-weight: 700;
	color: var(--atm-accent);
	background: rgba(255, 255, 255, 0.1);
	padding: 4px 16px;
	border-radius: 20px;
	border: 1px solid rgba(197, 160, 89, 0.3);
}

/* ─── 13. CTA BANNER ──────────────────────────────────────────────────────── */
.atm-cta-section {
	margin-bottom: 40px;
}
.atm-cta-banner {
	background: linear-gradient(135deg, #04382c 0%, #064e3b 50%, #0b5c46 100%);
	border-radius: var(--atm-radius-lg);
	padding: 40px;
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	box-shadow: var(--atm-shadow-lg);
	border: 1px solid rgba(197, 160, 89, 0.4);
}
.atm-cta-text h2 {
	font-size: 24px;
	font-weight: 800;
	margin-bottom: 8px;
	color: #ffffff;
}
.atm-cta-text p {
	font-size: 14.5px;
	color: #cbd5e1;
	max-width: 650px;
	line-height: 1.6;
}

/* ─── 14. SINGLE ARTICLE LAYOUT ───────────────────────────────────────────── */
.atm-single-layout {
	display: grid;
	grid-template-columns: 2.2fr 1fr;
	gap: 32px;
	margin-top: 24px;
	margin-bottom: 48px;
}
.atm-breadcrumbs {
	font-size: 12.5px;
	color: var(--atm-text-muted);
	margin-bottom: 18px;
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
}
.atm-bc-sep {
	color: var(--atm-text-light);
}
.atm-bc-current {
	color: var(--atm-primary);
	font-weight: 600;
}
.atm-single-article {
	background: var(--atm-bg-surface);
	border: 1px solid var(--atm-border);
	border-radius: var(--atm-radius-lg);
	padding: 36px;
	box-shadow: var(--atm-shadow-sm);
}
.atm-single-title {
	font-size: 26px;
	font-weight: 800;
	line-height: 1.35;
	color: var(--atm-primary);
	margin-bottom: 16px;
}
[data-theme="dark"] .atm-single-title {
	color: #ffffff;
}
.atm-single-meta-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--atm-border);
	margin-bottom: 24px;
	font-size: 13px;
	color: var(--atm-text-muted);
}
.atm-meta-left {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

/* Fatwa Specific Elements */
.atm-question-box {
	background: var(--atm-bg-subtle);
	border-left: 4px solid var(--atm-accent);
	border-radius: var(--atm-radius-sm);
	padding: 20px;
	margin-bottom: 28px;
}
.atm-question-box-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 12.5px;
	font-weight: 700;
	color: var(--atm-primary);
	margin-bottom: 10px;
}
.atm-question-text {
	font-size: 15px;
	font-style: italic;
	line-height: 1.6;
	color: var(--atm-text-main);
}
.atm-ruling-verdict-box {
	background: #ecfdf5;
	border: 1px solid #a7f3d0;
	border-radius: var(--atm-radius);
	padding: 16px 20px;
	margin-bottom: 28px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}
[data-theme="dark"] .atm-ruling-verdict-box {
	background: #062b20;
	border-color: #0f5132;
}
.atm-article-body {
	font-size: 16px;
	line-height: 1.8;
	color: var(--atm-text-main);
}
.atm-article-body p {
	margin-bottom: 20px;
}
.atm-article-body h2, .atm-article-body h3 {
	color: var(--atm-primary);
	margin-top: 30px;
	margin-bottom: 14px;
	font-weight: 800;
}
[data-theme="dark"] .atm-article-body h2, [data-theme="dark"] .atm-article-body h3 {
	color: #ffffff;
}
.atm-dalil-callout {
	background: var(--atm-bg-subtle);
	border: 1px solid var(--atm-border);
	border-radius: var(--atm-radius);
	padding: 24px;
	margin: 28px 0;
}
.atm-dalil-arabic {
	font-family: var(--atm-font-arabic);
	font-size: 22px;
	line-height: 1.9;
	color: var(--atm-primary);
	direction: rtl;
	text-align: right;
	margin-bottom: 12px;
}
[data-theme="dark"] .atm-dalil-arabic {
	color: var(--atm-accent);
}
.atm-dalil-ref {
	font-size: 12.5px;
	font-weight: 700;
	color: var(--atm-accent);
}

/* Share Bar */
.atm-share-bar {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 32px;
	padding-top: 24px;
	border-top: 1px solid var(--atm-border);
	flex-wrap: wrap;
}
.atm-share-label {
	font-weight: 700;
	font-size: 13px;
	color: var(--atm-text-main);
}
.atm-share-icons {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}
.atm-share-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 14px;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 700;
	color: #ffffff;
	border: none;
	cursor: pointer;
	text-decoration: none;
	transition: var(--atm-transition);
}
.atm-btn-wa { background-color: #25d366; }
.atm-btn-tg { background-color: #0088cc; }
.atm-btn-fb { background-color: #1877f2; }
.atm-btn-x  { background-color: #000000; }
.atm-btn-copy { background-color: var(--atm-primary); color: #ffffff; }

/* ─── 15. SIDEBAR & WIDGETS ───────────────────────────────────────────────── */
.atm-sidebar {
	display: flex;
	flex-direction: column;
	gap: 28px;
}
.atm-widget {
	background: var(--atm-bg-surface);
	border: 1px solid var(--atm-border);
	border-radius: var(--atm-radius);
	padding: 22px;
	box-shadow: var(--atm-shadow-sm);
}
.atm-widget-title {
	font-size: 16px;
	font-weight: 800;
	color: var(--atm-primary);
	margin-bottom: 18px;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--atm-border);
	position: relative;
}
.atm-widget-title::after {
	content: '';
	position: absolute;
	bottom: -2px;
	left: 0;
	width: 40px;
	height: 2px;
	background-color: var(--atm-accent);
}
[data-theme="dark"] .atm-widget-title {
	color: #ffffff;
}
.atm-popular-list {
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.atm-popular-item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}
.atm-popular-num {
	width: 26px;
	height: 26px;
	background: var(--atm-bg-subtle);
	color: var(--atm-primary);
	border: 1px solid var(--atm-border);
	border-radius: 50%;
	font-weight: 800;
	font-size: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.atm-popular-title {
	font-size: 13.5px;
	font-weight: 700;
	line-height: 1.4;
}
.atm-popular-meta {
	font-size: 11px;
	color: var(--atm-text-light);
	margin-top: 4px;
}

/* Prayer Widget */
.atm-prayer-widget {
	background: var(--atm-bg-body);
	border-radius: var(--atm-radius-sm);
	padding: 16px;
	border: 1px solid var(--atm-border);
}
.atm-prayer-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 10px;
}
.atm-prayer-item {
	background: var(--atm-bg-surface);
	padding: 8px 12px;
	border-radius: 6px;
	border: 1px solid var(--atm-border);
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.atm-prayer-name { font-size: 12px; font-weight: 600; }
.atm-prayer-clock { font-size: 12.5px; font-weight: 800; color: var(--atm-primary); }
[data-theme="dark"] .atm-prayer-clock { color: var(--atm-accent); }

/* ─── 16. FOOTER ──────────────────────────────────────────────────────────── */
.atm-site-footer {
	background-color: var(--atm-footer-bg);
	color: #cbd5e1;
	border-top: 3px solid var(--atm-accent);
	margin-top: 60px;
}
.atm-footer-top {
	padding: 50px 0 30px;
}
.atm-footer-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1fr;
	gap: 36px;
}
.atm-footer-widget-title {
	color: #ffffff;
	font-size: 16px;
	font-weight: 800;
	margin-bottom: 18px;
	position: relative;
	padding-bottom: 8px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.atm-footer-widget-title::after {
	content: '';
	position: absolute;
	bottom: -1px;
	left: 0;
	width: 35px;
	height: 2px;
	background-color: var(--atm-accent);
}
.atm-footer-widget p {
	font-size: 13.5px;
	line-height: 1.65;
	color: #94a3b8;
}
.atm-footer-widget ul {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 9px;
}
.atm-footer-widget ul li a {
	color: #94a3b8;
	font-size: 13.5px;
	transition: var(--atm-transition);
}
.atm-footer-widget ul li a:hover {
	color: var(--atm-accent);
	padding-left: 5px;
}
.atm-footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	padding: 20px 0;
	font-size: 12.5px;
	color: #64748b;
}
.atm-footer-bottom-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
}

/* ─── 17. MODAL FORM: AJUKAN PERTANYAAN ───────────────────────────────────── */
.atm-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(2, 44, 34, 0.75);
	backdrop-filter: blur(4px);
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	opacity: 0;
	visibility: hidden;
	transition: var(--atm-transition);
}
.atm-modal-overlay.is-active {
	opacity: 1;
	visibility: visible;
}
.atm-modal-container {
	background: var(--atm-bg-surface);
	border: 1px solid var(--atm-accent);
	border-radius: var(--atm-radius-lg);
	max-width: 580px;
	width: 100%;
	padding: 32px;
	box-shadow: var(--atm-shadow-lg);
	position: relative;
	transform: translateY(20px);
	transition: transform 0.3s ease;
}
.atm-modal-overlay.is-active .atm-modal-container {
	transform: translateY(0);
}
.atm-modal-close-btn {
	position: absolute;
	top: 16px;
	right: 16px;
	background: transparent;
	border: none;
	font-size: 22px;
	color: var(--atm-text-muted);
	cursor: pointer;
}
.atm-modal-header {
	margin-bottom: 20px;
	text-align: center;
}
.atm-modal-header h3 {
	font-size: 22px;
	font-weight: 800;
	color: var(--atm-primary);
}
[data-theme="dark"] .atm-modal-header h3 {
	color: #ffffff;
}
.atm-form-group {
	margin-bottom: 16px;
}
.atm-form-group label {
	display: block;
	font-size: 13px;
	font-weight: 700;
	margin-bottom: 6px;
}
.atm-form-input, .atm-form-select, .atm-form-textarea {
	width: 100%;
	padding: 10px 14px;
	border-radius: var(--atm-radius-sm);
	border: 1px solid var(--atm-border);
	background: var(--atm-bg-body);
	color: var(--atm-text-main);
	font-family: inherit;
	font-size: 14px;
	outline: none;
	transition: var(--atm-transition);
}
.atm-form-input:focus, .atm-form-select:focus, .atm-form-textarea:focus {
	border-color: var(--atm-accent);
	box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.2);
}

/* ─── 18. RESPONSIVE BREAKPOINTS ──────────────────────────────────────────── */
@media (max-width: 992px) {
	.atm-hero-grid { grid-template-columns: 1fr; }
	.atm-mag-grid { grid-template-columns: 1fr; }
	.atm-cards-grid { grid-template-columns: repeat(2, 1fr); }
	.atm-qa-layout { grid-template-columns: 1fr; }
	.atm-single-layout { grid-template-columns: 1fr; }
	.atm-footer-grid { grid-template-columns: repeat(2, 1fr); }
	.atm-nav-menu { display: none; }
	.atm-mobile-nav-toggle { display: block; }
}

@media (max-width: 640px) {
	.atm-cards-grid { grid-template-columns: 1fr; }
	.atm-footer-grid { grid-template-columns: 1fr; }
	.atm-cta-banner { flex-direction: column; text-align: center; padding: 28px 20px; }
	.atm-topbar-right { display: none; }
}

/* Print Friendly */
@media print {
	.atm-navbar-wrapper, .atm-topbar, .atm-bismillah-bar, .atm-ticker-wrapper, .atm-sidebar, .atm-site-footer, .atm-share-bar {
		display: none !important;
	}
	body { background: #ffffff !important; color: #000000 !important; }
	.atm-single-article { border: none !important; box-shadow: none !important; padding: 0 !important; }
}
