/* Gallery Specific Styles */
.gallery-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.gallery-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 169, 156, 0.08);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: 1px solid rgba(0, 169, 156, 0.1);
  margin-bottom: 30px;
  height: 100%;
}

.gallery-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(135deg, #00a99c 0%, #00c4b3 50%, #00d4c7 100%);
  border-radius: 20px 20px 0 0;
  position: relative;
}

.gallery-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0, 169, 156, 0.15);
  border-color: rgba(0, 169, 156, 0.2);
}

.gallery-image-container {
  position: relative;
  overflow: hidden;
  height: 300px;
}

/* View Button Styles */
.view-button {
  position: absolute;
  bottom: 15px;
  left: 15px;
  background: rgba(0, 169, 156, 0.9);
  color: white;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 10;
}

.gallery-card:hover .view-button {
  opacity: 1;
}

.view-button:hover {
  background: rgba(0, 169, 156, 1);
  transform: scale(1.05);
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  align-items: center;
  justify-content: center;
}

.modal-content {
    margin: 3rem;
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 169, 156, 0.2);
  position: relative;
}

.modal-content img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
}

.close-button {
  position: absolute;
  top: -15px;
  right: -15px;
  background: rgba(0, 169, 156, 0.9);
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.close-button:hover {
  background: rgba(0, 169, 156, 1);
  transform: scale(1.1);
}

/* Slick Carousel Styles for Gallery */
.gallery-slider {
  position: relative;
  height: 100%;
}

.gallery-slider .slick-slide {
  outline: none;
}

.gallery-slider img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: all 0.4s ease;
}

.gallery-card:hover .gallery-slider img {
  transform: scale(1.05);
}

/* Custom Arrows for Gallery Slider */
.gallery-slider .slick-prev,
.gallery-slider .slick-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 40px;
  height: 40px;
  background: rgba(0, 169, 156, 0.8);
  border-radius: 50%;
  border: none;
  cursor: pointer;
  opacity: 0;
  transition: all 0.3s ease;
}

.gallery-card:hover .gallery-slider .slick-prev,
.gallery-card:hover .gallery-slider .slick-next {
  opacity: 1;
}

.gallery-slider .slick-prev:hover,
.gallery-slider .slick-next:hover {
  background: rgba(0, 169, 156, 1);
  transform: translateY(-50%) scale(1.1);
}

.gallery-slider .slick-prev {
  left: 15px;
}

.gallery-slider .slick-next {
  right: 15px;
}

.gallery-slider .slick-prev:before,
.gallery-slider .slick-next:before {
  color: white;
  font-size: 18px;
  font-weight: bold;
}

/* Custom Dots for Gallery Slider */
.gallery-slider .slick-dots {
  bottom: 15px;
  z-index: 10;
}

.gallery-slider .slick-dots li {
  margin: 0 3px;
}

.gallery-slider .slick-dots li button:before {
  font-size: 12px;
  color: white;
  opacity: 0.5;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.gallery-slider .slick-dots li.slick-active button:before {
  opacity: 1;
  color: #00a99c;
}

/* Image Counter */
.image-counter {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  z-index: 10;
}

.gallery-content {
  padding: 25px;
}

.gallery-title {
  color: #2c3e50;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.3;
}

.gallery-description {
  color: #6c757d;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gallery-date {
  color: #00a99c;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Enhanced Section Heading */
.enhanced-section-heading h1 {
  font-size: 42px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 20px;
  position: relative;
}

.enhanced-section-heading h1::after {
  content: '';
  position: absolute;
  width: 80px;
  height: 4px;
  background: linear-gradient(135deg, #00a99c 0%, #00c4b3 100%);
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

.enhanced-section-heading p {
  font-size: 18px;
  color: #6c757d;
  max-width: 700px;
  margin: 25px auto 0;
  line-height: 1.7;
}

/* Responsive Design */
@media (max-width: ))^ {
  .gallery-section {
    padding: 60px 0;
  }
  
  .enhanced-section-heading h1 {
    font-size: 36px;
  }
  
  .gallery-image-container {
    height: 250px;
  }
  
  .gallery-slider img {
    height: 250px;
  }
}

@media (max-width: 767px) {
  .gallery-section {
    padding: 50px 0;
  }
  
  .enhanced-section-heading h1 {
    font-size: 30px;
  }
  
  .gallery-image-container {
    height: 220px;
  }
  
  .gallery-slider img {
    height: 220px;
  }
  
  .gallery-content {
    padding: 20px;
  }
  
  .gallery-title {
    font-size: 20px;
  }
  
  .gallery-slider .slick-prev,
  .gallery-slider .slick-next {
    width: 35px;
    height: 35px;
  }
  
  .gallery-slider .slick-prev {
    left: 10px;
  }
  
  .gallery-slider .slick-next {
    right: 10px;
  }
}