/* Events page specific styles */
.tour-page {
  --tour-primary-color: #7d3c98; /* Primary color for events page */
  --tour-secondary-color: #f1c40f;
  --tour-accent-color: #2ecc71;
}

/* Hero section styling */
.tour-hero {
  height: 70vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.tour-hero-image {
  background-image: url('images/HUNC6296.jpg');
  background-size: cover;
  background-position: center calc(25% + 5.2cm); /* Moved down by 5.2cm from original position (3.2cm + 2cm) */
  height: 100%;
  width: 100%;
  position: absolute;
  filter: brightness(0.6) saturate(1.2);
  z-index: -1;
}

.tour-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.8) 0%,
    transparent 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 20px;
}

.hero-content h1 {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Unique Imigongo patterns for events page */
.tour-corner {
  position: fixed;
  width: 150px;
  height: 150px;
  z-index: 999;
}

.tour-corner--top-left {
  top: 0;
  left: 0;
  background: linear-gradient(
    135deg,
    var(--tour-primary-color) 0%,
    transparent 70%
  );
  border-bottom-right-radius: 100%;
}

.tour-corner--top-right {
  top: 0;
  right: 0;
  background: linear-gradient(
    225deg,
    var(--tour-primary-color) 0%,
    transparent 70%
  );
  border-bottom-left-radius: 100%;
}

.tour-corner--bottom-left {
  bottom: 0;
  left: 0;
  background: linear-gradient(
    45deg,
    var(--tour-primary-color) 0%,
    transparent 70%
  );
  border-top-right-radius: 100%;
}

.tour-corner--bottom-right {
  bottom: 0;
  right: 0;
  background: linear-gradient(
    315deg,
    var(--tour-primary-color) 0%,
    transparent 70%
  );
  border-top-left-radius: 100%;
}

/* Events Container Styles */
.events-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.events-header {
  text-align: center;
  margin-bottom: 3rem;
}

.events-header h2 {
  font-size: 2.5rem;
  color: var(--tour-primary-color);
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.events-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--tour-secondary-color);
}

.events-header p {
  font-size: 1.2rem;
  color: #555;
  max-width: 700px;
  margin: 0 auto;
}

/* Events Grid */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

/* Event Card Styles */
.event-card {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
}

.event-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Upcoming Event Cards */
.event-card.upcoming {
  display: flex;
  min-height: 200px;
  border-left: 5px solid var(--tour-primary-color);
}

.event-date {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  background-color: #f8f8f8;
  border-right: 1px solid #eee;
  min-width: 100px;
  text-align: center;
}

.event-date .day {
  font-size: 2rem;
  font-weight: 700;
  color: var(--tour-primary-color);
  line-height: 1;
}

.event-date .month {
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  text-transform: uppercase;
  margin: 0.3rem 0;
}

.event-date .year {
  font-size: 0.9rem;
  color: #777;
}

.event-details {
  padding: 1.5rem;
  flex-grow: 1;
}

.event-details h3 {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  color: #333;
}

.event-location,
.event-time {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: #666;
}

.event-location i,
.event-time i {
  margin-right: 5px;
  color: var(--tour-primary-color);
}

.event-description {
  font-size: 0.9rem;
  margin: 1rem 0;
  color: #555;
  line-height: 1.5;
}

.btn-tickets,
.btn-gallery {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  background-color: var(--tour-primary-color);
  color: white;
  border-radius: 5px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background-color 0.3s;
}

.btn-tickets:hover,
.btn-gallery:hover {
  background-color: #6a2c85;
}

/* Past Event Cards */
.event-card.past {
  display: flex;
  flex-direction: column;
}

.event-image {
  height: 200px;
  overflow: hidden;
}

.event-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.event-card.past:hover .event-image img {
  transform: scale(1.05);
}

.past-events .event-date {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: rgba(125, 60, 152, 0.9);
  color: white;
  padding: 0.5rem;
  border-radius: 5px;
  min-width: auto;
  border-right: none;
}

.past-events .event-date .day,
.past-events .event-date .month,
.past-events .event-date .year {
  color: white;
  font-size: 0.8rem;
  margin: 0;
  line-height: 1.2;
}

.past-events .event-date .day {
  font-size: 1rem;
}

/* Events Divider */
.events-divider {
  height: 2px;
  background: linear-gradient(
    to right,
    transparent,
    var(--tour-primary-color),
    transparent
  );
  margin: 4rem 0;
}

/* Newsletter Section */
.events-newsletter {
  background-color: #f8f8f8;
  padding: 4rem 0;
}

.newsletter-container {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  padding: 0 1.5rem;
}

.newsletter-container h2 {
  font-size: 2rem;
  color: var(--tour-primary-color);
  margin-bottom: 1rem;
}

.newsletter-container p {
  font-size: 1rem;
  color: #555;
  margin-bottom: 2rem;
}

.newsletter-form {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-form input {
  flex-grow: 1;
  padding: 0.8rem 1rem;
  border: 1px solid #ddd;
  border-radius: 5px 0 0 5px;
  font-size: 1rem;
}

.btn-subscribe {
  padding: 0 1.5rem;
  background-color: var(--tour-primary-color);
  color: white;
  border: none;
  border-radius: 0 5px 5px 0;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

.btn-subscribe:hover {
  background-color: #6a2c85;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 3rem;
  }

  .hero-content p {
    font-size: 1.2rem;
  }

  .events-grid {
    grid-template-columns: 1fr;
  }

  .event-card.upcoming {
    flex-direction: column;
    border-left: none;
    border-top: 5px solid var(--tour-primary-color);
  }

  .event-date {
    flex-direction: row;
    width: 100%;
    padding: 1rem;
    border-right: none;
    border-bottom: 1px solid #eee;
  }

  .event-date .day,
  .event-date .month,
  .event-date .year {
    margin: 0 0.5rem;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form input {
    border-radius: 5px;
    margin-bottom: 1rem;
  }

  .btn-subscribe {
    border-radius: 5px;
    padding: 0.8rem;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }

  .events-header h2 {
    font-size: 2rem;
  }
}

/* Tour grid styling */
.tour-grid {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 40px;
}

.tour-item {
  display: flex;
  background-color: rgba(0, 0, 0, 0.03);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding: 20px;
  align-items: center;
}

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

.tour-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 100px;
  padding: 15px;
  background-color: var(--tour-primary-color);
  color: white;
  border-radius: 6px;
  margin-right: 30px;
}

.tour-date .day {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
}

.tour-date .month {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 5px 0;
}

.tour-date .year {
  font-size: 1rem;
  opacity: 0.8;
}

.tour-location {
  flex: 1;
}

.tour-location h3 {
  font-size: 1.4rem;
  margin: 0 0 5px 0;
}

.tour-location p {
  margin: 0;
  opacity: 0.8;
}

.tour-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-left: 20px;
}

.ticket-button,
.vip-button {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
}

.ticket-button {
  background-color: var(--tour-secondary-color);
  color: #333;
}

.vip-button {
  background-color: transparent;
  border: 2px solid var(--tour-primary-color);
  color: var(--tour-primary-color);
}

.ticket-button:hover {
  background-color: #e9b70b;
  transform: translateY(-2px);
}

.vip-button:hover {
  background-color: var(--tour-primary-color);
  color: white;
  transform: translateY(-2px);
}

/* Tour info section */
.tour-info-section {
  background-color: #f9f9f9;
  padding: 80px 0;
  margin-top: 80px;
}

.info-columns {
  display: flex;
  gap: 50px;
}

.info-column {
  flex: 1;
}

.info-column h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--tour-primary-color);
}

.tour-features {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.tour-features li {
  padding: 8px 0 8px 30px;
  position: relative;
}

.tour-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--tour-accent-color);
  font-weight: bold;
}

.info-column .view-button {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 25px;
  background-color: var(--tour-primary-color);
  color: white;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.info-column .view-button:hover {
  background-color: #662d7d;
  transform: translateY(-2px);
}

/* Responsive styles */
@media (max-width: 992px) {
  .info-columns {
    flex-direction: column;
    gap: 50px;
  }
}

@media (max-width: 768px) {
  .tour-item {
    flex-direction: column;
    text-align: center;
    padding: 30px 20px;
  }

  .tour-date {
    margin: 0 0 20px 0;
    padding: 15px 30px;
  }

  .tour-location {
    margin-bottom: 20px;
  }

  .tour-actions {
    margin-left: 0;
    flex-direction: row;
    width: 100%;
  }

  .ticket-button,
  .vip-button {
    flex: 1;
  }
}
