/**
 * Philosophy Template Styles
 *
 * @package ceron
 */

/* ===================================
   CONTENT WRAPPER
   =================================== */

.philosophy-content-wrapper {
	max-width: 1200px;
	margin: 0 auto;
	padding: 100px 0;
	display: flex;
	flex-direction: column;
	gap: 60px;
}

/* ===================================
   SECTION LAYOUT
   =================================== */

.philosophy-section {
	padding: 0;
}

.philosophy-section-inner {
	display: grid;
	grid-template-columns: 692px 488px;
	gap: 22px;
	align-items: center;
}

.philosophy-section-inner.reverse {
	grid-template-columns: 488px 648px;
	gap: 66px;
}

/* ===================================
   SECTION CONTENT
   =================================== */

.philosophy-section .section-content h2 {
	font-size: 50px;
    font-weight: 300;
    line-height: 60px;
    color: #180a2c;
    margin: 0;
}

.philosophy-section .section-subtitle {
	font-size: 22px;
	line-height: 34px;
	color: #666666;
	margin: 0 0 30px 0;
}

.philosophy-section .section-text {
	font-size: 18px;
	line-height: 30px;
	color: #666666;
	max-width: 645px;
}

.philosophy-section .section-text p {
	margin: 0 0 16px 0;
}

.philosophy-section .section-text ul {
	margin: 0 0 1.5em 1em;
}

.philosophy-section .section-text p:last-child {
	margin-bottom: 0;
}

/* ===================================
   SECTION IMAGES
   =================================== */

.philosophy-section .section-image {
	position: relative;
	overflow: hidden;
}

.philosophy-section-inner:not(.reverse) .section-image {
	width: 488px;
	height: 548px;
}

.philosophy-section-inner.reverse .section-image {
	width: 488px;
	height: 548px;
}

.philosophy-section .section-image img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
	transition: transform 0.6s ease;
}

.philosophy-section .section-image:hover img {
	transform: scale(1.08);
}

/* ===================================
   RESPONSIVE STYLES
   =================================== */

/* Tablet Large (1200px and below) */
@media (max-width: 1200px) {
	.philosophy-section-inner {
		grid-template-columns: 1fr 400px;
		gap: 40px;
	}

	.philosophy-section-inner.reverse {
		grid-template-columns: 400px 1fr;
		gap: 40px;
	}

	.philosophy-section-inner:not(.reverse) .section-image,
	.philosophy-section-inner.reverse .section-image {
		width: 100%;
		height: 450px;
	}
}

/* Tablet (1024px and below) */
@media (max-width: 1024px) {
	.philosophy-content-wrapper {
		padding: 80px var(--container-padding);
		gap: 50px;
	}

	.philosophy-section-inner,
	.philosophy-section-inner.reverse {
		grid-template-columns: 1fr;
		gap: 30px;
	}

	/* Force text -> picture order on every section once stacked, regardless of desktop zigzag layout */
	.philosophy-section-inner.reverse .section-content {
		order: 1;
	}

	.philosophy-section-inner.reverse .section-image {
		order: 2;
	}

	.philosophy-section .section-content h1 {
		font-size: 42px;
		line-height: 48px;
	}

	.philosophy-section .section-content h2 {
		font-size: 42px;
		line-height: 48px;
	}

	.philosophy-section .section-subtitle {
		font-size: 20px;
		line-height: 30px;
		margin-bottom: 24px;
	}

	.philosophy-section .section-text {
		max-width: 100%;
	}

	.philosophy-section-inner:not(.reverse) .section-image,
	.philosophy-section-inner.reverse .section-image {
		width: 100%;
		height: 400px;
	}
}

/* Tablet Small (768px and below) */
@media (max-width: 768px) {
	.philosophy-section-inner,
	.philosophy-section-inner.reverse {
		gap: 24px;
	}

	.philosophy-section .section-content h1 {
		font-size: 36px;
		line-height: 42px;
		margin-bottom: 6px;
	}

	.philosophy-section .section-content h2 {
		font-size: 36px;
		line-height: 42px;
		margin-bottom: 6px;
	}

	.philosophy-section .section-subtitle {
		font-size: 18px;
		line-height: 28px;
		margin-bottom: 20px;
	}

	.philosophy-section .section-text {
		font-size: 16px;
		line-height: 26px;
	}

	.philosophy-section-inner:not(.reverse) .section-image,
	.philosophy-section-inner.reverse .section-image {
		height: 350px;
	}
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
	.philosophy-section-inner,
	.philosophy-section-inner.reverse {
		gap: 20px;
	}

	.philosophy-section .section-content h1 {
		font-size: 28px;
		line-height: 34px;
	}

	.philosophy-section .section-content h2 {
		font-size: 28px;
		line-height: 34px;
	}

	.philosophy-section .section-subtitle {
		font-size: 16px;
		line-height: 24px;
		margin-bottom: 16px;
	}

	.philosophy-section .section-text {
		font-size: 14px;
		line-height: 22px;
	}

	.philosophy-section .section-text p {
		margin-bottom: 14px;
	}

	.philosophy-section-inner:not(.reverse) .section-image,
	.philosophy-section-inner.reverse .section-image {
		height: 300px;
	}
}
