/*!
 * OpenSchools Theme — institutional navy + amber
 * Design tokens + AdminLTE 3.2 / Bootstrap 4 overrides.
 * Loaded after adminlte.min.css in app/views/adminLTE/header.php.
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
	--os-primary: #1E3A5F;
	--os-primary-dark: #16304F;
	--os-primary-darker: #122A44;
	--os-primary-tint: #E8EEF6;
	--os-link: #2563EB;
	--os-accent: #D97706;
	--os-accent-tint: #FEF3C7;
	--os-bg: #F8FAFC;
	--os-surface: #FFFFFF;
	--os-text: #0F172A;
	--os-muted: #64748B;
	--os-border: #E2E8F0;
	--os-success: #15803D;
	--os-success-tint: #DCFCE7;
	--os-danger: #DC2626;
	--os-danger-tint: #FEE2E2;
	--os-sidebar-text: #C7D3E3;
	--os-radius: 10px;
	--os-radius-sm: 8px;
	--os-radius-lg: 16px;
	--os-accent-dark: #B45309;
	--os-hero-start: #1E3A5F;
	--os-hero-mid: #16304F;
	--os-hero-end: #0B1B2E;
	--os-shadow-1: 0 1px 2px rgba(15, 23, 42, .06);
	--os-shadow-2: 0 2px 8px rgba(15, 23, 42, .08);
	--os-shadow-3: 0 12px 32px rgba(15, 23, 42, .16);
	--os-font: 'Inter', 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ---------------------------------------------------------------- base */

body,
.wrapper {
	font-family: var(--os-font);
	color: var(--os-text);
	background-color: var(--os-bg);
}

.content-wrapper {
	background-color: var(--os-bg);
}

a {
	color: var(--os-link);
}

a:hover {
	color: var(--os-primary);
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
	font-family: var(--os-font);
	font-weight: 700;
	color: var(--os-text);
}

.content-header h1 {
	font-size: 1.375rem;
	font-weight: 700;
	letter-spacing: -.01em;
}

.text-muted {
	color: var(--os-muted) !important;
}

.text-primary {
	color: var(--os-primary) !important;
}

/* ------------------------------------------------------------ top navbar */

.main-header.navbar {
	background-color: var(--os-surface);
	border-bottom: 1px solid var(--os-border);
	box-shadow: var(--os-shadow-1);
	min-height: 56px;
}

.main-header .nav-link {
	color: var(--os-text);
	font-weight: 500;
}

.main-header .nav-link:hover {
	color: var(--os-primary);
}

.main-header .navbar-badge {
	background-color: var(--os-accent);
	color: #fff;
	font-weight: 600;
}

/* -------------------------------------------------------------- sidebar */

.main-sidebar {
	background: linear-gradient(180deg, var(--os-primary) 0%, var(--os-primary-darker) 100%);
}

.main-sidebar .brand-link {
	border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.main-sidebar .brand-text,
.main-sidebar .brand-link {
	color: #fff;
	font-weight: 600;
}

.main-sidebar .user-panel {
	border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.main-sidebar .user-panel .info a {
	color: #fff;
	font-weight: 500;
}

.main-sidebar .nav-sidebar .nav-link {
	color: var(--os-sidebar-text);
	border-radius: var(--os-radius-sm);
	margin: 1px 8px;
	width: auto;
	transition: background-color .15s ease, color .15s ease;
}

.main-sidebar .nav-sidebar .nav-link p {
	font-size: .9rem;
}

.main-sidebar .nav-sidebar .nav-icon {
	color: inherit;
	font-size: .95rem;
}

.main-sidebar .nav-sidebar .nav-link:hover {
	background-color: rgba(255, 255, 255, .08);
	color: #fff;
}

.main-sidebar .nav-sidebar .nav-link.active,
.main-sidebar .nav-sidebar > .nav-item > .nav-link.active {
	background-color: rgba(255, 255, 255, .14);
	color: #fff;
	box-shadow: none;
	border-left: 3px solid var(--os-accent);
	padding-left: calc(1rem - 3px);
}

.main-sidebar .nav-treeview .nav-link {
	color: #9FB2C9;
}

.main-sidebar .nav-treeview .nav-link:hover {
	color: #fff;
}

/* sidebar nav shown to logged-out visitors */
.main-sidebar .navbar-nav .nav-link {
	color: var(--os-sidebar-text);
	font-weight: 500;
}

.main-sidebar .navbar-nav .nav-link:hover {
	color: #fff;
}

/* ---------------------------------------------------------- breadcrumb */

.breadcrumb {
	background: transparent;
	font-size: .8125rem;
}

.breadcrumb-item a {
	color: var(--os-muted);
}

.breadcrumb-item.active {
	color: var(--os-text);
	font-weight: 500;
}

/* ------------------------------------------------------------------ cards */

.card {
	border: 1px solid var(--os-border);
	border-radius: var(--os-radius);
	box-shadow: var(--os-shadow-1);
	margin-bottom: 1.25rem;
}

.card-header {
	background-color: var(--os-surface);
	border-bottom: 1px solid var(--os-border);
	border-radius: var(--os-radius) var(--os-radius) 0 0 !important;
	padding: .875rem 1.25rem;
}

.card-title {
	font-weight: 600;
	font-size: 1rem;
}

.card-footer {
	background-color: var(--os-bg);
	border-top: 1px solid var(--os-border);
	border-radius: 0 0 var(--os-radius) var(--os-radius) !important;
}

.card-primary.card-outline {
	border-top: 3px solid var(--os-primary);
}

.card-secondary.card-outline {
	border-top: 3px solid var(--os-muted);
}

.card-primary:not(.card-outline) > .card-header {
	background-color: var(--os-primary);
	color: #fff;
}

.card-primary:not(.card-outline) > .card-header .card-title {
	color: #fff;
}

/* ---------------------------------------------------------------- buttons */

.btn {
	border-radius: var(--os-radius-sm);
	font-weight: 600;
	transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.btn:focus {
	box-shadow: 0 0 0 3px rgba(30, 58, 95, .25);
}

.btn-primary {
	background-color: var(--os-primary);
	border-color: var(--os-primary);
}

.btn-primary:hover,
.btn-primary:not(:disabled):not(.disabled):active,
.btn-primary:not(:disabled):not(.disabled).active {
	background-color: var(--os-primary-dark);
	border-color: var(--os-primary-dark);
}

.btn-primary.disabled,
.btn-primary:disabled {
	background-color: #94A3B8;
	border-color: #94A3B8;
}

.btn-secondary {
	background-color: var(--os-surface);
	border-color: var(--os-border);
	color: var(--os-text);
}

.btn-secondary:hover,
.btn-secondary:not(:disabled):not(.disabled):active {
	background-color: var(--os-bg);
	border-color: #CBD5E1;
	color: var(--os-text);
}

.btn-success {
	background-color: var(--os-success);
	border-color: var(--os-success);
}

.btn-danger {
	background-color: var(--os-danger);
	border-color: var(--os-danger);
}

.btn-warning {
	background-color: var(--os-accent);
	border-color: var(--os-accent);
	color: #fff;
}

.btn-warning:hover {
	background-color: #B45309;
	border-color: #B45309;
	color: #fff;
}

/* ------------------------------------------------------------------ forms */

label {
	font-weight: 600;
	font-size: .875rem;
	color: var(--os-text);
	margin-bottom: .375rem;
}

.form-control {
	border-radius: var(--os-radius-sm);
	border-color: var(--os-border);
	color: var(--os-text);
}

.form-control:focus {
	border-color: var(--os-primary);
	box-shadow: 0 0 0 3px rgba(30, 58, 95, .15);
}

.form-control[readonly],
.form-control:disabled {
	background-color: var(--os-bg);
	color: var(--os-muted);
}

.input-group-text {
	background-color: var(--os-bg);
	border-color: var(--os-border);
	color: var(--os-muted);
	border-radius: var(--os-radius-sm);
}

select.form-control,
.custom-select {
	border-radius: var(--os-radius-sm);
	border-color: var(--os-border);
}

/* bootstrap-select */
.bootstrap-select .dropdown-toggle {
	border-radius: var(--os-radius-sm) !important;
	border: 1px solid var(--os-border) !important;
	background-color: var(--os-surface) !important;
	color: var(--os-text) !important;
	font-weight: 400;
}

.bootstrap-select .dropdown-toggle:focus {
	outline: none !important;
	border-color: var(--os-primary) !important;
	box-shadow: 0 0 0 3px rgba(30, 58, 95, .15) !important;
}

.bootstrap-select .dropdown-item.active,
.bootstrap-select .dropdown-item:active {
	background-color: var(--os-primary);
}

/* ------------------------------------------------------------------ tables */

.table {
	color: var(--os-text);
}

.table thead th,
table.dataTable thead th {
	background-color: #F1F5F9;
	color: var(--os-text);
	font-size: .8125rem;
	font-weight: 600;
	border-bottom: 1px solid var(--os-border);
	border-top: none;
	white-space: nowrap;
}

.table td,
.table th,
table.dataTable td {
	border-color: var(--os-border);
	vertical-align: middle;
	font-variant-numeric: tabular-nums;
}

.table-striped tbody tr:nth-of-type(odd) {
	background-color: var(--os-bg);
}

.table-hover tbody tr:hover,
table.dataTable tbody tr:hover {
	background-color: var(--os-primary-tint);
}

table.dataTable {
	border-collapse: collapse !important;
}

.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
	border: 1px solid var(--os-border);
	border-radius: var(--os-radius-sm);
	padding: .25rem .5rem;
	color: var(--os-text);
}

.dataTables_wrapper .dataTables_filter input:focus {
	outline: none;
	border-color: var(--os-primary);
	box-shadow: 0 0 0 3px rgba(30, 58, 95, .15);
}

.dataTables_wrapper .dataTables_info {
	color: var(--os-muted);
	font-size: .8125rem;
}

/* --------------------------------------------------------------- pagination */

.page-link {
	color: var(--os-primary);
	border-color: var(--os-border);
}

.page-link:hover {
	color: var(--os-primary-dark);
	background-color: var(--os-primary-tint);
	border-color: var(--os-border);
}

.page-item.active .page-link {
	background-color: var(--os-primary);
	border-color: var(--os-primary);
	color: #fff;
}

/* ------------------------------------------------------------------ badges */

.badge-primary {
	background-color: var(--os-primary);
}

.badge-warning {
	background-color: var(--os-accent);
	color: #fff;
}

.badge-success {
	background-color: var(--os-success);
}

.badge-danger {
	background-color: var(--os-danger);
}

/* ------------------------------------------------------------------ alerts */

.alert {
	border-radius: var(--os-radius-sm);
	border: 1px solid transparent;
}

.alert-success {
	background-color: var(--os-success-tint);
	border-color: #BBF7D0;
	color: #14532D;
}

.alert-danger {
	background-color: var(--os-danger-tint);
	border-color: #FECACA;
	color: #7F1D1D;
}

/* ------------------------------------------------------------------ modals */

.modal-content {
	border: none;
	border-radius: var(--os-radius);
	box-shadow: var(--os-shadow-3);
}

.modal-header {
	border-bottom: 1px solid var(--os-border);
}

.modal-footer {
	border-top: 1px solid var(--os-border);
}

/* ------------------------------------------------------------------ footer */

.main-footer {
	background-color: var(--os-surface);
	border-top: 1px solid var(--os-border);
	color: var(--os-muted);
	font-size: .8125rem;
}

.main-footer a {
	color: var(--os-primary);
	font-weight: 600;
}

/* ------------------------------------------------- class catalogue (public) */

.os-filter-pills {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	justify-content: center;
	padding: 0;
	margin: 0;
	list-style: none;
}

.os-filter-pills .page-item {
	margin: 0;
}

.os-filter-pills .page-link {
	border-radius: 999px;
	padding: .375rem 1rem;
	font-size: .875rem;
	font-weight: 500;
	color: var(--os-text);
	background-color: var(--os-surface);
	border: 1px solid var(--os-border);
	transition: all .15s ease;
}

.os-filter-pills .page-item.active .page-link {
	background-color: var(--os-primary);
	border-color: var(--os-primary);
	color: #fff;
}

.os-filter-pills .page-link:hover {
	border-color: var(--os-primary);
	color: var(--os-primary);
	background-color: var(--os-primary-tint);
}

.os-filter-pills .page-item.active .page-link:hover {
	color: #fff;
	background-color: var(--os-primary);
}

.os-class-card {
	position: relative;
	border: 1px solid var(--os-border);
	border-radius: var(--os-radius-lg);
	background: var(--os-surface);
	box-shadow: var(--os-shadow-1);
	display: flex;
	flex-direction: column;
	width: 100%;
	overflow: hidden;
	transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}

.os-class-card:hover {
	box-shadow: var(--os-shadow-3);
	transform: translateY(-4px);
	border-color: #CBD5E1;
}

/* ---- media / hero image ----
   Class photos are uploaded by non-designers: any size, any orientation.
   To keep every card identical we show a blurred, zoomed COVER copy of the
   photo as a "colour bed", then the FULL photo (CONTAIN) sharp on top — so
   nothing is ever cropped or stretched, portrait or landscape both look at
   home, and tiny uploads sit on a matching backdrop instead of stretching. */
.os-class-card__media {
	position: relative;
	height: 200px;
	overflow: hidden;
	background: var(--os-primary-tint);
}

.os-class-card__media-fill {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: blur(22px) saturate(1.3) brightness(.9);
	transform: scale(1.2);
	z-index: 0;
	pointer-events: none;
}

.os-class-card__media-photo {
	position: relative;
	z-index: 1;
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
	transition: transform .5s ease;
}

.os-class-card:hover .os-class-card__media-photo {
	transform: scale(1.06);
}

.os-class-card__placeholder {
	position: relative;
	z-index: 1;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: rgba(255, 255, 255, .92);
	font-size: 3.25rem;
	background: linear-gradient(135deg, var(--os-primary) 0%, var(--os-primary-darker) 100%);
}

/* readability scrim behind overlay chips (top + a touch at the bottom) */
.os-class-card__media::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
	background: linear-gradient(180deg, rgba(15, 23, 42, .42) 0%, rgba(15, 23, 42, 0) 42%, rgba(15, 23, 42, 0) 76%, rgba(15, 23, 42, .30) 100%);
	pointer-events: none;
}

.os-class-card__chip {
	position: absolute;
	top: .7rem;
	left: .7rem;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	gap: .35rem;
	max-width: calc(100% - 1.4rem);
	font-size: .7rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .03em;
	color: #fff;
	background: rgba(15, 23, 42, .55);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	border-radius: 999px;
	padding: .25rem .625rem;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.os-class-card__badge {
	position: absolute;
	top: .7rem;
	right: .7rem;
	z-index: 3;
	font-size: .7rem;
	font-weight: 700;
	border-radius: 999px;
	padding: .25rem .625rem;
	white-space: nowrap;
	color: #fff;
	box-shadow: var(--os-shadow-1);
}

.os-class-card__badge--open { background: var(--os-success); }
.os-class-card__badge--last { background: var(--os-accent); }
.os-class-card__badge--full { background: var(--os-danger); }

/* ---- body ---- */
.os-class-card__body {
	padding: .875rem 1.05rem .5rem;
	flex: 1 1 auto;
}

.os-class-card__title {
	font-size: 1.0625rem;
	font-weight: 700;
	line-height: 1.3;
	margin: 0 0 .5rem;
	color: var(--os-text);
}

.os-class-card__desc {
	font-size: .8125rem;
	color: var(--os-muted);
	margin-bottom: .7rem;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.os-class-card__meta {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: .4rem;
}

.os-class-card__meta li {
	display: inline-flex;
	align-items: center;
	gap: .35rem;
	font-size: .75rem;
	font-weight: 500;
	color: var(--os-text);
	background: var(--os-bg);
	border: 1px solid var(--os-border);
	border-radius: 999px;
	padding: .2rem .55rem;
}

.os-class-card__meta i {
	color: var(--os-primary);
	font-size: .72rem;
}

/* ---- seats ---- */
.os-class-card__seats {
	padding: .55rem 1.05rem 0;
}

.os-class-card__seats-label {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: .72rem;
	color: var(--os-muted);
	margin-bottom: .3rem;
}

.os-class-card__seats-label i {
	margin-right: .3rem;
}

.os-class-card__seats-label strong {
	color: var(--os-text);
}

.os-progress {
	height: 7px;
	border-radius: 999px;
	background: var(--os-border);
	overflow: hidden;
}

.os-progress__bar {
	height: 100%;
	border-radius: 999px;
	background: var(--os-success);
	transition: width .5s ease;
}

.os-progress__bar--last {
	background: var(--os-accent);
}

.os-progress__bar--full {
	background: var(--os-danger);
}

/* ---- footer: price + CTA ---- */
.os-class-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: .75rem;
	padding: .8rem 1.05rem 1.05rem;
	margin-top: auto;
}

.os-class-card__footer form {
	margin: 0;
}

.os-class-card__footer .btn {
	padding: .5rem 1.05rem;
	font-weight: 700;
	white-space: nowrap;
}

.os-class-card__price {
	display: flex;
	flex-direction: column;
	line-height: 1.05;
	font-size: 1.4rem;
	font-weight: 800;
	color: var(--os-primary);
	white-space: nowrap;
}

.os-class-card__price small {
	font-size: .66rem;
	font-weight: 600;
	color: var(--os-muted);
	text-transform: uppercase;
	letter-spacing: .04em;
	margin-top: .1rem;
}

/* ---------------------------------------------------------- auth (login/MFA) */

.os-auth-wrap {
	min-height: calc(100vh - 220px);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 2rem 1rem;
}

.os-auth-card {
	width: 100%;
	max-width: 420px;
	background: var(--os-surface);
	border: 1px solid var(--os-border);
	border-radius: var(--os-radius);
	box-shadow: var(--os-shadow-2);
	overflow: hidden;
}

.os-auth-card__header {
	padding: 1.5rem 1.75rem 0;
	text-align: center;
}

.os-auth-card__header h1 {
	font-size: 1.25rem;
	font-weight: 700;
	margin: 0 0 .25rem;
}

.os-auth-card__header p {
	color: var(--os-muted);
	font-size: .875rem;
	margin: 0;
}

.os-auth-card__body {
	padding: 1.5rem 1.75rem;
}

.os-auth-card__footer {
	padding: 0 1.75rem 1.5rem;
}

.os-auth-card__footer .btn {
	width: 100%;
	padding: .625rem;
}

/* --------------------------------------------------------- form sections */

.os-form-section {
	background: var(--os-surface);
	border: 1px solid var(--os-border);
	border-radius: var(--os-radius);
	box-shadow: var(--os-shadow-1);
	padding: 1.25rem 1.5rem;
	margin-bottom: 1.25rem;
}

.os-form-section__title {
	font-size: .9375rem;
	font-weight: 700;
	color: var(--os-primary);
	display: flex;
	align-items: center;
	gap: .5rem;
	margin-bottom: 1rem;
	padding-bottom: .625rem;
	border-bottom: 1px solid var(--os-border);
}

.os-form-section__title i {
	font-size: .875rem;
}

/* -------------------------------------------------------- social buttons */

.os-social-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 999px;
	color: #fff !important;
	font-size: 1rem;
	transition: opacity .15s ease, transform .15s ease;
}

.os-social-btn:hover {
	opacity: .85;
	transform: translateY(-1px);
}

.os-social-btn--facebook { background-color: #1877F2; }
.os-social-btn--instagram { background-color: #C13584; }
.os-social-btn--youtube { background-color: #FF0000; }
.os-social-btn--email { background-color: var(--os-primary); }

/* --------------------------------------- legacy utilities (still referenced) */

/* cart dropdown footer links (header.php) */
.manual_checkout,
.checkout {
	text-decoration: none !important;
	font-weight: 700;
	color: var(--os-primary);
}

.manual_checkout:hover,
.checkout:hover {
	color: var(--os-primary-dark);
	text-decoration: underline !important;
}

/* Basket/dropdown items: long class or participant names must wrap inside the frame. */
.os-cart-dropdown-item {
	white-space: normal;
}

.os-cart-dropdown-item .media {
	min-width: 0;
}

.os-cart-media-body,
.os-basket-item .media-body {
	min-width: 0;
}

.os-cart-title,
.os-cart-text,
.os-basket-item__title,
.os-basket-item__text {
	max-width: 100%;
	overflow-wrap: anywhere;
	word-break: break-word;
	white-space: normal;
}

.os-cart-title {
	padding-right: 1.25rem;
}

.os-basket-item__top {
	gap: .75rem;
	min-width: 0;
}

.os-basket-item__top .btn {
	flex: 0 0 auto;
}

.os-basket-item__title {
	min-width: 0;
	flex: 1 1 auto;
}

/* action columns in admin tables */
th.action-column {
	text-align: right;
	width: 1px;
}

th.action-column a.icon-action {
	padding-left: 10px;
	padding-right: 10px;
}

td.action-column div.row {
	margin: 0;
	flex-wrap: nowrap;
}

td.action-column div.row > div {
	padding: 0 10px;
	margin: 0;
}

td.action-column a,
td.action-column button {
	color: var(--os-muted);
}

td.action-column a:hover,
td.action-column button:hover {
	color: var(--os-primary);
}

.users-table-responsive {
	overflow-x: auto !important;
}

td.action-column {
	white-space: nowrap;
	vertical-align: middle;
}

.user-actions {
	display: inline-flex;
	align-items: center;
	justify-content: flex-end;
	flex-wrap: nowrap;
	gap: .75rem;
	min-width: 190px;
}

.user-actions .icon-action {
	flex: 0 0 auto;
	padding: 0;
	line-height: 1;
}

/* hidden native file inputs behind custom "browse" buttons */
.file {
	visibility: hidden;
	position: absolute;
}

/* floating action bars over cards */
.actions-bar-container {
	position: relative;
}

.actions-bar {
	padding: 0;
	position: absolute;
	left: auto;
	right: 0;
	top: 2px;
	direction: rtl;
}

.actions-bar li {
	width: 40px;
	display: inline-block;
}

/* ------------------------------------------------------------ misc polish */

.img-thumbnail {
	border-color: var(--os-border);
	border-radius: var(--os-radius);
}

.dropdown-menu {
	border: 1px solid var(--os-border);
	border-radius: var(--os-radius-sm);
	box-shadow: var(--os-shadow-2);
}

.dropdown-item.dropdown-footer {
	font-weight: 600;
}

/* SweetAlert2 buttons follow theme */
.swal2-styled.swal2-confirm {
	background-color: var(--os-primary) !important;
	border-radius: var(--os-radius-sm) !important;
}

.swal2-styled.swal2-cancel {
	border-radius: var(--os-radius-sm) !important;
}

/* =====================================================================
   E-COMMERCE LANDING (home) + SHOP HEADER (classes)
   ===================================================================== */

/* ---- generic section heading ---- */
.os-section {
	margin: 2.25rem 0;
}

.os-section-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1.25rem;
}

.os-section-head__titles h2 {
	font-size: 1.5rem;
	font-weight: 800;
	letter-spacing: -.01em;
	margin: 0;
}

.os-section-head__titles p {
	color: var(--os-muted);
	margin: .25rem 0 0;
	font-size: .9rem;
}

.os-section-head__link {
	flex: 0 0 auto;
	font-weight: 700;
	font-size: .875rem;
	color: var(--os-primary);
	white-space: nowrap;
}

.os-section-head__link:hover {
	color: var(--os-accent);
}

/* ---- HERO ---- */
.os-hero {
	position: relative;
	overflow: hidden;
	border-radius: var(--os-radius-lg);
	background: linear-gradient(135deg, var(--os-hero-start) 0%, var(--os-hero-mid) 45%, var(--os-hero-end) 100%);
	color: #fff;
	padding: clamp(1.75rem, 4vw, 3rem);
	margin-bottom: 1.5rem;
	box-shadow: var(--os-shadow-2);
}

.os-hero::before,
.os-hero::after {
	content: "";
	position: absolute;
	border-radius: 50%;
	pointer-events: none;
}

.os-hero::before {
	width: 420px;
	height: 420px;
	top: -160px;
	right: -120px;
	background: radial-gradient(circle, rgba(217, 119, 6, .35) 0%, rgba(217, 119, 6, 0) 70%);
}

.os-hero::after {
	width: 360px;
	height: 360px;
	bottom: -180px;
	left: -80px;
	background: radial-gradient(circle, rgba(37, 99, 235, .28) 0%, rgba(37, 99, 235, 0) 70%);
}

.os-hero__inner {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 1.35fr 1fr;
	gap: clamp(1.5rem, 4vw, 3rem);
	align-items: center;
}

.os-hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	font-size: .75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: var(--os-accent-tint);
	margin-bottom: .85rem;
}

.os-hero__eyebrow i { color: var(--os-accent); }

.os-hero__title {
	font-size: clamp(1.75rem, 3.6vw, 2.6rem);
	font-weight: 800;
	line-height: 1.12;
	letter-spacing: -.02em;
	color: #fff;
	margin: 0 0 .85rem;
}

.os-hero__title span { color: #FBBF77; }

.os-hero__sub {
	font-size: 1.02rem;
	line-height: 1.6;
	color: #CBD5E1;
	max-width: 40ch;
	margin: 0 0 1.5rem;
}

.os-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: .75rem;
	margin-bottom: 1.75rem;
}

.os-btn-lg {
	padding: .7rem 1.5rem;
	font-size: 1rem;
	font-weight: 700;
	border-radius: 999px;
}

.os-btn-ghost {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	padding: .7rem 1.4rem;
	font-size: 1rem;
	font-weight: 700;
	border-radius: 999px;
	color: #fff;
	border: 1.5px solid rgba(255, 255, 255, .45);
	background: rgba(255, 255, 255, .06);
	transition: background-color .15s ease, border-color .15s ease;
}

.os-btn-ghost:hover {
	color: #fff;
	background: rgba(255, 255, 255, .14);
	border-color: rgba(255, 255, 255, .8);
}

.os-hero__stats {
	display: flex;
	flex-wrap: wrap;
	gap: 1.75rem;
}

.os-hero__stat {
	display: flex;
	flex-direction: column;
}

.os-hero__stat b {
	font-size: 1.6rem;
	font-weight: 800;
	line-height: 1;
	color: #fff;
}

.os-hero__stat span {
	font-size: .78rem;
	color: #94A3B8;
	text-transform: uppercase;
	letter-spacing: .05em;
	margin-top: .3rem;
}

/* Hero banner is school-uploaded: any size/orientation. Same technique as the
   class cards — a blurred COVER copy as a colour bed, the full CONTAIN photo
   sharp on top, so a wide banner, a square, or a portrait all display fully
   (never cropped or stretched) on a matching backdrop. */
.os-hero__media {
	position: relative;
	aspect-ratio: 16 / 10;
	border-radius: var(--os-radius);
	overflow: hidden;
	border: 3px solid rgba(255, 255, 255, .12);
	box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
	background: rgba(255, 255, 255, .06);
}

.os-hero__media-fill {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: blur(24px) saturate(1.3) brightness(.8);
	transform: scale(1.2);
	z-index: 0;
	pointer-events: none;
}

.os-hero__media-photo {
	position: relative;
	z-index: 1;
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

.os-hero__media--logo {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 16 / 10;
	background: rgba(255, 255, 255, .06);
}

.os-hero__media--logo img {
	position: relative;
	z-index: 1;
	width: 55%;
	height: auto;
	object-fit: contain;
}

/* ---- shop-by-category tiles ---- */
.os-cat-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
	gap: 1rem;
}

.os-cat-tile {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: 128px;
	padding: 1rem;
	border-radius: var(--os-radius);
	color: #fff;
	overflow: hidden;
	box-shadow: var(--os-shadow-1);
	transition: transform .2s ease, box-shadow .2s ease;
}

.os-cat-tile:hover {
	color: #fff;
	transform: translateY(-3px);
	box-shadow: var(--os-shadow-2);
}

.os-cat-tile::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(160deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, .28) 100%);
}

.os-cat-tile__icon {
	position: absolute;
	top: .85rem;
	right: .95rem;
	font-size: 1.9rem;
	opacity: .85;
	z-index: 1;
}

.os-cat-tile__name {
	position: relative;
	z-index: 1;
	font-weight: 700;
	font-size: 1rem;
	line-height: 1.2;
}

.os-cat-tile__count {
	position: relative;
	z-index: 1;
	font-size: .78rem;
	font-weight: 500;
	opacity: .9;
	margin-top: .15rem;
}

.os-cat-g1 { background: linear-gradient(135deg, #1E3A5F, #2B5A8C); }
.os-cat-g2 { background: linear-gradient(135deg, #B45309, #F59E0B); }
.os-cat-g3 { background: linear-gradient(135deg, #0F766E, #14B8A6); }
.os-cat-g4 { background: linear-gradient(135deg, #7C3AED, #A78BFA); }
.os-cat-g5 { background: linear-gradient(135deg, #BE123C, #FB7185); }
.os-cat-g6 { background: linear-gradient(135deg, #1D4ED8, #60A5FA); }
.os-cat-g7 { background: linear-gradient(135deg, #15803D, #4ADE80); }
.os-cat-g8 { background: linear-gradient(135deg, #0369A1, #38BDF8); }

/* ---- mayor / welcome message ---- */
.os-mayor {
	position: relative;
	background: var(--os-surface);
	border: 1px solid var(--os-border);
	border-radius: var(--os-radius-lg);
	box-shadow: var(--os-shadow-1);
	padding: clamp(1.5rem, 3vw, 2.25rem);
	overflow: hidden;
}

.os-mayor::before {
	content: "\201C";
	position: absolute;
	top: -1.5rem;
	left: 1rem;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 8rem;
	line-height: 1;
	color: var(--os-primary-tint);
	z-index: 0;
}

.os-mayor__person {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-bottom: 1.1rem;
	padding-bottom: 1.1rem;
	border-bottom: 1px solid var(--os-border);
}

.os-mayor__person img {
	width: 68px;
	height: 68px;
	border-radius: 50%;
	object-fit: cover;
	border: 3px solid var(--os-primary-tint);
	flex: 0 0 auto;
}

.os-mayor__person h3 {
	font-size: 1.1rem;
	font-weight: 800;
	margin: 0;
}

.os-mayor__person span {
	color: var(--os-accent-dark);
	font-weight: 600;
	font-size: .9rem;
}

.os-mayor__body {
	position: relative;
	z-index: 1;
	color: #334155;
	line-height: 1.75;
	font-size: .975rem;
}

.os-mayor__body p:last-child { margin-bottom: 0; }

/* ===================================================================
   WELCOME / MAYOR FEATURE  (added 2026-07-05 by Claude)
   Elevated editorial band that puts focus on the mayor's message and
   ties in the school identity. Used by home.php in place of .os-mayor.
   .os-mayor above is kept intact/unused for easy revert.
   =================================================================== */
.os-welcome {
	position: relative;
	display: grid;
	grid-template-columns: minmax(260px, 350px) 1fr;
	border-radius: var(--os-radius-lg);
	overflow: hidden;
	border: 1px solid var(--os-border);
	box-shadow: var(--os-shadow-2);
	background: var(--os-surface);
}

/* ---- left: portrait panel (navy, official) ---- */
.os-welcome__portrait {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	text-align: center;
	gap: .35rem;
	padding: clamp(2rem, 3.5vw, 2.75rem) 1.5rem;
	background: linear-gradient(160deg, var(--os-hero-start) 0%, var(--os-hero-mid) 50%, var(--os-hero-end) 100%);
	color: #fff;
	overflow: hidden;
}

/* faint school emblem filling the lower panel — reinforces school identity */
.os-welcome__watermark {
	position: absolute;
	left: 50%;
	bottom: -34px;
	transform: translateX(-50%);
	width: 130%;
	max-width: 380px;
	opacity: .07;
	filter: grayscale(1) brightness(3);
	pointer-events: none;
	z-index: 0;
}

.os-welcome__portrait::before {
	content: "";
	position: absolute;
	width: 300px;
	height: 300px;
	top: -110px;
	right: -110px;
	background: radial-gradient(circle, rgba(217, 119, 6, .38) 0%, rgba(217, 119, 6, 0) 70%);
	pointer-events: none;
}

.os-welcome__portrait::after {
	content: "";
	position: absolute;
	width: 280px;
	height: 280px;
	bottom: -140px;
	left: -100px;
	background: radial-gradient(circle, rgba(37, 99, 235, .30) 0%, rgba(37, 99, 235, 0) 70%);
	pointer-events: none;
}

.os-welcome__seal {
	position: absolute;
	top: 14px;
	left: 14px;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: #fff;
	padding: 5px;
	box-shadow: var(--os-shadow-1);
	z-index: 2;
}

.os-welcome__seal img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.os-welcome__photo-wrap {
	position: relative;
	z-index: 1;
	width: clamp(148px, 62%, 188px);
	aspect-ratio: 1;
	margin-bottom: .85rem;
}

.os-welcome__photo-wrap::before {
	content: "";
	position: absolute;
	inset: -8px;
	border-radius: 50%;
	border: 2px solid rgba(251, 191, 119, .55);
}

.os-welcome__photo {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	object-fit: cover;
	object-position: top center;
	border: 4px solid rgba(255, 255, 255, .92);
	box-shadow: 0 12px 32px rgba(0, 0, 0, .38);
	background: #fff;
}

.os-welcome__name {
	position: relative;
	z-index: 1;
	font-size: 1.18rem;
	font-weight: 800;
	line-height: 1.2;
	color: #fff;
}

.os-welcome__role {
	position: relative;
	z-index: 1;
	font-size: .85rem;
	font-weight: 600;
	color: #FBBF77;
}

.os-welcome__school {
	position: relative;
	z-index: 1;
	margin-top: .65rem;
	padding-top: .65rem;
	border-top: 1px solid rgba(255, 255, 255, .16);
	font-size: .68rem;
	font-weight: 600;
	letter-spacing: .09em;
	text-transform: uppercase;
	color: #AEC0D6;
	max-width: 22ch;
}

/* ---- right: speech panel (editorial) ---- */
.os-welcome__speech {
	position: relative;
	padding: clamp(1.75rem, 3.5vw, 3rem);
}

.os-welcome__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	font-size: .72rem;
	font-weight: 800;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--os-accent-dark);
	margin-bottom: 1rem;
}

.os-welcome__eyebrow i {
	color: var(--os-accent);
}

.os-welcome__quote {
	position: absolute;
	top: .9rem;
	right: 1.5rem;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 6rem;
	line-height: .7;
	color: var(--os-primary-tint);
	pointer-events: none;
	user-select: none;
	z-index: 0;
}

.os-welcome__body {
	position: relative;
	z-index: 1;
	color: #334155;
	font-size: 1.04rem;
	line-height: 1.85;
	max-width: 62ch;
}

.os-welcome__body p:last-child {
	margin-bottom: 0;
}

.os-welcome__sign {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: .1rem .6rem;
	margin-top: 1.4rem;
	padding-top: 1.1rem;
	border-top: 2px dashed var(--os-border);
}

.os-welcome__sign-name {
	font-size: 1.1rem;
	font-weight: 800;
	color: var(--os-primary);
}

.os-welcome__sign-role {
	font-size: .85rem;
	font-weight: 600;
	color: var(--os-accent-dark);
}

@media (max-width: 767.98px) {
	.os-welcome {
		grid-template-columns: 1fr;
	}
	.os-welcome__portrait {
		flex-direction: row;
		text-align: left;
		justify-content: flex-start;
		gap: 1rem;
		padding: 1.25rem 1.25rem 1.25rem 1.5rem;
	}
	.os-welcome__photo-wrap {
		width: 92px;
		margin-bottom: 0;
		flex: 0 0 auto;
	}
	.os-welcome__seal {
		display: none;
	}
	.os-welcome__school {
		max-width: none;
	}
	.os-welcome__quote {
		display: none;
	}

	/* thumb-friendly form controls on phones; 16px font stops iOS zoom-on-focus.
	   ~90% of registrations come from mobile, so the reservation form matters most. */
	.form-control,
	.custom-select,
	select.form-control,
	.input-group-text,
	.bootstrap-select .dropdown-toggle {
		min-height: 46px;
		font-size: 16px;
	}
	.os-form-section {
		padding: 1.1rem 1.15rem;
	}
	.os-form-section label {
		font-size: .9rem;
	}
	/* stack the consent radios into full-width tap rows */
	.os-form-section .form-check-inline {
		display: flex;
		width: 100%;
		margin: 0 0 .5rem;
		padding: .5rem .75rem;
		border: 1px solid var(--os-border);
		border-radius: var(--os-radius-sm);
	}
	/* primary submit spans the width so it's an easy thumb target */
	#quickForm > .mb-4 .btn,
	#manaul_quick_Form > .mb-4 .btn {
		width: 100%;
		justify-content: center;
	}
}

/* subtle entrance for the welcome band */
.os-reveal {
	animation: os-reveal-in .6s cubic-bezier(.22, .61, .36, 1) both;
}

@keyframes os-reveal-in {
	from { opacity: 0; transform: translateY(14px); }
	to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
	.os-reveal {
		animation: none;
	}
}

/* ---- CTA band (booklet) ---- */
.os-cta-band {
	position: relative;
	overflow: hidden;
	border-radius: var(--os-radius-lg);
	background: linear-gradient(135deg, var(--os-hero-mid), var(--os-hero-end));
	color: #fff;
	text-align: center;
	padding: clamp(1.75rem, 4vw, 2.75rem);
	box-shadow: var(--os-shadow-2);
}

.os-cta-band h2 {
	color: #fff;
	font-size: clamp(1.35rem, 2.6vw, 1.85rem);
	font-weight: 800;
	margin: 0 0 .5rem;
}

.os-cta-band p {
	color: #CBD5E1;
	max-width: 52ch;
	margin: 0 auto 1.5rem;
}

/* ---- contact strip ---- */
.os-contact {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1.25rem;
	background: var(--os-surface);
	border: 1px solid var(--os-border);
	border-radius: var(--os-radius-lg);
	box-shadow: var(--os-shadow-1);
	padding: 1.25rem 1.5rem;
}

.os-contact__list {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.os-contact__list li {
	display: flex;
	align-items: center;
	gap: .6rem;
	font-size: .9rem;
	color: var(--os-text);
}

.os-contact__list i {
	width: 34px;
	height: 34px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--os-primary-tint);
	color: var(--os-primary);
	flex: 0 0 auto;
}

.os-contact__social {
	display: flex;
	gap: .6rem;
}

/* ---- SHOP HEADER (classes page) ---- */
.os-shop-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.1rem 1.25rem;
}

.os-shop-head__titles h2 {
	font-size: 1.25rem;
	font-weight: 800;
	margin: 0;
}

.os-shop-head__titles p {
	color: var(--os-muted);
	font-size: .875rem;
	margin: .15rem 0 0;
}

.os-search {
	position: relative;
	flex: 1 1 260px;
	max-width: 360px;
}

.os-search i {
	position: absolute;
	top: 50%;
	left: .9rem;
	transform: translateY(-50%);
	color: var(--os-muted);
	font-size: .85rem;
}

.os-search input {
	width: 100%;
	border: 1px solid var(--os-border);
	border-radius: 999px;
	padding: .55rem 1rem .55rem 2.3rem;
	font-size: .9rem;
	color: var(--os-text);
	background: var(--os-surface);
	transition: border-color .15s ease, box-shadow .15s ease;
}

.os-search input:focus {
	outline: none;
	border-color: var(--os-primary);
	box-shadow: 0 0 0 3px rgba(30, 58, 95, .15);
}

.os-empty {
	text-align: center;
	color: var(--os-muted);
	padding: 3rem 1rem;
}

.os-empty i {
	font-size: 2.5rem;
	color: var(--os-border);
	margin-bottom: .75rem;
}

/* ---- responsive ---- */
@media (max-width: 991.98px) {
	.os-hero__inner { grid-template-columns: 1fr; }
	.os-hero__media { order: -1; max-width: 460px; }
}

@media (max-width: 575.98px) {
	.os-hero__stats { gap: 1.25rem; }
	.os-hero__stat b { font-size: 1.35rem; }
	.os-cat-grid { grid-template-columns: repeat(2, 1fr); }
	.os-section-head { flex-direction: column; align-items: flex-start; gap: .35rem; }
	/* full-width, thumb-friendly CTAs (≈90% of traffic is mobile) */
	.os-hero__actions { width: 100%; }
	.os-hero__actions .btn,
	.os-hero__actions .os-btn-ghost { flex: 1 1 100%; justify-content: center; }
	.os-hero__media { max-width: none; }
}

/* respect reduced motion */
@media (prefers-reduced-motion: reduce) {
	.os-class-card,
	.os-class-card__media-photo,
	.os-social-btn,
	.os-cat-tile,
	.btn,
	.main-sidebar .nav-sidebar .nav-link {
		transition: none;
	}

	.os-class-card:hover,
	.os-cat-tile:hover {
		transform: none;
	}

	.os-class-card:hover .os-class-card__media-photo {
		transform: none;
	}
}
