/* =========================================
   ATLAS Features Section — GSAP Optimized & Alignment Fixed
========================================= */

/* === Base Section === */
.atlas-feature-boxes {
  position: relative;
  background: #ffffff;
  padding: 70px 0;
  color: #001f3f;
  overflow: hidden;
}

/* === Animated Wave Background === */
.atlas-feature-boxes::before,
.atlas-feature-boxes::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 200%;
  height: 180px;
  background: url('/wp-content/themes/seaker/assets/images/waves.svg') repeat-x;
  background-size: contain;
  opacity: 0.15;
  z-index: 0;
}
.atlas-feature-boxes::before {
  animation: moveWave 18s linear infinite;
}
.atlas-feature-boxes::after {
  opacity: 0.1;
  animation: moveWaveReverse 30s linear infinite;
}
@keyframes moveWave {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes moveWaveReverse {
  0% { transform: translateX(0); }
  100% { transform: translateX(50%); }
}

/* === Layout === */
.atlas-feature-boxes .feature-layout {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  padding: 0 40px;
  gap: 60px;
  flex-wrap: wrap;
}

/* === Left Column === */
.atlas-feature-boxes .feature-left {
  flex: 0 0 38%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  order: 1;
  opacity: 0;
  transform: translateY(30px);
}

/* === Section Label === */
.atlas-feature-boxes .section-label {
  font-size: 13px;
  text-transform: uppercase;
  color: #0073e6;
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 6px;
}

/* === Title === */
.atlas-feature-boxes .features-title {
  font-size: 44px;
  font-weight: 800;
  color: #001f3f;
  line-height: 1.1;
  margin-bottom: 10px;
  text-align: left;
  width: 100%;
  word-break: break-word;
}

/* === Description === */
.atlas-feature-boxes .features-intro {
  font-size: 16px;
  color: #444;
  line-height: 1.6;
  margin-top: 8px;
  margin-bottom: 16px;
  max-width: 460px;
  text-align: left;
  align-self: flex-start;
}

/* === CTA Button === */
.atlas-feature-boxes .btn.btn-blue {
  background: #0073e6;
  color: #fff;
  padding: 10px 22px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  width: fit-content;
  box-shadow: 0 3px 10px rgba(0, 115, 230, 0.2);
  transition: all 0.3s ease;
  align-self: flex-start;
  margin-top: 4px;
}
.atlas-feature-boxes .btn.btn-blue:hover {
  background: #005bb5;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 115, 230, 0.25);
}

/* === Right Column === */
.atlas-feature-boxes .feature-right {
  flex: 0 0 54%;
  display: flex;
  justify-content: center;
  align-items: center;
  order: 2;
}

/* === Feature Grid === */
.atlas-feature-boxes .feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  width: 100%;
  max-width: 560px;
  align-items: stretch;
}

/* === Feature Card === */
.atlas-feature-boxes .feature-card {
  background: #f6faff;
  border: 2px solid rgba(0, 115, 230, 0.1);
  border-radius: 16px;
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  text-align: left;
  transition: all 0.4s ease;
  box-shadow: 0 4px 14px rgba(0, 85, 255, 0.05);
  opacity: 0;
  transform: translateY(40px);
  height: auto; /* ✅ Allow flexible height */
  min-height: 220px; /* ✅ maintain consistent base */
}

/* === Hover State === */
.atlas-feature-boxes .feature-card:hover {
  border-color: #0073e6;
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(0, 115, 230, 0.15);
  transform: translateY(-4px);
}

/* === Icon === */
.atlas-feature-boxes .feature-card i {
  font-size: 26px;
  color: #0073e6;
  margin-bottom: 16px;
  transition: all 0.3s ease;
}

/* === Card Title === */
.atlas-feature-boxes .feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: #001f3f;
  margin-bottom: 8px;
  line-height: 1.4;
}

/* === Card Description === */
.atlas-feature-boxes .feature-card p {
  font-size: 15px;
  line-height: 1.6;
  color: #333;
  flex-grow: 1;
  overflow-wrap: break-word;
  word-break: break-word;
  margin: 0;
}

/* === Responsive === */
@media (max-width: 1024px) {
  .atlas-feature-boxes .feature-layout {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
    padding: 0 24px;
  }

  .atlas-feature-boxes .feature-left,
  .atlas-feature-boxes .feature-right {
    flex: 0 0 100%;
    width: 100%;
  }

  .atlas-feature-boxes .features-title {
    font-size: 38px;
  }

  .atlas-feature-boxes .feature-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 100%;
  }

  .atlas-feature-boxes .feature-card {
    height: auto;
    width: 100%;
  }
}

/* === Small Mobile === */
@media (max-width: 600px) {
  .atlas-feature-boxes .features-title {
    font-size: 32px;
  }

  .atlas-feature-boxes .features-intro {
    font-size: 15px;
    margin-bottom: 14px;
  }

  .atlas-feature-boxes .feature-card {
    padding: 22px 18px;
  }

  .atlas-feature-boxes .feature-card i {
    font-size: 24px;
  }

  .atlas-feature-boxes .btn.btn-blue {
    align-self: flex-start !important;
    margin: 0 !important;
  }
}

/* === Paragraph Alignment Override (safety) === */
.atlas-feature-boxes .features-intro {
  text-align: left !important;
  align-self: flex-start !important;
  margin-left: 0 !important;
  padding-left: 0 !important;
  width: 100%;
  display: block;
}
