:root {
	color-scheme: light;
	--primary: #059669;
	--secondary: #10b981;
	--accent: #047857;
	--dark: #172033;
	--muted: #5f6b85;
	--surface: rgba(255, 255, 255, 0.8);
	--line: rgba(5, 150, 105, 0.12);
	--shadow: 0 20px 60px rgba(5, 150, 105, 0.16);
}

body,
html {
	margin: 0;
	padding: 0;
	width: 100%;
	height: 100%;
}

body {
	font-family: 'Inter', 'Source Sans Pro', sans-serif;
	background: linear-gradient(135deg, #f4fdf8 0%, #e7f9ef 45%, #f7fefb 100%);
	color: var(--dark);
}

* {
	box-sizing: border-box;
}

.portal-page {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 32px;
	position: relative;
	overflow: hidden;
}

.portal-background {
	position: absolute;
	inset: auto -8% -10% auto;
	width: 420px;
	height: 420px;
	background: radial-gradient(circle, rgba(5, 150, 105, 0.24) 0%, rgba(16, 185, 129, 0.05) 55%, rgba(255, 255, 255, 0) 100%);
	filter: blur(8px);
	animation: float 8s ease-in-out infinite;
}

.portal-shell {
	width: min(1120px, 100%);
	position: relative;
	z-index: 1;
}

/* ============ Topbar ============ */
.portal-topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 18px;
	padding: 0 6px;
}

.portal-brand {
	display: flex;
	align-items: center;
	gap: 12px;
}

.portal-brand img {
	width: 46px;
	height: 46px;
	object-fit: contain;
	background: #fff;
	border-radius: 14px;
	padding: 5px;
	box-shadow: 0 8px 22px rgba(23, 32, 51, 0.1);
}

.portal-brand-text {
	display: flex;
	flex-direction: column;
	line-height: 1.3;
}

.portal-brand-text strong {
	font-size: 1.02rem;
	font-weight: 700;
	color: var(--dark);
}

.portal-brand-text span {
	font-size: 0.82rem;
	color: var(--muted);
}

.portal-topbar-meta {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

/* ============ Hero ============ */
.portal-hero {
	display: grid;
	grid-template-columns: 1.3fr 0.9fr;
	gap: 24px;
	padding: 36px;
	border-radius: 28px;
	background: var(--surface);
	backdrop-filter: blur(18px);
	border: 1px solid rgba(255, 255, 255, 0.72);
	box-shadow: var(--shadow);
}

.hero-copy {
	display: flex;
	flex-direction: column;
}

.hero-copy h1 {
	font-size: 2.15rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.25;
	margin: 14px 0 10px;
	color: var(--dark);
}

.hero-lead {
	font-size: 1.02rem;
	line-height: 1.65;
	color: var(--muted);
	margin: 0 0 20px;
}

.hero-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	align-self: flex-start;
	padding: 8px 14px;
	border-radius: 999px;
	background: linear-gradient(135deg, rgba(5, 150, 105, 0.16), rgba(16, 185, 129, 0.16));
	color: var(--primary);
	font-size: 0.9rem;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.meta-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 14px;
	border-radius: 999px;
	background: #ffffff;
	color: var(--dark);
	font-size: 0.86rem;
	font-weight: 600;
	box-shadow: 0 8px 24px rgba(23, 32, 51, 0.08);
}

.meta-pill i {
	color: var(--primary);
}

/* ============ Informasi (slider) ============ */
.hero-info {
	margin-top: auto;
	padding-top: 4px;
}

.hero-info-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 10px;
}

.hero-info-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: rgba(4, 120, 87, 0.12);
	color: var(--accent);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 5px 12px;
	border-radius: 999px;
}

.hero-info-nav {
	display: flex;
	gap: 6px;
}

.hero-info-nav button {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	border: 1px solid var(--line);
	background: #fff;
	color: var(--muted);
	font-size: 0.72rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease, color 0.2s ease;
}

.hero-info-nav button:hover {
	background: var(--accent);
	border-color: var(--accent);
	color: #fff;
}

.hero-info-carousel {
	position: relative;
	padding-bottom: 22px;
}

.info-slide {
	display: block;
	width: 100%;
	text-align: left;
	padding: 16px 18px;
	border-radius: 18px;
	border: 1px solid var(--line);
	background: #ffffff;
	box-shadow: 0 10px 30px rgba(23, 32, 51, 0.06);
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.info-slide:hover {
	transform: translateY(-3px);
	border-color: rgba(4, 120, 87, 0.35);
	box-shadow: 0 16px 36px rgba(4, 120, 87, 0.14);
}

.info-date {
	display: block;
	font-size: 0.75rem;
	color: var(--muted);
	margin-bottom: 4px;
}

.info-title {
	display: block;
	font-size: 1rem;
	font-weight: 700;
	color: var(--dark);
	margin-bottom: 4px;
}

.info-desc {
	display: block;
	font-size: 0.88rem;
	line-height: 1.6;
	color: var(--muted);
	margin-bottom: 8px;
}

.info-more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.82rem;
	font-weight: 700;
	color: var(--accent);
}

.info-slide:hover .info-more i {
	transform: translateX(3px);
}

.info-more i {
	transition: transform 0.2s ease;
}

.hero-info-dots {
	position: absolute;
	bottom: 0;
	left: 0;
	right: auto;
	justify-content: flex-start;
	margin: 0;
}

.hero-info-dots button {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background-color: #cbd5e1;
	border: 0;
	opacity: 1;
	margin: 0 4px 0 0;
}

.hero-info-dots button.active {
	background-color: var(--accent);
	width: 20px;
	border-radius: 999px;
}

/* ============ Panel identitas sekolah ============ */
.hero-panel {
	display: flex;
	flex-direction: column;
	background: linear-gradient(135deg, rgba(5, 150, 105, 0.1), rgba(16, 185, 129, 0.08));
	border-radius: 24px;
	padding: 22px;
	border: 1px solid var(--line);
}

.panel-header {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	margin-bottom: 14px;
	color: var(--primary);
}

.school-card {
	display: flex;
	align-items: center;
	gap: 12px;
	background: rgba(255, 255, 255, 0.92);
	border-radius: 16px;
	padding: 14px 16px;
	margin-bottom: 14px;
}

.school-card img {
	width: 44px;
	height: 44px;
	object-fit: contain;
	flex-shrink: 0;
}

.school-card strong {
	display: block;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.3;
	margin-bottom: 2px;
}

.school-card span {
	font-size: 0.8rem;
	line-height: 1.45;
	color: var(--muted);
}

.school-facts {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 10px;
}

.school-facts li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 0.86rem;
	line-height: 1.5;
	color: var(--dark);
}

.school-facts i {
	color: var(--primary);
	margin-top: 3px;
	width: 14px;
	text-align: center;
	flex-shrink: 0;
}

.panel-divider {
	height: 1px;
	background: rgba(5, 150, 105, 0.14);
	margin: 16px 0;
}

.status-list {
	display: grid;
	gap: 10px;
	margin-top: auto;
}

.status-item {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 0.86rem;
	color: var(--dark);
	font-weight: 600;
}

.status-item i {
	color: var(--primary);
	width: 14px;
	text-align: center;
	flex-shrink: 0;
}

/* ============ Kartu akses ============ */
.portal-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 18px;
	margin-top: 24px;
}

.portal-card {
	display: flex;
	flex-direction: column;
	padding: 24px;
	border-radius: 22px;
	text-decoration: none;
	color: var(--dark);
	background: #ffffff;
	border: 1px solid var(--line);
	box-shadow: 0 16px 40px rgba(23, 32, 51, 0.08);
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.portal-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 22px 48px rgba(5, 150, 105, 0.16);
	text-decoration: none;
	color: var(--dark);
}

.portal-card h3 {
	font-size: 1.12rem;
	font-weight: 700;
	margin: 14px 0 8px;
}

.portal-card p {
	margin: 0 0 14px;
	font-size: 0.9rem;
	line-height: 1.6;
	color: var(--muted);
}

.card-cta {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin-top: auto;
	font-size: 0.86rem;
	font-weight: 700;
	color: var(--primary);
}

.card-cta i {
	transition: transform 0.2s ease;
}

.portal-card:hover .card-cta i {
	transform: translateX(4px);
}

.portal-card.payment:hover {
	border-color: rgba(4, 120, 87, 0.35);
}

.portal-card.payment .card-cta {
	color: #047857;
}

.portal-card.student:hover {
	border-color: rgba(20, 184, 166, 0.4);
}

.portal-card.student .card-cta {
	color: #0f766e;
}

.icon-wrap {
	width: 54px;
	height: 54px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 16px;
	font-size: 1.3rem;
	color: #fff;
	background: linear-gradient(135deg, var(--primary), var(--accent));
}

.portal-card.admin .icon-wrap {
	background: linear-gradient(135deg, #059669, #10b981);
}

.portal-card.payment .icon-wrap {
	background: linear-gradient(135deg, #047857, #059669);
}

.portal-card.student .icon-wrap {
	background: linear-gradient(135deg, #0f766e, #14b8a6);
}

.portal-card.teacher:hover {
	border-color: rgba(22, 163, 74, 0.4);
}

.portal-card.teacher .card-cta {
	color: #15803d;
}

.portal-card.teacher .icon-wrap {
	background: linear-gradient(135deg, #16a34a, #4ade80);
}

.portal-card.ppdb:hover {
	border-color: rgba(5, 150, 105, 0.4);
}

.portal-card.ppdb .card-cta {
	color: #059669;
}

.portal-card.ppdb .icon-wrap {
	background: linear-gradient(135deg, #059669, #34d399);
}

/* ============ Footer ============ */
.portal-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	margin-top: 22px;
	padding: 0 6px;
	font-size: 0.8rem;
	color: var(--muted);
}

/* ============ Modal informasi ============ */
.info-modal .modal-content {
	border: 0;
	border-radius: 22px;
	box-shadow: 0 30px 70px rgba(23, 32, 51, 0.22);
}

.info-modal .modal-header {
	align-items: flex-start;
	border-bottom: 1px solid #eef2f7;
	padding: 20px 22px;
}

.info-modal .modal-title {
	font-size: 1.2rem;
	font-weight: 700;
	color: var(--dark);
}

.info-modal .modal-body {
	padding: 20px 22px;
	line-height: 1.75;
	color: #334155;
}

.info-modal .modal-footer {
	border-top: 1px solid #eef2f7;
	padding: 14px 22px;
}

@keyframes float {
	0%,
	100% {
		transform: translateY(0px);
	}
	50% {
		transform: translateY(-12px);
	}
}

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

	.portal-card,
	.info-slide,
	.card-cta i,
	.info-more i {
		transition: none;
	}
}

@media (max-width: 900px) {
	.portal-hero {
		grid-template-columns: 1fr;
	}

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

	.hero-info {
		margin-top: 8px;
	}
}

@media (max-width: 576px) {
	.portal-page {
		padding: 16px;
	}

	.portal-hero {
		padding: 22px;
	}

	.hero-copy h1 {
		font-size: 1.6rem;
	}

	.portal-topbar,
	.portal-footer {
		justify-content: center;
		text-align: center;
	}
}
