.ai-journey-section {
  position: relative;
  width: 100%;
  padding: 80px 0;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(46, 204, 113, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(138, 43, 226, 0.15) 0%, transparent 50%),
    linear-gradient(180deg, #000000 0%, #001a14 100%);
  background-size: 100% 100%, 100% 100%, 100% 100%;
  background-position: 0% 0%, 0% 0%, 0% 0%;
  background-repeat: no-repeat;
  overflow: hidden;
}

.ai-journey-container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(30px, 5vw, 60px);
}

/* Header */
.ai-journey-header {
  margin-bottom: 60px;
}

.ai-journey-subtitle {
  color: rgba(255, 255, 255, 0.70);
  font-family: Lexend;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  display: block;
}

.ai-journey-title-row {
  display: flex;
  align-items: center;
  gap: 40px;
  width: 100%;
}

.ai-journey-main-title {
  color: #FFF;
  font-family: Lexend;
  font-size: 36px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  margin: 0;
  flex-shrink: 1;
  min-width: 0;
  display: block;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.ai-journey-main-title span {
  display: inline-block;
  white-space: normal;
}

.ai-journey-title-line {
  flex: 1 1 auto;
  min-width: 0;
  height: 1px;
  background: transparent;
  margin-right: -9999px;
  position: relative;
}

.ai-journey-title-line::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 90%;
  height: 2px;
  background: linear-gradient(90deg, #0000 0%, #2dcb71 1.60016%);
  opacity: 1;
  will-change: transform;
  transform: none;
}

.ai-journey-section.animated .ai-journey-title-line::after {
  animation: lineExpand 0.5s ease-out forwards;
  animation-delay: 0.2s;
}

.ai-journey-title-line::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 2px;
  background: rgba(0, 26, 20, 1);
  opacity: 1;
  z-index: 1;
}

.ai-journey-section.animated .ai-journey-title-line::before {
  animation: whiteOverlayFade 0.5s ease-out forwards;
  animation-delay: 0.2s;
}

@keyframes lineExpand {
  0% {
    width: 90%;
  }
  100% {
    width: 100%;
  }
}

@keyframes whiteOverlayFade {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes slideUpFade {
  0% {
    opacity: 0;
    filter: blur(4px);
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    filter: blur(0px);
    transform: translateY(0);
  }
}

/* Content Block */
.ai-journey-content-block {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  border-radius: 12px;
  --border-bottom-width: 1px;
  --border-color: #2ecc7166;
  --border-left-width: 1px;
  --border-right-width: 1px;
  --border-style: solid;
  --border-top-width: 1px;
  border-top: var(--border-top-width) var(--border-style) var(--border-color);
  border-right: var(--border-right-width) var(--border-style) var(--border-color);
  border-bottom: var(--border-bottom-width) var(--border-style) var(--border-color);
  border-left: var(--border-left-width) var(--border-style) var(--border-color);
  background-image: linear-gradient(180deg, rgba(46, 0, 84, 0.3) 0%, rgba(0, 26, 20, 0.5) 100%);
  background-size: 100% 100%;
  background-position: 0% 0%;
  background-repeat: no-repeat;
  backdrop-filter: blur(10px);
  padding: 30px 40px;
  box-shadow: 0 0 40px rgba(46, 204, 113, 0.3);
  overflow: hidden;
}

/* AI Section */
.ai-section {
  text-align: center;
  margin-bottom: 30px;
}

/* Campaign Container */
.campaign-container {
  position: relative;
  max-width: 933px;
  margin: 0 auto;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  border-radius: 12px;
  --border-bottom-width: 1px;
  --border-color: #2ecc7166;
  --border-left-width: 1px;
  --border-right-width: 1px;
  --border-style: solid;
  --border-top-width: 1px;
  border-top: var(--border-top-width) var(--border-style) var(--border-color);
  border-right: var(--border-right-width) var(--border-style) var(--border-color);
  border-bottom: var(--border-bottom-width) var(--border-style) var(--border-color);
  border-left: var(--border-left-width) var(--border-style) var(--border-color);
  padding: 30px;
  opacity: 0;
  transform: scale(0.94) translateY(36px);
  will-change: transform, opacity;
}

.ai-journey-section.animated .campaign-container {
  animation: aiJourneyCampaignIn 1.2s cubic-bezier(.28,0.9,.32,1) forwards;
  animation-delay: var(--ai-campaign-delay, 0.45s);
}

.campaign-container > * {
  position: relative;
  z-index: 1;
}

.ai-header {
  color: #FFF;
  /* H5 */
  font-family: Lexend;
  font-size: 25px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  margin: 0 0 20px 0;
}

.ai-description {
  color: #FFF;
  /* body */
  font-family: Lexend;
  font-size: 16px;
  font-style: normal;
  font-weight: 300;
  line-height: 24px; /* 150% */
  margin: 0 auto;
  max-width: 700px;
}

/* Campaign Section */
.campaign-section {
  text-align: center;
  margin-bottom: 30px;
}

.campaign-header {
  color: #FFF;
  /* H5 */
  font-family: Lexend;
  font-size: 25px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  margin: 0 0 20px 0;
}

.campaign-description {
  color: #FFF;
  text-align: center;
  /* body */
  font-family: Lexend;
  font-size: 16px;
  font-style: normal;
  font-weight: 300;
  line-height: 24px; /* 150% */
  margin: 0 auto;
  max-width: 800px;
}

/* Stages Grid */
.stages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  align-items: center;
}

.stage-card {
  display: flex;
  padding: 30px 20px;
  flex-direction: column;
  align-items: center;
  justify-content: stretch;
  min-height: 100%;
  gap: 10px;
  border-radius: 12px;
  border: 1px solid var(--Adlook-Green, #2ECC71);
  background: rgba(0, 0, 0, 0.20);
  box-shadow: 0 9px 6.9px 0 rgba(0, 0, 0, 0.25);
  opacity: 0;
  transform: translateY(32px);
  will-change: transform, opacity;
}

.ai-journey-section.animated .stage-card {
  animation: aiJourneyStageIn 0.65s cubic-bezier(.25,.85,.28,1) forwards;
  animation-delay: var(--ai-stage-delay, 0.6s);
}

.stage-title {
  color: #FFF;
  /* H5 */
  font-family: Lexend;
  font-size: 25px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  margin: 0 0 8px 0;
}

.stage-subtitle {
  color: #FFF;
  text-align: center;
  font-family: Lexend;
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: 22px; /* 137.5% */
  margin: 0 0 12px 0;
}

.stage-description {
  color: #FFF;
  text-align: center;
  /* body */
  font-family: Lexend;
  font-size: 16px;
  font-style: normal;
  font-weight: 300;
  line-height: 24px; /* 150% */
  margin: 0;
  flex-grow: 1;
}

/* CTA Button */
.ai-journey-cta {
  text-align: center;
  margin-top: 30px;
}

.ai-journey-btn {
  display: inline-flex;
  padding: 10px 30px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border-radius: 500px;
  background: #2ECC71;
  color: #FFF;
  text-align: center;
  font-family: Lexend;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  text-decoration: none;
  transition: none;
  --border-color: #2ecc71;
  --border-left-width: 1.5px;
  --border-right-width: 1.5px;
  --border-top-width: 1.5px;
  --border-style: solid;
  border-top: var(--border-top-width) var(--border-style) var(--border-color);
  border-bottom: var(--border-top-width) var(--border-style) var(--border-color);
  border-left: var(--border-left-width) var(--border-style) var(--border-color);
  border-right: var(--border-right-width) var(--border-style) var(--border-color);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  z-index: 1;
}

@keyframes aiJourneyCampaignIn {
  0% {
    opacity: 0;
    transform: scale(0.93) translateY(42px);
  }
  55% {
    opacity: 0.65;
    transform: scale(0.985) translateY(10px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes aiJourneyStageIn {
  0% {
    opacity: 0;
    transform: translateY(32px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .stages-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .ai-journey-title-row {
    flex-direction: row;
    align-items: center;
    gap: 20px;
    width: 100%;
  }
  
  .ai-journey-main-title {
    flex-shrink: 0;
    min-width: 0;
    width: 70%;
  }
  
  .ai-journey-title-line {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    height: 1px;
    margin-right: calc(-1 * clamp(30px, 5vw, 60px));
    margin-top: 0;
  }
  
  .ai-journey-title-line::after {
    width: 100%;
  }
  
  .ai-journey-content-block {
    padding: 40px 30px;
  }
}

@media (max-width: 768px) {
  .ai-journey-section {
    padding: 60px 0;
  }
  
  .ai-journey-main-title {
    font-size: 28px;
  }
  
  .ai-header,
  .campaign-header {
    font-size: 36px;
  }
  
  .ai-journey-content-block {
    padding: 30px 20px;
  }
}

body.wp-admin .stage-card,
body.wp-admin .campaign-container {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}

