/*
 * New Muslim Guide — front-end styles.
 *
 * Palette and font pulled from the live theme/site (Halpes + Elementor),
 * not invented: primary green #009240 (18 occurrences across the site's
 * Elementor-generated CSS — the dominant brand color), dark navy #1f2230
 * (matches the theme's own 404-page background), light mint section tints
 * #e5eeec / #eff5f4, muted slate accent #5c6694, and "Nunito", sans-serif
 * (the theme's actual heading/body font throughout template.css — Inter
 * was loaded but never applied to headings/body there). Header and footer
 * are NOT reproduced here — the page template calls get_header()/
 * get_footer() and inherits the real site chrome automatically.
 */

:root {
	--inmg-green: #009240;
	--inmg-green-dark: #00762f;
	--inmg-navy: #1f2230;
	--inmg-mint: #e5eeec;
	--inmg-mint-light: #eff5f4;
	--inmg-slate: #5c6694;
	--inmg-text: #333333;
	--inmg-text-muted: #666666;
	--inmg-border: #dde3e1;
	--inmg-font: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.inmg-page {
	font-family: var(--inmg-font);
	color: var(--inmg-text);
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 20px 60px;
}

/* ---------------------------------------------------------------------
 * Hero
 * ------------------------------------------------------------------- */

.inmg-hero {
	background: linear-gradient(135deg, var(--inmg-green) 0%, var(--inmg-green-dark) 100%);
	color: #ffffff;
	border-radius: 12px;
	padding: 48px 32px;
	margin: 32px 0 40px;
	text-align: center;
}

.inmg-hero-title {
	font-family: var(--inmg-font);
	font-size: 2.4em;
	font-weight: 800;
	margin: 0 0 16px;
	color: #ffffff;
}

.inmg-hero-body {
	font-size: 1.1em;
	max-width: 700px;
	margin: 0 auto;
	line-height: 1.7;
	color: #eaf5ee;
}

.inmg-hero-body p {
	margin: 0;
}

.inmg-page-title {
	font-family: var(--inmg-font);
	font-weight: 800;
	color: var(--inmg-navy);
	margin: 32px 0 24px;
}

/* ---------------------------------------------------------------------
 * Prayer times — card row (same cached data as INMG_Prayer_Times::get_cached(),
 * just presented as cards instead of a plain table).
 * ------------------------------------------------------------------- */

.inmg-prayer-times {
	margin: 0 0 48px;
	max-width: 100%;
}

.inmg-prayer-times-heading {
	text-align: center;
	font-size: 0.95em;
	color: var(--inmg-text-muted);
	margin: 0 0 16px;
}

.inmg-prayer-cards {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 12px;
}

.inmg-prayer-card {
	background: var(--inmg-mint-light);
	border: 1px solid var(--inmg-border);
	border-radius: 10px;
	padding: 16px 10px;
	text-align: center;
}

.inmg-prayer-card-name {
	font-weight: 700;
	color: var(--inmg-navy);
	margin-bottom: 8px;
	font-size: 0.95em;
}

.inmg-prayer-card-azan {
	font-size: 1.15em;
	font-weight: 800;
	color: var(--inmg-green);
}

.inmg-prayer-card-azan-label {
	display: block;
	font-size: 0.7em;
	font-weight: 600;
	color: var(--inmg-text-muted);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin-top: 2px;
}

.inmg-prayer-card-iqamah {
	margin-top: 8px;
	padding-top: 8px;
	border-top: 1px dashed var(--inmg-border);
	font-size: 0.95em;
	color: var(--inmg-slate);
}

.inmg-prayer-card-iqamah-label {
	display: block;
	font-size: 0.7em;
	font-weight: 600;
	color: var(--inmg-text-muted);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.inmg-prayer-times-stale-notice {
	color: #8a6d3b;
	background: #fcf8e3;
	border: 1px solid #faebcc;
	padding: 0.6em 1em;
	border-radius: 6px;
	margin-bottom: 12px;
	text-align: center;
}

.inmg-prayer-times-updated,
.inmg-prayer-times-empty {
	font-size: 0.85em;
	color: var(--inmg-text-muted);
	text-align: center;
	margin-top: 10px;
}

/* ---------------------------------------------------------------------
 * Generic content sections
 * ------------------------------------------------------------------- */

.inmg-section {
	margin: 0 0 44px;
}

.inmg-section-title {
	font-family: var(--inmg-font);
	font-size: 1.6em;
	font-weight: 800;
	color: var(--inmg-navy);
	border-left: 5px solid var(--inmg-green);
	padding-left: 14px;
	margin: 0 0 18px;
}

.inmg-section-body {
	line-height: 1.75;
	font-size: 1.02em;
}

.inmg-section-body p {
	margin: 0 0 1em;
}

.inmg-section-note {
	font-style: italic;
	color: var(--inmg-text-muted);
}

.inmg-arabic {
	font-size: 1.6em;
	text-align: right;
	line-height: 2.1;
	color: var(--inmg-navy);
	direction: rtl;
}

.inmg-translit {
	color: var(--inmg-slate);
}

.inmg-content-status {
	background: #fcf8e3;
	border: 1px solid #faebcc;
	padding: 0.6em 1em;
	border-radius: 6px;
}

/* ---------------------------------------------------------------------
 * Five Pillars — icon grid with expandable cards
 * ------------------------------------------------------------------- */

.inmg-pillars-overview {
	text-align: center;
	max-width: 700px;
	margin: 0 auto 28px;
	color: var(--inmg-text-muted);
}

.inmg-pillars-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 16px;
}

.inmg-pillar-card {
	background: #ffffff;
	border: 1px solid var(--inmg-border);
	border-radius: 10px;
	padding: 0;
	overflow: hidden;
}

.inmg-pillar-card summary {
	list-style: none;
	cursor: pointer;
	padding: 20px 14px;
	text-align: center;
}

.inmg-pillar-card summary::-webkit-details-marker {
	display: none;
}

.inmg-pillar-icon {
	width: 40px;
	height: 40px;
	margin: 0 auto 10px;
	color: var(--inmg-green);
}

.inmg-pillar-icon svg {
	width: 100%;
	height: 100%;
}

.inmg-pillar-name {
	font-weight: 800;
	color: var(--inmg-navy);
}

.inmg-pillar-card[open] summary {
	background: var(--inmg-mint-light);
}

.inmg-pillar-body {
	padding: 4px 18px 20px;
	line-height: 1.7;
	border-top: 1px solid var(--inmg-border);
}

.inmg-pillar-body p:first-child {
	margin-top: 14px;
}

/* ---------------------------------------------------------------------
 * Expandable step-guide cards (Wudu / Ghusl / Salah how-to)
 * ------------------------------------------------------------------- */

.inmg-step-guide {
	background: #ffffff;
	border: 1px solid var(--inmg-border);
	border-radius: 10px;
	margin-bottom: 14px;
	overflow: hidden;
}

.inmg-step-guide summary {
	list-style: none;
	cursor: pointer;
	padding: 18px 22px;
	font-family: var(--inmg-font);
	font-size: 1.25em;
	font-weight: 800;
	color: var(--inmg-navy);
	background: var(--inmg-mint-light);
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.inmg-step-guide summary::-webkit-details-marker {
	display: none;
}

.inmg-step-guide summary::after {
	content: "+";
	font-size: 1.3em;
	color: var(--inmg-green);
	font-weight: 700;
}

.inmg-step-guide[open] summary::after {
	content: "\2212";
}

.inmg-step-guide-body {
	padding: 20px 22px 24px;
	line-height: 1.75;
}

.inmg-step-guide-body ol {
	padding-left: 1.4em;
}

.inmg-step-guide-body li {
	margin-bottom: 0.5em;
}

/* ---------------------------------------------------------------------
 * Daily prayers / rakah table
 * ------------------------------------------------------------------- */

.inmg-content-table,
.inmg-rakah-table {
	width: 100%;
	border-collapse: collapse;
	margin: 0 0 1em;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 0 0 1px var(--inmg-border);
}

.inmg-content-table th,
.inmg-rakah-table th {
	background: var(--inmg-green);
	color: #ffffff;
	padding: 0.7em 1em;
	text-align: left;
	font-weight: 700;
}

.inmg-content-table td,
.inmg-rakah-table td {
	padding: 0.65em 1em;
	border-top: 1px solid var(--inmg-border);
}

.inmg-content-table tbody tr:nth-child(even),
.inmg-rakah-table tbody tr:nth-child(even) {
	background: var(--inmg-mint-light);
}

/* ---------------------------------------------------------------------
 * Surah memorization cards
 * ------------------------------------------------------------------- */

.inmg-surah-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 18px;
}

.inmg-surah-card {
	background: #ffffff;
	border: 1px solid var(--inmg-border);
	border-radius: 10px;
	padding: 20px;
}

.inmg-surah-card-title {
	margin: 0 0 12px;
	color: var(--inmg-navy);
	font-size: 1.2em;
	font-weight: 800;
}

.inmg-surah-card-body h3 {
	font-size: 1em;
	font-weight: 700;
	color: var(--inmg-slate);
	margin: 20px 0 8px;
	padding-top: 16px;
	border-top: 1px solid var(--inmg-border);
}

.inmg-surah-card-body h3:first-child {
	margin-top: 0;
	padding-top: 0;
	border-top: none;
}

.inmg-surah-card .inmg-arabic {
	font-size: 1.5em;
	margin-bottom: 10px;
}

.inmg-surah-card p {
	margin: 0 0 0.8em;
}

.inmg-surah-card a {
	display: inline-block;
	margin-top: 6px;
	color: var(--inmg-green);
	font-weight: 700;
	text-decoration: none;
}

.inmg-surah-card a:hover {
	text-decoration: underline;
}

/* ---------------------------------------------------------------------
 * Glossary — two-column list
 * ------------------------------------------------------------------- */

.inmg-section-glossary .inmg-section-body ul {
	columns: 2;
	column-gap: 32px;
	list-style: none;
	padding: 0;
	margin: 0;
}

.inmg-section-glossary .inmg-section-body li {
	break-inside: avoid;
	margin-bottom: 14px;
	padding-left: 14px;
	border-left: 3px solid var(--inmg-green);
}

.inmg-section-glossary .inmg-section-body li strong {
	color: var(--inmg-navy);
}

/* ---------------------------------------------------------------------
 * FAQ — accordion (native <details>/<summary>)
 * ------------------------------------------------------------------- */

.inmg-faq-item {
	border-bottom: 1px solid var(--inmg-border);
}

.inmg-faq-item summary {
	list-style: none;
	cursor: pointer;
	padding: 16px 4px;
	font-weight: 700;
	color: var(--inmg-navy);
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.inmg-faq-item summary::-webkit-details-marker {
	display: none;
}

.inmg-faq-item summary::after {
	content: "+";
	color: var(--inmg-green);
	font-weight: 700;
	font-size: 1.2em;
}

.inmg-faq-item[open] summary::after {
	content: "\2212";
}

.inmg-faq-item-body {
	padding: 0 4px 16px;
	color: var(--inmg-text-muted);
	line-height: 1.7;
}

/* ---------------------------------------------------------------------
 * Duas list
 * ------------------------------------------------------------------- */

.inmg-dua-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.inmg-dua-list li {
	background: var(--inmg-mint-light);
	border-radius: 8px;
	padding: 14px 18px;
	margin-bottom: 10px;
}

.inmg-dua-list strong {
	color: var(--inmg-navy);
}

/* ---------------------------------------------------------------------
 * Next steps — closing CTA
 * ------------------------------------------------------------------- */

.inmg-section-next_steps {
	background: var(--inmg-navy);
	border-radius: 12px;
	padding: 36px 32px;
	text-align: center;
}

.inmg-section-next_steps .inmg-section-title {
	color: #ffffff;
	border-left-color: var(--inmg-green);
	display: inline-block;
}

.inmg-section-next_steps .inmg-section-body {
	color: #dfe3ef;
	max-width: 640px;
	margin: 0 auto;
}

.inmg-section-next_steps .inmg-section-body a {
	color: #8be3ab;
}

/* ---------------------------------------------------------------------
 * Responsive
 * ------------------------------------------------------------------- */

@media (max-width: 900px) {
	.inmg-prayer-cards {
		grid-template-columns: repeat(3, 1fr);
	}
	.inmg-pillars-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 600px) {
	.inmg-hero {
		padding: 32px 20px;
	}
	.inmg-hero-title {
		font-size: 1.8em;
	}
	.inmg-prayer-cards {
		grid-template-columns: repeat(2, 1fr);
	}
	.inmg-pillars-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.inmg-section-glossary .inmg-section-body ul {
		columns: 1;
	}
	.inmg-section-title {
		font-size: 1.35em;
	}
}
