/*===================== BERITA =====================*/
/* ================= BERITA TERBARU ================= */
.berita {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* ==============================
     Lumi Edu Chatbot Styles
     ============================== */
.lumi-chat-button{
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(180deg,#0b63c5,#094fa0);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 30px rgba(11,99,197,0.25);
    border: none;
    cursor: pointer;
    z-index: 1200;
    transition: transform .12s ease, box-shadow .12s ease;
}
.lumi-chat-button:hover{transform: translateY(-3px); box-shadow: 0 18px 38px rgba(11,99,197,0.28);}
.lumi-chat-button:focus{outline:3px solid rgba(11,99,197,0.18)}
.lumi-chat-button .lumi-badge{position:absolute; top:-6px; right:-6px; background:#ffcc00; color:#003366; font-weight:800; font-size:11px; padding:3px 7px; border-radius:12px}
.lumi-chat-button svg{width:22px;height:22px}

#lumi-chat-window{position:fixed; right:22px; bottom:88px; width:360px; max-width:calc(100% - 44px); border-radius:14px; box-shadow:0 20px 50px rgba(0,0,0,0.15); background:#fff; display:none; flex-direction:column; z-index:1200; font-family: Inter, sans-serif}
#lumi-chat-window.open{display:flex}
.lumi-header{display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 14px; background:linear-gradient(90deg,#0b63c5,#094fa0); color:#fff}
.lumi-profile{display:flex; align-items:center; gap:10px}
.lumi-avatar{width:44px; height:44px; border-radius:50%; background:#fff; color:#0b63c5; display:flex; align-items:center; justify-content:center; font-weight:700; font-size:18px}
.lumi-title strong{display:block; font-size:15px}
.lumi-title small{display:block; font-size:12px; opacity:0.95}
.lumi-close{background:transparent; border:none; color:#fff; font-size:22px; cursor:pointer}

#chat-body{padding:14px; display:flex; flex-direction:column; gap:10px; max-height:280px; overflow:auto; background:#f6f9ff}
.chat-bubble{max-width:78%; padding:10px 12px; border-radius:12px; line-height:1.4; font-size:14px}
.ai-bubble{align-self:flex-start; background:#e8f1ff; color:#0b63c5}
.user-bubble{align-self:flex-end; background:#0b63c5; color:#fff}

.lumi-input-area{display:flex; gap:8px; padding:12px; border-top:1px solid #eee; background:#fff}
#chat-input{flex:1; padding:10px 12px; border-radius:8px; border:1px solid #ddd; font-size:14px}
#chat-send-button{background:#0b63c5; color:#fff; border:none; padding:10px 12px; border-radius:8px; cursor:pointer; display:inline-flex; align-items:center; justify-content:center}
#chat-send-button svg{width:18px; height:18px}

@media (max-width:420px){ .lumi-chat-button{right:12px; bottom:12px} #lumi-chat-window{right:12px; left:12px; bottom:78px; width:auto} }


.section-title {
  text-align: center;
  font-size: 2rem;
  color: #0b63c5;
  margin-bottom: 40px;
}

/* Grid Pembungkus Kartu Berita */
.berita-grid {
  display: grid;
  /* Mengunci susunan 3 kolom sejajar dengan lebar kartu maksimal 350px */
  grid-template-columns: repeat(3, minmax(280px, 350px)); 
  gap: 30px;
  max-width: 1200px;     
  margin: 0 auto;        
  justify-content: center; /* Membuat susunan kartu berada di tengah halaman */
}

/* Desain Kartu Berita */
/* ================= BERITA TERBARU (FIXED 3 KOLOM) ================= */

/* 1. Mengunci lebar grid agar kartu tidak melar ke samping */
.berita-grid {
  display: grid;
  /* Mengunci lebar per kartu tepat 350px. Angka 3 artinya dipaksa 3 kolom */
  grid-template-columns: repeat(3, 350px) !important; 
  gap: 30px;
  max-width: 1110px;     
  margin: 0 auto !important;        
  justify-content: center; 
}

/* 2. Mengatur pembungkus kartu */
.berita-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  width: 350px; /* Mengunci lebar kartu */
}

/* 3. Mengatur gambar di dalam kartu agar tidak melar/lebar */
.berita-card img {
  width: 100% !important;
  height: 220px !important; /* Tinggi gambar pas */
  object-fit: cover !important; /* Memotong proporsional agar gambar tajam */
}

/* 4. Konten teks di dalam kartu */
/* Grid utama: mengunci 3 kolom ke samping di PC dan posisinya di tengah */
.berita-grid {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 25px;
  max-width: 1100px;
  margin: 0 auto !important;
  justify-content: center; /* Kartu tersusun rapi dari tengah ke samping */
}

/* Kotak kartu berita: dikunci ukurannya agar tidak melar lebar */
.berita-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  width: 320px !important; /* Ukuran pas untuk susunan 3 kolom */
  box-sizing: border-box;
}

/* Gambar di dalam kartu: mengikuti kotak 320px dan tidak merusak layout */
.berita-card img {
  width: 100% !important;
  height: 200px !important;
  object-fit: cover !important;
  display: block;
}

/* Isi teks kartu */
.berita-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.berita-content .tanggal {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 10px;
}

.berita-content h3 {
  font-size: 1.15rem;
  color: #333;
  margin: 0 0 10px 0;
  font-weight: 700;
}

.berita-content p {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.5;
  margin: 0 0 20px 0;
}

/* Tombol Baca Selengkapnya tetap kecil di kiri bawah */
.btn-berita {
  display: inline-block;
  align-self: flex-start;
  margin-top: auto;
  background-color: #0b63c5;
  color: white !important;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.85rem;
}

/* Responsif untuk layar HP */
@media (max-width: 768px) {
  .berita-card {
    width: 100% !important; /* Di HP baru melebar penuh mengikuti layar */
    max-width: 350px;
  }
}

/* Navbar */

header{
    position:fixed;
    width:100%;
    top:0;
    z-index:1000;
}

.navbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:15px 8%;
    background:#0056b3;
    color:white;
}


.nav-links{
    display:flex;
    list-style:none;
    gap:25px;
}

.nav-links a{
    text-decoration:none;
    color:white;
    font-weight:500;
    transition:0.3s;
}

.nav-links a:hover{
    color:#ffd43b;
}

.menu-toggle{
    display:none;
    font-size:25px;
    cursor:pointer;
}

/* Hero */
.hero{
    height:100vh;

    display:flex;
    justify-content:center;
    align-items:center;
    text-align:center;
    color:white;
    padding:20px;

    position:relative;
    overflow:hidden;
}
.hero-content{
    max-width:900px;
}

.hero h1{
    font-size:55px;
    margin-bottom:20px;
}

.hero p{
    font-size:22px;
    margin-bottom:30px;
}

.btn{
    display:inline-block;
    padding:12px 30px;
    background:#ffd43b;
    color:black;
    text-decoration:none;
    border-radius:5px;
    font-weight:bold;
    transition:0.3s;
}

.btn:hover{
    background:white;
}

/* Statistik */

.stats{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
    gap:20px;
    padding:70px 8%;
}

.card{
    background:white;
    text-align:center;
    padding:30px;
    border-radius:10px;
    box-shadow:0 5px 15px rgba(0,0,0,.1);
}

.card h2{
    color:#0056b3;
    font-size:40px;
}

/* Section */

.section{
    padding:90px 8%;
}

.section-title{
    text-align:center;
    font-size:35px;
    margin-bottom:40px;
    color:#0056b3;
}

.subject-section {
    padding: 70px 8% 90px;
    background: linear-gradient(135deg, #f2f8ff 0%, #eaf5ff 100%);
}

.subject-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: 24px;
    max-width: 980px;
    margin: 0 auto;
}

.subject-card {
    display: block;
    text-decoration: none;
    background: #ffffff;
    border: 2px solid #d8e9ff;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 10px 25px rgba(11, 99, 197, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.subject-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 30px rgba(11, 99, 197, 0.16);
}

.subject-card-accent {
    background: linear-gradient(135deg, #fefefe 0%, #eef7ff 100%);
}

.subject-icon {
    width: 64px;
    height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: #0b63c5;
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.subject-card h3 {
    color: #0b63c5;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.subject-card p {
    color: #4d6278;
    line-height: 1.6;
    margin-bottom: 12px;
}

.subject-link {
    display: inline-block;
    color: #0b63c5;
    font-weight: 700;
}

@media (max-width: 768px) {
    .subject-grid {
        grid-template-columns: 1fr;
    }
}

.bg-light{
    background:#eef4ff;
}

/* Profil */

.profil-content{
    background:white;
    padding:30px;
    border-radius:10px;
    box-shadow:0 5px 15px rgba(0,0,0,.08);
}

.profil-content h3{
    margin-bottom:15px;
    color:#0056b3;
    margin-top:20px;
}

.profil-content p{
    margin-bottom:15px;
    text-align:justify;
}

/* Table */

table{
    width:100%;
    border-collapse:collapse;
    margin-top:20px;
    background:white;
}

table th{
    background:#0056b3;
    color:white;
}

table th,
table td{
    border:1px solid #ddd;
    padding:12px;
}

table tr:nth-child(even){
    background:#f4f4f4;
}

/* Visi */

.visi-box{
    background:white;
    padding:30px;
    border-radius:10px;
    box-shadow:0 5px 15px rgba(0,0,0,.1);
}

blockquote{
    background:#f8f9fa;
    border-left:5px solid #0056b3;
    padding:20px;
    margin:20px 0;
    font-style:italic;
}

/* Prestasi */

.prestasi-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:20px;
}

.prestasi-card{
    background:white;
    padding:25px;
    border-radius:10px;
    box-shadow:0 5px 15px rgba(0,0,0,.08);
    text-align:center;
    transition:0.3s;
}

.prestasi-card:hover{
    transform:translateY(-5px);
}

/* Container Utama */
.meta-program-section {
    padding: 80px 20px;
    background-color: #f4f6f9;
    font-family: 'Inter', sans-serif;
    overflow: hidden;
}

.meta-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: center;
}

/* Bagian Teks Kiri */
.meta-intro {
    padding-right: 20px;
}

.meta-main-title {
    font-family: 'Kalam', cursive, sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: #5a6e7f;
    margin: 0 0 20px 0;
    letter-spacing: 0.05em;
}

.meta-main-desc {
    color: #7f8c8d;
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0;
}

/* Bagian Alur Lingkaran Kanan */
.meta-flow {
    position: relative;
    height: 480px;
    width: 100%;
}

/* Pengaturan Dasar Setiap Node Lingkaran */
.meta-node {
    position: absolute;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.meta-node:hover {
    transform: scale(1.03);
    box-shadow: 0 20px 45px rgba(0,0,0,0.15);
}

/* Bagian Dalam Lingkaran (Warna Putih/Efek Cekung lembut) */
.meta-inner, .meta-inner-large, .meta-inner-small {
    background: radial-gradient(circle, #ffffff 0%, #f7f9fa 100%);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
}

/* --- REVISI TOTAL CSS PROGRAM UTAMA (ANTI-TUMPANG TINDIH) --- */

.meta-program-section {
    padding: 80px 40px;
    background-color: #f8fafc;
    font-family: 'Inter', sans-serif;
}

/* Mengubah ke susunan Flex agar area kanan mendapat ruang yang sangat lega */
.meta-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

/* Mengunci area teks kiri */
.meta-intro {
    flex: 1;
    min-width: 320px;
    max-width: 450px;
}

.meta-main-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: #4a5568;
    margin: 0 0 20px 0;
    letter-spacing: 0.05em;
}

.meta-main-desc {
    color: #718096;
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0;
}

/* Mengunci total area kanan agar ukurannya solid & lingkaran menyebar sempurna */
.meta-flow {
    position: relative;
    width: 650px; /* Diperlebar agar lingkaran ungu bisa bergeser keluar */
    height: 460px;
    flex-shrink: 0; /* Mencegah area kanan menciut saat browser di-resize */
}

/* Pengaturan Dasar Setiap Node */
.meta-node {
    position: absolute;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.meta-node:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    z-index: 20;
}

.meta-inner, .meta-inner-large, .meta-inner-small {
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 15px;
    box-sizing: border-box;
}

/* 1. Lingkaran Biru (Bawah Kiri) */
.node-blue {
    width: 200px;
    height: 200px;
    background: #00a4e4;
    bottom: 10px;
    left: 10px;
    padding: 12px;
    z-index: 4;
}
.node-blue .meta-inner { width: 100%; height: 100%; }

/* 2. Lingkaran Oranye Penghubung (Tengah Agak Atas) */
.node-orange-connector {
    width: 110px;
    height: 110px;
    background: #ff9000;
    bottom: 190px;
    left: 160px;
    padding: 10px;
    z-index: 5;
}
.node-orange-connector .meta-inner-small { width: 100%; height: 100%; }
.node-orange-connector span {
    font-weight: 800;
    color: #ff9000;
    font-size: 1.1rem;
}

/* 3. Lingkaran Ungu (Digeser ke Kanan agar Lepas dari Hijau) */
.node-purple {
    width: 210px;
    height: 210px;
    background: #b259ad;
    bottom: 10px;
    left: 240px; /* Bergeser lebih ke kanan dibanding sebelumnya */
    padding: 12px;
    z-index: 3;
}
.node-purple .meta-inner { width: 100%; height: 100%; }

/* 4. Lingkaran Hijau Besar (Paling Kanan Atas) */
.node-green {
    width: 260px;
    height: 260px;
    background: #a2c617;
    top: 10px;
    right: 10px; /* Mengunci posisi di ujung kanan wadah */
    padding: 15px;
    z-index: 2;
}
.node-green .meta-inner-large { width: 100%; height: 100%; padding: 20px; }

/* Tipografi Konten Lingkaran */
.meta-node h3 {
    margin: 0 0 6px 0;
    font-size: 1.1rem;
    color: #2d3748;
    font-weight: 700;
}
.node-green h3 { font-size: 1.35rem; }

.meta-node p {
    margin: 0;
    font-size: 0.82rem;
    color: #718096;
    line-height: 1.4;
}

/* Responsif untuk Layar Tablet / HP */
@media (max-width: 1024px) {
    .meta-container {
        flex-direction: column;
        text-align: center;
    }
    .meta-intro {
        max-width: 100%;
    }
    .meta-flow {
        width: 100%;
        max-width: 600px;
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    .meta-node {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        width: 260px !important;
        height: 260px !important;
    }
    .node-orange-connector {
        width: 110px !important;
        height: 110px !important;
    }
}

/* Batasi tinggi area konten modal agar pas dengan modal putih */
.modal-content-area {
  max-height: 420px;
  overflow: hidden; /* Mencegah seluruh area konten ikut bergeser */
}

/* Aktifkan scroll khusus untuk tab-content yang sedang aktif */
.tab-content.active {
  max-height: 380px; /* Batasi tinggi area tabel */
  overflow-y: auto;   /* Berikan scrollbar di sini */
  padding-right: 4px;
}

/* Memastikan header tabel mengunci di atas dengan latar belakang solid */
.modal-table {
  border-collapse: collapse;
  width: 100%;
}

.modal-table thead th {
  position: sticky;
  top: 0;
  background-color: #0056b3; /* Warna biru solid header Anda */
  color: #ffffff;
  z-index: 10; /* Memastikan berada di lapisan paling depan */
}


/* ===== Override ukuran ilustrasi Program Utama ===== */

.meta-image{
    display: flex;
    justify-content: center;
    align-items: center;
}

.meta-image img{
    width: 900px;       /* Ubah sesuai kebutuhan */
    max-width: 100%;
    height: auto;
    margin-left: 100px;
}

/* Struktur */

.struktur-img{
    width:100%;
    max-width:1200px;
    display:block;
    margin:auto;
    border-radius:10px;
    box-shadow:0 5px 15px rgba(0,0,0,.15);
}

/* Kontak */

.kontak{
    background:white;
    padding:30px;
    border-radius:10px;
    box-shadow:0 5px 15px rgba(0,0,0,.08);
}

.kontak p{
    margin-bottom:15px;
    font-size:18px;
}

.kontak i{
    color:#0056b3;
    width:30px;
}

/* Footer */

footer{
    background:#0056b3;
    color:white;
    text-align:center;
    padding:25px;
}

/* Animation */

.hidden{
    opacity:0;
    transform:translateY(50px);
    transition:all .8s ease;
}

.show{
    opacity:1;
    transform:translateY(0);
}

/* Modul Pembelajaran Bahasa Inggris */
.module-page {
    background: #F5F8FF;
}
.module-panel {
    display: grid;
    gap: 24px;
}
.module-header {
    text-align: center;
    margin-bottom: 18px;
}
.module-header h1 {
    font-size: 2.2rem;
    color: #0D47A1;
    margin-bottom: 10px;
}
.module-header p {
    color: #33475B;
    font-size: 1rem;
    line-height: 1.6;
    max-width: 860px;
    margin: 0 auto;
}
.module-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #FFF4C4;
    color: #795900;
    border-radius: 999px;
    padding: 10px 16px;
    font-weight: 700;
    box-shadow: 0 10px 25px rgba(255, 193, 7, 0.18);
}
.module-actions-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 12px;
}
.module-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    border-radius: 24px;
    padding: 14px 22px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    line-height: 1.2;
}
.module-button:hover {
    transform: translateY(-2px);
}
.module-button.primary {
    background: #0D47A1;
    color: white;
    box-shadow: 0 12px 24px rgba(13, 71, 161, 0.2);
}
.module-button.secondary {
    background: #ffffff;
    color: #0D47A1;
    border: 2px solid #0D47A1;
}
.hero-module-links {
    display: grid;
    gap: 14px;
    width: 100%;
    max-width: 980px;
    margin: 24px auto 0;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.hero-module-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 24px;
    background: linear-gradient(135deg, #0056b3, #003366);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hero-module-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
}
.hero-module-link.secondary {
    background: #ffffff;
    color: #0D47A1;
    border: 2px solid #0D47A1;
}
.hero-module-link img,
.hero-module-link svg {
    display: block;
}
.hero-menu-row {
    display: grid;
    gap: 12px;
    width: 100%;
    max-width: 980px;
    margin: 20px auto 0;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.module-card {
    background: #ffffff;
    border-radius: 24px;
    border: 2px solid #E8F0FF;
    box-shadow: 0 18px 40px rgba(13, 71, 161, 0.06);
    padding: 24px;
    overflow: hidden;
}
.module-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: #0D47A1;
}
.module-card p {
    color: #435568;
    line-height: 1.7;
}
.module-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}
.module-card-link {
    text-decoration: none;
}
.module-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.module-icon-bg {
    width: 62px;
    height: 62px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: rgba(255, 193, 7, 0.18);
    color: #0D47A1;
    font-size: 1.7rem;
}
.module-progress-box {
    background: #fff;
    border: 1px solid #DCE9FF;
    border-radius: 18px;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.module-progress-bar {
    width: 100%;
    height: 16px;
    border-radius: 999px;
    background: #E8F0FF;
    overflow: hidden;
    border: 1px solid #DCE9FF;
}
.module-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #0D47A1 0%, #FFC107 100%);
    width: 0%;
    transition: width 0.35s ease;
}
.module-card-large {
    display: grid;
    gap: 18px;
    grid-template-columns: 1fr;
}
.module-floating {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.module-emoji {
    font-size: 4rem;
    line-height: 1;
}
.module-label {
    color: #66788A;
    font-weight: 700;
}
.color-swatch {
    border-radius: 20px;
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.15rem;
    font-weight: 800;
    box-shadow: 0 14px 24px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: transform 0.18s ease, opacity 0.18s ease;
}
.color-swatch:hover {
    transform: translateY(-3px);
}
.flashcard-large {
    min-height: 320px;
    display: grid;
    align-items: center;
    justify-items: center;
    gap: 10px;
    border-radius: 24px;
    background: #F7FBFF;
}
.flashcard-large img {
    width: 200px;
    max-width: 100%;
    border-radius: 22px;
    box-shadow: 0 14px 35px rgba(13, 71, 161, 0.08);
}
.body-map {
    position: relative;
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
}
.body-part-dot {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 3px solid #FFC107;
    background: rgba(255, 193, 7, 0.18);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #0D47A1;
    font-weight: 700;
}
.body-parts-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}
.body-parts-list button {
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid #DCE9FF;
    background: white;
    color: #0D47A1;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.18s ease;
}
.body-parts-list button:hover {
    transform: translateY(-1px);
}
.choice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 15px;
}
.choice-card {
    background: white;
    border-radius: 22px;
    border: 2px solid #EAF1FF;
    box-shadow: 0 14px 28px rgba(13, 71, 161, 0.05);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease;
}
.choice-card:hover {
    transform: translateY(-2px);
    border-color: #0D47A1;
}
.choice-card.correct {
    border-color: #39A44A;
    background: #E6F7E9;
}
.pulse {
    animation: pulse-pop 0.35s ease;
}
@keyframes pulse-pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}
.choice-card.wrong {
    border-color: #D9382A;
    background: #FBEAEA;
}
.choice-card img {
    width: 100%;
    max-height: 180px;
    object-fit: cover;
}
.choice-card span {
    display: block;
    padding: 14px 16px;
    font-weight: 700;
    color: #0D47A1;
}
.star-feedback {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    pointer-events: none;
}
.star-feedback span {
    display: inline-flex;
    animation: star-pop 0.9s ease forwards;
    font-size: 2.8rem;
}
@keyframes star-pop {
    0% { transform: scale(0.5) rotate(-15deg); opacity: 0; }
    50% { transform: scale(1.3) rotate(5deg); opacity: 1; }
    100% { transform: scale(1.0) rotate(12deg); opacity: 0; }
}
.certificate-box {
    background: white;
    border-radius: 28px;
    border: 1px solid #DCE9FF;
    padding: 24px;
    text-align: center;
    box-shadow: 0 18px 40px rgba(13, 71, 161, 0.08);
}
.certificate-box h2 {
    font-size: 2rem;
    color: #0D47A1;
    margin-bottom: 10px;
}
.certificate-box p {
    color: #4F6179;
    line-height: 1.7;
}
.theme-toggle {
    position: absolute;
    right: 24px;
    top: 24px;
    border: none;
    border-radius: 999px;
    padding: 10px 16px;
    background: rgba(255,255,255,0.90);
    color: #0D47A1;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(13, 71, 161, 0.1);
}
.dark-mode {
    background: #0F1F3B;
    color: #F5F7FF;
}
.dark-mode .kk-app {
    background: #132848;
    border-color: rgba(255,255,255,0.08);
}
.dark-mode .kk-hero,
.dark-mode .kk-module-card,
.dark-mode .module-card,
.dark-mode .module-progress-box,
.dark-mode .certificate-box {
    background: #17305A;
    border-color: rgba(255,255,255,0.12);
}
.dark-mode .kk-title,
.dark-mode .module-header h1,
.dark-mode .module-card h3,
.dark-mode .certificate-box h2 {
    color: #F7FAFF;
}
.dark-mode .kk-subtitle,
.dark-mode .module-header p,
.dark-mode .module-card p,
.dark-mode .certificate-box p,
.dark-mode .module-badge,
.dark-mode .module-progress-box span {
    color: #DDE8FF;
}
.dark-mode .module-button.secondary {
    color: #F5F7FF;
}
.dark-mode .module-button.primary {
    background: #FFB703;
    color: #132848;
}
.dark-mode .module-icon-bg {
    background: rgba(255, 193, 7, 0.18);
}
.dark-mode .color-swatch,
.dark-mode .choice-card,
.dark-mode .body-parts-list button {
    background: #1B315A;
    border-color: rgba(255,255,255,0.16);
}
.dark-mode .color-swatch,
.dark-mode .choice-card span,
.dark-mode .body-parts-list button {
    color: #F2F8FF;
}
.dark-mode .module-card-large {
    background: #11264A;
}
.dark-mode .module-progress-fill {
    background: linear-gradient(90deg, #FFB703 0%, #FFFFFF 100%);
}

/* Responsive */

@media(max-width:768px){

    .menu-toggle{
        display:block;
    }

    .nav-links{
        position:absolute;
        top:70px;
        left:0;
        width:100%;
        background:#0056b3;
        flex-direction:column;
        text-align:center;
        display:none;
        padding:20px 0;
    }

    .nav-links.active{
        display:flex;
    }

    .hero h1{
        font-size:38px;
    }

    .hero p{
        font-size:18px;
    }

    .section-title{
        font-size:28px;
    }
    /* DATA PEGAWAI */

.pegawai-summary{
    display:grid;
    grid-template-columns:
    repeat(auto-fit,minmax(220px,1fr));

    gap:20px;
    margin-bottom:40px;
}

.pegawai-card{
    background:white;
    padding:25px;
    text-align:center;
    border-radius:10px;

    box-shadow:
    0 4px 12px rgba(0,0,0,.1);
}

.pegawai-card h3{
    font-size:42px;
    color:#0056b3;
}

.pegawai-card p{
    font-size:18px;
    font-weight:600;
}

.pegawai-keterangan h3{
    margin-top:40px;
    margin-bottom:15px;
    color:#0056b3;
}

.pegawai-img{
    width:100%;
    max-width:1000px;
    height:auto;
}


/* Merapikan Susunan Navbar agar Logo dan Menu Sejajar Samping */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #004085; /* Menyesuaikan warna biru navbar Anda */
}


/* Merapikan Menu Navigasi di Sebelah Kanan */
.nav-links {
    display: flex;
    list-style: none;
    gap: 15px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
}

/* Penyesuaian Ikon Statistik */
.card-icon {
    font-size: 35px;
    color: #ffd43b;
    margin-bottom: 15px;
    display: block;
}

/* Tabel Header & Total Row Style */
table thead th {
    background: #0056b3;
    color: white;
    font-weight: 600;
}

.row-total {
    font-weight: bold;
    background: #eef4ff !important;
}

/* Warna Ikon Piala Prestasi */
.gold { color: #ffd43b; margin-right: 8px; }
.silver { color: #bcc6cc; margin-right: 8px; }
.bronze { color: #cd7f32; margin-right: 8px; }

/* Keterangan gambar pegawai */
.pegawai-keterangan h3 {
    text-align: center;
    margin-top: 30px;
}
/* Pengaturan agar semua gambar tabel pegawai berukuran sama dan rapi */
.pegawai-img {
    display: block;
    width: 100%;          /* Memaksimalkan lebar gambar sesuai kontainer */
    max-width: 800px;     /* Batas lebar maksimal agar tidak terlalu besar di layar PC */
    height: auto;         /* Menjaga proporsi gambar agar tidak gepeng/pecah */
    object-fit: contain;  /* Memastikan seluruh isi gambar tabel tetap terlihat */
    margin: 15px auto 40px auto; /* Mengatur posisi gambar tepat di tengah secara horizontal */
    border: 1px solid #ddd;      /* Memberikan border tipis agar tepi tabel terlihat rapi */
    border-radius: 6px;   /* Memberikan lengkungan halus di ujung gambar */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* Memberikan efek bayangan lembut */
}

/* Memastikan kontainer pembungkusnya mengizinkan posisi center */
.pegawai-keterangan {
    width: 100%;
    text-align: center;   /* Membuat teks judul grafik ikut ke tengah */
    padding: 0 20px;      /* Memberi jarak aman di kanan-kiri pada layar HP */
    box-sizing: border-box;
}
/* Mengatur agar logo gambar dan teks tulisan sejajar ke samping */
nav div:first-child, 
.navbar div:first-child {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;
}

/* Memastikan teks tulisan sekolah berada di sebelah kanan logo */
nav h2, 
.navbar h2 {
    margin: 0 !important;
    padding: 0 !important;
    display: inline-block !important;
}

/* Mengatur posisi gambar logo di dalam navbar */
nav img, 
.navbar img {
    display: inline-block !important;
    margin: 0 !important;
}
}
