/**
 * localization.js
 * Bilingual ID/EN — auto-detect dari navigator.language,
 * persist pilihan user ke localStorage.
 */

const translations = {
    id: {
        // --- Common / Shared ---
        skip_to_content: "Langsung ke Konten Utama",
        btn_more: "Selengkapnya",
        btn_view_all: "Lihat Semua",
        btn_read_more: "Selengkapnya",
        btn_explore: "Jelajahi",
        btn_reset_filter: "Reset Filter",
        loading: "Memuat...",
        no_data: "Data tidak ditemukan.",
        coming_soon: "Segera Hadir",
        follow_us: "Ikuti Kami",

        // --- Navbar Top ---
        nav_about: "Tentang Kami",
        nav_program: "Program",
        nav_sdm: "SDM",
        nav_facilities: "Fasilitas",
        nav_works: "Karya & Agenda",
        nav_contact: "Kontak",

        // --- Mega Menu: Tentang ---
        mega_about_title: "Mengenal Informatika UNTAN",
        mega_about_desc: "Terakreditasi Unggul, mencetak lulusan kompeten di bidang teknologi informasi sejak 1993.",
        link_history: "Sejarah & Tonggak",
        link_history_desc: "Perjalanan panjang membangun generasi digital",
        link_org: "Struktur Organisasi",
        link_org_desc: "Pimpinan dan jajaran pengelola",
        link_vision: "Visi & Misi",
        link_vision_desc: "Arah dan tujuan pengembangan prodi",
        link_partnership: "Kerjasama & MoU",
        link_partnership_desc: "Mitra industri dan akademik",

        // --- Mega Menu: Program ---
        mega_program_obe: "Kurikulum Berbasis OBE",
        mega_program_obe_desc: "Outcome-Based Education dengan 4 jalur konsentrasi: AI, Software Engineering, Network, dan Information Systems.",
        btn_krs_sim: "Simulasi KRS",
        link_academic: "Akademik",
        link_academic_desc: "Jadwal, KRS, dan kalender",
        link_accreditation: "Akreditasi",
        link_accred_desc: "Status Unggul BAN-PT",
        link_graduate: "Profil Lulusan",
        link_graduate_desc: "Kompetensi & karir",
        link_courses: "Mata Kuliah",
        link_guideline: "Panduan",
        link_guideline_desc: "Buku panduan akademik",
        link_statistics: "Informatika Angka",
        link_statistics_desc: "Statistik & data",

        // --- Mega Menu: SDM ---
        mega_sdm_title: "Tim Pengajar Profesional",
        mega_sdm_desc: "30+ dosen berkualifikasi S2/S3 dari universitas terkemuka dalam dan luar negeri.",
        btn_all_lecturers: "Lihat Semua Dosen",
        label_expertise: "Kelompok Keahlian",

        // --- SDM: Kelompok Keahlian ---
        kk_ai: "Kecerdasan Buatan",
        kk_se: "Rekayasa Perangkat Lunak",
        kk_network: "Jaringan & Keamanan",
        kk_is: "Sistem Informasi",

        // --- Navigation ---
        nav_home: "Beranda",

        // --- Mega Menu: Fasilitas ---
        mega_lab: "Laboratorium",
        mega_lab_desc: "8 lab modern dengan peralatan terkini",
        mega_dc: "Data Center",
        mega_dc_desc: "Server & infrastruktur cloud lokal",
        mega_eresources: "E-Resources",
        mega_eresources_desc: "Akses jurnal & database ilmiah",
        mega_hub_desc: "Platform PaaS untuk mahasiswa",

        // --- Mega Menu: Karya & Agenda ---
        mega_research_title: "Riset Unggulan",
        mega_sinta_title: "Indeks SINTA Terbaik",
        mega_sinta_desc: "Publikasi dosen terindeks Scopus, WoS, dan jurnal nasional terakreditasi.",
        btn_publications: "Lihat Publikasi",
        link_info_agenda: "Info & Agenda",
        link_info_agenda_desc: "Pengumuman dan jadwal kegiatan",
        link_research: "Riset",
        link_research_desc: "Penelitian dosen dan mahasiswa",
        link_community: "Pengabdian",
        link_community_desc: "Program pengabdian masyarakat",
        link_seminar: "Seminar & Konferensi",
        link_seminar_desc: "Event akademik & ilmiah",
        link_achievements: "Prestasi",
        link_achievements_desc: "Pencapaian dosen & mahasiswa",

        // --- Mega Menu: Kontak ---
        mega_contact_title: "Hubungi Kami",
        link_official_contact: "Kontak Resmi",
        link_contact_desc: "Direktori kontak staf",
        link_feedback: "Saran & Masukan",
        link_feedback_desc: "Kirim feedback Anda",
        link_social_media: "Media Sosial",

        // --- Hero ---
        hero_badge: "Unggul & Inovatif",
        hero_title: "Membentuk Arsitek Masa Depan Digital",
        hero_desc: "Program Studi Informatika Universitas Tanjungpura mencetak talenta digital yang siap bersaing di era revolusi industri 4.0 dengan kurikulum berbasis kompetensi.",
        hero_cta_primary: "Jelajahi Program",
        hero_cta_secondary: "Profil Lengkap",

        // --- Marquee ---
        marquee_connecting: "Menghubungkan ke server...",

        // --- Badges/Tags ---
        badge_latest_info: "INFO TERBARU",
        badge_achievement: "PRESTASI & REKOGNISI",
        badge_works_ideas: "KARYA & GAGASAN",
        badge_lecturer: "DOSEN & PENELITI",
        badge_people_stories: "INSPIRASI DARI PENGALAMAN NYATA",
        badge_discover_more: "DISCOVER MORE",
        badge_about_us: "TENTANG KAMI",
        badge_eresources: "e-Resources Informatika",
        badge_penelitian: "PENELITIAN DOSEN",
        badge_pkm: "PENGABDIAN KEPADA MASYARAKAT",

        // --- Section Headers ---
        section_rankings: "Rankings",
        section_academic_services: "Layanan Akademik",
        section_news: "Kabar Informatika",
        section_news_more: "Lihat Kabar Lainnya",
        kabar_page_title: "Kabar Informatika",
        kabar_page_subtitle: "Semua kabar terbaru dari Program Studi Informatika UNTAN",
        kabar_search_placeholder: "Cari judul atau penulis kabar...",
        kabar_empty: "Belum ada kabar yang cocok dengan pencarian.",
        kabar_load_more: "Muat Lebih Banyak",
        section_news_tag: "Update Terbaru",
        section_agenda: "Agenda Mendatang",
        section_social: "Pengumuman & Media Sosial",
        section_innovation: "Inovasi & Aplikasi Digital",
        section_impact: "Informatika Berdampak",
        section_impact_desc: "Karya tulis dan pengabdian dosen serta mahasiswa bagi masyarakat.",
        section_lecturers: "SDM Akademik",
        section_lecturer_desc: "Pengajar berkualitas dengan kepakaran di bidangnya.",
        section_stories: "Informatics People Stories",
        section_stories_badge: "INSPIRASI DARI PENGALAMAN NYATA DOSEN, MAHASISWA, DAN ALUMNI IF.",
        section_explore: "Jelajahi Lebih Lanjut",
        section_about_heading: "Membangun Masa Depan Digital",
        section_penelitian: "Penelitian Dosen",
        section_penelitian_desc: "Riset dan publikasi ilmiah dari dosen Informatika UNTAN.",
        section_pkm: "Pengabdian Kepada Masyarakat",
        section_pkm_desc: "Program pengabdian untuk membantu masyarakat melalui teknologi informasi.",

        // --- CTA Links ---
        cta_all_rubrics: "Semua Rubrik",
        cta_all_stories: "Semua Cerita",
        cta_visit_instagram: "Kunjungi Instagram",
        cta_follow_ig: "IKUTI KESEHARIAN KAMI DI @INFORMATIKA.UNTAN",
        kegiatan_tagline: "KEGIATAN & INFORMASI TERKINI",
        cta_full_profile: "Profil Lengkap",
        cta_download_brochure: "Unduh Brosur",
        cta_brief: "Sekilas Informatika Untan",
        cta_pmb: "Informasi Penerimaan Mahasiswa Baru",
        cta_student_works: "Sorotan Prestasi & Karya Mahasiswa",
        cta_research_kbk: "Riset & Kelompok Bidang Keahlian",
        cta_student_life: "Kehidupan Mahasiswa & Himpunan (HMIF)",
        cta_virtual_tour: "Tur Virtual Informatika Untan / Our Official Video Profile",
        cta_all_karya: "Lihat Semua Karya",
        btn_profile_prodi: "Profil Prodi",
        btn_research_innovation: "Inovasi Riset",

        // --- Karya & Gagasan ---
        link_all_karya: "Semua Karya",
        link_all_karya_desc: "Lihat seluruh karya dalam satu halaman",
        breadcrumb_karya: "Karya & Gagasan",
        karya_badge: "KARYA & GAGASAN",
        karya_page_title: "Karya & Gagasan Informatika UNTAN",
        karya_page_desc: "Jelajahi rubrik, penelitian dosen, PKM, dan people stories dalam satu halaman terpadu.",
        karya_search_label: "Cari karya",
        karya_search_placeholder: "Cari judul karya...",
        karya_empty: "Belum ada konten karya yang sesuai filter.",
        btn_load_more: "Muat Lebih Banyak",

        // --- Layanan Akademik Links ---
        link_calendar: "Kalender Akademik",
        link_support_staff: "Staf Pendukung",
        link_scholarship: "Info Beasiswa",
        link_hmif: "Himpunan Mahasiswa (HMIF)",
        link_student_achievement: "Prestasi Mahasiswa",
        link_alumni: "Alumni & Testimoni",
        link_kontributor: "Jadi Kontributor",

        // --- Filters ---
        filter_artikel: "Artikel",
        filter_pengabdian: "Pengabdian",
        filter_mahasiswa: "Mahasiswa",
        filter_penelitian: "Penelitian",
        filter_all: "Semua",
        filter_rubrik: "Rubrik",
        filter_pkm: "PKM",
        filter_people_stories: "People Stories",
        hero_prev_aria: "Slide sebelumnya",
        hero_next_aria: "Slide berikutnya",
        filter_all_kbk: "Semua KBK",
        filter_all_position: "Semua Jabatan",
        loading_lecturer: "Memuat Data Dosen...",

        // --- App Showcase ---
        app_coming_soon: "Aplikasi Lainnya",
        app_coming_soon_sub: "Akan Menyusul",

        // --- Footer ---
        footer_follow_us: "Ikuti Kami",
        footer_copyright: "Program Studi Informatika — Universitas Tanjungpura",

        // --- content.html ---
        breadcrumb_home: "Beranda",
        breadcrumb_news: "Kabar Informatika",
        breadcrumb_penelitian: "Penelitian",
        breadcrumb_pkm: "Pengabdian Masyarakat",
        loading_content: "Memuat konten...",
        error_content: "Gagal memuat konten dari server. Menampilkan data cadangan jika tersedia.",
        empty_content: "Konten belum tersedia untuk kategori ini.",
        sidebar_related: "Konten terkait",
        content_type_berita: "Kabar Informatika",
        content_type_rubrik: "Informatika Berdampak",
        content_type_people_stories: "Informatics People Stories",
        content_type_penelitian: "Penelitian Dosen",
        content_type_pkm: "Pengabdian Kepada Masyarakat",
        label_peneliti: "Peneliti",
        label_pelaksana: "Pelaksana",
        label_tahun: "Tahun",
        label_lokasi: "Lokasi",

        // --- kurikulum.html ---
        kur_page_title: "Simulasi Studi Berbasis IPS",
        kur_page_desc1: "Simulasi nyata: IPS Semester lalu menentukan jatah SKS semester depan.",
        kur_page_desc2: "Jika nilai E, gunakan opsi \"Ulang di Tahun Depan\" (Klik Kanan) untuk memperbaiki.",
        kur_catalog: "Katalog",
        kur_catalog_title: "Katalog Mata Kuliah",
        kur_catalog_drag: "Tarik ke semester untuk mengambil.",
        kur_search: "Cari mata kuliah...",
        kur_academic_options: "OPSI AKADEMIK",
        kur_retake: "Ulang di Tahun Depan",
        kur_set_grade: "SET NILAI (SIMULASI)",
        kur_grade_a: "Sangat Baik",
        kur_grade_b: "Baik",
        kur_grade_c: "Cukup",
        kur_grade_d: "Kurang",
        kur_grade_e: "Gagal/Ulang",
        kur_remove: "Hapus dari KRS",
        kur_legend: "Legenda kategori mata kuliah",
        kur_stat_sks: "Total SKS Lulus",
        kur_stat_gpa: "IPK Kumulatif",
        kur_stat_predicate: "Predikat",
        kur_stat_failed: "SKS Gagal (E)",
        kur_tab_general: "Umum",
        kur_tab_network: "Jaringan",
        kur_label_semester: "Semester",
        kur_label_sks: "SKS",
        kur_label_prev_gpa: "IPS Lalu",
        kur_label_quota: "Jatah",
        kur_new_student: "Mahasiswa Baru",
        kur_initial_package: "Paket Awal",
        kur_overload: "OVERLOAD! Kurangi mata kuliah.",
        kur_chart_gpa: "Tren IPS (Indeks Prestasi Semester)",
        kur_chart_domain: "Komposisi Bidang Ilmu",
        kur_label_ips_short: "IPS",
        kur_predicate_cum_laude: "Cum Laude",
        kur_predicate_very_satisfactory: "Sangat Memuaskan",
        kur_predicate_satisfactory: "Memuaskan",
        kur_predicate_probation: "Nasakom",
        kur_retake_title: "Mengulang",
        kur_toast_failed: "Mata kuliah Gagal (E). Klik kanan > 'Ulang di Tahun Depan' untuk memperbaiki.",
        kur_toast_target_oob: "Maaf, semester tujuan ({semester}) di luar jangkauan simulasi (Maks. Semester 8).",
        kur_toast_exists: "Mata kuliah ini sudah ada di Semester {semester}.",
        kur_toast_added: "Mata kuliah ditambahkan ke Semester {semester}.",

        // --- academic-guidelines.html ---
        ag_badge: "PANDUAN AKADEMIK",
        ag_desc: "Halaman ini merangkum dokumen pedoman akademik, rencana pembelajaran, SOP, format administrasi, dan referensi jurnal untuk kebutuhan pembelajaran di Informatika UNTAN.",
        ag_general: "General Academic Guidelines",
        ag_undergrad: "Buku Pedoman Akademik Sarjana.",
        ag_rps: "Learning Plan (RPS)",
        ag_sop: "Standard Operating Procedures (SOP)",
        ag_templates: "Terms of Reference / Templates",
        ag_module: "Modul",
        ag_final_project: "Final Project Guidelines",
        ag_forms: "Forms / Registration / Administration",
        ag_journal: "Journal Reference",

        // --- graduate-profile.html ---
        gp_badge: "PROFIL LULUSAN 2026",
        gp_desc: "Ringkasan profil lulusan dan Capaian Pembelajaran Lulusan (CPL) untuk kurikulum Informatika UNTAN 2026.",
        gp_heading: "Profil Lulusan",
        gp_table_code: "Kode",
        gp_table_outcome: "Ringkasan Capaian",

        // --- people-based-on-kk.html ---
        pkk_badge: "DOSEN BERDASARKAN KELOMPOK KEAHLIAN",
        pkk_kk_ai: "KK Kecerdasan Buatan",
        pkk_kk_rpl: "KK Rekayasa Perangkat Lunak",
        pkk_kk_net: "KK Jaringan & Keamanan",
        pkk_kk_si: "KK Sistem Informasi",

        // --- subject-and-courses.html ---
        sc_badge: "KURIKULUM & MATA KULIAH",
        sc_desc: "Ringkasan struktur mata kuliah dan pemetaan CPL pada Kurikulum Informatika UNTAN.",
        sc_table_cpl: "CPL",
        sc_table_focus: "Fokus",
        sc_table_courses: "Contoh Mata Kuliah Terkait",
        sc_semester_dist: "Distribusi Semester",
        sc_table_stage: "Tahap",
        sc_table_character: "Karakter Umum",
        sc_stage_foundation: "Fondasi",
        sc_stage_core: "Penguatan Inti",
        sc_stage_specialization: "Peminatan & Integrasi",
        sc_stage_professional: "Profesional",
        sc_electives: "Elective Courses",

        // --- ifuntanhub.html ---
        hub_nav_aria: "Navigasi utama",
        hub_login_aria: "Login ke dashboard",
        hub_docs_aria: "Lihat dokumentasi",
        hub_nav_init: "Init",
        hub_nav_features: "Fitur",
        hub_nav_protocols: "Protokol",
        hub_nav_support: "Dukungan",
        hub_auth_login: "AUTH_LOGIN",
        hub_status_operational: "System Status: Operational",
        hub_hero: "Deploy Riset Anda Secara Instan.",
        hub_desc: "Platform PaaS eksklusif Informatika UNTAN. Permudah pengerjaan Tugas Akhir dengan server modern berbasis kontainer yang siap pakai.",
        hub_start: "MULAI DEPLOYMENT",
        hub_docs: "LIHAT DOKUMENTASI",
        hub_core_capabilities: "// KAPABILITAS_INTI",
        hub_feature_title_autodeploy: "Auto Deployment",
        hub_feature_title_db: "Database Sekali Klik",
        hub_feature_title_ssl: "HTTPS/SSL",
        hub_feature_title_monitoring: "Monitoring",
        hub_feature_title_dockerized: "Terdockerisasi",
        hub_feature_title_latency: "Latensi Rendah",
        hub_feature_cicd: "Pipeline CI/CD instan untuk repositori Git mahasiswa.",
        hub_feature_db: "Instalasi PostgreSQL, MySQL, & Redis tanpa konfigurasi manual.",
        hub_feature_ssl: "Sertifikat keamanan SSL otomatis untuk seluruh subdomain.",
        hub_feature_monitor: "Dashboard statistik penggunaan CPU dan Memory secara real-time.",
        hub_feature_docker: "Isolasi penuh antar proyek mahasiswa menggunakan Docker.",
        hub_feature_latency: "Akses super cepat melalui infrastruktur server lokal UNTAN.",
        hub_workflow: "Workflow Terintegrasi.",
        hub_step_git: "Koneksi Git",
        hub_step_git_desc: "Hubungkan repositori Anda. Server akan mendeteksi framework secara otomatis.",
        hub_step_build: "Build Kontainer",
        hub_step_build_desc: "Aplikasi dibungkus menjadi Docker image yang efisien dan aman.",
        hub_step_publish: "Publikasi Otomatis",
        hub_step_publish_desc: "Setiap perubahan kode akan di-deploy ulang tanpa downtime.",
        hub_console_label: "Console: Deployment",
        hub_build_info: "[INFO_BUILD]",
        hub_console_detecting: "Mendeteksi bahasa: <span class=\"text-indigo-400\">Next.js v14.0</span>",
        hub_console_building: "Membangun aset statis...",
        hub_console_ready: "✓ Kontainer siap (sha256:7f28a...)",
        hub_console_live: "➜ Aktif di: <span class=\"text-white underline decoration-blue-500/50 underline-offset-4\">ta-web.ifuntanhub.dev</span>",
        hub_console_listening: "_ (menunggu git push...)",
        hub_protocols_title: "// PROTOKOL",
        hub_step1_label: "LANGKAH_01",
        hub_step2_label: "LANGKAH_02",
        hub_step3_label: "LANGKAH_03",
        hub_step4_label: "LANGKAH_04",
        hub_tab_preparation: "Persiapan",
        hub_tab_documentation: "Dokumentasi",
        hub_tab_verification: "Verifikasi",
        hub_tab_deployment: "Deployment",
        hub_sop1: "Siapkan KTM dan Bukti Pendaftaran KP/TA dalam format PDF standar.",
        hub_sop2: "Lengkapi Surat Permohonan. Definisikan kebutuhan Stack (Node, Python, Docker) Anda.",
        hub_sop3: "Validasi oleh Dosen Pembimbing melalui tanda tangan resmi pada dokumen terkait.",
        hub_sop4: "Kirim berkas ke admin. Akses dashboard akan diaktivasi setelah verifikasi selesai.",
        hub_download_sop: "UNDUH_FORM_SOP.PDF",
        hub_supervisor_note: "Wajib disetujui Dosen Pembimbing",
        hub_resource_policy: "Kebijakan Resource.",
        hub_default_quota: "Kuota Default Mahasiswa",
        hub_policy_memory: "// Batas Memori",
        hub_policy_storage: "// Penyimpanan",
        hub_policy_ssl: "// Status SSL",
        hub_policy_autostop: "// Henti Otomatis",
        hub_footer_desc: "Infrastruktur Deployment resmi untuk mahasiswa Informatika Universitas Tanjungpura. Dikelola secara mandiri oleh Lab Informatika.",
        hub_footer_nav: "Navigasi",
        hub_footer_doc: "Dokumentasi",
        hub_footer_status: "Status Server",
        hub_footer_security: "Audit Keamanan",
        hub_footer_lab: "Lokasi Lab",
        hub_lab_address: "Lab Komputer Lt. 2,<br>Gedung Teknik Informatika UNTAN,<br>Pontianak, Kalimantan Barat.",
        hub_footer_copyright: "© 2026 JURUSAN INFORMATIKA UNTAN. SEMUA SISTEM SIAP.",
        hub_footer_tagline: "DIRANCANG UNTUK SARJANA & PEMBANGUN.",

        // --- Luco Chatbot ---
        luco_greeting: "Hai! Ada yang bisa Luco bantu? 💬",
        luco_name: "Luco",
        luco_role: "Asisten Informatika",
        luco_placeholder: "Ketik pesan...",
        luco_welcome: "Halo! 👋 Kenalkan, aku Luco, burung asisten dari Prodi Informatika UNTAN! Aku siap bantu kamu dengan info seputar prodi, menerima saran/kritik, atau peluang kerjasama. Ada yang bisa Luco bantu hari ini? 🐦",
        luco_thinking: "Luco sedang berpikir...",
        luco_error: "Aduh! 😅 Luco lagi ada gangguan teknis nih. Coba lagi sebentar lagi ya!",
        luco_fallback: "Waduh! 🐣 Luco masih belajar nih, baru lahir jadi belum tahu semua hal. Coba tanyakan hal lain ya, atau langsung hubungi admin prodi saja!",
        luco_ask_contact: "Untuk kerjasama, boleh Luco minta nama dan email/nomor telepon kamu?",
        luco_thanks_feedback: "Terima kasih banyak atas masukannya! 🙏 Saran/kritik kamu sangat berharga bagi kami.",
        luco_thanks_kerjasama: "Terima kasih! 🤝 Tim kami akan segera menghubungi kamu.",
        luco_aria_open: "Buka chat dengan Luco",
        luco_aria_close: "Tutup chat",
        luco_aria_send: "Kirim pesan",

        // --- profil.html ---
        profile_badge: "PROFIL PRODI",
        profile_title: "Profil Program Studi Informatika",
        profile_subtitle: "Mengenal lebih dekat visi, misi, tujuan, dan struktur organisasi Program Studi Informatika Universitas Tanjungpura.",
        section_vision_mission: "Visi & Misi",
        vision_title: "Visi",
        vision_text: "Menjadi program studi unggul, inovatif, dan berdaya saing global, dengan fokus pada informatika cerdas untuk mendukung keberlanjutan dan pemberdayaan masyarakat melalui solusi teknologi berbasis kearifan lokal.",
        mission_title: "Misi",
        mission_1_title: "Pendidikan OBE Unggul",
        mission_1_desc: "Menyelenggarakan pendidikan berbasis informatika cerdas yang unggul dan inovatif melalui pendekatan OBE untuk menghasilkan lulusan yang kompeten, adaptif, beretika, dan berdaya saing global.",
        mission_2_title: "Penelitian untuk SDGs",
        mission_2_desc: "Mengembangkan penelitian unggul di bidang informatika cerdas yang mendukung pencapaian Tujuan Pembangunan Berkelanjutan (SDGs) dan relevan dengan tantangan lokal maupun global.",
        mission_3_title: "Pengabdian Berbasis Kearifan Lokal",
        mission_3_desc: "Menerapkan dan mengembangkan solusi teknologi berbasis kearifan lokal dalam kegiatan pengabdian kepada masyarakat untuk memberdayakan komunitas secara inklusif dan berkelanjutan.",
        mission_4_title: "Kemitraan Strategis",
        mission_4_desc: "Membangun kemitraan strategis dengan industri, pemerintah, dan institusi akademik untuk memperkuat ekosistem riset, inovasi, dan penerapan informatika cerdas yang memberikan dampak nyata bagi masyarakat.",
        mission_5_title: "Budaya Akademik Beretika",
        mission_5_desc: "Menumbuhkan budaya akademik yang beretika, kolaboratif, kreatif, dan berorientasi pada pembelajaran sepanjang hayat untuk mempersiapkan sumber daya manusia unggul menghadapi disrupsi teknologi.",
        section_goals: "Tujuan",
        goals_title: "Tujuan",
        goals_intro: "Tujuan Program Studi Informatika UNTAN diturunkan dari visi dan misi untuk memastikan setiap aktivitas akademik memberikan dampak nyata bagi lulusan, ilmu pengetahuan, dan masyarakat.",
        goals_1_title: "Lulusan Unggul & Beretika",
        goals_1_desc: "Menghasilkan lulusan yang unggul, inovatif, berdaya saing global, dan memiliki kompetensi dalam bidang informatika cerdas, serta menjunjung tinggi etika, tanggung jawab sosial, dan semangat pembelajaran sepanjang hayat.",
        goals_2_title: "Kurikulum OBE Adaptif",
        goals_2_desc: "Mengembangkan kurikulum berbasis OBE yang adaptif terhadap perkembangan teknologi dan kebutuhan industri, dengan integrasi nilai-nilai kearifan lokal dan keberlanjutan.",
        goals_3_title: "Penelitian Selaras SDGs",
        goals_3_desc: "Mendorong penelitian berkualitas di bidang informatika cerdas yang berkontribusi pada pengembangan ilmu pengetahuan, teknologi tepat guna, dan solusi terhadap permasalahan global maupun lokal sesuai kerangka SDGs.",
        goals_4_title: "Pemberdayaan Berkelanjutan",
        goals_4_desc: "Menyelenggarakan pengabdian kepada masyarakat berbasis teknologi informatika untuk mendukung pemberdayaan masyarakat secara inklusif dan berkelanjutan.",
        goals_5_title: "Kolaborasi Multilevel",
        goals_5_desc: "Menjalin kolaborasi strategis dengan pemangku kepentingan di tingkat lokal, nasional, dan internasional guna memperkuat kapasitas institusi dan memperluas dampak program studi.",
        section_history: "Sejarah",
        section_organization: "Struktur Organisasi",
        org_intro: "Struktur organisasi Jurusan Informatika UNTAN terdiri dari pimpinan jurusan, koordinator program studi, koordinator laboratorium, ketua kelompok keahlian, serta staf pendukung yang bekerja sama untuk mencapai visi dan misi jurusan.",
        org_leadership: "Pimpinan Jurusan",
        org_lab_heads: "Koordinator Laboratorium",
        org_kk: "Kelompok Keahlian (KK)",
        org_support_staff: "Staf Pendukung",
        see_also: "Lihat juga",

        // --- struktur-org.html ---
        breadcrumb_struktur: "Struktur Organisasi",
        struktur_badge: "STRUKTUR ORGANISASI",
        struktur_page_title: "Struktur Organisasi Jurusan",
        struktur_page_subtitle: "Pimpinan jurusan, koordinator program studi, koordinator laboratorium, kelompok keahlian, dan staf pendukung yang membangun Jurusan Informatika UNTAN.",
        profil_page_title: "Profil Program Studi",
        profil_vision_title: "Visi",
        profil_vision_text: "Menjadi program studi unggul, inovatif, dan berdaya saing global, dengan fokus pada informatika cerdas untuk mendukung keberlanjutan dan pemberdayaan masyarakat melalui solusi teknologi berbasis kearifan lokal.",
        profil_mission_title: "Misi",
        profil_mission_1: "Menyelenggarakan pendidikan berbasis informatika cerdas yang unggul dan inovatif melalui pendekatan OBE untuk menghasilkan lulusan yang kompeten, adaptif, beretika, dan berdaya saing global.",
        profil_mission_2: "Mengembangkan penelitian unggul di bidang informatika cerdas yang mendukung pencapaian Tujuan Pembangunan Berkelanjutan (SDGs) dan relevan dengan tantangan lokal maupun global.",
        profil_mission_3: "Menerapkan dan mengembangkan solusi teknologi berbasis kearifan lokal dalam kegiatan pengabdian kepada masyarakat untuk memberdayakan komunitas secara inklusif dan berkelanjutan.",
        profil_mission_4: "Membangun kemitraan strategis dengan industri, pemerintah, dan institusi akademik untuk memperkuat ekosistem riset, inovasi, dan penerapan informatika cerdas yang memberikan dampak nyata bagi masyarakat.",
        profil_mission_5: "Menumbuhkan budaya akademik yang beretika, kolaboratif, kreatif, dan berorientasi pada pembelajaran sepanjang hayat untuk mempersiapkan sumber daya manusia unggul menghadapi disrupsi teknologi.",
        profil_history_title: "Sejarah",
        profil_history_est: "Didirikan Tahun 1993",
        profil_history_desc: "Program Studi Informatika Universitas Tanjungpura didirikan pada tahun 1993 sebagai bagian dari Fakultas Teknik. Sejak saat itu, prodi terus berkembang dan menghasilkan ribuan lulusan yang berkontribusi di berbagai sektor.",
        profil_milestone_1: "1993 - Pendirian Program Studi",
        profil_milestone_2: "2010 - Akreditasi B dari BAN-PT",
        profil_milestone_3: "2020 - Akreditasi Unggul dari BAN-PT",
        profil_milestone_4: "2024 - Kurikulum OBE dengan 4 Konsentrasi",
        profil_org_title: "Struktur Organisasi",
        profil_kaprodi: "Ketua Program Studi",
        profil_sekprodi: "Sekretaris Program Studi",
        profil_kepala_lab: "Kepala Laboratorium",
        profil_koordinator: "Koordinator Akademik",

        // --- fasilitas.html ---
        fasilitas_page_title: "Fasilitas & Laboratorium",
        fasilitas_intro: "Program Studi Informatika UNTAN dilengkapi dengan fasilitas laboratorium modern untuk mendukung kegiatan pembelajaran dan penelitian.",
        lab_network_title: "Laboratorium Jaringan Komputer",
        lab_network_desc: "Laboratorium untuk praktikum dan penelitian di bidang jaringan komputer, keamanan siber, dan administrasi sistem.",
        lab_se_title: "Laboratorium Rekayasa Perangkat Lunak",
        lab_se_desc: "Fasilitas pengembangan perangkat lunak dengan berbagai platform dan framework modern.",
        lab_is_title: "Laboratorium Sistem Informasi",
        lab_is_desc: "Laboratorium untuk pengembangan sistem informasi, basis data, dan analisis bisnis.",
        lab_ai_title: "Laboratorium Kecerdasan Buatan",
        lab_ai_desc: "Fasilitas komputasi untuk penelitian machine learning, computer vision, dan natural language processing.",
        lab_multimedia_title: "Laboratorium Multimedia",
        lab_multimedia_desc: "Laboratorium untuk pengembangan konten multimedia, game, dan realitas virtual.",
        lab_head: "Kepala Lab",
        lab_equipment: "Peralatan Utama",

        // --- riset.html ---
        nav_research: "Riset",
        riset_title: "Riset & Pengabdian",
        riset_subtitle: "Daftar penelitian dan kegiatan pengabdian kepada masyarakat dosen Informatika UNTAN",
        riset_filter_all: "Semua",
        riset_filter_penelitian: "Penelitian",
        riset_filter_pkm: "Pengabdian (PKM)",
        riset_search_placeholder: "Cari judul penelitian atau nama peneliti...",
        riset_stat_total: "Total Kegiatan",
        riset_stat_penelitian: "Penelitian",
        riset_stat_pkm: "Pengabdian",
        riset_stat_shown: "Ditampilkan",
        riset_load_more: "Muat Lebih Banyak",
        riset_empty: "Tidak ada data yang cocok dengan pencarian.",

        // --- kontributor.html ---
        kontrib_page_title: "Kirim Karya - Informatika UNTAN",
        kontrib_hero_badge: "PROGRAM KONTRIBUTOR",
        kontrib_hero_title: "Bagikan Karya Tulis Anda",
        kontrib_hero_desc: "Tulis dan kirimkan artikel Anda untuk ditampilkan di kanal resmi Informatika UNTAN. Tim redaksi akan mereview dan menghubungi Anda.",
        kontrib_step1: "Tulis Karya",
        kontrib_step1_desc: "Buat artikel sesuai kategori yang dipilih",
        kontrib_step2: "Kirim",
        kontrib_step2_desc: "Submit formulir dan dapatkan kode lacak",
        kontrib_step3: "Pantau Status",
        kontrib_step3_desc: "Cek perkembangan karya Anda kapan saja",
        kontrib_form_title: "Formulir Pengiriman Karya",
        kontrib_form_subtitle: "Isi semua kolom dengan lengkap. Karya yang masuk akan direviw dalam 3-7 hari kerja.",
        kontrib_nama: "Nama Penulis",
        kontrib_nama_placeholder: "Nama lengkap Anda",
        kontrib_email: "Alamat Email",
        kontrib_email_placeholder: "email@contoh.com",
        kontrib_judul: "Judul Artikel",
        kontrib_judul_placeholder: "Judul yang menarik dan deskriptif",
        kontrib_kategori: "Kategori",
        kontrib_kat_pilih: "Pilih kategori...",
        kontrib_kat_berita: "Kabar Informatika",
        kontrib_kat_rubrik: "Informatika Berdampak",
        kontrib_kat_people: "People Stories",
        kontrib_body: "Isi Artikel",
        kontrib_body_hint: "Minimal 200 karakter. Gunakan toolbar untuk memformat teks.",
        kontrib_submit: "Kirim Karya",
        kontrib_submitting: "Mengirim...",
        kontrib_success_title: "Karya Berhasil Dikirim!",
        kontrib_success_desc: "Simpan kode lacak berikut untuk memantau status karya Anda.",
        kontrib_success_kode_label: "Kode Lacak Anda",
        kontrib_success_email_info: "Status juga bisa dipantau lewat email:",
        kontrib_submit_another: "Kirim Karya Lain",
        kontrib_monitor_title: "Pantau Status Karya",
        kontrib_monitor_desc: "Masukkan email atau kode tracking untuk memantau status karya Anda.",
        kontrib_monitor_email_placeholder: "Email atau kode tracking (contoh: KTR-20260407-AB12)",
        kontrib_monitor_btn: "Cek Status",
        kontrib_monitor_checking: "Memeriksa...",
        kontrib_status_draft: "Menunggu Review",
        kontrib_status_review: "Sedang Direview",
        kontrib_status_revisi: "Perlu Revisi",
        kontrib_status_publish: "Diterbitkan",
        kontrib_status_ditolak: "Ditolak",
        kontrib_catatan_admin: "Catatan Redaksi",
        kontrib_no_result: "Tidak ada karya ditemukan untuk email ini.",
        kontrib_error_submit: "Gagal mengirim karya. Periksa koneksi dan coba lagi.",
        kontrib_error_fetch: "Gagal memuat status. Periksa koneksi dan coba lagi.",
        kontrib_tanggal: "Dikirim pada",
        kontrib_copy_kode: "Salin Kode",
        kontrib_copied: "Tersalin!",
        kontrib_gambar: "Gambar Thumbnail",
        kontrib_gambar_hint: "JPG/PNG/WebP, maks. 5 MB. Opsional, tapi sangat dianjurkan.",
        kontrib_gambar_choose: "Pilih Gambar",
        kontrib_gambar_change: "Ganti Gambar",
        kontrib_gambar_remove: "Hapus",
        kontrib_gambar_uploading: "Mengunggah gambar...",
        kontrib_gambar_error: "Gagal mengunggah gambar. Coba lagi.",
        kontrib_gambar_size_error: "Ukuran file melebihi 5 MB.",
        kontrib_gambar_type_error: "Format tidak didukung. Gunakan JPG, PNG, atau WebP.",
        kontrib_guidelines_title: "Panduan Penulisan",
        kontrib_guideline_1: "Gunakan bahasa Indonesia yang baik dan benar.",
        kontrib_guideline_2: "Panjang artikel minimal 500 kata.",
        kontrib_guideline_3: "Sertakan fakta dan data yang akurat dan dapat diverifikasi.",
        kontrib_guideline_4: "Hindari plagiarisme. Karya harus orisinal.",
        kontrib_guideline_5: "Tim redaksi berhak menyunting konten untuk keperluan editorial.",
    },

    en: {
        // --- Common / Shared ---
        skip_to_content: "Skip to Main Content",
        btn_more: "Read More",
        btn_view_all: "View All",
        btn_read_more: "Read More",
        btn_explore: "Explore",
        btn_reset_filter: "Reset Filter",
        loading: "Loading...",
        no_data: "No data found.",
        coming_soon: "Coming Soon",
        follow_us: "Follow Us",

        // --- Navbar Top ---
        nav_about: "About Us",
        nav_program: "Programs",
        nav_sdm: "Human Resources",
        nav_facilities: "Facilities",
        nav_works: "Works & Events",
        nav_contact: "Contact",

        // --- Mega Menu: Tentang ---
        mega_about_title: "About Informatics UNTAN",
        mega_about_desc: "Excellently Accredited, producing competent graduates in information technology since 1993.",
        link_history: "History & Milestones",
        link_history_desc: "Long journey of building digital generations",
        link_org: "Organizational Structure",
        link_org_desc: "Leadership and management team",
        link_vision: "Vision & Mission",
        link_vision_desc: "Direction and goals of program development",
        link_partnership: "Partnerships & MoU",
        link_partnership_desc: "Industry and academic partners",

        // --- Mega Menu: Program ---
        mega_program_obe: "OBE-Based Curriculum",
        mega_program_obe_desc: "Outcome-Based Education with 4 concentration tracks: AI, Software Engineering, Network, and Information Systems.",
        btn_krs_sim: "Course Enrollment Simulation",
        link_academic: "Academics",
        link_academic_desc: "Schedule, enrollment, and calendar",
        link_accreditation: "Accreditation",
        link_accred_desc: "Excellent Status by BAN-PT",
        link_graduate: "Graduate Profile",
        link_graduate_desc: "Competencies & career",
        link_courses: "Courses",
        link_guideline: "Guidelines",
        link_guideline_desc: "Academic guidebook",
        link_statistics: "Informatics in Numbers",
        link_statistics_desc: "Statistics & data",

        // --- Mega Menu: SDM ---
        mega_sdm_title: "Professional Teaching Team",
        mega_sdm_desc: "30+ lecturers with Master/Doctoral qualifications from leading domestic and international universities.",
        btn_all_lecturers: "View All Lecturers",
        label_expertise: "Expertise Groups",

        // --- SDM: Kelompok Keahlian ---
        kk_ai: "Artificial Intelligence",
        kk_se: "Software Engineering",
        kk_network: "Network & Security",
        kk_is: "Information Systems",

        // --- Navigation ---
        nav_home: "Home",

        // --- Mega Menu: Fasilitas ---
        mega_lab: "Laboratories",
        mega_lab_desc: "8 modern labs with the latest equipment",
        mega_dc: "Data Center",
        mega_dc_desc: "Server & local cloud infrastructure",
        mega_eresources: "E-Resources",
        mega_eresources_desc: "Access to journals & scientific databases",
        mega_hub_desc: "PaaS Platform for students",

        // --- Mega Menu: Karya & Agenda ---
        mega_research_title: "Featured Research",
        mega_sinta_title: "Best SINTA Index",
        mega_sinta_desc: "Lecturer publications indexed in Scopus, WoS, and accredited national journals.",
        btn_publications: "View Publications",
        link_info_agenda: "Info & Events",
        link_info_agenda_desc: "Announcements and event schedules",
        link_research: "Research",
        link_research_desc: "Lecturer and student research",
        link_community: "Community Service",
        link_community_desc: "Community service programs",
        link_seminar: "Seminars & Conferences",
        link_seminar_desc: "Academic & scientific events",
        link_achievements: "Achievements",
        link_achievements_desc: "Lecturer & student achievements",

        // --- Mega Menu: Kontak ---
        mega_contact_title: "Contact Us",
        link_official_contact: "Official Contact",
        link_contact_desc: "Staff contact directory",
        link_feedback: "Feedback & Suggestions",
        link_feedback_desc: "Send your feedback",
        link_social_media: "Social Media",

        // --- Hero ---
        hero_badge: "Excellence & Innovation",
        hero_title: "Shaping the Architects of Digital Future",
        hero_desc: "Informatics Study Program at Tanjungpura University produces digital talents ready to compete in the era of Industry 4.0 with a competency-based curriculum.",
        hero_cta_primary: "Explore Programs",
        hero_cta_secondary: "Full Profile",

        // --- Marquee ---
        marquee_connecting: "Connecting to server...",

        // --- Badges/Tags ---
        badge_latest_info: "LATEST NEWS",
        badge_achievement: "ACHIEVEMENTS & RECOGNITION",
        badge_works_ideas: "WORKS & IDEAS",
        badge_lecturer: "LECTURERS & RESEARCHERS",
        badge_people_stories: "INSPIRATION FROM REAL EXPERIENCES",
        badge_discover_more: "DISCOVER MORE",
        badge_about_us: "ABOUT US",
        badge_eresources: "Informatics e-Resources",
        badge_penelitian: "FACULTY RESEARCH",
        badge_pkm: "COMMUNITY SERVICE",

        // --- Section Headers ---
        section_rankings: "Rankings",
        section_academic_services: "Academic Services",
        section_news: "Informatics News",
        section_news_more: "View More News",
        kabar_page_title: "Informatics News",
        kabar_page_subtitle: "All latest news from Informatics UNTAN",
        kabar_search_placeholder: "Search news title or author...",
        kabar_empty: "No news matches your search.",
        kabar_load_more: "Load More",
        section_news_tag: "Latest Updates",
        section_agenda: "Upcoming Events",
        section_social: "Announcements & Social Media",
        section_innovation: "Digital Innovation & Applications",
        section_impact: "Impactful Informatics",
        section_impact_desc: "Publications and community service by lecturers and students.",
        section_lecturers: "Academic Staff",
        section_lecturer_desc: "Quality educators with expertise in their respective fields.",
        section_stories: "Informatics People Stories",
        section_stories_badge: "INSPIRATION FROM REAL EXPERIENCES OF LECTURERS, STUDENTS, AND ALUMNI.",
        section_explore: "Explore More",
        section_about_heading: "Building a Digital Future",
        section_penelitian: "Faculty Research",
        section_penelitian_desc: "Research and scientific publications from Informatics UNTAN faculty.",
        section_pkm: "Community Service",
        section_pkm_desc: "Community service programs using information technology.",

        // --- CTA Links ---
        cta_all_rubrics: "All Rubrics",
        cta_all_stories: "All Stories",
        cta_visit_instagram: "Visit Instagram",
        cta_follow_ig: "FOLLOW OUR DAILY LIFE @INFORMATIKA.UNTAN",
        kegiatan_tagline: "EVENTS & LATEST INFORMATION",
        cta_full_profile: "Full Profile",
        cta_download_brochure: "Download Brochure",
        cta_brief: "Brief About Informatics Untan",
        cta_pmb: "New Student Admission Information",
        cta_student_works: "Student Achievements & Works Spotlight",
        cta_research_kbk: "Research & Expertise Groups",
        cta_student_life: "Student Life & Association (HMIF)",
        cta_virtual_tour: "Virtual Tour / Our Official Video Profile",
        cta_all_karya: "See All Works",
        btn_profile_prodi: "Program Profile",
        btn_research_innovation: "Research Innovation",

        // --- Karya & Ideas ---
        link_all_karya: "All Works",
        link_all_karya_desc: "View all works in one page",
        breadcrumb_karya: "Works & Ideas",
        karya_badge: "WORKS & IDEAS",
        karya_page_title: "Informatics UNTAN Works & Ideas",
        karya_page_desc: "Explore rubrics, faculty research, community service, and people stories in one integrated page.",
        karya_search_label: "Search works",
        karya_search_placeholder: "Search works title...",
        karya_empty: "No works match the selected filter.",
        btn_load_more: "Load More",

        // --- Layanan Akademik Links ---
        link_calendar: "Academic Calendar",
        link_support_staff: "Support Staff",
        link_scholarship: "Scholarship Info",
        link_hmif: "Student Association (HMIF)",
        link_student_achievement: "Student Achievements",
        link_alumni: "Alumni & Testimonials",
        link_kontributor: "Become a Contributor",

        // --- Filters ---
        filter_artikel: "Articles",
        filter_pengabdian: "Community Service",
        filter_mahasiswa: "Students",
        filter_penelitian: "Research",
        filter_all: "All",
        filter_rubrik: "Rubric",
        filter_pkm: "Community Service",
        filter_people_stories: "People Stories",
        hero_prev_aria: "Previous slide",
        hero_next_aria: "Next slide",
        filter_all_kbk: "All Research Groups",
        filter_all_position: "All Positions",
        loading_lecturer: "Loading Lecturer Data...",

        // --- App Showcase ---
        app_coming_soon: "More Apps",
        app_coming_soon_sub: "Coming Soon",

        // --- Footer ---
        footer_follow_us: "Follow Us",
        footer_copyright: "Informatics Study Program — Tanjungpura University",

        // --- content.html ---
        breadcrumb_home: "Home",
        breadcrumb_news: "Informatics News",
        breadcrumb_penelitian: "Research",
        breadcrumb_pkm: "Community Service",
        loading_content: "Loading content...",
        error_content: "Failed to load content from server. Displaying backup data if available.",
        empty_content: "No content available for this category.",
        sidebar_related: "Related Content",
        content_type_berita: "Informatics News",
        content_type_rubrik: "Impactful Informatics",
        content_type_people_stories: "Informatics People Stories",
        content_type_penelitian: "Faculty Research",
        content_type_pkm: "Community Service",
        label_peneliti: "Researcher",
        label_pelaksana: "Implementer",
        label_tahun: "Year",
        label_lokasi: "Location",

        // --- kurikulum.html ---
        kur_page_title: "IPS-Based Study Simulation",
        kur_page_desc1: "Real simulation: Previous semester GPA determines the credit quota for next semester.",
        kur_page_desc2: "If grade is E, use the \"Retake Next Year\" option (Right Click) to improve.",
        kur_catalog: "Catalog",
        kur_catalog_title: "Course Catalog",
        kur_catalog_drag: "Drag to semester to enroll.",
        kur_search: "Search course...",
        kur_academic_options: "ACADEMIC OPTIONS",
        kur_retake: "Retake Next Year",
        kur_set_grade: "SET GRADE (SIMULATION)",
        kur_grade_a: "Excellent",
        kur_grade_b: "Good",
        kur_grade_c: "Fair",
        kur_grade_d: "Poor",
        kur_grade_e: "Fail/Retake",
        kur_remove: "Remove from Enrollment",
        kur_legend: "Course category legend",
        kur_stat_sks: "Total Credits Passed",
        kur_stat_gpa: "Cumulative GPA",
        kur_stat_predicate: "Predicate",
        kur_stat_failed: "Failed Credits (E)",
        kur_tab_general: "General",
        kur_tab_network: "Network",
        kur_label_semester: "Semester",
        kur_label_sks: "Credits",
        kur_label_prev_gpa: "Previous GPA",
        kur_label_quota: "Quota",
        kur_new_student: "New Student",
        kur_initial_package: "Initial Package",
        kur_overload: "OVERLOAD! Reduce courses.",
        kur_chart_gpa: "GPA Trend (Semester Grade Point Average)",
        kur_chart_domain: "Field of Study Composition",
        kur_label_ips_short: "GPA",
        kur_predicate_cum_laude: "Cum Laude",
        kur_predicate_very_satisfactory: "Very Satisfactory",
        kur_predicate_satisfactory: "Satisfactory",
        kur_predicate_probation: "Probation",
        kur_retake_title: "Retake",
        kur_toast_failed: "Course marked as Failed (E). Right click > 'Retake Next Year' to improve.",
        kur_toast_target_oob: "Sorry, target semester ({semester}) is outside simulation range (Max Semester 8).",
        kur_toast_exists: "This course already exists in Semester {semester}.",
        kur_toast_added: "Course added to Semester {semester}.",

        // --- academic-guidelines.html ---
        ag_badge: "ACADEMIC GUIDELINES",
        ag_desc: "This page summarizes academic guidelines, learning plans, SOPs, administrative formats, and journal references for learning needs at Informatics UNTAN.",
        ag_general: "General Academic Guidelines",
        ag_undergrad: "Undergraduate Academic Guidebook.",
        ag_rps: "Learning Plan (RPS)",
        ag_sop: "Standard Operating Procedures (SOP)",
        ag_templates: "Terms of Reference / Templates",
        ag_module: "Module",
        ag_final_project: "Final Project Guidelines",
        ag_forms: "Forms / Registration / Administration",
        ag_journal: "Journal Reference",

        // --- graduate-profile.html ---
        gp_badge: "GRADUATE PROFILE 2026",
        gp_desc: "Summary of graduate profile and Program Learning Outcomes (PLO) for Informatics UNTAN curriculum 2026.",
        gp_heading: "Graduate Profile",
        gp_table_code: "Code",
        gp_table_outcome: "Outcome Summary",

        // --- people-based-on-kk.html ---
        pkk_badge: "LECTURERS BY EXPERTISE GROUP",
        pkk_kk_ai: "AI Expertise Group",
        pkk_kk_rpl: "Software Engineering Expertise Group",
        pkk_kk_net: "Network & Security Expertise Group",
        pkk_kk_si: "Information Systems Expertise Group",

        // --- subject-and-courses.html ---
        sc_badge: "CURRICULUM & COURSES",
        sc_desc: "Summary of course structure and PLO mapping in Informatics UNTAN Curriculum.",
        sc_table_cpl: "PLO",
        sc_table_focus: "Focus",
        sc_table_courses: "Related Course Examples",
        sc_semester_dist: "Semester Distribution",
        sc_table_stage: "Stage",
        sc_table_character: "General Character",
        sc_stage_foundation: "Foundation",
        sc_stage_core: "Core Strengthening",
        sc_stage_specialization: "Specialization & Integration",
        sc_stage_professional: "Professional",
        sc_electives: "Elective Courses",

        // --- ifuntanhub.html ---
        hub_nav_aria: "Main navigation",
        hub_login_aria: "Login to dashboard",
        hub_docs_aria: "View documentation",
        hub_nav_init: "Init",
        hub_nav_features: "Features",
        hub_nav_protocols: "Protocols",
        hub_nav_support: "Support",
        hub_auth_login: "AUTH_LOGIN",
        hub_status_operational: "System Status: Operational",
        hub_hero: "Deploy Your Research Instantly.",
        hub_desc: "Exclusive PaaS platform for Informatics UNTAN. Simplify your thesis work with modern container-based servers ready to use.",
        hub_start: "START DEPLOYMENT",
        hub_docs: "VIEW DOCUMENTATION",
        hub_core_capabilities: "// CORE_CAPABILITIES",
        hub_feature_title_autodeploy: "Auto Deployment",
        hub_feature_title_db: "One-Click DB",
        hub_feature_title_ssl: "HTTPS/SSL",
        hub_feature_title_monitoring: "Monitoring",
        hub_feature_title_dockerized: "Dockerized",
        hub_feature_title_latency: "Low Latency",
        hub_feature_cicd: "Instant CI/CD pipeline for student Git repositories.",
        hub_feature_db: "PostgreSQL, MySQL, & Redis installation without manual configuration.",
        hub_feature_ssl: "Automatic SSL security certificates for all subdomains.",
        hub_feature_monitor: "Real-time CPU and Memory usage statistics dashboard.",
        hub_feature_docker: "Full isolation between student projects using Docker.",
        hub_feature_latency: "Super fast access via UNTAN local server infrastructure.",
        hub_workflow: "Integrated Workflow.",
        hub_step_git: "Git Connection",
        hub_step_git_desc: "Connect your repository. Server will detect the framework automatically.",
        hub_step_build: "Build Container",
        hub_step_build_desc: "Application is wrapped into an efficient and secure Docker image.",
        hub_step_publish: "Auto Publish",
        hub_step_publish_desc: "Every code change will be redeployed without downtime.",
        hub_console_label: "Console: Deployment",
        hub_build_info: "[BUILD_INFO]",
        hub_console_detecting: "Detecting language: <span class=\"text-indigo-400\">Next.js v14.0</span>",
        hub_console_building: "Building static assets...",
        hub_console_ready: "✓ Container ready (sha256:7f28a...)",
        hub_console_live: "➜ Live at: <span class=\"text-white underline decoration-blue-500/50 underline-offset-4\">ta-web.ifuntanhub.dev</span>",
        hub_console_listening: "_ (listening for git push...)",
        hub_protocols_title: "// PROTOCOLS",
        hub_step1_label: "STEP_01",
        hub_step2_label: "STEP_02",
        hub_step3_label: "STEP_03",
        hub_step4_label: "STEP_04",
        hub_tab_preparation: "Preparation",
        hub_tab_documentation: "Documentation",
        hub_tab_verification: "Verification",
        hub_tab_deployment: "Deployment",
        hub_sop1: "Prepare Student ID and KP/TA Registration Proof in standard PDF format.",
        hub_sop2: "Complete the Application Letter. Define your Stack requirements (Node, Python, Docker).",
        hub_sop3: "Validation by Supervisor through official signature on related documents.",
        hub_sop4: "Submit files to admin. Dashboard access will be activated after verification is complete.",
        hub_download_sop: "DOWNLOAD_SOP_FORM.PDF",
        hub_supervisor_note: "Must be approved by Supervisor",
        hub_resource_policy: "Resource Policy.",
        hub_default_quota: "Default Student Quota",
        hub_policy_memory: "// Memory Limit",
        hub_policy_storage: "// Storage",
        hub_policy_ssl: "// SSL Status",
        hub_policy_autostop: "// Auto-Stop",
        hub_footer_desc: "Official Deployment Infrastructure for Informatics students at Tanjungpura University. Self-managed by Informatics Lab.",
        hub_footer_nav: "Navigation",
        hub_footer_doc: "Documentation",
        hub_footer_status: "Server Status",
        hub_footer_security: "Security Audit",
        hub_footer_lab: "Lab Location",
        hub_lab_address: "Computer Lab 2nd Floor,<br>Informatics Engineering Building UNTAN,<br>Pontianak, West Kalimantan.",
        hub_footer_copyright: "© 2026 UNTAN INFORMATICS DEPARTMENT. ALL SYSTEMS GO.",
        hub_footer_tagline: "DESIGNED FOR SCHOLARS & BUILDERS.",

        // --- Luco Chatbot ---
        luco_greeting: "Hi! Can Luco help you? 💬",
        luco_name: "Luco",
        luco_role: "Informatics Assistant",
        luco_placeholder: "Type a message...",
        luco_welcome: "Hey there! 👋 I'm Luco, your friendly bird assistant from Informatics UNTAN! I'm here to help you with info about our study program, receive your feedback, or connect you with collaboration opportunities. What can I help you with today? 🐦",
        luco_thinking: "Luco is thinking...",
        luco_error: "Oh no! 😅 Luco is having a little trouble right now. Please try again in a moment!",
        luco_fallback: "Oops! 🐣 Luco is still learning and just hatched recently, so I don't know everything yet. Please try asking something else, or contact the department admin directly!",
        luco_ask_contact: "For collaboration inquiries, may Luco have your name and email/phone number?",
        luco_thanks_feedback: "Thank you so much for your feedback! 🙏 Your input is very valuable to us.",
        luco_thanks_kerjasama: "Thank you! 🤝 Our team will contact you soon.",
        luco_aria_open: "Open chat with Luco",
        luco_aria_close: "Close chat",
        luco_aria_send: "Send message",

        // --- profil.html ---
        profile_badge: "PROGRAM PROFILE",
        profile_title: "Informatics Study Program Profile",
        profile_subtitle: "Learn more about the vision, mission, goals, and organizational structure of the Informatics Study Program at Tanjungpura University.",
        section_vision_mission: "Vision & Mission",
        vision_title: "Vision",
        vision_text: "To become a leading, innovative, and globally competitive Informatics Study Program focusing on intelligent informatics for sustainability and community empowerment through technology solutions rooted in local wisdom.",
        mission_title: "Mission",
        mission_1_title: "Excellent OBE Education",
        mission_1_desc: "To deliver excellent and innovative education in intelligent informatics through an OBE approach to produce graduates who are competent, adaptive, ethical, and globally competitive.",
        mission_2_title: "Research for the SDGs",
        mission_2_desc: "To develop high-quality research in intelligent informatics that supports the achievement of the Sustainable Development Goals (SDGs) and addresses both local and global challenges.",
        mission_3_title: "Community Service via Local Wisdom",
        mission_3_desc: "To implement and develop technology solutions rooted in local wisdom through community service activities to empower communities in an inclusive and sustainable manner.",
        mission_4_title: "Strategic Partnerships",
        mission_4_desc: "To establish strategic partnerships with industry, government, and academic institutions to strengthen the ecosystem of research, innovation, and the application of intelligent informatics that generates tangible societal impact.",
        mission_5_title: "Ethical Academic Culture",
        mission_5_desc: "To foster an ethical, collaborative, and creative academic culture oriented toward lifelong learning to prepare excellent human resources capable of addressing technological disruption.",
        section_goals: "Goals",
        goals_title: "Goals",
        goals_intro: "The goals of the Informatics Study Program at UNTAN are derived from its vision and mission to ensure that every academic activity produces tangible impact for graduates, science, and society.",
        goals_1_title: "Excellent & Ethical Graduates",
        goals_1_desc: "To produce graduates who are excellent, innovative, and globally competitive, with strong competencies in intelligent informatics and upholding ethics, social responsibility, and a lifelong learning spirit.",
        goals_2_title: "Adaptive OBE Curriculum",
        goals_2_desc: "To develop an OBE-based curriculum that is adaptive to technological developments and industry needs, integrating values of local wisdom and sustainability.",
        goals_3_title: "SDGs-Aligned Research",
        goals_3_desc: "To encourage quality research in intelligent informatics that contributes to the advancement of science, appropriate technology, and solutions to global and local challenges within the SDGs framework.",
        goals_4_title: "Sustainable Empowerment",
        goals_4_desc: "To conduct community service based on informatics technology that supports inclusive and sustainable community empowerment.",
        goals_5_title: "Multi-level Collaboration",
        goals_5_desc: "To establish strategic collaboration with stakeholders at local, national, and international levels to strengthen institutional capacity and expand the study program's impact.",
        section_history: "History",
        section_organization: "Organizational Structure",
        org_intro: "The organizational structure of the Informatics Department at UNTAN consists of department leadership, study program coordinators, laboratory coordinators, expertise group heads, and supporting staff working together to achieve the department's vision and mission.",
        org_leadership: "Department Leadership",
        org_lab_heads: "Laboratory Coordinators",
        org_kk: "Expertise Groups (KK)",
        org_support_staff: "Supporting Staff",
        see_also: "See also",

        // --- struktur-org.html ---
        breadcrumb_struktur: "Organizational Structure",
        struktur_badge: "ORGANIZATIONAL STRUCTURE",
        struktur_page_title: "Department Organizational Structure",
        struktur_page_subtitle: "Department leadership, study program coordinators, laboratory coordinators, expertise groups, and supporting staff building the Informatics Department at UNTAN.",
        profil_page_title: "Program Profile",
        profil_vision_title: "Vision",
        profil_vision_text: "To become a leading, innovative, and globally competitive Informatics Study Program focusing on intelligent informatics for sustainability and community empowerment through technology solutions rooted in local wisdom.",
        profil_mission_title: "Mission",
        profil_mission_1: "To deliver excellent and innovative education in intelligent informatics through an OBE approach to produce graduates who are competent, adaptive, ethical, and globally competitive.",
        profil_mission_2: "To develop high-quality research in intelligent informatics that supports the achievement of the Sustainable Development Goals (SDGs) and addresses both local and global challenges.",
        profil_mission_3: "To implement and develop technology solutions rooted in local wisdom through community service activities to empower communities in an inclusive and sustainable manner.",
        profil_mission_4: "To establish strategic partnerships with industry, government, and academic institutions to strengthen the ecosystem of research, innovation, and the application of intelligent informatics that generates tangible societal impact.",
        profil_mission_5: "To foster an ethical, collaborative, and creative academic culture oriented toward lifelong learning to prepare excellent human resources capable of addressing technological disruption.",
        profil_history_title: "History",
        profil_history_est: "Established in 1993",
        profil_history_desc: "The Informatics Study Program at Tanjungpura University was established in 1993 as part of the Faculty of Engineering. Since then, the program has continued to grow and produce thousands of graduates who contribute to various sectors.",
        profil_milestone_1: "1993 - Study Program Establishment",
        profil_milestone_2: "2010 - B Accreditation from BAN-PT",
        profil_milestone_3: "2020 - Excellent Accreditation from BAN-PT",
        profil_milestone_4: "2024 - OBE Curriculum with 4 Concentrations",
        profil_org_title: "Organizational Structure",
        profil_kaprodi: "Head of Study Program",
        profil_sekprodi: "Secretary of Study Program",
        profil_kepala_lab: "Laboratory Head",
        profil_koordinator: "Academic Coordinator",

        // --- fasilitas.html ---
        fasilitas_page_title: "Facilities & Laboratories",
        fasilitas_intro: "The Informatics Study Program at UNTAN is equipped with modern laboratory facilities to support learning and research activities.",
        lab_network_title: "Computer Network Laboratory",
        lab_network_desc: "Laboratory for practicum and research in computer networking, cybersecurity, and system administration.",
        lab_se_title: "Software Engineering Laboratory",
        lab_se_desc: "Software development facility with various modern platforms and frameworks.",
        lab_is_title: "Information Systems Laboratory",
        lab_is_desc: "Laboratory for information systems development, databases, and business analysis.",
        lab_ai_title: "Artificial Intelligence Laboratory",
        lab_ai_desc: "Computing facility for machine learning, computer vision, and natural language processing research.",
        lab_multimedia_title: "Multimedia Laboratory",
        lab_multimedia_desc: "Laboratory for multimedia content development, games, and virtual reality.",
        lab_head: "Lab Head",
        lab_equipment: "Main Equipment",

        // --- riset.html ---
        nav_research: "Research",
        riset_title: "Research & Community Service",
        riset_subtitle: "List of research and community service activities by Informatics UNTAN lecturers",
        riset_filter_all: "All",
        riset_filter_penelitian: "Research",
        riset_filter_pkm: "Community Service",
        riset_search_placeholder: "Search by title or researcher name...",
        riset_stat_total: "Total Activities",
        riset_stat_penelitian: "Research",
        riset_stat_pkm: "Community Service",
        riset_stat_shown: "Displayed",
        riset_load_more: "Load More",
        riset_empty: "No data matches your search.",

        // --- kontributor.html ---
        kontrib_page_title: "Submit Your Work - Informatics UNTAN",
        kontrib_hero_badge: "CONTRIBUTOR PROGRAM",
        kontrib_hero_title: "Share Your Writing",
        kontrib_hero_desc: "Write and submit your article to be featured on the official Informatics UNTAN channels. The editorial team will review and contact you.",
        kontrib_step1: "Write",
        kontrib_step1_desc: "Create an article in your chosen category",
        kontrib_step2: "Submit",
        kontrib_step2_desc: "Submit the form and get a tracking code",
        kontrib_step3: "Track Status",
        kontrib_step3_desc: "Check your submission's progress anytime",
        kontrib_form_title: "Submission Form",
        kontrib_form_subtitle: "Fill in all fields completely. Submitted work will be reviewed within 3-7 business days.",
        kontrib_nama: "Author Name",
        kontrib_nama_placeholder: "Your full name",
        kontrib_email: "Email Address",
        kontrib_email_placeholder: "email@example.com",
        kontrib_judul: "Article Title",
        kontrib_judul_placeholder: "An engaging and descriptive title",
        kontrib_kategori: "Category",
        kontrib_kat_pilih: "Select a category...",
        kontrib_kat_berita: "Kabar Informatika",
        kontrib_kat_rubrik: "Informatika Berdampak",
        kontrib_kat_people: "People Stories",
        kontrib_body: "Article Content",
        kontrib_body_hint: "Minimum 200 characters. Use the toolbar to format your text.",
        kontrib_submit: "Submit Work",
        kontrib_submitting: "Submitting...",
        kontrib_success_title: "Work Submitted Successfully!",
        kontrib_success_desc: "Save the following tracking code to monitor your submission status.",
        kontrib_success_kode_label: "Your Tracking Code",
        kontrib_success_email_info: "Status can also be tracked via email:",
        kontrib_submit_another: "Submit Another Work",
        kontrib_monitor_title: "Track Submission Status",
        kontrib_monitor_desc: "Enter your email or tracking code to check your submission status.",
        kontrib_monitor_email_placeholder: "Email or tracking code (e.g. KTR-20260407-AB12)",
        kontrib_monitor_btn: "Check Status",
        kontrib_monitor_checking: "Checking...",
        kontrib_status_draft: "Awaiting Review",
        kontrib_status_review: "Under Review",
        kontrib_status_revisi: "Needs Revision",
        kontrib_status_publish: "Published",
        kontrib_status_ditolak: "Rejected",
        kontrib_catatan_admin: "Editorial Note",
        kontrib_no_result: "No submissions found for this email.",
        kontrib_error_submit: "Failed to submit. Check your connection and try again.",
        kontrib_error_fetch: "Failed to load status. Check your connection and try again.",
        kontrib_tanggal: "Submitted on",
        kontrib_copy_kode: "Copy Code",
        kontrib_copied: "Copied!",
        kontrib_gambar: "Thumbnail Image",
        kontrib_gambar_hint: "JPG/PNG/WebP, max 5 MB. Optional, but highly recommended.",
        kontrib_gambar_choose: "Choose Image",
        kontrib_gambar_change: "Change Image",
        kontrib_gambar_remove: "Remove",
        kontrib_gambar_uploading: "Uploading image...",
        kontrib_gambar_error: "Failed to upload image. Please try again.",
        kontrib_gambar_size_error: "File size exceeds 5 MB.",
        kontrib_gambar_type_error: "Unsupported format. Use JPG, PNG, or WebP.",
        kontrib_guidelines_title: "Writing Guidelines",
        kontrib_guideline_1: "Use proper Indonesian language (Bahasa Indonesia).",
        kontrib_guideline_2: "Minimum article length is 500 words.",
        kontrib_guideline_3: "Include accurate and verifiable facts and data.",
        kontrib_guideline_4: "Avoid plagiarism. Work must be original.",
        kontrib_guideline_5: "The editorial team reserves the right to edit content for editorial purposes.",
    }
};

// ─── State ────────────────────────────────────────────────────────────────────

const STORAGE_KEY = 'if_untan_lang';

function detectLang() {
    // 1. Preferensi user yang tersimpan
    const saved = localStorage.getItem(STORAGE_KEY);
    if (saved === 'id' || saved === 'en') return saved;

    // 2. Bahasa browser
    const browserLang = (navigator.language || navigator.userLanguage || 'id').toLowerCase();
    return browserLang.startsWith('en') ? 'en' : 'id';
}

let currentLang = detectLang();

// ─── Core ─────────────────────────────────────────────────────────────────────

function t(key) {
    return translations[currentLang]?.[key] ?? translations['id']?.[key] ?? key;
}

function getLang() {
    return currentLang;
}

function applyLang() {
    // Teks biasa
    document.querySelectorAll('[data-i18n]').forEach(el => {
        const key = el.getAttribute('data-i18n');
        const val = t(key);
        if (val) el.textContent = val;
    });

    // HTML (untuk teks dengan markup)
    document.querySelectorAll('[data-i18n-html]').forEach(el => {
        const key = el.getAttribute('data-i18n-html');
        const val = t(key);
        if (val) el.innerHTML = val;
    });

    // Placeholder input
    document.querySelectorAll('[data-i18n-placeholder]').forEach(el => {
        const key = el.getAttribute('data-i18n-placeholder');
        const val = t(key);
        if (val) el.placeholder = val;
    });

    // Aria-label
    document.querySelectorAll('[data-i18n-aria]').forEach(el => {
        const key = el.getAttribute('data-i18n-aria');
        const val = t(key);
        if (val) el.setAttribute('aria-label', val);
    });

    // lang attribute di <html>
    document.documentElement.lang = currentLang;

    // Update toggle button UI
    updateToggleBtn();

    // Beritahu script lain
    document.dispatchEvent(new CustomEvent('languageChanged', { detail: { lang: currentLang } }));
}

function setLang(lang) {
    if (lang !== 'id' && lang !== 'en') return;
    currentLang = lang;
    localStorage.setItem(STORAGE_KEY, lang);
    applyLang();
}

function toggleLanguage() {
    setLang(currentLang === 'id' ? 'en' : 'id');
}

function updateToggleBtn() {
    document.querySelectorAll('.language-toggle-btn').forEach(btn => {
        btn.innerHTML = currentLang === 'id'
            ? '<span class="font-bold">ID</span> <span class="text-slate-400 mx-0.5">|</span> EN'
            : 'ID <span class="text-slate-400 mx-0.5">|</span> <span class="font-bold">EN</span>';
        btn.setAttribute('aria-label', currentLang === 'id' ? 'Switch to English' : 'Ganti ke Bahasa Indonesia');
    });
}

// ─── Init ─────────────────────────────────────────────────────────────────────

document.addEventListener('DOMContentLoaded', () => {
    document.querySelectorAll('.language-toggle-btn').forEach(btn => {
        btn.addEventListener('click', toggleLanguage);
    });
    applyLang();
});
