html {
  scroll-behavior: smooth;
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  background-color: #e9f1fa;
  color: #444;
}

header {
  background: #00abe4;
  padding: 15px 20px;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  font-family: "Poppins", sans-serif;
}

header h1 {
  font-size: 1.7rem;
  font-weight: 600;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.menu-toggle div {
  width: 25px;
  height: 3px;
  background-color: white;
  margin: 4px 0;
}

nav {
  display: flex;
  gap: 35px;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 450;
  font-size: 20px;
  position: relative;
  transition: color 0.2s;
}

nav a::after {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2.5px;
  background: white;
  transform: scaleX(0);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px;
  opacity: 0.85;
}

nav a:hover::after,
nav a.active::after {
  transform: scaleX(1);
}

nav a:hover,
nav a.active {
  color: #ffe066;
  transition: color 0.2s;
}

@media (max-width: 1045px) {
  .menu-toggle {
    display: flex;
  }

  nav {
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background-color: #00abe4;
    display: none;
    padding: 10px 0 0 0;
    gap: 0;
  }

  nav.active {
    display: flex;
  }

  nav a {
    padding: 30px 20px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    transition: background 0.2s, color 0.2s;
    color: white;
  }

  nav a:hover,
  nav a.active {
    background: transparent;
    color: #ffe066;
  }

  nav a::after {
    content: none;
  }
}

.site-footer {
  background-color: #1d3453;
  color: #ddd;
  padding: 10px 0;
  width: 100%;
  text-align: center;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.footer-container p {
  margin: 0;
  font-size: 16px;
}

.footer-divider {
  color: #888;
  font-size: 16px;
}

.footer-container strong {
  color: #fff;
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 5px;
  }

  .footer-divider {
    display: none;
  }
}

.intro {
  max-width: 80%;
  margin: 20px auto 30px auto;
  padding: 25px;
  background-color: rgb(197, 224, 248);
  border-radius: 15px;
}

.intro h1 {
  font-size: 2.3rem;
  color: #1d3453;
  text-align: center;
  margin-bottom: 15px;
}

.intro p {
  font-size: 1.1rem;
  color: #333;
  line-height: 1.6;
  text-align: center;
}

.events {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  max-width: 90%;
  margin: 50px auto;
  gap: 40px;
}

.events-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: center;
}

.event-card {
  display: flex;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.event-card:hover {
  transform: scale(1.02);
}

.event-date {
  width: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #6fbcf3;
  font-size: 1.3rem;
  color: #1d3453;
  text-align: center;
  font-weight: 550;
}

.event-card-content {
  padding: 18px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-x: auto;
}

.event-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #0f57a4;
}

.event-description {
  font-size: 1.1rem;
  color: #333;
  line-height: 1.6;
  text-align: justify;
}

.register-button {
  display: inline-block;
  padding: 10px 18px;
  background-color: #00abe4;
  color: white;
  text-decoration: none;
  font-weight: 500;
  border-radius: 6px;
  transition: background 0.3s ease;
  width: fit-content;
}

.register-button:hover {
  background-color: #0077b6;
}

.calendar-container {
  flex: 1 1 45%;
  padding: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: relative;
  background: white;
  border-radius: 10px;
}

#calendar {
  height: 100%;
  min-height: 550px;
}

.tooltip {
  position: fixed;
  background: #1d3453;
  color: #fff;
  padding: 6px 10px;
  font-size: 0.85rem;
  border-radius: 6px;
  pointer-events: none;
  z-index: 9999;
  display: none;
  white-space: nowrap;
}

.fc-col-header-cell {
  background-color: #6fbcf3;
  color: white;
  font-weight: 550;
  font-size: 1.1rem;
  padding: 20px 0 !important;
  text-transform: uppercase;
}

.fc-day-today {
  background-color: #d0e7f5 !important;
}

.fc-daygrid-day {
  background-color: #f0f8fc;
  border: 1px solid #e0e0e0;
}

.fc-daygrid-day:hover {
  background-color: #d0e7f5;
}

.fc-daygrid-day-frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.fc-daygrid-day-number {
  font-weight: 500;
  color: #1d3453;
  text-align: center;
  font-size: 1rem;
}

.fc-theme-standard td,
.fc-theme-standard th {
  border: 1px solid #1d3453 !important;
}

.fc-event {
  background-color: #ffe066 !important;
  color: white;
  cursor: pointer;
}

@media (max-width: 858px) {
  .events {
    grid-template-columns: 1fr;
  }

  .fc-col-header-cell {
    font-size: 0.9rem;
  }
}

@media (max-width: 380px) {
  .fc-col-header-cell {
    font-size: 0.7rem;
  }
}
