/* Global Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px; /* base size for rem scaling */
}

body, html {
  min-height: 100vh;
  font-family: 'Georgia', serif;
  background-image: url('mapbackground.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  position: relative;
  z-index: 1;
}

/* Fullscreen semi-transparent green overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-color: rgba(183, 198, 139, 0.5);
  z-index: 0;
  pointer-events: none;
}

/* Calendar Panel */
.calendar-panel {
  width: 92%;
  max-width: 1200px;
  min-height: 85vh;
  margin: 5vh auto;
  padding: 2rem;
  background-color: #696969;
  backdrop-filter: blur(4px);
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  z-index: 2;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  transition: all 0.2s ease;
}

/* Navbar INSIDE the panel */
.navbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 0;
  position: relative; /* for absolute positioning hamburger */
}

/* Nav links */
.nav-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.nav-links li a {
  text-decoration: none;
  color: #e4fc94;
  font-weight: bold;
  font-size: 1rem;
  transition: color 0.2s ease;
}

.nav-links li a:hover {
  color: #c8e664;
  text-decoration: underline;
}

/* Header: logo and title */
.calendar-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
  margin-bottom: 1rem;
  padding: 0.5rem 0 0.625rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.calendar-header > div {
  flex-grow: 1;
  min-width: 200px;
}

/* Logo styling */
.logo {
  width: clamp(70px, 12vw, 100px);
  height: auto;
  object-fit: contain;
  background-color: #696969;
}

/* Header text */
.calendar-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 0.5rem;
  color: #e4fc94;
}

.calendar-header .description {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: #dcd8d0;
}

/* Centered calendar */
iframe {
  display: block;
  margin: 0 auto;
  width: 100%;
  max-width: 850px; /* keep your original max width */
  height: clamp(400px, 65vh, 650px); /* taller as requested */
  border: none;
  position: relative;
  z-index: 2;
}

/* Hover effect */
.calendar-panel:hover {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  transform: translateY(-2px);
}

/* Footer */
footer {
  color: #dcd8d0;
  text-align: left;
  padding: 0.3rem 0;
  font-size: clamp(0.85rem, 1.1vw, 0.95rem);
}

footer a {
  color: #e4fc94;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
  color: #c8e664;
}

hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin: 1rem 0;
}

/* --------- RESPONSIVE BREAKPOINTS --------- */

/* Large tablets and small laptops */
@media (max-width: 992px) {
  .nav-links {
    gap: 1rem;
    font-size: 0.95rem;
  }
  .calendar-panel {
    padding: 1.5rem;
  }
}

/* Tablets & large phones */
@media (max-width: 768px) {
  .calendar-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .logo {
    margin-bottom: 1rem;
  }
  .nav-links {
    flex-wrap: wrap; /* allows two shorter rows */
    justify-content: flex-end;
    gap: 0.8rem;
  }
}

/* Hide hamburger on desktop */
@media (min-width: 577px) {
  .hamburger {
    display: none;
    width: 0;
    height: 0;
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    overflow: hidden;
  }
}

@media (max-width: 576px) {
  html {
    font-size: 15px;
  }

  .calendar-panel {
    padding: 1rem;
    margin: 1rem auto;
  }

  iframe {
    height: 380px;
  }

  .navbar {
    position: relative; 
  }

  /* Hamburger Button */
  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 28px;
    background: rgba(121, 121, 121, 0.8);
    border-radius: 6px;
    border: 1px solid #e4fc94;
    cursor: pointer;
    padding: 4px;
    box-sizing: border-box;
    z-index: 20; 
    transition: background-color 0.3s ease;
  }

  .hamburger:hover {
    background: rgba(121, 121, 121, 1); 
  }

  .hamburger span {
    width: 100%;
    height: 3px;
    text-align: left;
    background: #e4fc94; 
    border-radius: 2px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
  }

  /* Nav dropdown menu */
  .nav-links {
    display: none;
    flex-direction: column;
    gap: 12px;
    background-color: rgba(121, 121, 121); 
    padding: 0.75rem 1rem; 
    border-radius: 12px;
    position: absolute;
    top: 8px; 
    right: 8px; 
    min-width: max-content; 
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
    z-index: 10;
  }

  .nav-links.active {
    display: flex;
  }
}
