body {
  color: black;
}

/* ================= GALLERY BANNER ================= */

.calendar-banner-section {
  width: 100%;
  height: 70vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  background: linear-gradient(
    135deg,
    rgba(41, 110, 86, 0.95),
    rgba(22, 60, 48, 0.95)
  );
}

.calendar-banner-section::before,
.calendar-banner-section::after {
  content: "";
  position: absolute;
  width: 550px;
  height: 550px;
  background: url("img/islamic-pattern2.png") center/contain no-repeat;
  opacity: 0.06;
  animation: calendarRotate 60s linear infinite;
  pointer-events: none;
  z-index: 1;
}

.calendar-banner-section::before {
  top: -200px;
  left: -200px;
}

.calendar-banner-section::after {
  bottom: -200px;
  right: -200px;
  animation-direction: reverse;
}

@keyframes calendarRotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.calendar-banner-section::after {
  mix-blend-mode: screen;
}

.calendar-banner-content {
  position: relative;
  z-index: 5;
  color: #ffffff;
  max-width: 800px;
  padding: 0 20px;
}

.calendar-banner-title {
  font-size: clamp(32px, 5vw, 58px);
  font-family: "Playfair Display", serif;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.calendar-banner-subtext {
  font-size: clamp(16px, 2vw, 22px);
  margin-bottom: 40px;
  opacity: 0.95;
}

.calendar-cta-btn {
  display: inline-block;
  padding: 14px 32px;
  background: linear-gradient(135deg, #ffffff, #f2f2f2);
  color: #1f4d3b;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.35s ease;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.calendar-cta-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

/* ================= MOBILE OPTIMIZATION ================= */

@media (max-width: 768px) {
  .main-content {
    padding: 20px;
  }

  .calendar-banner-section {
    height: 60vh;
    padding: 20px;
  }

  .calendar-banner-section::before,
  .calendar-banner-section::after {
    width: 300px;
    height: 300px;
    opacity: 0.04;
  }

  .calendar-banner-section::before {
    top: -120px;
    left: -120px;
  }

  .calendar-banner-section::after {
    bottom: -120px;
    right: -120px;
  }

  .calendar-banner-title {
    font-size: 32px;
    line-height: 1.3;
    margin-top: 60px;
  }

  .calendar-banner-subtext {
    font-size: 15px;
    line-height: 1.6;
    padding: 0 10px;
  }
}

/* ================= EVENT TEXT WRAP ================= */

#eventCalendar .fc-daygrid-event {
  display: flex !important;
  align-items: center;
  gap: 6px;
  white-space: nowrap !important;
  background: #e8f5e9 !important;
  border: 1px solid #a5d6a7 !important;
  color: #1b5e20 !important;
}

#eventCalendar .fc-event-time {
  margin: 0;
  font-weight: 600;
}

#eventCalendar .fc-event-title {
  white-space: nowrap !important;
}

/* EVENT TIME */
#eventCalendar .fc-event-time {
  font-weight: 600;
}

#eventCalendar .fc-button-group .fc-button {
  margin-right: 8px;
  border-radius: 10px !important;
}

/* remove last button extra margin */
#eventCalendar .fc-button-group .fc-button:last-child {
  margin-right: 0;
}

#eventCalendar .fc-day-today {
  background: #e8f5e9 !important; /* light green */
}

/* ================= ISLAMIC EVENT DOT ================= */

#eventCalendar .fc-daygrid-event.islamic .fc-event-title {
  font-weight: 700;
  margin-left: 5px;
}

#eventCalendar .fc-daygrid-event.islamic::before {
  content: "";
  width: 8px;
  height: 8px;
  min-width: 8px;
  border-radius: 50%;
  background: #f9a825;
  display: inline-block;
  margin-left: 4px;
}

/* ================= SECTION ================= */

.event-calendar-section {
  width: 100%;
  min-height: 100vh;
  background: #f5f7fb;
  padding: 60px 20px;
  box-sizing: border-box;
  font-family: "Outfit", sans-serif;
}

/* ================= CONTAINER ================= */

.event-calendar-container {
  max-width: 1300px;
  margin: 0 auto;
}

/* ================= HEADER ================= */

.event-calendar-header {
  text-align: center;
  margin-bottom: 40px;
}

.event-calendar-title {
  font-size: 42px;
  font-weight: 700;
  color: #1c1c1c;
  margin-bottom: 10px;
}

.event-calendar-subtitle {
  font-size: 16px;
  color: #666;
}

/* ================= LEGEND ================= */

.event-calendar-legend {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 25px;
  flex-wrap: wrap;
  margin-bottom: 35px;
}

.event-calendar-legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: #333;
  font-weight: 500;
}

/* ================= LEGEND DOT ================= */

.event-calendar-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: inline-block;
}

.event-kuliah {
  background: #2e7d32;
}

.event-community {
  background: #1565c0;
}

.event-islamic {
  background: #f9a825;
}

.event-admin {
  background: #c62828;
}

/* ================= CALENDAR BOX ================= */

.event-calendar-box {
  background: #ffffff;
  border-radius: 24px;
  padding: 30px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
}

/* ================= FULLCALENDAR ================= */

.fc {
  font-family: "Outfit", sans-serif;
}

.fc-toolbar-title {
  font-size: 28px !important;
  font-weight: 700;
  color: #222;
}

.fc-button {
  background: #296e56 !important;
  border: none !important;
  padding: 8px 16px !important;
  border-radius: 10px !important;
  font-weight: 500 !important;
  transition: 0.3s ease;
}

.fc-button:hover {
  background: #1f5744 !important;
}

.fc-daygrid-event {
  border-radius: 8px !important;
  padding: 3px 6px !important;
  font-size: 13px;
  border: none !important;
}

/* ================= DAY CELL ================= */

.fc-daygrid-day {
  transition: 0.2s ease;
}

.fc-daygrid-day:hover {
  background: #f8fafc;
}

/* ================= MOBILE ================= */

@media (max-width: 768px) {
  .event-calendar-title {
    font-size: 30px;
  }

  .event-calendar-box {
    padding: 15px;
  }

  .fc-toolbar {
    flex-direction: column;
    gap: 15px;
  }

  .event-calendar-legend {
    gap: 15px;
  }
}

/* ================= MODAL BACKDROP ================= */
.event-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;

  opacity: 0;
  transition: opacity 0.25s ease;
}

.event-modal.show {
  opacity: 1;
}

/* ================= MODAL BOX ================= */
.event-modal-content {
  background: #fff;
  padding: 25px;
  border-radius: 16px;
  width: 90%;
  max-width: 500px;
  position: relative;
  transform: scale(0.9);
  opacity: 0;
  transition: all 0.25s ease;
}

.event-modal.show .event-modal-content {
  transform: scale(1);
  opacity: 1;
}

/* CLOSE BUTTON */
.event-modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 26px;
  cursor: pointer;
  color: #333;
}

/* BODY */
.event-modal-body p {
  margin: 8px 0;
  color: #333;
}

/* ANIMATION */
@keyframes fadeIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
