/* MASTER EDUCATION CSS
   Architecture: Bento-inspired Split Layout
   Animations: Cinematic Entrance (Left/Right)
*/

:root {
  /* Colors & Branding */
  --accent-color: #00ffee;
  --primary-glow: rgba(0, 255, 238, 0.3);
  --bg-dark: #080808;
  --text-main: #ffffff; /* Full white */
  --text-muted: #b0b0b0;
  --text-color: #ffffff; /* Matching stats */

  /* Glassmorphism System - NEUTRAL TRANSPARENT */
  --card-bg-glass: rgba(255, 255, 255, 0.05);
  --inner-item-bg: rgba(255, 255, 255, 0.03);
  --border-color: rgba(0, 255, 238, 0.15); /* Cyan border for clarity */
  --hover-border-color: rgba(0, 255, 238, 0.4);

  /* Animation */
  --ease-cinematic: cubic-bezier(0.22, 1, 0.36, 1);
  --entrance-speed: 1.4s;
}

/* 1. SECTION CONTAINER */
.education-section {
  position: relative;
  padding: 100px 5%;
  background: transparent;
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  overflow: hidden;
  min-height: 100vh;
}

/* 2. HEADER */
.section-header {
  text-align: center;
  margin-bottom: 80px;
}

.section-title {
  text-align: center;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--text-main); /* Full white */
  position: relative;
  margin-bottom: 25px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.section-title::after {
  content: "";
  display: block;
  width: 100px;
  height: 4px;
  background: var(--accent-color);
  margin: 15px auto 0;
  box-shadow: 0 0 15px var(--accent-color);
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.7;
}

/* 3. MAIN SPLIT LAYOUT */
.education-horizontal {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 40px;
  max-width: 1400px;
  margin: 0 auto;
}

/* 4. ENTRANCE ANIMATIONS */
.university-overview {
  transform: translateX(-110vw);
  opacity: 0;
  transition: transform var(--entrance-speed) var(--ease-cinematic),
              opacity var(--entrance-speed) ease;
}

.right-cards-container {
  transform: translateX(110vw);
  opacity: 0;
  transition: transform var(--entrance-speed) var(--ease-cinematic),
              opacity var(--entrance-speed) ease;
}

.university-overview.animate-in,
.right-cards-container.animate-in {
  transform: translateX(0);
  opacity: 1;
}

/* 5. CARD BASE - TRANSPARENT GLASS */
.university-overview,
.detail-card {
  background: transparent;
  border: 1px solid var(--accent-color); /* Cyan border for clarity */
  border-radius: 12px;
  padding: 30px;
  transition: all 0.3s ease;
}

.university-overview:hover,
.detail-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.03); /* Completely transparent */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-color: var(--hover-border-color);
  box-shadow: 0 10px 30px rgba(0, 255, 238, 0.15);

}

/* 6. UNIVERSITY (LEFT CARD) */
.university-header {
  text-align: center;
  margin-bottom: 30px;
}

.university-logo {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--accent-color);
  margin: 0 auto 20px;
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
}

.university-logo:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--hover-border-color);
  transform: scale(1.05);
}

/* GRADIENT HEADINGS LIKE STATS */
.degree-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #00ffee, #0088ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.university-name {
  font-size: 1rem;
  margin: 0 0 25px;
  color: var(--text-main); /* Full white */
  font-weight: 500;
}

.duration-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(5px);
  border: 1px solid var(--border-color);
  font-size: 0.85rem;
  color: var(--text-main); /* Full white */
  transition: all 0.3s ease;
}

.duration-badge:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--hover-border-color);
  transform: translateY(-2px);
}

/* PROGRESS STATS - MATCHING STATS CARDS */
.progress-stats {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.progress-stats .stat-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 1.2rem;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(5px);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  align-items: stretch;
}

.progress-stats .stat-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--hover-border-color);
  box-shadow: 0 10px 25px rgba(0, 255, 238, 0.15);
}

.stat-label {
  display: flex;
  justify-content: space-between;
  font-weight: 500;
  color: var(--text-main); /* Full white */
  font-size: 0.9rem;
}

.stat-value {
  color: var(--accent-color);
  font-weight: 700;
  font-size: 1rem;
}

.progress-bar {
  height: 5px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-color), #00d2ff);
  width: 0; /* set inline style for actual progress */
  transition: width 1.5s ease-in-out;
  border-radius: 10px;
}

/* 7. RIGHT SIDE CONTAINER */
.right-cards-container {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
}

/* GRADIENT CARD TITLE */
.card-title {
  font-size: 1.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, #00ffee, #0088ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 8. COURSE ITEM - DIFFERENT STYLE */
.course-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.2rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  border-left: 3px solid var(--accent-color);
  transition: all 0.3s ease;
}

.course-item:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateX(5px);
  box-shadow: 0 5px 15px rgba(0, 255, 238, 0.1);
}

.course-grade {
  font-family: "JetBrains Mono", monospace;
  font-weight: 800;
  color: var(--accent-color);
  background: rgba(0, 255, 238, 0.1);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.85rem;
}

/* 9. SEMESTER ACCORDION - DIFFERENT STYLE */
.semester-accordion {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

/* SEMESTER STRIP - MINIMALIST DESIGN */
.semester-strip {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(0, 255, 238, 0.08);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.semester-strip:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(0, 255, 238, 0.2);
}

.semester-strip.active {
  border-color: var(--accent-color);
  background: rgba(255, 255, 255, 0.05);
}

.semester-header {
  background: transparent;
  border: none;
  padding: 1rem 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main); /* Full white */
  cursor: pointer;
  transition: all 0.3s ease;
}

.semester-header:hover {
  background: rgba(255, 255, 255, 0.03);
}

.toggle-icon {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--accent-color);
  transition: transform 0.3s ease;
}

.semester-strip.active .toggle-icon {
  transform: rotate(45deg);
}

.semester-content {
  display: none;
  padding: 15px;
  gap: 10px;
  background: rgba(0, 0, 0, 0.1);
}

.semester-strip.active .semester-content {
  display: grid;
}

/* 10. RESPONSIVE */
@media (max-width: 1100px) {
  .education-horizontal {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .education-section {
    padding: 60px 20px;
  }

  .semester-accordion {
    grid-template-columns: 1fr;
  }

  .university-overview,
  .detail-card {
    padding: 25px;
  }
  
  .university-logo {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  
  .degree-title {
    font-size: 1.4rem;
  }
  
  .card-title {
    font-size: 1.2rem;
  }
  
  .stat-label,
  .university-name,
  .duration-badge {
    font-size: 0.9rem;
  }
}