/* Beranda AAA v1.2. Semua aturan dibatasi di bawah .aaa agar tidak bentrok dengan Elementor. */
.aaa {
	--navy: #0b2f5b;
	--navy-deep: #081f3d;
	--accent: #c9411f;
	--accent-dark: #a93418;
	--paper: #f3f5f8;
	--ink: #16222f;
	--muted: #58667a;
	--line: #d5dce5;
	--serif: "Newsreader", Georgia, "Times New Roman", serif;
	--sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

	background: #fff;
	color: var(--ink);
	font-family: var(--sans);
	font-size: 1.0625rem;
	line-height: 1.65;
	overflow-x: clip;
}
.aaa *, .aaa *::before, .aaa *::after { box-sizing: border-box; }
.aaa img { display: block; max-width: 100%; height: auto; }
.aaa figure { margin: 0; }
.aaa ul { list-style: none; margin: 0; padding: 0; }
.aaa p { margin: 0 0 1em; }

.aaa h1, .aaa h2, .aaa h3 {
	color: var(--navy-deep);
	font-family: var(--serif);
	font-weight: 600;
	letter-spacing: -0.01em;
	line-height: 1.15;
	margin: 0;
}
.aaa h1 { font-size: clamp(2.25rem, 5vw, 4rem); line-height: 1.06; }
.aaa h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
.aaa h3 { font-size: 1.25rem; line-height: 1.3; }

.aaa a { color: var(--navy); }
.aaa a:hover { color: var(--accent-dark); }
.aaa a:focus-visible, .aaa button:focus-visible { outline: 3px solid #f2a100; outline-offset: 3px; }

.aaa .wrap { margin-inline: auto; max-width: 1200px; padding-inline: 24px; }
.aaa .sec { padding-block: clamp(56px, 8vw, 104px); }
.aaa .sec--tight { padding-block: clamp(36px, 5vw, 56px); }
.aaa .sec--paper { background: var(--paper); }
.aaa .sec--navy { background: var(--navy); }
.aaa .sec--deep { background: var(--navy-deep); }
.aaa .sec--navy h2, .aaa .sec--deep h2 { color: #fff; }

.aaa .sec__head {
	align-items: baseline;
	display: flex;
	gap: 16px;
	justify-content: space-between;
	margin-bottom: 32px;
}

/* Tombol dan tautan */
.aaa .btn {
	border: 1.5px solid transparent;
	border-radius: 4px;
	display: inline-block;
	font-weight: 600;
	line-height: 1.2;
	padding: 14px 26px;
	text-decoration: none;
	transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.aaa .btn--primary { background: var(--accent); color: #fff; }
.aaa .btn--primary:hover { background: var(--accent-dark); color: #fff; }
.aaa .btn--ghost { border-color: var(--navy); color: var(--navy); }
.aaa .btn--ghost:hover { background: var(--navy); color: #fff; }
.aaa .btn--light { border-color: rgba(255, 255, 255, 0.85); color: #fff; }
.aaa .btn--light:hover { background: #fff; color: var(--navy-deep); }
.aaa .link { font-weight: 600; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.aaa .meta { color: var(--muted); display: block; font-size: 0.875rem; }
.aaa .muted { color: var(--muted); }
.aaa .notice { background: #fff4d6; border: 1px solid #e5c76b; border-radius: 4px; font-size: 0.9rem; margin: 0 0 24px; padding: 12px 16px; }

/* Hero: foto penuh dengan lapisan gelap agar teks terbaca */
.aaa .hero {
	align-items: center;
	background: var(--navy-deep);
	display: flex;
	min-height: clamp(520px, 74vh, 720px);
	overflow: hidden;
	padding-block: clamp(64px, 8vw, 112px) clamp(112px, 12vw, 160px);
	position: relative;
}
.aaa .hero__bg { bottom: 0; left: 0; position: absolute; right: 0; top: -14%; will-change: transform; }
.aaa .hero__bg::after {
	background: linear-gradient(95deg, rgba(8, 31, 61, 0.92) 0%, rgba(8, 31, 61, 0.74) 40%, rgba(8, 31, 61, 0.2) 78%, rgba(8, 31, 61, 0.05) 100%);
	content: "";
	inset: 0;
	position: absolute;
	z-index: 2;
}
.aaa .hero__slide { inset: 0; opacity: 0; position: absolute; transition: opacity 1.4s ease; }
.aaa .hero__slide.is-active { opacity: 1; }
.aaa .hero__slide.is-leaving { opacity: 0; }
.aaa .hero__slide img { height: 100%; object-fit: cover; object-position: 70% center; width: 100%; }
.aaa .hero__inner { position: relative; width: 100%; z-index: 1; }
.aaa .hero__text { max-width: 640px; }
.aaa .hero h1 { color: #fff; }
.aaa .hero .lead { color: rgba(255, 255, 255, 0.86); font-size: 1.1875rem; margin: 24px 0 32px; max-width: 52ch; }
.aaa .actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Fakta singkat: kartu putih yang menimpa bagian bawah hero */
.aaa .facts-sec { margin-top: -64px; position: relative; z-index: 2; }
.aaa .facts {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 6px;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	padding: 28px 0;
}
.aaa .facts li {
	border-left: 1px solid var(--line);
	color: var(--navy-deep);
	font-family: var(--serif);
	font-size: 1.125rem;
	line-height: 1.35;
	padding: 4px 24px;
}
.aaa .facts li:first-child { border-left: 0; }

/* Bingkai foto dengan panel biru bergeser */
.aaa .frame { margin: 0 0 28px 28px; position: relative; }
.aaa .frame::before {
	background: var(--navy);
	bottom: -28px;
	content: "";
	height: 70%;
	left: -28px;
	position: absolute;
	width: 70%;
	z-index: 0;
}
.aaa .frame img { object-fit: cover; position: relative; width: 100%; z-index: 1; }

/* Tentang */
.aaa .about__grid { align-items: center; display: grid; gap: clamp(32px, 6vw, 88px); grid-template-columns: 1fr 1fr; }
.aaa .about__photo img { aspect-ratio: 4 / 3; }
.aaa .about__text h2 { margin-bottom: 20px; }
.aaa .about__text p { max-width: 60ch; }
.aaa .about__text .btn { margin-top: 12px; }

/* Galeri */
.aaa .gal { display: grid; gap: 12px; grid-auto-flow: dense; grid-auto-rows: clamp(150px, 18vw, 230px); grid-template-columns: repeat(4, 1fr); }
.aaa .gal__item { background: var(--line); border-radius: 6px; display: block; overflow: hidden; }
.aaa .gal__item img { height: 100%; object-fit: cover; transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); width: 100%; }
.aaa .gal__item:hover img { transform: scale(1.06); }
.aaa .gal__item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.aaa .gal__item:nth-child(6) { grid-column: span 2; }
.aaa .lb { background: transparent; border: 0; color: #fff; max-width: min(1100px, 94vw); padding: 0; width: 100%; }
.aaa .lb::backdrop { background: rgba(8, 31, 61, 0.93); }
.aaa .lb img { max-height: 80vh; object-fit: contain; width: 100%; }
.aaa .lb__bar { display: flex; gap: 12px; justify-content: space-between; margin-top: 14px; }
.aaa .lb button { background: #fff; border: 0; border-radius: 4px; color: var(--navy-deep); cursor: pointer; font: 600 1rem var(--sans); padding: 10px 18px; }
.aaa .lb button:hover { background: var(--paper); }

/* PPDB */
.aaa .ppdb { display: grid; gap: 20px; grid-template-columns: repeat(4, 1fr); }
.aaa .card { background: #fff; border-radius: 4px; display: flex; flex-direction: column; padding: 28px; }
.aaa .card h3 { margin-bottom: 10px; }
.aaa .card p { color: var(--muted); font-size: 0.9688rem; }
.aaa .card .link { margin-top: auto; }

/* Berita dan pengumuman */
.aaa .news { display: grid; gap: clamp(32px, 5vw, 72px); grid-template-columns: 2fr 1fr; }
.aaa .feature { margin-bottom: 36px; }
.aaa .feature__img, .aaa .mini__img { background: var(--line); display: block; overflow: hidden; }
.aaa .feature__img { aspect-ratio: 16 / 9; }
.aaa .mini__img { aspect-ratio: 3 / 2; }
.aaa .feature__img img, .aaa .mini__img img { height: 100%; object-fit: cover; transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); width: 100%; }
.aaa .feature__img:hover img, .aaa .mini__img:hover img { transform: scale(1.04); }
.aaa .feature .meta { margin-top: 16px; }
.aaa .feature h3 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); margin-top: 4px; }
.aaa .mini h3 { font-size: 1.0625rem; margin-top: 2px; }
.aaa .mini .meta { margin-top: 12px; }
.aaa .feature h3 a, .aaa .mini h3 a { color: var(--navy-deep); text-decoration: none; }
.aaa .feature h3 a:hover, .aaa .mini h3 a:hover { color: var(--accent-dark); text-decoration: underline; }
.aaa .cards { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.aaa .ann__list { margin-bottom: 20px; }
.aaa .ann__list li { border-bottom: 1px solid var(--line); padding: 14px 0; }
.aaa .ann__list li:first-child { border-top: 1px solid var(--line); }
.aaa .ann__list a { color: var(--ink); font-weight: 500; line-height: 1.4; text-decoration: none; }
.aaa .ann__list a:hover { color: var(--accent-dark); text-decoration: underline; }

/* Mitra: logo putih, latar gelap, bergerak pelan */
.aaa .partners__title { font-size: 1.375rem; margin-bottom: 28px; text-align: center; }
.aaa .marquee { mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); overflow: hidden; }
.aaa .marquee__track { display: flex; width: max-content; }
.aaa .marquee__group { align-items: center; display: flex; flex: none; gap: 72px; padding-right: 72px; }
.aaa .marquee__group img { height: 64px; max-width: 220px; object-fit: contain; width: auto; }

/* Lokasi */
.aaa .visit__grid { align-items: stretch; display: grid; gap: clamp(28px, 5vw, 64px); grid-template-columns: 1fr 1.6fr; }
.aaa .visit__text h2 { margin-bottom: 20px; }
.aaa .visit__text .btn { margin-top: 8px; }
.aaa .visit__map { border-radius: 6px; min-height: 380px; overflow: hidden; }
.aaa .visit__map iframe { border: 0; display: block; height: 100%; min-height: 380px; width: 100%; }

/* Gerak: hanya bila pengunjung tidak meminta gerakan dikurangi */
@media (prefers-reduced-motion: no-preference) {
	.aaa .hero__text > * { animation: aaa-rise 0.95s cubic-bezier(0.2, 0.7, 0.2, 1) both; animation-delay: calc(var(--i, 0) * 130ms + 150ms); }
	.aaa .hero__slide.is-active img, .aaa .hero__slide.is-leaving img { animation: aaa-zoom 9s ease-out both; }
	.aaa-js .aaa [data-reveal] { transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: var(--d, 0ms); }
	.aaa-js .aaa [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(28px); }
	.aaa .marquee__track { animation: aaa-marquee 34s linear infinite; }
	.aaa .marquee:hover .marquee__track { animation-play-state: paused; }
}
@keyframes aaa-rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes aaa-zoom { from { transform: scale(1.02); } to { transform: scale(1.12); } }
@keyframes aaa-marquee { to { transform: translateX(-25%); } }
@media (prefers-reduced-motion: reduce) {
	.aaa .marquee { mask-image: none; }
	.aaa .marquee__track { flex-wrap: wrap; justify-content: center; width: auto; }
	.aaa .marquee__group[aria-hidden="true"] { display: none; }
}

@media (max-width: 960px) {
	.aaa .about__grid, .aaa .news, .aaa .visit__grid { grid-template-columns: 1fr; }
	.aaa .facts { grid-template-columns: repeat(2, 1fr); row-gap: 20px; }
	.aaa .facts li:nth-child(odd) { border-left: 0; }
	.aaa .ppdb { grid-template-columns: repeat(2, 1fr); }
	.aaa .gal { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
	.aaa .gal__item:nth-child(6) { grid-column: span 1; }
	.aaa .hero__bg::after { background: rgba(8, 31, 61, 0.78); }
	.aaa .about__photo { order: 2; }
}
@media (max-width: 560px) {
	.aaa .wrap { padding-inline: 20px; }
	.aaa .facts { grid-template-columns: 1fr; padding: 8px 0; }
	.aaa .facts li { border-left: 0; border-top: 1px solid var(--line); padding: 14px 20px; }
	.aaa .facts li:first-child { border-top: 0; }
	.aaa .ppdb { grid-template-columns: 1fr; }
	.aaa .btn { text-align: center; width: 100%; }
	.aaa .sec__head { align-items: flex-start; flex-direction: column; gap: 8px; }
	.aaa .marquee__group { gap: 48px; padding-right: 48px; }
}

.aaa .hero__demo { background: #fff4d6; border: 1px solid #e5c76b; border-radius: 4px; color: var(--ink); font-size: 0.8125rem; line-height: 1.45; margin: 0; max-width: 340px; padding: 10px 14px; position: absolute; right: 16px; top: 16px; z-index: 3; }
.aaa .link--light { color: #fff; }
.aaa .link--light:hover { color: #ffd2c4; }
@media (prefers-reduced-motion: reduce) {
	.aaa .hero__slide { transition: none; }
}
@media (max-width: 640px) {
	.aaa .hero__demo { left: 16px; max-width: none; }
}
