:root {
	--bg: #f6f9fb;
	--card: #ffffff;
	--muted: #6b7280;
	--accent: #0456a6;
	--accent-2: #ffd166;
	--accent-3: #0ea5a4;
	--text: #0b1220;
	--max-width: 1200px;
	--radius: 12px;
	--glass: rgba(255, 255, 255, 0.6);
	/* --topbar-height:50px;    */
	--header-height: 72px;
	/* height of the main navbar */
}

* {
	box-sizing: border-box
}

html,
body {
	height: 100%
}

body {
	font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
	margin: 0;
	background: var(--bg);
	color: var(--text);
	line-height: 1.45;
	padding: 12px;
	/* add top padding equal to both bars + a small gap */
	padding-top: calc(var(--topbar-height) + var(--header-height) + 12px);
}

/* container */
.container {
	max-width: var(--max-width);
	margin: 0 auto;
	/* padding: 1rem */
}


/* Base styles, variables, and resets */

/* ...existing CSS code... */

/* Floating announcement panel (small card on left) */
#announcement-area {
	position: fixed;
	left: 18px;
	/* place below the fixed header bars if present */
	top: calc(var(--topbar-height, 44px) + var(--header-height, 72px) + 8px);
	z-index: 1400;
	width: 260px;
	max-width: 80vw;
	pointer-events: auto;
}

#announcement-area .announcement-banner,
#site-announcement {
	display: block;
	background: linear-gradient(180deg, #fffbe6, #fff7db);
	color: #0b1220;
	border-radius: 10px;
	box-shadow: 0 10px 30px rgba(12, 20, 30, 0.08);
	overflow: hidden;
	padding: 10px;
	font-size: 0.95rem;
}

/* inner layout inside the floating card */
#announcement-area .announcement-banner .small.muted,
#announcement-area #site-announcement .small.muted {
	color: var(--muted);
	font-size: .88rem;
	/* margin-top: 6px; */
}

/* compact dismiss button */
#announcement-area .announcement-banner .btn.small.outline,
#announcement-area #site-announcement .btn.small.outline {
	padding: 6px 8px;
	font-size: .85rem;
	border-radius: 8px;
}

/* make the floating card slightly transparent on hover for subtle effect */
#announcement-area .announcement-banner:hover {
	transform: translateY(-2px);
	transition: transform .12s ease;
}

/* Hide on very small screens to avoid covering content */
@media (max-width: 720px) {
	#announcement-area {
		display: none;
	}
}

/* ...existing CSS code... */
/* header */
.site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1300;
	background: #fff;
	border-bottom: 1px solid rgba(12, 20, 30, 0.04);
	backdrop-filter: saturate(120%) blur(4px);
	/* preserve visual elevation */
	box-shadow: 0 6px 18px rgba(12, 20, 30, 0.03);
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: .75rem 1rem;
	min-height: var(--header-height);
	align-items: center
}

.brand {
	display: flex;
	align-items: center;
	gap: .85rem
}

.logo {
	width: 72px;
	height: 72px;
	border-radius: 10px;
	object-fit: cover
}

.school-title {
	font-size: 1.05rem;
	margin: 0;
	font-weight: 700
}

.tagline {
	font-size: .88rem;
	color: var(--muted);
	margin: 0
}

/* navigation */
.main-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 1rem;
	align-items: center
}

.main-nav a {
	color: var(--text);
	text-decoration: none;
	padding: .55rem .8rem;
	border-radius: 8px;
	font-weight: 600
}

.main-nav a:hover {
	background: rgba(4, 86, 166, 0.06)
}

.menu-btn {
	display: none;
	background: transparent;
	border: 0;
	font-size: 1.3rem
}

/* auth actions */
.auth-actions {
	display: flex;
	gap: .5rem;
	align-items: center
}

.btn {
	display: inline-block;
	background: var(--accent-2);
	color: #000;
	padding: .6rem 1rem;
	border-radius: 10px;
	text-decoration: none;
	border: 0;
	cursor: pointer;
	font-weight: 700
}

.btn.outline {
	/* background: transparent; */
	border: 3px solid rgba(0, 115, 255, 0.06)
}

.btn.small {
	padding: .4rem .7rem;
	font-size: .95rem
}

/* hero */
.hero {
	position: relative;
	height: 550px;
	display: grid;
	align-items: center;
	margin-bottom: 1.2rem;
	overflow: hidden
}

.hero-media {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	filter: brightness(.48);
	transform: scale(1.03)
}

.hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(4, 86, 166, 0.12), rgba(0, 0, 0, 0.04))
}

.hero-content {
	position: relative;
	z-index: 2;
	color: #fff;
	display: grid;
	grid-template-columns: 1fr 320px;
	gap: 1rem;
	align-items: center;
	padding-top: 2rem;
	padding-bottom: 2rem
}

.hero-title {
	font-size: 2rem;
	margin: 0 0 .6rem;
	max-width: 760px
}

.hero-sub {
	margin: 0 0 1rem;
	color: rgba(255, 255, 255, 0.95);
	max-width: 680px
}

.quick-stats {
	padding: .8rem;
	border-radius: 12px;
	background: linear-gradient(180deg, #ffffff, #fbfdff);
	color: var(--text);
	box-shadow: 0 10px 30px rgba(12, 20, 30, 0.06)
}

.quick-stats .stat {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: .4rem 0;
	border-bottom: 1px solid #f1f5f9
}

.quick-stats .stat:last-child {
	border-bottom: 0
}

.quick-stats .stat strong {
	font-size: 1.2rem
}

/* sections */
.section {
	padding: 2rem 0
}

h3 {
	margin: 0 0 .6rem;
	font-size: 1.15rem
}

.lead {
	font-size: 1.02rem;
	color: var(--muted);
	margin-top: .4rem
}

/* replace or augment the h3 rule so section headings are centered */
.section h3 {
	/* center headings horizontally */
	text-align: center;
	margin: 0 0 0.9rem;
	font-size: 1.5rem;
	/* keep headings from stretching too wide on large screens */
	max-width: 880px;
	margin-left: auto;
	margin-right: auto;
}

/* ensure the muted subtext under headings is centered */
.section .muted,
.section .lead {
	text-align: center;
	margin-left: auto;
	margin-right: auto;
	max-width: 880px;
}

/* small responsive tweak: maintain comfortable spacing on narrow screens */
@media (max-width:600px) {
	.section h3 {
		font-size: 1.05rem;
		padding: 0 0.6rem
	}

	.section .muted,
	.section .lead {
		padding: 0 0.6rem
	}
}

/* gallery */
.gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 12px;
	margin-top: 12px
}

.gallery-card {
	overflow: hidden;
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 10px 30px rgba(12, 20, 30, 0.06);
	position: relative
}

.gallery-card img {
	width: 100%;
	height: 200px;
	object-fit: cover;
	display: block;
	transition: transform .25s ease
}

.gallery-card:hover img {
	transform: scale(1.03)
}

/* Compact horizontal thumbnail gallery */
.gallery-scroll {
	height: 40vh;
	display: flex;
	gap: 10px;
	overflow-x: auto;
	padding: 8px 6px;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	scroll-behavior: smooth;
	align-items: center;
}
.gallery-thumb {
	flex: 0 0 auto;
	scroll-snap-align: center;
	border-radius: 10px;
	overflow: hidden;
	width: 380px;
	height: 220px;
	background: var(--card);
	box-shadow: 0 8px 22px rgba(12, 20, 30, 0.06);
	display: flex;
	align-items: center;
	justify-content: center;
}
.thumb-btn {
	border: 0;
	background: transparent;
	padding: 0;
	margin: 0;
	display: block;
	width: 100%;
	height: 100%;
	cursor: pointer;
}
.gallery-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .18s ease, filter .18s ease;
	filter: contrast(.98) saturate(0.98);
}
.thumb-btn:focus .gallery-thumb img,
.gallery-thumb:focus-within img,
.gallery-thumb:hover img {
	transform: scale(1.05);
	filter: contrast(1.02) saturate(1.03);
}

/* subtle focus ring for keyboard users */
.gallery-scroll:focus {
	outline: 2px solid rgba(4, 86, 166, 0.12);
	outline-offset: 6px;
}

/* scrollbar styling */
.gallery-scroll::-webkit-scrollbar {
	height: 8px;
}

.gallery-scroll::-webkit-scrollbar-thumb {
	background: rgba(12, 20, 30, 0.08);
	border-radius: 8px;
}

/* Responsive: smaller thumbs on very small screens */
@media (max-width: 520px) {
	.gallery-thumb {
		width: 350px;
		height: 245px;
	}
}

@media (max-width: 380px) {
	.gallery-thumb {
		width: 300px;
		height: 180px;
	}
}

/* team */
.team-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 1rem;
	margin-top: 1rem
}

.team-card {
	background: var(--card);
	padding: 1rem;
	border-radius: 12px;
	box-shadow: 0 10px 30px rgba(12, 20, 30, 0.06);
	text-align: center
}

.team-card img {
	width: 160px;
	height: 160px;
	border-radius: 10px;
	object-fit: cover;
	margin: 0 auto .6rem;
	display: block
}

/* cards + grids */
.cards-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 1rem;
	margin-top: 1rem
}

.card {
	background: var(--card);
	padding: 1rem;
	border-radius: 12px;
	box-shadow: 0 10px 30px rgba(12, 20, 30, 0.06)
}

/* forms */
.forms-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 1rem;
	margin-top: 1rem
}

.form-card {
	background: var(--card);
	padding: 1rem;
	border-radius: 12px;
	box-shadow: 0 10px 30px rgba(12, 20, 30, 0.06)
}

.form-actions {
	display: flex;
	gap: .6rem;
	margin-top: .6rem
}

.contact-grid {
	display: grid;
	grid-template-columns: 1fr 320px;
	gap: 1rem
}

.contact-form {
	background: var(--card);
	padding: 0.8rem;
	border-radius: 10px;
	box-shadow: 0 10px 30px rgba(12, 20, 30, 0.06)
}

.contact-form .row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: .6rem
}

label {
	display: block;
	font-size: .95rem;
	margin-bottom: .6rem;
	color: var(--muted)
}

input[type="text"],
input[type="email"],
textarea {
	width: 100%;
	padding: .6rem;
	border: 1px solid #e6eef7;
	border-radius: 8px;
	background: #fff
}

.map-wrap iframe {
	width: 100%;
	height: 160px;
	border-radius: 8px;
	border: 0;
	margin-top: .6rem
}

/* lightbox & modal */
.lightbox {
	position: fixed;
	inset: 0;
	display: none;
	align-items: center;
	justify-content: center;
	background: rgba(2, 6, 23, 0.75);
	z-index: 1200
}

.lightbox[aria-hidden="false"] {
	display: flex
}

.lightbox img {
	max-width: 92%;
	max-height: 86%;
	border-radius: 8px;
	box-shadow: 0 18px 60px rgba(2, 6, 23, 0.6)
}

.lightbox-close {
	position: absolute;
	top: 18px;
	right: 20px;
	background: transparent;
	border: 0;
	color: #fff;
	font-size: 2rem;
	cursor: pointer
}

.modal {
	margin-top: 90px;
	;
	position: fixed;
	inset: 0;
	display: none;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.35);
	z-index: 1100
}

.modal[aria-hidden="false"] {
	display: flex
}

.modal-panel {
	background: #fff;
	border-radius: 12px;
	padding: 1rem 1.2rem;
	max-width: 520px;
	width: 96%;
	position: relative
}

.modal-close {
	position: absolute;
	right: 8px;
	top: 8px;
	border: 0;
	background: transparent;
	font-size: 1.4rem;
	cursor: pointer
}

/* footer */
.site-footer {
	padding: 1.2rem 0;
	background: transparent;
	border-top: 1px solid rgba(12, 20, 30, 0.04);
	margin-top: 1.2rem
}

.footer-inner {
	display: flex;
	gap: 1rem;
	align-items: flex-start;
	justify-content: space-between;
	flex-wrap: wrap
}

.socials {
	display: flex;
	gap: .5rem;
	margin-top: .35rem
}

.social-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 8px 24px rgba(12, 20, 30, 0.06);
	text-decoration: none;
	color: var(--text);
	font-weight: 700
}

/* utilities */
.muted {
	color: var(--muted)
}

.small {
	font-size: .9rem;
	/* color: var(--muted) */
	color: white;
}

.status {
	margin-top: .5rem;
	font-size: .95rem
}

/* Compact contact / visit adjustments */
.contact-grid {
	/* narrower right column to make the visit card visually smaller */
	grid-template-columns: 1fr 280px;
	gap: 0.75rem;
}

.contact-form {
	/* reduce padding and width to appear smaller */
	padding: 0.6rem;
	border-radius: 10px;
	max-width: 640px;
	font-size: 0.95rem;
}

.contact-form .row {
	gap: 0.5rem;
}

.contact-form label {
	font-size: 0.92rem;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
	padding: 0.5rem;
	font-size: 0.94rem;
}

/* compact visit card */
.contact-card {
	padding: 0.7rem;
	border-radius: 10px;
	font-size: 0.95rem;
}

.map-wrap iframe {
	/* smaller embedded map for compact card */
	height: 140px;
	border-radius: 8px;
}

/* reduce size of social icons inside visit card */
.contact-card .social-row .social-icon {
	width: 34px;
	height: 34px;
	font-size: 0.85rem;
}

/* smaller form-actions spacing */
.contact-form .form-actions {
	gap: 0.5rem;
	margin-top: 0.45rem;
}

/* Student reviews section */
.reviews-section {
	padding-top: 1.25rem;
	padding-bottom: 1.25rem;
}

.reviews-section h3 {
	/* headings are already centered by .section h3; keep width */
	margin-bottom: 0.25rem;
}

.reviews-carousel {
	display: flex;
	gap: 12px;
	overflow-x: auto;
	padding: 12px 4px;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
}

/* Fade the horizontal scrollbar for the reviews carousel (very faint by default, clearer on hover/focus) */
.reviews-carousel {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	-ms-overflow-style: -ms-autohiding-scrollbar;
	/* Edge/IE */
	/* Firefox: thin + faint */
	scrollbar-width: thin;
	scrollbar-color: rgba(12, 20, 30, 0.06) transparent;
}

/* WebKit (Chrome, Safari) */
.reviews-carousel::-webkit-scrollbar {
	height: 8px;
}
.reviews-carousel::-webkit-scrollbar-track {
	background: transparent;
}
.reviews-carousel::-webkit-scrollbar-thumb {
	background: rgba(12, 20, 30, 0.06);
	/* very faint */
	border-radius: 8px;
	transition: background .18s ease, opacity .18s ease;
	opacity: 0.9;
}
/* Make thumb slightly more visible when interacting */
.reviews-carousel:hover::-webkit-scrollbar-thumb,
.reviews-carousel:focus-within::-webkit-scrollbar-thumb {
	background: rgba(12, 20, 30, 0.14);
}

/* Small screens: even subtler */
@media (max-width: 420px) {
	.reviews-carousel::-webkit-scrollbar {
		height: 6px;
	}

	.reviews-carousel::-webkit-scrollbar-thumb {
		background: rgba(12, 20, 30, 0.05);
	}
}

/* Accessibility: show clearer thumb when keyboard focused */
.reviews-carousel:focus {
	outline: none;
}
.reviews-carousel:focus::-webkit-scrollbar-thumb,
.reviews-carousel:focus-within::-webkit-scrollbar-thumb {
	background: rgba(12, 20, 30, 0.18);
}

.review-card {
	flex: 0 0 320px;
	/* card width */
	background: var(--card);
	padding: 14px;
	border-radius: 12px;
	box-shadow: 0 10px 30px rgba(12, 20, 30, 0.06);
	scroll-snap-align: center;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.review-top {
	display: flex;
	align-items: center;
	gap: 10px;
}

.review-top img {
	width: 70px;
	height: 85px;
	border-radius: 10px;
	object-fit: cover;
	flex-shrink: 0;
}

.review-meta strong {
	display: block;
	font-size: 0.98rem;
}

.review-meta .muted {
	font-size: 0.88rem;
	color: var(--muted);
}

.stars {
	color: #f5b301;
	/* warm gold */
	font-size: 1.05rem;
	letter-spacing: 0.04em;
}

/* review text */
.review-text {
	font-size: 0.95rem;
	color: var(--text);
	margin: 0;
	line-height: 1.35;
}

/* make carousel look tidy on small screens */
@media (max-width: 700px) {
	.review-card {
		flex: 0 0 86%;
		padding: 12px;
	}

	.reviews-carousel {
		gap: 10px;
		padding-left: 8px;
		padding-right: 8px;
	}
}

/* ensure keyboard focus is visible */
.reviews-carousel:focus {
	outline: 2px solid rgba(4, 86, 166, 0.12);
	outline-offset: 4px;
}

/* admin styles */
/* Admin header small tweak */
.admin-header .header-inner {
	min-height: 64px;
}

/* Admin dashboard cards (reused card class already exists) */
.admin-controls {
	display: flex;
	gap: 1rem;
}

/* Announcement banner */
.announcement-banner {
	background: linear-gradient(90deg, #fff7db, #fff);
	border-bottom: 1px solid rgba(12, 20, 30, 0.04);
	z-index: 1250;
	box-shadow: 0 6px 18px rgba(12, 20, 30, 0.04);
}

.announcement-banner .muted {
	color: rgba(12, 20, 30, 0.6);
}

/* small utility for admin lists */
.card .small {
	font-size: .9rem;
	color: var(--muted);
}

/* responsive */
@media (max-width:980px) {
	.menu-btn {
		display: inline-block
	}

	.main-nav {
		position: absolute;
		right: 1rem;
		top: 84px;
		background: #fff;
		border-radius: 8px;
		box-shadow: 0 8px 30px rgba(12, 20, 30, 0.08);
		display: none;
		width: 260px
	}

	.main-nav[aria-hidden="false"] {
		display: block
	}

	.main-nav ul {
		flex-direction: column;
		padding: .6rem
	}

	.hero-content {
		grid-template-columns: 1fr
	}

	.contact-grid {
		grid-template-columns: 1fr;
	}

	.contact-form {
		max-width: 100%;
		padding: 0.6rem;
	}

	.map-wrap iframe {
		height: 160px;
	}

	body {
		padding: 10px;
	}
}

@media (max-width:600px) {
	.hero {
		margin-top: 108px;
		height: 420px
	}

	#responsiveAdminButton {
		display: none;
	}

	.resloginbtn {
		display: none;
	}

	.hero-title {
		font-size: 1.4rem
	}

	.container {
		padding: .8rem
	}

	.contact-section {
		display: grid;
	}

	.gallery-card img {
		height: 160px
	}

	.team-card img {
		width: 120px;
		height: 120px
	}

	:root {
		--header-height: 64px;
	}

	body {
		padding-top: calc(var(--topbar-height) + var(--header-height) + 10px);
	}

	.topbar {
		min-height: var(--topbar-height)
	}

	.topbar-inner {
		min-height: var(--topbar-height)
	}

	.header-inner {
		min-height: var(--header-height)
	}
}

/* Nav auth duplicate - hidden on desktop, visible in mobile menu */
.nav-auth {
	display: none;
}

/* When nav collapses (mobile), hide header auth-actions and show nav-auth items */
@media (max-width: 980px) {
	.auth-actions {
		display: none !important;
	}

	/* hide header buttons on small screens */
	.nav-auth {
		display: block;
		padding: .6rem 0;
	}

	.nav-auth .btn {
		display: block;
		width: 100%;
		box-sizing: border-box;
		margin: .35rem 0;
		text-align: left;
	}

	/* ensure links inside nav look like nav items */
	.nav-auth a.btn {
		text-decoration: none;
	}
}

/* Contact section responsive rules */
#contact .contact-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
	align-items: stretch;
}

/* Ensure form controls fill their column */
#contact .contact-form label {
	display: block;
	width: 100%;
}

#contact .contact-form input[type="text"],
#contact .contact-form input[type="email"],
#contact .contact-form textarea,
#contact .contact-form select {
	width: 100%;
	box-sizing: border-box;
	padding: .6rem;
	border-radius: 8px;
	border: 1px solid rgba(12, 20, 30, 0.08);
	background: var(--input-bg, #fff);
	font-size: .96rem;
}

/* Make textarea expand vertically inside flex layout */
#contact .contact-form textarea {
	min-height: 120px;
	resize: vertical;
}

/* Form actions: align on one row on desktop, stack on mobile */
#contact .contact-form .form-actions {
	display: flex;
	gap: .6rem;
	align-items: center;
}

#contact .contact-form .form-actions .btn {
	white-space: nowrap;
}

/* Map responsiveness */
#contact .map-wrap {
	width: 100%;
	height: auto;
	border-radius: 8px;
	overflow: hidden;
}

#contact .map-wrap iframe {
	width: 100%;
	height: 220px;
	border: 0;
	display: block;
}

/* Visit card interior spacing */
#contact .contact-card {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

/* Small screens: stack columns and make controls full-width */
@media (max-width: 980px) {
	#contact .contact-grid {
		grid-template-columns: 1fr;
	}

	#contact .contact-form .form-actions {
		flex-direction: column;
		align-items: stretch;
	}

	#contact .contact-form .form-actions .btn {
		width: 100%;
	}

	#contact .map-wrap iframe {
		height: 200px;
	}
}

/* Very small screens: more compact */
@media (max-width: 420px) {
	#contact .contact-form textarea {
		min-height: 100px;
	}

	#contact .map-wrap iframe {
		height: 160px;
	}
}

/* Contact section layout & responsive improvements */
#contact .contact-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
	align-items: stretch;
}

/* Make labels block-level so inputs take full width */
#contact .contact-form label {
	display: block;
	width: 100%;
}

/* Inputs / textarea styling for better mobile UX */
#contact .contact-form input[type="text"],
#contact .contact-form input[type="email"],
#contact .contact-form textarea {
	width: 100%;
	box-sizing: border-box;
	padding: .6rem;
	border-radius: 8px;
	border: 1px solid rgba(12, 20, 30, 0.08);
	font-size: .95rem;
	background: var(--input-bg, #fff);
}

/* Let textarea grow inside flex/form column */
#contact .contact-form textarea {
	min-height: 140px;
	resize: vertical;
}

/* Actions wrap on small screens */
#contact .contact-form .form-actions {
	display: flex;
	gap: .6rem;
	align-items: center;
	flex-wrap: wrap;
}
#contact .contact-form .form-actions .btn {
	white-space: nowrap;
}

/* map responsiveness */
#contact .map-wrap {
	width: 100%;
	border-radius: 8px;
	overflow: hidden;
}
#contact .map-wrap iframe {
	width: 100%;
	height: 220px;
	border: 0;
	display: block;
}

/* Visit card spacing */
#contact .contact-card {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

/* Contact section: desktop two-column, mobile stacked (form above visit card) */
.contact-section .contact-grid {
	display: grid;
	grid-template-columns: 1fr 420px;
	/* form + sidebar */
	gap: 1rem;
	align-items: start;
}

/* Reuse .card styles if present; ensure consistent padding */
.contact-section .card {
	padding: 1rem;
	border-radius: 12px;
	box-shadow: 0 10px 30px rgba(12, 20, 30, 0.06);
	background: var(--card, #fff);
	box-sizing: border-box;
}

/* Name / email row: two columns desktop -> one column mobile */
.contact-section .name-email-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: .6rem;
}

/* Inputs & textarea */
.contact-section input[type="text"],
.contact-section input[type="email"],
.contact-section textarea {
	width: 100%;
	padding: .6rem;
	border-radius: 8px;
	border: 1px solid rgba(12, 20, 30, 0.08);
	background: var(--input-bg, #fff);
	box-sizing: border-box;
	font-size: .95rem;
}

/* Make textarea comfortable */
.contact-section textarea {
	min-height: 140px;
	resize: vertical;
}

/* Form actions */
.contact-section .form-actions {
	display: flex;
	gap: .6rem;
	align-items: center;
	margin-top: .5rem;
	flex-wrap: wrap;
}

/* Map responsiveness */
.contact-section .map-wrap {
	border-radius: 8px;
	overflow: hidden;
	margin-top: .6rem;
}
.contact-section .map-wrap iframe {
	width: 100%;
	height: 240px;
	border: 0;
	display: block;
}

/* Visit bottom spacing */
.contact-section .visit-bottom {
	margin-top: 0.6rem;
}

/* Ensure form is above visit card on mobile by ordering and stacking */
@media (max-width: 900px) {
	.contact-section .contact-grid {
		grid-template-columns: 1fr;
	}

	.contact-section .name-email-row {
		grid-template-columns: 1fr;
	}

	.contact-section .form-actions {
		flex-direction: column;
		align-items: stretch;
	}

	.contact-section .form-actions .btn {
		width: 100%;
	}

	.contact-section .map-wrap iframe {
		height: 200px;
	}

	/* reduce padding slightly for small viewports */
	.contact-section .card {
		padding: .85rem;
	}
}

/* very small screens */
@media (max-width: 420px) {
	.contact-section .map-wrap iframe {
		height: 160px;
	}

	.contact-section textarea {
		min-height: 110px;
	}
}

/* make sure links/buttons in .social-row are spaced */
.contact-section .social-row {
	display: flex;
	gap: .5rem;
	margin-top: .6rem;
}

/* accessibility: focus outlines */
.contact-section input:focus,
.contact-section textarea:focus,
.contact-section .btn:focus {
	outline: 2px solid rgba(4, 86, 166, 0.12);
	outline-offset: 3px;
}

/* Floating social icons: right-side vertical on desktop, compact row bottom-right on mobile */
.social-floating {
	position: fixed;
	right: 18px;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	flex-direction: column;
	gap: 12px;
	z-index: 2200;
	pointer-events: auto;
}

.social-floating a {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 10px 30px rgba(2, 6, 23, 0.12);
	transition: transform .12s ease, box-shadow .12s ease;
	text-decoration: none;
}

.social-floating a img {
	width: 22px;
	height: 22px;
	display: block;
}

.social-floating a:hover,
.social-floating a:focus {
	transform: translateY(-3px);
	box-shadow: 0 14px 36px rgba(2, 6, 23, 0.18);
	outline: none;
}

/* mobile: move to bottom-right and show horizontally so it doesn't block content */
@media (max-width: 720px) {
	.social-floating {
		top: auto;
		bottom: 18px;
		right: 12px;
		transform: none;
		flex-direction: row;
		gap: 10px;
	}

	.social-floating a {
		width: 44px;
		height: 44px;
	}

	.social-floating a img {
		width: 20px;
		height: 20px;
	}
}

/* very small screens: slightly smaller */
@media (max-width:420px) {
	.social-floating {
		right: 10px;
		bottom: 12px;
		gap: 8px;
	}

	.social-floating a {
		width: 40px;
		height: 40px;
	}

	.social-floating a img {
		width: 18px;
		height: 18px;
	}
}

/* optional: hide on print */
@media print {
	.social-floating {
		display: none !important;
	}
}

/* loader overlay - visible on all devices */
#loader-overlay {
	position: fixed;
	inset: 0;
	display: none;
	/* controlled by JS */
	align-items: center;
	justify-content: center;
	background: rgba(4, 6, 12, 0.85);
	backdrop-filter: blur(4px);
	z-index: 2500;
}

#loader-overlay.visible {
	display: flex !important;
	/* ensure visibility when class added */
}

.loader-card {
	width: 220px;
	height: 220px;
	border-radius: 50%;
	overflow: hidden;
	box-shadow: 0 14px 40px rgba(2, 6, 23, 0.45);
	display: grid;
	place-items: center;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.03));
	transform: scale(1);
	animation: loader-appear .28s ease;
	position: relative;
}

.loader-card video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Remove skip button styles - button hidden via inline style in HTML */
.loader-skip {
	display: none !important;
	/* force hide skip button */
}

@keyframes loader-appear {
	from {
		transform: scale(.96);
		opacity: 0
	}
	to {
		transform: scale(1);
		opacity: 1
	}
}

/* Mobile responsive loader */
@media (max-width: 600px) {
	.loader-card {
		width: 180px;
		height: 180px;
	}
}

@media (max-width: 400px) {
	.loader-card {
		width: 160px;
		height: 160px;
	}
}
/* new code for forms  */

/* Modal: make panel scrollable within viewport */
#form-modal[aria-hidden="false"] {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

#form-modal .modal-panel {
	max-height: calc(100vh - 64px);
	overflow: auto;
}

/* Form inner layout: comfortable spacing + mobile responsive */
#form-modal form label {
	display: block;
	margin-bottom: .75rem;
}

#form-modal input[type="text"],
#form-modal input[type="email"],
#form-modal input[type="date"],
#form-modal select,
#form-modal textarea {
	width: 100%;
	box-sizing: border-box;
	padding: .6rem .7rem;
	border: 1px solid #e6eef7;
	border-radius: 8px;
	font-size: .95rem;
	background: #fff;
}

#form-modal .modal-actions {
	position: sticky;
	bottom: 0;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.85), #fff);
	padding-top: .6rem;
	margin-top: .6rem;
}

/* Mobile: tighter paddings and font sizes */
@media (max-width: 600px) {
	#form-modal .modal-panel {
		width: 96%;
		max-width: 520px;
		padding: .85rem 1rem;
		border-radius: 10px;
	}

	#form-modal input,
	#form-modal select,
	#form-modal textarea {
		font-size: .92rem;
		padding: .55rem .65rem;
	}

	#form-modal h4 {
		font-size: 1rem;
		margin: .25rem 0 .5rem;
	}

	#form-modal .modal-actions .btn {
		width: 100%;
		margin-bottom: .4rem;
	}
}

/* Very small devices */
@media (max-width: 380px) {
	#form-modal .modal-panel {
		max-height: calc(100vh - 48px);
	}

	#form-modal textarea {
		min-height: 90px;
	}
}

@media (max-width: 768px) {
	#contact-visit h3 {
		font-size: 24px !important;
	}

	#contact-visit h4 {
		font-size: 20px !important;
	}

	#contact-visit p {
		font-size: 15px !important;
	}

	#contact-visit div[style*="display: flex"] {
		flex-direction: column !important;
		align-items: center !important;
	}

	#contact-visit div[style*="max-width: 550px"] {
		width: 90% !important;
	}
}