/* grad/undergrad theme: colours from the Facebook page entrysci.ubu, font Kanit (OFL, assets/theme/fonts). */

@font-face {
	font-family: "Kanit";
	font-style: normal;
	font-weight: 300;
	font-display: swap;
	src: url("../fonts/kanit-300.woff2") format("woff2");
}
@font-face {
	font-family: "Kanit";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/kanit-400.woff2") format("woff2");
}
@font-face {
	font-family: "Kanit";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("../fonts/kanit-600.woff2") format("woff2");
}
@font-face {
	font-family: "Kanit";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("../fonts/kanit-700.woff2") format("woff2");
}

:root {
	--sci-royal: #0b3a8f;
	--sci-royal-dark: #072a6b;
	--sci-blue: #0a5bc4;
	--sci-sky: #1e9bff;
	--sci-yellow: #ffe11a;
	--sci-yellow-hover: #ffea5c;
	--sci-cream: #fff4c2;
	--sci-ink: #0f1d3a;
	--sci-muted: #52607a;
	--sci-bg: #f4f7fc;
	--sci-line: #e1e8f3;
	--sci-holo: linear-gradient(135deg, #ff6fb5, #8b5cf6 50%, #22d3ee);
	--sci-hero: linear-gradient(135deg, var(--sci-royal) 0%, var(--sci-blue) 55%, var(--sci-sky) 100%);
	--fb-blue: #0866ff;
	--radius-card: 20px;
	--shadow-card: 0 8px 24px rgb(11 58 143 / 8%);
	--shadow-lift: 0 16px 36px rgb(11 58 143 / 16%);
	--bs-body-font-family: "Kanit", "Segoe UI", Tahoma, sans-serif;
	--bs-body-font-weight: 300;
	--bs-body-color: var(--sci-ink);
	--bs-body-bg: var(--sci-bg);
	--bs-link-color-rgb: 10, 91, 196;
	--bs-link-hover-color-rgb: 11, 58, 143;
}

body {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	line-height: 1.7;
	word-break: normal;
	overflow-wrap: break-word;
}

h1, h2, h3, h4, h5, h6, b, strong, th {
	font-weight: 600;
	line-height: 1.35;
}

.bi {
	width: 1em;
	height: 1em;
	vertical-align: -0.125em;
	flex-shrink: 0;
}

.hl {
	color: var(--sci-yellow);
}

.skip-link {
	position: absolute;
	z-index: 1100;
	top: 0.5rem;
	left: 0.5rem;
	padding: 0.5rem 1rem;
	background: var(--sci-yellow);
	color: var(--sci-royal);
	border-radius: 999px;
}

/* Buttons: capsules like the labels on the page's posters */

.btn {
	--bs-btn-font-weight: 400;
	border-radius: 999px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding-inline: 1.25rem;
}
.btn-lg {
	padding: 0.7rem 1.6rem;
	font-size: 1.05rem;
}
.btn-apply {
	--bs-btn-color: var(--sci-royal);
	--bs-btn-bg: var(--sci-yellow);
	--bs-btn-border-color: var(--sci-yellow);
	--bs-btn-hover-color: var(--sci-royal);
	--bs-btn-hover-bg: var(--sci-yellow-hover);
	--bs-btn-hover-border-color: var(--sci-yellow-hover);
	--bs-btn-active-color: var(--sci-royal);
	--bs-btn-active-bg: var(--sci-yellow-hover);
	--bs-btn-active-border-color: var(--sci-yellow-hover);
	--bs-btn-font-weight: 600;
	box-shadow: 0 6px 18px rgb(255 225 26 / 35%);
}
.btn-ghost {
	--bs-btn-color: #fff;
	--bs-btn-border-color: rgb(255 255 255 / 70%);
	--bs-btn-hover-color: var(--sci-royal);
	--bs-btn-hover-bg: #fff;
	--bs-btn-hover-border-color: #fff;
	--bs-btn-active-color: var(--sci-royal);
	--bs-btn-active-bg: #fff;
}
.btn-facebook {
	--bs-btn-color: #fff;
	--bs-btn-bg: var(--fb-blue);
	--bs-btn-border-color: var(--fb-blue);
	--bs-btn-hover-color: #fff;
	--bs-btn-hover-bg: #0757d9;
	--bs-btn-hover-border-color: #0757d9;
	--bs-btn-active-color: #fff;
	--bs-btn-active-bg: #0757d9;
}

/* Header */

/* The blur sits on ::before: backdrop-filter on the header itself would make it the
   containing block of the fixed offcanvas menu. */
.site-header {
	border-top: 4px solid transparent;
	border-image: linear-gradient(90deg, var(--sci-royal), var(--sci-sky) 60%, var(--sci-yellow)) 1;
	box-shadow: 0 1px 0 var(--sci-line);
}
.site-header::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: rgb(255 255 255 / 88%);
	backdrop-filter: saturate(160%) blur(12px);
	-webkit-backdrop-filter: saturate(160%) blur(12px);
}
.site-header .navbar {
	padding-block: 0.6rem;
}

.brand {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	color: var(--sci-royal);
	text-decoration: none;
	line-height: 1.25;
}
.brand:hover {
	color: var(--sci-royal);
}
.brand img {
	width: 36px;
	height: auto;
}
.brand-name {
	display: block;
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--sci-royal);
}
.brand-sub {
	display: block;
	font-size: 0.78rem;
	color: var(--sci-muted);
}

.navbar-toggler {
	border: 0;
	border-radius: 12px;
	padding: 0.45rem 0.6rem;
	color: var(--sci-royal);
	font-size: 1.5rem;
	line-height: 1;
}
.navbar-toggler:focus {
	box-shadow: 0 0 0 3px rgb(30 155 255 / 35%);
}

.site-header .nav-link {
	color: var(--sci-ink);
	font-weight: 400;
	padding-inline: 0.85rem !important;
	border-radius: 999px;
}
.site-header .nav-link:hover,
.site-header .nav-link:focus-visible,
.site-header .nav-link.show {
	color: var(--sci-blue);
	background: rgb(30 155 255 / 10%);
}

.btn-close-menu {
	border: 0;
	background: none;
	color: var(--sci-royal);
	font-size: 1.25rem;
	padding: 0.25rem;
}

.offcanvas {
	--bs-offcanvas-width: min(340px, 88vw);
}
@media (max-width: 991.98px) {
	.offcanvas-body .nav-link {
		padding-block: 0.65rem;
		font-size: 1.05rem;
	}
	.offcanvas-body .btn-apply {
		width: 100%;
		margin-top: 0.75rem;
	}
	.course-menu {
		border: 0;
		box-shadow: none;
		padding: 0 0 0 0.5rem;
	}
}

.course-menu {
	border: 0;
	border-radius: var(--radius-card);
	box-shadow: var(--shadow-lift);
	padding: 0.75rem;
}
@media (min-width: 992px) {
	.course-menu {
		display: none;
		min-width: 620px;
	}
	.course-menu.show {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 0.25rem 1rem;
	}
	.course-menu-group:only-child {
		grid-column: 1 / -1;
		column-count: 2;
		column-gap: 1rem;
	}
	.course-menu-group:only-child .dropdown-header {
		column-span: all;
	}
	.course-menu-group .dropdown-item {
		break-inside: avoid;
	}
}
.course-menu .dropdown-header {
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--sci-blue);
	text-transform: none;
	margin: 0;
}
.course-menu .dropdown-item {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
	border-radius: 12px;
	padding: 0.45rem 0.75rem;
	white-space: normal;
	color: var(--sci-ink);
}
.course-menu .dropdown-item .bi {
	color: var(--sci-blue);
	margin-top: 0.3rem;
}
.course-menu .dropdown-item:hover,
.course-menu .dropdown-item:focus-visible {
	background: rgb(30 155 255 / 10%);
	color: var(--sci-royal);
}

.site-main {
	flex: 1 0 auto;
}

/* Hero */

.hero {
	position: relative;
	overflow: hidden;
	background: url("../img/doodles.svg") right -60px top 10px / 640px auto no-repeat, var(--sci-hero);
	color: #fff;
	padding: 3rem 0 4rem;
}
.hero::after {
	content: "";
	position: absolute;
	left: -10%;
	right: -10%;
	bottom: -1px;
	height: 70px;
	background: var(--sci-bg);
	border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}
.hero .container {
	position: relative;
	z-index: 1;
}
@media (min-width: 992px) {
	.hero {
		padding: 4.5rem 0 6rem;
	}
}

.kicker {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	background: #fff;
	color: var(--sci-royal);
	border-radius: 999px;
	padding: 0.3rem 1rem;
	font-size: 0.9rem;
	font-weight: 400;
	box-shadow: 0 6px 18px rgb(7 42 107 / 25%);
}
.kicker .bi {
	color: var(--sci-blue);
}

.hero-title {
	font-size: clamp(2rem, 5vw, 3.25rem);
	font-weight: 700;
	line-height: 1.3;
	margin: 1.1rem 0 0.75rem;
	text-shadow: 0 3px 0 rgb(7 42 107 / 35%);
}
.hero-title > span {
	display: inline-block;
	white-space: nowrap;
}
.hero-text {
	font-size: 1.1rem;
	color: rgb(255 255 255 / 88%);
	max-width: 34rem;
}
.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1.5rem;
}

.hero-stats {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	list-style: none;
	padding: 0;
	margin: 2rem 0 0;
}
.hero-stats li {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	background: rgb(255 255 255 / 12%);
	border: 1px solid rgb(255 255 255 / 25%);
	border-radius: 16px;
	padding: 0.5rem 1rem;
	line-height: 1.3;
	font-size: 0.85rem;
	color: rgb(255 255 255 / 90%);
}
.hero-stats strong {
	font-size: 1.9rem;
	font-weight: 700;
	color: var(--sci-yellow);
}

.hero-photo {
	position: relative;
	margin: 0;
	padding: 6px;
	border-radius: 32px;
	background: var(--sci-holo);
	transform: rotate(2deg);
	box-shadow: 0 24px 60px rgb(7 42 107 / 45%);
}
.hero-photo img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	border-radius: 26px;
}
.hero-chip {
	position: absolute;
	left: -12px;
	bottom: 22px;
	display: flex;
	align-items: center;
	gap: 0.65rem;
	background: #fff;
	color: var(--sci-ink);
	border-radius: 18px;
	padding: 0.6rem 1rem 0.6rem 0.6rem;
	font-size: 0.85rem;
	line-height: 1.35;
	transform: rotate(-2deg);
	box-shadow: var(--shadow-lift);
}
.hero-chip strong {
	color: var(--sci-royal);
}
.hero-chip-icon {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	background: var(--sci-hero);
	color: #fff;
	font-size: 1.2rem;
}
@media (max-width: 575.98px) {
	.hero-photo {
		transform: none;
	}
	.hero-chip {
		left: 10px;
		bottom: 10px;
		transform: none;
	}
}

/* Sections */

.section {
	padding: 3.5rem 0;
}
.section-head {
	text-align: center;
	max-width: 40rem;
	margin: 0 auto 2.5rem;
}
.section-head h2 {
	font-size: clamp(1.6rem, 3.5vw, 2.25rem);
	font-weight: 700;
	color: var(--sci-royal);
	margin: 0.5rem 0;
}
.section-head p {
	color: var(--sci-muted);
	margin: 0;
}
.eyebrow {
	display: inline-block;
	background: var(--sci-cream);
	color: var(--sci-royal);
	border-radius: 999px;
	padding: 0.2rem 0.9rem;
	font-size: 0.9rem;
	font-weight: 400;
}

.level-head {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 1rem;
}
.level-head h3 {
	font-size: 1.35rem;
	color: var(--sci-royal);
	margin: 0;
}
.level-head::after {
	content: "";
	flex: 1;
	height: 2px;
	background: linear-gradient(90deg, var(--sci-line), transparent);
}
.count-pill {
	background: var(--sci-royal);
	color: #fff;
	border-radius: 999px;
	padding: 0.1rem 0.75rem;
	font-size: 0.85rem;
}

/* Course cards */

.course-card {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	background: #fff;
	border-radius: var(--radius-card);
	padding: 1.4rem 1.4rem 1.2rem;
	color: var(--sci-ink);
	text-decoration: none;
	box-shadow: var(--shadow-card);
	overflow: hidden;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.course-card::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 5px;
	background: linear-gradient(90deg, var(--sci-royal), var(--sci-sky));
}
.course-card:hover,
.course-card:focus-visible {
	color: var(--sci-ink);
	transform: translateY(-4px);
	box-shadow: var(--shadow-lift);
}
.course-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 1rem;
}
.course-icon {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	border-radius: 16px;
	background: var(--sci-hero);
	color: #fff;
	font-size: 1.5rem;
	box-shadow: 0 8px 18px rgb(10 91 196 / 30%);
}
.course-degree {
	background: var(--sci-cream);
	color: var(--sci-royal);
	border-radius: 999px;
	padding: 0.15rem 0.75rem;
	font-size: 0.8rem;
	font-weight: 400;
	text-align: right;
}
.course-title {
	font-size: 1.15rem;
	font-weight: 600;
	color: var(--sci-royal);
	line-height: 1.45;
}
.course-en {
	margin-top: 0.25rem;
	font-size: 0.85rem;
	color: var(--sci-muted);
	line-height: 1.45;
}
.course-more {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	margin-top: auto;
	padding-top: 1rem;
	font-size: 0.9rem;
	font-weight: 400;
	color: var(--sci-blue);
}
.course-card:hover .course-more .bi {
	transform: translateX(3px);
	transition: transform 0.2s ease;
}

/* Call to action */

.cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	background: url("../img/doodles.svg") right -160px center / 520px auto no-repeat, var(--sci-hero);
	color: #fff;
	border-radius: 28px;
	padding: 2.25rem;
	box-shadow: var(--shadow-lift);
}
.cta h2 {
	font-size: clamp(1.4rem, 3vw, 2rem);
	font-weight: 700;
	margin: 0 0 0.35rem;
}
.cta p {
	margin: 0;
	color: rgb(255 255 255 / 88%);
}
.cta-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

/* Footer */

.site-footer {
	background: linear-gradient(160deg, var(--sci-royal-dark), var(--sci-royal));
	color: #c9d6ee;
	font-size: 0.92rem;
	padding: 3rem 0 1.5rem;
	margin-top: 1rem;
}
.site-footer a {
	color: #fff;
	text-decoration: none;
}
.site-footer a:hover {
	color: var(--sci-yellow);
}
.footer-brand {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 1rem;
}
.footer-name {
	color: #fff;
	font-weight: 600;
	font-size: 1.05rem;
}
.footer-en {
	font-size: 0.8rem;
}
.footer-title {
	font-size: 1rem;
	color: var(--sci-yellow);
	margin-bottom: 0.85rem;
}
.footer-contact,
.footer-links {
	list-style: none;
	padding: 0;
	margin: 0;
}
.footer-contact li {
	display: flex;
	gap: 0.6rem;
	margin-bottom: 0.4rem;
}
.footer-contact .bi {
	margin-top: 0.3rem;
	color: var(--sci-yellow);
}
.footer-links li {
	margin-bottom: 0.4rem;
}
.site-footer .btn-facebook {
	color: #fff;
}
.footer-search {
	display: flex;
	margin-top: 1rem;
	background: rgb(255 255 255 / 10%);
	border: 1px solid rgb(255 255 255 / 25%);
	border-radius: 999px;
	overflow: hidden;
}
.footer-search input {
	flex: 1;
	min-width: 0;
	border: 0;
	background: transparent;
	color: #fff;
	padding: 0.45rem 1rem;
}
.footer-search input::placeholder {
	color: #c9d6ee;
}
.footer-search input:focus {
	outline: none;
}
.footer-search:focus-within {
	border-color: var(--sci-yellow);
}
.footer-search button {
	border: 0;
	background: transparent;
	color: var(--sci-yellow);
	padding: 0 1rem;
}
.footer-bottom {
	border-top: 1px solid rgb(255 255 255 / 15%);
	margin-top: 2rem;
	padding-top: 1.25rem;
	text-align: center;
	font-size: 0.85rem;
}

/* Course page */

.course-hero {
	position: relative;
	overflow: hidden;
	background: url("../img/doodles.svg") right -80px center / 560px auto no-repeat, var(--sci-hero);
	color: #fff;
	padding: 1.5rem 0 4rem;
}
.course-hero::after {
	content: "";
	position: absolute;
	left: -10%;
	right: -10%;
	bottom: -1px;
	height: 48px;
	background: var(--sci-bg);
	border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}
.course-hero .container {
	position: relative;
	z-index: 1;
}
.course-hero .breadcrumb {
	--bs-breadcrumb-divider-color: rgb(255 255 255 / 60%);
	--bs-breadcrumb-item-active-color: rgb(255 255 255 / 75%);
	font-size: 0.88rem;
	margin-bottom: 1.5rem;
}
.course-hero .breadcrumb a {
	color: #fff;
	text-decoration: none;
}
.course-hero .breadcrumb a:hover {
	color: var(--sci-yellow);
}
.course-hero-body {
	display: flex;
	align-items: flex-start;
	gap: 1.5rem;
}
.course-hero-icon {
	display: none;
	place-items: center;
	flex: 0 0 auto;
	width: 96px;
	height: 96px;
	border-radius: 28px;
	background: rgb(255 255 255 / 14%);
	border: 1px solid rgb(255 255 255 / 30%);
	color: var(--sci-yellow);
	font-size: 2.6rem;
	box-shadow: 0 16px 36px rgb(7 42 107 / 30%);
}
@media (min-width: 768px) {
	.course-hero-icon {
		display: grid;
	}
	.course-hero {
		padding-bottom: 5rem;
	}
}
.course-hero-title {
	font-size: clamp(1.7rem, 4.2vw, 2.75rem);
	font-weight: 700;
	line-height: 1.3;
	margin: 0.9rem 0 0.35rem;
	text-shadow: 0 3px 0 rgb(7 42 107 / 35%);
}
.course-hero-en {
	color: rgb(255 255 255 / 85%);
	margin: 0;
}
.course-hero .hero-actions {
	margin-top: 1.25rem;
}

.course-body {
	padding-top: 1rem;
	padding-bottom: 3.5rem;
}

.info-card,
.side-card,
.person-card {
	background: #fff;
	border-radius: var(--radius-card);
	box-shadow: var(--shadow-card);
}
.info-card {
	padding: 1.25rem 1.4rem;
}
.info-card h2,
.side-card h2 {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	font-size: 1.05rem;
	color: var(--sci-royal);
	margin-bottom: 0.85rem;
}
.info-card h2 .bi,
.side-card h2 .bi {
	color: var(--sci-blue);
}
.info-card dl {
	margin: 0;
}
.info-card dt {
	font-size: 0.8rem;
	font-weight: 400;
	color: var(--sci-muted);
}
.info-card dd {
	margin-bottom: 0.6rem;
}
.info-card dd:last-child {
	margin-bottom: 0;
}
.text-muted-sci {
	color: var(--sci-muted);
	font-size: 0.92rem;
}
.info-card-cost {
	background: linear-gradient(135deg, #fff 60%, var(--sci-cream));
}

/* HTML written in the backend editor (course fields go through config/rich_html.php) */
.rich-text {
	line-height: 1.8;
}
.rich-text > :first-child {
	margin-top: 0;
}
.rich-text > :last-child {
	margin-bottom: 0;
}
.rich-text p {
	margin-bottom: 0.75rem;
}
.rich-text h3,
.rich-text h4,
.rich-text h5 {
	color: var(--sci-royal);
	margin: 1.4rem 0 0.6rem;
}
.rich-text h3 {
	font-size: 1.15rem;
}
.rich-text h4 {
	font-size: 1.05rem;
}
.rich-text h5 {
	font-size: 1rem;
	color: var(--sci-blue);
}
.rich-text ul,
.rich-text ol {
	padding-left: 1.5rem;
	margin-bottom: 0.75rem;
}
.rich-text li {
	margin-bottom: 0.25rem;
}
.rich-text li::marker {
	color: var(--sci-blue);
}
.rich-text a {
	text-decoration: underline;
	text-underline-offset: 0.15em;
}
.rich-text img {
	max-width: 100%;
	height: auto;
}
.rich-text blockquote {
	padding-left: 1rem;
	border-left: 4px solid var(--sci-line);
	color: var(--sci-muted);
}
.rich-text table {
	width: 100% !important;
	max-width: 100%;
	margin: 0.5rem 0 1.25rem;
	border-collapse: collapse;
	font-size: 0.92rem;
	line-height: 1.6;
}
.rich-text td,
.rich-text th {
	border: 1px solid var(--sci-line);
	padding: 0.45rem 0.7rem;
	vertical-align: top;
}
.rich-text td:not(:empty),
.rich-text th:not(:empty) {
	min-width: 5.5rem;
}
.rich-text th,
.rich-text thead td {
	background: #eef3fb;
	color: var(--sci-royal);
	font-weight: 600;
	vertical-align: middle;
}
.rich-text tbody tr:nth-child(even) td {
	background: #f8fafd;
}
.rich-text td p,
.rich-text th p {
	margin-bottom: 0.2rem;
}
.rich-text td > :last-child,
.rich-text th > :last-child,
.rich-text li > :last-child {
	margin-bottom: 0;
}
.rich-text .ratio {
	max-width: 720px;
	margin: 0 auto 1rem;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: var(--shadow-card);
}
.rich-text .ratio-a4 {
	--bs-aspect-ratio: 141.4286%;
	max-width: 480px;
}
.rich-text .ratio > iframe {
	border: 0;
}
.accordion-body.rich-text {
	overflow-x: auto;
}

.block-title {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	font-size: 1.35rem;
	color: var(--sci-royal);
	margin: 2.5rem 0 1rem;
}
.block-title::after {
	content: "";
	flex: 1;
	height: 2px;
	background: linear-gradient(90deg, var(--sci-line), transparent);
}

.course-video {
	margin-top: 1.5rem;
	border-radius: var(--radius-card);
	overflow: hidden;
	box-shadow: var(--shadow-card);
}

.course-accordion {
	--bs-accordion-border-width: 0;
	--bs-accordion-bg: #fff;
	--bs-accordion-btn-color: var(--sci-royal);
	--bs-accordion-active-color: var(--sci-royal);
	--bs-accordion-active-bg: #fff;
	--bs-accordion-btn-focus-box-shadow: 0 0 0 3px rgb(30 155 255 / 30%);
	--bs-accordion-border-radius: var(--radius-card);
	--bs-accordion-inner-border-radius: var(--radius-card);
	display: grid;
	gap: 0.75rem;
}
.course-accordion .accordion-item {
	border-radius: var(--radius-card) !important;
	box-shadow: var(--shadow-card);
	overflow: hidden;
}
.course-accordion .accordion-button {
	font-weight: 600;
	gap: 0.75rem;
	padding: 1rem 1.4rem;
}
.course-accordion .accordion-button::before {
	content: "";
	flex: 0 0 auto;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--sci-holo);
}
.course-accordion .accordion-button:not(.collapsed) {
	box-shadow: inset 0 -1px 0 var(--sci-line);
}
.course-accordion .accordion-body {
	padding: 1.1rem 1.4rem 1.4rem;
}

.doc-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	gap: 0.5rem;
}
.doc-list a {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	background: #fff;
	border-radius: 14px;
	padding: 0.75rem 1rem;
	box-shadow: var(--shadow-card);
	text-decoration: none;
	color: var(--sci-ink);
}
.doc-list a:hover {
	color: var(--sci-royal);
	box-shadow: var(--shadow-lift);
}
.doc-list .bi {
	font-size: 1.3rem;
	color: var(--sci-blue);
}

.person-avatar {
	--avatar-size: 88px;
	position: relative;
	flex: 0 0 auto;
	width: var(--avatar-size);
	height: var(--avatar-size);
	padding: 3px;
	border-radius: 50%;
	background: var(--sci-holo);
	text-decoration: none;
}
.person-avatar img {
	position: absolute;
	inset: 3px;
	display: block;
	width: calc(100% - 6px);
	height: calc(100% - 6px);
	object-fit: cover;
	border-radius: 50%;
	border: 3px solid #fff;
	background: var(--sci-bg);
}
.person-avatar .avatar-initial {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	border: 3px solid #fff;
	background: #dde5ef;
	color: #003366;
	font-size: calc(var(--avatar-size) * 0.36);
	font-weight: 400;
	line-height: 1;
	user-select: none;
}
.person-name {
	color: var(--sci-royal);
	margin: 0;
}
.person-name a {
	color: inherit;
	text-decoration: none;
}
.person-name a:hover {
	color: var(--sci-blue);
	text-decoration: underline;
}

.person-chair {
	position: relative;
	display: flex;
	align-items: center;
	gap: 1.4rem;
	margin-bottom: 1rem;
	padding: 1.4rem 1.6rem;
	overflow: hidden;
	background: linear-gradient(120deg, #fff 55%, #f1f5fd);
}
.person-chair::before {
	content: "";
	position: absolute;
	inset: 0 auto 0 0;
	width: 5px;
	background: var(--sci-holo);
}
.person-chair .person-avatar {
	--avatar-size: 112px;
}
.person-body {
	min-width: 0;
}
.person-role {
	display: inline-block;
	background: var(--sci-cream);
	color: var(--sci-royal);
	border-radius: 999px;
	padding: 0 0.7rem;
	font-size: 0.78rem;
	font-weight: 400;
	margin-bottom: 0.3rem;
}
.person-chair .person-name {
	font-size: 1.15rem;
	margin-bottom: 0.35rem;
}
.person-overview {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: 0.86rem;
	line-height: 1.6;
	color: var(--sci-muted);
	margin: 0 0 0.5rem;
}
.person-link {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	font-size: 0.88rem;
	font-weight: 400;
	color: var(--sci-blue);
	text-decoration: none;
}
.person-link:hover {
	color: var(--sci-royal);
	text-decoration: underline;
}

.person-tile {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.7rem;
	height: 100%;
	padding: 1.3rem 1rem 1.1rem;
	text-align: center;
	transition: box-shadow 0.2s, transform 0.2s;
}
.person-tile:hover {
	box-shadow: var(--shadow-lift);
	transform: translateY(-2px);
}
.person-tile .person-name {
	font-size: 0.95rem;
	line-height: 1.45;
}
.person-btn {
	margin-top: auto;
	padding: 0.2rem 0.95rem;
	border: 1px solid var(--sci-line);
	border-radius: 999px;
	font-size: 0.8rem;
	font-weight: 400;
	color: var(--sci-royal);
	text-decoration: none;
	transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.person-btn:hover,
.person-btn:focus-visible {
	background: var(--sci-royal);
	border-color: var(--sci-royal);
	color: #fff;
}

@media (max-width: 575.98px) {
	.person-chair {
		flex-direction: column;
		text-align: center;
		gap: 0.9rem;
		padding: 1.4rem 1.2rem;
	}
	.person-chair::before {
		inset: 0 0 auto 0;
		width: auto;
		height: 5px;
	}
	.person-chair .person-avatar {
		--avatar-size: 96px;
	}
	.person-tile {
		padding: 1.1rem 0.6rem 1rem;
	}
	.person-tile .person-avatar {
		--avatar-size: 76px;
	}
	.person-tile .person-name {
		font-size: 0.88rem;
	}
}

.side-apply {
	background: url("../img/doodles.svg") right -170px bottom -90px / 380px auto no-repeat, var(--sci-hero);
	color: #fff;
	border-radius: var(--radius-card);
	padding: 1.4rem;
	box-shadow: var(--shadow-lift);
	margin-bottom: 1rem;
}
.side-apply h2 {
	font-size: 1.25rem;
	font-weight: 700;
	margin-bottom: 0.35rem;
}
.side-apply p {
	color: rgb(255 255 255 / 88%);
	font-size: 0.92rem;
}
.side-card {
	padding: 1.25rem 1.4rem;
	margin-bottom: 1rem;
}
.people-list {
	list-style: none;
	padding: 0;
	margin: 0;
	font-size: 0.95rem;
}
.people-list li {
	padding: 0.4rem 0;
	border-bottom: 1px dashed var(--sci-line);
}
.people-list li:last-child {
	border-bottom: 0;
}
.people-list a {
	color: var(--sci-ink);
	text-decoration: none;
}
.people-list a:hover {
	color: var(--sci-blue);
}
.poster-list {
	display: grid;
	gap: 0.75rem;
}
.poster-list img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 14px;
	box-shadow: var(--shadow-card);
}

/* News and activities */

.news-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: #fff;
	border-radius: var(--radius-card);
	box-shadow: var(--shadow-card);
	overflow: hidden;
	color: var(--sci-ink);
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.news-card:hover,
.news-card:focus-visible {
	color: var(--sci-ink);
	transform: translateY(-4px);
	box-shadow: var(--shadow-lift);
}
.news-image {
	display: grid;
	place-items: center;
	aspect-ratio: 16 / 10;
	background: var(--sci-hero);
	color: rgb(255 255 255 / 70%);
	font-size: 2.5rem;
	overflow: hidden;
}
.news-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 20%;
	transition: transform 0.3s ease;
}
.news-card:hover .news-image img {
	transform: scale(1.04);
}
.news-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 1.1rem 1.3rem 1.2rem;
}
.news-meta {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.82rem;
	color: var(--sci-blue);
}
.news-title {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin-top: 0.35rem;
	font-size: 1.05rem;
	font-weight: 600;
	line-height: 1.5;
	color: var(--sci-royal);
}
.news-excerpt {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin-top: 0.4rem;
	font-size: 0.88rem;
	line-height: 1.6;
	color: var(--sci-muted);
}

.activity-title {
	font-size: clamp(1.4rem, 3.4vw, 2.2rem);
	max-width: 52rem;
	text-wrap: balance;
}
.activity-figure {
	display: block;
	width: 100%;
	padding: 0;
	margin-bottom: 1.25rem;
	border: 0;
	border-radius: var(--radius-card);
	overflow: hidden;
	background: #fff;
	box-shadow: var(--shadow-card);
	cursor: zoom-in;
}
.activity-figure img {
	display: block;
	width: 100%;
	max-height: 560px;
	object-fit: contain;
	background: var(--sci-bg);
}
.activity-text {
	padding: 1.5rem;
}
.activity-info {
	margin: 0;
	font-size: 0.95rem;
}
.activity-info dt {
	font-size: 0.8rem;
	font-weight: 400;
	color: var(--sci-muted);
}
.activity-info dd {
	margin-bottom: 0.6rem;
}
.activity-info dd:last-child {
	margin-bottom: 0;
}
.gallery-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0.5rem;
}
.gallery-thumb {
	padding: 0;
	border: 0;
	border-radius: 12px;
	overflow: hidden;
	aspect-ratio: 1;
	background: var(--sci-bg);
	cursor: zoom-in;
}
.gallery-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.gallery-thumb:hover img,
.gallery-thumb:focus-visible img {
	opacity: 0.85;
}
.gallery-modal .modal-content {
	background: transparent;
	border: 0;
}
.gallery-modal .btn-close {
	position: absolute;
	z-index: 2;
	top: -2.25rem;
	right: 0;
}
.gallery-modal .carousel-item img {
	display: block;
	width: 100%;
	max-height: 85vh;
	object-fit: contain;
	border-radius: 16px;
}

/* 404 and other message pages */

.message-page {
	padding: 4rem 0;
}
.message-card {
	max-width: 36rem;
	margin: 0 auto;
	text-align: center;
	background: #fff;
	border-radius: 28px;
	padding: 2.5rem 1.5rem;
	box-shadow: var(--shadow-card);
}
.message-code {
	display: inline-block;
	font-size: 3.5rem;
	font-weight: 700;
	line-height: 1.1;
	background: var(--sci-holo);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.message-card h1,
.message-card h2 {
	font-size: 1.6rem;
	color: var(--sci-royal);
	margin: 0.5rem 0;
}
.message-card p {
	color: var(--sci-muted);
	text-wrap: balance;
}
.message-contact {
	margin: 1.5rem 0 0;
	font-size: 0.85rem;
}

/* Backend login (backend/application/views/login.php) */

.login-page {
	flex: 1 0 auto;
	display: grid;
	place-items: center;
	padding: 2rem 1rem;
	background: url("../img/doodles.svg") right -120px top -40px / 640px auto no-repeat,
		url("../img/doodles.svg") left -200px bottom -120px / 560px auto no-repeat,
		var(--sci-hero);
}
.login-card {
	position: relative;
	width: 100%;
	max-width: 420px;
	background: #fff;
	border-radius: 28px;
	padding: 2rem 1.75rem 1.5rem;
	box-shadow: 0 24px 60px rgb(7 42 107 / 45%);
}
.login-card::before {
	content: "";
	position: absolute;
	inset: 0 2rem auto;
	height: 5px;
	border-radius: 0 0 6px 6px;
	background: var(--sci-holo);
}
.login-card h1 {
	font-size: 1.35rem;
	font-weight: 700;
	color: var(--sci-royal);
	margin: 1.5rem 0 0.35rem;
	text-wrap: balance;
}
.login-lead {
	color: var(--sci-muted);
	font-size: 0.92rem;
	margin-bottom: 1.5rem;
}
.login-form {
	display: grid;
	gap: 0.85rem;
}
.login-form .form-control {
	border-radius: 14px;
	border-color: var(--sci-line);
	background: var(--sci-bg);
}
.login-form .form-control:focus {
	border-color: var(--sci-sky);
	background: #fff;
	box-shadow: 0 0 0 3px rgb(30 155 255 / 25%);
}
.login-form label .bi {
	color: var(--sci-blue);
	margin-right: 0.25rem;
}
.login-form .btn {
	margin-top: 0.4rem;
}
.login-back {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	margin-top: 1.25rem;
	font-size: 0.92rem;
	text-decoration: none;
}
.login-contact {
	margin: 1rem 0 0;
	padding-top: 1rem;
	border-top: 1px solid var(--sci-line);
	font-size: 0.8rem;
	color: var(--sci-muted);
}

@media (prefers-reduced-motion: reduce) {
	.course-card,
	.course-card .bi,
	.news-card,
	.news-image img {
		transition: none;
	}
}
