/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Colors */
:root {
  --primary: #014753;   /* dark teal */
  --accent-green: #4FCF98;
  --accent-blue: #E6F7FB;
  --light-bg: #ffffff;
  --text: #333333;
}

/* Make body take full viewport height */
html, body {
  height: 100%;
}

/* Body */
body {
  font-family: Arial, sans-serif;
  background-color: var(--light-bg);
  color: var(--text);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
}

/* Push footer to bottom */
main {
  flex: 1;
}


/* Container */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header */
header {
  background-color: var(--primary);
  color: white;
  padding: 0.5rem 0;
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  height: 65px;
}

/* Navigation */
nav {
  position: relative; /* for positioning the burger if needed */
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

nav a:hover {
  color: var(--accent-green);
}

/* Hero Section */
.hero {
  background-color: #E6F7FB; /* softer blue */
  color: var(--primary);     /* dark teal text for contrast */
  text-align: center;
  padding: 4rem 1rem;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: #333; /* fallback dark grey for good readability */
}

/* Ensure everything in the hero container is centered */
.hero .container {
  display: flex;
  flex-direction: column;  /* stack elements vertically */
  align-items: center;     /* center horizontally */
  text-align: center;      /* center text inside elements */
}

.hero-logo {
  height: 250px; /* bigger than header logo */
  margin: 2rem 0; /* space above and below */
}

.btn {
  display: inline-block;
  background: var(--accent-green);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  margin-top: 1rem;    /* optional extra spacing from logo */
}

.btn:hover {
  background: var(--primary);
}


/* Main */
main {
  padding: 2rem 0;
}

main h2 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

/* Footer */
footer {
  background-color: var(--primary);
  color: white;
  text-align: center;
  padding: 1rem 0;
  margin-top: 2rem;
}

/* Burger icon */
.burger {
  display: none; /* hidden by default on desktop */
  font-size: 1.8rem;
  cursor: pointer;
  color: white;
}

/* Responsive: show burger, hide links on narrow screens */
@media (max-width: 400px) {
    /* Hidden by default on small screens */
    nav ul {
    display: none;
    flex-direction: column;
    gap: 1rem;
    background-color: var(--primary);
    position: absolute;
    top: 100%; /* below nav */
    right: 0;
    width: 200px;
    padding: 1rem;
    border-radius: 0 0 5px 5px;
    z-index: 1000; /* stay on top */
    }

    /* Show menu when "active" class is added */
    nav ul.active {
    display: flex;
    }

  .burger {
    display: block;
  }
}

/* Events Section */
.events {
  padding: 3rem 1rem;
  background-color: #F9FAFB; /* soft grey to contrast hero + body */
}

.events h2 {
  text-align: center;
  color: var(--primary);
  margin-bottom: 2rem;
  font-size: 2rem;
}

/* Grid layout for cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

/* Individual card */
.card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Card hover effect */
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* Card text */
.card h3 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.card .date {
  color: var(--accent-green);
  font-weight: bold;
  margin-bottom: 0.75rem;
}

/* Gallery Section */
.gallery {
  padding: 3rem 1rem;
  background-color: #fff;
}

.gallery h2 {
  text-align: center;
  color: var(--primary);
  margin-bottom: 2rem;
  font-size: 2rem;
}

/* Carousel container */
.carousel {
  position: relative;
  max-width: 800px;
  margin: auto;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Slides wrapper */
.slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.slides img {
  width: 100%;
  height: 400px;   /* fixed height to keep all slides consistent */
  object-fit: cover; /* crops edges if necessary but keeps correct proportions */
  border-radius: 12px 12px 0 0; /* keeps top rounded corners */
}

/* Controls */
.carousel button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0,0,0,0.5);
  border: none;
  color: white;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.3s ease;
}

.carousel button:hover {
  background-color: rgba(0,0,0,0.8);
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

/* Each slide container */
.slide {
  position: relative;
  min-width: 100%;
  height: 400px; /* enforce same height as images */
}

/* Caption styling */
.caption {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: rgba(1, 71, 83, 0.85); /* primary dark teal, slightly transparent */
  color: white;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  text-align: center;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

/* Team Section */
.team {
  padding: 3rem 1rem;
  background-color: #F9FAFB; /* consistent with Events */
}

.team h2 {
  text-align: center;
  color: var(--primary);
  margin-bottom: 2rem;
  font-size: 2rem;
}

/* Categories wrapper */
.team-categories {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* Each category */
.team-category h3 {
  display: inline-block;
  margin: 0 0 1rem 0;
  font-size: 1.25rem;
  color: var(--primary);
  padding-left: 0.5rem;
  border-left: 6px solid var(--accent-green); /* small highlight */
}

/* Grid of cards inside a category */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 cards per row on wide screens */
  gap: 1.25rem;
}

/* Individual team card (re-uses card visual language) */
.team-card {
  background: white;
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.08);
  text-align: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

/* Hover lift */
.team-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}

.avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 0.9rem;
  border: 3px solid var(--accent-green); /* solid green border to match role text */
  box-shadow: 0 2px 4px rgba(0,0,0,0.08); /* optional subtle shadow for depth */
  transition: transform 0.2s ease;
}

.avatar:hover {
  transform: scale(1.05); /* optional hover pop */
}

.team-card h4 {
  margin: 0.25rem 0;
  font-size: 1.05rem;
  color: var(--primary);
}

.team-card .role {
  margin: 0.25rem 0 0.6rem 0;
  color: var(--accent-green);
  font-weight: 700;
  font-size: 0.95rem;
}

.team-card .desc {
  color: #555;
  font-size: 0.95rem;
  margin-top: auto; /* push description down if card grows */
  line-height: 1.3;
}

/* Responsive breakpoints */
@media (max-width: 1000px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .avatar { width: 100px; height: 100px; }
}

@media (max-width: 480px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
  .avatar { width: 88px; height: 88px; }
  .team-card { min-height: auto; padding: 1rem; }
  .team-category h3 { font-size: 1.1rem; }
}

/* Accordion buttons */
.accordion {
  width: 100%;
  padding: 1rem;
  font-size: 1.2rem;
  font-weight: bold;
  text-align: left;
  background: #E6F7FB;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin: 0.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.accordion:hover {
  background: #d1eef7;
}

.accordion .arrow {
  transition: transform 0.3s ease;
}

/* Accordion content */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  padding-bottom: 0.2rem;  /* added space so bottom shadows are visible */
}

.accordion-content.open {
  max-height: 1000px; /* large enough to fit cards */
  margin-bottom: 1rem;
}

/* Rotate arrow when open */
.accordion.active .arrow {
  transform: rotate(90deg);
}

.contact {
  padding: 3rem 1rem;
  background-color: #E6F7FB; /* consistent with hero section */
}

.contact h2 {
  text-align: center;
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 2rem;
}

.contact p {
  text-align: center;
  color: #333;
  margin-bottom: 0.5rem;
}

.contact a {
  color: var(--accent-green);
  text-decoration: none;
}

.contact a:hover {
  text-decoration: underline;
}

.contact-form {
  max-width: 600px;
  margin: 2rem auto 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form label {
  font-weight: 600;
  color: var(--primary);
}

.contact-form input,
.contact-form textarea {
  padding: 0.75rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1rem;
  width: 100%;
  box-sizing: border-box;
}

.contact-form button {
  align-self: flex-start;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  background-color: var(--primary);
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.contact-form button:hover {
  background-color: #013940; /* slightly darker shade of primary */
}

@media (max-width: 480px) {
  .contact-form {
    width: 100%;
  }
}

.contact-logos {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.contact-logo i {
  font-size: 2rem;
  color: #000; /* black/white by default */
  transition: color 0.3s ease, transform 0.2s ease;
}

.contact-logo:hover i {
  color: #49D2FC; /* change to a color accent on hover */
  transform: scale(1.2); /* subtle pop animation */
}

/* Simplified Team Section */
.team-simple {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.team-simple article {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.08);
}

.team-simple h3 {
  margin-top: 0;
  color: var(--primary);
  border-left: 6px solid var(--accent-green);
  padding-left: 0.5rem;
  margin-bottom: 0.75rem;
}

.team-simple p {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.4;
}

/* Mobile: stack all 4 */
@media (max-width: 768px) {
  .team-simple {
    grid-template-columns: 1fr;
  }
}