/* Base */
body {
  background-color: #f5f5f5;
  color: #222;
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
}

/* Container */
main.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1rem;
}

/* Section */
.section {
  margin-bottom: 4rem;
  padding: 2rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.05);
}

/* Hero Section */
.hero-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  text-align: center;
}

.hero-photo-wrapper {
  flex-shrink: 0;
}

.hero-photo {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid #9be7b0;
  box-shadow: 0 0 25px rgba(155, 231, 176, 0.3);
}

.hero-text {
  max-width: 500px;
}

.hero-text h1 {
  font-size: 2.6rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.hero-text h2 {
  font-size: 1.6rem;
  color: #555;
  margin: 0.5rem 0;
}

.hero-text .degrees,
.hero-text .court,
.hero-text .nor {
  font-size: 1rem;
  color: #555;
  margin: 0.25rem 0;
}

/* Buttons */
.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.2rem;
  justify-content: center;
}

.btn {
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  border-radius: 6px;
  text-decoration: none;
  background-color: #7ddc90;
  color: #000;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #5bc877;
}

.btn.secondary {
  background-color: #3498db;
  color: #fff;
}

.btn.secondary:hover {
  background-color: #2980b9;
}

/* About + Calendar Section */
.about-calendar-section {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.about,
.calendar-wrapper {
  background: #fafafa;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
  padding: 1.5rem;
}

.about {
  flex: 1 1 350px;
}

.about h3 {
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 1rem;
}

.about p {
  font-size: 1rem;
  color: #444;
  line-height: 1.6;
}

.calendar-wrapper {
  flex: 1 1 420px;
  padding: 1rem;
}

.calendar-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.calendar-controls button {
  background-color: #4caf50;
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
}

/* Calendar */
#hc-calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  width: 100%;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
}

.day {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 6px;
  font-size: 0.8rem;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.day .date {
  font-size: 1rem;
  font-weight: 600;
  position: relative;
  z-index: 1;
  color: #ddd;
}

.day.today {
  border: 1px solid #00ff6a;
  border-radius: 6px;
}

.day.today .date {
  color: #00ff6a;
}

.today-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  z-index: 2;
  font-size: 0.55rem;
  padding: 1px 5px;
  border-radius: 12px;
  font-weight: bold;
  background: #00ff6a;
  color: #000;
}

.day.holiday {
  background-color: #ffebee !important;
  color: #b71c1c !important;
  border-left: 4px solid #b71c1c;
}

.event {
  margin-top: 4px;
  font-size: 0.6rem;
  background: #ff4444;
  color: #fff;
  padding: 2px 4px;
  border-radius: 4px;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

/* Modal */
#modalBackdrop {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  z-index: 999;
}

#eventModal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #222;
  color: #fff;
  padding: 1.5em;
  border-radius: 8px;
  max-width: 400px;
  width: 90%;
  z-index: 1000;
  display: none;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
  text-align: center;
}

#eventModal.visible,
#modalBackdrop.visible {
  display: block;
}

#eventModal h3 {
  margin-top: 0;
  font-size: 1.2rem;
  color: #2e7d32;
}

#eventList {
  margin: 1em 0;
  padding-left: 1em;
}

#eventModal ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#eventModal li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
}

#closeModal {
  margin-top: 1em;
  background: #444;
  color: #fff;
  padding: 0.5em 1em;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

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

  .hero-photo {
    width: 160px;
    height: 160px;
  }

  .about-calendar-section {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .day .date {
    font-size: 0.8rem;
  }

  .today-badge {
    font-size: 0.5rem;
    padding: 1px 4px;
  }

  .event {
    font-size: 0.5rem;
  }
}
