@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

html {
  scroll-behavior: smooth;
  scroll-padding-top: 130px; 
}
.navbar-nav .nav-link.active {
    color: #dc3545 !important;
    font-weight: 700;
    display: inline-block;
    width: fit-content;
    border-bottom: 2px solid #dc3545;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: #f8f8f8;
}
.navbar-nav .nav-link:hover {
  color: #dc3545 !important;
}
.navbar-brand img {

    width: 160px;
    height: auto;

    object-fit: contain;

    image-rendering: auto;

}

.hero-bergambar {
    background-image: url('img/bannersejarah.jpg'); 
    background-size: cover; 
    background-position: center 15%; 
    background-repeat: no-repeat;
    border-radius: 15px;
}

.overlay-gelap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 0; 
}
.gambar1 {
  width: 100%;
  height: auto;
  
  border-radius: 15px;
}

p.mb-3 {
    text-align: justify;
    line-height: 1.8;
}
.btn-ke-atas {
  position:fixed; 
  bottom: 30px;
  right: 30px;
  background-color: #fff; 
  color: #000;
  width: 3vw;
  height: 3vw;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 2;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-ke-atas:hover {
  background-color: #b02a37;
  color: #ffffff;
  transform: translateY(-4px);
}


@media screen and (max-width: 992px) {
  .hero-bergambar {
    background-position: center center;
    border-radius: 10px;
  }
  .btn-ke-atas {
    width: 44px;
    height: 44px;
    font-size: 20px;
    bottom: 20px;
    right: 20px;
  }
  .gambar1 {
    border-radius: 10px;
  }
}

@media screen and (max-width: 768px) {
  html {
    scroll-padding-top: 70px;
  }
  .hero-bergambar {
    border-radius: 8px;
    background-position: center top;
  }
  p.mb-3 {
    font-size: 0.95rem;
    line-height: 1.75;
  }
  .btn-ke-atas {
    width: 40px;
    height: 40px;
    font-size: 18px;
    bottom: 18px;
    right: 18px;
  }
  footer .container,
    footer .row,
    footer .col-lg-5,
    footer .col-lg-3 {
        text-align: left !important;
    }

    footer ul {
        padding-left: 0;
    }
    .navbar-brand img {

        width: 140px;
        height: auto;

    }
}
 

@media screen and (max-width: 480px) {
  html {
    scroll-padding-top: 60px;
  }
  .hero-bergambar {
    border-radius: 6px;
    min-height: 200px;
  }
  p.mb-3 {
    font-size: 0.88rem;
    line-height: 1.7;
    text-align: left;
  }
  .gambar1 {
    border-radius: 8px;
  }
  .btn-ke-atas {
    width: 36px;
    height: 36px;
    font-size: 16px;
    bottom: 15px;
    right: 15px;
  }
}
 