/**
 * CMS pages (category.php) — breadcrumb hero & content layout
 */

/* ----- Breadcrumb hero (left-aligned) — brand teal gradient ----- */
.cms-breadcrumb-bar {
	text-align: left;
	padding: 22px 0 21px;
	position: relative;
	z-index: 1;
	overflow: hidden;
	background: linear-gradient(10.93deg, #196164 16.22%, #2d9d9a 120.13%);
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.cms-breadcrumb-bar::before {
	content: "";
	position: absolute;
	top: -40%;
	right: -8%;
	width: 320px;
	height: 320px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.14) 0%, transparent 70%);
	pointer-events: none;
}

.cms-breadcrumb-bar::after {
	content: "";
	position: absolute;
	bottom: -50%;
	left: -5%;
	width: 260px;
	height: 260px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
	pointer-events: none;
}

.cms-breadcrumb-bar .container {
	position: relative;
	z-index: 2;
}

.cms-breadcrumb-bar .cms-breadcrumb-nav {
	margin-bottom: 14px;
}

.cms-breadcrumb-bar .breadcrumb {
	justify-content: flex-start;
	flex-wrap: wrap;
	gap: 4px 0;
	margin-bottom: 0;
	padding: 0;
}

.cms-breadcrumb-bar .breadcrumb .breadcrumb-item {
	font-size: 13px;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.82);
	letter-spacing: 0.02em;
}

.cms-breadcrumb-bar .breadcrumb .breadcrumb-item a {
	color: rgba(255, 255, 255, 0.92);
	text-decoration: none;
	transition: color 0.2s ease;
}

.cms-breadcrumb-bar .breadcrumb .breadcrumb-item a:hover {
	color: var(--secondary, #f8b102);
}

.cms-breadcrumb-bar .breadcrumb .breadcrumb-item.active {
	color: #fff;
	font-weight: 600;
}

.cms-breadcrumb-bar .breadcrumb .breadcrumb-item + .breadcrumb-item {
	margin-left: 22px;
}

.cms-breadcrumb-bar .breadcrumb .breadcrumb-item + .breadcrumb-item::before {
	content: "/";
	width: auto;
	height: auto;
	border-radius: 0;
	background: none;
	color: rgba(255, 255, 255, 0.55);
	font-size: 12px;
	font-weight: 400;
	left: -14px;
	top: 50%;
	transform: translateY(-50%);
	opacity: 0.9;
}

.cms-breadcrumb-bar .cms-page-title {
	font-size: 19px;
	font-weight: 500;
	line-height: 1.2;
	color: #fff;
	margin: 0;
	letter-spacing: -0.02em;
}

/* ----- Page body (left-aligned content) ----- */
.cms-page-section.about-section-two {
	padding-top: 48px;
	padding-bottom: 64px;
}

.cms-page-section .section-header {
	text-align: left;
	max-width: 900px;
}

.cms-page-section .section-header .cms-kicker {
	display: inline-block;
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--primary, #196164);
	text-decoration: none;
	margin-bottom: 10px;
	padding-bottom: 6px;
	border-bottom: 2px solid rgba(25, 97, 100, 0.25);
}

.cms-page-section .section-header h2 {
	text-align: left;
	margin-bottom: 20px;
	font-size: clamp(1.5rem, 3vw, 1.875rem);
	font-weight: 700;
	line-height: 1.3;
	color: var(--gray-900, #0f172a);
}

.cms-page-section .cms-page-content {
	text-align: left;
	font-size: 16px;
	line-height: 1.75;
	color: var(--gray-700, #334155);
}

.cms-page-section .cms-page-content p:last-child {
	margin-bottom: 0;
}

.cms-page-section .cms-page-content img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
}

.cms-page-section .cms-page-content h2,
.cms-page-section .cms-page-content h3,
.cms-page-section .cms-page-content h4 {
	text-align: left;
	margin-top: 1.5em;
	margin-bottom: 0.5em;
}

/* CMS dynamic pages — bordered content card (About, Privacy, Terms, etc.) */
.cms-dynamic-page .cms-page-card {
	border: 1px solid #00000014;
	border-radius: 10px;
	padding: 12px;
	background: #fff;
}

/* CMS dynamic pages (About, Privacy, Terms, etc.) — editor HTML in .cms-page-content & blocks */
.cms-dynamic-page .cms-page-section .cms-page-content h2,
.cms-dynamic-page .cms-block-desc h2,
.cms-dynamic-page .cms-box-desc h2 {
	font-size: 17px;
	font-weight: 500;
	margin-top: 24px;
	margin-bottom: 0.5em;
	line-height: 1.4;
	color: #000;
	text-align: left;
}

.cms-dynamic-page .cms-page-section .cms-page-content h2:first-child,
.cms-dynamic-page .cms-block-desc h2:first-child,
.cms-dynamic-page .cms-box-desc h2:first-child {
	margin-top: 0;
}

.cms-dynamic-page .cms-page-section .cms-page-content p,
.cms-dynamic-page .cms-block-desc p,
.cms-dynamic-page .cms-box-desc p {
	font-size: 14px;
	color: #000;
	font-weight: 300;
	line-height: 1.75;
}

.cms-dynamic-page .cms-page-section .cms-page-content ul,
.cms-dynamic-page .cms-page-section .cms-page-content ol,
.cms-dynamic-page .cms-block-desc ul,
.cms-dynamic-page .cms-block-desc ol,
.cms-dynamic-page .cms-box-desc ul,
.cms-dynamic-page .cms-box-desc ol {
	padding-left: 1.25rem;
	margin-bottom: 1em;
}

.cms-dynamic-page .cms-page-section .cms-page-content ul li,
.cms-dynamic-page .cms-page-section .cms-page-content ol li,
.cms-dynamic-page .cms-block-desc ul li,
.cms-dynamic-page .cms-block-desc ol li,
.cms-dynamic-page .cms-box-desc ul li,
.cms-dynamic-page .cms-box-desc ol li {
	font-size: 14px;
	color: #000;
	font-weight: 300;
	line-height: 1.75;
}

.cms-dynamic-page .cms-page-section .cms-page-content,
.cms-dynamic-page .cms-block-desc,
.cms-dynamic-page .cms-box-desc {
	color: #000;
}

/* ----- Dynamic page content blocks (panel → page contents) ----- */
.cms-block.benefit-section {
	padding: 56px 0;
}

.cms-block-content-only .cms-block-header {
	max-width: 720px;
	margin-left: auto;
	margin-right: auto;
}

.cms-block-desc,
.cms-box-desc {
	text-align: left;
	color: var(--gray-700, #334155);
	line-height: 1.75;
}

.cms-block-desc p:last-child,
.cms-box-desc p:last-child {
	margin-bottom: 0;
}

.cms-box-card {
	border: 1px solid rgba(25, 97, 100, 0.08);
	transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.cms-box-card:hover {
	box-shadow: 0 12px 32px rgba(25, 97, 100, 0.1) !important;
	transform: translateY(-2px);
}

.cms-box-icon-img {
	width: 28px;
	height: 28px;
	object-fit: contain;
}

.cms-banner-wrap {
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 8px 28px rgba(25, 97, 100, 0.1);
}

.cms-banner-img {
	display: block;
	object-fit: cover;
	max-height: 420px;
}

/* Content with image — left / right layout */
.cms-block-content-image.cms-layout-image-left .cms-content-image-col {
	order: 1;
}

.cms-block-content-image.cms-layout-image-left .cms-content-text-col {
	order: 2;
}

.cms-block-content-image.cms-layout-image-right .cms-content-image-col {
	order: 2;
}

.cms-block-content-image.cms-layout-image-right .cms-content-text-col {
	order: 1;
}

.cms-block-content-image .cms-content-image-row {
	display: flex;
	flex-wrap: wrap;
}

.cms-block-content-image .cms-content-image-frame {
	border-radius: 12px;
	overflow: hidden;
	line-height: 0;
	background: rgba(25, 97, 100, 0.04);
}

.cms-content-img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
	box-shadow: 0 8px 28px rgba(25, 97, 100, 0.12);
	border-radius: 12px;
}

.cms-block-content-image .section-header h2 {
	text-align: left;
}

@media (max-width: 991.98px) {
	.cms-block-content-image.cms-layout-image-right .cms-content-image-col,
	.cms-block-content-image.cms-layout-image-right .cms-content-text-col,
	.cms-block-content-image.cms-layout-image-left .cms-content-image-col,
	.cms-block-content-image.cms-layout-image-left .cms-content-text-col {
		order: unset;
	}

	.cms-block-content-image .cms-content-text-col .section-header {
		padding-left: 0 !important;
		margin-top: 1rem;
	}
}

.cms-faq-accordion .accordion-button:not(.collapsed) {
	background-color: rgba(25, 97, 100, 0.08);
	color: var(--primary, #196164);
}

@media (max-width: 767.98px) {
	.cms-breadcrumb-bar {
		padding: 32px 0 28px;
	}

	.cms-breadcrumb-bar .cms-page-title {
		font-size: 1.5rem;
	}

	.cms-page-section.about-section-two {
		padding-top: 32px;
		padding-bottom: 48px;
	}

	.cms-block.benefit-section {
		padding: 40px 0;
	}
}

/* ----- Course detail: enroll / pricing sidebar ----- */
.course-detail-page .course-enroll-card {
	border-radius: 16px;
	border: 1px solid rgba(25, 97, 100, 0.1);
	box-shadow: 0 12px 40px rgba(25, 22, 52, 0.08) !important;
}

.course-detail-page .course-enroll-hero {
	background: linear-gradient(135deg, #5b8def 0%, #3d6fd8 45%, #2c4fae 100%);
}

.course-detail-page .course-enroll-hero-img {
	display: block;
	max-height: 200px;
	width: 100%;
	object-fit: cover;
	border-radius: 0;
}

.course-detail-page .course-price-panel {
	position: relative;
	padding: 1rem 1.1rem 1.15rem;
	border-radius: 14px;
	background: linear-gradient(
		145deg,
		rgba(25, 97, 100, 0.06) 0%,
		rgba(255, 255, 255, 0.95) 55%,
		rgba(25, 97, 100, 0.06) 100%
	);
	border: 1px solid rgba(25, 97, 100, 0.12);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 10px 28px rgba(25, 97, 100, 0.07);
}

.course-detail-page .course-price-badge {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #fff;
	background: linear-gradient(135deg, #ff4667, #e63a5a);
	padding: 0.28rem 0.55rem;
	border-radius: 999px;
	box-shadow: 0 4px 12px rgba(255, 70, 103, 0.35);
}

.course-detail-page .course-price-label {
	font-size: 0.72rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--gray-600, #64748b);
}

.course-detail-page .course-price-current {
	font-size: 1.85rem;
	font-weight: 800;
	line-height: 1.1;
	color: var(--primary, #155658);
	letter-spacing: -0.02em;
}

.course-detail-page .course-price-mrp {
	font-size: 1rem;
	font-weight: 500;
	color: var(--gray-500, #94a3b8);
	text-decoration: line-through;
}

.course-detail-page .course-price-hint {
	font-size: 0.75rem;
	color: var(--gray-600, #64748b);
	margin-top: 0.5rem;
}

.course-detail-page .course-enroll-card .btn-enroll {
	box-shadow: 0 6px 20px rgba(25, 97, 100, 0.25);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.course-detail-page .course-enroll-card .btn-enroll:hover {
	transform: translateY(-1px);
	box-shadow: 0 8px 26px rgba(25, 97, 100, 0.32);
}

.course-detail-page .course-enroll-card .card-body > .p-4 > .d-flex:first-of-type {
	padding-bottom: 0.35rem;
	margin-bottom: 0.25rem;
	border-bottom: 1px solid rgba(25, 97, 100, 0.08);
}

.course-detail-page .course-checkout-main-btn {
	min-height: 52px;
	font-size: 1.05rem;
	letter-spacing: 0.03em;
	background: linear-gradient(135deg, #2d9d9a 0%, #155658 42%, #092425 100%) !important;
	border: none !important;
	color: #fff !important;
}

.course-detail-page .course-checkout-main-btn:hover,
.course-detail-page .course-checkout-main-btn:focus {
	background: linear-gradient(135deg, #5f49b5 0%, #4a3890 45%, #322566 100%) !important;
	color: #fff !important;
}

.course-detail-page .course-checkout-main-btn .ti {
	opacity: 0.95;
}

.course-detail-page .course-enroll-cta {
	margin-top: 1rem;
}

.course-detail-page .course-checkout-trust {
	line-height: 1.45;
	max-width: 22rem;
	margin-left: auto;
	margin-right: auto;
}

/* Free preview lesson video (uploaded mp4 or external URL) */
.course-detail-page .course-lesson-preview-video {
	list-style: none;
}

.course-detail-page .course-video-embed {
	border-radius: 10px;
	overflow: hidden;
	background: #0f172a;
	max-width: 100%;
}

.course-detail-page .course-video-embed--native video {
	display: block;
	width: 100%;
	max-height: 360px;
	background: #000;
}

.course-detail-page .course-enroll-hero-video {
	background: #0f172a;
}

.course-detail-page .course-enroll-hero-video .course-video-embed--native video {
	max-height: 220px;
}

.course-detail-page .course-free-preview-block {
	margin-bottom: 1.5rem;
}
