/* =========================================================
   horizon2020.css  –  Horizon 2020 page (horizon2020.php)
   Standalone: tokens + hero banner + page + sidebar styles.
   (Remove the :root block if --navy / --gold / --transition
   are already defined in your global stylesheet.)
   ========================================================= */
:root {
  --navy: #0b2352;
  --navy-dark: #081a3d;
  --gold: #e1a80b;
  --line: #dde4f0;
  --tint: #eef3fb;
  --soft: #f5f8fd;
  --serif: Georgia, "Times New Roman", serif;
  --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;
}
.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;
}
.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);
}
.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 14px 0;
  color: #fff;
  font-size: 36px;
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: 1px;
}
.banner-sub {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, .9);
  font-size: 15px;
  line-height: 1.6;
  max-width: 420px;
}
.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; }

/* ================= PAGE BASE ================= */
.h2-section { padding: 40px 0 56px; background: #fff; }
.h2-section p {
  margin: 0 0 12px;
  color: #1d2b4a;
  font-size: 14px;
  line-height: 1.75;
}
.h2-section a { color: var(--navy); }
.h2-section a:hover { color: var(--gold); }

.h2-title {
  position: relative;
  margin: 0 0 18px;
  padding-bottom: 12px;
  color: var(--navy);
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 700;
  line-height: 1.2;
}
.h2-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 44px;
  height: 3px;
  background: var(--gold);
}
.h2-title-sm { font-size: 21px; }
.h2-title-lg { margin: 44px 0 20px; }

/* ================= LAYOUT WITH RIGHT SIDEBAR ================= */
.h2-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 32px;
  align-items: start;
}
.h2-content { min-width: 0; }
.h2-layout .cbhe-side { position: sticky; top: 20px; }

/* ================= ABOUT + KEY INFORMATION ================= */
.h2-about {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}
.h2-key {
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px 20px 10px;
}
.h2-keylist { list-style: none; margin: 0; padding: 0; }
.h2-keylist li { border-bottom: 1px solid var(--line); }
.h2-keylist li:last-child { border-bottom: 0; }
.h2-keylist li,
.h2-keylist a {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.h2-keylist li { padding: 13px 4px; }
.h2-keylist li:has(> a) { padding: 0; }
.h2-keylist a {
  width: 100%;
  padding: 13px 4px;
  align-items: center;
  text-decoration: none;
  transition: background var(--transition), padding var(--transition);
}
.h2-keylist a:hover { background: rgba(255, 255, 255, .7); padding-left: 10px; }
.h2-key-icon { flex: 0 0 26px; color: var(--navy); font-size: 20px; text-align: center; margin-top: 2px; }
.h2-keylist a .h2-key-icon { margin-top: 0; }
.h2-keylist div { flex: 1; }
.h2-keylist b { display: block; color: var(--navy); font-size: 14px; margin-bottom: 2px; }
.h2-keylist span { display: block; color: #4a5878; font-size: 12.5px; line-height: 1.5; }
.h2-key-arrow { color: var(--gold); font-size: 12px; }

/* ================= STATS ================= */
.h2-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 26px;
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.h2-stat { display: flex; align-items: flex-start; gap: 12px; padding: 18px 18px; }
.h2-stat + .h2-stat { border-left: 1px solid var(--line); }
.h2-stat > i { color: var(--navy); font-size: 26px; margin-top: 2px; }
.h2-stat b {
  display: block;
  color: var(--navy);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.25;
  margin-bottom: 4px;
}
.h2-stat span { display: block; color: #4a5878; font-size: 12px; line-height: 1.45; }

/* ================= FEATURE BLOCK ================= */
.h2-feature { margin-top: 30px; border-radius: 10px; overflow: hidden; }
.h2-feature-edge {
  background: var(--gold);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  border-radius: 10px;
  padding-left: 5px;
}
.h2-feature-main {
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 32px 34px;
  background: linear-gradient(100deg, var(--navy-dark) 0%, var(--navy) 65%, #14397a 100%);
  border-radius: 6px 10px 10px 6px;
  color: #fff;
}
.h2-feature-main h2 {
  margin: 0 0 10px;
  color: #fff;
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.25;
}
.h2-section .h2-feature-main p { color: rgba(255, 255, 255, .92); margin: 0 0 18px; max-width: 520px; }
.h2-stars { position: relative; flex: 0 0 90px; width: 90px; height: 90px; }
.h2-stars span {
  position: absolute;
  top: 50%;
  left: 50%;
  font-size: 11px;
  line-height: 1;
  color: var(--gold);
  transform: translate(-50%, -50%) rotate(calc(var(--i) * 30deg)) translateY(-37px) rotate(calc(var(--i) * -30deg));
}

/* buttons */
.h2-section a.h2-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  background: var(--gold);
  border-radius: 999px;
  color: var(--navy);
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition);
}
.h2-section a.h2-btn:hover { background: #f1bb2a; color: var(--navy); transform: translateY(-1px); }

/* ================= AWARENESS EVENTS ================= */
.h2-events { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.h2-event {
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px 20px 12px;
}
.h2-when {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  font-family: var(--serif);
  font-size: 14px;
}
.h2-when i { font-size: 24px; }
.h2-event h3 {
  margin: 12px 0 14px;
  color: var(--navy);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.35;
}
.h2-section .h2-files-label { margin: 0 0 8px; color: var(--navy); font-weight: 700; font-size: 13px; }
.h2-files { list-style: none; margin: 0; padding: 0; }
.h2-files li { margin-bottom: 10px; }
.h2-files a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.4;
  text-decoration: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.h2-files a:hover { border-color: var(--gold); box-shadow: 0 4px 12px rgba(11, 35, 82, .08); }
.h2-files span { flex: 1; }
.h2-pdf { color: #d9342b; font-size: 18px; }
.h2-dl { color: var(--navy); }
.h2-files a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ================= CTA BANNER ================= */
.h2-cta {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
  margin-top: 30px;
  padding: 26px 32px;
  background: linear-gradient(100deg, var(--navy-dark) 0%, var(--navy) 60%, #14397a 100%);
  border-radius: 10px;
}
.h2-cta-icons { display: flex; gap: 22px; padding-right: 26px; border-right: 2px solid var(--gold); color: var(--gold); font-size: 38px; }
.h2-cta-text { flex: 1 1 260px; }
.h2-cta h2 { margin: 0 0 6px; color: #fff; font-family: var(--serif); font-size: 22px; line-height: 1.3; }
.h2-section .h2-cta p { margin: 0; color: rgba(255, 255, 255, .88); font-size: 13.5px; }

/* ================= 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;
}
.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(--navy);
  opacity: .6;
}
.sidebar-menu ul li.active a .arrow { color: var(--gold); opacity: 1; }


/* ================= 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; }

  .h2-layout { grid-template-columns: 1fr; }
  .h2-layout .cbhe-side { position: static; }
  .h2-about { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .page-banner { height: auto; min-height: 260px; }
  .banner-text { position: relative; width: 100%; padding: 36px 20px; }
  .banner-media { display: none; }

  .h2-title { font-size: 22px; }
  .h2-stats { grid-template-columns: 1fr; }
  .h2-stat + .h2-stat { border-left: 0; border-top: 1px solid var(--line); }
  .h2-feature-main { flex-direction: column; align-items: flex-start; padding: 24px 22px; }
  .h2-feature-main h2 { font-size: 22px; }
  .h2-events { grid-template-columns: 1fr; }
  .h2-cta { padding: 22px 20px; }
  .h2-cta-icons { border-right: 0; padding-right: 0; }
}
@media (min-width: 992px) and (max-width: 1199px) {
  .h2-stats { grid-template-columns: 1fr; }
  .h2-stat + .h2-stat { border-left: 0; border-top: 1px solid var(--line); }
}
@media (prefers-reduced-motion: reduce) {
  .h2-section a.h2-btn { transition: none; }
}