
:root {
  --primary: #284469;          /* Royal Navy Nectar */
  --primary-deep: #1e3554;
  --accent: #FEC763;           /* Academic Gold */
  --academic-cream: #fdfdfb;   
  --academic-border: #d4cfc3;  /* Traditional Fine Line */
  --text-main: #1e3554;        /* Deep Slate */
  --text-muted: #475569;
  --white: #ffffff;
  --radius-nectar: 8px;        /* Sudut tajam elegan khas institusi resmi */
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background-color: var(--academic-cream); color: var(--text-main); font-family: 'Montserrat', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }

/* NAVBAR GLASSMORPHISM */
nav {
  background-color: #284469;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  color: var(--white); padding: 0 5%; height: 75px;
  display: flex; justify-content: space-between; align-items: center;
  position: fixed; width: 100%; top: 0; z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nav-brand { display: flex; align-items: center; gap: 14px; }
.nav-logo { height: 64px; width: 64px; object-fit: contain; border-radius: 50%; border: 1.5px solid var(--accent); }
.brand-text h1 { font-family: 'Montserrat', serif; font-size: 1.35rem; font-weight: 700; letter-spacing: 0.5px; color: var(--white); }
.brand-text p { font-size: 0.72rem; color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.nav-links { display: flex; list-style: none; gap: 24px; align-items: center; }
.nav-links a { color: #f1f5f9; text-decoration: none; font-size: 0.88rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--accent); }
.nav-btn { background: transparent; border: 1px solid var(--accent) !important; color: var(--accent) !important; padding: 6px 16px; border-radius: 4px; font-weight: 600; }
.nav-btn:hover { background: var(--accent); color: var(--primary) !important; }

/* HAMBURGER */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span { width: 22px; height: 2px; background: white; }

/* ================= FLASH HEADLINES CSS ================= */
.flash-news-section {
    padding: 70px 5%;
    background: linear-gradient(to bottom, #f4f7f6, #ffffff);
    max-width: 1200px; /* Kunci agar konten tidak melebar tanpa batas di layar PC */
    margin: 0 auto;    /* Kunci agar posisi selalu rata tengah layar */
}

.flash-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
}

/* Animasi Kedip Merah (Breaking News Indicator) */
.pulse-indicator {
    width: 14px;
    height: 14px;
    background-color: #e74c3c;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7);
    animation: pulse-red 1.5s infinite cubic-bezier(0.66, 0, 0, 1);
}

@keyframes pulse-red {
    to { box-shadow: 0 0 0 15px rgba(231, 76, 60, 0); }
}

/* Grid Adaptif: 1 Kolom di HP, 2-3 Kolom di PC */
.flash-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    justify-items: center;
}

.flash-news-card {
    background: #ffffff;
    border-top: 5px solid var(--primary, #002147);
    border-radius: 10px;
    padding: 30px 25px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 33, 71, 0.06);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.flash-news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 33, 71, 0.12);
}

/* Pita (Ribbon) Berita Baru */
.news-ribbon {
    position: absolute;
    top: 22px;
    right: -32px;
    background: #e74c3c;
    color: white;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 5px 40px;
    transform: rotate(45deg);
    letter-spacing: 1.5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.flash-meta {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.flash-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    color: var(--primary, #002147);
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.flash-content {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.7;
    text-align: justify;
}

/* HERO EDITORIAL */
.hero { padding: 90px 5% 70px 5%; text-align: center; background: radial-gradient(circle at top, rgba(197,160,33,0.04) 0%, transparent 60%); }
.hero-badge { background: rgba(197,160,33,0.08); color: #9a7613; font-size: 0.78rem; font-weight: 700; padding: 5px 15px; border-radius: 50px; text-transform: uppercase; letter-spacing: 0.5px; display: inline-block; margin-bottom: 20px; }
.hero h2 { font-family: 'Montserrat', serif; font-size: 2.6rem; color: var(--primary); font-weight: 700; margin-bottom: 20px; }
.hero p { max-width: 700px; color: var(--text-muted); font-size: 1rem; margin: 0 auto 35px; line-height: 1.6; }
.btn-primary-action { background: var(--primary); color: white; text-decoration: none; padding: 14px 35px; border-radius: 4px; font-weight: 600; font-size: 0.95rem; box-shadow: 0 4px 15px rgba(0,33,71,0.15); transition: all 0.2s; display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--primary); }
.btn-primary-action:hover { background: var(--accent); color: var(--primary); border-color: var(--accent); transform: translateY(-1px); }

/* EDITORIAL HEADINGS LINE */
.academic-editorial-header { text-align: center; margin-bottom: 45px; }
.academic-editorial-header h2 { font-family: 'Montserrat', serif; font-size: 2.1rem; color: var(--primary); font-weight: 700; }
.editorial-subtitle { font-size: 0.88rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-top: 6px; }
.editorial-double-line { margin: 15px auto 0; width: 80px; }
.line-thick { height: 2px; background: var(--primary); width: 100%; margin-bottom: 2px; }
.line-thin { height: 1px; background: var(--accent); width: 60%; margin: 0 auto; }

/* ==========================================================================
   🎯 ARCHITECTURE CENTRAL FLIPBOARD CONTAINER (LIGHT nectar REVISED)
   ========================================================================== */
.flipboard-container-wrapper {
  padding: 40px 20px;
  border-radius: var(--radius-nectar);
  border: 1px solid var(--academic-border);
  box-shadow: inset 0 0 25px rgba(0,0,0,0.01);
  
  /* 🌟 EFEK WHITE FROST OVERLAY: Memberi lapisan emulsi putih-cream di atas gambar Bapak 
     agar teks kartu depan terlihat sangat tajam, kontras, dan terbaca mutlak. */
  background-image: linear-gradient(rgba(253, 253, 251, 0.88), rgba(253, 253, 251, 0.93)), url('../nectar-home.jpeg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.flipboard-grid-framework {
  display: block;
  text-align: center; /* Kunci simetris horizontal kontainer */
}

.flipboard-card {
  display: inline-block;
  vertical-align: top;
  width: 260px;
  height: 335px;
  margin: 15px;
  perspective: 1200px; /* Kedalaman rotasi 3D */
  text-align: left;
}

.card-inner {
  position: relative; width: 100%; height: 100%;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  transform-style: preserve-3d;
}

/* Pemicu Rotasi Balik Flipboard */
.flipboard-card:hover .card-inner,
.flipboard-card.active .card-inner {
  transform: rotateY(180deg);
}

.card-front, .card-back {
  position: absolute; width: 100%; height: 100%;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
  padding: 26px 22px; display: flex; flex-direction: column;
  border-radius: var(--radius-nectar);
}

/* 🃏 SISI DEPAN (SOLID MUTLAK) */
.card-front {
  background-color: #ffffff !important; /* Paksa warna latar putih solid bersih */
  border: 1px solid #e2e8f0 !important;
  border-top: 4px solid var(--primary) !important; /* Aksen Atas Garis Navy */
  box-shadow: 0 8px 25px rgba(0, 33, 71, 0.05) !important;
}

.volume-tag { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; font-weight: 600; letter-spacing: 0.5px; margin-bottom: 15px; display: block; }
.card-icon-academic { font-size: 2rem; color: var(--accent); margin-bottom: 15px; }
.card-front h3 { font-family: 'Montserrat', serif; font-size: 1.25rem; color: var(--primary); font-weight: 700; margin-bottom: 10px; }
.card-front p { font-size: 0.85rem; color: var(--text-main); opacity: 0.9; line-height: 1.5; }
.flip-trigger-hint { margin-top: auto; font-size: 0.72rem; color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }

/* 🃏 SISI BELAKANG (ROYAL NAVY nectar ACADEMIC STYLE) */
.card-back {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%);
  color: var(--white); transform: rotateY(180deg);
  border: 1px solid var(--primary-deep);
  box-shadow: 0 12px 35px rgba(0,33,71,0.2);
}
.card-back h3 { font-family: 'Montserrat', serif; font-size: 1.25rem; color: var(--accent); margin-bottom: 12px; padding-bottom: 6px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.card-back p { font-size: 0.82rem; line-height: 1.5; color: #cbd5e1; margin-bottom: auto; }
.university-action-link {
  display: block; text-align: center; background: var(--accent); color: var(--primary); text-decoration: none;
  font-size: 0.78rem; font-weight: 700; padding: 10px; border-radius: 3px; text-transform: uppercase; letter-spacing: 0.5px; transition: opacity 0.2s; margin-top: 15px;
}
.university-action-link:hover { opacity: 0.95; }

/* ─── LEADERBOARD COLLEGIATE MERIT SCROLL ─── */
.collegiate-table-wrapper { max-width: 900px; margin: 0 auto; background: var(--white); border: 1px solid var(--academic-border); border-radius: var(--radius-nectar); overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.01); }
.collegiate-table { width: 100%; border-collapse: collapse; text-align: left; }
.collegiate-table th { background: var(--primary); color: var(--white); padding: 16px 20px; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; }
.collegiate-table td { padding: 16px 20px; font-size: 0.95rem; }
.collegiate-loading-state { text-align: center !important; color: var(--text-muted); padding: 40px !important; font-style: italic; font-size: 0.9rem; }

/* ─── NECTAR GLOBAL SCALE LANG SWITCHER ─── */
.lang-toggle-btn.active {
    background: var(--primary, #284469) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(40, 68, 105, 0.2);
}

@media (max-width: 600px) {
    .cefr-level-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px !important;
    }
}

/* FOOTER ACADEMIC SEAL */
footer { background: var(--primary); color: var(--white); padding: 45px 5% 35px; text-align: center; border-top: 3px solid var(--accent); }
footer h3 { font-family: 'Montserrat', serif; font-size: 1.25rem; font-weight: 700; margin-bottom: 4px; letter-spacing: 0.5px; }
.institution-sub { font-size: 0.85rem; color: #cbd5e1; opacity: 0.8; }
.footer-seal { width: 35px; height: 1px; background: var(--accent); margin: 20px auto; }
.copyright-text { font-size: 0.78rem; color: #94a3b8; opacity: 0.6; }

/* BREAKPOINTS MOBILE ENGINE */
@media (max-width: 900px) {
  .hamburger { display: flex; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 75px; left: 0; width: 100%; background: var(--primary); padding: 20px; border-bottom: 2px solid var(--accent); gap: 0; }
  .nav-links.active { display: flex; }
  .nav-links a { display: block; padding: 15px; text-align: center; border-bottom: 1px solid rgba(255,255,255,0.05); }
  .hero h2 { font-size: 2rem; }
  .flipboard-card { width: 90%; max-width: 290px; margin: 15px auto; display: block; }
}
