/* =========================================================
   EDUCATION PAGE
   File: assets/css/education.css
   ========================================================= */


/* =========================================================
   INTRO
   ========================================================= */

.education-intro {
  max-width: 790px;
  margin: 0 0 22px;
  color: #566273;
  font-size: 1em;
  line-height: 1.6;
}


/* =========================================================
   SECTIONS
   ========================================================= */

.edu-section {
  max-width: 790px;
  margin: 0 0 26px;
}

.edu-section-title {
  margin: 0 0 13px;
  padding: 0 0 8px;
  color: #263746;
  font-size: 1.12em;
  font-weight: 700;
  line-height: 1.3;
  border-bottom: 2px solid #d7dee6;
}


/* =========================================================
   DEGREE LIST
   ========================================================= */

.edu-degree-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}


/* =========================================================
   DEGREE CARD
   ========================================================= */

.edu-card {
  padding: 16px 18px;
  background: #ffffff;
  border: 1.5px solid #c9d2dc;
  border-left: 5px solid #2457a7;
  border-radius: 10px;
  box-shadow: 0 3px 9px rgba(0, 0, 0, .055);
  transition:
    transform .22s ease,
    box-shadow .22s ease,
    border-color .22s ease,
    background-color .22s ease;
}

.edu-card:hover {
  transform: translateY(-3px);
  background: #fafcff;
  border-color: #8aacca;
  border-left-color: #0b7a4b;
  box-shadow: 0 8px 19px rgba(36, 87, 167, .11);
}

.phd-card {
  border-left-color: #0b7a4b;
  background: #fbfefc;
}

.compact-degree-card {
  padding-top: 14px;
  padding-bottom: 14px;
}


/* =========================================================
   CARD HEADER
   ========================================================= */

.edu-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.edu-degree-title {
  color: #2457a7;
  font-size: 1.04em;
  font-weight: 700;
  line-height: 1.4;
}

.edu-card:hover .edu-degree-title {
  color: #0b6b3a;
}

.edu-university {
  margin-top: 4px;
  color: #394653;
  font-size: .88em;
  font-weight: 700;
}

.edu-department {
  margin-top: 2px;
  color: #6b7680;
  font-size: .78em;
  line-height: 1.4;
}


/* =========================================================
   BADGES
   ========================================================= */

.edu-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 9px;
  border-radius: 12px;
  font-size: .67em;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.doctoral-badge {
  color: #0b6b3a;
  background: #edf8f2;
  border: 1px solid #b9dcc9;
}

.masters-badge {
  color: #2457a7;
  background: #edf4fb;
  border: 1px solid #bad0e5;
}

.bachelors-badge {
  color: #735719;
  background: #fff7e7;
  border: 1px solid #dec78b;
}


/* =========================================================
   YEAR / STATUS ROW
   ========================================================= */

.edu-info-row {
  display: grid;
  grid-template-columns: repeat(2, 175px);
  gap: 8px;
  margin: 11px 0 10px;
}

.edu-info-row.single-year {
  grid-template-columns: 175px;
}

.edu-info-row > div {
  padding: 6px 9px;
  background: #f7f9fb;
  border: 1px solid #dde3e8;
  border-radius: 7px;
}

.edu-info-row span {
  display: block;
  margin-bottom: 1px;
  color: #78838d;
  font-size: .60em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .025em;
}

.edu-info-row strong {
  display: block;
  color: #34404c;
  font-size: .76em;
  font-weight: 700;
  line-height: 1.3;
}


/* =========================================================
   DETAILS
   ========================================================= */

.edu-detail {
  margin-top: 6px;
  color: #56616c;
  font-size: .81em;
  line-height: 1.48;
}

.edu-detail strong {
  color: #3d4955;
}

.edu-detail em {
  font-style: italic;
}


/* =========================================================
   TAGS
   ========================================================= */

.edu-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.edu-tags span {
  display: inline-block;
  padding: 3px 8px;
  color: #0b6b3a;
  background: #edf8f2;
  border: 1px solid #bddbca;
  border-radius: 11px;
  font-size: .67em;
  font-weight: 700;
}


/* =========================================================
   COMPACT QUALIFICATIONS
   ========================================================= */

.edu-compact-card {
  overflow: hidden;
  background: #ffffff;
  border: 1.5px solid #ccd4dc;
  border-left: 5px solid #596978;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, .05);
}

.early-education-card {
  border-left-color: #8b6b28;
  background: #fffdf9;
}

.edu-compact-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  padding: 11px 14px;
  border-bottom: 1px solid #e3e7eb;
}

.edu-compact-item:last-child {
  border-bottom: none;
}

.edu-compact-item strong {
  display: block;
  color: #34404c;
  font-size: .82em;
  line-height: 1.35;
}

.edu-compact-item span {
  display: block;
  margin-top: 2px;
  color: #6d7781;
  font-size: .73em;
  line-height: 1.4;
}

.edu-year {
  flex-shrink: 0;
  min-width: 55px;
  color: #2457a7;
  font-size: .79em;
  font-weight: 700;
  text-align: right;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 768px) {

  .education-intro,
  .edu-section {
    max-width: 100%;
  }

  .edu-card:hover {
    transform: none;
  }

  .edu-card {
    padding: 15px 16px;
  }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

  .education-intro {
    margin-bottom: 19px;
    font-size: .95em;
  }

  .edu-section {
    margin-bottom: 23px;
  }

  .edu-section-title {
    font-size: 1.06em;
  }

  .edu-card-top {
    flex-direction: column;
    gap: 7px;
  }

  .edu-badge {
    align-self: flex-start;
  }

  .edu-degree-title {
    font-size: .99em;
  }

  .edu-info-row,
  .edu-info-row.single-year {
    grid-template-columns: 1fr 1fr;
  }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 420px) {

  .edu-card {
    padding: 13px 14px;
  }

  .edu-info-row,
  .edu-info-row.single-year {
    grid-template-columns: 1fr;
  }

  .edu-compact-item {
    flex-direction: column;
    gap: 5px;
  }

  .edu-year {
    min-width: 0;
    text-align: left;
  }

}