/**
 *------------------------------------------------------------------------------
 * @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
 *------------------------------------------------------------------------------
**/

/* =========================================
   CUSTOM SPACING - RAPATKAN SEMUA POSISI
   Template: JA Blockk (T4)
   ========================================= */

/* 1. Rapatkan semua modul (global) */
.t4-module {
  margin-top: 0 !important;
  margin-bottom: 4px !important; /* super rapat */
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* Modul terakhir di dalam container tidak kasih gap ekstra */
.t4-module:last-child {
  margin-bottom: 0 !important;
}

/* 2. Rapatkan wrapper dalam modul */
.t4-module .module-inner,
.t4-module .t4-module-inner {
  padding-top: 4px !important;
  padding-bottom: 4px !important;
}

/* 3. Rapatkan semua section utama T4 */
.t4-section,
.t4-main,
.t4-main-body,
.t4-content {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 4px !important;
  padding-bottom: 4px !important;
}

/* 4. Semua posisi (body-top, body-bot, bottom, footnav, dll) dibuat tanpa jarak ekstra */
[class*="position-"] {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* 5. Tambahan untuk baris/grid agar tidak menambah gap vertikal berlebihan */
.t4-section .row,
.t4-main .row,
.t4-main-body .row,
.t4-content .row {
  margin-top: 0 !important;
  margin-bottom: 4px !important;
}

/* 6. Khusus tampilan preview posisi (ketika Layout / tp=1),
      strip semua tinggi/spacing berlebih supaya garis posisi mepet */
[id*="position"] {
  margin-top: 0 !important;
  margin-bottom: 2px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

