/* ===== GALLERY PAGE STYLES ===== */

/* Gallery Hero Section */
.gallery-hero {
  position: relative;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-align: center;
  overflow: hidden;
  background: linear-gradient(135deg, #1a3a0a 0%, #2d5016 100%);
}

.gallery-hero-content {
  max-width: 800px;
  z-index: 5;
  animation: fadeInUp 1.2s ease 0.3s backwards;
  position: relative;
}

.gallery-hero h1 {
  color: var(--white);
  font-size: 3.5rem;
  margin-bottom: 20px;
  font-weight: 800;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  letter-spacing: -1px;
  line-height: 1.1;
}

.gallery-hero p {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.3rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  font-weight: 500;
}

.gallery-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../Images/Image(29).jpeg");
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.gallery-hero-overlay::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 3;
}

/* ===== LOCATIONS SECTION ===== */
.locations-section {
  background-color: var(--white);
  padding: 80px 0;
}

.section-subtitle {
  text-align: center;
  color: var(--light-text);
  font-size: 1.1rem;
  margin-bottom: 60px;
  margin-top: -20px;
}

.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.location-card {
  background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 100%);
  border-radius: 12px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  border: 2px solid transparent;
}

.location-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 35px rgba(45, 80, 22, 0.15);
  border-color: var(--accent-color);
  background: linear-gradient(135deg, var(--white) 0%, #f9fdf7 100%);
}

.location-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2rem;
  color: var(--white);
  box-shadow: 0 6px 20px rgba(45, 80, 22, 0.2);
}

.location-card h3 {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.location-card p {
  color: var(--light-text);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 25px;
}

.location-stats {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding-top: 20px;
  border-top: 2px solid var(--border-color);
}

.location-stats i {
  font-size: 2.5rem;
  color: var(--accent-color);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-item strong {
  color: var(--accent-color);
  font-size: 1.5rem;
  display: block;
  margin-bottom: 5px;
}

.stat-item small {
  color: var(--light-text);
  font-size: 0.85rem;
}

/* Gallery Section */
.gallery-section {
  background-color: var(--light-bg);
  padding: 80px 0;
}

/* Filter Buttons */
.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 25px;
  border: 2px solid var(--primary-color);
  background-color: transparent;
  color: var(--primary-color);
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
  font-size: 0.95rem;
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--primary-color);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(45, 80, 22, 0.3);
  transform: translateY(-2px);
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.gallery-item {
  opacity: 1;
  transition: all 0.4s ease;
  animation: fadeInUp 0.6s ease forwards;
}

.gallery-item.hidden {
  display: none;
  opacity: 0;
}

/* Gallery Image Wrapper */
.gallery-image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  height: 280px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
  cursor: pointer;
}

.gallery-image-wrapper:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.gallery-image-wrapper:hover .gallery-image {
  transform: scale(1.1);
}

/* Gallery Overlay */
.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(45, 80, 22, 0.85) 0%,
    rgba(74, 124, 44, 0.85) 100%
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  opacity: 0;
  transition: var(--transition);
}

.gallery-image-wrapper:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay h3 {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.gallery-overlay p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

/* View Button */
.btn-view {
  padding: 8px 20px;
  background-color: var(--accent-color);
  color: var(--white);
  border: none;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.9rem;
}

.btn-view:hover {
  background-color: var(--white);
  color: var(--primary-color);
  transform: translateY(-2px);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 1000;
  animation: fadeIn 0.3s ease;
  justify-content: center;
  align-items: center;
}

.lightbox.show {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90vh;
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  animation: slideUp 0.4s ease;
}

#lightbox-image {
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
}

.lightbox-info {
  padding: 25px;
  background-color: var(--light-bg);
  text-align: center;
}

.lightbox-info h3 {
  color: var(--primary-color);
  margin-bottom: 10px;
}

.lightbox-info p {
  color: var(--light-text);
}

/* Lightbox Close Button */
.lightbox-close {
  position: absolute;
  top: 15px;
  right: 25px;
  font-size: 2.5rem;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
}

.lightbox-close:hover {
  transform: scale(1.2);
}

/* Lightbox Navigation */
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.8);
  color: var(--primary-color);
  border: none;
  padding: 15px 20px;
  font-size: 1.5rem;
  cursor: pointer;
  border-radius: 5px;
  transition: var(--transition);
  font-weight: bold;
  z-index: 10;
}

.lightbox-nav:hover {
  background-color: var(--white);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-nav.prev {
  left: 20px;
}

.lightbox-nav.next {
  right: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .gallery-hero h1 {
    font-size: 2.5rem;
  }

  .gallery-hero p {
    font-size: 1.1rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
  }

  .gallery-image-wrapper {
    height: 200px;
  }

  .gallery-overlay h3 {
    font-size: 1.2rem;
  }

  .gallery-overlay p {
    font-size: 0.85rem;
  }

  .gallery-filters {
    gap: 10px;
  }

  .filter-btn {
    padding: 8px 18px;
    font-size: 0.85rem;
  }

  .lightbox-nav {
    padding: 10px 15px;
    font-size: 1.2rem;
  }

  .lightbox-close {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .gallery-section {
    padding: 40px 0;
  }

  .gallery-hero h1 {
    font-size: 2rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-image-wrapper {
    height: 250px;
  }

  .gallery-filters {
    flex-direction: column;
    gap: 8px;
  }

  .filter-btn {
    width: 100%;
  }

  .lightbox-content {
    max-width: 95%;
    max-height: 95vh;
  }

  .lightbox-nav.prev,
  .lightbox-nav.next {
    display: none;
  }
}

/* Responsive Locations Section */
@media (max-width: 768px) {
  .locations-section {
    padding: 60px 0;
  }

  .locations-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }

  .location-card {
    padding: 30px 20px;
  }

  .location-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .location-card h3 {
    font-size: 1.3rem;
  }

  .location-card p {
    font-size: 0.9rem;
  }

  .section-subtitle {
    font-size: 1rem;
    margin-bottom: 40px;
  }
}

@media (max-width: 480px) {
  .locations-section {
    padding: 40px 0;
  }

  .locations-grid {
    grid-template-columns: 1fr;
  }

  .location-card {
    padding: 25px 15px;
  }

  .location-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
    font-size: 1.2rem;
  }

  .location-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
  }

  .location-card p {
    font-size: 0.85rem;
    margin-bottom: 15px;
  }

  .location-stats {
    gap: 10px;
    padding-top: 15px;
  }

  .stat-item strong {
    font-size: 1.3rem;
  }

  .stat-item small {
    font-size: 0.75rem;
  }
}
