/* Container */
.container {
  background-image: url("../img/bg1.png");
  background-size: cover;
  margin-top: 150px;
  max-width: 100%;
  padding: 20px 200px;
  color: white;
}

.tab-buttons{
  display: flex;
  justify-content: start;
  background-color: #666;
  max-width: fit-content;
  padding: 10px 20px;
}

.divider{
  width: 2px;
  height: 40px;
  background-color: #84cc16;
  margin: 0 15px;
}

/* Tab Buttons */
.bt1,
.bt2 {
  background: none;
  border: none;
  color: #fff;
  font-weight: bold;
  font-family: sans-serif;
  font-size: 16px;
  padding: 10px 30px;
  cursor: pointer;
  transition: color 0.3s ease-in-out;
}
.bt1.active,
.bt2.active,
.bt1:hover,
.bt2:hover {
  color: #a3c644;
}

/* Interfaces layout */
.interface {
  display: none;
}
.interface.active {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-top: 50px;
}

/* Images */
.phase1, .phase21 {
  flex: 1 1 400px;
  display: flex;
  justify-content: start;
}
.phase1 .img-sp,
.phase21 .img-target {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}


/* Text parts */
.phase2, .phase22 {
  flex: 1 1 300px;
}
.phase2 h3, .phase2 h2, .phase2 p,
.phase22 h3, .phase22 h2, .phase22 p {
  margin: 10px 0;
}
.tph1 {
  color: white;
  font-size: 1.5rem;
  font-weight: bolder;
}
.pph1 {
  color: rgb(175, 175, 175);
  font-size: 1rem;
  font-weight: 600;
}
.prod-title, .testing-title {
  color: #a3c644;
  font-size: 1.2rem;
}

/* Row icon */
.row {
  margin-right: 10px;
  width: 20px;
}

/* Responsive media queries */
@media (max-width: 1024px) {
  .container {
    padding: 20px 60px;
  }
  .tph1 {
    font-size: 1.3rem;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 20px 30px;
  }
  .interface.active {
    flex-direction: column;
    align-items: center;
  }
  .phase1, .phase21, .phase2, .phase22 {
    flex: 1 1 100%;
  }
  .bt1, .bt2 {
    padding: 8px 16px;
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .tph1 {
    font-size: 1.1rem;
  }
  .pph1 {
    font-size: 0.9rem;
  }
  .prod-title, .testing-title {
    font-size: 1rem;
  }
}

.container1 {
  max-width: 1200px;
  margin: 150px auto 0 auto;
  padding: 40px 24px;
}

.container1 h1 {
  font-size: 1.875rem;
  font-weight: bold;
  color: #1a202c;
  text-align: center;
  margin-bottom: 30px;
}

.grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card {
  text-align: center;
}

.card img {
  width: 100%;
  height: 202px;
  max-height: 250px;
  object-fit: cover;
  border-radius: 8px;
}

.card h2 {
  font-size: 1.25rem;
  font-weight: bold;
  margin-top: 10px;
  color: #1a202c;
}

.card p {
  font-size: 0.95rem;
  color: #4a5568;
  margin-top: 5px;
  line-height: 1.4;
}

/* Responsive adjustments */
@media (min-width: 1024px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .card img {
    max-height: 200px;
  }
  .card h2 {
    font-size: 1.1rem;
  }
  .card p {
    font-size: 0.9rem;
  }
}
