* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
  font-family: "Poppins", sans-serif;
  text-decoration: none;
}
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: 100;
}
.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 {
  display: flex;
  align-items: center;
}
.login-links span {
  font-size: 1rem;
  font-weight: 600;
}
.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*/

.carousel {
  margin: 130px 10% 60px 10%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 100vh;
  max-height: 800px;
  min-height: 400px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.carousel-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

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

.slide {
  flex: 0 0 100%;
  height: 100%;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Fills container and removes white space */
  object-position: center;
  display: block;
}
.carousel-placeholder {
  width: 100%;
  height: 100%;
  background-color: #f2f2f2; /* Optional: light gray background */
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  color: #888;
  text-transform: uppercase;
  font-weight: bold;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  border: solid 1px #51770b;
  background: white;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  cursor: pointer;
  z-index: 10;
  color: #51770b;
}

.carousel-btn.prev {
  left: 20px;
}

.carousel-btn.next {
  right: 20px;
}

.main-heading {
  background: #eff6e2;

  margin-top: 50px;
  height: 104px;
  justify-content: center;
  display: flex;
  align-items: center;
  margin-bottom: 50px;
}
.main-heading h1 {
  color: black;
  font-size: 2rem;
  font-weight: 600;
}

.button-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 50px;
  display: none;
}
.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;
}

.line {
  flex: 1;
  height: 2px;
  background: #d85c3d;
  margin: 0 40px;
}
.blogs-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(325px, 1fr));
  gap: 30px;
  margin: 0 10%;
}

.blogCard {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  color: inherit;
  box-shadow: 0px 0px 20px 5px #ccc;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  background: white;
}

.blogCard:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.blogCard img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.blogCard-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  padding: 20px;
}

.blogCard h2 {
  font-size: 1rem;
  font-weight: 700;
  color: #51770b;
  margin-bottom: 10px;
}

.blogCard p {
  font-size: 14px;
  font-weight: 400;
  flex-grow: 1;
  margin-bottom: 20px;
}

.readMore {
  text-decoration: none;
  cursor: pointer;
  color: #b83211;
  font-size: 14px;
  font-weight: 600;
}

.loader {
  border: 6px solid #f3f3f3; /* Light gray */
  border-top: 6px solid #0077cc; /* Blue */
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  margin: 2rem auto;
  display: none; /* Hide by default */
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
/*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;
}
/*footer ends here*/
@media only screen and (max-width: 1200px) {
  .logo img {
    max-width: 170px;
  }
  nav {
    height: 110px;
  }
  .carousel {
    margin: 120px 8% 60px 8%;
  }
  .blogs-container {
    margin: 0 8%;
  }
}
@media only screen and (max-width: 1100px) {
  .logo img {
    max-width: 150px;
    margin-right: 30px;
  }
  .nav-links a {
    margin-left: 40px;
  }
  nav {
    padding: 0 7%;
  }
  .login-links a {
    margin-left: 40px;
  }
  .carousel {
    margin: 120px 7% 60px 7%;
    height: 80vh;
  }
  .blogs-container {
    margin: 0 7%;
  }

  .line {
    margin: 0 30px;
  }
}
@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;
  }

  .carousel {
    margin: 110px 7% 50px 7%;
    height: 75vh;
  }
  .button-link {
    font-size: 0.9rem;
    padding: 20px 35px;
  }
  .main-heading h1 {
    font-size: 1.75rem;
  }
  footer {
    height: 270px;
  }
  .footer-links a {
    font-size: 0.938rem;
  }
}
@media only screen and (max-width: 950px) {
  nav {
    padding: 0 7%;
  }
  .main-heading {
    height: 90px;
  }
  .carousel {
    margin: 110px 7% 50px 7%;
    height: 70vh;
  }
  .main-heading h1 {
    font-size: 1.6rem;
  }
  .blogCard h2 {
    font-size: 0.938rem;
    margin-bottom: 0px;
  }

  .blogCard p {
    font-size: 0.875rem;
    margin-bottom: 15px;
  }
  .blogCard img {
    width: 100%;
    height: 280px;
    object-fit: cover;
  }
  footer {
    height: 250px;
  }
  .footer-links a {
    font-size: 0.875rem;
  }
  .media-icons img {
    font-size: 25px;
    margin-top: 30px;
    margin-bottom: 60px;
    padding: 0 20px;
  }
}
@media only screen and (max-width: 860px) {
  .carousel {
    margin: 110px 6% 50px 6%;
    height: 65vh;
  }

  .main-heading h1 {
    font-size: 1.5rem;
  }
  .footer-links a {
    font-size: 0.875rem;
    padding: 0 15px;
  }
  .media-icons img {
    margin-top: 30px;
    margin-bottom: 50px;
    padding: 0 15px;
  }
  .button-wrapper {
    margin-bottom: 40px;
  }

  .line {
    margin: 0 25px;
  }
}
@media only screen and (max-width: 790px) {
  .blogs-container {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  .blogCard img {
    height: 250px;
  }
}
@media only screen and (max-width: 768px) {
  .carousel {
    margin: 110px 6% 50px 6%;
    height: 55vh;
  }
  .carousel-btn {
    font-size: 15px;
    width: 30px;
    height: 30px;
  }
  .logo img {
    max-width: 130px;
  }
  .blogs-container {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
  .blogCard img {
    height: 250px;
  }
  .main-heading h1 {
    font-size: 1.25rem;
  }
  .main-heading {
    height: 80px;
  }
  .button-link {
    font-size: 0.87rem;
    padding: 20px 32px;
  }
  .footer-links a {
    font-size: 0.813rem;
    padding: 0 15px;
  }
  .media-icons img {
    margin-top: 30px;
    margin-bottom: 50px;
    padding: 0 15px;
  }
}
@media only screen and (max-width: 732px) {
  .blogCard img {
    height: 300px;
  }
}
@media only screen and (max-width: 670px) {
  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;
  }

  .carousel {
    margin: 90px 0% 40px 0%;
    height: 40vh;
  }
  .carousel-btn {
    font-size: 12px;
    width: 28px;
    height: 28px;
  }
  .button-link {
    font-size: 0.87rem;
    padding: 20px 32px;
  }
  .line {
    margin: 0 20px;
  }

  .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;
  }
  .carousel {
    margin: 90px 0% 40px 0%;
    height: 35vh;
  }
  .button-link {
    font-size: 0.87rem;
    padding: 18px 28px;
  }
}
@media only screen and (max-width: 400px) {
  .blogs-container {
    margin: 0 0%;
  }

  .line {
    margin: 0 18px;
  }
}
