/*
 * Public Pages — Kelas Dunia / World-Class
 * Tipografi premium, visual dramatis, polish menyeluruh
 */

/* ========== VARIABLES PREMIUM ========== */
:root {
    --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --pro-primary: #0d5c42;
    --pro-primary-dark: #084530;
    --pro-primary-light: #0f766e;
    --pro-accent: #14b8a6;
    --pro-gold: #d4a853;
    --pro-gold-soft: rgba(212, 168, 83, 0.15);
    --pro-text: #0f172a;
    --pro-text-muted: #475569;
    --pro-bg: #fafbfc;
    --pro-card-bg: #ffffff;
    --pro-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --pro-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
    --pro-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    --pro-shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.12);
    --pro-radius: 16px;
    --pro-radius-lg: 24px;
    --pro-transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== GLOBAL TYPOGRAPHY ========== */
body {
    font-family: var(--font-display);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: -0.01em;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    letter-spacing: -0.03em;
    font-weight: 700;
}

/* ========== HEADER — Premium Glass ========== */
.header {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: saturate(200%) blur(20px);
    -webkit-backdrop-filter: saturate(200%) blur(20px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    padding: 0.875rem 0;
    transition: all var(--pro-transition);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 1px 0 rgba(255,255,255,0.9) inset, 0 8px 30px rgba(0, 0, 0, 0.06);
}

.logo-img {
    height: 54px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo:hover .logo-img {
    transform: scale(1.03);
}

.nav-menu a {
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.01em;
    color: var(--pro-text-muted);
    position: relative;
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
    transition: color 0.25s ease, background 0.25s ease;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0.25rem;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, var(--pro-primary), var(--pro-accent));
    border-radius: 1px;
    transition: transform 0.3s ease;
}

.nav-menu a:hover {
    color: var(--pro-primary);
    background: rgba(13, 92, 66, 0.05);
}

.nav-menu a:hover::after {
    transform: translateX(-50%) scaleX(1);
}

/* ========== PAGE HERO — Dramatis Kelas Dunia ========== */
.page-hero {
    position: relative;
    padding: 5.5rem 0 4.5rem;
    margin-top: 0;
    min-height: 0;
    overflow: hidden;
    background: 
        radial-gradient(ellipse 120% 80% at 50% -20%, rgba(20, 184, 166, 0.25), transparent 50%),
        radial-gradient(ellipse 80% 60% at 100% 50%, rgba(13, 92, 66, 0.4), transparent 45%),
        radial-gradient(ellipse 80% 60% at 0% 80%, rgba(15, 118, 110, 0.35), transparent 45%),
        linear-gradient(160deg, var(--pro-primary-dark) 0%, var(--pro-primary) 40%, #0f766e 100%);
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    mix-blend-mode: overlay;
}

.page-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    pointer-events: none;
}

.page-hero .container {
    position: relative;
    z-index: 2;
}

.page-hero .hero-content {
    text-align: center;
    max-width: 100%;
}

.page-hero .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
}

.page-hero .hero-tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 100px;
    margin-bottom: 1.25rem;
    backdrop-filter: blur(8px);
}

.page-hero .hero-content h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.15;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.2);
    color: #fff;
}

.page-hero .hero-subtitle {
    font-size: 1.0625rem;
    line-height: 1.7;
    opacity: 0.92;
    color: rgba(255, 255, 255, 0.95);
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

/* ========== SECTION HEADER — Garis Emas Aksen ========== */
.section-header {
    margin-bottom: 3rem;
}

.section-header h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 0.75rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--pro-text);
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--pro-primary), var(--pro-accent));
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(13, 92, 66, 0.3);
}

.section-header p {
    color: var(--pro-text-muted);
    font-size: 1.0625rem;
    margin-top: 0.75rem;
}

/* ========== FEATURE CARDS — Premium ========== */
.features {
    background: var(--pro-bg);
}

.feature-card {
    background: var(--pro-card-bg);
    border-radius: var(--pro-radius);
    padding: 2.25rem;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: var(--pro-shadow);
    transition: all var(--pro-transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--pro-primary), var(--pro-accent));
    opacity: 0;
    transition: opacity 0.35s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--pro-shadow-xl);
    border-color: rgba(13, 92, 66, 0.12);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(13, 92, 66, 0.08), rgba(20, 184, 166, 0.08));
    color: var(--pro-primary);
    font-size: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: transform 0.35s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.05);
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--pro-text);
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--pro-text-muted);
    font-size: 0.9375rem;
    line-height: 1.65;
}

.btn-link {
    font-weight: 600;
    color: var(--pro-primary);
    transition: color 0.25s ease, letter-spacing 0.25s ease;
}

.feature-card:hover .btn-link {
    color: var(--pro-primary-light);
    letter-spacing: 0.02em;
}

/* ========== BERITA / CONTENT CARDS — Kelas Dunia ========== */
.section {
    padding: 4.5rem 0;
}

.section.bg-light {
    background: var(--pro-bg);
}

.berita-grid {
    gap: 2rem;
}

.berita-card {
    background: var(--pro-card-bg);
    border-radius: var(--pro-radius);
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: var(--pro-shadow);
    transition: all var(--pro-transition);
}

.berita-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--pro-shadow-xl);
    border-color: rgba(13, 92, 66, 0.1);
}

.berita-image {
    height: 240px;
    overflow: hidden;
}

.berita-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.berita-card:hover .berita-image img {
    transform: scale(1.06);
}

.berita-content {
    padding: 1.75rem 2rem;
}

.berita-kategori {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--pro-primary), var(--pro-primary-light));
    color: #fff;
    padding: 0.35rem 0.85rem;
    border-radius: 100px;
    margin-bottom: 1rem;
    display: inline-block;
}

.berita-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.4;
}

.berita-content h3 a {
    color: var(--pro-text);
    text-decoration: none;
    transition: color 0.25s ease;
}

.berita-card:hover .berita-content h3 a {
    color: var(--pro-primary);
}

.berita-content p {
    color: var(--pro-text-muted);
    font-size: 0.9375rem;
    line-height: 1.65;
}

.berita-meta {
    font-size: 0.8125rem;
    color: var(--pro-text-muted);
    margin-top: 1rem;
}

/* ========== BUTTONS — Premium ========== */
.btn-primary {
    background: linear-gradient(135deg, var(--pro-primary) 0%, var(--pro-primary-light) 100%);
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 0.875rem 1.75rem;
    border-radius: 12px;
    box-shadow: 0 4px 14px 0 rgba(13, 92, 66, 0.4);
    border: none;
    transition: all var(--pro-transition);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px 0 rgba(13, 92, 66, 0.45);
    background: linear-gradient(135deg, var(--pro-primary-dark) 0%, var(--pro-primary) 100%);
}

.btn-secondary {
    font-weight: 600;
    border-radius: 12px;
    padding: 0.875rem 1.75rem;
    transition: all var(--pro-transition);
}

.btn-secondary:hover {
    transform: translateY(-1px);
}

/* ========== FOOTER — Premium Gelap Kelas Dunia ========== */
.footer {
    background: linear-gradient(180deg, #0a0f1a 0%, #060a10 100%);
    color: #e2e8f0;
    padding: 4.5rem 0 0;
    margin-top: 6rem;
    border-top: none;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--pro-primary), var(--pro-accent), var(--pro-primary));
    opacity: 0.95;
}

.footer::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 50% at 50% 100%, rgba(13, 92, 66, 0.08), transparent 60%);
    pointer-events: none;
}

.footer-content {
    position: relative;
    z-index: 1;
    gap: 4rem;
    margin-bottom: 3rem;
    padding-bottom: 2.5rem;
}

.footer-brand {
    max-width: 360px;
}

.footer-logo-img {
    height: 58px;
    filter: brightness(0) invert(1);
    opacity: 0.95;
}

.footer-description {
    color: rgba(226, 232, 240, 0.7);
    font-size: 0.9375rem;
    line-height: 1.8;
    margin-top: 1rem;
}

.footer-title {
    font-size: 0.8rem;
    font-weight: 800;
    color: #f8fafc;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.footer-links a {
    color: rgba(226, 232, 240, 0.72);
    font-size: 0.9375rem;
    transition: all 0.25s ease;
}

.footer-links a:hover {
    color: #fff;
    padding-left: 4px;
}

.social-link {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(226, 232, 240, 0.9);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: linear-gradient(135deg, var(--pro-primary), var(--pro-accent));
    color: #fff;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(13, 92, 66, 0.35);
}

.footer-bottom {
    padding: 1.75rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    z-index: 1;
}

.copyright,
.powered-by {
    color: rgba(226, 232, 240, 0.5);
    font-size: 0.8125rem;
    font-weight: 500;
}

.contact-item {
    color: rgba(226, 232, 240, 0.78);
}

.contact-item i {
    color: var(--pro-accent);
}

/* ========== FILTER BAR ========== */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.5rem;
    align-items: center;
}

.filter-bar input[type="text"] {
    flex: 1;
    min-width: 220px;
    padding: 0.875rem 1.25rem;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 12px;
    font-size: 0.9375rem;
    font-family: var(--font-display);
    transition: border-color 0.25s, box-shadow 0.25s;
}

.filter-bar input[type="text"]:focus {
    outline: none;
    border-color: var(--pro-primary);
    box-shadow: 0 0 0 4px rgba(13, 92, 66, 0.1);
}

.filter-bar select {
    padding: 0.875rem 1.25rem;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 12px;
    font-size: 0.9375rem;
    font-family: var(--font-display);
    background: #fff;
    cursor: pointer;
    transition: border-color 0.25s;
}

.filter-bar select:focus {
    outline: none;
    border-color: var(--pro-primary);
}

/* ========== EMPTY STATE ========== */
.empty-state {
    text-align: center;
    padding: 4.5rem 2rem;
    background: var(--pro-bg);
    border-radius: var(--pro-radius-lg);
    border: 1px dashed rgba(15, 23, 42, 0.12);
}

.empty-state i,
.empty-state .fas {
    font-size: 3.5rem;
    color: rgba(15, 23, 42, 0.2);
    margin-bottom: 1.25rem;
    display: block !important;
}

.empty-state p {
    color: var(--pro-text-muted);
    font-size: 1.0625rem;
    font-weight: 500;
}

/* ========== PAGINATION ========== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.pagination a {
    padding: 0.7rem 1.35rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.875rem;
    transition: all 0.25s ease;
}

/* ========== HERO SUMMARY CARD (Home) — Premium ========== */
.hero-summary-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-radius: var(--pro-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: var(--pro-shadow-xl);
    padding: 2rem;
}

.hero-summary-item {
    border-radius: 14px;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: var(--pro-bg);
    transition: all 0.3s ease;
}

.hero-summary-item:hover {
    border-color: rgba(13, 92, 66, 0.2);
    background: #fff;
    transform: translateY(-2px);
    box-shadow: var(--pro-shadow);
}

/* ========== CONTAINER — Lebar Optimal ========== */
.container {
    max-width: 1200px;
}

/* ========== SMOOTH SCROLL ========== */
html {
    scroll-behavior: smooth;
}

/* ========== HOME HERO — Kelas Dunia (full-page) ========== */
body .hero .hero-bg-overlay {
    background: linear-gradient(
        150deg,
        rgba(8, 69, 48, 0.55) 0%,
        rgba(13, 92, 66, 0.4) 35%,
        rgba(15, 118, 110, 0.25) 70%,
        rgba(0, 0, 0, 0.15) 100%
    );
}

body .hero .hero-tag {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 0.45rem 1rem;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(12px);
}

body .hero .hero-content h1 {
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.15;
    text-shadow: 0 2px 32px rgba(0, 0, 0, 0.25);
}

body .hero .hero-subtitle {
    font-size: 1.0625rem;
    line-height: 1.75;
    letter-spacing: -0.01em;
    opacity: 0.95;
}

body .hero .hero-actions .btn-primary {
    background: linear-gradient(135deg, var(--pro-primary), var(--pro-primary-light));
    box-shadow: 0 4px 20px rgba(13, 92, 66, 0.45);
    font-weight: 700;
    padding: 0.875rem 1.75rem;
    border-radius: 12px;
    transition: all var(--pro-transition);
}

body .hero .hero-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(13, 92, 66, 0.5);
}

body .hero .hero-actions .btn-secondary,
body .hero .hero-actions .hero-secondary-btn {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    font-weight: 600;
    padding: 0.875rem 1.75rem;
    border-radius: 12px;
    color: var(--pro-text);
    transition: all var(--pro-transition);
}

body .hero .hero-actions .btn-secondary:hover,
body .hero .hero-actions .hero-secondary-btn:hover {
    background: #fff;
    transform: translateY(-2px);
    color: var(--pro-primary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* ========== KELAS DUNIA — Sentuhan Akhir ========== */

/* Text selection — brand color */
::selection {
    background: rgba(13, 92, 66, 0.2);
    color: var(--pro-text);
}

::-moz-selection {
    background: rgba(13, 92, 66, 0.2);
    color: var(--pro-text);
}

/* Scrollbar — premium slim */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--pro-bg);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(13, 92, 66, 0.4), rgba(15, 118, 110, 0.35));
    border-radius: 10px;
    border: 2px solid var(--pro-bg);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--pro-primary), var(--pro-accent));
}

/* Stagger cards — animasi berurutan */
.features-grid .feature-card:nth-child(1) { animation-delay: 0ms; }
.features-grid .feature-card:nth-child(2) { animation-delay: 80ms; }
.features-grid .feature-card:nth-child(3) { animation-delay: 160ms; }
.features-grid .feature-card:nth-child(4) { animation-delay: 240ms; }

.berita-grid .berita-card:nth-child(1) { animation-delay: 0ms; }
.berita-grid .berita-card:nth-child(2) { animation-delay: 60ms; }
.berita-grid .berita-card:nth-child(3) { animation-delay: 120ms; }
.berita-grid .berita-card:nth-child(4) { animation-delay: 180ms; }
.berita-grid .berita-card:nth-child(5) { animation-delay: 240ms; }
.berita-grid .berita-card:nth-child(6) { animation-delay: 300ms; }

/* Focus visible — aksesibilitas & premium */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(13, 92, 66, 0.35);
    border-radius: 6px;
}

/* Subtle grain — tekstur kelas dunia (sangat halus) */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.02'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: overlay;
}

/* Page load — transisi halus */
main {
    animation: proFadeIn 0.6s ease-out;
}

@keyframes proFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
