/* Astra Child – Shiarecht: Islamic prayer platform layout */

/* --- Full-width homepage (Aviny): disable Astra container, edge-to-edge --- */
body.shiarecht-aviny-homepage .site-content,
body.shiarecht-aviny-homepage .ast-container {
	width: 100% !important;
	max-width: none !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	box-sizing: border-box;
}

body.shiarecht-aviny-homepage .shiarecht-aviny-homepage {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body.shiarecht-aviny-homepage .shiarecht-aviny-homepage #main {
	max-width: none;
	margin: 0;
	padding: 0;
}

/* Prevent horizontal scroll on front page */
body.shiarecht-aviny-homepage {
	overflow-x: hidden;
}

/* --- Wide container (other pages, if used) --- */
.shiarecht-container-wide,
.shiarecht-front-wrap {
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 1.5rem;
	padding-right: 1.5rem;
	box-sizing: border-box;
}

.shiarecht-front-primary {
	max-width: 100%;
}

.shiarecht-front-page:not(.shiarecht-aviny-homepage) .ast-container {
	max-width: 1200px;
}

/* --- Sticky header --- */
.shiarecht-sticky-header .main-header-bar-wrap {
	position: sticky;
	top: 0;
	z-index: 999;
	background: #fff;
	box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

.shiarecht-sticky-header .ast-mobile-header-wrap .main-header-bar-wrap {
	position: sticky;
	top: 0;
	z-index: 999;
}

/* Text-based site logo (site title) */
.shiarecht-sticky-header .site-branding .site-title,
.shiarecht-sticky-header .ast-site-identity .site-title {
	font-size: 1.35rem;
	font-weight: 700;
	color: #1a5f2a;
	letter-spacing: 0.02em;
}

.shiarecht-sticky-header .site-branding .site-title a,
.shiarecht-sticky-header .ast-site-identity .site-title a {
	color: inherit;
	text-decoration: none;
}

/* Language menu: right side, flags / links */
.shiarecht-sticky-header .main-header-bar .main-header-menu {
	margin-left: auto;
}
.shiarecht-sticky-header .main-header-menu .current-menu-item > a,
.shiarecht-sticky-header .main-header-menu .current-lang > a,
.shiarecht-sticky-header .ast-desktop .main-header-menu .current-menu-item > a {
	background: rgba(26, 95, 42, 0.12);
	color: #1a5f2a;
	font-weight: 600;
	border-radius: 6px;
}
.shiarecht-sticky-header .main-header-menu a {
	padding: 0.4em 0.6em;
}

/* --- Hero section (front page) --- */
.shiarecht-hero {
	position: relative;
	min-height: 220px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 3rem 1.5rem;
	overflow: hidden;
	background: linear-gradient(135deg, #0d3d1a 0%, #1a5f2a 35%, #2d7a3e 70%, #1a4d2e 100%);
}

.shiarecht-hero-bg {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.shiarecht-hero-moon {
	position: absolute;
	top: 1.5rem;
	right: 15%;
	width: 64px;
	height: 64px;
	opacity: 0.35;
}

.shiarecht-hero-moon .shiarecht-svg-moon {
	width: 100%;
	height: 100%;
}

.shiarecht-hero-mosque {
	position: absolute;
	bottom: 0;
	left: 5%;
	width: 140px;
	height: auto;
	max-height: 80px;
	opacity: 0.2;
}

.shiarecht-hero-mosque .shiarecht-svg-mosque {
	width: 100%;
	height: auto;
}

.shiarecht-hero-inner {
	position: relative;
	z-index: 1;
	text-align: center;
	max-width: 720px;
	margin: 0 auto;
	width: 100%;
}

.shiarecht-hero-title {
	margin: 0 0 0.35em;
	font-size: clamp(1.5rem, 4vw, 2.25rem);
	font-weight: 700;
	color: #fff;
	text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.shiarecht-hero-subtitle {
	margin: 0 0 0.5em;
	font-size: clamp(1rem, 2.5vw, 1.25rem);
	font-weight: 600;
	color: rgba(255,255,255,0.95);
}

.shiarecht-hero-desc {
	margin: 0;
	font-size: 0.9375rem;
	line-height: 1.5;
	color: rgba(255,255,255,0.85);
}

@media (max-width: 480px) {
	.shiarecht-hero {
		min-height: 200px;
		padding: 2rem 1rem;
	}
	.shiarecht-hero-moon {
		width: 48px;
		height: 48px;
		right: 10%;
	}
	.shiarecht-hero-mosque {
		width: 100px;
		left: 0;
	}
}

/* --- About section --- */
.shiarecht-about {
	margin-top: 2.5rem;
	margin-bottom: 2rem;
	padding: 2rem 1.5rem;
	background: #f8f6f1;
	border-radius: 12px;
	border: 1px solid #e5dfd4;
}

.shiarecht-about-title {
	margin: 0 0 0.75rem;
	font-size: 1.25rem;
	font-weight: 600;
	color: #1a5f2a;
}

.shiarecht-about-text {
	margin: 0;
	font-size: 0.9375rem;
	line-height: 1.65;
	color: #2c2416;
}

@media (max-width: 480px) {
	.shiarecht-about {
		padding: 1.5rem 1rem;
		margin-top: 2rem;
	}
}

/* --- Footer branding --- */
.shiarecht-footer-branding {
	background: linear-gradient(180deg, #0d2d18 0%, #0d3d1a 100%);
	color: rgba(255,255,255,0.9);
	padding: 2rem 1.5rem;
	text-align: center;
}

.shiarecht-footer-social {
	margin-bottom: 1.25rem;
}

.shiarecht-footer-social-label {
	display: block;
	font-size: 0.8125rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-bottom: 0.35rem;
	opacity: 0.9;
}

.shiarecht-footer-placeholders {
	font-size: 0.875rem;
	opacity: 0.75;
}

.shiarecht-footer-quote {
	margin: 0 auto 0.5rem;
	max-width: 560px;
	font-size: 1rem;
	line-height: 1.6;
	font-style: italic;
}

.shiarecht-footer-verse-ref {
	margin: 0;
	font-size: 0.8125rem;
	opacity: 0.8;
}

@media (max-width: 480px) {
	.shiarecht-footer-branding {
		padding: 1.5rem 1rem;
	}
	.shiarecht-footer-quote {
		font-size: 0.9375rem;
	}
}

/* --- Front page: Prayer Times section (10-day table) --- */
.shiarecht-section {
	margin-top: 2.5rem;
	margin-bottom: 2.5rem;
}

.shiarecht-section-title {
	margin: 0 0 1rem;
	font-size: 1.5rem;
	font-weight: 700;
	color: #1a5f2a;
}

.shiarecht-section-subtitle {
	display: block;
	font-size: 0.875rem;
	font-weight: 500;
	color: #555;
	margin-top: 0.25rem;
}

.shiarecht-table-card {
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 4px 20px rgba(0,0,0,0.08);
	border: 1px solid #e5dfd4;
	overflow: hidden;
	margin-top: 1rem;
}

.shiarecht-calendar-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9375rem;
}

.shiarecht-calendar-table th,
.shiarecht-calendar-table td {
	padding: 0.65rem 0.5rem;
	text-align: center;
	border-bottom: 1px solid #eee;
}

.shiarecht-calendar-table th {
	background: #1a5f2a;
	color: #fff;
	font-weight: 600;
}

.shiarecht-calendar-table td {
	background: #fff;
	color: #2c2416;
}

.shiarecht-calendar-table tbody tr:hover td {
	background: #f8f9f8;
}

.shiarecht-cell-date {
	text-align: left !important;
	font-weight: 500;
	white-space: nowrap;
}

.shiarecht-row-ramadan .shiarecht-cell-suhoor,
.shiarecht-row-ramadan .shiarecht-cell-iftar {
	background: rgba(26, 95, 42, 0.1);
	font-weight: 600;
	color: #1a5f2a;
}

.shiarecht-table-legend {
	margin: 0;
	padding: 0.75rem 1rem;
	font-size: 0.8125rem;
	color: #555;
	background: #f8f6f1;
	border-top: 1px solid #e5dfd4;
}

.shiarecht-legend-suhoor,
.shiarecht-legend-iftar {
	font-weight: 600;
	color: #1a5f2a;
}

.shiarecht-table-error {
	padding: 1rem;
	color: #a00;
}

/* Table responsive: horizontal scroll on small screens */
.shiarecht-table-card {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
	.shiarecht-calendar-table {
		font-size: 0.8125rem;
	}
	.shiarecht-calendar-table th,
	.shiarecht-calendar-table td {
		padding: 0.5rem 0.35rem;
	}
}

/* --- Ahkam-e Ramadan section --- */
.shiarecht-ahkam {
	margin-top: 2.5rem;
	margin-bottom: 2.5rem;
	padding: 2rem 1.5rem;
	background: #f8f6f1;
	border-radius: 12px;
	border: 1px solid #e5dfd4;
	box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.shiarecht-ahkam-title {
	margin: 0 0 1rem;
	font-size: 1.35rem;
	font-weight: 700;
	color: #1a5f2a;
}

.shiarecht-ahkam-content {
	font-size: 0.9375rem;
	line-height: 1.7;
	color: #2c2416;
}

.shiarecht-ahkam-content p {
	margin: 0 0 0.75rem;
}

.shiarecht-ahkam-content p:last-child {
	margin-bottom: 0;
}

@media (max-width: 480px) {
	.shiarecht-container-wide,
	.shiarecht-front-wrap {
		padding-left: 1rem;
		padding-right: 1rem;
	}
	.shiarecht-ahkam {
		padding: 1.5rem 1rem;
	}
	.shiarecht-section-title {
		font-size: 1.25rem;
	}
}
