@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&family=Roboto:wght@500;700;900&display=swap');

/* ==========================================================
   Tema "VAST": navbar putih, hero ungu tua, aksen oranye,
   kartu putih bersih. Hanya CSS, markup PHP tidak diubah.
   ========================================================== */
:root {
    --orange: #F5762A;
    --orange-dark: #E0651B;
    --purple: #3A2650;
    --purple-deep: #2B1B3D;
    --ink: #1D1A2B;
    --muted: rgba(29, 26, 43, 0.66);
    --soft: #F1EFF4;
    --line: rgba(29, 26, 43, 0.1);
    --shadow: 0 12px 34px rgba(40, 28, 64, 0.08);
    --head: 'Roboto', system-ui, sans-serif;
    --body: 'Poppins', system-ui, sans-serif;
    --gutter: max(1.5rem, calc((100vw - 1240px) / 2 + 2rem));
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--body); font-size: 0.95rem; line-height: 1.7; color: var(--ink);
    background: #fff; min-height: 100vh; overflow-x: clip; position: relative;
}
.particles { display: none; }

.container {
    position: relative; z-index: 2; max-width: 1240px; margin: 0 auto; padding: 0 2rem 0; min-height: 100vh;
    display: flex; flex-direction: column; justify-content: flex-start;
}
main { flex: 1; padding-bottom: 5rem; }

:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
::selection { background: var(--orange); color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- Navbar putih (sticky, selebar layar) ---------- */
.academy-header {
    position: sticky; top: 0; z-index: 60; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
    gap: 0.8rem 1.5rem; width: 100vw; margin: 0 calc(50% - 50vw); padding: 1.15rem var(--gutter);
    background: #fff; box-shadow: 0 6px 24px rgba(40, 28, 64, 0.07);
}
.logo-area { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.logo-icon { font-size: 1.7rem; line-height: 1; color: var(--orange); }
.logo-text h1 { font-family: var(--head); font-size: 1.3rem; font-weight: 900; letter-spacing: -0.01em; line-height: 1.1; color: var(--ink); }
.logo-text span { display: block; font-size: 0.66rem; letter-spacing: 0.04em; color: var(--muted); }

.main-nav { display: flex; flex-wrap: wrap; gap: 0.2rem 0.4rem; margin-left: auto; }
.main-nav a { padding: 0.5rem 0.9rem; font-size: 0.95rem; font-weight: 500; text-decoration: none; color: var(--ink); transition: color 0.2s; }
.main-nav a:hover, .main-nav a.active { color: var(--orange); }
.social-links { display: flex; gap: 1rem; padding-left: 1rem; }
.social-links a { font-size: 1.1rem; color: var(--ink); transition: color 0.2s; }
.social-links a:hover { color: var(--orange); }
.nav-toggle {
    display: none; width: 44px; height: 44px; cursor: pointer; font-size: 1.1rem; color: #fff;
    background: var(--orange); border: 0; border-radius: 8px;
}

/* ---------- Hero ungu ---------- */
.hero-section, .page-hero {
    background: var(--purple); box-shadow: 0 0 0 100vmax var(--purple); clip-path: inset(0 -100vmax); color: #fff;
}
.hero-section {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 3rem; margin: 0; padding: 5.5rem 0 5rem;
}
.dev-message { flex: 1.3; }
.badge { display: inline-block; margin-bottom: 1rem; padding: 0; font-size: 1rem; font-weight: 500; color: var(--orange); background: none; border: 0; }
.dev-message h2 { font-family: var(--head); font-size: 3.4rem; font-weight: 700; line-height: 1.2; margin-bottom: 1.3rem; color: #fff; }
.dev-message .highlight { color: var(--orange); }
.desc { max-width: 540px; margin-bottom: 2rem; font-size: 1.02rem; line-height: 1.8; color: rgba(255, 255, 255, 0.88); }

.countdown-wrapper { display: inline-flex; flex-wrap: wrap; gap: 0.7rem; margin-bottom: 2rem; }
.time-block { min-width: 88px; padding: 0.9rem 1rem; text-align: center; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 10px; }
.time-number { font-family: var(--head); font-size: 2.1rem; font-weight: 700; line-height: 1.1; color: #fff; font-variant-numeric: tabular-nums; }
.time-label { font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--orange); }

.notify-group { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; }
.email-input {
    width: 280px; max-width: 100%; padding: 0.85rem 1.1rem; font: inherit; font-size: 0.92rem; color: var(--ink);
    background: #fff; border: 2px solid transparent; border-radius: 8px; outline: none;
}
.email-input::placeholder { color: rgba(29, 26, 43, 0.45); }
.email-input:focus { border-color: var(--orange); }
.btn-glow {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0.9rem 1.7rem; cursor: pointer;
    font: inherit; font-size: 0.92rem; font-weight: 500; color: #fff; text-decoration: none; background: var(--orange);
    border: 0; border-radius: 8px; transition: background 0.2s, transform 0.2s;
}
.btn-glow:hover { background: var(--orange-dark); }
.btn-glow:disabled { opacity: 0.6; cursor: wait; }
.fine-print { margin-top: 1rem; font-size: 0.78rem; color: rgba(255, 255, 255, 0.65); }

.dev-visual { flex: 1; display: flex; justify-content: center; align-items: center; min-height: 320px; }
.animated-circle {
    width: 310px; height: 310px; padding: 2rem; border-radius: 50%; text-align: center; color: #fff;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: radial-gradient(circle, rgba(245, 118, 42, 0.34), rgba(245, 118, 42, 0.06) 70%);
    box-shadow: 0 0 0 14px rgba(245, 118, 42, 0.08), 0 0 0 30px rgba(245, 118, 42, 0.04);
    animation: breathe 7s ease-in-out infinite;
}
.animated-circle i { font-size: 2.8rem; color: var(--orange); margin-bottom: 1rem; }
.animated-circle h3 { font-family: var(--head); font-size: 1.7rem; font-weight: 700; line-height: 1.2; }
.animated-circle p { max-width: 190px; margin-top: 0.3rem; font-size: 0.8rem; color: rgba(255, 255, 255, 0.78); }
.circle-note { margin-top: 12px; font-size: 0.75rem; color: var(--orange); }
@keyframes breathe { 0%, 100% { transform: scale(0.98); } 50% { transform: scale(1.03); } }

/* ---------- Kartu fitur (kartu putih + blok abu di belakang) ---------- */
.features { display: flex; flex-wrap: wrap; justify-content: center; gap: 3rem 2.2rem; margin: 5.5rem 0 1rem; }
.feature-card {
    position: relative; isolation: isolate; width: 230px; padding: 2rem 1.4rem 2.3rem; text-align: center;
    transition: transform 0.3s;
}
/* lapisan belakang: blok abu muda (::before) lalu kartu putih (::after), keduanya di bawah teks */
.feature-card::before {
    content: ""; position: absolute; z-index: -2; top: -20px; left: -20px; right: -20px; height: 147px;
    background: var(--soft); border-radius: 10px;
}
.feature-card::after {
    content: ""; position: absolute; z-index: -1; inset: 0; background: #fff; border-radius: 10px; box-shadow: var(--shadow);
}
.feature-card:hover { transform: translateY(-4px); }
.feature-card i { display: block; margin-bottom: 1rem; font-size: 2rem; color: var(--orange); }
.feature-card h4 { margin-bottom: 0.5rem; font-family: var(--head); font-size: 1.25rem; font-weight: 700; color: var(--ink); }
.feature-card p { font-size: 0.85rem; color: var(--muted); }
.feature-card.wide { width: auto; text-align: left; padding: 2rem 1.8rem; }
.feature-card.wide::before { height: 70px; }

/* ---------- Judul halaman & bagian ---------- */
.page-hero { margin: 0 0 4rem; max-width: none; padding: 4rem 0 3.5rem; }
.page-hero h2 { max-width: 760px; margin-bottom: 0.8rem; font-family: var(--head); font-size: 2.8rem; font-weight: 700; line-height: 1.2; color: #fff; }
.page-hero .desc { margin-bottom: 0; }
.block { margin-top: 5.5rem; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 2rem; }
.section-head h3 { font-family: var(--head); font-size: 2rem; font-weight: 700; color: var(--ink); }
.section-head a { font-size: 0.9rem; font-weight: 500; text-decoration: none; color: var(--orange); }
.section-head a:hover { color: var(--orange-dark); }

.grid { display: grid; gap: 2rem; }
.grid-news { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.grid-team { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.grid-gallery { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.grid-profile { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 3rem 2.2rem; padding-top: 1.5rem; }

/* ---------- Berita ---------- */
.news-card {
    display: flex; flex-direction: column; overflow: hidden; text-decoration: none; color: inherit;
    background: #fff; border-radius: 10px; box-shadow: var(--shadow); transition: transform 0.3s, box-shadow 0.3s;
}
.news-card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(40, 28, 64, 0.13); }
.news-thumb { aspect-ratio: 16 / 10; overflow: hidden; background: var(--soft); }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph { height: 100%; display: grid; place-items: center; font-size: 2.4rem; color: var(--orange); opacity: 0.7; }
.news-body { display: flex; flex-direction: column; gap: 0.45rem; flex: 1; padding: 1.4rem 1.5rem 1.6rem; }
.news-body time { font-size: 0.78rem; font-weight: 500; color: var(--orange); }
.news-body h4 { font-family: var(--head); font-size: 1.2rem; font-weight: 700; line-height: 1.35; color: var(--ink); }
.news-body p { font-size: 0.86rem; color: var(--muted); }
.news-body .more { margin-top: auto; padding-top: 0.6rem; font-size: 0.85rem; font-weight: 500; color: var(--orange); }

/* ---------- Tim ---------- */
.team-card { padding: 2rem 1.4rem; text-align: center; background: #fff; border-radius: 10px; box-shadow: var(--shadow); transition: transform 0.3s; }
.team-card:hover { transform: translateY(-5px); }
.avatar {
    width: 112px; height: 112px; margin: 0 auto 1.1rem; display: grid; place-items: center; overflow: hidden; border-radius: 50%;
    background: var(--purple); color: #fff; font-family: var(--head); font-size: 2rem; font-weight: 700;
    box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--orange);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-card h4 { font-family: var(--head); font-size: 1.2rem; font-weight: 700; }
.team-card .role { margin: 0.1rem 0 0.7rem; font-size: 0.85rem; font-weight: 500; color: var(--orange); }
.team-card p { font-size: 0.85rem; color: var(--muted); }
.team-social { display: flex; justify-content: center; gap: 1rem; margin-top: 1rem; }
.team-social a { font-size: 1.05rem; color: var(--ink); transition: color 0.2s; }
.team-social a:hover { color: var(--orange); }

/* ---------- Galeri ---------- */
.gallery-item { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: 10px; box-shadow: var(--shadow); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-cap {
    position: absolute; inset: auto 0 0 0; padding: 2.4rem 1rem 0.9rem; font-size: 0.88rem; font-weight: 500; color: #fff;
    background: linear-gradient(transparent, rgba(43, 27, 61, 0.92)); opacity: 0; transition: opacity 0.3s;
}
.gallery-item:hover .gallery-cap, .gallery-item:focus-visible .gallery-cap { opacity: 1; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.3rem; }
.chips a { padding: 0.4rem 1.1rem; font-size: 0.82rem; font-weight: 500; text-decoration: none; color: #fff; border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 8px; transition: 0.2s; }
.chips a.active, .chips a:hover { background: var(--orange); border-color: var(--orange); }
.lightbox { position: fixed; inset: 0; z-index: 300; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; padding: 1.5rem; background: rgba(29, 18, 42, 0.95); }
.lightbox.open { display: flex; }
.lightbox img { max-width: min(1100px, 92vw); max-height: 78vh; border-radius: 8px; object-fit: contain; }
.lightbox p { max-width: 700px; text-align: center; font-size: 0.92rem; color: #fff; }
.lightbox button { position: absolute; width: 46px; height: 46px; cursor: pointer; font-size: 1rem; color: #fff; background: var(--orange); border: 0; border-radius: 50%; }
.lightbox button:hover { background: var(--orange-dark); }
.lightbox .lb-close { top: 1.2rem; right: 1.2rem; }
.lightbox .lb-prev { left: 1.2rem; top: 50%; }
.lightbox .lb-next { right: 1.2rem; top: 50%; }

/* ---------- Profil & artikel ---------- */
.profile-intro { display: grid; gap: 3rem; margin-bottom: 3rem; max-width: 780px; }
.profile-intro.with-image { grid-template-columns: 1.3fr 1fr; max-width: none; align-items: center; }
.profile-image img { display: block; width: 100%; border-radius: 10px; box-shadow: var(--shadow); }
.prose p { max-width: 68ch; margin-bottom: 1.1rem; line-height: 1.85; color: rgba(29, 26, 43, 0.8); }
.feature-card .prose p { margin-bottom: 0; font-size: 0.88rem; line-height: 1.7; color: var(--muted); }
.article { max-width: 760px; padding-top: 3.5rem; }
.article h2 { margin: 0.8rem 0; font-family: var(--head); font-size: 2.6rem; font-weight: 700; line-height: 1.2; color: var(--ink); }
.article-meta { margin-bottom: 1.6rem; font-size: 0.82rem; font-weight: 500; color: var(--orange); }
.article-cover { width: 100%; margin-bottom: 2rem; border-radius: 10px; box-shadow: var(--shadow); }
.article .prose p { font-size: 1.02rem; }
.back-link { display: inline-block; margin-bottom: 1rem; font-size: 0.85rem; text-decoration: none; color: var(--muted); }
.back-link:hover { color: var(--orange); }

.search-form { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.5rem; }
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem; margin-top: 3rem; }
.pager a, .pager span {
    min-width: 42px; height: 42px; display: grid; place-items: center; padding: 0 0.8rem; font-size: 0.9rem; font-weight: 500;
    text-decoration: none; color: var(--ink); background: #fff; border-radius: 8px; box-shadow: var(--shadow);
}
.pager a:hover { color: var(--orange); }
.pager .current { color: #fff; background: var(--orange); }
.pager .gap { background: none; box-shadow: none; }

.empty { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; padding: 4rem 1.5rem; text-align: center; background: var(--soft); border-radius: 10px; }
.empty > i { font-size: 2.2rem; color: var(--orange); }
.empty h3 { font-family: var(--head); font-size: 1.5rem; font-weight: 700; }
.empty p { max-width: 420px; color: var(--muted); }
.empty .btn-glow { margin-top: 0.8rem; }

/* ---------- Footer ungu gelap ---------- */
.footer-note {
    margin-top: 0; padding: 2.8rem 0; text-align: center; font-size: 0.82rem; color: rgba(255, 255, 255, 0.72);
    background: var(--purple-deep); box-shadow: 0 0 0 100vmax var(--purple-deep); clip-path: inset(0 -100vmax);
}
.contact-list { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem 1.8rem; margin-bottom: 1.2rem; color: #fff; }
.contact-list i { margin-right: 6px; color: var(--orange); }

/* ---------- Toast ---------- */
.toast-msg {
    position: fixed; bottom: 28px; left: 50%; z-index: 200; transform: translate(-50%, 10px); padding: 0.85rem 1.5rem;
    font-size: 0.9rem; color: #fff; background: var(--purple); border-left: 4px solid var(--orange); border-radius: 8px;
    box-shadow: 0 14px 34px rgba(29, 18, 42, 0.35); opacity: 0; pointer-events: none; transition: opacity 0.3s, transform 0.3s;
}
.toast-msg.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Responsif ---------- */
@media (max-width: 900px) {
    .academy-header { padding-top: 0.9rem; padding-bottom: 0.9rem; }
    .nav-toggle { display: inline-grid; place-items: center; order: 2; margin-left: auto; }
    .social-links { display: none; }
    .main-nav { display: none; order: 3; width: 100%; flex-direction: column; margin: 0; padding: 0.4rem 0 0.6rem; }
    .main-nav.open { display: flex; }
    .main-nav a { padding: 0.7rem 0.4rem; border-top: 1px solid var(--line); }
    .profile-intro.with-image { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
    .container { padding: 0 1.2rem; }
    .logo-area { gap: 8px; }
    .logo-icon { font-size: 1.3rem; }
    .logo-text h1 { font-size: 1.05rem; }
    .logo-text span { font-size: 0.6rem; }
    .nav-toggle { width: 40px; height: 40px; }
    .hero-section { flex-direction: column; text-align: center; padding: 3.5rem 0; gap: 2.5rem; }
    .dev-message h2 { font-size: 2.3rem; }
    .desc { margin-left: auto; margin-right: auto; }
    .countdown-wrapper, .notify-group { justify-content: center; }
    .time-block { min-width: 70px; padding: 0.7rem 0.6rem; }
    .time-number { font-size: 1.6rem; }
    .animated-circle { width: 250px; height: 250px; }
    .page-hero { padding: 3rem 0 2.5rem; }
    .page-hero h2, .article h2 { font-size: 2rem; }
    .feature-card { width: 100%; max-width: 300px; }
    .feature-card.wide { max-width: none; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    html { scroll-behavior: auto; }
}