/**
 * MARA Theme — Help Centre / FAQs
 */

.help {
	--help-red: var(--mara-primary, #c62828);
	--help-gold: var(--mara-secondary, #d4a017);
	--help-navy: #101820;
	--help-ink: #101820;
	--help-glass: #ffffff;
	--help-line: rgba(16, 24, 32, 0.1);
	--help-muted: #5c6570;
	--help-radius: 1rem;
	--help-radius-lg: 1.15rem;
	--help-primary: var(--help-red);
	--help-surface: #f7f6f2;
	color: var(--help-ink);
	background: #fff;
	overflow-x: clip;
}

.help__section-bg,
.help__hero-bg,
.help__cta-bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	overflow: hidden;
}

.help__fx-grid {
	position: absolute;
	inset: 0;
	opacity: 0.45;
	background-image:
		linear-gradient(rgba(198, 40, 40, 0.05) 1px, transparent 1px),
		linear-gradient(90deg, rgba(198, 40, 40, 0.05) 1px, transparent 1px);
	background-size: 44px 44px;
	mask-image: radial-gradient(ellipse at 50% 20%, #000 15%, transparent 72%);
	-webkit-mask-image: radial-gradient(ellipse at 50% 20%, #000 15%, transparent 72%);
}

.help__fx-grid--soft {
	opacity: 0.28;
	mask-image: radial-gradient(ellipse at 50% 40%, #000 10%, transparent 75%);
	-webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 10%, transparent 75%);
}

.help__fx-beam {
	position: absolute;
	top: -35%;
	right: -8%;
	width: 42%;
	height: 170%;
	background: linear-gradient(115deg, transparent 40%, rgba(212, 160, 23, 0.1) 50%, transparent 62%);
	transform: rotate(-8deg);
	animation: help-beam 10s ease-in-out infinite;
}

.help__fx-beam--cta {
	left: -10%;
	right: auto;
	animation-duration: 12s;
}

.help__fx-orb {
	position: absolute;
	border-radius: 50%;
	filter: blur(2px);
}

.help__fx-orb--a {
	width: 14rem;
	height: 14rem;
	top: -3rem;
	right: 8%;
	background: radial-gradient(circle, rgba(212, 160, 23, 0.32), transparent 70%);
	animation: help-orb 9s ease-in-out infinite alternate;
}

.help__fx-orb--b {
	width: 11rem;
	height: 11rem;
	bottom: -2rem;
	left: 4%;
	background: radial-gradient(circle, rgba(198, 40, 40, 0.26), transparent 70%);
	animation: help-orb 11s ease-in-out infinite alternate-reverse;
}

.help__fx-orb--c {
	width: 16rem;
	height: 16rem;
	top: 10%;
	right: -4rem;
	background: radial-gradient(circle, rgba(212, 160, 23, 0.18), transparent 70%);
	animation: help-orb 12s ease-in-out infinite alternate;
}

.help__fx-orb--d {
	width: 13rem;
	height: 13rem;
	bottom: -3rem;
	left: 12%;
	background: radial-gradient(circle, rgba(120, 190, 255, 0.14), transparent 70%);
	animation: help-orb 10s ease-in-out infinite alternate-reverse;
}

.help__fx-orb--e {
	width: 18rem;
	height: 18rem;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: radial-gradient(circle, rgba(212, 160, 23, 0.22), transparent 68%);
	animation: help-orb 8s ease-in-out infinite alternate;
}

@keyframes help-orb {
	from { translate: 0 0; }
	to { translate: 0.6rem -0.8rem; }
}

@keyframes help-beam {
	0%,
	100% { opacity: 0.55; }
	50% { opacity: 1; }
}

.help__eyebrow {
	margin: 0 0 0.55rem;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--help-red);
}

.help__section-header {
	position: relative;
	z-index: 1;
	margin-bottom: clamp(1.35rem, 3vw, 2rem);
}

.help__section-header--center {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.help__section-title {
	margin: 0;
	font-family: var(--mara-font-heading);
	font-size: clamp(1.55rem, 3vw, 2.15rem);
	font-weight: 800;
	color: var(--help-ink);
	letter-spacing: -0.02em;
}

.help__section-header--center .help__section-title::after {
	content: '';
	display: block;
	width: 2.75rem;
	height: 2px;
	margin: 0.65rem auto 0;
	border-radius: 999px;
	background: linear-gradient(90deg, transparent, var(--help-red), transparent);
}

.help__section-intro {
	margin: 0.75rem auto 0;
	max-width: 40rem;
	color: var(--help-muted);
	line-height: 1.6;
	font-size: 0.98rem;
}

.help__icon {
	width: 1.15rem;
	height: 1.15rem;
	flex-shrink: 0;
}

.help__btn {
	min-height: 3rem;
	padding: 0.85rem 1.35rem;
	border-radius: 0.75rem;
	font-weight: 700;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

.help__btn--on-dark {
	background: #fff;
	color: var(--help-navy);
	border: 1px solid rgba(255, 255, 255, 0.9);
}

.help__btn--on-dark:hover,
.help__btn--on-dark:focus-visible {
	background: #fff;
	color: var(--help-ink);
}

.help__btn--ghost {
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.55);
	color: #fff;
}

.help__btn--ghost:hover,
.help__btn--ghost:focus-visible {
	background: rgba(255, 255, 255, 0.12);
	border-color: #fff;
	color: #fff;
}

.help__btn:focus-visible {
	outline: 2px solid var(--help-gold);
	outline-offset: 3px;
}

/* Hero */
.help__hero {
	position: relative;
	isolation: isolate;
	padding: clamp(1.25rem, 3vw, 2rem) 0 clamp(1.5rem, 3.5vw, 2.25rem);
	overflow: hidden;
	background:
		radial-gradient(ellipse 55% 50% at 12% 20%, rgba(198, 40, 40, 0.08), transparent 70%),
		radial-gradient(ellipse 45% 40% at 88% 10%, rgba(212, 160, 23, 0.1), transparent 65%),
		var(--help-surface);
}

.help__hero-grid,
.help__hero-copy,
.help__hero-media {
	position: relative;
	z-index: 1;
}

.help__hero-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: clamp(1.25rem, 3vw, 2rem);
	align-items: center;
}

@media (min-width: 960px) {
	.help__hero-grid {
		grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
	}
}

.help__title {
	margin: 0 0 0.55rem;
	font-family: var(--mara-font-heading);
	font-size: clamp(1.75rem, 3.8vw, 2.55rem);
	font-weight: 800;
	line-height: 1.1;
	color: var(--help-ink);
	letter-spacing: -0.02em;
}

.help__intro {
	margin: 0;
	max-width: 36rem;
	font-size: 1rem;
	line-height: 1.55;
	color: var(--help-muted);
}

.help__search {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	max-width: 40rem;
	margin: 0 auto 1rem;
	padding: 0.4rem 0.4rem 0.4rem 1rem;
	border-radius: 0.95rem;
	background: #fff;
	border: 1px solid var(--help-line);
	box-shadow: 0 10px 28px rgba(16, 24, 32, 0.06);
}

.help__search:focus-within {
	border-color: rgba(198, 40, 40, 0.45);
	box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.12);
}

.help__search-icon {
	display: inline-flex;
	color: var(--help-red);
}

.help__search-input {
	flex: 1;
	min-width: 0;
	border: 0;
	background: transparent;
	font: inherit;
	color: var(--help-ink);
	padding: 0.65rem 0.35rem;
}

.help__search-input::placeholder {
	color: #9aa3ad;
}

.help__search-input:focus {
	outline: none;
}

.help__search-btn {
	border-radius: 0.7rem;
	padding: 0.7rem 1.2rem;
	flex-shrink: 0;
}

.help__popular {
	position: relative;
	z-index: 1;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.55rem;
	margin: 0 0 1.75rem;
}

.help__popular-label {
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--help-muted);
}

.help__popular-list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.45rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.help__popular-chip {
	padding: 0.4rem 0.85rem;
	border-radius: 999px;
	border: 1px solid var(--help-line);
	background: #fff;
	color: var(--help-ink);
	font-size: 0.85rem;
	font-weight: 600;
	cursor: pointer;
	transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.help__popular-chip:hover,
.help__popular-chip:focus-visible {
	border-color: rgba(198, 40, 40, 0.4);
	background: rgba(198, 40, 40, 0.06);
	color: var(--help-red);
}

.help__popular-chip:focus-visible {
	outline: 2px solid var(--help-gold);
	outline-offset: 2px;
}

.help__hero-media {
	position: relative;
	isolation: isolate;
	margin: 0;
	width: min(100%, 28rem);
	aspect-ratio: 2 / 1;
	justify-self: center;
	padding: 0 0.75rem 0.75rem 0;
}

@media (min-width: 960px) {
	.help__hero-media {
		width: 100%;
		max-width: none;
		justify-self: stretch;
		padding: 0 0.9rem 0.9rem 0;
	}
}

.help__hero-media-glow {
	position: absolute;
	inset: 8% -6% -10% 6%;
	border-radius: 50%;
	background: radial-gradient(
		ellipse at center,
		rgba(212, 160, 23, 0.28) 0%,
		rgba(198, 40, 40, 0.16) 42%,
		transparent 72%
	);
	z-index: 0;
	pointer-events: none;
	filter: blur(12px);
}

.help__hero-media-plate {
	position: absolute;
	top: 0.85rem;
	right: 0;
	bottom: 0;
	left: 0.85rem;
	border-radius: var(--help-radius-lg);
	background: linear-gradient(150deg, #c62828 0%, #8e1b1b 45%, var(--help-gold) 100%);
	box-shadow: 0 14px 28px rgba(16, 24, 32, 0.16);
	z-index: 1;
	pointer-events: none;
}

.help__hero-hud {
	position: absolute;
	inset: 0.35rem 0.95rem 0.95rem 0.2rem;
	border: 1px solid rgba(255, 255, 255, 0.35);
	pointer-events: none;
	z-index: 3;
}

.help__hero-hud::before,
.help__hero-hud::after {
	content: '';
	position: absolute;
	width: 1.15rem;
	height: 1.15rem;
	border: 2px solid #fff;
}

.help__hero-hud::before {
	top: -1px;
	left: -1px;
	border-right: 0;
	border-bottom: 0;
}

.help__hero-hud::after {
	right: -1px;
	bottom: -1px;
	border-left: 0;
	border-top: 0;
}

.help__hero-media-frame {
	position: relative;
	display: block;
	height: 100%;
	border-radius: var(--help-radius-lg);
	overflow: hidden;
	background: var(--help-surface);
	border: 1px solid var(--help-line);
	box-shadow: 0 18px 36px rgba(16, 24, 32, 0.12);
	z-index: 2;
	animation: help-hero-float 5.5s ease-in-out infinite;
}

.help__hero-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 40%;
}

@keyframes help-hero-float {
	0%,
	100% { transform: translate3d(0, 0, 0); }
	50% { transform: translate3d(0, -8px, 0); }
}

/* Categories */
.help__categories {
	position: relative;
	isolation: isolate;
	padding: clamp(2rem, 5vw, 3.25rem) 0;
	background: #fff;
}

.help__categories .mara-container {
	position: relative;
	z-index: 1;
}

.help__category-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.9rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 720px) {
	.help__category-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1100px) {
	.help__category-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.help__category-card {
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
	height: 100%;
	padding: 1.2rem 1.15rem 1.3rem;
	border-radius: var(--help-radius);
	background: #fff;
	border: 1px solid var(--help-line);
	box-shadow: 0 10px 24px rgba(16, 24, 32, 0.05);
	text-decoration: none;
	color: inherit;
	position: relative;
	overflow: hidden;
	transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
}

.help__category-card::before {
	content: '';
	position: absolute;
	inset: 0 auto auto 0;
	width: 100%;
	height: 3px;
	background: linear-gradient(90deg, var(--help-red), transparent 75%);
	opacity: 0.95;
}

.help__category-card:hover,
.help__category-card:focus-visible {
	transform: translateY(-4px);
	border-color: rgba(198, 40, 40, 0.28);
	background: #fff;
	box-shadow: 0 18px 36px rgba(16, 24, 32, 0.1);
}

.help__category-card:focus-visible {
	outline: 2px solid var(--help-red);
	outline-offset: 2px;
}

.help__category-card--admissions::before { background: linear-gradient(90deg, var(--help-red), transparent 75%); }
.help__category-card--programmes::before { background: linear-gradient(90deg, var(--help-gold), transparent 75%); }
.help__category-card--fees-financial-aid::before { background: linear-gradient(90deg, #2e7d32, transparent 75%); }
.help__category-card--accommodation::before { background: linear-gradient(90deg, #ef6c00, transparent 75%); }
.help__category-card--student-life::before { background: linear-gradient(90deg, #1976d2, transparent 75%); }
.help__category-card--library-buku::before { background: linear-gradient(90deg, #8d6e63, transparent 75%); }
.help__category-card--digital-services::before { background: linear-gradient(90deg, #00838f, transparent 75%); }
.help__category-card--graduation::before { background: linear-gradient(90deg, var(--help-red), transparent 75%); }
.help__category-card--general::before { background: linear-gradient(90deg, #546e7a, transparent 75%); }

.help__category-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.6rem;
	height: 2.6rem;
	margin-bottom: 0.35rem;
	border-radius: 0.75rem;
	background: rgba(198, 40, 40, 0.08);
	border: 1px solid rgba(198, 40, 40, 0.16);
	color: var(--help-red);
}

.help__category-title {
	font-family: var(--mara-font-heading);
	font-size: 1.05rem;
	font-weight: 800;
	color: var(--help-ink);
}

.help__category-text {
	font-size: 0.9rem;
	line-height: 1.5;
	color: var(--help-muted);
}

/* FAQ accordion */
.help__faqs {
	position: relative;
	isolation: isolate;
	padding: clamp(2rem, 5vw, 3.5rem) 0;
	background: var(--help-surface);
}

.help__faqs-inner {
	position: relative;
	z-index: 1;
	max-width: 52rem;
}

.help__empty {
	margin: 0 0 1.25rem;
	padding: 1rem 1.15rem;
	border-radius: var(--help-radius);
	background: rgba(198, 40, 40, 0.08);
	border: 1px solid rgba(198, 40, 40, 0.2);
	color: var(--help-red);
	font-weight: 600;
	text-align: center;
}

.help__faq-group {
	margin-bottom: 1.75rem;
	padding: 1.1rem 1.05rem 1.15rem;
	border-radius: var(--help-radius-lg);
	background: #fff;
	border: 1px solid var(--help-line);
	box-shadow: 0 10px 24px rgba(16, 24, 32, 0.05);
}

.help__faq-group.is-hidden,
.help__faq-item.is-hidden {
	display: none;
}

.help__faq-group-header {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	margin-bottom: 0.85rem;
}

.help__faq-group-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.1rem;
	height: 2.1rem;
	border-radius: 0.55rem;
	background: rgba(198, 40, 40, 0.08);
	border: 1px solid rgba(198, 40, 40, 0.16);
	color: var(--help-red);
}

.help__faq-group-title {
	margin: 0;
	font-family: var(--mara-font-heading);
	font-size: 1.1rem;
	font-weight: 800;
	color: var(--help-ink);
}

.help__accordion {
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
}

.help__faq-item {
	border-radius: 0.85rem;
	background: #fafaf8;
	border: 1px solid var(--help-line);
	overflow: hidden;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.help__faq-item.is-open {
	border-color: rgba(198, 40, 40, 0.28);
	background: #fff;
	box-shadow: 0 10px 24px rgba(16, 24, 32, 0.06);
}

.help__faq-heading {
	margin: 0;
}

.help__faq-trigger {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	width: 100%;
	padding: 0.95rem 1.15rem;
	border: 0;
	background: transparent;
	text-align: left;
	font-family: var(--mara-font-heading);
	font-size: 0.98rem;
	font-weight: 700;
	color: var(--help-ink);
	cursor: pointer;
}

.help__faq-trigger:focus-visible {
	outline: 2px solid var(--help-red);
	outline-offset: -2px;
}

.help__faq-chevron {
	display: inline-flex;
	color: var(--help-red);
	transition: transform 0.22s ease;
}

.help__faq-trigger[aria-expanded='true'] .help__faq-chevron {
	transform: rotate(180deg);
}

.help__faq-panel {
	padding: 0 1.15rem 1.1rem;
}

.help__faq-answer p {
	margin: 0 0 0.75rem;
	font-size: 0.95rem;
	line-height: 1.65;
	color: var(--help-muted);
}

.help__faq-answer p:last-child {
	margin-bottom: 0;
}

.help__faq-answer a {
	color: var(--help-red);
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.help__faq-answer a:hover,
.help__faq-answer a:focus-visible {
	color: #8e1b1b;
}

.help mark {
	background: rgba(212, 160, 23, 0.28);
	color: var(--help-ink);
	padding: 0 0.1em;
	border-radius: 0.15em;
}

/* Support */
.help__support {
	position: relative;
	isolation: isolate;
	padding: clamp(2.25rem, 5vw, 3.5rem) 0;
	background: #fff;
}

.help__support .mara-container {
	position: relative;
	z-index: 1;
}

.help__support-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.9rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.help__support-grid > li {
	width: 100%;
	max-width: 22.5rem;
}

@media (min-width: 720px) {
	.help__support-grid > li {
		width: calc(50% - 0.45rem);
		max-width: none;
	}
}

@media (min-width: 1100px) {
	.help__support-grid > li {
		width: calc(33.333% - 0.6rem);
	}
}

.help__support-card {
	height: 100%;
	padding: 1.25rem 1.15rem 1.35rem;
	border-radius: var(--help-radius);
	background: #fff;
	border: 1px solid var(--help-line);
	box-shadow: 0 10px 24px rgba(16, 24, 32, 0.05);
	position: relative;
	overflow: hidden;
	transition: transform 0.28s ease, border-color 0.28s ease;
}

.help__support-card::before {
	content: '';
	position: absolute;
	inset: 0 auto auto 0;
	width: 100%;
	height: 3px;
	background: linear-gradient(90deg, var(--help-red), transparent 75%);
}

.help__support-card--fees::before { background: linear-gradient(90deg, #2e7d32, transparent 75%); }
.help__support-card--digital::before { background: linear-gradient(90deg, #00838f, transparent 75%); }
.help__support-card--library::before { background: linear-gradient(90deg, var(--help-gold), transparent 75%); }
.help__support-card--general::before { background: linear-gradient(90deg, #546e7a, transparent 75%); }

.help__support-card:hover,
.help__support-card:focus-within {
	transform: translateY(-3px);
	border-color: rgba(198, 40, 40, 0.28);
}

.help__support-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	margin-bottom: 0.75rem;
	border-radius: 0.7rem;
	background: rgba(198, 40, 40, 0.08);
	border: 1px solid rgba(198, 40, 40, 0.16);
	color: var(--help-red);
}

.help__support-name {
	margin: 0 0 0.4rem;
	font-family: var(--mara-font-heading);
	font-size: 1.08rem;
	font-weight: 800;
	color: var(--help-ink);
}

.help__support-text {
	margin: 0 0 0.95rem;
	font-size: 0.92rem;
	line-height: 1.5;
	color: var(--help-muted);
}

.help__support-actions {
	margin: 0;
	padding: 0;
	list-style: none;
}

.help__support-actions li + li {
	margin-top: 0.4rem;
}

.help__support-actions a {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	color: var(--help-red);
	font-weight: 700;
	font-size: 0.9rem;
	text-decoration: none;
}

.help__support-actions a:hover,
.help__support-actions a:focus-visible {
	color: #8e1b1b;
	text-decoration: underline;
}

.help__support-actions a:focus-visible {
	outline: 2px solid var(--help-red);
	outline-offset: 2px;
}

.help__support-actions .help__icon {
	width: 1rem;
	height: 1rem;
}

/* CTA */
.help__cta {
	position: relative;
	isolation: isolate;
	padding: clamp(2.5rem, 6vw, 4rem) 0;
	background: linear-gradient(145deg, #101820 0%, #1a2430 48%, #2a1214 100%);
	text-align: center;
	overflow: hidden;
}

.help__cta-inner {
	position: relative;
	z-index: 1;
}

.help__cta-title {
	margin: 0 0 0.7rem;
	font-family: var(--mara-font-heading);
	font-size: clamp(1.7rem, 3.5vw, 2.5rem);
	font-weight: 800;
	color: #fff;
}

.help__cta-intro {
	margin: 0 auto 1.35rem;
	max-width: 34rem;
	color: rgba(255, 255, 255, 0.82);
	line-height: 1.6;
}

.help__cta-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.75rem;
}

@media (max-width: 719px) {
	.help__search {
		flex-wrap: wrap;
		border-radius: 1rem;
		padding: 0.75rem;
	}

	.help__search-btn {
		width: 100%;
		justify-content: center;
	}

	.help__cta-actions {
		flex-direction: column;
		align-items: stretch;
	}

	.help__cta-actions .help__btn,
	.help__cta-actions .mara-btn {
		justify-content: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	.help__hero-media-frame,
	.help__fx-orb--a,
	.help__fx-orb--b,
	.help__fx-orb--c,
	.help__fx-orb--d,
	.help__fx-orb--e,
	.help__fx-beam,
	.help__fx-beam--cta {
		animation: none;
	}
}
