/*
	Home page (Elementor page 1218): sections restyled to the navy & gold brand.
	Sections are targeted by their Elementor element ids, so content stays editable in Elementor.
	Loaded only on the front page (see inc/scripts_styles.php).
*/

/* ---------- Shared section headings ---------- */

.home [data-id="cf79846"] .elementor-heading-title,
.home [data-id="1b2ceb8"] .elementor-heading-title,
.home [data-id="ea049f2"] .vc_custom_heading > * {
	color: var(--iq-navy) !important;
	font-size: 40px !important;
	font-weight: 600 !important;
	line-height: 1.2 !important;
	text-transform: none !important;
}

.home [data-id="cf79846"] .elementor-heading-title:before,
.home [data-id="1b2ceb8"] .elementor-heading-title:before,
.home [data-id="9d47196"] .elementor-heading-title:before {
	display: block;
	margin-bottom: 12px;
	color: var(--iq-gold);
	font-family: "Poppins", sans-serif;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .14em;
	line-height: 1.4;
	text-transform: uppercase;
}

.home [data-id="cf79846"] .elementor-heading-title:before {
	content: "What We Teach";
}

.home [data-id="1b2ceb8"] .elementor-heading-title:before {
	content: "Our Teachers";
}

.home [data-id="9d47196"] .elementor-heading-title:before {
	content: "About IQRA Academy";
}

.home [data-id="1488672"],
.home [data-id="ea0390c"] {
	color: var(--iq-muted) !important;
	font-size: 16px;
}

/* ---------- About ---------- */

.home [data-id="2ac8718b"] {
	position: relative;
	padding: 110px 0 !important;
	background:
		radial-gradient(circle at 92% 50%, rgba(201, 162, 74, .14), transparent 32%),
		linear-gradient(180deg, #fff 0%, var(--iq-cream) 100%);
	overflow: hidden;
}

.home [data-id="9d47196"] .elementor-heading-title {
	color: var(--iq-navy) !important;
	font-size: 42px !important;
	font-weight: 600 !important;
	line-height: 1.2 !important;
}

.home [data-id="46ff77b6"] {
	color: var(--iq-muted) !important;
	font-size: 15px !important;
	line-height: 1.85 !important;
}

/* Lead line under the heading */
.home [data-id="46ff77b6"] p:first-child {
	position: relative;
	margin-bottom: 22px;
	padding: 12px 0 12px 20px;
	border-left: 3px solid var(--iq-gold);
	color: var(--iq-navy);
	font-size: 18px;
	font-weight: 500;
	font-style: italic;
	line-height: 1.6;
}

.home [data-id="8aaac9a"] {
	margin-top: 10px;
}

/* Image with a gold ring and a "since" badge */
.home [data-id="de96932"] > .elementor-widget-wrap {
	position: relative;
}

.home [data-id="de96932"] > .elementor-widget-wrap:before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: min(440px, 90%);
	aspect-ratio: 1;
	border: 2px dashed rgba(201, 162, 74, .45);
	border-radius: 50%;
	transform: translate(-50%, -50%);
	animation: iq-spin 60s linear infinite;
}

.home [data-id="de96932"] > .elementor-widget-wrap:after {
	content: "Since 2008 \A Teaching the Quran";
	position: absolute;
	right: 4%;
	bottom: 8%;
	padding: 16px 22px;
	border-radius: 14px;
	background: var(--iq-navy);
	box-shadow: 0 16px 30px rgba(0, 29, 58, .3);
	color: #fff;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.6;
	white-space: pre;
}

.home [data-id="40222f6b"] img {
	position: relative;
	animation: iq-float 6s ease-in-out infinite;
}

@keyframes iq-spin {
	to {
		transform: translate(-50%, -50%) rotate(360deg);
	}
}

@keyframes iq-float {
	50% {
		transform: translateY(-12px);
	}
}

/* ---------- Featured courses ---------- */

.home [data-id="e9efc0e"] {
	padding: 100px 0 40px !important;
}

.home [data-id="a7a6a5f"] .stm_lms_courses__single__inner {
	border: 1px solid rgba(0, 46, 91, .08);
	background: #fff;
}

.home [data-id="a7a6a5f"] [class*="navigation"] [class*="prev"],
.home [data-id="a7a6a5f"] [class*="navigation"] [class*="next"],
.home [data-id="a7a6a5f"] .owl-prev,
.home [data-id="a7a6a5f"] .owl-next {
	width: 44px;
	height: 44px;
	margin: 0 6px;
	border: 1px solid rgba(0, 46, 91, .15) !important;
	border-radius: 50% !important;
	background: #fff !important;
	color: var(--iq-navy) !important;
	transition: background-color .2s ease, color .2s ease;
}

.home [data-id="a7a6a5f"] [class*="navigation"] [class*="prev"]:hover,
.home [data-id="a7a6a5f"] [class*="navigation"] [class*="next"]:hover,
.home [data-id="a7a6a5f"] .owl-prev:hover,
.home [data-id="a7a6a5f"] .owl-next:hover {
	background: var(--iq-navy) !important;
	color: #fff !important;
}

/* ---------- Why choose us (HTML widget in section 7005a71, merges the old benefits band and "Why Hire Us") ---------- */

.home [data-id="7005a71"] {
	min-height: 0 !important;
	margin: 0 !important;
	padding: 40px 0 100px !important;
}

.iq-why {
	padding: 64px 48px;
	border: 1px solid rgba(201, 162, 74, .3);
	border-radius: 24px;
	background:
		radial-gradient(circle at 0 0, rgba(201, 162, 74, .16), transparent 30%),
		var(--iq-cream);
}

.iq-why__head {
	max-width: 640px;
	margin: 0 auto 44px;
	text-align: center;
}

.iq-why__eyebrow {
	color: var(--iq-gold);
	font-family: "Poppins", sans-serif;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
}

.iq-why__head h2 {
	margin: 10px 0 14px;
	color: var(--iq-navy);
	font-size: 40px;
	font-weight: 600;
	line-height: 1.2;
}

.iq-why__head p {
	margin: 0;
	color: var(--iq-muted);
	font-size: 16px;
}

.iq-why__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}

.iq-why__item {
	padding: 28px 24px;
	border: 1px solid rgba(0, 46, 91, .08);
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 8px 22px rgba(0, 29, 58, .05);
	transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.iq-why__item:hover {
	border-color: var(--iq-gold);
	box-shadow: 0 16px 32px rgba(0, 29, 58, .1);
	transform: translateY(-4px);
}

.iq-why__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	margin-bottom: 16px;
	border-radius: 14px;
	background: var(--iq-navy);
	color: var(--iq-gold);
	font-size: 20px;
	transition: background-color .25s ease, color .25s ease;
}

.iq-why__item:hover .iq-why__icon {
	background: var(--iq-gold);
	color: var(--iq-navy);
}

.iq-why__item h3 {
	margin: 0 0 8px;
	color: var(--iq-navy);
	font-size: 17px;
	font-weight: 600;
	line-height: 1.35;
}

.iq-why__item p {
	margin: 0;
	color: var(--iq-muted);
	font-size: 14px;
	line-height: 1.65;
}

/* Free trial card is the highlighted one */
.iq-why__item--featured {
	display: flex;
	flex-direction: column;
	justify-content: center;
	border: 0;
	background: linear-gradient(160deg, var(--iq-navy) 0%, var(--iq-navy-deep) 100%);
	box-shadow: 0 20px 44px rgba(0, 29, 58, .25);
}

.iq-why__item--featured .iq-why__icon {
	background: var(--iq-gold);
	color: var(--iq-navy);
}

.iq-why__item--featured h3 {
	color: #fff;
}

.iq-why__item--featured p {
	margin-bottom: 18px;
	color: rgba(255, 255, 255, .75);
}

html body .iq-why__item--featured .iq-btn {
	padding: 10px 20px !important;
	font-size: 13px !important;
}

.iq-why__item--featured .iq-btn {
	align-self: flex-start;
}

/* ---------- Teachers ---------- */

.home [data-id="ea014bd"] {
	padding: 100px 0 !important;
	background: var(--iq-cream) !important;
}

.home [data-id="ea0390c"] {
	text-align: center;
}

.home [data-id="ea0401a"] {
	display: none;
}

/* Equal height teacher cards */
.home [data-id="ea03d9b"] > .elementor-widget-container > .row {
	display: flex;
	flex-wrap: wrap;
}

.home [data-id="ea03d9b"] .teacher-col {
	display: flex;
}

.home [data-id="ea03d9b"] .teacher_content {
	width: 100%;
}

.home [data-id="ea03d9b"] .teacher_content {
	margin-bottom: 30px;
	padding: 16px 16px 24px;
	border: 1px solid rgba(0, 46, 91, .08);
	border-radius: 18px;
	background: #fff;
	text-align: center;
	transition: transform .25s ease, box-shadow .25s ease;
}

.home [data-id="ea03d9b"] .teacher_content:hover {
	box-shadow: 0 18px 36px rgba(0, 29, 58, .12);
	transform: translateY(-5px);
}

.home [data-id="ea03d9b"] .teacher_img {
	overflow: hidden;
	margin-bottom: 18px;
	border-radius: 14px;
	background: linear-gradient(160deg, #eef2f7 0%, var(--iq-cream) 100%);
}

.home [data-id="ea03d9b"] .teacher_img img {
	width: 100%;
	mix-blend-mode: multiply;
}

/* The social links on the cards are placeholders */
.home [data-id="ea03d9b"] .expert_socials {
	display: none !important;
}

.home [data-id="ea03d9b"] .title {
	margin: 0 0 4px;
	color: var(--iq-navy) !important;
	font-size: 19px;
	font-weight: 600;
}

.home [data-id="ea03d9b"] .job {
	display: inline-block;
	margin-bottom: 12px;
	padding: 3px 12px;
	border-radius: 20px;
	background: rgba(201, 162, 74, .16);
	color: #9a7526 !important;
	font-size: 12px;
	font-weight: 600;
}

.home [data-id="ea03d9b"] .teacher_content p,
.home [data-id="ea03d9b"] .teacher_content .content {
	color: var(--iq-muted);
	font-size: 14px;
	line-height: 1.65;
}

/* ---------- Student reviews (post list shown as testimonials) ---------- */

.home [data-id="ea0413d"] {
	margin: 0 !important;
	padding: 60px 0 100px !important;
}

.home [data-id="b6a8ac8"] {
	color: var(--iq-gold) !important;
	font-family: "Poppins", sans-serif;
	font-size: 13px !important;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
}

.home [data-id="ea05e0b"] > .elementor-widget-container > .post_list_main_section_wrapper > .row {
	display: flex;
	flex-wrap: wrap;
}

.home [data-id="ea05e0b"] .post_list_content_unit {
	position: relative;
	height: 100%;
	margin-bottom: 30px;
	padding: 34px 30px 30px;
	border: 1px solid rgba(0, 46, 91, .08);
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 10px 28px rgba(0, 29, 58, .06);
	transition: transform .25s ease, box-shadow .25s ease;
}

.home [data-id="ea05e0b"] .post_list_content_unit:hover {
	box-shadow: 0 18px 36px rgba(0, 29, 58, .12);
	transform: translateY(-4px);
}

.home [data-id="ea05e0b"] .post_list_content_unit:before {
	content: "\f10d";
	display: block;
	margin-bottom: 14px;
	color: rgba(201, 162, 74, .55);
	font-family: "Font Awesome 6 Free", "Font Awesome 5 Free";
	font-size: 34px;
	font-weight: 900;
}

/* Date box, category line and separator do not belong on a review */
.home [data-id="ea05e0b"] .post_list_content_unit > .row > div:first-child,
.home [data-id="ea05e0b"] .post_list_cats,
.home [data-id="ea05e0b"] .short_separator {
	display: none !important;
}

.home [data-id="ea05e0b"] .post_list_content_unit > .row {
	margin: 0;
}

.home [data-id="ea05e0b"] .post_list_content_unit > .row > div:last-child {
	width: 100%;
	padding: 0;
}

.home [data-id="ea05e0b"] .post_list_inner_content_unit {
	display: flex;
	flex-direction: column-reverse;
	margin: 0 !important;
}

.home [data-id="ea05e0b"] .post_list_item_excerpt {
	margin-bottom: 20px;
	color: var(--iq-muted);
	font-size: 15px;
	font-style: italic;
	line-height: 1.8;
}

.home [data-id="ea05e0b"] .post_list_item_title {
	display: flex;
	align-items: center;
	gap: 12px;
	color: var(--iq-navy) !important;
	font-size: 17px !important;
	font-weight: 600;
}

.home [data-id="ea05e0b"] .post_list_item_title:before {
	content: "\f007";
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: var(--iq-navy);
	color: var(--iq-gold);
	font-family: "Font Awesome 6 Free", "Font Awesome 5 Free";
	font-size: 15px;
	font-weight: 900;
}

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

@media (max-width: 1024px) {
	.iq-why__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.home [data-id="de96932"] > .elementor-widget-wrap:after {
		right: 0;
	}
}

@media (max-width: 767px) {
	.home [data-id="2ac8718b"],
	.home [data-id="e9efc0e"],
	.home [data-id="ea014bd"] {
		padding: 60px 0 !important;
	}

	.home [data-id="9d47196"] .elementor-heading-title,
	.home [data-id="cf79846"] .elementor-heading-title,
	.home [data-id="1b2ceb8"] .elementor-heading-title {
		font-size: 30px !important;
	}

	.iq-why {
		padding: 40px 18px;
	}

	.iq-why__head h2 {
		font-size: 30px;
	}

	.iq-why__grid {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	.home [data-id="de96932"] > .elementor-widget-wrap:before,
	.home [data-id="40222f6b"] img {
		animation: none;
	}
}
