/**
 *------------------------------------------------------------------------------
 * @package       T4_Blank - Free Template for Joomla!
 *------------------------------------------------------------------------------
 * @copyright     Copyright (C) 2004-2019 JoomlArt.com. All Rights Reserved.
 * @license       GNU General Public License version 2 or later; see LICENSE.txt
 * @authors       JoomlArt
 *------------------------------------------------------------------------------
**/
/* =========================================
   GLOBAL SPACING TIGHTENING - JA BLOCKK (T4)
   Membuat jarak antar posisi/modul lebih rapat
   ========================================= */

/* 1. Rapikan jarak default setiap modul */
.t4-module {
  margin-top: 0;
  margin-bottom: 12px; /* default bawaan biasanya lebih besar, kita kecilkan */
}

/* 2. Jangan ada gap berlebih di modul terakhir dalam satu posisi */
.t4-module:last-child {
  margin-bottom: 0;
}

/* 3. Rapatkan semua posisi modul yang dibungkus class position-... */
[class*="position-"] > .t4-module,
.t4-module[class*="position-"] {
  margin-top: 0;
  margin-bottom: 12px;
}

/* 4. Rapatkan jarak antar section utama (spotlight, body-top, body-bot, dsb)
      tapi jangan ganggu header, footer, dan offcanvas */
.t4-section {
  padding-top: 18px;
  padding-bottom: 18px;
  margin-top: 0;
  margin-bottom: 10px;
}

.t4-header,
.t4-footer,
.t4-offcanvas {
  padding-top: inherit;
  padding-bottom: inherit;
  margin-bottom: inherit;
}

/* 5. Row di dalam main/content dibuat lebih kompak */
.t4-main .row,
.t4-content .row,
.t4-section .row {
  margin-top: 0;
  margin-bottom: 10px;
}

/* 6. Sedikit rapatkan blok posisi khusus yang biasanya tinggi:
      body-top, body-bot, spotlight, iklan, bottom, footer */
[class*="position-body-top"],
[class*="position-body-bot"],
[class*="position-spotlight"],
[class*="position-iklan"],
[class*="position-bottom"],
[class*="position-footer"] {
  margin-top: 0;
  margin-bottom: 10px;
}

/* 7. Kalau ada modul grid/berita yang dikasih padding besar, kecilkan sedikit */
.t4-module .module-inner,
.t4-module .t4-module-inner {
  padding-top: 10px;
  padding-bottom: 10px;
}

/* Floating button — independen dari layout footer */
.ja-floating-cctv {
  position: fixed !important;
  right: 20px !important;
  bottom: 20px !important;
  left: auto !important;
  z-index: 2147483647 !important;
  pointer-events: auto;
}

/* pastikan modul tidak memberi margin/padding yang mendorong layout */
.ja-floating-cctv,
.ja-floating-cctv * {
  margin: 0 !important;
}

/* ukuran tombol konsisten (anti-CLS) */
.ja-floating-cctv img {
  width: 76px;
  height: 76px;
  display: block;
}

/* responsif */
@media (max-width: 576px) {
  .ja-floating-cctv { right: 14px !important; bottom: 14px !important; left: auto !important; }
  .ja-floating-cctv img { width: 60px; height: 60px; }
}


/* =========================================================
   DATA RENSTRA – FINAL STYLING
   Scope: ONLY Article item-323
   ========================================================= */

body.item-323 .intro-text {
  padding-top: .5rem;
}

/* GRID SPACING */
body.item-323 .intro-text .row.g-4 {
  --bs-gutter-x: 2rem;
  --bs-gutter-y: 2rem;
}

/* CARD BASE */
body.item-323 .renstra-card {
  border-radius: 18px !important;
  background: #ffffff !important;
  border: 1px solid rgba(0,0,0,.06) !important;
  box-shadow: 0 10px 28px rgba(0,0,0,.08) !important;
  min-height: 230px;
  transition: all .25s ease;
}

/* HOVER EFFECT */
body.item-323 .renstra-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 42px rgba(0,0,0,.14) !important;
}

/* CARD BODY */
body.item-323 .renstra-card .card-body {
  padding: 1.6rem 1.6rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* YEAR BADGE */
body.item-323 .renstra-card .badge {
  font-size: .9rem;
  padding: .45rem .9rem;
  font-weight: 700;
  border-radius: 999px;
}

/* TITLE */
body.item-323 .renstra-card h5 {
  font-size: 1.2rem;
  font-weight: 800;
  margin: 1rem 0 .4rem;
  color: #111;
  letter-spacing: .3px;
}

/* DIVIDER */
body.item-323 .renstra-card hr {
  margin: .8rem 0 1rem;
  opacity: .15;
}

/* LINK */
body.item-323 .renstra-card a.link-primary {
  font-size: .95rem;
  font-weight: 700;
  color: #c1121f !important;
}
body.item-323 .renstra-card a.link-primary:hover {
  text-decoration: underline;
}

/* ICON BUTTONS (PDF & OPEN) */
body.item-323 .renstra-card .btn.rounded-circle,
body.item-323 .renstra-pdf {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50% !important;
  padding: 0;
}

/* RED PDF BUTTON */
body.item-323 .renstra-pdf {
  background: #dc3545 !important;
  border: none;
}

/* GREEN OPEN BUTTON */
body.item-323 .renstra-card .btn-primary {
  background: #0b3d1c !important;
  border: none;
}

/* ICON SIZE */
body.item-323 .renstra-card i {
  font-size: 1rem;
}

/* ALIGN FOOTER ROW */
body.item-323 .renstra-card .d-flex.justify-content-between {
  margin-top: auto;
}

/* MOBILE */
@media (max-width: 576px) {
  body.item-323 .renstra-card {
    min-height: auto;
  }
  body.item-323 .renstra-card h5 {
    font-size: 1.1rem;
  }
}


/* =========================================================
   HEADER 5 & LOGO ENLARGEMENT & LEFT ALIGNMENT
   ========================================================= */

/* 1. Bebaskan batasan lebar kolom pada logo header (hapus max-width 25% / col-3) */
.t4-header .navbar-brand,
#t4-header .navbar-brand,
.header-block .navbar-brand,
.header-block-5 .navbar-brand,
.header-layout-5 .navbar-brand,
[class*="header-block"] .navbar-brand {
  margin-left: 0 !important;
  margin-right: auto !important;
  left: 0 !important;
  transform: none !important;
  text-align: left !important;
  justify-content: flex-start !important;
  flex: 0 0 auto !important;
  max-width: 100% !important;
  width: auto !important;
  min-height: auto !important;
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}

/* Clear centered offsets jika ada */
[class*="header-block"] .navbar-brand.offset-md-4,
[class*="header-block"] .navbar-brand[class*="offset-"],
.header-block-3 .navbar-brand {
  margin-left: 0 !important;
  margin-right: auto !important;
  left: 0 !important;
}

/* Wrapper header rata kiri */
.t4-header-inner,
.header-wrap {
  justify-content: flex-start !important;
}

/* 2. Ukuran & responsivitas gambar logo (Diperbesar agar banner/kop terlihat jelas) */
.navbar-brand img,
.navbar-brand img.logo-img,
.navbar-brand .logo-img,
.navbar-brand.logo-control img.logo-img,
.header-layout-5 .navbar-brand .logo-img,
.header-block-5 .navbar-brand img,
#t4-header img.logo-img {
  max-height: 120px !important; /* Diperbesar signifikan agar kop banner terlihat jelas */
  height: auto !important;
  width: auto !important;
  max-width: 100% !important;
  object-fit: contain !important;
}

/* Mobile & Tablet responsiveness */
@media (max-width: 992px) {
  .navbar-brand img,
  .navbar-brand img.logo-img,
  .navbar-brand .logo-img,
  .navbar-brand.logo-control img.logo-img,
  .header-layout-5 .navbar-brand .logo-img {
    max-height: 80px !important;
    width: auto !important;
  }
}

@media (max-width: 576px) {
  .navbar-brand img,
  .navbar-brand img.logo-img,
  .navbar-brand .logo-img,
  .navbar-brand.logo-control img.logo-img,
  .header-layout-5 .navbar-brand .logo-img {
    max-height: 60px !important;
    width: auto !important;
  }
}

/* TAMBAHKAN INI UNTUK MERUBAH WARNA NAVMENU HEADER MENJADI HIJAU */
.header-layout-5 .header-bottom,
.header-block-5 .header-bottom {
  background-color: #006a4e;
  /* Soft Glow Effect */
  box-shadow: 0 4px 15px rgba(228, 139, 5, 0.6);
  position: relative;
  z-index: 99;
}

/* Agar teks menu menjadi putih */
.header-layout-5 .header-bottom .navbar-nav>li>a,
.header-layout-5 .header-bottom .navbar-nav>li>span,
.header-block-5 .header-bottom .navbar-nav>li>a,
.header-block-5 .header-bottom .navbar-nav>li>span {
  color: #fff;
}


/* Fix Perkara badge alignment in com_panggilan */
.com-panggilan .accordion-button {
  display: flex !important;
}

.com-panggilan .accordion-button>div {
  display: flex !important;
  width: auto !important;
  flex-grow: 1 !important;
}

.com-panggilan .badge {
  margin-left: auto !important;
}

.yt-lite { position:relative; cursor:pointer; background:#000; border-radius:10px; overflow:hidden }
.yt-play {
  position:absolute; left:50%; top:50%; transform:translate(-50%,-50%);
  width:68px; height:48px; border:0; border-radius:12px; background:rgba(0,0,0,.6)
}
.yt-play:before {
  content:""; display:block; margin-left:6px; width:0; height:0;
  border-left:18px solid #fff; border-top:10px solid transparent; border-bottom:10px solid transparent
}
