* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
  font-family: "Poppins", sans-serif;
  text-decoration: none;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
}
body {
  background-color: #ffffff;
  width: 100%;
  min-height: 100vh;
}
.logo img {
  max-width: 180px;
  height: auto;
  margin-right: 50px;
  padding-bottom: 10px;
}
nav {
  width: 100%;
  height: 120px;
  position: fixed;
  justify-content: space-between;
  left: 0;
  top: 0;
  right: 0;
  background: white;
  color: #51770b;
  display: flex;
  align-items: center;
  padding: 0 7%;
  z-index: 10;
}
.nav-right {
  display: flex;
  align-items: center;
}
.menu-icon {
  margin-right: 50px;
}

.nav-links a {
  text-decoration: none;
  color: #51770b;
  font-size: 1rem;
  font-weight: 600;
  margin-left: 50px;
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background-color: #b83211;
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: left;
}
.nav-links a:hover::after {
  transform: scaleX(1);
}
.nav-links a:hover {
  color: #b83211;
}
.menu-icon {
  display: none;
}
.login-links span {
  font-size: 1rem;
  font-weight: 600;
}
.login-links {
  display: flex;
  align-items: center;
}
.login-links a {
  text-decoration: none;
  color: #51770b;
  font-size: 1rem;
  font-weight: 600;
  margin-left: 50px;
  position: relative;
}
.login-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background-color: #b83211;
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: left;
}
.login-links a:hover::after {
  transform: scaleX(1);
}
.login-links a:hover {
  color: #b83211;
}

/*nav ends here*/

.hero-img {
  margin-top: 120px;
  background-image: url(images/hero-image.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-text {
  position: absolute;
  background: #51770b;

  padding: 20px 30px;
}
.hero-text h1 {
  color: white;
  font-size: 40px;
  font-weight: 600;
}
.welcome-text {
  margin: 50px 7%;
  text-align: center;
}
.welcome-text p {
  margin: 30px 0 50px 0;
  font-size: 1rem;
  font-weight: 400;
}
.button-link {
  color: white;
  background: #b83211;
  font-size: 1rem;
  font-weight: 600;
  display: inline-block;
  padding: 20px 40px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}
.button-link:hover {
  background: #9c2405;
}

.welcome-text h2 {
  color: black;
  font-size: 2rem;
  font-weight: 600;
}
.about-container {
  margin: 0 7% 60px 7%;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.about-content {
  display: grid;
  grid-template-columns: 40% 1fr;
  align-items: stretch;
  gap: 40px;
}

.about-content img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.text-content {
  background: #eff6e2;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.text-content h3 {
  font-size: 25px;
  font-weight: 600;
  margin-bottom: 15px;
}

.text-content p {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.8;
}

.about-content.box2 {
  grid-template-columns: 1fr 40%;
}

.newsletter {
  background: #eff6e2;
  margin: 0 7% 50px 7%;
  text-align: center;
}
.newsletter-content {
  padding: 50px;
}
.newsletter-content h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 10px;
}
.newsletter-content p {
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 30px;
}
.newsletter-form {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.newsletter-form input {
  width: 600px;
  padding: 15px 20px 15px 10px;
  border: none;
  margin-bottom: 30px;
}
input:focus,
textarea:focus {
  outline: none;
  border: 1px solid #51770b;
  box-shadow: 0 0 0 3px rgba(113, 170, 115, 0.2);
}
.newsletter-form button {
  border: none;
  cursor: pointer;
  color: white;
  background: #b83211;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  width: 125px;
  transition: transform 0.3s ease;
}
.newsletter-form button:hover {
  background: #9c2405;
}
.visually-hidden {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/*footer starts here*/
footer {
  background: #51770b;
  height: 290px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-top: 60px;
}

.footer-links a {
  text-decoration: none;
  color: white;
  font-size: 1rem;
  font-weight: 400;
  padding: 0 20px;
  margin-bottom: 50px;
}
.media-icons img {
  margin-top: 30px;
  margin-bottom: 60px;
  padding: 0 20px;
}
.copyright p {
  font-size: 13px;
  font-weight: 400;
  color: white;
}

@media only screen and (max-width: 1200px) {
  .logo img {
    max-width: 170px;
  }
  nav {
    height: 110px;
  }
  .hero-img {
    margin-top: 110px;
    height: 90vh;
  }
  .hero-text h1 {
    color: white;
    font-size: 35px;
  }

  .about-content {
    gap: 30px;
  }
}
@media only screen and (max-width: 1100px) {
  .logo img {
    max-width: 150px;
    margin-right: 30px;
  }
  .nav-links a {
    margin-left: 40px;
  }
  nav {
    padding: 0 6%;
  }
  .login-links a {
    margin-left: 40px;
  }
  .hero-img {
    margin-top: 110px;
    height: 80vh;
  }
  .hero-text {
    padding: 18px 25px;
  }
  .hero-text h1 {
    font-size: 30px;
  }

  .about-container {
    margin: 0 7% 50px 7%;
  }
  .about-content {
    display: grid;
    grid-template-columns: 40% 1fr;
    align-items: stretch;
    gap: 30px;
  }

  .newsletter {
    margin: 0 7% 50px 7%;
  }
}
@media only screen and (max-width: 1024px) {
  .menu-icon {
    margin-right: 30px;
    display: block;
    font-size: 22px;
  }
  nav {
    height: 100px;
    padding: 0 7%;
  }
  .nav-links {
    height: 50vh;
    width: 100%;
    background: #eff6e2;
    position: absolute;
    top: 100px;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.7s ease-in-out;
  }
  .nav-links.active {
    transform: translateX(0);
  }
  .nav-links a {
    display: block;
    margin: 25px;
    font-size: 0.938rem;
  }
  .login-links a {
    font-size: 0.938rem;
    margin-left: 35px;
  }
  .login-links span {
    font-size: 0.938rem;
  }
  .hero-img {
    margin-top: 100px;
    height: 70vh;
  }
  .hero-text {
    padding: 17px 23px;
  }
  .hero-text h1 {
    font-size: 27px;
  }
  .welcome-text {
    margin: 40px 9%;
  }
  .welcome-text p {
    margin: 30px;
    font-size: 1rem;
  }
  .button-link {
    font-size: 0.9rem;
    padding: 18px 38px;
  }

  .welcome-text h2 {
    font-size: 1.75rem;
  }
  .about-container {
    margin: 0 7% 60px 7%;
    display: flex;
    flex-direction: column;
    gap: 50px;
  }

  .about-content h3 {
    font-size: 20px;
  }
  .newsletter {
    margin: 0 7% 50px 7%;
  }
  .newsletter-content {
    padding: 40px;
  }
  .newsletter-content h2 {
    font-size: 1.75rem;
    margin-bottom: 10px;
  }
  footer {
    height: 270px;
  }
  .footer-links a {
    font-size: 0.938rem;
  }
}
@media only screen and (max-width: 950px) {
  nav {
    height: 100px;
    padding: 0 7%;
  }
  .hero-img {
    margin-top: 100px;
    height: 65vh;
  }
  .welcome-text {
    margin: 40px 10%;
    text-align: center;
  }
  .welcome-text h2 {
    font-size: 1.6rem;
  }

  .welcome-text p {
    margin: 25px;
    font-size: 0.875rem;
    font-weight: 400;
  }

  .about-content h3 {
    font-size: 20px;
  }
  .about-content p {
    font-size: 0.875rem;
  }

  .newsletter-content h2 {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 10px;
  }
  .newsletter-content p {
    font-size: 0.875rem;
    font-weight: 400;
    margin-bottom: 30px;
  }
  .newsletter-form button {
    padding: 14px 16px;
    font-size: 12px;
    font-weight: 600;
  }
  footer {
    height: 250px;
  }
  .footer-links a {
    font-size: 0.875rem;
  }
  .media-icons img {
    margin-top: 30px;
    margin-bottom: 60px;
    padding: 0 20px;
  }
}
@media only screen and (max-width: 860px) {
  .hero-img {
    margin-top: 100px;
    height: 60vh;
  }
  .hero-text {
    padding: 15px 20px;
  }
  .hero-text h1 {
    font-size: 25px;
  }
  .welcome-text {
    margin: 40px 9%;
  }
  .welcome-text p {
    margin: 30px;
    font-size: 0.875rem;
  }

  .welcome-text h2 {
    font-size: 1.5rem;
  }
  .about-container {
    margin: 0 6% 50px 6%;
    gap: 50px;
  }

  .about-content {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 40px;
  }

  .newsletter-content h2 {
    font-size: 1.5rem;
  }
  .newsletter {
    margin: 0 6% 40px 6%;
  }
  .footer-links a {
    font-size: 0.875rem;
    padding: 0 15px;
  }
  .media-icons img {
    margin-top: 30px;
    margin-bottom: 50px;
    padding: 0 15px;
  }
  .newsletter-form input {
    width: 500px;
  }
}
@media only screen and (max-width: 768px) {
  .hero-img {
    margin-top: 100px;
    height: 50vh;
  }
  .hero-text h1 {
    font-size: 20px;
  }
  .welcome-text {
    margin: 30px 9%;
  }
  .welcome-text h2 {
    font-size: 1.25rem;
  }
  .welcome-text p {
    margin: 25px;
    font-size: 0.875rem;
  }
  .button-link {
    font-size: 0.87rem;
  }

  .about-content.box2 {
    display: flex;
    flex-direction: column;
  }

  .about-content.box2 img {
    order: 1;
  }

  .about-content.box2 .text-content {
    order: 2;
  }

  .newsletter-content h2 {
    font-size: 1.25rem;
  }
  .footer-links a {
    font-size: 0.813rem;
    padding: 0 15px;
  }
  .media-icons img {
    margin-top: 30px;
    margin-bottom: 50px;
    padding: 0 15px;
  }
  .newsletter-form input {
    width: 400px;
  }
}
@media only screen and (max-width: 670px) {
  .newsletter-form button {
    padding: 12px 20px;
    font-size: 12px;

    width: 110px;
  }

  footer {
    height: auto;
    padding: 40px;
  }
  .footer-links a {
    display: flex;
    flex-direction: column;
    padding: 0 15px;
    margin-bottom: 40px;
  }
}

@media only screen and (max-width: 600px) {
  nav {
    height: 85px;
    padding: 0 6%;
  }
  .nav-links {
    height: 40vh;
    top: 85px;
  }
  .menu-icon {
    margin-right: 22px;
    display: block;
    font-size: 20px;
  }
  .nav-links a {
    font-size: 0.875rem;
    margin: 20px;
  }
  .logo img {
    max-width: 130px;
    padding-bottom: 0px;
  }
  .login-links a {
    font-size: 0.875rem;
    margin-left: 30px;
  }
  .login-links span {
    font-size: 0.875rem;
  }

  .hero-img {
    margin-top: 85px;
    height: 40vh;
    object-fit: cover;
  }
  .hero-text {
    padding: 13px 18px;
  }
  .hero-text h1 {
    font-size: 18px;
  }
  .button-link {
    font-size: 0.875rem;
    padding: 15px 35px;
    margin-bottom: 10px;
  }

  .newsletter-form input {
    width: 60vw;
  }
  .media-icons img {
    height: 25px;
    margin-top: 30px;
    margin-bottom: 40px;
    padding: 0 15px;
  }
}
@media only screen and (max-width: 500px) {
  .login-links a {
    font-size: 0.875rem;
    margin-left: 20px;
  }
  .hero-img {
    margin-top: 85px;
    height: 35vh;
    object-fit: cover;
  }
  .text-content {
    padding: 30px;
  }
  .newsletter-form input {
    width: 70vw;
  }
}

@media only screen and (max-width: 400px) {
  .about-container {
    margin: 0 0% 30px 0%;
    display: flex;
    flex-direction: column;
    gap: 30px;
  }
  .text-content {
    padding: 35px;
  }

  .newsletter {
    margin: 0 0% 40px 0%;
  }
  .newsletter-form input {
    width: 70vw;
  }
  .media-icons img {
    height: 25px;
    padding: 0 15px;
  }
}
