/**
 * Catholic in Recovery - Journey LMS Styles
 * Fortify-inspired design with CIR brand colors
 * 
 * Color Palette:
 * - Primary Dark: #475b63 (dark green/slate)
 * - Sage Accent: #729b79 (sage green)
 * - Light Green: #bacdb0 (subtle backgrounds)
 * - Warm Accent: #fbe1ad (completion bars, special highlights)
 * - Off-white: #f8faf7 (backgrounds)
 * - Light Blue-Gray: #f0f4f8 (alternating sections)
 */

/* ==========================================================================
   CSS Variables
   ========================================================================== */

:root {
	--cr-primary: #495D64;
	--cr-primary-dark: #3a4d54;
	--cr-sage: #729b79;
	--cr-sage-light: #8fb396;
	--cr-light-green: #bacdb0;
	--cr-light-green-soft: rgba(186, 205, 176, 0.3);
	--cr-warm: #fbe1ad;
	--cr-warm-light: #fdf0d5;
	--cr-off-white: #f8faf7;
	--cr-gray-bg: #EFEFEF;
	--cr-white: #ffffff;
	--cr-text-primary: #1f2937;
	--cr-text-secondary: #4b5563;
	--cr-text-muted: #6b7280;
	--cr-border: #e5e7eb;
	--cr-border-light: #f3f4f6;
	--cr-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
	--cr-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
	--cr-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
	--cr-shadow-card: 0 2px 8px rgba(71, 91, 99, 0.08);
	--cr-radius-sm: 6px;
	--cr-radius: 12px;
	--cr-radius-lg: 16px;
	--cr-radius-xl: 20px;
	--cr-transition: all 0.2s ease;
	--cr-max-width: 1200px;
	--cr-content-width: 900px;
}

/* Prevent horizontal scroll */
html, body {
	overflow-x: hidden;
}

/* Journey page background */
body.cr-journey-page {
	background-color: #E8F0E6;
}

body.cr-journey-page .site-content,
body.cr-journey-page .entry-content,
body.cr-journey-page main,
body.cr-journey-page article {
	background-color: transparent;
}

/* ==========================================================================
   Base Layout - Wider Content
   ========================================================================== */

.cr-container {
	max-width: var(--cr-max-width);
	margin: 0 auto;
	padding: 0 24px;
}

.cr-section {
	padding: 48px 0;
}

.cr-section-alt {
	background: var(--cr-light-bg);
}

.cr-section-green {
	background: linear-gradient(135deg, var(--cr-light-green-soft) 0%, rgba(248, 250, 247, 0.8) 100%);
}

/* ==========================================================================
   Enroll Button
   ========================================================================== */

.cr-enroll-button-wrapper {
	max-width: 900px;
	margin: 24px auto;
	text-align: center;
}

.cr-enroll-button {
	display: inline-block;
	padding: 14px 28px;
	font-size: 16px;
	font-weight: 600;
	text-decoration: none;
	border-radius: var(--cr-radius);
	cursor: pointer;
	border: none;
	transition: var(--cr-transition);
	box-shadow: var(--cr-shadow-sm);
}

.cr-enroll-button.cr-can-enroll {
	background: linear-gradient(135deg, var(--cr-primary) 0%, var(--cr-primary-dark) 100%);
	color: #fff;
}

.cr-enroll-button.cr-can-enroll:hover {
	background: linear-gradient(135deg, var(--cr-primary-dark) 0%, #2d3e44 100%);
	box-shadow: var(--cr-shadow);
	transform: translateY(-1px);
}

.cr-enroll-button.cr-enrolled {
	background: linear-gradient(135deg, var(--cr-sage) 0%, var(--cr-primary) 100%);
	color: #fff;
}

.cr-enroll-button.cr-login-to-enroll {
	background: var(--cr-text-muted);
	color: #fff;
}

.cr-enroll-button.cr-login-to-enroll:hover {
	background: var(--cr-text-secondary);
}

.cr-enroll-button.cr-unavailable {
	background: var(--cr-border);
	color: var(--cr-text-muted);
	cursor: not-allowed;
}

.cr-enroll-button:disabled {
	opacity: 0.7;
	cursor: wait;
}

/* ==========================================================================
   General Button - Fortify Style
   ========================================================================== */

.cr-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 24px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	border-radius: var(--cr-radius);
	cursor: pointer;
	border: none;
	transition: var(--cr-transition);
	background: var(--cr-primary);
	color: #fff;
	box-shadow: var(--cr-shadow-sm);
}

.cr-button:hover {
	background: var(--cr-primary-dark);
	color: #fff;
	box-shadow: var(--cr-shadow);
	transform: translateY(-1px);
}

.cr-button.cr-continue,
.cr-button.cr-begin {
	background: linear-gradient(135deg, var(--cr-primary) 0%, var(--cr-primary-dark) 100%);
}

.cr-button.cr-continue:hover,
.cr-button.cr-begin:hover {
	background: linear-gradient(135deg, var(--cr-primary-dark) 0%, #2d3e44 100%);
}

.cr-button.cr-overview {
	background: var(--cr-white);
	border: 2px solid var(--cr-border);
	color: var(--cr-text-primary);
}

.cr-button.cr-overview:hover {
	background: var(--cr-off-white);
	border-color: var(--cr-primary);
	color: var(--cr-primary);
}

/* Secondary/Ghost Button */
.cr-button-secondary {
	background: transparent;
	border: 2px solid var(--cr-primary);
	color: var(--cr-primary);
}

.cr-button-secondary:hover {
	background: var(--cr-primary);
	color: #fff;
}

/* ==========================================================================
   Journey Grid (Landing Page) - Fortify Card Style
   ========================================================================== */

.cr-journey-grid {
	display: grid;
	gap: 28px;
	/* Auto-fit columns based on available container width, not viewport */
	/* Cards have min 280px width, max 1fr (equal share of space) */
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Override auto-fit with max columns when specified */
.cr-journey-grid.cr-columns-2 {
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.cr-journey-grid.cr-columns-3 {
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.cr-journey-grid.cr-columns-4 {
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* Enforce single column on very narrow viewports */
@media (max-width: 480px) {
	.cr-journey-grid {
		grid-template-columns: 1fr !important;
	}
}

.cr-journey-card {
	background: var(--cr-white);
	border-radius: var(--cr-radius-lg);
	box-shadow: var(--cr-shadow-card);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: var(--cr-transition);
	border: 1px solid var(--cr-border-light);
}

.cr-journey-card:hover {
	box-shadow: var(--cr-shadow-lg);
	transform: translateY(-4px);
}

.cr-journey-image {
	height: 180px;
	background-size: cover;
	background-position: center;
	background-color: linear-gradient(135deg, var(--cr-light-green) 0%, var(--cr-sage-light) 100%);
	position: relative;
}

/* Gradient overlay for images */
.cr-journey-image::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 60px;
	background: linear-gradient(to top, rgba(255,255,255,0.8) 0%, transparent 100%);
}

.cr-journey-content {
	padding: 24px;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.cr-journey-title {
	margin: 0 0 12px;
	font-size: 1.25em;
	font-weight: 700;
	color: var(--cr-text-primary);
	line-height: 1.3;
}

.cr-journey-title a {
	color: inherit;
	text-decoration: none;
	transition: var(--cr-transition);
}

.cr-journey-title a:hover {
	color: var(--cr-primary);
}

.cr-journey-description {
	color: var(--cr-text-secondary);
	font-size: 0.95em;
	margin: 0 0 16px;
	line-height: 1.6;
	flex: 1;
}

.cr-journey-meta {
	display: flex;
	gap: 12px;
	font-size: 0.85em;
	color: var(--cr-text-muted);
	margin-bottom: 16px;
	flex-wrap: wrap;
}

.cr-journey-type {
	background: var(--cr-light-green-soft);
	color: var(--cr-primary);
	padding: 4px 10px;
	border-radius: 20px;
	font-weight: 500;
	font-size: 0.8em;
}

.cr-journey-action {
	padding: 20px 24px;
	border-top: 1px solid var(--cr-border-light);
	background: var(--cr-off-white);
}

.cr-journey-action .cr-button {
	width: 100%;
	text-align: center;
}

/* Side-by-side buttons for enrolled users */
.cr-journey-buttons {
	display: flex;
	gap: 12px;
}

.cr-journey-buttons .cr-button {
	flex: 1;
	width: auto;
}

/* ==========================================================================
   Progress Bar - Warm Accent Color
   ========================================================================== */

.cr-progress-bar {
	height: 8px;
	background: var(--cr-border);
	border-radius: 20px;
	overflow: hidden;
	margin: 12px 0 8px;
}

.cr-progress-fill {
	height: 100%;
	background: linear-gradient(90deg, var(--cr-warm) 0%, #f5c96a 100%);
	border-radius: 20px;
	transition: width 0.5s ease;
	box-shadow: 0 0 8px rgba(251, 225, 173, 0.5);
}

.cr-progress-text {
	font-size: 0.85em;
	color: var(--cr-text-muted);
	font-weight: 500;
}

.cr-journey-progress-wrapper {
	margin: 16px auto;
	max-width: 900px;
}

.cr-day-display {
	font-size: 1.1em;
	font-weight: 600;
	color: var(--cr-primary);
	margin-bottom: 8px;
}

/* ==========================================================================
   Module List - Fortify-style Clean Cards
   ========================================================================== */

.cr-module-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
	max-width: 900px;
	margin: 0 auto;
}

.cr-module-item {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 20px 24px;
	background: #ffffff;
	border-radius: 16px;
	border: none;
	transition: var(--cr-transition);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	text-decoration: none;
	color: inherit;
	cursor: pointer;
}

a.cr-module-item {
	display: flex;
}

.cr-module-item:hover {
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
	text-decoration: none;
	color: inherit;
}

.cr-module-item.cr-locked {
	opacity: 0.65;
	background: #ffffff;
	cursor: not-allowed;
}

.cr-module-item.cr-locked:hover {
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.cr-module-item.cr-completed {
	background: #ffffff;
}

.cr-module-item.cr-auto-completed {
	background: #ffffff;
}

.cr-module-item.cr-available {
	background: #ffffff;
}

/* Modules wrapper (enrolled view) */
.cr-modules-wrapper {
	display: flex;
	flex-direction: column;
	gap: 24px;
	max-width: 900px;
	margin: 0 auto;
}

/* Current Module section */
.cr-current-module {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.cr-modules-section-label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-family: 'Lato', sans-serif !important;
	font-size: 0.85em;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: var(--cr-sage);
	padding: 0 4px;
}

.cr-modules-section-label i {
	font-size: 1.1em;
}

.cr-current-module .cr-module-item {
	box-shadow: 0 4px 16px rgba(73, 93, 100, 0.15);
	border-left: 4px solid var(--cr-sage);
}

.cr-current-module .cr-module-item:hover {
	box-shadow: 0 6px 20px rgba(73, 93, 100, 0.22);
}

/* Modules tab navigation */
.cr-modules-tabs {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.cr-modules-tab-nav {
	display: flex;
	gap: 0;
	border-bottom: 2px solid var(--cr-border);
}

.cr-modules-tab-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 20px;
	font-size: 0.9em;
	font-weight: 600;
	color: var(--cr-text-muted);
	background: none;
	border: none;
	border-bottom: 2px solid transparent;
	margin-bottom: -2px;
	cursor: pointer;
	transition: var(--cr-transition);
	white-space: nowrap;
}

.cr-modules-tab-btn:hover {
	color: var(--cr-text-primary);
	background: var(--cr-border-light);
}

.cr-modules-tab-btn.cr-active {
	color: var(--cr-primary);
	border-bottom-color: var(--cr-primary);
}

.cr-modules-tab-btn i {
	font-size: 0.95em;
}

.cr-tab-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	font-size: 0.8em;
	font-weight: 700;
	background: var(--cr-border-light);
	color: var(--cr-text-muted);
	border-radius: 20px;
	line-height: 1;
}

.cr-modules-tab-btn.cr-active .cr-tab-count {
	background: var(--cr-light-green-soft);
	color: var(--cr-primary);
}

/* Tab panels */
.cr-modules-tab-panel {
	display: none;
	padding-top: 16px;
}

.cr-modules-tab-panel.cr-active {
	display: block;
}

.cr-modules-tab-panel .cr-module-list {
	gap: 12px;
}

/* Legacy divider styles (kept for backward compat) */
.cr-module-list-divider {
	display: flex;
	align-items: center;
	gap: 8px;
	font-family: 'Lato', sans-serif !important;
	font-size: 0.8em;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	padding: 12px 4px 8px;
	margin-top: 8px;
}

.cr-module-list-divider:first-child {
	margin-top: 0;
	padding-top: 4px;
}

.cr-module-list-divider--today {
	color: var(--cr-sage);
}

.cr-module-list-divider--completed {
	color: var(--cr-text-muted);
}

.cr-module-list-divider--upcoming {
	color: var(--cr-text-muted);
}

/* Today's module - highlighted state */
.cr-module-item.cr-today {
	background: #ffffff;
	box-shadow: 0 4px 16px rgba(73, 93, 100, 0.2);
	border-left: 4px solid var(--cr-sage);
	position: relative;
}

.cr-module-item.cr-today:hover {
	box-shadow: 0 6px 20px rgba(73, 93, 100, 0.25);
}

.cr-module-item.cr-today .cr-module-day-info {
	background: var(--cr-primary);
}

.cr-module-item.cr-today .cr-module-number {
	color: #fff;
}

.cr-module-item.cr-today .cr-module-date {
	color: rgba(255, 255, 255, 0.85);
}

.cr-module-item.cr-today .cr-module-title,
.cr-module-item.cr-today a.cr-module-title {
	color: var(--cr-text-primary);
	font-weight: 700;
}

.cr-module-item.cr-today a.cr-module-title:hover {
	color: var(--cr-primary);
}

/* Day info block (number + date) */
.cr-module-day-info {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 60px;
	height: 60px;
	flex-shrink: 0;
	padding: 8px;
	background: #EFEFEF;
	border-radius: 10px;
	text-align: center;
}

.cr-module-number {
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #EFEFEF;
	border-radius: 50%;
	font-weight: 700;
	flex-shrink: 0;
	font-size: 0.9em;
	color: var(--cr-text-secondary);
	transition: var(--cr-transition);
}

.cr-module-item:hover .cr-module-number {
	color: var(--cr-primary);
}

.cr-module-day-info .cr-module-number {
	width: auto;
	height: auto;
	background: transparent;
	border-radius: 0;
	font-size: 1.1em;
	font-weight: 800;
	color: var(--cr-primary);
	line-height: 1;
}

.cr-module-date {
	font-size: 0.7em;
	color: var(--cr-text-muted);
	margin-top: 2px;
	font-weight: 500;
	line-height: 1;
}

.cr-module-item.cr-today .cr-module-date {
	color: rgba(255, 255, 255, 0.85);
}

.cr-completed .cr-module-day-info {
	background: #E8F0E6;
}

.cr-completed .cr-module-number {
	color: var(--cr-sage);
}

.cr-module-info {
	flex: 1;
	min-width: 0;
}

.cr-module-title {
	font-weight: 600;
	display: block;
	color: var(--cr-text-primary);
	font-size: 1em;
}

a.cr-module-title {
	color: var(--cr-text-primary);
	text-decoration: none;
	transition: var(--cr-transition);
}

a.cr-module-title:hover {
	color: var(--cr-primary);
}

/* Today badge */
.cr-today-badge {
	display: inline-block;
	font-family: 'Lato', sans-serif !important;
	font-size: 0.65em;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.8px;
	background: var(--cr-sage);
	color: #ffffff;
	padding: 3px 10px;
	border-radius: 20px;
	margin-top: 4px;
	animation: cr-pulse-badge 2s ease-in-out infinite;
}

@keyframes cr-pulse-badge {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.7; }
}

.cr-module-status {
	font-size: 0.85em;
	padding: 6px 14px;
	border-radius: 20px;
	white-space: nowrap;
	font-weight: 500;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.cr-module-status.cr-status-completed {
	background: var(--cr-light-green-soft);
	color: var(--cr-primary);
}

.cr-module-status.cr-status-locked {
	background: var(--cr-border-light);
	color: var(--cr-text-muted);
}

.cr-module-status.cr-status-today {
	background: var(--cr-primary);
	color: #ffffff;
	font-weight: 600;
	box-shadow: var(--cr-shadow-sm);
}

/* ==========================================================================
   Module Content - Centered Layout
   ========================================================================== */

.cr-module-content {
	max-width: 900px;
	margin: 0 auto;
}

/* Module Hero Header */
.cr-module-hero {
	position: relative;
	background-color: #495E64;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	background-attachment: fixed;
	min-height: 240px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.cr-module-hero__overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(73, 94, 100, 0.80);
	display: flex;
	align-items: center;
	justify-content: center;
}

.cr-module-hero__inner {
	position: relative;
	z-index: 1;
	max-width: var(--cr-max-width);
	width: 100%;
	padding: 48px 24px;
	text-align: center;
}

.cr-module-hero__title {
	margin: 0;
	font-family: 'Lato', sans-serif !important;
	font-size: 2em;
	color: #ffffff;
	line-height: 1.3;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
}

/* Journey link hidden - now in top bar */
.cr-module-journey-link {
	display: none;
}

/* Legacy title - hidden, replaced by hero */
.cr-module-header {
	display: none;
}

.cr-module-main-title {
	display: none;
}

.cr-module-intro {
	font-size: 1.75em;
	margin-bottom: 0cqi;
	line-height: 1.7;
	color: #33454a;
	text-align: center;
	max-width: 700px;
	margin-left: auto;
	margin-right: auto;
}

.cr-module-media {
	margin: 32px 0;
}

.cr-media-embed iframe,
.cr-video-player,
.cr-audio-player {
	width: 100%;
	border-radius: var(--cr-radius);
	box-shadow: var(--cr-shadow);
}

.cr-video-player {
	aspect-ratio: 16/9;
	background: #000;
}

.cr-media-description {
	font-size: 0.9em;
	color: var(--cr-text-muted);
	margin-top: 12px;
	font-style: italic;
}

/* Content Sections - Clean White Cards */
.cr-module-section {
	margin: 0 0 24px 0;
	padding: 32px 40px;
	background: #ffffff;
	border-radius: 16px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
	border: none;
	width: 100%;
	max-width: 900px;
	box-sizing: border-box;
}

.cr-module-section:last-child {
	margin-bottom: 0;
}

.cr-module-section h3 {
	margin: 0 0 20px;
	font-family: 'Lato', sans-serif !important;
	font-size: 0.9em;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	color: #000000;
	display: flex;
	align-items: center;
	gap: 12px;
}

.cr-module-section p {
	color: var(--cr-text-secondary);
	line-height: 1.75;
	font-size: 1em;
}

.cr-module-section p:last-child {
	margin-bottom: 0;
}

/* All sections have solid white background */
.cr-read-section,
.cr-reflect-section,
.cr-pray-section,
.cr-act-section,
.cr-explore-section,
.cr-share-section {
	background: #ffffff;
}

/* Activities Grid Layout */
.cr-activities-grid {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 24px;
}

/* Resource list in Explore section */
.cr-resource-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	list-style: none;
	padding: 0;
	margin: 0;
}

.cr-resource-item {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	padding: 16px 0;
	border-bottom: 1px solid var(--cr-border-light);
}

.cr-resource-item:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.cr-resource-item > i {
	flex-shrink: 0;
	width: 24px;
	text-align: center;
	color: var(--cr-sage);
	margin-top: 3px;
	font-size: 1.1em;
}

.cr-resource-item a {
	font-weight: 600;
	color: var(--cr-primary);
	text-decoration: none;
	transition: var(--cr-transition);
}

.cr-resource-item a:hover {
	color: var(--cr-sage);
}

.cr-resource-item p {
	font-size: 0.9em;
	color: var(--cr-text-muted);
	margin: 4px 0 0;
	line-height: 1.5;
}

/* Section header icons - Fortify style */
.cr-module-section h3 i {
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #EFEFEF;
	border-radius: 8px;
	color: var(--cr-sage);
	font-size: 0.9em;
}

/* Section header custom image icons */
.cr-module-section h3 .cr-section-icon {
	width: 32px;
	height: 32px;
	object-fit: contain;
	border-radius: 0;
	background: none;
	flex-shrink: 0;
}

/* Status icons */
.cr-module-status i {
	font-size: 0.85em;
}

/* ==========================================================================
   My Journeys Dashboard - Fortify Card Style
   ========================================================================== */

.cr-my-journeys {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.cr-my-journey-card {
	display: flex;
	align-items: center;
	gap: 24px;
	padding: 24px;
	background: var(--cr-white);
	border-radius: var(--cr-radius-lg);
	box-shadow: var(--cr-shadow-card);
	border: 1px solid var(--cr-border-light);
	transition: var(--cr-transition);
}

.cr-my-journey-card:hover {
	box-shadow: var(--cr-shadow);
	transform: translateY(-2px);
}

.cr-my-journey-card.cr-status-completed {
	background: linear-gradient(135deg, var(--cr-white) 0%, var(--cr-light-green-soft) 100%);
	border-color: var(--cr-light-green);
}

.cr-journey-thumb {
	width: 100px;
	height: 100px;
	border-radius: var(--cr-radius);
	background-size: cover;
	background-position: center;
	background-color: var(--cr-light-bg);
	flex-shrink: 0;
	box-shadow: var(--cr-shadow-sm);
}

.cr-journey-info {
	flex: 1;
	min-width: 0;
}

.cr-journey-info h4 {
	margin: 0 0 8px;
	font-size: 1.15em;
	font-weight: 700;
	color: var(--cr-text-primary);
}

.cr-journey-info h4 a {
	color: inherit;
	text-decoration: none;
	transition: var(--cr-transition);
}

.cr-journey-info h4 a:hover {
	color: var(--cr-primary);
}

.cr-day-indicator {
	font-size: 0.9em;
	color: var(--cr-sage);
	font-weight: 600;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.cr-day-indicator::before {
	content: '';
	width: 8px;
	height: 8px;
	background: var(--cr-sage);
	border-radius: 50%;
}

@media (max-width: 480px) {
	.cr-my-journey-card {
		flex-direction: column;
		text-align: center;
	}
	
	.cr-journey-thumb {
		width: 100%;
		height: 140px;
	}
	
	.cr-day-indicator::before {
		display: none;
	}
}

/* ==========================================================================
   Mark Complete Button & Module Navigation
   ========================================================================== */

/* Module Navigation - Centered */
.cr-module-nav-wrapper {
	padding: 40px 24px;
	background: #ffffff;
	border-top: 1px solid var(--cr-border);
}

.cr-module-navigation {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	max-width: 900px;
	margin: 0 auto;
}

.cr-nav-spacer {
	display: none;
}

.cr-nav-prev,
.cr-nav-next {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.cr-nav-prev {
	background: var(--cr-white);
	border: 2px solid var(--cr-border);
	color: var(--cr-text-secondary);
}

.cr-nav-prev:hover {
	background: var(--cr-off-white);
	border-color: var(--cr-primary);
	color: var(--cr-primary);
}

.cr-mark-complete {
	flex-shrink: 0;
}

.cr-mark-complete.cr-completed {
	background: linear-gradient(135deg, var(--cr-sage) 0%, var(--cr-primary) 100%);
	cursor: default;
}

.cr-complete-status.cr-already-complete {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 28px;
	background: var(--cr-light-green-soft);
	color: var(--cr-primary);
	border-radius: var(--cr-radius);
	font-weight: 600;
	border: 1px solid var(--cr-light-green);
}

@media (max-width: 480px) {
	.cr-module-navigation {
		flex-wrap: wrap;
	}
	
	.cr-nav-prev,
	.cr-nav-next,
	.cr-mark-complete,
	.cr-complete-status {
		flex: 1;
		text-align: center;
		justify-content: center;
	}
}

/* ==========================================================================
   Today's Content
   ========================================================================== */

.cr-todays-content {
	max-width: var(--cr-content-width);
	margin: 0 auto;
}

.cr-day-header {
	font-size: 1.5em;
	color: var(--cr-primary);
	margin-bottom: 12px;
	font-weight: 700;
}

/* ==========================================================================
   No Content Day - Fortify Style Card
   ========================================================================== */

.cr-no-content-message {
	padding: 32px;
	background: var(--cr-white);
	border-radius: var(--cr-radius-lg);
	margin-bottom: 28px;
	box-shadow: var(--cr-shadow-card);
	border: 1px solid var(--cr-border-light);
	border-left: 4px solid var(--cr-sage);
}

.cr-daily-reflections {
	margin: 28px 0;
}

.cr-meetings-link {
	margin: 28px 0;
}

.cr-meetings-section {
	max-width: 900px;
	margin: 40px auto;
	padding: 32px 32px;
	background: linear-gradient(135deg, rgba(186, 205, 176, 0.25) 0%, rgba(114, 155, 121, 0.12) 100%);
	border-radius: var(--cr-radius-lg);
	border: 1px solid rgba(114, 155, 121, 0.25);
	box-shadow: var(--cr-shadow), 0 0 0 1px rgba(114, 155, 121, 0.06);
	text-align: center;
}

.cr-meetings-section-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
}

.cr-meetings-section-inner > i {
	font-size: 36px;
	color: var(--cr-sage);
	flex-shrink: 0;
	background: rgba(114, 155, 121, 0.12);
	width: 64px;
	height: 64px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
}

.cr-meetings-section-text {
	min-width: 200px;
}

.cr-meetings-section-text strong {
	display: block;
	font-size: 18px;
	color: var(--cr-text-primary);
	margin-bottom: 4px;
}

.cr-meetings-section-text span {
	font-size: 15px;
	color: var(--cr-text-secondary);
}

.cr-meetings-button {
	flex-shrink: 0;
	white-space: nowrap;
	margin-top: 4px;
}

/* ==========================================================================
   Utility Classes - Fortify Style
   ========================================================================== */

.cr-no-journeys,
.cr-no-modules,
.cr-no-enrollments,
.cr-login-required {
	padding: 40px;
	background: var(--cr-white);
	border-radius: var(--cr-radius-lg);
	text-align: center;
	color: var(--cr-text-secondary);
	box-shadow: var(--cr-shadow-card);
	border: 1px solid var(--cr-border-light);
}

.cr-module-locked {
	padding: 32px;
	background: var(--cr-white);
	border-radius: var(--cr-radius-lg);
	border-left: 4px solid var(--cr-warm);
	box-shadow: var(--cr-shadow-card);
}

.cr-not-enrolled {
	padding: 40px;
	background: var(--cr-white);
	border-radius: var(--cr-radius-lg);
	text-align: center;
	box-shadow: var(--cr-shadow-card);
	border: 1px solid var(--cr-border-light);
}

/* ==========================================================================
   Journey Header (Landing Page) - Fortify Hero Style
   ========================================================================== */

/* Single Journey Overview Page Wrapper */
.cr-journey-overview-page {
	background: #E8F0E6;
	padding: 60px 24px;
	min-height: 100vh;
}

.cr-journey-overview-inner {
	max-width: 900px;
	margin: 0 auto;
}

.cr-journey-header {
	margin-bottom: 48px;
	max-width: 900px;
	margin-left: auto;
	margin-right: auto;
}

/* Subtitle above title */
.cr-journey-subtitle {
	font-family: 'Lato', sans-serif !important;
	font-size: 0.75em;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	color: var(--cr-sage);
	margin: 0 0 8px;
}

/* ==========================================================================
   Journey Layout - Two Column Desktop Layout (Container Query)
   ========================================================================== */

/* Container for container queries */
.cr-journey-layout {
	container-type: inline-size;
	container-name: journey-layout;
	width: 100%;
}

.cr-journey-layout-inner {
	display: flex;
	flex-direction: column;
	gap: 40px;
}

.cr-journey-layout-left {
	flex: 1;
}

.cr-journey-layout-right {
	flex: 1;
}

/* Reset the max-width on journey header when inside layout */
.cr-journey-layout .cr-journey-header {
	max-width: none;
	margin-bottom: 0;
}

/* Reset the max-width on module list when inside layout */
.cr-journey-layout .cr-module-list,
.cr-journey-layout .cr-modules-wrapper {
	max-width: none;
}

/* Meta in right column styling */
.cr-journey-layout-right .cr-journey-header-meta {
	margin-bottom: 24px;
}

/* Desktop: Two columns side by side when container is wide enough */
@container journey-layout (min-width: 700px) {
	.cr-journey-layout-inner {
		flex-direction: row;
		align-items: flex-start;
		gap: 48px;
	}
	
	.cr-journey-layout-left,
	.cr-journey-layout-right {
		flex: 1;
		min-width: 0;
		width: 50%;
	}
	
	/* Make the right column (modules) sticky on scroll */
	.cr-journey-layout-right {
		position: sticky;
		top: 24px;
		max-height: calc(100vh - 48px);
		overflow-y: auto;
	}
}

.cr-journey-hero-image {
	margin-bottom: 32px;
	border-radius: var(--cr-radius-lg);
	overflow: hidden;
	box-shadow: var(--cr-shadow-lg);
}

.cr-journey-hero-image img {
	width: 100%;
	height: auto;
	display: block;
}

.cr-journey-header-content {
	max-width: 900px;
	margin: 0 auto;
}

.cr-journey-main-title {
	font-size: 2.5em !important;
	margin: 0 0 20px;
	color: var(--cr-text-primary);
	line-height: 1.2;
	font-weight: 800;
}

.cr-journey-header-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-bottom: 24px;
	font-size: 0.95em;
	color: var(--cr-text-muted);
}

.cr-journey-header-meta span {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--cr-off-white);
	padding: 8px 16px;
	border-radius: 24px;
}

.cr-journey-header-meta i {
	color: var(--cr-sage);
}

.cr-meta-start {
	background: linear-gradient(135deg, var(--cr-light-green-soft) 0%, var(--cr-off-white) 100%) !important;
	font-weight: 600;
	color: var(--cr-primary) !important;
	border: 1px solid var(--cr-light-green);
}

.cr-journey-short-desc {
	font-size: 1.2em;
	color: var(--cr-text-secondary);
	line-height: 1.7;
	margin-bottom: 24px;
}

.cr-journey-full-description {
	color: var(--cr-text-secondary);
	line-height: 1.8;
	font-size: 1.05em;
}

.cr-journey-full-description p:last-child {
	margin-bottom: 0;
}

/* About this Journey toggle - hidden on desktop */
.cr-about-toggle {
	display: none;
}

/* ==========================================================================
   Enhanced Resource Cards - Fortify "Connect" Style
   ========================================================================== */

/* Explore Section Wrapper */
.cr-explore-wrapper {
	padding: 70px 24px;
	background: #EFEFEF;
	margin: 0 -24px;
	width: calc(100% + 48px);
}

.cr-explore-wrapper .cr-section-header {
	max-width: 1100px;
	margin: 0 auto 40px;
}

.cr-explore-wrapper .cr-resource-grid {
	max-width: 1100px;
	margin: 0 auto;
}

/* Resource Grid - Fortify Connect Style */
.cr-resource-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

@media (max-width: 992px) {
	.cr-resource-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 640px) {
	.cr-resource-grid {
		grid-template-columns: 1fr;
	}
}

/* Resource Card - Fortify Style with Image */
.cr-resource-card {
	display: flex;
	flex-direction: column;
	background: #ffffff;
	border-radius: 16px;
	overflow: hidden;
	transition: var(--cr-transition);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.cr-resource-card:hover {
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	transform: translateY(-4px);
}

/* Resource Image/Illustration Area */
.cr-resource-image {
	height: 160px;
	position: relative;
	overflow: hidden;
	background: var(--cr-off-white);
}

/* Resource type image */
.cr-resource-image .cr-resource-type-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Fallback icon overlay (if still used) */
.cr-resource-image i {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	font-size: 3em;
	color: rgba(255, 255, 255, 0.9);
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Resource Content Area */
.cr-resource-content {
	padding: 20px;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.cr-resource-type-badge {
	display: inline-block;
	font-family: 'Lato', sans-serif !important;
	font-size: 0.7em;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--cr-text-muted);
	margin-bottom: 8px;
}

.cr-resource-title {
	display: block;
	font-weight: 700;
	color: var(--cr-text-primary);
	text-decoration: none;
	font-size: 1.1em;
	line-height: 1.3;
	margin-bottom: 8px;
}

a.cr-resource-title:hover {
	color: var(--cr-primary);
}

.cr-resource-author {
	display: block;
	font-size: 0.85em;
	color: var(--cr-text-muted);
	margin-bottom: 8px;
}

.cr-resource-description {
	margin: 0 0 16px;
	font-size: 0.9em;
	color: var(--cr-text-secondary);
	line-height: 1.5;
	flex: 1;
}

/* See More Link - Fortify Style */
.cr-resource-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 0.9em;
	font-weight: 600;
	color: var(--cr-text-primary);
	text-decoration: none;
	margin-top: auto;
	padding-top: 12px;
	border-top: 1px solid var(--cr-border-light);
	transition: var(--cr-transition);
}

.cr-resource-link:hover {
	color: var(--cr-primary);
}

.cr-resource-link i,
.cr-resource-link::after {
	content: '→';
	transition: transform 0.2s ease;
}

.cr-resource-link:hover::after {
	transform: translateX(4px);
}

/* Legacy resource list support */
.cr-resource-list {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	list-style: none;
	padding: 0;
	margin: 0;
}

@media (max-width: 992px) {
	.cr-resource-list {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 640px) {
	.cr-resource-list {
		grid-template-columns: 1fr;
	}
}

.cr-resource-item {
	display: flex;
	flex-direction: column;
	background: var(--cr-white);
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
	transition: var(--cr-transition);
	border: none;
	padding: 0;
}

.cr-resource-item:hover {
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	transform: translateY(-4px);
}

/* ==========================================================================
   Discussion Threads - Clean Fortify Style
   ========================================================================== */

/* Discussion Section Wrapper */
.cr-discuss-wrapper {
	padding: 70px 24px;
	background: #ffffff;
	margin: 0 -24px;
	width: calc(100% + 48px);
}

.cr-discuss-wrapper .cr-section-header {
	max-width: 900px;
	margin: 0 auto 40px;
}

.cr-discuss-wrapper .cr-discussion-content {
	max-width: 900px;
	margin: 0 auto;
}

.cr-discussion-threads {
	margin-top: 0;
}

.cr-share-prompt {
	text-align: center;
	color: var(--cr-text-secondary);
	font-size: 1.05em;
	margin-bottom: 32px;
}

.cr-comment-form-wrapper {
	margin-bottom: 32px;
}

.cr-comment-form {
	display: flex;
	gap: 16px;
	align-items: flex-start;
}

.cr-comment-avatar {
	display: none !important;
}

.cr-comment-input-wrapper {
	flex: 1;
	width: 100%;
}

.cr-comment-input-wrapper textarea {
	width: 100%;
	padding: 16px;
	border: 1px solid var(--cr-border);
	border-radius: var(--cr-radius);
	font-family: inherit;
	font-size: 0.95em;
	resize: vertical;
	min-height: 100px;
	transition: var(--cr-transition);
	background: var(--cr-white);
}

.cr-comment-input-wrapper textarea:focus {
	outline: none;
	border-color: var(--cr-sage);
	box-shadow: 0 0 0 3px var(--cr-light-green-soft);
}

.cr-submit-comment {
	margin-top: 12px;
}

.cr-login-to-comment {
	padding: 24px;
	background: var(--cr-off-white);
	border-radius: var(--cr-radius);
	text-align: center;
	color: var(--cr-text-muted);
	border: 1px solid var(--cr-border-light);
}

.cr-login-to-comment a {
	color: var(--cr-primary);
	font-weight: 600;
	text-decoration: none;
}

.cr-login-to-comment a:hover {
	text-decoration: underline;
}

.cr-comments-list {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.cr-no-comments {
	padding: 48px 32px;
	padding-bottom: 20px;
	text-align: center;
	color: var(--cr-text-muted);
	background: #EFEFEF;
	border-radius: var(--cr-radius);
	border: 1px dashed var(--cr-border);
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 80px;
}

.cr-comment {
	display: flex;
	gap: 16px;
	padding: 20px;
	background: var(--cr-white);
	border-radius: var(--cr-radius);
	border: 1px solid var(--cr-border-light);
	box-shadow: var(--cr-shadow-sm);
}

.cr-comment .cr-comment-avatar {
	display: none !important;
}

.cr-comment-body {
	flex: 1;
	min-width: 0;
}

.cr-comment-header {
	display: flex;
	align-items: baseline;
	gap: 10px;
	margin-bottom: 8px;
}

.cr-comment-author {
	font-weight: 700;
	color: var(--cr-text-primary);
}

.cr-comment-time {
	font-size: 0.8em;
	color: var(--cr-text-muted);
}

.cr-comment-content {
	color: var(--cr-text-secondary);
	line-height: 1.6;
	margin-bottom: 12px;
}

.cr-comment-actions {
	display: flex;
	gap: 16px;
}

.cr-comment-actions button {
	background: none;
	border: none;
	padding: 4px 0;
	font-size: 0.8em;
	color: var(--cr-text-muted);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	transition: var(--cr-transition);
}

.cr-comment-actions button:hover {
	color: var(--cr-primary);
}

.cr-delete-btn:hover {
	color: #dc2626 !important;
}

.cr-report-btn:hover {
	color: #d97706 !important;
}

.cr-like-btn {
	transition: color 0.2s ease, transform 0.2s ease;
}

.cr-like-btn:hover {
	color: #e74c6f !important;
}

.cr-like-btn.cr-liked {
	color: #e74c6f !important;
}

.cr-like-btn.cr-liked:hover {
	opacity: 0.75;
}

.cr-like-btn.cr-like-loading {
	pointer-events: none;
	opacity: 0.5;
}

.cr-like-count {
	font-weight: 600;
	font-size: 0.95em;
}

.cr-like-display {
	font-size: 0.8em;
	color: #e74c6f;
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

/* Reply form */
.cr-reply-form-wrapper {
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid var(--cr-border-light);
}

.cr-reply-form textarea {
	width: 100%;
	padding: 12px;
	border: 1px solid var(--cr-border);
	border-radius: var(--cr-radius-sm);
	font-family: inherit;
	font-size: 0.9em;
	resize: vertical;
	min-height: 70px;
	transition: var(--cr-transition);
}

.cr-reply-form textarea:focus {
	outline: none;
	border-color: var(--cr-sage);
	box-shadow: 0 0 0 3px var(--cr-light-green-soft);
}

.cr-reply-form-actions {
	display: flex;
	gap: 10px;
	margin-top: 10px;
	justify-content: flex-end;
}

.cr-cancel-reply {
	background: none;
	border: none;
	padding: 8px 16px;
	color: var(--cr-text-muted);
	cursor: pointer;
	font-weight: 500;
	transition: var(--cr-transition);
}

.cr-cancel-reply:hover {
	color: var(--cr-text-primary);
}

.cr-submit-reply {
	padding: 8px 20px;
	font-size: 0.85em;
}

/* Nested replies */
.cr-comment-replies {
	margin-top: 20px;
	padding-left: 24px;
	border-left: 2px solid var(--cr-light-green);
}

.cr-comment-replies .cr-comment {
	padding-top: 16px;
	background: transparent;
	border: none;
	box-shadow: none;
}

.cr-comment-replies .cr-comment:first-child {
	padding-top: 0;
}

/* Report modal */
.cr-report-modal {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.6);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9999;
	backdrop-filter: blur(4px);
}

.cr-report-modal-content {
	background: var(--cr-white);
	border-radius: var(--cr-radius-lg);
	padding: 32px;
	width: 100%;
	max-width: 440px;
	box-shadow: var(--cr-shadow-lg);
}

.cr-report-modal h3 {
	margin: 0 0 20px;
	color: var(--cr-text-primary);
	font-weight: 700;
}

.cr-report-modal select,
.cr-report-modal textarea {
	width: 100%;
	padding: 12px;
	border: 1px solid var(--cr-border);
	border-radius: var(--cr-radius-sm);
	font-family: inherit;
	font-size: 0.95em;
	margin-bottom: 16px;
	transition: var(--cr-transition);
}

.cr-report-modal select:focus,
.cr-report-modal textarea:focus {
	outline: none;
	border-color: var(--cr-sage);
	box-shadow: 0 0 0 3px var(--cr-light-green-soft);
}

.cr-report-modal-actions {
	display: flex;
	gap: 12px;
	justify-content: flex-end;
	margin-top: 20px;
}

/* Daily reflections embed */
.cr-daily-reflections-embed {
	margin-top: 28px;
	padding-top: 28px;
	border-top: 1px dashed var(--cr-border);
}

.cr-reflections-placeholder {
	padding: 24px;
	background: var(--cr-off-white);
	border-radius: var(--cr-radius);
	text-align: center;
	color: var(--cr-text-muted);
	border: 1px dashed var(--cr-border);
}

.cr-reflect-intro {
	margin-bottom: 20px;
	color: var(--cr-text-secondary);
}

.cr-reflect-after {
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px solid var(--cr-border-light);
	color: var(--cr-text-secondary);
}

/* ==========================================================================
   Page Section Backgrounds - Fortify Alternating Style
   ========================================================================== */

.cr-page-section {
	padding: 60px 24px;
}

.cr-page-section-gray {
	background: #EFEFEF;
}

.cr-page-section-green {
	background: #e8f0e6;
}

.cr-page-section-white {
	background: var(--cr-white);
}

.cr-page-section-inner {
	max-width: var(--cr-max-width);
	margin: 0 auto;
}

.cr-section-header {
	margin-bottom: 40px;
	text-align: center;
}

.cr-section-title {
	font-family: 'Lato', sans-serif !important;
	font-size: 1.5em;
	font-weight: 700;
	color: #000000;
	margin: 0 0 8px;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.cr-section-subtitle {
	font-size: 1.05em;
	color: var(--cr-text-muted);
	margin: 0;
	line-height: 1.6;
}

.cr-section-subtitle a {
	color: var(--cr-sage);
	text-decoration: none;
}

.cr-section-subtitle a:hover {
	text-decoration: underline;
}

/* ==========================================================================
   Module Page Layout - Three Distinct Sections
   ========================================================================== */

/* ==========================================================================
   Module Top Bar - Fortify Style Header
   ========================================================================== */

.cr-module-top-bar {
	background: #495D64;
	padding: 16px 24px;
	color: #fff;
}

.cr-module-top-bar-inner {
	max-width: var(--cr-max-width);
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.cr-top-bar-back a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: rgba(255, 255, 255, 0.85);
	text-decoration: none;
	font-size: 0.9em;
	font-weight: 500;
	transition: var(--cr-transition);
}

.cr-top-bar-back a:hover {
	color: #ffffff;
}

.cr-top-bar-back i {
	font-size: 0.85em;
}

.cr-top-bar-title {
	text-align: center;
	flex: 1;
}

.cr-top-bar-journey-name {
	font-size: 1.1em;
	font-weight: 700;
	color: #ffffff;
	margin: 0;
}

.cr-top-bar-module-info {
	text-align: right;
	display: flex;
	align-items: center;
	gap: 8px;
	color: rgba(255, 255, 255, 0.85);
	font-size: 0.9em;
	font-weight: 500;
}

.cr-top-bar-module-info i {
	color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 768px) {
	.cr-module-top-bar-inner {
		flex-direction: column;
		gap: 12px;
		text-align: center;
	}
	
	.cr-top-bar-back,
	.cr-top-bar-module-info {
		text-align: center;
	}
}

/* Section 1: Content Section (gray bg) */
.cr-content-section {
	background: #EFEFEF;
	padding: 30px 24px 30px;
}

.cr-content-section .cr-page-section-inner {
	max-width: 900px;
	margin: 0 auto;
}

/* Section 2: Activities Section (light green bg like Fortify's blue) */
.cr-activities-section {
	background: #e8f0e6;
	padding: 70px 24px;
}

.cr-activities-section .cr-page-section-inner {
	max-width: 900px;
	margin: 0 auto;
}

/* Section 3: Explore Section (gray bg) */
.cr-explore-section-wrapper {
	background: #f0f2f5;
	padding: 70px 24px;
}

.cr-explore-section-wrapper .cr-page-section-inner {
	max-width: 1100px;
	margin: 0 auto;
}

/* Section 4: Discussion Section (white bg) */
.cr-discussion-section {
	background: #ffffff;
	padding: 70px 24px;
}

.cr-discussion-section .cr-page-section-inner {
	max-width: 900px;
	margin: 0 auto;
}

/* ==========================================================================
   Category/Tag Pills - Fortify Style
   ========================================================================== */

.cr-category-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 24px;
}

.cr-category-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	background: var(--cr-white);
	border: 1px solid var(--cr-border);
	border-radius: 24px;
	font-size: 0.9em;
	color: var(--cr-text-secondary);
	text-decoration: none;
	transition: var(--cr-transition);
	font-weight: 500;
}

.cr-category-pill:hover {
	border-color: var(--cr-sage);
	background: var(--cr-light-green-soft);
	color: var(--cr-primary);
}

.cr-category-pill.active {
	background: var(--cr-primary);
	border-color: var(--cr-primary);
	color: #fff;
}

.cr-category-pill i {
	font-size: 1.1em;
}

/* ==========================================================================
   Stats/Metrics Cards - Fortify Analytics Style
   ========================================================================== */

.cr-stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 20px;
}

.cr-stat-card {
	background: var(--cr-white);
	border-radius: var(--cr-radius-lg);
	padding: 28px;
	box-shadow: var(--cr-shadow-card);
	border: 1px solid var(--cr-border-light);
	text-align: center;
}

.cr-stat-value {
	font-size: 2.5em;
	font-weight: 800;
	color: var(--cr-primary);
	line-height: 1;
	margin-bottom: 8px;
}

.cr-stat-label {
	font-family: 'Lato', sans-serif !important;
	font-size: 0.9em;
	color: var(--cr-text-muted);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	font-weight: 500;
}

.cr-stat-card-accent {
	background: linear-gradient(135deg, var(--cr-primary) 0%, var(--cr-sage) 100%);
	border: none;
}

.cr-stat-card-accent .cr-stat-value,
.cr-stat-card-accent .cr-stat-label {
	color: #fff;
}

/* ==========================================================================
   Circular Progress (Fortify Goals Style)
   ========================================================================== */

.cr-circular-progress {
	position: relative;
	width: 120px;
	height: 120px;
	margin: 0 auto;
}

.cr-circular-progress svg {
	transform: rotate(-90deg);
}

.cr-circular-progress-bg {
	fill: none;
	stroke: var(--cr-border);
	stroke-width: 8;
}

.cr-circular-progress-fill {
	fill: none;
	stroke: var(--cr-sage);
	stroke-width: 8;
	stroke-linecap: round;
	transition: stroke-dashoffset 0.5s ease;
}

.cr-circular-progress-text {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	font-size: 1.5em;
	font-weight: 700;
	color: var(--cr-primary);
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */

@media (max-width: 640px) {
	.cr-module-item {
		flex-wrap: nowrap;
		padding: 14px 12px;
		gap: 10px;
	}
	
	.cr-module-thumb {
		width: 44px;
		height: 44px;
		border-radius: 6px;
	}
	
	.cr-module-day-info {
		width: 48px;
		height: 48px;
		padding: 6px;
	}
	
	.cr-module-info {
		flex: 1;
		min-width: 0;
	}
	
	.cr-module-title {
		font-size: 0.9em;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}
	
	.cr-module-status {
		font-size: 0.75em;
		padding: 4px 10px;
		white-space: nowrap;
		flex-shrink: 0;
	}
	
	.cr-modules-tab-btn {
		padding: 10px 14px;
		font-size: 0.85em;
	}
	
	.cr-resource-card {
		flex-direction: column;
		gap: 16px;
	}
	
	.cr-resource-icon {
		width: 44px;
		height: 44px;
	}
	
	.cr-journey-header-meta {
		flex-direction: column;
		gap: 10px;
		margin-bottom: 8px;
	}
	
	.cr-journey-short-desc {
		margin-bottom: 8px;
	}
	
	.cr-comment {
		flex-direction: column;
		padding: 16px;
	}
	
	/* Hide journey main title on mobile */
	.cr-journey-main-title {
		display: none;
	}
	
	.cr-module-hero {
		min-height: 180px;
		background-attachment: scroll; /* iOS doesn't support fixed */
	}

	.cr-module-hero__title {
		font-size: 1.5em;
	}

	.cr-module-hero__inner {
		padding: 32px 16px;
	}
	
	.cr-page-section {
		padding: 40px 16px;
	}
	
	.cr-module-section {
		padding: 24px 20px;
	}
	
	.cr-explore-wrapper,
	.cr-discuss-wrapper {
		padding: 50px 16px;
		margin: 0 -16px;
		width: calc(100% + 32px);
	}
	
	.cr-section-title {
		font-size: 1.25em;
	}
	
	/* Fix Continue button text cut off on mobile */
	.cr-journey-buttons {
		gap: 8px;
	}
	
	.cr-journey-buttons .cr-button {
		font-size: 0.85em;
		padding: 10px 14px;
		min-width: 0;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}
	
	/* Collapsible full description on mobile */
	.cr-journey-full-description {
		max-height: 0;
		overflow: hidden;
		transition: max-height 0.3s ease;
	}
	
	.cr-journey-full-description.cr-desc-open {
		max-height: 2000px;
	}
	
	.cr-about-toggle {
		display: flex;
		align-items: center;
		justify-content: space-between;
		width: 100%;
		background: var(--cr-off-white);
		border: 1px solid var(--cr-border);
		border-radius: var(--cr-radius);
		padding: 14px 18px;
		font-size: 1em;
		font-weight: 600;
		color: var(--cr-text-primary);
		cursor: pointer;
		margin-top: 18px;
		margin-bottom: 12px;
		transition: var(--cr-transition);
	}
	
	.cr-about-toggle:hover {
		background: var(--cr-border-light);
	}
	
	.cr-about-toggle i {
		font-size: 0.85em;
		color: var(--cr-text-muted);
		transition: transform 0.3s ease;
	}
	
	.cr-about-toggle.cr-toggle-open i {
		transform: rotate(180deg);
	}
}

/* ==========================================================================
   Animation Utilities
   ========================================================================== */

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

.cr-animate-in {
	animation: fadeIn 0.4s ease forwards;
}

@keyframes pulse {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.05); }
}

.cr-pulse {
	animation: pulse 2s ease-in-out infinite;
}

/* Smooth scroll behavior */
html {
	scroll-behavior: smooth;
}

/* Focus styles for accessibility */
.cr-button:focus,
.cr-enroll-button:focus,
a:focus {
	outline: 2px solid var(--cr-sage);
	outline-offset: 2px;
}

/* ==========================================================================
   Module Featured Images
   ========================================================================== */

/* Featured image on module content page - hidden, now used as hero background */
.cr-module-featured-image {
	display: none;
}

.cr-module-featured-image img {
	display: none;
}

/* Thumbnail in module list */
.cr-module-thumb {
	flex-shrink: 0;
	width: 60px;
	height: 60px;
	border-radius: 8px;
	overflow: hidden;
}

.cr-module-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
	.cr-module-navigation,
	.cr-enroll-button,
	.cr-comment-form,
	.cr-comment-actions {
		display: none;
	}
	
	.cr-module-content,
	.cr-journey-header-content {
		max-width: 100%;
	}
	
	.cr-module-section {
		break-inside: avoid;
		box-shadow: none;
		border: 1px solid #ddd;
	}
}

/* =========================================================================
   ADMIN PREVIEW BANNER
   ========================================================================= */
.cr-admin-preview-banner {
	background: #fff3cd;
	border-bottom: 3px solid #ffc107;
	padding: 12px 20px;
	position: sticky;
	top: 0;
	z-index: 9999;
}

.cr-admin-preview-banner-inner {
	max-width: 1200px;
	margin: 0 auto;
	font-size: 14px;
	color: #856404;
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
}

.cr-admin-preview-banner i {
	font-size: 16px;
}

.cr-admin-preview-banner a {
	color: #856404;
	text-decoration: underline;
	font-weight: 600;
	margin-left: auto;
}

.cr-admin-preview-banner a:hover {
	color: #533f03;
}

/* Bottom padding for journey overview and module pages */
.cr-journey-layout,
.cr-module-page {
	padding-bottom: 150px;
}
