/* ===== Global reset-ish ===== */
*, *::before, *::after { box-sizing: border-box; }
img { max-width: 100%; height: auto; display: block; }

/* ===== Base typography ===== */
:root { font-family: var(--im-font); font-size: var(--im-base-font); }
body{
  color: var(--im-text);
  background: #f1f3f5; /* luar (kiri/kanan) */
}

/* Boxed area (GeneratePress) putih dari atas sampai bawah */
#page, .site, .site-content{ background: #fff; }

/* Default: no underline inside theme sections */
.im-home a{ text-decoration: none !important; }
.im-home a:hover{ text-decoration: none !important; }

/* ===== Boxed container ===== */
.im-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Spacing: default lebih rapat */
.im-section { padding: 14px 0; }
.im-section.im-ads { padding: 10px 0; } /* ADS lebih rapat */
.im-mt { margin-top: 14px; }

/* ===== Card ===== */
.im-card {
  background: var(--im-surface);
  border: 1px solid var(--im-border);
  border-radius: var(--im-radius);
  box-shadow: var(--im-shadow);
  overflow: hidden;
}

/* ===== Titles ===== */
.im-section-title { font-size: 18px; font-weight: 800; margin: 0 0 12px; }
.im-section-title-sm { font-size: 15px; font-weight: 800; margin: 0 0 10px; }

.im-title-lg { font-size: 22px; font-weight: 800; margin: 8px 0 0; line-height: 1.2; }
.im-title-md { font-size: 15px; font-weight: 700; margin: 10px 0 0; line-height: 1.25; }
.im-title-tight { margin-top: 6px; }
.im-muted { color: var(--im-muted); font-size: 14px; }

/* ===== Meta ===== */
.im-meta { font-size: 12px; color: var(--im-muted); display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.im-dot { opacity: .8; }
.im-meta-on-dark{ color: rgba(255,255,255,0.9); }

/* ===== Media helpers ===== */
.im-media { background: #000; }
.im-cover { width: 100%; height: 100%; object-fit: cover; }
.im-media-locked { height: 460px; position: relative; overflow: hidden; border-radius: var(--im-radius); }
@media (max-width: 991px) { .im-media-locked { height: 380px; } }
@media (max-width: 600px) { .im-media-locked { height: 300px; } }

.im-media-md { height: 160px; }
.im-media-sm { height: 120px; }
.im-media-md, .im-media-sm { overflow: hidden; border-radius: var(--im-radius); }

/* ===== Overlay ===== */
.im-overlay-wrap{ position: relative; }
.im-overlay { position: absolute; inset: 0; background: rgba(0,0,0,var(--im-overlay-alpha)); }
.im-overlay-content { position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 2; }
.im-title-on-dark{ color: #fff; }

/* ===== Grid layouts ===== */
.im-grid { display: grid; gap: 28px; }
.im-grid-70-30 { grid-template-columns: 7fr 3fr; align-items: start; }
@media (max-width: 991px) { .im-grid-70-30 { grid-template-columns: 1fr; } }

.im-grid-4 { grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 991px) { .im-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .im-grid-4 { grid-template-columns: 1fr; } }

.im-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 991px) { .im-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .im-grid-3 { grid-template-columns: 1fr; } }

.im-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 600px) { .im-grid-2 { grid-template-columns: 1fr; } }

/* ===== ADS ===== */
.im-ads-card { padding: 12px; }

/* ===== Headline ===== */
.im-headline-big-link{ display:block; color:#fff !important; }
.im-headline-big-link:hover{ color:#fff !important; }

.im-headline-sm-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 12px;
}
@media (max-width: 991px) { .im-headline-sm-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .im-headline-sm-grid { grid-template-columns: 1fr; } }

/* 4 headline kecil: no round, no heavy shadow */
.im-headline-sm{
  background: #fff;
  border: 1px solid var(--im-border);
  border-radius: 0;         /* ✅ no round */
  box-shadow: none;         /* ✅ clean */
  overflow: hidden;
}
.im-headline-sm-link{ display:block; color: inherit; }
.im-sm-title{
  font-size: 14px;          /* ✅ lebih kecil */
  font-weight: 600;         /* ✅ normal */
  line-height: 1.25;
  margin: 10px 12px 12px;
}

/* ===== Sidebar ===== */
.im-sidebar-box { padding: 14px; }

/* Sidebar 1: sticky desktop, stop at section bottom */
.im-sticky-headline{ position: sticky; top: 90px; }
@media (max-width: 991px){ .im-sticky-headline{ position: static; } }

/* Sidebar 2: sticky desktop */
.im-sticky { position: sticky; top: 90px; }
@media (max-width: 991px) { .im-sticky { position: static; } }

/* ===== Trending ===== */
.im-trending-card a{ color: inherit; display:block; }
.im-trending-body{ padding: 12px; }
.im-trending-body .im-title-md{
  font-size: 15px;
  font-weight: 700;  /* ✅ tidak terlalu tebal */
  margin-top: 8px;
}
.im-trending-body .im-meta-below{ margin-top: 8px; }

/* ===== Latest list ===== */
.im-latest-list { display: grid; gap: 12px; }
.im-latest-item { padding: 0; background: transparent; border: 0; box-shadow: none; border-radius: 0; }
.im-latest-link { display: grid; grid-template-columns: 200px 1fr; gap: 14px; color: inherit; padding: 12px 0; border-bottom: 1px solid var(--im-border); }
.im-latest-thumb { height: 132px; border-radius: 10px; overflow: hidden; }
@media (max-width: 600px) {
  .im-latest-link { grid-template-columns: 1fr; }
  .im-latest-thumb { height: 180px; }
}

/* Latest typography: judul lebih kecil & tidak terlalu tebal */
.im-latest .im-title-lg{
  font-size: 18px;
  font-weight: 650;
  line-height: 1.25;
}
.im-excerpt{
  font-size: 13px;
  color: var(--im-muted);
  margin-top: 6px;
  line-height: 1.35;
}

/* ===== Category block ===== */
.im-catblock { padding: 14px; }
.im-cat-card a { color: inherit; display: block; }
.im-cat-card .im-title-md{ font-weight: 700; }

/* ===== Overlay block 2x2 ===== */
.im-overlay-card a{ display:block; color:#fff; }
.im-overlay-card .im-media-md { height: 220px; position: relative; border-radius: var(--im-radius); overflow:hidden; }

/* ===== 4-col categories ===== */
.im-grid-4cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 991px) { .im-grid-4cols { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .im-grid-4cols { grid-template-columns: 1fr; } }

.im-fourcol-col { padding: 14px; }
.im-fourcol-head{ margin-bottom: 10px; }
.im-fourcol-head .im-section-title-sm{ text-transform: capitalize; } /* ✅ Capital */
.im-fourcol-feature{ margin-top: 8px; } /* ✅ jarak sebelum image */
.im-fourcol-feature a{ color: inherit; display:block; }
.im-fourcol-feature h4{
  font-size: 14px;
  font-weight: 700; /* ✅ tidak terlalu tebal */
  margin: 10px 0 0;
  line-height: 1.25;
}
.im-fourcol-list{ margin-top: 12px; display:grid; gap: 8px; }
.im-divider{ height:1px; background: var(--im-border); }
.im-fourcol-link{
  font-size: 13px;        /* ✅ lebih kecil */
  font-weight: 600;
  color: var(--im-text);
}

/* ===== Pagination ===== */
.im-pagination ul{
  list-style:none;
  display:flex;
  gap:10px;
  padding:0;
  margin:0;
  justify-content:center;
  flex-wrap:wrap;
}
.im-pagination li a,
.im-pagination li span{
  display:inline-flex;
  padding:6px 10px;
  border:1px solid var(--im-border);
  border-radius:0;
  font-weight:600;
  font-size:13px;
  color: var(--im-text);
  background:#fff;
}
.im-pagination li .current{
  background: #111827;
  color: #fff;
  border-color: #111827;
}

/* ===== Footer (child) ===== */
.im-footer{
  background: #1f2937; /* abu tua */
  color: #fff;
  margin-top: 24px;
}
.im-footer a{ color: #fff; opacity: .92; text-decoration: none; }
.im-footer a:hover{ opacity: 1; text-decoration: underline; }
.im-footer .im-footer-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding: 28px 0;
}
@media (max-width: 991px){
  .im-footer .im-footer-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px){
  .im-footer .im-footer-grid{ grid-template-columns: 1fr; }
}
.im-footer-title{ color:#fff; font-size: 14px; font-weight: 800; margin: 0 0 10px; }
.im-footer-widget{ font-size: 13px; color: rgba(255,255,255,.88); }
.im-footer-bottom{
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 14px 0;
  font-size: 12px;
  color: rgba(255,255,255,.78);
  display:flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

/* Sidebar 1 stretch full height of headline area */
.im-grid-70-30 { align-items: stretch; }
.im-sidebar-stretch{
  height: 100%;
}
@media (max-width: 991px){
  .im-sidebar-stretch{ height: auto; }
}

/* Headline small: no radius on image + tighter gap */
.im-headline-sm-grid{ gap: 10px; }      /* ✅ lebih rapat */
.im-headline-sm .im-media,
.im-headline-sm .im-media-sm{
  border-radius: 0 !important;          /* ✅ no radius image */
}

/* ===== Fix: Sticky sidebar (Chrome) ===== */
.im-sticky,
.im-sticky-headline{
  position: -webkit-sticky;
  position: sticky;
  align-self: start;
  overflow: visible; /* prevents Chrome from treating it as a scroll container */
}

/* ===== Latest News tweaks ===== */
.im-latest .im-title-lg{ font-weight: 700; }
.im-latest-link{ grid-template-columns: 200px 1fr; }
.im-latest-thumb{ height: 132px; }
.im-excerpt{
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.35;
  color: var(--im-muted);
  max-width: 62ch;
}

.im-latest-list .im-latest-item:last-child .im-latest-link { border-bottom: 0; }

/* ===== Hover effects (links + images) ===== */
.im-home a{ transition: color .15s ease; }
.im-home a:hover{ color: #4b5563; } /* sedikit lebih abu */

/* Image hover: sedikit bergerak */
.im-home a .im-cover{ transition: transform .2s ease; }
.im-home a:hover .im-cover{ transform: translateY(-3px); }

/* Read more text (Latest News) */
.im-readmore{
  margin-top: 6px;
  font-size: 12px;
  color: var(--im-muted);
  display: inline-block;
}

/* ===== Footer full width background (meski layout boxed) ===== */
.im-footer{
  position: relative;
  left: 50%;
  margin-left: -50vw;
  width: 100vw;
}
.im-footer .im-container{
  margin-left: auto;
  margin-right: auto;
}

.im-author {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #777;
}

/* bulat merah */
.im-author-icon {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #d40000;
  position: relative;
  display: inline-block;
}

/* kepala putih */
.im-author-icon::before {
  content: "";
  width: 6px;
  height: 6px;
  background: #ffffff;
  border-radius: 50%;
  position: absolute;
  top: 3px;
  left: 50%;
  transform: translateX(-50%);
}

/* badan putih */
.im-author-icon::after {
  content: "";
  width: 8px;
  height: 4px;
  background: #ffffff;
  border-radius: 4px 4px 2px 2px;
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
}

/* ===== Latest News: excerpt harus selebar judul (full kolom kanan) ===== */
.im-latest-item .im-excerpt{
  display: block;
  width: 100%;
  max-width: none !important;
}

/* Kalau wrapper kolom kanan Latest News pakai flex, ini wajib */
.im-latest-item .im-latest-body,
.im-latest-item .im-latest-content,
.im-latest-item .im-text{
  flex: 1;
  min-width: 0;
}

/* ======================================= */
/* HEADER 2-BAR (CUSTOM) - SAFE SCOPED      */
/* ======================================= */

/* ===== Sticky: pastikan nempel bener ===== */
.im-header-wrap{
  position: sticky;
  top: 0;
  z-index: 99999;
}

/* ===== Search form lebih estetik, tombol di dalam ===== */
.im-header-wrap .im-search-form{
  width: 100%;
  max-width: 560px;
  height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.12);
  background: rgba(255,255,255,0.92);
  box-shadow: 0 10px 22px rgba(0,0,0,0.08);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}

.im-header-wrap .im-search-form:hover{
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(0,0,0,0.10);
  background: rgba(255,255,255,0.98);
}

.im-header-wrap .im-search-form:focus-within{
  border-color: rgba(0,90,137,0.35);
}

/* input: kecil, normal, sama dengan yang lain */
.im-header-wrap .im-search-input{
  width: 100%;
  height: 42px;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  font-size: 13px;            /* ✅ lebih kecil */
  font-weight: 400;           /* ✅ jangan bold */
  font-family: inherit;       /* ✅ samakan */
  color: #111827;
}

/* placeholder */
.im-header-wrap .im-search-input::placeholder{
  font-size: 13px;
  font-weight: 400;
  opacity: .65;
}

/* button di dalam form */
.im-header-wrap .im-search-btn{
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: rgba(0,0,0,0.06);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease, transform .15s ease;
}
.im-header-wrap .im-search-btn:hover{
  background: rgba(0,0,0,0.10);
  transform: translateY(-1px);
}
.im-header-wrap .im-search-btn svg{
  width: 18px;
  height: 18px;
  fill: #111827;
  display:block;
}

/* ===== Tombol kanan: font jangan tebal & jangan besar ===== */
.im-header-wrap .im-btn{
  font-size: 13px;      /* ✅ lebih kecil */
  font-weight: 600;     /* ✅ tidak terlalu tebal */
  letter-spacing: 0;    /* ✅ normal */
  height: 40px;
  padding: 0 14px;
  border-radius: 14px;
}
.im-header-wrap .im-btn svg{
  width: 17px;
  height: 17px;
}

/* ===== Menu bawah: font proporsional ===== */
.im-header-wrap .im-bottom-nav a{
  font-size: 13px;     /* ✅ kecil */
  font-weight: 600;    /* ✅ tidak bold */
  padding: 9px 10px;
  border-radius: 12px;
}

/* ===== Desktop: pastikan search tampil (karena kita override sebelumnya) ===== */
@media (min-width: 769px){
  .im-header-wrap .im-search{ display:flex; }
  .im-header-wrap .im-actions{ display:flex; }
}


/* lock body scroll when drawer open */
body.im-lock{
  overflow: hidden;
}


/* ===================================================== */
/* LATEST NEWS - MOBILE: image di atas, teks di bawah    */
/* ===================================================== */
@media (max-width: 600px){

  /* paksa layout jadi 1 kolom */
  .im-latest-link{
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  /* thumbnail full di atas */
  .im-latest-thumb{
    width: 100% !important;
    height: 190px !important;     /* bisa kamu kecilkan 160 kalau mau */
    border-radius: 12px !important;
    overflow: hidden;
  }

  /* supaya gambar cover rapih */
  .im-latest-thumb .im-cover{
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* rapikan spacing teks bawah */
  .im-latest-link > div:last-child{
    padding-top: 2px;
  }

  /* judul jangan terlalu besar di HP */
  .im-latest .im-title-lg{
    font-size: 17px !important;
    line-height: 1.25 !important;
  }

  /* excerpt lebih enak dibaca */
  .im-excerpt{
    font-size: 13px !important;
    line-height: 1.4 !important;
  }
}


/* ===================================================== */
/* INS PIRA SIDEBAR WIDGETS (1/2/3)                      */
/* ===================================================== */

.im-side a{ color: inherit; text-decoration: none; }
.im-side a:hover{ text-decoration: none; }

/* ---------- Sidebar 1: Numbered Titles ---------- */
/* ---------- Sidebar 1: Numbered Titles ---------- */
.im-side-1{ --im-badge-rgb: 0,90,137; } /* default biru tua */

.im-side1-list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.im-side1-item{
  display: grid;
  grid-template-columns: 36px 1fr; /* ✅ badge lebih besar (sebelumnya 28px) */
  gap: 10px;
  align-items: start;
}

.im-side1-badge{
  width: 38px;               /* ✅ lebih besar (sebelumnya 24px) */
  height: 38px;              /* ✅ lebih besar (sebelumnya 24px) */
  border-radius: 999px;
  background: rgb(var(--im-badge-rgb));
  color: #fff;
  font-size: 15px;           /* ✅ angka lebih besar (sebelumnya 12px) */
  font-weight: 700;          /* angka tetap tegas (boleh), judul yang tidak bold */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  margin-top: 1px;
}

.im-side1-link{
  font-size: 15px;           /* ✅ judul sedikit lebih besar (sebelumnya 13px) */
  font-weight: 400;          /* ✅ jangan bold (sebelumnya 600) */
  line-height: 1.35;         /* ✅ lebih lega sedikit */
}


/* ---------- Sidebar 2: Thumb + Title + Divider ---------- */
.im-side2-list{
  display: grid;
}

.im-side2-item{
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  align-items: center;
}
.im-side2-item:last-child{ border-bottom: 0; }

.im-side2-thumb{
  width: 54px;
  height: 54px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(0,0,0,0.06);
  display: block;
}

.im-side2-img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.im-side2-thumb-fallback{
  display:block;
  width:100%;
  height:100%;
}

.im-side2-title{
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
}

/* ---------- Sidebar 3: 2-col grid cards ---------- */
.im-side3-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.im-side3-card{
  display: grid;
  gap: 8px;
}

.im-side3-media{
  width: 100%;
  height: 120px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(0,0,0,0.06);
  display: block;
}
.im-side3-img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display:block;
}
.im-side3-media-fallback{
  display:block;
  width:100%;
  height:100%;
}

.im-side3-title{
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
}

/* Mobile: Sidebar 3 jadi 1 kolom biar rapih */
@media (max-width: 600px){
  .im-side3-grid{ grid-template-columns: 1fr; }
  .im-side3-media{ height: 160px; }
}

/* ===================================================== */
/* INS PIRA SIDEBAR WIDGETS (4/5/6)                      */
/* ===================================================== */

/* ---------- Sidebar 4: Big Number List ---------- */
.im-side4-list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.im-side4-item{
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: start;
}

.im-side4-num{
  font-size: 34px;
  line-height: 1;
  font-weight: 700;
  color: rgba(0,0,0,0.35);
  margin-top: 2px;
}

.im-side4-body{
  display: grid;
  gap: 3px;
}

.im-side4-meta{
  font-size: 12px;
  font-style: italic;
  color: rgba(0,0,0,0.45);
}

.im-side4-link{
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
}

/* ---------- Sidebar 5: Featured + list ---------- */
.im-side5-feature{
  display: block;
  background: rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.06);
  overflow: hidden;
}

.im-side5-media{
  width: 100%;
  aspect-ratio: 16 / 9;
  background: rgba(0,0,0,0.06);
  overflow: hidden;
  display:block;
}

.im-side5-img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display:block;
}

.im-side5-media-fallback{
  display:block;
  width:100%;
  height:100%;
}

.im-side5-meta{
  font-size: 12px;
  font-style: italic;
  color: rgba(0,0,0,0.45);
  padding: 10px 12px 0;
}

.im-side5-title{
  padding: 6px 12px 12px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
}

.im-side5-list{
  padding: 10px 12px 12px;
  background: rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.06);
  border-top: 0;
}

.im-side5-item{
  padding: 10px 0;
  border-top: 1px solid rgba(0,0,0,0.08);
}
.im-side5-item:first-child{ border-top: 0; }

.im-side5-link{
  display:block;
  margin-top: 2px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.25;
}

/* ---------- Sidebar 6: Featured + thumb list ---------- */
.im-side6-feature{
  display:block;
  margin-bottom: 12px;
}

.im-side6-media{
  width: 100%;
  aspect-ratio: 16 / 9;
  background: rgba(0,0,0,0.06);
  overflow:hidden;
  display:block;
}

.im-side6-img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}

.im-side6-media-fallback{
  display:block;
  width:100%;
  height:100%;
}

.im-side6-meta{
  margin-top: 8px;
  font-size: 12px;
  font-style: italic;
  color: rgba(0,0,0,0.45);
}

.im-side6-title{
  margin-top: 4px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
}

.im-side6-list{
  display:grid;
  gap: 10px;
}

.im-side6-item{
  display:grid;
  grid-template-columns: 72px 1fr;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(0,0,0,0.08);
}

.im-side6-thumb{
  width:72px;
  height:54px;
  border-radius: 10px;
  overflow:hidden;
  background: rgba(0,0,0,0.06);
  display:block;
}

.im-side6-thumb-img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}

.im-side6-thumb-fallback{
  display:block;
  width:100%;
  height:100%;
}

.im-side6-body{
  display:grid;
  gap: 2px;
}

.im-side6-date{
  font-size: 12px;
  font-style: italic;
  color: rgba(0,0,0,0.45);
}

.im-side6-link{
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.25;
}


/* ======================================= */
/* TRENDING TOPICS (Under ADS 1) - V2      */
/* ======================================= */

.im-tt{ padding: 10px 0; }

/* 1 bar full, tidak 30/70 */
.im-tt-box{
  display: flex;
  align-items: center;
  width: 100%;
  background: #0b2a3a;                 /* biru vintage gelap */
  color: #fff;
  border-radius: 14px;
  overflow: hidden;                    /* ✅ ini kunci: marquee “hilang” di batas */
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 10px 26px rgba(0,0,0,0.12);
  padding: 10px 12px;
  gap: 10px;
}

/* TOPICS: panjangnya jadi batas kiri */
.im-tt-topics{
  display: inline-flex;
  gap: 10px;
  align-items: center;
  flex: 0 0 auto;                      /* ✅ tidak melebar */
  white-space: nowrap;
}

/* tiap topic punya background sendiri */
.im-tt-topic{
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.75);  /* ✅ putih transparent 75% */
  color: #0b2a3a;                       /* teks gelap biar kebaca */
  font-size: 13px;
  font-weight: 700;                     /* ✅ bold */
  font-style: italic;                   /* ✅ italic */
  text-decoration: none;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}

.im-tt-topic:hover{
  background: rgba(255,255,255,0.88);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.10);
}

/* MARQUEE: ambil sisa ruang kanan */
.im-tt-marquee{
  flex: 1 1 auto;                       /* ✅ isi sisa ruang */
  min-width: 0;                         /* ✅ penting agar overflow clip bekerja */
  overflow: hidden;                     /* ✅ teks hilang tepat di batas topics */
  white-space: nowrap;
  font-size: 15px;
  font-weight: 400;                     /* normal */
  opacity: .95;
}

/* jika marquee jadi link */
.im-tt-marquee-link{
  color: #fff;
  text-decoration: none;
  display: block;
}
.im-tt-marquee-link:hover{ opacity: 1; }

/* track anim */
.im-tt-marquee-track{
  display: inline-flex;
  gap: 40px;
  will-change: transform;
  animation: imMarquee 18s linear infinite;
}
.im-tt-marquee-track span{
  display: inline-block;
}

@keyframes imMarquee{
  0%{ transform: translateX(0); }
  100%{ transform: translateX(-50%); }
}

/* Mobile: stack, tapi tetap clean */
@media (max-width: 768px){
  .im-tt-box{
    flex-wrap: wrap;
    gap: 10px;
  }
  .im-tt-marquee{
    width: 100%;
  }
}
