:root {
    --primary: #C1121F;
    --secondary: #212121;
    --accent: #2F4366;
    --light: #FEF0D5;
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
    border: none;
    text-decoration: none;
}

body{
    font-family: 'Poppins', 'sans-serif';
    background-color: #f0f0f0;
}

a{
    outline: none;
    text-decoration: none;
}

.btn-custom{
    margin-top: 3px;
    display: inline-block;
    padding: 6px 20px;
    font-size: 15px;
    color: #fff;
    background-color: var(--primary);
    border-radius: 80px;
    cursor: pointer;
    font-style: normal;

    &:hover{
        background: var(--light);
        border:1px solid var(--primary);
        color: var(--primary);
    }
}

.btn-lihat{
    background-color: var(--accent);
    border: none;
    color: #fff;
}

.badge1{
    padding: 3px 12px;
    font-size: 12px;
    text-align: center;
    color: #fff;
    background-color: var(--primary);
    border-radius: 80px;
    /*cursor: pointer;*/
    font-style: normal;
    font-weight: 200;
}

.badge2{
    padding: 3px 12px;
    font-size: 12px;
    text-align: center;
    color: #fff;
    background-color: var(--accent);
    border-radius: 80px;
    /*cursor: pointer;*/
    font-style: normal;
    font-weight: 200;
}


/* Berita */
.img-berita{
  cursor: pointer;
}
/* .cover-img-container {
  height: 380px;
  overflow: hidden;
} */

.aspect-ratio-box {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.text-justify {
    text-align: justify;
    text-justify: inter-word;
}


/* Galeri */
.card-img-top {
  height: 200px;
  object-fit: cover;
}

/* Kontak */
.custom-table th, .custom-table td {
    vertical-align: middle;
    font-size: 15px;
}

.custom-table thead th {
    background-color: var(--primary);
    color: #fff;
}


#map {
    width: 100%;
    height: 100%;
    min-height: 412px;
    border-radius: 0.5rem;
    position: relative; 
    z-index: 1;

}
.map-wrapper {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
@media (max-width: 768px) {
    .map-wrapper {
      padding-top: 2rem;
    }
}


/* Struktur pemerintahan */
.section-title {
  color: var(--primary);
  font-weight: bold;
  text-align: start;
  margin: 0;
}

.struktur-img {
  width: 50%;
  height: auto;
  object-fit: cover;
  display: block;
  margin: auto;
}

.section-subtitle {
  color: var(--primary);
  font-weight: bold;
  text-align: start;
  margin: 0;
}


.row.g-2 .row-aparat {
  row-gap: 1rem;
  column-gap: 1rem;
}

.aparat-card {
  height: 350px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  transition: transform 0.2s ease;
  margin-top: 1rem;
}

.aparat-card:hover {
  transform: translateY(-5px);
}

.card-aparat-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
  padding: 15px;
}

.aparat-photo {
  width: 200px;
  height: 250px;
  object-fit: cover;
  border: 2px solid #ddd;
  margin-bottom: 10px;
}


.aparat-nama {
  text-transform: capitalize;
  font-weight: bold;
  font-size: 1rem;
  margin-bottom: 4px;
}

.aparat-jabatan {
  text-transform: capitalize;
  font-size: 0.9rem;
}


@media (max-width: 992px) and (min-width: 577px) {
  .col-sm-3 {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .aparat-card {
    max-width: 300px;
    margin: 10px auto;
  }

}

@media (max-width: 576px) {
  .col-sm-3 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .aparat-card {
    height: auto;
    max-width: 250px; 
    margin: 0 auto;
    margin-top: 1rem; 
    
  }

  .card-aparat-body {
    height: auto;
  }
}

/* Peraturan desa */
.peraturan-table .btn-unduh{
    background-color: var(--primary);
    border: none;
    color: #fff;
}



/* Potensi Desa */
.img-potensi{
  cursor: pointer;
}






/* footer */
footer .container{
    font-size: smaller;
    padding-top: 5px;
}



/* Floating Menu */
#floatingMenu{
    position: fixed;
    bottom: 0;
    right: 0;
    margin: 1rem;
    z-index: 1050;

    display: none;
    opacity: 0;
    transition: opacity .5s ease;
}

/* Tombol submenu */
#floatingMenu .floating-item{
    display: flex;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all .3s ease;
    margin-bottom: .5rem;
    white-space: nowrap;
}

/* Saat menu dibuka */
#floatingMenu.active .floating-item{
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Animasi ikon headset */
#btnFloating i{
    transition: .3s;
}

#floatingMenu.active #btnFloating i{
    transform: rotate(135deg);
}
