






/* === Warna Tema Utama === */
:root {
  --primary-color: #0058b0; /* Biru Tua */
  --secondary-color: #f2c200; /* Kuning Emas */
  --bs-secondary: #f2c200;
  --light-bg: #f8f9fa;
  --dark-text: #212529;
  --dark-bg: #212529;
  --white: #ffffff;
  --gray: #6c757d;
}

/* === Global Reset & Font === */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--dark-text);
  background-color: var(--light-bg);
  line-height: 1.7;
}

a {
  text-decoration: none;
  color: var(--primary-color);
}

a:hover {
  color: var(--secondary-color);
}

img {
  max-width: 100%;
  height: auto;
}

/* === Hero Section === */
.hero-section {
  background-image: url('/storage/hero-bg.png');
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: 6rem 1rem;
  text-align: center;
  position: relative;
}

.hero-section h1 {
  font-size: 3rem;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.4);
  animation: fadeInDown 1.2s ease-in-out;
}

.hero-section h2 {
  animation: fadeInDown 1s ease;
}

.hero-section p {
  animation: fadeInUp 1.2s ease;
}

@media (max-width: 768px) {
  .hero-section {
    padding: 3rem 1rem;
  }

  .hero-section h1 {
    font-size: 2rem;
  }

}

/* === Animasi Ringan === */

@keyframes fadeInDown {
  0% { opacity: 0; transform: translateY(-30px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}


@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === Judul Section === */
.section-title {
  margin-bottom: 2rem;
  text-align: center;
  font-weight: 700;
  font-size: 2rem;
  color: var(--primary-color);
}

.section-title::after {
  content: '';
  width: 80px;
  height: 4px;
  background: var(--secondary-color);
  display: block;
  margin: 0.5rem auto 0;
  border-radius: 10px;
}
.section-title-kiri {
  font-weight: 700;
  font-size: 2rem;
  color: var(--primary-color);
  display: inline-block; /* agar ::after hanya sepanjang teks */
  position: relative;
  padding-bottom: 0.3rem;
}

.section-title-kiri::after {
  content: '';
  display: block;
  height: 3px;
  background-color: var(--secondary-color);
  width: 100%; /* mengikuti lebar teks */
  margin-top: 4px;
  border-radius: 2px;
}

.item-img-wrapper {
  width: 100%;
  height: 300px; /* kamu bisa sesuaikan tinggi tetap */
  overflow: hidden;
  border-bottom: 1px solid #eee;
}

.item-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.item-img-wrapper img:hover {
  transform: scale(1.05);
}

.berita-img-wrapper {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.berita-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.berita-img-wrapper img:hover {
  transform: scale(1.05);
}

/* Tambahan spacing dan warna */
.berita-card .card-title {
  font-size: 1.1rem;
}
/* Sidebar Berita */
.sidebar-berita img {
  width: 60px;
  height: 60px;
  object-fit: cover;
}




/* === Tombol Global === */
.btn-primary-custom {
  background-color: var(--primary-color);
  border: none;
  color: var(--white);
  padding: 0.6rem 1.4rem;
  font-weight: 500;
  border-radius: 0.4rem;
  transition: all 0.3s ease-in-out;
}

.btn-primary-custom:hover {
  background-color: var(--secondary-color);
  color: var(--dark-text);
}
.btn-outline-primary-custom {
  border-color: var(--primary-color);
  color: var(--primary-color);
}
.btn-outline-primary-custom:hover {
  background-color: var(--primary-color);
  color: white;
}

.border-kuning {
    border: 1px solid var(--bs-secondary);
}

.btn-outline-kuning {
    color: black;
    border: 1.5px solid var(--bs-secondary);
    background-color: transparent;
    transition: 0.3s ease;
}

.btn-outline-kuning:hover {
    background-color: var(--bs-secondary);
    color: white;
}


.hover-lift {
  transition: all 0.3s ease;
}
.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.transition-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.1);
}

/* Breadcumb */
.breadcrumb {
  background: transparent;
  margin-bottom: 0;
}
.breadcrumb a {
  color: #ffc107;
}
.breadcrumb-item + .breadcrumb-item::before {
  content: "›";
  color: white;
}

/* === Card Global Style === */
.custom-card {
  border: none;
  border-radius: 1rem;
  box-shadow: 0 0 15px rgba(0,0,0,0.05);
  overflow: hidden;
  transition: transform 0.3s;
}

.custom-card:hover {
  transform: scale(1.03);
}

/* === Section Padding === */
.section {
  padding: 4rem 0;
}

/* === Footer Styling === */
footer {
  background-color: var(--primary-color);
  color: var(--white);
}

footer h5 {
  font-weight: bold;
}

footer small {
  font-size: 0.875rem;
}

/* === Navbar Fixed Top === */
.navbar-sticky {
  position: sticky;
  top: 0;
  z-index: 999;
  background-color: var(--white);
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* === Responsive Grid untuk Section Jelajahi Desa === */
.grid-2-3 {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
}

.grid-3-2 {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

@media (max-width: 768px) {
  .grid-2-3, .grid-3-2 {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 1.5rem;
  }
}
