:root {
  --theme-color: rgba(20, 199, 222, 1);
  --theme-color-dark: rgba(13, 145, 162, 1);
  --bg-color: rgba(248, 248, 246, 1);
  --text-dark: #1a1a24;
  --text-muted: #5a5a66;
}

body {
  background-color: var(--bg-color);
  color: var(--text-dark);
  padding: 24px 40px;
  overflow: visible;
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
}

/* Back Link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 1.1rem;
  margin-bottom: 0;
  transition: color 0.2s;
}

.back-link:hover {
  color: var(--theme-color-dark);
}

/* Sticky Top Bar (home button stays pinned) */
.page-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg-color);
  padding: 14px 0;
  margin-bottom: 12px;
}

/* Main Container */
.education-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Page Title */
.page-title {
  font-family: 'Caveat', cursive;
  font-size: 3rem;
  color: var(--theme-color-dark);
  margin-bottom: 8px;
  text-align: left;
}

/* Education Card */
.edu-card {
  background: white;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  display: flex;
  gap: 24px;
  border-left: 4px solid transparent;
  transition: transform 0.3s ease, border-left-color 0.3s ease, box-shadow 0.3s ease;
}

.edu-card:hover {
  transform: translateY(-3px);
  border-left-color: var(--theme-color);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

/* Icon Column */
.edu-icon-col {
  flex-shrink: 0;
  width: 48px;
  display: flex;
  justify-content: center;
}

.edu-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.7);
  transition: filter 0.3s ease;
}

.edu-card:hover .edu-icon {
  filter: grayscale(0%) opacity(1) drop-shadow(0 2px 4px rgba(20, 199, 222, 0.5));
}

/* Content Column */
.edu-content-col {
  flex-grow: 1;
}

/* Header: Tags & Timeline */
.edu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

.edu-tags {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.degree-pill {
  background-color: var(--theme-color);
  color: var(--text-dark);
  padding: 4px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.focus-pill {
  background-color: white;
  color: var(--text-dark);
  border: 1px solid #d0d0d0;
  padding: 4px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
}

.scholarship-pill {
  background-color: rgba(20, 199, 222, 0.12);
  color: var(--theme-color-dark);
  border: 1px solid rgba(20, 199, 222, 0.35);
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
}

.edu-timeline {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Institution Name */
.edu-institution {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-dark);
}

/* Bullets */
.edu-bullets {
  list-style-type: none;
  padding-left: 0;
  margin: 0;
}

.edu-bullets li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 8px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.edu-bullets li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--theme-color);
  font-weight: bold;
}

.edu-bullets li:last-child {
  margin-bottom: 0;
}

.edu-bullets em {
  color: var(--text-dark);
  font-style: italic;
  font-weight: 600;
}

/* Thesis Button */
.thesis-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 4px 14px;
  border-radius: 50px;
  border: 1px solid var(--theme-color);
  background-color: rgba(20, 199, 222, 0.1);
  color: var(--theme-color-dark);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.thesis-btn:hover {
  background-color: var(--theme-color);
  color: var(--text-dark);
  transform: translateY(-1px);
}

/* ===========================
   Scroll Animations
   =========================== */
.hidden-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.show-section {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================
   Responsive
   =========================== */
@media (max-width: 768px) {
  body {
    padding: 16px;
  }

  .edu-card {
    flex-direction: column;
    padding: 20px;
    gap: 16px;
  }

  .edu-icon-col {
    align-items: flex-start;
    justify-content: flex-start;
  }

  .edu-header {
    flex-direction: column;
    align-items: flex-start;
  }
}
