/* ============================================================
   Projects (Applications) page — matches the Publications page
   design system. Green is reserved for primary actions only.
     navy   #1b3b5a (headings)
     muted  #5a6b73 (subtitles)
     body   #44565f
     card   #e6ebe9 border, 14px radius
   Font inherited from the site body font.
   ============================================================ */

/* ---- Hero banner (clean light, dark professional text) ---- */
.projects-hero {
  background: #ffffff;
  padding: 40px 24px 26px;
  text-align: center;
  position: relative;
  border-bottom: 1px solid #e8ece9;
}
.projects-hero-inner {
  max-width: 820px;
  margin: 0 auto;
}
.projects-hero-title {
  color: #1b2733;
  font-size: 30px;
  font-weight: 800;
  margin: 0;
  letter-spacing: 0.2px;
}
.projects-hero-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin: 14px auto 0;
  background: #0bb89c;
  border-radius: 2px;
}
.projects-hero-subtitle {
  color: #5a6b73;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  margin: 16px auto 0;
  max-width: 680px;
}

/* ---- Main container (full-bleed like the other pages) ---- */
.projects-main {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 40px 56px 40px;
  box-sizing: border-box;
}
@media (max-width: 768px) {
  .projects-main {
    padding: 0 16px 40px 16px;
  }
}

/* ---- Tabs (clean underline style) ---- */
/* Override Dash's default inline tab styles so the underline sits BELOW the
   text (not crossing through it). Each tab is a full-height flex box that
   centres its label; the active underline is the tab's own bottom border. */
.projects-tabs {
  display: flex !important;
  justify-content: center;
  gap: 8px;
  border-bottom: 1px solid #e8ece9 !important;
  margin: 26px 0 4px 0;
  height: auto !important;
}
.projects-tab {
  display: flex !important;
  align-items: center;
  justify-content: center;
  border: none !important;
  border-top: none !important;
  border-left: none !important;
  border-right: none !important;
  background: transparent !important;
  color: #6b7a82 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: 0.6px;
  padding: 14px 22px !important;
  cursor: pointer;
  border-bottom: 3px solid transparent !important;
  margin-bottom: -1px;            /* sit on top of the container's 1px rule */
  transition: color .15s ease, border-color .15s ease;
}
.projects-tab:hover {
  color: #0bb89c !important;
}
.projects-tab--selected {
  color: #0bb89c !important;
  border-top: none !important;
  border-left: none !important;
  border-right: none !important;
  border-bottom: 3px solid #0bb89c !important;
  background: transparent !important;
}

/* ---- Section title ---- */
.projects-section-title {
  color: #1b3b5a;
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  margin: 30px 0 6px 0;
  letter-spacing: 0.2px;
}

/* ---- Card grid ---- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 22px 0 0 0;
  width: 100%;
}
@media (min-width: 1700px) {
  .projects-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 1100px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 700px) {
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

/* ---- Project card (vertical: cover on top, info below) ---- */
.project-item { display: flex; }
.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  background: #ffffff;
  border: 1px solid #e6ebe9;
  border-radius: 14px;
  padding: 26px 22px 22px;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(16,24,40,0.04), 0 6px 18px rgba(16,24,40,0.04);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(16,24,40,0.08), 0 16px 36px rgba(16,24,40,0.10);
  border-color: #d7dedb;
}
/* accent strip appears only on hover */
.project-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: #0bb89c;
  opacity: 0;
  transition: opacity .2s ease;
}
.project-card:hover::before {
  opacity: 1;
}

/* Cover image */
.project-card-img-wrap {
  margin-bottom: 18px;
}
.project-card-img {
  display: block;
  width: 140px;
  height: auto;
  margin: 0 auto;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(16,24,40,0.14);
  transition: transform .3s ease;
}
.project-card:hover .project-card-img {
  transform: scale(1.03);
}

/* Title + flag */
.project-card-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 4px;
}
.project-card-flag {
  width: 26px;
  height: auto;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}
.project-card-title {
  color: #1b3b5a;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.2px;
}
.project-card-subtitle {
  color: #5a6b73;
  font-size: 13px;
  font-weight: 400;
  margin: 4px 0 0 0;
}

/* Score badge */
.project-card-score {
  margin: 12px 0 0 0;
}
.project-score-badge {
  display: inline-block;
  background: #eef4f2;
  color: #0b7d6e;
  padding: 4px 13px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

/* Description */
.project-card-desc {
  color: #44565f;
  font-size: 13px;
  line-height: 1.6;
  text-align: justify;
  margin: 14px 0 0 0;
}

/* Push the CTA to the bottom so buttons align across a row */
.project-card-action {
  margin-top: auto;
  padding-top: 18px;
}
.project-btn {
  display: inline-block;
  background: #0bb89c;
  color: #ffffff !important;
  text-decoration: none !important;
  padding: 9px 22px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(11,184,156,0.22);
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.project-btn:hover {
  background: #09a085;
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(11,184,156,0.28);
}

/* --- End Projects Page Styles --- */
