/* ========== TYPOGRAPHY ========== */
.intro {
	font-size: 20px;
	font-family: 'Merriweather Web';
}

/* ========== STATS SECTION ========== */
.stats-section {
	background-color: #4d4d4d;
	color: white;
	padding: 3rem 2rem;
	border-radius: 4px;
}

.stat-item {
	text-align: center;
	padding: 2rem 1rem;
}

.stat-label {
	margin-bottom: 0.5rem;
	opacity: 0.9;
	font-size: 1.2rem;
	font-family: 'Merriweather Web';
}

.stat-value {
	font-size: 4rem;
	line-height: 1;
	font-family: 'Merriweather Web';
	padding-top: 1rem;
}

.stats-grid {
	display: grid !important;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
	gap: 2rem !important;
}

@media (max-width: 768px) {
	.stats-grid {
		grid-template-columns: repeat(2, 1fr) !important;
	}
}

@media (max-width: 480px) {
	.stats-grid {
		grid-template-columns: 1fr !important;
	}
}

/* ========== NEWS CARDS ========== */
.news-card {
	background-size: cover;
	background-position: center;
	color: white;
	padding: 2rem;
	min-height: 175px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	border-radius: 4px;
	position: relative;
	overflow: hidden;
	box-shadow: 0 6px 16px rgba(0, 38, 79, 0.14);
	transition: transform 220ms ease, box-shadow 220ms ease;
	cursor: pointer;
}

a.news-card,
a.news-card:visited,
a.news-card:hover,
a.news-card:focus,
a.news-card:active {
	color: #fff;
	text-decoration: none;
}

.news-card h3,
.news-card .news-card-description {
	color: #0a0e2f;
}

.news-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(-15deg, rgba(200, 210, 230, 0.3), rgba(180, 195, 220, 0.35));
	z-index: 1;
	transition: background 220ms ease;
}

.news-card > * {
	position: relative;
	z-index: 2;
}

.news-card h3 {
	margin-top: 6rem;
	font-size: 1.1rem;
	font-weight: bold;
	margin-bottom: 0;
	transition: margin-top 220ms ease;
}

.news-card:hover h3 {
	margin-top: 1.5rem;
}

.news-card-accent {
	background-color: #fdb71a;
	height: 4px;
	width: calc(100% + 4rem);
	margin-top: auto;
	margin-left: -2rem;
	margin-right: -2rem;
	margin-bottom: -2rem;
}

.news-card:hover,
.news-card:focus-within {
	box-shadow: 0 14px 26px rgba(0, 38, 79, 0.24);
}

.news-card:hover::before,
.news-card:focus-within::before {
	background: linear-gradient(135deg, rgba(200, 210, 230, 0.35), rgba(180, 195, 220, 0.4));
}

.news-card-description {
	opacity: 0;
	visibility: hidden;
	max-height: 0;
	overflow: hidden;
	transition: opacity 220ms ease, visibility 220ms ease, max-height 220ms ease;
	font-size: 0.95rem;
	line-height: 1.5;
	margin: 0.5rem 0 0 0;
}

.news-card:hover .news-card-description,
.news-card:focus-within .news-card-description {
	opacity: 1;
	visibility: visible;
	max-height: 8rem;
	height: 110px;
}

.community-news-grid {
	display: grid !important;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
	gap: 1.5rem !important;
}

@media (max-width: 768px) {
	.community-news-grid {
		grid-template-columns: 1fr !important;
	}
}

/* ========== SECTION HEADINGS ========== */
.occgov-section__heading.heading-wth-line {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	width: auto;
	border: none !important;
	border-bottom: none !important;
	border-top: none !important;
	border-left: none !important;
	border-right: none !important;
	padding: 0 !important;
	margin: 0 !important;
	gap: 1rem;
}

.occgov-section__heading.heading-wth-line span {
	border: none !important;
}

.occgov-section__heading.heading-wth-line::before {
	content: none !important;
	display: none !important;
	width: 0 !important;
	height: 0 !important;
}

.occgov-section__heading.heading-wth-line::after {
	content: '';
	flex: 0 0 140px;
	height: 3px;
	background-color: #003366;
}

.occgov-section__heading.heading-wth-line2 {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	width: auto;
	border-bottom: none !important;
	padding-bottom: 0 !important;
	padding-left: 0;
	margin-left: auto;
	margin-right: 0;
	gap: 1rem;
	margin-top: 1rem;
}

.occgov-section__heading.heading-wth-line2::before {
	content: '';
	flex: 0 0 280px;
	height: 3px;
	background-color: #003366;
	order: -1;
}

.occgov-section__heading.heading-wth-line2::after {
	content: none;
}

.heading-wth-line2 a {
	transition: text-decoration 220ms ease;
}

.heading-wth-line2 a:hover,
.heading-wth-line2 a:focus {
	text-decoration: underline !important;
}

h2[data-content="Latest Community Bank News"] a::after,
h2[data-content="Latest Community Bank News"] span::after {
	border-top: 0;
}

.economic-impact-heading {
	text-align: center;
	color: #fdb71a;
	font-size: 4rem;
	margin-bottom: 0.5rem;
	font-weight: 600;
	margin-top: 0;
}

/* ========== HERO SECTION ========== */
.usa-hero {
	min-height: 400px;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	padding: 2rem;
	background-size: cover;
	background-position: left center;
}

.usa-hero__callout {
	background: rgba(11, 24, 43, 0.35);
	color: #fff;
	max-width: 35rem;
	padding: 2rem;
	border-radius: 4px;
	text-align: left;
	margin-right: 7rem;
}

.occgov-hero__heading {
	margin: 0;
	font-size: 1.15rem;
	line-height: 1.55;
	font-family: 'Merriweather Web', serif;
	font-weight: 400;
	font-style: italic;
	color: #fff;
}

.occgov-hero__author {
	margin: 1rem 0 0;
	font-family: 'Open Sans Web', sans-serif;
	font-size: 1rem;
	line-height: 1.3;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: #fff;
	margin-top: 1.5rem;
	padding-top: 1.5rem;
	font-weight: 700;
	margin-bottom: 0;
	text-align: center;
	position: relative;
}

.occgov-hero__author::before {
	content: '';
	display: block;
	width: 76px;
	height: 6px;
	background-color: #fdb71a;
	border-radius: 999px;
	margin: 0 auto 1rem;
}

.occgov-hero__author span {
	display: block;
	margin-top: 0.25rem;
	font-size: 0.875rem;
	font-weight: normal;
	letter-spacing: 0;
	text-transform: none;
}

@media (max-width: 63.99em) {
	.usa-hero {
		padding: 1rem;
		align-items: flex-end;
		background-position: left center;
		justify-content: center;
	}

	.usa-hero__callout {
		max-width: 100%;
		padding: 1rem 1.1rem;
		margin-right: 0;
	}

	.occgov-hero__heading {
		font-size: 1.05rem;
		line-height: 1.45;
	}
}

/* ========== CAROUSEL SECTION ========== */
.occ-carousel .occ-carousel__viewport {
	padding: 0 !important;
	margin: 0 !important;
	display: flex;
	width: 100%;
	overflow: hidden;
	transition: none;
	position: relative;
	height: auto;
}

.occ-carousel {
	position: relative;
	overflow: hidden;
}

.occ-carousel .occ-slide {
	padding: 0.5rem !important;
	margin: 0 !important;
	flex: 0 0 100%;
	min-width: 100%;
	display: none;
	box-sizing: border-box;
	position: relative;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: none;
}

.occ-carousel .occ-slide.is-active {
	position: relative;
	display: block;
	opacity: 1;
	visibility: visible;
	z-index: 0;
	pointer-events: auto;
	animation: occSlideIn 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes occSlideIn {
	from {
		opacity: 0;
		transform: translateX(10px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

.occ-carousel .occ-slide .grid-row {
	margin-bottom: 0 !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	margin-top: 0 !important;
}

.occ-carousel .occ-slide .padding-x-2 {
	padding: 0 !important;
	margin: 0 !important;
	aspect-ratio: 16 / 9;
	width: 100%;
	overflow: hidden;
}

.occ-carousel .occ-slide .display-flex {
	padding: 0.75rem 0 0 !important;
	margin: 0 !important;
	display: block !important;
	text-align: left;
}

.occ-carousel .occ-slide .display-flex > div {
	width: 100%;
}

.occ-carousel .occ-slide .margin-x-auto {
	margin-left: 0 !important;
	margin-right: 0 !important;
}

.occ-carousel .occ-slide img {
	width: 100%;
	max-width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
}

.occ-carousel .carousel-controls {
	margin-top: 0.5rem !important;
}

#occCarousel .occ-slide .grid-row {
	display: flex;
	align-items: stretch;
	gap: 0;
}

#occCarousel .occ-slide .grid-row > div {
	display: flex;
	flex-direction: column;
}

#occCarousel .occ-slide .padding-x-2 {
	aspect-ratio: auto;
	height: 100%;
	min-height: 320px;
}

#occCarousel .occ-slide .padding-x-2 a {
	display: block;
	height: 100%;
}

#occCarousel .occ-slide .padding-x-2 img {
	height: 100%;
	object-fit: cover;
}

#occCarousel .occ-slide .display-flex {
	display: flex !important;
	height: 100%;
	padding: 0 0 0 1rem !important;
}

#occCarousel .occ-slide .display-flex > div {
	display: flex;
	flex-direction: column;
	justify-content: center;
	height: 100%;
	width: 100%;
}

@media (max-width: 63.99em) {
	#occCarousel .occ-slide .grid-row {
		display: block;
	}

	#occCarousel .occ-slide .padding-x-2 {
		height: auto;
		min-height: 0;
		aspect-ratio: 16 / 9;
	}

	#occCarousel .occ-slide .padding-x-2 a,
	#occCarousel .occ-slide .padding-x-2 img {
		height: auto;
	}

	#occCarousel .occ-slide .display-flex {
		padding: 0.75rem 0 0 !important;
		height: auto;
	}
}

.carousel-controls {
	display: flex;
	justify-content: center;
	align-items: center;
	margin: 10px 0;
	background: #fff;
	width: 50%;
	max-width: 500px;
	margin: 0 auto;
}

.carousel-button:disabled {
	color: #919191;
	pointer-events: none;
}

.carousel-button {
	font-size: 54px;
	color: #1a4480;
	background: transparent;
	border: none;
	cursor: pointer;
}

.carousel-nav {
	text-align: center;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	width: 150px;
	min-width: 150px;
}

.carousel-indicator.active {
	background: #1a4480 !important;
}

.carousel-indicator {
	display: inline-block;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	margin: 0 5px;
	cursor: pointer;
	border: 2px solid #1a4480;
	background-color: white;
}

@media (prefers-reduced-motion: reduce) {
	.occ-carousel .occ-carousel__viewport {
		transition: none;
	}

	.occ-carousel .occ-slide.is-active {
		animation: none;
	}
}

.cb-dual-carousel-row {
	align-items: stretch;
}

.cb-dual-carousel-col {
	display: flex;
	flex-direction: column;
}

.cb-dual-carousel-card {
	display: flex;
	flex-direction: column;
	flex: 1;
	height: 100%;
}

.cb-dual-carousel-card .occ-carousel {
	display: flex;
	flex-direction: column;
	flex: 1;
}

.cb-dual-carousel-card .occ-carousel__viewport {
	flex: 1;
}

#occCarousel {
	margin-top: 0;
}

#occCarousel + .carousel-controls,
#occCarousel {
	position: relative;
}

#occCarousel {
	border-top: 0;
}

h3[data-content="Latest Posts"] + hr.border-gray-30 {
	display: block;
	width: 100%;
	height: 1px;
	border: 0;
	background-color: #adadad;
	opacity: 1;
	margin-top: 0.75rem;
	margin-bottom: 0.75rem !important;
}

/* ========== ACCORDION SECTION ========== */
.usa-accordion .usa-accordion__heading .occgov-accordion__button {
	background-color: #ffffff;
}

.occgov-accordion__button:hover, .usa-accordion .usa-accordion__heading .occgov-accordion__button[aria-expanded=true] {
	background-color: #f0f0f0;
}

.usa-accordion .usa-button-group {
	display: none;
}
