.navbar-nav a {
  padding: 5px;
  border-radius: 5px;
  text-decoration: none;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 600;
}
.navbar-nav a:hover {
  background-color: red;
  color: white !important;
}

.navbar-nav a.active,
.dropdown-menu a.active {
  background-color: red;
  color: white !important;
}

.dropdown-menu {
  position: absolute !important;
  z-index: 999;
  top: 100%;
  left: 0;
}

.nav-link.dropdown-toggle {
  text-align: center;
}

.search {
  gap: 5%;
  justify-content: space-between;
}

mark {
  background-color: yellow;
  padding: 1px;
}

.isikonten {
  margin-left: 3%;
}

.konten-all {
  margin-left: 2%;
}

/* Firefox */
.konten-home {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

/* Chrome, Edge, Safari */
.konten-home::-webkit-scrollbar {
  width: 7px;
}

.konten-home::-webkit-scrollbar-thumb {
  background: red;
  border-radius: 10px;
}

.teks-reds {
  padding-left: 3%;
}

.isikonten-news {
  margin-left: 4%; /* SAMA KAYAK HOME */
}

.konten-news {
  margin-left: 30px; /* JARAK GARIS → KONTEN */
  padding-left: 0;
}

.navbar {
  overflow: visible;
}

body {
  overflow-x: hidden !important;
  background-image: url(./asset/backgroundcheshire.png);
  overflow-y: hidden;
}

html {
  overflow-x: hidden !important;
}

main {
  min-height: calc(100vh - 100px);
}

.garis-merah {
  width: 5px;
  top: 0;
  left: 50px;
  height: 30%;
  background-color: red;
  position: fixed;
  border-radius: 3px;
}

.foto-merah {
  position: fixed;
  left: 40px;
  top: 220px;
}

.bulu-merah {
  width: 5px;
  bottom: 0;
  left: 50px;
  height: 40%;
  background-color: red;
  position: fixed;
  border-radius: 3px;
}

#Creating {
  font-size: 53px;
}

.apply {
  border-radius: 25px;
}

.img-news {
  width: 25vw;
  height: auto;
}

.foto-hari {
  margin-left: 16%;
  width: 30vw;
  z-index: 5;
}

.buletgaris {
  position: absolute;
  top: 65%;
  margin-left: 13%;
  z-index: -3;
  width: 30vw;
}

.buletgarisnews {
  position: absolute;
  margin-left: 10%;
  z-index: -3;
  width: 30vw;
  top: 65%;
}

.buletgarisnews1 {
  position: absolute;
  width: 25vw;
  top: 40%;
  z-index: -5;
  margin-left: 15%;
}

.buletgarisdonate {
  position: absolute;
  width: 25vw;
  top: 50%;
  z-index: -5;
  right: -1%;
}

.buletgarisprogram {
  position: absolute;
  width: 30vw;
  top: 70%;
  right: -1%;
  z-index: -5;
}

.buletgarisinitiate {
  position: absolute;
  width: 30vw;
  top: 75%;
  right: -10%;
  z-index: -5;
}

.bulet {
  position: absolute;
  bottom: 15%;
  margin-left: -1%;
  z-index: -3;
  width: 25vw;
}

.foto-nursad {
  width: 35vw;
  height: auto;
  margin-top: 5%;
}

.foto-news,
.foto-about,
.foto-program {
  width: 30vw;
  height: auto;
}

.titik {
  right: 0;
  width: 125px;
}

.card-story {
  gap: 1%; /* jarak antara gambar & teks */
  height: 100%;
}

.card-story img {
  width: 15vw;
  height: auto;
}

.card-story .bg-danger-subtle {
  border-radius: 15px;
  margin-bottom: 10%;
}

.card-story h5 {
  font-size: larger;
  font-size: bold;
}

.foto-success {
  width: 30vw;
  height: auto;
}

.storydetail {
  text-align: justify;
  font-size: medium;
}

.foto-handicraft {
  width: 75%;
  margin-left: 100px;
  margin-top: 25px;
}

.foto-woodwork {
  width: 75%;
  margin-left: 120px;
  margin-top: 25px;
}

.btn-handicraft,
.btn-woodwork {
  margin-left: 35%;
  width: 15vw;
  font-size: large;
}

.red {
  text-align: justify;
}

.Residens {
  width: 35vw;
  margin-left: 5%;
  margin-top: -5%;
}

.init {
  margin-left: 0.8rem;
}

.gallery-title {
  color: red;
  font-family: "Hanoble";
  margin-left: 26px;
}

/* Wrapper */
.gallery-wrapper {
  width: 100%;
  margin: 10px;
  margin-left: 3.1rem;
}

/* Scroll horizontal */

.gallery-scroll {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 20px;
  padding-top: 10px;
  scroll-behavior: smooth;
  margin-left: 1.7rem;
  -webkit-overflow-scrolling: touch;
  padding-right: 3rem;
  padding-left: 0.7rem;
  max-width: 95vw;
  box-sizing: border-box;
}

/* Scrollbar */
.gallery-scroll::-webkit-scrollbar {
  height: 8px;
}

.gallery-scroll::-webkit-scrollbar-thumb {
  background: red;
  border-radius: 10px;
}

/* Card */
.img-card {
  flex: 0 0 auto;
  width: 350px;
  text-align: center;
}

/* IMAGE */

.img-card img {
  width: 100%;
  height: 250px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* HOVER EFFECT */
.img-card img:hover {
  transform: scale(1.06);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

/* Lightbox overlay */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Aktif */
.lightbox:target {
  display: flex;
}

/* Overlay klik */
.lightbox .overlay {
  position: absolute;
  inset: 0;
  cursor: default;
}

/* CONTENT = FOTO + X */
.lightbox-content {
  position: relative; /* KUNCI */
  max-width: 90%;
  max-height: 90%;
}

/* IMAGE */
.lightbox-content img {
  max-width: 100%;
  max-height: 85vh;
  border-radius: 12px;
  display: block;
}

/* tombol close */
.close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 40px;
  height: 40px;
  cursor: pointer;
}

/* svg ukuran */
.icon-close {
  width: 100%;
  height: 100%;
  display: block;
}

/* warna background bulat */
.icon-close .bg {
  fill: red;
}

/* warna X */
.icon-close .x {
  fill: white;
}

/* Hover biar mantap */
.lightbox-content .close:hover {
  transform: scale(1.15);
}

/* Caption */
.img-card figcaption {
  margin-top: 5px;
  padding-top: 2%;
  font-size: 23px;
  font-family: "Hanoble";
  color: red;
}

.img-link {
  text-decoration: none;
}

.caption {
  margin-top: 6px;
  font-size: 20px;
  font-family: "Hanoble";
  color: red;
  text-align: center !important;
}

.caption p {
  text-align: center !important;  
}

@media only screen and (max-width: 900px) {
  html,
  body,
  main {
    overflow-x: hidden !important;
  }
  .navbar-nav {
    gap: 30px;
  }

  .navbar-nav .dropdown-menu {
    position: relative !important;
    display: block;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease;
  }

  .navbar-nav .dropdown-menu.show {
    max-height: 500px;
    opacity: 1;
  }

  .nav-link.dropdown-toggle {
    display: block;
    width: 100%;
    text-align: center;
  }

  .dropdown-menu li a {
    text-align: center;
    padding: 10px;
  }

  .foto-hari,
  .foto-nursad {
    width: 60vw;
    margin-left: 20%;
    margin-top: 5%;
  }

  .bulu-merah {
    height: 65dvh;
  }

  .garis-merah {
    height: 17dvh;
  }

  .img-news {
    width: 35vw;
    height: auto;
  }

  .foto-news {
    width: 85vw;
    height: auto;
  }

  .foto-about {
    width: 50vw;
    height: auto;
  }

  .foto-program {
    width: 75vw;
    height: auto;
  }
  .offcanvas {
    min-width: 90vw;
  }

  .bulet {
    width: 45vw;
    top: 100%;
    left: 8%;
  }

  .buletgaris {
    width: 55vw;
    top: 130%;
    left: 32%;
  }

  .buletgarisnews {
    width: 50vw;
    top: 115%;
    left: 35%;
  }

  .buletgarisnews1 {
    width: 60vw;
    top: 85%;
    left: 25%;
  }

  .buletgarisprogram {
    width: 60vw;
    left: 40%;
    top: 110%;
  }

  .buletgarisinitiate {
    width: 60vw;
    left: 40%;
    top: 210%;
  }

  .figure {
    flex-wrap: wrap;
  }

  .img-card {
    margin: auto;
  }

  .img-card img {
    width: 40vw;
    height: auto;
  }

  .foto-success {
    margin: auto;
    width: 75vw;
    height: auto;
  }

  .foto-handicraft,
  .foto-woodwork {
    width: 85%;
    position: relative;
    left: -10%;
  }

  .btn-handicraft,
  .btn-woodwork {
    position: relative;
    left: -10%;
    width: 35vw;
    font-size: large;
  }

  .Residens {
    width: 85vw;
    height: auto;
  }

  .buletgarisdonate {
    width: 60vw;
    right: 0;
    top: 50%;
  }

  iframe {
    width: 90vw !important;
    margin-top: 3%;
  }

  .konten-all {
    margin-left: 5%;
  }

  #Creating,
  .tombol-news {
    margin-left: 2%;
  }

  .konten-home {
    margin-left: 2%;
    width: 85vw !important;
  }

  .gallery-title {
    margin-left: 5%;
  }

  .isikonten-news {
    margin-left: 7%;
    padding-right: 2%;
  }
}

@media only screen and (max-width: 600px) {
  html,
  body,
  main {
    overflow-x: hidden !important;
  }

  .navbar-nav .dropdown-menu {
    position: relative !important;
    display: none;
    width: 100%;
    margin-top: 5px;
    box-shadow: none;
  }

  .navbar-nav .dropdown-menu.show {
    display: block;
  }

  .navbar-nav .dropdown {
    position: relative;
  }

  .navbar-nav {
    gap: 25px;
  }

  .search {
    flex-direction: column;
  }

  .searchs {
    padding-right: 5%;
    width: 85vw;
  }

  .news-events,
  .foto-news {
    flex-direction: column;
    padding-right: 5% !important;
  }

  .donate {
    padding-right: 12%;
  }

  .garis-merah {
    margin-left: -5%;
    height: 25%;
  }
  .foto-merah {
    margin-left: -5%;
  }

  .bulu-merah {
    margin-left: -5%;
    height: 45%;
  }

  #Creating {
    font-size: 25px;
    margin-left: -1%;
  }

  .card-story {
    flex-direction: column;
    margin-left: auto;
    margin-right: auto;
  }

  .card-story img {
    width: 70%;
    height: auto;
  }

  .news img {
    min-width: 50vw;
    max-height: 25vh;
    align-items: center;
  }

  .bg-danger-subtle h5 {
    text-align: center;
  }

  .img-news,
  .foto-news {
    width: 100%;
    height: auto;
    margin-right: auto;
    margin-left: auto;
  }

  .foto-success {
    margin-top: 5%;
    width: 85vw;
    height: auto;
    margin-left: -8%;
  }

  .foto-about {
    width: 70vw;
    height: auto;
  }

  .foto-hari {
    width: 75vw;
    height: auto;
    margin-top: 10%;
    margin-left: 15%;
  }

  .foto-nursad {
    width: 75vw;
    height: auto;
    margin-top: 5%;
    margin-left: 5%;
  }

  .bulet {
    width: 55vw;
    top: 115%;
    left: 10%;
  }

  .buletgaris {
    width: 57vw;
    top: 133%;
    left: 30%;
  }

  .buletgarisnews {
    width: 55vw;
    top: 240%;
    left: 30%;
  }

  .buletgarisnews1 {
    position: relative;
    width: 60vw;
    top: -50%;
    left: 25%;
  }

  .buletgarisprogram {
    width: 60vw;
    top: 200%;
    left: 40%;
  }

  .buletgarisinitiate {
    width: 50vw;
    left: 20%;
    top: 175%;
  }

  .buletgarisdonate {
    width: 60vw;
    top: 85%;
    right: 0;
  }

  .btn-handicraft,
  .btn-woodwork {
    position: relative;
    left: -15%;
  }

  .foto-handicraft,
  .foto-woodwork {
    width: 75vw;
    position: relative;
    left: -35%;
  }

  .storydetail p {
    max-width: 95vw;
  }

  .footer p {
    font-size: 13px;
  }

  .figure {
    flex-wrap: wrap;
    gap: 10px;
  }

  .img-card img {
    width: 85%;
  }

  figcaption {
    margin-right: 10%;
  }

  .btn-core {
    margin-bottom: 3%;
  }

  .btn-initiate {
    display: block;
    margin-bottom: 3%;
    width: 80%;
    text-align: left;
  }

  .btn-initiate2 {
    display: block;
    margin-bottom: 3%;
    width: 85%;
    text-align: left;
  }

  .Residens {
    width: 85vw;
    height: auto;
    margin: auto;
  }

  .teks-redfeathershop p {
    padding-right: 17%;
  }
  .teks-red {
    margin-right: 17%;
  }

  iframe {
    width: 95% !important;
    height: 400px !important;
    margin-top: 5%;
  }

  .bg-danger-subtle {
    position: relative;
    top: -15%;
  }

  .konten-all {
    margin-left: 1%;
  }

  .konten-red {
    margin-left: 1%;
  }

  .konten-program {
    margin-left: -5%;
  }

  .konten-success {
    padding-right: 5%;
    margin-left: -10%;
  }

  .konten-success2 {
    margin-left: -10%;
  }

  .isikonten-news {
    margin-left: 8%;
  }

  .init {
    margin-left: 1rem;
  }

  .gallery-title {
    margin-left: 2%;
  }

  .gallery-scroll {
    margin-left: -3%;
  }

  .tombol-news {
    margin-left: -3px;
  }

  .konten-home {
    margin-left: -1px;
  }

.caption p {
  margin-left: 10%;
  text-align: center !important;
  font-size: 18px;
}

.konten-core {
    margin-left: 7.5% !important;
}
  
}