/**
 * New Addiction Template (addiction-template-2026.php)
 * Loaded only when this template is used (in head; no inline duplicate).
 * Hero LCP: <img> with fetchpriority=high, loading=eager, decoding=async in markup.
 * Hero rules below are critical above-the-fold; single source in this file only.
 */

.new-addiction-template {
	box-sizing: border-box;
}

/* ========== Base: list reset (shared so we don’t repeat list-style/padding) ========== */
.new-addiction-template .hero-bullets,
.new-addiction-template .anchor-dropdown__menu {
	list-style: none;
	padding: 0;
}

.new-addiction-template .hero-bullets {
	margin: 0 0 1em;
}

.new-addiction-template .hero-bullets li {
	margin-bottom: 0.5em;
}

/* Hero: LCP image + layout (critical above-the-fold; single source in this stylesheet). */
.new-addiction-template .hero {
	position: relative;
	overflow: hidden;
}
.new-addiction-template .hero__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	z-index: 0;
}
.new-addiction-template .hero .nat-breadcrumb,
.new-addiction-template .hero .anchor-dropdown,
.new-addiction-template .hero h1,
.new-addiction-template .hero .hero-bullets,
.new-addiction-template .hero .hero-ctas {
	position: relative;
	z-index: 1;
}

.new-addiction-template .hero h1 {
	margin: 0 0 0.5em;
}

@media (min-width: 768px) {
	.new-addiction-template .hero h1 {
		font-size: 42px;
	}
}

/* Breadcrumbs: parent links light grey/white; current page gold with underline; ">" separators */
.new-addiction-template .nat-breadcrumb {
	margin-bottom: 1rem;
	font-size: 15px;
	font-family: 'Montserrat', sans-serif;
	color: rgba(255, 255, 255, 0.85);
}
.new-addiction-template .nat-breadcrumb a {
	color: rgba(255, 255, 255, 0.9);
	text-decoration: none;
}
.new-addiction-template .nat-breadcrumb a:hover {
	color: #fff;
}
.new-addiction-template .nat-breadcrumb .breadcrumb_last {
	color: #E5C352;
	text-decoration: underline;
	text-underline-offset: 3px;
	background: none;
	padding: 0;
}
.new-addiction-template .nat-breadcrumb .breadcrumb_last:hover {
	color: #d4ad40;
}

/* Anchor dropdown (jump to section). Menu hidden by default; .is-open modifier shows it. */
.new-addiction-template .anchor-dropdown {
	position: relative;
}

.new-addiction-template .anchor-dropdown__toggle {
	cursor: pointer;
}

.new-addiction-template .anchor-dropdown__menu {
	display: none;
	margin: 0;
}

.new-addiction-template .anchor-dropdown.is-open .anchor-dropdown__menu {
	display: block;
}

.new-addiction-template .anchor-dropdown__menu a {
	display: block;
}

/* Key takeaways – summary box above Introduction */
.new-addiction-template .key-takeaways {
	background-color: #f5f5f2;
	border-radius: 8px;
	padding: 1.5rem 1.75rem;
	margin-bottom: 2rem;
}
.new-addiction-template .key-takeaways__title {
	font-family: 'Montserrat', sans-serif;
	font-size: 1.25rem;
	font-weight: 600;
	color: #3d4235;
	margin: 0 0 1rem;
}
.new-addiction-template .key-takeaways__list {
	margin: 0;
	padding-left: 1.25em;
	font-size: 1rem;
	line-height: 1.6;
	color: #45483b;
}
.new-addiction-template .key-takeaways__item {
	margin-bottom: 0.5em;
}
.new-addiction-template .key-takeaways__item:last-child {
	margin-bottom: 0;
}

/* Content block */
.new-addiction-template .content-block {
	margin-top: 2em;
}

.new-addiction-template .content-block h2 {
	margin: 0 0 0.5em;
}

.new-addiction-template .content-block .content {
	margin-bottom: 1em;
}

.new-addiction-template .content-block .content p {
	margin: 0 0 1em;
}

.new-addiction-template .content-block .content p:last-child {
	margin-bottom: 0;
}

/* When there are only 2 column boxes (e.g. Substance / Behavioural addictions), widen them */
.new-addiction-template .content-block .content .wp-block-columns.has-2-columns,
.new-addiction-template .content-block .content .wp-block-columns:has(.wp-block-column:nth-child(2):last-child) {
	max-width: 1000px;
	margin-left: auto;
	margin-right: auto;
	gap: 32px;
}
.new-addiction-template .content-block .content .wp-block-columns.has-2-columns .wp-block-column,
.new-addiction-template .content-block .content .wp-block-columns:has(.wp-block-column:nth-child(2):last-child) .wp-block-column {
	flex: 1 1 calc(50% - 16px);
	min-width: 300px;
}

/* CTA button – reusable primary action link */
.new-addiction-template .cta-button {
	display: inline-block;
	font-weight: 600;
	color: #3d4235; /* Dark olive text to match primary CTA brand colour */
}
.new-addiction-template .cta-button:hover,
.new-addiction-template .cta-button:focus {
	color: #3d4235;
}

/* Hero CTAs: primary + Free brochure – same as Homepage V2 (desktop) */
.new-addiction-template .hero-ctas {
	display: flex;
	flex-direction: column;
	gap: 12px;
	align-items: flex-start;
	margin-top: 1.5rem;
}
.new-addiction-template .hero .cta-button {
	background: #E5C352;
	color: #000 !important;
	padding: 0 24px;
	border-radius: 6px;
	font-size: 18px;
	font-weight: 600;
	text-decoration: none;
	border: none;
	box-sizing: border-box;
	width: 291px;
	height: 62px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	margin-bottom: 0;
}
.new-addiction-template .hero .cta-button:hover,
.new-addiction-template .hero .cta-button:focus {
	background: #d4ad40;
	color: #000 !important;
}
.new-addiction-template .hero .cta-button--white {
	background: #fff !important;
	color: #000 !important;
	border: 2px solid #E5C352;
}
.new-addiction-template .hero .cta-button--white:hover,
.new-addiction-template .hero .cta-button--white:focus {
	background: #fefefe !important;
	color: #000 !important;
	border-color: #d4ad40;
}

@media (max-width: 768px) {
	/* Hero CTAs: match Homepage V2 mobile – full width, 12px gap, same stacking as anchor links */
	.new-addiction-template .hero-ctas {
		align-items: center;
		width: 100%;
		margin-bottom: 32px;
	}
	.new-addiction-template .hero .cta-button {
		width: 100%;
		max-width: none;
		padding: 16px 24px;
		text-align: center;
		margin-bottom: 0;
	}
}

/* ========== FAQs – same styling as Addiction Treatment / Homepage V2 ========== */
.new-addiction-template .faqs { padding: 80px 0; background-color: #ffffff; }
.new-addiction-template .faqs__inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.new-addiction-template .faqs__heading { text-align: center; font-family: 'Montserrat', sans-serif; font-size: 44px; font-weight: 600; color: #767A4C; margin: 0 0 60px 0; letter-spacing: -0.3px; line-height: 1.2; }
.new-addiction-template .faqs__list { display: flex; flex-direction: column; gap: 16px; max-width: 900px; margin: 0 auto; }
.new-addiction-template .faqs__item { display: flex; flex-direction: column; border: 1px solid #e5e5e5; border-radius: 8px; background-color: #ffffff; transition: all 0.3s ease; }
.new-addiction-template .faqs__item:hover { border-color: #767A4C; box-shadow: 0 2px 8px rgba(118, 122, 76, 0.1); }
.new-addiction-template .faqs__item.active { border-color: #767A4C; box-shadow: 0 4px 12px rgba(118, 122, 76, 0.15); }
.new-addiction-template .faqs__question { width: 100%; height: auto; padding: 24px 28px; background-color: #ffffff; border: none; text-align: left; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: 600; color: #767A4C; transition: all 0.3s ease; outline: none; box-sizing: border-box; }
.new-addiction-template .faqs__question:hover { background-color: #f9f9f9; color: #767A4C; }
.new-addiction-template .faqs__question:focus { outline: 2px solid #767A4C; outline-offset: -2px; color: #767A4C; }
.new-addiction-template .faqs__question:active { background-color: #ffffff; color: #767A4C; }
.new-addiction-template .faqs__item.active .faqs__question { background-color: #ffffff; color: #767A4C; }
.new-addiction-template .faqs__item.active .faqs__question:hover { background-color: #ffffff; color: #767A4C; }
.new-addiction-template .faqs__question-text { flex: 1; min-width: 0; line-height: 1.5; white-space: normal; overflow: visible; color: inherit; }
.new-addiction-template .faqs__icon { font-size: 28px; font-weight: 300; color: #767A4C; line-height: 1; transition: transform 0.3s ease; flex-shrink: 0; width: 28px; height: 28px; margin-left: 12px; display: flex; align-items: center; justify-content: center; }
.new-addiction-template .faqs__item.active .faqs__icon { transform: rotate(45deg); }
.new-addiction-template .faqs__answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; background-color: #ffffff; }
.new-addiction-template .faqs__item.active .faqs__answer { max-height: 2000px; padding: 0 28px 24px 28px; }
.new-addiction-template .faqs__answer-content { font-family: 'Montserrat', sans-serif; font-size: 16px; line-height: 1.7; color: #45483b; padding-top: 8px; }
.new-addiction-template .faqs__answer-content p { margin: 0 0 12px 0; }
.new-addiction-template .faqs__answer-content p:last-child { margin-bottom: 0; }

/* ========== Helpful resources and references (numbered list with links) ========== */
.new-addiction-template .helpful-resources { padding: 80px 0; background-color: #ffffff; }
.new-addiction-template .helpful-resources__inner { max-width: 900px; margin: 0 auto; padding: 0 24px; }
.new-addiction-template .helpful-resources__heading { font-family: 'Montserrat', sans-serif; font-size: 44px; font-weight: 600; color: #767A4C; margin: 0 0 24px 0; letter-spacing: -0.3px; line-height: 1.2; }
.new-addiction-template .helpful-resources__list { margin: 0; padding-left: 1.5em; font-family: 'Montserrat', sans-serif; font-size: 16px; line-height: 1.7; color: #45483b; }
.new-addiction-template .helpful-resources__item { margin-bottom: 0.5em; }
.new-addiction-template .helpful-resources__item a { color: #767A4C; text-decoration: underline; text-underline-offset: 2px; }
.new-addiction-template .helpful-resources__item a:hover { color: #45483b; }

@media (max-width: 768px) {
	.new-addiction-template .faqs { padding: 60px 0; }
	.new-addiction-template .faqs__inner { padding: 0 16px; }
	.new-addiction-template .faqs__heading { font-size: 34px; margin-bottom: 40px; }
	.new-addiction-template .faqs__question { display: flex; justify-content: space-between; align-items: flex-start; padding: 20px 16px; gap: 16px; color: #767A4C; }
	.new-addiction-template .faqs__question-text { flex: 1; min-width: 0; white-space: normal; word-wrap: break-word; overflow-wrap: break-word; overflow: visible; }
	.new-addiction-template .faqs__icon { flex-shrink: 0; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; align-self: flex-start; font-size: 24px; }
	.new-addiction-template .faqs__item.active .faqs__answer { padding: 0 16px 20px 16px; }
	.new-addiction-template .helpful-resources { padding: 60px 0; }
	.new-addiction-template .helpful-resources__inner { padding: 0 16px; }
	.new-addiction-template .helpful-resources__heading { font-size: 34px; margin-bottom: 20px; }
}
