/* === GENERAL STYLES === */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
}

body {
  font-family: "Arial", sans-serif;
  background-color: #f8f9f9;
  color: #0a621c;
  font-weight: 600;
  text-align: center;
}

/* === NAVBAR === */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-top {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  background-color: #e6f4ea;
  padding: 10px 0px 15px 0px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo {
  max-width: 60px;
  height: auto;
}

.brand-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0a621c;
  white-space: nowrap;
}

.custom-navbar {
  background: none;
}

.nav-list {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  text-transform: uppercase;
  padding: 1rem 0;
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
}

.nav-list li a {
  color: #0a621c;
  text-decoration: none;
  font-size: 1.2rem;
  padding: 1.05rem;
  border-radius: 0px;
  transition: 0.3s background-color ease-in-out, 0.3s color ease-in-out;
}

.nav-list li a:hover {
  background-color: #0a8a61;
  color: white;
}
/* === EVENTS SECTION === */
.event-intro-section {
  position: relative;
  padding: 50px 10%;
  background-size: cover;
  background-position: center center;
  background-attachment: scroll;
  overflow: hidden;
}

.event-heading {
  font-size: 2rem;
  color: #0a621c;
  margin: 30px 0 10px;
  padding: 0 20px;
}

.event-heading.center {
  text-align: center;
}

.event-heading.left {
  text-align: center; /* Changed from left to center */
  padding-left: 5px;
  font-size: 1.5rem;
}

.event-cards-wrapper {
  padding: 15px 10px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.event-card {
  position: relative;
  width: 300px;
  height: 220px;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: float-in 0.6s ease forwards;
}

.event-card::after {
  content: "Click to view";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.6);
}

.event-card:hover::after {
  opacity: 1;
}

.event-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

/* Event Card Animation */
@keyframes float-in {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.event-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 138, 97, 0.75), transparent 60%);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 10px;
  backdrop-filter: blur(1px);
}

.event-date {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #0a8a61;
  color: white;
  padding: 5px 10px;
  border-radius: 6px;
  text-align: center;
  font-weight: bold;
  font-size: 0.75rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.event-month {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.event-day {
  font-size: 0.7rem;
  line-height: 1;
}

.event-info {
  margin-top: auto;
}

.event-category {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  opacity: 0.9;
  margin-bottom: 3px;
  color: #e6fff7;
  letter-spacing: 0.5px;
}

.event-title {
  font-size: 1rem;
  font-weight: 700;
  color: white;
  line-height: 1.3;
  margin: 0;
}

/* === MODAL POPUP FOR EVENTS IMAGE AND DETAILS === */
.event-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
  padding: 20px;
  overflow-y: auto; /* Allow scrolling for long descriptions */
}

.modal-content-wrapper {
    background-color: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    max-width: 700px; /* Max width for the modal content */
    width: 90%; /* Responsive width */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: #333; /* Darker text for readability */
    animation: popup 0.3s ease-in-out;
}

.event-modal img.modal-content { /* Specificity for the image within the modal */
  max-width: 100%; /* Ensure image fits within its wrapper */
  height: auto; /* Maintain aspect ratio */
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.modal-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #0a621c;
  margin-bottom: 10px;
}

.modal-description {
  font-size: 1rem;
  line-height: 1.6;
  color: #555;
  text-align: justify; /* Justify text for better readability */
  max-height: 300px; /* Limit height for description */
  overflow-y: auto; /* Add scroll for long descriptions */
  padding-right: 10px; /* Space for scrollbar */
}

.event-modal .close {
  position: absolute;
  top: 20px; /* Adjusted for better spacing */
  right: 30px; /* Adjusted for better spacing */
  color: #ffffff;
  font-size: 2.5rem;
  font-weight: bold;
  cursor: pointer;
  z-index: 10;
  transition: color 0.3s ease;
  background-color: rgba(0, 0, 0, 0.5); /* Background for better visibility */
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.event-modal .close:hover {
  color: #10B981;
  background-color: rgba(0, 0, 0, 0.7);
}

.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  color: white;
  padding: 0 15px; /* Adjusted padding */
  cursor: pointer;
  user-select: none;
  z-index: 20;
  transition: color 0.3s ease, transform 0.3s ease;
}

.nav-arrow:hover {
  color: #10B981;
  transform: translateY(-50%) scale(1.1);
}

.nav-arrow.prev {
  left: 10px;
}

.nav-arrow.next {
  right: 10px;
}

@keyframes popup {
  0% {
    transform: scale(0.95);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* === ADMIN ICON === */
#admin-icon {
  position: fixed;
  bottom: 90px;
  right: 23px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background-color: transparent;
  z-index: 1000;
  cursor: pointer;
  transition: all 0.3s ease;
}

#admin-icon:hover {
  box-shadow: 0 0 15px 5px rgba(10, 138, 97, 0.5);
  background-color: rgba(10, 138, 97, 0.1);
  transform: scale(1.05);
}

/* === FOOTER SECTION === */
footer {
  background-color: #f9f9f9;
  font-family: Arial, sans-serif;
  color: #333;
}

.footer-content {
  border-top: 1px solid #eaeaea;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  padding: 30px 60px;
}

.footer-logo {
  flex: 1;
  max-width: 300px;
  padding: 5px 0;
  text-align: left;
}

.footer-logo img {
  width: 150px;
  height: auto;
}

.footer-logo h3 {
  font-size: 18px;
  font-weight: bold;
  color: #00563b;
  margin: 5px 0;
}

.footer-logo p {
  font-size: 14px;
  color: #777;
  font-weight: normal;
}

.footer-links,
.footer-follow {
  flex: 1;
  margin: 10px 20px;
  min-width: 250px;
}

.footer-links h4,
.footer-follow h4 {
  color: #00563b;
  font-size: 18px;
  margin-bottom: 10px;
  margin: 15px 20px;
}

.footer-contact h4{
  text-align: left;
  flex: 1;
  margin: 30px 20px;
  min-width: 250px;
  color: #00563b;
  font-size: 18px;
  margin-bottom: 10px
}

.footer-links ul {
  list-style-type: none;
  padding: 0;
}

.footer-links li {
  margin: 12px 0;
}

.footer-links a {
  text-decoration: none;
  font-weight: normal;
  color: #00563b;
  font-size: 16px;
  transition: color 0.3s ease, transform 0.3s ease;
}

.footer-links a:hover {
  color: #10B981;
  transform: scale(1.05);
}

.footer-contact p {
  margin: 8px 0;
  font-size: 14px;
  font-weight: normal;
  color: #333;
  text-align: left;
}

.footer-contact img {
  width: 20px;
  vertical-align: middle;
  margin-right: 8px;
}

.footer-follow a {
  display: inline-block;
  margin-right: 12px;
}

.footer-follow img {
  width: 35px;
  height: auto;
  transition: transform 0.3s ease;
}

.footer-follow a:hover img {
  transform: scale(1.1);
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  font-size: 14px;
  color: #777;
  border-top: 1px solid #eaeaea;
  padding: 15px 0;
  font-weight: normal;
}

/* === RESPONSIVE STYLES === */

/* Tablet adjustments */
@media (max-width: 1024px) {
  .footer-content {
    flex-direction: column;
    align-items: center;
    padding: 20px;
  }
  .footer-logo, .footer-links, .footer-contact, .footer-follow {
    text-align: center;
    margin: 15px 0;
  }
   .footer-contact h4 {
      text-align: center;
  }
   .footer-contact p {
      text-align: center;
  }
}

/* Mobile & Smaller Tablet Adjustments */
@media (max-width: 768px) {
  .event-heading.left {
    padding-left: 20px;
    text-align: center;
  }
  .modal-content-wrapper {
    width: 95%;
    padding: 15px;
  }
  .modal-title {
    font-size: 1.5rem;
  }
  .modal-description {
    font-size: 0.9rem;
  }
  .event-modal .close {
    top: 10px;
    right: 10px;
    font-size: 2rem;
    width: 35px;
    height: 35px;
  }
  .nav-arrow {
    font-size: 2.5rem;
    padding: 0 10px;
  }
}

/* Mobile adjustments */
@media (max-width: 600px) {
  /* Header */
  .header-top {
    flex-direction: column;
    align-items: center;
  }
  .brand-name {
    font-size: 1rem;
    white-space: normal;
    text-align: center;
  }
  .logo {
    max-width: 50px;
  }

  /* Navbar turns vertical */
  .nav-list {
    flex-direction: row;
    justify-content: space-evenly; /* equal spacing */
    flex-wrap: nowrap;           /* bawal mag line break */
    gap: 0;                      /* tanggalin gap */
  }

  .nav-list li a {
    font-size: 0.9rem;  /* mas maliit ng konti para magkasya */
    padding: 8px 6px;
  }

  /* Footer */
  .footer-logo img {
    width: 120px;
  }
  .footer-logo h3 {
    font-size: 16px;
  }
  .footer-links a {
    font-size: 14px;
  }

  /* Icons (Admin + Chatbot) */
  #admin-icon,
  #chatbot-icon {
    width: 55px;
    height: 55px;
    bottom: 80px;
    right: 20px;
  }
  #chatbot-icon {
    bottom: 20px;
  }
}