/* AI Specialization - Premium program page */
.ai-specialization-page {
  font-family: var(--axon-font-sans);
}

/* ----- Hero ----- */
.ai-hero {
  position: relative;
  padding-top: 77px;
  padding-bottom: 2.5rem;
}
@media (min-width: 992px) {
  .ai-hero {
    padding-top: 80px;
    padding-bottom: 3rem;
  }
}
.ai-hero-kicker {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--axon-primary);
  margin-bottom: 0.5rem;
}
.ai-hero-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.2;
  font-weight: 700;
}
/* Hero content block flow - no overlap */
.ai-hero .hero-content {
  display: block;
}
.ai-hero .hero-description {
  display: block;
  margin-bottom: 1.5rem;
}
.ai-hero .hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 1.5rem;
  margin-bottom: 0;
}
.ai-hero-sub {
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 32em;
}
.ai-cta-main {
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ai-cta-main:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(15, 75, 134, 0.35);
}
.ai-cta-secondary {
  border-color: var(--axon-primary);
  color: var(--axon-primary);
}
.ai-cta-secondary:hover {
  background: rgba(15, 75, 134, 0.08);
}
.ai-hero-trust {
  font-size: 0.9rem;
  display: block;
}
.ai-hero-dot {
  opacity: 0.5;
  font-size: 0.5rem;
}
.ai-hero-visual {
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  min-width: 0;
  overflow: hidden;
}
.ai-hero-visual img {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: var(--axon-radius-xl);
  box-shadow: var(--axon-shadow-lg);
  transition: transform 0.3s ease;
}
/* Hero image wrapper: no fixed width, no absolute - never overlap */
.ai-hero .hero-image {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  min-width: 0;
  position: relative;
  box-sizing: border-box;
}
.ai-hero .hero-image img {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}
.ai-hero-visual:hover img {
  transform: scale(1.02);
}
@media (min-width: 992px) {
  .ai-hero-visual {
    max-width: 320px;
    margin: 0 0 0 auto;
  }
}
@media (max-width: 991.98px) {
  .ai-hero-visual {
    max-width: min(320px, 85vw);
    margin-left: auto;
    margin-right: auto;
  }
  /* Block layout when stacked: no flex = no overlap. Applies to all ai-hero (ML, AI, etc.) */
  .ai-hero .row {
    display: block !important;
    row-gap: 0 !important;
  }
  .ai-hero .row .col-12.order-1 {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    padding-bottom: 0 !important;
  }
  .ai-hero .hero-cta {
    margin-bottom: 2rem !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .ai-hero .hero-cta .ai-cta-main,
  .ai-hero .hero-cta .ai-cta-secondary {
    width: 100% !important;
    max-width: 100% !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }
  .ai-hero .row .col-12.order-2 {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    padding-top: 0 !important;
    margin-top: 3rem !important;
    float: none !important;
  }
  .ai-hero .ai-hero-visual img {
    transform: none !important;
  }
}
/* Critical: hero below 364px - no overlap on any device */
@media (max-width: 363.98px) {
  .ai-hero .row {
    display: block !important;
    width: 100%;
    max-width: 100%;
  }
  .ai-hero .row .col-12.order-1 {
    width: 100% !important;
    max-width: 100% !important;
    padding-bottom: 0 !important;
  }
  .ai-hero .hero-cta {
    margin-bottom: 2.5rem !important;
  }
  .ai-hero .row .col-12.order-2 {
    width: 100% !important;
    max-width: 100% !important;
    padding-top: 0 !important;
    margin-top: 7.5rem !important;
  }
  .ai-hero .hero-image,
  .ai-hero .ai-hero-visual {
    width: 100% !important;
    max-width: 100% !important;
  }
  .ai-hero .hero-image img,
  .ai-hero .ai-hero-visual img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }
}

/* ----- Section spacing & kicker ----- */
.ai-section {
  padding-top: 3rem;
  padding-bottom: 3rem;
}
.ai-hero + .ai-section {
  padding-top: 3rem;
}
.ai-section-alt {
  background: var(--axon-bg-alt, #f8fafc);
}
.section-kicker {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--axon-primary);
  margin-bottom: 0.5rem;
}
.ai-section h2 {
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 600;
  color: var(--axon-text);
}
.ai-specialization-page .container {
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
}

/* ----- Program Highlights - Cards ----- */
.ai-highlight-card {
  background: #fff;
  border: 1px solid var(--axon-border);
  border-radius: var(--axon-radius-xl);
  padding: 1.5rem;
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.2s ease;
}
.ai-highlight-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
  border-color: var(--axon-primary-light);
}
.ai-highlight-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  line-height: 1;
}
.ai-highlight-card h3 {
  color: var(--axon-text);
  font-weight: 600;
}

/* ----- Curriculum - Timeline style ----- */
.ai-curriculum {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.ai-curriculum-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: #fff;
  border: 1px solid var(--axon-border);
  border-radius: var(--axon-radius-lg);
  margin-bottom: 0.75rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.ai-curriculum-item:hover {
  border-color: var(--axon-primary-light);
  box-shadow: var(--axon-shadow);
}
.ai-curriculum-num {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--axon-primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 50%;
}
.ai-curriculum-body h3 {
  font-weight: 600;
  color: var(--axon-text);
}

/* ----- Career Outcomes ----- */
.ai-career-card {
  background: #fff;
  border: 1px solid var(--axon-border);
  border-radius: var(--axon-radius-xl);
  padding: 1.5rem;
  text-align: center;
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.ai-career-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  border-color: var(--axon-primary-light);
}
.ai-career-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  line-height: 1;
}
.ai-career-role {
  font-weight: 600;
  color: var(--axon-text);
  font-size: 1rem;
}

/* ----- Benefits - Fade-in cards ----- */
.ai-benefit-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.25rem;
  background: #fff;
  border: 1px solid var(--axon-border);
  border-radius: var(--axon-radius-lg);
  height: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.ai-benefit-card:hover {
  border-color: var(--axon-primary-light);
  box-shadow: var(--axon-shadow);
  transform: translateY(-2px);
}
.ai-benefit-check {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 75, 134, 0.1);
  color: var(--axon-primary);
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 50%;
}
.ai-fade-in {
  animation: aiFadeIn 0.5s ease forwards;
}
@keyframes aiFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.ai-benefit-card:nth-child(1) { animation-delay: 0.05s; }
.ai-benefit-card:nth-child(2) { animation-delay: 0.1s; }
.ai-benefit-card:nth-child(3) { animation-delay: 0.15s; }
.ai-benefit-card:nth-child(4) { animation-delay: 0.2s; }
.ai-benefit-card:nth-child(5) { animation-delay: 0.25s; }
.ai-benefit-card:nth-child(6) { animation-delay: 0.3s; }

/* ----- Enrollment CTA Section ----- */
.ai-cta-section {
  padding-top: 2rem;
  padding-bottom: 2rem;
}
.ai-cta-section + .ai-section {
  padding-top: 3rem;
}
.ai-cta-box {
  background: linear-gradient(135deg, var(--axon-primary) 0%, var(--axon-primary-dark) 100%);
  border-radius: var(--axon-radius-xl);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 12px 40px rgba(15, 75, 134, 0.35);
  transition: box-shadow 0.3s ease;
}
@media (min-width: 992px) {
  .ai-cta-box {
    padding: 3rem 2.5rem;
  }
}
.ai-cta-box:hover {
  box-shadow: 0 16px 48px rgba(15, 75, 134, 0.4);
}
.ai-cta-title {
  color: #fff;
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 700;
  margin: 0;
}
.ai-cta-sub {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  margin: 0;
}
.ai-cta-btn {
  background: #fff !important;
  color: var(--axon-primary) !important;
  border-color: #fff !important;
  font-weight: 600;
  padding: 0.75rem 2rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ai-cta-btn:hover {
  background: rgba(255, 255, 255, 0.95) !important;
  color: var(--axon-primary-dark) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* ----- CTA block & links ----- */
.ai-cta-block h3 {
  font-size: 1.25rem;
  font-weight: 600;
}
.ai-cta-block .btn-axon-primary:hover {
  transform: translateY(-2px);
}
.ai-specialization-page .border-top a {
  color: var(--axon-primary);
}
.ai-specialization-page .border-top a:hover {
  text-decoration: underline !important;
}

/* ----- Why section lead ----- */
.ai-why .lead {
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ----- Responsive ----- */
@media (max-width: 991.98px) {
  .ai-hero-title {
    font-size: 1.75rem;
  }
  .ai-hero-sub {
    max-width: none;
  }
  .ai-section,
  .ai-section-alt {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }
  .ai-cta-box {
    padding: 2rem 1.5rem;
    margin-top: 1.5rem !important;
    margin-bottom: 1.5rem !important;
  }
}
@media (max-width: 575.98px) {
  .ai-hero-visual {
    max-width: 260px;
  }
  .ai-highlight-card,
  .ai-career-card,
  .ai-benefit-card {
    padding: 1.25rem;
  }
}
.col-12.col-sm-6.col-lg-4:has(.ai-benefit-card) {
  margin-bottom: 10px;
}
.col-12.col-sm-6.col-lg-4:has(.ai-highlight-card) {
  margin-bottom: 10px;
}