@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300;9..144,400;9..144,500;9..144,700;9..144,900&family=Inter:wght@300;400;500;600&display=swap');

/* === MASTER CSS LUXURY MBS (GREEN, BLUE, WHITE, GOLD) === */
:root {
    --color-primary: #04473A; /* Hijau Muhammadiyah Tua */
    --color-secondary: #11366E; /* Biru Muhammadiyah Tua */
    --lux-gold: #D4B582; /* Emas mewah */
    --color-accent: #D4B582;
    --lux-dark: #050505;
    --lux-bg: #F8F8F8; /* Warm Ivory */
    --color-text: #1A1A1A;
    --color-text-muted: #555555;
    --color-border: #e0e0e0;
    --radius-sm: 8px;    /* elemen kecil: badge, input, icon box */
    --radius-md: 16px;   /* card, container standar - default */
    --radius-lg: 24px;   /* card besar/hero/featured section */
    --radius-pill: 999px; /* tombol pill/rounded penuh */
    --shadow-sm: 0 2px 8px rgba(4, 71, 58, 0.08);   /* elemen kecil: button hover, input focus */
    --shadow-md: 0 8px 24px rgba(4, 71, 58, 0.12);  /* card standar - default paling sering dipakai */
    --shadow-lg: 0 20px 50px rgba(4, 71, 58, 0.15); /* elemen featured/hero/modal yang perlu menonjol kuat */
    --font-heading: 'Fraunces', serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s ease;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Selection Highlight Color */
::selection {
    background: var(--lux-gold);
    color: var(--lux-dark);
}

::-moz-selection {
    background: var(--lux-gold);
    color: var(--lux-dark);
}



html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
    overflow-x: hidden;
    overflow-x: clip;
    width: 100%;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

body {
    font-family: var(--font-body);
    background-color: var(--lux-bg);
    color: var(--color-text);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
    overflow-x: clip;
    width: 100%;
    position: relative;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

img, iframe, video, svg {
    max-width: 100%;
    height: auto;
}

img {
    display: block;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition);
}

/* Accessibility Focus States */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--lux-gold);
    outline-offset: 2px;
}

/* Skip-to-content: tersembunyi secara visual, muncul saat pengguna keyboard
   menekan Tab pertama kali — supaya bisa lompat ke konten tanpa harus
   menelusuri seluruh menu navigasi (termasuk dropdown) di setiap halaman. */
.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    z-index: 2000;
    padding: 0.75rem 1.5rem;
    background: var(--color-primary);
    color: #fff;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 1rem;
    outline: 2px solid var(--lux-gold);
    outline-offset: 2px;
}

/* <main> menerima fokus dari skip-link secara terprogram (bukan interaksi
   biasa), jadi outline default browser di seluruh block konten disembunyikan
   — skip-link sendiri sudah punya outline yang jelas saat fokus. */
main:focus {
    outline: none;
}

/* Skeleton loading state untuk konten yang diambil dari Supabase (berita,
   prestasi) — supaya tidak ada jeda kosong sebelum data muncul. Kartu asli
   menggantikan ini lewat innerHTML setelah data datang, jadi skeleton ini
   tidak perlu dihapus manual. */
.skeleton-news-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.skeleton-img,
.skeleton-line {
    background: linear-gradient(90deg, #ececec 25%, #f5f5f5 50%, #ececec 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s ease-in-out infinite;
}

.skeleton-img {
    height: 240px;
}

.skeleton-line {
    height: 0.9rem;
    margin: 1rem 1.25rem 0;
    border-radius: var(--radius-sm);
}

.skeleton-line-title {
    height: 1.2rem;
    width: 70%;
}

.skeleton-line-short {
    width: 45%;
    margin-bottom: 1.25rem;
}

@keyframes skeletonShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@media (prefers-reduced-motion: reduce) {
    .skeleton-img,
    .skeleton-line {
        animation: none;
        background: #ececec;
    }
}

/* === LAYOUT CONTAINERS & UTILITIES === */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-sm {
    max-width: 800px;
}

.section {
    padding: 5rem 0;
}

.compact-section {
    padding: 4rem 0 !important;
}

.bg-sand {
    background-color: var(--lux-bg);
}

.bg-lux-dark {
    background-color: var(--lux-dark);
    color: #fff;
}

.bg-emerald {
    background-color: var(--color-primary);
    color: #fff;
}

.text-light {
    color: #fff !important;
}

.text-center {
    text-align: center;
}

.mt-md {
    margin-top: 1.5rem;
}

.mt-lg {
    margin-top: 3rem;
}

.mt-xl {
    margin-top: 2.5rem;
}

.mt-2 {
    margin-top: 2rem;
}

.mb-xs {
    margin-bottom: 0.5rem;
}

.mb-sm {
    margin-bottom: 1rem;
}

.mb-md {
    margin-bottom: 1.5rem;
}

.mb-lg {
    margin-bottom: 3rem;
}

.bg-lux-bg {
    background-color: var(--lux-bg);
}

.btn-group-column {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.items-start {
    align-items: flex-start;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.2;
    color: var(--lux-dark);
    margin-bottom: 1rem;
}

h1, h2 {
    letter-spacing: -0.02em;
}

p {
    margin-bottom: 1rem;
    color: var(--color-text-muted);
}

.lead {
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 2rem;
}

.eyebrow,
.eyebrow-lux,
.section-eyebrow,
.subtitle-lux {
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--lux-gold);
    margin-bottom: 0.75rem;
    display: inline-block;
}

.eyebrow-light,
.page-hero .eyebrow,
.ppdb-hero .eyebrow,
.bg-emerald .eyebrow,
.bg-lux-dark .eyebrow,
.bg-emerald .eyebrow-lux,
.bg-lux-dark .eyebrow-lux {
    color: var(--lux-gold);
}

.section-title {
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.section-title-lux {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    line-height: 1.15;
    font-weight: 400;
    letter-spacing: -0.02em;
    color: var(--lux-dark);
    margin-bottom: 1.5rem;
}

.section-header-lux .section-title-lux {
    margin-bottom: 0.75rem;
}

.section-header-lux .section-title-lux:last-child {
    margin-bottom: 0;
}

.section-subtitle,
.section-subtitle-lux {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    max-width: 650px;
    margin-top: 0;
    margin-bottom: 0;
    line-height: 1.6;
}

.bg-emerald .section-title-lux,
.bg-lux-dark .section-title-lux {
    color: #fff;
}

.text-white {
    color: #ffffff;
}

.section-title-sm {
    font-size: 1.5rem !important;
    line-height: 1.2 !important;
    margin-bottom: 0.5rem !important;
}

.section-subtitle-sm {
    font-size: 0.85rem !important;
    color: var(--color-text-muted) !important;
    margin: 0 !important;
}

.section-lead-lux {
    max-width: 800px;
    margin: 0 auto 2.5rem auto;
    opacity: 0.9;
    font-size: 1.15rem;
    line-height: 1.7;
}

.editorial-title-lg {
    font-size: clamp(2rem, 3.5vw, 2.75rem) !important;
    line-height: 1.15 !important;
    margin-bottom: 1.5rem !important;
}

.editorial-lead {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-text-muted);
}

.card-title-custom {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--lux-dark);
    margin-bottom: 0.5rem;
}

.card-desc-custom {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin: 0;
}

.cta-desc-lux {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

.micro-copy {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}



/* === HEADER & NAVIGATION (GLOBAL) === */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0.8rem 0;
    transition: all 0.4s ease;
    background-color: transparent;
    box-shadow: none;
}

.site-header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: 0.5rem 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
}

.logo {
    display: flex;
    align-items: center;
    color: #fff;
    text-decoration: none;
    flex-shrink: 0;
    margin-right: 1.5rem;
    transition: var(--transition);
}

.logo:focus:not(:focus-visible),
.site-header .logo:focus:not(:focus-visible) {
    outline: none;
    box-shadow: none;
}

.logo:focus-visible,
.site-header .logo:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px var(--lux-gold);
    border-radius: var(--radius-sm);
}

.site-header.scrolled .logo,
.site-header.scrolled .logo-text {
    color: var(--color-primary);
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

.logo-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.1;
    margin-left: 0.75rem;
    color: #fff;
    transition: var(--transition);
}

.logo-sub {
    font-size: 0.55rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 500;
    opacity: 0.9;
    text-align: left;
    color: currentColor;
    font-family: var(--font-body);
}

.logo-main {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left;
    font-family: var(--font-heading);
    color: inherit;
}

.logo-loc {
    font-size: 0.7rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 500;
    text-align: left;
    color: var(--lux-gold);
    font-family: var(--font-body);
}

.main-nav {
    margin-left: auto;
    flex-shrink: 0;
}

.main-nav .nav-list {
    list-style: none;
    display: flex;
    gap: 0.85rem;
    align-items: center;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
}

.main-nav .nav-list > li {
    flex-shrink: 0;
}

.main-nav a {
    color: #fff;
    font-weight: 500;
    font-size: 0.85rem;
    position: relative;
    text-decoration: none;
    white-space: nowrap;
    padding: 0.4rem 0;
    transition: var(--transition);
}

.site-header.scrolled .main-nav a {
    color: var(--lux-dark);
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--lux-gold);
}

.site-header.scrolled .main-nav a:hover,
.site-header.scrolled .main-nav a.active {
    color: var(--color-primary);
}

.site-header .main-nav a.nav-cta,
.site-header.scrolled .main-nav a.nav-cta {
    background-color: var(--lux-gold);
    color: var(--lux-dark);
    padding: 0.5rem 1.15rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.85rem;
    flex-shrink: 0;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.site-header .main-nav a.nav-cta:hover,
.site-header.scrolled .main-nav a.nav-cta:hover {
    background-color: var(--color-secondary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(17, 54, 110, 0.25);
}

.main-nav a.nav-cta:active,
.nav-cta:active {
    transform: scale(0.95);
}

.site-header .main-nav a.nav-cta-secondary {
    background: transparent;
    border: 1px solid var(--lux-gold);
    color: var(--lux-gold);
    padding: 0.45rem 1.15rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
    transition: var(--transition);
    flex-shrink: 0;
}

.site-header .main-nav a.nav-cta-secondary:hover {
    background: rgba(212, 181, 130, 0.15);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 181, 130, 0.2);
}

.site-header.scrolled .main-nav a.nav-cta-secondary,
.site-header.scrolled .main-nav a.nav-cta-secondary:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.site-header.scrolled .main-nav a.nav-cta-secondary:hover {
    background: rgba(4, 71, 58, 0.1);
}

/* Dropdown Menu Styles */
.nav-item.dropdown {
    position: relative;
    flex-shrink: 0;
}

.dropdown-arrow {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    margin-left: 5px;
    transition: transform 0.2s ease;
    vertical-align: middle;
}

.nav-item.dropdown:hover .dropdown-arrow,
.nav-item.dropdown.open .dropdown-arrow {
    transform: rotate(225deg) translateY(-2px);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    background: #ffffff;
    min-width: 210px;
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-sm);
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
    z-index: 1010;
    border: 1px solid rgba(0, 0, 0, 0.06);
    pointer-events: none;
}

/* Invisible bridge to prevent mouse leaving hover area while moving into submenu */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
    background: transparent;
}

.nav-item.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.nav-item.dropdown:hover > a {
    color: var(--lux-gold);
}

.site-header.scrolled .nav-item.dropdown:hover > a {
    color: var(--color-primary);
}

.nav-item.dropdown:hover > a::after {
    width: 100%;
}

.dropdown-menu li {
    width: 100%;
    margin: 0;
    padding: 0;
}

.site-header .main-nav .dropdown-menu li a,
.site-header.scrolled .main-nav .dropdown-menu li a {
    display: block;
    padding: 0.5rem 1.25rem;
    color: var(--lux-dark);
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.site-header .main-nav .dropdown-menu li a:hover,
.site-header .main-nav .dropdown-menu li a.active,
.site-header.scrolled .main-nav .dropdown-menu li a:hover,
.site-header.scrolled .main-nav .dropdown-menu li a.active {
    background-color: rgba(4, 71, 58, 0.08);
    color: var(--color-primary);
}

/* Premium Expandable Search Component */
.nav-search-item {
    position: relative;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.search-toggle-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.site-header.scrolled .search-toggle-btn {
    color: var(--lux-dark);
}

.search-toggle-btn:hover {
    color: var(--lux-gold);
}

.search-form-overlay {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: #ffffff;
    padding: 0.35rem 0.5rem 0.35rem 0.85rem;
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-md);
    display: none;
    align-items: center;
    gap: 0.4rem;
    z-index: 1020;
    border: 1px solid rgba(212, 181, 130, 0.3);
    min-width: 250px;
}

.search-form-overlay.active {
    display: flex;
    animation: searchFadeIn 0.25s cubic-bezier(0.25, 1, 0.5, 1);
}

@keyframes searchFadeIn {
    from { opacity: 0; transform: translateY(-50%) scale(0.95); }
    to { opacity: 1; transform: translateY(-50%) scale(1); }
}

.search-form-overlay input {
    border: none;
    outline: none;
    background: transparent;
    color: var(--lux-dark);
    font-size: 0.85rem;
    font-family: var(--font-body);
    width: 140px;
}

.search-form-overlay input::placeholder {
    color: var(--color-text-muted);
}

.search-form-overlay button[type="submit"] {
    background: var(--color-primary);
    color: #ffffff;
    border: none;
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.search-form-overlay button[type="submit"]:hover {
    background: var(--color-secondary);
}

.search-close-btn {
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0.2rem 0.4rem;
    line-height: 1;
    transition: var(--transition);
}

.search-close-btn:hover {
    color: var(--lux-dark);
}

/* Autocomplete Dropdown Styles */
#searchResultsContainer {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 280px;
    background: #ffffff;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    z-index: 1050;
    max-height: 300px;
    overflow-y: auto;
    display: none;
    border: 1px solid rgba(212, 181, 130, 0.3);
}

#searchResultsContainer.active {
    display: block;
    animation: searchFadeIn 0.2s ease;
}

.search-suggestion-item,
#searchResultsContainer .search-suggestion-item {
    display: block;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid var(--color-border);
    color: var(--lux-dark);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: background 0.2s ease, color 0.2s ease;
}

.search-suggestion-item:last-child,
#searchResultsContainer .search-suggestion-item:last-child {
    border-bottom: none;
}

.search-suggestion-item:hover,
#searchResultsContainer .search-suggestion-item:hover {
    background: var(--lux-bg);
    color: var(--color-primary);
}

.search-suggestion-empty {
    padding: 0.85rem 1.25rem;
    font-size: 0.82rem;
    color: var(--color-text-muted);
    font-style: italic;
    line-height: 1.4;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1002;
    position: relative;
}

.menu-bar {
    display: block;
    width: 25px;
    height: 2px;
    margin: 5px auto;
    background-color: #fff;
    transition: var(--transition);
}

.site-header.scrolled .menu-bar {
    background-color: var(--lux-dark);
}

/* === BUTTONS === */
.btn, .btn-lux {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: var(--radius-pill);
    transition: all 0.2s ease;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.btn-primary, .btn-gold-lux, .btn-gold {
    background: var(--lux-gold);
    color: var(--lux-dark);
    transition: all 0.2s ease;
}

.btn-primary:hover, .btn-gold-lux:hover, .btn-gold:hover {
    background: #fff;
    color: var(--lux-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(212, 181, 130, 0.3);
}

.btn:active,
.btn-lux:active,
.btn-primary:active,
.btn-gold-lux:active,
.btn-gold:active,
.btn-outline:active,
.btn-ghost-lux:active,
.nav-cta:active {
    transform: scale(0.95);
}

.btn-outline {
    background: transparent;
    color: var(--lux-dark);
    border: 1px solid var(--lux-dark);
}

.btn-outline:hover {
    background: var(--lux-dark);
    color: #fff;
    transform: translateY(-3px);
}

.btn-ghost-lux {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.4);
}

.btn-ghost-lux:hover {
    background: rgba(255,255,255,0.2);
    border-color: #fff;
    color: #fff;
    transform: translateY(-3px);
}

.btn-text-lux {
    color: var(--lux-dark);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    position: relative;
    padding-bottom: 3px;
    transition: color 0.3s ease;
}

.btn-text-lux::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-secondary);
    transition: width 0.3s ease;
}

.btn-text-lux:hover {
    color: var(--color-secondary);
}

.btn-text-lux:hover::after {
    width: 100%;
}

.btn-lg {
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* === HOMEPAGE HERO (GREEN-BLUE CINEMATIC) === */
.hero-lux {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background-color: var(--color-primary);
    background-image: url('../img/hero-beranda.jpg');
    background-size: cover;
    background-position: center;
}

@media (max-width: 600px) {
    .hero-bg-image {
        background-image: url('../img/hero-beranda-mobile.jpg');
    }
}

/* Parallax halus: foto hero bergerak lebih lambat dari konten saat discroll.
   Cuma untuk perangkat dengan mouse asli (desktop) — background-attachment:
   fixed dikenal bermasalah di Safari iOS, dan parallax di layar sentuh
   sering terasa janggal/boros baterai, jadi mobile sengaja dibiarkan
   default (scroll biasa, sudah stabil). */
@media (hover: hover) and (pointer: fine) {
    .hero-bg-image {
        background-attachment: fixed;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-bg-image {
        background-attachment: scroll;
    }
}

.hero-overlay-lux {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(4, 71, 58, 0.9) 0%, rgba(5, 5, 5, 0.7) 100%);
    z-index: -1;
}

/* Glow lembut yang mengikuti kursor — cuma aktif di desktop (lihat JS),
   ngasih kesan "hidup" tanpa mengganggu keterbacaan teks di atasnya. */
.hero-cursor-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 35%), rgba(212, 181, 130, 0.16), transparent 60%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.hero-lux:hover .hero-cursor-glow {
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .hero-cursor-glow {
        display: none;
    }
}

.hero-lux-content {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
    padding: 9rem 1.5rem 8rem;
    position: relative;
    z-index: 2;
}

.hero-badge-lux {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 0.5rem 1.2rem;
    border-radius: var(--radius-pill);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--lux-gold);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(212, 181, 130, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(212, 181, 130, 0); }
    100% { box-shadow: 0 0 0 0 rgba(212, 181, 130, 0); }
}

.hero-lux-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 5.5rem);
    line-height: 1.08;
    font-weight: 400;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    color: #fff;
}

.hero-lux-title em {
    font-style: italic;
    color: var(--lux-gold);
    font-weight: 300;
}

.hero-lux-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255,255,255,0.85);
    max-width: 680px;
    margin: 0 auto 3rem auto;
    font-weight: 300;
}

.hero-cta-group {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* === PAGE HERO (SUBPAGES) ===
   Satu sistem hero untuk semua halaman dalam: teks rata kiri di bagian bawah,
   judul berskala besar mengikuti beranda, pola geometris tipis di sisi kanan.
   Foto opsional: tambahkan class "page-hero-photo" dan style="--page-hero-image:url(...)".
   Animasi masuk murni CSS (tidak menunggu JavaScript). */
.page-hero {
    --page-hero-image: none;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    min-height: clamp(380px, 56vh, 560px);
    padding: 9rem 0 4.5rem;
    color: #fff;
    background-color: var(--color-primary);
    background-image: linear-gradient(135deg, var(--color-primary) 0%, #032f27 100%);
    background-size: cover;
    background-position: center;
}

.page-hero-photo {
    background-image: linear-gradient(135deg, rgba(4, 71, 58, 0.9) 0%, rgba(5, 5, 5, 0.7) 100%), var(--page-hero-image);
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23D4B582' stroke-width='0.75' stroke-opacity='0.35'%3E%3Crect x='28' y='28' width='24' height='24' /%3E%3Crect x='28' y='28' width='24' height='24' transform='rotate(45 40 40)' /%3E%3Cpolygon points='40,8 72,40 40,72 8,40' stroke-opacity='0.25' /%3E%3Cline x1='0' y1='0' x2='80' y2='80' stroke-opacity='0.2' /%3E%3Cline x1='0' y1='80' x2='80' y2='0' stroke-opacity='0.2' /%3E%3Cline x1='0' y1='40' x2='80' y2='40' stroke='%2311366E' stroke-opacity='0.25' stroke-dasharray='2 3' /%3E%3Cline x1='40' y1='0' x2='40' y2='80' stroke='%2311366E' stroke-opacity='0.25' stroke-dasharray='2 3' /%3E%3Crect x='-12' y='-12' width='24' height='24' /%3E%3Crect x='-12' y='-12' width='24' height='24' transform='rotate(45 0 0)' /%3E%3Crect x='68' y='-12' width='24' height='24' /%3E%3Crect x='68' y='-12' width='24' height='24' transform='rotate(45 80 0)' /%3E%3Crect x='-12' y='68' width='24' height='24' /%3E%3Crect x='-12' y='68' width='24' height='24' transform='rotate(45 0 80)' /%3E%3Crect x='68' y='68' width='24' height='24' /%3E%3Crect x='68' y='68' width='24' height='24' transform='rotate(45 80 80)' /%3E%3Ccircle cx='40' cy='40' r='1.5' fill='%23D4B582' fill-opacity='0.5' stroke='none' /%3E%3Ccircle cx='0' cy='0' r='1.5' fill='%23D4B582' fill-opacity='0.5' stroke='none' /%3E%3Ccircle cx='80' cy='0' r='1.5' fill='%23D4B582' fill-opacity='0.5' stroke='none' /%3E%3Ccircle cx='0' cy='80' r='1.5' fill='%23D4B582' fill-opacity='0.5' stroke='none' /%3E%3Ccircle cx='80' cy='80' r='1.5' fill='%23D4B582' fill-opacity='0.5' stroke='none' /%3E%3C/g%3E%3C/svg%3E");
    background-size: 80px 80px;
    opacity: 0.6;
    -webkit-mask-image: linear-gradient(to left, #000 0%, transparent 62%);
    mask-image: linear-gradient(to left, #000 0%, transparent 62%);
    pointer-events: none;
}

.page-hero .container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.page-title {
    max-width: 22ch;
    margin-bottom: 1.25rem;
    font-family: var(--font-heading);
    font-size: clamp(2.25rem, 5.5vw, 4.25rem);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: #fff;
    text-wrap: balance;
}

.page-title em,
.page-title .text-gold {
    font-style: italic;
    font-weight: 300;
    color: var(--lux-gold);
}

.page-subtitle {
    max-width: 58ch;
    margin: 0;
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    font-weight: 300;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.82);
    text-wrap: pretty;
}

.page-hero .hero-cta-group {
    justify-content: flex-start;
}

@keyframes page-hero-in {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

.page-hero .container > * {
    animation: page-hero-in 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.page-hero .container > :nth-child(2) { animation-delay: 90ms; }
.page-hero .container > :nth-child(3) { animation-delay: 180ms; }
.page-hero .container > :nth-child(4) { animation-delay: 270ms; }

@media (prefers-reduced-motion: reduce) {
    .page-hero .container > * {
        animation: none;
    }
}

/* === ANGLED SECTION DIVIDERS & VISUAL HOOKS === */
.section-angled-top {
    clip-path: polygon(0 5%, 100% 0, 100% 100%, 0% 100%);
    margin-top: -40px;
    padding-top: 80px;
}

.section-angled-bottom {
    clip-path: polygon(0 0, 100% 0, 100% 95%, 0% 100%);
    padding-bottom: 80px;
    margin-bottom: -40px;
}

/* Scroll Down Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--lux-gold);
    animation: bounce 2s infinite;
    z-index: 10;
}

.scroll-indicator svg {
    width: 24px;
    height: 24px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* === 404 ERROR PAGE === */
.error-page {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10rem 1.5rem 6rem;
    text-align: center;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: #ffffff;
    position: relative;
}

.error-page .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.error-page .error-code {
    font-family: var(--font-heading);
    font-size: clamp(5rem, 12vw, 8.5rem);
    font-weight: 700;
    line-height: 1;
    color: var(--lux-gold);
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.error-page .error-heading,
.error-page h1 {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.75rem);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.error-page .error-subtitle,
.error-page p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255, 255, 255, 0.85);
    max-width: 550px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
}

.error-page .btn-lux {
    display: inline-flex;
}

/* === EDITORIAL SECTION === */
.editorial-intro {
    padding: 8rem 0;
    background: var(--lux-bg);
}

.editorial-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 6rem;
    align-items: flex-end;
}

.editorial-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    line-height: 1.1;
    font-weight: 400;
    letter-spacing: -0.02em;
    color: var(--lux-dark);
}

.editorial-desc p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

/* === RITME HARIAN: 2 Jam Analog + Akordeon (student-life.html) ===
   Dua jam 12-jam (00.00-12.00 dan 12.00-24.00) memakai conic-gradient
   murni CSS untuk menandai 4 blok aktivitas sebagai busur berwarna sesuai
   suhu cahaya sungguhan di jam tersebut. Nama kegiatan selalu terlihat di
   daftar akordeon di bawahnya; deskripsi baru tampil saat baris di-tap
   (progressive disclosure, bukan menyembunyikan info penting). Jarum jam
   menunjuk jam device pengunjung secara real-time (dihitung ulang tiap
   menit, bukan animasi berjalan terus). Lihat inline script di bagian
   bawah student-life.html untuk logikanya. */
:root {
    --tl-dawn: #333a72;
    --tl-day: var(--color-secondary);
    --tl-golden: var(--lux-gold);
    --tl-maghrib: #c1622f;
    --tl-dusk: #3a2a5c;
    --ritme-track: transparent;
}

.ritme-clocks {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: clamp(2rem, 6vw, 5rem);
    margin-bottom: 3.5rem;
}

.ritme-clock {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ritme-clock-face-wrap {
    position: relative;
    width: clamp(160px, 24vw, 236px);
    height: clamp(160px, 24vw, 236px);
}

/* Wajah jam: cincin warna jadwal DI BAWAH (disc conic-gradient penuh),
   ditutup lingkaran putih lebih kecil di atasnya — teknik tumpuk biasa,
   tanpa CSS mask (supaya tidak ada risiko gagal render lintas browser). */
.ritme-clock-face {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    box-shadow:
        0 14px 28px rgba(4, 71, 58, 0.16),
        inset 0 1px 2px rgba(255, 255, 255, 0.8);
}

.ritme-clock-face-1 {
    background: conic-gradient(
        from 0deg,
        var(--ritme-track) 0deg 105deg,
        var(--tl-dawn) 105deg 180deg,
        var(--ritme-track) 180deg 210deg,
        var(--tl-day) 210deg 360deg
    );
}

.ritme-clock-face-2 {
    background: conic-gradient(
        from 0deg,
        var(--tl-day) 0deg 90deg,
        var(--ritme-track) 90deg 105deg,
        var(--tl-golden) 105deg 165deg,
        var(--tl-maghrib) 165deg 202.5deg,
        var(--tl-dusk) 202.5deg 285deg,
        var(--ritme-track) 285deg 360deg
    );
}

.ritme-clock-ring {
    position: absolute;
    inset: 0;
}

/* Wajah putih di atas cincin warna, dengan tekstur guilloché halus
   (garis-garis radial tipis khas wajah arloji presisi) */
.ritme-clock-ring::before {
    content: "";
    position: absolute;
    top: 13%;
    left: 13%;
    right: 13%;
    bottom: 13%;
    border-radius: 50%;
    background:
        repeating-conic-gradient(from 0deg, rgba(4, 71, 58, 0.12) 0deg 0.5deg, transparent 0.5deg 6deg),
        #fdfcf9;
    box-shadow: inset 0 1px 3px rgba(4, 71, 58, 0.06);
}

/* Cincin emas tipis persis di batas antara warna jadwal & wajah jam */
.ritme-clock-ring::after {
    content: "";
    position: absolute;
    top: 13%;
    left: 13%;
    right: 13%;
    bottom: 13%;
    border-radius: 50%;
    border: 1px solid rgba(212, 181, 130, 0.5);
}

/* Kilau kaca lembut di kuadran kiri-atas, di atas semua lapisan */
.ritme-clock-face-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.4), transparent 55%);
    pointer-events: none;
    z-index: 5;
}

/* Tanda kecil untuk 8 jam selain 12/3/6/9 */
.ritme-clock-tick {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2px;
    height: 34%;
    margin-left: -1px;
    transform-origin: top center;
}

.ritme-clock-tick::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 2px;
    height: 6px;
    border-radius: 1px;
    background: rgba(4, 71, 58, 0.3);
}

.ritme-clock-mark {
    position: absolute;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--lux-dark);
    z-index: 2;
}

.mark-12 { top: 22%; left: 50%; transform: translate(-50%, -50%); }
.mark-3 { top: 50%; right: 22%; transform: translate(50%, -50%); }
.mark-6 { bottom: 22%; left: 50%; transform: translate(-50%, 50%); }
.mark-9 { top: 50%; left: 22%; transform: translate(-50%, -50%); }

.ritme-clock-center {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    margin: -5px;
    border-radius: 50%;
    background: var(--color-primary);
    box-shadow: 0 0 0 3px #fdfcf9, 0 0 0 4px rgba(212, 181, 130, 0.45);
    z-index: 3;
}

/* Jarum meruncing seperti jarum jam asli, bukan garis lurus */
.ritme-clock-hand {
    position: absolute;
    bottom: 50%;
    left: 50%;
    width: 7px;
    height: 34%;
    margin-left: -3.5px;
    background: var(--color-primary);
    clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
    transform-origin: bottom center;
    filter: drop-shadow(0 2px 2px rgba(4, 71, 58, 0.25));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.ritme-clock-hand.is-active {
    opacity: 1;
}

.ritme-clock-label {
    margin-top: 1rem;
    display: inline-block;
    padding: 0.3rem 0.95rem;
    border-radius: var(--radius-pill);
    background: rgba(4, 71, 58, 0.06);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    color: var(--color-primary);
}

/* --- Daftar akordeon --- */
.ritme-list {
    max-width: 780px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.ritme-note {
    max-width: 780px;
    margin: 1rem auto 0;
    font-size: 0.82rem;
    color: var(--color-text-muted);
    text-align: center;
}

.ritme-row {
    border-radius: var(--radius-md);
    background: #fff;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--color-primary);
    overflow: hidden;
    transition: box-shadow 0.25s ease;
}

.ritme-row.ritme-dawn { border-left-color: var(--tl-dawn); }
.ritme-row.ritme-day { border-left-color: var(--tl-day); }
.ritme-row.ritme-golden { border-left-color: var(--tl-golden); }
.ritme-row.ritme-maghrib { border-left-color: var(--tl-maghrib); }
.ritme-row.ritme-dusk { border-left-color: var(--tl-dusk); }

.ritme-row.is-now {
    box-shadow: var(--shadow-md);
}

.ritme-row-head {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.4rem;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
}

.ritme-chip {
    flex-shrink: 0;
    min-width: 118px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--lux-dark);
}

.ritme-row-title {
    flex: 1;
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--color-primary);
}

.ritme-row-now {
    display: none;
    flex-shrink: 0;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #fff;
    background: var(--color-primary);
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-pill);
}

.ritme-row.is-now .ritme-row-now {
    display: inline-block;
}

.ritme-row-chevron {
    flex-shrink: 0;
    width: 9px;
    height: 9px;
    border-right: 2px solid var(--color-text-muted);
    border-bottom: 2px solid var(--color-text-muted);
    transform: rotate(45deg);
    transition: transform 0.3s ease;
}

.ritme-row.is-open .ritme-row-chevron {
    transform: rotate(-135deg);
}

.ritme-row-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.ritme-row-desc {
    margin: 0;
    padding: 0 1.4rem 1.3rem;
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--color-text-muted);
}

@media (max-width: 768px) {
    .ritme-row-head {
        flex-wrap: wrap;
    }
    .ritme-chip {
        min-width: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ritme-row-panel,
    .ritme-row-chevron {
        transition: none;
    }
}

/* === BENTO GRID & KURIKULUM OPERASIONAL === */
.bento-section-lux {
    padding: 8rem 0;
}

.bento-grid-lux,
.luxury-curriculum-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(260px, auto);
    gap: 1.5rem;
    margin-top: 3rem;
}

.bento-card-lux {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.5s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.03);
    box-shadow: var(--shadow-md);
}

.bento-card-lux:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.bento-card-lux.large {
    grid-column: span 2;
    grid-row: span 2;
    background: var(--color-primary);
    color: #fff;
    justify-content: flex-end;
}

.bento-card-lux.blue {
    background: var(--color-secondary);
    color: #fff;
}

.bento-card-lux.wide {
    grid-column: span 2;
}

.curriculum-card-green {
    background-color: var(--color-primary);
    color: #ffffff;
    padding: 2.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.curriculum-card-blue {
    background-color: var(--color-secondary);
    color: #ffffff;
    padding: 2.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.curriculum-card-dark {
    background-color: var(--lux-dark);
    color: #ffffff;
    padding: 2.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.bento-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    z-index: 0;
    transition: transform 0.8s ease;
}

.bento-card-lux.large:hover .bento-bg-img {
    transform: scale(1.05);
    opacity: 0.4;
}

/* Foto slot di kartu (Student Life, Prestasi): hover zoom berlaku untuk semua kartu,
   bukan hanya kartu besar. */
.bento-card-lux:not(.large):hover .bento-bg-img {
    transform: scale(1.05);
    opacity: 0.4;
}

.bento-content {
    position: relative;
    z-index: 1;
}

.bento-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.bento-card-lux h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: inherit;
}

.bento-card-lux p {
    color: inherit;
    opacity: 0.85;
}

/* === PRESTASI SISWA === */
.prestasi-section-lux {
    background-color: var(--lux-bg);
    position: relative;
}

/* === NEWS & ANNOUNCEMENTS === */
.news-section-lux {
    padding: 5rem 0;
    background-color: #F8F8F8;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23D4B582' stroke-width='0.75' stroke-opacity='0.35'%3E%3Crect x='28' y='28' width='24' height='24' /%3E%3Crect x='28' y='28' width='24' height='24' transform='rotate(45 40 40)' /%3E%3Cpolygon points='40,8 72,40 40,72 8,40' stroke-opacity='0.25' /%3E%3Cline x1='0' y1='0' x2='80' y2='80' stroke-opacity='0.2' /%3E%3Cline x1='0' y1='80' x2='80' y2='0' stroke-opacity='0.2' /%3E%3Cline x1='0' y1='40' x2='80' y2='40' stroke='%2311366E' stroke-opacity='0.25' stroke-dasharray='2 3' /%3E%3Cline x1='40' y1='0' x2='40' y2='80' stroke='%2311366E' stroke-opacity='0.25' stroke-dasharray='2 3' /%3E%3Crect x='-12' y='-12' width='24' height='24' /%3E%3Crect x='-12' y='-12' width='24' height='24' transform='rotate(45 0 0)' /%3E%3Crect x='68' y='-12' width='24' height='24' /%3E%3Crect x='68' y='-12' width='24' height='24' transform='rotate(45 80 0)' /%3E%3Crect x='-12' y='68' width='24' height='24' /%3E%3Crect x='-12' y='68' width='24' height='24' transform='rotate(45 0 80)' /%3E%3Crect x='68' y='68' width='24' height='24' /%3E%3Crect x='68' y='68' width='24' height='24' transform='rotate(45 80 80)' /%3E%3Ccircle cx='40' cy='40' r='1.5' fill='%23D4B582' fill-opacity='0.5' stroke='none' /%3E%3Ccircle cx='0' cy='0' r='1.5' fill='%23D4B582' fill-opacity='0.5' stroke='none' /%3E%3Ccircle cx='80' cy='0' r='1.5' fill='%23D4B582' fill-opacity='0.5' stroke='none' /%3E%3Ccircle cx='0' cy='80' r='1.5' fill='%23D4B582' fill-opacity='0.5' stroke='none' /%3E%3Ccircle cx='80' cy='80' r='1.5' fill='%23D4B582' fill-opacity='0.5' stroke='none' /%3E%3C/g%3E%3C/svg%3E");
    background-size: 80px 80px;
    background-repeat: repeat;
    position: relative;
    overflow: hidden;
}

/* Subtle overlay to fade the pattern for pristine legibility */
.news-section-lux::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(248, 248, 248, 0.92);
    z-index: 0;
    pointer-events: none;
}

.news-section-lux .container {
    position: relative;
    z-index: 1;
}

.section-header-lux {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2.5rem;
}

.section-header-lux.center {
    justify-content: center;
    text-align: center;
    flex-direction: column;
    align-items: center;
}

#newsCard1, #newsCard2, #newsCard3 {
    transition: opacity 0.5s ease-in-out;
}

/* === NEWS FILTER BAR === */
.news-filter-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin: 0 auto 3rem auto;
}

.news-filter-btn {
    padding: 0.6rem 1.4rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-muted);
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    outline: none;
}

.news-filter-btn:hover {
    color: var(--color-primary);
    border-color: var(--color-primary);
    background: rgba(4, 71, 58, 0.05);
}

.news-filter-btn.active {
    color: #ffffff;
    background: var(--color-primary);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-sm);
}

.news-grid-lux, .news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.news-card-lux, .news-card {
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.news-card-lux:hover, .news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.news-img-wrap {
    height: 240px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, rgba(4, 71, 58, 0.08), rgba(212, 181, 130, 0.08));
}

.news-card-lux .news-img-wrap img, .news-img-wrap img, .news-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: saturate(0.9) contrast(1.05) brightness(1.02);
    transition: filter 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.news-card-lux:hover .news-img-wrap img,
.news-card:hover img {
    transform: scale(1.05);
    filter: saturate(1) contrast(1) brightness(1);
}

.news-content-lux, .news-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-tag-lux, .news-date {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-secondary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.news-title-lux {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    line-height: 1.3;
    color: var(--lux-dark);
}

.news-excerpt-lux {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.news-read-lux, .read-more {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-primary);
    display: inline-flex;
    align-items: center;
    position: relative;
    padding-bottom: 2px;
    transition: color 0.3s ease;
}

.news-read-lux::after,
.read-more::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1.5px;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}

.news-card-lux:hover .news-read-lux::after,
.news-read-lux:hover::after,
.read-more:hover::after {
    width: 100%;
}

/* === AFILIASI & MITRA MARQUEE === */
.partners-section {
    padding: 6rem 0;
    background: var(--lux-bg);
}

.partners-layout-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4rem;
}

.partners-text {
    flex: 0 0 220px;
    max-width: 220px;
    text-align: left;
}

.partners-text .section-title-lux {
    font-size: 1.65rem;
    margin-bottom: 0.75rem;
    line-height: 1.25;
}

.partners-text .section-subtitle {
    font-size: 0.85rem;
    line-height: 1.4;
    color: var(--color-text-muted);
    margin-top: 0;
    margin-bottom: 0;
}

.partners-marquee-wrap {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    max-width: 650px;
    margin-top: -1rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    padding: 1rem 0;
    position: relative;
}

.marquee-track {
    display: flex;
    gap: 5rem;
    width: max-content;
    animation: marquee 40s linear infinite;
    align-items: center;
    will-change: transform;
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.marquee-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.marquee-item img {
    height: 50px;
    width: auto;
    object-fit: contain;
    opacity: 1;
    transition: transform 0.3s ease;
    -webkit-user-drag: none;
    user-select: none;
}

.marquee-item:hover img {
    transform: scale(1.1);
}

.marquee-container:hover .marquee-track {
    animation-play-state: paused;
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* === STEPS SECTION & PROSES PENERIMAAN === */
.steps-section-lux {
    padding: 8rem 0;
}

section.luxury-steps-section,
.section.luxury-steps-section,
.luxury-steps-section {
    background-color: var(--lux-bg);
    padding: 6rem 0;
}

.steps-grid-lux,
.luxury-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.step-card-lux {
    text-align: center;
    padding: 2rem 1rem;
    border-top: 1px solid rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.step-num-lux {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--lux-bg);
    color: var(--color-secondary);
    font-family: 'Fraunces', serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.step-card-lux:hover .step-num-lux {
    transform: scale(1.15);
    background-color: var(--lux-gold);
    color: #ffffff;
}

.step-card-lux h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: var(--color-secondary);
    font-family: 'Fraunces', serif;
    transition: color 0.3s ease;
}

.bg-lux-dark .step-card-lux h3 {
    color: #ffffff;
}

.bg-lux-dark .step-card-lux p {
    color: rgba(255, 255, 255, 0.72);
}

.bg-lux-dark .section-lead-lux {
    color: rgba(255, 255, 255, 0.78);
}

.step-card-lux:hover h3 {
    color: var(--lux-gold);
}

.step-card-lux p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* Horizontal Steps Timeline */
.steps-timeline-horizontal {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    position: relative;
    max-width: 1200px;
    width: 100%;
    margin: 3rem auto 0;
}

.step-timeline-item {
    flex: 1;
    text-align: center;
    position: relative;
    padding-top: 20px;
}

.step-timeline-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 63.5px;
    left: 50%;
    width: calc(100% + 1rem);
    height: 0;
    border-top: 2px dashed var(--color-border);
    background: transparent;
    z-index: 0;
}

.step-icon-wrapper {
    position: relative;
    z-index: 1;
    display: inline-block;
    margin-bottom: 1rem;
}

.step-icon-outer {
    background: #ffffff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.step-icon-inner {
    width: 75px;
    height: 75px;
    background: var(--color-secondary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    transition: all 0.3s ease;
}

.step-icon-inner svg {
    width: 30px;
    height: 30px;
}

.step-num-small {
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1;
}

.step-timeline-item h3 {
    font-size: 1rem;
    color: var(--color-text);
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.step-timeline-item p {
    font-size: 0.65rem;
    color: var(--color-text-muted);
    line-height: 1.3;
}

/* Hover Effects */
.step-timeline-item:hover .step-icon-outer {
    background: var(--color-secondary);
    transform: scale(1.1);
}

.step-timeline-item:hover .step-icon-inner {
    background: var(--lux-gold);
}

.step-timeline-item:hover h3 {
    color: var(--lux-gold);
}

.luxury-step-card {
    background-color: #ffffff;
    padding: 2rem 1.5rem;
    border-top: 4px solid var(--lux-gold);
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-md);
}

.luxury-step-num {
    color: var(--lux-gold);
    font-size: 2rem;
    font-weight: bold;
    font-family: var(--font-heading);
    display: block;
}

/* === FINAL CTA SECTIONS === */
.cta-lux {
    background: var(--color-secondary);
    color: #fff;
    padding: 10rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-lux::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(4, 71, 58, 0.4) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.cta-title-lux {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 400;
    margin-bottom: 2rem;
    position: relative;
    color: #fff;
}

.cta-lux p {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.85;
    position: relative;
    color: rgba(255, 255, 255, 0.85);
}

.final-cta {
    padding: 6rem 0;
    background-color: var(--color-primary);
    color: #fff;
    text-align: center;
}

.final-cta h2, .final-cta p {
    color: #fff;
}

/* === CARDS & UTILITY GRIDS === */
.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.intro-image-wrapper img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

.cards-grid {
    display: grid;
    gap: 2rem;
    margin-top: 3rem;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.feature-card, .value-card {
    background: #fff;
    padding: 2.2rem 1.8rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.feature-card:hover, .value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Card Icon Box & Luxury Hover */
.card-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    background: rgba(212, 181, 130, 0.15);
    border: 1px solid rgba(212, 181, 130, 0.3);
    color: #6B5220;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.card-icon-wrap svg {
    width: 26px;
    height: 26px;
    max-width: 26px;
    max-height: 26px;
    display: block;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), stroke 0.3s ease;
}

.feature-card:hover .card-icon-wrap,
.pilar-card:hover .card-icon-wrap,
.curriculum-cat-card:hover .card-icon-wrap {
    transform: scale(1.1);
    background: var(--lux-gold);
    color: #04473a;
    border-color: var(--lux-gold);
    box-shadow: 0 0 24px rgba(212, 181, 130, 0.4);
}

.feature-card:hover .card-icon-wrap svg,
.pilar-card:hover .card-icon-wrap svg,
.curriculum-cat-card:hover .card-icon-wrap svg {
    transform: scale(1.08);
}

/* Universal SVG max size safeguard for card icons */
.feature-card svg,
.bento-card-lux svg,
.bento-card-lux-dark svg,
.profile-card-lux svg,
.curriculum-cat-card svg,
.ekstra-compact-card svg {
    max-width: 48px;
    max-height: 48px;
}

.card-icon {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, color 0.3s ease;
}

.feature-card:hover .card-icon {
    transform: scale(1.1);
    color: var(--lux-gold);
}

.value-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--color-secondary);
    transition: transform 0.3s ease, color 0.3s ease;
}

.value-card:hover .value-icon {
    transform: scale(1.1);
    color: var(--lux-gold);
}

.check-list {
    list-style: none;
    padding: 0;
}

.check-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--color-text-muted);
}

.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: bold;
}

.profile-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    transition: transform 0.3s ease;
    height: 100%;
}

.profile-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.profile-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(212, 181, 130, 0.15);
}

.profile-card h3 {
    color: var(--lux-gold);
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.profile-card p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    margin: 0;
}

/* Programs Page */
.program-option-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.program-option-card {
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.program-option-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.program-option-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.program-content {
    padding: 2.5rem;
}

/* Student Life & Extracurricular */
.facility-card {
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.facility-card:hover {
    transform: translateY(-5px);
}

.facility-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.facility-card h3 {
    padding: 1.5rem 1.5rem 0.5rem;
    font-size: 1.2rem;
}

.facility-card p {
    padding: 0 1.5rem 1.5rem;
    margin: 0;
    font-size: 0.95rem;
}

.tags-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.tag-item {
    background: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-sm);
    font-weight: 500;
    color: var(--color-primary);
    border: 1px solid var(--color-border);
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.tag-item:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

/* Schedule Timeline */
.schedule-timeline {
    position: relative;
    padding-left: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.schedule-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--color-border);
}

.schedule-item {
    position: relative;
    margin-bottom: 2.5rem;
    padding-left: 2rem;
}

.schedule-item::before {
    content: '';
    position: absolute;
    left: -2.5rem;
    top: 0.5rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-secondary);
    border: 2px solid #fff;
}

.schedule-time {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.schedule-card {
    background: #fff;
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    text-align: center;
}

.schedule-card h3 {
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

/* === FAQ ACCORDION === */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--color-border);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 1.5rem 0;
    text-align: left;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--lux-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--color-secondary);
    transition: transform 0.3s ease;
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer p {
    padding-bottom: 1.5rem;
}

/* === CONTACT === */
.contact-list {
    list-style: none;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
    padding: 0;
}

.contact-list li {
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
    color: var(--color-text-muted);
}

.contact-list li:last-child {
    margin-bottom: 1.5rem;
}

.contact-list strong {
    display: block;
    color: var(--color-primary);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.contact-list strong svg {
    vertical-align: -3px;
    margin-right: 4px;
}

.contact-list a {
    color: var(--color-primary);
    font-weight: 600;
}

.contact-map {
    height: 450px;
    background: var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* === LUXURY FLOATING LABEL FORM INPUTS === */
.form-lux {
    width: 100%;
}

.contact-form-card {
    background: #ffffff;
    border: 1px solid rgba(212, 181, 130, 0.35);
    border-radius: var(--radius-lg);
    padding: 2.75rem 2.25rem;
    box-shadow: var(--shadow-lg);
}

.form-group-lux {
    position: relative;
    margin-bottom: 1.5rem;
    width: 100%;
}

.form-input-lux {
    width: 100%;
    padding: 1.35rem 1rem 0.65rem 1rem;
    background: #ffffff;
    border: 1.5px solid rgba(0, 0, 0, 0.12);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text);
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    display: block;
}

.form-input-lux:focus {
    border-color: var(--lux-gold);
    box-shadow: 0 0 0 3px rgba(212, 181, 130, 0.25);
}

.form-textarea-lux {
    resize: vertical;
    min-height: 120px;
}

.form-select-lux {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2304473A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px;
    cursor: pointer;
}

.form-label-lux {
    position: absolute;
    left: 1rem;
    top: 1rem;
    font-size: 0.95rem;
    color: var(--color-text-muted);
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
    transform-origin: left top;
    padding: 0 0.35rem;
    border-radius: var(--radius-sm);
    line-height: 1;
}

/* Floating effect on Focus or when containing text (placeholder not shown).
   :placeholder-shown tidak berlaku untuk <select>, jadi baris kedua di bawah
   sengaja mengecualikan .form-select-lux -- tanpa pengecualian ini, label
   sebuah <select> akan selalu tampak "terisi" walau belum ada pilihan,
   karena :not(:placeholder-shown) otomatis selalu true untuk elemen select. */
.form-input-lux:focus ~ .form-label-lux,
.form-input-lux:not(.form-select-lux):not(:placeholder-shown) ~ .form-label-lux,
.form-select-lux:focus ~ .form-label-lux,
.form-select-lux:valid ~ .form-label-lux {
    transform: translateY(-0.85rem) scale(0.82);
    color: var(--color-primary);
    background-color: #ffffff;
    font-weight: 600;
}

.form-input-lux:focus ~ .form-label-lux,
.form-select-lux:focus ~ .form-label-lux {
    color: var(--color-primary);
}

/* Submit Button Luxury */
.btn-submit-lux {
    width: 100%;
    padding: 1rem 1.5rem;
    background: var(--color-primary);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-pill);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-sm);
}

.btn-submit-lux:hover {
    background: var(--color-secondary);
    box-shadow: 0 8px 24px rgba(17, 54, 110, 0.3);
    transform: translateY(-2px);
}

.btn-submit-lux:active {
    transform: translateY(0);
}

/* === PPDB PAGE === */
.ppdb-hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background-color: var(--color-primary);
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 8rem 1.5rem 4rem;
}

.ppdb-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(4, 71, 58, 0.85), rgba(17, 54, 110, 0.95));
}

.ppdb-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.ppdb-hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin-top: -0.5rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.info-card-section {
    margin-top: -4rem;
    position: relative;
    z-index: 3;
    padding-bottom: 2rem;
}

.ppdb-info-card {
    background: #fff;
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.timeline-section {
    padding: 6rem 0;
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 6rem;
    margin-top: 4rem;
}

.timeline-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.timeline-row.reverse .timeline-text { order: 2; }

.timeline-text .step-num {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--color-secondary);
    line-height: 1;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.timeline-image {
    background-color: var(--lux-bg);
    min-height: 250px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-image img {
    width: 100%;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.timeline-row.start-step {
    display: flex;
    justify-content: center;
    text-align: center;
    margin-bottom: 2rem;
}

.two-week-service {
    background: var(--color-secondary);
    color: #fff;
    padding: 6rem 0;
    text-align: center;
}

.req-info-box {
    background: #fff;
    padding: 3rem 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
    max-width: 600px;
    margin: 0 auto;
}

.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-overlay img {
    max-width: 90%;
    max-height: 90%;
    border-radius: var(--radius-sm);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

/* === GALLERY GRID === */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.gallery-item img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
    filter: saturate(0.9) contrast(1.05) brightness(1.02);
    transition: filter 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-item:hover img {
    transform: scale(1.05);
    filter: saturate(1) contrast(1) brightness(1);
}

/* === CONSOLIDATED FOOTER (GLOBAL) === */
.site-footer, .site-footer-lux {
    background-color: var(--color-secondary);
    color: rgba(255, 255, 255, 0.7);
    padding: 5rem 0 2rem;
}

.footer-grid, .footer-grid-lux {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-about h3, .footer-about-lux h3, .footer-logo {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-family: 'Fraunces', serif;
}

.footer-about p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.footer-col h4, .footer-col-lux h4 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col ul, .footer-col-lux ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li, .footer-col-lux ul li {
    margin-bottom: 0.75rem;
}

.footer-col ul li a, .footer-col-lux ul li a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-col ul li a:hover, .footer-col-lux ul li a:hover {
    color: var(--lux-gold);
    padding-left: 5px;
}

.contact-list-footer {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.contact-list-footer li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.5;
}

.contact-list-footer li svg {
    flex-shrink: 0;
    margin-top: 3px;
    color: var(--lux-gold);
}

.contact-list-footer li a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-list-footer li a:hover {
    color: var(--lux-gold);
}

.site-footer .btn-outline,
.site-footer-lux .btn-outline {
    border: 1px solid var(--lux-gold);
    color: var(--lux-gold);
    background: transparent;
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    display: inline-block;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all 0.3s ease;
}

.site-footer .btn-outline:hover,
.site-footer-lux .btn-outline:hover {
    background: var(--lux-gold);
    color: var(--color-secondary);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    color: var(--lux-gold);
    background: rgba(212, 181, 130, 0.15);
    transform: translateY(-2px);
}

.footer-bottom, .footer-bottom-lux {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p, .footer-bottom-lux p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    margin: 0;
}

/* === FLOATING WHATSAPP BUTTON (GLOBAL) === */
.wa-float-btn {
    position: fixed;
    bottom: 15px;
    right: 15px;
    z-index: 999;
    width: 45px;
    height: 45px;
    background-color: #25D366;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wa-float-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background-color: #25D366;
    z-index: -1;
    animation: wa-pulse 2s infinite;
}

@keyframes wa-pulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

.wa-float-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

.wa-float-btn svg {
    width: 24px;
    height: 24px;
    fill: #ffffff;
}


/* === MOBILE MENU OVERLAY & TOGGLE === */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

body.menu-open {
    overflow: hidden;
}

body.menu-open .site-header {
    background-color: rgba(255, 255, 255, 0.98);
}

body.menu-open .logo {
    color: var(--color-primary);
}

body.menu-open .menu-bar {
    background-color: var(--lux-dark);
}

.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* === SCROLL REVEAL ANIMATIONS === */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.25, 1, 0.5, 1), transform 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

.reveal-stagger {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.25, 1, 0.5, 1), transform 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal-stagger.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* === LEVEL A: FADE-IN (Subtle Opacity-only Scroll Reveal) === */
.fade-in {
    opacity: 0;
    transition: opacity 350ms ease-out;
    will-change: opacity;
}

.fade-in.is-visible {
    opacity: 1;
}

/* === LEVEL B: FADE-STAGGER (Fast & Subtle 10px Stagger) === */
.fade-stagger {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 300ms ease-out, transform 300ms ease-out;
    will-change: opacity, transform;
}

.fade-stagger.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .stagger-item,
    .fade-in,
    .fade-stagger,
    .reveal,
    .reveal-stagger {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* === LUXURY MICRO-INTERACTIONS (FASE 1) === */

/* 1. Text Reveal (Masked Line Animation) */
.text-reveal-wrap {
    overflow: hidden;
    display: inline-block;
    vertical-align: bottom;
}

.text-reveal {
    display: inline-block;
    transform: translateY(100%);
    opacity: 0;
    will-change: transform, opacity;
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.text-reveal-wrap.is-visible .text-reveal,
.text-reveal.is-visible {
    transform: translateY(0);
    opacity: 1;
}

/* 2. Animated Luxury Underline */
.nav-link,
.main-nav .nav-list > li > a:not(.nav-cta):not(.nav-cta-secondary),
.footer-col ul li a,
.footer-col-lux ul li a,
.animated-underline {
    position: relative;
    display: inline-block;
    text-decoration: none;
}

.nav-link::after,
.main-nav .nav-list > li > a:not(.nav-cta):not(.nav-cta-secondary)::after,
.footer-col ul li a::after,
.footer-col-lux ul li a::after,
.animated-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--lux-gold);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after,
.main-nav .nav-list > li > a:not(.nav-cta):not(.nav-cta-secondary):hover::after,
.main-nav .nav-list > li > a:not(.nav-cta):not(.nav-cta-secondary).active::after,
.footer-col ul li a:hover::after,
.footer-col-lux ul li a:hover::after,
.animated-underline:hover::after {
    width: 100%;
}

/* 3. Image Hover & Visual Cohesion (Cinematic Tone & Luxury Zoom) */
.lux-img-zoom {
    overflow: hidden;
    border-radius: var(--radius-md);
    position: relative;
}

.lux-img-zoom img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(0.9) contrast(1.05) brightness(1.02);
    transition: filter 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.lux-img-zoom:hover img {
    transform: scale(1.05);
    filter: saturate(1) contrast(1) brightness(1);
}

/* Gradient Overlay (Vignette / Mood Glass) */
.lux-img-zoom::after,
.news-img-wrap::after,
.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(5, 5, 5, 0.4) 0%, transparent 50%);
    pointer-events: none;
    border-radius: inherit;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.lux-img-zoom:hover::after,
.news-card-lux:hover .news-img-wrap::after,
.gallery-item:hover::after {
    opacity: 0.65;
}

/* === LUXURY MICRO-INTERACTIONS (FASE 2) === */

/* 1. Magnetic Button Element */
.magnetic-btn {
    display: inline-block;
    will-change: transform;
    transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

/* 2. Parallax Geometric Pattern (Islamic Rub el Hizb) */
.parallax-pattern {
    position: absolute;
    top: -80px;
    left: 0;
    right: 0;
    bottom: -80px;
    width: 100%;
    height: calc(100% + 160px);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23D4B582' stroke-width='0.75' stroke-opacity='0.35'%3E%3Crect x='28' y='28' width='24' height='24' /%3E%3Crect x='28' y='28' width='24' height='24' transform='rotate(45 40 40)' /%3E%3Cpolygon points='40,8 72,40 40,72 8,40' stroke-opacity='0.25' /%3E%3Cline x1='0' y1='0' x2='80' y2='80' stroke-opacity='0.2' /%3E%3Cline x1='0' y1='80' x2='80' y2='0' stroke-opacity='0.2' /%3E%3Cline x1='0' y1='40' x2='80' y2='40' stroke='%2311366E' stroke-opacity='0.25' stroke-dasharray='2 3' /%3E%3Cline x1='40' y1='0' x2='40' y2='80' stroke='%2311366E' stroke-opacity='0.25' stroke-dasharray='2 3' /%3E%3Crect x='-12' y='-12' width='24' height='24' /%3E%3Crect x='-12' y='-12' width='24' height='24' transform='rotate(45 0 0)' /%3E%3Crect x='68' y='-12' width='24' height='24' /%3E%3Crect x='68' y='-12' width='24' height='24' transform='rotate(45 80 0)' /%3E%3Crect x='-12' y='68' width='24' height='24' /%3E%3Crect x='-12' y='68' width='24' height='24' transform='rotate(45 0 80)' /%3E%3Crect x='68' y='68' width='24' height='24' /%3E%3Crect x='68' y='68' width='24' height='24' transform='rotate(45 80 80)' /%3E%3Ccircle cx='40' cy='40' r='1.5' fill='%23D4B582' fill-opacity='0.5' stroke='none' /%3E%3Ccircle cx='0' cy='0' r='1.5' fill='%23D4B582' fill-opacity='0.5' stroke='none' /%3E%3Ccircle cx='80' cy='0' r='1.5' fill='%23D4B582' fill-opacity='0.5' stroke='none' /%3E%3Ccircle cx='0' cy='80' r='1.5' fill='%23D4B582' fill-opacity='0.5' stroke='none' /%3E%3Ccircle cx='80' cy='80' r='1.5' fill='%23D4B582' fill-opacity='0.5' stroke='none' /%3E%3C/g%3E%3C/svg%3E");
    background-size: 80px 80px;
    background-repeat: repeat;
    z-index: 0;
    pointer-events: none;
    will-change: transform;
}

.parallax-pattern-overlay {
    position: absolute;
    inset: 0;
    background: rgba(248, 248, 248, 0.92);
    z-index: 0;
    pointer-events: none;
}

.has-parallax-pattern {
    position: relative;
    overflow: hidden;
}

/* === COMPREHENSIVE RESPONSIVE MEDIA QUERIES (MOBILE-FIRST ARCHITECTURE) === */
@media (max-width: 1024px) {
    .bento-grid-lux, .luxury-curriculum-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .bento-card-lux.large {
        grid-column: span 2;
    }
    .editorial-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .news-grid-lux, .news-grid, .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .steps-grid-lux, .luxury-steps-grid, .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid, .footer-grid-lux {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
    .timeline-row, .timeline-row.reverse {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .timeline-row.reverse .timeline-text {
        order: 0;
    }
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        z-index: 1006;
    }
    .main-nav .nav-list {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        height: 100dvh;
        background: #ffffff;
        flex-direction: column;
        align-items: flex-start;
        padding: 5rem 2rem 2rem 2rem;
        gap: 1.25rem;
        box-shadow: -5px 0 24px rgba(4, 71, 58, 0.15);
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1005;
        overflow-y: auto;
    }
    .main-nav .nav-list.active {
        right: 0;
    }
    .main-nav .nav-list li {
        width: 100%;
    }
    .site-header .main-nav .nav-list a,
    .site-header.scrolled .main-nav .nav-list a {
        color: var(--lux-dark);
        font-size: 1.05rem;
        display: block;
        width: 100%;
        padding: 0.4rem 0;
    }
    .site-header .main-nav .nav-list a.active,
    .site-header.scrolled .main-nav .nav-list a.active {
        color: var(--lux-gold);
        font-weight: 700;
    }
    .site-header .main-nav .nav-list a.nav-cta,
    .site-header .main-nav .nav-list a.nav-cta-secondary,
    .site-header.scrolled .main-nav .nav-list a.nav-cta,
    .site-header.scrolled .main-nav .nav-list a.nav-cta-secondary {
        display: block;
        width: 100%;
        text-align: center;
        margin-top: 0.5rem;
        box-sizing: border-box;
    }
    /* Mobile / Drawer Dropdown & Search overrides */
    .nav-item.dropdown {
        width: 100%;
    }
    .nav-item.dropdown .dropdown-menu {
        position: static;
        opacity: 0;
        visibility: hidden;
        max-height: 0;
        overflow: hidden;
        transform: none;
        box-shadow: none;
        background: rgba(0, 0, 0, 0.04);
        padding-left: 0.5rem;
        border-radius: var(--radius-sm);
        min-width: auto;
        border: none;
        pointer-events: auto;
        transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
    }
    .nav-item.dropdown .dropdown-menu::before {
        display: none;
    }
    .nav-item.dropdown.open .dropdown-menu {
        opacity: 1;
        visibility: visible;
        max-height: 300px;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
        margin-top: 0.35rem;
    }
    .site-header .main-nav .dropdown-menu li a,
    .site-header.scrolled .main-nav .dropdown-menu li a {
        padding-left: 1.25rem;
        font-size: 0.9rem;
    }
    .nav-search {
        width: 100%;
        margin: 0.5rem 0;
    }
    .site-header .search-form,
    .site-header .search-form-overlay {
        width: 100%;
        background: rgba(0, 0, 0, 0.05);
        border-color: rgba(0, 0, 0, 0.15);
    }
    .site-header .search-form input,
    .site-header .search-form-overlay input {
        width: 100%;
        color: var(--lux-dark);
    }
    .site-header .search-form input::placeholder,
    .site-header .search-form-overlay input::placeholder {
        color: rgba(0, 0, 0, 0.5);
    }
    .site-header .search-form input:focus,
    .site-header .search-form-overlay input:focus {
        width: 100%;
    }
}

/* Layar pendek (HP landscape, dll): drawer nav dipadatkan supaya submenu
   yang dibuka lebih mungkin langsung kelihatan tanpa harus scroll jauh.
   Dipicu oleh TINGGI layar, bukan lebar/orientasi — lebih presisi karena
   akar masalahnya memang ruang vertikal yang sempit. */
@media (max-width: 1024px) and (max-height: 500px) {
    .main-nav .nav-list {
        padding: 4.5rem 2rem 1rem 2rem;
        gap: 0.6rem;
    }
    .site-header .main-nav .nav-list a,
    .site-header.scrolled .main-nav .nav-list a {
        padding: 0.2rem 0;
    }
    .nav-item.dropdown.open .dropdown-menu {
        margin-top: 0.2rem;
        padding-top: 0.3rem;
        padding-bottom: 0.3rem;
    }
}

@media (max-width: 768px) {
    /* Horizontal Steps Timeline Mobile */
    .steps-timeline-horizontal {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 2rem 1rem;
    }
    .step-timeline-item {
        flex: 0 0 45%;
    }
    .step-timeline-item::after {
        display: none;
    }

    /* Partners Layout Grid Mobile */
    .partners-layout-grid {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }
    .partners-text {
        flex: 1 1 100%;
        max-width: 100%;
    }
    .partners-text .section-title-lux {
        font-size: 1.75rem;
    }
    .partners-marquee-wrap {
        flex: 1 1 100%;
        width: 100%;
    }
    .marquee-track {
        gap: 2.5rem;
    }
    .marquee-item img {
        height: 40px;
    }



    /* Mobile Body & Container overflow safeguards */
    html, body {
        overflow-x: hidden !important;
        overflow-x: clip !important;
        width: 100% !important;
    }
    
    .container {
        padding: 0 1.25rem;
    }

    /* Section Mobile Padding Reduction */
    section.section,
    section.editorial-intro,
    section.bento-section-lux,
    section.news-section-lux,
    section.steps-section-lux,
    section.luxury-steps-section,
    section.final-cta,
    section.timeline-section,
    section.two-week-service,
    body .section,
    body .editorial-intro,
    body .bento-section-lux,
    body .news-section-lux,
    body .steps-section-lux,
    body .luxury-steps-section,
    body .final-cta,
    body .timeline-section,
    body .two-week-service,
    .section,
    .editorial-intro,
    .bento-section-lux,
    .news-section-lux,
    .steps-section-lux,
    .luxury-steps-section,
    .final-cta,
    .timeline-section,
    .two-week-service {
        padding: 3.5rem 0;
    }

    section.cta-lux,
    body .cta-lux,
    .cta-lux {
        padding: 4.5rem 0;
    }

    section.ppdb-hero,
    body .ppdb-hero,
    .ppdb-hero {
        padding: 7rem 1.25rem 3.5rem;
    }

    .page-hero {
        min-height: 0;
        padding: 7rem 0 3rem;
    }

    .hero-lux .hero-lux-content,
    .container.hero-lux-content,
    body .hero-lux-content,
    .hero-lux-content {
        padding: 7rem 1.25rem 3.5rem;
    }

    /* Card Padding Reduction on Mobile */
    body .bento-card-lux,
    body .bento-card-lux-dark,
    body .curriculum-card-green,
    body .curriculum-card-blue,
    body .curriculum-card-dark,
    body .ppdb-info-card,
    body .req-info-box,
    body .program-content,
    body .feature-card,
    body .value-card,
    .bento-card-lux,
    .bento-card-lux-dark,
    .curriculum-card-green,
    .curriculum-card-blue,
    .curriculum-card-dark,
    .ppdb-info-card,
    .req-info-box,
    .program-content,
    .feature-card,
    .value-card {
        padding: 1.5rem;
    }

    footer.site-footer,
    footer.site-footer-lux,
    body .site-footer,
    body .site-footer-lux,
    .site-footer,
    .site-footer-lux {
        padding: 3.5rem 0 1.5rem;
    }

    /* STRICT 1-COLUMN GRID COLLAPSE FOR ALL GRIDS */
    body .bento-grid-lux,
    body .luxury-curriculum-grid,
    body .news-grid-lux,
    body .news-grid,
    body .steps-grid-lux,
    body .luxury-steps-grid,
    body .editorial-grid,
    body .intro-grid,
    body .cards-grid,
    body .grid-2,
    body .grid-3,
    body .grid-4,
    body .program-option-grid,
    body .timeline-row,
    body .gallery-grid,
    body .footer-grid,
    body .footer-grid-lux,
    .bento-grid-lux,
    .luxury-curriculum-grid,
    .news-grid-lux,
    .news-grid,
    .steps-grid-lux,
    .luxury-steps-grid,
    .editorial-grid,
    .intro-grid,
    .cards-grid,
    .grid-2,
    .grid-3,
    .grid-4,
    .program-option-grid,
    .timeline-row,
    .gallery-grid,
    .footer-grid,
    .footer-grid-lux {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Reset Bento Grid Spans */
    .bento-grid-lux .bento-card-lux.large,
    .bento-grid-lux .bento-card-lux.wide,
    .bento-grid-lux .bento-card-lux-dark.large,
    .bento-grid-lux .bento-card-lux-dark.wide,
    body .bento-card-lux.large,
    body .bento-card-lux.wide,
    body .bento-card-lux-dark.large,
    body .bento-card-lux-dark.wide,
    .bento-card-lux.large,
    .bento-card-lux.wide,
    .bento-card-lux-dark.large,
    .bento-card-lux-dark.wide {
        grid-column: span 1;
        grid-row: auto;
        min-height: auto;
    }

    /* Layout & Flexbox Adjustments */
    .site-header .header-container {
        flex-wrap: wrap;
    }

    .site-header .logo,
    .site-header.scrolled .logo {
        color: var(--color-primary);
        margin-right: 0.75rem;
        max-width: calc(100% - 60px);
        display: flex;
        align-items: center;
    }

    .site-header .logo:focus:not(:focus-visible) {
        outline: none;
        box-shadow: none;
    }

    .site-header .logo:focus-visible {
        outline: none;
        box-shadow: 0 0 0 2px var(--lux-gold);
        border-radius: var(--radius-sm);
    }

    .logo-img {
        height: 40px;
    }

    .logo-text {
        margin-left: 0.5rem;
        margin-right: 0;
    }

    .logo-sub {
        font-size: 0.45rem;
        letter-spacing: 1px;
    }

    .logo-main {
        font-size: 0.9rem;
        letter-spacing: 0.5px;
    }

    .logo-loc {
        font-size: 0.6rem;
        letter-spacing: 1px;
    }

    .section-header-lux {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
    }

    .footer-bottom .container {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    .site-header.scrolled {
        padding: 0.8rem 0;
    }

    body .editorial-intro .editorial-desc,
    .editorial-intro .editorial-desc,
    .editorial-grid .editorial-desc,
    body .editorial-desc,
    .editorial-desc {
        min-height: auto;
    }

    body .editorial-intro .contact-map,
    body .editorial-intro .contact-map iframe,
    .editorial-intro .contact-map,
    .editorial-intro .contact-map iframe,
    .editorial-grid .contact-map,
    .editorial-grid .contact-map iframe,
    body .contact-map,
    body .contact-map iframe,
    .contact-map,
    .contact-map iframe {
        min-height: 300px;
        height: 300px;
    }

    .intro-image-wrapper img {
        height: 300px;
    }

    /* Floating WhatsApp Button Mobile Optimization */
    a.wa-float-btn,
    body .wa-float-btn,
    .wa-float-btn {
        bottom: 16px;
        right: 16px;
        width: 50px;
        height: 50px;
        z-index: 998;
        box-shadow: var(--shadow-sm);
        transition: bottom 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    }

    body.sticky-cta-active a.wa-float-btn,
    body.sticky-cta-active .wa-float-btn {
        bottom: 78px;
    }

    a.wa-float-btn svg,
    body .wa-float-btn svg,
    .wa-float-btn svg {
        width: 26px;
        height: 26px;
    }

    /* Mobile Body bottom padding to ensure sticky bar does not cover content */
    body {
        padding-bottom: 70px;
    }
}

@media (max-width: 480px) {
    body .container,
    .container {
        padding: 0 1rem;
    }

    body .hero-lux-title,
    body .section-title-lux,
    body .editorial-title,
    body .cta-title-lux,
    .section-header-lux .section-title-lux,
    .cta-lux .cta-title-lux,
    .editorial-intro .editorial-title,
    .hero-lux-title,
    .section-title-lux,
    .editorial-title,
    .cta-title-lux {
        font-size: clamp(1.75rem, 7vw, 2.5rem);
    }

    .hero-cta-group {
        flex-direction: column;
        width: 100%;
        gap: 0.875rem;
    }

    .hero-cta-group .btn,
    .hero-cta-group .btn-lux,
    .btn,
    .btn-lux {
        width: 100%;
        text-align: center;
        align-self: stretch;
        padding: 0.85rem 1.25rem;
    }

    .info-card-section {
        margin-top: -2rem;
    }
}

/* Institutional Floating Statistics Bar (White Card / Blue Accent) */
.stats-section.bg-lux-dark,
.stats-section,
.luxury-stats-section {
    background-color: transparent;
    background: transparent;
    margin-top: -40px;
    padding: 0;
    border-top: none;
    border-bottom: none;
    position: relative;
    z-index: 10;
}

.stats-section .luxury-stats-grid,
.luxury-stats-section .luxury-stats-grid,
.luxury-stats-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: var(--radius-md);
    padding: 1rem 2rem;
    box-shadow: var(--shadow-lg);
    gap: 0.5rem;
}

.stats-section .luxury-stat-card,
.luxury-stats-section .luxury-stat-card,
.luxury-stat-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    box-shadow: none;
    border-right: 1px solid rgba(0, 0, 0, 0.08);
    padding: 0.6rem 0.75rem;
    flex: 1;
    text-align: left;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.stats-section .luxury-stat-card:last-child,
.luxury-stats-section .luxury-stat-card:last-child,
.luxury-stat-card:last-child {
    border-right: none;
}

.stats-section .luxury-stat-card:hover,
.stats-section .luxury-stat-card:active,
.luxury-stats-section .luxury-stat-card:hover,
.luxury-stats-section .luxury-stat-card:active,
.luxury-stat-card:hover,
.luxury-stat-card:active {
    background-color: transparent;
    box-shadow: none;
}

.stats-section .stat-icon,
.luxury-stats-section .stat-icon,
.stats-section .luxury-stat-card .stat-icon,
.luxury-stats-section .luxury-stat-card .stat-icon,
.luxury-stat-card .stat-icon,
.stat-icon {
    width: 24px;
    height: 24px;
    padding: 8px;
    box-sizing: content-box;
    border-radius: 50%;
    background-color: var(--color-secondary);
    color: #ffffff;
    border: 2px solid transparent;
    margin: 0;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.stats-section .luxury-stat-card:hover .stat-icon,
.stats-section .luxury-stat-card:active .stat-icon,
.luxury-stats-section .luxury-stat-card:hover .stat-icon,
.luxury-stats-section .luxury-stat-card:active .stat-icon,
.luxury-stat-card:hover .stat-icon,
.luxury-stat-card:active .stat-icon {
    border-color: var(--lux-gold);
    background-color: var(--color-secondary);
    color: #ffffff;
    transform: rotate(-15deg);
}

.stat-info {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    text-align: left;
    transition: transform 0.3s ease;
}

.luxury-stat-card:hover .stat-info,
.luxury-stat-card:active .stat-info {
    transform: translateY(-4px);
}

.stats-section .stat-number,
.luxury-stats-section .stat-number,
.stats-section .luxury-stat-card .stat-number,
.luxury-stats-section .luxury-stat-card .stat-number,
.luxury-stat-card .stat-number,
.stat-number {
    font-size: 1.1rem;
    color: var(--color-secondary);
    font-weight: 700;
    font-family: var(--font-heading, 'Fraunces', serif);
    line-height: 1;
    margin: 0;
    letter-spacing: normal;
    display: block;
    transition: color 0.3s ease;
}

.stats-section .stat-label,
.luxury-stats-section .stat-label,
.stats-section .luxury-stat-card .stat-label,
.luxury-stats-section .luxury-stat-card .stat-label,
.luxury-stat-card .stat-label,
.stat-label {
    font-size: 0.45rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
    font-family: var(--font-body, 'Inter', sans-serif);
    margin: 0;
    white-space: nowrap;
    line-height: 1.2;
    display: block;
    transition: color 0.3s ease;
}

.stats-section .luxury-stat-card:hover .stat-number,
.stats-section .luxury-stat-card:active .stat-number,
.stats-section .luxury-stat-card:hover .stat-label,
.stats-section .luxury-stat-card:active .stat-label,
.luxury-stats-section .luxury-stat-card:hover .stat-number,
.luxury-stats-section .luxury-stat-card:active .stat-number,
.luxury-stats-section .luxury-stat-card:hover .stat-label,
.luxury-stats-section .luxury-stat-card:active .stat-label,
.luxury-stat-card:hover .stat-number,
.luxury-stat-card:active .stat-number,
.luxury-stat-card:hover .stat-label,
.luxury-stat-card:active .stat-label {
    color: var(--color-secondary);
}

@media (max-width: 768px) {
    .stats-section,
    .luxury-stats-section {
        margin-top: -30px;
        padding: 0;
    }
    .stats-section .luxury-stats-grid,
    .luxury-stats-section .luxury-stats-grid,
    .luxury-stats-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        border-radius: var(--radius-md);
        gap: 0.5rem;
        padding: 1rem 0.75rem;
    }
    .stats-section .luxury-stat-card,
    .luxury-stats-section .luxury-stat-card,
    .luxury-stat-card {
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        padding: 0.6rem 0.5rem;
        width: 100%;
    }
    .stats-section .luxury-stat-card:last-child,
    .luxury-stats-section .luxury-stat-card:last-child,
    .luxury-stat-card:last-child {
        grid-column: span 2;
        border-bottom: none;
    }
    .stats-section .luxury-stat-card:active,
    .luxury-stats-section .luxury-stat-card:active,
    .luxury-stat-card:active {
        background-color: transparent;
        box-shadow: none;
    }
    .stats-section .luxury-stat-card:active .stat-info,
    .luxury-stats-section .luxury-stat-card:active .stat-info,
    .luxury-stat-card:active .stat-info {
        transform: translateY(-4px);
    }
    .stats-section .luxury-stat-card:active .stat-icon,
    .luxury-stats-section .luxury-stat-card:active .stat-icon,
    .luxury-stat-card:active .stat-icon {
        border-color: var(--lux-gold);
        background-color: var(--color-secondary);
        color: #ffffff;
        transform: rotate(-15deg);
    }
    .stats-section .luxury-stat-card:active .stat-number,
    .stats-section .luxury-stat-card:active .stat-label,
    .luxury-stats-section .luxury-stat-card:active .stat-number,
    .luxury-stats-section .luxury-stat-card:active .stat-label,
    .luxury-stat-card:active .stat-number,
    .luxury-stat-card:active .stat-label {
        color: var(--color-secondary);
    }
}

/* ==========================================================================
   MOBILE STICKY CTA BAR (VANILLA JS & CSS)
   ========================================================================== */
.mobile-sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    background: var(--lux-dark);
    padding: 0.75rem 1rem;
    box-shadow: 0 -4px 24px rgba(4, 71, 58, 0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transform: translateY(100%);
    transition: transform 0.4s ease;
    border-top: 1px solid rgba(212, 181, 130, 0.3);
    box-sizing: border-box;
}

.mobile-sticky-cta.is-visible {
    transform: translateY(0);
}

.mobile-sticky-cta-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: left;
}

.mobile-sticky-cta-badge {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--lux-gold);
    line-height: 1;
}

.mobile-sticky-cta-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.2;
    font-family: var(--font-heading);
}

.mobile-sticky-cta .btn-lux,
.mobile-sticky-cta .mobile-sticky-cta-btn {
    padding: 0.55rem 1rem;
    font-size: 0.8rem;
    white-space: nowrap;
    flex-shrink: 0;
    width: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
}

@media (min-width: 769px) {
    .mobile-sticky-cta {
        display: none !important;
    }
}

/* ==========================================================================
   IOS AUTO-ZOOM FIX (16PX ON MOBILE INPUTS)
   ========================================================================== */
@media (max-width: 768px) {
    input,
    textarea,
    select,
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="search"],
    input[type="password"],
    input[type="number"],
    .form-input-lux,
    .form-select-lux,
    .form-textarea-lux,
    .search-form input,
    .search-form-overlay input {
        font-size: 16px !important;
    }
}

/* ==========================================================================
   TACTILE FEEDBACK (TOUCH & CLICK ACTIVE STATES)
   ========================================================================== */
.btn-lux:active,
.btn:active,
.btn-gold-lux:active,
.btn-primary-lux:active,
.btn-outline-lux:active,
.btn-submit-lux:active,
.nav-link:active,
.nav-list a:active,
.dropdown-menu a:active,
.feature-card:active,
.bento-card-lux:active,
.news-card-lux:active,
.step-card-lux:active,
.facility-card:active,
.value-card:active,
.news-filter-btn:active,
.faq-question:active,
.menu-toggle:active,
.mobile-sticky-cta-btn:active {
    transform: scale(0.96) !important;
    transition: transform 0.1s ease !important;
}

/* === BERITA DETAIL PAGE === */
.article-back-link {
    display: inline-block;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-primary);
}

.article-detail-wrap {
    max-width: 760px;
    margin: 0 auto;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.article-cover {
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, rgba(4, 71, 58, 0.08), rgba(212, 181, 130, 0.08));
    box-shadow: var(--shadow-md);
}

.article-cover img {
    width: 100%;
    max-height: 480px;
    object-fit: contain;
}

.article-title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    line-height: 1.25;
    color: var(--lux-dark);
    margin-bottom: 1rem;
}

.article-body p {
    margin-bottom: 1.25rem;
    color: var(--color-text);
    font-size: 1.05rem;
    line-height: 1.8;
}

.article-not-found {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--color-text-muted);
}

/* === ABOUT PAGE ===
   Susunan editorial untuk about.html: judul di kolom kiri, isi di kolom kanan.
   Tanpa kartu dan ikon; struktur dibentuk oleh garis tipis dan tipografi. */
.about-intro {
    background: var(--lux-bg);
}

.about-split {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(2.5rem, 6vw, 6rem);
    align-items: start;
}

.about-split-head {
    position: sticky;
    top: 7rem;
}

.about-heading {
    margin: 0 0 1.5rem;
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.about-split-head p {
    max-width: 52ch;
    font-size: 1.02rem;
    line-height: 1.8;
}

.about-split-head .about-lead {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--color-text);
}

/* Sejarah: satu-satunya bagian yang benar-benar berurutan, jadi memakai timeline */
.about-timeline {
    list-style: none;
    margin: 0;
    padding: 0 0 0 2rem;
    border-left: 1px solid rgba(4, 71, 58, 0.25);
}

.about-timeline-item {
    position: relative;
    padding-bottom: 2.75rem;
}

.about-timeline-item:last-child {
    padding-bottom: 0;
}

.about-timeline-item::before {
    content: "";
    position: absolute;
    top: 0.75rem;
    left: calc(-2rem - 4px);
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--color-primary);
}

.about-timeline-when {
    display: block;
    margin-bottom: 0.4rem;
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 2.4vw, 1.9rem);
    line-height: 1.2;
    color: var(--color-primary);
}

.about-timeline-item p {
    margin: 0;
    max-width: 46ch;
    font-size: 1.05rem;
    line-height: 1.7;
}

/* Data sekolah */
.about-facts {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 2rem 1.5rem;
    margin: clamp(3rem, 6vw, 5rem) 0 0;
    padding: 2rem 0 0;
    border-top: 1px solid rgba(4, 71, 58, 0.2);
}

.about-fact {
    display: flex;
    flex-direction: column-reverse;
    justify-content: flex-end;
    gap: 0.4rem;
}

.about-fact dt {
    font-size: 0.875rem;
    line-height: 1.4;
    color: var(--color-text-muted);
}

.about-fact dd {
    margin: 0;
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--color-primary);
}

/* Foto lingkungan (bisa diganti admin lewat Kelola Gambar Situs) */
.about-photo {
    position: relative;
    margin: clamp(3rem, 6vw, 5rem) 0 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: var(--color-primary);
    box-shadow: var(--shadow-lg);
}

.about-photo img {
    display: block;
    width: 100%;
    height: 440px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.about-photo:hover img {
    transform: scale(1.02);
}

.about-photo figcaption {
    position: absolute;
    bottom: 1.25rem;
    left: 1.25rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(212, 181, 130, 0.3);
    background: rgba(5, 5, 5, 0.75);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: #fff;
    font-size: 0.85rem;
}

.about-photo .caption-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--lux-gold);
}

@media (prefers-reduced-motion: reduce) {
    .about-photo img {
        transition: none;
    }

    .about-photo:hover img {
        transform: none;
    }
}

@media (max-width: 1024px) {
    .about-split {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .about-split-head {
        position: static;
    }

    .about-facts {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .about-photo img {
        height: 280px;
    }
}

@media (max-width: 640px) {
    .about-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

/* Pola geometris (Rub el Hizb), dipakai sebagai isi kartu besar di About dan Prestasi. */
:root {
    --pattern-geometric: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23D4B582' stroke-width='0.75' stroke-opacity='0.35'%3E%3Crect x='28' y='28' width='24' height='24' /%3E%3Crect x='28' y='28' width='24' height='24' transform='rotate(45 40 40)' /%3E%3Cpolygon points='40,8 72,40 40,72 8,40' stroke-opacity='0.25' /%3E%3Cline x1='0' y1='0' x2='80' y2='80' stroke-opacity='0.2' /%3E%3Cline x1='0' y1='80' x2='80' y2='0' stroke-opacity='0.2' /%3E%3Cline x1='0' y1='40' x2='80' y2='40' stroke='%2311366E' stroke-opacity='0.25' stroke-dasharray='2 3' /%3E%3Cline x1='40' y1='0' x2='40' y2='80' stroke='%2311366E' stroke-opacity='0.25' stroke-dasharray='2 3' /%3E%3Crect x='-12' y='-12' width='24' height='24' /%3E%3Crect x='-12' y='-12' width='24' height='24' transform='rotate(45 0 0)' /%3E%3Crect x='68' y='-12' width='24' height='24' /%3E%3Crect x='68' y='-12' width='24' height='24' transform='rotate(45 80 0)' /%3E%3Crect x='-12' y='68' width='24' height='24' /%3E%3Crect x='-12' y='68' width='24' height='24' transform='rotate(45 0 80)' /%3E%3Crect x='68' y='68' width='24' height='24' /%3E%3Crect x='68' y='68' width='24' height='24' transform='rotate(45 80 80)' /%3E%3Ccircle cx='40' cy='40' r='1.5' fill='%23D4B582' fill-opacity='0.5' stroke='none' /%3E%3Ccircle cx='0' cy='0' r='1.5' fill='%23D4B582' fill-opacity='0.5' stroke='none' /%3E%3Ccircle cx='80' cy='0' r='1.5' fill='%23D4B582' fill-opacity='0.5' stroke='none' /%3E%3Ccircle cx='0' cy='80' r='1.5' fill='%23D4B582' fill-opacity='0.5' stroke='none' /%3E%3Ccircle cx='80' cy='80' r='1.5' fill='%23D4B582' fill-opacity='0.5' stroke='none' /%3E%3C/g%3E%3C/svg%3E");
}

/* Kartu besar tanpa foto: ruang kosongnya diisi pola yang sama dengan hero,
   agar tampak disengaja dan menyatu dengan identitas sekolah. */
.about-bento .bento-card-lux-dark.large::before,
.prestasi-bento .bento-card-lux.large::before,
.student-life-bento .bento-card-lux-dark.large::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--pattern-geometric);
    background-size: 80px 80px;
    opacity: 0.55;
    -webkit-mask-image: linear-gradient(to bottom left, #000 0%, transparent 62%);
    mask-image: linear-gradient(to bottom left, #000 0%, transparent 62%);
    pointer-events: none;
}

.about-bento .bento-card-lux-dark.large h3,
.prestasi-bento .bento-card-lux.large h3,
.student-life-bento .bento-card-lux-dark.large h3 {
    font-size: clamp(1.5rem, 2.4vw, 2rem);
}

.about-bento .bento-card-lux-dark.large p,
.prestasi-bento .bento-card-lux.large p,
.student-life-bento .bento-card-lux-dark.large p {
    max-width: 46ch;
    font-size: 1.05rem;
}

.article-body h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    line-height: 1.3;
    color: var(--lux-dark);
    margin: 2rem 0 1rem;
}

.article-body h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    line-height: 1.3;
    color: var(--lux-dark);
    margin: 1.75rem 0 0.75rem;
}

.article-body img {
    width: 100%;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin: 1.5rem 0;
    display: block;
}

.article-body blockquote {
    border-left: 3px solid var(--lux-gold);
    padding: 0.75rem 1.25rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--color-text-muted);
    background: rgba(212, 181, 130, 0.1);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.article-body ul,
.article-body ol {
    margin: 0 0 1.25rem 1.5rem;
    color: var(--color-text);
    line-height: 1.8;
}

.article-body strong {
    color: var(--lux-dark);
}

/* Unduh brosur/flyer PPDB: dulu section penuh dengan judul sendiri, sekarang
   baris tautan ringkas di bawah tombol hero -- brosur bersifat pelengkap,
   bukan langkah utama, jadi tidak perlu seukuran section sendiri. */
.ppdb-docs-inline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem 0.75rem;
    margin-top: 1.75rem;
}

.ppdb-docs-inline-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
}

/* Diberi bentuk pil dengan latar dan garis tipis supaya jelas terlihat sebagai
   tautan yang bisa diklik di atas hero gelap, bukan tenggelam sebagai teks biasa. */
.ppdb-doc-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.1rem;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(212, 181, 130, 0.4);
    font-size: 0.88rem;
    font-weight: 500;
    color: #ffffff;
    text-decoration: none;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.ppdb-doc-link svg {
    flex-shrink: 0;
    color: var(--lux-gold);
}

.ppdb-doc-link:hover {
    background: var(--lux-gold);
    border-color: var(--lux-gold);
    color: var(--color-primary);
    transform: translateY(-2px);
}

.ppdb-doc-link:hover svg {
    color: var(--color-primary);
}

/* Saat foto asli sudah diunggah (bento-bg-img tidak lagi hidden), pola geometris
   disembunyikan supaya tidak bertumpuk dengan foto (foto tampil di opacity rendah). */
.prestasi-bento .bento-card-lux.large:has(.bento-bg-img:not([hidden]))::before,
.student-life-bento .bento-card-lux-dark.large:has(.bento-bg-img:not([hidden]))::before {
    display: none;
}

/* === PPDB Timeline: penghubung visual + label zoom untuk mobile === */
.timeline {
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0.5rem;
    bottom: 0.5rem;
    left: 50%;
    width: 2px;
    background: var(--color-border);
    transform: translateX(-50%);
    z-index: 0;
}

.timeline-row {
    position: relative;
    z-index: 1;
}

.timeline-row.start-step::before {
    content: none;
}

.timeline-text .step-num {
    transition: opacity 0.4s ease, color 0.4s ease;
}

.timeline-row.is-active .step-num {
    opacity: 1;
    color: var(--color-secondary);
}

.timeline-image {
    position: relative;
}

.zoom-hint {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    background: rgba(4, 71, 58, 0.85);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    border-radius: 100px;
    pointer-events: none;
}

.zoom-hint svg {
    stroke: #fff;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .timeline::before {
        left: 1rem;
    }
}

/* === PPDB Scrollytelling (sticky media panel + caption list) === */
.scrolly {
    position: relative;
}

.scrolly-media-col {
    position: sticky;
    top: 4.5rem;
    z-index: 5;
    margin-bottom: 1rem;
}

.scrolly-media-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 42vh;
    max-height: 42dvh;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--lux-bg);
    box-shadow: var(--shadow-lg);
}

.scrolly-media-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 0.5s ease, transform 0.6s ease;
    will-change: opacity, transform;
}

.scrolly-media-slide.is-active {
    opacity: 1;
    transform: scale(1);
}

.scrolly-media-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #ffffff;
    display: block;
}

.scrolly-portal-mock {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background: #fff;
    position: relative;
    padding-top: 2.5rem;
    box-sizing: border-box;
}
.scrolly-portal-caption {
    font-size: 0.85rem;
    color: var(--color-primary);
    opacity: 0.55;
    font-weight: 500;
}

.scrolly-portal-glyph {
    width: 22%;
    min-width: 36px;
    max-width: 58px;
    stroke: var(--color-primary);
    opacity: 0.28;
}

.scrolly-portal-mock::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2.5rem;
    background: #f0ede4;
    border-bottom: 1px solid var(--color-border);
}

.scrolly-portal-dot {
    position: absolute;
    top: 1.15rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-border);
}
.scrolly-portal-dot:nth-child(1) { left: 1rem; }
.scrolly-portal-dot:nth-child(2) { left: 1.7rem; }
.scrolly-portal-dot:nth-child(3) { left: 2.4rem; }

.scrolly-portal-url {
    position: absolute;
    top: 1.05rem;
    left: 4.5rem;
    font-size: 0.8rem;
    color: #667;
    font-family: monospace;
}

.scrolly-zoom-hint {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    padding: 0.35rem 0.75rem;
    background: rgba(4, 71, 58, 0.85);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    border-radius: 100px;
    pointer-events: none;
    z-index: 2;
}

.scrolly-media-frame[data-active-step="1"] .scrolly-zoom-hint {
    display: none;
}

.scrolly-progress {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.scrolly-progress-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-border);
    transition: background 0.3s ease, transform 0.3s ease;
}

.scrolly-progress-dot.is-active {
    background: var(--color-secondary);
    transform: scale(1.3);
}

.scrolly-caption-col {
    display: flex;
    flex-direction: column;
}

.scrolly-caption {
    padding: 1.75rem 0;
}
.scrolly-caption .step-num {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--color-secondary);
    line-height: 1;
    margin-bottom: 1rem;
    opacity: 0.5;
}

@media (prefers-reduced-motion: reduce) {
    .scrolly-media-slide {
        transition: opacity 0.2s ease;
        transform: none !important;
    }
}

@media (min-width: 900px) {
    .scrolly {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
        align-items: start;
    }
    .scrolly-caption-col {
        order: 1;
    }
    .scrolly-media-col {
        order: 2;
        top: 7rem;
        margin-bottom: 0;
    }
    .scrolly-media-frame {
        aspect-ratio: 16 / 9;
        max-height: none;
    }
    .scrolly-caption {
        min-height: 46vh;
        min-height: 46dvh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        opacity: 0.35;
        transition: opacity 0.4s ease;
    }
    .scrolly-caption.is-active {
        opacity: 1;
    }
    .scrolly-caption:first-child,
    .scrolly-caption:last-child {
        min-height: 34vh;
        min-height: 34dvh;
    }
}


/* === Pangkas jarak antar section "Info Portal" & "Langkah-Langkah" === */
.section.editorial-intro { padding-bottom: 1.5rem; }
.section.timeline-section { padding-top: 1.5rem; }

/* === PPDB Scrollytelling: garis progres + cahaya yang mengikuti scroll === */
.scrolly-caption-col {
    position: relative;
    padding-left: 1.75rem;
}

.scrolly-rail {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 2px;
    background: var(--color-border);
    border-radius: 2px;
    pointer-events: none;
}

.scrolly-rail-fill {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, var(--color-primary, #04473A), #C5A059);
    border-radius: 2px;
    transform-origin: top;
    transform: scaleY(0);
    will-change: transform;
}

.scrolly-rail-glow {
    position: absolute;
    top: 0;
    left: 50%;
    width: 10px;
    height: 10px;
    margin: -5px 0 0 -5px;
    border-radius: 50%;
    background: #C5A059;
    box-shadow: 0 0 10px 3px rgba(197, 160, 89, 0.55), 0 0 22px 8px rgba(197, 160, 89, 0.25);
    opacity: 0;
    transition: opacity 0.3s ease;
    will-change: transform, opacity;
}

@media (prefers-reduced-motion: reduce) {
    .scrolly-rail-glow {
        display: none;
    }
}

/* garis disisipkan sebagai elemen pertama, jadi langkah 1 butuh aturan sendiri */
@media (min-width: 900px) {
    .scrolly-rail + .scrolly-caption {
        min-height: 34vh;
        min-height: 34dvh;
    }
}

/* HP: beri jarak dari header agar panel gambar tidak tertutup */
@media (max-width: 899px) {
    .scrolly-media-col {
        top: 5.5rem;
    }
}

/* HP: sembunyikan garis progres bercahaya */
@media (max-width: 899px) {
    .scrolly-rail {
        display: none;
    }
    .scrolly-caption-col {
        padding-left: 0;
    }
}

/* Profil Lulusan: tag mengalir + daftar definisi (pengganti grid kartu ikon) */
.profil-lulusan-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin: 0 auto 2.5rem;
    max-width: 720px;
}

.profil-lulusan-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.1rem 2.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.profil-lulusan-item {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 0.5rem 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
}

.profil-lulusan-item dt {
    font-weight: 600;
    color: var(--lux-dark, var(--color-primary));
}

.profil-lulusan-item dd {
    margin: 0;
    color: var(--color-text-muted);
    line-height: 1.6;
}

@media (max-width: 640px) {
    .profil-lulusan-item {
        grid-template-columns: 1fr;
        gap: 0.3rem;
    }
}
