/* =============================
   EDUCATION SECTION - DARK THEME
   Organized CSS with clear structure
   ============================= */

/* =============================
   1. CSS VARIABLES & ROOT SETTINGS
   ============================= */
:root {
  /* Color Gradients */
  --edu-gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --edu-gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  
  /* Primary Colors */
  --edu-accent: #667eea;
  --edu-accent-hover: #764ba2;
  --gold-accent: #ffd700;
  --gold-glow: rgba(255, 215, 0, 0.3);
}

/* =============================
   2. MAIN SECTION CONTAINER
   ============================= */
.education {
  /* Layout */
  position: relative;
  min-height: 100vh;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  margin-top: 0;
  overflow: hidden;
  
  
  /* Flexbox */
  display: flex;
  flex-direction: column;
  justify-content: center;
  
  /* Background */
  background: linear-gradient(135deg, #101522 0%, #0E111A 100%);
  
  /* Section-specific CSS Variables */
  --edu-card-bg: rgba(20, 20, 22, 0.95);
  --edu-card-bd: rgba(255, 255, 255, 0.08);
  --edu-card-bd-hover: rgba(255, 215, 0, 0.15);
  --edu-card-radius: 16px;
  --edu-card-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  --edu-card-shadow-hover: 0 10px 40px rgba(0, 0, 0, 0.5), 0 4px 20px rgba(102, 126, 234, 0.15);
  
  /* Color Variables */
  --edu-accent: rgba(255, 215, 0, 0.7);
  --edu-accent-dim: rgba(255, 215, 0, 0.4);
  --edu-text: #f0f0f0;
  --edu-text-dim: rgba(240, 240, 240, 0.75);
  --edu-highlight-bg: rgba(102, 126, 234, 0.08);
  --edu-highlight-border: rgba(102, 126, 234, 0.3);
  
  /* Animation & Spacing */
  --edu-transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --edu-space-xs: 8px;
  --edu-space-sm: 12px;
  --edu-space-md: 16px;
  --edu-space-lg: 24px;
  --edu-space-xl: 28px;
}

/* Animated Background Gradient */
.education::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: 
    radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(255, 215, 0, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

/* =============================
   3. LAYOUT CONTAINERS
   ============================= */
.education .container {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.education .section-header {
  text-align: center;
  margin-bottom: 30px;
}

.education .section-lead {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* =============================
   4. HIGHLIGHT CARDS (Top Stats)
   ============================= */
.edu-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-bottom: 60px;
  padding: 0 20px;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.edu-highlights .ehighlight-card {
  /* Base Styles */
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

/* Glowing Top Border Animation */
.edu-highlights .ehighlight-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, #ffd700, #ffd700, transparent);
  animation: glowMove 3s ease-in-out infinite;
}

/* Highlight Card Hover State (matching skills effect) */
.edu-highlights .ehighlight-card:hover {
  transform: translateY(-2px);
  background: rgba(102, 126, 234, 0.05);
  border-color: var(--skills-primary);
  box-shadow: var(--card-shadow-hover);
}

/* Highlight Card Icon */
.edu-highlights .ehighlight-icon {
  width: 50px;
  height: 50px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #e4e5eb;
  position: relative;
}

/* Special Gold Styling for Medal (3rd card) */
.edu-highlights .ehighlight-card:nth-child(3) .ehighlight-icon {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 193, 7, 0.2));
  color: #ffd700;
}

/* Icon Pulse Animation */
.edu-highlights .ehighlight-icon::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid currentColor;
  opacity: 0;
  animation: iconPulse 2s ease-out infinite;
}

/* Highlight Card Text */
.edu-highlights .highlight-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffd700;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.edu-highlights .highlight-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.4;
}

/* =============================
   5. MAIN EDUCATION CARDS
   ============================= */
.education .grid-container {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.education .card {
  /* Base Layout */
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--edu-card-radius);
  padding: var(--edu-space-xl);
  position: relative;
  overflow: hidden;
  height: auto;
  min-height: unset;
  
  /* Effects */
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  color: var(--edu-text-dim);
}

/* Top accent line animation (same as skills) */
.education .card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--skills-secondary), var(--skills-primary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

/* Card Hover State (matching skills - with grow effect) */
.education .card:hover {
  border-color: var(--skills-primary);
  transform: translateY(-2px);
  box-shadow: var(--card-shadow-hover);
}

.education .card:hover::before {
  transform: scaleX(1);
}

/* Card Header */
.education .card__header {
  display: flex;
  align-items: center;
  gap: var(--edu-space-sm);
  margin-bottom: var(--edu-space-md);
}

.education .card__icon {
  font-size: 24px;
  line-height: 1;
  color: var(--edu-accent);
  flex-shrink: 0;
  transition: var(--edu-transition);
}

.education .card__title {
  font-size: 1.25rem;
  margin: 0;
  color: var(--edu-text-dim);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.02em;
  text-align: left;
}

/* Card Meta Information (Thesis, etc.) */
.education .card__meta {
  color: var(--edu-text-dim);
  font-size: 0.95rem;
  margin: var(--edu-space-md) 0;
  padding: var(--edu-space-sm) 14px;
  background: rgba(255, 215, 0, 0.04);
  border-left: 2px solid var(--edu-accent-dim);
  border-radius: 6px;
  line-height: 1.6;
  display: block;
  text-align: left;
}

.education .card__meta strong {
  color: var(--edu-accent);
  font-weight: 500;
  font-size: 0.95rem;
  text-transform: none;
  letter-spacing: 0.02em;
  display: inline;
  margin-right: 6px;
}

/* Card Content */
.education .card__content {
  margin: var(--edu-space-md) 0;
  line-height: 1.6;
  color: var(--edu-text-dim);
  font-size: 0.95rem;
  text-align: left;
 
}

.education .card__content p {
  margin-bottom: var(--edu-space-sm);
  font-size: inherit;
  line-height: inherit;
  color: var(--edu-text-dim);
  font-weight: 200;

  
}

/* =============================
   6. BULLET POINTS & LISTS
   ============================= */
.education .edu-bullets,
.education .card__content ul,
.education .edu-tabs__panel ul {
  list-style: none;
  padding: 0;
  margin: var(--edu-space-md) 0;
  text-align: left;
  font-size: 0.9rem;
  color: var(--edu-text-dim);
}

.education .edu-bullets li,
.education .card__content li,
.education .edu-tabs__panel li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  color: var(--edu-text-dim);
  line-height: 1.5;
  font-size: 0.9rem;
  text-align: left;
  font-weight: 300; /* Add this - makes list items lighter */
}

.education .edu-bullets li::before,
.education .card__content li::before,
.education .edu-tabs__panel li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--edu-accent-dim);
  font-weight: bold;
  font-size: 0.9rem;
}

/* Two Column Layout for Bullets */
.education .edu-bullets--cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px 16px;
}

/* =============================
   7. TABBED CONTENT
   ============================= */
.education .edu-tabs {
  margin-top: 20px;
}

/* Tab Navigation */
.education .edu-tabs__nav {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0;
}

/* Tab Buttons */
.education .edu-tabs__button {
  background: transparent;
  border: 0;
  color: rgba(240, 240, 240, 0.65);
  padding: 10px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  position: relative;
  transition: var(--edu-transition);
  border-radius: 8px 8px 0 0;
}

.education .edu-tabs__button:hover {
  color: var(--edu-accent);
  background: rgba(255, 215, 0, 0.03);
}

.education .edu-tabs__button.active {
  color: rgba(255, 215, 0, 0.95);
  background: rgba(255, 215, 0, 0.06);
}

/* Tab Active Indicator */
.education .edu-tabs__button::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--edu-accent);
  transform: scaleX(0);
  transition: transform .25s ease;
}

.education .edu-tabs__button.active::after {
  transform: scaleX(1);
}

/* Tab Content */
.education .edu-tabs__content {
  min-height: 120px;
  animation: fadeIn .3s ease;
}

.education .edu-tabs__panel {
  display: none;
  color: var(--edu-text-dim);
  font-size: 1.05rem;
  line-height: 1.7;
  font-weight: 300; /* Add this - makes text lighter */
}

.education .edu-tabs__panel.active {
  display: block;
font-weight: 300; /* Add this - ensures active panel also has lighter weight */
}

.education .edu-tabs__panel p {
  color: var(--edu-text-dim);
  font-size: 1.05rem;
  line-height: 1.7;
  text-align: left;
  font-weight: 300; /* Add this - makes paragraph text lighter */
}

/* =============================
   8. EXPANDABLE DETAILS
   ============================= */
.education .edu-details {
  margin-top: var(--edu-space-md);
  padding-top: var(--edu-space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  z-index: 1;
}

.education .edu-details summary,
.edu-card__more summary {
  cursor: pointer;
  list-style: none;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--edu-accent);
  padding: 10px 14px;
  padding-right: 55px;
  margin: -8px -12px;
  border-radius: 8px;
  transition: var(--edu-transition);
  display: block;
  position: relative;
  z-index: 2;
  user-select: none;
  background: rgba(255, 215, 0, 0.03);
  border: 1px solid rgba(255, 215, 0, 0.15);
  text-align: left;
  outline: none;
}

/* Hide default marker */
.education .edu-details summary::-webkit-details-marker,
.edu-card__more summary::-webkit-details-marker {
  display: none;
}

/* Custom chevron for expandable sections */
.edu-card__more summary::after {
  content: "›";
  position: absolute;
  right: 0;
  transform: rotate(90deg);
  transition: transform .2s ease;
  color: var(--text-dim);
}

.edu-card__more[open] summary::after {
  transform: rotate(-90deg);
}

/* Details Content */
.education .edu-details p,
.edu-card__more p {
  margin-top: var(--edu-space-sm);
  color: rgba(240, 240, 240, 0.65);
  font-size: 0.9rem;
  line-height: 1.6;
  animation: fadeIn 0.3s ease;
  text-align: left;
}

/* =============================
   9. ICON GRID
   ============================= */
.education .card__icons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 20px;
  margin-top: 20px;
  text-align: center;
}

.education .icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

/* Icon styling */
.education .icon-item i {
  font-size: 2rem;
  color: var(--edu-accent);
  transition: transform 0.3s ease, color 0.3s ease;
}

.education .icon-item i:hover {
  transform: scale(1.2);
  color: rgba(255, 215, 0, 0.9);
}

/* Image icons */
.education .icon-item img {
  width: 35px;
  height: 35px;
  object-fit: contain;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.education .icon-item img:hover {
  transform: scale(1.2);
  filter: brightness(1.2);
}

/* Icon labels */
.education .icon-item span {
  font-size: 0.85rem;
  color: var(--edu-text-dim);
}

/* =============================
   10. ANIMATIONS
   ============================= */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes glowMove {
  0% { left: -100%; }
  50% { left: 100%; }
  100% { left: 100%; }
}

@keyframes iconPulse {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }
  100% {
    transform: scale(1.3);
    opacity: 0;
  }
}

/* =============================
   11. ACCESSIBILITY
   ============================= */
/* Focus States */
.education .edu-details summary:focus-visible,
.education .edu-tabs__button:focus-visible {
  outline: 2px solid var(--edu-accent-dim);
  outline-offset: 2px;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .education * {
    animation: none !important;
    transition: none !important;
  }
}

/* =============================
   12. CUSTOM SCROLLBAR
   ============================= */
.education .card::-webkit-scrollbar {
  width: 6px;
}

.education .card::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
}

.education .card::-webkit-scrollbar-thumb {
  background: rgba(255, 215, 0, 0.2);
  border-radius: 3px;
}

.education .card::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 215, 0, 0.3);
}

/* =============================
   13. RESPONSIVE DESIGN
   ============================= */
/* Tablet and Mobile */
@media (max-width: 768px) {
  .education {
    padding: 60px 15px;
  }

  .edu-highlights {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .edu-highlights .highlight-icon {
    width: 45px;
    height: 45px;
    font-size: 20px;
  }

  .education .grid-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .education .card {
    min-height: auto;
  }

  .education .card__title {
    font-size: 1.15rem;
  }
  
  /* Tab navigation wrapping */
  .education .edu-tabs__nav {
    flex-wrap: wrap;
  }
  
  .education .edu-tabs__button {
    font-size: 0.85rem;
    padding: 8px 12px;
  }
}

/* Desktop - Two Column Layout (optional, currently commented out) */
/* 
@media (min-width: 900px) {
  .education .grid-container {
    grid-template-columns: repeat(2, 1fr);
  }
}
*/