/* Custom Plugin Frontend Styles mimicking Tailwind Utilities */

.custom-plugin-wrapper {
  box-sizing: border-box;
}

.custom-plugin-wrapper * {
  box-sizing: border-box;
}

/* Layout */
.max-w-lg {
  max-width: 32rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.flex {
  display: flex;
}

.flex-shrink-0 {
  flex-shrink: 0;
}

.justify-center {
  justify-content: center;
}

.items-center {
  align-items: center;
}

.block {
  display: block;
}

.w-full {
  width: 100%;
}

.space-y-6 > * + * {
  margin-top: 1.5rem;
}

/* Spacing */
.p-4 {
  padding: 1rem;
}

.p-8 {
  padding: 2rem;
}

.px-3 {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.mb-1 {
  margin-bottom: 0.25rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.ml-3 {
  margin-left: 0.75rem;
}

.-ml-1 {
  margin-left: -0.25rem;
}

.mr-3 {
  margin-right: 0.75rem;
}

.pb-4 {
  padding-bottom: 1rem;
}

/* Typography */
.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}

.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.font-bold {
  font-weight: 700;
}

.font-medium {
  font-weight: 500;
}

.text-gray-700 {
  color: #374151;
}

.text-gray-800 {
  color: #1f2937;
}

.text-white {
  color: #ffffff;
}

.text-green-700 {
  color: #047857;
}

.text-green-400 {
  color: #34d399;
}

.text-red-700 {
  color: #b91c1c;
}

.text-red-400 {
  color: #f87171;
}

.placeholder-gray-400::placeholder {
  color: #9ca3af;
}

/* Borders */
.border {
  border-width: 1px;
}

.border-b {
  border-bottom-width: 1px;
}

.border-l-4 {
  border-left-width: 4px;
}

.border-gray-100 {
  border-color: #f3f4f6;
}

.border-gray-300 {
  border-color: #d1d5db;
}

.border-green-500 {
  border-color: #10b981;
}

.border-red-500 {
  border-color: #ef4444;
}

.rounded {
  border-radius: 0.25rem;
}

.rounded-md {
  border-radius: 0.375rem;
}

.rounded-xl {
  border-radius: 0.75rem;
}

/* Shadows */
.shadow-sm {
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.shadow-lg {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Colors */
.bg-white {
  background-color: #ffffff;
}

.bg-gray-50 {
  background-color: #f9fafb;
}

.bg-green-50 {
  background-color: #ecfdf5;
}

.bg-red-50 {
  background-color: #fef2f2;
}

.bg-blue-600 {
  background-color: #2563eb;
}

.hover\:bg-blue-700:hover {
  background-color: #1d4ed8;
}

/* Interactivity & Transitions */
.appearance-none {
  appearance: none;
}

.transition {
  transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, transform;
}

.duration-150 {
  transition-duration: 150ms;
}

.ease-in-out {
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.focus\:outline-none:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.focus\:ring-2:focus {
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px rgba(37, 99, 235, 0.5); /* simplified ring */
}

.focus\:ring-blue-500:focus {
  --tw-ring-color: #3b82f6;
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), 0 0 0 3px var(--tw-ring-color, rgba(59, 130, 246, 0.5));
}

.focus\:border-blue-500:focus {
  border-color: #3b82f6;
}

.disabled\:opacity-50:disabled {
  opacity: 0.5;
}

.disabled\:cursor-not-allowed:disabled {
  cursor: not-allowed;
}

/* Animation */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.animate-spin {
  animation: spin 1s linear infinite;
}

.h-5 {
  height: 1.25rem;
}

.w-5 {
  width: 1.25rem;
}

.opacity-25 {
  opacity: 0.25;
}

.opacity-75 {
  opacity: 0.75;
}

/* ==========================================================================
   Halaman dalam (redesign ala mashmoshem.co.id) — dipakai di layout Beaver Builder
   ========================================================================== */
.mgk-samping-judul {
    position: relative;
    margin: 0 0 18px;
    padding-bottom: 12px;
    font-family: Poppins, sans-serif;
    font-size: 19px;
    font-weight: 600;
    line-height: 1.3;
    color: #3b4f6b;
}
.mgk-samping-judul::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 44px;
    height: 2px;
    background: #e9a21a;
}
.mgk-samping-judul--putih {
    color: #fff;
}
.mgk-daftar-samping {
    margin: 0;
    padding: 0;
    list-style: none;
}
.mgk-daftar-samping li {
    margin: 0 0 8px;
}
.mgk-daftar-samping a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(28, 38, 56, .08);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    color: #1c2340;
    text-decoration: none;
    transition: background-color .2s, color .2s;
}
.mgk-daftar-samping a::after {
    content: "\2192";
    flex: 0 0 auto;
    color: #e9a21a;
}
.mgk-daftar-samping a:hover,
.mgk-daftar-samping li.aktif a {
    background: #3b4f6b;
    color: #fff;
    text-decoration: none;
}
.mgk-jam,
.mgk-kontak-info {
    margin: 0;
    padding: 0;
    list-style: none;
}
.mgk-jam li,
.mgk-kontak-info li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 1.5;
}
.mgk-jam li {
    padding: 12px 14px;
    border-radius: 10px;
    background: #fff;
    color: #333;
}
.mgk-jam i,
.mgk-kontak-info i {
    display: flex;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #3b4f6b;
    color: #fff;
    font-size: 16px;
}
.mgk-kontak-info i {
    flex-basis: 46px;
    width: 46px;
    height: 46px;
    font-size: 19px;
}
.mgk-jam strong,
.mgk-kontak-info strong {
    display: block;
    color: #1c2340;
}
.mgk-kontak-info a {
    color: #b7790a;
    word-break: break-word;
}
.mgk-kutipan {
    margin: 0;
    font-family: Fraunces, serif;
    font-size: 21px;
    font-style: italic;
    line-height: 1.55;
}
.mgk-ceklis {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 18px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}
.mgk-ceklis li {
    position: relative;
    padding-left: 26px;
    font-weight: 500;
    color: #1c2340;
}
.mgk-ceklis li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    top: 0;
    color: #e9a21a;
    font-weight: 700;
}
.mgk-remah {
    margin: 0 0 6px;
    font-size: 13px;
    color: #7a8290;
}
.mgk-remah a {
    color: #7a8290;
    text-decoration: none;
}
.mgk-remah a:hover {
    color: #b7790a;
}
.mgk-remah span {
    color: #1c2340;
    font-weight: 600;
}
.mgk-judul-tahap .fl-heading-text {
    display: flex;
    gap: 14px;
    align-items: baseline;
}
.mgk-nomor {
    flex: 0 0 auto;
    font-family: Poppins, sans-serif;
    font-size: .62em;
    font-weight: 700;
    color: #e9a21a;
}
[id^="tahap-"] {
    scroll-margin-top: 110px;
}
.mgk-peta {
    overflow: hidden;
    height: 100%;
    min-height: 340px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(28, 38, 56, .10);
}
.mgk-peta iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 340px;
    border: 0;
}
.mgk-galeri .fl-gallery-item img,
.mgk-galeri .fl-photo-img {
    border-radius: 12px;
}
.mgk-galeri .fl-gallery-item {
    overflow: hidden;
    border-radius: 12px;
}
.mgk-galeri .fl-gallery-item img {
    transition: transform .35s ease;
}
.mgk-galeri .fl-gallery-item:hover img {
    transform: scale(1.04);
}
.mgk-baris-melayang {
    position: relative;
    z-index: 2;
}
.mgk-kartu-foto-lebar .mgk-katalog--atas .mgk-katalog__foto {
    aspect-ratio: 4 / 3;
}
@media (min-width: 993px) {
    .mgk-samping-lekat > .fl-col-content {
        position: sticky;
        top: 110px;
    }
}
@media (max-width: 600px) {
    .mgk-ceklis {
        grid-template-columns: 1fr;
    }
    .mgk-kutipan {
        font-size: 18px;
    }
}

/* Kotak putih di dalam modul teks berwarna putih (Jam Operasional): paksa teks gelap */
.fl-builder-content .mgk-jam li,
.fl-builder-content .mgk-jam li span {
    color: #333 !important;
}
.fl-builder-content .mgk-jam li strong {
    color: #1c2340 !important;
}
.fl-builder-content .mgk-jam li i {
    color: #fff !important;
}
.mgk-jam li span,
.mgk-kontak-info li span {
    min-width: 0;
    overflow-wrap: anywhere;
}
.mgk-jam li {
    gap: 10px;
    padding: 10px 12px;
    font-size: 13px;
}
.mgk-jam i {
    flex-basis: 32px;
    width: 32px;
    height: 32px;
    font-size: 14px;
}

/* Isi artikel (layout single Themer) */
.mgk-isi-artikel {
    font-size: 16px;
    line-height: 1.8;
    color: #3a3f4a;
}
.mgk-isi-artikel h2,
.mgk-isi-artikel h3,
.mgk-isi-artikel h4 {
    margin: 1.6em 0 .6em;
    font-family: Poppins, sans-serif;
    font-weight: 600;
    line-height: 1.35;
    color: #1c2340;
}
.mgk-isi-artikel h2 {
    font-size: 24px;
}
.mgk-isi-artikel h3 {
    font-size: 20px;
}
.mgk-isi-artikel p {
    margin: 0 0 1.1em;
}
.mgk-isi-artikel ul,
.mgk-isi-artikel ol {
    margin: 0 0 1.2em;
    padding-left: 1.3em;
}
.mgk-isi-artikel li {
    margin-bottom: .4em;
}
.mgk-isi-artikel a {
    color: #b7790a;
}
.mgk-isi-artikel img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}
.mgk-isi-artikel blockquote {
    margin: 1.4em 0;
    padding: 14px 20px;
    border-left: 4px solid #e9a21a;
    background: #f7f8fa;
}
@media (max-width: 600px) {
    .mgk-isi-artikel {
        font-size: 15px;
    }
    .mgk-isi-artikel h2 {
        font-size: 21px;
    }
}

/* Header Themer (overlay + sticky): latar putih saat digulir & di halaman selain beranda (seperti referensi) */
header.fl-builder-content[data-type="header"] .fl-row-content-wrap {
    transition: background-color .25s ease, box-shadow .25s ease;
}
header.fl-builder-content[data-type="header"].fl-theme-builder-header-scrolled .fl-row-content-wrap,
body:not(.home) header.fl-builder-content[data-type="header"] .fl-row-content-wrap {
    background-color: #fff !important;
}
header.fl-builder-content[data-type="header"].fl-theme-builder-header-scrolled .fl-row-content-wrap {
    box-shadow: 0 4px 18px rgba(28, 38, 56, .10);
}

/* Menu header desktop: panah submenu menempel ke teks menu */
@media (min-width: 993px) {
    header .fl-menu-horizontal.fl-toggle-arrows .fl-has-submenu-container {
        display: flex !important;
        align-items: center;
    }
    header .fl-menu-horizontal.fl-toggle-arrows .fl-has-submenu-container > a {
        padding-right: 2px !important;
    }
    header .fl-menu-horizontal.fl-toggle-arrows .fl-has-submenu-container > .fl-menu-toggle {
        width: 14px !important;
        margin-right: 8px;
    }
}
