:root {
    --primary: #4CAF4F;
    --dark: #263238;
    --text-dark: #4D4D4D;
    --bg-light: #F5F7FA;
    --white: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--white);
    color: var(--text-dark);
    overflow-x: hidden;
}

.container {
    width: 88%;
    max-width: 1150px;
    margin: 0 auto;
}

/* Penyelarasan Global */
.text-center { text-align: center; }
.text-muted { color: #717171; font-size: 14px; line-height: 1.6; }

/* Navbar Core */
.navbar {
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
    border-bottom: 1px solid #E0E0E0;
}
/* --- Perbaikan Navigasi Rata Kanan --- */

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

/* Dorong pembungkus menu ke kanan agar mendekati tombol aksi */
.nav-menu-wrapper {
    margin-left: auto; 
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px; /* Jarak antar teks menu (Beranda, Community, dll) */
}

.nav-action-btn {
    margin-left: 10px; /* Jarak tipis antara menu terakhir dengan tombol Hubungi Kami! */
}

/* Pastikan ikon panah di dalam tombol Hubungi Kami memiliki jarak */
.nav-action-btn i {
    margin-left: 8px;
}



.logo {
    font-size: 26px;
    font-weight: 700;
    color: var(--dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}
.logo i { color: var(--primary); }


.nav-link {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}
.nav-link:hover { color: var(--primary); }

/* Dropdown */
.nav-item { position: relative; }
.dropdown {
    position: absolute; top: 100%; left: 0; background: var(--white);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1); list-style: none;
    display: none; border-radius: 4px; padding: 10px 0; min-width: 150px;
}
.nav-item:hover .dropdown { display: block; }
.dropdown a { display: block; padding: 8px 15px; color: var(--text-dark); text-decoration: none; font-size: 13px; }
.dropdown a:hover { background: var(--bg-light); color: var(--primary); }

/* Buttons */
.btn {
    display: inline-block; padding: 12px 24px; border-radius: 4px;
    text-decoration: none; font-weight: 500; font-size: 14px; transition: 0.2s;
}
.btn-green { background: var(--primary); color: var(--white); }
.btn-green:hover { background: #3E8E41; }
.btn-sm { padding: 8px 16px; font-size: 13px; }

/* Flex Layout rows */
.row-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}
.col-text { flex: 1.2; }
.col-visual { flex: 0.8; }

/* ========================================================
   HERO COMPONENT (MOBILE-FIRST STYLE)
   ======================================================== */

.hero {
    padding: 40px 0;
    background-color: var(--bg-light);
}

.hero-container {
    display: flex;
    flex-direction: column; /* Bawaan HP: Teks di atas, Logo di bawah vertikal */
    gap: 35px;
    padding: 0 20px;
}

.hero-text-col {
    text-align: center; /* Rata tengah agar seimbang di layar ponsel */
}

.hero-text-col h1 {
    font-size: 32px; /* Ukuran judul disesuaikan agar tidak over-screen di HP */
    line-height: 1.2;
    margin-bottom: 15px;
}

.hero-subtitle {
    font-size: 14px;
    color: #64748B;
    line-height: 1.6;
    text-align: justify; /* Tetap justify agar paragraf panjangnya rapi */
    margin-bottom: 25px;
}

.hero-cta-btn {
    display: inline-block;
    padding: 12px 32px;
    font-weight: 600;
}

.hero-visual-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-brand-img {
    width: 100%;
    max-width: 220px; /* Sedikit dikecilkan di HP agar tidak memenuhi layar */
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.02));
}

.dots {
    display: flex;
    gap: 8px;
    margin-top: 15px;
}

/* --- ADAPTASI DESKTOP VIEW (Layar Komputer / Laptop >= 992px) --- */
@media (min-width: 992px) {
    .hero {
        padding: 80px 0; /* Ruang vertikal lebih longgar di desktop */
    }

    .hero-container {
        flex-direction: row; /* Berubah menjadi horizontal kiri-kanan */
        align-items: center;
        gap: 50px;
    }

    .hero-text-col {
        flex: 1.3; /* Paragraf mendapatkan porsi ruang lebih besar */
        text-align: left; /* Rata kiri khas desktop */
    }

    .hero-text-col h1 {
        font-size: 42px; /* Judul kembali membesar secara proporsional */
        margin-bottom: 20px;
    }

    .hero-subtitle {
        font-size: 15px;
        margin-bottom: 30px;
    }

    .hero-visual-col {
        flex: 0.7; /* Wadah logo mengambil porsi ruang lebih kecil */
    }

    .hero-brand-img {
        max-width: 280px; /* Batas maksimal ukuran logo di monitor besar */
    }
    
    .dots {
        margin-top: 25px;
    }
}
/* Clients Section */
.clients { padding: 40px 0; }
.clients h2 { font-size: 28px; color: var(--dark); }
.client-row { display: flex; justify-content: space-between; font-size: 36px; color: #4D4D4D; opacity: 0.3; margin-top: 25px; padding: 0 10px; }

/* Pillars & Card Grid */
.pillars { padding: 20px 0 60px 0; }
.section-title-center { font-size: 32px; color: var(--dark); max-width: 600px; margin: 0 auto 10px auto; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 35px; }
.card { background: var(--white); padding: 30px 20px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.03); text-align: center; }
.card-icon { font-size: 32px; color: var(--primary); margin-bottom: 15px; }
.card h3 { font-size: 20px; color: var(--dark); margin-bottom: 10px; }
.card p { font-size: 13px; color: #717171; line-height: 1.5; }

/* Feature Section Layout */
.feature-row { padding: 50px 0; }
.feature-row h2 { font-size: 32px; color: var(--dark); margin-bottom: 15px; }
.feature-row p { margin-bottom: 25px; }

/* Stats Bar Layout */
.stats-bar { background: var(--bg-light); padding: 60px 0; }
.stats-bar h2 { font-size: 32px; color: var(--dark); }
.stats-bar h2 span { color: var(--primary); }
.grid-2x2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.stat-item { display: flex; align-items: center; gap: 15px; text-align: left; }
.stat-item i { font-size: 32px; color: var(--primary); }
.stat-item h3 { font-size: 24px; color: var(--dark); }

/* Menu Toggle & Footer */
.menu-toggle { display: none; background: none; border: none; font-size: 22px; cursor: pointer; }
footer { background: var(--dark); color: #B0BEC5; padding: 25px 0; text-align: center; font-size: 13px; }

/* Responsive Mobile Breakpoint */
@media (max-width: 768px) {
    .menu-toggle { display: block; }
    .nav-action-btn { display: none; }
    .nav-menu {
        position: absolute; top: 100%; left: 0; width: 100%; background: var(--white);
        flex-direction: column; gap: 0; max-height: 0; overflow: hidden; transition: 0.3s ease-out;
        box-shadow: 0 5px 10px rgba(0,0,0,0.05);
    }
    .nav-menu.active { max-height: 350px; }
    .nav-item { width: 100%; border-bottom: 1px solid #EEE; }
    .nav-link { display: block; padding: 12px 20px; }
    .dropdown { position: relative; top: 0; box-shadow: none; display: none; background: var(--bg-light); }
    .nav-item:hover .dropdown { display: block; }
    
    .row-layout { flex-direction: column; text-align: center; gap: 30px; }
    .hero h1 { font-size: 32px; }
    .card-grid, .grid-2x2 { grid-template-columns: 1fr; }
    .stat-item { justify-content: center; }
    .client-row { flex-wrap: wrap; gap: 20px; justify-content: center; }
}
/* --- Grafis Sinergi Infografis --- */
.synergy-container {
    margin-top: 60px;
    background: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-radius: 12px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.synergy-header {
    margin-bottom: 35px;
    text-align: center;
}

.synergy-header h3 {
    font-size: 24px;
    color: var(--dark);
    margin-bottom: 6px;
}

.synergy-header p {
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Alur Node Horisontal */
.synergy-flow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    margin: 20px 0;
    gap: 10px;
}

.flow-node {
    flex: 1;
    background: var(--bg-light);
    border-radius: 8px;
    padding: 20px 15px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 3px solid var(--primary);
}

.flow-node:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(76, 175, 79, 0.12);
    background: #E8F5E9;
}

.node-icon {
    width: 50px;
    height: 50px;
    background: #FFFFFF;
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px auto;
    font-size: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.flow-node p {
    font-size: 13px;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.3;
}

.flow-arrow {
    color: var(--primary);
    font-size: 18px;
    animation: pulseArrow 2s infinite ease-in-out;
}

.synergy-footer-note {
    margin-top: 35px;
    padding: 15px 20px;
    background: #E8F5E9;
    border-radius: 6px;
    color: #2E7D32;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
}

.synergy-footer-note i {
    margin-right: 6px;
}

/* Animasi Panah Berdenyut */
@keyframes pulseArrow {
    0%, 100% { transform: translateX(0); opacity: 0.5; }
    50% { transform: translateX(5px); opacity: 1; }
}

/* Responsif untuk Layar HP */
@media (max-width: 768px) {
    .synergy-flow {
        flex-direction: column;
        gap: 15px;
    }
    .flow-arrow {
        transform: rotate(90deg);
        animation: none;
        margin: 5px 0;
    }
    @keyframes pulseArrow {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(5px); }
    }
    .flow-node {
        width: 100%;
        padding: 15px;
    }
}

/* Efek Hover untuk Baris Jurnal */
.pub-row:hover {
    background-color: #F8FAFC;
    transform: scale(1.001);
}
#pub-search:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(76, 175, 79, 0.15);
}

/* Aturan arah terbalik hanya berlaku di layar komputer/desktop */
@media (min-width: 769px) {
    .row-reverse-desktop {
        flex-direction: row-reverse;
    }
}

/* Pastikan perbaikan perataan kolom teks saat beralih ke versi HP */
@media (max-width: 768px) {
    .row-layout.row-reverse-desktop {
        flex-direction: column; /* Mengembalikan alur menjadi vertikal dari atas ke bawah */
    }
    .row-layout.row-reverse-desktop .col-text {
        text-align: center !important; /* Membuat teks rata tengah yang seimbang di HP */
    }
}
/* --- Solusi Anti Terpotong Header Sticky --- */

section[id] {
    /* Memberikan jarak aman di atas elemen saat dipicu oleh aksi gulir */
    scroll-margin-top: 76px; 
}

/* Jika Anda ingin memastikan animasi pergerakan layar terasa sangat halus */
html {
    scroll-behavior: smooth;
}
/* --- CSS Tabel Publikasi Responsif (Desktop Mode) --- */
.responsive-table-wrapper {
    background: #FFFFFF;
    border-radius: 8px;
    border: 1px solid #E2E8F0;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
    overflow: hidden;
}

.responsive-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 14px;
}

.responsive-table th {
    background: #F1F5F9;
    border-bottom: 2px solid #E2E8F0;
    color: var(--dark);
    font-weight: 600;
    padding: 16px 20px;
}

.pub-row {
    border-bottom: 1px solid #E2E8F0;
    transition: background-color 0.2s;
}

.pub-row:hover {
    background-color: #F8FAFC;
}

.pub-row td {
    padding: 16px 20px;
    vertical-align: top;
}

/* Badge Styles */
.badge-year {
    background: #E2E8F0;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    color: var(--dark);
}

.badge-category {
    color: var(--ecosbio-purple);
    font-weight: 600;
    font-size: 13px;
}

.pub-title-text {
    font-weight: 600;
    color: #1E293B;
    line-height: 1.4;
    margin-bottom: 6px;
}

.pub-author-text {
    font-size: 13px;
    color: #64748B;
    margin-bottom: 4px;
}

.pub-author-text i, .pub-journal-text i {
    font-size: 11px;
    margin-right: 4px;
    color: #94A3B8;
}

.pub-journal-text {
    font-size: 12px;
    color: #94A3B8;
    font-style: italic;
}

/* --- TRANSFORMASI MOBILE-READY (Layar HP < 768px) --- */
@media (max-width: 768px) {
    /* Sembunyikan Header Tabel Asli */
    .responsive-table thead {
        display: none;
    }

    /* Ubah Tabel & Baris Menjadi Blok Kartu Mandiri */
    .responsive-table, 
    .responsive-table tbody, 
    .pub-row {
        display: block;
        width: 100%;
    }



    .pub-row td {
        display: block;
        width: 100%;
        padding: 0;
        border: none;
        text-align: left;
    }
	
	/* Aturan dasar baris kartu */
    .pub-row {
        display: block;
        width: 100%;
        margin-bottom: 12px; /* Jarak antar boks kartu */
        border: 1px solid #E2E8F0;
        border-radius: 8px;
        padding: 16px;
        
        /* Efek bayangan mikro agar kartu terlihat 'terangkat' dan terpisah dari background */
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02); 
        transition: transform 0.2s;
    }

    /* TRIK UTAMA: Membuat kartu urutan GANJIL berlatar putih bersih */
    .pub-row:nth-child(odd) {
        background-color: #FFFFFF;
    }

    /* TRIK UTAMA: Membuat kartu urutan GENAP berlatar abu-abu super lembut */
    .pub-row:nth-child(even) {
        background-color: #F8FAFC; /* Memberikan kontras selang-seling yang nyaman di mata */
    }

    /* Berikan efek sedikit terang saat kartu disentuh/di-tap di HP */
    .pub-row:active {
        background-color: #E8F5E9; 
        transform: scale(0.99);
    }

    /* Pengaturan Tata Letak Elemen Kartu */
    .td-year {
        margin-bottom: 8px;
    }

    .td-category {
        margin-bottom: 12px;
        border-bottom: 1px solid #F1F5F9;
        padding-bottom: 8px !important;
    }

    .pub-title-text {
        font-size: 15px;
    }
}
/* --- Susunan Kontak Grid Mobile-First --- */

.contact-grid {
    display: flex;
    flex-direction: column; /* Bawaan HP: Berjejer vertikal ke bawah */
    gap: 40px;
    padding: 0 15px;
}

.contact-info-col, .contact-form-col {
    width: 100%;
}

/* Modifikasi fokus input box */
#ecosbio-form input:focus, 
#ecosbio-form textarea:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(76, 175, 79, 0.12);
}

/* Transformasi ke mode Desktop saat layar berukuran lebar (Komputer/Laptop) */
@media (min-width: 992px) {
    .contact-grid {
        flex-direction: row; /* Berubah menjadi dua kolom kiri-kanan */
        align-items: center;
        gap: 60px;
    }
    
    .contact-info-col {
        flex: 1.1; /* Sisi info mendapatkan porsi ruang sedikit lebih luas */
    }
    
    .contact-form-col {
        flex: 0.9;
    }
}
.modal-content {
    width: 90%;       /* Bawaan HP: Mengambil 90% lebar layar agar tidak sesak */
    max-width: 500px; /* Pembatas Desktop: Berhenti membesar jika layar sudah mencapai 500px */
}
/* --- CSS UI MODAL LAYANG (MOBILE READY) --- */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(38, 50, 56, 0.6); /* Latar belakang transparan gelap */
    backdrop-filter: blur(4px); /* Efek blur premium di belakang modal */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999; /* Memastikan modal berdiri di lapisan paling atas */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Pemicu Kelas Aktif Modal */
.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: #FFFFFF;
    width: 90%;
    max-width: 500px;
    padding: 30px;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

/* Tombol Silang (Close) */
.modal-close-x {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    color: #94A3B8;
    cursor: pointer;
    transition: color 0.2s;
}
.modal-close-x:hover {
    color: #C62828;
}

/* Form Group di dalam Modal */
.form-group {
    margin-bottom: 16px;
}
.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #263238;
    margin-bottom: 6px;
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 11px;
    border: 1px solid #CBD5E1;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    font-family: inherit;
}
.form-group input:focus, .form-group textarea:focus {
    border-color: #4CAF4F !important;
    box-shadow: 0 0 0 3px rgba(76, 175, 79, 0.12);
}

.btn-submit-modal {
    width: 100%;
    padding: 12px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    border-radius: 6px;
    gap: 8px;
}

/* --- Manajemen Tombol Navigasi di HP --- */
.mobile-only-btn {
    display: none; /* Sembunyikan secara default di desktop */
}

@media (max-width: 768px) {
    .mobile-only-btn {
        display: block; /* Munculkan di dalam menu hamburger saat layar ponsel */
    }
    .nav-action-btn {
        display: none; /* Sembunyikan tombol navbar luar bawaan desktop agar tidak ganda */
    }
}

/* --- Desain Grid Modal Terpadu (Mobile-First) --- */
.modal-content {
    background: #FFFFFF;
    width: 92%;
    max-width: 500px;
    max-height: 90vh; /* Membatasi tinggi maksimum agar tidak meluber keluar layar HP */
    overflow-y: auto;  /* Otomatis memunculkan scroll internal jika layar HP terlalu pendek */
    padding: 25px;
    border-radius: 12px;
    position: relative;
}

.modal-grid-layout {
    display: flex;
    flex-direction: column; /* Bawaan HP: Info Keterlibatan di atas, Form di bawah */
    gap: 30px;
}

/* Penataan Detail Komponen Info */
.modal-badge {
    color: #4CAF4F;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1px;
}
.modal-title {
    font-size: 22px;
    color: var(--dark);
    margin: 5px 0 20px 0;
    font-weight: 700;
}
.modal-involvement-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.involvement-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.item-icon {
    background: #E8F5E9;
    color: #4CAF4F;
    padding: 8px;
    border-radius: 6px;
    font-size: 14px;
    min-width: 32px;
    text-align: center;
}
.item-text h5 {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 2px;
}
.item-text p {
    font-size: 12.5px;
    color: #64748B;
    line-height: 1.4;
}
.modal-email-footer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #E2E8F0;
}
.modal-email-footer a {
    color: var(--ecosbio-purple);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* --- ADAPTASI TAMPILAN DESKTOP (Layar Lebar >= 992px) --- */
@media (min-width: 992px) {
    .modal-content {
        max-width: 900px; /* Lebarkan boks modal di desktop agar memuat 2 kolom sampingan */
        padding: 40px;
    }
    
    .modal-grid-layout {
        flex-direction: row; /* Berubah menjadi kiri-kanan */
        gap: 45px;
        align-items: flex-start;
    }
    
    .modal-info-side {
        flex: 1.1;
        border-right: 1px solid #E2E8F0;
        padding-right: 35px;
    }
    
    .modal-form-side {
        flex: 0.9;
        width: 100%;
        margin-top: 15px;
    }
}

/* --- Kontrol Tampilan Tombol Navigasi Seluler --- */

/* Secara default di layar komputer besar, sembunyikan tombol di dalam list */
.mobile-only-btn-wrapper {
    display: none !important;
}

/* Ketika dibuka di ponsel pintar (layar di bawah 768px) */
@media (max-width: 768px) {
    .mobile-only-btn-wrapper {
        display: block !important;
    }
    
    /* Membuat laci menu memanjang ke bawah agar tombol tidak menutupi teks profile */
    .nav-menu.active {
        padding-bottom: 30px; 
    }
    
    .nav-menu li {
        width: 100%;
        text-align: left;
    }
}