/* Education Page Styles */
.education-container {
  max-width: 1000px;
  margin: 0 auto;
}

/* Section Headers */
.education-section h2,
.certifications-section h2,
.prof-dev-section h2 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

/* Education Card - Mobile-first center-aligned */
.education-card {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 3rem;
  transition: box-shadow 0.3s ease;
}

.education-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.dark .education-card:hover {
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.05);
}

.edu-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.edu-details {
  text-align: center;
}

.edu-details h3 {
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
  text-align: center;
}

.edu-field {
  font-size: 1.1rem;
  color: var(--secondary);
  margin-bottom: 0.5rem;
  text-align: center;
}

.edu-institution {
  color: var(--secondary);
  margin-bottom: 0.25rem;
  text-align: center;
}

.edu-period {
  font-size: 0.9rem;
  color: var(--tertiary);
  margin-bottom: 1rem;
  text-align: center;
}

.edu-description {
  color: var(--secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
  text-align: center;
}

.verify-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s;
  text-align: center;
  display: inline-block;
}

.verify-link:hover {
  text-decoration: underline;
}

.edu-logo {
  margin-bottom: 1rem;
  text-align: center;
}

.edu-logo img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin: 0;
}

/* Certifications Grid */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

/* Default: Center-aligned for mobile-first approach */
.cert-card {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.3s ease;
}

.cert-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.dark .cert-card:hover {
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.05);
}

.cert-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.cert-details {
  flex: 1;
  text-align: center;
  width: 100%;
}

.cert-details h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
  text-align: center;
}

.cert-issuer {
  color: var(--secondary);
  margin-bottom: 0.5rem;
  text-align: center;
}

.cert-date {
  font-size: 0.875rem;
  color: var(--tertiary);
  margin-bottom: 0.5rem;
  text-align: center;
}

.cert-link {
  font-size: 0.875rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s;
  text-align: center;
  display: inline-block;
}

.cert-link:hover {
  text-decoration: underline;
}

/* Professional Development Section */
.prof-dev-card {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
}

.prof-dev-card p {
  color: var(--secondary);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.prof-dev-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.prof-dev-card li {
  display: flex;
  align-items: flex-start;
  color: var(--secondary);
  line-height: 1.8;
  margin-bottom: 0.5rem;
}

.prof-dev-card .bullet {
  color: var(--primary);
  margin-right: 0.75rem;
  font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
  .edu-content {
    flex-direction: column;
    text-align: center;
  }
  
  .edu-logo {
    margin-top: 1rem;
    text-align: center;
  }
  
  .edu-logo img {
    margin-left: 0;
  }
  
  .cert-grid {
    grid-template-columns: 1fr;
  }
  
  .cert-card {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  
  .cert-logo {
    margin-right: 0;
    margin-bottom: 1rem;
    align-self: center;
  }
  
  .cert-details {
    width: 100%;
    text-align: center;
  }
}

/* Desktop layout override */
@media (min-width: 769px) {
  /* Education card desktop layout */
  .edu-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    text-align: left;
  }
  
  .edu-details {
    text-align: left;
  }
  
  .edu-details h3 {
    text-align: left;
  }
  
  .edu-field {
    text-align: left;
  }
  
  .edu-institution {
    text-align: left;
  }
  
  .edu-period {
    text-align: left;
  }
  
  .edu-description {
    text-align: left;
  }
  
  .verify-link {
    text-align: left;
  }
  
  .edu-logo {
    margin-bottom: 0;
    margin-left: 2rem;
    order: 2;
  }
  
  .edu-details {
    order: 1;
  }
  
  /* Certification cards desktop layout */
  .cert-card {
    flex-direction: row;
    text-align: left;
    align-items: flex-start;
  }
  
  .cert-logo {
    margin-right: 1rem;
    margin-bottom: 0;
  }
  
  .cert-details {
    text-align: left;
  }
  
  .cert-details h3 {
    text-align: left;
  }
  
  .cert-issuer {
    text-align: left;
  }
  
  .cert-date {
    text-align: left;
  }
  
  .cert-link {
    text-align: left;
  }
}

/* Dark mode specific adjustments */
.dark .education-card,
.dark .cert-card,
.dark .prof-dev-card {
  background: #1e1e1e;
  border-color: #2d2d30;
}

/* Animation */
.education-section,
.certifications-section,
.prof-dev-section {
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
