*{
  margin: 0;
  padding: 0;
}
/* =============================
   GENERAL RESET & TYPOGRAPHY
============================= */
body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f5f7fa; /* soft neutral background */
  color: #333;
}

/* =============================
   EVENT SUMMARY SECTION AND CALENDER
============================= */
#calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  margin-top: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
}

#calendar div {
  border: 1px solid #eee;
  padding: 15px;
  text-align: center;
}

#calendar .day-header {
  background: #f1f5f9;
  font-weight: bold;
}

#calendar .event-day {
  background: #fee2e2;
  color: #b91c1c;
  font-weight: bold;
}

#event-legend {
  margin-top: 100px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}

.event-guidance {
  max-width: 1160px;
  margin: 0 auto;
  padding: 32px 24px;
}

.managed-events-section,
.managed-notices-section {
  width: min(calc(100% - 48px), 1160px);
  margin: 0 auto;
  padding: 24px 0 40px;
}

.managed-notices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 20px;
}

.managed-notices-grid .notice-blog-card {
  min-width: 0;
}

@media (max-width: 600px) {
  .event-guidance {
    padding: 24px 16px;
  }

  .managed-events-section,
  .managed-notices-section {
    width: min(calc(100% - 32px), 1160px);
  }
}

.event-guidance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.event-guidance-grid article {
  padding: 22px;
  border: 1px solid #e2e9e4;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(23, 65, 38, 0.07);
}

.event-guidance-grid article > i {
  color: #228b45;
  font-size: 1.4rem;
}

.event-guidance-grid h3 {
  margin: 12px 0 6px;
  color: #173b24;
}

.event-guidance-grid p {
  color: #5a665f;
  line-height: 1.6;
}

.event-guidance-grid a {
  display: inline-flex;
  gap: 8px;
  margin-top: 12px;
  color: #176b35;
  font-weight: 700;
}

.event-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ef4444;
  display: inline-block;
}

/* =============================
   LOADER SECTION
============================= */
#loader {
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(245, 247, 250, 0.95); /* soft overlay */
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loader-content {
  text-align: center;
}

.loader-logo {
  width: 120px;
  margin-bottom: 15px;
  animation: pulseLogo 1.8s infinite ease-in-out;
}

@keyframes pulseLogo {
  0% { opacity: 0.7; transform: scale(0.95); }
  50% { opacity: 1; transform: scale(1.05); }
  100% { opacity: 0.7; transform: scale(0.95); }
}

.loader-content h2 {
  margin: 10px 0;
  font-size: 2rem;
  color: #228B22;
}

.loader-content p {
  font-size: 1rem;
  color: #666;
}

.spinner {
  border: 6px solid #e0e0e0;
  border-top: 6px solid #228B22;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
  margin: 20px auto;
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}

#loader.hidden {
  opacity: 0;
  visibility: hidden;
}

/* =============================
   FOOTER SECTION
============================= */
.footer {
  background: #0b0c10;
  color: #fff;
  padding: 60px 20px 30px;
  font-family: 'Segoe UI', sans-serif;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: auto;
}

.footer h3, .footer h4 {
  margin-bottom: 15px;
  color: #32CD32;
  font-weight: 600;
}

.footer p, .footer a {
  font-size: 1rem;
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: #ff9800;
}

.footer ul {
  list-style: none;
  padding: 0;
}

.footer ul li {
  margin-bottom: 12px;
}

.footer-map iframe {
  margin-top: 10px;
  border-radius: 10px;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid #444;
  margin-top: 40px;
  padding-top: 15px;
  font-size: 0.9rem;
  color: #aaa;
}

/* =============================
   RESPONSIVE
============================= */
@media screen and (max-width: 768px) {
  #event-summary {
    padding: 30px 20px;
  }

  #event-summary h1 {
    font-size: 2.2rem;
  }

  #event-summary h2 {
    font-size: 1.6rem;
  }
}
