.entry-title
 {
    font-size: clamp(var(--text-2xl), 3.5vw, var(--text-4xl));
    margin-bottom: var(--sp-3);
}

.entry-meta
 {
    display: flex;
    gap: var(--sp-5);
    color: var(--color-text-muted);
    font-size: var(--text-sm);
    margin-bottom: 5px;
}

img, picture, video, /*canvas*/ {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

/* logo */
.site-title{
	font-size:var(--text-2xl);
	font-weight:var(--fw-bold);
	margin:0;
	line-height:1.2}

.site-description{
	font-size:var(--text-sm);
	color:var(--color-text-muted);
	margin:0
}	
/* Pastikan item menu memiliki layout flex */
li.menu-item-has-children {
    display: flex !important;
    flex-wrap: wrap !important; /* Agar sub-menu bisa turun ke bawah */
    align-items: center !important;
    position: relative !important;
    width: 100% !important;
}

/* Link mengambil sisa ruang yang ada */
li.menu-item-has-children > a {
    flex: 1 !important;
    display: block !important;
    padding-right: 10px !important;
}

/* Tombol toggle dipaksa ke kanan */
li.menu-item-has-children > .submenu-toggle {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important; /* Area sentuh yang lebih besar untuk Tab/Mobile */
    height: 44px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    flex-shrink: 0 !important;
}

/* Pastikan sub-menu mengambil lebar penuh di bawah baris pertama */
li.menu-item-has-children > .sub-menu {
    flex-basis: 100% !important;
    width: 100% !important;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    max-width: 860px;
    padding: var(--sp-24) var(--container-pad);
    width: 100%;
}

/* 1. Sidebar Widget Area - Pengaturan Layout Baris (Container Utama) */
.row {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem; /* Jarak antara konten utama dan sidebar */
    align-items: flex-start;
}

/* 2. Konten Utama */
main#primary {
    flex: 1;
    min-width: 350px; /* Mencegah konten terlalu sempit */
    width: 100%;
}

/* 3. Sidebar (Desktop & Tablet) */
aside#secondary
{
    margin: 22px 0 22px 0;
    width: 350px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.5rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* Mempercantik Widget di dalam Sidebar */
aside#secondary .widget {
    margin-bottom: 1.5rem;
	border: 0px;
}

aside#secondary .widget-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2D8659; /* Warna hijau tema Anda */
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #2D8659;
    display: inline-block;
}

/* Input Pencarian/Form agar selaras */
aside#secondary input[type="search"], 
aside#secondary input[type="text"] {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    outline-color: #2D8659;
}

/* 4. Responsive: Mobile (Layar di bawah 768px) */
@media (max-width: 767px) {
    .row {
        flex-direction: column;
    }

    main#primary, 
    aside#secondary {
        width: 100% !important; /* Full width di mobile */
    }

    aside#secondary {
        order: 2; /* Memastikan sidebar pindah ke bawah konten utama */
        margin-top: 2rem;
        box-shadow: none;
        border-left: none;
        border-right: none;
        border-radius: 0;
        background: transparent;
        padding: 1rem 0;
    }
}

/* Container Utama Berita Desa 3 List ompom */
.desa-berita-list {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 1.5rem !important;
    padding: 1rem 0 !important;
}

/* Kotak Item Berita (Card) */
.desa-berita-list-item {
    display: flex !important;
    flex-direction: column !important;
    background: #ffffff !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
    border: 1px solid #e5e7eb !important;
    height: 100% !important;
    padding: 0 !important;
}

.desa-berita-list-item:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1) !important;
}

/* Container Gambar (Thumbnail) */
.desa-berita-list-thumb {
    width: 100% !important;
    aspect-ratio: 16/9 !important;
    overflow: hidden !important;
    display: block !important;
}

.desa-berita-list-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.5s ease !important;
}

.desa-berita-list-item:hover .desa-berita-list-thumb img {
    transform: scale(1.1) !important;
}

/* Bagian Konten/Teks */
.desa-berita-list-body {
    padding: 1.25rem !important;
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
}

/* Judul Berita */
.desa-berita-list-title {
    margin: 0 0 0.75rem 0 !important;
    font-size: 1.1rem !important;
    line-height: 1.4 !important;
    font-weight: 600 !important;
    color: var(--color-text, #1F2937) !important;
    /* Limit ke 2 baris agar rapi */
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.desa-berita-list-title a {
    text-decoration: none !important;
    color: inherit !important;
    transition: color 0.2s !important;
}

.desa-berita-list-title a:hover {
    color: var(--color-primary, #2D8659) !important;
}

/* Tanggal */
.desa-berita-list-date {
    margin-top: auto !important;
    font-size: 0.85rem !important;
    color: #6b7280 !important;
    display: flex !important;
    align-items: center !important;
}

.desa-berita-list-date::before {
    content: "📅" !important;
    margin-right: 0.5rem !important;
}

/* Penyesuaian Mobile */
@media (max-width: 480px) {
    .desa-berita-list {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
}

/* Kartu UMKM */
/* Container kartu Produk UMKM ompom */
/* Container Utama */
.umkm-grid-4 {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
  gap: 1.5rem !important;
  margin-top: 2rem !important;
}

.umkm-card {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  background: #ffffff !important;
  border-radius: 16px !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
  overflow: hidden !important;
  transition: all 0.3s ease !important;
}

.umkm-card:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1) !important;
}

/* Gambar Produk */
.umkm-card img {
  width: 100% !important;
  height: 200px !important;
  object-fit: cover !important;
}

/* Isi Kartu */
.umkm-card-body {
  display: flex !important;
  flex-direction: column !important;
  flex-grow: 1 !important;
  padding: 1.5rem !important;
}

/* Judul Produk */
.umkm-card-title {
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  margin-bottom: 0.75rem !important;
  color: #1f2937 !important;
}

/* Harga & Pendorong Tombol */
.umkm-price {
  margin-top: 0 !important;
  margin-bottom: auto !important; /* Dorong tombol ke bawah */
  color: #2D8659 !important;
  font-weight: 700 !important;
  font-size: 1.2rem !important;
}

/* Tombol WhatsApp UMKM */
.umkm-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background-color: #2D8659 !important;
  color: #ffffff !important;
  padding: 0.8rem 1.5rem !important;
  border-radius: 10px !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  font-size: 1.0rem !important;
  margin-top: 1.5rem !important;
  transition: background 0.2s !important;
  border: none !important;
}

.umkm-btn:hover {
  background-color: #236a46 !important;
  color: #ffffff !important;
}

/* Responsif Mobile */
/* Untuk iPad Pro & Tablet Landscape (1024px ke bawah) */
@media (max-width: 1024px) {
  .umkm-grid-4 {
    /* 2 kolom agar kartu tidak terlalu lebar/gepeng */
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.25rem !important;
  }  
}

/* Untuk Tablet Portrait (768px ke bawah) */
@media (max-width: 768px) {
  .umkm-grid-4 {
    /* Baru turun ke 2 kolom di sini */
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* Untuk Smartphone (480px ke bawah) */
@media (max-width: 480px) {
  .umkm-grid-4 {
    grid-template-columns: 1fr !important;
  }
}

/* Harga sebagai pendorong ke bawah */
.umkm_grid .umkm_card-body p {
  margin-bottom: auto; /* Kunci agar tombol turun ke bawah */
  color: #2D8659;
  font-weight: 600;
  font-size: 1.1rem;
}

/* Styling tombol WhatsApp */
.umkm_grid .umkm_card-btn {
  margin-top: 1.25rem;
  background-color: #2D8659;
  color: #ffffff !important;
  border: none;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  text-align: center;
  font-weight: 500;
  justify-content: center;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.umkm_grid .umkm_card-btn:hover {
  filter: brightness(0.9);
}

/* Container Utama IDM ompom */
.desa-idm-wrap {
  max-width: 800px !important; /* Lebar lebih proporsional */
  margin: 3.5rem auto !important; /* Tengah halaman & jarak vertikal */
  padding: 3rem !important;
  background: #ffffff !important;
  border-radius: 28px !important;
  border: 1px solid rgba(45, 134, 89, 0.12) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.04) !important;
  text-align: center !important;
}
/* ⚠️ Additional Experimental ompom */
.desa-idm-field label {
    display: block;
    font-size: 0.93rem;
    font-weight: 600;
    margin-bottom: .3rem;
}
.desa-idm-output {
    display: inline-block;
    width: 50px;
    text-align: right;
    font-family: monospace;
    font-size: 1.5rem;
}
.desa-idm-result {
    margin-top: 1rem;
    padding: 1rem;
    background: #f0fdf4;
    border-radius: 8px;
    font-size: 1.3rem;
    display: none;
}

/* Judul IDM */
.desa-idm-wrap h3 {
  color: #1f2937 !important;
  font-size: 1.5rem !important;
  font-weight: 800 !important;
  margin-bottom: 0.75rem !important;
  letter-spacing: -0.025em !important;
}

/* Deskripsi */
.desa-idm-desc {
  color: #6b7280 !important;
  font-size: 1.1rem !important;
  line-height: 1.6 !important;
  margin-bottom: 2.5rem !important;
  max-width: 600px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Layout Form Input */
.desa-idm-form {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 1rem !important;
  justify-content: center !important;
  background: #f8fafc !important;
  padding: 1.75rem !important;
  border-radius: 20px !important;
  border: 1px solid #f1f5f9 !important;
}

/* Styling Input & Select */
.desa-idm-form input, 
.desa-idm-form select {
  padding: 0.85rem 1.25rem !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 12px !important;
  flex: 1 !important;
  min-width: 200px !important;
  font-size: 1rem !important;
  transition: all 0.2s ease !important;
}

.desa-idm-form input:focus {
  border-color: #2D8659 !important;
  box-shadow: 0 0 0 4px rgba(45, 134, 89, 0.1) !important;
  outline: none !important;
}

/* Tombol Cari */
.desa-idm-form button {
  background: #2D8659 !important;
  color: white !important;
  padding: 0.85rem 2.5rem !important;
  border-radius: 12px !important;
  border: none !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.desa-idm-form button:hover {
  background: #236a46 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(45, 134, 89, 0.2) !important;
}

/* Area Hasil */
.desa-idm-result {
  margin-top: 2.5rem !important;
  padding-top: 2rem !important;
  border-top: 1px dashed #e2e8f0 !important;
}

/* Responsive Mobile & Tablet */
@media (max-width: 768px) {
  .desa-idm-wrap {
    padding: 2rem 1.5rem !important;
    margin: 2rem 1rem !important;
    border-radius: 20px !important;
  }
  
  .desa-idm-form {
    padding: 1.25rem !important;
  }

  .desa-idm-form input, 
  .desa-idm-form select,
  .desa-idm-form button {
    width: 100% !important;
    flex: none !important;
  }
}

/* Container Grid Wisata Ompom */
.wisata-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 2.5rem !important;
  margin: 3rem 0 !important;
}

/* Kartu Wisata */
.wisata-card {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    background: #ffffff !important;
    border-radius: 24px !important;
    overflow: hidden !important;
    border: none !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    position: relative !important;
}

.wisata-card:hover {
  transform: translateY(-12px) !important;
  box-shadow: 0 25px 50px rgba(45, 134, 89, 0.15) !important;
}

/* Container Gambar & Efek Zoom */
.wisata-card img {
  width: 100% !important;
  height: 250px !important;
  object-fit: cover !important;
  transition: transform 0.6s ease !important;
}

.wisata-card:hover img {
  transform: scale(1.1) rotate(1deg) !important;
}

/* Badge 'Destinasi' */
.wisata-badge {
  position: absolute !important;
  top: 1.25rem !important;
  left: 1.25rem !important;
  background: rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(4px) !important;
  color: #2D8659 !important;
  padding: 0.4rem 1rem !important;
  border-radius: 50px !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  z-index: 2 !important;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1) !important;
}

/* Konten Kartu */
.wisata-body {
  display: flex !important;
  flex-direction: column !important;
  flex-grow: 1 !important;
  padding: 2rem !important;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbf9 100%) !important;
}

.wisata-body p {
    color: #6b7280 !important;
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    margin-bottom: auto !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

/* Judul Wisata */
.wisata-title {
    font-size: 1.35rem !important;
    font-weight: 700 !important;
    color: #111827 !important;
    margin-bottom: 0.75rem !important;
    line-height: 1.3 !important;
    min-height: 2.6em !important;
}

/* Deskripsi & Pendorong Tombol */
.wisata-body {
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
    padding: 2rem !important;
    background: linear-gradient(180deg, #ffffff 0%, #f9fbf9 100%) !important;
}

.wisata-img-container {
    position: relative !important;
    overflow: hidden !important;
    height: 250px !important;
}

/* Tombol Eksplorasi */
.wisata-btn {
    margin-top: 1.75rem !important;
    background: linear-gradient(135deg, #16442d 0%, #367153 100%) !important;
    color: #ffffff !important;
    padding: 1rem 1.5rem !important;
    border-radius: 14px !important;
    text-align: center !important;
    font-weight: 700 !important;
	font-size: 1.1rem !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    box-shadow: 0 10px 20px rgba(45, 134, 89, 0.2) !important;
}

.wisata-btn::after {
  content: ' →' !important;
}

.wisata-btn:hover {
  background: linear-gradient(135deg, #236a46 0%, #153f29 100%) !important;
  transform: translateY(-2px) !important;
  color: #ffffff !important;
}

/* Responsive */
@media (max-width: 1024px) {
  .wisata-grid { grid-template-columns: repeat(1, 1fr) !important; }
}

@media (max-width: 640px) {
  .wisata-grid { grid-template-columns: 1fr !important; }
}

/* Comments Container Styles Ompom */
#comments {
    max-width: 850px;
    margin: 40px auto;
    padding: 35px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
    font-family: 'Poppins', sans-serif;
    color: #1f2937;
    border: 1px solid #f3f4f6;
}

/* Header */
#comments .comment-reply-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: #111827;
    border-bottom: 2px solid #3b82f6; /* Accent color */
    display: inline-block;
    padding-bottom: 8px;
}

#comments .comment-notes {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 30px;
}

/* Form Layout - Grid */
#comments .comment-form {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(2, 1fr);
}

/* Field Spans */
#comments .comment-form-comment, 
#comments .comment-form-cookies-consent, 
#comments .form-submit,
#comments .comment-notes {
    grid-column: span 2;
}

/* Inputs & Labels */
#comments label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #374151;
}

#comments input[type="text"],
#comments input[type="email"],
#comments input[type="url"],
#comments textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.25s ease;
    background: #fcfcfd;
    box-sizing: border-box;
}

#comments input:focus,
#comments textarea:focus {
    outline: none;
    border-color: #3b82f6;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

#comments textarea {
    min-height: 160px;
    resize: vertical;
}

/* Checkbox Styling */
#comments .comment-form-cookies-consent {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.85rem;
    color: #4b5563;
    cursor: pointer;
}

#comments .comment-form-cookies-consent input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
}

/* Submit Button */
#comments .submit {
    background: #3b82f6;
    color: white;
    padding: 14px 36px;
    border-radius: 10px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#comments .submit:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

#comments .submit:active {
    transform: translateY(0);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    #comments {
        padding: 25px;
        margin: 20px 15px;
    }
}

@media (max-width: 640px) {
    #comments .comment-form {
        grid-template-columns: 1fr;
    }
    
    #comments .comment-form-author,
    #comments .comment-form-email,
    #comments .comment-form-url {
        grid-column: span 1;
    }
    
    #comments .submit {
        width: 100%;
    }
}

/* PPID Page ompom */
.ppid-accordion { border: 1px solid #ddd; border-radius: 5px; overflow: hidden; font-family: sans-serif; }
.accordion-item { border-bottom: 1px solid #ddd; }
.accordion-item:last-child { border-bottom: none; }
summary { padding: 15px; font-weight: bold; cursor: pointer; background: #f9f9f9; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '▶'; position: absolute; right: 15px; transition: transform 0.3s; font-size: 0.8em; }
details[open] summary::after { transform: rotate(90deg); }
.content { padding: 15px; background: #fff; border-top: 1px solid #eee; }

/* Lembaga Desa Page ompom */
.lembaga-desa-accordion { border: 1px solid #ddd; border-radius: 5px; overflow: hidden; font-family: sans-serif; margin-top: 20px; }
.accordion-item { border-bottom: 1px solid #ddd; }
.accordion-item:last-child { border-bottom: none; }
summary { padding: 15px; font-weight: bold; cursor: pointer; background: #f9f9f9; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '▶'; position: absolute; right: 15px; transition: transform 0.3s; font-size: 0.8em; }
details[open] summary::after { transform: rotate(90deg); }
.content { padding: 15px; background: #fff; border-top: 1px solid #eee; line-height: 1.6; }
.content ul { margin-left: 20px; }
.content a { color: #0073aa; text-decoration: none; }
.content a:hover { text-decoration: underline; }

/* Container & Global Data Lembaga Desa Page ompom */
.desa-container { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; max-width: 100%; color: #333; }
.desc { font-size: 0.95rem; margin-bottom: 8px; color: #555; }
.law { font-size: 0.85rem; margin-bottom: 15px; }
.law a { color: #0073aa; text-decoration: none; }

/* Level 1 Accordion */
.item-l1 { border: 1px solid #ddd; border-radius: 6px; margin-bottom: 10px; overflow: hidden; background: #fff; }
.s-l1 { padding: 15px; font-weight: bold; background: #f8f9fa; cursor: pointer; list-style: none; position: relative; transition: 0.3s; }
.s-l1::-webkit-details-marker { display: none; }
.s-l1::after { content: '▶'; position: absolute; right: 20px; font-size: 0.7em; transition: 0.3s; color: #888; }
details[open] .s-l1::after { transform: rotate(90deg); }
details[open] .s-l1 { background: #e9ecef; border-bottom: 1px solid #ddd; }
.content-l1 { padding: 15px; }

/* Level 2 (Nested) */
.sub-accordion { margin-top: 10px; }
.item-l2 { border-left: 4px solid #0073aa; margin-bottom: 8px; background: #fafafa; }
.s-l2 { padding: 10px 15px; font-weight: 600; cursor: pointer; list-style: none; font-size: 0.9rem; }
.s-l2::-webkit-details-marker { display: none; }
.content-l2 { padding: 10px 15px; background: #fff; }

/* Table Style (Responsive & Scrolling) */
.table-container { 
width: 100%; 
overflow-x: auto; 
overflow-y: auto; 
max-height: 400px; 
border: 1px solid #eee;
border-radius: 4px;
margin-top: 10px;
}
table { width: 100%; border-collapse: collapse; min-width: 600px; } /* min-width paksa scroll di mobile */
th, td { 
text-align: left; 
padding: 12px; 
border-bottom: 1px solid #eee; 
font-size: 0.88rem; 
white-space: nowrap; /* No Wrap sesuai permintaan */
}
th { background: #0073aa; color: #fff; position: sticky; top: 0; z-index: 2; }
tr:hover { background: #f1f1f1; }

/* Responsive Adjustments */
@media (max-width: 600px) {
.s-l1 { font-size: 0.95rem; padding: 12px; }
.content-l1 { padding: 10px; }
th, td { padding: 8px; font-size: 0.8rem; }
}

/* Search Form Ompom */
.modern-search-container {
    --brand-primary: #27734d;
    --brand-light: #f0fdf4;
    --brand-dark: #1e5a3c;
    --text-dark: #1f2937;
    --text-muted: #6b7280;
    --white: #ffffff;
    --radius-full: 50px;
    --shadow-elegant: 0 10px 25px -5px rgba(39, 115, 77, 0.1), 0 8px 10px -6px rgba(39, 115, 77, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    width: 100%;
    max-width: 600px;
    margin: 1.5rem auto;
}

.modern-search-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.search-input-group {
    display: flex;
    align-items: center;
    background: var(--white);
    padding: 6px 6px 6px 18px;
    border-radius: var(--radius-full);
    border: 2px solid #e5e7eb;
    box-shadow: var(--shadow-elegant);
    transition: var(--transition);
}

.search-input-group:focus-within {
    border-color: var(--brand-primary);
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(39, 115, 77, 0.15);
}

.search-icon-wrapper {
    color: var(--brand-primary);
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.search-input-group:focus-within .search-icon-wrapper {
    transform: scale(1.15) rotate(10deg);
}

.modern-search-input {
    flex: 1;
    border: none !important;
    outline: none !important;
    padding: 10px 15px !important;
    font-size: 16px !important;
    color: var(--text-dark);
    background: transparent;
}

.modern-search-button {
    background: var(--brand-primary);
    color: var(--white);
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.modern-search-button:hover {
    background: var(--brand-dark);
    box-shadow: 0 4px 12px rgba(39, 115, 77, 0.3);
}

.modern-search-button svg {
    transition: var(--transition);
}

.modern-search-button:hover svg {
    transform: translateX(3px);
}

.search-info-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-left: 20px;
    font-size: 13px;
    align-items: center;
}

.info-label { color: var(--text-muted); }

.search-info-tags a {
    color: var(--brand-primary);
    text-decoration: none;
    background: var(--brand-light);
    padding: 2px 12px;
    border-radius: 12px;
    transition: var(--transition);
}

.search-info-tags a:hover {
    background: var(--brand-primary);
    color: var(--white);
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .search-input-group {
        border-radius: 24px;
        padding: 4px 4px 4px 14px;
    }
    .modern-search-button span { display: none; }
    .modern-search-button { padding: 12px; }
}

/* Back to Top ompom */

#back-to-top {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    /* Make sure it has a start point for the transition */
    opacity: 0;
    visibility: hidden;
}

/* Add a class when it should be visible */
#back-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* ⚠️ Video Sections Ompom */
/* Layout Container */
.stats-idm-video-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 24px;
    margin-top: 40px;
    align-items: stretch;
    width: 100%;
}

/* Common Card Styling */
.desa-idm-wrapper-card, .desa-video-player-card {
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid rgba(39, 115, 77, 0.1);
    box-shadow: 0 15px 35px -12px rgba(39, 115, 77, 0.15);
    overflow: hidden;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.desa-idm-wrapper-card {
    padding: 40px 25px 25px;
    position: relative;
}

/* Badge Styling */
.card-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #27734d;
    color: #fff;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
}

/* Video Player Styling */
.desa-video-player-card {
    position: relative;
    background: #000;
    min-height: 350px;
}

.video-responsive-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

.video-responsive-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Video Overlay UI */
.video-overlay-ui {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(39, 115, 77, 0.2) 0%, rgba(0, 0, 0, 0.7) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 3;
    pointer-events: none;
    transition: opacity 0.5s ease;
    color: #fff;
}

.stats-video-column:hover .video-overlay-ui {
    opacity: 0;
}

/* Pulsing Play Button */
.play-button-pulse {
    width: 70px;
    height: 70px;
    background: #27734d;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    animation: play-pulse-green 2s infinite;
}

.play-button-pulse svg { width: 30px; fill: #fff; margin-left: 4px; }

@keyframes play-pulse-green {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(39, 115, 77, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 15px rgba(39, 115, 77, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(39, 115, 77, 0); }
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .stats-idm-video-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .desa-video-player-card { min-height: auto; }
}

@media (max-width: 480px) {
    .desa-idm-wrapper-card { padding: 40px 15px 15px; }
    .video-overlay-ui p { font-size: 14px; }
}

/* Video Sections COVER entire card height Ompom */
@media (min-width: 1024px) {
    /* Ensure the container items have equal height */
    .stats-idm-video-container {
        align-items: stretch;
    }

    /* Force the video card to fill the column height */
    .desa-video-player-card {
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    /* Remove the 16:9 padding restriction and force full height */
    .video-responsive-wrapper {
        padding-bottom: 0 !important;
        height: 100% !important;
        flex: 1;
    }

    /* Make the iframe cover the entire area */
    .video-responsive-wrapper iframe {
        height: 100% !important;
        object-fit: cover; /* For modern browsers if using video tags, for iframe it ensures fill */
    }
    
    /* Ensure the overlay also covers the new height */
    .video-overlay-ui {
        height: 100%;
    }
}

/* ── Smart Meta Field Display (SMFD) Ompom ───────────────────── */
.desa-smfd {
  margin: 2rem 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
}

.desa-smfd__title {
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--color-primary, #2D8659);
  background: var(--color-primary-xl, #E8F5EE);
  margin: 0;
  padding: .75rem 1.25rem;
  border-bottom: 1px solid #d1fae5;
}

.desa-smfd__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: 0;
  margin: 0;
}

.desa-smfd__item {
  display: flex;
  flex-direction: column;
  padding: .875rem 1.25rem;
  border-bottom: 1px solid #f3f4f6;
  border-right: 1px solid #f3f4f6;
  transition: background .15s;
}
.desa-smfd__item:hover { background: #fafafa; }

.desa-smfd__label {
  font-size: .9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--color-gray-500, #9ca3af);
  margin-bottom: .2rem;
}

.desa-smfd__value {
  font-size: .9rem;
  color: var(--color-gray-800, #1f2937);
  word-break: break-word;
  margin: 0;
}
.desa-smfd__value a {
  color: var(--color-primary, #2D8659);
  text-decoration: none;
  font-weight: 500;
}
.desa-smfd__value a:hover {
  text-decoration: underline;
}

/* Responsive: stack to 1 column on mobile */
@media (max-width: 600px) {
  .desa-smfd__list { grid-template-columns: 1fr; }
  .desa-smfd__item { border-right: none; }
}

/* Desa Statistik Pendidikan, Pekerjaan, Agama */
/* Base Style (Mobile First) */
.dsp-grid-2 {
  display: grid !important;
  gap: 1.25rem;
  grid-template-columns: 1fr; /* 1 Kolom di Mobile */
  width: 100%;
}

/* Tablet (Portrait/Landscape) */
@media (min-width: 768px) {
  .dsp-grid-2 {
    grid-template-columns: repeat(2, 1fr); /* 2 Kolom di Tablet */
  }
}

@media (min-width: 1024px) {
  .dsp-grid-2 {
    grid-template-columns: repeat(2, 1fr); /* 2 Kolom di Tablet */
  }
}

/* Desktop */
@media (min-width: 1360px) {
  .dsp-grid-2 {
    grid-template-columns: repeat(4, 1fr); /* 3 Kolom di Desktop */
	/* grid-template-columns: repeat(3, 1fr); 3 Kolom di Desktop */
  }
}

/* Menyamakan warna teks header kalender di semua lokasi */
.fc .fc-col-header-cell a {
    color: #ffffff !important;
    text-decoration: none;
}

/* Opsional: Efek hover agar tetap putih atau berubah sedikit */
.fc .fc-col-header-cell a:hover {
    color: #eeeeee !important;
}

/* Container Utama Kalender */
.desa-kalender-wrap {
    width: 100% !important;
    height: auto !important;
    overflow-x: auto !important; /* Mengaktifkan geser ke samping pada mobile */
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch; /* Scroll halus di iOS */
    margin-bottom: 1.5rem;
    border-radius: 8px;
    background: #fff;
}

/* Memastikan Kalender tetap memiliki lebar minimal agar grid tidak berantakan */
.desa-kalender-wrap > div[id^="desa-kalender-"] {
    min-width: 600px; /* Lebar minimum agar grid kalender tetap terbaca (no-wrap) */
    width: 100%;
    height: auto !important;
}

/* Responsif untuk Tablet & Mobile */
@media (max-width: 768px) {
    /* Indikator scroll untuk user */
    .desa-kalender-wrap {
        border: 1px solid #eee;
        box-shadow: inset -10px 0 10px -10px rgba(0,0,0,0.1);
    }
    
    /* Menyesuaikan font header kalender agar lebih compact di layar kecil */
    .fc .fc-toolbar-title {
        font-size: 1.2rem !important;
    }
    
    .fc .fc-button {
        padding: 0.4em 0.65em !important;
        font-size: 0.85rem !important;
    }
}

/* Menghilangkan scrollbar pada browser tertentu agar lebih bersih (opsional) */
.desa-kalender-wrap::-webkit-scrollbar {
    height: 4px;
}
.desa-kalender-wrap::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

/* statistik Table Head by ompom */
.dssb-table thead th {
    color: #ffffff !important;
}

/* Statistik Ringkasan ompom */
@media only screen and (min-width: 1024px) and (max-width: 1366px) {
  .desa-stat-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem; /* Menjaga jarak antar kartu tetap konsisten */
  }
}

/* ── Agenda List ──────────────────────────────── */
.desa-agenda-list { display: flex; flex-direction: column; gap: 1rem; }

.desa-agenda-item {
	display: flex;
	gap: 1rem;
	align-items: flex-start;
	padding: 0.75rem;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
}

.desa-agenda-date-badge {
	min-width: 52px;
	text-align: center;
	padding: 0.5rem 0.4rem;
	border-radius: 8px;
	color: #fff;
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.desa-agenda-day   { font-size: 1.5rem; font-weight: 700; line-height: 1; }
.desa-agenda-month { font-size: 0.7rem; font-weight: 500; text-transform: uppercase; opacity: 0.9; }

.desa-agenda-title { font-size: 0.95rem; font-weight: 600; margin: 0 0 0.3rem; }
.desa-agenda-title a { color: #1f2937; text-decoration: none; }
.desa-agenda-title a:hover { color: var( --color-primary, #2D8659 ); }

.desa-agenda-lokasi,
.desa-agenda-waktu {
	display: flex;
	align-items: center;
	gap: 0.3rem;
	font-size: 0.8rem;
	color: #6b7280;
	margin: 0.2rem 0 0;
}

/* Pada parent */
.dssb-body {
  width: 100%;
  display: block; /* Menghindari pembatasan dari grid */
}

/* Pada elemen yang dipilih */
.dssb-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

/* Pada kontainer scroll di dalamnya */
.dssb-table-scroll {
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch; /* Untuk scroll yang lebih halus di mobile */
}

/* -------- ChartJS ompom -------- */
/* 1. Aturan Global (Mobile First) */
.dssb-chart-wrap, .dssb-chart-container {
    display: block !important;
    position: relative;
    width: 100%;
    /* Gunakan tinggi tetap hanya untuk mobile agar stabil */
    height: 300px; 
}

canvas {
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    touch-action: pan-y;
}

/* 2. Untuk Tablet (Layar > 768px) */
@media (min-width: 768px) {
    .dssb-chart-wrap {
        height: 450px; /* Lebih tinggi untuk tablet agar tidak gepeng */
        aspect-ratio: auto; /* Memastikan tidak bentrok */
    }
}

/* 3. Untuk Desktop (Layar > 1024px) */
@media (min-width: 1024px) {
    .dssb-chart-wrap {
        /* PENTING: Ubah height menjadi auto agar aspect-ratio bisa bekerja */
        height: auto !important; 
        aspect-ratio: 16 / 9; 
        min-height: 400px;
    }
    
    .dssb-chart-wrap canvas {
        width: 100% !important;
        height: 100% !important;
    }
}

/* in Content Images ompom */
.entry-content img, 
.entry-content figure {
    max-width: 100%;
    height: auto;
}