* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background-color: #fff;
}

header {
    position: fixed;
    display: flex;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000; /* Ensure it's on top of other content */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Optional shadow effect */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 20px;
    padding-top: 10px;
    padding-right: 20px;
    padding-bottom: 8px;
    background-color: #fff;
}


/* === HEADER === */
.logo img {
    width: 140px;
}

.navbar a {
    text-decoration: none;
    padding: 10px 15px;
    display: inline-block;
}

.navbar {
    display: flex;
    gap: 20px;
}

/* Dropdown Container */
.dropdown {
    position: relative;
    display: inline-block;
}

/* Dropdown Button */
.dropbtn {
    cursor: pointer;
    text-decoration: none;
    padding: 10px 15px;
    display: inline-block;
    color: #003060;
    font-weight: bold;
}

.dropdown-content {
    display: none;
    position: absolute;
    background: white;
    margin-top: 18px;
    width: auto;
    min-width: 220px;   /* jaga jangan terlalu kecil */
    white-space: nowrap; /* cegah teks turun baris */
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 15px;
    z-index: 100;
    left: 0;
}

/* Baris dalam Dropdown */
.dropdown-row {
    display: flex;
    margin-bottom: 15px;
    width: auto;
}

/* Kolom dalam Dropdown */
.dropdown-column {
    flex: 1; /* Membagi ruang secara merata */
    padding: 0 10px;
}

/* Judul Setiap Kelompok */
.dropdown-header {
    color: #2c3e50;
    font-size: 1.1em;
    margin-bottom: 1px;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
}

/* Link dalam Dropdown */
.dropdown-content a {
    display: block;
    padding: 8px 0;
    text-decoration: none;
}

.dropdown-content h4{
    color: #25b3db;
}

/* Show Dropdown on click */
.dropdown-content.show {
    display: block;
}


/* ============================================================
   INNOVATION SECTIONS — accordion style
   ============================================================ */

.inv_section {
    max-width: 1200px;
    margin: 0 auto 28px;
    padding: 0 30px;
}

/* --- the <details> wrapper --- */
.inv_details {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 6px 18px rgba(0, 48, 96, 0.08);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.inv_details[open] {
    box-shadow: 0 14px 36px rgba(0, 48, 96, 0.16);
}

/* --- clickable summary (cover + title) --- */
.inv_summary_box {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 26px;
    align-items: center;
    padding: 24px;
    cursor: pointer;
    list-style: none;
    position: relative;
    transition: background 0.3s ease;
}

.inv_summary_box::-webkit-details-marker { display: none; }
.inv_summary_box::marker { display: none; }

.inv_summary_box:hover {
    background: linear-gradient(180deg, #ffffff 0%, #f4f9fd 100%);
}

/* thin accent bar on the left */
.inv_summary_box::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(var(--cyan), var(--navy));
}

/* --- cover image --- */
.inv_cover {
    background: var(--grey);
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    box-shadow: 0 4px 14px rgba(0, 48, 96, 0.12);
}

.inv_cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.inv_details[open] .inv_cover img,
.inv_summary_box:hover .inv_cover img {
    transform: scale(1.04);
}

/* --- title block --- */
.inv_intro h2 {
    font-size: 24px;
    color: var(--navy);
    margin: 10px 0 4px;
    line-height: 1.25;
}

.inv_years_inline {
    font-size: 17px;
    color: var(--cyan);
    font-weight: bold;
    white-space: nowrap;
}

.inv_meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.inv_years {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: bold;
    color: var(--navy);
    background: #eaf6fb;
    padding: 5px 12px;
    border-radius: 20px;
}

.inv_years i { color: var(--cyan); }

.inv_tagline {
    font-size: 15px;
    color: var(--cyan);
    font-weight: bold;
    margin: 6px 0 10px;
}

.inv_summary {
    font-size: 14.5px;
    color: #33475b;
    line-height: 1.55;
}

/* --- total funding badge in header --- */
.inv_total_funding {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(135deg, #2e9e6b, #25b3db);
    padding: 5px 14px;
    border-radius: 20px;
    box-shadow: 0 3px 8px rgba(46, 158, 107, 0.25);
}

.inv_total_funding i { color: #fff; }

/* --- amount inside milestone --- */
.inv_amount {
    display: inline-block;
    font-weight: bold;
    color: #2e9e6b;
    background: #e6f7ee;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 13px;
    margin-left: 4px;
}

/* --- HKI table --- */
.inv_hki {
    margin-top: 30px;
}

.inv_hki h3 {
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--navy);
    margin: 0 0 12px;
}

.inv_hki h3 i { color: var(--cyan); margin-right: 6px; }

.inv_hki_wrap {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #fff;
}

.inv_hki_table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
    min-width: 800px;
}

.inv_hki_table thead {
    background: linear-gradient(135deg, var(--navy), var(--cyan));
    color: #fff;
}

.inv_hki_table th {
    text-align: left;
    padding: 12px 14px;
    font-weight: bold;
    font-size: 12px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.inv_hki_table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    color: #33475b;
    vertical-align: top;
}

.inv_hki_table tbody tr:last-child td { border-bottom: none; }

.inv_hki_table tbody tr:hover { background: #f4f9fd; }

.inv_hki_table code {
    background: #eaf6fb;
    color: var(--navy);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 12.5px;
}

.hki_type {
    display: inline-block;
    font-size: 11px;
    font-weight: bold;
    padding: 3px 9px;
    border-radius: 12px;
    color: #fff;
    background: #8e6cc9;
    white-space: nowrap;
}

.hki_status {
    display: inline-block;
    font-size: 11px;
    font-weight: bold;
    padding: 3px 9px;
    border-radius: 12px;
    color: #fff;
    background: #2e9e6b;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .inv_hki_table { font-size: 12.5px; }
    .inv_hki_table th, .inv_hki_table td { padding: 10px 10px; }
    .inv_total_funding { font-size: 12px; padding: 4px 10px; }
    .inv_amount { font-size}}

/* --- toggle hint --- */
.inv_toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--navy);
    padding: 7px 14px;
    border: 1.5px solid var(--cyan);
    border-radius: 24px;
    transition: background 0.25s ease, color 0.25s ease;
}

.inv_toggle i {
    transition: transform 0.3s ease;
    color: var(--cyan);
}

.inv_summary_box:hover .inv_toggle {
    background: var(--cyan);
    color: #25b3db;
}

.inv_summary_box:hover .inv_toggle i { color: #25b3db; }

.inv_details[open] .inv_toggle {
    background: var(--navy);
    border-color: var(--navy);
    color: #000;
}

.inv_details[open] .inv_toggle i {
    transform: rotate(180deg);
    color: #000;
}

/* change label when open */
.inv_details[open] .inv_toggle_text::after { content: " ▲"; }
.inv_details:not([open]) .inv_toggle_text::after { content: " ▼"; }
.inv_details[open] .inv_toggle_text { font-size: 0; }
.inv_details[open] .inv_toggle_text::before {
    content: "Hide milestones";
    font-size: 13px;
}

/* --- collapsible body --- */
.inv_body {
    padding: 6px 30px 34px;
    border-top: 1px dashed var(--line);
    animation: fadeSlide 0.35s ease;
}

@keyframes fadeSlide {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.inv_body_title {
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--cyan);
    margin: 22px 0 18px;
}

.inv_body_title i { margin-right: 6px; }

/* --- sub-timeline --- */
.inv_timeline {
    list-style: none;
    position: relative;
    padding-left: 44px;
    margin: 0;
}

.inv_timeline::before {
    content: "";
    position: absolute;
    top: 6px;
    bottom: 6px;
    left: 14px;
    width: 3px;
    background: linear-gradient(var(--cyan), var(--navy));
    border-radius: 3px;
}

.inv_item {
    position: relative;
    margin-bottom: 22px;
}

.inv_item::before {
    content: "";
    position: absolute;
    left: -37px;
    top: 16px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--navy);
    border: 3px solid #fff;
    box-shadow: 0 0 0 3px var(--cyan);
}

.inv_year {
    display: inline-block;
    padding: 3px 13px;
    font-size: 13px;
    font-weight: bold;
    color: #000;
    background: linear-gradient(135deg, var(--navy), var(--cyan));
    border-radius: 20px;
    margin-bottom: 8px;
    box-shadow: 0 3px 8px rgba(0, 48, 96, 0.2);
}

.inv_card {
    background: #fff;
    border: 1px solid var(--line);
    border-left: 4px solid var(--cyan);
    border-radius: 12px;
    padding: 18px 22px 20px;
    box-shadow: 0 4px 12px rgba(0, 48, 96, 0.06);
    transition: box-shadow 0.3s ease, transform 0.3s ease, border-left-color 0.3s ease;
}

.inv_card:hover {
    box-shadow: 0 10px 26px rgba(0, 48, 96, 0.14);
    transform: translateY(-3px);
    border-left-color: var(--navy);
}

.inv_card h4 {
    font-size: 17px;
    color: var(--navy);
    margin: 0 0 10px;
    line-height: 1.35;
}

.inv_card h5 {
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--cyan);
    margin: 14px 0 6px;
}

.inv_funder {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 14px;
    color: #33475b;
    margin-bottom: 8px;
}

.inv_funder i {
    margin-top: 4px;
    color: var(--cyan);
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}

.inv_desc {
    font-size: 14px;
    color: #33475b;
    margin-bottom: 4px;
    line-height: 1.55;
}

/* --- consolidated outcomes box --- */
.inv_consolidated {
    margin-top: 26px;
    padding: 20px 24px;
    background: linear-gradient(135deg, #f4f9fd 0%, #eaf6fb 100%);
    border-radius: 14px;
    border: 1px dashed var(--cyan);
}

.inv_consolidated h3 {
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--navy);
    margin: 0 0 10px;
}

.inv_consolidated h3 i { color: var(--cyan); margin-right: 6px; }

/* --- responsive --- */
@media (max-width: 900px) {
    .inv_summary_box {
        grid-template-columns: 220px 1fr;
        gap: 18px;
        padding: 18px;
    }
    .inv_intro h2 { font-size: 20px; }
    .inv_years_inline { font-size: 15px; }
}

@media (max-width: 640px) {
    .inv_section { padding: 0 14px; margin-bottom: 20px; }

    .inv_summary_box {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 16px;
    }

    .inv_cover { aspect-ratio: 16 / 9; }

    .inv_intro h2 { font-size: 19px; }
    .inv_summary { font-size: 14px; }

    .inv_body { padding: 6px 18px 26px; }

    .inv_timeline { padding-left: 30px; }
    .inv_timeline::before { left: 6px; }
    .inv_item::before { left: -30px; }

    .inv_card { padding: 14px 16px 16px; }
    .inv_card h4 { font-size: 15.5px; }

    header {
        flex-direction: row;
        align-items: flex-start;
    }

    
    /* === NAVBAR === */
    .logo img {
        width: 100px;
    }
    .navbar {
        display: none; /* Hide initially on mobile */
        width: 100%; 
        justify-content: center;
        flex-direction: column; /* Stacked by default on mobile */
    }

    .menu-toggle {
        display: block;
        cursor: pointer;
    }

    /* Show the navbar in a row when toggled */
    .navbar.active {
        display: flex; /* Display flex when active */
        flex-wrap: wrap; /* Allow wrapping of items */
        justify-content: center;
        gap: 10px; /* Adds space between items */
    }

    .navbar a {
        padding: 10px;
        text-align: center;
        color: #003060;
        font-weight: bold;
    }

    .dropdown {
        margin-left: auto;
        margin-right: auto;
    }
    .navbar span{
        padding: 10px;
        text-align: center;
        color: #003060;
        font-weight: bold;
    }

    .dropdown-content {
        width: 280px; /* Lebar dropdown di mobile */
        left: 50%; /* Tengah (50% dari parent) */
        transform: translateX(-50%); /* Geser ke kiri 50% dari width-nya */
        /* Jika ingin di kiri, ganti dengan: */
        /* left: 0; transform: none; */
    }
    .dropdown-row {
        flex-direction: column;
    }

    /* === ISI == */
    .activity_list{
        display: block;
        margin-left: 10px;
        margin-right: 10px;
    }
}