/*
 * Gaya Modern: logo sebaris dengan menu pada bilah putih yang menempel, foto utama selebar kolom
 * dengan empat kartu di bawahnya, kartu membulat dengan gambar di atas, dan footer terang.
 * Warna mengikuti menu Warna Tema lewat --theme-primary, --theme-dark, dan --theme-tint.
 *
 * Latar kartu ditulis dengan background-color, karena shorthand background menghapus background-size foto.
 * Tema lama memakai !important pada garis .thumbnail dan kelas bantu .mar-* dan .pad-*, jadi penggantinya juga begitu.
 */
.site-style-modern, .site-style-modern .wrapper { background: #f3f5f4; }
.site-style-modern .content-area { background: transparent; }
.site-style-modern .page-section { padding-top: 12px !important; padding-bottom: 12px !important; }

/* ---------- Kartu dengan gambar di atas ---------- */
.site-style-modern .thumbnail { overflow: hidden; margin-right: 0; margin-left: 0; padding: 0; border: 0 !important; border-radius: 14px; background-color: #fff; box-shadow: 0 2px 12px rgba(20, 40, 30, .08); transition: box-shadow .2s, transform .2s; }
.site-style-modern .thumbnail:hover { box-shadow: 0 8px 22px rgba(20, 40, 30, .14); transform: translateY(-2px); }
.site-style-modern .thumbnail .img-thumbnail { padding: 0; border: 0; border-radius: 0; }
.site-style-modern .thumbnail.news_box_rect_1, .site-style-modern .thumbnail.news_box_sqr_1 { display: flex; flex-direction: column; }
.site-style-modern .thumbnail.news_box_rect_1 > .row, .site-style-modern .thumbnail.news_box_sqr_1 > .row { display: contents; }
.site-style-modern .thumbnail.news_box_rect_1 > .row > div, .site-style-modern .thumbnail.news_box_sqr_1 > .row > div { flex: none; float: none; width: 100%; padding: 0 !important; }
.site-style-modern .thumbnail.news_box_rect_1 > .row > .col-md-4 { order: 1; }
.site-style-modern .thumbnail.news_box_rect_1 > .caption.top { order: 2; padding: 14px 16px 0; }
.site-style-modern .thumbnail.news_box_rect_1 > .row > .col-md-8 { order: 3; flex: 1; padding: 6px 16px 16px !important; }
.site-style-modern .thumbnail .caption.down { padding: 0; }
.site-style-modern .thumbnail .rm-btn { display: block; }
.site-style-modern .thumbnail .media-link img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background-color: #eef1ef; }
.site-style-modern .thumbnail.news_box_sqr_1 > .caption { padding: 14px 16px 16px; }
.site-style-modern .thumbnail.news_box_sqr_1 .caption .col-md-12 { float: none; width: 100%; padding: 0 !important; }
.site-style-modern .caption-title, .site-style-modern .caption-title a { font-weight: 700; }
.site-style-modern .btn-readmore { padding: 0; border: 0; background: transparent; color: var(--theme-dark); font-weight: 700; }
.site-style-modern .btn-readmore:hover { background: transparent; color: #1f2a25; }
.site-style-modern .btn-readmore .fa { display: none; }
.site-style-modern .btn, .site-style-modern .form-control, .site-style-modern .pagination li a { border-radius: 8px; }
.site-style-modern .news_box_sqr_2 .caption { padding-right: 16px; padding-left: 16px; }
.site-style-modern .portal-grid { gap: 16px; }
.site-style-modern .products.list > .thumbnail { margin: 0 0 16px; }

/* Kartu terakhir yang sendirian di barisnya memakai satu baris penuh dengan gambar di samping. */
.site-style-modern .portal-fill-last > .news_box_rect_1:last-child:nth-child(odd) > .row > .col-md-4,
.site-style-modern .portal-fill-last > .news_box_rect_1:last-child:nth-child(odd) > .row > .col-md-8 { flex: none; width: 100%; }
@media (min-width: 768px) {
  .site-style-modern .portal-fill-last > .news_box_rect_1:last-child:nth-child(odd) { display: grid; grid-template-rows: auto 1fr; grid-template-columns: 36% minmax(0, 1fr); }
  .site-style-modern .portal-fill-last > .news_box_rect_1:last-child:nth-child(odd) > .row > .col-md-4 { grid-row: 1 / span 2; grid-column: 1; }
  .site-style-modern .portal-fill-last > .news_box_rect_1:last-child:nth-child(odd) > .caption.top { grid-row: 1; grid-column: 2; }
  .site-style-modern .portal-fill-last > .news_box_rect_1:last-child:nth-child(odd) > .row > .col-md-8 { grid-row: 2; grid-column: 2; width: auto; }
  .site-style-modern .portal-fill-last > .news_box_rect_1:last-child:nth-child(odd) > .row > .col-md-4 { position: relative; min-height: 220px; }
  .site-style-modern .portal-fill-last > .news_box_rect_1:last-child:nth-child(odd) .media-link img { position: absolute; top: 0; left: 0; height: 100%; aspect-ratio: auto; }
}

/* ---------- Judul bagian ---------- */
.site-style-modern .block-title { margin-bottom: 12px; padding: 0; border: 0; background: transparent; color: #1f2a25; font-size: 22px; font-weight: 800; }
.site-style-modern .block-title span { padding: 0; border: 0; background: transparent; color: inherit; }
.site-style-modern .block-title::before, .site-style-modern .block-title::after { display: none; }
.site-style-modern .panel.panel-default { border: 0; background: transparent; box-shadow: none; }
.site-style-modern .panel.panel-default > .panel-heading { padding: 0 0 12px; border: 0; background: transparent; color: #1f2a25; font-size: 22px; font-weight: 800; }
.site-style-modern .panel.panel-default > .panel-body { padding: 0; background: transparent; }
.site-style-modern .btn_seeMore { border-radius: 999px; }

/* ---------- Bilah samping, berita berjalan, dan isi berita ---------- */
.site-style-modern .sidebar .box_shadow { padding: 0; border: 0; background: transparent; box-shadow: none; }
.site-style-modern .widget_box, .site-style-modern .sidebar .widget { overflow: hidden; margin-bottom: 16px; border: 0; border-radius: 14px; background: #fff; box-shadow: 0 2px 12px rgba(20, 40, 30, .08); }
.site-style-modern .widget_box .widget { overflow: visible; margin-bottom: 15px; border-radius: 0; background: transparent; box-shadow: none; }
.site-style-modern .marquee1 { overflow: hidden; border: 0; border-radius: 999px; background: #fff; box-shadow: 0 2px 12px rgba(20, 40, 30, .08); }
.site-style-modern .marquee1 .heading { background: var(--theme-dark); }
.site-style-modern .marquee1 .heading, .site-style-modern .marquee1 .heading span { color: #fff; }
/* Tanpa garis, bayangan hover, dan kotak abu-abu dari tema lama. */
.site-style-modern .marquee1 .marquee_body, .site-style-modern .marquee1:hover .marquee_body { border-top: 0; border-bottom: 0; background: transparent; }
.site-style-modern .marquee1 .buttons { background: transparent; }
.site-style-modern .marquee1 .buttons i { color: #5f6b65; }
.site-style-modern .marquee1:hover .heading, .site-style-modern .marquee1:hover .marquee_body, .site-style-modern .marquee1:hover .buttons { box-shadow: none; }
.site-style-modern .post-wrap { margin-right: 0; margin-left: 0; padding: 18px 20px; border: 0; border-radius: 14px; background: #fff; box-shadow: 0 2px 12px rgba(20, 40, 30, .08); }
.site-style-modern .post-title { color: #1f2a25; font-size: 28px; font-weight: 800; line-height: 1.25; }
.site-style-modern .post-single .img-thumbnail { padding: 0; border: 0; border-radius: 10px; }

/* Teks kecil memakai warna gelap tema, karena warna utama sebagian tema kurang kontras di latar putih. */
.site-style-modern .sidebar .widget-title, .site-style-modern .widget_box .widget-title { color: var(--theme-dark); }
.site-style-modern .tab-menu-1 .menu-link { color: #25302b; }
.site-style-modern .tab-menu-1 .active .menu-link { color: var(--theme-dark); }
.site-style-modern .btn-info { border-color: var(--theme-dark); background-color: var(--theme-dark); color: #fff; }
.site-style-modern .btn-info:hover { border-color: var(--theme-dark); background-color: var(--theme-dark); color: #fff; opacity: .88; }
.site-style-modern .thumbnail:not(.news_box_sqr_2) .divider { color: #6a6f75; }
.site-style-modern .pagination > li > a { color: #25302b; }
.site-style-modern .pagination > li.active > a { border-color: var(--theme-dark) !important; background: var(--theme-dark) !important; color: #fff !important; }
.site-style-modern .table > tbody > tr > td { color: #3a3f44; }
.site-style-modern .shop-categories li.active, .site-style-modern .shop-categories li.active > a { background: var(--theme-tint); color: #1f2a25; }

/* Remah roti berupa teks biasa. */
.site-style-modern .breadcrumb-custom { height: auto; border-radius: 0; background: transparent; }
.site-style-modern .breadcrumb-custom li a, .site-style-modern .breadcrumb-custom li span { height: auto; padding: 0 14px 0 0 !important; border: 0 !important; border-radius: 0; background: transparent !important; color: #55524b !important; }
.site-style-modern .breadcrumb-custom li a::before, .site-style-modern .breadcrumb-custom li a::after, .site-style-modern .breadcrumb-custom li span::before, .site-style-modern .breadcrumb-custom li span::after { display: none; }
.site-style-modern .breadcrumb-custom li.active a, .site-style-modern .breadcrumb-custom li.active span { color: var(--theme-dark) !important; }

/* Kolom baris lama digeser supaya rata dengan judul bagian. */
.site-style-modern .page-section:not(.portal-top-news) > .container > .row.mar-lr--5 { margin-right: -15px !important; margin-left: -15px !important; }

/* ---------- Kepala halaman dan beranda di layar lebar ---------- */
@media (min-width: 992px) {
  .site-style-modern .top-bar { border-bottom: 1px solid #eef1ef; background: #fff; font-size: 12px; }
  .site-style-modern .top-bar a, .site-style-modern .top-bar span, .site-style-modern .top-bar .fa { color: #55524b; }
  .site-style-modern .top-bar-middle { display: none !important; }
  .site-style-modern .header { display: none; }
  .site-style-modern .header1 { position: sticky; top: 0; z-index: 1000; background-color: #fff !important; box-shadow: 0 2px 10px rgba(20, 40, 30, .08); }
  .site-style-modern .mega-menu > section.menu-list-items { align-items: center; background-color: #fff; }
  .site-style-modern .portal-nav-brand { display: flex; flex: 0 1 270px; align-items: center; gap: 10px; min-width: 0; margin-right: 18px; color: #1f2a25; line-height: 1.2; }
  .site-style-modern .portal-nav-brand:hover { color: var(--theme-dark); }
  .site-style-modern .portal-nav-brand span { font-size: 15px; font-weight: 800; }
  .site-style-modern .portal-nav-brand img { flex: none; width: 42px; height: 42px; object-fit: contain; }
  .site-style-modern .mega-menu .menu-links { flex: 1 1 auto; }
  .site-style-modern .mega-menu .menu-links > li { margin: 11px 2px; border-radius: 8px; }
  .site-style-modern .mega-menu .menu-links > li > a { padding: 0 11px; color: #25302b; font-size: 14px; font-weight: 600; line-height: 38px; }
  .site-style-modern .mega-menu .menu-links > li > a i.fa { color: inherit; }
  .site-style-modern .mega-menu .menu-links > li.active, .site-style-modern .mega-menu .menu-links > li:hover { background-color: var(--theme-tint); box-shadow: none; }
  .site-style-modern .mega-menu .menu-links > li.active > a, .site-style-modern .mega-menu .menu-links > li:hover > a { color: #1f2a25; }
  .site-style-modern .mega-menu .drop-down { top: 100%; border-radius: 0 0 12px 12px; }
  .site-style-modern .mega-menu .menu-search-bar i.fa.fa-search { color: #25302b; }
  .site-style-modern .mega-menu .menu-search-bar li:hover i.fa.fa-search { background: var(--theme-tint); }
  .site-style-modern .mega-menu .menu-search-bar input { color: #25302b; }
  .site-style-modern .mega-menu .menu-search-bar input:focus { background: #fff; box-shadow: inset 0 0 0 1px #c4ccc8; }
  .site-style-modern .mega-menu .menu-search-bar .menu_borderLeft, .site-style-modern .mega-menu .menu-search-bar .menu_borderRight { border-color: transparent; }

  /* Foto utama selebar kolom, empat kartu di bawahnya. */
  .site-style-modern .portal-top-news .row.mar-lr--5 { display: block; margin: 0 !important; }
  .site-style-modern .portal-top-news .row.mar-lr--5 > div { float: none !important; width: 100%; padding: 0; }
  .site-style-modern .portal-top-news .news_box_sqr_2.md { height: 430px; margin: 0; }
  .site-style-modern .portal-top-news .news_box_sqr_2.md .caption-title { font-size: 30px; }
  .site-style-modern .portal-top-side > .row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 16px 0 0; }
  .site-style-modern .portal-top-side > .row::before, .site-style-modern .portal-top-side > .row::after { display: none; }
  .site-style-modern .portal-top-side > .row > div { float: none; width: auto; margin: 0 !important; padding: 0; }
  .site-style-modern .portal-top-news .news_box_sqr_2.sm { height: 210px !important; margin: 0; }

  /* Daftar berita sebagai kartu dua kolom. */
  .site-style-modern .products.list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .site-style-modern .products.list > .thumbnail { margin: 0; }
}

/* Menu lebih rapat di layar sedang. */
@media (min-width: 992px) and (max-width: 1199px) {
  .site-style-modern .portal-nav-brand { flex: none; margin-right: 6px; }
  .site-style-modern .portal-nav-brand span { display: none; }
  .site-style-modern .mega-menu .menu-links > li > a { padding: 0 9px; font-size: 13px; }
}

/* ---------- Footer terang ---------- */
.site-style-modern .footer2 { margin-top: 18px; border-top: 0; }
.site-style-modern .footer2 .footer2-top { border-top: 1px solid #e4e8e6; border-bottom: 1px solid #e4e8e6; background-color: #fff; }
.site-style-modern .footer2-widgets, .site-style-modern .footer1-meta { border-color: #e4e8e6; background: #fff; color: #25302b; }
.site-style-modern .footer1-meta { border-top: 1px solid #e4e8e6; }
.site-style-modern .footer2 a, .site-style-modern .footer2-widgets, .site-style-modern .footer2-widgets h1, .site-style-modern .footer2-widgets h2, .site-style-modern .footer2-widgets h3, .site-style-modern .footer2-widgets h4, .site-style-modern .footer2-widgets h5, .site-style-modern .footer2-widgets h6, .site-style-modern .footer2-widgets p, .site-style-modern .footer2-widgets li, .site-style-modern .footer2-widgets .media-body, .site-style-modern .footer1-meta .copyright, .site-style-modern .footer1-meta .copyright a { color: #25302b !important; }
.site-style-modern .footer2 a:hover, .site-style-modern .footer2 a:focus { color: var(--theme-dark) !important; }
.site-style-modern .footer2-top .widget-title:hover a { color: #fff !important; }
.site-style-modern .footer2 .fa { color: var(--theme-primary); }
.site-style-modern .footer2-widgets li { border-color: #e4e8e6 !important; }
.site-style-modern .footer2-widgets .widget-title { color: var(--theme-dark) !important; }
