/* =========================================================
   G.N-MITRA GALLERY – PREMIUM INDUSTRY STYLE (FINAL)
========================================================= */

/* ======================
   GALLERY BACKGROUND
====================== */
.gn-gallery {
  position: relative;
  overflow: hidden;
  background: var(--color-soft-blue);
  padding: 80px 0;
}

/* Soft blur decoration */
.gn-gallery::before,
.gn-gallery::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  z-index: 0;
}

.gn-gallery::before {
  /* background: #a78bfa; */
  top: -140px;
  left: -140px;
}

.gn-gallery::after {
  /* background: #c4b5fd; */
  bottom: -180px;
  right: -140px;
}

/* Content above background */
.gn-gallery .container {
  position: relative;
  z-index: 2;
}

/* ======================
   HEADINGS
====================== */
.gn-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: #111;
  margin: 0;
}

.gn-subtitle {
  max-width: 700px;
  margin: 14px auto 0;
  color: #6b7280;
  font-size: 1.05rem;
}

/* ======================
   FILTER BUTTONS
====================== */
.gn-filter-wrap {
  margin-top: 22px;
}

.gn-filter-btn {
  border: 2px solid #6d28d9;
  background: rgba(255, 255, 255, 0.75);
  color: #111;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 999px;
  transition: all 0.25s ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 20px rgba(124, 58, 237, 0.08);
}

.gn-filter-btn:hover {
  transform: translateY(-2px);
}

.gn-filter-btn.active {
  background: linear-gradient(135deg, #6d28d9, #8b5cf6);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 12px 30px rgba(109, 40, 217, 0.35);
}

/* ======================
   SLIDER CORE
====================== */
.gn-slider-wrapper {
  overflow: hidden;
}

.gn-slider-track {
  display: flex;
  transition: transform 0.6s ease;
}

.gn-slide {
  min-width: 100%;
  padding: 10px 0;
}

/* 4 x 2 grid */
.gn-slide .row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* ======================
   GALLERY CARD
====================== */
.gn-gallery .gn-card {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 18px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 18px 40px rgba(17, 24, 39, 0.1);
  transition: all 0.3s ease;
  height: 250px;
}

.gn-gallery .gn-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 60px rgba(17, 24, 39, 0.16);
}

/* Image */
.gn-img {
  height: 180px;
  border-radius: 14px;
  overflow: hidden;
}

.gn-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gn-card:hover .gn-img img {
  transform: scale(1.06);
}

/* Caption */
.gn-caption {
  padding: 10px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  text-align: center;
  font-weight: 600;
  color: #374151;
  font-size: 0.95rem;
}

/* ======================
   PAGINATION
====================== */
.gn-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}

/* Arrows */
.gn-arrow {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid rgba(123, 47, 247, 0.2);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.gn-arrow:hover:not(:disabled) {
  background: #7b2ff7;
  box-shadow: 0 5px 15px rgba(123, 47, 247, 0.3);
}

.gn-arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* Arrow icon */
.gn-arrow-icon {
  width: 28px;
  height: 28px;
  stroke: #7b2ff7;
  stroke-width: 3;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.3s ease;
}

.gn-arrow:hover:not(:disabled) .gn-arrow-icon {
  stroke: #fff;
}

.gn-arrow:disabled .gn-arrow-icon {
  stroke: rgba(123, 47, 247, 0.35);
}

/* Dots */
.gn-dots {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gn-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(109, 40, 217, 0.25);
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease;
}


.gn-dot:hover {
  transform: scale(1.15);
}

.gn-dot.active {
  background: #6d28d9;
  transform: scale(1.4);
}

/* ======================
   RESPONSIVE
====================== */
@media (max-width: 992px) {
  .gn-slide .row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .gn-title {
    font-size: 1.5rem;
  }

  .gn-img {
    height: 160px;
  }

  .gn-filter-btn {
    padding: 9px 16px;
    font-size: 14px;
  }
}
.gn-pagination .gn-dot {
  position: static !important;
}