*{
    /* background-color: rgb(255, 255, 255); */
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    /* font-family:'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif; */
}

/* Define fade-in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

html, body {
  overflow-x: hidden;
}

/* Apply fade-in animation to sections */
section {
    opacity: 0;
    transition: opacity 1s ease-in-out; /* Adjust duration and timing function as needed */
}

.opener h1{
  font-size: 40px;
}
.opener h3{
  font-size: 30px;
}

section.visible {
    opacity: 1;
}

.logo img{
    width: 500px;
}

.container{
    max-width: 1600px;
    margin: 0 auto;
    padding-left: 40px;
    padding-right: 40px;
    width: 100%;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 99;
    .container{
        padding-top: 32px;
        padding-bottom: 32px;
        display: flex;
        justify-content: space-between;

        
    }

    nav{
        margin-top: 28px;
        display:grid;
        grid-gap: 16px;
        grid-template-columns: repeat(4, auto);
    }

    a{
      color: rgb(69, 112, 32);
      font-size: 27px;  
      text-decoration: none;
    }
}

main{
    section.banner{
        color: rgb(225, 255, 201);
        position: relative;
        min-height: 100vh;
        display: flex;
        align-items: center;
        background-size: cover;
        background-image: url('../images/RyanPhoto/cover.jpg');
        background-position: center 55%;
        background-image: center;

        &:after{
            content: '';
            display: block;
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            z-index: 0;
            background-color: rgb(255, 255, 255);
            opacity: 0.3;

        }

        .container{
            position: relative;
            z-index: 1;
        }
    }

    section.services{
        background-color: rgb(224, 224, 224);
        padding: 50px;
    }
    section.about{
        color:#ffffff;
        background-color: rgb(82, 131, 39);
        margin: 0 auto;
        padding: 40px;
    }

    section.contact{
        background-color: rgb(224, 224, 224);
    }

    section.service{
        background-color: rgb(224, 224, 224);
        margin: 0 auto;
        padding: 40px;
    }
}

.testimonial-title {
  text-align: center;
  margin-bottom: 20px;
  font-size: 33px;
  color: #333;
}

.about-title {
  text-align: center;
  margin-bottom: 20px;
  font-size: 33px;
  color: #333;
}

.testimonial-container .swiper-slide img {
  width: 80%;  /* Adjust as needed */
  height: auto; /* Maintain aspect ratio */
  display: block; /* Center the image */
  margin: 0 auto;
}
  
  .testimonial-container {
  height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #bebebe;
}

.testimonial {
  position: relative;
  max-width: 900px;
  width: 100%;
  background-color: rgb(202, 202, 202);
  padding: 50px 0;
  row-gap: 15px;
  text-align: center; /* Add this line */
}

.testimonial .slide {
  display:flex;
  align-items: center;
  justify-content: center; /* Change this line */
  flex-direction: column;
}
  .slide p {
    text-align: center;
    padding: 0 160px;
    font-size: 14px;
    font-weight: 500;
    color: #24262b;
  }

  .slide .quote-icon{
    font-size: 30px;
    color: #24262b;
  }

  .slide .details{
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .details .name{
    font-size: 14px;
    font-weight: 600;
    color: #24262b;    
  }

  .swiper {
      width: 100%;
      height: 100%;
    }

  

   

    .swiper {
      margin-left: auto;
      margin-right: auto;
    }

  @-webkit-keyframes slider-fade {
    from {opacity: .4} 
    to {opacity: 1}
  }
  
  @keyframes slider-fade {
    from {opacity: .4} 
    to {opacity: 1}
  }
  
  @media only screen and (max-width: 300px) {
    .slider-prev, .slider-next, .slider-text {
      font-size: 11px;
    }
    .slider-dot {
      height: 10px;
      width: 10px;
    }
  }
  
  @media only screen and (max-width: 500px) {
    .slider-prev, .slider-next, .slider-text {
      font-size: 14px;
    }
  }

.services-grid{
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Adjust the minmax values as needed */
    grid-gap: 20px; /* Adjust the gap between cards as needed */
    max-width: 1200px; /* Set a max-width for the container */
    margin: 0 auto; /* Center the container horizontally */
    margin-top: 20px;
    
    /* margin-bottom: 40px; */
    padding: 0 20px; /* Add padding to the container to prevent cards from touching edges */
    place-items: center;
}

.services a{
    text-decoration: none;
}


.services h2{
    display: block;
    width: 200px;
    border-radius: 15px;
    text-align: center;
    margin: 30px auto;
    padding: 10px;
    background-color: rgb(205, 255, 149);
    color: rgb(92, 92, 92);
}

.services h2:hover{
    background-color: rgb(191, 248, 127);
}

.about-grid{
    display: grid;
    grid-template-columns: 4fr 2fr; /* Adjust the minmax values as needed */
    grid-gap: 20px; /* Adjust the gap between cards as needed */
    max-width: 1200px; /* Set a max-width for the container */
    margin: 0 auto; /* Center the container horizontally */
    margin-top: 20px;
    
    /* margin-bottom: 40px; */
    padding: 0 20px; /* Add padding to the container to prevent cards from touching edges */
    place-items: center;
}

.about-grid-left{
    background-color: rgb(114,183,52);
    display: grid;
    grid-template-columns: 2fr 4fr; /* Adjust the minmax values as needed */
    grid-gap: 20px; /* Adjust the gap between cards as needed */
    max-width: 1200px; /* Set a max-width for the container */
    margin: 0 auto; /* Center the container horizontally */
    margin-top: 20px;
    /* margin-bottom: 40px; */
    padding: 40px; /* Add padding to the container to prevent cards from touching edges */
    place-items: center;
    border-radius: 5px;
}

.aboutphoto{
    width: 90%;
}

.contact{
    padding: 30px;
}

.top{
    height: 150px;
    background-color: rgb(224, 224, 224);
}

.contact-grid{
    display: grid;
    grid-template-columns: 2fr 3fr; /* Adjust the minmax values as needed */
    grid-gap: 20px; /* Adjust the gap between cards as needed */
    max-width: 1200px; /* Set a max-width for the container */
    margin: 0 auto; /* Center the container horizontally */
    margin-top: 20px;
    
    /* margin-bottom: 40px; */
    padding: 0 20px; /* Add padding to the container to prevent cards from touching edges */
    place-items: center;
}

.contact h2{
    font-size: 40px;
    color: rgb(0, 0, 0);
    text-align: center;
    margin-bottom: 10px;
}

.contact form{
    width: 40vw;
    text-align: center;
}

.contact-grid a{
    text-decoration: none;
    color: rgb(87, 87, 87);
}

.contact-grid a:hover{

  color: rgb(46, 46, 46);
}

form .input-box{
    display: flex;
    justify-content: space-between;
}

.input-box .input-field{
    width: 48.5%;
}

.field .item{
    width: 100%;
    padding: 18px; 
    background: transparent;
    border: 2px solid rgb(114,183,52);
    outline: none;
    border-radius: 4px;
    font-size: 16px;
    margin: 12px 0;
}

.field.error .item{
  border-color: rgb(255, 80, 80);
}

.field .item::placeholder{
    color: black;
}

form .textarea-field .item{
    resize: none;
}

.field .error-text{
    font-size: 14px;
    color: rgb(204, 0, 0);
    text-align: left;
    margin: -5 0 10px;
    display: none;
}

.field.error .error-text{
  display: block;
}

form .textarea-field .error-text{
    margin-top: -10px;
}

form button{
    padding: 12px 32px;
    background: rgb(114,183,52);
    border: none;
    outline: none;
    border-radius: 6px;
    box-shadow: 0 0 8px rgb(114,183,52);
    font-size: 16px;
    color: black;
    letter-spacing: 1px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
}

form button:hover{
    background: rgb(101, 163, 46);
}

.card {
    color: white;
    background-color: rgb(114,183,52);
    width: 100%;
    height: auto;
    text-align: center; /* Center the image horizontally */
    padding: 10px; /* Add padding around the image */
    border-radius: 3px;
}

.card:hover{
    background-color: rgb(102, 165, 47);
}

.card img {
    display: block; /* Ensure the image is centered within its parent */
    margin: 0 auto; /* Center the image horizontally within the card */
    max-width: 100%; /* Ensure the image doesn't exceed the width of the card */
    height: auto;
    margin-bottom: 10px; /* Add margin below the image */
    border-radius: 10px; /* Make the image rounded */
    box-shadow: 0 0 30px 5px rgba(32, 161, 32, 0.3);
}


.navbutton {
    position: relative;
    display: block;
    width: 35px;
    cursor: pointer;
    appearance: none;
    background: none;
    outline: none;
    border: none;
    min-width: 30px;
}

.navbutton .bar, .navbutton:after, .navbutton:before {
    content: '';
    display: block;
    width: 100%;
    height: 5px;
    background-color: rgb(136, 136, 136);
    margin: 6px 0px;
    transition: 0.4s;
}

.navbutton.is-active:before{
    transform: rotate(-45deg) translate(-9px, 6px);
}

.navbutton.is-active .bar{
    opacity: 0;
}

.navbutton.is-active:after{
    transform: rotate(45deg) translate(-9px, -7px);
}

.mobile-nav {
    display: block;
    top: 0;
    left: 100%;
    width: 100%;
    min-height: 100vh;
    position: fixed;
    z-index: 98;
    background-color: rgb(54, 54, 54);
    padding-top: 120px;
    transition: 0.4s;
}

.mobile-nav.is-active{
    left: 0;
    transition: 0.4s;
}

.mobile-nav a{
    display: block;
    width: 100%;
    max-width: 200px;
    margin: 0 auto 16px;
    margin-top:60px;
    text-align: center;
    padding: 12px 16px;
    background-color: rgb(50, 50, 50);
    color: white;
    text-decoration: none;
}

.mobile-nav a:hover{
    background-color: rgb(58, 58, 58);
}


/* if screen is less than 1025 (ipad size) */
@media (max-width: 1025px){

  .slide p {
    padding: 30px;
  }

    .about .about-grid{
        grid-template-columns: 1fr;
        grid-template-rows: 3fr, 1fr;
    }
    .navtext{
        display: none;
    }

    .about-description{
        font-size: 0.8rem;
    }
    .contact-grid{
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr;
    }

    .contact form{
        width: 80vw;
        text-align: center;
    }
    
    .services-grid{
        grid-template-columns: repeat(2, 1fr);
    }

    .card{
        margin: 0 auto;
        width: 80%;
    }

    .container{
        padding-left: 0px;
    }

    .logo img{
        width: 60vw;
        /* max-width: 40rem;
        max-width: 20rem; */
    }
}

/* Your CSS styles remain the same */

.footer {
    background-color: #24262b;
    padding: 70px 0;
  }
  .footer div{
      justify-content: center;
  }
  
  .container {
    max-width: 1170px;
    margin: auto;
  }
  
  .row {
    display: flex;
    flex-wrap: wrap;
    background-color: #24262b;
  }
  
  ul {
    list-style: none;
  }
  
  .footerCol {
    width: 25%;
    padding: 0 15px;
  }
  
  .footerCol h4 {
    font-size: 18px;
    color: #ffffff;
    text-transform: capitalize;
    margin-bottom: 35px;
    font-weight: 500;
    position: relative;
  }
  
  .footerCol h4::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    background-color: #149c1b;
    height: 2px;
    box-sizing: border-box;
    width: 50px;
  }
  
  .footerCol ul li:not(:last-child) {
    margin-bottom: 10px;
  }
  
  ul li {
    font-size: 16px;
    text-transform: capitalize;
    color: #ffffff;
    text-decoration: none;
    font-weight: 300;
    color: #bbbbbb;
    display: block;
    transition: all 0.3s ease;
  }
  
  .footerCol ul li a {
    font-size: 16px;
    text-transform: capitalize;
    color: #ffffff;
    text-decoration: none;
    font-weight: 300;
    color: #bbbbbb;
    display: block;
    transition: all 0.3s ease;
  }
  
  .footerCol ul li a:hover {
    color: #ffffff;
    padding-left: 8px;
  }
  
  .footerCol .socialLinks a {
    display: inline-block;
    height: 40px;
    width: 40px;
    background-color: rgba(255, 255, 255, 0.2);
    margin: 0 10px 10px 0;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    color: #ffffff;
    transition: all 0.5s ease;
  }
  
  .footerCol .socialLinks a:hover {
    color: #24262b;
    background-color: #ffffff;
  }
  
  /* Responsive */
  @media (max-width: 574px) {
    .footerCol {
      width: 50%;
      margin-bottom: 30px;
    }
  }
  
  @media (max-width: 574px) {
    .footerCol {
      width: 100%;
    }
  }
  

@media (max-width: 600px){
    .logo img{
     width: 80vw;   
    }

    .contact form{
        width: 80vw;
        text-align: center;
    }
}

@media (min-width: 1026px){
    .mobile-nav{
        display: none;
    }

    .navbutton{
        display: none;
    }
}