/* Custom Consumer Guides — frontend styles */

.ccg-section {
	width: 100%;
}

/* Header */
.ccg-header {
	text-align: center;
	max-width: 760px;
	margin: 0 auto 44px;
}

.ccg-heading {
	margin: 0 0 14px;
	font-size: 42px;
	font-weight: 800;
	color: #152A61;
	line-height: 1.2;
}

.ccg-divider {
	width: 60px;
	height: 3px;
	background-color: #F07C22;
	margin: 0 auto 18px;
	border-radius: 2px;
}

.ccg-subheading {
	margin: 0;
	font-size: 17px;
	color: #6B7A93;
	line-height: 1.5;
}

/* Search Bar */
.ccg-search-wrap {
	max-width: 480px;
	margin: 0 auto 40px;
}

.ccg-search-box {
	display: flex;
	align-items: center;
	gap: 10px;
	background-color: #FFFFFF;
	border: 1.5px solid #E3E7F1;
	border-radius: 30px;
	padding: 13px 20px;
	box-shadow: 0 2px 10px rgba(20, 40, 80, 0.05);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ccg-search-box:focus-within {
	border-color: #F07C22;
	box-shadow: 0 4px 16px rgba(240, 124, 34, 0.12);
}

.ccg-search-icon {
	flex-shrink: 0;
	color: #9AA5BD;
}

.ccg-search-input {
	flex: 1 1 auto;
	min-width: 0;
	border: none;
	outline: none;
	background: transparent;
	font-size: 15px;
	color: #152A61;
	font-family: inherit;
}

.ccg-search-input::placeholder {
	color: #9AA5BD;
}

.ccg-search-clear {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border: none;
	border-radius: 50%;
	background-color: #F1F3F9;
	color: #6B7A93;
	cursor: pointer;
	padding: 0;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.ccg-search-clear:hover {
	background-color: #E3E7F1;
	color: #152A61;
}

.ccg-search-clear[hidden] {
	display: none;
}

.ccg-no-results {
	text-align: center;
	font-size: 15px;
	color: #6B7A93;
	padding: 50px 20px;
	margin: 0;
}

.ccg-no-results[hidden] {
	display: none;
}

/* Grid */
.ccg-grid {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr 1fr;
	gap: 28px;
	width: 100%;
}

@media (max-width: 1024px) {
	.ccg-grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 600px) {
	.ccg-grid {
		grid-template-columns: 1fr;
	}
}

/* Card */
.ccg-card {
	background: #FFFFFF;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 4px 20px rgba(20, 40, 80, 0.08);
	display: flex;
	flex-direction: column;
	opacity: 1;
	transform: translateY(0);
	transition: opacity 0.45s ease, transform 0.45s ease;
}

.ccg-card[hidden] {
	display: none;
}

.ccg-card.ccg-card-enter {
	opacity: 0;
	transform: translateY(22px);
}

.ccg-card-image {
	position: relative;
	height: 190px;
	overflow: hidden;
	background-color: #0B1E4A;
	aspect-ratio: 16 / 10;
}

.ccg-card-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.ccg-badge {
	position: absolute;
	top: 14px;
	left: 14px;
	display: inline-block;
	background-color: #F07C22;
	color: #FFFFFF;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	padding: 6px 14px;
	border-radius: 20px;
	line-height: 1;
}

.ccg-card-content {
	padding: 22px 22px 24px;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.ccg-card-title {
	margin: 0 0 10px;
	font-size: 19px;
	font-weight: 700;
	color: #152A61;
	line-height: 1.3;
}

.ccg-card-desc {
	margin: 0 0 20px;
	font-size: 14.5px;
	color: #6B7A93;
	line-height: 1.6;
	flex-grow: 1;
}

/* Download Button */
a.ccg-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	align-self: flex-start;
	background-color: #F07C22;
	color: #FFFFFF;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	text-decoration: none;
	padding: 12px 24px;
	border: 2px solid #F07C22;
	border-radius: 30px;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
	cursor: pointer;
}

a.ccg-btn:hover,
a.ccg-btn:focus,
a.ccg-btn:visited {
	color: #FFFFFF;
}

a.ccg-btn:hover {
	background-color: #D9660E;
	border-color: #D9660E;
}

.ccg-btn-icon {
	flex-shrink: 0;
}

/* Load More */
.ccg-loadmore-wrap {
	display: flex;
	justify-content: center;
	margin-top: 40px;
}

.ccg-loadmore-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background-color: #FFFFFF;
	color: #152A61;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	padding: 14px 30px;
	border: 2px solid #152A61;
	border-radius: 30px;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.ccg-loadmore-btn:hover {
	background-color: #152A61;
	color: #FFFFFF;
}

.ccg-loadmore-btn:disabled {
	opacity: 0.6;
	cursor: default;
	pointer-events: none;
}

.ccg-loadmore-btn svg {
	transition: transform 0.2s ease;
}

.ccg-loadmore-btn.ccg-expanded svg {
	transform: rotate(180deg);
}

.ccg-loadmore-wrap[hidden] {
	display: none;
}
