/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #fff;
    line-height: 2;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Navigation Bar */
nav {
    display: flex;
    flex-wrap: wrap;      /* allow a second row */
    align-items: center;
    gap: 1rem;    justify-content: space-between;
    align-items: center;
    background-color: #09f115;
    padding: 1rem 2rem;
    color: #fff;
    position: relative;
    z-index: 10;
}

nav .logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

nav .logo img {
    height: 80px;
    margin-right: 10px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    margin: 0;
}

.logo-text span {
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
}

.logo-text .slogan {
    font-size: 0.9rem;
    font-style: italic;
    color: #fff;
    text-align: center;
}
.logo-text .slogan:hover{
    font-size: 1.1rem;
    font-weight: 600;
}

nav .menu-toggle {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    display: none;
    cursor: pointer;
}

nav .nav-links {
    display: flex;
    gap: 1.5rem;
}

nav .nav-links a {
    color: #070606;
    font-size: 1rem;
    font-weight: 700;
    transition: color 0.3s;
}

nav .nav-links a:hover {
    color: rgb(194, 5, 5);
    font-size: 1.2rem;
}

/* ─── Search bar ─────────────────────────── */
nav .search-box {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 1.2rem;
}

nav .search-box input {
  width: 250px;
  padding: 6px 10px;
  border: none;
  border-radius: 15px;
  font-size: 0.9rem;
  transition: width .25s ease;
}

nav .search-box button {
  background: #28a745;
  color: #fff;
  border: none;
  padding: 6px 10px;
  border-radius: 50%;
  cursor: pointer;
  transition: background .3s;
}

.search-box button:hover { background:#1e8b36; }
/* search bar sits on its own full-width row */
nav .search-box {
  flex: 1 0 100%;       /* 100% width, pushes to next line */
  margin-top: 6px;      /* space from first row */
}

/* optional: centre it */
nav .search-box input { max-width: 280px; }
nav .search-box { justify-content: center; }



/* 1️⃣  Reduce default top/bottom padding for every .section */
.section {
  padding-block: 1rem;   /* was 2–4 rem */
}

/* 2️⃣  Trim the vertical gap in grids & cards */
.card-grid,
.team-grid {
  gap: 1rem;                /* was 1.5–2 rem */
}
.card,
.card-content {
  padding-block: 0.8rem;    /* was 1rem */
}

/* 3️⃣  Nudge <h2>/<h3>/<p> margins so text blocks sit closer */
.section h2     { margin-block: 0 1rem; }
.card h3        { margin-block: 0 0.5rem; }
p, ul           { margin-block: 0.4rem 0.8rem; }

/* 4️⃣  Shrink the carousel height on desktop for less scroll “dead space” */
header { height: 240px; }   /* was 300px */

/* 5️⃣  Optional: give sections subtle alternating background colour */
.section:nth-of-type(odd)   { background: #fafafa; }
.section:nth-of-type(even)  { background: #ffffff; }


.icon-lg {
  font-size: 48px;
  color: #32CD32;
  margin-bottom: 0.6rem;
}
.card.vision i, .card.mission i {
  display: block;
  text-align: center;
}

.card.vision, .card.mission {
  text-align: center;
}
.team-member .title {
  font-weight: 600;
  color: #32CD32;
  margin-bottom: 0.3rem;
}
.team-member .bio {
  font-size: 0.85rem;
  color: #555;
  margin-top: 0.2rem;
}
.team-member .bio:hover{
    font-size: 1.1rem;
}


/* Dark mode styles */
.dark-mode {
  background-color: #121212;
  color: #f0f0f0;
}

.dark-mode nav,
.dark-mode footer {
  background-color: #1e1e1e;
  color: #f0f0f0;
}

.dark-mode .card,
.dark-mode .card-content,
.dark-mode .section {
  background-color: #1c1c1c;
  border-color: #333;
}

.dark-mode nav .nav-links a {
  color: #e3eaf0;
}
.dark-mode .team-member{
    background-color: #1c1c1c;
}
.dark-mode #contact p{
    color: #ccc;
}
.dark-mode .team-member h3{
    color: #ccc;
}
.dark-mode .team-member .bio{
    color: #ccc;
}
#theme-toggle {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  margin-left: 12px;
}



@media (max-width: 768px) {
    nav .menu-toggle {
        display: block;
    }
    
    nav .nav-links {
        display: none;
        flex-direction: column;
        background-color: #000;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 1rem 0;
        
    }
    nav .nav-links a {
        color: #f7eeee;
        margin-left: 15px;
    }
    
    nav .nav-links.active {
        display: flex;
    }
    .logo-text span  {
        font-size: 1rem;
        font-weight: 700;
    }
    .search-box input {       /* hide text box */
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
  }
  .search-box.active input { /* reveal when active */
    position: static;
    opacity: 1;
    pointer-events: auto;
    width: 140px;
  }
}

/* highlight found section */
.highlight-flash {
  animation: flashBg 3s ease-out;
}
@keyframes flashBg {
  0%   { background: #fff7c8; }
  100% { background: transparent; }
}

/* visually hidden helper */
.sr-only {
  position: absolute;
  left: -9999px;
}

/* Header & Carousel */
header {
    position: relative;
    height: 300px;
    color: #fff;
    overflow: hidden;
}

.carousel {
    display: flex;
    position: absolute;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.carousel-item {
    flex: 1;
    min-width: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

.carousel-text {
    background-color: rgba(0, 0, 0, 0.6);
    padding: 1rem;
    border-radius: 8px;
}


.carousel-item h1 {
    font-size: 2.5rem;
    margin: 0;
}

.carousel-item p {
    font-size: 1.2rem;
}

.carousel-text .slogan {
    font-size: 1.2rem;
    font-weight: bold;
    margin-top: 1rem;
    color: #fff;
}


/* Section Styles */
.section {
    padding: 1rem 0.5rem;
    margin: 0 auto;
    max-width: 1200px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    align-items: center;
}

.card {
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 2rem;
}

.card-content {
    padding: 1rem;
    font-weight: bold;
}

.card-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.section h2 {
    text-align: center;
    color: #32CD32;
}

/* Leadership Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    justify-items: center;
    align-items: center;
}

.team-member {
    text-align: center;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
}

.team-member img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin-bottom: 0.5rem;
}

.team-member h3 {
    font-size: 1.2rem;
    margin: 0.5rem 0;
    color: #333;
}

.team-member p {
    font-size: 0.9rem;
    color: #555;
}

/* Contact Section */
#contact {
    background-color: #f4f4f9;
    padding: 4rem 2rem;
    text-align: center;
    color: #333;
}

#contact h3 {
    font-size: 2rem;
    color: #32CD32;
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-weight: bold;
}

#contact p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* ===== Contact grid (info + map side-by-side) ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.map-wrapper iframe {
  width: 100%;
  min-height: 320px;
  border: 0;
  border-radius: 8px;
}


/* Media Queries for Responsiveness */
@media (max-width: 768px) {

    #contact {
        padding: 3rem 1rem;
    }

    #contact h2 {
        font-size: 2rem;
    }

    .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* Footer */
footer {
  background-color: #000;
  color: #fff;
  text-align: center;
  padding: 1.2rem 0;
}

footer .social-links {
  margin-top: 0.6rem;
}

footer .social-links a {
  color: #32CD32;        /* TEPA green */
  margin: 0 0.5rem;
  font-size: 1.25rem;
  transition: color 0.3s;
}

footer .social-links a:hover {
  color: #90EE90;        /* lighter green on hover */
}


