
@import url('variables.css');

/* Services Section */
.services {
    padding: 0%;
    margin: 0px;
  }
  
  .services h2 {
    text-align: center;
    font-size: var(--fontsize-h2);
    padding-top: 5%;
    margin-top: 0;
    margin-bottom: 40px;
    font-family: var(--font-primary);
  }
  
  .services-intro {
    max-width: 1200px;
    margin: 0 auto 50px auto;
    padding: 0 5%;
    text-align: left;
  }
  
  .services-intro p {
    font-size: var(--fontsize-p);
    line-height: 1.8;
    margin-bottom: 20px;
    color: #333;
  }
  
  .services-intro h3 {
    font-size: var(--fontsize-h3);
    margin: 30px 0 15px 0;
    color: var(--color4);
  }
  
  .services-intro ul {
    list-style-type: disc;
    margin-left: 40px;
    margin-bottom: 25px;
  }
  
  .services-intro ul li {
    font-size: var(--fontsize-p);
    line-height: 1.8;
    margin-bottom: 10px;
    color: #333;
  }

  .services-goals {
    text-align: center;
  }

  .services-goals ul {
    display: inline-block;
    text-align: left;
    margin-left: 0;
    padding-left: 0;
    list-style-position: inside;
  }
  
  .service-grid {
    display: grid;
    padding: 20px;
    grid-template-columns: repeat(2, minmax(0, 420px));
    gap: 40px; /* Space between boxes */
    align-items: start;
    justify-content: center;
  }
  
  .service-box {
    background: var(--color1);
    padding: 20px;
    text-align: center;
    transition: transform 0.7s ease, box-shadow 0.5s ease;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 420px;
    box-sizing: border-box;
    min-height: 0;
  }
  
  .service-box:hover {
    transform: translateY(-5px); /* Slight lift on hover */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15); /* Enhanced shadow on hover */
    background-color: var(--color4);
  }
  
  .service-box:hover h3,
  .service-box:hover p {
    color: #EFE7DA; /* Change text color on hover */
  }
  
  .service-box h3 {
    font-size: var(--fontsize-h3);
    margin-bottom: 15px;
    color: #333;
  
  }
  
  .service-box p {
    font-size: var(--fontsize-p);
    color: black;
    margin: 0 0 15px 0;
  }

  .service-content {
    flex: 1;
  }

  .service-toggle {
    align-self: center;
    margin-top: auto;
    border: none;
    cursor: pointer;
  }

  .service-box img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    object-position: top;
    border-radius: 10px;
    margin-bottom: 15px;
  }

  .cta-button {
    background: var(--color5);
    display: inline-block;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
  }
  
  .cta-button:hover {
    font-weight: bold;
  }

  .hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.5s ease-out, transform 3s ease-out;
}

.show {
    opacity: 1;
    transform: translateY(0);
}