/* ================================
  Education Page Styles
================================ */

/* Hero Section */
.education-hero {
  background-image: url('/static/images/backgrounds/education-hero.jpg');
}

.education-hero .hero-header h1 {
  animation: card-fade-in var(--duration-slow) var(--ease-out) 0.1s both;
}

.education-hero .lead {
  animation: card-fade-in var(--duration-slow) var(--ease-out) 0.2s both;
}

/* Stats Section */
.edu-stats {
  padding: var(--space-xl) 0;
}

.edu-stat-card {
  text-align: center;
  animation: card-fade-in var(--duration-slow) var(--ease-out) both;
}


.edu-stat-value {
  display: block;
  font-size: 2.5rem;
  font-weight: var(--font-bold);
  background: var(--accent-primary-gradient);
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.edu-stat-label {
  display: block;
  font-size: var(--text-sm);
  color: var(--fg-secondary);
  margin-top: var(--space-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.edu-section-title {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-xl);
}

/* Featured Degree Card */
.edu-featured {
  padding: var(--space-xl) 0 var(--space-2xl);
}

.edu-degree-card {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  padding: var(--space-2xl);
  background: linear-gradient(135deg, rgb(234 88 12 / 8%) 0%, rgb(13 148 136 / 5%) 100%);
  border: 1px solid rgb(234 88 12 / 30%);
  text-decoration: none;
  color: inherit;
  animation: card-fade-in var(--duration-slow) var(--ease-out) 0.2s both;
}


.degree-image {
  width: 160px;
  height: 160px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--duration-normal) var(--ease-out);
}

.edu-degree-card:hover .degree-image {
  transform: scale(1.05);
}

.degree-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.degree-info {
  flex: 1;
}

.degree-badge {
  display: inline-block;
  padding: var(--space-2xs) var(--space-sm);
  background: rgb(234 88 12 / 15%);
  border: 1px solid rgb(234 88 12 / 30%);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  color: var(--fg-accent);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-sm);
}

.degree-info h2 {
  font-size: var(--text-2xl);
  margin: 0 0 var(--space-2xs);
}

.degree-field {
  font-size: var(--text-lg);
  color: var(--fg-accent);
  font-weight: var(--font-semibold);
  margin: 0 0 var(--space-sm);
}

.degree-school {
  font-size: var(--text-base);
  color: var(--fg-secondary);
  margin: 0 0 var(--space-2xs);
}

.degree-year {
  font-size: var(--text-sm);
  color: var(--fg-muted);
  margin: 0 0 var(--space-md);
}

.degree-description {
  font-size: var(--text-sm);
  color: var(--fg-secondary);
  line-height: var(--leading-relaxed);
  margin: 0;
}

.degree-arrow {
  font-size: var(--text-2xl);
  color: var(--fg-muted);
  transition: all var(--duration-normal) var(--ease-out);
  flex-shrink: 0;
}

.edu-degree-card:hover .degree-arrow {
  color: var(--fg-accent);
  transform: translate(4px, -4px);
}

/* Certifications Grid */
.edu-certs {
  padding: var(--space-xl) 0 var(--space-3xl);
}

.education-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.cert-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: inherit;
  animation: card-fade-in var(--duration-slow) var(--ease-out) both;
}


/* Card Image */
.card-image {
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  flex-shrink: 0;
  transition: transform var(--duration-normal) var(--ease-out);
}

.cert-card:hover .card-image {
  transform: scale(1.08);
}

.card-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Card Content */
.card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
}

.cert-name {
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  margin: 0;
  line-height: var(--leading-tight);
}

.issuer {
  font-size: var(--text-sm);
  color: var(--fg-secondary);
  margin: 0;
}

.cert-year-badge {
  display: inline-block;
  padding: 2px var(--space-sm);
  background: rgb(234 88 12 / 10%);
  border: 1px solid rgb(234 88 12 / 20%);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  color: var(--fg-accent);
  font-weight: var(--font-semibold);
  margin-top: var(--space-2xs);
}

/* Responsive */
@media (width <= 1200px) {
  .education-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (width <= 768px) {
  .education-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .edu-degree-card {
    flex-direction: column;
    text-align: center;
  }

  .degree-arrow {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
  }
}

@media (width <= 480px) {
  .edu-stat-value {
    font-size: 2rem;
  }

  .education-grid {
    grid-template-columns: 1fr;
  }

  .edu-degree-card {
    padding: var(--space-lg);
  }

  .degree-image {
    width: 120px;
    height: 120px;
  }

  .card-image {
    width: 120px;
    height: 120px;
  }
}
