/**
 * Special Offers — hub (template-special-offers.php) and offer details
 * (single-special_offer.php). Hero, process steps, and final CTA come from
 * style.css + mcafee-acf-sections.css; this file only adds the offer pieces.
 */

/* ---------- Offers grid ---------- */
.mc-offers-section {
	padding: 72px 24px;
	background: #f7f7f9;
}

.mc-offers-section--more {
	background: #fff;
}

.mc-offers-container {
	max-width: 1200px;
	margin: 0 auto;
}

.mc-offers-header {
	text-align: center;
	margin-bottom: 40px;
}

.mc-offers-header .section-badge {
	margin-bottom: 8px;
}

.mc-offers-header h2 {
	font-size: clamp(1.8rem, 2.8vw, 2.4rem);
	margin: 8px 0 12px;
	color: #1a1a1a;
}

.mc-offers-header p {
	max-width: 680px;
	margin: 0 auto;
	color: #555;
	line-height: 1.65;
}

/* Capped column width + centring keeps a short row (e.g. the two cards in
   "More Special Offers") centred instead of hugging the left edge. */
.mc-offers-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 360px));
	justify-content: center;
	gap: 28px;
}

.mc-offers-empty {
	text-align: center;
	color: #555;
	font-size: 1.05rem;
}

.mc-offers-all {
	text-align: center;
	margin: 36px 0 0;
}

/* ---------- Offer card ---------- */
.mc-offer-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.35);
	height: 100%;
}

.mc-offer-card__top {
	position: relative;
	background: linear-gradient(135deg, #eb1c29 0%, #b8121c 100%);
	color: #fff;
	text-align: center;
	padding: 32px 24px 28px;
}

/* Perforated tear line between the two halves of the ticket. */
.mc-offer-card__top::after {
	content: "";
	position: absolute;
	left: 18px;
	right: 18px;
	bottom: 0;
	border-bottom: 2px dashed rgba(255, 255, 255, 0.55);
}

.mc-offer-card__amount {
	font-family: 'Nunito', sans-serif;
	font-size: clamp(3rem, 5vw, 3.75rem);
	font-weight: 900;
	line-height: 1;
	margin: 0 0 10px;
	color: #fff;
}

.mc-offer-card__amount-label {
	font-size: 0.45em;
	font-weight: 800;
	letter-spacing: 0.04em;
	vertical-align: 0.55em;
	margin-left: 2px;
}

.mc-offer-card .mc-offer-card__headline {
	font-family: 'Nunito', sans-serif;
	font-size: 1.5rem;
	font-weight: 800;
	line-height: 1.2;
	margin: 0;
	color: #fff;
	text-transform: none;
}

.mc-offer-card__body {
	display: flex;
	flex-direction: column;
	align-items: center;
	flex: 1;
	text-align: center;
	padding: 24px 24px 22px;
}

/* Its bottom margin is the minimum gap above the button; the button's auto
   top margin then pins it (and the fine print) to the card foot, so buttons
   line up across a row whatever the copy length. */
.mc-offer-card__info {
	margin-bottom: 22px;
}

.mc-offer-card__service {
	font-size: 1.05rem;
	font-weight: 600;
	color: #1a1a1a;
	line-height: 1.5;
	margin: 0 0 6px;
}

.mc-offer-card__regular {
	font-size: 0.95rem;
	color: #6b6b6b;
	margin: 0;
}

.mc-offer-card__btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: auto;
	padding: 12px 24px;
	border-radius: 999px;
	border: 2px solid #eb1c29;
	color: #eb1c29;
	font-weight: 700;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.mc-offer-card__btn:hover,
.mc-offer-card__btn:focus-visible {
	background: #eb1c29;
	color: #fff;
}

.mc-offer-card__fine {
	margin: 0;
	padding-top: 16px;
	font-size: 0.8rem;
	color: #777;
}

/* ---------- Offer terms strip ---------- */
.mc-offer-terms {
	padding: 28px 24px;
	background: #fff;
	border-top: 1px solid #ececf0;
}

.mc-offer-terms__inner {
	max-width: 900px;
	margin: 0 auto;
	text-align: center;
}

.mc-offer-terms p {
	font-size: 0.85rem;
	line-height: 1.6;
	color: #666;
	margin: 0 0 8px;
}

.mc-offer-terms p:last-child {
	margin-bottom: 0;
}

/* ---------- Details page ---------- */
.mc-offer-expired {
	background: #fff4e5;
	border-bottom: 1px solid #f3d9b1;
	padding: 16px 24px;
	text-align: center;
}

.mc-offer-expired p {
	margin: 0;
	font-weight: 600;
	color: #6b4400;
}

.mc-offer-expired a {
	color: #eb1c29;
}

.mc-offer-detail {
	padding: 72px 24px;
	background: #fff;
}

.mc-offer-detail__layout {
	max-width: 1100px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: minmax(280px, 380px) 1fr;
	gap: 56px;
	align-items: start;
}

.mc-offer-detail__title {
	font-size: clamp(1.6rem, 2.4vw, 2rem);
	margin: 0 0 18px;
	color: #1a1a1a;
}

.mc-offer-detail__list {
	list-style: none;
	margin: 0 0 24px;
	padding: 0;
}

.mc-offer-detail__list li {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	padding: 10px 0;
	border-bottom: 1px solid #f0f0f3;
	font-size: 1.05rem;
	line-height: 1.5;
	color: #333;
}

.mc-offer-detail__list i {
	color: #eb1c29;
	margin-top: 4px;
}

.mc-offer-detail__prose,
.mc-offer-detail__prose p {
	font-size: 1rem;
	line-height: 1.7;
	color: #333;
}

.mc-offer-detail__cta {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 28px;
}

.mc-offer-detail__cta a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	height: 56px;
	min-width: 210px;
}

/* .hero-secondary-btn is a white outline for dark heroes, every property
   !important (style.css). On this white section it needs ink instead. */
.mc-offer-detail__cta .hero-secondary-btn {
	border-color: #1a1a1a !important;
	color: #1a1a1a !important;
}

.mc-offer-detail__cta .hero-secondary-btn:hover,
.mc-offer-detail__cta .hero-secondary-btn:focus-visible {
	background: #1a1a1a !important;
	color: #fff !important;
}

.mc-offer-detail__note {
	margin: 14px 0 0;
	font-size: 0.9rem;
	color: #666;
}

.mc-offer-detail__note a {
	color: #eb1c29;
}

.mc-offer-related {
	padding: 56px 24px 0;
	background: #fff;
}

.mc-offer-related h2 {
	font-size: 1.4rem;
	margin: 0 0 16px;
	color: #1a1a1a;
	text-align: center;
}

.mc-offer-related__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
}

.mc-offer-related__list a {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 12px 20px;
	border: 1px solid #e3e3e8;
	border-radius: 10px;
	color: #1a1a1a;
	font-weight: 700;
	text-decoration: none;
	transition: border-color 0.2s ease, color 0.2s ease;
}

.mc-offer-related__list a:hover,
.mc-offer-related__list a:focus-visible {
	border-color: #eb1c29;
	color: #eb1c29;
}

.mc-offer-related__list i {
	color: #eb1c29;
	font-size: 0.85em;
}

@media (max-width: 860px) {
	.mc-offer-detail__layout {
		grid-template-columns: 1fr;
		gap: 36px;
	}

	.mc-offer-detail__card {
		max-width: 420px;
		width: 100%;
		margin: 0 auto;
	}
}
