/* atpl.css (put in /wp-content/themes/astra-child/custom-pages/atpl/) */
/* Clean PPA look — full width friendly */
/* === Prevent FOUC (Flash of Unstyled Content) === */
[data-aos] {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(.2, .9, .3, 1);
}
.aos-animate {
  opacity: 1 !important;
  transform: none !important;
}
/* === Force Full Width for ATPL Page === */

/* Break out of Astra container */
body.page .atpl-section {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  max-width: 100vw !important;
  padding-left: 5%;
  padding-right: 5%;
  box-sizing: border-box;
}

/* Ensure CTA aligns perfectly edge-to-edge */
.atpl-section .cta-atpl {
  width: 100vw !important;
  margin-left: calc(-50vw + 50%) !important;
  max-width: 100vw !important;
}


.atpl-section {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(to bottom, #fff, #fffbea);
  color: #222;
  padding: 80px 5%;
  box-sizing: border-box;
}

/* HERO */
.atpl-hero {
  text-align: center;
  max-width: 1100px;
  margin: 0 auto 40px;
}

.atpl-hero h1 {
  font-size: 42px;
  font-weight: 800;
  color: #111;
  line-height: 1.15;
  margin: 0;
}

.atpl-hero p {
  font-size: 18px;
  color: #555;
  margin-top: 12px;
  line-height: 1.6;
}

/* COURSES GRID */
.atpl-courses {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin: 60px auto;
  max-width: 1300px;
  box-sizing: border-box;
}

.course-card {
  background: #fff;
  border-radius: 16px;
  padding: 30px;
  text-align: center;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  border: 1px solid rgba(0,0,0,0.04);
}

.course-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.course-card .icon {
  font-size: 40px;
  color: #FFD700;
  margin-bottom: 12px;
}

.course-card h2 {
  font-size: 20px;
  margin: 8px 0 10px;
  color: #111;
}

.course-card p {
  font-size: 15.5px;
  color: #555;
  line-height: 1.6;
  margin: 6px 0;
}

/* CTA — full width breakout */
.cta-atpl {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  background: #111;
  color: #fff;
  padding: 72px 5%;
  box-sizing: border-box;
}

.cta-atpl .cta-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.cta-atpl h2 {
  font-size: 28px;
  color: #FFD700;
  margin: 0 0 12px;
}

.cta-atpl p {
  color: #eee;
  font-size: 18px;
  margin: 0 0 22px;
  line-height: 1.6;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.btn-atpl {
  display: inline-block;
  background: #FFD700;
  color: #111;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 25px;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease;
}

.btn-atpl:hover {
  background: #e6c200;
  transform: scale(1.03);
}

/* Responsive */
@media (max-width: 900px) {
  .atpl-hero h1 { font-size: 32px; }
  .atpl-section { padding: 50px 6%; }
  .cta-atpl { padding: 48px 6%; }
  .course-card { padding: 22px; }
}
