.ai-and-technologies {
  padding: 60px 20px;
  background: 
    linear-gradient(to bottom, #ffffff 0%, rgba(255,255,255,0) 15%), /* fade from white */
    linear-gradient(to top, #ffffff 0%, rgba(255,255,255,0) 15%),
    radial-gradient(circle at 70% 30%, rgba(0, 41, 128, 0.1), transparent 40%),
    radial-gradient(circle at 30% 70%, rgba(0, 255, 136, 0.1), transparent 40%);
  min-height: 95vh;
}


.ai-and-technologies h2 {
  margin-bottom: 50px;
  font-size: 44px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  /* gradient text */
  background: radial-gradient(circle at 70% 30%, #6a5af9, transparent 70%),
              radial-gradient(circle at 30% 70%, #468cf5, transparent 60%);
  -webkit-text-fill-color: transparent; /* makes text take the gradient */
  background-clip: text;
  color: transparent; /* fallback */
}


.ai-and-technologies .subtitle {
  color: #737373;
  font-weight: 600;
  font-size: 40px;
  display: block;
}

.ai-tech-row {
  display: flex;
  align-items: center;
  justify-content: space-between; /* evenly spread text & image */
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.ai-tech-row:not(.reverse) {
  flex-direction: row-reverse; /* PictoBlox → image on right */
}

.ai-tech-row.reverse {
  flex-direction: row; /* Curriculum → image on left */
}

.ai-tech-text1 {
  flex: 1;
  min-width: 300px;
  text-align: right;
}

.ai-tech-text1 h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #004aad;
  margin-bottom: 12px;
}

.ai-tech-text1 p {
  color: #555;
  line-height: 1.6;
  margin-bottom: 20px;
}

.ai-tech-text {
  flex: 1;
  min-width: 300px;
  text-align: left;
}

.ai-tech-text h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #004aad;
  margin-bottom: 12px;
}

.ai-tech-text p {
  color: #555;
  line-height: 1.6;
  margin-bottom: 20px;
}

.ai-tech-img {
  flex: 1;
  min-width: 280px;
  display: flex;
  justify-content: center;
}


.ai-tech-img img {
  width: 100%;
  max-width: 280px;
  border-radius: 40px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 1s ease, box-shadow 0.3s ease;
}

.ai-tech-img img:hover {
  transform: scale(1.08) rotate(2deg);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  z-index: 5;
}

.img-wrapper{
  text-align: center;
  display: inline-block;
  position: relative;
}

.img-wrapper::after{
  content: "";
  display: block;
  width: 80%;
  height: 1px;
  background: #737373;
  margin: 8px auto 0 auto;
}

/* ✅ Responsive Styles */
@media (max-width: 1024px) {
  .ai-and-technologies h2 {
    font-size: 42px;
    text-align: center;
    margin: 0 auto;
  }
  .ai-and-technologies .subtitle {
    font-size: 32px;
    text-align: center;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .ai-and-technologies {
    padding: 40px 15px;
    text-align: center;
  }

  .ai-and-technologies h2 {
    font-size: 34px;
    margin: 0 auto;
  }

  .ai-and-technologies .subtitle {
    font-size: 26px;
  }

  .ai-tech-row {
    flex-direction: column;
    text-align: center;
  }

  .ai-tech-text1 {
    min-width: 100%;
  }

  .ai-tech-text {
    min-width: 100%;
  }


  .ai-tech-img {
    margin-top: 20px;
  }

  .ai-tech-img img {
    max-width: 220px;
  }
}

@media (max-width: 480px) {
  .ai-and-technologies h2 {
    font-size: 26px;
    text-align: center;
  }

  .ai-and-technologies .subtitle {
    font-size: 20px;
    text-align: center;
  }

  .ai-tech-text h3 {
    font-size: 1.2rem;
  }

  .ai-tech-text1 h3 {
    font-size: 1.2rem;
  }

  .ai-tech-img img {
    max-width: 180px;
  }
}


.explore-btn1 {
  display: block;        /* take full line */
  width: fit-content;    /* shrink to content size */
  margin-left: auto;     /* push to right */
  background: #f6f6f6;
  color: #2c2c2cd4;
  padding: 10px 24px;
  border-radius: 20px;
  font-weight: 600;
  border: #2c2c2cd4;
  text-decoration: none;
  transition: 0.3s ease;
}

.explore-btn1:hover {
  background: #0a69e7;
  color: white;
}

.explore-btn {
  display: block;
  width: fit-content;
  margin-right: auto;
  background: #f6f6f6;
  color: #2c2c2cd4;
  padding: 10px 24px;
  border-radius: 20px;
  border: #2c2c2cd4;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s ease;
}

.explore-btn:hover {
  background: #0a69e7;
  color: white;
}