/* Romania–Bulgaria — programme overview page */

.robg-overview-page {
  background: #f8f7f2;
}

.robg-overview {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 30px 28px 64px;
  background:
    linear-gradient(
      90deg,
      rgba(250, 248, 243, 0.995) 0%,
      rgba(250, 248, 243, 0.985) 42%,
      rgba(250, 248, 243, 0.72) 55%,
      rgba(250, 248, 243, 0.18) 72%,
      rgba(250, 248, 243, 0.05) 100%
    ) 0 0 / 100% 430px no-repeat,
    url("../images/romania-bulgaria/overview/overview-hero-landscape.png") right top / auto 430px no-repeat,
    linear-gradient(180deg, #faf8f3 0%, #faf8f3 55%, #f4faf9 100%);
}

.robg-overview-inner {
  position: relative;
  z-index: 2;
  width: min(1480px, calc(100% - 20px));
  margin: 0 auto;
}

.robg-overview-breadcrumbs {
  margin-bottom: 24px;
}

.robg-overview-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(460px, 0.95fr);
  align-items: end;
  gap: 46px;
  min-height: 240px;
  margin-bottom: 28px;
}

.robg-overview-copy {
  max-width: 780px;
  padding-bottom: 14px;
}

.robg-overview-copy h1 {
  margin: 0 0 16px;
  color: #0e457e;
  font-size: clamp(42px, 4.2vw, 66px);
  line-height: 1;
  letter-spacing: -2px;
}

.robg-overview-copy p {
  max-width: 740px;
  margin: 0;
  color: #183f67;
  font-size: 18px;
  line-height: 1.55;
}

.robg-danube-message {
  position: relative;
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) 285px;
  align-items: center;
  min-height: 116px;
  overflow: hidden;
  padding: 16px 22px;
  border-radius: 27px;
  background: linear-gradient(135deg, rgba(13, 64, 122, 0.97), rgba(18, 91, 147, 0.95));
  box-shadow: 0 16px 35px rgba(12, 58, 99, 0.22);
  color: #fff;
}

.robg-danube-compass {
  width: 62px;
  height: 62px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.robg-danube-message-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.robg-danube-message-copy strong {
  color: #73d2d0;
  font-size: 22px;
  line-height: 1.15;
}

.robg-danube-message-copy span {
  max-width: 360px;
  font-size: 15px;
  line-height: 1.42;
}

.robg-danube-illustration {
  align-self: end;
  width: 285px;
  height: 86px;
  object-fit: contain;
  object-position: right bottom;
}

.robg-overview-stats {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 8px;
}

.robg-stat-card {
  --stat-color: #164f88;
  display: flex;
  min-width: 0;
  min-height: 266px;
  flex-direction: column;
  align-items: center;
  padding: 17px 12px 15px;
  border: 1px solid rgba(26, 65, 95, 0.11);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 24px rgba(30, 70, 94, 0.1);
  text-align: center;
  backdrop-filter: blur(6px);
}

.robg-stat-icon {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  margin-bottom: 9px;
  border-radius: 50%;
  background: #dceef6;
}

.robg-stat-icon img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.robg-stat-card strong {
  color: var(--stat-color);
  font-size: 34px;
  line-height: 1;
  letter-spacing: -0.8px;
}

.robg-stat-card .robg-stat-word {
  font-size: 30px;
}

.robg-stat-card b {
  min-height: 42px;
  margin-top: 4px;
  color: var(--stat-color);
  font-size: 17px;
  line-height: 1.18;
}

.robg-stat-rule {
  width: 82%;
  height: 1px;
  margin: 13px 0 10px;
  background: rgba(32, 75, 104, 0.14);
}

.robg-stat-card small {
  color: #18344f;
  font-size: 13px;
  line-height: 1.43;
}

.stat-teal {
  --stat-color: #1f8992;
}

.stat-teal .robg-stat-icon {
  background: #d9f0ef;
}

.stat-green {
  --stat-color: #3e8547;
}

.stat-green .robg-stat-icon {
  background: #e4f0d8;
}

.robg-river-divider {
  position: relative;
  z-index: 3;
  height: 62px;
  margin: -4px -4vw 2px;
  pointer-events: none;
}

.robg-river-divider img {
  width: 108%;
  height: 84px;
  object-fit: fill;
  object-position: center;
}

.robg-overview-guidance {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(420px, 0.9fr) minmax(0, 1.1fr);
  align-items: stretch;
  gap: 18px;
  margin-top: -2px;
}

.robg-checklist {
  position: relative;
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  min-height: 258px;
  overflow: hidden;
  padding: 26px 28px 24px;
  border: 1px solid rgba(61, 118, 66, 0.12);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(239, 247, 230, 0.97), rgba(248, 250, 239, 0.94));
  box-shadow: 0 12px 28px rgba(47, 89, 63, 0.1);
}

.robg-checklist-icon {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: start center;
}

.robg-checklist-icon img {
  width: 68px;
  height: 68px;
  object-fit: contain;
}

.robg-checklist-copy {
  position: relative;
  z-index: 2;
}

.robg-checklist h2 {
  margin: 2px 0 14px;
  color: #28713b;
  font-size: 23px;
  line-height: 1.18;
}

.robg-checklist ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.robg-checklist li {
  position: relative;
  padding-left: 32px;
  color: #183a52;
  font-size: 15.5px;
  line-height: 1.35;
}

.robg-checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: -1px;
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: #59a85f;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.robg-checklist-landscape {
  position: absolute;
  right: -62px;
  bottom: -80px;
  width: 310px;
  opacity: 0.82;
  pointer-events: none;
}

.robg-audience-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.robg-audience-card {
  --audience-color: #1c5a91;
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 258px;
  flex-direction: column;
  overflow: hidden;
  padding: 17px 18px 104px;
  border: 1px solid rgba(17, 69, 103, 0.14);
  border-top: 3px solid var(--audience-color);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.93);
  box-shadow: 0 10px 24px rgba(30, 70, 94, 0.11);
}

.robg-audience-heading {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.robg-audience-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #dcecf7;
}

.robg-audience-icon img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.robg-audience-card h2 {
  margin: 0;
  color: var(--audience-color);
  font-size: 17px;
  line-height: 1.25;
}

.robg-audience-card p {
  position: relative;
  z-index: 2;
  margin: 0;
  color: #173953;
  font-size: 14.5px;
  line-height: 1.45;
}

.robg-audience-photo {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 96px;
  object-fit: cover;
}

.audience-green {
  --audience-color: #3e8547;
}

.audience-green .robg-audience-icon {
  background: #e3f0dc;
}

.audience-gold {
  --audience-color: #c88706;
}

.audience-gold .robg-audience-icon {
  background: #f9e9bd;
}

.robg-jems-note {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 242px;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
  padding: 14px 18px;
  border: 1px solid rgba(28, 88, 133, 0.11);
  border-radius: 18px;
  background: linear-gradient(90deg, #eef7fb, #e2f0f8);
  box-shadow: 0 10px 24px rgba(30, 70, 94, 0.08);
}

.robg-jems-note > img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.robg-jems-note > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.robg-jems-note strong {
  color: #123f6d;
  font-size: 15.5px;
  line-height: 1.32;
}

.robg-jems-note span {
  color: #234866;
  font-size: 13.5px;
  line-height: 1.4;
}

.robg-jems-note > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 58px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #15558b;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.robg-jems-note > a:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(20, 73, 115, 0.22);
}

.robg-jems-note > a img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.robg-overview-back {
  display: flex;
  justify-content: center;
  gap: 34px;
  margin-top: 26px;
}

.robg-overview-back a {
  color: #126193;
  font-weight: 800;
  text-decoration: none;
}

.robg-overview-back a:hover {
  text-decoration: underline;
}

@media (max-width: 1260px) {
  .robg-overview-intro {
    grid-template-columns: minmax(0, 1fr) minmax(400px, 0.9fr);
    gap: 24px;
  }

  .robg-danube-message {
    grid-template-columns: 62px minmax(0, 1fr) 215px;
  }

  .robg-danube-illustration {
    width: 215px;
  }

  .robg-overview-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }

  .robg-stat-card {
    min-height: 245px;
  }

  .robg-river-divider {
    margin-top: 4px;
  }

  .robg-overview-guidance {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .robg-overview {
    padding: 26px 18px 50px;
    background:
      linear-gradient(180deg, rgba(250, 248, 243, 0.88), rgba(250, 248, 243, 0.97)) 0 0 / 100% 410px no-repeat,
      url("../images/romania-bulgaria/overview/overview-hero-landscape.png") center top / auto 410px no-repeat,
      linear-gradient(180deg, #faf8f3 0%, #f4faf9 100%);
  }

  .robg-overview-inner {
    width: 100%;
  }

  .robg-overview-intro {
    display: block;
    min-height: 0;
  }

  .robg-overview-copy {
    max-width: 100%;
    padding: 0;
  }

  .robg-overview-copy h1 {
    font-size: clamp(38px, 8vw, 54px);
  }

  .robg-overview-copy p {
    max-width: 100%;
  }

  .robg-danube-message {
    grid-template-columns: 58px minmax(0, 1fr);
    margin-top: 28px;
  }

  .robg-danube-illustration {
    display: none;
  }

  .robg-audience-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .robg-audience-card {
    min-height: 220px;
  }

  .robg-jems-note {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .robg-jems-note > a {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .robg-overview-copy h1 {
    letter-spacing: -1px;
  }

  .robg-overview-copy p {
    font-size: 16px;
  }

  .robg-overview-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .robg-stat-card {
    min-height: 225px;
    padding: 14px 9px;
  }

  .robg-stat-icon {
    width: 66px;
    height: 66px;
  }

  .robg-stat-icon img {
    width: 50px;
    height: 50px;
  }

  .robg-stat-card strong {
    font-size: 29px;
  }

  .robg-river-divider {
    height: 42px;
  }

  .robg-river-divider img {
    height: 58px;
  }

  .robg-checklist {
    grid-template-columns: 1fr;
    padding: 22px 20px 26px;
  }

  .robg-checklist-icon {
    justify-content: start;
    margin-bottom: 6px;
  }

  .robg-checklist-landscape {
    right: -90px;
    opacity: 0.55;
  }

  .robg-overview-back {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
  }
}
/* =========================================================
   ROBG overview — compact desktop layout
   ========================================================= */

@media (min-width: 1261px) {
  .robg-overview-intro {
    margin-bottom: 22px;
  }

  .robg-stat-card {
    min-height: 246px;
    padding: 14px 11px 13px;
  }

  .robg-stat-icon {
    width: 72px;
    height: 72px;
    margin-bottom: 7px;
  }

  .robg-stat-icon img {
    width: 54px;
    height: 54px;
  }

  .robg-stat-card strong {
    font-size: 32px;
  }

  .robg-stat-card .robg-stat-word {
    font-size: 28px;
  }

  .robg-stat-card b {
    min-height: 38px;
    font-size: 16px;
  }

  .robg-stat-rule {
    margin: 10px 0 8px;
  }

  .robg-stat-card small {
    font-size: 12.5px;
    line-height: 1.38;
  }

  .robg-river-divider {
    height: 52px;
    margin-top: -12px;
    margin-bottom: 0;
  }

  .robg-river-divider img {
    height: 74px;
  }
}
a.robg-stat-card {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: box-shadow 0.2s ease, filter 0.2s ease;
}

a.robg-stat-card:hover,
a.robg-stat-card:focus-visible {
  filter: brightness(1.02);
  box-shadow: 0 17px 34px rgba(10, 64, 103, 0.16);
}