/* ===== BODY ===== */
body {
  background: #f8f9fa;
}

/* ===== TITLE ===== */
h2 {
  color: #198754;
  text-align: center;
  font-weight: 700;
  position: relative;
}



/* ===== TABS ===== */
.nav-pills {
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: -14px;
}

.nav-pills .nav-link {
  border-radius: 30px;
  padding: 8px 20px;
  border: 1px solid #198754;
  color: #198754;
  margin: 5px;
  transition: 0.3s;
  text-align: center;
}

.nav-pills .nav-link.active {
  background: #198754;
  color: #fff;
}

/* ===== MOBILE TAB FIX ===== */
@media (max-width: 576px) {
  .nav-pills {
    justify-content: center !important;
    margin-top: -14px;
  }

  .nav-pills .nav-item {
    flex: 1 1 45%;
    text-align: center;
  }

  .nav-pills .nav-link {
    width: 100%;
    padding: 8px;
    font-size: 14px;
    margin-left: 1px;
  }

  h2 {
    font-size: 22px;
  }
}

/* ===== TABLET ===== */
@media (min-width: 577px) and (max-width: 991px) {
  h2 {
    font-size: 26px;
  }
}

/* ===== DESKTOP ===== */
@media (min-width: 992px) {
  h2 {
    font-size: 30px;
  }
}

/* ===== GALLERY CARD ===== */
.gallery-card {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  cursor: pointer;
}

/* ===== IMAGE FIX ===== */
.gallery-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 12px;
  transition: 0.4s;
}

/* Tablet */
@media (min-width: 576px) {
  .gallery-img {
    height: 180px;
  }
}

/* Desktop */
@media (min-width: 992px) {
  .gallery-img {
    height: 220px;
  }
}

/* ===== HOVER EFFECT ===== */
.gallery-card:hover .gallery-img {
  transform: scale(1.08);
}

/* ===== OVERLAY ===== */
.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: 0.3s;
}

.overlay span {
  color: #fff;
  background: #198754;
  padding: 6px 15px;
  border-radius: 20px;
  font-weight: 500;
}

.gallery-card:hover .overlay {
  opacity: 1;
}

/* ===== VIDEO ===== */
.video-card {
  border-radius: 12px;
  overflow: hidden;
}

/* ===== MODAL ===== */
.modal-dialog {
  max-width: 900px;
}

.modal-content {
  background: rgb(42, 42, 43);
  border-radius: 12px;
  padding: 10px;
  text-align: center;
  position: relative;
}

/* IMAGE INSIDE MODAL */
#modalImage {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 10px;
}

/* Caption */
#modalCaption {
  color: #cababa;
  margin-top: 10px;
  font-size: 15px;
}

/* Close button */
.btn-close {
  position: absolute;
  top: 10px;
  right: 10px;
  border-radius: 50%;
  padding: 8px;
  background-color: rgba(250, 255, 248, 0.986);
  opacity: 1;
  filter: invert(1);
}

/* ===== MOBILE MODAL FIX ===== */
@media(max-width:768px){
  #modalImage {
    max-height: 60vh;
  }
}