/* ============================================
   McAfee FAQ Template
   Hero mirrors .careers-hero-section.
   ============================================ */

.mcafee-faq {
	font-family: 'Nunito', sans-serif;
	color: #2b2b2b;
	background: #fff;
}

.faq-container {
	max-width: 1080px;
	margin: 0 auto;
	padding: 0 20px;
}

/* ---------- Hero (matches careers-hero-section) ---------- */
.faq-hero-section {
	position: relative;
	/* Restore the header buffer (clobbered if we used `padding: 0` here) and
	 * give the badge/title 100px of breathing room below the bars so they
	 * don't read as "under the menu". */
	padding: calc(var(--mc-header-h) + 100px) 0 0;
	background-position: center center !important;
	background-size: cover !important;
	background-repeat: no-repeat !important;
	min-height: 575px;
	display: flex;
	align-items: center;
}

.faq-hero-section > * {
	position: relative;
	z-index: 2;
	width: 100%;
}

.faq-hero-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.6);
	z-index: 1;
}

.faq-hero-content {
	max-width: 1200px;
	margin: 0 auto;
	text-align: center;
	position: relative;
	z-index: 2;
	padding: 60px 20px;
}

.faq-hero-badge {
	display: inline-block;
	padding: 8px 25px;
	background: #eb1c29;
	color: #fff;
	border-radius: 25px;
	font-size: 12px;
	letter-spacing: 2px;
	font-weight: 700;
	margin-bottom: 30px;
	text-transform: uppercase;
}

.faq-hero-title {
	font-size: 52px;
	font-weight: 800;
	color: #ffffff !important;
	margin: 0 0 20px;
	line-height: 1.2;
	font-family: 'Nunito', sans-serif;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.faq-hero-subtitle {
	font-size: 20px;
	color: #ffffff !important;
	margin: 0 auto 40px;
	max-width: 760px;
	text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
	line-height: 1.6;
}

/* Jump-to-category chips */
.faq-hero-jump {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	max-width: 800px;
	margin: 0 auto;
}

.faq-hero-jump__link {
	display: inline-block;
	padding: 8px 18px;
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.4);
	color: #fff !important;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.faq-hero-jump__link:hover {
	background: #eb1c29;
	border-color: #eb1c29;
}

/* ---------- Intro ---------- */
.faq-intro {
	padding: 70px 0 30px;
	text-align: center;
}

.faq-intro__eyebrow {
	display: inline-block;
	padding: 6px 18px;
	background: rgba(235, 28, 41, 0.1);
	color: #eb1c29;
	border-radius: 999px;
	font-size: 12px;
	letter-spacing: 2px;
	font-weight: 700;
	margin-bottom: 18px;
	text-transform: uppercase;
}

.faq-intro__title {
	font-size: 36px;
	font-weight: 800;
	color: #1a1a1a;
	margin: 0 0 16px;
	line-height: 1.2;
}

.faq-intro__copy {
	font-size: 17px;
	line-height: 1.7;
	color: #555;
	max-width: 780px;
	margin: 0 auto;
}

/* ---------- FAQ Groups ---------- */
.faq-groups {
	padding: 40px 0 80px;
}

.faq-group {
	margin: 0 0 50px;
	scroll-margin-top: 160px;
}

.faq-group__title {
	font-size: 28px;
	font-weight: 800;
	color: #1a1a1a;
	margin: 0 0 8px;
	padding-bottom: 14px;
	border-bottom: 3px solid #eb1c29;
	display: inline-block;
}

.faq-group__intro {
	font-size: 16px;
	color: #555;
	margin: 12px 0 20px;
	line-height: 1.6;
}

.faq-group__list {
	margin-top: 20px;
	border-top: 1px solid #e5e5e5;
}

.faq-item {
	border-bottom: 1px solid #e5e5e5;
	background: #fff;
}

.faq-item[open] {
	background: #fafafa;
}

.faq-item__q {
	list-style: none;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
	padding: 22px 8px;
	font-size: 18px;
	font-weight: 700;
	color: #1a1a1a;
	transition: color 0.2s ease;
}

.faq-item__q::-webkit-details-marker {
	display: none;
}

.faq-item__q:hover {
	color: #eb1c29;
}

.faq-item__q-text {
	flex: 1;
}

.faq-item__icon {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #eb1c29;
	position: relative;
	flex-shrink: 0;
	transition: transform 0.25s ease;
}

.faq-item__icon::before,
.faq-item__icon::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	background: #fff;
	transition: transform 0.25s ease;
}

.faq-item__icon::before {
	width: 12px;
	height: 2px;
	transform: translate(-50%, -50%);
}

.faq-item__icon::after {
	width: 2px;
	height: 12px;
	transform: translate(-50%, -50%);
}

.faq-item[open] .faq-item__icon::after {
	transform: translate(-50%, -50%) rotate(90deg);
	opacity: 0;
}

.faq-item__a {
	padding: 0 8px 24px;
	font-size: 16px;
	line-height: 1.7;
	color: #444;
	max-width: 880px;
}

.faq-item__a p {
	margin: 0 0 14px;
}

.faq-item__a p:last-child {
	margin-bottom: 0;
}

.faq-item__a a {
	color: #eb1c29;
	text-decoration: underline;
}

/* ---------- Final CTA ---------- */
.faq-final-cta {
	background: linear-gradient(135deg, #b81621 0%, #eb1c29 100%);
	padding: 70px 20px;
	color: #fff;
	text-align: center;
}

.faq-final-cta__title {
	font-size: 36px;
	font-weight: 800;
	margin: 0 0 14px;
	color: #fff !important;
	line-height: 1.2;
}

.faq-final-cta__copy {
	font-size: 18px;
	line-height: 1.6;
	max-width: 720px;
	margin: 0 auto 30px;
	color: #fff;
}

.faq-final-cta__actions {
	display: flex;
	gap: 16px;
	justify-content: center;
	flex-wrap: wrap;
}

.faq-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 28px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 16px;
	text-decoration: none !important;
	transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
	border: 2px solid transparent;
}

.faq-btn--red {
	background: #fff;
	color: #eb1c29 !important;
}

.faq-btn--red:hover {
	transform: translateY(-2px);
	background: #1a1a1a;
	color: #fff !important;
}

.faq-btn--outline {
	background: transparent;
	color: #fff !important;
	border-color: #fff;
}

.faq-btn--outline:hover {
	background: #fff;
	color: #eb1c29 !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
	.faq-hero-section {
		min-height: 520px;
	}

	.faq-hero-title {
		font-size: 34px;
	}

	.faq-hero-subtitle {
		font-size: 16px;
	}

	.faq-intro {
		padding: 50px 0 20px;
	}

	.faq-intro__title,
	.faq-final-cta__title {
		font-size: 28px;
	}

	.faq-group__title {
		font-size: 22px;
	}

	.faq-item__q {
		font-size: 16px;
		padding: 18px 6px;
	}

	.faq-item__a {
		font-size: 15px;
		padding: 0 6px 20px;
	}

	.faq-final-cta {
		padding: 50px 20px;
	}
}
