/* margin: 0; */
  /* padding: 0; */
  /* background: linear-gradient(to bottom, #ffffff 0%, #f4f7fb 55%, #e5ebf2 100%); */
  /* min-height: 100vh; */
  /* color: #1f2d3d; */
  .page-banner {
  background: linear-gradient(135deg, #0f5ea8 0%, #156fbe 100%);
  padding: 70px 20px 75px;
  text-align: center;
}

.page-banner-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.page-banner h2 {
  margin: 0;
  position: relative;
  display: inline-block;
  font-size: 3.2rem;
  font-weight: 700;
  color: #ffffff;
  font-family: "Times New Roman", serif;
  letter-spacing: 0.5px;
}

.page-banner h2::after {
  content: "";
  display: block;
  width: 84px;
  height: 5px;
  margin: 16px auto 0;
  border-radius: 10px;
  background: #e7b446;
}

.page-banner p {
  margin: 22px auto 0;
  max-width: 760px;
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.92);
}


.gallery-section {
  max-width: 1360px;
  margin: 0 auto;
  padding: 40px 20px 70px;
}


.branch-nav {
  margin-bottom: 34px;
}

.gallery-buttons-wrapper {
  width: 100%;
  overflow-x: auto;
  padding-bottom: 6px;
}

.gallery-buttons-wrapper::-webkit-scrollbar {
  height: 6px;
}

.gallery-buttons-wrapper::-webkit-scrollbar-thumb {
  background: #a8b7c7;
  border-radius: 20px;
}

.branch-buttons {
  display: flex;
  gap: 12px;
  width: max-content;
  min-width: 100%;
  padding: 8px 4px;
}

.gallery-btn {
  border: 1px solid #cdd8e3;
  background: #ffffff;
  color: #0f5ea8;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(16, 77, 136, 0.08);
}

.gallery-btn:hover {
  background: #edf5fc;
  color: #0b4f8c;
  border-color: #90b9dd;
  transform: translateY(-2px);
}

.gallery-btn.active {
  background: linear-gradient(135deg, #0f5ea8 0%, #156fbe 100%);
  color: #ffffff;
  border-color: #0f5ea8;
  box-shadow: 0 10px 24px rgba(15, 94, 168, 0.24);
}


.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #d9e3ec;
  box-shadow: 0 10px 24px rgba(31, 45, 61, 0.08);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.55s ease forwards;
}

.gallery-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 34px rgba(31, 45, 61, 0.14);
}

.gallery-item img {
  width: 100%;
  height: 235px;
  object-fit: cover;
  display: block;
  background: #eef2f6;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 22px 18px 16px;
  background: linear-gradient(to top, rgba(10, 28, 47, 0.92), rgba(10, 28, 47, 0.08));
  color: #ffffff;
}

.gallery-overlay h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
}

.gallery-overlay p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
}


.no-images {
  grid-column: 1 / -1;
  text-align: center;
  background: #ffffff;
  border: 1px dashed #b9cad9;
  border-radius: 18px;
  padding: 60px 20px;
  color: #516272;
  box-shadow: 0 8px 22px rgba(31, 45, 61, 0.06);
}

.no-images h3 {
  margin: 0 0 10px;
  color: #0f5ea8;
  font-size: 1.3rem;
}

.no-images p {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.7;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


@media (max-width: 1200px) {
  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 992px) {
  .page-banner h2 {
    font-size: 2.7rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .gallery-item img {
    height: 220px;
  }
}

@media (max-width: 576px) {
  .page-banner {
    padding: 55px 16px 60px;
  }

  .page-banner h2 {
    font-size: 2.1rem;
  }

  .page-banner p {
    font-size: 0.95rem;
  }

  .gallery-section {
    padding: 28px 14px 55px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .gallery-item img {
    height: 210px;
  }

  .gallery-btn {
    padding: 10px 18px;
    font-size: 0.88rem;
  }
}