#services {
  background-color: var(--color-text);
}

.services-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--space-lg);
}

.services-title {
  width: 100%;
  text-align: center;

  font-family: var(--font-family);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-xl);
  color: var(--color-bg);
}

.services-box {
  width: 100%;
  padding: var(--card-padding-vertical) var(--card-padding-horizontal);
  display: flex;
  flex-direction: column; 
  align-items: center;   
  gap: var(--space-lg);  
  
  border: var(--border);
  border-radius: var(--radius-lg);

  background-color: var(--color-text);
}

.services-img-txt {
  width: 100%;
  display: flex;
  flex-direction: column; 
  align-items: center;   
  gap: var(--space-lg); 
  
  background-color: var(--color-text);
}

.services-sub-title{
  width: 100%;
  text-align:center;
  font-family: var(--font-family);
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-xl);
  color: var(--color-bg);
}

.services-img {
  width: 100%;
  max-width: 350px;
  aspect-ratio: 1 / 1;
  object-fit: cover;

  border-radius: var(--radius-xl);
}

.services-text {
  width: max-content;
  display: flex;
  flex-direction: column;   
  justify-content: center;        
  align-items: flex-start;
  gap: var(--space-md);
  font-size: var(--font-size-sm); 
}

.services-phrase {
  display: flex;
  flex-direction: row;   
  justify-content: flex-start;
  align-items: center;        
  gap: var(--space-md);
}

.services-phrase-icon {
  font-size: var(--font-size-lg);
  color:  var(--color-primary);
}

.services-phrase-text {
  font-family: var(--font-family);
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-lg);
  color: var(--color-bg);
}

@media screen and (min-width: 1024px){
  .services-img-txt {
    flex-direction: row-reverse; 
    justify-content: center;
    align-items: center;
  }
  .services-img {
    width: 30%;
    max-width: none;
  }
  .services-text {
    width: max-content;
    max-width: 40%;
    gap: var(--space-lg);
  }
}