/* Prerna — course and coaching-programme pages (design only, no new content).
   Loaded on /courses/ and pages whose address has "coaching" in it. */

/* ---------- one even width for every section ---------- */
.pe-course #content .elementor > .e-con { max-width: 1160px; margin-left: auto; margin-right: auto; }
.pe-course #content .elementor > .e-con-full { width: 100%; }
.pe-course #content .elementor > .e-con + .e-con { margin-top: 24px; }
.pe-course #content .elementor > .e-con:has(> .e-con-inner > *),
.pe-course #content .elementor > .e-con-full { border-radius: 16px; }

/* ---------- feature cards: rounded, lifted, easy to scan ---------- */
.pe-course #content .e-con .e-con:has(> .elementor-widget-heading):has(> .elementor-widget-text-editor ul) {
	border-radius: 14px;
	box-shadow: 0 8px 24px rgba(1, 34, 132, .12);
	transition: transform .2s ease, box-shadow .2s ease;
}
@media (hover: hover) {
	.pe-course #content .e-con .e-con:has(> .elementor-widget-heading):has(> .elementor-widget-text-editor ul):hover {
		transform: translateY(-3px);
		box-shadow: 0 14px 32px rgba(1, 34, 132, .18);
	}
}
.pe-course #content .elementor-widget-text-editor ul { padding-left: 1.2em; margin: 0; }
.pe-course #content .elementor-widget-text-editor li { margin: 0 0 6px; line-height: 1.55; }
.pe-course #content .elementor-widget-text-editor li::marker { color: currentColor; }

/* section heading bands sit flush and rounded at the top of their box */
.pe-course #content .elementor-widget-heading:has(+ .elementor-widget-text-editor table),
.pe-course #content .elementor-widget-heading:has(+ .elementor-widget-fluent-form-widget) { border-radius: 12px 12px 0 0; padding-block: 8px; }

/* ---------- tables: clear header, zebra rows, rounded ---------- */
.pe-course #content .elementor-widget-text-editor table { border-collapse: separate; border-spacing: 0; border-radius: 0 0 12px 12px; overflow: hidden; background: #fff; margin: 0; }
.pe-course #content .elementor-widget-text-editor table :is(td, th) { padding: 11px 14px; font-size: 15px; border-color: #e6e9f2; }
.pe-course #content .elementor-widget-text-editor table tr > :first-child { font-weight: 700; color: #0f1f4b; }
.pe-course #content .elementor-widget-text-editor table th,
.pe-course #content .elementor-widget-text-editor table tr:first-child > th:first-child { color: #fff; }
.pe-course #content .elementor-widget-text-editor table tr:nth-child(even) td { background: #f5f8ff; }

/* ---------- buttons: readable white text, big tap area ---------- */
.pe-course #content .elementor-button {
	color: #fff !important;
	font-weight: 700;
	border-radius: 999px;
	padding: 13px 26px;
	min-height: 48px;
	font-size: 17px !important;
	box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
	/* a light dark veil keeps every button colour but makes white text readable */
	background-image: linear-gradient(rgba(0, 0, 0, .2), rgba(0, 0, 0, .2)) !important;
	text-shadow: 0 1px 1px rgba(0, 0, 0, .25);
	transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.pe-course #content .elementor-button:hover,
.pe-course #content .elementor-button:focus-visible { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 10px 24px rgba(0, 0, 0, .22); }
.pe-course #content .elementor-button .elementor-button-text { color: inherit !important; }

/* ---------- enquiry forms: card look, full-width green button ---------- */
.pe-course #content .fluentform .ff-el-form-control {
	min-height: 46px;
	border-radius: 10px;
	border: 1px solid #d5dbe8;
	font-size: 15px;
	background: #fff;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.pe-course #content .fluentform .ff-el-form-control:focus { border-color: #1a73e8; box-shadow: 0 0 0 3px rgba(26, 115, 232, .18); outline: 0; }
.pe-course #content .fluentform .ff-el-group { margin-bottom: 12px; }
.pe-course #content .fluentform .ff-btn-submit {
	width: 100%;
	min-height: 50px;
	border-radius: 12px !important;
	font-size: 17px !important;
	font-weight: 700;
	letter-spacing: .2px;
	box-shadow: 0 8px 20px rgba(28, 179, 49, .32);
	transition: transform .15s ease, box-shadow .15s ease;
}
.pe-course #content .fluentform .ff-btn-submit:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(28, 179, 49, .4); }
.pe-course #content .fluentform .ff-el-input--label label { font-size: 14px; font-weight: 600; color: inherit; }
/* the /courses/ enquiry form: a centred card instead of a full-width strip */
.pe-course #content .e-con:has(> .elementor-widget-fluent-form-widget):not(:has(.elementor-widget-text-editor table)) > .elementor-widget-fluent-form-widget,
.pe-course #content .e-con-inner:has(> .elementor-widget-fluent-form-widget) > .elementor-widget-fluent-form-widget { max-width: 760px; }

/* ---------- tablet ---------- */
@media (max-width: 1024px) {
	.pe-course #content .elementor > .e-con { margin-left: 16px; margin-right: 16px; max-width: calc(100% - 32px); }
}

/* ---------- phone ---------- */
@media (max-width: 767px) {
	.pe-course #content .elementor > .e-con { margin-left: 12px; margin-right: 12px; max-width: calc(100% - 24px); border-radius: 14px; }
	.pe-course #content .elementor > .e-con + .e-con { margin-top: 18px; }
	/* 16px inputs stop iPhone from zooming into the form */
	.pe-course #content .fluentform .ff-el-form-control { font-size: 16px; }
	.pe-course #content .elementor-widget-text-editor table :is(td, th) { padding: 9px 10px; font-size: 14px; }
	.pe-course #content .elementor-widget-button { width: 100%; }
	.pe-course #content .elementor-button { width: 100%; }
}

/* ---------- /courses/ extras ---------- */
/* old 2020 dates on course cards make live programmes look outdated */
.pe-course #content .pe-post-meta { display: none; }
/* "View" links in the course chooser table become small buttons */
.pe-course #content .elementor-widget-text-editor table:has(tr > :nth-child(3)) td:last-child a {
	display: inline-block;
	padding: 6px 16px;
	border-radius: 999px;
	background: #1cb331;
	color: #fff !important;
	font-weight: 700;
	font-size: 14px;
	text-decoration: none;
	white-space: nowrap;
	transition: transform .15s ease, filter .15s ease;
}
.pe-course #content .elementor-widget-text-editor table:has(tr > :nth-child(3)) td:last-child a:hover { transform: translateY(-1px); filter: brightness(1.08); }
/* a form inside a plain text block: keep it a tidy card */
.pe-course #content .elementor-widget-text-editor .fluentform { max-width: 760px; }

/* ================= /courses/ page: tighter, even, easier to scan ================= */

/* --- "Our Courses & Fees" cards --- */
.pe-course #content .pe-hub { margin: 4px 0 34px; }
.pe-course #content .pe-hub-title { margin-bottom: 4px; }
.pe-course #content .pe-hub-lead { margin-bottom: 22px; }
.pe-course #content .pe-hub-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.pe-course #content .pe-hub-img { aspect-ratio: 300 / 140; background: #eef2fb; }
.pe-course #content .pe-hub-body { padding: 14px 16px 14px; }
.pe-course #content .pe-hub-body h3 {
	font-size: 17px;
	margin-bottom: 4px;
	padding-bottom: 9px;
	border-bottom: 2px solid #eef1fb;
}
.pe-course #content .pe-hub-body li a { padding: 8px 2px; font-size: 14px; }

/* --- programme cards (portfolio grid) ---
   Below 768px the cards fall back to the theme's compact thumbnail list, which
   is set by a container query, so these rules start where the full card fits. */
.pe-course #content .pe-post { border-radius: 14px; transition: transform .18s ease, box-shadow .18s ease; }
@media (hover: hover) {
	.pe-course #content .pe-post:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(1, 34, 132, .14); }
}
@media (min-width: 768px) {
	.pe-course #content .pe-posts { gap: 20px; }
	.pe-course #content .pe-post-img { aspect-ratio: 16 / 10; background: #eef2fb; }
	.pe-course #content .pe-post-body { padding: 13px 16px 15px; }
	.pe-course #content .pe-post-title {
		font-size: 16px !important;
		line-height: 1.35;
		margin: 0;
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
		overflow: hidden;
		min-height: 2.7em;
	}
}
@media (min-width: 1025px) {
	.pe-course #content .pe-posts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* --- the enquiry band: less empty space around the form --- */
.pe-course #content .e-con:has(> .e-con-inner > .elementor-widget:only-child .fluentform),
.pe-course #content .e-con:has(> .elementor-widget:only-child .fluentform) { padding-block: 30px; }

/* --- tablet --- */
@media (min-width: 768px) and (max-width: 1024px) {
	.pe-course #content .pe-hub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* --- phone: pictures that only repeat the card title take the room the links need --- */
@media (max-width: 767px) {
	.pe-course #content .pe-hub-grid { grid-template-columns: 1fr; gap: 14px; }
	.pe-course #content .pe-hub-card > .pe-hub-img { display: none; }
	.pe-course #content .pe-hub-body { padding: 12px 14px; }
}

/* --- the site's floating side tabs must not sit on top of the text --- */
@media (max-width: 767px) {
	.pe-site .floating-path-btn, .pe-site .floating-demo-btn { transform: scale(.72); transform-origin: left center; }
	.pe-site .floating-demo-btn { transform-origin: right center; }
	.pe-course .pe-sb-toggle, .pe-course .pe-sharebar { display: none !important; }
}

/* --- the enquiry band: heading sits over the form card --- */
.pe-course #content .e-con:has(.fluentform) h2 { text-align: center; }
.pe-course #content .e-con:has(.fluentform) .fluentform { margin-inline: auto; }

/* --- phone: the two floating tabs step away from the text --- */
@media (max-width: 767px) {
	.pe-site .floating-path-btn { top: auto !important; bottom: 92px !important; transform: scale(.62); transform-origin: left bottom; }
	.pe-site .floating-demo-btn { transform: scale(.66); transform-origin: right center; }
}
