/* ============================================================================
 * Career Page Styles - CSS Best Practices
 * ============================================================================
 * Career timeline, education cards, and layout for career/education sections.
 * Follows alphabetized properties and CSS variables.
 */

/* CSS Variables */
:root {
  --color-primary: #2a5298;
  --color-secondary-teal: #10b981;
  --color-secondary-amber: #f59e0b;
  --color-secondary-red: #ef4444;
  --color-secondary-cyan: #06b6d4;
  --color-secondary-violet: #8b5cf6;
  --color-secondary-pink: #ec4899;
  --color-secondary-green: #14b8a6;
  --color-text-light: #666;
  --color-text-muted: #6c757d;
  --color-background-light: #f0f4f8;
  --color-background-lighter: #d9e8f5;
  --color-border: #e9ecef;
  --color-white: #ffffff;
  
  --size-education-circle: 120px;
  --size-education-icon: 80px;
  --size-border-width: 3px;
  --size-spacing-sm: 0.5rem;
  --size-spacing-md: 1rem;
  --size-spacing-lg: 1.5rem;
  --size-spacing-xl: 2rem;
  --size-spacing-2xl: 3rem;
}

/* Career item timeline */
.career-item {
  border-left: 3px solid var(--color-primary);
  display: grid;
  gap: 20px;
  grid-template-columns: 2fr 1fr 1fr;
  margin-bottom: 20px;
  padding-left: 15px;
}

/* Alternate timeline colors for each career item */
.career-item:nth-child(1) {
  border-left-color: var(--color-primary);
}

.career-item:nth-child(2) {
  border-left-color: var(--color-secondary-teal);
}

.career-item:nth-child(3) {
  border-left-color: var(--color-secondary-amber);
}

.career-item:nth-child(4) {
  border-left-color: var(--color-secondary-red);
}

.career-item:nth-child(5) {
  border-left-color: var(--color-secondary-cyan);
}

.career-item:nth-child(6) {
  border-left-color: var(--color-secondary-violet);
}

.career-item:nth-child(7) {
  border-left-color: var(--color-secondary-pink);
}

.career-item:nth-child(8) {
  border-left-color: var(--color-secondary-green);
}

/* Career left column info */
.career-left {
  display: flex;
  flex-direction: column;
}

.career-company {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.career-job-title {
  color: var(--color-text-light);
  font-size: 0.95rem;
  margin: 0;
}

.dark-mode .career-job-title {
  color: #aaa;
}

.career-location {
  font-size: 0.95rem;
  font-weight: 500;
}

.career-dates {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* Education section styling */
.education-card {
  align-items: center;
  display: flex;
  flex-direction: column;
  margin-bottom: 30px;
  padding-top: 60px;
  text-align: center;
}

/* Education institution circle badge */
.education-circle {
  align-items: center;
  background: linear-gradient(135deg, var(--color-background-light) 0%, var(--color-background-lighter) 100%);
  border: var(--size-border-width) solid var(--color-primary);
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(42, 82, 152, 0.15);
  display: flex;
  height: var(--size-education-circle);
  justify-content: center;
  margin: 0 auto 15px;
  position: relative;
  width: var(--size-education-circle);
}

.education-circle img {
  height: var(--size-education-icon);
  object-fit: contain;
  width: var(--size-education-icon);
}

.education-circle__year {
  align-items: center;
  background: var(--color-primary);
  border-radius: 50%;
  bottom: -8px;
  color: var(--color-white);
  display: flex;
  font-size: 0.75rem;
  font-weight: 700;
  height: 32px;
  justify-content: center;
  position: absolute;
  right: -8px;
  width: 32px;
}

.education-title {
  font-size: 1.3rem;
  font-weight: 700;
}

.education-school {
  color: var(--color-text-light);
  font-size: 1rem;
}

/* Responsive education cards */
@media (max-width: 768px) {
  .education-card {
    padding-top: 30px;
  }

  .education-circle {
    height: 100px;
    width: 100px;
  }

  .education-circle img {
    height: 60px;
    width: 60px;
  }
}

.education-circle i {
  font-size: 3rem;
  color: #2a5298;
}

.education-card h5 {
  font-weight: 600;
  margin-bottom: 5px;
  font-size: 1rem;
}

.education-card .university {
  color: #666;
  font-size: 0.85rem;
  margin-bottom: 5px;
}

.dark-mode .education-card .university {
  color: #aaa;
}

.education-card .dates {
  color: #6c757d;
  font-size: 0.8rem;
}

.education-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.education-section {
  background-color: #f8f9fa;
  padding: 40px 20px;
  border-radius: 8px;
  margin-bottom: 40px;
}

.education-section h3 {
  margin-top: -15px;
  margin-bottom: 30px;
}

.dark-mode .education-section {
  background-color: #2a2a2a;
}

@media (max-width: 768px) {
  .education-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
  }

  .education-circle {
    width: 100px;
    height: 100px;
  }

  .education-circle i {
    font-size: 2.5rem;
  }
}
