/**
 * Homepage — hero slider, products, why+video, testimonials, FAQ, WhatsApp.
 */

/* Flush hero directly under header */
body.athar-home .athar-header,
body.athar-home .athar-header.has-background {
	border-bottom: none;
	box-shadow: none;
}

body.athar-home .athar-header-inner {
	padding-bottom: 0.5rem;
}

body.athar-home .athar-hero-wrap {
	margin-top: -0.5rem !important;
}

body.athar-home header.wp-block-template-part {
	margin-bottom: 0;
}

body.athar-home .wp-site-blocks {
	gap: 0;
}

body.athar-home .wp-site-blocks > main {
	margin-block-start: 0 !important;
}

body.athar-home main.wp-block-group {
	margin-top: 0;
	padding-top: 0;
	gap: 0;
}

body.athar-home .wp-block-post-content {
	margin-block-start: 0;
	padding-top: 0;
	gap: 0;
}

body.athar-home .athar-hero-wrap {
	margin-top: 0 !important;
	margin-bottom: 0;
	padding-top: 0;
	padding-bottom: 0;
}

body.athar-home .athar-hero-wrap.wp-block-group {
	gap: 0;
}

body.athar-home .wp-block-post-content > .wp-block-group:first-child,
body.athar-home .wp-block-post-content > .wp-block-shortcode:first-child {
	margin-block-start: 0;
}

body.athar-home .wp-block-post-content > .athar-section,
body.athar-home .wp-block-post-content > .wp-block-group.athar-hero-wrap {
	margin-block: 0;
}

/*
 * Homepage section spacing: color on <section>, rhythm on .athar-container.
 * At boundaries, gap is split across both sections (half each) so total
 * breathing room stays generous without stacking two full colored bands.
 */
body.athar-home {
	--athar-home-section-space: clamp(3rem, 6vw, 5rem);
	--athar-home-section-gap: clamp(1.75rem, 3.5vw, 3rem);
}

body.athar-home .wp-block-post-content > .athar-section {
	padding-block: 0;
	padding-inline: 1rem;
}

body.athar-home .wp-block-post-content > .athar-section > .athar-container {
	padding-block: var(--athar-home-section-space);
}

body.athar-home .wp-block-post-content > .athar-section + .athar-section > .athar-container {
	padding-block-start: var(--athar-home-section-gap);
}

body.athar-home .wp-block-post-content > .athar-section:has(+ .athar-section) > .athar-container {
	padding-block-end: var(--athar-home-section-gap);
}

body.athar-home .wp-block-post-content > .wp-block-group.athar-hero-wrap + .athar-section > .athar-container {
	padding-block-start: var(--athar-home-section-space);
}

.athar-container {
	width: min(100% - 2rem, 1200px);
	margin-inline: auto;
}

.athar-home .athar-section__head {
	text-align: center;
	margin-bottom: 2rem;
}

.athar-section__title {
	margin: 0;
	color: var(--athar-navy);
	font-size: clamp(1.5rem, 3vw, 2rem);
}

.athar-section__subtitle {
	margin: 0.5rem 0 0;
	color: var(--athar-muted);
	font-size: 1.05rem;
}

.athar-section__footer {
	text-align: center;
	margin-top: 2rem;
}

.athar-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.65rem 1.35rem;
	border-radius: 999px;
	font-weight: 700;
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.athar-btn--outline {
	background: var(--athar-surface);
	color: var(--athar-navy);
	border: 2px solid var(--athar-border);
}

.athar-btn--outline:hover {
	border-color: var(--athar-teal);
	color: var(--athar-teal);
}

.athar-empty {
	text-align: center;
	color: var(--athar-muted);
	padding: 2rem;
	background: var(--athar-surface);
	border: 1px dashed var(--athar-border);
	border-radius: var(--athar-radius);
}

/* Hero slider — edge-to-edge without 100vw (avoids horizontal scrollbar) */
.athar-home .athar-hero-wrap,
.athar-home .athar-hero-slider {
	width: 100%;
	max-width: 100%;
	margin-inline: 0;
	margin-top: 0;
}

/* If the hero sits inside a constrained content column, span the full row safely */
body.athar-home .is-layout-constrained > .athar-hero-wrap,
body.athar-home .is-layout-constrained > .wp-block-group.athar-hero-wrap {
	max-width: none;
	width: 100%;
	margin-inline: 0;
}

.athar-hero-slider {
	position: relative;
	overflow: hidden;
	background: var(--athar-navy);
}

.athar-hero-slider__viewport {
	overflow: hidden;
	width: 100%;
	aspect-ratio: 1920 / 600;
	direction: ltr;
}

.athar-hero-slider__track {
	display: flex;
	width: 100%;
	height: 100%;
	transition: transform 0.6s ease;
	will-change: transform;
}

.athar-hero-slider__slide {
	flex: 0 0 100%;
	width: 100%;
	height: 100%;
}

.athar-hero-slider__link,
.athar-hero-slider__media {
	display: block;
	width: 100%;
	height: 100%;
	line-height: 0;
}

.athar-hero-slider__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: top center;
}

.athar-hero-slider__img--mobile {
	display: none;
}

@media (min-width: 769px) {
	.athar-hero-slider--no-desktop {
		display: none;
	}

	.athar-hero-slider__slide--mobile-only {
		display: none;
	}
}

.athar-hero-slider__dots {
	position: absolute;
	inset-inline: 0;
	bottom: 1rem;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
}

.athar-hero-slider__dot {
	width: 10px;
	height: 10px;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.55);
	cursor: pointer;
	padding: 0;
	transition: transform 0.2s ease, background 0.2s ease;
}

.athar-hero-slider__dot.is-active {
	background: var(--athar-teal);
	transform: scale(1.15);
}

/* Products grid */
.athar-products-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.25rem;
}

.athar-product-card {
	background: var(--athar-surface);
	border: 1px solid var(--athar-border);
	border-radius: var(--athar-radius);
	overflow: hidden;
	box-shadow: var(--athar-shadow);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.athar-product-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 32px rgba(21, 44, 78, 0.12);
}

.athar-product-card__media {
	display: block;
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--athar-bg);
}

.athar-product-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.athar-product-card__badge {
	position: absolute;
	top: 0.65rem;
	inset-inline-start: 0.65rem;
	background: var(--athar-gold);
	color: var(--athar-navy);
	font-size: 0.75rem;
	font-weight: 700;
	padding: 0.2rem 0.55rem;
	border-radius: 999px;
}

.athar-product-card__badge--soon {
	background: var(--athar-navy);
	color: #fff;
}

.athar-product-card__cart--soon {
	background: var(--athar-border) !important;
	color: var(--athar-muted) !important;
	cursor: default;
	pointer-events: none;
}

.athar-product-card__body {
	padding: 1rem 1.1rem 1.15rem;
}

.athar-product-card__title {
	margin: 0 0 0.4rem;
	font-size: 1rem;
	line-height: 1.35;
}

.athar-product-card__title a {
	color: var(--athar-navy);
	text-decoration: none;
}

.athar-product-card__title a:hover {
	color: var(--athar-teal);
}

.athar-product-card__excerpt {
	margin: 0 0 0.75rem;
	font-size: 0.88rem;
	color: var(--athar-muted);
	line-height: 1.55;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.athar-product-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding-top: 0.75rem;
	border-top: 1px solid var(--athar-border);
}

.athar-product-card__price {
	font-weight: 700;
	color: var(--athar-navy);
	font-size: 0.95rem;
}

.athar-product-card__cart {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.45rem 0.85rem !important;
	background: var(--athar-gold) !important;
	color: var(--athar-navy) !important;
	border-radius: 999px !important;
	font-size: 0.82rem !important;
	font-weight: 700 !important;
	text-decoration: none !important;
	white-space: nowrap;
}

.athar-product-card__cart:hover {
	background: #e09a2e !important;
}

/* How it works — three steps */
.athar-section--how-it-works {
	background: var(--athar-surface);
}

.athar-how-steps {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.25rem;
	counter-reset: athar-how;
}

.athar-how-step {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 1.75rem 1.25rem;
	background: var(--athar-bg);
	border: 1px solid var(--athar-border);
	border-radius: var(--athar-radius);
	box-shadow: var(--athar-shadow);
}

.athar-how-step__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 3.25rem;
	height: 3.25rem;
	margin-bottom: 0.85rem;
	border-radius: 50%;
	background: rgba(14, 142, 159, 0.12);
	font-size: 1.5rem;
	line-height: 1;
}

.athar-how-step__title {
	margin: 0 0 0.5rem;
	font-size: 1.05rem;
	color: var(--athar-navy);
}

.athar-how-step__text {
	margin: 0;
	font-size: 0.9375rem;
	line-height: 1.6;
	color: var(--athar-muted);
	max-width: 16rem;
}

.athar-how-step__arrow {
	display: none;
	position: absolute;
	top: 50%;
	inset-inline-start: -0.85rem;
	transform: translateY(-50%);
	color: var(--athar-teal);
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1;
}

@media (min-width: 769px) {
	.athar-how-step:not(:first-child) .athar-how-step__arrow {
		display: block;
	}
}

.athar-how-steps__cta {
	font-size: 0.9375rem;
}

@media (max-width: 768px) {
	.athar-how-steps {
		grid-template-columns: 1fr;
		max-width: 22rem;
		margin-inline: auto;
	}

	.athar-how-step__arrow {
		display: none !important;
	}
}

/* Teacher app promo */
.athar-section--teacher-app {
	background: var(--athar-navy);
	color: #fff;
}

.athar-teacher-app {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	gap: clamp(1.5rem, 4vw, 3rem);
	align-items: center;
}

.athar-teacher-app__eyebrow {
	margin: 0 0 0.5rem;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: var(--athar-gold);
}

.athar-teacher-app__title {
	margin: 0 0 1rem;
	font-size: clamp(1.65rem, 3vw, 2.25rem);
	line-height: 1.25;
	color: #fff;
}

.athar-teacher-app__text {
	margin: 0 0 1.25rem;
	font-size: 1rem;
	line-height: 1.75;
	color: rgba(255, 255, 255, 0.88);
	max-width: 36rem;
}

.athar-teacher-app__note {
	margin: 0 0 1.5rem;
}

.athar-teacher-app__note span {
	display: inline-block;
	padding: 0.4rem 0.85rem;
	border-radius: 999px;
	background: rgba(14, 142, 159, 0.22);
	border: 1px solid rgba(14, 142, 159, 0.45);
	color: #d7f6fa;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.4;
}

.athar-teacher-app__cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
}

.athar-teacher-app__store-link {
	display: block;
	width: 11rem;
	max-width: 100%;
	line-height: 0;
	transition: opacity 0.15s ease, transform 0.15s ease;
}

.athar-teacher-app__store-link:hover {
	opacity: 0.92;
	transform: translateY(-2px);
}

.athar-teacher-app__store-badge {
	display: block;
	width: 11rem;
	max-width: 100%;
	height: auto;
	max-height: 3.25rem;
	object-fit: contain;
	object-position: center right;
}

.athar-teacher-app__visual {
	min-width: 0;
}

.athar-teacher-app__visual-frame {
	position: relative;
	border-radius: calc(var(--athar-radius) + 4px);
	overflow: hidden;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.12);
	box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.athar-teacher-app__media {
	display: block;
	width: 100%;
	height: auto;
}

.athar-teacher-app__media--video {
	aspect-ratio: 16 / 10;
	object-fit: cover;
	background: rgba(0, 0, 0, 0.2);
}

.athar-teacher-app__media--image {
	aspect-ratio: 4 / 3;
	object-fit: contain;
	padding: 1.25rem;
	background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
}

.athar-teacher-app__media--image.is-animated {
	animation: athar-teacher-float 4.5s ease-in-out infinite;
}

@keyframes athar-teacher-float {
	0%,
	100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(-10px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.athar-teacher-app__media--image.is-animated {
		animation: none;
	}
}

/* Why + video */
.athar-section--why-video {
	background: var(--athar-surface);
}

.athar-why-video-grid {
	display: grid;
	gap: 2.5rem;
	align-items: center;
}

.athar-why-video-grid--both {
	grid-template-columns: 1fr 1fr;
	direction: ltr;
}

.athar-why-video__col--features {
	direction: rtl;
}

.athar-why-features {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	position: relative;
}

.athar-why-features::before {
	content: "";
	position: absolute;
	top: 2.6rem;
	bottom: 2.6rem;
	inset-inline-start: calc(1.35rem + 26px);
	width: 2px;
	background: rgba(21, 44, 78, 0.12);
	z-index: 0;
}

.athar-why-feature {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 1.15rem;
	padding: 1.15rem 1.35rem;
	background: var(--athar-bg);
	border: 1px solid var(--athar-border);
	border-radius: var(--athar-radius);
	box-shadow: var(--athar-shadow);
	transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

.athar-why-feature:hover,
.athar-why-feature:focus-within {
	background: var(--athar-navy);
	border-color: var(--athar-navy);
	box-shadow: 0 8px 24px rgba(21, 44, 78, 0.28);
}

.athar-why-feature__icon-wrap {
	flex-shrink: 0;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: rgba(14, 142, 159, 0.12);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.3s ease;
}

.athar-why-feature:hover .athar-why-feature__icon-wrap,
.athar-why-feature:focus-within .athar-why-feature__icon-wrap {
	background: rgba(255, 255, 255, 0.18);
}

.athar-why-feature__icon {
	font-size: 1.45rem;
	line-height: 1;
}

.athar-why-feature__body {
	flex: 1;
	min-width: 0;
	text-align: right;
}

.athar-why-feature__title {
	margin: 0 0 0.35rem;
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--athar-navy);
	transition: color 0.3s ease;
}

.athar-why-feature__text {
	margin: 0;
	font-size: 0.92rem;
	line-height: 1.65;
	color: var(--athar-muted);
	transition: color 0.3s ease;
}

.athar-why-feature:hover .athar-why-feature__title,
.athar-why-feature:hover .athar-why-feature__text,
.athar-why-feature:focus-within .athar-why-feature__title,
.athar-why-feature:focus-within .athar-why-feature__text {
	color: #fff;
}

.athar-video-wrap {
	width: 100%;
	border-radius: var(--athar-radius);
	overflow: hidden;
	box-shadow: 0 10px 36px rgba(21, 44, 78, 0.12);
	background: var(--athar-navy);
}

.athar-video {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	background: var(--athar-navy);
}

.athar-video-placeholder {
	position: relative;
	aspect-ratio: 16 / 10;
	background: var(--athar-navy);
	overflow: hidden;
}

.athar-video-placeholder__poster {
	width: 100%;
	height: 100%;
	object-fit: contain;
	opacity: 0.35;
	padding: 2rem;
}

.athar-video-placeholder__overlay {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	color: #fff;
	text-align: center;
	background: rgba(21, 44, 78, 0.55);
}

.athar-video-placeholder__play {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--athar-gold);
	color: var(--athar-navy);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.25rem;
	padding-inline-start: 4px;
}

.athar-video-placeholder__overlay p {
	margin: 0;
	font-weight: 600;
}

/* Testimonials */
.athar-testimonials__viewport {
	overflow: hidden;
	width: 100%;
	direction: ltr;
}

.athar-testimonials__track {
	display: flex;
	transition: transform 0.55s ease;
	will-change: transform;
}

.athar-testimonials__page {
	flex: 0 0 100%;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.15rem;
}

.athar-testimonial-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-height: 190px;
	padding: 1.25rem 1.35rem;
	border: 1px solid var(--athar-border);
	border-radius: var(--athar-radius);
	background: var(--athar-surface);
	text-align: center;
	box-shadow: var(--athar-shadow);
}

.athar-stars {
	display: inline-flex;
	gap: 0.15rem;
	margin-bottom: 0.65rem;
	color: #d1d5db;
	font-size: 1.25rem;
}

.athar-stars__star.is-filled {
	color: var(--athar-gold);
}

.athar-testimonial-card__quote {
	margin: 0 0 0.75rem;
	flex: 1;
}

.athar-testimonial-card__quote p {
	margin: 0;
	color: var(--athar-text);
	font-size: 0.95rem;
	line-height: 1.65;
}

.athar-testimonial-card__author {
	font-style: normal;
	font-weight: 700;
	font-size: 0.95rem;
	color: var(--athar-teal);
}

.athar-testimonials__dots {
	display: flex;
	justify-content: center;
	gap: 0.4rem;
	margin-top: 1.5rem;
}

.athar-testimonials__dot {
	width: 10px;
	height: 10px;
	border: none;
	border-radius: 50%;
	background: var(--athar-border);
	cursor: pointer;
	padding: 0;
}

.athar-testimonials__dot.is-active {
	background: var(--athar-teal);
}

/* FAQ */
.athar-section--faq {
	background: var(--athar-bg);
}

.athar-faq__list {
	max-width: 760px;
	margin-inline: auto;
}

.athar-faq__item {
	border-bottom: 1px solid var(--athar-border);
	overflow: hidden;
	transition: background 0.35s ease, border-radius 0.35s ease;
}

.athar-faq__item:first-child {
	border-top: 1px solid var(--athar-border);
}

.athar-faq__item.is-open {
	background: rgba(14, 142, 159, 0.08);
	border-radius: 10px;
	border-bottom-color: rgba(14, 142, 159, 0.08);
}

.athar-faq__question {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.15rem 0.75rem;
	margin: 0;
	border: none;
	background: transparent;
	font: inherit;
	font-weight: 600;
	text-align: right;
	cursor: pointer;
	color: var(--athar-text);
	transition: color 0.25s ease;
}

.athar-faq__item.is-open .athar-faq__question,
.athar-faq__question.is-open {
	color: var(--athar-teal);
}

.athar-faq__plus {
	flex-shrink: 0;
	width: 1.75rem;
	height: 1.75rem;
	font-size: 1.5rem;
	font-weight: 300;
	line-height: 1;
	color: var(--athar-teal);
	transition: transform 0.25s ease;
}

.athar-faq__question.is-open .athar-faq__plus {
	transform: rotate(45deg);
}

.athar-faq__answer {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows 0.35s ease;
}

.athar-faq__item.is-open .athar-faq__answer {
	grid-template-rows: 1fr;
}

.athar-faq__answer-inner {
	overflow: hidden;
	padding: 0 0.75rem;
	color: var(--athar-muted);
}

.athar-faq__item.is-open .athar-faq__answer-inner {
	padding-bottom: 1.15rem;
	color: var(--athar-text);
}

.athar-faq__answer-inner p:first-child {
	margin-top: 0;
}

.athar-faq__answer-inner a {
	color: var(--athar-teal);
}

/* WhatsApp float — bottom corner, equal inset (RTL: start = right) */
body.athar-home .athar-whatsapp-float {
	--athar-whatsapp-inset: 1.25rem;
	position: fixed;
	inset-inline-start: var(--athar-whatsapp-inset);
	inset-inline-end: auto;
	bottom: var(--athar-whatsapp-inset);
	z-index: 90;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: #25d366;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.athar-home .athar-whatsapp-float:hover {
	transform: scale(1.06);
	box-shadow: 0 8px 28px rgba(37, 211, 102, 0.55);
	color: #fff;
}

/* Responsive */
@media (max-width: 1024px) {
	.athar-products-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.athar-testimonials__page {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 768px) {
	.athar-hero-slider__viewport {
		aspect-ratio: 1080 / 1350;
	}

	.athar-hero-slider__img--desktop {
		display: none;
	}

	.athar-hero-slider__img--mobile {
		display: block;
	}

	.athar-why-video-grid--both {
		grid-template-columns: 1fr;
		direction: rtl;
	}

	.athar-teacher-app {
		grid-template-columns: 1fr;
	}

	.athar-teacher-app__visual {
		order: -1;
		max-width: 28rem;
		margin-inline: auto;
		width: 100%;
	}

	.athar-teacher-app__content {
		text-align: center;
	}

	.athar-teacher-app__text {
		margin-inline: auto;
	}

	.athar-teacher-app__cta {
		justify-content: center;
	}

	.athar-teacher-app__store-link,
	.athar-teacher-app__store-badge {
		margin-inline: auto;
		object-position: center;
	}

	.athar-products-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 480px) {
	body.athar-home .athar-whatsapp-float {
		--athar-whatsapp-inset: 1rem;
		width: 50px;
		height: 50px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.athar-hero-slider__track,
	.athar-testimonials__track,
	.athar-faq__answer {
		transition: none;
	}
}
