/* Minimal custom styles on top of Tailwind for animation and fine-tuning. */

/* ═════════════════════════════════════════════════════════════════════════════
   Hero Section Animations
   ═════════════════════════════════════════════════════════════════════════════ */

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

@keyframes hero-float-reverse {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}

@keyframes hero-fade-in-up {
  0% { opacity: 0; transform: translateY(28px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes hero-pulse-glow {
  0%, 100% { opacity: 0.35; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(1.06); }
}

.hero-float {
  animation: hero-float 3.5s ease-in-out infinite;
}

.hero-float-slow {
  animation: hero-float 5s ease-in-out infinite;
}

.hero-float-reverse {
  animation: hero-float-reverse 4s ease-in-out infinite;
}

.hero-fade-in-up {
  animation: hero-fade-in-up 0.8s ease-out both;
}

.hero-fade-in-up-d1 {
  animation: hero-fade-in-up 0.8s ease-out 0.15s both;
}

.hero-fade-in-up-d2 {
  animation: hero-fade-in-up 0.8s ease-out 0.3s both;
}

.hero-fade-in-up-d3 {
  animation: hero-fade-in-up 0.8s ease-out 0.45s both;
}

.hero-fade-in-up-d4 {
  animation: hero-fade-in-up 0.8s ease-out 0.6s both;
}

.hero-fade-in-up-d5 {
  animation: hero-fade-in-up 0.8s ease-out 0.75s both;
}

.hero-glow-pulse {
  animation: hero-pulse-glow 4s ease-in-out infinite;
}

/* ═════════════════════════════════════════════════════════════════════════════ */

@keyframes partner-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.animate-partner-scroll {
  display: inline-flex;
  min-width: 200%;
  animation: partner-scroll 28s linear infinite;
}

/* Simple utility for line-clamp using modern properties; Tailwind plugin could be used instead. */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Basic scroll reveal animation hook */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════════════════════
   Alumni / Testimonial Gallery
   ═══════════════════════════════════════════════════════════════════════════ */

/* Stats Bar */
.alumni-stats-bar {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  padding: 2rem 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

/* Gallery Section */
.alumni-gallery-section {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 30%, #f8fafc 100%);
  padding: 3.5rem 0 4rem;
}

/* Responsive Card Grid */
.alumni-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

@media (min-width: 640px) {
  .alumni-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
  }
}

@media (min-width: 1024px) {
  .alumni-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

/* Card */
.alumni-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 1.25rem;
  padding: 2rem 1.5rem 1.75rem;
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.04),
    0 4px 14px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(226, 232, 240, 0.6);
  transition:
    transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.alumni-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0ea5e9, #0284c7, #0369a1);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.alumni-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.06),
    0 12px 32px rgba(14, 165, 233, 0.12);
}

.alumni-card:hover::before {
  opacity: 1;
}

/* Image */
.alumni-card-img-wrap {
  flex-shrink: 0;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, #e0f2fe, #bae6fd, #e0f2fe);
  box-shadow:
    0 2px 8px rgba(14, 165, 233, 0.15),
    0 0 0 1px rgba(14, 165, 233, 0.08);
  margin-bottom: 1rem;
}

.alumni-card-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

/* Quote Icon */
.alumni-quote-icon {
  width: 28px;
  height: 28px;
  color: #0ea5e9;
  margin-bottom: 0.5rem;
  opacity: 0.8;
}

/* Card Body */
.alumni-card-body {
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Quote Text */
.alumni-card-quote {
  font-size: 0.875rem;
  line-height: 1.65;
  color: #475569;
  font-style: italic;
  margin-bottom: 1rem;
  max-width: 280px;
}

/* Meta */
.alumni-card-meta {
  margin-top: auto;
  text-align: center;
}

.alumni-card-name {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.alumni-card-college {
  font-size: 0.8125rem;
  color: #0369a1;
  font-weight: 500;
  margin-top: 0.15rem;
}

.alumni-card-country {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-top: 0.25rem;
  letter-spacing: 0.02em;
}

/* ── Horizontal (Side-by-Side) Card Layout on Larger Screens ─────────────── */
@media (min-width: 1024px) {
  .alumni-card {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    padding: 1.75rem;
    gap: 1.5rem;
  }

  .alumni-card-img-wrap {
    margin-bottom: 0;
    width: 100px;
    height: 100px;
  }

  .alumni-card-body {
    text-align: left;
    align-items: flex-start;
  }

  .alumni-card-meta {
    text-align: left;
  }

  .alumni-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1280px) {
  .alumni-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .alumni-card-img-wrap {
    width: 110px;
    height: 110px;
  }
}

