
/* === IndiGo Cadet Pilot Programme | Poetic Pilot Academy === */

:root {
  --ppa-gold: #d4af37;
  --ppa-dark: #1a1a1a;
  --ppa-grey: #555;
  --ppa-light-bg: #fdfbf5;
  --ppa-white: #ffffff;
}

/* === GLOBAL === */
body {
  font-family: "Poppins", sans-serif;
  color: var(--ppa-dark);
  background: var(--ppa-white);
  margin: 0;
  padding: 0;
  line-height: 1.7;
}

/* === HERO SECTION (no background, gold heading) === */
.ai-hero {
  position: relative;
  width: 100%;
  height: 500px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}

.ai-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 20px;
}

.ai-hero-content h1 {
  font-size: 2.8rem;
  font-weight: 700;
  color: #FFD700;
  text-shadow: 1px 1px 8px rgba(0, 0, 0, 0.6);
}

.ai-hero-content p {
  margin-top: 12px;
  font-size: 1.1rem;
  color: #000000;
  text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
  .ai-hero {
    height: 380px;
  }

  .ai-hero-content h1 {
    font-size: 2rem;
  }

  .ai-hero-content p {
    font-size: 1rem;
  }
}

/* === ABOUT SECTION === */
.ai-about {
  background: var(--ppa-light-bg);
  padding: 80px 20px;
  text-align: center;
}

.ai-about h2 {
  font-size: 2rem;
  color: var(--ppa-dark);
  margin-bottom: 20px;
}

.ai-about p {
  max-width: 900px;
  margin: 0 auto;
  color: var(--ppa-grey);
  font-size: 1.1rem;
}

/* === MAP SECTION === */
.ai-details {
  padding: 80px 20px;
  text-align: center;
  background: var(--ppa-white);
}

.ai-details h2 {
  font-size: 2rem;
  color: var(--ppa-dark);
  margin-bottom: 10px;
}

.ai-details p {
  color: var(--ppa-grey);
  margin-bottom: 40px;
}

.ai-map {
  width: 100%;
  height: 420px;
  max-width: 1000px;
  margin: 0 auto;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

/* === HOW PPA WILL HELP SECTION === */
.ai-help {
  background: linear-gradient(135deg, #fdf7e6, #ffffff);
  text-align: center;
  padding: 100px 8%;
  border-radius: 24px;
  margin: 80px auto;
  max-width: 1200px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
}

.ai-help h2 {
  font-size: 2.2rem;
  margin-bottom: 60px;
  color: var(--ppa-dark);
  position: relative;
}

.ai-help h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background: var(--ppa-gold);
  margin: 15px auto 0;
  border-radius: 3px;
}

.ai-help-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.ai-help-card {
  background: var(--ppa-white);
  border-radius: 20px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ai-help-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.ai-help-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.ai-help-card h3 {
  font-size: 1.2rem;
  margin: 20px 0 10px;
  color: var(--ppa-dark);
}

.ai-help-card p {
  padding: 0 20px 30px;
  font-size: 0.95rem;
  color: var(--ppa-grey);
}

/* === PROGRAM (ACADEMY) CARDS === */
.ai-card {
  background: var(--ppa-white);
  border: 1px solid #eee;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ai-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.ai-card img {
  width: 100%;
  height: 140px;
  object-fit: contain;
  background: #fafafa;
  padding: 20px;
}

.ai-card-content {
  padding: 20px;
  text-align: center;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ai-card-content h3 {
  font-size: 1.2rem;
  margin-bottom: 6px;
  color: var(--ppa-dark);
}

.ai-card-content p {
  color: var(--ppa-grey);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.ai-btn {
  display: inline-block;
  align-self: center;
  margin-top: auto;
  padding: 8px 20px;
  background: var(--ppa-dark);
  color: var(--ppa-white);
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.ai-btn:hover {
  background: #333;
}

/* === CTA SECTION === */
.ai-cta {
  background: linear-gradient(120deg, #fdf6da, #fff);
  text-align: center;
  padding: 100px 30px;
  border-radius: 28px;
  max-width: 1200px;
  margin: 100px auto;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
}

.ai-cta h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--ppa-dark);
}

.ai-cta p {
  font-size: 1.1rem;
  color: var(--ppa-grey);
  max-width: 800px;
  margin: 0 auto 40px;
}

.ai-cta-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.ai-btn-outline {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 25px;
  border: 2px solid var(--ppa-dark);
  color: var(--ppa-dark);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.ai-btn-outline:hover {
  background: var(--ppa-dark);
  color: var(--ppa-white);
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 992px) {
  .ai-help-grid,
  .ai-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ai-hero-content h1 {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  .ai-help-grid,
  .ai-card-grid {
    grid-template-columns: 1fr;
  }

  .ai-help,
  .ai-cta {
    padding: 60px 20px;
  }

  .ai-hero {
    height: 70vh;
  }

  .ai-hero-content {
    padding: 20px 25px;
  }

  .ai-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
}

/* === IndiGo Cadet | Program Cards (Academies) === */
.ai-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  justify-items: center;
  padding: 3rem 1rem;
}

/* === Card Styling === */
.ai-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  max-width: 340px;
}

.ai-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

/* === Card Image === */
.ai-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 4px solid var(--ppa-gold, #d4af37);
  object-fit: contain; /* show full image */
}

/* === Card Content === */
.ai-card-content {
  padding: 1.5rem 1rem;
}

.ai-card-content h3 {
  font-size: 1.1rem;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.ai-card-content p {
  color: #555;
  margin-bottom: 1rem;
}

.ai-btn {
  display: inline-block;
  background: var(--ppa-gold, #d4af37);
  color: #000;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.3s;
}

.ai-btn:hover {
  background: #f5cf58;
}

/* === Center the Last Card (7th) in the Last Row === */
.ai-card-grid > .ai-card:last-child {
  grid-column: 2 / 3;
}

/* === Responsive: Mobile === */
@media (max-width: 768px) {
  .ai-card-grid {
    grid-template-columns: 1fr;
  }

  .ai-card-grid > .ai-card:last-child {
    grid-column: auto;
  }

  .ai-card img {
    height: 180px;
  }
}
