.gallery-hero {
  padding: 180px 8% 100px;
  background:
    linear-gradient(
      to bottom,
      rgba(14, 22, 16, 0.9),
      rgba(14, 22, 16, 0.98)
    ),
    url("https://images.unsplash.com/photo-1540575467063-178a50c2df87?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80");
  background-size: cover;
  background-position: center;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.gallery-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 20px;
  color: white;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  padding: 80px 8%;
  background: #0b120c;
}
.event-card {
  background: rgba(24, 36, 27, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
}
.event-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}
.event-image {
  height: 200px;
  width: 100%;
  object-fit: cover;
  transition: 0.5s;
}
.event-card:hover .event-image {
  transform: scale(1.05);
}
.event-details {
  padding: 25px;
  position: relative;
  background: linear-gradient(
    to top,
    rgba(14, 22, 16, 1),
    rgba(14, 22, 16, 0.9)
  );
  z-index: 1;
  margin-top: -20px;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}
.event-date {
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.event-title {
  color: white;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.3;
}
.event-venue {
  color: var(--text-muted);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn-view-event {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 10px 20px;
  background: rgba(39, 217, 83, 0.1);
  border: 1px solid rgba(39, 217, 83, 0.3);
  color: var(--primary);
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
  position: relative;
  z-index: 10;
}
.btn-view-event:hover {
  background: var(--primary);
  color: black;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(39, 217, 83, 0.2);
}
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}
.modal-content {
  background: #0f1811;
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 90%;
  max-width: 1000px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 24px;
  padding: 0;
  position: relative;
  transform: scale(0.95) translateY(20px);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}
.modal-overlay.active .modal-content {
  transform: scale(1) translateY(0);
}
.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  transition: 0.3s;
  z-index: 10;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.modal-close:hover {
  background: var(--primary);
  color: black;
  transform: rotate(90deg);
}
.modal-body {
  padding: 40px;
}
.modal-header-content {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 20px;
  margin-bottom: 30px;
}
.modal-header-content h2 {
  color: white;
  margin-bottom: 15px;
  font-size: 2.2rem;
}
.modal-meta {
  display: flex;
  gap: 25px;
  color: var(--primary);
  font-size: 1rem;
}
.modal-desc {
  color: var(--text-muted);
  margin-bottom: 40px;
  line-height: 1.8;
  font-size: 1.05rem;
}
.modal-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.gallery-item {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  height: 200px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  cursor: zoom-in;
  transition: 0.3s;
}
.gallery-item:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s;
}
.gallery-item:hover img {
  transform: scale(1.1);
}

.filter-bar {
  background: #080f09;
  padding: 30px 8%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  position: sticky;
  top: 70px;
  z-index: 100;
}
.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(24, 36, 27, 0.5);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.3px;
}
.filter-btn:hover {
  border-color: rgba(39, 217, 83, 0.4);
  color: var(--primary);
  background: rgba(39, 217, 83, 0.08);
}
.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #000;
  box-shadow: 0 4px 20px rgba(39, 217, 83, 0.35);
}
.category-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 10px;
}
.badge-seminar { background: rgba(99, 179, 237, 0.15); color: #63b3ed; border: 1px solid rgba(99, 179, 237, 0.3); }
.badge-course { background: rgba(154, 117, 234, 0.15); color: #9a75ea; border: 1px solid rgba(154, 117, 234, 0.3); }
.badge-workshop { background: rgba(246, 173, 85, 0.15); color: #f6ad55; border: 1px solid rgba(246, 173, 85, 0.3); }
.badge-event { background: rgba(39, 217, 83, 0.15); color: var(--primary); border: 1px solid rgba(39, 217, 83, 0.3); }

@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: 1fr; padding: 60px 5%; }
  .modal-content { width: 95%; max-width: 95%; }
}
