@font-face {
  font-family: "Alata";
  src: url(../assets/fonts/Alata/Alata-Regular.ttf);
  font-weight: 400;
  font-style: normal;
}

.nav-toggle-label {
  display: none;
  font-size: 2rem;
  color: #006400;
  position: absolute;
  right: 10px;
  cursor: pointer;
}

.nav-icon {
  display: none;
}

.nav-bars {
  display: inline;
}

.nav-close {
  display: none;
}

.nav-toggle-checkbox:checked + .nav-toggle-label .nav-bars {
  display: none;
}

.nav-toggle-checkbox:checked + .nav-toggle-label .nav-close {
  display: inline;
}

body {
  font-family: "Alata";
  margin: 0;
  padding: 0;
  background-color: #f0f4f2;
  color: #333;
}

header {
  background-color: #fff;
  padding: 15px 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.logo {
  text-decoration: none;
  color: #006400;
  font-size: 1.8rem;
  font-weight: bold;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 20px;
}

nav a {
  text-decoration: none;
  color: #006400;
  font-weight: bold;
  padding: 5px 10px;
  border-radius: 5px;
}

nav a:hover {
  color: #f481d7;
  border-radius: 1px;
}

p.mission-text::first-letter {
  font-size: 3em;
  font-weight: bold;
  color: #006400;
  margin-right: 5px;
}

h1,
h2,
h3 {
  color: #006400;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

main {
  max-width: 1100px;
  margin: 20px auto;
  padding: 20px;
}

section {
  background-color: #fff;
  border-radius: 10px;
  padding: 40px;
  margin: 24px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

a.cta-button {
  display: inline-block;
  background-color: #4caf50;
  color: #fff;
  padding: 15px 30px;
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  transition: background-color 0.3s, transform 0.3s;
}
a.cta-button:hover {
  background-color: #45a049;
  transform: scale(1.05);
}

footer {
  background-color: #006400;
  color: #fff;
  text-align: center;
  padding: 20px;
  margin-top: 20px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.flex-container {
  display: flex;
  gap: 20px;
}

.flex-item {
  min-width: 280px;
  flex: 1;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.team-card {
  background: #fff;
  border-radius: 12px;
  border: 2px solid rgb(0, 0, 0, 0.5);
  padding: 20px;
  text-align: center;
}

.team-card img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  margin-top: 24px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.responsive-video {
  width: 100%;
  height: auto;
  overflow: hidden;
  position: relative;
  padding-bottom: 56.25%;
}

.responsive-video iframe {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

table {
  border-collapse: collapse;
  width: 100%;
  margin-top: 20px;
}

td,
th {
  border: 1px solid #ddd;
  text-align: center;
  padding: 10px;
}

th {
  background-color: #006400;
  color: #fff;
}

/* =================
        Form
    ===============*/

form {
  display: grid;
  gap: 15px;
}

form label {
  font-weight: bold;
}

form input,
form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
  font-size: 1rem; /* 16px * 1 =16px */
}

form button {
  background-color: #4caf50;
  color: #fff;
  padding: 15px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

form button:hover {
  background-color: #45a049;
}

.form-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.form-group input[type="checkbox"] {
  line-height: 1;
}

.form-group label {
  line-height: 0.9;
}

.form-group input {
  margin: 0;
  width: auto;
  min-height: 0;
}

/*===============
 Media Queeries
 ===============*/

@media (max-width: 900px) {
  .nav-toggle-label {
    display: block;
  }

  nav ul.nav-list {
    display: block;
    position: absolute;
    top: 50px;
    left: 0;
    opacity: 0;
    background-color: #fff;
    width: 100%;
    box-shadow: 0 2px 10px rgb(0, 0, 0, 0.08);
    padding: 20px 0;
    text-align: right;
    right: 50px;
  }

  .nav-toggle-checkbox:checked ~ nav ul.nav-list {
    max-height: 500px;
    opacity: 1;
  }

  nav ul.nav-list {
    margin: 15px 0;
  }

  header {
    position: relative;
  }
}

@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: repeat(1, 1fr);
  }

  .flex-container {
    flex-direction: column;
  }

  table,
  thead,
  tbody,
  td,
  tr,
  th {
    display: block;
  }

  thead tr {
    position: absolute;
  }

  tr {
    border: 1px solid #ccc;
  }

  td {
    border: none;
    position: relative;
    text-align: right;
  }
}
