/*
VergeOn Theme for Agrihouse

*/


/*---------------------------------------
  CUSTOM PROPERTIES ( VARIABLES )             
-----------------------------------------*/
:root {
  --white-color:                  #ffffff;
  --primary-color:                #535da1;
  --secondary-color:              #017932;
  --section-bg-color:             #f9f9f9;
  --dark-color:                   #000000;
  --p-color:                      #717275;
  --border-color:                 #e9eaeb;
  --featured-border-color:        #727aab;

  --body-font-family:             'DM Sans', sans-serif;

  --h1-font-size:                 62px;
  --h2-font-size:                 48px;
  --h3-font-size:                 36px;
  --h4-font-size:                 32px;
  --h5-font-size:                 24px;
  --h6-font-size:                 22px;
  --p-font-size:                  18px;
  --menu-font-size:               12px;
  --copyright-font-size:          14px;

  --border-radius-large:          100px;
  --border-radius-medium:         20px;
  --border-radius-small:          10px;

  --font-weight-normal:           400;
  --font-weight-medium:           500;
  --font-weight-bold:             700;
}

body {
    background: var(--white-color);
    font-family: var(--body-font-family);
}


/*---------------------------------------
  TYPOGRAPHY               
-----------------------------------------*/

h2,
h3,
h4,
h5,
h6 {
  color: var(--dark-color);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: var(--font-weight-bold);
  letter-spacing: -1px;
}

h1 {
  font-size: var(--h1-font-size);
  letter-spacing: -3px;
}

h2 {
  font-size: var(--h2-font-size);
  color: var(--secondary-color);
  letter-spacing: -3px;
}

h3 {
  font-size: var(--h3-font-size);
}

h4 {
  font-size: var(--h4-font-size);
}

h5 {
  font-size: var(--h5-font-size);
  line-height: normal;
}

h6 {
  font-size: var(--h6-font-size);
}

p {
  color: var(--p-color);
  font-size: var(--p-font-size);
  font-weight: var(--font-weight-normal);
}

ul li {
  color: var(--p-color);
  font-size: var(--p-font-size);
  font-weight: var(--font-weight-normal);
}

a, 
button {
  touch-action: manipulation;
  transition: all 0.3s;
}

a {
  color: var(--p-color);
  text-decoration: none;
}

a:hover {
  color: var(--secondary-color);
}

::selection {
  background: var(--secondary-color);
  color: var(--white-color);
}

::-moz-selection {
  background: var(--secondary-color);
  color: var(--white-color);
}

.section-padding {
  padding-top: 120px;
  padding-bottom: 120px;
}

b,
strong {
  font-weight: var(--font-weight-bold);
}

.section-title-wrap {
  background: var(--secondary-color);
  border-radius: var(--border-radius-small);
  padding: 10px 30px;
}


/*---------------------------------------
  AVATAR IMAGE               
-----------------------------------------*/
.avatar-image {
  border-radius: var(--border-radius-large);
  width: 160px;
  height: 160px;
  object-fit: cover;
}

.avatar-image-large {
  width: 90.4px;
  height: 90.4px;
}


/*---------------------------------------
  PRE LOADER               
-----------------------------------------*/
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99999;
  display: flex;
  flex-flow: row nowrap;
  justify-content: center;
  align-items: center;
  background: none repeat scroll 0 0 var(--white-color);
}

.spinner {
  border: 1px solid transparent;
  border-radius: var(--border-radius-small);
  position: relative;
}

.spinner:before {
  content: '';
  box-sizing: border-box;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 45px;
  height: 45px;
  margin-top: -10px;
  margin-left: -10px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  border-top-color: var(--white-color);
  animation: spinner .9s linear infinite;
}

@-webkit-@keyframes spinner {
  to {transform: rotate(360deg);
  }
}

@keyframes spinner {
  to {transform: rotate(360deg);}
}


/*---------------------------------------
  CUSTOM ICON               
-----------------------------------------*/
.navbar-icon {
  background: var(--white-color);
  border-radius: var(--border-radius-large);
  color: var(--dark-color);
  width: 47px;
  height: 47px;
  line-height: 47px;
  text-align: center;
}

.is-sticky .navbar-icon {
  background: var(--secondary-color);
  color: var(--white-color);
}

.form-check-icon {
  color: var(--secondary-color);
}


/*---------------------------------------
  CUSTOM BUTTON               
-----------------------------------------*/
.custom-btn,
.navbar .custom-btn {
  font-size: var(--p-font-size);
  font-weight: var(--font-weight-bold);
}

.navbar .custom-btn {
  background: transparent;
  border-width: 2px;
  border-style: solid;
  border-color: var(--white-color);
  color: var(--white-color);
  padding: 8px 22px;
}

.navbar .custom-btn:hover {
  background: var(--white-color);
  border-color: transparent;
  color: var(--secondary-color);
}

.custom-btn {
  background: var(--secondary-color);
  border-radius: var(--border-radius-large);
  color: var(--white-color);
  font-weight: var(--font-weight-bold);
  padding: 12px 24px;
}

.custom-btn:hover {
  background: var(--primary-color);
  box-shadow: 0 1rem 3rem rgba(0,0,0,.175);
  color: var(--white-color);
}

.custom-border-btn {
  background: transparent;
  border: 2px solid var(--border-color);
  color: var(--p-color);
}

.custom-border-btn:hover {
  background: var(--secondary-color);
  border-color: var(--secondary-color);
  color: var(--white-color);
}

.custom-link {
	background-color: var(--primary-color);
}

.custom-link:hover {
	background-color: var(--secondary-color);
}


/*---------------------------------------
  NAVIGATION              
-----------------------------------------*/
.sticky-wrapper {
  position: relative;
  z-index: 222;
  height: auto !important;
}

.is-sticky,
.is-sticky .navbar .container {
  background: var(--white-color);
  box-shadow: 0 1rem 3rem rgb(0 0 0 / 18%);
}

.is-sticky .navbar-brand,
.is-sticky .navbar-brand:hover {
  color: var(--dark-color);
}

.is-sticky .navbar-nav .nav-link {
  color: var(--p-color);
}

.is-sticky .navbar .custom-btn {
  border-color: var(--secondary-color);
  color: var(--secondary-color);
}

.is-sticky .navbar .custom-btn:hover {
  background: var(--secondary-color);
  color: var(--white-color);
}

.navbar {
  background: transparent;
  position: absolute;
  z-index: 9;
  right: 0;
  left: 0;
  transition: all 0.3s;
  padding-top: 15px;
  padding-bottom: 0;
  -webkit-transition: all 0.3s;
  -moz-transition: all 0.3s;
  -ms-transition: all 0.3s;
  -o-transition: all 0.3s;
}

.navbar .container {
  border-radius: var(--border-radius-small);
  padding: 10px 25px;
}

.navbar-brand {
  font-size: var(--h4-font-size);
  font-weight: var(--font-weight-bold);
}

.navbar-brand,
.navbar-brand:hover {
  color: var(--white-color);
}

.navbar-expand-lg .navbar-nav .nav-link {
  padding-right: 0;
  padding-left: 0;
  margin-right: 20px;
  margin-left: 20px;
}

.navbar-nav .nav-link {
  display: inline-block;
  color: white;
  font-size: 15px; /* Set font size to 15px */
  font-weight: bold; /* Make text bold */
  text-transform: uppercase;
  position: relative;
  padding: 10px 20px; /* Equal padding for consistent height and width */
  border: 2px solid white; /* Creates the rectangle border */
  border-radius: 12px; /* Rounded corners */
  text-align: center;
  transition: all 0.3s ease-in-out;
  line-height: 1; /* Vertically center the text */
  min-width: 120px; /* Set a minimum width for equal size */
  text-align: center; /* Ensure text is centered */
  text-decoration: none; /* Remove underline by default */
}

.navbar-nav .nav-link:hover {
  background: white;
  color: black; /* Change text color on hover */
  text-decoration: none; /* Remove underline when hovered */
}



.navbar-nav .nav-link::after {
  content: "";
  background: transparent;
  position: absolute;
  bottom: 6px;
  right: 0;
  left: 0;
  width: 100%;
  height: 2px;
}


.navbar-nav .nav-link.active, 
.navbar-nav .nav-link:hover {
  color: var(--secondary-color);
}

.navbar-toggler {
  border: 0;
  padding: 0;
  cursor: pointer;
  margin: 0;
  width: 30px;
  height: 35px;
  outline: none;
}

.navbar-toggler:focus {
  outline: none;
  box-shadow: none;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
  background: transparent;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon:before,
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon:after {
  transition: top 300ms 50ms ease, -webkit-transform 300ms 350ms ease;
  transition: top 300ms 50ms ease, transform 300ms 350ms ease;
  transition: top 300ms 50ms ease, transform 300ms 350ms ease, -webkit-transform 300ms 350ms ease;
  top: 0;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon:before {
  transform: rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon:after {
  transform: rotate(-45deg);
}

.navbar-toggler .navbar-toggler-icon {
  background: var(--white-color);
  transition: background 10ms 300ms ease;
  display: block;
  width: 30px;
  height: 2px;
  position: relative;
}

.navbar-toggler .navbar-toggler-icon:before,
.navbar-toggler .navbar-toggler-icon:after {
  transition: top 300ms 350ms ease, -webkit-transform 300ms 50ms ease;
  transition: top 300ms 350ms ease, transform 300ms 50ms ease;
  transition: top 300ms 350ms ease, transform 300ms 50ms ease, -webkit-transform 300ms 50ms ease;
  position: absolute;
  right: 0;
  left: 0;
  background: var(--white-color);
  width: 30px;
  height: 2px;
  content: '';
}

.navbar-toggler .navbar-toggler-icon::before {
  top: -8px;
}

.navbar-toggler .navbar-toggler-icon::after {
  top: 8px;
}






/*---------------------------------------
  HERO              
-----------------------------------------*/
/* Hero Section */
.hero {
  position: relative;
  width: 100%;
  height: 50vh; /* Half screen height */
  background: url('../images/farmbackground.jpeg') no-repeat center center;
  background-size: cover;
  background-attachment: fixed;
  overflow: hidden;
  clip-path: ellipse(100% 85% at center top); /* Adjusted to reduce extra gap */
  margin-bottom: 0; /* Remove bottom margin */
  padding-bottom: 0; /* Remove extra padding */
}

/* Responsive adjustments */
@media (max-width: 768px) { /* Tablets and smaller devices */
  .hero {
    height: 40vh;
    background-attachment: scroll;
    clip-path: ellipse(100% 80% at center top);
  }
}

@media (max-width: 480px) { /* Mobile phones */
  .hero {
    height: 30vh;
    clip-path: ellipse(100% 70% at center top);
  }
}



/* Video Styling */
.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

/* Overlay to enhance readability (Optional) */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3); /* Adjust darkness */
  z-index: 0;
}

/* Responsive Fixes */
@media (max-width: 768px) {
  .hero {
    height: 80vh; /* Slightly smaller for mobile */
  }
}

@media (max-width: 480px) {
  .hero {
    height: 70vh; /* Reduce height for smaller screens */
  }
}


/*---------------------------------------
  ABOUT              
-----------------------------------------*/
.profile-thumb {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-medium);
  position: relative;
  overflow: hidden;
}

.profile-title {
  border-bottom: 1px solid var(--border-color);
  padding: 15px 30px;
}

.profile-small-title {
  border-right: 1px solid var(--border-color);
  color: var(--secondary-color);
  font-weight: var(--font-weight-bold);
  min-width: 140px;
  margin-right: 10px;
  padding: 13px 30px;
  display: inline-block;
}

.profile-body p {
  margin-bottom: 0;
}

.profile-body p:nth-of-type(even) {
  background: var(--white-color);
}

.about-image {
  border-radius: var(--border-radius-medium);
  -webkit-border-radius: var(--border-radius-medium);
  -moz-border-radius: var(--border-radius-medium);
  -ms-border-radius: var(--border-radius-medium);
  -o-border-radius: var(--border-radius-medium);
}

.about-thumb {
  padding-right: 20px;
  padding-left: 20px;
}


/*---------------------------------------
  FEATURED              
-----------------------------------------*/
.featured-numbers {
  font-size: var(--h1-font-size);
  line-height: normal;
  display: block;
}

.featured-text {
  color: var(--secondary-color);
}

.featured-border-bottom {
  border-bottom: 1px solid var(--border-color);
}

.featured-border-start {
  border-left: 1px solid var(--border-color);
}


/*---------------------------------------
  CLIENTS              
-----------------------------------------*/

.clients-item-height {
	height: 120px;
}

.clients-image {
  display: block;
  max-width: 100px;
  margin: auto;
  transition: all ease 0.2s;
}

.clients-image:hover {
  transform: scale(1.3);
}


/*---------------------------------------
  management              
-----------------------------------------*/


.management-team-section {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 40px;
}

.management-team-member {
  width: 250px;
  padding: 20px;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease-in-out;
  cursor: pointer;
}

.management-team-member:hover {
  transform: scale(1.05);
}

.management-team-member img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.management-team-member h3 {
  margin: 10px 0 5px;
}

.management-social-icons {
  margin-top: 10px;
}

.management-social-icons a {
  margin: 0 8px;
  color: #043ac2;
  text-decoration: none;
  font-size: 20px;
}

.management-social-icons a:hover {
  color: #00ba1c61;
}

/* Modal Styles */
.management-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 20px; /* Prevents content from touching edges */
}

/* Modal Content */
.management-modal-content {
  background: rgb(255, 255, 255);
  padding: 20px;
  width: 50%;
  max-width: 600px; /* Ensures it doesn’t get too large */
  border-radius: 10px;
  text-align: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* Centers the modal */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Close Button */
.management-close-btn {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 24px;
  cursor: pointer;
  color: #555;
}

.management-close-btn:hover {
  color: red;
}

/* Responsive Design */
@media (max-width: 1024px) { /* Adjustments for tablets & small laptops */
  .management-modal-content {
      width: 70%; /* Slightly larger width for tablets */
      max-width: 550px;
  }
}

@media (max-width: 768px) { /* Mobile & small tablet adjustments */
  .management-modal-content {
      width: 80%;
      max-width: 450px;
  }
}

@media (max-width: 480px) { /* Smaller mobile screens */
  .management-modal-content {
      width: 90%;
      max-width: 400px;
      padding: 15px;
  }

  .management-close-btn {
      top: 5px;
      right: 10px;
      font-size: 20px;
  }
}


/*---------------------------------------
  PROJECTS              
-----------------------------------------*/
.projects-thumb {
  background: var(--section-bg-color);
  border: 2px solid var(--white-color);
  border-radius: var(--border-radius-medium);
  position: relative;
  overflow: hidden;
  padding: 20px;
  transition: all ease 0.5s;
  text-align: center;
  height: 300px; /* Set fixed height for the project card */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.projects-thumb:hover {
  border-color: var(--secondary-color);
}

.projects-thumb .popup-image {
  display: block;
  width: 100%;
}

.projects-image {
  width: 100%;
  height: 100%; /* Ensure the image occupies the full height of the container */
  object-fit: contain; /* Ensure image is fully visible without being cropped */
  border-radius: var(--border-radius-medium);
  transition: all ease 0.5s;
}

.projects-title {
  margin-bottom: 10px;
  text-align: center;
}

.projects-tag {
  font-size: var(--menu-font-size);
  font-weight: var(--font-weight-medium);
  color: var(--secondary-color);
  text-transform: uppercase;
  margin-bottom: 5px;
}

/* Swiper Container Styling */
.swiper-container {
  width: 100%;
  padding: 20px 0;
  position: relative;
}

.swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

/* Swiper Navigation Buttons (Arrows on the Sides) */
.swiper-button-next,
.swiper-button-prev {
  color: white; /* Button text color */
  background: transparent; /* Transparent background for the navigation buttons */
  width: 40px; /* Fixed width */
  height: 40px; /* Fixed height */
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease-in-out;
  border-radius: 0; /* Remove circular border radius to make buttons square */
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: transparent; /* Green background on hover */
  color: white; /* Keep the text color white */
}

/* Positioning Navigation Arrows */
.swiper-button-prev {
  left: -10px; /* Adjust position */
}

.swiper-button-next {
  right: -10px;
}

/* Pagination Dots */
.swiper-pagination-bullet {
  background-color: #28a745; /* Green color for dots */
  opacity: 1; /* Full opacity for active dots */
}

.swiper-pagination-bullet-active {
  background-color: #218838; /* Darker green for active dot */
}

/* Ensure arrows are properly positioned on mobile */
@media (max-width: 768px) {
  .swiper-button-next,
  .swiper-button-prev {
      width: 35px;
      height: 35px;
  }
}

.projects-carousel {
  overflow: hidden; /* Hides the scrollbar */
}

.projects-carousel .swiper-wrapper {
  scrollbar-width: none; /* Hides scrollbar in Firefox */
}

.projects-carousel .swiper-wrapper::-webkit-scrollbar {
  display: none; /* Hides scrollbar in Chrome, Safari, and Edge */
}



/*---------------------------------------
  CONTACT              
-----------------------------------------*/
.contact {
  background: var(--section-bg-color);
}

.contact-info {
  background: var(--white-color);
  border-top-right-radius: var(--border-radius-small);
  border-bottom-right-radius: var(--border-radius-small);
  padding: 60px 30px 30px 30px;
  height: 100%;
}

.contact-info-border-start {
  border-right: 1px solid var(--border-color);
  border-radius: var(--border-radius-small) 0 0 var(--border-radius-small);
}

.contact-form {
  margin-left: 10px;
}


/*---------------------------------------
  CUSTOM FORM               
-----------------------------------------*/
.custom-form .form-control {
  background: var(--white-color);
  box-shadow: none;
  border: 2px solid var(--border-color);
  color: var(--p-color);
  margin-bottom: 24px;
  padding-top: 13px;
  padding-bottom: 13px;
  outline: none;
}

.form-floating>label {
  color: var(--p-color);
}

.form-check-inline {
  vertical-align: middle;
  width: 100%;
  position: relative;
  margin-right: 0;
  margin-top: 0;
  margin-bottom: 24px;
  padding: 0;
}

.custom-form .form-check-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.form-check-label-text {
  color: var(--p-color);
  display: block;
  font-size: copyright-font-size;
  margin-top: 5px;
}

.form-check-input[type=checkbox] {
  background: var(--white-color);
  border: 2px solid var(--border-color);
  box-shadow: none;
  outline: none;
  width: 100%;
  margin-top: 0;
  margin-left: 0;
  padding: 40px 50px;
}

.form-check-input:checked[type=checkbox] {
  background-image: none;
}

.form-check-input:hover,
.form-check-input:checked {
  background-color: transparent;
  border-color: var(--secondary-color);
}

.custom-form .form-control:hover,
.custom-form .form-control:focus {
  background: transparent;
  border-color: var(--secondary-color);
}

.custom-form .form-floating textarea {
  height: 150px;
}

.custom-form button[type="submit"] {
  background: var(--secondary-color);
  border: none;
  border-radius: var(--border-radius-large);
  color: var(--white-color);
  font-weight: var(--font-weight-bold);
  transition: all 0.3s;
  margin-bottom: 0;
}

.custom-form button[type="submit"]:hover,
.custom-form button[type="submit"]:focus {
  background: var(--primary-color);
  border-color: transparent;
}



/*---------------------------------------
  SITE FOOTER              
-----------------------------------------*/
.site-footer {
  text-align: center;
}

.copyright-text-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.copyright-text {
  border-right: none; /* Remove border on small screens */
  padding-right: 0;
  margin-right: 0;
}

/* Ensure footer links stack properly on smaller screens */
@media (max-width: 768px) {
  .copyright-text-wrap p {
      display: block;
      width: 100%;
      text-align: center;
  }

  .footer-menu-item {
      display: block;
      text-align: center;
  }

  .footer-menu-link {
      display: block;
      width: auto;
      margin: 5px auto;
  }
}


/*---------------------------------------
  SOCIAL ICON               
-----------------------------------------*/
.social-icon {
  margin: 0;
  padding: 0;
}

.social-icon-item {
  list-style: none;
  display: inline-block;
  vertical-align: top;
}

.social-icon-link {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-large);
  font-size: var(--copyright-font-size);
  color: var(--dark-color);
  display: inline-block;
  vertical-align: top;
  margin: 2px 2px 5px 2px;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
}

.social-icon-link:hover {
  background: var(--secondary-color);
  border-color: transparent;
  color: var(--white-color);
}


/*---------------------------------------
  RESPONSIVE STYLES               
-----------------------------------------*/
@media screen and (min-width: 1600px) {
  .hero {
    padding-top: 380px;
    padding-bottom: 380px;
  }

  .hero-image-wrap {
    top: -50px;
    width: 400px;
    height: 400px;
  }

  .hero-image {
    min-width: 650px;
  }
  
  .hero-title,
	.hero h2 {
	  font-size: var(--h2-font-size);
	}
}

@media screen and (max-width: 991px) {
  h1 {
    font-size: 48px;
  }

  h2 {
    font-size: 36px;
  }

  h3 {
    font-size: 32px;
  }

  h4 {
    font-size: 28px;
  }

  h5 {
    font-size: 20px;
  }

  h6 {
    font-size: 18px;
  }

  .section-padding {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .custom-btn,
  .navbar .custom-btn {
    font-size: var(--copyright-text-font-size);
    padding: 8px 16px;
  }

  .navbar .container {
    background: var(--white-color);
  }

  .navbar-brand,
  .navbar-brand:hover {
    color: var(--dark-color);
  }

  .navbar-icon {
    background: var(--secondary-color);
    color: var(--white-color);
    width: 44px;
    height: 44px;
    line-height: 44px;
  }

  .navbar .custom-btn {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
  }

  .navbar-toggler .navbar-toggler-icon,
  .navbar-toggler .navbar-toggler-icon:before,
  .navbar-toggler .navbar-toggler-icon:after {
    background: var(--dark-color);
  }

  .navbar-expand-lg .navbar-nav .nav-link {
    margin-left: 0;
  }

  .navbar-nav .nav-link {
    color: var(--p-color);
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .hero {
    padding-top: 200px;
    padding-bottom: 400px;
  }

  .hero-text {
    top: 0;
    margin-bottom: 120px;
  }

  .about-thumb {
    padding-right: 0;
    padding-left: 0;
  }

  .about-numbers {
    font-size: 42px;
  }

  .management-thumb-up {
    bottom: 0;
    margin-bottom: 32px;
  }

  .management-thumb {
    margin-bottom: 32px;
    padding-bottom: 270px;
  }

  .management-icon-wrap {
    width: 45%;
    height: 60%;
  }

  .management .col-lg-10 .row .col-lg-6:last-child,
  .projects .col-lg-4:last-child {
    margin-bottom: 0;
  }

  .projects-thumb {
    margin-top: 0;
    margin-bottom: 32px;
  }

  .contact-info {
    border-radius: 0 0 var(--border-radius-small) var(--border-radius-small);
    padding: 40px 30px;
  }

  .contact-info-border-start {
    border-right: 0;
    border-bottom: 1px solid var(--border-color);
    border-radius: var(--border-radius-small) var(--border-radius-small) 0 0;
  }
}

@media screen and (max-width: 575px) {
  .navbar .container {
    margin-right: 12px;
    margin-left: 12px;
  }
}

@media screen and (max-width: 480px) {
  h1 {
    font-size: 40px;
  }

  h2 {
    font-size: 28px;
  }

  h3 {
    font-size: 26px;
  }

  h4 {
    font-size: 22px;
  }

  h5 {
    font-size: 20px;
  }

  .custom-btn,
  .navbar .custom-btn {
    font-size: 13px;
    padding: 6px 12px;
  }

  .navbar-icon {
    font-size: var(--copyright-font-size);
    width: 35.5px;
    height: 35.5px;
    line-height: 35.5px;
  }

  .hero-image-wrap {
    width: 300px;
    height: 300px;
  }

  .hero-image {
    min-width: inherit;
  }
}


/* Agriculture News Section */
.agriculture-news {
  padding: 60px 0;
  background-color: #f7f7f7;
}

.agriculture-news .section-title-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
}

.agriculture-news .section-title-wrap .avatar-image {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.agriculture-news h2 {
  font-size: 36px;
  color: #fff;
  margin-left: 15px;
}

.agriculture-news .news-thumb {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
  position: relative;
}

.agriculture-news .news-thumb .news-info {
  padding: 20px;
}

.agriculture-news .news-thumb .news-category {
  font-size: 14px;
  font-weight: 600;
  color: #017932; /* Green color */
}

.agriculture-news .news-thumb .news-date,
.agriculture-news .news-thumb .news-author {
  font-size: 12px;
  color: #777;
  margin-top: 5px;
}

.agriculture-news .news-thumb .news-title {
  font-size: 18px;
  font-weight: 700;
  color: #333;
  margin-top: 10px;
}

.agriculture-news .news-thumb .news-title a {
  text-decoration: none;
  color: #333;
  transition: color 0.3s ease;
}

.agriculture-news .news-thumb .news-title a:hover {
  color: #017932; /* Green color */
}

.agriculture-news .news-thumb .news-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.agriculture-news .news-thumb .news-image:hover {
  transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 992px) {
  .agriculture-news .section-title-wrap {
      flex-direction: column;
      text-align: center;
  }

  .agriculture-news h2 {
      font-size: 28px;
      margin-top: 15px;
  }
}

@media (max-width: 768px) {
  .agriculture-news .news-thumb {
      margin-bottom: 20px;
  }

  .agriculture-news .news-thumb .news-info {
      padding: 15px;
  }

  .agriculture-news .news-thumb .news-title {
      font-size: 16px;
  }

  .agriculture-news .news-thumb .news-image {
      height: 200px;
  }
}

@media (max-width: 576px) {
  .agriculture-news .news-thumb .news-image {
      height: 180px;
  }

  .agriculture-news .news-thumb .news-title {
      font-size: 14px;
  }
}
/* View All Latest News Button */
.view-all-news {
    text-align: center;
    margin-top: 30px;
}

.view-all-news .btn-view-all {
    display: inline-block;
    background-color: #017932; /* Green color */
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.2s ease;
}

.view-all-news .btn-view-all:hover {
    background-color: #017932;
    transform: scale(1.05);
}

.section-title-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
}

#backToTopBtn {
  display: none; /* Hidden by default */
  position: fixed;
  bottom: 20px;
  right: 20px; /* Ensures it's on the bottom right */
  z-index: 1000;
  background-color: #017932; /* Match your theme */
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 24px;
  cursor: pointer;
  transition: opacity 0.3s, transform 0.2s;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

#backToTopBtn:hover {
  background-color: var(--dark-color);
  transform: scale(1.1); /* Slight zoom effect */
}

/* Responsive adjustments */
@media (max-width: 768px) {
  #backToTopBtn {
      width: 40px;
      height: 40px;
      font-size: 20px;
      bottom: 15px; /* Adjust for smaller screens */
      right: 15px;
  }
}


/* General Styling */
.card-section {
  margin-top: 50px;
}

.card {
  text-align: center;
  padding: 20px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  height: 100%;
  border: none;
  background-color: #f8f9fa;
}

.card-title {
  color: #28a745; /* Bootstrap Success Green */
}

.card-text {
  color: #333;
}


.card-link {
        text-decoration: none;
        color: inherit;
    }

    .hover-pop {
        width: 150px;
        height: 150px;
        object-fit: contain;
        margin: auto;
        padding-top: 10px;
        transition: transform 0.3s ease-in-out;
    }

    .hover-pop:hover {
        transform: scale(1.1);
    }

    .card-link {
      text-decoration: none;
      color: inherit;
  }

  .hover-pop {
      width: 150px;
      height: 150px;
      object-fit: contain;
      margin: auto;
      padding-top: 10px;
      transition: transform 0.3s ease-in-out;
  }

  .hover-pop:hover {
      transform: scale(1.1);
  }
  .weather-card {
    background: url('<?php echo get_template_directory_uri(); ?>/assets/images/meteorology.jpg') no-repeat center center/cover;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(5, 243, 41, 0.2);
    text-align: center;
    width: 320px;
    color: white; /* Ensure all text inside the card is white */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

/* Ensure text visibility */
.weather-header, 
.weather-temp, 
.weather-desc, 
.weather-details, 
.weather-details p, 
.weather-header span, 
.weather-details i {
    color: white !important; /* Force all text elements to be white */
    position: relative;
    z-index: 1;
}

.weather-icon {
    width: 80px;
    margin: 10px 0;
    display: none;
}

.weather-temp {
    font-size: 28px;
    font-weight: bold;
}

.weather-desc {
    font-size: 16px;
    text-transform: capitalize;
}

.weather-details {
    font-size: 14px;
    text-align: left;
    margin-top: 10px;
}

.weather-details p {
    margin: 5px 0;
}

@media (max-width: 768px) {
    .weather-card {
        width: 100%;
        padding: 15px;
    }
}

/* News Post Styling */
.single-post-container {
  max-width: 900px;
  margin: 60px auto;
  padding: 30px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Featured Image */


/* Featured Image Styling */
.post-thumbnail {
  margin-bottom: 30px;
  text-align: center;
}

.post-thumbnail img {
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Standard WordPress featured image size */
.post-thumbnail img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Make sure it's responsive */
@media (max-width: 768px) {
  .post-thumbnail img {
      width: 100%;
      height: auto;
  }
}

/* Post Title */
.post-title {
  font-size: 32px;
  font-weight: bold;
  color: #222;
  margin-bottom: 15px;
}

/* Post Meta */
.post-meta {
  font-size: 14px;
  color: #555;
  margin-bottom: 20px;
}

.post-meta span {
  margin-right: 10px;
}

/* Post Content */
.post-content {
  font-size: 18px;
  line-height: 1.8;
  color: #333;
  margin-bottom: 40px;
}

/* Social Share Buttons */
.social-share {
  margin-top: 20px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  text-align: center;
}

.social-share span {
  font-weight: bold;
  margin-right: 10px;
}

.social-btn {
  display: inline-block;
  padding: 10px;
  margin: 5px;
  border-radius: 50%;
  font-size: 16px;
  text-decoration: none;
  color: white;
  width: 40px;
  height: 40px;
  text-align: center;
}

.fb { background: #1877f2; }
.tw { background: #1da1f2; }
.ln { background: #0077b5; }

.social-btn i {
  font-size: 16px;
}

.social-btn:hover {
  opacity: 0.8;
}

/* Related News Section */
.related-news {
  margin-top: 40px;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 10px;
}

.related-news h3 {
  font-size: 22px;
  margin-bottom: 15px;
}

.related-posts {
  display: flex;
  gap: 20px;
  flex-wrap: wrap; /* Ensure wrapping on smaller screens */
}

.related-post-card {
  width: 48%;
  background: white;
  border-radius: 8px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease-in-out;
}

.related-post-card:hover {
  transform: scale(1.05);
}

.related-post-thumbnail img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.related-post-title {
  font-size: 18px;
  margin: 10px;
  color: #333;
}

.related-post-excerpt {
  font-size: 14px;
  color: #555;
  margin: 0 10px 15px;
}

/* Ensure proper image sizes for smaller devices in related posts */
@media (max-width: 768px) {
  .related-post-card {
    width: 100%; /* Stack the cards on small screens */
  }
}


