/* =========================================================
   cbhe_projects.css  –  CBHE Projects page (eu_cbhe.php)
   Standalone: tokens + hero banner + sidebar + page styles.
   (Remove the :root block if --navy / --gold / --transition
   are already defined in your global stylesheet.)
   ========================================================= */
:root {
  --navy: #0b2352;
  --gold: #e1a80b;
  --line: #e3e7ef;
  --soft: #f5f7fb;
  --transition: .25s ease;
}

/* ================= PAGE BANNER ================= */
.page-banner {
  position: relative;
  width: 100%;
  height: 315px;
  overflow: hidden;
  background: #0b2352;
}
.banner-flex {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 1300px;
  margin: 0 auto;
}

/* full hero image */
.banner-media {
  position: absolute;
  top: 0;
  right: 0;
  width: 82%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}
.banner-photo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* left dark / blurred area */
.banner-text {
  position: absolute;
  top: 0;
  left: 0;
  width: 45%;
  height: 100%;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 40px 40px 70px;
  background: rgba(11, 35, 82, 0.88);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
/* slanted transition */
.banner-text::after {
  content: "";
  position: absolute;
  top: 0;
  right: -100px;
  width: 150px;
  height: 100%;
  background: rgba(11, 35, 82, 0.88);
  clip-path: polygon(35% 0, 100% 0, 65% 100%, 0 100%);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: -1;
}
.banner-text h1 {
  margin: 0 0 22px 0;
  color: #fff;
  font-size: 36px;
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: 1px;
}
.banner-text .breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 14px;
  background: none;
  padding: 0;
  margin: 0;
}
.banner-text .breadcrumb a { color: #fff; text-decoration: none; }
.banner-text .breadcrumb a:hover { color: var(--gold); }
.banner-text .breadcrumb .sep { color: #fff; }
.banner-text .breadcrumb .current { color: var(--gold); font-weight: 600; }

/* ================= SIDEBAR MENU ================= */
.sidebar-menu {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .05);
}
.sidebar-menu h3 {
  margin: 0;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  padding: 16px 20px;
  background: var(--navy);
}
.sidebar-menu h3.gold-edge { border-left: 4px solid var(--gold); }
.sidebar-menu ul { list-style: none; margin: 0; padding: 0; }
.sidebar-menu ul li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 500;
  background: #fff;
  border-top: 1px solid #f0f0f0;
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
}
.sidebar-menu ul li a i:first-child {
  color: var(--navy);
  width: 18px;
  text-align: center;
  transition: color var(--transition);
}
.sidebar-menu ul li a:hover { background: #f5f7fb; color: var(--navy); }
.sidebar-menu ul li.active a {
  background: var(--navy);
  color: var(--gold);
  font-weight: 700;
}
.sidebar-menu ul li.active a i:first-child { color: var(--gold); }
.sidebar-menu ul li a .arrow {
  margin-left: auto;
  font-size: 11px;
  color: var(--gold);
}

/* ================= PAGE LAYOUT ================= */
.cp-section { padding: 36px 0 56px; background: #fff; }
.cp-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 32px;
  align-items: start;
}
.cp-main { min-width: 0; }
.cp-grid .cbhe-side { position: sticky; top: 20px; }

.cp-main p {
  margin: 0 0 12px;
  color: #2b2f3a;
  font-size: 14px;
  line-height: 1.75;
}
.cp-main a { color: var(--navy); }
.cp-main a:hover { color: var(--gold); }

/* headings */
.cp-title {
  margin: 0 0 14px;
  color: var(--navy);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.25;
}
.cp-heading {
  position: relative;
  margin: 38px 0 14px;
  padding-bottom: 10px;
  color: var(--navy);
  font-size: 21px;
  font-weight: 700;
}
.cp-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 3px;
  background: var(--gold);
}

/* ================= INTRO + EU BADGE ================= */
.cp-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 36px;
  align-items: center;
}
.cp-eu {
  display: flex;
  align-items: center;
  gap: 16px;
}
.cp-flag {
  position: relative;
  flex: 0 0 84px;
  width: 84px;
  height: 56px;
  background: #0b3a9a;
  border: 1px solid #08297a;
}
.cp-flag span {
  position: absolute;
  top: 50%;
  left: 50%;
  font-size: 8px;
  line-height: 1;
  color: #ffd617;
  transform: translate(-50%, -50%) rotate(calc(var(--i) * 30deg)) translateY(-17px) rotate(calc(var(--i) * -30deg));
}
.cp-eu-text {
  color: #0b3a9a;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
}

/* ================= CURRENT PROJECT CARD ================= */
.cp-current {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 0;
  background: var(--soft);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: 6px;
}
.cp-current-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  border-right: 1px solid var(--line);
}
.cp-current-logo img { max-width: 100%; max-height: 110px; height: auto; display: block; }
.cp-logo-fallback {
  color: #0d3b8f;
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
}
.cp-logo-fallback small {
  display: block;
  margin-top: 8px;
  color: #333;
  font-size: 11px;
  font-weight: 500;
}
.cp-current-info { padding: 22px 26px; align-self: center; }
.cp-current-info h3 {
  margin: 0 0 12px;
  color: #1a1f2b;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.45;
}
.cp-current-info p { margin: 0; font-size: 13.5px; }
.cp-current-info p b { color: var(--navy); margin-right: 8px; }

/* ================= PROJECT DETAILS TABLE ================= */
.cp-scroll { overflow-x: auto; }
.cp-details {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 13.5px;
}
.cp-details th,
.cp-details td {
  padding: 11px 18px;
  border-top: 1px solid var(--line);
  vertical-align: top;
  line-height: 1.55;
  text-align: left;
}
.cp-details tr:first-child th,
.cp-details tr:first-child td { border-top: 0; }
.cp-details th {
  width: 22%;
  min-width: 140px;
  color: #1a1f2b;
  font-weight: 700;
  background: var(--soft);
  border-right: 1px solid var(--line);
}
.cp-details td { color: #2b2f3a; }
.cp-details td a { text-decoration: none; }
.cp-details td a:hover { text-decoration: underline; }
.cp-details td a i { font-size: 11px; margin-left: 4px; }

/* ================= PROJECTS LIST ================= */
.cp-list-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 38px;
}
.cp-list-head .cp-heading { margin: 0; }
.cp-filters { display: flex; gap: 10px; flex-wrap: wrap; }
.cp-search {
  position: relative;
  display: flex;
  align-items: center;
}
.cp-search i {
  position: absolute;
  left: 12px;
  color: var(--navy);
  font-size: 13px;
  pointer-events: none;
}
.cp-filters input,
.cp-filters select {
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--navy);
  font-size: 13px;
}
.cp-filters input { width: 230px; padding: 0 12px 0 34px; }
.cp-filters select { padding: 0 10px; }
.cp-filters input:focus,
.cp-filters select:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}

.cp-table {
  width: 100%;
  margin-top: 16px;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 13px;
}
.cp-table thead th {
  background: var(--navy);
  color: #fff;
  padding: 11px 14px;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
}
.cp-table tbody td {
  padding: 13px 14px;
  border-top: 1px solid var(--line);
  color: #1a1f2b;
  line-height: 1.5;
  vertical-align: middle;
}
.cp-table tbody tr[hidden] { display: none; }
.cp-table tbody tr:hover td { background: var(--soft); }
.cp-table .c-year { width: 70px; white-space: nowrap; }
.cp-table .c-partner { width: 26%; }
.cp-table .c-details { width: 130px; white-space: nowrap; }
.cp-table td a { text-decoration: none; }
.cp-table td a:hover { text-decoration: underline; }
.cp-table td a i { font-size: 11px; margin-left: 4px; }
.cp-extra { font-size: 12px; font-weight: 600; }
.cp-soon { color: #8a90a0; font-size: 12.5px; }
.cp-empty td { text-align: center; color: #666; padding: 22px; }

/* ================= RESPONSIVE ================= */
@media (max-width: 991px) {
  .banner-media { width: 100%; }
  .banner-text { width: 70%; padding: 30px; }
  .banner-text::after { display: none; }
  .banner-text h1 { font-size: 28px; }

  .cp-grid { grid-template-columns: 1fr; }
  .cp-grid .cbhe-side { position: static; }
}
@media (max-width: 767px) {
  .page-banner { height: auto; min-height: 260px; }
  .banner-text { position: relative; width: 100%; padding: 36px 20px; }
  .banner-media { display: none; }

  .cp-intro { grid-template-columns: 1fr; gap: 20px; }
  .cp-title { font-size: 22px; }
  .cp-current { grid-template-columns: 1fr; }
  .cp-current-logo { border-right: 0; border-bottom: 1px solid var(--line); }
  .cp-details th { width: 36%; min-width: 0; }
  .cp-filters, .cp-filters input { width: 100%; }
  .cp-filters select { width: 100%; }
  .cp-table { min-width: 640px; }
}