/*
Theme Name: Quraniahub
Theme URI: https://quraniahub.local
Author: Ideagen
Author URI: https://quraniahub.local
Description: A simple, decent theme with an Islamic touch for Quraniahub.
Version: 0.3.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: quraniahub
*/

/* ==========================================================================
   1. Variables
   ========================================================================== */

:root {
	--color-green-dark: #0b3d2e;
	--color-green: #145c45;
	--color-green-tint: #eef4f0;
	--color-gold: #b8912f;
	--color-gold-light: #e9d9a8;
	--color-cream: #faf7ef;
	--color-text: #23261f;
	--color-text-muted: #5c6259;
	--color-border: #e2ddca;
	--font-heading: 'Amiri', Georgia, 'Times New Roman', serif;
	--font-body: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--radius: 10px;
	--shadow: 0 2px 10px rgba(11, 61, 46, 0.08);
	--pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='none' stroke='%23b8912f' stroke-width='1' opacity='0.35'%3E%3Cpath d='M30 2 L38 15 L52 15 L42 24 L46 38 L30 30 L14 38 L18 24 L8 15 L22 15 Z'/%3E%3C/g%3E%3C/svg%3E");
}

/* ==========================================================================
   2. Base
   ========================================================================== */

* {
	box-sizing: border-box;
}

body {
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.7;
	margin: 0;
	color: var(--color-text);
	background: var(--color-cream);
}

h1, h2, h3, h4, h5 {
	font-family: var(--font-heading);
	color: var(--color-green-dark);
	line-height: 1.3;
	margin: 0 0 0.6em;
}

h1 { font-size: 2.6rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.4rem; }

p { margin: 0 0 1.2em; }

a {
	color: var(--color-green);
	text-decoration: none;
	transition: color 0.15s ease;
}

a:hover {
	color: var(--color-gold);
}

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

.container {
	max-width: 1080px;
	margin: 0 auto;
	padding: 0 2rem;
}

.screen-reader-text {
	position: absolute;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
}

/* ==========================================================================
   3. Header
   ========================================================================== */

.site-header {
	background: var(--color-green-dark);
	border-bottom: 3px solid var(--color-gold);
}

.site-header .header-inner {
	max-width: 1080px;
	margin: 0 auto;
	padding: 1.1rem 2rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1rem;
}

.site-branding .site-title {
	margin: 0;
	font-size: 1.6rem;
}

.site-branding .site-title a {
	color: #fff;
	font-family: var(--font-heading);
	letter-spacing: 0.02em;
}

.site-branding .site-title a:hover { color: var(--color-gold-light); }

.site-branding .site-description {
	margin: 0;
	color: var(--color-gold-light);
	font-size: 0.85rem;
}

.main-navigation ul {
	list-style: none;
	display: flex;
	gap: 1.8rem;
	margin: 0;
	padding: 0;
	flex-wrap: wrap;
}

.main-navigation a {
	color: #fff;
	font-weight: 500;
	font-size: 0.95rem;
	padding-bottom: 4px;
	border-bottom: 2px solid transparent;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
	color: var(--color-gold-light);
	border-bottom-color: var(--color-gold);
}

/* Mobile menu toggle button (hidden on desktop) */
.menu-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 42px;
	height: 42px;
	padding: 0;
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 6px;
	cursor: pointer;
}

.menu-toggle-bar {
	display: block;
	width: 20px;
	height: 2px;
	margin: 0 auto;
	background: #fff;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle.is-active .menu-toggle-bar:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-active .menu-toggle-bar:nth-child(2) {
	opacity: 0;
}

.menu-toggle.is-active .menu-toggle-bar:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 782px) {
	.menu-toggle {
		display: flex;
	}

	.site-header .header-inner {
		padding: 1rem 1.25rem;
	}

	.main-navigation {
		display: none;
		width: 100%;
		order: 3;
	}

	.main-navigation.is-open {
		display: block;
	}

	.main-navigation ul {
		flex-direction: column;
		gap: 0;
		width: 100%;
		border-top: 1px solid rgba(255, 255, 255, 0.15);
		margin-top: 0.75rem;
		padding-top: 0.5rem;
	}

	.main-navigation li {
		width: 100%;
	}

	.main-navigation a {
		display: block;
		padding: 0.75rem 0.25rem;
		border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	}
}

/* ==========================================================================
   4. Pattern strip (decorative divider)
   ========================================================================== */

.pattern-strip {
	height: 14px;
	background-image: var(--pattern);
	background-repeat: repeat-x;
	background-position: center;
	opacity: 0.9;
}

.section-divider {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	margin: 0.5rem 0 2.5rem;
	color: var(--color-gold);
}

.section-divider::before,
.section-divider::after {
	content: '';
	height: 1px;
	width: 60px;
	background: var(--color-gold-light);
}

/* ==========================================================================
   5. Hero (front page)
   ========================================================================== */

.hero {
	background: linear-gradient(135deg, var(--color-green-dark), var(--color-green));
	color: #fff;
	padding: 5rem 2rem;
	text-align: center;
	position: relative;
}

.hero h1 {
	color: #fff;
	margin-bottom: 0.4em;
}

.hero p.tagline {
	max-width: 640px;
	margin: 0 auto 1.8em;
	color: var(--color-gold-light);
	font-size: 1.15rem;
}

.hero-buttons {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.9rem;
}

.button,
button[type="submit"],
input[type="submit"] {
	display: inline-block;
	background: var(--color-gold);
	color: var(--color-green-dark);
	font-weight: 600;
	padding: 0.75em 1.8em;
	border-radius: 999px;
	border: none;
	cursor: pointer;
	font-family: var(--font-body);
	font-size: 1rem;
	transition: background 0.15s ease, transform 0.15s ease;
}

.button:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
	background: var(--color-gold-light);
	color: var(--color-green-dark);
	transform: translateY(-1px);
}

.button.button-outline {
	background: transparent;
	border: 2px solid var(--color-gold);
	color: var(--color-gold);
}

/* ==========================================================================
   6. Sections & cards
   ========================================================================== */

.section {
	padding: 4rem 2rem;
}

.section.alt {
	background: var(--color-green-tint);
}

.section-heading {
	text-align: center;
	margin-bottom: 0.4rem;
}

.section-intro {
	text-align: center;
	max-width: 620px;
	margin: 0 auto 1rem;
	color: var(--color-text-muted);
}

.card-grid {
	max-width: 1080px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 1.75rem;
}

.card {
	background: #fff;
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	padding: 1.75rem;
	box-shadow: var(--shadow);
	text-align: center;
}

.card .card-icon {
	font-size: 1.8rem;
	color: var(--color-gold);
	margin-bottom: 0.5rem;
}

.card h3 { margin-bottom: 0.4em; }

.card p { color: var(--color-text-muted); margin-bottom: 0; }

/* "Why choose us" feature list — deliberately different from the boxed
   course/testimonial cards: no border, no shadow, just a compact icon +
   heading row with a one-line description underneath. */
.feature-list {
	max-width: 960px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr 1fr;
	column-gap: 2.5rem;
}

.feature-item {
	padding: 0.75rem 0;
	border-bottom: 1px solid var(--color-border);
}

.feature-list .feature-item:nth-last-child(-n+2) {
	border-bottom: none;
}

.feature-heading {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	margin-bottom: 0.15rem;
}

.feature-icon {
	flex-shrink: 0;
	font-size: 1.15rem;
	line-height: 1;
}

.feature-heading h3 {
	font-size: 0.98rem;
	margin: 0;
}

.feature-item p {
	margin: 0;
	font-size: 0.85rem;
	line-height: 1.5;
	color: var(--color-text-muted);
}

@media (max-width: 700px) {
	.feature-list {
		grid-template-columns: 1fr;
	}

	.feature-list .feature-item:nth-last-child(-n+2) {
		border-bottom: 1px solid var(--color-border);
	}

	.feature-list .feature-item:last-child {
		border-bottom: none;
	}
}

/* Course cards */
.course-card {
	background: #fff;
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow);
	display: flex;
	flex-direction: column;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.course-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 22px rgba(11, 61, 46, 0.13);
}

.course-card .course-thumb {
	background: var(--color-green-tint);
	height: 150px;
	overflow: hidden;
}

.course-card .course-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.course-card-top {
	display: flex;
	align-items: flex-start;
	justify-content: flex-end;
	padding: 1.5rem 1.5rem 0;
}

.course-tag {
	display: inline-block;
	font-size: 0.72rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--color-green-dark);
	background: var(--color-gold-light);
	padding: 0.35em 0.75em;
	border-radius: 999px;
	white-space: nowrap;
}

.course-card .course-body {
	padding: 1.25rem 1.5rem 1.5rem;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.course-card h3 { margin-bottom: 0.3em; }

.course-card p { color: var(--color-text-muted); }

.course-card .course-excerpt { flex: 1; }

.course-duration {
	display: flex;
	align-items: center;
	gap: 0.4em;
	font-size: 0.85rem;
	color: var(--color-text-muted);
	margin: 0 0 1rem;
}

.course-link {
	display: inline-flex;
	align-items: center;
	gap: 0.35em;
	font-weight: 600;
	color: var(--color-green);
	margin-top: auto;
}

.course-link:hover {
	color: var(--color-gold);
}

/* Single course detail header */
.course-detail-meta {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0.6rem;
	margin-top: 1rem;
}

.course-detail-meta .course-tag {
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
}

.course-detail-meta .course-duration-tag {
	display: inline-flex;
	align-items: center;
	gap: 0.35em;
	font-size: 0.85rem;
	color: var(--color-gold-light);
}

/* Testimonial cards */
.testimonial-card {
	background: #fff;
	border: 1px solid var(--color-border);
	border-left: 4px solid var(--color-gold);
	border-radius: var(--radius);
	padding: 1.75rem;
	box-shadow: var(--shadow);
}

.testimonial-card .quote-mark {
	font-family: var(--font-heading);
	font-size: 2.5rem;
	color: var(--color-gold-light);
	line-height: 1;
	display: block;
	margin-bottom: 0.2rem;
}

.testimonial-card .testimonial-author {
	margin-top: 1rem;
	font-weight: 600;
	color: var(--color-green-dark);
}

.testimonial-card .testimonial-role {
	font-size: 0.85rem;
	color: var(--color-text-muted);
}

/* ==========================================================================
   7. Page content
   ========================================================================== */

.page-hero {
	background: var(--color-green-dark);
	color: #fff;
	text-align: center;
	padding: 3rem 2rem 2.5rem;
}

.page-hero h1 { color: #fff; margin-bottom: 0.2em; }
.page-hero p { color: var(--color-gold-light); margin: 0; }

.entry-content {
	max-width: 780px;
	margin: 0 auto;
	padding: 3rem 2rem;
}

.entry-content h2 { margin-top: 1.4em; }

.highlight-box {
	background: var(--color-green-tint);
	border-left: 4px solid var(--color-gold);
	border-radius: var(--radius);
	padding: 1.5rem 1.75rem;
	margin: 1.5rem 0;
}

.two-col {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2.5rem;
	align-items: center;
}

@media (max-width: 700px) {
	.two-col { grid-template-columns: 1fr; }
}

/* ==========================================================================
   8. Contact form
   ========================================================================== */

.contact-wrapper {
	max-width: 900px;
	margin: 0 auto;
	padding: 3rem 2rem;
	display: grid;
	grid-template-columns: 1fr 1.3fr;
	gap: 3rem;
}

@media (max-width: 700px) {
	.contact-wrapper { grid-template-columns: 1fr; }
}

.contact-info h3 { margin-top: 1.2em; }
.contact-info p { color: var(--color-text-muted); }

.contact-form label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.3em;
	color: var(--color-green-dark);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
	width: 100%;
	padding: 0.7em 0.9em;
	margin-bottom: 1.1em;
	border: 1px solid var(--color-border);
	border-radius: 6px;
	font-family: var(--font-body);
	font-size: 1rem;
	background: #fff;
}

.contact-form textarea { min-height: 140px; resize: vertical; }

.form-notice {
	padding: 0.9em 1.1em;
	border-radius: 6px;
	margin-bottom: 1.5em;
	font-size: 0.95rem;
}

.form-notice.success {
	background: #e4f3ea;
	color: var(--color-green-dark);
	border: 1px solid #bfe2cc;
}

.form-notice.error {
	background: #fbe9e9;
	color: #8a2c2c;
	border: 1px solid #f0c2c2;
}

/* ==========================================================================
   9. Footer
   ========================================================================== */

.site-footer {
	background: var(--color-green-dark);
	color: var(--color-gold-light);
	padding: 2.5rem 2rem 1.5rem;
}

.footer-inner {
	max-width: 1080px;
	margin: 0 auto;
	text-align: center;
}

.footer-navigation ul {
	list-style: none;
	display: flex;
	justify-content: center;
	gap: 1.5rem;
	padding: 0;
	margin: 0 0 1rem;
	flex-wrap: wrap;
}

.footer-navigation a {
	color: var(--color-gold-light);
	font-size: 0.9rem;
}

.footer-navigation a:hover { color: #fff; }

.site-footer .copyright {
	font-size: 0.85rem;
	color: rgba(255, 255, 255, 0.6);
	margin: 0;
}

/* ==========================================================================
   10. Misc / widgets / responsiveness
   ========================================================================== */

.widget-area {
	max-width: 1080px;
	margin: 0 auto;
	padding: 0 2rem 3rem;
}

.widget-title {
	font-family: var(--font-heading);
	color: var(--color-green-dark);
}

@media (max-width: 900px) {
	.card-grid { gap: 1.25rem; }
}

@media (max-width: 600px) {
	body { font-size: 16px; }
	h1 { font-size: 2rem; }
	h2 { font-size: 1.6rem; }
	h3 { font-size: 1.2rem; }

	.container { padding: 0 1.25rem; }
	.hero { padding: 3.5rem 1.25rem; }
	.section { padding: 2.75rem 1.25rem; }
	.entry-content { padding: 2.5rem 1.25rem; }
	.page-hero { padding: 2.5rem 1.25rem 2rem; }
	.contact-wrapper { padding: 2.5rem 1.25rem; gap: 2rem; }

	.hero-buttons { flex-direction: column; }
	.hero-buttons .button { width: 100%; }

	.site-branding .site-title { font-size: 1.3rem; }
}

@media (max-width: 400px) {
	h1 { font-size: 1.7rem; }
	.hero p.tagline { font-size: 1rem; }
}
