/* =========================================================
   eu_cbhe.css  –  EU CBHE Projects (Erasmus+) page
   (Remove the :root block if --navy / --gold / --transition
   are already defined in your global stylesheet.)
   ========================================================= */
:root {
  --navy: #0b2352;
  --gold: #e1a80b;
  --transition: .25s ease;
}

/* ================= PAGE HERO ================= */
.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%);
  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: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 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; }

/* ================= PAGE LAYOUT ================= */
.cbhe-section { padding: 36px 0 50px; background: #fff; }
.cbhe-grid {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) 280px;
  grid-template-areas:
    "card  main  side"
    "table table promo";
  gap: 28px 32px;
  align-items: start;
}
.cbhe-card        { grid-area: card; }
.cbhe-main        { grid-area: main; }
.cbhe-side        { grid-area: side; }
.cbhe-table-wrap  { grid-area: table; }
.cbhe-promo       { grid-area: promo; }

/* ================= LEFT HIGHLIGHT CARD ================= */
.cbhe-card {
  background: var(--navy);
  color: #fff;
  border-radius: 10px;
  padding: 28px 22px 10px;
  text-align: center;
  box-shadow: 0 6px 0 var(--gold), 0 14px 26px rgba(11, 35, 82, .25);
}
.cbhe-card-emblem {
  position: relative;
  width: 130px;
  height: 130px;
  margin: 0 auto 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 46px;
}
.star-ring { position: absolute; inset: 0; }
.star-ring 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(-58px);
}
.cbhe-card h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 28px;
  font-weight: 600;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--gold);
}
.cbhe-card-sub {
  color: var(--gold);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.45;
  margin: 0 0 18px;
}
.cbhe-card-list { list-style: none; margin: 0; padding: 0; text-align: left; }
.cbhe-card-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, .22);
  font-size: 15px;
  line-height: 1.4;
}
.cbhe-card-list li i { color: var(--gold); font-size: 24px; width: 30px; text-align: center; }

/* ================= MAIN CONTENT ================= */
.cbhe-title {
  position: relative;
  margin: 0 0 24px;
  padding-bottom: 14px;
  color: var(--navy);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
}
.cbhe-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 64px;
  height: 3px;
  background: var(--gold);
}
.cbhe-main > p {
  color: #333;
  font-size: 14px;
  line-height: 1.75;
  margin: 0 0 14px;
}
.cbhe-info { margin-top: 22px; }
.cbhe-info-item {
  display: flex;
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid #e6e8ee;
}
.cbhe-info-icon {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
}
.cbhe-info-item h3 {
  margin: 0 0 6px;
  color: var(--navy);
  font-size: 20px;
  font-weight: 700;
}
.cbhe-info-item p {
  margin: 0;
  color: #444;
  font-size: 13px;
  line-height: 1.65;
}

/* ================= TABLE ================= */
.cbhe-heading {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: 22px;
  font-weight: 700;
}
.cbhe-table-scroll { overflow-x: auto; }
.cbhe-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid #e6e8ee;
  border-radius: 6px;
  font-size: 13px;
}
.cbhe-table thead th {
  background: var(--navy);
  color: #fff;
  padding: 11px 16px;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
}
.cbhe-table tbody td {
  padding: 14px 16px;
  color: var(--navy);
  line-height: 1.5;
  border-top: 1px solid #e6e8ee;
  vertical-align: middle;
}
.cbhe-table tbody td i {
  color: var(--gold);
  font-size: 10px;
  margin-right: 14px;
}
.cbhe-table tbody tr:hover td { background: #f5f7fb; }
.cbhe-table .col-duration {
  width: 130px;
  text-align: center;
  border-left: 1px solid #e6e8ee;
  white-space: nowrap;
}
.cbhe-table thead .col-duration { border-left: 0; }

/* ================= PROMO BOX ================= */
.cbhe-promo {
  background: #fdf3e3;
  border: 1px solid #f5e2c0;
  border-radius: 8px;
  padding: 24px 22px;
}
.cbhe-promo-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.cbhe-promo-icon {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #000;
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
}
.cbhe-promo h3 {
  margin: 0;
  color: var(--navy);
  font-size: 18px;
  font-weight: 700;
}
.cbhe-promo p {
  margin: 0 0 18px;
  color: #333;
  font-size: 13.5px;
  line-height: 1.7;
}
.cbhe-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  background: var(--navy);
  color: #fff;
  padding: 12px 18px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 3px 0 var(--gold);
  transition: background var(--transition), color var(--transition);
}
.cbhe-btn:hover { background: #07173a; color: var(--gold); }
.cbhe-btn i { font-size: 11px; }

/* ================= RESPONSIVE ================= */
@media (max-width: 1100px) {
  .cbhe-grid {
    grid-template-columns: 250px minmax(0, 1fr);
    grid-template-areas:
      "card  main"
      "side  side"
      "table table"
      "promo promo";
  }
}
@media (max-width: 991px) {
  .banner-media { width: 100%; }
  .banner-text { width: 70%; padding: 30px 30px 30px 30px; }
  .banner-text::after { display: none; }
  .banner-text h1 { font-size: 28px; }
}
@media (max-width: 767px) {
  .page-banner { height: auto; min-height: 260px; }
  .banner-text { position: relative; width: 100%; padding: 36px 20px; }
  .banner-media { display: none; }
  .cbhe-grid {
    grid-template-columns: 1fr;
    grid-template-areas: "card" "main" "side" "table" "promo";
  }
  .cbhe-title { font-size: 26px; }
}


/* =========================================================
   erasmusprojects.css  –  Erasmus+ Programme page
   Load AFTER eu_cbhe.css (reuses hero, sidebar, table, button)
   ========================================================= */

/* ---------- layout: content + sidebar ----------
   NOTE: eu_cbhe.css gives .cbhe-side "grid-area: side".
   That pushed the sidebar into an extra row, so reset it here. */
.er-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  grid-template-areas: none;
  gap: 32px;
  align-items: start;
}
.er-grid .er-main { grid-area: auto; grid-column: 1; grid-row: 1; min-width: 0; }
.er-grid .cbhe-side {
  grid-area: auto;
  grid-column: 2;
  grid-row: 1;
  position: sticky;
  top: 20px;
}

/* ---------- tabs ---------- */
.er-tabs { display: none; }
.er-js .er-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 26px;
  border-bottom: 2px solid #e6e8ee;
}
.er-tab {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 20px;
  margin-bottom: -2px;
  background: none;
  border: 0;
  border-bottom: 3px solid transparent;
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.er-tab i { color: var(--gold); }
.er-tab:hover { background: #f5f7fb; }
.er-tab.active {
  border-bottom-color: var(--gold);
  color: var(--navy);
  background: #f5f7fb;
}
.er-tab:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.er-panel[hidden] { display: none; }

/* ---------- headings & text ---------- */
.er-panel p {
  color: #333;
  font-size: 14px;
  line-height: 1.75;
  margin: 0 0 14px;
}
.er-panel a { color: var(--navy); }
.er-panel a:hover { color: var(--gold); }
.er-block-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.er-block-head .cbhe-title { flex: 1 1 300px; }
.cbhe-title { font-size: 28px; }
.er-sub { margin: 30px 0 12px; }
.er-note { font-size: 13px !important; color: #555 !important; }

.er-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
@media (prefers-reduced-motion: no-preference) {
  .er-badge { animation: er-pulse 2.4s ease-in-out infinite; }
}
@keyframes er-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(225, 168, 11, .55); }
  50%      { box-shadow: 0 0 0 8px rgba(225, 168, 11, 0); }
}

/* ---------- lists ---------- */
.er-list { list-style: none; margin: 0 0 16px; padding: 0; }
.er-list li {
  position: relative;
  padding: 5px 0 5px 20px;
  color: #333;
  font-size: 14px;
  line-height: 1.6;
}
.er-list li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 13px;
  width: 7px;
  height: 7px;
  background: var(--gold);
  border-radius: 50%;
}
.er-list-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; margin: 0; }

/* ---------- info cards ---------- */
.er-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 22px 0 8px;
}
.er-card {
  background: #f8f9fc;
  border: 1px solid #e6e8ee;
  border-top: 3px solid var(--gold);
  border-radius: 8px;
  padding: 18px 20px 8px;
}
.er-card-wide { grid-column: 1 / -1; }
.er-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 17px;
  font-weight: 700;
}
.er-card h3 i { color: var(--gold); font-size: 16px; }
.er-card p { font-size: 13.5px; margin-bottom: 12px; }

/* ---------- budget stats ---------- */
.er-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 12px;
}
.er-stat {
  background: #fff;
  border: 1px solid #e6e8ee;
  border-radius: 8px;
  padding: 14px 16px;
}
.er-stat span { display: block; color: #555; font-size: 12.5px; line-height: 1.4; margin-bottom: 6px; }
.er-stat b { color: var(--navy); font-size: 17px; }
.er-stat-main {
  grid-column: 1 / -1;
  background: var(--navy);
  border-color: var(--navy);
  border-bottom: 3px solid var(--gold);
}
.er-stat-main span { color: #fff; opacity: .85; }
.er-stat-main b { color: var(--gold); font-size: 22px; }

/* ---------- deadlines table ---------- */
.er-deadlines .er-col-date {
  width: 36%;
  white-space: normal;
  font-weight: 600;
}

/* ---------- button row ---------- */
.er-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.er-panel a.cbhe-btn { color: #fff; }
.er-panel a.cbhe-btn:hover { color: var(--gold); }

/* ---------- accordions ---------- */
.er-acc-list { margin-top: 24px; }
.er-acc {
  border: 1px solid #e6e8ee;
  border-radius: 8px;
  margin-bottom: 12px;
  background: #fff;
  overflow: hidden;
}
.er-acc[open] { border-color: var(--gold); box-shadow: 0 6px 18px rgba(0, 0, 0, .05); }
.er-acc summary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  cursor: pointer;
  list-style: none;
}
.er-acc summary::-webkit-details-marker { display: none; }
.er-acc summary:hover { background: #f5f7fb; }
.er-acc summary:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.er-acc .cbhe-info-icon { flex: 0 0 42px; width: 42px; height: 42px; font-size: 16px; }
.er-acc-title {
  flex: 1;
  color: var(--navy);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}
.er-acc-arrow { color: var(--gold); font-size: 13px; transition: transform var(--transition); }
.er-acc[open] .er-acc-arrow { transform: rotate(180deg); }
.er-acc-body { padding: 4px 22px 22px 76px; border-top: 1px solid #eef0f4; }
.er-acc-body > :first-child { margin-top: 16px; }
.er-acc-body h4 { margin: 18px 0 8px; color: var(--navy); font-size: 15px; font-weight: 700; }

/* ---------- downloads / recordings ---------- */
.er-downloads { list-style: none; margin: 0 0 18px; padding: 0; }
.er-downloads li { border-top: 1px solid #eef0f4; }
.er-downloads li:last-child { border-bottom: 1px solid #eef0f4; }
.er-downloads a {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 6px;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 500;
  text-decoration: none;
  transition: background var(--transition);
}
.er-downloads a:hover { background: #f5f7fb; }
.er-downloads a i { color: var(--gold); margin-top: 3px; width: 18px; text-align: center; }

/* ---------- PDF frames ---------- */
.er-frame {
  border: 1px solid #e6e8ee;
  border-radius: 6px;
  overflow: hidden;
  background: #f5f7fb;
}
.er-frame iframe { display: block; width: 100%; border: 0; }

/* ---------- responsive ---------- */
@media (max-width: 991px) {
  .er-grid { grid-template-columns: 1fr; }
  .er-grid .er-main,
  .er-grid .cbhe-side { grid-column: 1; }
  .er-grid .cbhe-side { grid-row: 2; position: static; }
}
@media (max-width: 767px) {
  .cbhe-title { font-size: 24px; }
  .er-cards, .er-list-2col { grid-template-columns: 1fr; }
  .er-stats { grid-template-columns: 1fr; }
  .er-tab { flex: 1 1 100%; justify-content: flex-start; }
  .er-acc-body { padding: 4px 16px 18px; }
  .er-frame iframe { height: 420px; }
  .er-deadlines .er-col-date { width: auto; }
}