/**
 * Campaign Sections CSS
 *
 * Covers:
 *   1. Admin panel styles (tabs, toggles, FAQ builder, campaign picker, color picker)
 *   2. Frontend section styles (sticky CTA, FAQ accordion, related campaigns grid)
 *
 * Brand palette (Premium 17-Color):
 *   Primary    #16645A (Teal Green)
 *   Secondary  #123A32 (Dark Teal Ink)
 *   Accent     #F5A623 (Amber Gold)
 *   BG         #F2F7F5 (Pale Mint)
 *   Border     #E5EEEB (Pale Border)
 *
 * @package CharityGlow Pro
 * @since   1.1.0
 */

:root {
	--cg-ss-ease: cubic-bezier(0.4, 0, 0.2, 1);
	--cg-ss-shadow: 0 4px 16px rgba(10,43,39,.06);
	--cg-ss-shadow-lg: 0 8px 32px rgba(10,43,39,.10);
	--cg-ss-shadow-gold: 0 6px 20px rgba(245,166,35,0.28);
}

/* ==========================================================================
   UTILITIES
   ========================================================================== */

.cg-hidden {
	display: none !important;
}

.cg-spinner {
	display: inline-block;
	width: 16px;
	height: 16px;
	border: 2px solid currentColor;
	border-top-color: transparent;
	border-radius: 50%;
	animation: cg-spin 0.65s linear infinite;
	vertical-align: middle;
}

.cg-spinner--sm {
	width: 13px;
	height: 13px;
}

@keyframes cg-spin {
	to { transform: rotate( 360deg ); }
}

/* ==========================================================================
   ADMIN PANEL — SECTIONS PANEL WRAPPER
   ========================================================================== */

.cg-sections-panel {
	background: #ffffff;
	border: 1px solid #E5EEEB;
	border-radius: 14px;
	margin-top: 24px;
	overflow: hidden;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	box-shadow: var(--cg-ss-shadow);
}

.cg-sections-panel__header {
	padding: 20px 24px 0;
	border-bottom: 1px solid #E5EEEB;
	background: #F2F7F5;
}

.cg-sections-panel__heading {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 15px;
	font-weight: 600;
	color: #123A32;
	margin: 0 0 6px;
}

.cg-sections-panel__description {
	font-size: 13px;
	color: #54706A;
	margin: 0 0 16px;
}

/* ==========================================================================
   ADMIN PANEL — BADGE
   ========================================================================== */

.cg-badge {
	display: inline-flex;
	align-items: center;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.5px;
	text-transform: uppercase;
}

.cg-badge--pro {
	background: linear-gradient(135deg, #0A2B27 0%, #0E3B36 50%, #16645A 100%);
	color: #FFE3AC;
	box-shadow: 0 2px 8px rgba(10,43,39,0.22);
}

/* ==========================================================================
   ADMIN PANEL — TABS
   ========================================================================== */

.cg-sections-tabs {
	display: flex;
	gap: 2px;
	padding: 0 24px;
	background: #F2F7F5;
	border-bottom: 1px solid #E5EEEB;
}

.cg-sections-tab {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 14px;
	background: transparent;
	border: none;
	border-bottom: 3px solid transparent;
	border-radius: 0;
	font-size: 13px;
	font-weight: 600;
	color: #54706A;
	cursor: pointer;
	transition: color 0.2s var(--cg-ss-ease), border-color 0.2s var(--cg-ss-ease);
	position: relative;
	top: 1px;
}

.cg-sections-tab:hover {
	color: #16645A;
}

.cg-sections-tab--active {
	color: #16645A;
	border-bottom-color: #16645A;
}

.cg-sections-tab__status {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 30px;
	padding: 1px 5px;
	border-radius: 999px;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.4px;
}

.cg-sections-tab__status--on {
	background: rgba(22,100,90,0.10);
	color: #16645A;
}

.cg-sections-tab__status--off {
	background: #F2F7F5;
	color: #7C948D;
}

/* ==========================================================================
   ADMIN PANEL — TAB PANELS
   ========================================================================== */

.cg-sections-tab-panel {
	padding: 20px 24px;
}

.cg-sections-panel__body {
	/* No extra padding — tab panels handle their own */
}

/* ==========================================================================
   ADMIN PANEL — FIELD ROWS
   ========================================================================== */

.cg-field-row {
	margin-bottom: 16px;
}

.cg-field-row--2col {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.cg-field-group {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.cg-field-label {
	font-size: 13px;
	font-weight: 600;
	color: #123A32;
}

.cg-field-input {
	width: 100%;
	padding: 8px 12px;
	border: 1px solid #E5EEEB;
	border-radius: 8px;
	font-size: 13px;
	color: #17332C;
	transition: border-color 0.2s var(--cg-ss-ease), box-shadow 0.2s var(--cg-ss-ease);
	box-sizing: border-box;
	background: #fff;
}

.cg-field-input:focus {
	outline: none;
	border-color: #16645A;
	box-shadow: 0 0 0 3px rgba(22,100,90,0.12);
}

.cg-field-textarea {
	width: 100%;
	padding: 8px 12px;
	border: 1px solid #E5EEEB;
	border-radius: 8px;
	font-size: 13px;
	color: #17332C;
	resize: vertical;
	box-sizing: border-box;
	transition: border-color 0.2s var(--cg-ss-ease), box-shadow 0.2s var(--cg-ss-ease);
	font-family: inherit;
	background: #fff;
}

.cg-field-textarea:focus {
	outline: none;
	border-color: #16645A;
	box-shadow: 0 0 0 3px rgba(22,100,90,0.12);
}

.cg-field-hint {
	font-size: 12px;
	color: #7C948D;
	margin: 4px 0 0;
}

/* ==========================================================================
   ADMIN PANEL — TOGGLE SWITCH
   ========================================================================== */

.cg-toggle-label {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	user-select: none;
}

.cg-toggle {
	position: relative;
	display: inline-block;
	width: 44px;
	height: 24px;
	flex-shrink: 0;
}

.cg-toggle__input {
	opacity: 0;
	width: 0;
	height: 0;
	position: absolute;
}

.cg-toggle__slider {
	position: absolute;
	inset: 0;
	background: #E5EEEB;
	border-radius: 24px;
	transition: background 0.25s var(--cg-ss-ease), box-shadow 0.25s var(--cg-ss-ease);
}

.cg-toggle__slider::before {
	content: '';
	position: absolute;
	left: 3px;
	top: 3px;
	width: 18px;
	height: 18px;
	background: #fff;
	border-radius: 50%;
	box-shadow: 0 1px 4px rgba(10,43,39,0.18);
	transition: transform 0.25s var(--cg-ss-ease);
}

.cg-toggle__input:checked + .cg-toggle__slider {
	background: linear-gradient(135deg, #0A2B27 0%, #0E3B36 55%, #16645A 100%);
	box-shadow: 0 2px 8px rgba(22,100,90,0.30);
}

.cg-toggle__input:checked + .cg-toggle__slider::before {
	transform: translateX( 20px );
}

.cg-toggle__input:focus-visible + .cg-toggle__slider {
	box-shadow: 0 0 0 3px rgba(22,100,90,0.22);
}

.cg-toggle-label__text {
	font-size: 13px;
	font-weight: 500;
	color: #123A32;
}

/* ==========================================================================
   ADMIN PANEL — COLOR PICKER
   ========================================================================== */

.cg-color-field {
	display: flex;
	align-items: center;
	gap: 8px;
	height: 38px;
}

.cg-color-field__input {
	width: 38px;
	height: 38px;
	padding: 2px;
	border: 1px solid #E5EEEB;
	border-radius: 8px;
	cursor: pointer;
	background: #fff;
}

.cg-color-field__preview {
	width: 24px;
	height: 24px;
	border-radius: 6px;
	border: 1px solid #E5EEEB;
	cursor: pointer;
	flex-shrink: 0;
}

.cg-color-field__hex {
	flex: 1;
	padding: 8px 12px;
	border: 1px solid #E5EEEB;
	border-radius: 8px;
	font-size: 13px;
	font-family: 'Courier New', monospace;
	text-transform: uppercase;
	color: #17332C;
	background: #fff;
}

/* ==========================================================================
   ADMIN PANEL — FAQ BUILDER
   ========================================================================== */

.cg-faq-builder {
	border: 1px solid #E5EEEB;
	border-radius: 10px;
	overflow: hidden;
}

.cg-faq-builder__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 14px;
	background: #F2F7F5;
	border-bottom: 1px solid #E5EEEB;
}

.cg-faq-builder__count {
	font-size: 12px;
	color: #54706A;
	font-weight: 600;
}

.cg-faq-builder__empty {
	padding: 32px 20px;
	text-align: center;
	color: #7C948D;
}

.cg-faq-builder__empty svg {
	display: block;
	margin: 0 auto 10px;
	opacity: 0.5;
}

.cg-faq-builder__empty p {
	font-size: 13px;
	margin: 0;
}

/* FAQ Item */

.cg-faq-item {
	border-bottom: 1px solid #F2F7F5;
	transition: background 0.15s var(--cg-ss-ease), opacity 0.25s var(--cg-ss-ease), transform 0.25s var(--cg-ss-ease);
}

.cg-faq-item:last-child {
	border-bottom: none;
}

.cg-faq-item--removing {
	opacity: 0;
	transform: translateX( -8px );
}

.cg-faq-item--placeholder {
	background: rgba(22,100,90,0.06);
	border: 2px dashed #16645A;
	opacity: 0.55;
}

.cg-faq-item__header {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 14px;
	cursor: default;
}

.cg-faq-item__drag {
	cursor: grab;
	color: #7C948D;
	flex-shrink: 0;
}

.cg-faq-item__drag:active {
	cursor: grabbing;
}

.cg-faq-item__preview {
	flex: 1;
	font-size: 13px;
	color: #123A32;
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.cg-faq-item__actions {
	display: flex;
	align-items: center;
	gap: 4px;
	flex-shrink: 0;
}

.cg-faq-item__toggle {
	background: transparent;
	border: none;
	padding: 4px;
	cursor: pointer;
	color: #7C948D;
	border-radius: 6px;
	transition: transform 0.2s var(--cg-ss-ease), color 0.15s var(--cg-ss-ease);
}

.cg-faq-item__toggle:hover {
	color: #16645A;
	background: rgba(22,100,90,0.06);
}

.cg-faq-item__toggle[aria-expanded="true"] svg {
	transform: rotate( 180deg );
}

.cg-faq-item__body {
	padding: 12px 14px 16px;
	background: #F2F7F5;
	border-top: 1px solid #E5EEEB;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

/* ==========================================================================
   ADMIN PANEL — CAMPAIGN PICKER
   ========================================================================== */

.cg-campaign-picker {
	border: 1px solid #E5EEEB;
	border-radius: 10px;
	overflow: hidden;
}

.cg-campaign-picker__search-wrap {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	background: #F2F7F5;
	border-bottom: 1px solid #E5EEEB;
	color: #7C948D;
}

.cg-campaign-picker__search {
	flex: 1;
	border: none;
	background: transparent;
	font-size: 13px;
	color: #17332C;
	outline: none;
}

.cg-campaign-picker__search::placeholder {
	color: #7C948D;
}

.cg-campaign-picker__list {
	max-height: 200px;
	overflow-y: auto;
}

.cg-campaign-picker__loading,
.cg-campaign-picker__empty,
.cg-campaign-picker__error {
	padding: 16px;
	font-size: 13px;
	color: #7C948D;
	text-align: center;
}

.cg-campaign-picker__item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 12px;
	cursor: pointer;
	transition: background 0.12s var(--cg-ss-ease);
	border-bottom: 1px solid #F2F7F5;
}

.cg-campaign-picker__item:last-child {
	border-bottom: none;
}

.cg-campaign-picker__item:hover {
	background: rgba(22,100,90,0.06);
}

.cg-campaign-picker__item--selected {
	background: rgba(22,100,90,0.08);
}

.cg-campaign-picker__img {
	width: 36px;
	height: 36px;
	border-radius: 6px;
	object-fit: cover;
	flex-shrink: 0;
}

.cg-campaign-picker__img--placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #E5EEEB;
	color: #54706A;
	font-size: 14px;
}

.cg-campaign-picker__info {
	flex: 1;
	min-width: 0;
}

.cg-campaign-picker__name {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #123A32;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.cg-campaign-picker__pct {
	display: block;
	font-size: 11px;
	color: #54706A;
}

.cg-campaign-picker__check {
	color: transparent;
	flex-shrink: 0;
}

.cg-campaign-picker__item--selected .cg-campaign-picker__check {
	color: #16645A;
}

.cg-campaign-picker__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	padding: 10px 12px;
	border-top: 1px solid #E5EEEB;
	background: #F2F7F5;
	min-height: 42px;
}

.cg-campaign-picker__empty-note {
	font-size: 12px;
	color: #7C948D;
	padding: 8px 12px;
	margin: 0;
	border-top: 1px solid #E5EEEB;
}

/* Chips */

.cg-related-chip {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px 10px 4px 12px;
	background: rgba(22,100,90,0.10);
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	color: #16645A;
}

.cg-related-chip__name {
	max-width: 120px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.cg-related-chip__remove {
	background: transparent;
	border: none;
	padding: 0;
	line-height: 1;
	cursor: pointer;
	color: #16645A;
	font-size: 14px;
	opacity: 0.7;
	border-radius: 50%;
	transition: opacity 0.15s var(--cg-ss-ease);
}

.cg-related-chip__remove:hover {
	opacity: 1;
}

/* ==========================================================================
   ADMIN PANEL — BUTTONS
   ========================================================================== */

.cg-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 16px;
	border-radius: 10px;
	font-size: 13px;
	font-weight: 600;
	border: 1px solid transparent;
	cursor: pointer;
	transition: all 0.2s var(--cg-ss-ease);
	text-decoration: none;
	white-space: nowrap;
}

.cg-btn--primary {
	background: linear-gradient(135deg, #F5A623 0%, #FDBA3B 50%, #FFC24D 100%);
	color: #17332C;
	border-color: transparent;
	box-shadow: 0 2px 10px rgba(245,166,35,0.25);
}

.cg-btn--primary:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 16px rgba(245,166,35,0.35);
}

.cg-btn--primary:focus-visible {
	box-shadow: 0 0 0 3px rgba(245,166,35,0.28), 0 4px 16px rgba(245,166,35,0.30);
	outline: none;
}

.cg-btn--success {
	background: linear-gradient(135deg, #0A2B27 0%, #0E3B36 55%, #16645A 100%) !important;
	color: #FFE3AC !important;
	box-shadow: 0 2px 10px rgba(22,100,90,0.25);
}
.cg-btn--success:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 16px rgba(22,100,90,0.32);
}

.cg-btn--outline {
	background: transparent;
	color: #16645A;
	border-color: #16645A;
}

.cg-btn--outline:hover {
	background: rgba(22,100,90,0.06);
}

.cg-btn--sm {
	padding: 5px 10px;
	font-size: 12px;
	border-radius: 8px;
}

.cg-btn--lg {
	padding: 10px 20px;
	font-size: 14px;
}

.cg-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none !important;
}

.cg-btn-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 8px;
	border: none;
	background: transparent;
	cursor: pointer;
	transition: background 0.15s var(--cg-ss-ease), color 0.15s var(--cg-ss-ease);
}

.cg-btn-icon--danger {
	color: #8B5A10;
}

.cg-btn-icon--danger:hover {
	background: rgba(245,166,35,0.10);
}

/* ==========================================================================
   ADMIN PANEL — FOOTER / SAVE BAR
   ========================================================================== */

.cg-sections-panel__footer {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px 24px;
	border-top: 1px solid #E5EEEB;
	background: #F2F7F5;
}

.cg-sections-panel__save-msg {
	font-size: 13px;
	font-weight: 600;
}

.cg-msg--success {
	color: #16645A;
}

.cg-msg--error {
	color: #8B5A10;
}

/* ==========================================================================
   ADMIN PANEL — PREVIEW NOTE
   ========================================================================== */

.cg-preview-note {
	display: flex;
	align-items: flex-start;
	gap: 6px;
	padding: 10px 12px;
	background: rgba(22,100,90,0.08);
	border: 1px solid rgba(22,100,90,0.20);
	border-radius: 8px;
	font-size: 12px;
	color: #123A32;
	margin-top: 4px;
	font-weight: 500;
}

/* ==========================================================================
   FRONTEND — COMMON SECTION STYLES
   ========================================================================== */

.cg-campaign-section {
	margin-top: 48px;
	padding-top: 48px;
	border-top: 1px solid #E5EEEB;
}

.cg-campaign-section__title {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 22px;
	font-weight: 700;
	color: #123A32;
	margin: 0 0 28px;
}

.cg-campaign-section__title svg {
	color: #16645A;
	flex-shrink: 0;
}

/* ==========================================================================
   FRONTEND — STICKY CTA BAR
   ========================================================================== */

.cg-sticky-cta {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 9999;
	padding: 14px 20px;
	background: linear-gradient(150deg, #0A2B27 0%, #0E3B36 50%, #16645A 100%);
	box-shadow: 0 -4px 24px rgba(10,43,39,0.22);
	transform: translateY( 100% );
	transition: transform 0.35s var(--cg-ss-ease);
	will-change: transform;
}

.cg-sticky-cta--visible {
	transform: translateY( 0 );
}

.cg-sticky-cta--dismissed {
	transform: translateY( 100% );
	transition: transform 0.35s var(--cg-ss-ease);
}

.cg-sticky-cta__inner {
	max-width: 1140px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
}

.cg-sticky-cta__progress-wrap {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 120px;
}

.cg-sticky-cta__progress-bar {
	height: 8px;
	border-radius: 999px;
	overflow: hidden;
	background: rgba(255,227,172,0.14);
}

.cg-sticky-cta__progress-fill {
	height: 100%;
	background: linear-gradient(90deg, #F5A623 0%, #FDBA3B 50%, #FFC24D 100%);
	border-radius: 999px;
	transition: width 0.5s var(--cg-ss-ease);
	box-shadow: 0 0 0 1px rgba(255,227,172,0.18);
}

.cg-sticky-cta__progress-label {
	font-size: 11px;
	font-weight: 700;
	color: #FFE3AC;
	opacity: 0.95;
	letter-spacing: 0.2px;
}

.cg-sticky-cta__text {
	flex: 1;
	font-size: 14px;
	font-weight: 600;
	min-width: 120px;
	color: #FFE3AC;
}

.cg-sticky-cta__btn {
	display: inline-flex;
	align-items: center;
	padding: 10px 22px;
	border-radius: 12px;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
	transition: all 0.2s var(--cg-ss-ease);
	flex-shrink: 0;
	background: linear-gradient(135deg, #F5A623 0%, #FDBA3B 50%, #FFC24D 100%);
	color: #17332C;
	box-shadow: 0 4px 14px rgba(245,166,35,0.35);
}

.cg-sticky-cta__btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(245,166,35,0.42);
}

.cg-sticky-cta__close {
	background: transparent;
	border: none;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	padding: 0 4px;
	opacity: 0.75;
	color: #FFE3AC;
	transition: opacity 0.15s var(--cg-ss-ease);
	flex-shrink: 0;
}

.cg-sticky-cta__close:hover {
	opacity: 1;
}

@media ( max-width: 600px ) {
	.cg-sticky-cta__progress-wrap {
		display: none;
	}

	.cg-sticky-cta__text {
		font-size: 13px;
	}
}

/* ==========================================================================
   FRONTEND — FAQ ACCORDION
   ========================================================================== */

.cg-faq__list {
	display: flex;
	flex-direction: column;
	gap: 0;
	border: 1px solid #E5EEEB;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: var(--cg-ss-shadow);
}

.cg-faq__item {
	border-bottom: 1px solid #F2F7F5;
}

.cg-faq__item:last-child {
	border-bottom: none;
}

.cg-faq__question {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 20px;
	background: #fff;
	border: none;
	cursor: pointer;
	text-align: left;
	font-size: 15px;
	font-weight: 700;
	color: #123A32;
	transition: background 0.15s var(--cg-ss-ease), color 0.15s var(--cg-ss-ease);
}

.cg-faq__question:hover {
	background: #F2F7F5;
	color: #16645A;
}

.cg-faq__item--open .cg-faq__question {
	background: rgba(22,100,90,0.06);
	color: #16645A;
}

.cg-faq__icon {
	flex-shrink: 0;
	color: #7C948D;
	transition: transform 0.25s var(--cg-ss-ease), color 0.15s var(--cg-ss-ease);
}

.cg-faq__item--open .cg-faq__icon {
	transform: rotate( 180deg );
	color: #16645A;
}

.cg-faq__answer {
	background: #F2F7F5;
	border-top: 1px solid #E5EEEB;
}

.cg-faq__answer-inner {
	padding: 16px 20px;
	font-size: 14px;
	line-height: 1.7;
	color: #17332C;
}

/* ==========================================================================
   FRONTEND — RELATED CAMPAIGNS GRID
   ========================================================================== */

.cg-related__grid {
	display: grid;
	grid-template-columns: repeat( 3, 1fr );
	gap: 20px;
}

@media ( max-width: 900px ) {
	.cg-related__grid {
		grid-template-columns: repeat( 2, 1fr );
	}
}

@media ( max-width: 560px ) {
	.cg-related__grid {
		grid-template-columns: 1fr;
	}
}

.cg-related__card {
	border: 1px solid #E5EEEB;
	border-radius: 14px;
	overflow: hidden;
	background: #fff;
	box-shadow: var(--cg-ss-shadow);
	transition: box-shadow 0.25s var(--cg-ss-ease), transform 0.25s var(--cg-ss-ease);
	display: flex;
	flex-direction: column;
}

.cg-related__card:hover {
	box-shadow: 0 10px 32px rgba(10,43,39,0.12);
	transform: translateY( -2px );
}

.cg-related__image-link {
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
}

.cg-related__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s var(--cg-ss-ease);
}

.cg-related__card:hover .cg-related__image {
	transform: scale( 1.04 );
}

.cg-related__image--placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #0A2B27 0%, #0E3B36 55%, #16645A 100%);
	color: #FFE3AC;
	width: 100%;
	height: 100%;
	font-weight: 700;
	letter-spacing: 0.5px;
}

.cg-related__body {
	padding: 16px;
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.cg-related__title {
	font-size: 15px;
	font-weight: 700;
	color: #123A32;
	margin: 0;
	line-height: 1.35;
}

.cg-related__title a {
	color: inherit;
	text-decoration: none;
	transition: color 0.15s var(--cg-ss-ease);
}

.cg-related__title a:hover {
	color: #16645A;
}

.cg-related__excerpt {
	font-size: 13px;
	color: #54706A;
	line-height: 1.6;
	margin: 0;
	flex: 1;
}

.cg-related__progress {
	margin-top: auto;
}

.cg-related__progress-bar {
	height: 8px;
	background: #E5EEEB;
	border-radius: 999px;
	overflow: hidden;
	margin-bottom: 8px;
}

.cg-related__progress-fill {
	height: 100%;
	background: linear-gradient(90deg, #F5A623 0%, #FDBA3B 50%, #FFC24D 100%);
	border-radius: 999px;
	transition: width 0.5s var(--cg-ss-ease);
}

.cg-related__meta {
	display: flex;
	justify-content: space-between;
	font-size: 12px;
}

.cg-related__raised {
	color: #17332C;
	font-weight: 700;
}

.cg-related__raised small {
	font-weight: 500;
	color: #7C948D;
	margin-left: 2px;
}

.cg-related__percent {
	color: #F5A623;
	font-weight: 800;
	letter-spacing: 0.2px;
}

.cg-related__btn {
	margin-top: 8px;
	justify-content: center;
}
