/* ===================== Events Page Header ===================== */
#events-header {
  color: #000000;
  background:
    url('https://www.transparenttextures.com/patterns/axiom-pattern.png') repeat,
    linear-gradient(135deg, rgb(236, 232, 225), rgb(220, 215, 210));
  background-size:  cover;
}

.past-button{
  text-decoration: none;
}

/* ===================== Upcoming Events Section ===================== */
.new-events {
  padding: 50px;
  background: 
    url('https://www.transparenttextures.com/patterns/axiom-pattern.png') repeat,
    linear-gradient(135deg, #040025, #000000);
  background-size: auto, cover;
}

/* ===================== Event Cards Styling ===================== */
.event-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.custom-event-card { 
  width: 100%;
  text-align: left;
  background-color: #1c1c1c;
  color: #ffffff;
  border: none;
  padding: 20px;
  border-radius: 12px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.custom-event-card:hover {
  background-color: #2a2a2a;
}

.event-title {
  font-size: 30px;
  font-weight: bold;
}

.event-content { 
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.event-text {
  font-size: 22px;
  flex: 1;
}

.event-thumb {
  width: 700px;
  height: 200px;
  border-radius: 10px;
  object-fit: cover;
}

/* ===================== Event Card Modals ===================== */
#modal-image {
  width: 900px;
  height: 200px;
  border-radius: 10px;
  object-fit: cover;
}

/* ===================== Past Events Header ===================== */
#past-events-title {
  color: #000000;
  font-size: 50px;
}

#past-events-subtitle {
  color: #000000;
  font-size: 25px;
}

/* ===================== Past Events Section ===================== */
.past-events-section {
  background:
    url('https://www.transparenttextures.com/patterns/axiom-pattern.png') repeat,
    linear-gradient(135deg, rgb(236, 232, 225), rgb(220, 215, 210));
  background-size: auto, cover;
}

/* ===================== Year Navigation Buttons ===================== */
.year-button {
  display: inline-block;
  padding: 8px 16px; 
  font-size: 24px;  
  font-weight: bold;
  color: rgb(2, 154, 255);
  background-color: transparent;
  border: 2px solid rgb(2, 154, 255);
  border-radius: 6px; 
  text-decoration: none;
  transition: color 0.15s ease-in-out, 
              background-color 0.15s ease-in-out, 
              border-color 0.15s ease-in-out, 
              box-shadow 0.15s ease-in-out;
}

.year-button:hover {
  color: #ffffff;
  background-color: rgb(2, 154, 255);
  border-color: rgb(2, 154, 255);
}

/* ===================== Back to Upcoming Events Button ===================== */
.sticky-wrapper {
  display: flex;
  justify-content: flex-end;
  position: sticky;
  top: 90px; 
  z-index: 1050;
  padding-right: 20px;
  margin-top: -25px;
}

.upcoming-button {
  display: inline-block;
  padding: 2px 16px; 
  font-size: 18px;  
  font-weight: bold;  
  color: #ffffff;
  background-color: rgb(2, 154, 255);
  border-radius: 6px; 
  text-decoration: none; 
}

.upcoming-button:hover {
  transform: scale(1.05);
  transition: transform 0.3s;
}

/* ===================== Past Events Tables ===================== */
#events-2025,
#events-2024,
#events-2023,
#events-2022 {
  color: black;
  font-size: 40px;
  padding-top: 80px;
}

.table-responsive {
  border-radius: 12px;
  overflow: hidden;
}

.past-events-table tbody tr:last-child td:first-child {
  border-bottom-left-radius: 12px;
}

.past-events-table tbody tr:last-child td:last-child {
  border-bottom-right-radius: 12px;
}

.past-events-table thead th {
  font-size: 20px;
  background-color: #000000;
  color: #ffffff;
  font-weight: 600;
}

.past-events-table tbody tr td {
  font-size: 15px;
  background-color: #888888;
  color: #ffffff;
  font-weight: 600;
}

.past-events-table tbody tr:hover {
  background-color: #2a2a2a;
}

/* ===================== Highlights Links ===================== */
.highlight-link {
  color: #1fff80;
  text-decoration: none;
}

.highlight-link:hover {
  text-decoration: underline;
}

/* ===================== Past Events Image ===================== */
.past-events-image {
  height: 350px; 
  width: auto; 
}

.past-events-image img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
}

/* ===================== Responsive Styles  ===================== */
/* ===================== Responsive Event Cards ===================== */
@media (min-width: 768px) {
  .event-content {
    flex-direction: row;
    align-items: center;
  }
}

@media (max-width: 768px) {
  .event-thumb {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    display: block;
  }

  /* ===================== Past Events Table ===================== */
  .past-events-table thead th {
    font-size: 14px;
  }

  .upcoming-button {
    font-size: 15px;  
  }
}
