/* PASSION INTO PROFESSION SECTION
 * Overall section layout and cinematic atmosphere
 */

#academy {
  position: relative;
  display: block; /* Enforce block layout to prevent flex row collapse */
  padding: 120px 0;
  background: #050505;
  overflow: hidden;
  z-index: 50; /* Ensure section itself is stacked above #finale */
}

/* Atmospheric Background Elements */
.academy-atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.academy-mesh-gradient {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(at 10% 20%, rgba(255, 182, 193, 0.05) 0px, transparent 50%),
    radial-gradient(at 90% 80%, rgba(255, 228, 225, 0.05) 0px, transparent 50%),
    radial-gradient(at 50% 50%, rgba(255, 46, 147, 0.02) 0px, transparent 50%);
  filter: blur(80px);
}

.academy-glow-orb {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 192, 203, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  animation: academyOrbFloat 20s infinite ease-in-out;
}

@keyframes academyOrbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(100px, -50px) scale(1.2); }
}

/* Header Composition */
.academy-header-premium {
  text-align: center;
  max-width: 1000px;
  margin: 0 auto 5rem;
  position: relative;
  z-index: 60; /* Above everything */
  padding: 0 2rem;
}

.academy-header-premium h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 6vw, 5.5rem); /* Scaled down minimum for mobile */
  font-weight: 300;
  line-height: 1.1;
  color: #ffffff;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
  word-wrap: break-word; /* Ensure long words don't overflow */
}

.academy-header-premium h2 span {
  display: block;
  font-size: 0.4em;
  text-transform: uppercase;
  letter-spacing: 0.6em;
  color: var(--hot-pink);
  margin-bottom: 1rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
}

.academy-header-premium p {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.05em;
  max-width: 750px;
  margin: 0 auto;
}

/* Header Responsive Adjustments */
@media (max-width: 768px) {
  #academy {
    padding: 80px 0;
  }
  .academy-header-premium {
    margin-bottom: 3rem;
    padding: 0 1.5rem;
  }
  .academy-header-premium h2 span {
    font-size: 0.5em; /* Ensure the eyebrow is readable when the main text is small */
    letter-spacing: 0.3em;
  }
  .academy-header-premium p {
    font-size: 0.95rem;
  }
}

/* ============================================
   ACADEMY SECTION - VISIBILITY FIX
   ANIMATION-SAFE (Preserves GSAP Animations)
   ============================================ */

/* FOUNDATION - Container Structure */
#academy {
  position: relative;
  z-index: 50 !important;
  width: 100%;
  overflow: visible !important;
  display: block !important;
}

/* BACKGROUND LAYER - Keep orbs & meshes behind */
.feminine-glow-container {
  position: relative;
  overflow: hidden;
  z-index: 0;
}

.ambient-bg-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.academy-atmosphere {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* ALL DECORATIVE ELEMENTS - Background only */
.atmosphere-orb,
.glow-orb,
.academy-glow-orb,
.bg-mesh,
.mesh-gradient-feminine,
.academy-mesh-gradient {
  z-index: 0 !important;
  pointer-events: none !important;
}

/* ============================================
   ACADEMY CONTENT - Visible on Top
   (No opacity/transform overrides - GSAP controls these)
   ============================================ */

.academy-header-premium {
  position: relative;
  z-index: 20;
  visibility: visible !important;
  display: block !important;
  /* ❌ NO opacity or transform overrides - let GSAP animate */
}

.academy-header-premium h2 {
  visibility: visible !important;
  /* ❌ NO opacity or transform overrides - let GSAP animate */
}

.academy-header-premium p {
  visibility: visible !important;
  /* ❌ NO opacity or transform overrides - let GSAP animate */
}

.academy-course-grid {
  position: relative;
  z-index: 15;
  visibility: visible !important;
  display: grid !important;
  /* ❌ NO opacity or transform overrides - let GSAP animate */
}

.academy-card-ultra-premium {
  position: relative;
  z-index: 15;
  visibility: visible !important;
  display: block !important;
  /* ❌ NO opacity or transform overrides - let GSAP animate */
}

.academy-card-img-wrap {
  visibility: visible !important;
}

.academy-card-body {
  visibility: visible !important;
}

.academy-card-badge {
  visibility: visible !important;
}

.academy-card-title {
  visibility: visible !important;
}

.academy-card-desc {
  visibility: visible !important;
  /* ❌ NO opacity or transform overrides - let GSAP animate */
}

.academy-card-footer {
  visibility: visible !important;
}

.academy-card-price {
  visibility: visible !important;
}

.btn-feminine-luxury {
  visibility: visible !important;
  display: inline-block !important;
}

#acad-btns {
  position: relative;
  z-index: 15;
  visibility: visible !important;
  display: block !important;
  /* ❌ NO opacity or transform overrides - let GSAP animate */
}

.btn-outline {
  visibility: visible !important;
}

/* Ensure text elements stay on top of background */
.academy-header-premium h2 span,
.academy-card-title,
.academy-card-desc,
.academy-card-badge {
  position: relative;
  z-index: 25;
}

/* Hover state */
.academy-card-ultra-premium:hover {
  z-index: 16;
}

/* ============================================
   END OF ACADEMY SECTION FIX
   ============================================ */

/* ============================================
   ACADEMY SECTION - NEW DESIGN
   ISOLATED CSS - DOESN'T AFFECT OTHER SECTIONS
   ============================================ */

.academy-section-new {
  position: relative;
  width: 100%;
  padding: 80px 20px;
  overflow: visible;
  background: linear-gradient(135deg, #0f0f1e 0%, #1a0f2e 50%, #0f0f1e 100%);
  z-index: 10;
}

/* BACKGROUND DECORATIVE LAYER */
.academy-bg-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.academy-gradient-top {
  position: absolute;
  top: -50%;
  right: 0;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(236, 100, 216, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(40px);
}

.academy-gradient-bottom {
  position: absolute;
  bottom: -30%;
  left: 0;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(147, 100, 234, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(40px);
}

.academy-accent-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  z-index: 0;
}

.academy-orb-1 {
  top: 20%;
  right: 10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 100, 200, 0.1) 0%, transparent 70%);
  animation: academy-float 15s ease-in-out infinite;
}

.academy-orb-2 {
  bottom: 10%;
  left: 5%;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(100, 150, 255, 0.1) 0%, transparent 70%);
  animation: academy-float 20s ease-in-out infinite reverse;
}

@keyframes academy-float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-30px); }
}

/* MAIN CONTENT WRAPPER */
.academy-content-wrapper {
  position: relative;
  z-index: 5;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

/* HEADER SECTION */
.academy-header-section {
  text-align: center;
  margin-bottom: 20px;
}

.academy-label {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: #ec64d8;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 15px;
}

.academy-main-title {
  font-size: 48px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #ffffff 0%, #ec64d8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.academy-subtitle {
  font-size: 16px;
  color: #b0a0c8;
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto;
}

/* COURSES GRID */
.academy-cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin: 40px 0;
}

/* COURSE CARD */
.academy-course-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(236, 100, 216, 0.2);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  backdrop-filter: blur(10px);
}

.academy-course-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(236, 100, 216, 0.5);
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(236, 100, 216, 0.1);
}

/* CARD IMAGE */
.card-image-wrapper {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
  background: linear-gradient(135deg, #1a0f2e 0%, #2a1a4e 100%);
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.academy-course-card:hover .card-image {
  transform: scale(1.05);
}

.card-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(236, 100, 216, 0.9);
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.card-badge-masterclass {
  background: rgba(147, 100, 234, 0.9);
}

/* CARD CONTENT */
.card-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-title {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
}

.card-description {
  font-size: 14px;
  color: #b0a0c8;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* CARD FOOTER */
.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  border-top: 1px solid rgba(236, 100, 216, 0.1);
}

.card-price {
  font-size: 18px;
  font-weight: 700;
  color: #ec64d8;
}

/* ENROLL BUTTONS */
.btn-enroll {
  background: rgba(236, 100, 216, 0.2);
  color: #ec64d8;
  border: 1px solid rgba(236, 100, 216, 0.5);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-enroll:hover {
  background: rgba(236, 100, 216, 0.3);
  border-color: rgba(236, 100, 216, 0.8);
  color: #ffffff;
}

.btn-enroll-primary {
  background: linear-gradient(135deg, #ec64d8 0%, #9364ea 100%);
  color: white;
  border: none;
}

.btn-enroll-primary:hover {
  background: linear-gradient(135deg, #f080e8 0%, #a880f0 100%);
  transform: scale(1.05);
}

/* CTA SECTION */
.academy-cta-section {
  text-align: center;
  margin-top: 40px;
}

/* WHATSAPP BUTTON */
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #25d366 0%, #1aa850 100%);
  color: white;
  padding: 14px 30px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-whatsapp:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(37, 211, 102, 0.3);
  background: linear-gradient(135deg, #2dd377 0%, #20b85a 100%);
}

.whatsapp-icon {
  font-size: 18px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .academy-section-new {
    padding: 60px 20px;
  }

  .academy-main-title {
    font-size: 36px;
  }

  .academy-subtitle {
    font-size: 14px;
  }

  .academy-cards-container {
    grid-template-columns: 1fr;
  }

  .card-image-wrapper {
    height: 200px;
  }
}

@media (max-width: 480px) {
  .academy-section-new {
    padding: 40px 15px;
  }

  .academy-main-title {
    font-size: 28px;
  }

  .academy-subtitle {
    font-size: 13px;
  }

  .academy-label {
    font-size: 12px;
  }

  .card-title {
    font-size: 18px;
  }

  .card-description {
    font-size: 13px;
  }

  .btn-whatsapp {
    padding: 12px 24px;
    font-size: 13px;
  }
}

/* ============================================
   END ACADEMY SECTION CSS
   NOTHING ABOVE THIS AFFECTS OTHER SECTIONS
   ============================================ */
