@import url("https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Inter:wght@100;200;300;400;500;600;700;800;900&family=Lato:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400;1,700;1,900&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
  font-family: "Poppins";
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  scroll-behavior: smooth;
}

.container {
  width: 100%;
  margin: 0 auto;
}

a {
  text-decoration: none;
  color: #f6c236;
  transition: all 0.3s ease;
}

a:hover {
  color: #fff;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "DM Serif Display";
}

section {
  min-height: 100vh; /* was height: 100vh */
}

/* Navbar */

nav {
  padding: 16px 64px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 15vh;
  background-color: #0f3252;
  z-index: 1000;
  transition: all 0.3s ease;
}

.logo__img {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: top;
  width: 150px;
  transition: all 0.3s ease;
}

.nav-links {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-around;
  min-width: 55%;
  transition: all 0.3s ease;
  list-style: none;
}

.nav-link {
  color: #f6c236;
  font-size: 18px;
  font-weight: 500;
  margin-left: 8px;
}

/* hover */

.nav-link:hover {
  color: #fff;
  transition: all 0.3s ease;
  cursor: pointer;
}

/* header */

header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: baseline;
  width: 100%;
  min-height: 85vh; /* was height: 85vh */
  height: auto;
  background-color: #a9c3de;
  background-image: url(./assets/light\ tower\ coastal\ white\ right.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  padding: 16px;
}

.add {
  position: absolute;
  top: 50px;
  right: 15%;
  background-color: #f6c236;
  color: #0f3252;
  padding: 8px 16px;
  border-radius: 5px;
  font-size: 40px;
  font-weight: 600;
  transition: all 0.3s ease;
  height: 50px;
  width: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.add:hover {
  background-color: #0f3252;
  cursor: pointer;
}

.header__text-box {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: top;
  align-items: center;
}

.header__title {
  font-size: 48px;
  color: #0f3252;
  padding-bottom: 16px;
}

.descs {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  width: 100vw;
  max-width: 1200px;
  padding: 0 64px;
  overflow-y: auto; /* enable scrolling */
  height: 65vh; /* how tall the scrollable area is */
  margin-top: 20px;
  flex-wrap: nowrap; /* no wrapping needed */
}

.descs-edit {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: flex-start;
  align-items: flex-start;
  width: 100vw;
  max-width: 1200px;
  padding: 0 64px;
  overflow-y: auto;
  height: 80vh;
  margin-top: 20px;
  flex-wrap: nowrap;
  gap: 24px;
}

.cont {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: flex-start;
  width: 100vw;
  max-width: 1200px;
  padding: 0 64px;
  overflow-y: auto;
  height: 90vh;
  margin-top: 20px;
  flex-wrap: nowrap;
  gap: 24px;
}

.desc {
  width: 80%;
  max-width: 900px;
  height: fit-content;
  background-color: #0f3252;
  padding: 16px;
  border-radius: 15px;
  color: #fff;
  margin-bottom: 24px;
}

.study-image {
  max-height: 20vw;
  height: fit-content;
  margin-top: 10px;
}

.desc__info {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  height: 100%;
  gap: 16px;
}

.desc__border {
  border: #fff 5px solid;
  border-radius: 15px;
  padding: 8px 16px 16px 16px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.desc__title {
  font-size: 32px;
  font-weight: 600;
  color: #f6c236;
  margin-bottom: 24px;
}

.desc__subtitle {
  font-size: 20px;
  margin-bottom: 20px;
}

.desc__link {
  font-size: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin: 8px;
  width: 95%;
}

label {
  padding-bottom: 2px;
}

input {
  border: #fff 3px solid;
  border-radius: 3px;
  background-color: #0f3252;
  color: #fff;
  padding: 4px;
}

#message {
  height: 75px;
  border: #fff 3px solid;
  border-radius: 5px;
  background-color: #0f3252;
  color: #fff;
  padding: 4px;
}

.form {
  transition: all 200ms ease;
}

.form:hover {
  background-color: #f6c236;
  color: #0f3252;
}

.form:hover .desc__title {
  color: #0f3252;
}

.submit {
  background-color: #0f3252;
  border: #f6c236 3px solid;
  border-radius: 3px;
  padding: 8px;
  margin: 8px;
  color: #fff;
  font-family: DM Serif Display;
  font-size: 24px;
  transition: all 200ms ease;
}

.form:hover .submit {
  border: #0f3252 3px solid;
  background-color: #f6c236;
  color: #0f3252;
}

.submit:hover {
  background-color: #fff !important;
  color: #0f3252 !important;
}

.org {
  display: flex;
  flex-direction: row;
  width: 95%;
  justify-content: space-between;
}

.register {
  color: #f6c236;
  font-size: 12px;
  font-weight: 500;
}

.form:hover .register {
  color: #0f3252;
  font-size: 12px;
  font-weight: 500;
}

/* footer */

footer {
  min-width: 100%;
  display: flex;
  justify-content: left;
  position: absolute;
  bottom: 0;
  padding: 4px;
  background-color: #0f3252;
}

.footer__link {
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  margin-left: 8px;

}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
}

.modal-content {
  background-color: #0f3252;
  border: 4px solid #f6c236;
  color: white;
  width: 400px;
  max-width: 90%;
  padding: 20px;
  border-radius: 12px;
  margin: 15% auto;
  text-align: center;
}

.modal-content.success {
  border-color: #f6c236;
}

.modal-content.error {
  border-color: #ff4c4c;
}

.close {
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  color: #fff;
}

.close:hover {
  color: #f6c236;
}

.footer__info {
  color: #fff;
  font-size: 10px;
  font-weight: 500;
  /* margin-left: 32px; */
  /* position: fixed; */
  bottom: 0px;
  right: 0px;
  background-color: #0f3252;
  padding: 8px;
}

.footer__info p {
  text-align: left;
}

/* ----------------------------- */
/* 📱 RESPONSIVE ADJUSTMENTS    */
/* ----------------------------- */

@media (max-width: 900px) {
  nav {
    padding: 12px 24px;
    height: auto;
  }

  .nav-links {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    row-gap: 8px;
  }

  .header__title {
    font-size: 38px;
  }

  .desc__subtitle {
    font-size: 18px;
  }

  .descs,
  .descs-edit,
  .cont {
    width: 100%;
    padding: 0 24px;
  flex-wrap: wrap;

  }

  .desc__info {
    flex-direction: column;
  }

  .study-image {
    max-height: none;
    width: 100%;
  }

  footer {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 600px) {
  nav {
    flex-direction: column;
    gap: 10px;
  }

  .logo__img {
    width: 120px;
  }

  .nav-links {
    flex-direction: column;
    align-items: center;
  }

  header {
    padding: 16px 10px;
    background-position: center;
  }

  .header__title {
    font-size: 32px;
  }

  .descs,
  .descs-edit,
  .cont {
    padding: 0 12px;
    height: auto;
  flex-wrap: wrap;

  }

  .desc {
    width: 100%;
  }

  .add {
    top: 16px;
    right: 16px;
    font-size: 32px;
    height: 40px;
    width: 40px;
  }

  footer {
    position: static;
  }

  .footer__info {
    font-size: 9px;
    padding: 6px;
  }
}
/* =============================== */
/* 📱 HAMBURGER MENU */
/* =============================== */

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.hamburger span {
  width: 28px;
  height: 3px;
  background: #f6c236;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* When screen is narrow */
@media (max-width: 800px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 60px;
    left: 0;
    flex-direction: column;
    width: 100%;
    background-color: #0f3252;
    padding: 16px 0;
    gap: 20px;
    display: none; /* hidden by default */
  }

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

  nav {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* =============================== */
/* 📱 FIXED RESPONSIVE NAV MENU */
/* =============================== */

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 2001; /* stays visible */
}

.hamburger span {
  width: 28px;
  height: 3px;
  background: #f6c236;
  border-radius: 2px;
  transition: all 0.3s ease;
}

@media (max-width: 800px) {

  /* Show hamburger */
  .hamburger {
    display: flex;
  }

  /* Override your desktop nav-links style */
  .nav-links {
    position: absolute;
    top: 70px;              /* BELOW NAV BAR */
    left: 0;
    width: 100%;
    flex-direction: column;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 20px;
    background-color: #0f3252;
    padding: 20px 0;
    display: none;           /* hidden until opened */
    z-index: 2000;           /* ABOVE the header image */
  }

  /* When menu is open */
  .nav-links.show {
    display: flex !important;
  }

  /* Make nav bar itself shorter */
  nav {
    height: auto !important;
    padding: 16px 24px !important;
    position: relative;
    z-index: 2001;
  }

  /* Make sure links are clickable */
  .nav-link {
    font-size: 20px !important;
    padding: 10px 0;
  }
}

/* HAMBURGER ANIMATION */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translateY(13px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-13px);
}


.footer__links {
  display: flex;
  flex-direction: row;
  list-style: none;
}
