/**
 * Security & Safety — welcoming campus safety visual language.
 */

.sec {
	--sec-red: var(--mara-primary, #c62828);
	--sec-gold: #b08d46;
	--sec-navy: #132033;
	--sec-teal: #1f6f78;
	--sec-ink: #1a1a1a;
	--sec-muted: #5c5c66;
	--sec-surface: #f4f6f7;
	--sec-line: #e4e4e7;
	--sec-radius: 0.75rem;
	color: var(--mara-text, #333);
	background: #fff;
	overflow-x: clip;
}

.sec a:focus-visible,
.sec button:focus-visible,
.sec input:focus-visible {
	outline: 2px solid var(--sec-gold);
	outline-offset: 3px;
}

.sec__icon {
	display: block;
	flex-shrink: 0;
}

.sec__badge {
	display: inline-flex;
	margin: 0 0 0.55rem;
	padding: 0.3rem 0.65rem;
	border-radius: 0.25rem;
	background: var(--sec-red);
	color: #fff;
	font-size: 0.66rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.sec__eyebrow {
	margin: 0 0 0.45rem;
	font-size: 0.68rem;
	font-weight: 800;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--sec-gold);
}

.sec__section-title {
	margin: 0;
	font-family: var(--mara-font-heading);
	font-size: clamp(1.35rem, 2.8vw, 1.95rem);
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.15;
	color: var(--sec-ink);
}

.sec__section-title--center {
	text-align: center;
}

.sec__section-intro {
	margin: 0.65rem 0 0;
	max-width: 42rem;
	line-height: 1.6;
	color: var(--sec-muted);
}

.sec__section-head {
	margin-bottom: 1.35rem;
}

.sec__section-head--center {
	text-align: center;
}

.sec__section-head--center .sec__section-intro {
	margin-left: auto;
	margin-right: auto;
}

.sec__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	min-height: 2.55rem;
	padding: 0.6rem 1.1rem;
	font-size: 0.74rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
	border-radius: 0.35rem;
}

.sec__btn--outline {
	border: 1px solid rgba(255, 255, 255, 0.35);
	background: transparent;
	color: #fff;
}

.sec__btn--outline:hover {
	border-color: #fff;
	background: rgba(255, 255, 255, 0.08);
}

.sec__btn--soft {
	border: 1px solid var(--sec-line);
	background: #fff;
	color: var(--sec-ink);
}

.sec__btn--soft:hover {
	border-color: var(--sec-teal);
	color: var(--sec-teal);
}

.sec__bullet-list {
	margin: 1rem 0 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 0.55rem;
	color: var(--sec-muted);
}

.sec__bullet-list > li {
	position: relative;
	padding: 0.65rem 0.85rem 0.65rem 2.15rem;
	border: 1px solid var(--sec-line, #e4e4e7);
	border-radius: 0.55rem;
	background: #fff;
	line-height: 1.55;
}

.sec__bullet-list > li::before {
	content: "";
	position: absolute;
	top: 0.85rem;
	left: 0.75rem;
	width: 0.7rem;
	height: 0.7rem;
	border-radius: 0.2rem;
	background-color: rgba(31, 111, 120, 0.16);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3.4 8.2 6.5 11.2 12.6 4.8' stroke='%231f6f78' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 0.55rem;
}

.sec__bullet-list--panel {
	max-width: 48rem;
}

.sec__bullet-list--panel > li {
	background: var(--sec-surface, #f5f6f8);
}

/* Hero */
.sec__hero {
	position: relative;
	isolation: isolate;
	padding: clamp(2.75rem, 6vw, 4.5rem) 0;
	background: var(--sec-navy);
	color: #e2e8f0;
	overflow: hidden;
}

.sec__hero-bg {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.sec__hero-glow {
	position: absolute;
	inset: -20% -10%;
	background:
		radial-gradient(ellipse 50% 45% at 18% 40%, rgba(31, 111, 120, 0.22) 0%, transparent 70%),
		radial-gradient(ellipse 45% 40% at 82% 28%, rgba(176, 141, 70, 0.12) 0%, transparent 65%);
}

.sec__hero-shield {
	position: absolute;
	top: 12%;
	right: 8%;
	width: min(28vw, 12rem);
	aspect-ratio: 4 / 5;
	border: 1px solid rgba(31, 111, 120, 0.35);
	border-radius: 50% 50% 45% 45%;
	opacity: 0.35;
	animation: sec-shield-pulse 7s ease-in-out infinite;
}

.sec__hero-node {
	position: absolute;
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 50%;
	background: #5ec8d0;
	box-shadow: 0 0 12px rgba(94, 200, 208, 0.45);
	animation: sec-node-pulse 4.5s ease-in-out infinite;
}

.sec__hero-node--a { top: 22%; left: 12%; }
.sec__hero-node--b { top: 30%; right: 22%; animation-delay: 1s; background: var(--sec-gold); }
.sec__hero-node--c { bottom: 24%; left: 32%; animation-delay: 2s; }

@keyframes sec-shield-pulse {
	0%, 100% { transform: scale(1); opacity: 0.28; }
	50% { transform: scale(1.06); opacity: 0.42; }
}

@keyframes sec-node-pulse {
	0%, 100% { transform: scale(1); opacity: 0.8; }
	50% { transform: scale(1.35); opacity: 1; }
}

.sec__hero-inner {
	position: relative;
	z-index: 1;
	display: grid;
	gap: 1.75rem;
	align-items: center;
}

@media (min-width: 900px) {
	.sec__hero-inner {
		grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	}
}

.sec__hero-title {
	margin: 0;
	font-family: var(--mara-font-heading);
	font-size: clamp(1.7rem, 4vw, 2.75rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.08;
	color: #fff;
	text-wrap: balance;
}

.sec__hero-intro {
	margin: 0.9rem 0 0;
	max-width: 34rem;
	line-height: 1.65;
	color: rgba(226, 232, 240, 0.88);
}

.sec__hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1.35rem;
}

.sec__hero-media {
	margin: 0;
	border-radius: var(--sec-radius);
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.12);
	box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

.sec__hero-media img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 11;
	object-fit: cover;
}

/* HOD */
.sec__hod {
	padding: clamp(2.25rem, 5vw, 3.25rem) 0;
	border-bottom: 1px solid var(--sec-line);
}

.sec__hod-inner {
	display: grid;
	gap: 1rem;
	align-items: start;
}

@media (min-width: 768px) {
	.sec__hod-inner {
		grid-template-columns: auto 1fr;
		gap: 1.25rem;
	}
}

.sec__hod-icon {
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 0.55rem;
	background: rgba(31, 111, 120, 0.1);
	color: var(--sec-teal);
}

.sec__hod-role {
	margin: 0;
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--sec-gold);
}

.sec__hod-message {
	margin: 0.65rem 0 0;
	padding: 0;
	border: 0;
}

.sec__hod-message p {
	margin: 0;
	font-family: var(--mara-font-heading);
	font-size: clamp(1.05rem, 2.4vw, 1.35rem);
	font-weight: 700;
	line-height: 1.5;
	color: var(--sec-ink);
}

/* Shared */
.sec__shared {
	padding: clamp(2.5rem, 5vw, 3.75rem) 0;
	background: var(--sec-surface);
}

.sec__shared-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 1rem;
}

@media (min-width: 800px) {
	.sec__shared-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.sec__shared-card {
	padding: 1.15rem;
	border: 1px solid var(--sec-line);
	border-radius: var(--sec-radius);
	background: #fff;
}

.sec__shared-icon {
	display: grid;
	place-items: center;
	width: 2.2rem;
	height: 2.2rem;
	margin-bottom: 0.75rem;
	border-radius: 0.45rem;
	background: rgba(31, 111, 120, 0.1);
	color: var(--sec-teal);
}

.sec__shared-name {
	margin: 0 0 0.4rem;
	font-size: 1rem;
	font-weight: 800;
}

.sec__shared-card p {
	margin: 0;
	line-height: 1.55;
	color: var(--sec-muted);
	font-size: 0.92rem;
}

/* ID */
.sec__id {
	padding: clamp(2.5rem, 5vw, 3.75rem) 0;
}

.sec__id-grid {
	display: grid;
	gap: 1.5rem;
	align-items: center;
}

@media (min-width: 900px) {
	.sec__id-grid {
		grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	}
}

.sec__id-media {
	margin: 0;
	border-radius: var(--sec-radius);
	overflow: hidden;
	border: 1px solid var(--sec-line);
	box-shadow: 0 16px 36px rgba(19, 32, 51, 0.08);
}

.sec__id-media img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 11;
	object-fit: cover;
}

/* Personal */
.sec__personal {
	padding: clamp(2.25rem, 5vw, 3.5rem) 0;
	background: var(--sec-surface);
}

.sec__card-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.85rem;
}

@media (min-width: 700px) {
	.sec__card-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.sec__mini-card {
	display: flex;
	gap: 0.75rem;
	padding: 1rem;
	border: 1px solid var(--sec-line);
	border-radius: var(--sec-radius);
	background: #fff;
}

.sec__mini-index {
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	color: var(--sec-gold);
}

.sec__mini-card p {
	margin: 0;
	line-height: 1.55;
	color: var(--sec-muted);
	font-size: 0.92rem;
}

/* Road */
.sec__road {
	position: relative;
	padding: clamp(2.5rem, 5vw, 3.75rem) 0;
	background: #fff8f4;
	overflow: hidden;
}

.sec__road-line {
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: 4px;
	background: repeating-linear-gradient(
		90deg,
		var(--sec-gold) 0 1.25rem,
		transparent 1.25rem 1.85rem
	);
	animation: sec-road-scroll 12s linear infinite;
}

@keyframes sec-road-scroll {
	from { background-position: 0 0; }
	to { background-position: 120px 0; }
}

.sec__road-warning {
	display: flex;
	align-items: flex-start;
	gap: 0.65rem;
	margin: 0 0 1.25rem;
	padding: 0.9rem 1rem;
	border-radius: 0.55rem;
	border: 1px solid rgba(198, 40, 40, 0.25);
	background: #fff;
	font-weight: 700;
	color: var(--sec-ink);
	line-height: 1.45;
}

.sec__road-warning .sec__icon {
	color: var(--sec-red);
	margin-top: 0.1rem;
}

.sec__road-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.75rem;
}

@media (min-width: 800px) {
	.sec__road-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.sec__road-grid li {
	display: flex;
	gap: 0.65rem;
	align-items: flex-start;
	padding: 0.85rem 1rem;
	border-radius: 0.55rem;
	background: #fff;
	border: 1px solid rgba(176, 141, 70, 0.25);
	color: var(--sec-muted);
	line-height: 1.5;
}

.sec__road-grid .sec__icon {
	color: var(--sec-gold);
	margin-top: 0.1rem;
}

/* Night */
.sec__night {
	padding: clamp(2.25rem, 5vw, 3.5rem) 0;
	background: var(--sec-navy);
	color: #e2e8f0;
}

.sec__night .sec__section-title {
	color: #fff;
}

.sec__night .sec__section-intro {
	color: rgba(226, 232, 240, 0.88);
}

.sec__night .sec__bullet-list {
	color: #eef2f7;
}

.sec__night .sec__bullet-list > li {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.16);
	color: #f1f5f9;
}

.sec__night .sec__bullet-list > li::before {
	background-color: rgba(45, 166, 178, 0.28);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3.4 8.2 6.5 11.2 12.6 4.8' stroke='%2394e2ea' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.sec__night-inner {
	display: grid;
	gap: 1rem;
	align-items: start;
}

@media (min-width: 768px) {
	.sec__night-inner {
		grid-template-columns: auto 1fr;
		gap: 1.25rem;
	}
}

.sec__night-icon {
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 0.55rem;
	background: rgba(255, 255, 255, 0.08);
	color: var(--sec-gold);
}

/* Suspicious flow */
.sec__suspicious {
	padding: clamp(2.5rem, 5vw, 3.75rem) 0;
	background: var(--sec-surface);
}

.sec__flow {
	list-style: none;
	margin: 0 auto;
	padding: 0;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0;
	max-width: 22rem;
}

@media (min-width: 900px) {
	.sec__flow {
		flex-direction: row;
		max-width: none;
		gap: 0;
		align-items: stretch;
	}
}

.sec__flow-step {
	position: relative;
	flex: 1;
	padding: 1.15rem;
	border: 1px solid var(--sec-line);
	border-radius: var(--sec-radius);
	background: #fff;
	text-align: center;
}

.sec__flow-step:not(:last-child)::after {
	content: "↓";
	display: block;
	margin: 0.55rem 0 -0.35rem;
	font-weight: 800;
	color: var(--sec-gold);
	text-align: center;
}

@media (min-width: 900px) {
	.sec__flow-step:not(:last-child) {
		margin-right: 1.5rem;
	}

	.sec__flow-step:not(:last-child)::after {
		content: "→";
		position: absolute;
		right: -1.15rem;
		top: 50%;
		margin: 0;
		transform: translateY(-50%);
	}
}

.sec__flow-label {
	display: block;
	margin-bottom: 0.45rem;
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--sec-teal);
}

.sec__flow-step p {
	margin: 0;
	line-height: 1.55;
	color: var(--sec-muted);
	font-size: 0.9rem;
}

/* Emergency */
.sec__emergency {
	padding: clamp(2.25rem, 5vw, 3.5rem) 0;
}

.sec__emergency-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 1rem;
}

@media (min-width: 700px) {
	.sec__emergency-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.sec__emergency-card {
	padding: 1.15rem;
	border: 1px solid var(--sec-line);
	border-radius: var(--sec-radius);
	background: #fff;
}

.sec__emergency-icon {
	display: grid;
	place-items: center;
	width: 2.2rem;
	height: 2.2rem;
	margin-bottom: 0.65rem;
	border-radius: 0.45rem;
	background: rgba(198, 40, 40, 0.08);
	color: var(--sec-red);
}

.sec__emergency-card h3 {
	margin: 0 0 0.65rem;
	font-family: var(--mara-font-heading);
	font-size: 1.05rem;
	font-weight: 800;
}

.sec__emergency-card p {
	margin: 0;
	line-height: 1.55;
	color: var(--sec-muted);
	font-size: 0.9rem;
}

.sec__step-list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 0.45rem;
	counter-reset: sec-step;
}

.sec__step-list > li {
	position: relative;
	padding-left: 1.85rem;
	line-height: 1.5;
	color: var(--sec-muted);
	font-size: 0.9rem;
	counter-increment: sec-step;
}

.sec__step-list > li::before {
	content: counter(sec-step);
	position: absolute;
	left: 0;
	top: 0.05rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.35rem;
	height: 1.35rem;
	border-radius: 999px;
	background: rgba(31, 111, 120, 0.12);
	color: var(--sec-teal);
	font-size: 0.68rem;
	font-weight: 800;
}

/* Property / personnel */
.sec__property,
.sec__personnel {
	padding: clamp(2.25rem, 5vw, 3.25rem) 0;
}

.sec__property {
	background: var(--sec-surface);
}

.sec__property-inner {
	display: grid;
	gap: 1rem;
	align-items: start;
}

@media (min-width: 768px) {
	.sec__property-inner {
		grid-template-columns: auto 1fr;
	}
}

.sec__property-icon {
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 0.55rem;
	background: rgba(31, 111, 120, 0.1);
	color: var(--sec-teal);
}

.sec__personnel-text {
	margin: 0;
	max-width: 48rem;
	line-height: 1.65;
	color: var(--sec-muted);
}

/* Student life / related */
.sec__student-life,
.sec__related {
	padding: clamp(2rem, 4vw, 3rem) 0;
}

.sec__student-life {
	background: var(--sec-surface);
}

.sec__related-grid {
	list-style: none;
	margin: 1.25rem 0 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.65rem;
}

.sec__related-link {
	display: inline-flex;
	padding: 0.55rem 0.95rem;
	border: 1px solid var(--sec-line);
	border-radius: 999px;
	font-size: 0.74rem;
	font-weight: 700;
	text-decoration: none;
	color: var(--sec-ink);
	background: #fff;
}

.sec__related-link:hover {
	border-color: var(--sec-teal);
	color: var(--sec-teal);
}

/* Checklist */
.sec__checklist {
	padding: clamp(2.5rem, 5vw, 3.75rem) 0;
}

.sec__checklist-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.55rem;
	max-width: 44rem;
}

.sec__check {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	padding: 0.85rem 1rem;
	border: 1px solid var(--sec-line);
	border-radius: 0.55rem;
	background: #fff;
	cursor: pointer;
	transition: border-color 0.2s ease, background 0.2s ease;
}

.sec__check:hover {
	border-color: rgba(31, 111, 120, 0.4);
}

.sec__check input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.sec__check-box {
	flex-shrink: 0;
	width: 1.15rem;
	height: 1.15rem;
	margin-top: 0.1rem;
	border: 2px solid var(--sec-teal);
	border-radius: 0.25rem;
	background: #fff;
}

.sec__check input:checked + .sec__check-box {
	background: var(--sec-teal);
	box-shadow: inset 0 0 0 2px #fff;
}

.sec__check input:checked ~ .sec__check-text {
	color: var(--sec-ink);
	text-decoration: line-through;
	opacity: 0.75;
}

.sec__check-text {
	line-height: 1.5;
	color: var(--sec-muted);
	font-size: 0.92rem;
}

/* Contacts */
.sec__contacts {
	padding: clamp(2.25rem, 5vw, 3.25rem) 0;
	background: var(--sec-surface);
}

.sec__contacts-inner {
	display: grid;
	gap: 1.25rem;
	align-items: center;
}

@media (min-width: 800px) {
	.sec__contacts-inner {
		grid-template-columns: 1fr auto;
	}
}

.sec__contacts-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

/* FAQ */
.sec__faq {
	padding: clamp(2.25rem, 5vw, 3.5rem) 0;
}

.sec__accordion {
	max-width: 44rem;
	margin: 0 auto;
	border: 1px solid var(--sec-line);
	border-radius: var(--sec-radius);
	overflow: hidden;
}

.sec__faq-item + .sec__faq-item {
	border-top: 1px solid var(--sec-line);
}

.sec__faq-heading {
	margin: 0;
}

.sec__faq-trigger {
	display: flex;
	width: 100%;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1rem 1.1rem;
	border: 0;
	background: #fff;
	text-align: left;
	font: inherit;
	font-weight: 700;
	color: var(--sec-ink);
	cursor: pointer;
}

.sec__faq-item.is-open .sec__faq-trigger {
	background: var(--sec-surface);
}

.sec__faq-chevron {
	transition: transform 0.2s ease;
}

.sec__faq-item.is-open .sec__faq-chevron {
	transform: rotate(180deg);
}

.sec__faq-panel {
	padding: 0 1.1rem 1rem;
}

.sec__faq-panel p {
	margin: 0;
	line-height: 1.6;
	color: var(--sec-muted);
}

/* CTA */
.sec__cta {
	padding: clamp(2.75rem, 5vw, 4rem) 0;
	background: linear-gradient(145deg, var(--sec-navy) 0%, #1c3148 100%);
	color: #fff;
	text-align: center;
}

.sec__cta-title {
	margin: 0;
	font-family: var(--mara-font-heading);
	font-size: clamp(1.65rem, 3.5vw, 2.35rem);
	font-weight: 800;
	color: #fff;
}

.sec__cta-intro {
	margin: 0.75rem auto 0;
	max-width: 32rem;
	line-height: 1.55;
	color: rgba(226, 232, 240, 0.88);
}

.sec__cta-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.75rem;
	margin-top: 1.35rem;
}

/* Reveal */
[data-sec-reveal] {
	opacity: 0;
	transform: translateY(10px);
	transition: opacity 0.45s ease, transform 0.45s ease;
}

[data-sec-reveal].is-visible {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	.sec__hero-shield,
	.sec__hero-node,
	.sec__road-line {
		animation: none;
	}

	[data-sec-reveal] {
		opacity: 1;
		transform: none;
		transition: none;
	}

	.sec__faq-chevron {
		transition: none;
	}
}

@media (max-width: 899px) {
	.sec__flow {
		max-width: 18rem;
		margin-inline: auto;
	}
}
