.services {
    padding: 90px 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

 
  
  .title-container {
    text-align: center;
    margin-bottom: 4rem;
  }
  
  .title-container h1 {
    font-weight: 700;
    font-size: 3rem;
    color: var(--nav-color);
    position: relative;
  }
  
  .title-container h1 span {
    color: var(--nav-hover);
    position: relative;
  }
  
  .service-section {
    background: #fff;
    border-radius: 20px;
    width: 90%;
    height: 30vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4rem;
    gap: 2rem;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
  }
  
  .service-section.visible {
    opacity: 1;
    transform: translateY(0);
  }
  
  .service-section.reverse {
    flex-direction: row-reverse;
  }
  
  .service-section .text {
    flex: 1;
    width: 90%;
    padding: 40px;
  }
  
  .service-section .text h2 {
    font-size: 2rem;
    color: var(--nav-hover);
    margin-bottom: 1rem;
  }
  
  .service-section .text h3 {
    font-size: 1.2rem;
    color: var(--nav-color);
  }
  
  .service-section .text p, .service-section .text ul li {
    font-size: 1.1rem;
    line-height: 1.7;
  }
  
  .service-section .text ul li {
    position: relative;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 10px;
    padding-left: 35px; /* space for the icon */
    list-style: none; /* remove default bullet */
}

.service-section .text ul li::before {
    content: "✔";
    position: absolute;
    left: 0;
    top: 6px;
    width: 24px;
    height: 24px;
    background: var(--nav-color);
    color: white;
    border-radius: 50%;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}
  
.service-section .image {
    flex: 1;
    width: 500px;
    height: 100%; /* no forced height */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.service-section .image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Important: keeps the image nicely cropped without distortion */
    transition: transform 0.5s ease;
}
  
  
  /* Responsive */
  @media (max-width: 850px) {
    .services
    {
        padding: 0;
        gap: 20px;
    }
    .service-section {
        flex-direction: column-reverse;
        text-align: center;
        gap: 5px; 
    }
  
    .service-section.reverse {
        flex-direction: column-reverse;
    }
  
    .service-section .image {
        width: 100%;
        min-height: 120px; /* fixed mobile height */
        max-height: 250px;
    }

    .service-section .image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .service-section .text
    {
        width: 100%;
        padding: 20px;
    }
  
    .service-section .text h2 {
        font-size: 1.5rem;
    }

    .service-section .text ul li
    {
        text-align: left;
    }
    .service-section .text p,
    .service-section .text ul li
    {
        font-size: 15px;
    }
  }


/* Impact Section */
.impact-section
{
    padding: 3rem 1rem; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center; 
    height: 100vh;
    background: rgba(0, 0, 0, 0.746) url(../img/2copy.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    background-blend-mode: overlay;
    overflow-y: hidden;
    gap: 30px;
}
  
.impact-section h2
{
    color: var(--text-color);
    margin-bottom: 40px;
    font-size: 6rem;
    position: relative;
    line-height: 1.2;
    font-weight: bold;
}
  
.counters
{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10rem;
    margin-bottom: 30px;
}
  
.counter-box
{
    background: #fff;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.05);
    width: 200px;
    width: 200px;
}
  
.counter
{
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--nav-hover);
    display: block;
}
  
.counter-box p
{
    margin-top: 0.5rem;
    font-size: 1rem;
    color: #555;
}

@media (max-width:1150px)
{
    .counters
    {
        gap: 5rem;
    }
}

@media (max-width:800px)
{
    .impact-section h2
    {
        font-size: 4rem;
    }
    
    .counters
    {
        gap: 2rem;
    }
}

@media (max-width:600px)
{
    .impact-section h2
    {
        font-size: 3rem;
    }
}


/* CTA Section */
.cta-section
{
    text-align: center;
    padding: 4rem 1rem;
    background: var(--nav-hover);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 60vh;
}
  
.cta-section h2
{
    font-size: 2rem;
    margin-bottom: 1rem;
}
  
.cta-section .cta-buttons
{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}
  
.cta-section .btn
{
    padding: 0.8rem 1.8rem;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s ease;
}
  
.cta-section .btn:hover
{
    opacity: 0.9;
}
  
.cta-section .btn
{
    background: #fff;
    color: #1a73e8;
}
  
.cta-section .btn.secondary
{
    background: #ffca28;
    color: #1a237e;
}
  
.cta-section .btn.outline
{
    background: transparent;
    border: 2px solid white;
    color: white;
}
  
  /* Mobile Responsive */
@media (max-width: 600px)
{
    .counters
    {
      flex-direction: column;
      align-items: center;
    }
  
    .cta-buttons
    {
      flex-direction: column;
    }
}
  