@import url("https://fonts.googleapis.com/css2?family=Noto+Serif+Georgian:wght@100..900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100..900&display=swap");

/* Scrollbar halus & kecil */
/* .scrollbar-hide::-webkit-scrollbar {
  display: none;
}
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
} */

/* Custom SweetAlert2 */
.swal2-confirm-custom {
    background-color: #1E3A8A !important; /* biru */
    color: #fff !important;              /* teks putih */
    border-radius: 6px;
    padding: 8px 20px;
    font-weight: 500;
}
.swal2-confirm-custom:hover {
    background-color: #163172 !important; /* biru lebih gelap saat hover */
}

.swal-content-list {
    text-align: left;
    max-height: 250px;       /* 🔹 lebih pendek biar enak */
    overflow-y: auto;
    font-size: 14px;
    padding-right: 6px;      /* biar ada jarak dari scrollbar */
}

/* 🔹 Scrollbar custom (untuk browser modern) */
.swal-content-list::-webkit-scrollbar {
    width: 6px;              /* kecil */
}
.swal-content-list::-webkit-scrollbar-track {
    background: #f1f1f1;     
    border-radius: 10px;
}
.swal-content-list::-webkit-scrollbar-thumb {
    background: #1E3A8A;     /* biru */
    border-radius: 10px;
}
.swal-content-list::-webkit-scrollbar-thumb:hover {
    background: #163172;     /* biru lebih gelap saat hover */
}

/* Tombol aktif */
.filter-btn.active {
    background-color: #1E3A8A;
    color: #FACC15;
}

.filter-btn-utama.active {
    background-color: #1E3A8A; /* dark blue (Tailwind blue-900) */
    color: #FACC15;           /* yellow (Tailwind yellow-400) */
}
    
.prose img {
    margin-top: 1rem;
    margin-bottom: 1rem;
  }

/* Pastikan slide full height */
.swiper-slide {
    display: flex;
    height: auto;
}

/* Card artikel */
.artikel-card {
    height: 350px;        /* Tinggi fix semua card */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 8px;
    overflow: hidden;
}

/* Thumbnail proporsional */
.artikel-thumbnail {
    height: 160px;
    background-color: #f3f4f6;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.artikel-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* pastikan gambar selalu memenuhi kontainer tanpa distorsi */
    display: block;
}

.artikel-thumbnail span {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af; /* abu-abu */
    font-style: italic;
    font-size: 0.875rem;
}

/* Konten fleksibel agar tombol di bawah */
.artikel-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.artikel-content p {
    flex-grow: 1;
}

.artikel-content a {
    display: block;
    padding: 8px 12px;
    margin-top: 8px;
    background-color: #f3f4f6;
    color: #1d4ed8;
    font-weight: 500;
    text-align: center;
    border-radius: 6px;
    transition: background-color 0.2s ease-in-out;
    position: relative;
    z-index: 10;
}

.artikel-content a:hover {
    background-color: #e0e7ff;
    color: #1e40af;
}

/* Reset bawaan Swiper untuk tombol */
.swiper-button-next,
.swiper-button-prev {
    all: unset; /* Reset semua bawaan */
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    cursor: pointer;
}

/* Reset bawaan Swiper */
.swiper-button-next,
.swiper-button-prev {
    all: unset;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    cursor: pointer;
}

/* Style kustom tombol bundar */
.swiper-button-next,
.swiper-button-prev {
    width: 44px;
    height: 44px;
    background-color: #1e3a8a; /* biru tua */
    border-radius: 50%; /* bikin bulat */
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    transition: transform 0.25s ease, background-color 0.25s ease;

    /* Tambahan untuk pastikan bentuk tetap bulat */
    aspect-ratio: 1 / 1;       /* paksa lebar = tinggi */
    padding: 0;                /* hindari distorsi */
    box-sizing: border-box;    /* pastikan border tidak mempengaruhi bentuk */
}

/* Hilangkan pseudo bawaan swiper */
.swiper-button-next::after,
.swiper-button-prev::after {
    display: none;
    content: none;
}

/* Panah custom pakai SVG */
.swiper-button-next svg,
.swiper-button-prev svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: #fbbf24; /* kuning keemasan */
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Rotasi panah kiri */
.swiper-button-prev svg {
    transform: rotate(180deg);
}

/* Hover efek */
.swiper-button-next:hover,
.swiper-button-prev:hover {
    background-color: #2563eb; /* biru lebih terang */
    transform: scale(1.1);
}

/* Posisi kiri/kanan */
.swiper-button-prev {
    left: 10px;
}
.swiper-button-next {
    right: 10px;
}

.note-editable ul {
    list-style-type: disc;
    padding-left: 1.5rem; /* untuk memberi jarak dari kiri */
}

.note-editable ol {
    list-style-type: decimal;
    padding-left: 1.5rem;
}

.scroll-smooth::-webkit-scrollbar {
  height: 6px;
}
.scroll-smooth::-webkit-scrollbar-thumb {
  background-color: rgba(100, 100, 100, 0.4);
  border-radius: 4px;
}
.scroll-smooth::-webkit-scrollbar-track {
  background: transparent;
}

@keyframes fadeZoom {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-fadeZoom {
    animation: fadeZoom 0.25s ease-out;
}

.ck.ck-editor {
  border: 1px solid #d1d5db !important;     /* border-gray-300 */
  border-radius: 0.375rem !important;       /* rounded-md */
  padding: 0.5rem !important;               /* opsional: biar isinya agak lega */
  background-color: white;                  /* pastikan background terang */
  margin-top: 0.5rem !important; /* opsional: jarak atas */
}

ul {
    list-style-type: disc /* bullet */
    margin-left: 20px !important;
    padding-left: 20px !important;
}

ol {
    list-style-type: decimal !important; /* angka 1,2,3 */
    margin-left: 20px !important;
    padding-left: 20px !important;
}

.word-style-list {
    list-style-position: outside;  /* Bullet di luar */
    padding-left: 1.5rem;          /* Spasi kiri */
    text-align: left;              /* Teks rata kiri */
}

.word-style-list li {
    /* text-indent: -1.5rem;          Gantung paragraf ke kiri */
    padding-left: 0,5rem;          /* Offset teks ke kanan */
    margin-bottom: 5px;
}

.word-style-list2 {
    list-style-position: outside;
    padding-left: 2rem; Space for bullet
    text-align: left;
}

.word-style-list2 li {
    text-indent: -1rem;      /* Gantung: baris pertama mundur */
    padding-left: 1rem;      /* Baris kedua dan seterusnya masuk */
    margin-bottom: 8px;
}

body,
h1,
h2,
h3,
h4,
h5,
p,
a,
span,
li {
	font-family: "Noto Sans JP", sans-serif;
}

.logo-kmki {
	font-family: "Noto Serif Georgian", serif;
	font-style: italic;	
}

.no-scrollbar::-webkit-scrollbar {
	display: none;
}

.no-scrollbar {
	-ms-overflow-style: none;
	scrollbar-width: none;
}

.grabbing {
	cursor: grabbing !important;
}

html {
	scroll-behavior: smooth;
}

.text-primary {
	color: #162b57;
}

.text-secondary {
	color: #8097be;
}

.text-gray {
	color: #717e9b;
}

.bg-primary {
	background-color: #162b57;
}

.bg-secondary {
	background-color: #8097be;
}

.bg-gray {
	background-color: #717e9b;
}
