/*
 * File: public\css\school\calendar.css
 * Purpose: Defines presentation styles for the calendar interface.
 */
/* =============================
   HERO SECTION
============================= */
.calendar-overlay {
  background: var(--hero-overlay);
}

.calendar-overlay h1 {
  font-size: 50px;
  font-weight: 800;
  letter-spacing: 1px;
  animation: fadeInDown 1.2s ease;
}

/* =============================
   MAIN CONTENT
============================= */
.calendar-main {
  padding: 80px 0;
  display: flex;
  justify-content: center;
  background-color: #f8f9fa;
}

.calendar-container {
  width: 100%;
  max-width: 1500px; /* [OK] wider layout */
  text-align: center;
}

/* 🎉 Fun Heading */
.calendar-heading {
  color: #282f7f;
  font-size: 40px;
  font-weight: 800;
  position: relative;
  display: inline-block;
  margin-bottom: 25px;
}

.calendar-heading::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  width: 90px;
  height: 5px;
  background-color: #4279bc;
  border-radius: 3px;
  animation: slideIn 1s ease forwards;
}

@keyframes slideIn {
  from { width: 0; opacity: 0; }
  to { width: 90px; opacity: 1; }
}

.calendar-intro {
  font-size: 18px;
  color: #555;
  margin-bottom: 40px;
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* 📅 Big Calendar Display */
.calendar-embed {
  display: flex;
  justify-content: center;
}

.calendar-embed iframe {
  border-radius: 12px;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
  width: 95%; /* [OK] fills nearly entire page */
  height: 900px; /* [OK] taller calendar view */
}

.calendar-embed iframe:hover {
  transform: scale(1.01);
}

/* =============================
   ANIMATIONS
============================= */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =============================
   RESPONSIVE
============================= */
@media (max-width: 900px) {
  .calendar-overlay h1 {
    font-size: 38px;
  }

  .calendar-heading {
    font-size: 30px;
  }

  .calendar-intro {
    font-size: 16px;
    padding: 0 20px;
  }

  .calendar-embed iframe {
    width: 100%;
    height: 650px;
  }
}
