.hero-section {
  position: relative;
  width: 100%;
  min-height: 520px;
  height: clamp(480px, 100vh - 200px, 600px);
  overflow: hidden;
   /* isolation: isolate;*/
  padding: 0 5%;
}

.hero-slider-background,
.hero-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-slider-background {
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: opacity 0.8s ease, background-image 0.8s ease;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-overlay {
  z-index: 1;
  background:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.1) 0%,
      rgba(255, 255, 255, 0.1) 40%,
      rgba(255, 255, 255, 0.15) 100%
    );
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(33, 23, 68, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 16px 28px rgba(22, 16, 49, 0.18);
  z-index: 5;
  transition: transform 0.25s ease, background 0.25s ease;
}

.slider-arrow:hover {
  transform: translateY(-50%) scale(1.05);
  background: rgba(94, 39, 170, 0.72);
}

.slider-arrow.prev {
  left: 2.2%;
}

.slider-arrow.next {
  right: 2.2%;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  height: 100%;
}

.hero-layout {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hero-left {
  flex: 0 0 30%;
  min-width: 0;
}

.hero-student {
  flex: 0 0 35%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 100%;
}

.hero-student img {
  max-height: 500px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 16px 32px rgba(20, 14, 46, 0.28));
}

.hero-form {
  flex: 0 0 28%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding: 0;
  flex: 0 0 30%;
  min-width: 0;
  align-self: flex-start;
  margin-top: 30px;
}

.hero-copy::before {
  content: "";
    position: absolute;
    left: -55px;
    top: -34px;
    width: min(30vw, 280px);
    height: min(30vw, 280px);
    background: rgba(255, 255, 255, 0.58);
    border-radius: 50%;
    z-index: -1;
    width: min(50vw, 350px);
    height: min(30vw, 350px);
}

.hero-kicker {
  display: inline-flex;
  color: rgb(209, 38, 81);
  font-size: clamp(0.98rem, 1.4vw, 1.22rem);
  font-weight: 600;
  letter-spacing: 0.05em;
  font-family: 'Poppins', sans-serif;
}

.hero-copy h1 {
  margin: 6px 0 8px;
  color: var(--purple-ink);
  font-size: clamp(1.8rem, 3.8vw, 2.9rem);
  line-height: 1.1;
  letter-spacing: 0.01em;
}

.hero-copy h1 span {
  background: linear-gradient(90deg, #ffb33d 0%, #ff7a6a 45%, #6f38de 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-description {
  max-width: 400px;
  margin: 0 0 14px;
  font-size: clamp(0.95rem, 1.2vw, 1.02rem);
  line-height: 1.7;
  color: black;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  margin-top: -2px;
  padding: 6px 40px;
  border-radius: 999px;
  color: #553a08;
  background: linear-gradient(180deg, #ffe48b 0%, #f7ce4b 100%);
  box-shadow: 0 18px 30px rgba(247, 205, 92, 0.25);
  font-size: clamp(0.66rem, 0.65vw, 0.75rem);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  column-gap: 16px;
  width: 300px;
  max-width: 300px;
  margin-top: 16px;
}

.feature-item,
.feature-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(68, 50, 104, 0.08);
  box-shadow: 0 18px 30px rgba(25, 18, 53, 0.08);
  color: var(--purple-ink);
  font-weight: 500;
  font-size: clamp(0.72rem, 0.9vw, 0.79rem);
  line-height: 1.45;
  min-height: 42px;
  align-self: stretch;
}

.feature-badge,
.chip-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--purple) 0%, var(--pink) 100%);
  box-shadow: 0 12px 22px rgba(94, 39, 170, 0.2);
  flex: 0 0 auto;
  font-size: 0.6rem;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 18px;
  width: 300px;
  margin-left: -20px;
}

.hero-actions .hero-button {
  flex: 1;
  min-height: 44px;
  padding: 8px 13px;
  font-size: clamp(0.8rem, 0.8vw, 0.9rem);
  letter-spacing: 0.3px;
  white-space: nowrap;
  text-align: center;
}

.hero-actions .hero-button--primary {
  margin-left: 10px;
}

.hero-visual {
  flex: 0 0 70%;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 4fr) 300px;
  align-items: center;
  gap: 10px;
}

.hero-art {
  position: relative;
  height: 360px;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0.12) 100%);
}

.hero-art__backdrop {
  position: absolute;
  inset: 16px 14px 62px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(94, 39, 170, 0.3) 0%, rgba(255, 127, 57, 0.2) 100%);
}

.hero-art__window {
  position: absolute;
  top: 58px;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.65);
}

.hero-art__window--one {
  left: 24%;
}

.hero-art__window--two {
  right: 24%;
}

.hero-art__podium {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 30px;
  height: 46px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(94, 39, 170, 0.48) 0%, rgba(255, 127, 57, 0.48) 100%);
}

.admission-card {
  position: relative;
  width: 300px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(67, 52, 104, 0.08);
  box-shadow: var(--shadow-xl);
  backdrop-filter: blur(16px);
  z-index: 4;
  justify-self: end;
}

.admission-card__header {
  border-radius: 10px;
  padding: 8px 10px;
  color: #fff;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  background: linear-gradient(90deg, var(--purple) 0%, var(--pink) 48%, var(--orange) 100%);
  box-shadow: 0 16px 26px rgba(94, 39, 170, 0.18);
}

.form-grid {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.hero-section .form-control {
  min-height: 42px;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 0.84rem;
}

.hero-section textarea.form-control {
  min-height: 56px;
  resize: none;
}

.hero-section .submit-button {
  min-height: 42px;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.76rem;
  letter-spacing: 0.05em;
}

.form-message {
  padding: 12px;
  border-radius: 10px;
  font-size: 0.85rem;
  line-height: 1.5;
  text-align: center;
  margin-bottom: 12px;
}

.form-message.success {
  background: rgba(76, 175, 80, 0.15);
  color: #2d7a2d;
  border: 1px solid rgba(76, 175, 80, 0.3);
}

.form-message.error {
  background: rgba(244, 67, 54, 0.15);
  color: #c62828;
  border: 1px solid rgba(244, 67, 54, 0.3);
}

.leadership-band {
  padding: 0 1% 16px;
}

.leadership-surface {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 14px;
  border-radius: 30px;
  background: linear-gradient(135deg, #2d1550 0%, #31165e 42%, #1d143d 100%);
  color: #fff;
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: stretch;
  gap: 18px;
}

.leadership-top {
  display: flex;
  flex: 2;
  gap: 8px;
}

.leader-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.leader-photo {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
  border: 2px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.24);
}

.leader-label {
  display: block;
  margin-bottom: 2px;
  color: #f5c86f;
  font-size: 0.55rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.leader-card h3 {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.leader-card p {
  display: none;
}

.leadership-grid {
  display: flex;
  flex: 4;
  gap: 8px;
  margin-top: 0;
}

.leadership-mini {
  padding: 10px 8px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  transition: transform 0.25s ease, background 0.25s ease;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.leadership-mini:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.11);
}

.mini-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  margin-bottom: 6px;
  background: linear-gradient(135deg, var(--pink) 0%, var(--orange) 100%);
  box-shadow: 0 4px 8px rgba(255, 112, 106, 0.16);
  font-size: 0.9rem;
}

.leadership-mini h4 {
  font-size: 0.68rem;
  line-height: 1.25;
  margin: 0;
}

.welcome-section {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 5% 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 5vw, 60px);
  align-items: center;
  min-height: auto;
}

.welcome-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  flex: 0 0 38%;
  min-width: 0;
}

.welcome-copy::before {
  display: none;
}

.welcome-subtitle {
  display: inline-flex;
  color: var(--orange);
  font-size: clamp(0.75rem, 1vw, 0.95rem);
  font-weight: 900;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
  width: fit-content;
}

.welcome-copy h2 {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  line-height: 1.15;
  color: var(--purple-ink);
  max-width: 100%;
}

.welcome-copy p {
  margin: 0 0 16px;
  max-width: 400px;
  color: var(--muted);
  font-size: clamp(14px, 1.2vw, 16px);
  line-height: 1.5;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.welcome-button {
  margin-top: 0;
  min-height: 44px;
  padding: 10px 20px;
  font-size: clamp(0.75rem, 1vw, 0.95rem);
  align-self: flex-start;
}

.welcome-visual {
  position: relative;
  min-height: clamp(200px, 35vw, 320px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(-10px, -2vw, 0);
  flex-wrap: nowrap;
}

.welcome-visual::before,
.welcome-visual::after {
  display: none;
}

.welcome-dots {
  display: none;
}

.welcome-circle {
  position: relative;
  width: clamp(160px, 25vw, 240px);
  height: clamp(160px, 25vw, 240px);
  border-radius: 50%;
  object-fit: cover;
  border: clamp(4px, 1vw, 8px) solid #fff;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
  z-index: 1;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin: 0 clamp(-5px, -2vw, -15px);
  flex: 0 0 auto;
}

.welcome-circle:hover {
  transform: scale(1.05);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.18);
  z-index: 3;
}

.welcome-circle:first-of-type {
  margin-left: 0;
}

.admission-banner {
  max-width: var(--container);
  margin: 18px auto 58px;
  padding: clamp(16px, 3vw, 24px) clamp(20px, 4vw, 30px);
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(12px, 3vw, 22px);
  color: #fff;
  background: linear-gradient(90deg, #ff4f87 0%, #ff7f39 100%);
  box-shadow: var(--shadow-lg);
  flex-wrap: wrap;
}

.admission-banner h2 {
  font-size: clamp(2rem, 3vw, 3.8rem);
  line-height: 1.08;
  letter-spacing: 0.02em;
  margin: 0;
}

.admission-banner p {
  margin: 10px 0 0;
  max-width: 760px;
  font-size: clamp(13px, 1.2vw, 16px);
  line-height: 1.7;
  opacity: 0.95;
}

.banner-button {
  color: #ff4f93;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 28px rgba(255, 71, 124, 0.24);
}


/* Mobile-specific overrides (mobile layout and images) */
@media (max-width: 1023px) {
  .hero-section {
    min-height: 420px;
    height: auto;
    padding: 0 4%;
  }

  .hero-layout {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
    justify-content: center;
    max-width: 100%;
  }

  .hero-left,
  .hero-student,
  .hero-form,
  .hero-copy,
  .hero-visual {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
  }

  .hero-copy {
    order: 1;
    text-align: center;
    margin-top: 10px;
    padding: 0 6px;
  }

  .hero-copy::before {
    left: 50%;
    top: -20px;
    transform: translateX(-50%);
    width: min(60vw, 200px);
    height: min(60vw, 200px);
    z-index: -1;
  }

  .hero-student {
    order: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 6px 0;
    height: auto;
  }

  .hero-student img {
    max-height: 320px;
    width: auto;
    object-fit: cover;
    display: block;
    margin: 0 auto;
    filter: none;
  }

  .hero-form {
    order: 3;
    justify-content: center;
    padding: 12px 0;
    width: 100%;
  }

  .hero-copy h1 {
    font-size: clamp(1.6rem, 6vw, 2.4rem);
    text-align: center;
  }

  .hero-visual {
    display: block;
    width: 100%;
    grid-template-columns: 1fr;
    margin-top: 14px;
  }

  .hero-art {
    height: 280px;
    border-radius: 16px;
  }

  .hero-art__backdrop {
    inset: 12px 12px 42px;
    border-radius: 14px;
  }

  .admission-card {
    width: 100%;
    justify-self: center;
    margin-top: 12px;
    padding: 12px;
  }

  .hero-actions {
    width: 100%;
    margin-left: 0;
    justify-content: center;
  }

  .feature-grid {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .slider-arrow {
    width: 44px;
    height: 44px;
  }

  .slider-arrow.prev { left: 5%; }
  .slider-arrow.next { right: 5%; }

  /* Ensure image-related rules are scoped to mobile only */
  .hero-slide {
    background-position: center;
    background-size: cover;
  }

  /* Hide or reduce non-essential visuals on small screens */
  .hero-copy::before { display: block; }
}

/* Leadership surface — mobile only: stack cards, center content, circular small photos */
@media (max-width: 1023px) {
  .leadership-surface {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 8px;
    width: 100%;
    box-sizing: border-box;
    border-radius: 20px;
  }

  .leadership-top,
  .leadership-grid {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 6px;
    margin: 0;
  }

  /* Make Chairman/Director cards slightly more compact */
  .leadership-top .leader-card {
    padding: 4px 6px;
    gap: 6px;
  }

  .leadership-top .leader-photo {
    width: clamp(48px, 7.5vw, 56px) !important;
    height: clamp(48px, 7.5vw, 56px) !important;
    border-width: 1.2px;
  }

  .leader-card {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6px 8px;
    gap: 6px;
    box-sizing: border-box;
    border-radius: 10px;
  }

  .leader-photo {
    width: clamp(50px, 8vw, 60px) !important;
    height: clamp(50px, 8vw, 60px) !important;
    border-radius: 50% !important;
    object-fit: cover;
    flex: 0 0 auto;
    margin: 0 auto;
    display: block;
    border-width: 1.5px;
  }

  .leader-label {
    display: block;
    margin-bottom: 4px;
    color: #f5c86f;
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    width: 100%;
  }

  .leader-card h3 {
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.2;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    width: 100%;
    word-break: break-word;
  }

  .leadership-mini {
    width: 100%;
    max-width: 100%;
    padding: 6px 8px;
    border-radius: 10px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    box-sizing: border-box;
  }

  .leadership-mini h4 {
    margin: 0;
    text-align: left;
    font-size: 0.78rem;
  }

  .mini-icon {
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
  }

  /* Prevent any horizontal scrolling from these sections */
  .leadership-surface,
  .leadership-top,
  .leadership-grid {
    overflow-x: hidden;
  }
}