/* GLOBAL RESET */
* {
    font-family: 'Poppins', sans-serif;
    
}

html {
    scroll-behavior: smooth;
}

body {
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    margin: 0;
    
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5 {
    font-weight: 600;
    margin: 0;
}
p, a {
    font-size: 1rem;
}

/* NAVBAR */
.navbar-brand {
    font-weight: 500;
    letter-spacing: 0.5px;
}
/* .nav-link {
    color: rgb(0, 0, 0);
} */
/* Saat navbar masih transparent */
.navbar.navbar-light-scroll .nav-link.active {
    color: #0077ff !important;
}

/* Saat navbar sudah dark */
.navbar.navbar-dark-scroll .nav-link.active {
    color: #ff9a27 !important;
}
.navbar.navbar-light-scroll .nav-link, .navbar.navbar-light-scroll .navbar-brand{
    color: #000000 !important;
}
.navbar.navbar-dark-scroll .nav-link, .navbar.navbar-dark-scroll .navbar-brand{
    color: #ffffff !important;
}

.logo-pemdes {
    margin-right: 20px;
    padding: 5px 0;
}

.navbar-dark-scroll {
    background-color: rgba(0, 0, 0, 0.5) !important;
    transition: background-color 0.3s ease-in-out;
    color: white;
}
.navbar-light-scroll {
    background-color: rgba(255, 255, 255, 1) !important;
    transition: background-color 0.3s ease-in-out;
    color: black;
}


/* HERO SECTION */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.hero-bg {
    height: 100vh;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.63);
}

.hero-content {
    position: absolute;
    z-index: 10;
    top: 65%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 700px;
    padding: 1rem;
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: bold;
}

.hero-content p {
    font-size: 1.2rem;
    margin-top: 1rem;
}




/* SECTION STYLING */
section:not(#page1):not(#page2) {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}


.section-offset {
    display: flex;
    flex-direction: column;
    padding-top: 100px;
}

/* SECTION FULL TOGGLE */
/* Container section sebagai flow normal (bukan fixed/sticky) */
.section-collapsible {
  background-color: rgb(255, 255, 255);
  position: relative;
  padding: 20px 0;
  margin-bottom: 100px;
}

/* Inner wrapper agar rapi */
.section-inner {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.section-title{
    margin-bottom: 10px;
}
.section-title p{
    display: inline-block;
    padding: 5px 15px;
    border-radius: 15px;
    background-color: color(srgb 0.258824 0.545098 0.892157 / 0.1);
    font-size: 14px;
    color: #0d6efd;
}

.section-title-dark{
    margin-bottom: 10px;
}
.section-title-dark p{
    display: inline-block;
    padding: 5px 15px;
    border-radius: 15px;
    background-color: color(srgb 0.258824 0.545098 0.892157 / 0.1);
    font-size: 14px;
    color: #c2c2c2;
}
/* CONTENT: dibatasi 50vh pada awalnya */
.section-content {
  min-height: 70vh;
  max-height: 100vh;
  overflow: auto;
  transition: max-height 450ms ease;

  /* Hilangkan scrollbar */
  scrollbar-width: none; /* Firefox */
}
.section-content::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Edge */
}

/* Saat expanded -> fit-content (hilangkan max-height) */
.section-collapsible.expanded .section-content {
    overflow: visible;
}

/* Dark section override */
/*  */


/* Footer berada setelah konten dalam normal flow */
.section-footer {
  margin-top: 20px;
  text-align: center;
}

/* Tombol */
.toggle-btn {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.08);
  background: white;
  cursor: pointer;
  font-weight: 600;
  transition: transform .15s ease, box-shadow .15s ease;
}
.toggle-btn i { font-size: 1.2rem; transition: transform .3s ease; }

/* Rotasi ikon saat expanded */
/* .section-collapsible.expanded .toggle-btn i {
  transform: rotate(180deg);
} */

/* Optional: visual cue bahwa konten terpotong (gradient) */
.section-content::after {
  content: "";
  display: block;
  height: 60px;
  margin-top: -60px;
  pointer-events: none;
  opacity: 1;
  transition: opacity .3s ease;
}

/* Hilangkan gradient ketika expanded */
.section-collapsible.expanded .section-content::after {
  opacity: 0;
}


/* Tombol icon */
.scroll-btn {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
}




/* CAROUSEL */
.carousel-indicators {
    z-index: 20 !important;
    position: absolute;
    bottom: 20px; /* jika ingin lebih naik turunkan angka ini */
}

.carousel-indicators [data-bs-target] {
    background-color: #ffffff;
    opacity: 0.6;
}

.carousel-indicators .active {
    opacity: 1;
    background-color: #0d6efd;
}

/* CARD */
.card {
    border: none;
    border-radius: 12px;
    background: #ffffff;
    box-shadow:
        0 2px 6px rgba(0, 0, 0, 0.06),
        0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 6px 16px rgba(0, 0, 0, 0.12),
        0 12px 32px rgba(0, 0, 0, 0.08);
}

.card-body {
    display: flex;
    flex-direction: column;
}

.custom-card {
  position: relative;
  width: 100%;
  height: 350px;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 0;
}

/* Overlay gelap */
.card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

/* Konten di bawah */
.card-content {
  position: relative;
  padding: 20px;
  color: white;
  z-index: 2;
  width: 100%;
}

.card-text, .card-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 576px) {
  .card-text,.card-title {
    -webkit-line-clamp: 2;
  }
}

@media (min-width: 577px) {
  .card-text {
    -webkit-line-clamp: 2;
  }
  .card-title {
    -webkit-line-clamp: 3;
  }
}


/* Efek hover */
.custom-card:hover .card-overlay {
  background: rgba(0, 0, 0, 0.65);
  transition: background 0.3s ease;
}


/* FOOTER */
footer {
    padding: 40px 0;
}

.footer-main p {
    color: #292929;
}

.footer-social a {
    color: #292929;
    text-decoration: none;
}
.footer-social a:hover {
    color: #000000;
}

.footer-social li {
    margin-bottom: 5px;
}
.footer-social i {
    font-size: 1.2rem;
    margin-right: 8px;
}

/* RESPONSIVE */
@media (max-width: 767px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
}
