/**
 * CCIMRT 2025 - Homepage Modernization Sections Stylesheet
 * Modernized hero, feature cards, testimonials, and section styling
 *
 * @package CCIMRT2025
 */

/*================================================================
23.0 - Homepage Modernization Sections
================================================================*/

/* General Section Utilities */
.home-page-main {
	display: block;
	width: 100%;
	overflow: hidden;
}

.home-section-header {
	text-align: center;
	margin-bottom: 36px;
}

.home-section-tag {
	display: inline-block;
	font-family: Montserrat, sans-serif;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1.2px;
	color: #0f5f5c;
	background: #e6f4f4;
	padding: 4px 14px;
	border-radius: 20px;
	margin-bottom: 10px;
}

.home-section-cta {
	text-align: center;
	margin-top: 36px;
}

/* 1. Impact Metrics Banner */
.home-metrics-section {
	background: linear-gradient(135deg, #0b4543 0%, #0f5f5c 50%, #1e6972 100%);
	color: #fff;
	padding: 38px 0;
	box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.12);
}

.metrics-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-around;
	align-items: center;
	text-align: center;
}

.metric-card {
	flex: 1 1 200px;
	padding: 12px 20px;
	position: relative;
}

.metric-card:not(:last-child)::after {
	content: '';
	position: absolute;
	right: 0;
	top: 20%;
	height: 60%;
	width: 1px;
	background: rgba(255, 255, 255, 0.2);
}

.metric-number {
	display: block;
	font-family: Montserrat, sans-serif;
	font-size: 40px;
	font-weight: 800;
	line-height: 1.1;
	color: #8ed056;
	margin-bottom: 6px;
	letter-spacing: -0.5px;
}

.metric-label {
	display: block;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.4;
	color: #e2f0ef;
	max-width: 180px;
	margin: 0 auto;
}

/* 2. Upcoming Training & Events Section */
.home-events-section {
	padding: 60px 0;
	background: #ffffff;
}

.home-events-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	justify-content: center;
	margin-top: 24px;
}

.home-event-card {
	flex: 1 1 320px;
	max-width: 380px;
	display: flex;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	overflow: hidden;
	transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.home-event-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 10px 24px rgba(15, 95, 92, 0.12);
	border-color: #cbd5e0;
}

.event-date-badge {
	flex: 0 0 76px;
	background: #0f5f5c;
	color: #fff;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 16px 8px;
	text-align: center;
}

.badge-month {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: #8ed056;
}

.badge-day {
	font-size: 26px;
	font-weight: 800;
	line-height: 1.1;
	margin-top: 2px;
}

.event-details {
	padding: 18px 20px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.event-meta {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
	font-size: 12px;
}

.event-type-tag {
	background: #e6f4f4;
	color: #0f5f5c;
	font-weight: 700;
	padding: 2px 8px;
	border-radius: 4px;
	font-size: 11px;
}

.event-date-text {
	color: #718096;
}

.event-title {
	font-size: 17px;
	font-weight: 700;
	line-height: 1.35;
	margin: 0 0 10px 0;
}

.event-title a {
	color: #2d3748;
	text-decoration: none;
	transition: color .2s ease;
}

.event-title a:hover {
	color: #0f5f5c;
}

.event-excerpt {
	font-size: 13px;
	line-height: 1.5;
	color: #4a5568;
	margin: 0 0 14px 0;
	flex: 1;
}

.event-link {
	font-size: 13px;
	font-weight: 700;
	color: #0f5f5c;
	text-decoration: none;
	transition: color .2s ease, padding-left .2s ease;
}

.event-link:hover {
	color: #6fb048;
	padding-left: 4px;
}

.home-events-placeholder {
	text-align: center;
	color: #718096;
	font-size: 15px;
	padding: 20px 0;
}

/* 3. Evidence-Based Research Showcase Section */
.home-research-section {
	padding: 60px 0;
	background: #f4f7f6;
	border-top: 1px solid #e2e8f0;
	border-bottom: 1px solid #e2e8f0;
}

.home-research-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	justify-content: center;
	margin-top: 24px;
}

.home-research-card {
	flex: 1 1 320px;
	max-width: 380px;
	display: flex;
	gap: 16px;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 22px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
	transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.home-research-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 10px 24px rgba(15, 95, 92, 0.10);
	border-color: #cbd5e0;
}

.research-icon {
	flex: 0 0 46px;
	height: 46px;
	border-radius: 8px;
	background: #e6f4f4;
	color: #0f5f5c;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
}

.research-body {
	flex: 1;
	display: flex;
	flex-direction: column;
}

.research-title {
	font-size: 16px;
	font-weight: 700;
	line-height: 1.35;
	margin: 0 0 10px 0;
}

.research-title a {
	color: #2d3748;
	text-decoration: none;
	transition: color .2s ease;
}

.research-title a:hover {
	color: #0f5f5c;
}

.research-excerpt {
	font-size: 13px;
	line-height: 1.5;
	color: #4a5568;
	margin: 0 0 14px 0;
	flex: 1;
}

.research-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 10px;
	border-top: 1px solid #edf2f7;
}

.research-link {
	font-size: 13px;
	font-weight: 700;
	color: #0f5f5c;
	text-decoration: none;
	transition: color .2s ease;
}

.research-link:hover {
	color: #6fb048;
}

.research-pdf-btn {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	color: #c53030;
	background: #fff5f5;
	border: 1px solid #fed7d7;
	padding: 3px 9px;
	border-radius: 4px;
	text-decoration: none;
	transition: all .2s ease;
}

.research-pdf-btn:hover {
	background: #c53030;
	color: #fff;
	border-color: #c53030;
}

/* 4. Consultation & Implementation Call-To-Action Banner */
.home-cta-banner {
	background: linear-gradient(135deg, #0b4543 0%, #0f5f5c 60%, #1e6972 100%);
	color: #fff;
	padding: 55px 0;
}

.cta-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
}

.cta-content {
	flex: 1;
}

.cta-content h2 {
	font-family: Montserrat, sans-serif;
	font-size: 28px;
	font-weight: 800;
	line-height: 1.25;
	color: #fff;
	margin: 0 0 12px 0;
}

.cta-content p {
	font-size: 15px;
	line-height: 1.6;
	color: #e2f0ef;
	margin: 0;
	max-width: 680px;
}

.cta-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	align-items: center;
	flex-shrink: 0;
}

.btn-primary-cta {
	display: inline-block;
	font-family: Montserrat, sans-serif;
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	background: #6fb048;
	color: #fff;
	padding: 14px 26px;
	border-radius: 4px;
	text-decoration: none;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	transition: all .2s ease;
}

.btn-primary-cta:hover,
.btn-primary-cta:focus {
	background: #5b9439;
	color: #fff !important;
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
}

.btn-secondary-cta {
	display: inline-block;
	font-family: Montserrat, sans-serif;
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	background: transparent;
	color: #fff;
	border: 2px solid rgba(255, 255, 255, 0.6);
	padding: 12px 24px;
	border-radius: 4px;
	text-decoration: none;
	transition: all .2s ease;
}

.btn-secondary-cta:hover,
.btn-secondary-cta:focus {
	border-color: #fff;
	background: rgba(255, 255, 255, 0.12);
	color: #fff !important;
	transform: translateY(-2px);
}

/* Responsive adjustments for Section 23 */
@media (max-width: 991px) {
	.cta-inner {
		flex-direction: column;
		text-align: center;
	}

	.cta-content p {
		margin: 0 auto;
	}

	.cta-buttons {
		justify-content: center;
	}

	.metric-card:not(:last-child)::after {
		display: none;
	}
}

@media (max-width: 767px) {
	.metric-card {
		flex: 1 1 45%;
		margin-bottom: 12px;
	}

	.metric-number {
		font-size: 32px;
	}

	.home-events-grid,
	.home-research-grid {
		flex-direction: column;
	}

	.home-event-card,
	.home-research-card {
		max-width: 100%;
	}

	.cta-content h2 {
		font-size: 22px;
	}

	.cta-buttons {
		flex-direction: column;
		width: 100%;
	}

	.btn-primary-cta,
	.btn-secondary-cta {
		width: 100%;
		text-align: center;
	}
}
