:root {
  --emerald: #2e8b57;
  --emerald-dark: #1e6b47;
  --gold: #daa520;
  --sky-blue: #87ceeb;
  --ivory: #fffff0;
  --warm-orange: #ff8c42;
  --beige: #f5f5dc;
  --text-dark: #2c3e50;
  --text-light: #7f8c8d;
  --coral: #ff7f50;
  --deep-blue: #1a365d;
}

body {
  font-family: "Poppins", sans-serif;
  color: var(--text-dark);
  overflow-x: hidden;
  background-color: #f9f9f9;
}

/* Navbar */
.navbar {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  padding: 0.8rem 0;
}

.navbar-brand {
  font-weight: 700;
  color: var(--emerald);
  font-size: 1.8rem;
}

.nav-link {
  font-weight: 500;
  color: var(--text-dark);
  margin: 0 0.5rem;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background: linear-gradient(to right, var(--emerald), var(--gold));
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.btn-explore {
  background: linear-gradient(to right, var(--emerald), var(--emerald-dark));
  color: white;
  border: none;
  border-radius: 50px;
  padding: 0.75rem 2rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(46, 139, 87, 0.3);
}

.btn-explore:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(46, 139, 87, 0.4);
  color: white;
}

/* Event Hero Section */
.event-hero {
  height: 70vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7));
}

.event-hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.event-hero-content {
  text-align: center;
  color: white;
  max-width: 800px;
  padding: 0 2rem;
}

.event-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.event-subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: var(--ivory);
}

.event-meta {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  backdrop-filter: blur(10px);
}

/* Event Details Section */
.event-details {
  padding: 80px 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  position: absolute;
  width: 60%;
  height: 5px;
  bottom: -15px;
  left: 0;
  background: linear-gradient(to right, var(--emerald), var(--gold));
  border-radius: 3px;
}

.event-description {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: 2rem;
  white-space: pre-wrap;
  word-wrap: break-word; /* breaks long words to fit the container */
}

.highlight-box {
  background: linear-gradient(
    135deg,
    var(--emerald) 0%,
    var(--emerald-dark) 100%
  );
  color: white;
  padding: 2rem;
  border-radius: 15px;
  margin-bottom: 2rem;
  box-shadow: 0 10px 30px rgba(46, 139, 87, 0.3);
}

.highlight-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.schedule-item {
  padding: 1.5rem;
  border-left: 4px solid var(--emerald);
  background: white;
  margin-bottom: 1.5rem;
  border-radius: 0 10px 10px 0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.schedule-item:hover {
  transform: translateX(5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.schedule-time {
  font-weight: 600;
  color: var(--emerald);
  margin-bottom: 0.5rem;
}

.schedule-activity {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.schedule-location {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Photo Gallery */
.photo-gallery {
  padding: 80px 0;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.gallery-item {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  margin-bottom: 2rem;
}

.gallery-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

/* Registration Section */
.registration-section {
  padding: 80px 0;
}

.registration-card {
  background: white;
  border-radius: 20px;
  padding: 3rem;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.form-control {
  border-radius: 10px;
  padding: 0.75rem 1rem;
  border: 1px solid #e0e0e0;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--emerald);
  box-shadow: 0 0 0 0.2rem rgba(46, 139, 87, 0.25);
}

/* Related Events */
.related-events {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--deep-blue) 0%, #2d3748 100%);
  color: white;
}

.related-events .section-title {
  color: white;
}

.event-card {
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  height: 100%;
}

.event-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  background: rgba(255, 255, 255, 0.1);
}

.event-card img {
  height: 200px;
  object-fit: cover;
  width: 100%;
}

.event-card .card-body {
  padding: 1.5rem;
}

.event-date {
  display: inline-block;
  background: linear-gradient(to right, var(--gold), var(--warm-orange));
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.event-card .card-title {
  font-weight: 600;
  margin-bottom: 1rem;
  color: white;
}

.event-card .card-text {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.5rem;
  line-height: 1.6;
  font-size: 0.9rem;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  margin-right: 10px;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background: var(--emerald);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  margin-top: 40px;
  text-align: center;
  color: #95a5a6;
}

/* Back to Events Button */
.back-to-events {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .event-title {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .event-meta {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .registration-card {
    padding: 2rem;
  }
}

/* Zoom Modal Styles */
.zoom-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  overflow: hidden;
}

.zoom-modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 90%;
  max-height: 90%;
  transition: transform 0.3s ease;
}

.zoom-modal-content.zoomed {
  transform: translate(-50%, -50%) scale(1.5);
  cursor: zoom-out;
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.5);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.zoom-controls {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10000;
}

.zoom-btn {
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
}

.gallery-item {
  cursor: pointer;
  transition: transform 0.3s ease;
}

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

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
}
