:root {
  --edu-bg: #070513;
  --edu-panel: rgba(18, 11, 33, 0.88);
  --edu-border: rgba(255, 94, 0, 0.25);
  --edu-glow: rgba(255, 94, 0, 0.5);
  --edu-text: rgb(255, 232, 188);
  --edu-muted: rgba(255, 232, 188, 0.75);
  --edu-highlight: rgb(255, 94, 0);
  --edu-gradient: linear-gradient(135deg, rgba(255, 94, 0, 0.9), rgba(255, 180, 90, 0.35));
}

.education-page {
  position: relative;
  margin-top: -70px;
  min-height: 100vh;
  padding: 8rem 10vw 5rem;
}

.education-page::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at center, rgba(255, 94, 0, 0.08), transparent 42%);
  opacity: 0.9;
}

.education-page, .education-page * {
  position: relative;
  z-index: 1;
}

.edu-intro {
  max-width: 850px;
  margin: 0 auto 4rem;
  text-align: center;
}

.edu-intro .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.2rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--edu-highlight);
}

.edu-intro h1 {
  font-size: clamp(3.4rem, 4vw, 5.2rem);
  margin: 1.25rem 0 1rem;
  line-height: 1.02;
  color: var(--edu-text);
  text-shadow: 0 0 30px rgba(255, 94, 0, 0.25);
}

.edu-intro p {
  max-width: 760px;
  margin: 0 auto;
  font-size: 1.45rem;
  color: var(--edu-muted);
  line-height: 1.9;
}

.edu-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(320px, 1fr));
  gap: 2.4rem;
}

.edu-card {
  background: var(--edu-panel);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 6px solid transparent;
  border-radius: 32px;
  padding: 2.4rem 2.2rem 3rem;
  min-height: 620px;
  box-shadow: 0 24px 100px rgba(0, 0, 0, 0.55), 0 0 50px rgba(255, 94, 0, 0.12);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  transform-style: preserve-3d;
  overflow: hidden;
  animation: floatCard 10s ease-in-out infinite alternate;
}

.edu-card:hover {
  animation: none;
}

.edu-card:hover {
  transform: translateY(-12px) rotateX(4deg) rotateY(-3deg);
  border-left-color: var(--edu-highlight);
  box-shadow: 0 30px 120px rgba(0, 0, 0, 0.6), 0 0 50px rgba(255, 94, 0, 0.22);
}

.edu-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 35%);
  pointer-events: none;
}

.edu-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1rem;
  color: var(--edu-highlight);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}

.edu-badge span {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: var(--edu-highlight);
  box-shadow: 0 0 18px rgba(255, 94, 0, 0.5);
}

.edu-card h2 {
  font-size: 2.3rem;
  margin: 0 0 0.7rem;
  color: var(--text-color);
}

.edu-subtitle {
  margin: 0 0 1rem;
  color: var(--edu-highlight);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: capitalize;
}

.edu-card p {
  color: var(--edu-muted);
  font-size: 1.1rem;
  line-height: 1.9;
  margin-bottom: 1.7rem;
}

.edu-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}

.edu-card li {
  font-size: 1rem;
  color: var(--text-color);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
}

.edu-card li strong {
  color: var(--edu-highlight);
  font-weight: 600;
}

.edu-card-image {
  margin: -2.2rem -2.2rem 1.8rem;
  overflow: hidden;
  border-radius: 28px 28px 0 0;
  height: 210px;
  background: linear-gradient(180deg, rgba(255, 94, 0, 0.15), rgba(18, 11, 33, 0.85));
}

.edu-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.edu-card:hover .edu-card-image img {
  transform: scale(1.05) rotate(-0.2deg);
}

.edu-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.8rem;
}

.edu-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  color: var(--bg-color);
  text-decoration: none;
  font-weight: 600;
  background: linear-gradient(135deg, rgba(255, 94, 0, 0.95), rgba(255, 180, 90, 0.95));
  box-shadow: 0 10px 28px rgba(255, 94, 0, 0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.edu-links a:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(255, 94, 0, 0.28);
}

.edu-image-card {
  margin: 3rem auto 0;
  max-width: 980px;
  border-radius: 30px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 94, 0, 0.12), rgba(255, 232, 188, 0.05));
  border: 1px solid rgba(255, 94, 0, 0.18);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.35);
}

.edu-slideshow {
  margin: 3rem auto 0;
  max-width: 1080px;
}

.slide-header {
  text-align: center;
  margin-bottom: 1.6rem;
}
.eyebrow {
    font-size: 1px;
}
.slide-header h3 {
  font-size: 15px;
  margin: 0.8rem auto 0.45rem;
  color: var(--text-color);
}

.slide-header p {
  max-width: 760px;
  margin: 0 auto;
  color: var(--edu-muted);
  font-size: 1rem;
  line-height: 1.8;
}

.slideshow-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  border: 1px solid rgba(255, 94, 0, 0.16);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.4);
  background: rgba(10, 7, 20, 0.95);
}

.slides {
  display: flex;
  transition: transform 0.75s ease;
}

.slide {
  min-width: 100%;
  flex-shrink: 0;
  position: relative;
}

.slide img {
  display: block;
  width: 100%;
  height: 520px;
  object-fit: contain;
  background: #070513;
}

.slide-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.4rem 1.6rem;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72));
  color: rgb(255, 232, 188);
  font-size: 1rem;
  letter-spacing: 0.01em;
}

.slide-dots {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  padding: 1.2rem 0 1.6rem;
  background: rgba(0, 0, 0, 0.04);
  flex-wrap: wrap;
}

.slide-dots button {
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 50%;
  cursor: pointer;
  border: none;
  background: rgba(255, 255, 255, 0.22);
  transition: transform 0.25s ease, background 0.25s ease;
}

.slide-dots button:hover,
.slide-dots button.active {
  transform: scale(1.15);
  background: var(--edu-highlight);
  box-shadow: 0 0 16px rgba(255, 94, 0, 0.4);
}

.education-note {
  max-width: 980px;
  margin: 2.5rem auto 0;
  text-align: center;
  color: var(--edu-muted);
  font-size: 1.08rem;
  line-height: 1.8;
}

@keyframes floatCard {
  from {
    transform: translateY(0) rotateX(0) rotateY(0);
  }
  to {
    transform: translateY(-10px) rotateX(2deg) rotateY(2deg);
  }
}

.edu-image-card img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.edu-image-card p {
  margin: 1.4rem 1.8rem 1.8rem;
  color: var(--edu-muted);
  font-size: 1.05rem;
  line-height: 1.8;
}


@media (max-width: 760px) {
  .education-page {
    padding: 6rem 5vw 4rem;
  }

  .edu-grid {
    grid-template-columns: 1fr;
  }

  .edu-card {
    padding: 1.8rem 1.8rem 2rem;
  }
}
