/* About page sections and sliders */

.about-hero {
  position: relative;
  min-height: 440px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--dark-gradient);
  color: #fff;
}

.about-hero::before,
.about-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.about-hero::before {
  width: 520px;
  height: 520px;
  right: -140px;
  top: -180px;
  background: rgba(245, 158, 11, 0.18);
  filter: blur(16px);
}

.about-hero::after {
  width: 360px;
  height: 360px;
  left: -150px;
  bottom: -180px;
  background: rgba(0, 86, 179, 0.25);
  filter: blur(20px);
}

.about-hero-content {
  position: relative;
  z-index: 1;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.about-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: clamp(1.5rem, 3vw, 3.5rem);
  align-items: center;
}

.about-hero-image {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  transform: rotate(2deg);
  width: 100%;
  max-width: 100%;
}

.about-hero-slides {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--primary-dark);
}

.about-hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: about-hero-fade 20s ease-in-out infinite;
}

.about-hero-slide:nth-child(1) {
  animation-delay: 0s;
}
.about-hero-slide:nth-child(2) {
  animation-delay: 4s;
}
.about-hero-slide:nth-child(3) {
  animation-delay: 8s;
}
.about-hero-slide:nth-child(4) {
  animation-delay: 12s;
}
.about-hero-slide:nth-child(5) {
  animation-delay: 16s;
}

@keyframes about-hero-fade {
  0%,
  18% {
    opacity: 1;
  }
  22%,
  100% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-hero-slide {
    animation: none;
  }

  .about-hero-slide:first-child {
    opacity: 1;
  }
}

.about-hero h1 {
  max-width: 760px;
  margin: 1.25rem 0 1rem;
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.05;
}

.about-hero h1 span {
  color: var(--accent-gold);
}
.about-hero p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.1rem;
}
.about-hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}
.about-hero .breadcrumb {
  margin-top: 2rem;
}

.about-values-section {
  background: var(--bg-main);
}
.about-values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.about-value-card {
  padding: 1.75rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}
.about-value-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-md);
}
.about-value-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--primary);
  color: var(--accent-gold);
  font-size: 1.35rem;
  margin-bottom: 1.25rem;
}
.about-value-card h3 {
  color: var(--primary);
  font-family: var(--font-heading);
  margin-bottom: 0.6rem;
}
.about-value-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.about-faculty-section {
  background: #f3f7fb;
  overflow: hidden;
}
.about-slider,
.partner-slider {
  width: 100%;
  overflow: hidden;
  padding-top: 1rem;
}
.about-slider-track,
.partner-track {
  display: flex;
  align-items: stretch;
  gap: 1.5rem;
  width: max-content;
  animation: achievers-slide 32s linear infinite;
}
.about-slider-track:hover,
.partner-track:hover {
  animation-play-state: paused;
}
.faculty-card,
.partner-card {
  position: relative;
  flex: 0 0 auto;
  width: clamp(230px, 22vw, 360px);
  min-height: 220px;
  padding: clamp(1.25rem, 2vw, 1.9rem) 1.2rem 1.4rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(19, 46, 76, 0.08);
  border-radius: 1.4rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}
.faculty-card:hover,
.partner-card:hover {
  transform: translateY(-6px);
  border-color: rgba(20, 92, 171, 0.18);
  box-shadow: var(--shadow-md);
}
.faculty-avatar {
  width: 118px;
  height: 118px;
  display: grid;
  place-items: center;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: var(--primary);
  border: 6px solid #e5edf5;
  color: var(--accent-gold);
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  overflow: hidden;
}
.faculty-avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.faculty-avatar[data-faculty-image] {
  cursor: zoom-in;
  outline: none;
}
.faculty-avatar[data-faculty-image]:focus-visible {
  box-shadow: 0 0 0 4px var(--accent-gold);
}
.about-lightbox[hidden] { display: none; }
.about-lightbox {
  position: fixed;
  z-index: 2000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(3, 13, 25, 0.94);
}
.about-lightbox-content {
  display: flex;
  max-width: min(96vw, 1400px);
  max-height: 92vh;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.about-lightbox-content img {
  display: block;
  max-width: 100%;
  max-height: calc(92vh - 3rem);
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.45);
}
.about-lightbox-content p {
  margin: 0;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  text-align: center;
}
.about-lightbox-close {
  position: absolute;
  z-index: 1;
  top: 1rem;
  right: 1rem;
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  font-size: 1.2rem;
}
.about-lightbox-close:hover,
.about-lightbox-close:focus-visible {
  background: var(--accent-gold);
  color: var(--primary);
}
.about-lightbox-open { overflow: hidden; }
.faculty-card h3 {
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}
.faculty-card strong {
  display: block;
  color: var(--primary-accent);
  font-size: 0.85rem;
  text-transform: uppercase;
  line-height: 1.4;
}
.faculty-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-top: 1rem;
}

.about-partners-section {
  background: var(--bg-surface);
  overflow: hidden;
}
.partner-logo {
  display: grid;
  place-items: center;
  width: clamp(120px, 15vw, 170px);
  height: clamp(70px, 9vw, 100px);
  margin: 0 auto 1.1rem;
  border-radius: 1rem;
  background: rgba(246, 249, 252, 0.9);
  overflow: hidden;
}
.partner-logo img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.partner-logo-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2vw, 2rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--primary);
}
.partner-name {
  margin: 0;
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2vw, 2.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

@keyframes achievers-slide {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-50% - 0.75rem));
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-slider-track,
  .partner-track {
    animation: none;
  }
}

.legacy-vision-section {
  background: var(--bg-surface);
}

.legacy-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 3.5rem;
  align-items: center;
}

.legacy-content {
  min-width: 0;
}

.legacy-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 2.8vw, 2.8rem);
  color: var(--primary);
  margin: 0.8rem 0 1.2rem;
  line-height: 1.2;
}

.legacy-text {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.legacy-pill-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.legacy-pill-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.legacy-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mission-icon {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-amber);
}

.vision-icon {
  background: rgba(10, 37, 64, 0.1);
  color: var(--primary);
}

.legacy-pill-item strong {
  color: var(--primary);
  font-size: 1.1rem;
  display: block;
  margin-bottom: 0.3rem;
}

.legacy-pill-item p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.legacy-quote-card {
  background: var(--dark-gradient);
  color: #ffffff;
  padding: 2.5rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.legacy-quote-card h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2vw, 1.9rem);
  color: var(--accent-gold);
  margin-bottom: 1.5rem;
}

.quote-text {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
  font-style: italic;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.leader-profile {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.leader-badge {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 800;
  flex-shrink: 0;
}

.leader-profile strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 0.1rem;
}

.leader-profile span {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
}

@media (min-width: 1441px) {
  .about-hero-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(440px, 0.9fr);
    gap: 4rem;
  }

  .legacy-layout {
    gap: 4rem;
  }
}

@media (max-width: 1024px) {
  .legacy-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .legacy-quote-card {
    max-width: 720px;
    width: 100%;
  }
}

@media (max-width: 900px) {
  .about-hero-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .about-hero-content {
    padding-top: 2.5rem;
    text-align: center;
  }

  .about-hero p,
  .about-hero h1 {
    margin-left: auto;
    margin-right: auto;
  }

  .about-hero-image {
    max-width: 620px;
    width: 100%;
    margin: 0 auto 1.25rem;
    transform: none;
  }

  .about-values-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .legacy-layout {
    gap: 2rem;
  }
}

@media (max-width: 640px) {
  .about-hero {
    min-height: 500px;
  }

  .about-hero-image {
    margin-bottom: 1.5rem;
  }

  .about-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .about-hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .about-values-grid {
    grid-template-columns: 1fr;
  }

  .faculty-card {
    width: min(330px, calc(100vw - 3rem));
  }

  .legacy-pill-item {
    gap: 0.8rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .legacy-quote-card {
    padding: 1.5rem;
  }

  .leader-profile {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .about-hero h1 {
    font-size: clamp(2rem, 9vw, 2.5rem);
  }

  .about-hero p {
    font-size: 0.98rem;
  }

  .faculty-card {
    width: min(285px, calc(100vw - 2.2rem));
  }

  .partner-pill {
    padding: 0.75rem 1rem;
    font-size: 0.92rem;
  }

  .legacy-title {
    font-size: 1.8rem;
  }
}
