/* ========== RESET DAN DASAR ========== */
html, body {
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    font-family: arial, sans-serif, verdana, times, helvetica;
    background: #f2f2f2;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
  width: 100%;
  max-width: 1440px;	/*  ukuran Layout Screen Standar Big1	  */
  margin: 0 auto;
  padding: 0 0px;
}

/* ========== HEADER ========== */
header {
    background: black;
    color: #fff;
    text-align: center;
    padding: clamp(1px, 0.5vw, 5px);
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.badan-berita {
    color: white;
    margin-top: clamp(8px, 2vw, 15px);
    font-size: clamp(21px, 2.5vw, 30px);			/*  ukuran Font Badan Berita   */
    letter-spacing: clamp(10px, 2vw, 17px);
    font-family: Times;
}

header nav {			/*   ukuran atas-bawah Space tulisan Login   */
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: clamp(1px, 0.3vw, 2px) 0;
}

header nav a {
    color: red;
    font-size: clamp(5px, 1vw, 10px);	/*   ukuran Font tulisan Login */
    text-decoration: none;
    margin: 0 clamp(1px, 1vw, 5px);
}

.nav-kategori {						/*   NAVIGASI Menu Kategori : Politik, Ekonomi dstnya...   */
    background: #1414b8;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: clamp(18px, 1.2vw, 28px);		/*   jarak antara Font Menu Kategori : Politik, Ekonomi dstnya...   */
    padding: clamp(5px, 1.9vw, 5px);
}

.nav-kategori a {
    font-weight: normal;
    color: white;
    font-size: clamp(14px, 2vw, 18px);		/*   ukuran Font Menu Kategori : Politik, Ekonomi dstnya...   */
    letter-spacing: clamp(2px, 2vw, 3px);
    text-decoration: none;
}

.nav-kategori a:hover {
    text-decoration: underline;		/*   style ahover Font Menu Kategori : Politik, Ekonomi dstnya...   */
    color: #b8b814;
}

/* RESPONSIVE NAVIGASI MENU KATEGORI */
.menu-toggle {
    display: none;
    background: #1414b8;
    color: white;
    font-size: clamp(10px, 2vw, 18px);
    border: none;
    padding: clamp(6px, 2vw, 10px);
    width: 100%;
    text-align: left;
    cursor: pointer;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-kategori {				/*  Menu Kategori Responsive Monitor Scale Android  */
        display: none;
        flex-direction: column;
        background: #555555;			/*  warna menu Menurun Kategori   */
        padding: clamp(6px, 2vw, 10px);
        border-top: 1px solid #ccc;
        border-bottom: 1px solid #ccc;
    }

    .nav-kategori.show {
        display: flex;
    }

    .nav-kategori a {
        margin: clamp(4px, 1vw, 8px) 0;
    }
    .nav-kategori a:hover {
    text-decoration: underline;		/*   style ahover Font Menu Kategori : Politik, Ekonomi dstnya...   */
    color: #b8b814;
    }
}

/* ========== NAVIGATION CLASS HALAMAN KATEGORI BERITA ==== */
.pagination a {
    padding: 5px 10px;
    background: #e3f0ff;
    border-radius: 5px;
    text-decoration: none;
    color: navy;
}

.pagination a:hover {
    background: #cde0ff;
}


/* ========== LAYOUT UTAMA HALAMAN DEPAN ========== */
.layout-utama {
    display: grid;
    grid-template-columns: 1.7fr 1.3fr 0.5fr;
    gap: clamp(5px, 3vw, 10px);		/*  Jarak rapat antara kolom    */
    padding: clamp(12px, 2vw, 22px);		/*  Jarak rapat keliling grid kolom depan ke screen  */
    border-bottom: 1px solid #ccc;
}

@media (max-width: 768px) {
    .layout-utama {
        grid-template-columns: 1fr;
    }

    .kolom-kiri, .kolom-tengah, .kolom-kanan {
        padding: clamp(6px, 5vw, 10px) 0;
    }
}

/* === KOLOM KIRI === */
.kolom-kiri .headline img {
    min-width: 100%;
    border-radius: clamp(4px, 1vw, 8px);
}

.kolom-kiri .headline h2 a {
    text-decoration: none;
    font-weight: bold;
    color: #2a2a81;
    font-size: clamp(8px, 5vw, 24px);
}

.kolom-kiri .headline h2 a:hover {
    color: #ed7002;
}

/* === KOLOM TENGAH -  TIMELINE NAVIGATOR BERITA  === */
.kolom-tengah {
    padding: clamp(4px, 0.5vw, 8px) clamp(3px, 0.5vw, 10px);
    min-width: clamp(145px, 70vw, 280px);
}

.timeline-item {
    font-size: clamp(14px, 2.5vw, 16px);
    margin-bottom: clamp(8px, 2.5vw, 15px);
    border-bottom: 1px solid #ddd;
    padding-bottom: clamp(10px, 2vw, 15px);
}

.timeline-item .jam {
    color: #0000ff;
    font-size: clamp(10px, 2vw, 15px);
    margin-right: clamp(4px, 1vw, 8px);
}

.timeline-item a {
    text-decoration: none;
    font-weight: bold;
    color: #4b0082;
}

.timeline-item a:hover {
    color: #CC6200;	
    text-decoration: none;
}

.timeline-nav {
    text-align: center;				/* Posisi Button Navigasi TimeLine   */
    margin-top: clamp(7px, 2vw, 15px);
    margin-bottom: clamp(7px, 2vw, 15px);
}

.btn-nav {						/* Button Navigasi TimeLine   */
    font-size: clamp(16px, 3vw, 21px);
    padding: clamp(2px, 1vw, 4px) clamp(6px, 2.5vw, 10px);
    background: #2986cc;
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: clamp(6px, 2vw, 10px);
    margin: 0 clamp(6px, 2vw, 10px);
}

.press-bot {
  text-align: center;
  margin: 20px 10px;
  padding-top: 10px;
}

.press-bot img {
  display: inline-flex;
  max-width: 100%;
  height: auto;
  margin: 10px auto;
  box-shadow: 0 0 5px rgba(0,0,0,0.1); /* opsional, agar tidak terlalu polos */
}

.press-bot a img:hover {
    opacity: 0.85;
    transition: 0.3s;
}

.press-line a {
    text-decoration: none;
    font-weight: bold;
    color: #4b0082;
}

.press-line a:hover {
    color: #CC6200;	
}

.judul-press-bot {
    font-size: clamp(12px, 5vw, 18px);
    font-weight: bold;
    margin-bottom: 0px;
    color: #330300;
    text-align: center;
    text-decoration: none;
}
.judul-press-botB {
    text-decoration: none;
    font-size: clamp(12px, 5vw, 22px);
    font-weight: bold;
    color: #330300;
}

/* === KOLOM KANAN -  STOP PRESS selected Kategori === */
.kolom-kanan .berita-kanan {
    min-width: 250px;
    margin-bottom: clamp(3px, 1vw, 5px);
    border-bottom: 1px solid #ccc;
    padding-bottom: clamp(3px, 1vw, 5px);
}

.kolom-kanan img {
    width: 100%;
    margin-bottom: clamp(4px, 2vw, 8px);
    border-radius: 0;
}

.kolom-kanan a img:hover {
    opacity: 0.85;
    transition: 0.3s;
}

.stop-press-line a {
    text-decoration: none;
    font-weight: normal;
    color: #4b0082;
}

.stop-press-line a:hover {
    color: #CC6200;	
    text-decoration: underline;
}

/* ========== HALAMAN BERITA KHUSUS ========== */
.layout-berita {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: clamp(10px, 3vw, 20px);
    padding: clamp(10px, 3vw, 20px);
}

.kolom-kiri-berita {
    background: #fff;
    padding: clamp(10px, 2.5vw, 15px);
    border-radius: clamp(6px, 2vw, 8px);
    box-shadow: 0 0 clamp(2px, 1vw, 6px) rgba(0, 0, 0, 0.1);
}

.kolom-kiri-berita iframe {	/* Baris Ukuran Video class iframe di kolom */
    width: 100%;
    height: auto;
    aspect-ratio: 16/9 auto;
    max-width: 100%;	/* Penentuan Batas Ukuran Video iframe  */
    border: none;
}

.kolom-kanan-iklan {
    background: #f9f9f9;
    padding: clamp(6px, 2vw, 10px);
    border-radius: clamp(6px, 2vw, 8px);
}


.instagram-wrapper {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

.instagram-inner {
  width: 100%; /* % dari kolom induk */
  max-width: 700px; /* batas maksimum jika dibutuhkan */
  position: relative;
  padding-bottom: 170%; /* rasio vertikal (125% cukup baik untuk Instagram) */
  height: 0;
  overflow: hidden;
}

.instagram-inner iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.iklan-box {
    margin-bottom: clamp(10px, 3vw, 20px);
    text-align: center;
}

.iklan-box img {
    width: 100%;
    max-width: 250px;
    border-radius: clamp(6px, 2vw, 8px);
}

@media (max-width: 768px) {
    .layout-berita {
        grid-template-columns: 1fr;
    }

    .kolom-kanan-iklan {
        margin-top: clamp(10px, 2vw, 20px);
    }
}


/* ========== HALAMAN Layout Kategori (Desktop) */

.pagination a {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 4px;
    font-size: clamp(16px, 4vw, 22px);
    color: #000080;
    background-color: #e0f0ff;
    border-radius: 5px;
    text-decoration: none;
}

.pagination a:hover {
    background-color: #cce7ff;
}

/* Layout Kategori (Desktop) */
.layout-kategori {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: clamp(10px, 3vw, 20px);
    padding: clamp(10px, 3vw, 20px);
}

.kolom-kiri-kategori {
    background: #fff;
    padding: clamp(10px, 2.5vw, 15px);
    border-radius: clamp(6px, 2vw, 8px);
    box-shadow: 0 0 clamp(2px, 1vw, 6px) rgba(0, 0, 0, 0.1);
}

.kolom-kiri-kategori iframe {	/* Baris Ukuran Video class iframe di kolom */
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    max-width: 100%;	/* Penentuan Batas Ukuran Video iframe  */
    border: none;
}

.kolom-kanan-iklan {
    background: #f9f9f9;
    padding: clamp(6px, 2vw, 10px);
    border-radius: clamp(6px, 2vw, 8px);
}

.iklan-box {
    margin-bottom: clamp(10px, 3vw, 20px);
    text-align: center;
}

.iklan-box img {
    width: 100%;
    max-width: 250px;
    border-radius: clamp(6px, 2vw, 8px);
}

@media (max-width: 768px) {
    .layout-kategori {
        grid-template-columns: 1fr;
    }

    .kolom-kanan-iklan {
        margin-top: clamp(10px, 2vw, 20px);
    }
}

/* ========== TIPOGRAFI JUDUL KATEGORI ========== */

.judul-kategori4 {
    margin-top: 0;
    font-size: clamp(18px, 12vw, 36px);
    letter-spacing: 8px;
    margin-bottom: clamp(10px, 2.5vw, 18px);
    color: #1d1d86;
    font-family: Times, serif;
}

.judul-kategori2 {
    font-size: clamp(14px, 7vw, 25px);
    letter-spacing: 10px;
    margin-top: clamp(4px, 0.5vw, 0px);
    color: #3939ed;
    font-family: Arial, Verdana;
    }

.judul-kategori3 {
    font-size: clamp(12px, 4vw, 17px);
    letter-spacing: 10px;
    color: white;
    font-family: helvetica, verdana;
}

.judul-kategoriAd {
    font-size: clamp(5px, 1vw, 8px);
    letter-spacing: 8px;
    color: #1d1d86;
    font-family: helvetica;
}

/* ========== RESPONSIF TAMBAHAN ========== */
@media (max-width: 320px) {
    .badan-berita {
        font-size: clamp(10px, 2vw, 20px);
        letter-spacing: 1px;
    }
}



/* ========== FRAME RESPONSIVE UNTUK SISIPAN VIDEO ========== */
.responsive-iframe { 
    position: relative;
    padding-bottom: 56.25%; /* 16:9 ratio */
    height: 0;
    overflow: hidden;
}

.responsive-iframe iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}


/* ========== STYLE FOOTER ========== */

.footer-counter {
    font-size: 13px;
    color: #555;
    background: #f2f2f2;
    padding: 10px;
    text-align: center;
    border-top: 1px solid #ccc;
}
