html {
  font-size: clamp(11px, 1.2vw, 18px);
}

header {
  display: flex;
  width: 100vw;
  height: 15vh;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  color:#000000;
  background-color: #fff7e0; 
}

nav {
  padding-left: 20px;
}

a {
  text-align: center;
}

section {
  margin: 5vh;
  background-image: url('syo.jpg');
  /* font-family: 'Montserrat', sans-serif;
  color:#3c5169;
  background-color: #fff7e0;  */
}

body {
  font-family: 'Montserrat', sans-serif;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  background-color: #f7fff5;
  margin: 0px;
  scroll-behavior: smooth;
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 80px;
}

#get-involved {
  margin: 180px 60px;
  gap: 40px;
}

#get-involved h3 {
  justify-content: space-between;
}

.main-reference {
  padding-right: 20px;
  padding-left: 20px;
}

div {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

footer {
  display: flex;
  width: 100vw;
  margin-top: 20px;
  justify-content: space-between;
}

.navbar {
  background-color: #c4ffb5; 
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.navbar a {
  color: #000000;
  text-decoration: none;
  font-size: 1.25rem;
  flex-shrink: 1;
  font-weight: 700;
  letter-spacing: 1px;
}

*, *::before, *::after {
  box-sizing: border-box;
}
.top-banner {
  width: 100%;
  height: auto;
  display: block;
}

.logo {
  height: 100%;
}

.logo img {
  height: 100%;
}

.content {
  padding: 40px;
  padding-top: 20px;  
  min-height: 100vh;
  box-sizing: border-box;
}

.content a {
  text-decoration: none;
  color: #c4ffb5;
}

.category {
  margin-bottom: 40px;
}

.category h2 {
  font-family: 'Montserrat', sans-serif;
  color: rgb(0, 0, 0);
  font-size: .3rem;
  margin-bottom: 10px;
  border-bottom: 2px solid #c4ffb5;
  padding-bottom: 5px;
}

#view-toggle {
  margin-top: 20px;
  padding: 20px 30px;
  font-size: 1.2rem;
  font-weight: bold;
  font-family: 'Montserrat', sans-serif;
  background: #c4ffb5;
  border-radius: 14px;
  border: 2px solid #b2fa9f;
}

#view-toggle:hover {
  color: #6dc77d;
  background: #d6ffca;
  border: 2px solid #c4ffb5;
}

#resource-container {
  width: 90%;
}

.card-view-container {
  width: 90%;
}

.list-view-container {
  width: 100%;
  display: none;
}

#resource-container.list-mode .card-view-container {
  display: none;
}

#resource-container.list-mode .list-view-container {
  display: block;
}

.projects-grid {
  display: flex;
  flex-direction: column;
  background-image: var(--bg);
  background-size: cover;
  background-position: center;
  margin: 40px 30px;
  width: 100%;
  max-width: 1100px; 
  border-radius: 14px;
  box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.8);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.projects-grid.active {
  opacity: 1;
  transform: translateY(0);
}

.projects-grid:hover {
  transform: translateY(-5px);
  box-shadow: 5px 14px 20px rgba(0, 0, 0, 0.8);
}

.project-card {
  background: linear-gradient(to top,rgba(0,0,0,0.9), rgba(0,0,0,0));
  border-radius: 14px;
  gap: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  width: 100%;
  max-width: 1100px;
  width: 100%;
  height: 50vh;
  padding: 20px;
}

.project-info {
  position: absolute;
  opacity: 1;
}

.project-links {
  position: absolute;
  inset: 0;
  gap: 20px;
  opacity: 0;
}

.project-links a {
  font-size: 2rem;
}

.project-card:hover .project-links {
  opacity: 1;
}

.project-card:hover .project-info {
  opacity: 0;
}

.project-card:hover {
  background: rgba(0, 0, 0, 0.7);
}

.first-card {
  background: #c4ffb5;
  border-radius: 14px;
  border: 4px solid #b2fa9f;
  box-shadow: 5px 8px 20px rgba(196, 255, 181, 0.15);
  gap: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1100px;
  width: 100%;
  height: 100%;
  margin: 10px;
}

.first-card:hover {
  transform: 5px 14px 28px rgba(196, 255, 181, 0.15);
  outline: 3px solid #ffc729;
}

.first-card img {
  object-fit: cover;
  border-radius: 12px;
  flex-shrink: 0;
  width: 100%;
  height: 220px;
}

.project-info {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 10px;
  margin: 10px;
}

.project-info p {
  margin: 0px;
  color: #ffffff;
}

.internal-link {
  margin-top: auto;
  font-weight: 700;
  color: #fff;
}

.container {
  display: flex;
  width: 100%;
  height: 85vh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: justify;
  gap: 30px;
  background-image: url('syo.jpg');
  background: linear-gradient(
  rgba(0,0,0,0.8),
  rgba(0,0,0,0.8)
);
  padding: 0px 4rem;
  padding-bottom: 20px;
}

.menu-toggle {
  display: none;
  font-size: 5rem;
  color: white;
  cursor: pointer;
  position: absolute;
  right: 1.5rem;
}

.nav-links {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 2rem;
  margin: 0px 30px;
  padding: 0;
}


@media (max-width: 1000px) {
  .navbar {
    gap: 0px;
    justify-content: flex-start;
  }

  .navbar a {
    font-size: 1.125rem;
  }

  .navbar h2 {
    margin: 10px 0px;
  }

  .content {
    padding: 20px;
  }

  h1 {
    font-size: 1.75rem;
  }

  p {
    font-size: 1rem;
  }

  img {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    align-items: center;
    background-color: #c4ffb5;
    color: rgb(0, 0, 0);
    position: absolute;
    left: 0px;
    top: calc(15vh - 2px); 
    width: 100vw;
    gap: 0px;
    margin: 0px;
    box-shadow: 0 15px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
  }

  .nav-links {
    border: 5px solid #b2fa9f;
  }
  
  .nav-links li, button {
    display: flex;
    align-items: center;
    padding: 20px 0px;
  }

  .nav-links li a {
    display: flex;
    justify-content: center;
  }

  .nav-links.show {
    display: flex; 
  }
}


.section-label {
  margin: 0px;
  text-align: left;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #95d583;
}

.project-info h3 {
  font-size: 1.4rem;
}

.event-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-top: 40px;
  font-size: 1rem;
}

.event-section a {
  color: #000000;
  font-weight: 700;
}

.event1-button {
  margin-top: 20px;
  padding: 20px 30px;
  font-size: 1.2rem;
  font-weight: bold;
  font-family: 'Montserrat', sans-serif;
  background: #c4ffb5;
  border-radius: 14px;
  border: 2px solid #b2fa9f;
}

.event1-button a {
  color: #000000;
  text-decoration: none;
  font-size: 1rem;
  font-family: 'Montserrat', sans-serif;
}

.event1-button:hover {
  cursor: pointer;
  background: #d6ffca;
  border: 2px solid #c4ffb5;
}

.event1-button:hover a {
  color: #6dc77d;
}

h1 {
  margin: 20px;
  font-size: clamp(42px, 10vw, 120px);
  font-weight: 900;
}

h2 {
  margin: 20px;
  font-size: clamp(35px, 8vw, 15px);
  font-weight: 900;
}

.body {
  justify-content: center;
  max-width: fit-content;
  font-size: 1.125rem;
  line-height: 1.6;
  color: #c4ffb5;
}

.home-section {
  display: flex;
  width: 100%;
  height: 85vh;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 0px;
  background: url("images/hero_section_img.jpg");
  background-attachment: fixed;
}

.home-section h1 {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1.5s ease;
}

.home-section h1.show {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
}

.home-section p {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1.2s ease;
}

.home-section p.show {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.8s;
}


.footer-sections {
  display: flex;
  align-items: flex-start;
  width: 100vw;
  justify-content: space-around;
  flex-direction: row;
  background-color: #c4ffb5;
  gap: 25px;
  padding: 40px 0px;
  position: relative;
}

.footer-section ul {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.footer-section a {
  color: #447d4e;
  font-weight: bold;
}

.container a {
  margin-top: 20px;
}

a {
  display: flex;
  align-items: center;
  color: #ffffff;
  text-decoration: none;
}
a:hover {
  color: #6dc77d;
}
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.search-bar {
  margin: 20px;
  width: calc(100% - 40px);
  max-width: 500px;
  padding: 12px 16px;
  border-radius: 10px;
  border: 2px solid #000000;
  font-size: 1rem;
  justify-content: center;
  display: block;
}

@media (max-width: 800px) {
  .footer-sections {
    flex-direction: column;
    align-items: center;
  }
}

.menu {
  position: relative;
  display: inline-block;
}
.menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.25rem;
  font-family: 'Montserrat', sans-serif;
  color: #000000;
  text-decoration: none;
  flex-shrink: 1;
  font-weight: 700;
  letter-spacing: 1px;
}

.dropdown {
  display: none;
  position: absolute;
  background: #666;
  min-width: 140px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.dropdown a {
  display: block;
  padding: 10px;
  color: white;
  text-decoration: none;
}

.dropdown a:hover {
  background: #555;
}

.menu:hover .dropdown {
  display: block;
}

.no-pic-card {
  display: flex;
  flex-direction: column;
  max-width: 1100px;
  width: 100%;
  background: #c4ffb5;
  border-radius: 14px;
  border: 4px solid #b2fa9f;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0px 0px 20px rgba(196, 255, 181, 0.8);
  gap: 24px;
  margin: 30px;
  padding: 20px;
}

.no-pic-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(0,0,0,0.2);
}

.no-pic-card-wrapper a {
  color: #447d4e;
  font-weight: bold;
}

.project-linkyyy {
  gap: 20px;
}

.project-linkyyy a {
  font-size: 1.25rem;
  color: rgb(74, 96, 69);
}

.project-linkyyy:hover a {
  opacity: 1;
  color: #55b867;
}

.card-view .projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.list-view .projects-grid {
  display: block;
}

.list-view .project-card {
  margin-bottom: 15px;
  display: flex;
  justify-content: space-between;
  padding: 10px;
  border: 1px solid #ddd;
}
html {
  scroll-behavior: smooth;
}
