/* === Root Theme Variables === */
:root {
  --primary-color: #003366;
  --highlight-color: #5274ffba;
  --text-color: #000;
  --background-light: #ffffff;
  --overlay-dark: rgba(0, 0, 0, 0.388);
  --caption-bg: rgba(255, 255, 255, 0.95);
}

/* === Reset & Fonts === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  font-family: 'Poppins', sans-serif;
  scroll-behavior: smooth;
}

h1, h2, h3 {
  font-family: 'Merriweather', serif;
}

p, li {
  font-size: 1.3rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

a {
  color: var(--primary-color);
  text-decoration: none;
}

a:focus, .nav-btn:focus {
  outline: 2px solid var(--highlight-color);
  outline-offset: 3px;
}

ul {
  padding-left: 20px;
}

/* === Header === */
header {
  background: linear-gradient(-45deg, #001c37, #00518e, #0167cd, #1e8fff);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  color: white;
  padding: 16px 30px;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

nav a {
  color: white;
  font-weight: bold;
  font-size: 1.1rem;
  transition: color 0.5s ease;
}

nav a:hover {
  color: var(--highlight-color);
}

/* === Main Layout === */
main {
  margin-top: 90px;
}

.section {
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 40px;
  transition: background-color 0.6s ease;
  position: relative;
}

.bg-bright-blue {
  background: linear-gradient(to bottom right, #98c9f4, #ffffff);
}

.bg-dark {
  background: linear-gradient(to bottom right, #111, #222);
}

/* === Section Divider === */
.section-divider {
  height: 40px;
  background: linear-gradient(to bottom, transparent, #fff);
}

/* === Home Section === */
.home {
  background-image: url("Capture.PNG");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  position: relative;
  width: 100vw;
  height: 140vh;
}

.home .overlay {
  background-color: transparent; /* removes dark overlay */
  padding: 0px;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.home h2 {
  font-size: 3rem;
  margin: 10px;
  animation: fadeSlideIn 1s ease-out forwards;
  animation-delay: 0.3s;
  opacity: 0;
}

.home p {
  font-family: "Merienda", cursive;
  font-size: 1.9rem;
  margin-top: 10px;
  font-weight: bold;
  color: rgb(255, 140, 16);
  animation: fadeSlideIn 1s ease-out forwards;
  animation-delay: 0.7s;
  opacity: 20;
}

@keyframes fadeSlideIn {
  0% { opacity: 0; transform: translateY(40px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* === Side-by-side Mission Boxes === */
.side-by-side {
  display: flex;
  gap: 50px;
  justify-content: center;
  flex-wrap: wrap;
}

.box {
  background: var(--background-light);
  border-radius: 12px;
  padding: 30px;
  flex: 1 1 400px;
  width: 1000px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.box h2 {
  margin-bottom: 15px;
  color: var(--primary-color);
}

.box ul {
  text-align: left;
}

.box li {
  font-size: 1.1rem;
}

/* === Section Specific Styles === */
#mission {
  min-height: 200vh;
}

#mission ul {
  font-family: "Rancho", cursive;
}

#about p {
  font-family: "Headland One", serif;
}

main h1 {
  color: rgb(0, 6, 70);
  margin-bottom: 40px;
  font-size: xx-large;
  font-weight: bolder;
}

main h2 {
  margin-bottom: 30px;
}

/* === Trustees Section === */
.trustee-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  margin-top: 40px;
}

.trustee-card {
  background: var(--background-light);
  border-radius: 12px;
  padding: 25px;
  width: 250px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, background 0.4s ease;
}

.trustee-card:hover {
  transform: translateY(-10px);
  background-color: #fff4e6;
}

.trustee-card h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.trustee-card p {
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.trustee-img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: block;
  border: 3px solid #fff;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* === Contact Section === */
#contact p {
  font-size: 1rem;
  margin: 5px;
}

#contact h3 {
  margin-left: 5px;
  margin-top: 15px;
  margin-bottom: 10px;
}

#contact a {
  color: rgb(255, 0, 0);
}

#contact .translucent-box {
  background-color: rgba(255, 255, 255, 0.486);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  max-width: 1200px;
  margin: auto;
}

/* === Translucent Utilities === */
.translucent-box {
  background-color: rgba(255, 255, 255, 0.342);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  max-width: 1200px;
  margin: auto;
}

.translucent {
  background-color: rgba(255, 255, 255, 0.447);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.379);
  border-radius: 12px;
  padding: 30px;
  color: var(--text-color);
  text-align: left;
}

/* === Our Works Slider === */
.slider-container {
  position: relative;
  max-width: 100%;
  overflow: hidden;
  padding: 10px;
}

.slider {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
}

.slide {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  min-height: 100%;
  box-sizing: border-box;
}

.slide.active {
  display: flex;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.caption {
  background-color: var(--caption-bg);
  margin-top: 20px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  width: 90%;
  max-width: 800px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.caption h3 {
  margin-bottom: 10px;
}

.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.8);
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  font-size: 2rem;
  color: #333;
  border-radius: 50%;
  z-index: 10;
  transition: background 0.3s;
}

.nav-btn:hover {
  background: rgba(200, 200, 200, 0.9);
}

.prev { left: 10px; }
.next { right: 10px; }

/* === Responsive Design === */
@media (max-width: 768px) {
  nav {
    flex-direction: column;
    align-items: flex-start;
  }

  nav ul {
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
  }

  .section, .translucent-box {
    padding: 20px;
    min-height: auto;
  }

  .home h2 {
    font-size: 2.2rem;
  }

  .home p, p, li {
    font-size: 1rem;
  }

  .slide img {
    width: 100%;
    height: 100%;
  }

  .caption {
    padding: 10px;
    font-size: 0.95rem;
  }
}

.slide {
  display: none;
  transition: opacity 0.5s ease-in-out;
}

.slide.active {
  display: block;
}

