/* =========================================
   PAGE STRUCTURE
========================================= */
main {
  width: 95%;
  max-width: 1200px;
  margin: 40px auto;
  background: #fff;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

/* PAGE TITLE */
.page-title {
  color: #013c74;
  text-align: center;
  font-weight: 700;
  margin-bottom: 30px;
  font-size: 1.8em;
  border-bottom: 3px solid #d0e3f5;
  padding-bottom: 8px;
}

/* =========================================
   FILTER BAR
========================================= */
.filter-bar {
  text-align: center;
  margin-bottom: 30px;
}

.filter-bar button {
  background: #f3f9ff;
  border: 1px solid #d0e3f5;
  color: #013c74;
  padding: 8px 16px;
  margin: 5px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-bar button:hover {
  background: #013c74;
  color: #ffd700;
}

.filter-bar button.active {
  background: #013c74;
  color: #ffd700;
  border-color: #013c74;
}

/* =========================================
   IMAGE GALLERY GRID
========================================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(1, 60, 116, 0.08);
  border: 1px solid #d0e3f5;
  cursor: pointer;
  background: #f3f9ff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(1, 60, 116, 0.15);
}

/* IMAGE */
.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* CAPTION */
.gallery-caption {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: rgba(1, 60, 116, 0.85);
  color: #ffd700;
  text-align: center;
  padding: 8px 0;
  font-weight: 600;
  font-size: 0.95em;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

/* =========================================
   LIGHTBOX MODAL
========================================= */
.lightbox {
  display: none;
  position: fixed;
  z-index: 3000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
  cursor: zoom-out;
}

.lightbox img {
  max-width: 90%;
  max-height: 85%;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(255,255,255,0.3);
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* =========================================
   VIDEO GALLERY
========================================= */
.video-gallery {
  margin-top: 50px;
}

.video-gallery h3 {
  color: #013c74;
  text-align: center;
  font-weight: 600;
  margin-bottom: 25px;
  border-bottom: 2px solid #d0e3f5;
  padding-bottom: 6px;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.video-card {
  background: #f9fbff;
  border: 1px solid #d0e3f5;
  border-radius: 10px;
  padding: 15px;
  text-align: center;
  box-shadow: 0 3px 8px rgba(1, 60, 116, 0.08);
  transition: all 0.3s ease;
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(1, 60, 116, 0.15);
}

.video-card iframe {
  width: 100%;
  height: 180px;
  border: none;
  border-radius: 8px;
  margin-bottom: 10px;
}

.video-card p {
  color: #013c74;
  font-weight: 600;
  font-size: 0.95em;
}

/* =========================================
   RESPONSIVE DESIGN
========================================= */
@media (max-width: 992px) {
  main {
    padding: 25px;
  }

  .gallery-item img {
    height: 180px;
  }

  .video-card iframe {
    height: 160px;
  }
}

@media (max-width: 600px) {
  main {
    padding: 20px;
  }

  .gallery-caption {
    font-size: 0.85em;
  }

  .video-card iframe {
    height: 150px;
  }
}
