/* ----------------------------------------- */
/* Panels */
/* ----------------------------------------- */
.flexible-panels h2.section-title {
	text-align: center;
	width: 100%;
	z-index: 3;
	margin: auto;
	color: #000;
	font-size: 43px;
	line-height: 43px;
	letter-spacing: 0.02em;
	padding: 60px 0 60px 0;
	background-color: #f1f1f1;
}

@media (max-width: 767px) {
	.flexible-panels h2.section-title {
		color: #000;
		padding-top: 60px;
		padding-bottom: 40px;
		top: auto;
		position: relative;
		font-size: 33px;
		line-height: 33px;
	}
}

.flexible-panels .panels {
	display: flex;
	position: relative;
}

@media (max-width: 767px) {
	.flexible-panels .panels {
		display: block;
		height: auto;
		max-height: none;
		min-height: auto;
		background-color: #fff;
	}
}

.flexible-panels .panels .panel {
	position: relative;
	width: 100%;
	flex: 1;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	height: 70vh;
	transition: all 0.3s ease;
}

@media (max-width: 767px) {
	.flexible-panels .panels .panel {
		display: none;
	}
}

.flexible-panels .panels .panel .panel-control {
	position: relative;
	display: flex;
	height: 100%;
	align-items: flex-end;
	justify-content: center;
	padding: 50px 30px 100px 30px;
	cursor: pointer;
}

.flexible-panels .panels .panel .panel-control:after {
	position: absolute;
	z-index: 1;
	pointer-events: none;
	content: '';
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	background-color: rgba(0, 0, 0, 0.7);
	transition: background-color 0.2s ease;
}

.flexible-panels .panels .panel .panel-control:hover:after {
	background-color: rgba(0, 0, 0, 0.5);
}

.flexible-panels .panels .panel .panel-control h2 {
	position: relative;
	z-index: 3;
	margin-left: 0.5em;
	width: 40px;
	line-height: 0;
	bottom: 50px;
	transform-origin: left top;
	transform: rotate(270deg);
	overflow-wrap: normal;
	font-size: 24px;
}

.flexible-panels .panels .panel .panel-control h2 .type-correction {
	white-space: nowrap;
}

.flexible-panels .menu-indicator {
	position: relative;
	display: inline-block;
	width: 24px;
	height: 24px;
}

.flexible-panels .menu-indicator::before,
.flexible-panels .menu-indicator::after {
	content: '';
	position: absolute;
	background-color: #e60028;
	transition: all 0.3s ease;
	border-radius: 2px;
}

.flexible-panels .menu-indicator::before {
	top: 10px;
	left: 0;
	width: 24px;
	height: 4px;
}

.flexible-panels .menu-indicator::after {
	top: 0;
	left: 10px;
	width: 4px;
	height: 24px;
}

.flexible-panels .panels .panel .panel-control h2 .menu-indicator {
	position: absolute;
	left: -40px;
	top: 50%;
	margin-top: -12px;
}

.flexible-panels .panel.active .menu-indicator::after,
.flexible-panels .tab-header.active .menu-indicator::after {
	transform: rotate(90deg);
	opacity: 0;
}

.flexible-panels .panels .panel .panel-inner {
	display: none;
}

.flexible-panels .panels .panel.active {
	flex: 4;
}

.flexible-panels .panels .panel.active .panel-inner {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	height: 100%;
}

.flexible-panels .panels .panel.active .panel-inner:after {
	position: absolute;
	z-index: 1;
	pointer-events: none;
	content: '';
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	background-color: rgba(0, 0, 0, 0.6);
}

.flexible-panels .panels .panel.active .panel-inner .close-btn {
	position: absolute;
	z-index: 2;
	top: 10%;
	right: 10%;
	cursor: pointer;
}

.flexible-panels .panels .panel.active .panel-inner .close-btn .bar {
	display: inline-block;
	position: relative;
	height: 4px;
	width: 24px;
}

.flexible-panels .panels .panel.active .panel-inner .close-btn .bar:before {
	content: '';
	position: absolute;
	width: 100%;
	height: 100%;
	background-color: #e60028;
	transition: opacity 0.3s ease;
	border-radius: 2px;
}

.flexible-panels .panels .panel.active .panel-inner .close-btn:hover .bar:before {
	opacity: 0.7;
}

.flexible-panels .panels .panel.active .panel-inner .inner-wrap {
	position: relative;
	z-index: 2;
	margin-left: 15%;
	width: 80%;
	max-width: 400px;
}

.flexible-panels .panels .panel.active .panel-inner .inner-wrap h2,
.flexible-panels .panels .panel.active .panel-inner .inner-wrap p {
	color: #fff;
}

.flexible-panels .panels .panel.active .panel-control {
	display: none;
}

@media (min-width: 768px) {
	.flexible-panels .panels .tab-container {
		display: none;
	}
}

/* Utilities mapping from theme */
.flexible-panels .colorwhite {
	color: #fff !important;
}

.flexible-panels .bgnavy {
	background-color: #0a1f44 !important;
}

.flexible-panels .text-center {
	text-align: center;
}

/* Mobile Tabs Fallback Styles */
.flexible-panels .tab-header {
	padding: 15px;
	cursor: pointer;
	background-color: #0a1f44;
	color: #fff;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	position: relative;
}

.flexible-panels .tab-header h3 {
	margin: 0;
	font-size: 1.2rem;
	padding-right: 40px;
}

.flexible-panels .tab-header .menu-indicator {
	position: absolute;
	right: 15px;
	top: 50%;
	margin-top: -12px;
}

.flexible-panels .tab-content {
	background-color: #f4f4f4;
	padding: 20px;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	position: relative;
}

.flexible-panels .tab-content::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.7);
	z-index: 1;
}

.flexible-panels .tab-content h2,
.flexible-panels .tab-content p {
	color: #fff;
	position: relative;
	/* Ensure content is above overlay */
	z-index: 2;
}

.flexible-panels .tab-content .content-inner h2 {
	color: #fff;
	margin-top: 0;
}

/* Button Styles */
.flexible-panels .btn {
	display: inline-block;
	padding: 10px 20px;
	text-decoration: none;
	text-transform: uppercase;
	font-weight: normal;
	font-size: 18px;
	color: #fff !important;
	border-radius: 50px;
	margin-top: 20px;
	transition: all 0.3s ease;
	border: 2px solid transparent;
	/* Prepare border for hover */
}

.flexible-panels .btn:hover {
	background-color: transparent !important;
	border-color: #fff;
	opacity: 1;
}

.flexible-panels .btn-navy {
	background-color: #0a1f44;
}

.flexible-panels .btn-teal {
	background-color: #00a2b1;
}

.flexible-panels .btn-red,
.flexible-panels .btn {
	background-color: #DE012B;
}

/* Default to red if undefined or red specified */