/*--------------------------------------------------------------
# Shared Project Detail Page Styles
# Used by: football-details.html, CogVSM.html, and all future project pages
# Add <link href="assets/css/project-pages.css" rel="stylesheet"> to any new page
--------------------------------------------------------------*/

/* ── Hide mobile nav toggle ── */
.mobile-nav-toggle { display: none !important; }

/*--------------------------------------------------------------
# Hero Section (title + banner image)
--------------------------------------------------------------*/
.page-hero {
  margin-top: 40px;
  margin-bottom: 24px;
  align-items: center;
}

.page-hero-title {
  font-family: Georgia, 'Times New Roman', Times, serif;
  color: #085a98;
  font-size: clamp(16px, 2.2vw, 22px) !important;
  line-height: 1.45;
}

.page-banner-img {
  width: 100%;
  max-height: 340px;
  object-fit: cover;
  border-radius: 6px;
}

/*--------------------------------------------------------------
# Intro Box
--------------------------------------------------------------*/
.page-intro {
  width: 100%;
  margin-bottom: 24px;
}

.page-subtitle {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(14px, 1.8vw, 20px) !important;
  margin-bottom: 16px;
  text-align: center;
}

.page-intro p {
  text-align: justify;
  font-size: clamp(13px, 1.15vw, 15px);
  line-height: 1.7;
}

/*--------------------------------------------------------------
# Highlights Box
--------------------------------------------------------------*/
.page-highlights p {
  text-align: left;
  font-size: clamp(13px, 1.15vw, 14px);
  line-height: 1.7;
}

/*--------------------------------------------------------------
# Demo Video (replaces the global .back-video fixed size)
--------------------------------------------------------------*/
.page-demo-video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}

/*--------------------------------------------------------------
# Key Features Section Title
--------------------------------------------------------------*/
.page-features-title {
  margin-top: 36px;
}

.page-features-title h2 {
  font-size: clamp(22px, 3vw, 32px) !important;
}

/*--------------------------------------------------------------
# Feature Rows (icon col + description col, used by football page)
--------------------------------------------------------------*/
.page-feature-row {
  margin-bottom: 24px;
  align-items: stretch;
}

.page-icon-col {
  margin-bottom: 16px;
}

.page-desc p {
  text-align: justify;
  font-size: clamp(13px, 1.15vw, 14px);
  line-height: 1.7;
}

.page-desc video {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 16px;
  border-radius: 4px;
}

/*--------------------------------------------------------------
# Flex Rows (image + text side-by-side, used by CogVSM page)
--------------------------------------------------------------*/
.page-flex-row {
  display: flex !important;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}

.page-flex-row .flex-img {
  flex-shrink: 0;
  width: 40% !important;
  margin-left: 0 !important;
  height: auto !important;
}

.page-flex-row .flex-text {
  flex: 1;
  min-width: 260px;
  margin-top: 0 !important;
  margin-left: 0 !important;
  width: auto !important;
  height: auto !important;
}

/*--------------------------------------------------------------
# Inner Rows (text + iframe/video side-by-side, used by CogVSM page)
--------------------------------------------------------------*/
.page-inner-row {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}

/*--------------------------------------------------------------
# Eval Rows (text + results image, used by CogVSM page)
--------------------------------------------------------------*/
.page-eval-row {
  display: flex !important;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}

.page-eval-row .eval-text {
  flex: 1;
  min-width: 260px;
  margin-left: 0 !important;
  margin-top: 0 !important;
}

.page-eval-row .eval-img {
  flex-shrink: 0;
  height: auto !important;
}

/*--------------------------------------------------------------
# Download Button (footer, used by CogVSM page)
--------------------------------------------------------------*/
.download-button {
  display: inline-block;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  background-color: #1d66a6;
  color: #ffffff;
  border-radius: 4px;
  border: none;
  transition: background-color 0.3s ease;
}

.download-button:hover {
  background-color: #ffffff;
}

/*--------------------------------------------------------------
# Mobile (≤767px)
--------------------------------------------------------------*/
@media (max-width: 767px) {
  /* Hero: stack children */
  .page-hero {
    flex-direction: column !important;
    text-align: center;
    margin-top: 20px;
  }

  .page-hero > * {
    width: 100% !important;
    margin-top: 16px;
  }

  .page-hero picture {
    margin-left: 0 !important;
    display: block;
  }

  .page-hero img,
  .page-banner-img {
    width: 100% !important;
    height: auto !important;
    max-height: 220px;
    padding: 0 !important;
    object-fit: cover;
  }

  /* Reduce icon-box padding on small screens */
  .projects .icon-box {
    padding: 32px 16px 40px;
  }

  /* Demo video */
  .page-demo-video {
    margin-top: 16px;
  }

  /* Feature rows */
  .page-icon-col {
    margin-bottom: 12px;
  }

  /* Flex rows: stack */
  .page-flex-row {
    flex-direction: column !important;
  }

  .page-flex-row .flex-img {
    width: 100% !important;
  }

  .page-flex-row .flex-text {
    min-width: unset;
    width: 100% !important;
  }

  /* Inner rows: stack */
  .page-inner-row {
    flex-direction: column !important;
  }

  .page-inner-row > p {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-top: 16px !important;
  }

  .page-inner-row > img {
    width: 100% !important;
    height: auto !important;
    margin-left: 0 !important;
  }

  .page-inner-row > iframe {
    width: 100% !important;
    margin-left: 0 !important;
    height: 220px !important;
    margin-top: 16px;
  }

  /* Eval rows: stack */
  .page-eval-row {
    flex-direction: column !important;
  }

  .page-eval-row .eval-text {
    min-width: unset;
    width: 100% !important;
  }

  .page-eval-row .eval-img {
    width: 100% !important;
    margin: 16px auto 0 !important;
    height: auto !important;
  }

  /* Intro box: remove horizontal margin hacks */
  .icon-box.iconbox-teal > p {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* Metrics card: center and full-width on mobile */
  .results-hero-card {
    max-width: 100%;
    margin-top: 20px;
  }
}

/*--------------------------------------------------------------
# Results Hero Card (falldown page — metric stats in hero)
--------------------------------------------------------------*/
.results-hero-card {
  background: linear-gradient(135deg, #0a3d62 0%, #085a98 100%);
  border-radius: 10px;
  padding: 28px 32px;
  color: #fff;
  width: 100%;
  max-width: 340px;
}

.results-hero-card h5 {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 20px;
}

.metric-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  padding-bottom: 14px;
}

.metric-row:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.metric-value {
  font-family: 'Poppins', sans-serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  min-width: 80px;
}

.metric-label {
  font-size: 12.5px;
  color: rgba(255,255,255,0.78);
  line-height: 1.3;
}

/*--------------------------------------------------------------
# Results Table (falldown page)
--------------------------------------------------------------*/
.project-results-table {
  font-size: clamp(13px, 1.15vw, 14.5px);
}

.project-results-table thead tr {
  background-color: #085a98;
  color: #fff;
}

.project-results-table thead th {
  font-weight: 600;
  border-color: #085a98;
  padding: 10px 16px;
}

.project-results-table tbody tr:nth-child(even) {
  background-color: #f0f6ff;
}

.project-results-table tbody td {
  padding: 10px 16px;
  vertical-align: middle;
}

/*--------------------------------------------------------------
# Tablet (768px–991px)
--------------------------------------------------------------*/
@media (min-width: 768px) and (max-width: 991px) {
  .page-hero-title {
    font-size: 18px !important;
  }

  .page-banner-img {
    max-height: 270px;
  }
}
