/*
 * File: public\css\school\enrollment.css
 * Purpose: Defines presentation styles for the enrollment interface.
 */

body {
  overflow-x: hidden;
}

/* =============================
   ENROLL HERO SECTION
============================= */
.enroll-hero {
  text-align: center;
}

.enroll-hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: #fff;
}

.enroll-overlay h1 {
  font-size: 50px;
  font-weight: 800;
}

/* =============================
   HERO BUTTONS
============================= */
.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 30px;
}

.hero-buttons .btn,
.btn-primary {
  display: inline-block;
  background: transparent;
  color: white;
  border: 2.5px solid white;
  padding: 18px 50px;
  font-size: 22px;
  font-weight: 700;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
}

.hero-buttons .btn:hover,
.btn-primary:hover {
  background: white;
  color: #1e2a57;
  transform: scale(1.07);
}

/* =============================
   ANGLED SECTION
============================= */
.enroll-banner {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  background: var(--ml-grey);
  overflow: visible;
  flex-wrap: wrap;
}

.enroll-banner::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 55%;
  background-image: url("../../images/HomeRotatingImage1.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  clip-path: polygon(0 0, 95% 0, 75% 100%, 0% 100%);
  z-index: 1;
}

.enroll-banner::after {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: 55%;
  background: var(--ml-grey);
  clip-path: polygon(25% 0, 100% 0, 100% 100%, 5% 100%);
  z-index: 1;
}

.white-pane {
  position: relative;
  z-index: 3;
  width: 45%;
  background: var(--ml-grey);
  padding-left: 6%;
}

.banner-content {
  max-width: 520px;
  color: #2c3e50;
}

.banner-content h2 {
  font-weight: 800;
  color: #000;
  margin-bottom: 20px;
  font-size: clamp(1.8rem, 2.5vw, 2.8rem);
}

.banner-content h2.smaller-heading {
  font-size: clamp(1.4rem, 2vw, 2.1rem) !important;
}

.banner-content p {
  font-size: clamp(1rem, 1vw + 0.4rem, 1.1rem);
  line-height: 1.6;
  color: #333;
  margin-bottom: 30px;
}

.banner-content p.smaller-paragraph {
  font-size: clamp(0.95rem, 1vw + 0.3rem, 1rem);
  line-height: 1.55;
}

/* =============================
   ENROLLMENT STEPS
============================= */
.enroll-steps {
  position: relative;
  overflow: hidden;

  background: linear-gradient(
    135deg,
    rgba(30, 42, 87, 0.95),
    #1e2a57,
    #0f1633
  );

  color: white;
  text-align: center;
  padding: 90px 20px;
  border-radius: 12px;
  margin: 100px auto;
  max-width: 1200px;
  border: 3px solid rgba(0, 0, 0, 0.85);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.enroll-steps::before,
.enroll-steps::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Bubble animation layers */
.enroll-steps::before {
  background-image:
    radial-gradient(circle 120px at 10% 90%, rgba(210,225,255,0.35) 20%, transparent 70%),
    radial-gradient(circle 160px at 80% 20%, rgba(210,225,255,0.28) 20%, transparent 80%),
    radial-gradient(circle 200px at 50% 50%, rgba(210,225,255,0.20) 15%, transparent 70%);
  background-size: 200% 200%;
  animation: floatBubblesMain 25s ease-in-out infinite alternate;
}

.enroll-steps::after {
  background-image:
    radial-gradient(circle 80px at 30% 70%, rgba(210,225,255,0.22) 25%, transparent 80%),
    radial-gradient(circle 100px at 70% 30%, rgba(210,225,255,0.18) 25%, transparent 80%),
    radial-gradient(circle 150px at 20% 20%, rgba(210,225,255,0.14) 25%, transparent 80%);
  background-size: 180% 180%;
  animation: floatBubblesAlt 35s ease-in-out infinite alternate-reverse;
}

@keyframes floatBubblesMain {
  0% { background-position: 0% 100%, 100% 0%, 50% 50%; }
  50% { background-position: 50% 50%, 30% 70%, 70% 20%; }
  100% { background-position: 100% 0%, 0% 100%, 40% 80%; }
}

@keyframes floatBubblesAlt {
  0% { background-position: 100% 0%, 0% 100%, 80% 40%; }
  50% { background-position: 60% 80%, 40% 20%, 20% 60%; }
  100% { background-position: 0% 100%, 100% 0%, 50% 30%; }
}

/* =============================
   STEP CARDS
============================= */
.steps-container { position: relative; z-index: 2; }

.steps-container h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 12px;
}

.steps-container p {
  font-size: 18px;
  margin-bottom: 50px;
  color: #f0f4ff;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.step {
  background: rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 30px 20px;
  backdrop-filter: blur(5px);
  border: 2px solid rgba(255,255,255,0.3);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.step:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.step-icon {
  width: 65px;
  height: 65px;
  margin-bottom: 25px;
  filter: brightness(0) invert(1);
}

.step h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}

.step p {
  font-size: 16px;
  color: #eaf0fa;
  line-height: 1.6;
  max-width: 300px;
  margin: 0 auto;
}

/* =============================
   RESPONSIVE
============================= */
@media (max-width: 900px) {
  .enroll-overlay h1 {
    font-size: 48px;
    padding: 0 16px;
  }
}

@media (max-width: 768px) {
  .steps-container h2 { font-size: 1.8rem; }
  .steps-container p { font-size: 16px; }
  .step p { font-size: 15px; }
}
/* =============================
   SPACING FIX: BUTTON BELOW STEPS
============================= */
.steps-button {
  margin-top: 60px;
}

@media (max-width: 768px) {
  .steps-button {
    margin-top: 40px;
  }
}

