/* 
   CONFIDENTIAL AND PROPRIETARY

   This software and its source code are the property of Exodus Software Development Team.
   Unauthorized use, copying, or distribution is strictly prohibited.

   Team Members:
   Fuertez
   Bundalian
   Arevalo
   De Vera
   De Jesus
   Orendain 
*/


.events-hero-section {
  color: white;
  text-align: center;
  padding: 100px 20px;
  position: relative;
  background-image: url('../res/events.bg.webp');
  
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  max-width: 1600px;
  max-height: 100%;
  margin: auto;
  transition: background-image 1.5s ease-in-out, opacity 1.5s ease-in-out;
}

.events-hero-section.fade-in {
  opacity: 1;
}


.events-hero-section h1 {
  font-size: 4rem;
  font-weight: bold;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  animation: fadeIn 1.5s ease-out forwards;

}

.events-hero-section h1 .highlight {
  color: yellow;
}

.events-hero-section p {
  font-size: 1.5rem;
  margin-bottom: 30px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  animation: fadeIn 1.5s ease-out forwards;

}

.ZCAP-Inc-Events {
  background-color: #f9f9f9;
  max-width: 1600px;
  margin: auto;
}

#ZCAP-Events {
  padding: 50px 0;
  max-width: 1200px;
  margin: 0 auto;

}

.section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-left: 60px;
  margin-right: 60px;
}

.section-title hr {
  flex-grow: 1;
  border: 3px solid #007bff !important;
  margin: 0;
}

.section-title h2 {
  white-space: nowrap;
  font-size: 1.5em;
  text-align: center;
  color: #007bff;
  font-size: 30px !important;
}

.events-container {
  display: flex;
  gap: 20px;
  margin: 40px;
}


.sidebar-section {
  width: 25%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}


.calendar-card {
  background: #ffffff;
  padding: 16px;
  border-radius: 12px;
  box-shadow: 8px 8px 20px rgba(0, 0, 0, 0.2), -8px -8px 20px rgba(255, 255, 255, 0.7);
  text-align: center;
  width: 280px;
  font-family: 'Roboto', sans-serif;
}


.calendar-header h2 {
  font-size: 1.6rem;
  font-weight: 350;
  color: #333;
  margin-left: 10px;
  margin-bottom: 12px;
  text-align: left !important;
}


.separator {
  border: none;
  border-top: 1px solid #e0e0e0;
  margin: 12px 0;
}


.calendar-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}


.month-dropdown {
  width: auto;
  border: none;
  background: none;
  padding: 0;
  margin-left: 10px;
  font-size: 0.70rem;
  color: #333;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  
  -moz-appearance: none;
  
}

.dropdown-icon {
  font-size: 10px;
  margin-left: 8px;
}


.chevrons {
  width: 50%;
  display: flex;
  justify-content: right;
  align-items: right;
}

.chevron {
  background: none;
  border: none;
  font-size: 12px;
  font-weight: 300;
  color: #333;
  cursor: pointer;
  transition: color 0.3s;
}


.chevron-left {
  margin-right: 18px;
}

.chevron-right {
  margin-left: 12px;
  margin-right: 12px;
}

.chevron:hover {
  color: #3b82f6;
}


.calendar-widget table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.calendar-widget th {
  color: #666;
  font-weight: normal;
  padding: 6px;
  text-transform: uppercase;
}

.calendar-widget td {
  position: relative;
  padding: 8px;
  text-align: center;
  cursor: pointer;
  z-index: 1;
}

.calendar-widget td::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: transparent;
  transition: background-color 0.3s, outline 0.3s;
  z-index: -1;
}



.calendar-widget td.selected span {
  color: white;
}

.calendar-widget td.selected:hover span {
  color: white;
}


.calendar-widget td:hover span {
  color: white;
}

.calendar-widget td.selected::before {
  background-color: #3b82f6;
  color: #fff;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
}

.calendar-widget td:hover::before {
  outline: 2px solid #007bff;
}

.today {
  background-color: #007bff;
  outline: 5px solid #007bff;
  color: #fff;
  border-radius: 50%;
}


.calendar-widget td span {
  z-index: 1;
  color: #333;
}

.calendar-widget td:hover span {
  color: #007bff;
}


.calendar-widget td.disabled {
  color: #ccc;
  pointer-events: none;
}

        
        .calendar-widget td.event-day span {
          color: #007bff;
      }

      .calendar-widget td.event-day::before {
          outline: 2px solid #007bff;
      }

      
      .event-tooltip {
          position: absolute;
          top: 100%;
          left: 50%;
          transform: translateX(-50%);
          background-color: rgba(0, 0, 0, 0.8);
          color: #fff;
          padding: 5px 10px;
          border-radius: 5px;
          font-size: 0.8rem;
          z-index: 10;
          white-space: nowrap;
          visibility: hidden;
          opacity: 0;
          transition: opacity 0.3s;
      }

      .calendar-widget td:hover .event-tooltip {
          visibility: visible;
          opacity: 1;
      }



.upcoming-events-card {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  font-family: 'Roboto', sans-serif;
  width: 280px;
}


.upcoming-events-card .upcoming-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.upcoming-events-card .upcoming-header .title {
  font-size: 1rem;
  font-weight: bold;
}

.upcoming-events-card .upcoming-header .title .highlight {
  color: #007bff;
  
}

.upcoming-events-card .upcoming-header .year-dropdown {
  font-size: 1rem;
  color: #333;
  cursor: pointer;
  display: flex;
  align-items: center;
}


.upcoming-events-card .dropdown-container {
  display: flex;
  align-items: center;
}

.upcoming-events-card .year-dropdown {
  width: auto;
  border: none;
  background: none;
  padding: 0;
  margin-left: 10px;
  font-size: 1rem;
  color: #333;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.upcoming-events-card .dropdown-icon {
  font-size: 0.8rem;
  margin-left: 5px;
  color: #333;
}


.upcoming-events-card .dropdown-container .year-dropdown:hover {
  color: #3b82f6;
}


.upcoming-events-card .events-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-left: 10px;
}

.upcoming-events-card .event-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 10px;
  background: #fff;
  border-radius: 8px;
  height: 60px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}


.upcoming-events-card .event-item .date-box {
  background: #007bff;
  color: #fff;
  text-align: center;
  padding: 10px;
  border-radius: 6px 0 0 6px;
  width: 60px;
  height: 60px;
  display: flex;
  flex-direction: column;
  margin-left: -20px;
  
  margin-top: -10px;
  
  margin-bottom: -10px;
  
}


.upcoming-events-card .event-item .date-box .day {
  font-size: 1rem;
  font-weight: normal;
}

.upcoming-events-card .event-item .date-box .month {
  font-size: 0.8rem;
  text-transform: uppercase;
}


.upcoming-events-card .event-item .event-details {
  display: flex;
  flex-direction: column;
}

.upcoming-events-card .event-item .event-details .event-title {
  font-size: 0.8rem;
  font-weight: bold;
  color: #333;
}

.upcoming-events-card .event-item .event-details .event-description {
  font-size: 0.6rem;
  color: #777;
}



.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 70%;
}

.event-card {
  background: #F4F6FF;
  box-shadow: 8px 8px 20px rgba(0, 0, 0, 0.2), -8px -8px 20px rgba(255, 255, 255, 0.7);
  border-radius: 15px;
  text-align: center;
  width: 260px;
  height: 400px;
  position: relative;
  overflow: hidden;
}

.event-card img {
  width: 100%;
  height: 200px;
  margin-bottom: 15px;
  object-fit: cover;
  position: relative;
}

.event-card h2 {
  font-size: 1.4rem;
  color: #007BFF;
  margin-bottom: 8px;
  text-align: left;
  padding-left: 20px;
  padding-right: 20px;
}

.event-card p {
  font-size: 0.9rem;
  line-height: 1.4;
  text-align: left;
  padding-left: 20px;
  padding-right: 20px;
}

.event-card .date {
  position: absolute;
  top: 0px;
  left: 0px;
  background: #007bff;
  color: #fff;
  text-align: center;
  font-weight: 500;
  padding: 5px 10px;
  width: 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
}




@media (max-width: 1150px) {
  .events-hero-section {
    padding: 50px 20px;
    background-size: cover;
    max-width: 100%;
  }

  .events-hero-section h1 {
    font-size: 2.5rem;
  }

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

  .events-container {
    flex-direction: column;
    gap: 20px;
    margin: 20px;
  }

  .sidebar-section {
    width: 100%;
  }

  .calendar-card {
    width: 100%;
    margin-bottom: 20px;
  }

  .calendar-widget table {
    font-size: 0.75rem;
  }

  .upcoming-events-card {
    width: 100%;
    margin-bottom: 20px;
  }

  .events-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    width: 100%;
  }

  .event-card {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
  }

  .event-card img {
    height: 150px;
    object-fit: cover;
  }

  .event-card h2 {
    font-size: 1.2rem;
  }

  .event-card p {
    font-size: 0.85rem;
    line-height: 1.4;
    padding-bottom: 20px;
  }

  .event-card .date {
    top: 0;
    left: 0;
    width: 60px;
  }
}

@media (max-width: 480px) {
  .events-hero-section {
    padding: 30px 15px;
  }

  .events-hero-section h1 {
    font-size: 2rem;
  }

  .events-hero-section p {
    font-size: 1rem;
  }

  .events-container {
    margin: 15px;
  }

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

  .event-card {
    width: 100%;
    height: auto;
  }

  .event-card img {
    height: 120px;
  }

  .upcoming-events-card {
    width: 100%;
    margin-bottom: 15px;
  }

  .calendar-card {
    width: 100%;
    margin-bottom: 15px;
  }

  .upcoming-events-card .event-item {
    font-size: 0.75rem;
  }
}