/* Reset + Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  background-color: #f4f4f4;
  color: #333;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header */
header {
  background: #004830; /* Chemeketa dark green */
  color: #fff;
  padding: 1rem;
  text-align: center;
}
header img {
  max-height: 200px;
  vertical-align: middle;
}
header h1 {
  margin-top: 0.5rem;
  font-size: 1.8rem;
}
.logo-box {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background: #fff;
  border-radius: 50%;
  padding: 1px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.logo-box img {
  width: 160px;
  height: auto;
}

/* Navigation */
nav {
  background: #006644;
  padding: 0.5rem;
  text-align: center;
}
nav #menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
}
nav #menu-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
}
nav a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}
nav a:hover {
  text-decoration: underline;
}

/* Photo Carousel */
.photo-carousel {
  margin: 1rem auto;
  width: 100%;
  overflow: hidden;
  position: relative;
}

.carousel-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.carousel-track {
  display: flex;
  gap: 1rem;
  transition: transform 0.1s linear;
}

.carousel-track img {
  flex: 0 0 auto;
  width: 200px;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s;
}

/* Fade effect at ends */
.photo-carousel::before,
.photo-carousel::after {
  content: '';
  position: absolute;
  top: 0;
  width: 80px;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.photo-carousel::before {
  left: 0;
  background: linear-gradient(to right, #f4f4f4 0%, transparent 100%);
}

.photo-carousel::after {
  right: 0;
  background: linear-gradient(to left, #f4f4f4 0%, transparent 100%);
}

/* Main Layout */
main {
  flex: 1;
  max-width: 1200px;
  margin: auto;
  padding: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-gap: 1.5rem;
}

/* Box Styling with Sticky Header and Scrollable Content */
.box {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  height: 300px; /* fixed height for all boxes */
}

/* Header inside box */
.box-header {
  background: #004830;
  color: #fff;
  padding: 0.5rem 1rem;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  flex-shrink: 0; /* prevents shrinking */
  box-shadow: 0 2px 2px rgba(0,0,0,0.1);
}

.box-header h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: bold;
}

/* Scrollable content */
.box-content {
  padding: 1rem;
  overflow-y: auto;
  flex: 1; /* fills remaining space */
}

/* Scrollbar styling */
.box-content::-webkit-scrollbar {
  width: 8px;
}

.box-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.box-content::-webkit-scrollbar-thumb {
  background: #006644;
  border-radius: 4px;
}

.box-content::-webkit-scrollbar-thumb:hover {
  background: #004830;
}

/* Calendar Container (responsive) */
.calendar-container {
  position: relative;
  width: 100%;
  padding-top: 75%;
  overflow: hidden;
}
.calendar-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* tips box buttons */
.tip-buttons {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.tip-buttons button {
  background: #006644;
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}

.tip-buttons button:hover {
  background: #004830;
}

/* Footer */
footer {
  background: #004830;
  color: #fff;
  text-align: center;
  padding: 1rem;
  margin-top: auto;
}

/* Mobile Menu */
@media (max-width: 768px) {
  nav #menu-toggle {
    display: inline-block;
  }
  nav #menu-links {
    display: none;
    flex-direction: column;
    margin-top: 0.5rem;
  }
  nav #menu-links.show {
    display: flex;
  }
  header h1 {
    font-size: 1.4rem;
  }

  /* Make boxes slightly shorter on mobile */
  .box {
    height: 250px;
  }
}
