/*
 * Insights page (page-insights.php) only.
 * Everything is scoped to .cc-insights so the site header/footer are untouched.
 */

.cc-insights {
	--cc-navy: #0f4876;
	--cc-navy-light: #2b6194;
	--cc-blue: #38b5e6;
	--cc-grey: #f3f3f3;
	--cc-placeholder: #e3e3e3;
	--cc-border: #dcdfe3;
	--cc-text: #333333;
	--cc-heading: #000000;
	--cc-gap: 24px;

	background: #ffffff;
	color: var(--cc-text);
	font-family: 'charter', Georgia, serif;
	font-size: 15px;
	line-height: 1.8;
}

/* Reset the global theme typography inside this page */
.cc-insights h1,
.cc-insights h2,
.cc-insights h3,
.cc-insights p,
.cc-insights ul {
	margin: 0;
	padding: 0;
}
.cc-insights h1,
.cc-insights h2,
.cc-insights h3 {
	font-family: 'Futura', 'Trebuchet MS', sans-serif;
	font-weight: normal;
	color: var(--cc-heading);
	line-height: 1.2;
}
.cc-insights ul {
	list-style: none;
}
.cc-insights a {
	transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}

.cc-insights .cc-wrap {
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 24px;
	box-sizing: border-box;
}

/* ---------- Shared pieces ---------- */

.cc-insights .cc-eyebrow {
	font-family: 'Futura', 'Trebuchet MS', sans-serif;
	font-size: 11px;
	font-weight: bold;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: var(--cc-navy);
	margin-bottom: 10px;
}

.cc-insights .cc-section {
	padding: 80px 0;
}
.cc-insights .cc-section--grey {
	background: var(--cc-grey);
}
.cc-insights .cc-section h2 {
	font-size: 40px;
	margin-bottom: 14px;
}
.cc-insights .cc-intro {
	margin-bottom: 40px;
}

.cc-insights .cc-btn {
	display: inline-block;
	padding: 11px 22px;
	border: 1px solid var(--cc-navy);
	font-family: 'Futura', 'Trebuchet MS', sans-serif;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 1px;
	line-height: 1.4;
	text-transform: uppercase;
	text-decoration: none;
	text-align: center;
}
.cc-insights .cc-btn--small {
	padding: 7px 16px;
	font-size: 11px;
}
.cc-insights .cc-btn--solid {
	background: var(--cc-navy);
	color: #ffffff;
}
.cc-insights .cc-btn--solid:hover {
	background: var(--cc-blue);
	border-color: var(--cc-blue);
	color: #ffffff !important; /* beats global a:hover !important */
}
.cc-insights .cc-btn--outline-light {
	border-color: rgba(255, 255, 255, .7);
	color: #ffffff;
}
.cc-insights .cc-btn--outline-light:hover {
	background: #ffffff;
	border-color: #ffffff;
	color: var(--cc-navy) !important;
}

.cc-insights .cc-link {
	font-family: 'Futura', 'Trebuchet MS', sans-serif;
	font-size: 11px;
	font-weight: bold;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--cc-navy);
	text-decoration: none;
	white-space: nowrap;
}

.cc-insights .cc-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 28px;
	margin-top: 40px;
}

.cc-insights :focus-visible {
	outline: 2px solid var(--cc-blue);
	outline-offset: 2px;
}

/* ---------- Hero ---------- */

.cc-insights .cc-hero {
	background: var(--cc-navy);
	color: #ffffff;
	padding: 72px 0 80px;
}
.cc-insights .cc-hero .cc-eyebrow {
	color: var(--cc-blue);
}
.cc-insights .cc-hero h1 {
	color: #ffffff;
	font-size: 48px;
	margin-bottom: 18px;
}
.cc-insights .cc-lead {
	max-width: 620px;
	color: #ffffff;
	margin-bottom: 30px;
}
.cc-insights .cc-hero__nav {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

/* ---------- Cards (news + success stories) ---------- */

.cc-insights .cc-news {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--cc-gap);
}
.cc-insights .cc-card {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--cc-border);
	background: #ffffff;
}
.cc-insights .cc-card__media {
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--cc-placeholder);
}
.cc-insights .cc-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.cc-insights .cc-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: flex-start;
	padding: 24px;
}
.cc-insights .cc-card__meta {
	font-family: 'Futura', 'Trebuchet MS', sans-serif;
	font-size: 10px;
	font-weight: bold;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #444444;
	margin-bottom: 10px;
}
.cc-insights .cc-card__meta-plain {
	font-size: 13px;
	margin-bottom: 8px;
}
.cc-insights .cc-card__title {
	font-size: 20px;
	color: var(--cc-navy);
	margin-bottom: 10px;
}
.cc-insights .cc-card__title a {
	color: inherit;
	text-decoration: none;
}
.cc-insights .cc-card__text {
	font-size: 14px;
	margin-bottom: 18px;
}
.cc-insights .cc-card .cc-link,
.cc-insights .cc-card .cc-btn,
.cc-insights .cc-story .cc-link {
	margin-top: auto;
}
.cc-insights .cc-badge {
	display: inline-block;
	background: var(--cc-navy);
	color: #ffffff;
	font-family: 'Futura', 'Trebuchet MS', sans-serif;
	font-size: 10px;
	font-weight: bold;
	letter-spacing: 1px;
	text-transform: uppercase;
	padding: 3px 8px;
	margin-bottom: 12px;
}

.cc-insights .cc-social {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: 'Futura', 'Trebuchet MS', sans-serif;
	font-size: 13px;
	color: var(--cc-navy);
	text-decoration: none;
}

/* ---------- Archive pagination (News / Success Stories archives) ---------- */

.cc-insights .cc-pagination {
	margin-top: 48px;
}
.cc-insights .cc-pagination .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
}
.cc-insights .cc-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}
.cc-insights .cc-pagination .page-numbers {
	display: inline-block;
	min-width: 40px;
	padding: 8px 12px;
	box-sizing: border-box;
	border: 1px solid var(--cc-border);
	font-family: 'Futura', 'Trebuchet MS', sans-serif;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 1px;
	line-height: 1.4;
	text-align: center;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--cc-navy);
}
.cc-insights .cc-pagination a.page-numbers:hover {
	border-color: var(--cc-navy);
	color: var(--cc-navy) !important; /* beats global a:hover !important */
}
.cc-insights .cc-pagination .page-numbers.current {
	background: var(--cc-navy);
	border-color: var(--cc-navy);
	color: #ffffff;
}
.cc-insights .cc-pagination .page-numbers.dots {
	border-color: transparent;
}

/* ---------- Success stories carousel ---------- */

.cc-insights .cc-carousel {
	display: flex;
	align-items: center;
	gap: 20px;
}
.cc-insights .cc-carousel__viewport {
	display: flex;
	flex: 1;
	min-width: 0;
	gap: var(--cc-gap);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}
.cc-insights .cc-carousel__viewport::-webkit-scrollbar {
	display: none;
}
.cc-insights .cc-story {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	flex: 0 0 calc((100% - 2 * var(--cc-gap)) / 3);
	box-sizing: border-box;
	min-height: 220px;
	padding: 24px;
	background: #ffffff;
	border-top: 3px solid var(--cc-navy);
	scroll-snap-align: start;
}
.cc-insights .cc-carousel__arrow {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 1px solid var(--cc-navy);
	background: var(--cc-navy);
	color: #ffffff;
	cursor: pointer;
}
.cc-insights .cc-carousel__arrow:disabled {
	background: #ffffff;
	color: var(--cc-navy);
	cursor: default;
	opacity: .6;
}
.cc-insights .cc-carousel__dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 24px;
}
.cc-insights .cc-carousel__dot {
	width: 8px;
	height: 8px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #b5b9bf;
	cursor: pointer;
}
.cc-insights .cc-carousel__dot[aria-current="true"] {
	background: var(--cc-blue);
}

/* ---------- Attorney spotlight ---------- */

.cc-insights .cc-spotlight {
	background: var(--cc-navy);
	color: #ffffff;
}
.cc-insights .cc-spotlight__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: center;
	gap: 48px;
}
.cc-insights .cc-spotlight__grid--no-photo {
	grid-template-columns: minmax(0, 760px);
}
.cc-insights .cc-spotlight__photo {
	aspect-ratio: 6 / 5;
	overflow: hidden;
	background: var(--cc-navy-light);
}
.cc-insights .cc-spotlight__photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
}
.cc-insights .cc-spotlight .cc-eyebrow {
	color: var(--cc-blue);
}
.cc-insights .cc-spotlight h2 {
	color: #ffffff;
	font-size: 36px;
	margin-bottom: 8px;
}
.cc-insights .cc-spotlight__meta {
	font-size: 14px;
	margin-bottom: 14px;
}
.cc-insights .cc-spotlight__bio {
	margin-bottom: 28px;
}

/* ---------- Careers ---------- */

.cc-insights .cc-careers {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 48px;
	align-items: start;
}
.cc-insights .cc-careers h3 {
	font-size: 24px;
	color: var(--cc-navy);
	margin-bottom: 14px;
}
.cc-insights .cc-careers__apply {
	background: var(--cc-grey);
	padding: 32px;
}
.cc-insights .cc-careers__apply p {
	font-size: 14px;
	margin-bottom: 24px;
}
.cc-insights .cc-careers__apply p a {
	color: var(--cc-navy);
}
.cc-insights .cc-openings {
	border-top: 1px solid var(--cc-border);
}
.cc-insights .cc-opening {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 0;
	border-bottom: 1px solid var(--cc-border);
}
.cc-insights .cc-opening__title {
	font-family: 'Futura', 'Trebuchet MS', sans-serif;
	font-weight: 600;
	color: var(--cc-heading);
	line-height: 1.4;
}
.cc-insights .cc-opening__title a {
	color: inherit;
	text-decoration: none;
}
.cc-insights .cc-opening__meta {
	font-size: 13px;
	line-height: 1.5;
}
.cc-insights .cc-openings__empty {
	padding: 16px 0;
	border-top: 1px solid var(--cc-border);
	border-bottom: 1px solid var(--cc-border);
	font-size: 14px;
}

/* ---------- Contact CTA ---------- */

.cc-insights .cc-cta {
	background: var(--cc-grey);
	border-top: 3px solid var(--cc-blue);
	padding: 56px 0;
}
.cc-insights .cc-cta__grid {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}
.cc-insights .cc-cta h2 {
	font-size: 32px;
	margin-bottom: 6px;
}
.cc-insights .cc-cta p {
	font-size: 14px;
}
.cc-insights .cc-cta__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 20px 28px;
}
.cc-insights .cc-cta__phone {
	font-family: 'Futura', 'Trebuchet MS', sans-serif;
	font-weight: 600;
	color: var(--cc-navy);
	text-decoration: none;
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
	.cc-insights .cc-section {
		padding: 60px 0;
	}
	.cc-insights .cc-hero h1 {
		font-size: 38px;
	}
	.cc-insights .cc-section h2 {
		font-size: 32px;
	}
	.cc-insights .cc-news {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.cc-insights .cc-story {
		flex-basis: calc((100% - var(--cc-gap)) / 2);
	}
	.cc-insights .cc-spotlight__grid,
	.cc-insights .cc-careers {
		grid-template-columns: minmax(0, 1fr);
		gap: 32px;
	}
	.cc-insights .cc-spotlight__photo {
		max-width: 480px;
	}
}

@media (max-width: 640px) {
	.cc-insights .cc-wrap {
		padding: 0 16px;
	}
	.cc-insights .cc-hero {
		padding: 48px 0 56px;
	}
	.cc-insights .cc-hero h1 {
		font-size: 30px;
	}
	.cc-insights .cc-section h2,
	.cc-insights .cc-spotlight h2 {
		font-size: 26px;
	}
	.cc-insights .cc-cta h2 {
		font-size: 24px;
	}
	.cc-insights .cc-news {
		grid-template-columns: minmax(0, 1fr);
	}
	.cc-insights .cc-carousel {
		gap: 10px;
	}
	.cc-insights .cc-story {
		flex-basis: 100%;
	}
	.cc-insights .cc-careers__apply {
		padding: 24px;
	}
	.cc-insights .cc-opening {
		flex-direction: column;
		align-items: flex-start;
		gap: 6px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cc-insights a {
		transition: none;
	}
}
