@media (min-width:1367px) and (max-width:1920px) {

/* --- Reset & Header tetap sama seperti kode Anda --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

#header {
    width: 100%;
    height: 40px;
    background-image: url('../../main_images/001_001_blank20.jpg');
    background-size: cover;
}

#linehead2 { height: 3px; background: #09c; }
#linehead3 { height: 2px; background: #999; }
#linehead4 { height: 1px; background: #ccc; }

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Container Utama --- */
.wrap {
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    /*border: 5px solid red;*/
}


/* Catatan: Karena ada gap: 20px, total persentase (20% + 70% + 10%) + gap bisa sedikit melebihi batas jika tidak menggunakan calc. 
   Alternatif terbaik untuk flex-basis yang akurat dengan gap: 
.leftbox   { flex: 0 0 calc(20% - 13.3px); }
.middlebox { flex: 0 0 calc(70% - 6.6px); }
.rightbox  { flex: 0 0 calc(10% - 20px); }
*/

/* --- PERBAIKAN: Kontainer Konten Utama menjadi Row --- */
.content {
    display: flex;
    flex-direction: row; /* Mengatur susunan box ke samping (3 kolom) */
    flex: 1;            /* Mengisi sisa ruang kosong antara header & footer */
    width: 100%;
    border-left: 1px solid #ccc;
    border-right: 1px solid #ccc;
}


    
/* --- PERBAIKAN: Menghapus float dan letakkan tinggi fleksibel --- */
.leftbox {
    flex: 0 0 20%; /* Lebar tetap 20% */
    /*background-color: skyblue;*/
    min-height: 30vh; /* Opsional: batas tinggi minimum */
    border-right: 1px solid #ccc;
}

.middlebox {
    flex: 0 0 70%; 
    min-height: 40vh;
}

.headline {
    width: 95%;
    height: 4vh;
    margin-top: 20vh;
    margin-left: 1.8vw;
    font-size: 32px;
    color: maroon;
    border-bottom: 3px solid #ccc;
}

.prime-box {
    width: 95%;
    height: 43vh;
    margin-top: 1vw;
    margin-left: 1.8vw;
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row; 
    gap: 5px; /* Menggunakan gap untuk jarak antar box */
    /*background-color: skyblue;*/
}
    
.promadv {
    flex: 1; /* Biar 5 div membagi rata ruang yang tersedia secara otomatis otomatis */
    background-color: #eee;
    height: 100%; /* Mengikuti tinggi .prime-box (40vh) */
    overflow: hidden;
}

/* Tambahan: Memastikan tag 'a' memenuhi seluruh area div .promadv */
.promadv a {
    display: block;
    width: 100%;
    height: 100%;
}

.promadv img {
    width: 100%;      
    height: 100%;     
    object-fit: cover; /* Gambar terpotong rapi, proporsional, dan tidak merusak layout */
}


.rightbox {
    flex: 0 0 10%; /* Mengisi sisa ruang (atau ganti jadi flex: 0 0 10% jika ingin total 100% pas minus gap) */
    background-color: #eee;
    min-height: 40vh;
    border-left: 1px solid #ccc;
}


    
.connav {
    width: 100%;
    background: #eee;
    padding: 20px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}


.pagenav {
        width: 100%;
        height: 50vh;
        margin-top: 20vh;
        margin-left: 1vw;
        /* background: #09c; */
    }

    .pgmenu {
        width: 100%;
        height: 50vh;
        /* background: #eee; */
        list-style: none;
    }
    
        
    .pgmenu li img {
        width: 80px;
        height: 80px;
        margin-top: 1vh;
        border: 2px solid #ccc;
        border-radius: 15px;
        float: left;
    }

.footsection {
    width: 100%;
}

.navigasi { height: 19px; background: #035; width: 100%; }
.linebar { height: 3px; background: #09c; width: 100%; }
.copyright {
    background: #222;
    color: grey;
    text-align: center;
    padding: 10px 0;
    font-size: 12px;
}

}