/* Methodology Widget Styles - Updated for Timeline */

.angie-methodology-wrapper {
	font-family: inherit;
	max-width: 1400px;
	margin: 0 auto;
}

/* Header Section */
.angie-methodology-header {
	margin-bottom: 4rem;
	padding-bottom: 2rem;
	border-bottom: 1px solid rgba(0,0,0,0.05);
	text-align: center;
	max-width: 900px;
	margin-left: auto;
	margin-right: auto;
}

.angie-eyebrow {
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 2px;
	font-weight: 600;
	margin-bottom: 1rem;
	color: #BBA364; /* Accent */
}

.angie-main-headline {
	font-size: 3rem;
	line-height: 1.1;
	margin-bottom: 1.5rem;
	font-weight: 700;
	color: #202C40; /* Primary */
}

.angie-intro-text {
	font-size: 1.15rem;
	line-height: 1.7;
	opacity: 0.8;
	color: #202C40;
}

/* Grid Layout (Legacy/Alternative) */
.angie-layout-grid .angie-phases-container {
	display: grid;
	gap: 1.5rem;
	grid-template-columns: repeat(5, 1fr);
}

@media (max-width: 1024px) {
	.angie-layout-grid .angie-phases-container {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 767px) {
	.angie-layout-grid .angie-phases-container {
		grid-template-columns: 1fr;
	}
}

/* Timeline Layout */
.angie-layout-timeline .angie-phases-container {
	display: flex;
	flex-direction: column;
	position: relative;
	padding-left: 2rem;
}

.angie-timeline-line {
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 2px;
	background-color: #BBA364;
	opacity: 0.3;
}

.angie-phase-item {
	position: relative;
	padding-bottom: 3rem;
	padding-left: 2rem;
}

.angie-layout-timeline .angie-phase-item:last-child {
	padding-bottom: 0;
}

.angie-timeline-dot {
	position: absolute;
	left: -2.4rem; /* Adjust based on padding + line position */
	top: 1.5rem;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background-color: #BBA364;
	border: 3px solid #fff;
	box-shadow: 0 0 0 2px #BBA364;
	z-index: 2;
}

/* Card Styles */
.angie-phase-card {
	background: #fff;
	border: 1px solid rgba(0,0,0,0.05);
	border-radius: 12px;
	transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
	display: flex;
	flex-direction: row; /* Horizontal layout for timeline items */
	overflow: hidden;
	box-shadow: 0 5px 20px rgba(0,0,0,0.04);
}

.angie-layout-grid .angie-phase-card {
	flex-direction: column;
	height: 100%;
}

.angie-phase-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 15px 35px rgba(0,0,0,0.08);
	border-color: #BBA364; /* Accent on hover */
}

/* Image Section */
.angie-phase-image-wrapper {
	position: relative;
	overflow: hidden;
	width: 35%; /* Fixed width for horizontal card */
	flex-shrink: 0;
}

.angie-layout-grid .angie-phase-image-wrapper {
	width: 100%;
}

.angie-phase-image {
	width: 100%;
	height: 100%;
	min-height: 220px;
	background-size: cover;
	background-position: center;
	transition: transform 0.6s ease;
}

.angie-phase-card:hover .angie-phase-image {
	transform: scale(1.05);
}

.angie-phase-image-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: #BBA364; /* Default accent */
	opacity: 0;
	transition: opacity 0.3s ease;
	mix-blend-mode: multiply;
}

.angie-phase-card:hover .angie-phase-image-overlay {
	opacity: 0.2;
}

/* Phase Number Positioning */
.angie-phase-image-wrapper .angie-phase-number {
	position: absolute;
	bottom: 0;
	right: 0;
	background: #fff;
	padding: 8px 15px;
	font-size: 1.2rem;
	font-weight: 700;
	opacity: 1;
	line-height: 1;
	border-top-left-radius: 8px;
	z-index: 2;
	color: #BBA364; /* Accent */
}

.angie-card-header {
	padding: 2.5rem 2.5rem 0 2.5rem;
	display: flex;
	justify-content: flex-end;
}

.angie-card-header .angie-phase-number {
	font-size: 3rem;
	font-weight: 700;
	opacity: 0.15;
	line-height: 1;
}

/* Card Body */
.angie-card-body {
	padding: 2rem;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	justify-content: center;
}

.angie-phase-title {
	font-size: 1.4rem;
	margin: 0 0 1rem 0;
	font-weight: 700;
	position: relative;
	padding-bottom: 0.75rem;
	color: #202C40;
}

/* Decorative underline for title */
.angie-phase-title:after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 40px;
	height: 3px;
	background-color: #BBA364; /* Default accent, overridden by control */
}

.angie-duration {
	font-size: 0.9rem;
	margin-bottom: 1rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid rgba(0,0,0,0.05);
}

.angie-duration-label {
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #BBA364; /* Accent */
	font-size: 0.8rem;
}

.angie-duration-value {
	font-weight: 600;
	color: #202C40;
}

.angie-phase-description {
	font-size: 0.95rem;
	line-height: 1.6;
	opacity: 0.85;
	color: #555;
}

/* Responsive Adjustments */
@media (max-width: 767px) {
	.angie-main-headline {
		font-size: 2.2rem;
	}
	
	.angie-methodology-header {
		margin-bottom: 2.5rem;
	}

	/* Force stacking on mobile for timeline */
	.angie-phase-card {
		flex-direction: column;
	}

	.angie-phase-image-wrapper {
		width: 100%;
		height: 200px;
	}

	.angie-timeline-line {
		left: 10px;
	}

	.angie-layout-timeline .angie-phases-container {
		padding-left: 0;
	}

	.angie-phase-item {
		padding-left: 2rem;
	}
	
	.angie-timeline-dot {
		left: -1.6rem;
		top: 1rem;
	}
}
