:root {
    --ink: #072756;
    --ink2: #16406c;
    --green: #1d7258;
    --teal: #2a94a2;
    --blue: #0d4f93;
    --soft: #f8f4e9;
    --cream: #fbf8ef;
    --paper: #ffffff;
    --line: #d8e2e7;
    --muted: #5e7383;
    --shadow: 0 14px 34px rgba(25,60,92,.13);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter,Segoe UI,Arial,sans-serif;
    color: var(--ink);
    background: linear-gradient(180deg,#f7fbfb 0,#fffdf7 45%,#f1f8f5 100%);
}

a {
    color: inherit;
    text-decoration: none;
}

.site-header {
    height: 86px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 0 46px;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(210,222,226,.8);
    position: sticky;
    top: 0;
    z-index: 10;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 250px;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border-radius: 999px;
    background: linear-gradient(145deg,#e8f5e5,#c8e9f1);
    box-shadow: inset 0 0 0 1px rgba(10,72,105,.12);
}

.brand-mark svg {
    width: 38px;
    height: 38px;
}

.brand-mark svg path:nth-child(1) {
    fill: #68a86b;
}

.brand-mark svg path:nth-child(2) {
    fill: #2c8aa6;
}

.brand-mark svg path:nth-child(3) {
    fill: #9cc56d;
}

.brand-text strong {
    display: block;
    font-family: Georgia,serif;
    font-size: 19px;
    line-height: 1;
    color: #072756;
}

.brand-text small {
    display: block;
    font-weight: 700;
    color: #123b64;
}

.main-nav {
    display: flex;
    gap: 28px;
    font-weight: 800;
    font-size: 15px;
}

.main-nav a {
    padding: 12px 0;
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
}

.search-icon {
    font-size: 24px;
    margin-left: 8px;
}

.hero {
    position: relative;
    min-height: 480px;
    overflow: hidden;
    background: linear-gradient(180deg,#eef8fb 0,#fbf7eb 75%,#fff 100%);
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: radial-gradient(circle at 65% 20%,rgba(255,255,255,.9) 0 16%,transparent 30%),linear-gradient(180deg,rgba(196,226,232,.75),rgba(248,241,218,.7));
}

.sun {
    position: absolute;
    left: 55%;
    top: 52px;
    width: 280px;
    height: 120px;
    background: rgba(255,255,255,.45);
    filter: blur(10px);
    border-radius: 50%;
}

.mountains {
    position: absolute;
    bottom: 92px;
    left: -5%;
    right: -5%;
    height: 230px;
    background: linear-gradient(135deg,#d6e5cf,#7daf8d);
    clip-path: polygon(0 75%,14% 34%,28% 54%,42% 22%,58% 62%,72% 28%,89% 52%,100% 20%,100% 100%,0 100%);
    opacity: .72;
}

.m2 {
    bottom: 40px;
    height: 230px;
    background: linear-gradient(135deg,#b5d0bd,#4e927b);
    clip-path: polygon(0 88%,18% 48%,34% 66%,52% 38%,70% 69%,87% 42%,100% 72%,100% 100%,0 100%);
    opacity: .9;
}

.river {
    position: absolute;
    bottom: -130px;
    left: 28%;
    width: 410px;
    height: 410px;
    border-radius: 50%;
    border: 80px solid rgba(125,178,205,.55);
    border-left-color: transparent;
    border-bottom-color: transparent;
    transform: rotate(-38deg);
}

.bridge {
    position: absolute;
    bottom: 118px;
    left: 44%;
    width: 170px;
    height: 34px;
    border-top: 7px solid rgba(124,92,55,.32);
    border-radius: 50%;
}

.town {
    position: absolute;
    bottom: 98px;
    width: 128px;
    height: 42px;
    background: linear-gradient(180deg,#f0dfb5,#c4a36a);
    clip-path: polygon(0 100%,0 48%,8% 48%,15% 28%,22% 48%,31% 30%,39% 48%,50% 20%,62% 48%,72% 34%,82% 48%,92% 28%,100% 48%,100% 100%);
    opacity: .85;
}

.t1 {
    left: 6%;
}

.t2 {
    right: 6%;
}

.hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(400px,1fr) 390px;
    gap: 60px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 66px 28px 70px;
    align-items: center;
}

.hero-copy h1 {
    font-family: Georgia,serif;
    font-size: 62px;
    line-height: .95;
    margin: 0 0 22px;
    color: #103466;
    letter-spacing: -2px;
}

.hero-copy h1 span {
    display: inline-block;
    color: #1a7056;
}

.hero-copy h2 {
    max-width: 650px;
    margin: 0 0 16px;
    font-size: 24px;
    line-height: 1.18;
    color: #0b315f;
}

.hero-copy p {
    max-width: 700px;
    font-size: 17px;
    line-height: 1.62;
    color: #173e5d;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 26px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    padding: 14px 24px;
    font-weight: 900;
    border: 1px solid #1c4c75;
    background: #fff;
}

.btn.primary {
    background: #0b4c92;
    color: white;
    border-color: #0b4c92;
    box-shadow: 0 9px 20px rgba(13,79,147,.22);
}

.btn.ghost {
    background: rgba(255,255,255,.9);
    color: #103466;
}

.search-panel {
    background: rgba(255,255,255,.88);
    border: 1px solid rgba(169,190,201,.8);
    border-radius: 24px;
    box-shadow: var(--shadow);
    padding: 26px;
}

.search-panel h3 {
    font-family: Georgia,serif;
    font-size: 24px;
    margin: 0 0 18px;
}

.search-box {
    height: 52px;
    display: flex;
    border: 1px solid #cbd8df;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.search-box input {
    flex: 1;
    border: 0;
    padding: 0 16px;
    font-size: 14px;
    outline: 0;
}

.search-box button {
    width: 56px;
    border: 0;
    background: #fff;
    color: #0b4c92;
    font-size: 23px;
}

.search-panel p {
    font-size: 13px;
    font-weight: 900;
    margin: 22px 0 12px;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.chips a {
    padding: 10px 13px;
    border-radius: 999px;
    background: #eef3f5;
    color: #193e5c;
    font-weight: 800;
    font-size: 12px;
    border: 1px solid #dce6ea;
}

.section {
    max-width: 1180px;
    margin: 0 auto;
    padding: 22px 28px 8px;
}

.section h2 {
    font-family: Georgia,serif;
    font-size: 28px;
    margin: 0 0 16px;
    color: #102f60;
}

.quick-section {
    margin-top: -6px;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(6,1fr);
    gap: 16px;
}

.quick-card {
    min-height: 178px;
    border-radius: 16px;
    padding: 22px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    position: relative;
    background: #fff;
    border: 1px solid #dfe8e9;
    box-shadow: 0 10px 24px rgba(54,92,108,.08);
}

.quick-card .icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,.5);
    font-size: 26px;
    color: #0f4c84;
}

.quick-card strong {
    font-size: 17px;
}

.quick-card small {
    font-size: 13px;
    line-height: 1.35;
    color: #173e5d;
}

.quick-card em {
    position: absolute;
    right: 14px;
    bottom: 14px;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #d9e5e8;
    font-style: normal;
}

.green {
    background: linear-gradient(145deg,#edf6e8,#f8f6ed);
}

.blue {
    background: linear-gradient(145deg,#e7f1fb,#f9fbff);
}

.sand {
    background: linear-gradient(145deg,#fbf0d8,#fffaf0);
}

.teal {
    background: linear-gradient(145deg,#e8f6f5,#f8fbf9);
}

.violet {
    background: linear-gradient(145deg,#f0ecf8,#fbf9fb);
}

.pale {
    background: linear-gradient(145deg,#ecf5fa,#fbfbfa);
}

.programmes-layout {
    display: grid;
    grid-template-columns: 1.05fr 1.05fr .9fr;
    gap: 22px;
    align-items: start;
    padding-top: 16px;
}

.card,
.info-card,
.project-card,
.role-card,
.latest-grid article {
    border: 1px solid #d8e4e7;
    border-radius: 16px;
    background: rgba(255,255,255,.86);
    box-shadow: 0 9px 20px rgba(36,72,93,.06);
}

.programmes-list {
    padding: 20px;
}

.eyebrow {
    margin: 0 0 6px;
    color: #1b705b;
    font-weight: 900;
}

.programme-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.programme-links a {
    display: grid;
    grid-template-columns: 62px 1fr auto;
    grid-template-rows: auto auto;
    column-gap: 12px;
    align-items: center;
    padding: 8px 10px;
    border: 1px solid #dfe8ea;
    border-radius: 10px;
    background: #fff;
}

.programme-links span {
    grid-row: 1/3;
    width: 62px;
    height: 38px;
    border-radius: 7px;
    background: linear-gradient(135deg,#b9d6c1 0 35%,#75a7c4 35% 58%,#f0d59a 58%);
    border: 1px solid #d9e5e8;
}

.programme-links b {
    font-size: 14px;
}

.programme-links small {
    font-size: 12px;
    color: var(--muted);
}

.programme-links em {
    grid-row: 1/3;
    font-size: 26px;
    font-style: normal;
}

.knowledge-column,
.side-column {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.tool-card {
    display: grid;
    grid-template-columns: 134px 1fr;
    gap: 18px;
    padding: 18px;
}

.tool-card h3,
.info-card h3 {
    margin: 0 0 8px;
    font-size: 20px;
    color: #0e4380;
}

.tool-card p,
.info-card p {
    margin: 0 0 12px;
    line-height: 1.48;
    color: #244e68;
}

.tool-card a,
.info-card a,
.section-head a,
.project-card a,
.latest-grid a {
    color: #0b4c92;
    font-weight: 900;
    font-size: 13px;
}

.map-mini {
    height: 116px;
    border-radius: 12px;
    background: radial-gradient(circle at 58% 40%,#2c91a7 0 12%,transparent 13%),radial-gradient(circle at 44% 46%,#7fc18e 0 10%,transparent 11%),radial-gradient(circle at 52% 61%,#c4d69c 0 8%,transparent 9%),linear-gradient(135deg,#e3efe8,#d7e8ec);
}

.network-mini {
    height: 116px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 70px;
    color: #155787;
    background: #f4fbfb;
}

.more-card {
    padding: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(90deg,#fff,#eef8f2);
}

.more-card a {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid #d8e4e7;
    border-radius: 50%;
    font-size: 24px;
}

.info-card {
    padding: 24px;
    min-height: 178px;
}

.blue-soft {
    background: linear-gradient(145deg,#eff8fc,#fff);
}

.green-soft {
    background: linear-gradient(145deg,#f2f8eb,#e6f5f6);
}

.bulgaria-map {
    margin-top: 18px;
    height: 88px;
    border-radius: 12px;
    background: linear-gradient(135deg,#a5d4e4,#8bb982);
    clip-path: polygon(8% 60%,25% 40%,38% 50%,54% 34%,71% 45%,88% 30%,98% 55%,84% 76%,63% 68%,44% 82%,25% 73%);
}

.role-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 16px;
}

.role-card {
    min-height: 134px;
    padding: 20px;
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 10px;
    background: linear-gradient(145deg,#fff,#f5fbf8);
}

.role-illu {
    grid-row: 1/4;
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #e5f0ed;
    color: #1a7056;
    font-size: 30px;
}

.role-card strong {
    font-size: 17px;
}

.role-card small {
    font-size: 13px;
    color: #244e68;
    line-height: 1.4;
}

.role-card em {
    font-size: 13px;
    font-style: normal;
    color: #0b4c92;
    font-weight: 900;
}

.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 14px;
}

.project-card {
    overflow: hidden;
    background: #fff;
}

.project-img {
    height: 105px;
    background-size: cover;
}

.img-bike {
    background: linear-gradient(135deg,#9cc777,#f0d390 50%,#5ea1c0);
}

.img-wind {
    background: linear-gradient(135deg,#d8ebf0,#94c789 50%,#6ba3c0);
}

.img-meeting {
    background: linear-gradient(135deg,#c6d8e0,#766b60 45%,#173e5d);
}

.project-card h3,
.project-card p,
.project-card small,
.project-card a {
    display: block;
    margin-left: 14px;
    margin-right: 14px;
}

.project-card h3 {
    margin-top: 12px;
    margin-bottom: 4px;
    font-size: 16px;
    color: #0e4380;
}

.project-card p {
    margin-top: 0;
    margin-bottom: 4px;
    font-weight: 800;
    font-size: 12px;
}

.project-card small {
    color: #244e68;
    line-height: 1.35;
    margin-bottom: 12px;
}

.project-card a {
    margin-bottom: 15px;
}

.docs-grid {
    display: grid;
    grid-template-columns: repeat(6,1fr);
    gap: 10px;
}

.docs-grid a {
    min-height: 92px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 8px;
    padding: 12px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #d8e4e7;
    font-weight: 800;
    font-size: 13px;
}

.docs-grid a:first-letter {
    font-size: 28px;
    color: #0b4c92;
}

.library-note {
    margin-top: 16px;
    padding: 18px;
    border-radius: 14px;
    background: linear-gradient(90deg,#fbf8ec,#eef8f6);
    border: 1px solid #e0e8e3;
    color: #244e68;
}

.latest-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 16px;
}

.latest-grid article {
    padding: 18px;
    background: #fff;
}

.latest-grid span {
    font-size: 12px;
    color: var(--muted);
}

.latest-grid h3 {
    font-size: 15px;
    line-height: 1.35;
    margin: 8px 0 14px;
}

.site-footer {
    margin-top: 34px;
    background: linear-gradient(180deg,#e8f5f6,#cce8ee);
    border-top: 1px solid #c7dce1;
    padding: 34px 46px 16px;
}

.footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr .8fr .8fr 1.1fr;
    gap: 36px;
}

.footer-inner h4 {
    margin: 0 0 12px;
}

.footer-inner a {
    display: block;
    margin: 7px 0;
    color: #0e4380;
    font-weight: 800;
    font-size: 14px;
}

.footer-inner p {
    color: #244e68;
    line-height: 1.5;
}

.small .brand-mark {
    width: 42px;
    height: 42px;
}

.small .brand-text strong {
    font-size: 18px;
}

.footer-btn {
    display: inline-flex!important;
    margin-top: 10px;
}

.disclaimer {
    max-width: 1180px;
    margin: 24px auto 0;
    padding-top: 14px;
    border-top: 1px solid rgba(15,70,102,.16);
    font-size: 12px;
    color: #355b6c;
    text-align: center;
}

@media (max-width:1100px){
    .main-nav {
        display: none;
    }

    .hero-inner {
        grid-template-columns: 1fr;
    }

    .quick-grid {
        grid-template-columns: repeat(3,1fr);
    }

    .programmes-layout,
    .two-columns {
        grid-template-columns: 1fr;
    }

    .role-grid,
    .latest-grid {
        grid-template-columns: repeat(2,1fr);
    }

    .docs-grid {
        grid-template-columns: repeat(3,1fr);
    }
}

@media (max-width:700px){
    .site-header {
        padding: 0 20px;
    }

    .brand {
        min-width: auto;
    }

    .lang-switch {
        display: none;
    }

    .hero-copy h1 {
        font-size: 46px;
    }

    .hero-inner {
        padding: 44px 20px;
    }

    .quick-grid,
    .role-grid,
    .project-grid,
    .latest-grid {
        grid-template-columns: 1fr;
    }

    .docs-grid {
        grid-template-columns: repeat(2,1fr);
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }

    .site-footer {
        padding: 30px 20px;
    }

    .section {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* =========================================================
   PATCH 01 — Homepage visual refinements
   Bulgaria in Interreg Knowledge Hub
   ========================================================= */
/* 1. По-мек и по-бял header, по-близък до референцията */
.site-header {
    height: 84px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 6px 24px rgba(20, 60, 80, 0.05);
}

.brand-mark {
    background: linear-gradient(145deg, #e9f7ef, #d9eef6);
}

.main-nav a,
.lang-switch {
    color: #082b59;
}

/* 2. По-въздушен hero блок */
.hero {
    min-height: 500px;
    background: linear-gradient(180deg, #eaf7fb 0%, #f9f5e9 78%, #ffffff 100%);
}

.hero-bg {
    background: radial-gradient(circle at 62% 18%, rgba(255,255,255,0.95) 0 13%, transparent 27%),
    linear-gradient(180deg, rgba(202,232,237,0.78), rgba(249,243,222,0.78));
}

.hero-inner {
    padding-top: 72px;
    padding-bottom: 78px;
}

.hero-copy h1 {
    color: #123965;
    text-shadow: 0 2px 0 rgba(255,255,255,0.35);
}

.hero-copy h1 span {
    color: #1b765c;
}

.hero-copy h2 {
    color: #093261;
}

.hero-copy p {
    color: #1d4c68;
}

/* 3. Search panel да е по-светъл и по-мек */
.search-panel {
    background: rgba(255, 255, 255, 0.90);
    border: 1px solid rgba(188, 207, 215, 0.9);
    box-shadow: 0 18px 42px rgba(34, 78, 98, 0.14);
}

.search-box {
    background: #ffffff;
    border: 1px solid #c9d9e1;
}

.search-box input {
    color: #123965;
}

.search-box button {
    background: #ffffff;
    color: #0b4c92;
}

.chips a {
    background: #edf5f7;
    border-color: #d9e7ec;
    color: #173e5d;
}

/* 4. Бърз достъп — по-близо до картите в референцията */
.quick-section {
    padding-top: 28px;
    padding-bottom: 20px;
}

.quick-grid {
    gap: 18px;
}

.quick-card {
    min-height: 184px;
    padding: 24px 18px 22px;
    border-radius: 18px;
    border: 1px solid #dce8ec;
    box-shadow: 0 12px 28px rgba(32, 78, 98, 0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.quick-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 34px rgba(32, 78, 98, 0.13);
}

/* 5. Поправка на иконите — скриваме проблемните символи и ги заменяме с чисти */
.quick-card .icon {
    font-size: 0;
    width: 58px;
    height: 58px;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(170, 196, 205, 0.45);
    box-shadow: inset 0 0 0 5px rgba(255,255,255,0.25);
}

.quick-card .icon::before {
    display: block;
    font-size: 29px;
    line-height: 56px;
    color: #0b4c92;
    font-family: "Segoe UI Symbol", "Arial", sans-serif;
}

.quick-card.green .icon::before {
    content: "▱";
    color: #437f55;
}

.quick-card.blue .icon::before {
    content: "☷";
    color: #346fa3;
}

.quick-card.sand .icon::before {
    content: "◎";
    color: #b17a18;
}

.quick-card.teal .icon::before {
    content: "☑";
    color: #167c8b;
}

.quick-card.violet .icon::before {
    content: "⚖";
    color: #6754a3;
}

.quick-card.pale .icon::before {
    content: "?";
    color: #0b4c92;
    font-weight: 900;
}

.quick-card strong {
    color: #082b59;
    font-size: 17px;
}

.quick-card small {
    color: #244e68;
}

.quick-card em {
    background: #ffffff;
    color: #0b4c92;
    box-shadow: 0 5px 14px rgba(24, 73, 103, 0.10);
}

/* 6. Малко по-ясно разделяне между hero и съдържанието */
.hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 54px;
    background: linear-gradient(180deg, rgba(255,255,255,0) 0%, #ffffff 85%);
    pointer-events: none;
}

/* 7. По-приятни секционни заглавия */
.section h2 {
    color: #123965;
    letter-spacing: -0.3px;
}

/* 8. По-добър mobile fallback */
@media (max-width: 1100px) {
    .hero {
        min-height: auto;
    }

    .hero-inner {
        padding-top: 48px;
    }
}

/* =========================================================
   PATCH 02 — Mid and lower sections refinement
   ========================================================= */
/* Общи секции */
.section {
    padding-top: 28px;
    padding-bottom: 18px;
}

.section h2 {
    font-size: 30px;
    line-height: 1.08;
    margin-bottom: 18px;
}

/* 1. Програми с българско участие */
.programmes-layout {
    grid-template-columns: 1.1fr 1.05fr 0.95fr;
    gap: 18px;
    align-items: start;
}

.programmes-list {
    padding: 22px 18px 18px;
}

.programmes-list h2 {
    margin-bottom: 16px;
}

.programme-links {
    gap: 8px;
}

.programme-links a {
    min-height: 58px;
    padding: 10px 12px;
    border-radius: 12px;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.programme-links a:hover {
    transform: translateY(-2px);
    border-color: #bfd3da;
    box-shadow: 0 10px 20px rgba(32, 78, 98, 0.08);
}

.programme-links b {
    color: #103466;
    font-size: 14px;
}

.programme-links small {
    color: #647b89;
}

.programme-links em {
    color: #0b4c92;
    font-size: 24px;
}

/* 2. Карти ESPON / INTERACT / Какво е Interreg / Карта */
.tool-card,
.info-card,
.more-card {
    border-radius: 18px;
}

.tool-card {
    padding: 18px;
    grid-template-columns: 116px 1fr;
    align-items: center;
}

.tool-card h3,
.info-card h3 {
    font-size: 18px;
    line-height: 1.15;
    color: #103466;
}

.tool-card p,
.info-card p {
    font-size: 15px;
    line-height: 1.45;
}

.map-mini,
.network-mini {
    height: 102px;
    border-radius: 14px;
}

.more-card {
    min-height: 72px;
    font-weight: 800;
    color: #103466;
    border: 1px solid #dce8e9;
}

/* 3. Информация според това, което правите */
.role-grid {
    gap: 14px;
}

.role-card {
    min-height: 152px;
    border-radius: 18px;
    padding: 18px 16px;
    grid-template-columns: 50px 1fr;
    align-items: start;
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.role-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(32, 78, 98, 0.10);
}

.role-illu {
    width: 50px;
    height: 50px;
    font-size: 24px;
}

.role-card strong {
    font-size: 16px;
    color: #103466;
}

.role-card small {
    font-size: 14px;
    line-height: 1.45;
}

.role-card em {
    margin-top: 4px;
    display: inline-block;
}

/* 4. Секция Проекти + Документи */
.two-columns {
    grid-template-columns: 0.95fr 1.55fr;
    gap: 24px;
    align-items: start;
}

.section-head {
    margin-bottom: 14px;
}

.section-head a {
    font-size: 14px;
}

.project-grid {
    gap: 14px;
}

.project-card {
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(36, 72, 93, 0.07);
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.project-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(36, 72, 93, 0.11);
}

.project-img {
    height: 120px;
}

.project-card h3 {
    font-size: 18px;
    line-height: 1.15;
    color: #103466;
}

.project-card p {
    font-size: 13px;
    color: #103466;
}

.project-card small {
    font-size: 13px;
    line-height: 1.4;
}

/* Документи */
.docs-grid {
    gap: 12px;
}

.docs-grid a {
    min-height: 96px;
    border-radius: 14px;
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.docs-grid a:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(36, 72, 93, 0.08);
}

.library-note {
    border-radius: 16px;
    font-size: 15px;
    line-height: 1.45;
}

/* 5. Последно добавено */
.latest-grid {
    gap: 14px;
}

.latest-grid article {
    min-height: 158px;
    border-radius: 18px;
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.latest-grid article:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(36, 72, 93, 0.09);
}

.latest-grid h3 {
    font-size: 16px;
    line-height: 1.4;
    color: #103466;
}

/* 6. Footer */
.site-footer {
    margin-top: 38px;
    background: linear-gradient(180deg, #eaf7f8 0%, #d8eef2 100%);
    padding-top: 36px;
}

.footer-inner {
    gap: 28px;
}

.footer-inner h4 {
    color: #103466;
    font-size: 18px;
}

.footer-inner p {
    font-size: 15px;
    line-height: 1.55;
}

.footer-inner a {
    font-size: 15px;
}

.footer-btn {
    border-radius: 12px;
    padding: 12px 18px;
}

.disclaimer {
    font-size: 12px;
    line-height: 1.45;
}

/* 7. Responsive финално */
@media (max-width: 1100px) {
    .programmes-layout {
        grid-template-columns: 1fr;
    }

    .two-columns {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .section h2 {
        font-size: 26px;
    }

    .tool-card {
        grid-template-columns: 1fr;
    }

    .project-img {
        height: 140px;
    }
}

/* =========================================================
   PATCH 03 — Final homepage polish
   ========================================================= */
/* 1. Малко по-широка работна площ, за да не се свиват картите */
.section {
    max-width: 1240px;
}

/* 2. По-добър баланс в секцията с програми */
.programmes-layout {
    grid-template-columns: 1.05fr 1.05fr 0.95fr;
    gap: 22px;
}

.programmes-list {
    box-shadow: 0 14px 30px rgba(36, 72, 93, 0.07);
}

.programme-links a {
    grid-template-columns: 66px 1fr auto;
}

.programme-links span {
    width: 66px;
    height: 40px;
}

/* 3. Ролите — малко по-топло knowledge hub усещане */
.role-card {
    background: radial-gradient(circle at 18% 18%, rgba(220, 242, 234, 0.75), transparent 32%),
    linear-gradient(145deg, #ffffff, #f7fbf8);
}

.role-illu {
    background: #e4f2ed;
    border: 1px solid #cfe5dd;
}

/* 4. Проекти + документи — повече място за проектните карти */
.two-columns {
    grid-template-columns: 1.18fr 1.32fr;
    gap: 34px;
}

.project-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.project-card {
    min-width: 0;
}

.project-img {
    height: 112px;
}

.project-card h3 {
    font-size: 17px;
    line-height: 1.15;
}

.project-card p {
    font-size: 12px;
    line-height: 1.25;
}

.project-card small {
    font-size: 13px;
    line-height: 1.35;
}

/* По-живи project image placeholders */
.img-bike {
    background: linear-gradient(135deg, rgba(255,255,255,0.18), transparent 45%),
    linear-gradient(135deg, #a9c96e 0%, #ead68b 48%, #64a8c2 100%);
}

.img-wind {
    background: linear-gradient(135deg, rgba(255,255,255,0.18), transparent 45%),
    linear-gradient(135deg, #d7edf0 0%, #92c987 52%, #6aa6bf 100%);
}

.img-meeting {
    background: linear-gradient(135deg, rgba(255,255,255,0.18), transparent 45%),
    linear-gradient(135deg, #d5d8d2 0%, #8a8172 42%, #173e5d 100%);
}

/* 5. Документни карти — по-ясни икони */
.docs-grid a {
    position: relative;
    padding-top: 34px;
}

.docs-grid a::before {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 22px;
    line-height: 1;
    color: #0b4c92;
    font-weight: 900;
}

.docs-grid a:nth-child(1)::before {
    content: "▤";
}

.docs-grid a:nth-child(2)::before {
    content: "▦";
}

.docs-grid a:nth-child(3)::before {
    content: "◫";
}

.docs-grid a:nth-child(4)::before {
    content: "▥";
}

.docs-grid a:nth-child(5)::before {
    content: "□";
}

.docs-grid a:nth-child(6)::before {
    content: "◎";
}

.docs-grid a:first-letter {
    font-size: inherit;
}

/* 6. Последно добавено — по-добър ритъм */
.latest-grid article {
    background: linear-gradient(180deg, #ffffff 0%, #fbfdfc 100%);
}

.latest-grid span {
    display: inline-block;
    margin-bottom: 6px;
}

/* 7. Footer — по-завършен знак */
.site-footer .brand-mark {
    position: relative;
    background: linear-gradient(145deg, #e9f7ef, #d8eef6);
    border: 1px solid #bddce4;
}

.site-footer .brand-mark::before {
    content: "";
    width: 26px;
    height: 16px;
    display: block;
    border-radius: 60% 40% 60% 40%;
    background: linear-gradient(135deg, #6aac70, #2c8aa6);
    transform: rotate(-18deg);
}

/* 8. Малко повече въздух преди footer */
.site-footer {
    margin-top: 52px;
}

/* 9. Responsive */
@media (max-width: 1100px) {
    .two-columns {
        grid-template-columns: 1fr;
    }

    .project-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 800px) {
    .project-grid {
        grid-template-columns: 1fr;
    }

    .docs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =========================================================
   PATCH 04 — Clean document cards and final lower polish
   ========================================================= */
/* 1. Документни карти — премахване на дублирани символи */
.docs-grid a {
    position: relative;
    min-height: 104px;
    padding: 40px 10px 14px;
    font-size: 13px;
    line-height: 1.2;
}

.docs-grid a span {
    display: block;
    color: #082b59;
    font-weight: 900;
}

.docs-grid a::before {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 24px;
    line-height: 1;
    color: #0b4c92;
    font-weight: 900;
}

.docs-grid .doc-programmes::before {
    content: "▤";
}

.docs-grid .doc-manuals::before {
    content: "▦";
}

.docs-grid .doc-eligibility::before {
    content: "◫";
}

.docs-grid .doc-national::before {
    content: "▥";
}

.docs-grid .doc-forms::before {
    content: "□";
}

.docs-grid .doc-sites::before {
    content: "◎";
}

/* 2. Проектните карти да не изглеждат толкова тесни */
.project-card {
    min-height: 320px;
}

.project-card h3 {
    margin-top: 14px;
    margin-bottom: 8px;
}

.project-card a {
    margin-top: 10px;
}

/* 3. По-добро разстояние между Проекти/Документи и Последно добавено */
.two-columns {
    margin-bottom: 34px;
}

.latest-grid article {
    min-height: 150px;
}

/* 4. Footer да започва малко по-плавно */
.site-footer {
    border-top: 1px solid #bfdde4;
    background: linear-gradient(180deg, #e9f7f8 0%, #d7eef2 100%);
}

.footer-inner {
    align-items: start;
}

/* =========================================================
   PATCH 05 — Minor cleanup for documents area
   ========================================================= */
/* Да не се чупи "Виж библиотеката" */
.section-head a,
.two-columns .section-head a {
    white-space: nowrap;
}

/* Документните карти да изглеждат малко по-меки */
.docs-grid a {
    background: linear-gradient(180deg, #ffffff 0%, #fbfdfc 100%);
    border-color: #d9e7ec;
    box-shadow: 0 8px 18px rgba(36, 72, 93, 0.05);
}

.docs-grid a::before {
    font-size: 21px;
    opacity: 0.92;
}

/* Премахване на празната кутийка вдясно в library note, ако идва от празен елемент */
.library-note > *:empty {
    display: none !important;
}

.library-note {
    display: block;
    padding: 20px 22px;
    min-height: auto;
}

/* Леко по-добро подравняване на Проекти и Документи */
.two-columns .section-head {
    align-items: flex-start;
}

.two-columns .section-head h2 {
    margin-bottom: 0;
}

/* Проектните карти да са малко по-стабилни */
.project-card {
    min-height: 300px;
}

.project-card a {
    display: inline-block;
    margin-top: 8px;
}

/* =========================================================
   PATCH 06 — Programme list left alignment
   ========================================================= */
.programme-links a {
    grid-template-columns: 66px 1fr 24px;
    column-gap: 12px;
    text-align: left;
}

.programme-links span {
    grid-column: 1;
    grid-row: 1 / 3;
    justify-self: start;
}

.programme-links b {
    grid-column: 2;
    grid-row: 1;
    justify-self: start;
    text-align: left;
    display: block;
    width: 100%;
    line-height: 1.15;
}

.programme-links small {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
    text-align: left;
    display: block;
    width: 100%;
}

.programme-links em {
    grid-column: 3;
    grid-row: 1 / 3;
    justify-self: end;
    align-self: center;
}

/* =========================================================
   PATCH 07 — Softer programme list arrows
   ========================================================= */
.programme-links em {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #ffffff;
    border: 1px solid #d9e7ec;
    color: #0b4c92;
    font-size: 22px;
    box-shadow: 0 5px 12px rgba(36, 72, 93, 0.06);
}

.programme-links a:hover em {
    background: #eef7f8;
    border-color: #bdd9e2;
}

/* =========================================================
   PATCH 08 — Programme page base layout
   ========================================================= */
.programme-page {
    background: linear-gradient(180deg, #f8fcfc 0%, #fffdf7 45%, #f2f8f5 100%);
    color: #072756;
}

.programme-hero {
    position: relative;
    overflow: hidden;
    min-height: 640px;
    background: linear-gradient(180deg, #eaf7fb 0%, #f8f4e8 82%, #ffffff 100%);
}

.programme-hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 20%, rgba(255,255,255,0.85) 0 12%, transparent 28%),
    linear-gradient(120deg, rgba(255,255,255,0.96) 0%, rgba(255,255,255,0.78) 42%, rgba(98,158,154,0.35) 43%, rgba(41,119,131,0.42) 100%),
    linear-gradient(135deg, #d9eef0 0%, #f7f1df 100%);
}

.programme-hero-bg::before {
    content: "";
    position: absolute;
    left: -8%;
    right: -8%;
    bottom: 0;
    height: 260px;
    background: linear-gradient(135deg, #d9e9d4, #6fa78d);
    clip-path: polygon(0 75%, 15% 42%, 31% 58%, 46% 30%, 62% 62%, 80% 40%, 100% 62%, 100% 100%, 0 100%);
    opacity: 0.65;
}

.programme-hero-bg::after {
    content: "";
    position: absolute;
    left: 45%;
    bottom: -120px;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    border: 90px solid rgba(102, 165, 190, 0.38);
    border-left-color: transparent;
    border-bottom-color: transparent;
    transform: rotate(-35deg);
}

.programme-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1240px;
    margin: 0 auto;
    padding: 34px 28px 76px;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 46px;
    font-size: 14px;
    color: #5f7482;
}

.breadcrumbs a {
    color: #5f7482;
    font-weight: 700;
}

.breadcrumbs strong {
    color: #08746f;
}

.programme-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 56px;
    align-items: center;
}

.programme-hero-copy {
    max-width: 760px;
}

.programme-hero-copy h1 {
    font-family: Georgia, serif;
    font-size: 56px;
    line-height: 0.98;
    margin: 0 0 22px;
    color: #082b59;
    letter-spacing: -1.5px;
}

.programme-hero-copy h2 {
    margin: 0 0 24px;
    max-width: 760px;
    font-size: 25px;
    line-height: 1.28;
    color: #086a68;
}

.programme-hero-copy p {
    max-width: 690px;
    font-size: 17px;
    line-height: 1.62;
    color: #173e5d;
}

.programme-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 34px;
}

.programme-action {
    min-height: 86px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px;
    border-radius: 16px;
    border: 1px solid #d8e5e8;
    background: rgba(255,255,255,0.88);
    box-shadow: 0 12px 26px rgba(36,72,93,0.08);
    font-weight: 900;
    color: #082b59;
}

.programme-action span {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #d8e5e8;
    font-size: 22px;
}

.programme-side-card {
    background: rgba(255,255,255,0.92);
    border: 1px solid #d8e5e8;
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 18px 42px rgba(36,72,93,0.15);
}

.programme-side-card h3 {
    font-family: Georgia, serif;
    font-size: 28px;
    line-height: 1.1;
    margin: 18px 0 18px;
    color: #082b59;
}

.programme-side-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.programme-side-card li {
    margin: 12px 0;
    font-weight: 800;
    color: #244e68;
}

.programme-side-card li::before {
    content: "✓";
    color: #08746f;
    margin-right: 10px;
}

.mini-river {
    height: 72px;
    border-radius: 18px;
    background: radial-gradient(circle at 44% 30%, #e9a313 0 7%, transparent 8%),
    linear-gradient(135deg, transparent 35%, rgba(0,128,128,0.18) 36% 44%, transparent 45%),
    linear-gradient(160deg, #e8f5f0, #f9f6e9);
}

.programme-section {
    max-width: 1240px;
    margin: 0 auto;
    padding: 64px 28px 26px;
}

.section-title {
    max-width: 800px;
    margin-bottom: 30px;
}

.section-title.center {
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-title h2 {
    font-family: Georgia, serif;
    font-size: 40px;
    line-height: 1.05;
    margin: 0 0 16px;
    color: #082b59;
}

.section-title p {
    font-size: 17px;
    line-height: 1.55;
    color: #244e68;
}

/* =========================================================
   PATCH 09 — Danube programme page sections
   ========================================================= */
.intent-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.intent-card,
.overview-card,
.topic-card,
.document-grid a {
    border: 1px solid #d8e5e8;
    border-radius: 18px;
    background: rgba(255,255,255,0.9);
    box-shadow: 0 10px 24px rgba(36,72,93,0.07);
}

.intent-card {
    min-height: 190px;
    padding: 24px;
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 12px 18px;
    align-items: start;
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.intent-card:hover,
.overview-card:hover,
.topic-card:hover,
.document-grid a:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(36,72,93,0.11);
}

.intent-icon {
    grid-row: 1 / 3;
    display: grid;
    place-items: center;
    width: 66px;
    height: 66px;
    border-radius: 50%;
    background: #e7f3ef;
    color: #08746f;
    font-size: 30px;
    font-weight: 900;
}

.intent-card strong {
    font-size: 19px;
    color: #082b59;
}

.intent-card small {
    font-size: 15px;
    line-height: 1.45;
    color: #244e68;
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.overview-card {
    min-height: 210px;
    padding: 24px;
}

.overview-card span {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #e7f3ef;
    color: #08746f;
    font-weight: 900;
    margin-bottom: 18px;
}

.overview-card h3 {
    margin: 0 0 12px;
    font-size: 20px;
    color: #082b59;
}

.overview-card p {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
    color: #244e68;
}

.cost-grid,
.control-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.topic-card {
    min-height: 260px;
    padding: 24px;
    background: linear-gradient(145deg, #ffffff, #f8fcfb);
}

.topic-icon {
    display: grid;
    place-items: center;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: #e7f3ef;
    color: #08746f;
    font-size: 30px;
    margin-bottom: 18px;
}

.topic-card h3 {
    margin: 0 0 8px;
    font-size: 22px;
    line-height: 1.15;
    color: #082b59;
}

.topic-card strong {
    display: block;
    margin-bottom: 12px;
    color: #08746f;
    font-size: 17px;
}

.topic-card p {
    margin: 0 0 18px;
    font-size: 16px;
    line-height: 1.5;
    color: #244e68;
}

.topic-card a {
    font-weight: 900;
    color: #08746f;
}

.checklist-band {
    margin-top: 22px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 28px;
    align-items: center;
    padding: 28px;
    border-radius: 20px;
    border: 1px solid #cfe3df;
    background: linear-gradient(135deg, #f4fbf8, #fffaf0);
    box-shadow: 0 10px 24px rgba(36,72,93,0.06);
}

.checklist-band h3 {
    margin: 0 0 8px;
    font-size: 24px;
    color: #08746f;
}

.checklist-band p {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
    color: #244e68;
}

.document-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.document-grid a {
    min-height: 190px;
    padding: 24px;
    display: block;
}

.document-grid a span {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #e7f3ef;
    color: #08746f;
    font-size: 30px;
    margin-bottom: 18px;
}

.document-grid a strong {
    display: block;
    margin-bottom: 10px;
    font-size: 19px;
    line-height: 1.2;
    color: #082b59;
}

.document-grid a small {
    display: block;
    font-size: 15px;
    line-height: 1.45;
    color: #244e68;
}

.programme-projects {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.programme-projects .project-card {
    min-height: 340px;
}

.programme-projects .project-img {
    height: 150px;
}

.danube-page .green {
    background: linear-gradient(145deg, #eef8ec, #ffffff);
}

.danube-page .blue {
    background: linear-gradient(145deg, #edf7fb, #ffffff);
}

.danube-page .sand {
    background: linear-gradient(145deg, #fff5dd, #ffffff);
}

.danube-page .teal {
    background: linear-gradient(145deg, #e9f8f6, #ffffff);
}

.danube-page .violet {
    background: linear-gradient(145deg, #f3effb, #ffffff);
}

@media (max-width: 1100px) {
    .programme-hero-grid,
    .programme-actions,
    .intent-grid,
    .overview-grid,
    .cost-grid,
    .control-grid,
    .document-grid,
    .programme-projects {
        grid-template-columns: 1fr;
    }

    .programme-side-card {
        max-width: 520px;
    }
}

@media (max-width: 700px) {
    .programme-hero-copy h1 {
        font-size: 40px;
    }

    .programme-hero-copy h2 {
        font-size: 21px;
    }

    .programme-section {
        padding-left: 20px;
        padding-right: 20px;
    }

    .section-title h2 {
        font-size: 32px;
    }

    .checklist-band {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   PATCH 10 — Danube start subpage
   ========================================================= */
.start-page {
    padding-top: 42px;
    min-height: calc(100vh - 86px);
}

.start-page .breadcrumbs {
    margin-bottom: 42px;
}

.start-page .section-title {
    margin-bottom: 34px;
}

.start-page .intent-grid {
    margin-bottom: 34px;
}

.start-band {
    margin-top: 34px;
}

/* =========================================================
   PATCH 11 — Master homepage only
   Цел: knowledge hub усещане + без хоризонтално/вътрешно скролване
   ========================================================= */
/* 0. Без нежелано хоризонтално скролване на master homepage */
html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.home-page main,
.home-page .hero,
.home-page .section,
.home-page .site-footer {
    overflow-x: clip;
}

/* 1. Header — по-лек, да не натиска hero секцията */
.home-page .site-header {
    height: 78px;
    padding: 0 clamp(22px, 4vw, 46px);
    gap: 22px;
    background: rgba(255,255,255,0.94);
}

.home-page .brand {
    min-width: 220px;
}

.home-page .brand-mark {
    width: 46px;
    height: 46px;
}

.home-page .brand-text strong {
    font-size: 19px;
}

.home-page .main-nav {
    gap: clamp(14px, 2vw, 26px);
    font-size: 14px;
}

/* 2. Hero — master page като вход към knowledge hub */
.home-page .master-hero {
    min-height: min(720px, calc(100svh - 78px));
    display: grid;
    align-items: center;
    background: linear-gradient(180deg, #e9f7fb 0%, #f7f3e5 76%, #ffffff 100%);
}

.home-page .master-hero-inner {
    width: 100%;
    max-width: 1240px;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 385px);
    gap: clamp(32px, 5vw, 64px);
    padding: clamp(42px, 6vw, 72px) 28px clamp(54px, 7vw, 84px);
}

.home-page .hero-bg {
    background: radial-gradient(circle at 66% 18%, rgba(255,255,255,0.88) 0 11%, transparent 26%),
    linear-gradient(125deg, rgba(255,255,255,0.62) 0%, rgba(255,255,255,0.32) 46%, rgba(58,141,147,0.18) 47%, rgba(32,114,136,0.28) 100%),
    linear-gradient(180deg, rgba(206,235,239,0.82), rgba(249,241,216,0.82));
}

.home-page .hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    width: fit-content;
    max-width: 100%;
    margin: 0 0 16px;
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.76);
    border: 1px solid rgba(194,216,221,0.85);
    color: #08746f;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.02em;
}

.home-page .hero-kicker::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #1b765c;
    box-shadow: 0 0 0 5px rgba(27,118,92,0.12);
}

.home-page .master-hero-copy h1 {
    max-width: 760px;
    font-size: clamp(48px, 5.4vw, 70px);
    line-height: 0.94;
    margin-bottom: 20px;
    color: #082b59;
}

.home-page .master-hero-copy h1 span {
    color: #08746f;
}

.home-page .master-hero-copy h2 {
    max-width: 690px;
    font-size: clamp(21px, 2.1vw, 27px);
    line-height: 1.22;
    color: #103466;
}

.home-page .master-hero-copy p:not(.hero-kicker) {
    max-width: 700px;
    font-size: 17px;
    line-height: 1.6;
    color: #244e68;
}

.home-page .hero-actions {
    gap: 12px;
}

.home-page .btn {
    border-radius: 999px;
    padding: 13px 21px;
}

.home-page .btn.soft {
    background: rgba(255,255,255,0.72);
    color: #08746f;
    border-color: #c8dedb;
}

/* 3. Finder панел — без вътрешно скролване, по-практичен */
.home-page .hub-finder {
    max-height: none;
    overflow: visible;
    border-radius: 26px;
    padding: 24px;
    background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(255,255,255,0.82));
    border: 1px solid rgba(198,216,222,0.9);
    box-shadow: 0 22px 50px rgba(32,78,98,0.16);
}

.home-page .hub-finder h3 {
    color: #082b59;
}

.home-page .hub-finder .chips {
    gap: 8px;
}

.home-page .hub-finder .chips a {
    background: #edf7f5;
    border-color: #d2e7e2;
    color: #0b4c92;
}

.home-page .hub-note {
    margin-top: 18px;
    padding: 14px;
    border-radius: 16px;
    background: #fff8e7;
    border: 1px solid #ead9ad;
    color: #5d4b20;
    font-size: 13px;
    line-height: 1.45;
    font-weight: 700;
}

/* 4. Малки pin елементи в hero — knowledge map, без снимки */
.home-page .hub-pin {
    position: absolute;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #ffffff;
    border: 4px solid #08746f;
    box-shadow: 0 8px 18px rgba(21,78,98,0.16);
}

.home-page .hub-pin::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 52px;
    height: 1px;
    background: rgba(8,116,111,0.28);
    transform-origin: left center;
}

.home-page .hub-pin.p1 {
    left: 58%;
    top: 42%;
}

.home-page .hub-pin.p1::after {
    transform: rotate(22deg);
}

.home-page .hub-pin.p2 {
    left: 72%;
    top: 55%;
    border-color: #2c8aa6;
}

.home-page .hub-pin.p2::after {
    transform: rotate(-18deg);
}

.home-page .hub-pin.p3 {
    left: 46%;
    top: 62%;
    border-color: #8bb982;
}

.home-page .hub-pin.p3::after {
    transform: rotate(12deg);
}

/* 5. Quick cards — по-малко dashboard, повече hub */
.home-page .quick-section {
    margin-top: 0;
    padding-top: 34px;
}

.home-page .quick-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
}

.home-page .quick-card {
    min-width: 0;
    min-height: 170px;
    border-radius: 22px;
    background: radial-gradient(circle at 24% 18%, rgba(255,255,255,0.82), transparent 36%),
    linear-gradient(145deg, #ffffff, #f5fbf8);
    box-shadow: 0 12px 28px rgba(36,72,93,0.07);
}

.home-page .quick-card .icon {
    background: rgba(255,255,255,0.72);
}

/* 6. Програмни блокове — по-живи mini-landscape карти */
.home-page .programmes-layout {
    max-width: 1240px;
    grid-template-columns: minmax(420px, 1.18fr) minmax(300px, 0.95fr) minmax(260px, 0.8fr);
    gap: 22px;
}

.home-page .programmes-list,
.home-page .hub-tool-card,
.home-page .info-card,
.home-page .more-card {
    border-radius: 24px;
}

.home-page .master-programme-links a {
    min-width: 0;
    min-height: 62px;
    grid-template-columns: 74px minmax(0, 1fr) 30px;
    padding: 10px 12px;
    border-radius: 16px;
    background: rgba(255,255,255,0.92);
}

.home-page .master-programme-links b {
    font-size: 15px;
}

.home-page .master-programme-links small {
    font-size: 12px;
}

.home-page .programme-thumb {
    width: 74px;
    height: 44px;
    border-radius: 13px;
    overflow: hidden;
    border: 1px solid #d1e0e4;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.5);
}

.home-page .thumb-mountains {
    background: linear-gradient(135deg, #dcecd8 0 35%, #7fb08a 36% 66%, #f1d28b 67%);
}

.home-page .thumb-lake {
    background: radial-gradient(circle at 68% 32%, #f7df93 0 10%, transparent 11%), linear-gradient(135deg, #b9d8c9 0 45%, #6aa7bf 46% 70%, #efe0b3 71%);
}

.home-page .thumb-border {
    background: linear-gradient(135deg, #e4e0c4 0 34%, #87b279 35% 58%, #6ba5bb 59%);
}

.home-page .thumb-south {
    background: linear-gradient(135deg, #f1dd9d 0 35%, #b9c98e 36% 58%, #7cb7c8 59%);
}

.home-page .thumb-danube {
    background: linear-gradient(145deg, #e5f1ea 0 38%, #61a8c2 39% 55%, #f2d892 56%);
}

.home-page .thumb-river {
    background: radial-gradient(circle at 25% 35%, #ffffff 0 9%, transparent 10%), linear-gradient(130deg, #cfe8df 0 35%, #4e9dbb 36% 54%, #e7ce82 55%);
}

.home-page .thumb-med {
    background: linear-gradient(135deg, #f4e1ad 0 32%, #86c1be 33% 62%, #5c9fb6 63%);
}

.home-page .thumb-sea {
    background: linear-gradient(135deg, #e9f5f2 0 22%, #5fa8c5 23% 70%, #ead08c 71%);
}

.home-page .thumb-europe {
    background: linear-gradient(135deg, #e8edf6 0 30%, #88a9cf 31% 54%, #f0d78e 55%);
}

.home-page .thumb-city {
    background: linear-gradient(180deg, #eaf3f6 0 44%, #8db9aa 45% 70%, #e6cf8e 71%);
}

/* 7. Role, project и document cards */
.home-page .role-card,
.home-page .project-card,
.home-page .latest-grid article,
.home-page .docs-grid a {
    border-radius: 22px;
}

.home-page .role-card {
    min-width: 0;
    background: radial-gradient(circle at 16% 18%, rgba(231,246,240,0.92), transparent 34%),
    linear-gradient(145deg, #ffffff, #f8fcfa);
}

.home-page .two-columns {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.35fr);
    gap: 30px;
}

.home-page .project-grid,
.home-page .docs-grid,
.home-page .latest-grid {
    min-width: 0;
}

.home-page .docs-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-page .docs-grid a {
    min-height: 110px;
    background: radial-gradient(circle at 50% 18%, rgba(231,246,240,0.75), transparent 30%),
    linear-gradient(180deg, #ffffff, #fbfdfc);
}

.home-page .library-note {
    border-radius: 20px;
    background: linear-gradient(135deg, #fff8e7, #edf8f5);
}

/* 8. Footer — hub footer, не официална програма */
.home-page .site-footer {
    margin-top: 58px;
    padding-top: 42px;
    background: radial-gradient(circle at 12% 20%, rgba(255,255,255,0.55), transparent 24%),
    linear-gradient(180deg, #e9f7f8 0%, #d4ecf0 100%);
}

.home-page .footer-inner {
    max-width: 1240px;
    grid-template-columns: minmax(280px, 1.5fr) minmax(150px, 0.75fr) minmax(150px, 0.75fr) minmax(230px, 1fr);
}

.home-page .disclaimer {
    max-width: 1240px;
    color: #244e68;
}

/* 9. Responsive: без страничен scroll при tablet/mobile */
@media (max-width: 1180px) {
    .home-page .main-nav {
        display: none;
    }

    .home-page .master-hero {
        min-height: auto;
    }

    .home-page .master-hero-inner,
    .home-page .programmes-layout,
    .home-page .two-columns {
        grid-template-columns: 1fr;
    }

    .home-page .hub-finder {
        max-width: 620px;
    }

    .home-page .quick-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .home-page .project-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .home-page .site-header {
        height: 74px;
        padding: 0 18px;
    }

    .home-page .brand {
        min-width: 0;
    }

    .home-page .brand-text strong {
        font-size: 17px;
    }

    .home-page .master-hero-inner,
    .home-page .section {
        padding-left: 20px;
        padding-right: 20px;
    }

    .home-page .master-hero-copy h1 {
        font-size: 40px;
    }

    .home-page .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .home-page .quick-grid,
    .home-page .role-grid,
    .home-page .project-grid,
    .home-page .latest-grid,
    .home-page .docs-grid {
        grid-template-columns: 1fr;
    }

    .home-page .master-programme-links a {
        grid-template-columns: 64px minmax(0, 1fr) 28px;
    }

    .home-page .programme-thumb {
        width: 64px;
    }

    .home-page .footer-inner {
        grid-template-columns: 1fr;
    }
}

/* PATCH 12 — Lean master homepage + top-level navigation pages */
.home-page.master-landing main {
    background: radial-gradient(circle at 18% 20%, rgba(231, 246, 240, 0.55), transparent 28%),
    linear-gradient(180deg, #fbfbf6 0%, #f7fbf8 100%);
}

.home-page.master-landing .master-hero {
    min-height: calc(100vh - 86px);
    margin-bottom: 0;
}

.home-page.master-landing .homepage-roles {
    max-width: 1240px;
    padding-top: 54px;
    padding-bottom: 62px;
}

.home-page.master-landing .homepage-roles h2 {
    max-width: 820px;
}

.home-page.master-landing .role-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-page.master-landing .role-card {
    min-height: 190px;
}

.home-page.master-landing .site-footer {
    margin-top: 0;
}

.content-page main {
    min-height: 64vh;
    background: radial-gradient(circle at 16% 14%, rgba(231, 246, 240, 0.65), transparent 28%),
    linear-gradient(180deg, #fbfbf6 0%, #f6fbf8 100%);
}

.content-page .page-hero {
    max-width: 1240px;
    margin: 0 auto;
    padding: 92px 40px 42px;
}

.content-page .page-hero .hero-kicker {
    display: inline-flex;
    margin-bottom: 16px;
}

.content-page .page-hero h1 {
    max-width: 780px;
    margin: 0 0 18px;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(40px, 5vw, 70px);
    line-height: 0.94;
    color: #073260;
    letter-spacing: -0.04em;
}

.content-page .page-hero p {
    max-width: 760px;
    margin: 0;
    color: #1d4b68;
    font-size: 20px;
    line-height: 1.55;
}

.content-page .placeholder-section {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 40px 78px;
}

.content-page .placeholder-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    padding: 32px;
    border: 1px solid #d6e6e7;
    border-radius: 28px;
    background: radial-gradient(circle at 86% 14%, rgba(232, 247, 241, 0.82), transparent 28%),
    linear-gradient(145deg, #ffffff, #f7fcfa);
    box-shadow: 0 18px 42px rgba(26, 78, 90, 0.08);
}

.content-page .placeholder-card h2 {
    margin: 0 0 10px;
    color: #073260;
    font-size: 28px;
}

.content-page .placeholder-card p {
    margin: 0;
    color: #1d4b68;
    font-size: 18px;
    line-height: 1.55;
}

.content-page .placeholder-card .btn {
    white-space: nowrap;
}

@media (max-width: 1180px) {
    .home-page.master-landing .role-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .home-page.master-landing .master-hero {
        min-height: auto;
    }

    .home-page.master-landing .role-grid,
    .content-page .placeholder-card {
        grid-template-columns: 1fr;
    }

    .content-page .page-hero,
    .content-page .placeholder-section {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* PATCH 13 — Programmes overview page */
.programmes-page {
    background: radial-gradient(circle at 18% 8%, rgba(193, 229, 221, 0.55), transparent 34rem),
    radial-gradient(circle at 88% 18%, rgba(225, 241, 238, 0.9), transparent 32rem),
    linear-gradient(180deg, #fbfcf8 0%, #f6fbf7 48%, #edf8f6 100%);
}

.programmes-page .main-nav a.is-active {
    color: #007a70;
}

.programmes-hero {
    max-width: 1480px;
    margin: 0 auto;
    padding: 120px 56px 72px;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) 420px;
    gap: 44px;
    align-items: stretch;
}

.programmes-hero-copy {
    position: relative;
    min-height: 390px;
    padding: 58px 64px;
    border: 1px solid rgba(155, 199, 196, 0.55);
    border-radius: 36px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255,255,255,0.92), rgba(239,248,245,0.86)),
    radial-gradient(circle at 86% 18%, rgba(122, 189, 178, 0.28), transparent 22rem);
    box-shadow: 0 28px 70px rgba(21, 79, 98, 0.12);
}

.programmes-hero-copy::before,
.programmes-hero-copy::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    pointer-events: none;
}

.programmes-hero-copy::before {
    bottom: 0;
    height: 120px;
    background: linear-gradient(165deg, transparent 0 34%, rgba(112, 168, 131, 0.22) 35% 56%, transparent 57%),
    linear-gradient(12deg, rgba(34, 128, 136, 0.18) 0 42%, transparent 43%);
}

.programmes-hero-copy::after {
    width: 300px;
    height: 300px;
    right: 10%;
    left: auto;
    bottom: -135px;
    border-radius: 50%;
    border: 46px solid rgba(58, 153, 176, 0.20);
}

.programmes-hero-copy > * {
    position: relative;
    z-index: 1;
}

.programmes-hero-copy h1 {
    max-width: 920px;
    margin: 14px 0 22px;
    color: #073466;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3rem, 5vw, 5rem);
    line-height: 0.95;
    letter-spacing: -0.055em;
}

.programmes-hero-copy p:not(.hero-kicker) {
    max-width: 760px;
    color: #244f68;
    font-size: 1.18rem;
    line-height: 1.65;
}

.programme-filter-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.programme-filter-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid rgba(5, 96, 143, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    color: #004b8d;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 12px 25px rgba(21, 79, 98, 0.06);
}

.programme-filter-links a:hover {
    transform: translateY(-2px);
    background: #ffffff;
    border-color: rgba(0, 122, 112, 0.38);
}

.programmes-guide-card {
    padding: 36px;
    border: 1px solid rgba(155, 199, 196, 0.65);
    border-radius: 32px;
    background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(241,249,247,0.88));
    box-shadow: 0 28px 70px rgba(21, 79, 98, 0.11);
}

.programmes-guide-card h2 {
    margin: 0 0 16px;
    color: #073466;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2rem;
    line-height: 1.05;
}

.programmes-guide-card p {
    margin: 0;
    color: #28546d;
    font-size: 1.04rem;
    line-height: 1.65;
}

.mini-map-legend {
    display: grid;
    gap: 12px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid rgba(155, 199, 196, 0.45);
}

.mini-map-legend span {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #073466;
    font-weight: 800;
}

.mini-map-legend .dot {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    display: inline-block;
}

.mini-map-legend .border {
    background: #79bc8c;
}

.mini-map-legend .river {
    background: #4fa8c6;
}

.mini-map-legend .network {
    background: #e3c66d;
}

.programme-section {
    max-width: 1480px;
    margin: 0 auto;
    padding: 54px 56px;
}

.programme-section-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
    gap: 42px;
    align-items: end;
    margin-bottom: 28px;
}

.programme-section-head h2,
.horizontal-panel h2 {
    margin: 0;
    color: #073466;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.2rem, 3.2vw, 3.6rem);
    line-height: 1;
    letter-spacing: -0.035em;
}

.programme-section-head p,
.horizontal-panel p {
    margin: 0;
    color: #315d72;
    font-size: 1.08rem;
    line-height: 1.6;
}

.eyebrow,
.programmes-page .hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    color: #007a70;
    font-size: 0.98rem;
    font-weight: 900;
    letter-spacing: 0.01em;
}

.eyebrow::before,
.programmes-page .hero-kicker::before {
    content: "";
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: #007a70;
    box-shadow: 0 0 0 6px rgba(0, 122, 112, 0.12);
}

.programme-card-grid {
    display: grid;
    gap: 22px;
}

.cross-border-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.three-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.programme-large-card {
    position: relative;
    min-height: 390px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(155, 199, 196, 0.55);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.86);
    color: #073466;
    text-decoration: none;
    overflow: hidden;
    box-shadow: 0 18px 46px rgba(21, 79, 98, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.programme-large-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 122, 112, 0.42);
    box-shadow: 0 26px 60px rgba(21, 79, 98, 0.14);
}

.programme-thumb {
    height: 128px;
    margin: -24px -24px 22px;
    display: block;
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, #e8d47a 0 32%, transparent 33%),
    linear-gradient(140deg, #a8d6c8 0 58%, #5baac7 59%);
}

.programme-thumb::before,
.programme-thumb::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 54px;
}

.programme-thumb::before {
    background: linear-gradient(160deg, transparent 0 28%, rgba(255,255,255,0.36) 29% 51%, transparent 52%);
}

.programme-thumb::after {
    background: linear-gradient(9deg, rgba(7,52,102,0.12) 0 36%, transparent 37%);
}

.programme-large-card.serbia .programme-thumb {
    background: linear-gradient(140deg, #c8e2c4 0 36%, #7cbd90 37% 62%, #e8d47a 63%);
}

.programme-large-card.macedonia .programme-thumb {
    background: radial-gradient(circle at 76% 28%, #f0d36e 0 9%, transparent 10%),
    linear-gradient(140deg, #bfe0d6 0 48%, #5aa9c6 49% 70%, #f0d36e 71%);
}

.programme-large-card.turkey .programme-thumb {
    background: linear-gradient(135deg, #e8d47a 0 24%, #7fbf91 25% 50%, #5aa9c6 51%);
}

.programme-large-card.greece .programme-thumb {
    background: linear-gradient(145deg, #f0d983 0 40%, #a6d3c4 41% 65%, #5aa9c6 66%);
}

.programme-large-card.romania .programme-thumb {
    background: linear-gradient(140deg, #d7eceb 0 30%, #5aa9c6 31% 48%, #e8d47a 49%);
}

.programme-large-card.danube .programme-thumb {
    background: radial-gradient(circle at 24% 38%, #ffffff 0 6%, transparent 7%),
    linear-gradient(125deg, #bfe0d6 0 28%, #4fa8c6 29% 52%, #e8d47a 53%);
}

.programme-large-card.euro-med .programme-thumb {
    background: linear-gradient(135deg, #e9d78b 0 34%, #89c9c2 35% 63%, #5baac7 64%);
}

.programme-large-card.black-sea .programme-thumb {
    background: linear-gradient(140deg, #d7eceb 0 28%, #5aa9c6 29% 70%, #e8d47a 71%);
}

.programme-large-card.europe .programme-thumb {
    background: linear-gradient(135deg, #d8e4f0 0 34%, #7fa7cf 35% 62%, #e8d47a 63%);
}

.programme-large-card.urbact .programme-thumb {
    background: linear-gradient(180deg, #e4f1f0 0 42%, #9ccdc2 43% 62%, #e3c66d 63%);
}

.programme-meta {
    display: block;
    margin-bottom: 10px;
    color: #5b7788;
    font-size: 0.94rem;
    font-weight: 800;
}

.programme-large-card strong {
    display: block;
    margin-bottom: 12px;
    color: #073466;
    font-size: 1.45rem;
    line-height: 1.12;
}

.programme-large-card small {
    display: block;
    color: #315d72;
    font-size: 1rem;
    line-height: 1.55;
}

.programme-large-card em {
    margin-top: auto;
    padding-top: 22px;
    color: #004b8d;
    font-style: normal;
    font-weight: 900;
}

.horizontal-panel {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 34px;
    align-items: stretch;
    margin-top: 28px;
    margin-bottom: 70px;
    border-top: 1px solid rgba(155, 199, 196, 0.48);
}

.horizontal-resource-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.resource-card {
    min-height: 255px;
    padding: 28px;
    border: 1px solid rgba(155, 199, 196, 0.55);
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(238,248,244,0.9));
    color: #073466;
    text-decoration: none;
    box-shadow: 0 18px 46px rgba(21, 79, 98, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 26px 60px rgba(21, 79, 98, 0.13);
}

.resource-icon {
    width: 82px;
    height: 82px;
    display: block;
    margin-bottom: 22px;
    border-radius: 22px;
    background: #e3f1ef;
    position: relative;
}

.espon-icon::before {
    content: "";
    position: absolute;
    width: 22px;
    height: 22px;
    left: 26px;
    top: 22px;
    border-radius: 50%;
    background: #2e9bad;
    box-shadow: -20px 8px 0 #75bd8d,
    -4px 26px 0 #c6d97c;
}

.interact-icon::before {
    content: "";
    position: absolute;
    inset: 20px;
    border: 6px solid #1b6f96;
    border-radius: 50%;
    box-shadow: 0 0 0 10px rgba(27, 111, 150, 0.12);
}

.resource-card strong {
    display: block;
    margin-bottom: 10px;
    font-size: 1.35rem;
}

.resource-card small {
    display: block;
    color: #315d72;
    font-size: 1rem;
    line-height: 1.55;
}

.resource-card em {
    display: block;
    margin-top: 20px;
    color: #004b8d;
    font-style: normal;
    font-weight: 900;
}

@media (max-width: 1180px) {
    .programmes-hero {
        grid-template-columns: 1fr;
        padding-left: 32px;
        padding-right: 32px;
    }

    .cross-border-grid,
    .three-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .programme-section {
        padding-left: 32px;
        padding-right: 32px;
    }

    .programme-section-head,
    .horizontal-panel {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .programmes-hero {
        padding: 88px 18px 42px;
    }

    .programmes-hero-copy {
        padding: 34px 24px;
        border-radius: 28px;
    }

    .programmes-guide-card {
        padding: 26px;
    }

    .programme-section {
        padding: 38px 18px;
    }

    .cross-border-grid,
    .three-grid,
    .two-grid,
    .horizontal-resource-grid {
        grid-template-columns: 1fr;
    }

    .programme-large-card {
        min-height: auto;
    }

    .programme-thumb {
        height: 112px;
    }
}

/* PATCH 13.1 — Programmes page refinements */
.programmes-hero {
    padding-top: 92px;
    padding-bottom: 58px;
}

.programmes-hero-copy {
    min-height: 320px;
    padding: 48px 58px;
}

.programmes-hero-copy h1 {
    font-size: clamp(3.2rem, 4.4vw, 4.5rem);
    line-height: 0.98;
    max-width: 820px;
}

.programmes-guide-card {
    padding: 32px;
}

.programme-section {
    padding-top: 44px;
    padding-bottom: 48px;
}

.programme-section-head {
    margin-bottom: 24px;
}

.programme-section-head h2,
.horizontal-panel h2 {
    font-size: clamp(2.4rem, 3vw, 3.25rem);
}

.cross-border-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.programme-large-card {
    min-height: 360px;
}

.programme-large-card strong {
    font-size: 1.38rem;
}

.programme-large-card small {
    font-size: 0.98rem;
}

.horizontal-panel {
    padding-top: 54px;
}

/* PATCH 13.2 — More compact programmes page */
.programmes-hero {
    padding-top: 68px;
    padding-bottom: 38px;
}

.programmes-hero-copy {
    min-height: 260px;
    padding: 38px 48px;
}

.programmes-hero-copy h1 {
    max-width: 760px;
    font-size: clamp(2.6rem, 3.7vw, 4rem);
    line-height: 1;
}

.programmes-hero-copy p:not(.hero-kicker) {
    max-width: 700px;
    font-size: 1.04rem;
    line-height: 1.55;
}

.programmes-hero-copy::after {
    width: 220px;
    height: 220px;
    right: 8%;
    bottom: -110px;
    border-width: 32px;
}

.programme-filter-links {
    margin-top: 22px;
}

.programme-filter-links a {
    min-height: 38px;
    padding: 0 15px;
    font-size: 0.92rem;
}

.programmes-guide-card {
    padding: 28px;
}

.programmes-guide-card h2 {
    font-size: 1.65rem;
}

.programmes-guide-card p {
    font-size: 0.98rem;
    line-height: 1.55;
}

.programme-section {
    padding-top: 34px;
    padding-bottom: 36px;
}

.programme-section-head {
    margin-bottom: 20px;
    gap: 32px;
}

.programme-section-head h2,
.horizontal-panel h2 {
    font-size: clamp(2rem, 2.45vw, 2.75rem);
    line-height: 1.02;
}

.programme-section-head p,
.horizontal-panel p {
    font-size: 1rem;
    line-height: 1.5;
}

.programme-large-card {
    min-height: 315px;
    padding: 22px;
    border-radius: 24px;
}

.programme-thumb {
    height: 104px;
    margin: -22px -22px 20px;
}

.programme-meta {
    font-size: 0.86rem;
    margin-bottom: 8px;
}

.programme-large-card strong {
    font-size: 1.24rem;
    line-height: 1.15;
}

.programme-large-card small {
    font-size: 0.94rem;
    line-height: 1.45;
}

.programme-large-card em {
    padding-top: 18px;
    font-size: 0.95rem;
}

.horizontal-panel {
    padding-top: 40px;
    margin-bottom: 48px;
}

.resource-card {
    min-height: 220px;
    padding: 24px;
}

.resource-icon {
    width: 68px;
    height: 68px;
    border-radius: 18px;
    margin-bottom: 18px;
}

.resource-card strong {
    font-size: 1.18rem;
}

.resource-card small {
    font-size: 0.94rem;
}

.espon-icon::before {
    width: 18px;
    height: 18px;
    left: 23px;
    top: 19px;
    box-shadow: -17px 7px 0 #75bd8d,
    -3px 22px 0 #c6d97c;
}

.interact-icon::before {
    inset: 17px;
    border-width: 5px;
}

/* PATCH 13.3 — Programmes page final compact directory mode */
.programmes-hero {
    padding-top: 52px;
    padding-bottom: 28px;
}

.programmes-hero-copy {
    min-height: 220px;
    padding: 34px 42px;
}

.programmes-hero-copy h1 {
    max-width: 720px;
    font-size: clamp(2.35rem, 3.1vw, 3.5rem);
    line-height: 1.03;
    letter-spacing: -0.045em;
}

.programmes-hero-copy p:not(.hero-kicker) {
    max-width: 680px;
    font-size: 0.98rem;
}

.programmes-hero-copy::after {
    display: none;
}

.programmes-hero-copy::before {
    height: 86px;
    opacity: 0.72;
}

.programmes-guide-card {
    padding: 26px 28px;
}

.programmes-guide-card h2 {
    font-size: 1.5rem;
}

.programmes-guide-card p,
.mini-map-legend span {
    font-size: 0.94rem;
}

.programme-section {
    padding-top: 28px;
    padding-bottom: 30px;
}

.programme-section-head {
    margin-bottom: 18px;
    align-items: start;
}

.programme-section-head h2,
.horizontal-panel h2 {
    font-size: clamp(1.8rem, 2.15vw, 2.35rem);
    line-height: 1.05;
}

.eyebrow,
.programmes-page .hero-kicker {
    font-size: 0.88rem;
}

.programme-card-grid {
    gap: 18px;
}

.programme-large-card {
    min-height: 270px;
    padding: 20px;
    border-radius: 22px;
}

.programme-thumb {
    height: 86px;
    margin: -20px -20px 18px;
}

.programme-meta {
    font-size: 0.8rem;
}

.programme-large-card strong {
    font-size: 1.1rem;
}

.programme-large-card small {
    font-size: 0.88rem;
    line-height: 1.42;
}

.programme-large-card em {
    padding-top: 14px;
    font-size: 0.9rem;
}

.horizontal-panel {
    padding-top: 34px;
    margin-bottom: 36px;
}

.resource-card {
    min-height: 190px;
    padding: 22px;
}

.resource-icon {
    width: 58px;
    height: 58px;
    margin-bottom: 16px;
}

.resource-card strong {
    font-size: 1.08rem;
}

.resource-card small {
    font-size: 0.88rem;
}

/* PATCH 13.4 — Remove leftover decorative circle on programmes page */
.programmes-page .programmes-hero-copy::after {
    display: none !important;
}

.programmes-page .programme-section::before,
.programmes-page .programme-section::after {
    display: none !important;
}

/* PATCH 14 — Documents page */
.documents-page {
    background: radial-gradient(circle at 14% 8%, rgba(193, 229, 221, 0.45), transparent 32rem),
    radial-gradient(circle at 86% 14%, rgba(225, 241, 238, 0.75), transparent 30rem),
    linear-gradient(180deg, #fbfcf8 0%, #f7fbf8 52%, #edf8f6 100%);
}

.documents-page .main-nav a.is-active {
    color: #007a70;
}

.documents-hero {
    max-width: 1480px;
    margin: 0 auto;
    padding: 70px 56px 38px;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) 420px;
    gap: 34px;
    align-items: stretch;
}

.documents-hero-copy {
    position: relative;
    min-height: 250px;
    padding: 38px 46px;
    border: 1px solid rgba(155, 199, 196, 0.55);
    border-radius: 30px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255,255,255,0.94), rgba(240,248,246,0.86)),
    radial-gradient(circle at 84% 16%, rgba(122, 189, 178, 0.22), transparent 20rem);
    box-shadow: 0 24px 60px rgba(21, 79, 98, 0.10);
}

.documents-hero-copy::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 86px;
    pointer-events: none;
    opacity: 0.75;
    background: linear-gradient(160deg, transparent 0 32%, rgba(112, 168, 131, 0.20) 33% 56%, transparent 57%),
    linear-gradient(10deg, rgba(34, 128, 136, 0.16) 0 42%, transparent 43%);
}

.documents-hero-copy > * {
    position: relative;
    z-index: 1;
}

.documents-hero-copy h1 {
    max-width: 760px;
    margin: 12px 0 18px;
    color: #073466;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.3rem, 3.1vw, 3.5rem);
    line-height: 1.02;
    letter-spacing: -0.045em;
}

.documents-hero-copy p:not(.hero-kicker) {
    max-width: 720px;
    margin: 0;
    color: #244f68;
    font-size: 1rem;
    line-height: 1.55;
}

.documents-page .hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #007a70;
    font-size: 0.9rem;
    font-weight: 900;
}

.documents-page .hero-kicker::before {
    content: "";
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: #007a70;
    box-shadow: 0 0 0 6px rgba(0, 122, 112, 0.12);
}

.documents-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.documents-hero-actions a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 15px;
    border: 1px solid rgba(5, 96, 143, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    color: #004b8d;
    font-size: 0.92rem;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(21, 79, 98, 0.06);
}

.documents-hero-actions a:hover {
    transform: translateY(-2px);
    background: #ffffff;
    border-color: rgba(0, 122, 112, 0.38);
}

.documents-note-card {
    padding: 30px;
    border: 1px solid rgba(155, 199, 196, 0.65);
    border-radius: 30px;
    background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(241,249,247,0.9));
    box-shadow: 0 24px 60px rgba(21, 79, 98, 0.10);
}

.documents-note-card h2 {
    margin: 0 0 14px;
    color: #073466;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.7rem;
    line-height: 1.05;
}

.documents-note-card p {
    margin: 0 0 18px;
    color: #28546d;
    font-size: 0.98rem;
    line-height: 1.55;
}

.documents-note-card strong {
    display: block;
    padding: 16px;
    border: 1px solid rgba(226, 186, 91, 0.45);
    border-radius: 18px;
    background: rgba(255, 247, 226, 0.85);
    color: #6b4b0f;
    font-size: 0.94rem;
    line-height: 1.45;
}

.document-section {
    max-width: 1480px;
    margin: 0 auto;
    padding: 34px 56px;
}

.document-section-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
    gap: 34px;
    align-items: end;
    margin-bottom: 22px;
}

.document-section-head h2,
.document-practical-panel h2,
.official-sources-section h2 {
    margin: 0;
    color: #073466;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.8rem, 2.15vw, 2.45rem);
    line-height: 1.05;
    letter-spacing: -0.035em;
}

.document-section-head p,
.document-practical-panel p,
.official-sources-section p {
    margin: 0;
    color: #315d72;
    font-size: 1rem;
    line-height: 1.5;
}

.document-type-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.document-type-card {
    min-height: 210px;
    padding: 22px;
    border: 1px solid rgba(155, 199, 196, 0.55);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(243,250,248,0.86));
    color: #073466;
    text-decoration: none;
    box-shadow: 0 16px 40px rgba(21, 79, 98, 0.07);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.document-type-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 122, 112, 0.42);
    box-shadow: 0 24px 54px rgba(21, 79, 98, 0.12);
}

.doc-icon {
    width: 58px;
    height: 58px;
    display: block;
    margin-bottom: 18px;
    border-radius: 18px;
    background: #e3f1ef;
    position: relative;
}

.doc-icon::before,
.doc-icon::after {
    content: "";
    position: absolute;
}

.programme-doc-icon::before {
    inset: 15px 18px;
    border: 3px solid #157f77;
    border-radius: 3px;
}

.manual-doc-icon::before {
    width: 22px;
    height: 28px;
    left: 18px;
    top: 14px;
    border: 3px solid #1b6f96;
    border-radius: 3px;
}

.manual-doc-icon::after {
    width: 18px;
    height: 3px;
    left: 21px;
    top: 24px;
    background: #1b6f96;
    box-shadow: 0 8px 0 #1b6f96;
}

.eligibility-doc-icon::before {
    width: 26px;
    height: 26px;
    left: 16px;
    top: 16px;
    border: 3px solid #c49420;
    border-radius: 50%;
}

.eligibility-doc-icon::after {
    width: 10px;
    height: 4px;
    left: 25px;
    top: 27px;
    border-left: 3px solid #c49420;
    border-bottom: 3px solid #c49420;
    transform: rotate(-45deg);
}

.control-doc-icon::before {
    width: 24px;
    height: 24px;
    left: 17px;
    top: 17px;
    border: 3px solid #157f77;
    border-radius: 4px;
}

.control-doc-icon::after {
    width: 9px;
    height: 16px;
    left: 25px;
    top: 18px;
    border-right: 3px solid #157f77;
    border-bottom: 3px solid #157f77;
    transform: rotate(42deg);
}

.template-doc-icon::before {
    width: 26px;
    height: 22px;
    left: 16px;
    top: 19px;
    border: 3px solid #4fa8c6;
    border-radius: 4px;
}

.procurement-doc-icon::before {
    width: 30px;
    height: 3px;
    left: 14px;
    top: 20px;
    background: #6958b8;
    box-shadow: 0 9px 0 #6958b8, 0 18px 0 #6958b8;
}

.reporting-doc-icon::before {
    width: 26px;
    height: 30px;
    left: 16px;
    top: 14px;
    border: 3px solid #1b6f96;
    border-radius: 4px;
}

.reporting-doc-icon::after {
    width: 16px;
    height: 3px;
    left: 21px;
    top: 26px;
    background: #1b6f96;
    box-shadow: 0 8px 0 #1b6f96;
}

.official-doc-icon::before {
    width: 28px;
    height: 28px;
    left: 15px;
    top: 15px;
    border: 3px solid #007a70;
    border-radius: 50%;
}

.official-doc-icon::after {
    width: 18px;
    height: 18px;
    left: 20px;
    top: 20px;
    border: 2px solid #007a70;
    border-radius: 50%;
}

.document-type-card strong {
    display: block;
    margin-bottom: 10px;
    color: #073466;
    font-size: 1.08rem;
    line-height: 1.16;
}

.document-type-card small {
    display: block;
    color: #315d72;
    font-size: 0.9rem;
    line-height: 1.42;
}

.programme-document-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.programme-document-row {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    min-height: 92px;
    padding: 16px;
    border: 1px solid rgba(155, 199, 196, 0.55);
    border-radius: 22px;
    background: rgba(255,255,255,0.86);
    color: #073466;
    text-decoration: none;
    box-shadow: 0 14px 34px rgba(21, 79, 98, 0.06);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.programme-document-row:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 122, 112, 0.42);
    box-shadow: 0 22px 48px rgba(21, 79, 98, 0.10);
}

.mini-programme-mark {
    width: 70px;
    height: 48px;
    display: block;
    border-radius: 14px;
    border: 1px solid rgba(155, 199, 196, 0.55);
    background: linear-gradient(140deg, #c8e2c4 0 36%, #7cbd90 37% 62%, #e8d47a 63%);
}

.macedonia-mark {
    background: radial-gradient(circle at 76% 28%, #f0d36e 0 9%, transparent 10%),
    linear-gradient(140deg, #bfe0d6 0 48%, #5aa9c6 49% 70%, #f0d36e 71%);
}

.turkey-mark {
    background: linear-gradient(135deg, #e8d47a 0 24%, #7fbf91 25% 50%, #5aa9c6 51%);
}

.greece-mark {
    background: linear-gradient(145deg, #f0d983 0 40%, #a6d3c4 41% 65%, #5aa9c6 66%);
}

.romania-mark {
    background: linear-gradient(140deg, #d7eceb 0 30%, #5aa9c6 31% 48%, #e8d47a 49%);
}

.danube-mark {
    background: radial-gradient(circle at 24% 38%, #ffffff 0 6%, transparent 7%),
    linear-gradient(125deg, #bfe0d6 0 28%, #4fa8c6 29% 52%, #e8d47a 53%);
}

.euromed-mark {
    background: linear-gradient(135deg, #e9d78b 0 34%, #89c9c2 35% 63%, #5baac7 64%);
}

.blacksea-mark {
    background: linear-gradient(140deg, #d7eceb 0 28%, #5aa9c6 29% 70%, #e8d47a 71%);
}

.europe-mark {
    background: linear-gradient(135deg, #d8e4f0 0 34%, #7fa7cf 35% 62%, #e8d47a 63%);
}

.urbact-mark {
    background: linear-gradient(180deg, #e4f1f0 0 42%, #9ccdc2 43% 62%, #e3c66d 63%);
}

.programme-document-row strong {
    display: block;
    margin-bottom: 4px;
    color: #073466;
    font-size: 1.04rem;
}

.programme-document-row small {
    display: block;
    color: #315d72;
    font-size: 0.88rem;
    line-height: 1.35;
}

.programme-document-row em {
    color: #004b8d;
    font-style: normal;
    font-weight: 900;
    white-space: nowrap;
}

.document-practical-panel {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 28px;
    align-items: stretch;
    margin-top: 20px;
}

.practical-copy {
    padding: 30px;
    border: 1px solid rgba(155, 199, 196, 0.55);
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(255,255,255,0.92), rgba(239,248,245,0.88));
    box-shadow: 0 18px 44px rgba(21, 79, 98, 0.07);
}

.practical-card-grid {
    display: grid;
    gap: 14px;
}

.practical-doc-card {
    min-height: 120px;
    padding: 22px;
    border: 1px solid rgba(155, 199, 196, 0.55);
    border-radius: 22px;
    background: rgba(255,255,255,0.88);
    color: #073466;
    text-decoration: none;
    box-shadow: 0 14px 34px rgba(21, 79, 98, 0.06);
}

.practical-doc-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1.08rem;
}

.practical-doc-card small {
    display: block;
    color: #315d72;
    font-size: 0.9rem;
    line-height: 1.4;
}

.practical-doc-card em {
    display: block;
    margin-top: 12px;
    color: #004b8d;
    font-style: normal;
    font-weight: 900;
}

.official-sources-section {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 28px;
    align-items: start;
    padding-bottom: 64px;
}

.official-source-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.official-source-card {
    min-height: 150px;
    padding: 22px;
    border: 1px solid rgba(155, 199, 196, 0.55);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(238,248,244,0.9));
    box-shadow: 0 14px 34px rgba(21, 79, 98, 0.06);
}

.official-source-card strong {
    display: block;
    margin-bottom: 10px;
    color: #073466;
    font-size: 1.05rem;
}

.official-source-card small {
    display: block;
    color: #315d72;
    font-size: 0.9rem;
    line-height: 1.42;
}

@media (max-width: 1180px) {
    .documents-hero,
    .document-section-head,
    .document-practical-panel,
    .official-sources-section {
        grid-template-columns: 1fr;
    }

    .documents-hero,
    .document-section {
        padding-left: 32px;
        padding-right: 32px;
    }

    .document-type-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .programme-document-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .documents-hero {
        padding: 52px 18px 28px;
    }

    .documents-hero-copy {
        padding: 30px 24px;
        border-radius: 26px;
    }

    .documents-note-card {
        padding: 24px;
    }

    .document-section {
        padding: 28px 18px;
    }

    .document-type-grid,
    .official-source-cards {
        grid-template-columns: 1fr;
    }

    .programme-document-row {
        grid-template-columns: 62px minmax(0, 1fr);
    }

    .programme-document-row em {
        grid-column: 2;
    }

    .mini-programme-mark {
        width: 58px;
        height: 42px;
    }
}

/* PATCH 14.1 — Documents page compact refinements */
.documents-hero {
    padding-top: 58px;
    padding-bottom: 30px;
}

.documents-hero-copy {
    min-height: 225px;
    padding: 34px 42px;
}

.documents-hero-copy h1 {
    font-size: clamp(2.15rem, 2.85vw, 3.35rem);
}

.document-section {
    padding-top: 28px;
    padding-bottom: 30px;
}

.document-type-card {
    min-height: 185px;
    padding: 20px;
}

.doc-icon {
    width: 52px;
    height: 52px;
    margin-bottom: 16px;
}

.document-practical-panel h2,
.official-sources-section h2 {
    font-size: clamp(1.75rem, 2vw, 2.25rem);
}

.practical-copy {
    padding: 26px;
}

.practical-doc-card {
    min-height: 104px;
    padding: 20px;
}

.official-sources-section {
    padding-top: 26px;
    padding-bottom: 52px;
}

.official-source-card {
    min-height: 130px;
    padding: 20px;
}

/* PATCH 15 — Useful information page */
.useful-page {
    background: radial-gradient(circle at 14% 8%, rgba(193, 229, 221, 0.45), transparent 32rem),
    radial-gradient(circle at 86% 14%, rgba(225, 241, 238, 0.75), transparent 30rem),
    linear-gradient(180deg, #fbfcf8 0%, #f7fbf8 52%, #edf8f6 100%);
}

.useful-page .main-nav a.is-active {
    color: #007a70;
}

.useful-hero {
    max-width: 1480px;
    margin: 0 auto;
    padding: 58px 56px 30px;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) 420px;
    gap: 34px;
    align-items: stretch;
}

.useful-hero-copy {
    position: relative;
    min-height: 225px;
    padding: 34px 42px;
    border: 1px solid rgba(155, 199, 196, 0.55);
    border-radius: 30px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255,255,255,0.94), rgba(240,248,246,0.86)),
    radial-gradient(circle at 84% 16%, rgba(122, 189, 178, 0.22), transparent 20rem);
    box-shadow: 0 24px 60px rgba(21, 79, 98, 0.10);
}

.useful-hero-copy::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 86px;
    pointer-events: none;
    opacity: 0.75;
    background: linear-gradient(160deg, transparent 0 32%, rgba(112, 168, 131, 0.20) 33% 56%, transparent 57%),
    linear-gradient(10deg, rgba(34, 128, 136, 0.16) 0 42%, transparent 43%);
}

.useful-hero-copy > * {
    position: relative;
    z-index: 1;
}

.useful-hero-copy h1 {
    max-width: 780px;
    margin: 12px 0 18px;
    color: #073466;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.15rem, 2.85vw, 3.35rem);
    line-height: 1.02;
    letter-spacing: -0.045em;
}

.useful-hero-copy p:not(.hero-kicker) {
    max-width: 720px;
    margin: 0;
    color: #244f68;
    font-size: 1rem;
    line-height: 1.55;
}

.useful-page .hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #007a70;
    font-size: 0.9rem;
    font-weight: 900;
}

.useful-page .hero-kicker::before {
    content: "";
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: #007a70;
    box-shadow: 0 0 0 6px rgba(0, 122, 112, 0.12);
}

.useful-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.useful-hero-actions a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 15px;
    border: 1px solid rgba(5, 96, 143, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    color: #004b8d;
    font-size: 0.92rem;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(21, 79, 98, 0.06);
}

.useful-hero-actions a:hover {
    transform: translateY(-2px);
    background: #ffffff;
    border-color: rgba(0, 122, 112, 0.38);
}

.useful-note-card {
    padding: 30px;
    border: 1px solid rgba(155, 199, 196, 0.65);
    border-radius: 30px;
    background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(241,249,247,0.9));
    box-shadow: 0 24px 60px rgba(21, 79, 98, 0.10);
}

.useful-note-card h2 {
    margin: 0 0 14px;
    color: #073466;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.7rem;
    line-height: 1.05;
}

.useful-note-card p {
    margin: 0;
    color: #28546d;
    font-size: 0.98rem;
    line-height: 1.55;
}

.useful-section {
    max-width: 1480px;
    margin: 0 auto;
    padding: 28px 56px 30px;
}

.useful-section-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
    gap: 34px;
    align-items: end;
    margin-bottom: 22px;
}

.useful-section-head h2,
.guide-panel h2,
.glossary-section h2,
.horizontal-resources-section h2 {
    margin: 0;
    color: #073466;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.8rem, 2.15vw, 2.45rem);
    line-height: 1.05;
    letter-spacing: -0.035em;
}

.useful-section-head p,
.guide-panel p,
.glossary-section p,
.horizontal-resources-section p {
    margin: 0;
    color: #315d72;
    font-size: 1rem;
    line-height: 1.5;
}

.role-card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.role-card {
    min-height: 330px;
    padding: 22px;
    border: 1px solid rgba(155, 199, 196, 0.55);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(243,250,248,0.86));
    color: #073466;
    box-shadow: 0 16px 40px rgba(21, 79, 98, 0.07);
}

.role-icon {
    width: 58px;
    height: 58px;
    display: block;
    margin-bottom: 18px;
    border-radius: 50%;
    background: #e3f1ef;
    position: relative;
}

.role-icon::before,
.role-icon::after {
    content: "";
    position: absolute;
}

.candidate-icon::before {
    width: 20px;
    height: 20px;
    left: 19px;
    top: 19px;
    border: 3px solid #157f77;
    border-radius: 50%;
    border-right-color: transparent;
}

.beneficiary-icon::before {
    width: 25px;
    height: 18px;
    left: 16px;
    top: 20px;
    border: 3px solid #157f77;
    transform: skewX(-8deg);
}

.partner-icon::before {
    width: 24px;
    height: 24px;
    left: 17px;
    top: 17px;
    border: 3px solid #157f77;
    transform: rotate(45deg);
}

.controller-icon::before {
    width: 20px;
    height: 20px;
    left: 16px;
    top: 16px;
    border: 3px solid #157f77;
    border-radius: 50%;
}

.controller-icon::after {
    width: 13px;
    height: 3px;
    left: 33px;
    top: 35px;
    background: #157f77;
    transform: rotate(45deg);
}

.role-card h3 {
    margin: 0 0 10px;
    color: #073466;
    font-size: 1.16rem;
    line-height: 1.15;
}

.role-card p {
    margin: 0 0 16px;
    color: #315d72;
    font-size: 0.92rem;
    line-height: 1.42;
}

.role-card ul {
    margin: 0 0 18px;
    padding-left: 18px;
    color: #315d72;
    font-size: 0.9rem;
    line-height: 1.45;
}

.role-card a,
.topic-card a,
.horizontal-useful-card a {
    color: #004b8d;
    font-weight: 900;
    text-decoration: none;
}

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

.topic-card {
    min-height: 220px;
    padding: 22px;
    border: 1px solid rgba(155, 199, 196, 0.55);
    border-radius: 24px;
    background: rgba(255,255,255,0.88);
    color: #073466;
    box-shadow: 0 16px 40px rgba(21, 79, 98, 0.07);
}

.topic-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 34px;
    margin-bottom: 18px;
    border-radius: 999px;
    background: rgba(0, 122, 112, 0.1);
    color: #007a70;
    font-weight: 900;
    font-size: 0.84rem;
}

.topic-card h3 {
    margin: 0 0 10px;
    color: #073466;
    font-size: 1.18rem;
}

.topic-card p {
    margin: 0 0 16px;
    color: #315d72;
    font-size: 0.92rem;
    line-height: 1.44;
}

.guide-panel {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 28px;
    align-items: stretch;
    margin-top: 10px;
}

.guide-copy {
    padding: 26px;
    border: 1px solid rgba(155, 199, 196, 0.55);
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(255,255,255,0.92), rgba(239,248,245,0.88));
    box-shadow: 0 18px 44px rgba(21, 79, 98, 0.07);
}

.guide-steps {
    display: grid;
    gap: 14px;
}

.guide-steps article {
    min-height: 104px;
    padding: 20px;
    border: 1px solid rgba(155, 199, 196, 0.55);
    border-radius: 22px;
    background: rgba(255,255,255,0.88);
    box-shadow: 0 14px 34px rgba(21, 79, 98, 0.06);
}

.guide-steps strong {
    display: block;
    margin-bottom: 8px;
    color: #073466;
    font-size: 1.08rem;
}

.guide-steps small {
    display: block;
    color: #315d72;
    font-size: 0.9rem;
    line-height: 1.4;
}

.glossary-section {
    display: grid;
    grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
    gap: 28px;
    align-items: start;
}

.glossary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.glossary-grid article {
    min-height: 122px;
    padding: 20px;
    border: 1px solid rgba(155, 199, 196, 0.55);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(238,248,244,0.9));
    box-shadow: 0 14px 34px rgba(21, 79, 98, 0.06);
}

.glossary-grid strong {
    display: block;
    margin-bottom: 8px;
    color: #073466;
    font-size: 1.05rem;
}

.glossary-grid small {
    display: block;
    color: #315d72;
    font-size: 0.9rem;
    line-height: 1.42;
}

.horizontal-resources-section {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 28px;
    align-items: start;
    padding-bottom: 58px;
}

.horizontal-useful-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.horizontal-useful-card {
    min-height: 230px;
    padding: 22px;
    border: 1px solid rgba(155, 199, 196, 0.55);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(238,248,244,0.9));
    box-shadow: 0 16px 40px rgba(21, 79, 98, 0.07);
}

.horizontal-useful-card h3 {
    margin: 0 0 10px;
    color: #073466;
    font-size: 1.2rem;
}

.horizontal-useful-card p {
    margin: 0 0 16px;
    color: #315d72;
    font-size: 0.92rem;
    line-height: 1.44;
}

@media (max-width: 1180px) {
    .useful-hero,
    .useful-section-head,
    .guide-panel,
    .glossary-section,
    .horizontal-resources-section {
        grid-template-columns: 1fr;
    }

    .useful-hero,
    .useful-section {
        padding-left: 32px;
        padding-right: 32px;
    }

    .role-card-grid,
    .topic-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .useful-hero {
        padding: 52px 18px 28px;
    }

    .useful-hero-copy {
        padding: 30px 24px;
        border-radius: 26px;
    }

    .useful-note-card {
        padding: 24px;
    }

    .useful-section {
        padding: 28px 18px;
    }

    .role-card-grid,
    .topic-grid,
    .glossary-grid,
    .horizontal-useful-grid {
        grid-template-columns: 1fr;
    }

    .role-card,
    .topic-card,
    .horizontal-useful-card {
        min-height: auto;
    }
}

/* PATCH 15.1 — Fix useful page role cards layout */
.useful-page .role-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    min-height: 300px;
    padding: 24px;
}

.useful-page .role-card .role-icon {
    flex: 0 0 auto;
}

.useful-page .role-card h3 {
    width: 100%;
    margin: 0 0 12px;
}

.useful-page .role-card p {
    width: 100%;
    margin: 0 0 14px;
    display: block !important;
    columns: auto !important;
    column-count: initial !important;
    max-width: none;
}

.useful-page .role-card ul {
    width: 100%;
    margin: 0 0 18px;
    padding-left: 18px;
    display: block !important;
    columns: auto !important;
    column-count: initial !important;
}

.useful-page .role-card li {
    display: list-item !important;
    margin-bottom: 4px;
}

.useful-page .role-card a {
    margin-top: auto;
    display: inline-flex;
}

.useful-page .role-card-grid {
    align-items: stretch;
}

@media (max-width: 1280px) {
    .useful-page .role-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* PATCH 16 — Projects page */
.projects-page {
    background: radial-gradient(circle at 14% 8%, rgba(193, 229, 221, 0.45), transparent 32rem),
    radial-gradient(circle at 86% 14%, rgba(225, 241, 238, 0.75), transparent 30rem),
    linear-gradient(180deg, #fbfcf8 0%, #f7fbf8 52%, #edf8f6 100%);
}

.projects-page .main-nav a.is-active {
    color: #007a70;
}

/* Hero */
.projects-hero {
    max-width: 1480px;
    margin: 0 auto;
    padding: 58px 56px 30px;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) 420px;
    gap: 34px;
    align-items: stretch;
}

.projects-hero-copy {
    position: relative;
    min-height: 225px;
    padding: 34px 42px;
    border: 1px solid rgba(155, 199, 196, 0.55);
    border-radius: 30px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255,255,255,0.94), rgba(240,248,246,0.86)),
    radial-gradient(circle at 84% 16%, rgba(122, 189, 178, 0.22), transparent 20rem);
    box-shadow: 0 24px 60px rgba(21, 79, 98, 0.10);
}

.projects-hero-copy::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 86px;
    pointer-events: none;
    opacity: 0.75;
    background: linear-gradient(160deg, transparent 0 32%, rgba(112, 168, 131, 0.20) 33% 56%, transparent 57%),
    linear-gradient(10deg, rgba(34, 128, 136, 0.16) 0 42%, transparent 43%);
}

.projects-hero-copy > * {
    position: relative;
    z-index: 1;
}

.projects-hero-copy h1 {
    max-width: 780px;
    margin: 12px 0 18px;
    color: #073466;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.15rem, 2.85vw, 3.35rem);
    line-height: 1.02;
    letter-spacing: -0.045em;
}

.projects-hero-copy p:not(.hero-kicker) {
    max-width: 760px;
    margin: 0;
    color: #244f68;
    font-size: 1rem;
    line-height: 1.55;
}

.projects-page .hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #007a70;
    font-size: 0.9rem;
    font-weight: 900;
}

.projects-page .hero-kicker::before {
    content: "";
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: #007a70;
    box-shadow: 0 0 0 6px rgba(0, 122, 112, 0.12);
}

.projects-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.projects-hero-actions a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 15px;
    border: 1px solid rgba(5, 96, 143, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    color: #004b8d;
    font-size: 0.92rem;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(21, 79, 98, 0.06);
}

.projects-hero-actions a:hover {
    transform: translateY(-2px);
    background: #ffffff;
    border-color: rgba(0, 122, 112, 0.38);
}

.projects-note-card {
    padding: 30px;
    border: 1px solid rgba(155, 199, 196, 0.65);
    border-radius: 30px;
    background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(241,249,247,0.9));
    box-shadow: 0 24px 60px rgba(21, 79, 98, 0.10);
}

.projects-note-card h2 {
    margin: 0 0 14px;
    color: #073466;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.7rem;
    line-height: 1.05;
}

.projects-note-card p {
    margin: 0;
    color: #28546d;
    font-size: 0.98rem;
    line-height: 1.55;
}

/* Sections */
.projects-section {
    max-width: 1480px;
    margin: 0 auto;
    padding: 28px 56px 30px;
}

.projects-section-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 540px);
    gap: 34px;
    align-items: end;
    margin-bottom: 22px;
}

.projects-section-head h2,
.project-template-panel h2,
.project-map-panel h2,
.project-cta h2 {
    margin: 0;
    color: #073466;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.8rem, 2.15vw, 2.45rem);
    line-height: 1.05;
    letter-spacing: -0.035em;
}

.projects-section-head p,
.project-template-panel p,
.project-map-panel p,
.project-cta p {
    margin: 0;
    color: #315d72;
    font-size: 1rem;
    line-height: 1.5;
}

/* Programme project cards */
.project-programme-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
}

.project-programme-card {
    position: relative;
    min-height: 285px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(155, 199, 196, 0.55);
    border-radius: 22px;
    background: rgba(255,255,255,0.88);
    color: #073466;
    text-decoration: none;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(21, 79, 98, 0.07);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.project-programme-card.is-ready:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 122, 112, 0.42);
    box-shadow: 0 24px 54px rgba(21, 79, 98, 0.12);
}

.project-programme-card .programme-thumb {
    height: 86px;
    margin: -20px -20px 18px;
    display: block;
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, #e8d47a 0 32%, transparent 33%),
    linear-gradient(140deg, #a8d6c8 0 58%, #5baac7 59%);
}

.project-programme-card .programme-thumb::before,
.project-programme-card .programme-thumb::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 46px;
}

.project-programme-card .programme-thumb::before {
    background: linear-gradient(160deg, transparent 0 28%, rgba(255,255,255,0.34) 29% 51%, transparent 52%);
}

.project-programme-card .programme-thumb::after {
    background: linear-gradient(9deg, rgba(7,52,102,0.10) 0 36%, transparent 37%);
}

.project-programme-card.danube .programme-thumb {
    background: radial-gradient(circle at 24% 38%, #ffffff 0 6%, transparent 7%),
    linear-gradient(125deg, #bfe0d6 0 28%, #4fa8c6 29% 52%, #e8d47a 53%);
}

.project-programme-card.serbia .programme-thumb {
    background: linear-gradient(140deg, #c8e2c4 0 36%, #7cbd90 37% 62%, #e8d47a 63%);
}

.project-programme-card.macedonia .programme-thumb {
    background: radial-gradient(circle at 76% 28%, #f0d36e 0 9%, transparent 10%),
    linear-gradient(140deg, #bfe0d6 0 48%, #5aa9c6 49% 70%, #f0d36e 71%);
}

.project-programme-card.turkey .programme-thumb {
    background: linear-gradient(135deg, #e8d47a 0 24%, #7fbf91 25% 50%, #5aa9c6 51%);
}

.project-programme-card.greece .programme-thumb {
    background: linear-gradient(145deg, #f0d983 0 40%, #a6d3c4 41% 65%, #5aa9c6 66%);
}

.project-programme-card.romania .programme-thumb {
    background: linear-gradient(140deg, #d7eceb 0 30%, #5aa9c6 31% 48%, #e8d47a 49%);
}

.project-programme-card.euro-med .programme-thumb {
    background: linear-gradient(135deg, #e9d78b 0 34%, #89c9c2 35% 63%, #5baac7 64%);
}

.project-programme-card.black-sea .programme-thumb {
    background: linear-gradient(140deg, #d7eceb 0 28%, #5aa9c6 29% 70%, #e8d47a 71%);
}

.project-programme-card.europe .programme-thumb {
    background: linear-gradient(135deg, #d8e4f0 0 34%, #7fa7cf 35% 62%, #e8d47a 63%);
}

.project-programme-card.urbact .programme-thumb {
    background: linear-gradient(180deg, #e4f1f0 0 42%, #9ccdc2 43% 62%, #e3c66d 63%);
}

.project-card-status {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 10px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(0, 122, 112, 0.11);
    color: #007a70;
    font-size: 0.78rem;
    font-weight: 900;
}

.project-card-status.muted {
    background: rgba(91, 119, 136, 0.10);
    color: #5b7788;
}

.project-programme-card strong {
    display: block;
    margin-bottom: 9px;
    color: #073466;
    font-size: 1.08rem;
    line-height: 1.15;
}

.project-programme-card small {
    display: block;
    color: #315d72;
    font-size: 0.88rem;
    line-height: 1.42;
}

.project-programme-card em {
    margin-top: auto;
    padding-top: 16px;
    color: #004b8d;
    font-style: normal;
    font-weight: 900;
    font-size: 0.9rem;
}

/* Danube featured stories */
.project-filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.project-filter-pills span {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid rgba(5, 96, 143, 0.20);
    border-radius: 999px;
    background: rgba(255,255,255,0.82);
    color: #004b8d;
    font-size: 0.88rem;
    font-weight: 850;
}

.project-filter-pills .is-active {
    background: #007a70;
    color: #ffffff;
    border-color: #007a70;
}

.project-story-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.project-story-card {
    border: 1px solid rgba(155, 199, 196, 0.55);
    border-radius: 22px;
    overflow: hidden;
    background: rgba(255,255,255,0.9);
    box-shadow: 0 16px 40px rgba(21, 79, 98, 0.07);
}

.project-image {
    display: block;
    height: 142px;
    background: linear-gradient(160deg, rgba(35,128,136,0.25), rgba(122,189,178,0.2)),
    linear-gradient(12deg, #7fbf91 0 32%, #4fa8c6 33% 64%, #e8d47a 65%);
}

.project-story-card.green .project-image {
    background: radial-gradient(circle at 18% 26%, rgba(255,255,255,0.88) 0 6%, transparent 7%),
    linear-gradient(160deg, #c8e2c4 0 28%, #7cbd90 29% 48%, #4fa8c6 49% 72%, #e8d47a 73%);
}

.project-story-card.innovation .project-image {
    background: linear-gradient(135deg, #d8e4f0 0 28%, #7fa7cf 29% 52%, #5baac7 53% 72%, #e8d47a 73%);
}

.project-story-card.heritage .project-image {
    background: linear-gradient(150deg, #e8d47a 0 34%, #b9d8c4 35% 50%, #7fa7cf 51% 70%, #5baac7 71%);
}

.project-story-card.social .project-image {
    background: linear-gradient(135deg, #e4f1f0 0 34%, #9ccdc2 35% 56%, #e3c66d 57% 72%, #7cbd90 73%);
}

.project-story-body {
    padding: 18px;
}

.project-tag {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 10px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(0, 122, 112, 0.10);
    color: #007a70;
    font-size: 0.76rem;
    font-weight: 900;
}

.project-story-body h3 {
    margin: 0 0 10px;
    color: #073466;
    font-size: 1.08rem;
    line-height: 1.15;
}

.project-story-body p {
    margin: 0 0 14px;
    color: #315d72;
    font-size: 0.88rem;
    line-height: 1.42;
}

.project-story-body strong {
    display: block;
    color: #073466;
    font-size: 0.88rem;
    margin-bottom: 3px;
}

.project-story-body small {
    display: block;
    color: #315d72;
    font-size: 0.82rem;
    margin-bottom: 16px;
}

.project-story-body a {
    color: #004b8d;
    font-weight: 900;
    text-decoration: none;
}

/* Template panel */
.project-template-panel {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 28px;
    align-items: stretch;
    margin-top: 10px;
}

.template-copy {
    padding: 26px;
    border: 1px solid rgba(155, 199, 196, 0.55);
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(255,255,255,0.92), rgba(239,248,245,0.88));
    box-shadow: 0 18px 44px rgba(21, 79, 98, 0.07);
}

.template-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.template-card-grid article {
    min-height: 112px;
    padding: 20px;
    border: 1px solid rgba(155, 199, 196, 0.55);
    border-radius: 22px;
    background: rgba(255,255,255,0.88);
    box-shadow: 0 14px 34px rgba(21, 79, 98, 0.06);
}

.template-card-grid strong {
    display: block;
    margin-bottom: 8px;
    color: #073466;
    font-size: 1.02rem;
}

.template-card-grid small {
    display: block;
    color: #315d72;
    font-size: 0.88rem;
    line-height: 1.4;
}

/* Themes */
.project-theme-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.project-theme-grid article {
    min-height: 130px;
    padding: 20px;
    border: 1px solid rgba(155, 199, 196, 0.55);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(238,248,244,0.9));
    box-shadow: 0 14px 34px rgba(21, 79, 98, 0.06);
}

.project-theme-grid strong {
    display: block;
    margin-bottom: 8px;
    color: #073466;
    font-size: 1.04rem;
}

.project-theme-grid small {
    display: block;
    color: #315d72;
    font-size: 0.88rem;
    line-height: 1.42;
}

/* Future map */
.project-map-panel {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 28px;
    align-items: stretch;
}

.future-map-card {
    position: relative;
    min-height: 250px;
    border: 1px solid rgba(155, 199, 196, 0.55);
    border-radius: 28px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255,255,255,0.88), rgba(230,246,242,0.86));
    box-shadow: 0 18px 44px rgba(21, 79, 98, 0.07);
}

.map-shape {
    position: absolute;
    display: block;
    border-radius: 38% 62% 48% 52%;
    opacity: 0.82;
}

.shape-one {
    width: 360px;
    height: 130px;
    left: 70px;
    top: 72px;
    background: linear-gradient(135deg, #bfe0d6, #7cbd90);
    transform: rotate(-8deg);
}

.shape-two {
    width: 320px;
    height: 96px;
    right: 70px;
    bottom: 58px;
    background: linear-gradient(135deg, #7fa7cf, #4fa8c6);
    transform: rotate(9deg);
}

.map-pin {
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 999px;
    background: #007a70;
    box-shadow: 0 0 0 8px rgba(0, 122, 112, 0.14);
}

.pin-one {
    left: 28%;
    top: 42%;
}

.pin-two {
    left: 52%;
    top: 54%;
}

.pin-three {
    right: 24%;
    top: 34%;
}

/* CTA */
.project-cta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    margin-bottom: 52px;
    padding: 28px 56px;
}

.project-cta > div {
    padding: 28px;
    border: 1px solid rgba(155, 199, 196, 0.55);
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(255,255,255,0.92), rgba(239,248,245,0.88));
    box-shadow: 0 18px 44px rgba(21, 79, 98, 0.07);
}

.project-cta a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border: 1px solid rgba(5, 96, 143, 0.32);
    border-radius: 999px;
    background: rgba(255,255,255,0.9);
    color: #004b8d;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
}

/* Responsive */
@media (max-width: 1280px) {
    .project-programme-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .project-story-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1180px) {
    .projects-hero,
    .projects-section-head,
    .project-template-panel,
    .project-map-panel,
    .project-cta {
        grid-template-columns: 1fr;
    }

    .projects-hero,
    .projects-section,
    .project-cta {
        padding-left: 32px;
        padding-right: 32px;
    }

    .project-theme-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .projects-hero {
        padding: 52px 18px 28px;
    }

    .projects-hero-copy {
        padding: 30px 24px;
        border-radius: 26px;
    }

    .projects-note-card {
        padding: 24px;
    }

    .projects-section,
    .project-cta {
        padding: 28px 18px;
    }

    .project-programme-grid,
    .project-story-grid,
    .template-card-grid,
    .project-theme-grid {
        grid-template-columns: 1fr;
    }

    .project-programme-card {
        min-height: auto;
    }

    .project-image {
        height: 130px;
    }

    .future-map-card {
        min-height: 210px;
    }
}

/* PATCH 16.1 — Projects page cleaner next steps */
.project-next-steps {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 28px;
    align-items: stretch;
}

.next-step-card {
    padding: 28px;
    border: 1px solid rgba(155, 199, 196, 0.55);
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(255,255,255,0.92), rgba(239,248,245,0.88));
    box-shadow: 0 18px 44px rgba(21, 79, 98, 0.07);
}

.next-step-card h2 {
    margin: 0 0 12px;
    color: #073466;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.75rem, 2vw, 2.25rem);
    line-height: 1.05;
    letter-spacing: -0.035em;
}

.next-step-card p {
    margin: 0;
    color: #315d72;
    font-size: 1rem;
    line-height: 1.5;
}

.next-step-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.next-step-links a {
    min-height: 190px;
    padding: 24px;
    border: 1px solid rgba(155, 199, 196, 0.55);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(238,248,244,0.9));
    color: #073466;
    text-decoration: none;
    box-shadow: 0 16px 40px rgba(21, 79, 98, 0.07);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.next-step-links a:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 122, 112, 0.42);
    box-shadow: 0 24px 54px rgba(21, 79, 98, 0.12);
}

.next-step-links strong {
    display: block;
    margin-bottom: 10px;
    color: #073466;
    font-size: 1.12rem;
    line-height: 1.15;
}

.next-step-links small {
    display: block;
    color: #315d72;
    font-size: 0.9rem;
    line-height: 1.42;
}

.next-step-links em {
    display: block;
    margin-top: 18px;
    color: #004b8d;
    font-style: normal;
    font-weight: 900;
}

@media (max-width: 1180px) {
    .project-next-steps {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .next-step-links {
        grid-template-columns: 1fr;
    }
}

/* PATCH 16.2 — Cleaner projects page */
.projects-hero-single {
    display: block;
}

.projects-hero-single .projects-hero-copy {
    max-width: 1100px;
}

.projects-section-head-simple {
    display: block;
}

.projects-section-head-simple p:not(.eyebrow) {
    display: none;
}

.projects-page .project-template-panel,
.projects-page .project-map-panel,
.projects-page .project-next-steps {
    display: none !important;
}

/* PATCH 16.3 — Projects page final spacing */
.projects-hero-single {
    padding-top: 48px;
    padding-bottom: 20px;
}

.projects-hero-single .projects-hero-copy {
    max-width: 1080px;
    margin: 0 auto;
    min-height: 205px;
}

.projects-section {
    padding-top: 24px;
    padding-bottom: 26px;
}

.projects-section-head {
    margin-bottom: 18px;
}

.project-programme-card {
    min-height: 265px;
}

.project-story-card {
    min-height: 100%;
}

.project-cta {
    margin-bottom: 38px;
    padding-top: 20px;
    padding-bottom: 24px;
}

.project-cta > div {
    padding: 24px 28px;
}

.project-cta h2 {
    font-size: clamp(1.8rem, 2.1vw, 2.4rem);
}

/* PATCH 17 — Project story template page */
.project-story-page {
    background: radial-gradient(circle at 14% 8%, rgba(193, 229, 221, 0.45), transparent 32rem),
    radial-gradient(circle at 86% 14%, rgba(225, 241, 238, 0.75), transparent 30rem),
    linear-gradient(180deg, #fbfcf8 0%, #f7fbf8 52%, #edf8f6 100%);
}

.project-story-page .main-nav a.is-active {
    color: #007a70;
}

.story-hero {
    max-width: 1480px;
    margin: 0 auto;
    padding: 48px 56px 26px;
}

.story-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 24px;
    color: #5b7788;
    font-size: 0.9rem;
    font-weight: 700;
}

.story-breadcrumbs a {
    color: #315d72;
    text-decoration: none;
}

.story-breadcrumbs a:hover {
    color: #007a70;
}

.story-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) 420px;
    gap: 28px;
    align-items: stretch;
}

.story-hero-copy {
    position: relative;
    min-height: 225px;
    padding: 34px 42px;
    border: 1px solid rgba(155, 199, 196, 0.55);
    border-radius: 30px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255,255,255,0.94), rgba(240,248,246,0.86)),
    radial-gradient(circle at 84% 16%, rgba(122, 189, 178, 0.22), transparent 20rem);
    box-shadow: 0 24px 60px rgba(21, 79, 98, 0.10);
}

.story-hero-copy::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 86px;
    pointer-events: none;
    opacity: 0.75;
    background: linear-gradient(160deg, transparent 0 32%, rgba(112, 168, 131, 0.20) 33% 56%, transparent 57%),
    linear-gradient(10deg, rgba(34, 128, 136, 0.16) 0 42%, transparent 43%);
}

.story-hero-copy > * {
    position: relative;
    z-index: 1;
}

.project-story-page .hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #007a70;
    font-size: 0.9rem;
    font-weight: 900;
}

.project-story-page .hero-kicker::before {
    content: "";
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: #007a70;
    box-shadow: 0 0 0 6px rgba(0, 122, 112, 0.12);
}

.story-hero-copy h1 {
    max-width: 780px;
    margin: 12px 0 18px;
    color: #073466;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.15rem, 2.85vw, 3.35rem);
    line-height: 1.02;
    letter-spacing: -0.045em;
}

.story-hero-copy p:not(.hero-kicker) {
    max-width: 760px;
    margin: 0;
    color: #244f68;
    font-size: 1rem;
    line-height: 1.55;
}

.story-meta-card {
    padding: 26px;
    border: 1px solid rgba(155, 199, 196, 0.65);
    border-radius: 30px;
    background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(241,249,247,0.9));
    box-shadow: 0 24px 60px rgba(21, 79, 98, 0.10);
}

.story-meta-card article {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid rgba(155, 199, 196, 0.36);
}

.story-meta-card article:first-child {
    padding-top: 0;
}

.story-meta-card article:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.meta-icon {
    width: 48px;
    height: 48px;
    display: block;
    border-radius: 50%;
    background: #e3f1ef;
    position: relative;
}

.meta-icon::before,
.meta-icon::after {
    content: "";
    position: absolute;
}

.leaf-icon::before {
    width: 24px;
    height: 14px;
    left: 12px;
    top: 17px;
    border: 3px solid #007a70;
    border-radius: 70% 0 70% 0;
    transform: rotate(-25deg);
}

.partner-meta-icon::before {
    width: 18px;
    height: 18px;
    left: 9px;
    top: 13px;
    border: 3px solid #007a70;
    border-radius: 50%;
}

.partner-meta-icon::after {
    width: 18px;
    height: 18px;
    right: 8px;
    top: 13px;
    border: 3px solid #007a70;
    border-radius: 50%;
}

.programme-meta-icon::before {
    width: 24px;
    height: 24px;
    left: 12px;
    top: 12px;
    border: 3px solid #1b6f96;
    border-radius: 50%;
}

.programme-meta-icon::after {
    width: 30px;
    height: 3px;
    left: 9px;
    top: 23px;
    background: #1b6f96;
    box-shadow: 0 -8px 0 rgba(27, 111, 150, 0.65), 0 8px 0 rgba(27, 111, 150, 0.65);
}

.link-meta-icon::before {
    width: 22px;
    height: 22px;
    left: 11px;
    top: 11px;
    border: 3px solid #007a70;
    border-radius: 5px;
}

.link-meta-icon::after {
    width: 14px;
    height: 14px;
    right: 9px;
    top: 8px;
    border-top: 3px solid #007a70;
    border-right: 3px solid #007a70;
}

.story-meta-card small {
    display: block;
    margin-bottom: 4px;
    color: #5b7788;
    font-size: 0.78rem;
    font-weight: 800;
}

.story-meta-card strong {
    display: block;
    color: #073466;
    font-size: 0.98rem;
    line-height: 1.25;
}

.story-image-hero {
    height: 230px;
    margin-top: 24px;
    border: 1px solid rgba(155, 199, 196, 0.55);
    border-radius: 26px;
    overflow: hidden;
    background: radial-gradient(circle at 18% 28%, rgba(255,255,255,0.9) 0 5%, transparent 6%),
    linear-gradient(160deg, #c8e2c4 0 28%, #7cbd90 29% 44%, #4fa8c6 45% 70%, #e8d47a 71%),
    linear-gradient(10deg, rgba(7,52,102,0.12) 0 34%, transparent 35%);
    box-shadow: 0 20px 50px rgba(21, 79, 98, 0.09);
}

.story-section {
    max-width: 1480px;
    margin: 0 auto;
    padding: 28px 56px 30px;
}

.story-info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.story-info-card {
    min-height: 250px;
    padding: 24px;
    border: 1px solid rgba(155, 199, 196, 0.55);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(243,250,248,0.86));
    box-shadow: 0 16px 40px rgba(21, 79, 98, 0.07);
}

.story-card-icon {
    width: 58px;
    height: 58px;
    display: block;
    margin-bottom: 18px;
    border-radius: 18px;
    background: #e3f1ef;
    position: relative;
}

.story-card-icon::before,
.story-card-icon::after {
    content: "";
    position: absolute;
}

.intro-icon::before {
    width: 24px;
    height: 30px;
    left: 17px;
    top: 14px;
    border: 3px solid #1b6f96;
    border-radius: 4px;
}

.bg-partner-icon::before {
    width: 19px;
    height: 19px;
    left: 10px;
    top: 16px;
    border: 3px solid #007a70;
    border-radius: 50%;
}

.bg-partner-icon::after {
    width: 19px;
    height: 19px;
    right: 10px;
    top: 16px;
    border: 3px solid #007a70;
    border-radius: 50%;
}

.activity-icon::before {
    width: 30px;
    height: 30px;
    left: 14px;
    top: 14px;
    border: 3px solid #007a70;
    border-radius: 50%;
}

.activity-icon::after {
    width: 18px;
    height: 3px;
    left: 20px;
    top: 27px;
    background: #007a70;
    box-shadow: 0 -8px 0 #007a70, 0 8px 0 #007a70;
}

.results-icon::before {
    width: 7px;
    height: 22px;
    left: 16px;
    bottom: 14px;
    border-radius: 999px;
    background: #1b6f96;
    box-shadow: 10px -8px 0 #4fa8c6, 20px -14px 0 #007a70;
}

.value-icon::before {
    width: 24px;
    height: 14px;
    left: 15px;
    top: 20px;
    border: 3px solid #007a70;
    border-radius: 70% 0 70% 0;
    transform: rotate(-25deg);
}

.tags-icon::before {
    width: 28px;
    height: 20px;
    left: 15px;
    top: 19px;
    border: 3px solid #1b6f96;
    border-radius: 6px;
    transform: rotate(-35deg);
}

.story-info-card h2 {
    margin: 0 0 12px;
    color: #073466;
    font-size: 1.18rem;
    line-height: 1.15;
}

.story-info-card p {
    margin: 0;
    color: #315d72;
    font-size: 0.94rem;
    line-height: 1.5;
}

.story-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.story-tags span {
    display: inline-flex;
    padding: 8px 12px;
    border: 1px solid rgba(0, 122, 112, 0.18);
    border-radius: 999px;
    background: rgba(0, 122, 112, 0.08);
    color: #007a70;
    font-size: 0.86rem;
    font-weight: 850;
}

.story-bottom-cta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    padding-bottom: 58px;
}

.story-bottom-cta > div {
    padding: 28px;
    border: 1px solid rgba(155, 199, 196, 0.55);
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(255,255,255,0.92), rgba(239,248,245,0.88));
    box-shadow: 0 18px 44px rgba(21, 79, 98, 0.07);
}

.story-bottom-cta h2 {
    margin: 0 0 10px;
    color: #073466;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.8rem, 2.1vw, 2.4rem);
    line-height: 1.05;
    letter-spacing: -0.035em;
}

.story-bottom-cta p {
    margin: 0;
    color: #315d72;
    font-size: 1rem;
    line-height: 1.5;
}

.story-bottom-cta a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border: 1px solid rgba(5, 96, 143, 0.32);
    border-radius: 999px;
    background: rgba(255,255,255,0.9);
    color: #004b8d;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
}

@media (max-width: 1180px) {
    .story-hero-grid,
    .story-bottom-cta {
        grid-template-columns: 1fr;
    }

    .story-hero,
    .story-section {
        padding-left: 32px;
        padding-right: 32px;
    }

    .story-info-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .story-hero {
        padding: 42px 18px 24px;
    }

    .story-hero-copy {
        padding: 30px 24px;
        border-radius: 26px;
    }

    .story-section {
        padding: 24px 18px;
    }

    .story-info-grid {
        grid-template-columns: 1fr;
    }

    .story-image-hero {
        height: 160px;
    }

    .story-meta-card {
        padding: 22px;
    }
}

/* PATCH 17.1 — Project story photo placeholder */
.story-image-hero {
    display: none;
}

.story-photo-hero {
    margin: 24px 0 0;
    height: 260px;
    border: 1px solid rgba(155, 199, 196, 0.55);
    border-radius: 26px;
    overflow: hidden;
    background: rgba(255,255,255,0.72);
    box-shadow: 0 20px 50px rgba(21, 79, 98, 0.09);
}

.story-photo-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(227, 241, 239, 0.72), rgba(255,255,255,0.64)),
    linear-gradient(160deg, rgba(112, 168, 131, 0.18), transparent 46%),
    linear-gradient(20deg, rgba(34, 128, 136, 0.16), transparent 54%);
}

.story-photo-placeholder span {
    padding: 12px 18px;
    border: 1px solid rgba(0, 122, 112, 0.22);
    border-radius: 999px;
    background: rgba(255,255,255,0.78);
    color: #315d72;
    font-weight: 850;
    font-size: 0.92rem;
}

/* PATCH 17.2 — Project story photo area refinement */
.story-photo-hero {
    height: 220px;
}

.story-photo-placeholder span {
    opacity: 0.85;
}

/* PATCH 18 — Project map placeholder page */
.project-map-page {
    background: radial-gradient(circle at 14% 8%, rgba(193, 229, 221, 0.45), transparent 32rem),
    radial-gradient(circle at 86% 14%, rgba(225, 241, 238, 0.75), transparent 30rem),
    linear-gradient(180deg, #fbfcf8 0%, #f7fbf8 52%, #edf8f6 100%);
}

.project-map-page .main-nav a.is-active {
    color: #007a70;
}

.map-hero {
    max-width: 1480px;
    margin: 0 auto;
    padding: 48px 56px 26px;
}

.map-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 24px;
    color: #5b7788;
    font-size: 0.9rem;
    font-weight: 700;
}

.map-breadcrumbs a {
    color: #315d72;
    text-decoration: none;
}

.map-breadcrumbs a:hover {
    color: #007a70;
}

.map-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) 420px;
    gap: 28px;
    align-items: stretch;
}

.map-hero-copy {
    position: relative;
    min-height: 245px;
    padding: 34px 42px;
    border: 1px solid rgba(155, 199, 196, 0.55);
    border-radius: 30px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255,255,255,0.94), rgba(240,248,246,0.86)),
    radial-gradient(circle at 84% 16%, rgba(122, 189, 178, 0.22), transparent 20rem);
    box-shadow: 0 24px 60px rgba(21, 79, 98, 0.10);
}

.map-hero-copy::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 86px;
    pointer-events: none;
    opacity: 0.75;
    background: linear-gradient(160deg, transparent 0 32%, rgba(112, 168, 131, 0.20) 33% 56%, transparent 57%),
    linear-gradient(10deg, rgba(34, 128, 136, 0.16) 0 42%, transparent 43%);
}

.map-hero-copy > * {
    position: relative;
    z-index: 1;
}

.project-map-page .hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #007a70;
    font-size: 0.9rem;
    font-weight: 900;
}

.project-map-page .hero-kicker::before {
    content: "";
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: #007a70;
    box-shadow: 0 0 0 6px rgba(0, 122, 112, 0.12);
}

.map-hero-copy h1 {
    max-width: 820px;
    margin: 12px 0 18px;
    color: #073466;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.15rem, 2.85vw, 3.35rem);
    line-height: 1.02;
    letter-spacing: -0.045em;
}

.map-hero-copy p:not(.hero-kicker) {
    max-width: 760px;
    margin: 0;
    color: #244f68;
    font-size: 1rem;
    line-height: 1.55;
}

.map-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.map-hero-actions a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 15px;
    border: 1px solid rgba(5, 96, 143, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    color: #004b8d;
    font-size: 0.92rem;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(21, 79, 98, 0.06);
}

.map-note-card {
    padding: 30px;
    border: 1px solid rgba(155, 199, 196, 0.65);
    border-radius: 30px;
    background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(241,249,247,0.9));
    box-shadow: 0 24px 60px rgba(21, 79, 98, 0.10);
}

.map-note-card h2 {
    margin: 0 0 14px;
    color: #073466;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.7rem;
    line-height: 1.05;
}

.map-note-card p {
    margin: 0;
    color: #28546d;
    font-size: 0.98rem;
    line-height: 1.55;
}

.map-section {
    max-width: 1480px;
    margin: 0 auto;
    padding: 28px 56px 30px;
}

.map-placeholder-card {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 28px;
    align-items: stretch;
}

.abstract-map {
    position: relative;
    min-height: 390px;
    border: 1px solid rgba(155, 199, 196, 0.55);
    border-radius: 30px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(230,246,242,0.88));
    box-shadow: 0 20px 50px rgba(21, 79, 98, 0.09);
}

.abstract-shape {
    position: absolute;
    display: block;
    border-radius: 38% 62% 48% 52%;
    opacity: 0.82;
}

.shape-a {
    width: 470px;
    height: 160px;
    left: 9%;
    top: 28%;
    background: linear-gradient(135deg, #bfe0d6, #7cbd90);
    transform: rotate(-8deg);
}

.shape-b {
    width: 430px;
    height: 130px;
    right: 9%;
    top: 35%;
    background: linear-gradient(135deg, #7fa7cf, #4fa8c6);
    transform: rotate(10deg);
}

.shape-c {
    width: 300px;
    height: 90px;
    left: 38%;
    bottom: 20%;
    background: linear-gradient(135deg, rgba(232, 212, 122, 0.7), rgba(122, 189, 178, 0.7));
    transform: rotate(-4deg);
}

.abstract-pin {
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #007a70;
    box-shadow: 0 0 0 9px rgba(0, 122, 112, 0.14);
}

.pin-a {
    left: 26%;
    top: 42%;
}

.pin-b {
    left: 48%;
    top: 56%;
}

.pin-c {
    right: 26%;
    top: 36%;
}

.pin-d {
    right: 38%;
    bottom: 26%;
}

.map-placeholder-text {
    padding: 30px;
    border: 1px solid rgba(155, 199, 196, 0.55);
    border-radius: 30px;
    background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(243,250,248,0.88));
    box-shadow: 0 18px 44px rgba(21, 79, 98, 0.07);
}

.map-placeholder-text h2,
.map-section-head h2,
.map-cta h2 {
    margin: 0 0 12px;
    color: #073466;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.8rem, 2.15vw, 2.45rem);
    line-height: 1.05;
    letter-spacing: -0.035em;
}

.map-placeholder-text p,
.map-cta p {
    margin: 0;
    color: #315d72;
    font-size: 1rem;
    line-height: 1.5;
}

.map-section-head {
    margin-bottom: 20px;
}

.map-filter-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.map-filter-grid article {
    min-height: 170px;
    padding: 22px;
    border: 1px solid rgba(155, 199, 196, 0.55);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(243,250,248,0.86));
    box-shadow: 0 16px 40px rgba(21, 79, 98, 0.07);
}

.map-filter-grid span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 34px;
    margin-bottom: 18px;
    border-radius: 999px;
    background: rgba(0, 122, 112, 0.10);
    color: #007a70;
    font-size: 0.85rem;
    font-weight: 950;
}

.map-filter-grid h3 {
    margin: 0 0 10px;
    color: #073466;
    font-size: 1.16rem;
    line-height: 1.15;
}

.map-filter-grid p {
    margin: 0;
    color: #315d72;
    font-size: 0.92rem;
    line-height: 1.45;
}

.map-cta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    padding-bottom: 58px;
}

.map-cta > div {
    padding: 28px;
    border: 1px solid rgba(155, 199, 196, 0.55);
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(255,255,255,0.92), rgba(239,248,245,0.88));
    box-shadow: 0 18px 44px rgba(21, 79, 98, 0.07);
}

.map-cta a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border: 1px solid rgba(5, 96, 143, 0.32);
    border-radius: 999px;
    background: rgba(255,255,255,0.9);
    color: #004b8d;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
}

@media (max-width: 1180px) {
    .map-hero-grid,
    .map-placeholder-card,
    .map-cta {
        grid-template-columns: 1fr;
    }

    .map-hero,
    .map-section {
        padding-left: 32px;
        padding-right: 32px;
    }

    .map-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .map-hero {
        padding: 42px 18px 24px;
    }

    .map-hero-copy,
    .map-note-card,
    .map-placeholder-text {
        padding: 24px;
        border-radius: 26px;
    }

    .map-section {
        padding: 24px 18px;
    }

    .abstract-map {
        min-height: 260px;
    }

    .map-filter-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   PATCH 11 — Romania–Bulgaria programme: Section 1 / Hero
   ========================================================= */
.robg-page {
    --robg-navy: #003b66;
    --robg-blue: #2e78b5;
    --robg-sky: #8fd2ae;
    --robg-teal: #4fb3b5;
    --robg-green: #6baa73;
    --robg-gold: #e1b64c;
    --robg-cream: #faf7f2;
    background: #f8fbfb;
}

.robg-hero {
    position: relative;
    overflow: hidden;
    padding: 0 0 42px;
    background: linear-gradient(180deg, rgba(255,255,255,.92) 0%, rgba(248,252,252,.86) 56%, #e8f5f6 100%);
}

.robg-hero::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 760px;
    background: linear-gradient(90deg, rgba(250,247,242,.995) 0%, rgba(250,247,242,.985) 39%, rgba(250,247,242,.78) 49%, rgba(250,247,242,.12) 68%),
    url("../images/romania-bulgaria/hero/hero-danube-landscape.png") center right / cover no-repeat;
}

.robg-hero::after {
    content: "";
    position: absolute;
    top: -185px;
    left: -310px;
    width: 1030px;
    height: 1110px;
    border-radius: 50%;
    background: rgba(250,247,242,.88);
    box-shadow: 80px 0 110px rgba(250,247,242,.34);
    pointer-events: none;
}

.robg-hero-art {
    position: absolute;
    inset: 0;
    height: 760px;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.robg-route-line {
    position: absolute;
    width: min(61vw, 920px);
    right: -24px;
    bottom: 4px;
    opacity: .82;
}

.robg-river-symbols {
    position: absolute;
    top: 25px;
    right: 8%;
    width: 240px;
    opacity: .78;
}

.robg-hero-shell {
    position: relative;
    z-index: 2;
    width: min(1440px, calc(100% - 56px));
    min-height: 760px;
    margin: 0 auto;
    padding: 28px 24px 42px;
    display: grid;
    grid-template-columns: minmax(470px, 1.04fr) minmax(500px, .96fr);
    gap: 42px;
    align-items: stretch;
}

.robg-hero-copy {
    position: relative;
    z-index: 3;
    max-width: 690px;
    padding: 0 0 20px 8px;
}

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

.robg-hub-label {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 30px;
    color: #16477f;
    font-size: 17px;
    font-weight: 900;
}

.robg-wave-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 34px;
    color: var(--robg-teal);
    font-size: 40px;
    font-weight: 400;
    line-height: 1;
    transform: rotate(-3deg);
}

.robg-hero-copy h1 {
    margin: 0 0 20px;
    color: var(--robg-navy);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    font-size: clamp(48px, 5.05vw, 78px);
    font-weight: 900;
    line-height: .99;
    letter-spacing: -3px;
}

.robg-hero-copy h1 span {
    display: inline-block;
    margin-top: 7px;
    color: #3190ad;
}

.robg-hero-copy h2 {
    max-width: 620px;
    margin: 0 0 18px;
    color: #2e9279;
    font-size: clamp(20px, 1.65vw, 27px);
    line-height: 1.32;
}

.robg-hero-copy p {
    max-width: 650px;
    margin: 0 0 13px;
    color: #12385e;
    font-size: 17px;
    line-height: 1.55;
}

.robg-hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    max-width: 640px;
    margin-top: 28px;
}

.robg-btn {
    min-height: 70px;
    display: grid;
    grid-template-columns: 32px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 13px 20px;
    border-radius: 16px;
    color: #fff;
    font-size: 16px;
    font-weight: 900;
    box-shadow: 0 14px 26px rgba(0,59,102,.14);
    transition: transform .18s ease, box-shadow .18s ease;
}

.robg-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 30px rgba(0,59,102,.2);
}

.robg-btn-primary {
    background: linear-gradient(135deg, #003b66, #165d93);
}

.robg-btn-secondary {
    background: linear-gradient(135deg, #399989, #52afa0);
}

.robg-btn-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1.5px solid rgba(255,255,255,.82);
    border-radius: 50%;
    font-size: 21px;
}

.robg-official-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 25px;
    color: #075aa3;
    font-weight: 900;
}

.robg-official-link span {
    font-size: 24px;
}

.robg-facts {
    position: relative;
    min-height: 680px;
}

.robg-fact-card {
    position: absolute;
    display: grid;
    grid-template-columns: 78px 1fr;
    align-items: center;
    gap: 15px;
    width: 285px;
    min-height: 142px;
    padding: 19px 20px;
    border: 1px solid rgba(255,255,255,.86);
    border-radius: 24px;
    background: rgba(255,255,255,.92);
    box-shadow: 0 16px 36px rgba(22,71,100,.17);
    backdrop-filter: blur(8px);
}

.robg-fact-card img {
    width: 72px;
    height: 72px;
    object-fit: contain;
}

.robg-fact-card strong,
.robg-fact-card b,
.robg-fact-card small {
    display: block;
}

.robg-fact-card strong {
    color: var(--robg-navy);
    font-size: 38px;
    line-height: .95;
}

.robg-fact-card b {
    margin-top: 7px;
    color: var(--robg-navy);
    font-size: 18px;
    line-height: 1.15;
}

.robg-fact-card small {
    margin-top: 11px;
    color: #143a5b;
    font-size: 12px;
    line-height: 1.42;
}

.robg-fact-budget {
    top: 26px;
    left: 8%;
}

.robg-fact-priorities {
    top: 212px;
    right: 1%;
}

.robg-fact-ev6 {
    bottom: 54px;
    left: -2%;
    width: 310px;
}

.robg-fact-territory {
    right: -2%;
    bottom: 12px;
    width: 302px;
}

.robg-ev6-icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 74px;
    height: 74px;
    border-radius: 50%;
    background: linear-gradient(145deg, #3e9fb5, #72cada);
    color: #fff;
}

.robg-ev6-icon svg {
    width: 44px;
    height: 44px;
    fill: none;
    stroke: currentColor;
    stroke-width: 3.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.robg-ev6-icon b {
    position: absolute;
    right: -5px;
    bottom: -4px;
    min-width: 34px;
    padding: 4px 6px;
    border-radius: 9px;
    background: #fff;
    color: #087ba0;
    font-size: 11px;
    text-align: center;
    box-shadow: 0 5px 10px rgba(0,59,102,.14);
}

.robg-quick-panel {
    position: relative;
    z-index: 4;
    width: min(1460px, calc(100% - 48px));
    margin: -4px auto 0;
    padding: 28px 38px 30px;
    overflow: hidden;
    border: 1px solid rgba(216,229,232,.88);
    border-radius: 24px;
    background: rgba(255,255,255,.95);
    box-shadow: 0 18px 42px rgba(28,73,98,.12);
}

.robg-quick-panel > h2 {
    position: relative;
    z-index: 2;
    margin: 0 0 18px;
    color: var(--robg-navy);
    font-size: 20px;
}

.robg-quick-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
}

.robg-quick-item {
    min-height: 96px;
    display: grid;
    grid-template-columns: 66px 1fr;
    align-items: center;
    gap: 14px;
    padding: 10px 22px;
    border-left: 1px solid #dbe5e7;
}

.robg-quick-item:first-child {
    padding-left: 0;
    border-left: 0;
}

.robg-quick-item img {
    width: 62px;
    height: 62px;
    object-fit: contain;
}

.robg-quick-item strong,
.robg-quick-item small {
    display: block;
}

.robg-quick-item strong {
    color: #073b75;
    font-size: 14px;
    line-height: 1.35;
}

.robg-quick-item small {
    margin-top: 8px;
    color: #173e5d;
    font-size: 12px;
    line-height: 1.45;
}

.robg-quick-item:hover strong {
    color: #218c83;
}

.robg-riverbank-decoration {
    position: absolute;
    right: -6px;
    bottom: -4px;
    z-index: 1;
    width: 310px;
    opacity: .7;
    pointer-events: none;
}

@media (max-width: 1260px) {
    .robg-hero-shell {
        grid-template-columns: minmax(420px, 1fr) minmax(420px, .9fr);
        gap: 12px;
    }

    .robg-fact-card {
        width: 268px;
    }

    .robg-fact-budget {
        left: 2%;
    }

    .robg-fact-priorities {
        right: 0;
    }

    .robg-fact-ev6 {
        left: 0;
    }

    .robg-fact-territory {
        right: 0;
    }

    .robg-quick-item {
        padding-left: 14px;
        padding-right: 14px;
    }
}

@media (max-width: 1080px) {
    .robg-hero::before {
        height: auto;
        inset: 0;
        background: linear-gradient(180deg, rgba(250,247,242,.96) 0%, rgba(250,247,242,.9) 55%, rgba(232,245,246,.82) 100%),
      url("../images/romania-bulgaria/hero/hero-danube-landscape.png") center / cover no-repeat;
    }

    .robg-hero::after {
        display: none;
    }

    .robg-hero-art {
        height: 100%;
    }

    .robg-hero-shell {
        width: min(920px, calc(100% - 40px));
        min-height: auto;
        grid-template-columns: 1fr;
        padding-top: 30px;
    }

    .robg-hero-copy {
        max-width: 760px;
        padding-left: 0;
    }

    .robg-facts {
        min-height: 0;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
        padding-bottom: 28px;
    }

    .robg-fact-card,
    .robg-fact-budget,
    .robg-fact-priorities,
    .robg-fact-ev6,
    .robg-fact-territory {
        position: static;
        width: 100%;
    }

    .robg-quick-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
    }

    .robg-quick-item:nth-child(odd) {
        border-left: 0;
    }

    .robg-quick-item {
        border-top: 1px solid #dbe5e7;
    }

    .robg-quick-item:nth-child(-n+2) {
        border-top: 0;
    }
}

@media (max-width: 700px) {
    .robg-hero-shell {
        width: min(100% - 28px, 640px);
        padding-left: 4px;
        padding-right: 4px;
    }

    .robg-hub-label {
        font-size: 14px;
    }

    .robg-hero-copy h1 {
        font-size: clamp(42px, 13vw, 58px);
        letter-spacing: -2px;
    }

    .robg-hero-copy p {
        font-size: 15.5px;
    }

    .robg-hero-actions,
    .robg-facts,
    .robg-quick-grid {
        grid-template-columns: 1fr;
    }

    .robg-btn {
        min-height: 64px;
    }

    .robg-fact-card {
        grid-template-columns: 66px 1fr;
        min-height: 126px;
    }

    .robg-fact-card img,
    .robg-ev6-icon {
        width: 62px;
        height: 62px;
    }

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

    .robg-quick-panel {
        width: calc(100% - 24px);
        padding: 24px 22px;
    }

    .robg-quick-item,
    .robg-quick-item:first-child {
        padding: 14px 0;
        border-left: 0;
        border-top: 1px solid #dbe5e7;
    }

    .robg-quick-item:first-child {
        border-top: 0;
    }

    .robg-riverbank-decoration {
        width: 220px;
        opacity: .35;
    }
}

/* =========================================================
   PATCH 12 — Romania–Bulgaria hero layout refinement
   ========================================================= */
.robg-hero-copy h1 > span {
    display: block;
    margin: 0;
}

.robg-hero-copy h1 .robg-title-programme,
.robg-hero-copy h1 .robg-title-country {
    color: var(--robg-navy);
}

.robg-hero-copy h1 .robg-title-years {
    margin-top: 6px;
    color: #3190ad;
}

@media (min-width: 1081px) {
    .robg-hero {
        padding-bottom: 34px;
    }

    .robg-hero::before,
    .robg-hero-art {
        height: 740px;
    }

    .robg-hero-shell {
        width: min(1480px, calc(100% - 56px));
        min-height: 740px;
        grid-template-columns: minmax(675px, 0.98fr) minmax(0, 1.02fr);
        gap: 24px;
        padding: 24px 24px 28px;
    }

    .robg-hero-copy {
        max-width: 670px;
        padding-bottom: 8px;
    }

    .robg-hero-copy .breadcrumbs {
        margin-bottom: 18px;
    }

    .robg-hub-label {
        margin-bottom: 20px;
    }

    .robg-hero-copy h1 {
        margin-bottom: 17px;
        font-size: clamp(58px, 4vw, 68px);
        line-height: 0.96;
        letter-spacing: -2.5px;
    }

    .robg-title-country {
        white-space: nowrap;
    }

    .robg-hero-copy h2 {
        max-width: 650px;
        margin-bottom: 15px;
        font-size: clamp(20px, 1.35vw, 23px);
        line-height: 1.3;
    }

    .robg-hero-copy p {
        max-width: 650px;
        margin-bottom: 11px;
        font-size: 16px;
        line-height: 1.48;
    }

    .robg-hero-actions {
        max-width: 620px;
        margin-top: 21px;
    }

    .robg-btn {
        min-height: 62px;
        padding: 11px 18px;
    }

    .robg-official-link {
        margin-top: 18px;
    }

    .robg-facts {
        min-height: 660px;
    }

    .robg-fact-budget {
        top: 22px;
        left: 7%;
    }

    .robg-fact-priorities {
        top: 190px;
        right: 0;
    }

    .robg-fact-ev6 {
        left: 0;
        bottom: 48px;
        width: 340px;
    }

    .robg-fact-ev6 strong {
        font-size: 31px;
        line-height: 1;
    }

    .robg-fact-territory {
        right: 0;
        bottom: 16px;
        width: 305px;
    }

    .robg-quick-panel {
        margin: -10px auto 0;
    }
}

/* =========================================================
   PATCH 13 — ROBG background scale + header logo
   ========================================================= */
/* Знакът на Knowledge Hub в основния header */
.site-header .brand-mark {
    position: relative;
    overflow: hidden;
}

.site-header .brand-mark::before {
    content: "";
    display: block;
    width: 29px;
    height: 18px;
    border-radius: 65% 35% 60% 40%;
    background: linear-gradient(135deg, #6eb16f, #2d91a7);
    transform: rotate(-18deg);
    box-shadow: 0 3px 7px rgba(27, 101, 112, 0.18);
}

/* По-малък пейзаж — корабът се прибира вдясно */
@media (min-width: 1081px) {
    .robg-hero::before {
        background: linear-gradient(
        90deg,
        rgba(250, 247, 242, 0.995) 0%,
        rgba(250, 247, 242, 0.985) 39%,
        rgba(250, 247, 242, 0.78) 49%,
        rgba(250, 247, 242, 0.12) 68%
      ) 0 0 / 100% 100% no-repeat,
      url("../images/romania-bulgaria/hero/hero-danube-landscape.png")
      right top / auto 700px no-repeat;
    }
}

/* =========================================================
   ROBG route line — final desktop position
   ========================================================= */
@media (min-width: 1081px) {
    .robg-route-line {
        width: min(1120px, 66vw);
        max-width: none;
        height: auto;
        top: 34px;
        right: -65px;
        bottom: auto;
        opacity: 0.56;
        pointer-events: none;
    }
}

/* Clickable ROBG fact card */
a.robg-fact-card {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: box-shadow 0.2s ease, filter 0.2s ease;
}

a.robg-fact-card:hover,
a.robg-fact-card:focus-visible {
    filter: brightness(1.025);
    box-shadow: 0 20px 42px rgba(10, 64, 103, 0.2);
}

/* =========================================================
   PATCH 2026-07-12 — MASTER INDEX VISUAL SYSTEM
   Applies only to index.html: body.home-page.master-landing
   ========================================================= */
.home-page.master-landing {
    --master-navy: #062f61;
    --master-blue: #0b5d9d;
    --master-teal: #08786c;
    --master-sage: #8eaa78;
    --master-mint: #eaf4ef;
    --master-sky: #eaf4f8;
    --master-cream: #fbf7ed;
    --master-warm: #fff4dc;
    --master-paper: #ffffff;
    --master-line: #d5e3e6;
    --master-text: #244b64;
    --master-shadow: 0 22px 55px rgba(9, 47, 83, 0.13);
    background: #fbfcf8;
}

/* Header and master logo */
.home-page.master-landing .site-header {
    height: 84px;
    padding-inline: clamp(24px, 4vw, 56px);
    background: rgba(255,255,255,0.97);
    border-bottom-color: rgba(10, 70, 101, 0.12);
    box-shadow: 0 8px 28px rgba(19, 61, 86, 0.06);
}

.home-page.master-landing .brand {
    min-width: 255px;
    gap: 11px;
}

.home-page.master-landing .brand-mark,
.home-page.master-landing .site-footer .brand-mark {
    width: 60px;
    height: 54px;
    flex: 0 0 60px;
    border-radius: 0;
    border: 0;
    box-shadow: none;
    background-color: transparent;
    background-image: url("../images/master-logo-mark-transparent.png");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}

.home-page.master-landing .brand-mark svg,
.home-page.master-landing .brand-mark::before,
.home-page.master-landing .site-footer .brand-mark::before {
    display: none !important;
    content: none !important;
}

.home-page.master-landing .brand-text strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 21px;
    line-height: 1.02;
    color: var(--master-navy);
}

.home-page.master-landing .brand-text small {
    margin-top: 2px;
    font-size: 13px;
    color: #0a4a60;
}

.home-page.master-landing .main-nav {
    gap: clamp(17px, 2.1vw, 31px);
    color: var(--master-navy);
}

.home-page.master-landing .main-nav a {
    position: relative;
}

.home-page.master-landing .main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: 5px;
    height: 2px;
    background: var(--master-teal);
    transition: right .2s ease;
}

.home-page.master-landing .main-nav a:hover::after,
.home-page.master-landing .main-nav a:focus-visible::after {
    right: 0;
}

/* Hero with the approved master landscape */
.home-page.master-landing .master-hero {
    min-height: clamp(560px, 72vh, 680px);
    margin: 0;
    background: var(--master-sky);
    isolation: isolate;
}

.home-page.master-landing .hero-bg {
    background: linear-gradient(90deg,
      rgba(255, 252, 246, 0.97) 0%,
      rgba(255, 252, 246, 0.90) 26%,
      rgba(255, 252, 246, 0.58) 48%,
      rgba(232, 245, 246, 0.14) 72%,
      rgba(8, 54, 72, 0.05) 100%),
    linear-gradient(180deg, rgba(230,244,248,0.10), rgba(8,53,71,0.10)),
    url("../images/master-hero.webp") center 52% / cover no-repeat;
}

.home-page.master-landing .hero-bg .sun,
.home-page.master-landing .hero-bg .mountains,
.home-page.master-landing .hero-bg .river,
.home-page.master-landing .hero-bg .bridge,
.home-page.master-landing .hero-bg .town,
.home-page.master-landing .hero-bg .hub-pin {
    display: none;
}

.home-page.master-landing .master-hero-inner {
    max-width: 1320px;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 405px);
    gap: clamp(44px, 6vw, 86px);
    padding: clamp(54px, 7vh, 82px) 34px clamp(58px, 8vh, 92px);
}

.home-page.master-landing .master-hero-copy {
    max-width: 770px;
    padding: 10px 0;
}

.home-page.master-landing .hero-kicker {
    color: var(--master-teal);
    background: rgba(255,255,255,0.82);
    border-color: rgba(124, 172, 172, 0.42);
    box-shadow: 0 10px 24px rgba(20, 70, 77, 0.08);
}

.home-page.master-landing .master-hero-copy h1 {
    max-width: 760px;
    margin: 0 0 22px;
    font-size: clamp(53px, 5vw, 70px);
    line-height: .9;
    letter-spacing: -2.2px;
    color: var(--master-navy);
    text-shadow: 0 2px 18px rgba(255,255,255,.55);
}

.home-page.master-landing .master-hero-copy h1 span {
    color: var(--master-teal);
}

.home-page.master-landing .master-hero-copy h2 {
    max-width: 665px;
    margin-bottom: 16px;
    color: var(--master-navy);
    font-size: clamp(22px, 2vw, 28px);
    line-height: 1.22;
}

.home-page.master-landing .master-hero-copy p:not(.hero-kicker) {
    max-width: 680px;
    color: #244c63;
    font-size: 17px;
    line-height: 1.58;
    text-align: justify;
}

.home-page.master-landing .hero-actions {
    margin-top: 26px;
}

.home-page.master-landing .btn {
    min-height: 48px;
    padding: 12px 23px;
    border-radius: 999px;
}

.home-page.master-landing .btn.primary {
    background: linear-gradient(135deg, #074e8f, #0a68a7);
    border-color: #075892;
    box-shadow: 0 12px 26px rgba(7, 78, 143, .22);
}

.home-page.master-landing .btn.ghost {
    background: rgba(255,255,255,.88);
    border-color: rgba(7, 63, 111, .45);
}

.home-page.master-landing .btn.soft {
    background: rgba(238,248,244,.92);
    color: var(--master-teal);
    border-color: rgba(8,120,108,.28);
}

/* Search panel */
.home-page.master-landing .hub-finder {
    padding: 27px;
    border-radius: 25px;
    background: rgba(255,255,255,.92);
    border-color: rgba(181, 205, 211, .82);
    box-shadow: var(--master-shadow);
    backdrop-filter: blur(14px);
}

.home-page.master-landing .hub-finder h3 {
    margin-bottom: 18px;
    color: var(--master-navy);
    font-size: 27px;
}

.home-page.master-landing .search-box {
    height: 54px;
    border-radius: 12px;
    border-color: #c9dbe1;
}

.home-page.master-landing .hub-finder .chips a {
    background: #eef7f5;
    border-color: #d3e5e2;
    color: #07558d;
}

.home-page.master-landing .hub-note {
    background: var(--master-warm);
    border-color: #ead49b;
    color: #61471c;
}

/* Main area and role section */
.home-page.master-landing main {
    background: radial-gradient(circle at 9% 16%, rgba(226,242,235,.72), transparent 25rem),
    radial-gradient(circle at 88% 62%, rgba(229,241,248,.68), transparent 28rem),
    linear-gradient(180deg, #fffef9 0%, #f7fbf8 100%);
}

.home-page.master-landing .homepage-roles {
    max-width: 1320px;
    padding: 58px 34px 70px;
}

.home-page.master-landing .homepage-roles h2 {
    max-width: none;
    margin-bottom: 24px;
    font-size: clamp(30px, 3vw, 40px);
    color: var(--master-navy);
}

.home-page.master-landing .role-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.home-page.master-landing .role-card {
    position: relative;
    min-height: 216px;
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    grid-template-rows: auto 1fr auto;
    gap: 9px 15px;
    align-items: start;
    padding: 18px 18px 18px 14px;
    overflow: hidden;
    border: 1px solid var(--master-line);
    border-radius: 24px;
    background: rgba(255,255,255,.91);
    box-shadow: 0 16px 34px rgba(24,67,88,.08);
}

.home-page.master-landing .role-card::after {
    content: "";
    position: absolute;
    inset: auto 18px 0 18px;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: var(--master-teal);
    opacity: .55;
}

.home-page.master-landing .role-card:nth-child(1) {
    background: linear-gradient(145deg, #f2f8ef, #ffffff);
}

.home-page.master-landing .role-card:nth-child(2) {
    background: linear-gradient(145deg, #edf5fb, #ffffff);
}

.home-page.master-landing .role-card:nth-child(3) {
    background: linear-gradient(145deg, #fff6e4, #ffffff);
}

.home-page.master-landing .role-card:nth-child(4) {
    background: linear-gradient(145deg, #f3f0fa, #ffffff);
}

.home-page.master-landing .role-card:nth-child(1)::after {
    background: #6e9a64;
}

.home-page.master-landing .role-card:nth-child(2)::after {
    background: #4382ae;
}

.home-page.master-landing .role-card:nth-child(3)::after {
    background: #c59736;
}

.home-page.master-landing .role-card:nth-child(4)::after {
    background: #7060a7;
}

.home-page.master-landing .role-illu {
    grid-row: 1 / 4;
    width: 112px;
    height: 178px;
    border: 0;
    border-radius: 18px;
    background-color: transparent;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    box-shadow: none;
    color: transparent;
    font-size: 0;
}

.home-page.master-landing .role-card:nth-child(1) .role-illu {
    background-image: url("../images/role-candidates.webp");
    background-position: 48% center;
}

.home-page.master-landing .role-card:nth-child(2) .role-illu {
    background-image: url("../images/role-beneficiaries.webp");
    background-position: 50% center;
}

.home-page.master-landing .role-card:nth-child(3) .role-illu {
    background-image: url("../images/role-partners.webp");
    background-position: 50% center;
}

.home-page.master-landing .role-card:nth-child(4) .role-illu {
    background-image: url("../images/role-controllers.webp");
    background-position: 50% center;
}

.home-page.master-landing .role-card strong {
    margin-top: 8px;
    color: var(--master-navy);
    font-size: 17px;
    line-height: 1.18;
}

.home-page.master-landing .role-card small {
    color: var(--master-text);
    font-size: 13px;
    line-height: 1.45;
}

.home-page.master-landing .role-card em {
    color: #075993;
    font-size: 13px;
}

/* Footer */
.home-page.master-landing .site-footer {
    margin-top: 0;
    padding-top: 42px;
    background: radial-gradient(circle at 8% 18%, rgba(255,255,255,.72), transparent 20rem),
    linear-gradient(180deg, #eaf6f7 0%, #d3eaf0 100%);
    border-top-color: #bdd9df;
}

.home-page.master-landing .footer-inner {
    max-width: 1320px;
}

.home-page.master-landing .footer-brand .brand {
    min-width: 0;
}

.home-page.master-landing .footer-brand .brand-mark {
    width: 54px;
    height: 48px;
    flex-basis: 54px;
}

.home-page.master-landing .disclaimer {
    max-width: 1320px;
}

@media (max-width: 1180px) {
    .home-page.master-landing .master-hero-inner {
        grid-template-columns: 1fr;
    }

    .home-page.master-landing .hub-finder {
        max-width: 620px;
    }

    .home-page.master-landing .role-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-page.master-landing .role-card {
        grid-template-columns: 150px minmax(0, 1fr);
    }

    .home-page.master-landing .role-illu {
        width: 150px;
    }
}

@media (max-width: 760px) {
    .home-page.master-landing .site-header {
        height: 74px;
        padding-inline: 18px;
    }

    .home-page.master-landing .brand-mark {
        width: 48px;
        height: 44px;
        flex-basis: 48px;
    }

    .home-page.master-landing .brand-text strong {
        font-size: 17px;
    }

    .home-page.master-landing .master-hero {
        min-height: auto;
    }

    .home-page.master-landing .hero-bg {
        background: linear-gradient(180deg, rgba(255,252,246,.94) 0%, rgba(255,252,246,.73) 54%, rgba(228,243,244,.28) 100%),
      url("../images/master-hero.webp") 68% center / cover no-repeat;
    }

    .home-page.master-landing .master-hero-inner,
    .home-page.master-landing .homepage-roles {
        padding-left: 20px;
        padding-right: 20px;
    }

    .home-page.master-landing .master-hero-copy h1 {
        font-size: 43px;
        letter-spacing: -1.2px;
    }

    .home-page.master-landing .role-grid {
        grid-template-columns: 1fr;
    }

    .home-page.master-landing .role-card {
        grid-template-columns: 120px minmax(0, 1fr);
        min-height: 190px;
    }

    .home-page.master-landing .role-illu {
        width: 120px;
        height: 154px;
    }
}

@media (max-width: 480px) {
    .home-page.master-landing .brand-text small {
        display: none;
    }

    .home-page.master-landing .master-hero-copy h1 {
        font-size: 38px;
    }

    .home-page.master-landing .role-card {
        grid-template-columns: 96px minmax(0, 1fr);
        padding-left: 12px;
    }

    .home-page.master-landing .role-illu {
        width: 96px;
        height: 145px;
    }
}

/* =========================================================
   MASTER INDEX — width and proportions refinement
   ========================================================= */
@media (min-width: 1081px) {
    /* Общата работна ширина */
    .home-page.master-landing .master-hero-inner,
    .home-page.master-landing .homepage-roles,
    .home-page.master-landing .footer-inner,
    .home-page.master-landing .disclaimer {
        width: calc(100% - 64px);
        max-width: 1180px;
        margin-left: auto;
        margin-right: auto;
    }

    /* По-добър баланс между текста и търсачката */
    .home-page.master-landing .master-hero-inner {
        grid-template-columns: minmax(0, 1fr)
      minmax(340px, 380px);
        gap: 48px;
    }

    /* Заглавието да не изглежда прекалено тежко */
    .home-page.master-landing .master-hero-copy h1 {
        max-width: 760px;
        font-size: clamp(52px, 4.2vw, 64px);
        line-height: 0.96;
    }

    /* Картите да не се разтягат излишно */
    .home-page.master-landing .role-grid {
        gap: 18px;
    }

    .home-page.master-landing .role-card {
        min-width: 0;
    }
}

/* =========================================================
   MASTER INDEX — role section balance
   ========================================================= */
@media (min-width: 1081px) {
    /* Hero остава стегнат и централен */
    .home-page.master-landing .master-hero-inner {
        max-width: 1180px;
    }

    /* Role секцията има нужда от малко повече ширина */
    .home-page.master-landing .homepage-roles {
        width: calc(100% - 64px);
        max-width: 1320px;
        padding-top: 52px;
        padding-bottom: 58px;
    }

    .home-page.master-landing .homepage-roles > h2 {
        font-size: 42px;
        line-height: 1.08;
        margin-bottom: 28px;
    }

    .home-page.master-landing .role-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 20px;
    }

    .home-page.master-landing .role-card {
        min-height: 270px;
        padding: 20px;
        grid-template-columns: 118px minmax(0, 1fr);
        column-gap: 18px;
    }

    .home-page.master-landing .role-illu {
        width: 118px;
        height: 180px;
    }

    .home-page.master-landing .role-card strong {
        font-size: 18px;
        line-height: 1.15;
    }

    .home-page.master-landing .role-card small {
        font-size: 15px;
        line-height: 1.48;
    }

    .home-page.master-landing .role-card em {
        align-self: end;
    }
}

/* =========================================================
   MASTER INDEX — final role cards refinement
   ========================================================= */
@media (min-width: 1081px) {
    .home-page.master-landing .homepage-roles {
        padding-top: 44px;
        padding-bottom: 50px;
    }

    .home-page.master-landing .homepage-roles > h2 {
        font-size: 38px;
        line-height: 1.08;
        margin-bottom: 24px;
    }

    .home-page.master-landing .role-grid {
        gap: 18px;
    }

    .home-page.master-landing .role-card {
        min-height: 238px;
        padding: 18px;
        grid-template-columns: 100px minmax(0, 1fr);
        column-gap: 16px;
        row-gap: 8px;
    }

    .home-page.master-landing .role-illu {
        width: 100px;
        height: 156px;
        border-radius: 16px;
    }

    .home-page.master-landing .role-card strong {
        font-size: 17px;
        line-height: 1.16;
    }

    .home-page.master-landing .role-card small {
        font-size: 14px;
        line-height: 1.44;
    }

    .home-page.master-landing .role-card em {
        margin-top: auto;
        align-self: end;
        font-size: 13px;
    }
}

@media (min-width: 1081px) {
    .home-page.master-landing .homepage-roles > h2 {
        font-size: 36px;
    }
}

/* =========================================================
   MASTER — PROGRAMMES PAGE COMPACT DIRECTORY
   ========================================================= */
@media (min-width: 1081px) {
    /* Hero */
    .programmes-page .programmes-hero {
        max-width: 1240px;
        padding: 42px 32px 24px;
        grid-template-columns: minmax(0, 1.45fr) 360px;
        gap: 24px;
    }

    .programmes-page .programmes-hero-copy {
        min-height: 0;
        padding: 30px 34px;
        border-radius: 26px;
    }

    .programmes-page .programmes-hero-copy h1 {
        max-width: 720px;
        margin: 10px 0 14px;
        font-size: clamp(2.2rem, 3vw, 3.2rem);
        line-height: 1;
    }

    .programmes-page .programmes-hero-copy p:not(.hero-kicker) {
        max-width: 680px;
        font-size: 0.96rem;
        line-height: 1.5;
    }

    .programmes-page .programme-filter-links {
        margin-top: 18px;
        gap: 8px;
    }

    .programmes-page .programme-filter-links a {
        min-height: 36px;
        padding: 0 14px;
        font-size: 0.88rem;
    }

    .programmes-page .programmes-guide-card {
        padding: 26px;
        border-radius: 26px;
    }

    .programmes-page .programmes-guide-card h2 {
        font-size: 1.45rem;
    }

    .programmes-page .programmes-guide-card p {
        font-size: 0.94rem;
        line-height: 1.5;
    }

    /* Основни секции */
    .programmes-page .programme-section {
        max-width: 1240px;
        padding: 22px 32px 26px;
    }

    .programmes-page .programme-section-head {
        gap: 24px;
        margin-bottom: 16px;
    }

    .programmes-page .programme-section-head h2,
    .programmes-page .horizontal-panel h2 {
        font-size: clamp(1.75rem, 2vw, 2.2rem);
    }

    .programmes-page .programme-section-head p,
    .programmes-page .horizontal-panel p {
        font-size: 0.96rem;
        line-height: 1.45;
    }

    /* Програмни карти */
    .programmes-page .programme-card-grid {
        gap: 16px;
    }

    .programmes-page .programme-large-card {
        min-height: 224px;
        padding: 18px;
        border-radius: 20px;
    }

    .programmes-page .programme-thumb {
        height: 68px;
        margin: -18px -18px 14px;
    }

    .programmes-page .programme-meta {
        margin-bottom: 6px;
        font-size: 0.78rem;
    }

    .programmes-page .programme-large-card strong {
        margin-bottom: 7px;
        font-size: 1.04rem;
        line-height: 1.15;
    }

    .programmes-page .programme-large-card small {
        font-size: 0.86rem;
        line-height: 1.38;
    }

    .programmes-page .programme-large-card em {
        padding-top: 12px;
        font-size: 0.88rem;
    }

    /* ESPON / INTERACT */
    .programmes-page .horizontal-panel {
        gap: 22px;
        margin-top: 16px;
        margin-bottom: 30px;
        padding-top: 26px;
    }

    .programmes-page .horizontal-resource-grid {
        gap: 16px;
    }

    .programmes-page .resource-card {
        min-height: 158px;
        padding: 18px;
        border-radius: 22px;
    }

    .programmes-page .resource-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 12px;
        border-radius: 15px;
    }

    .programmes-page .resource-card strong {
        margin-bottom: 7px;
        font-size: 1.04rem;
    }

    .programmes-page .resource-card small {
        font-size: 0.86rem;
        line-height: 1.4;
    }

    .programmes-page .resource-card em {
        margin-top: 12px;
        font-size: 0.88rem;
    }
}

/* =========================================================
   MASTER CONTENT PAGES — header and footer logo
   Програми, Проекти, Полезно, Документи, FAQ, За сайта
   ========================================================= */
/* Новият master знак */
.content-page .site-header .brand-mark,
.content-page .site-footer .brand-mark {
    flex: 0 0 auto;
    border: 0;
    border-radius: 0;
    background-color: transparent;
    background-image: url("../images/master-logo-mark-transparent.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    box-shadow: none;
}

/* Старото SVG и старите CSS листа вече не се показват */
.content-page .site-header .brand-mark svg,
.content-page .site-footer .brand-mark svg,
.content-page .site-header .brand-mark::before,
.content-page .site-footer .brand-mark::before {
    display: none !important;
    content: none !important;
}

/* Header logo */
.content-page .site-header .brand {
    min-width: 255px;
    gap: 11px;
}

.content-page .site-header .brand-mark {
    width: 60px;
    height: 54px;
}

.content-page .site-header .brand-text strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 21px;
    line-height: 1.02;
    color: #062f61;
}

.content-page .site-header .brand-text small {
    margin-top: 2px;
    font-size: 13px;
    line-height: 1.05;
    color: #0a4a60;
}

/* Footer logo — малко по-компактно */
.content-page .site-footer .brand {
    gap: 10px;
}

.content-page .site-footer .brand-mark {
    width: 50px;
    height: 44px;
    flex-basis: 50px;
}

.content-page .site-footer .brand-text strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 19px;
    line-height: 1.02;
    color: #062f61;
}

.content-page .site-footer .brand-text small {
    margin-top: 2px;
    font-size: 12px;
    line-height: 1.05;
    color: #0a4a60;
}

/* Tablet и mobile */
@media (max-width: 760px) {
    .content-page .site-header .brand {
        min-width: 0;
    }

    .content-page .site-header .brand-mark {
        width: 48px;
        height: 43px;
    }

    .content-page .site-header .brand-text strong {
        font-size: 17px;
    }

    .content-page .site-header .brand-text small {
        font-size: 11px;
    }
}

/* =========================================================
   PROGRAMMES.HTML — STRUCTURE PREP FOR FINAL VISUAL ASSETS
   Append this block at the end of assets/css/local-hub.css
   ========================================================= */
/* 1. Hero navigation: four compact thematic entries */
.programmes-page .programme-type-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.programmes-page .programme-type-link {
    min-width: 0;
    min-height: 50px;
    padding: 8px 12px;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    border: 1px solid rgba(5, 96, 143, 0.18);
    border-radius: 15px;
    background: rgba(255,255,255,0.84);
    color: #073466;
    font-size: 0.82rem;
    font-weight: 900;
    line-height: 1.14;
    box-shadow: 0 10px 22px rgba(21,79,98,0.06);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.programmes-page .programme-type-link:hover,
.programmes-page .programme-type-link:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(0,122,112,.38);
    box-shadow: 0 14px 28px rgba(21,79,98,.10);
    outline: none;
}

.programmes-page .programme-type-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: #e9f5f2;
    color: #08786f;
}

.programmes-page .programme-type-icon svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.programmes-page .programme-type-link.is-wave .programme-type-icon {
    color: #177eaa;
    background: #e9f4fa;
}

.programmes-page .programme-type-link.is-network .programme-type-icon {
    color: #7654a8;
    background: #f2eef9;
}

.programmes-page .programme-type-link.is-resources .programme-type-icon {
    color: #b9841f;
    background: #fff6df;
}

/* 2. Programme cards: dedicated logo + landscape + content zones */
.programmes-page .programme-large-card {
    padding: 0;
    min-height: 278px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: rgba(255,255,255,.94);
}

.programmes-page .programme-card-media {
    position: relative;
    min-height: 102px;
    display: grid;
    grid-template-columns: minmax(138px, 38%) minmax(0, 62%);
    overflow: hidden;
    border-bottom: 1px solid rgba(155,199,196,.42);
    background: #f8fbfa;
}

.programmes-page .programme-card-logo-slot,
.programmes-page .programme-card-landscape-slot {
    position: relative;
    min-width: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.programmes-page .programme-card-logo-slot {
    padding: 12px 10px 10px 14px;
    background: radial-gradient(circle at 18% 22%, rgba(225,244,238,.72), transparent 48%),
    linear-gradient(135deg, #ffffff, #f6faf8);
}

.programmes-page .programme-card-logo-slot::after {
    content: "";
    position: absolute;
    right: -1px;
    top: 14px;
    bottom: 14px;
    width: 1px;
    background: rgba(155,199,196,.38);
}

.programmes-page .programme-card-logo-image {
    width: 100%;
    height: 78px;
    display: block;
    object-fit: contain;
    object-position: left center;
}

.programmes-page .programme-card-landscape-image {
    width: 100%;
    height: 102px;
    display: block;
    object-fit: cover;
    object-position: center;
    transform: scale(1.001);
    transition: transform .28s ease, filter .28s ease;
}

.programmes-page .programme-large-card:hover .programme-card-landscape-image,
.programmes-page .programme-large-card:focus-visible .programme-card-landscape-image {
    transform: scale(1.035);
    filter: saturate(1.04) contrast(1.02);
}

.programmes-page .programme-card-content {
    flex: 1;
    min-width: 0;
    padding: 16px 18px 17px;
    display: flex;
    flex-direction: column;
}

.programmes-page .programme-card-content .programme-meta {
    margin-bottom: 6px;
    color: #587586;
    font-size: .78rem;
    font-weight: 850;
}

.programmes-page .programme-card-content strong {
    margin-bottom: 7px;
    color: #073466;
    font-size: 1.05rem;
    line-height: 1.16;
}

.programmes-page .programme-card-content small {
    color: #315d72;
    font-size: .86rem;
    line-height: 1.42;
}

.programmes-page .programme-card-content em {
    margin-top: auto;
    padding-top: 13px;
    color: #005394;
    font-size: .88rem;
    font-style: normal;
    font-weight: 900;
}

/* Thin programme accent, ready to be matched to the final assets */
.programmes-page .programme-large-card::after {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 0;
    height: 3px;
    border-radius: 999px 999px 0 0;
    background: linear-gradient(90deg, #68b58a, #2d95b3);
    opacity: .78;
}

.programmes-page .programme-large-card.turkey::after,
.programmes-page .programme-large-card.euro-med::after,
.programmes-page .programme-large-card.urbact::after {
    background: linear-gradient(90deg, #d7b44e, #42a59c);
}

.programmes-page .programme-large-card.europe::after {
    background: linear-gradient(90deg, #7c91cc, #40a39e);
}

.programmes-page .programme-large-card:focus-visible {
    outline: 3px solid rgba(0,122,112,.22);
    outline-offset: 3px;
}

/* 3. Two-card section can use a slightly wider logo area */
.programmes-page .two-grid .programme-card-media {
    grid-template-columns: minmax(190px, 38%) minmax(0, 62%);
}

/* 4. Responsive */
@media (max-width: 1180px) {
    .programmes-page .programme-type-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .programmes-page .programme-card-media,
    .programmes-page .two-grid .programme-card-media {
        grid-template-columns: minmax(150px, 38%) minmax(0, 62%);
    }
}

@media (max-width: 760px) {
    .programmes-page .programme-type-nav {
        grid-template-columns: 1fr;
    }

    .programmes-page .programme-type-link {
        min-height: 48px;
    }

    .programmes-page .programme-card-media,
    .programmes-page .two-grid .programme-card-media {
        min-height: 112px;
        grid-template-columns: minmax(125px, 38%) minmax(0, 62%);
    }

    .programmes-page .programme-card-logo-image {
        height: 82px;
    }

    .programmes-page .programme-card-landscape-image {
        height: 112px;
    }

    .programmes-page .programme-card-content {
        padding: 15px 16px 17px;
    }
}

/* България – Северна Македония: реално центриране */
.programmes-page
.programme-card-logo-image[src$="bulgaria-north-macedonia-logo.png"] {
    position: static;
    left: auto;
    transform: scale(1.28);
    transform-origin: center;
    object-position: center center;
}

/* Дунавски регион: увеличаване на логото */
.programmes-page
.programme-card-logo-image[src$="danube-region-logo.png"] {
    transform: scale(1.55);
    transform-origin: center center;
    object-position: center center;
}

/* Euro-MED: увеличаване на логото */
.programmes-page
.programme-card-logo-image[src$="euro-med-logo.png"] {
    transform: scale(1.65);
    transform-origin: center center;
    object-position: center center;
}

/* NEXT Черноморски басейн: увеличаване на логото */
.programmes-page
.programme-card-logo-image[src$="black-sea-basin-logo.png"] {
    transform: scale(1.75);
    transform-origin: center center;
    object-position: center center;
}

/* Interreg Europe: увеличаване на логото */
.programmes-page
.programme-card-logo-image[src$="interreg-europe-logo.png"] {
    transform: scale(1.15);
    transform-origin: center center;
    object-position: center center;
}

/* URBACT IV: увеличаване на логото */
.programmes-page
.programme-card-logo-image[src$="urbact-logo.png"] {
    transform: scale(1.45);
    transform-origin: center center;
    object-position: center center;
}

/* Хоризонтални ресурси: компактни лога */
.programmes-page .horizontal-resource-grid .programme-card-logo-slot {
    width: 64px;
    height: 64px;
    min-height: 0;
    flex: 0 0 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    margin: 0 0 14px;
    padding: 0;
    overflow: visible;
}

.programmes-page .horizontal-resource-grid .programme-card-logo-icon {
    width: 58px;
    height: 58px;
    max-width: 58px;
    max-height: 58px;
    object-fit: contain;
    display: block;
    transform: none;
}

/* =========================================================
   PATCH 19 — Programmes navigation hub + category pages
   ========================================================= */
/* Master programmes page: hero becomes the complete directory. */
.programmes-hub-page main {
    min-height: 0;
}

.programmes-hub-page .programmes-hero {
    padding-top: 72px;
    padding-bottom: 78px;
    align-items: stretch;
}

.programmes-hub-page .programmes-hero-copy {
    min-height: 390px;
    padding: 48px 54px;
}

.programmes-hub-page .programme-type-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 28px;
}

.programmes-hub-page .programme-type-link {
    min-height: 78px;
    padding: 12px 15px;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    border-radius: 18px;
    background: rgba(255,255,255,.88);
}

.programmes-hub-page .programme-type-icon {
    width: 42px;
    height: 42px;
    border-radius: 13px;
}

.programmes-hub-page .programme-type-icon svg {
    width: 24px;
    height: 24px;
}

.programmes-hub-page .programme-type-copy {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.programmes-hub-page .programme-type-label {
    color: #073466;
    font-size: .96rem;
    line-height: 1.12;
}

.programmes-hub-page .programme-type-copy small {
    color: #5b7788;
    font-size: .76rem;
    font-weight: 750;
    line-height: 1.28;
}

.programmes-hub-page .programmes-guide-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.programmes-hub-page .site-footer {
    margin-top: 0;
}

/* Category page hero. */
.programme-category-page {
    --category-accent: #007a70;
    --category-accent-rgb: 0, 122, 112;
    --category-soft: #e9f6f1;
}

.programme-category-page.category-transnational {
    --category-accent: #217fa5;
    --category-accent-rgb: 33, 127, 165;
    --category-soft: #e9f4fa;
}

.programme-category-page.category-networks {
    --category-accent: #7053a2;
    --category-accent-rgb: 112, 83, 162;
    --category-soft: #f1edf8;
}

.programme-category-page.category-resources {
    --category-accent: #b17d18;
    --category-accent-rgb: 177, 125, 24;
    --category-soft: #fff5dd;
}

.programme-category-hero {
    max-width: 1480px;
    margin: 0 auto;
    padding: 64px 56px 28px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 32px;
    align-items: stretch;
}

.programme-category-hero-copy,
.programme-category-summary {
    border: 1px solid rgba(155,199,196,.58);
    box-shadow: 0 24px 60px rgba(21,79,98,.10);
}

.programme-category-hero-copy {
    position: relative;
    overflow: hidden;
    min-height: 250px;
    padding: 38px 46px;
    border-radius: 30px;
    background: radial-gradient(circle at 88% 16%, rgba(var(--category-accent-rgb), .16), transparent 21rem),
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(243,250,248,.90));
}

.programme-category-hero-copy::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 76px;
    pointer-events: none;
    background: linear-gradient(163deg, transparent 0 34%, rgba(var(--category-accent-rgb), .12) 35% 58%, transparent 59%),
    linear-gradient(9deg, rgba(112,168,131,.13) 0 42%, transparent 43%);
}

.programme-category-hero-copy > * {
    position: relative;
    z-index: 1;
}

.programme-category-back {
    display: inline-flex;
    margin-bottom: 24px;
    color: #315d72;
    font-size: .88rem;
    font-weight: 850;
}

.programme-category-back:hover,
.programme-category-bottom a:hover {
    color: var(--category-accent);
}

.programme-category-hero .eyebrow {
    color: var(--category-accent);
}

.programme-category-hero .eyebrow::before {
    background: var(--category-accent);
    box-shadow: 0 0 0 6px rgba(var(--category-accent-rgb), .12);
}

.programme-category-hero h1 {
    max-width: 920px;
    margin: 10px 0 16px;
    color: #073466;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.4rem, 4vw, 3.5rem);
    line-height: .98;
    letter-spacing: -.05em;
}

.programme-category-hero-copy > p:last-child {
    max-width: 760px;
    margin: 0;
    color: #315d72;
    font-size: 1.03rem;
    line-height: 1.58;
}

.programme-category-summary {
    padding: 30px;
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: radial-gradient(circle at 78% 18%, rgba(var(--category-accent-rgb), .14), transparent 12rem),
    linear-gradient(180deg, #ffffff, var(--category-soft));
}

.programme-category-summary strong {
    display: block;
    margin-bottom: 8px;
    color: var(--category-accent);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2.15rem;
    line-height: 1;
}

.programme-category-summary span {
    display: block;
    margin-bottom: 18px;
    color: #073466;
    font-size: 1.02rem;
    font-weight: 900;
    line-height: 1.3;
}

.programme-category-summary small {
    color: #5b7788;
    font-size: .9rem;
    line-height: 1.45;
}

.programme-category-list {
    padding-top: 22px;
    padding-bottom: 66px;
}

.programme-category-page .programme-large-card,
.programme-category-page .resource-card {
    background: rgba(255,255,255,.94);
}

.programme-category-page .horizontal-resource-grid {
    max-width: 900px;
    margin: 0 auto;
}

.programme-category-bottom {
    display: flex;
    justify-content: center;
    margin-top: 34px;
}

.programme-category-bottom a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid rgba(5,96,143,.20);
    border-radius: 999px;
    background: rgba(255,255,255,.82);
    color: #315d72;
    font-size: .9rem;
    font-weight: 900;
    box-shadow: 0 10px 24px rgba(21,79,98,.06);
}

.programme-category-page .site-footer {
    margin-top: 0;
}

@media (max-width: 1180px) {
    .programmes-hub-page .programme-type-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .programme-category-hero {
        grid-template-columns: 1fr;
        padding-left: 32px;
        padding-right: 32px;
    }

    .programme-category-summary {
        min-height: 190px;
    }
}

@media (max-width: 760px) {
    .programmes-hub-page .programmes-hero {
        padding-top: 42px;
        padding-bottom: 48px;
    }

    .programmes-hub-page .programmes-hero-copy {
        min-height: auto;
        padding: 34px 24px;
    }

    .programmes-hub-page .programme-type-nav {
        grid-template-columns: 1fr;
    }

    .programmes-hub-page .programme-type-link {
        min-height: 68px;
    }

    .programme-category-hero {
        padding: 44px 18px 20px;
    }

    .programme-category-hero-copy {
        min-height: auto;
        padding: 30px 24px;
        border-radius: 26px;
    }

    .programme-category-summary {
        min-height: auto;
        padding: 24px;
        border-radius: 26px;
    }

    .programme-category-list {
        padding-top: 18px;
        padding-bottom: 48px;
    }
}

/* =========================================================
   PATCH 20 — Unified panoramic background for programmes hub
   Replaces the separate corner images with one continuous scene.
   ========================================================= */
.programmes-hub-page main {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: calc(100vh - 84px);
    background: #f5faf8;
}

.programmes-hub-page main::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background: url("../images/programmes/landscapes/programmes-hub-panorama.webp")
    center center / cover no-repeat;
    opacity: 0.46;
    filter: saturate(0.88) contrast(0.95) brightness(1.06);
    transform: scale(1.015);
}

.programmes-hub-page main::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(
      ellipse at 50% 44%,
      rgba(255,255,255,0.98) 0 25%,
      rgba(255,255,255,0.91) 43%,
      rgba(249,252,249,0.60) 66%,
      rgba(246,250,247,0.20) 100%
    ),
    linear-gradient(
      180deg,
      rgba(244,250,248,0.28) 0%,
      rgba(255,253,247,0.18) 72%,
      rgba(220,241,244,0.74) 100%
    );
}

.programmes-hub-page .programmes-hero {
    position: relative;
    z-index: 1;
    padding-top: 72px;
    padding-bottom: 84px;
}

.programmes-hub-page .programmes-hero-copy,
.programmes-hub-page .programmes-guide-card {
    background: linear-gradient(
      145deg,
      rgba(255,255,255,0.95),
      rgba(240,249,246,0.88)
    );
    border-color: rgba(142,193,192,0.62);
    box-shadow: 0 28px 70px rgba(21,79,98,0.15);
    -webkit-backdrop-filter: blur(7px) saturate(1.05);
    backdrop-filter: blur(7px) saturate(1.05);
}

.programmes-hub-page .programmes-guide-card {
    position: relative;
    overflow: hidden;
}

.programmes-hub-page .programmes-guide-card::after {
    content: "";
    position: absolute;
    right: -62px;
    bottom: -68px;
    width: 250px;
    height: 210px;
    border-radius: 50%;
    opacity: 0.18;
    pointer-events: none;
    background: radial-gradient(circle at 30% 32%, #72bc8b 0 7px, transparent 8px),
    radial-gradient(circle at 62% 24%, #4fa8c6 0 7px, transparent 8px),
    radial-gradient(circle at 72% 62%, #e3c66d 0 7px, transparent 8px),
    radial-gradient(circle at 34% 72%, #7654a8 0 7px, transparent 8px),
    radial-gradient(circle at center, transparent 0 42%, #4fa8c6 43% 45%, transparent 46%);
}

.programmes-hub-page .programmes-guide-card > * {
    position: relative;
    z-index: 1;
}

.programmes-hub-page .programme-type-nav {
    gap: 14px;
    margin-top: 28px;
}

.programmes-hub-page .programme-type-link {
    position: relative;
    min-height: 90px;
    padding: 14px 48px 14px 14px;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 13px;
    align-items: center;
    overflow: hidden;
    border-radius: 19px;
    background: rgba(255,255,255,0.92);
    box-shadow: 0 13px 30px rgba(21,79,98,0.11);
}

.programmes-hub-page .programme-type-link::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
}

.programmes-hub-page .programme-type-link::after {
    content: "→";
    position: absolute;
    right: 17px;
    top: 50%;
    transform: translateY(-50%);
    color: #0b4c92;
    font-size: 22px;
    line-height: 1;
    font-weight: 900;
    transition: transform 0.18s ease;
}

.programmes-hub-page .programme-type-link:hover::after,
.programmes-hub-page .programme-type-link:focus-visible::after {
    transform: translate(3px, -50%);
}

.programmes-hub-page .programme-type-link.is-border::before {
    background: linear-gradient(90deg, #72bc8b, #2f9e91);
}

.programmes-hub-page .programme-type-link.is-wave::before {
    background: linear-gradient(90deg, #4ba5c5, #72c7cb);
}

.programmes-hub-page .programme-type-link.is-network::before {
    background: linear-gradient(90deg, #8060b3, #b09ad0);
}

.programmes-hub-page .programme-type-link.is-resources::before {
    background: linear-gradient(90deg, #e0b347, #f0cf75);
}

.programmes-hub-page .programme-type-icon {
    width: 52px;
    height: 52px;
    border-radius: 15px;
}

.programmes-hub-page .programme-type-icon svg {
    width: 27px;
    height: 27px;
}

.programmes-hub-page .programme-type-copy {
    align-content: center;
    gap: 5px;
}

.programmes-hub-page .programme-type-label {
    font-size: 1rem;
}

.programmes-hub-page .programme-type-copy small {
    font-size: 0.78rem;
    line-height: 1.35;
}

.programmes-hub-page .mini-map-legend .dot.river {
    position: static;
    left: auto;
    bottom: auto;
    width: 14px;
    height: 14px;
    border: 0;
    border-radius: 50%;
    transform: none;
    background: #4fa8c6;
}

@media (max-width: 1180px) {
    .programmes-hub-page main::before {
        opacity: 0.34;
        background-position: center top;
    }
}

@media (max-width: 760px) {
    .programmes-hub-page main {
        min-height: auto;
    }

    .programmes-hub-page main::before {
        opacity: 0.22;
    }

    .programmes-hub-page .programmes-hero {
        padding-top: 42px;
        padding-bottom: 52px;
    }

    .programmes-hub-page .programme-type-link {
        min-height: 82px;
        padding-right: 44px;
    }
}

/* PATCH 20.1 — По-видим панорамен фон */
.programmes-hub-page main::before {
    opacity: 0.72;
    filter: saturate(0.96) contrast(1.03) brightness(0.98);
    background-position: center 42%;
    transform: scale(1.01);
}

.programmes-hub-page main::after {
    background: radial-gradient(
      ellipse at 50% 43%,
      rgba(255, 255, 255, 0.90) 0 23%,
      rgba(255, 255, 255, 0.76) 42%,
      rgba(249, 252, 249, 0.42) 66%,
      rgba(246, 250, 247, 0.08) 100%
    ),
    linear-gradient(
      180deg,
      rgba(244, 250, 248, 0.12) 0%,
      rgba(255, 253, 247, 0.06) 72%,
      rgba(220, 241, 244, 0.42) 100%
    );
}

/* PATCH 20.2 — Още малко присъствие на панорамата */
.programmes-hub-page main::before {
    opacity: 0.82;
    filter: saturate(1.02) contrast(1.05) brightness(0.95);
    background-position: center 44%;
}

.programmes-hub-page main::after {
    background: radial-gradient(
      ellipse at 50% 43%,
      rgba(255,255,255,0.84) 0 22%,
      rgba(255,255,255,0.68) 42%,
      rgba(249,252,249,0.32) 66%,
      rgba(246,250,247,0.04) 100%
    ),
    linear-gradient(
      180deg,
      rgba(244,250,248,0.08) 0%,
      rgba(255,253,247,0.03) 72%,
      rgba(220,241,244,0.28) 100%
    );
}

/* =========================================================
   PATCH 21 — Panoramic background for programme category pages
   Uses the same panorama as programmes.html, with category-specific
   positioning and colour atmosphere.
   ========================================================= */
.programme-category-page {
    --category-panorama-position: center 44%;
    --category-panorama-opacity: 0.66;
    --category-panorama-saturation: 0.96;
    --category-panorama-brightness: 0.98;
    --category-page-wash: rgba(0, 122, 112, 0.10);
}

.programme-category-page.category-cross-border {
    --category-panorama-position: 34% 46%;
    --category-panorama-opacity: 0.72;
    --category-page-wash: rgba(0, 122, 112, 0.11);
}

.programme-category-page.category-transnational {
    --category-panorama-position: 58% 44%;
    --category-panorama-opacity: 0.74;
    --category-page-wash: rgba(33, 127, 165, 0.12);
}

.programme-category-page.category-networks {
    --category-panorama-position: 76% 44%;
    --category-panorama-opacity: 0.64;
    --category-page-wash: rgba(112, 83, 162, 0.10);
}

.programme-category-page.category-resources {
    --category-panorama-position: 52% 46%;
    --category-panorama-opacity: 0.54;
    --category-panorama-saturation: 0.86;
    --category-panorama-brightness: 1.02;
    --category-page-wash: rgba(177, 125, 24, 0.10);
}

.programme-category-page main {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: #f5faf8;
}

.programme-category-page main::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background: url("../images/programmes/landscapes/programmes-hub-panorama.webp")
    var(--category-panorama-position) / cover no-repeat;
    opacity: var(--category-panorama-opacity);
    filter: saturate(var(--category-panorama-saturation))
    contrast(1.03)
    brightness(var(--category-panorama-brightness));
    transform: scale(1.012);
}

.programme-category-page main::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(
      ellipse at 50% 24%,
      rgba(255,255,255,0.90) 0 24%,
      rgba(255,255,255,0.74) 45%,
      rgba(249,252,249,0.42) 68%,
      rgba(246,250,247,0.14) 100%
    ),
    linear-gradient(
      180deg,
      var(--category-page-wash) 0%,
      rgba(255,255,255,0.10) 50%,
      rgba(227,243,241,0.48) 100%
    );
}

/* Let the panorama show through without reducing readability. */
.programme-category-page .programme-category-hero-copy,
.programme-category-page .programme-category-summary {
    background: radial-gradient(
      circle at 88% 16%,
      rgba(var(--category-accent-rgb), 0.14),
      transparent 21rem
    ),
    linear-gradient(
      145deg,
      rgba(255,255,255,0.93),
      rgba(243,250,248,0.84)
    );
    border-color: rgba(142,193,192,0.64);
    box-shadow: 0 28px 70px rgba(21,79,98,0.14);
    -webkit-backdrop-filter: blur(7px) saturate(1.04);
    backdrop-filter: blur(7px) saturate(1.04);
}

.programme-category-page .programme-large-card,
.programme-category-page .resource-card {
    background: rgba(255,255,255,0.92);
    border-color: rgba(142,193,192,0.58);
    box-shadow: 0 20px 48px rgba(21,79,98,0.10);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.programme-category-page .programme-category-bottom a {
    background: rgba(255,255,255,0.90);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

/* Category-specific soft colour in the summary card. */
.programme-category-page.category-transnational .programme-category-summary {
    background: radial-gradient(circle at 78% 18%, rgba(33,127,165,0.17), transparent 12rem),
    linear-gradient(180deg, rgba(255,255,255,0.94), rgba(233,244,250,0.88));
}

.programme-category-page.category-networks .programme-category-summary {
    background: radial-gradient(circle at 78% 18%, rgba(112,83,162,0.16), transparent 12rem),
    linear-gradient(180deg, rgba(255,255,255,0.94), rgba(241,237,248,0.90));
}

.programme-category-page.category-resources .programme-category-summary {
    background: radial-gradient(circle at 78% 18%, rgba(177,125,24,0.16), transparent 12rem),
    linear-gradient(180deg, rgba(255,255,255,0.94), rgba(255,245,221,0.90));
}

@media (max-width: 1180px) {
    .programme-category-page main::before {
        opacity: calc(var(--category-panorama-opacity) * 0.84);
        background-position: center top;
    }
}

@media (max-width: 760px) {
    .programme-category-page main::before {
        opacity: 0.30;
        background-position: center top;
    }

    .programme-category-page main::after {
        background: linear-gradient(
        180deg,
        rgba(249,252,250,0.72) 0%,
        rgba(255,255,255,0.52) 58%,
        rgba(227,243,241,0.58) 100%
      );
    }
}

/* =========================================================
   PATCH 22 — Projects navigation hub
   Short hero page with three visual entrances.
   ========================================================= */
.projects-hub-page {
    background: #f7faf7;
}

.projects-hub-page main {
    min-height: auto;
    overflow: hidden;
    background: radial-gradient(circle at 10% 22%, rgba(225, 242, 234, 0.52), transparent 28rem),
    linear-gradient(180deg, #fbfcf7 0%, #f8fbf8 62%, #eff8f5 100%);
}

.projects-hub-hero {
    position: relative;
    min-height: 430px;
    overflow: hidden;
    border-bottom: 1px solid rgba(144, 193, 191, 0.28);
    background: #f9fbf7;
}

.projects-hub-hero-image,
.projects-hub-hero-wash {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.projects-hub-hero-image {
    background: url("../images/projects/projects-hero.webp") center 47% / cover no-repeat;
    filter: saturate(1.01) contrast(1.02) brightness(1.02);
    transform: scale(1.012);
}

.projects-hub-hero-wash {
    background: linear-gradient(
      90deg,
      rgba(255, 255, 252, 0.98) 0%,
      rgba(255, 255, 252, 0.95) 27%,
      rgba(255, 255, 252, 0.75) 44%,
      rgba(255, 255, 252, 0.18) 67%,
      rgba(255, 255, 252, 0.02) 100%
    ),
    linear-gradient(
      180deg,
      rgba(239, 248, 246, 0.10) 0%,
      rgba(255, 253, 247, 0.02) 72%,
      rgba(242, 249, 246, 0.28) 100%
    );
}

.projects-hub-hero-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1480px;
    min-height: 430px;
    margin: 0 auto;
    padding: 58px 56px 64px;
    display: flex;
    align-items: center;
}

.projects-hub-hero-copy {
    width: min(650px, 48%);
}

.projects-hub-page .hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 16px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(234, 246, 240, 0.82);
    color: #08746f;
    font-size: 0.9rem;
    font-weight: 900;
    box-shadow: inset 0 0 0 1px rgba(0, 122, 112, 0.08);
}

.projects-hub-page .hero-kicker::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #168d80;
    box-shadow: 0 0 0 5px rgba(22, 141, 128, 0.12);
}

.projects-hub-hero-copy h1 {
    margin: 0;
    color: #073466;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3rem, 4.5vw, 5.2rem);
    line-height: 0.96;
    letter-spacing: -0.052em;
}

.projects-hub-hero-copy h1 span {
    color: #08755e;
}

.projects-title-line {
    display: block;
    width: 56px;
    height: 4px;
    margin: 24px 0 24px;
    border-radius: 999px;
    background: #dda600;
}

.projects-hub-hero-copy > p:last-child {
    max-width: 600px;
    margin: 0;
    color: #163f62;
    font-size: 1.08rem;
    line-height: 1.62;
}

.projects-hub-directory {
    position: relative;
    z-index: 2;
    max-width: 1480px;
    margin: 0 auto;
    padding: 0 56px 30px;
}

.projects-directory-heading {
    display: grid;
    grid-template-columns: minmax(24px, 1fr) auto minmax(24px, 1fr);
    gap: 16px;
    align-items: center;
    max-width: 520px;
    margin: 0 auto 30px;
    color: #08755e;
}

.projects-directory-heading span {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(8,117,94,0.34));
    position: relative;
}

.projects-directory-heading span:last-child {
    background: linear-gradient(90deg, rgba(8,117,94,0.34), transparent);
}

.projects-directory-heading span::after {
    content: "";
    position: absolute;
    top: -3px;
    right: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #b9d7cf;
}

.projects-directory-heading span:last-child::after {
    right: auto;
    left: 0;
}

.projects-directory-heading h2 {
    margin: 0;
    font-size: 1rem;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    white-space: nowrap;
}

.projects-hub-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.projects-hub-card {
    --project-card-accent: #08755e;
    position: relative;
    min-width: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(145, 190, 188, 0.58);
    border-radius: 26px;
    background: rgba(255,255,255,0.94);
    box-shadow: 0 20px 46px rgba(21,79,98,0.11);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.projects-hub-card.stories-entry {
    --project-card-accent: #c78700;
    border-color: rgba(218, 177, 72, 0.58);
}

.projects-hub-card.map-entry {
    --project-card-accent: #185aa0;
    border-color: rgba(83, 143, 191, 0.56);
}

.projects-hub-card:hover {
    transform: translateY(-6px);
    border-color: color-mix(in srgb, var(--project-card-accent) 55%, white);
    box-shadow: 0 28px 62px rgba(21,79,98,0.17);
}

.projects-hub-card-image {
    display: block;
    height: 270px;
    overflow: hidden;
    background: #eaf2ed;
}

.projects-hub-card-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}

.projects-hub-card:hover .projects-hub-card-image img {
    transform: scale(1.035);
}

.projects-hub-card-icon {
    position: absolute;
    top: 232px;
    left: 24px;
    width: 74px;
    height: 74px;
    overflow: hidden;
    border: 4px solid rgba(255,255,255,0.95);
    border-radius: 50%;
    background: white;
    box-shadow: 0 10px 24px rgba(18,70,94,0.18);
}

.projects-hub-card-icon img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 50%;
    object-fit: cover;
}

.projects-hub-card-body {
    min-height: 238px;
    padding: 36px 26px 24px;
    display: flex;
    flex-direction: column;
}

.projects-hub-card-body > strong {
    display: block;
    margin-bottom: 12px;
    color: #073466;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.45rem, 1.9vw, 1.85rem);
    line-height: 1.08;
}

.projects-hub-card.programmes-entry .projects-hub-card-body > strong {
    color: #08755e;
}

.projects-hub-card.stories-entry .projects-hub-card-body > strong {
    color: #936000;
}

.projects-hub-card.map-entry .projects-hub-card-body > strong {
    color: #124e8f;
}

.projects-hub-card-body > small {
    display: block;
    color: #315d72;
    font-size: 0.98rem;
    line-height: 1.52;
}

.projects-hub-card-body > em {
    width: fit-content;
    max-width: 100%;
    margin-top: auto;
    padding: 12px 16px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border: 1px solid color-mix(in srgb, var(--project-card-accent) 62%, white);
    border-radius: 10px;
    color: var(--project-card-accent);
    font-style: normal;
    font-size: 0.9rem;
    font-weight: 900;
    background: rgba(255,255,255,0.78);
}

.projects-hub-card-body > em span {
    font-size: 1.35rem;
    line-height: 0.8;
}

.projects-hub-cta {
    max-width: 1368px;
    min-height: 132px;
    margin: 18px auto 52px;
    padding: 22px 28px;
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    border: 1px solid rgba(145, 190, 188, 0.55);
    border-radius: 26px;
    background: radial-gradient(circle at 14% 46%, rgba(216,239,228,0.75), transparent 15rem),
    linear-gradient(135deg, rgba(255,255,255,0.94), rgba(241,249,246,0.92));
    box-shadow: 0 18px 42px rgba(21,79,98,0.08);
}

.projects-hub-cta-icon {
    width: 94px;
    height: 94px;
    overflow: hidden;
    border-radius: 50%;
    background: white;
    box-shadow: 0 10px 24px rgba(18,70,94,0.13);
}

.projects-hub-cta-icon img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 50%;
    object-fit: cover;
}

.projects-hub-cta h2 {
    margin: 0 0 8px;
    color: #073466;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.75rem, 2.1vw, 2.35rem);
    line-height: 1.05;
}

.projects-hub-cta p {
    max-width: 760px;
    margin: 0;
    color: #315d72;
    font-size: 0.96rem;
    line-height: 1.5;
}

.projects-hub-cta > a {
    min-height: 46px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    border: 1px solid rgba(8,117,94,0.55);
    border-radius: 10px;
    background: rgba(255,255,255,0.88);
    color: #08755e;
    font-size: 0.92rem;
    font-weight: 900;
    white-space: nowrap;
}

.projects-hub-cta > a span {
    font-size: 1.25rem;
}

@supports not (color: color-mix(in srgb, black, white)) {
    .projects-hub-card:hover,
    .projects-hub-card-body > em {
        border-color: rgba(8,117,94,0.48);
    }
}

@media (max-width: 1180px) {
    .projects-hub-hero-image {
        background-position: 58% center;
    }

    .projects-hub-hero-wash {
        background: linear-gradient(90deg, rgba(255,255,252,0.98) 0%, rgba(255,255,252,0.92) 38%, rgba(255,255,252,0.38) 72%, rgba(255,255,252,0.08) 100%);
    }

    .projects-hub-hero-inner,
    .projects-hub-directory {
        padding-left: 32px;
        padding-right: 32px;
    }

    .projects-hub-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .projects-hub-card.map-entry {
        grid-column: 1 / -1;
        max-width: calc(50% - 11px);
        width: 100%;
        justify-self: center;
    }

    .projects-hub-cta {
        margin-left: 32px;
        margin-right: 32px;
        grid-template-columns: 94px minmax(0, 1fr);
    }

    .projects-hub-cta > a {
        grid-column: 2;
        justify-self: start;
    }
}

@media (max-width: 760px) {
    .projects-hub-hero {
        min-height: 520px;
    }

    .projects-hub-hero-image {
        background-position: 63% center;
    }

    .projects-hub-hero-wash {
        background: linear-gradient(180deg, rgba(255,255,252,0.98) 0%, rgba(255,255,252,0.94) 47%, rgba(255,255,252,0.46) 76%, rgba(255,255,252,0.10) 100%);
    }

    .projects-hub-hero-inner {
        min-height: 520px;
        padding: 42px 20px 210px;
        align-items: flex-start;
    }

    .projects-hub-hero-copy {
        width: 100%;
    }

    .projects-hub-hero-copy h1 {
        font-size: clamp(2.65rem, 13vw, 4rem);
    }

    .projects-hub-hero-copy > p:last-child {
        font-size: 0.98rem;
    }

    .projects-hub-directory {
        margin-top: 0;
        padding: 28px 18px;
    }

    .projects-directory-heading {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .projects-directory-heading span {
        display: none;
    }

    .projects-directory-heading h2 {
        white-space: normal;
        line-height: 1.25;
    }

    .projects-hub-grid,
    .projects-hub-card.map-entry {
        grid-template-columns: 1fr;
        grid-column: auto;
        max-width: none;
    }

    .projects-hub-card-image {
        height: 230px;
    }

    .projects-hub-card-icon {
        top: 194px;
    }

    .projects-hub-card-body {
        min-height: 225px;
    }

    .projects-hub-cta {
        margin: 8px 18px 36px;
        padding: 24px;
        grid-template-columns: 1fr;
        text-align: center;
    }

    .projects-hub-cta-icon {
        margin: 0 auto;
    }

    .projects-hub-cta > a {
        grid-column: auto;
        justify-self: stretch;
    }
}

.projects-hub-page .site-footer {
    margin-top: 0;
}

/* =========================================================
   PATCH 23 — Projects by programme category page
   ========================================================= */
.projects-by-programme-page {
    background: radial-gradient(circle at 13% 10%, rgba(200, 233, 222, 0.45), transparent 31rem),
    linear-gradient(180deg, #fbfcf8 0%, #f6fbf8 52%, #edf8f6 100%);
}

.projects-programme-hero {
    position: relative;
    min-height: 390px;
    overflow: hidden;
    border-bottom: 1px solid rgba(145, 190, 188, 0.35);
    background: #eef7f2;
}

.projects-programme-hero-image,
.projects-programme-hero-wash {
    position: absolute;
    inset: 0;
}

.projects-programme-hero-image {
    background: url("../images/projects/projects-by-programme.webp") center 52% / cover no-repeat;
    transform: scale(1.01);
}

.projects-programme-hero-wash {
    background: linear-gradient(90deg,
      rgba(255,255,251,0.99) 0%,
      rgba(255,255,251,0.96) 31%,
      rgba(255,255,251,0.76) 48%,
      rgba(255,255,251,0.20) 76%,
      rgba(255,255,251,0.04) 100%);
}

.projects-programme-hero-inner {
    position: relative;
    z-index: 1;
    min-height: 390px;
    max-width: 1368px;
    margin: 0 auto;
    padding: 54px 28px;
    display: flex;
    align-items: center;
}

.projects-programme-hero-copy {
    width: min(610px, 52%);
}

.projects-by-programme-page .hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
    padding: 8px 13px;
    border: 1px solid rgba(8,117,94,0.15);
    border-radius: 999px;
    background: rgba(237,248,243,0.88);
    color: #08755e;
    font-size: 0.88rem;
    font-weight: 900;
}

.projects-by-programme-page .hero-kicker::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #0a967b;
    box-shadow: 0 0 0 5px rgba(10,150,123,0.12);
}

.projects-programme-hero-copy h1 {
    max-width: 620px;
    margin: 0;
    color: #073466;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.5rem, 3.5vw, 4rem);
    line-height: 1;
    letter-spacing: -0.045em;
}

.projects-programme-title-line {
    width: 62px;
    height: 4px;
    display: block;
    margin: 22px 0 22px;
    border-radius: 999px;
    background: #d6a500;
}

.projects-programme-hero-copy > p:last-child {
    max-width: 610px;
    margin: 0;
    color: #244f68;
    font-size: 1.05rem;
    line-height: 1.58;
}

.projects-programme-directory {
    max-width: 1368px;
    margin: 0 auto;
    padding: 44px 28px 24px;
}

.projects-programme-section-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 520px);
    gap: 42px;
    align-items: end;
    margin-bottom: 24px;
}

.projects-programme-section-head h2 {
    margin: 0;
    color: #073466;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 2.6vw, 3rem);
    line-height: 1.03;
    letter-spacing: -0.035em;
}

.projects-programme-section-head > p {
    margin: 0;
    color: #315d72;
    font-size: 0.98rem;
    line-height: 1.52;
}

.projects-by-programme-page .project-programme-grid {
    gap: 20px;
}

.projects-by-programme-page .project-programme-card {
    min-height: 286px;
    background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(250,253,252,0.92));
}

.projects-by-programme-page .project-programme-card:not(.is-ready) {
    cursor: default;
}

.projects-category-back {
    max-width: 1368px;
    margin: 0 auto 38px;
    padding: 10px 28px 0;
    display: flex;
    justify-content: flex-end;
}

.projects-category-back a {
    min-height: 46px;
    padding: 0 20px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(8,117,94,0.42);
    border-radius: 999px;
    background: rgba(255,255,255,0.90);
    color: #08755e;
    font-size: 0.94rem;
    font-weight: 900;
    box-shadow: 0 10px 24px rgba(21,79,98,0.07);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.projects-category-back a:hover {
    transform: translateY(-2px);
    background: #ffffff;
    box-shadow: 0 16px 30px rgba(21,79,98,0.11);
}

.projects-by-programme-page .site-footer {
    margin-top: 0;
}

@media (max-width: 1280px) {
    .projects-by-programme-page .project-programme-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1180px) {
    .projects-programme-hero-image {
        background-position: 60% center;
    }

    .projects-programme-hero-wash {
        background: linear-gradient(90deg,
        rgba(255,255,251,0.99) 0%,
        rgba(255,255,251,0.95) 39%,
        rgba(255,255,251,0.50) 73%,
        rgba(255,255,251,0.08) 100%);
    }

    .projects-programme-hero-inner,
    .projects-programme-directory,
    .projects-category-back {
        padding-left: 32px;
        padding-right: 32px;
    }

    .projects-programme-section-head {
        grid-template-columns: 1fr;
        gap: 16px;
        align-items: start;
    }
}

@media (max-width: 760px) {
    .projects-programme-hero,
    .projects-programme-hero-inner {
        min-height: 460px;
    }

    .projects-programme-hero-image {
        background-position: 64% center;
    }

    .projects-programme-hero-wash {
        background: linear-gradient(180deg,
        rgba(255,255,251,0.99) 0%,
        rgba(255,255,251,0.94) 48%,
        rgba(255,255,251,0.42) 78%,
        rgba(255,255,251,0.08) 100%);
    }

    .projects-programme-hero-inner {
        padding: 38px 20px 175px;
        align-items: flex-start;
    }

    .projects-programme-hero-copy {
        width: 100%;
    }

    .projects-programme-hero-copy h1 {
        font-size: clamp(2.7rem, 13vw, 4rem);
    }

    .projects-programme-hero-copy > p:last-child {
        font-size: 0.96rem;
    }

    .projects-programme-directory {
        padding: 32px 18px 20px;
    }

    .projects-by-programme-page .project-programme-grid {
        grid-template-columns: 1fr;
    }

    .projects-by-programme-page .project-programme-card {
        min-height: auto;
    }

    .projects-category-back {
        padding: 6px 18px 0;
        justify-content: stretch;
    }

    .projects-category-back a {
        width: 100%;
        justify-content: center;
    }
}

/* =========================================================
   PATCH 23.1 — Real programme landscapes in project cards
   ========================================================= */
.projects-by-programme-page .project-programme-card .programme-thumb {
    height: 100px;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    box-shadow: inset 0 -1px 0 rgba(7, 52, 102, 0.08);
}

.projects-by-programme-page .project-programme-card .programme-thumb::before,
.projects-by-programme-page .project-programme-card .programme-thumb::after {
    display: none !important;
}

.projects-by-programme-page .project-programme-card.danube .programme-thumb {
    background-image: url("../images/projects/programme-thumbs/danube-region-landscape.webp") !important;
    background-position: center 52% !important;
}

.projects-by-programme-page .project-programme-card.serbia .programme-thumb {
    background-image: url("../images/projects/programme-thumbs/bulgaria-serbia-landscape.webp") !important;
    background-position: center 55% !important;
}

.projects-by-programme-page .project-programme-card.macedonia .programme-thumb {
    background-image: url("../images/projects/programme-thumbs/bulgaria-north-macedonia-landscape.webp") !important;
    background-position: center 52% !important;
}

.projects-by-programme-page .project-programme-card.turkey .programme-thumb {
    background-image: url("../images/projects/programme-thumbs/bulgaria-turkey-landscape.webp") !important;
    background-position: center 48% !important;
}

.projects-by-programme-page .project-programme-card.greece .programme-thumb {
    background-image: url("../images/projects/programme-thumbs/greece-bulgaria-landscape.webp") !important;
    background-position: center 48% !important;
}

.projects-by-programme-page .project-programme-card.romania .programme-thumb {
    background-image: url("../images/projects/programme-thumbs/romania-bulgaria-landscape.webp") !important;
    background-position: center 46% !important;
}

.projects-by-programme-page .project-programme-card.euro-med .programme-thumb {
    background-image: url("../images/projects/programme-thumbs/euro-med-landscape.webp") !important;
    background-position: center 50% !important;
}

.projects-by-programme-page .project-programme-card.black-sea .programme-thumb {
    background-image: url("../images/projects/programme-thumbs/black-sea-basin-landscape.webp") !important;
    background-position: center 50% !important;
}

.projects-by-programme-page .project-programme-card.europe .programme-thumb {
    background-image: url("../images/projects/programme-thumbs/interreg-europe-landscape.webp") !important;
    background-position: center 52% !important;
}

.projects-by-programme-page .project-programme-card.urbact .programme-thumb {
    background-image: url("../images/projects/programme-thumbs/urbact-landscape.webp") !important;
    background-position: center 50% !important;
}

.projects-by-programme-page .project-programme-card {
    min-height: 300px;
}

@media (max-width: 760px) {
    .projects-by-programme-page .project-programme-card .programme-thumb {
        height: 128px;
    }
}

/* =========================================================
   PATCH 24 — Project stories category page
   ========================================================= */
.project-stories-page {
    background: radial-gradient(circle at 14% 9%, rgba(245, 226, 171, 0.24), transparent 30rem),
    radial-gradient(circle at 86% 16%, rgba(196, 229, 220, 0.42), transparent 32rem),
    linear-gradient(180deg, #fbfcf8 0%, #f8fbf7 52%, #eef8f5 100%);
}

.project-stories-hero {
    position: relative;
    min-height: 390px;
    overflow: hidden;
    border-bottom: 1px solid rgba(196, 173, 96, 0.26);
    background: #f8f4e8;
}

.project-stories-hero-image,
.project-stories-hero-wash {
    position: absolute;
    inset: 0;
}

.project-stories-hero-image {
    background: url("../images/projects/stories/project-stories-hero.webp") center 48% / cover no-repeat;
    transform: scale(1.01);
}

.project-stories-hero-wash {
    background: linear-gradient(90deg,
      rgba(255,255,251,0.99) 0%,
      rgba(255,255,251,0.96) 31%,
      rgba(255,255,251,0.76) 48%,
      rgba(255,255,251,0.19) 76%,
      rgba(255,255,251,0.03) 100%);
}

.project-stories-hero-inner {
    position: relative;
    z-index: 1;
    min-height: 390px;
    max-width: 1368px;
    margin: 0 auto;
    padding: 54px 28px;
    display: flex;
    align-items: center;
}

.project-stories-hero-copy {
    width: min(650px, 54%);
}

.project-stories-page .hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
    padding: 8px 13px;
    border: 1px solid rgba(190, 143, 18, 0.18);
    border-radius: 999px;
    background: rgba(255, 248, 226, 0.88);
    color: #9a6b00;
    font-size: 0.88rem;
    font-weight: 900;
}

.project-stories-page .hero-kicker::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d9a400;
    box-shadow: 0 0 0 5px rgba(217,164,0,0.12);
}

.project-stories-hero-copy h1 {
    max-width: 650px;
    margin: 0;
    color: #073466;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.5rem, 3.5vw, 4.1rem);
    line-height: 1;
    letter-spacing: -0.045em;
}

.project-stories-title-line {
    width: 62px;
    height: 4px;
    display: block;
    margin: 22px 0;
    border-radius: 999px;
    background: #d6a500;
}

.project-stories-hero-copy > p:last-child {
    max-width: 630px;
    margin: 0;
    color: #244f68;
    font-size: 1.05rem;
    line-height: 1.58;
}

.project-stories-directory {
    max-width: 1368px;
    margin: 0 auto;
    padding: 44px 28px 24px;
}

.project-stories-section-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 520px);
    gap: 42px;
    align-items: end;
    margin-bottom: 22px;
}

.project-stories-section-head h2 {
    margin: 0;
    color: #073466;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 2.6vw, 3rem);
    line-height: 1.03;
    letter-spacing: -0.035em;
}

.project-stories-section-head > p {
    margin: 0;
    color: #315d72;
    font-size: 0.98rem;
    line-height: 1.52;
}

.project-stories-page .project-filter-pills {
    margin-bottom: 24px;
}

.project-stories-page .project-filter-pills span {
    background: rgba(255,255,255,0.88);
    box-shadow: 0 8px 18px rgba(21,79,98,0.04);
}

.project-stories-page .project-filter-pills .is-active {
    background: #b77d00;
    border-color: #b77d00;
    color: #ffffff;
}

.project-stories-page .project-story-grid {
    gap: 20px;
    align-items: stretch;
}

.project-stories-page .project-story-card {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: rgba(255,255,255,0.94);
    border-radius: 24px;
    box-shadow: 0 18px 44px rgba(21,79,98,0.08);
}

.project-stories-page .project-story-card.green {
    border-color: rgba(58, 151, 102, 0.34);
}

.project-stories-page .project-story-card.innovation {
    border-color: rgba(61, 116, 175, 0.34);
}

.project-stories-page .project-story-card.heritage {
    border-color: rgba(194, 145, 35, 0.34);
}

.project-stories-page .project-story-card.social {
    border-color: rgba(46, 136, 148, 0.34);
}

.project-stories-page .project-image {
    display: block;
    height: 180px;
    overflow: hidden;
    background: #eaf3f0;
}

.project-stories-page .project-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.project-stories-page .project-story-card.green .project-image img {
    object-position: center 54%;
}

.project-stories-page .project-story-card.innovation .project-image img {
    object-position: center 46%;
}

.project-stories-page .project-story-card.heritage .project-image img {
    object-position: center 48%;
}

.project-stories-page .project-story-card.social .project-image img {
    object-position: center 45%;
}

.project-stories-page .project-story-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.project-stories-page .project-story-body p {
    margin-bottom: 16px;
}

.project-stories-page .project-story-body small {
    margin-bottom: 18px;
}

.project-stories-page .project-story-body a {
    margin-top: auto;
}

.project-stories-page .project-story-card.green .project-tag {
    background: rgba(48, 143, 94, 0.11);
    color: #167548;
}

.project-stories-page .project-story-card.innovation .project-tag {
    background: rgba(63, 113, 173, 0.11);
    color: #2b609e;
}

.project-stories-page .project-story-card.heritage .project-tag {
    background: rgba(196, 145, 32, 0.12);
    color: #976800;
}

.project-stories-page .project-story-card.social .project-tag {
    background: rgba(46, 136, 148, 0.11);
    color: #1c7380;
}

.project-stories-page .site-footer {
    margin-top: 0;
}

@media (max-width: 1280px) {
    .project-stories-page .project-story-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1180px) {
    .project-stories-hero-image {
        background-position: 58% center;
    }

    .project-stories-hero-wash {
        background: linear-gradient(90deg,
        rgba(255,255,251,0.99) 0%,
        rgba(255,255,251,0.95) 39%,
        rgba(255,255,251,0.48) 73%,
        rgba(255,255,251,0.07) 100%);
    }

    .project-stories-hero-inner,
    .project-stories-directory {
        padding-left: 32px;
        padding-right: 32px;
    }

    .project-stories-section-head {
        grid-template-columns: 1fr;
        gap: 16px;
        align-items: start;
    }
}

@media (max-width: 760px) {
    .project-stories-hero,
    .project-stories-hero-inner {
        min-height: 470px;
    }

    .project-stories-hero-image {
        background-position: 64% center;
    }

    .project-stories-hero-wash {
        background: linear-gradient(180deg,
        rgba(255,255,251,0.99) 0%,
        rgba(255,255,251,0.94) 48%,
        rgba(255,255,251,0.42) 78%,
        rgba(255,255,251,0.08) 100%);
    }

    .project-stories-hero-inner {
        padding: 38px 20px 180px;
        align-items: flex-start;
    }

    .project-stories-hero-copy {
        width: 100%;
    }

    .project-stories-hero-copy h1 {
        font-size: clamp(2.45rem, 12vw, 3.6rem);
    }

    .project-stories-hero-copy > p:last-child {
        font-size: 0.96rem;
    }

    .project-stories-directory {
        padding: 32px 18px 20px;
    }

    .project-stories-page .project-story-grid {
        grid-template-columns: 1fr;
    }

    .project-stories-page .project-image {
        height: 210px;
    }
}

/* =========================================================
   PATCH 25 — Project map visual category page
   ========================================================= */
.project-map-visual-page {
    background: radial-gradient(circle at 12% 10%, rgba(196, 227, 221, 0.44), transparent 34rem),
    radial-gradient(circle at 88% 18%, rgba(219, 238, 245, 0.72), transparent 32rem),
    linear-gradient(180deg, #fbfcf8 0%, #f6fbf8 54%, #edf8f6 100%);
}

.project-map-visual-hero {
    position: relative;
    min-height: 430px;
    overflow: hidden;
    border-bottom: 1px solid rgba(92, 161, 177, 0.22);
}

.project-map-visual-hero-image,
.project-map-visual-hero-wash {
    position: absolute;
    inset: 0;
}

.project-map-visual-hero-image {
    background-image: url("../images/projects/map/project-map-hero.webp");
    background-size: cover;
    background-position: center 47%;
}

.project-map-visual-hero-wash {
    background: linear-gradient(90deg,
      rgba(255,255,251,0.99) 0%,
      rgba(255,255,251,0.96) 31%,
      rgba(255,255,251,0.72) 48%,
      rgba(255,255,251,0.22) 68%,
      rgba(255,255,251,0.02) 100%);
}

.project-map-visual-hero-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1368px;
    min-height: 430px;
    margin: 0 auto;
    padding: 30px 28px 46px;
    display: flex;
    align-items: center;
}

.project-map-visual-copy {
    width: min(680px, 52%);
}

.project-map-visual-copy .map-breadcrumbs {
    margin-bottom: 22px;
    color: #597587;
}

.project-map-visual-copy .hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
    padding: 7px 12px;
    border: 1px solid rgba(47, 111, 169, 0.18);
    border-radius: 999px;
    background: rgba(255,255,255,0.78);
    color: #2b609e;
    font-size: 0.88rem;
    font-weight: 900;
}

.project-map-visual-copy .hero-kicker::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #2f70b2;
    box-shadow: 0 0 0 5px rgba(47,112,178,0.12);
}

.project-map-visual-copy h1 {
    max-width: 650px;
    margin: 0;
    color: #073466;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.45rem, 3.35vw, 3.85rem);
    line-height: 1;
    letter-spacing: -0.045em;
}

.project-map-title-line {
    width: 62px;
    height: 4px;
    display: block;
    margin: 22px 0;
    border-radius: 999px;
    background: #2f70b2;
}

.project-map-visual-copy > p:not(.hero-kicker) {
    max-width: 620px;
    margin: 0;
    color: #244f68;
    font-size: 1.02rem;
    line-height: 1.58;
}

.project-map-scroll-link {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    margin-top: 22px;
    padding: 0 16px;
    border: 1px solid rgba(47, 112, 178, 0.30);
    border-radius: 999px;
    background: rgba(255,255,255,0.84);
    color: #1d5d9c;
    font-size: 0.9rem;
    font-weight: 900;
    box-shadow: 0 10px 24px rgba(28, 79, 121, 0.08);
}

.project-map-future-section,
.project-map-filter-section,
.project-map-bottom-section {
    max-width: 1368px;
    margin: 0 auto;
    padding-left: 28px;
    padding-right: 28px;
}

.project-map-future-section {
    display: grid;
    grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
    gap: 26px;
    align-items: stretch;
    padding-top: 44px;
    padding-bottom: 28px;
}

.project-map-future-copy {
    padding: 30px;
    border: 1px solid rgba(155, 199, 196, 0.58);
    border-radius: 28px;
    background: radial-gradient(circle at 14% 10%, rgba(226, 243, 239, 0.88), transparent 34%),
    linear-gradient(145deg, rgba(255,255,255,0.96), rgba(242,250,248,0.9));
    box-shadow: 0 18px 46px rgba(21,79,98,0.08);
}

.project-map-future-copy h2,
.project-map-filter-head h2,
.project-map-stage-note h2 {
    margin: 0 0 12px;
    color: #073466;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.85rem, 2.2vw, 2.5rem);
    line-height: 1.05;
    letter-spacing: -0.035em;
}

.project-map-future-copy > p:not(.eyebrow),
.project-map-stage-note p,
.project-map-filter-head > p {
    margin: 0;
    color: #315d72;
    font-size: 0.98rem;
    line-height: 1.52;
}

.project-map-note {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    margin-top: 26px;
    padding: 20px;
    border: 1px solid rgba(47, 112, 178, 0.16);
    border-radius: 22px;
    background: rgba(236, 246, 251, 0.78);
}

.project-map-note-icon {
    width: 50px;
    height: 50px;
    display: block;
    position: relative;
    border-radius: 50%;
    background: #dfeef8;
}

.project-map-note-icon::before {
    content: "";
    position: absolute;
    width: 20px;
    height: 26px;
    left: 15px;
    top: 10px;
    border: 3px solid #2f70b2;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
}

.project-map-note-icon::after {
    content: "";
    position: absolute;
    width: 7px;
    height: 7px;
    left: 22px;
    top: 18px;
    border-radius: 50%;
    background: #2f70b2;
}

.project-map-note h3 {
    margin: 0 0 8px;
    color: #073466;
    font-size: 1.08rem;
}

.project-map-note p {
    margin: 0;
    color: #315d72;
    font-size: 0.9rem;
    line-height: 1.46;
}

.project-map-preview {
    min-height: 380px;
    margin: 0;
    border: 1px solid rgba(155, 199, 196, 0.58);
    border-radius: 28px;
    overflow: hidden;
    background: #e7f3f4;
    box-shadow: 0 20px 52px rgba(21,79,98,0.10);
}

.project-map-preview img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center 47%;
}

.project-map-filter-section {
    padding-top: 28px;
    padding-bottom: 30px;
}

.project-map-filter-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(330px, 520px);
    gap: 40px;
    align-items: end;
    margin-bottom: 22px;
}

.project-map-filter-grid article {
    min-height: 178px;
    border-radius: 24px;
    background: radial-gradient(circle at 18% 12%, rgba(225, 241, 248, 0.78), transparent 32%),
    linear-gradient(180deg, rgba(255,255,255,0.94), rgba(242,249,250,0.88));
}

.project-map-filter-grid span {
    background: rgba(47,112,178,0.10);
    color: #2b609e;
}

.project-map-bottom-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    padding-top: 18px;
    padding-bottom: 44px;
}

.project-map-stage-note {
    padding: 26px 28px;
    border: 1px solid rgba(155, 199, 196, 0.58);
    border-radius: 26px;
    background: linear-gradient(135deg, rgba(255,255,255,0.94), rgba(239,248,245,0.9));
    box-shadow: 0 18px 44px rgba(21,79,98,0.07);
}

.project-map-back-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 22px;
    border: 1px solid rgba(0, 122, 112, 0.30);
    border-radius: 999px;
    background: rgba(255,255,255,0.92);
    color: #007a70;
    font-weight: 900;
    white-space: nowrap;
}

.project-map-visual-page .site-footer {
    margin-top: 0;
}

@media (max-width: 1180px) {
    .project-map-visual-hero-image {
        background-position: 58% center;
    }

    .project-map-visual-hero-wash {
        background: linear-gradient(90deg,
        rgba(255,255,251,0.99) 0%,
        rgba(255,255,251,0.95) 38%,
        rgba(255,255,251,0.55) 72%,
        rgba(255,255,251,0.08) 100%);
    }

    .project-map-visual-hero-inner,
    .project-map-future-section,
    .project-map-filter-section,
    .project-map-bottom-section {
        padding-left: 32px;
        padding-right: 32px;
    }

    .project-map-future-section,
    .project-map-filter-head,
    .project-map-bottom-section {
        grid-template-columns: 1fr;
    }

    .project-map-visual-copy {
        width: min(690px, 62%);
    }
}

@media (max-width: 760px) {
    .project-map-visual-hero,
    .project-map-visual-hero-inner {
        min-height: 530px;
    }

    .project-map-visual-hero-image {
        background-position: 67% center;
    }

    .project-map-visual-hero-wash {
        background: linear-gradient(180deg,
        rgba(255,255,251,0.99) 0%,
        rgba(255,255,251,0.95) 52%,
        rgba(255,255,251,0.46) 80%,
        rgba(255,255,251,0.08) 100%);
    }

    .project-map-visual-hero-inner {
        padding: 28px 20px 185px;
        align-items: flex-start;
    }

    .project-map-visual-copy {
        width: 100%;
    }

    .project-map-visual-copy .map-breadcrumbs {
        margin-bottom: 18px;
    }

    .project-map-visual-copy h1 {
        font-size: clamp(2.3rem, 11vw, 3.25rem);
    }

    .project-map-scroll-link {
        display: none;
    }

    .project-map-future-section,
    .project-map-filter-section,
    .project-map-bottom-section {
        padding-left: 18px;
        padding-right: 18px;
    }

    .project-map-future-section {
        padding-top: 30px;
    }

    .project-map-future-copy {
        padding: 24px;
    }

    .project-map-preview {
        min-height: 260px;
    }

    .project-map-note {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   PATCH 25.1 — Full-width future interactive map canvas
   ========================================================= */
.project-map-intro-section,
.project-map-canvas-section {
    max-width: 1368px;
    margin: 0 auto;
    padding-left: 28px;
    padding-right: 28px;
}

.project-map-intro-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.72fr);
    gap: 28px;
    align-items: stretch;
    padding-top: 44px;
    padding-bottom: 24px;
}

.project-map-intro-copy {
    padding: 28px 30px;
    border: 1px solid rgba(155, 199, 196, 0.58);
    border-radius: 28px;
    background: radial-gradient(circle at 14% 10%, rgba(226, 243, 239, 0.88), transparent 34%),
    linear-gradient(145deg, rgba(255,255,255,0.96), rgba(242,250,248,0.9));
    box-shadow: 0 18px 46px rgba(21,79,98,0.08);
}

.project-map-intro-copy h2 {
    margin: 0 0 12px;
    color: #073466;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.9rem, 2.25vw, 2.55rem);
    line-height: 1.05;
    letter-spacing: -0.035em;
}

.project-map-intro-copy > p:not(.eyebrow) {
    margin: 0;
    max-width: 820px;
    color: #315d72;
    font-size: 0.98rem;
    line-height: 1.56;
}

.project-map-intro-note {
    margin-top: 0;
    height: 100%;
    align-content: center;
    border-radius: 28px;
    background: radial-gradient(circle at 86% 12%, rgba(225, 241, 248, 0.82), transparent 30%),
    linear-gradient(145deg, rgba(255,255,255,0.96), rgba(238,247,251,0.92));
    box-shadow: 0 18px 46px rgba(21,79,98,0.07);
}

.project-map-canvas-section {
    padding-top: 0;
    padding-bottom: 34px;
}

.project-map-canvas-shell {
    position: relative;
    min-height: 640px;
    overflow: hidden;
    border: 1px solid rgba(155, 199, 196, 0.62);
    border-radius: 30px;
    background: #dfeff1;
    box-shadow: 0 24px 62px rgba(21,79,98,0.12);
}

.project-map-canvas-shell::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(7,52,102,0.02), transparent 30%, transparent 72%, rgba(7,52,102,0.08)),
    radial-gradient(circle at 50% 50%, transparent 45%, rgba(255,255,255,0.08) 100%);
}

.project-map-canvas-shell img {
    width: 100%;
    height: 100%;
    min-height: 640px;
    display: block;
    object-fit: cover;
    object-position: center 48%;
}

.project-map-canvas-status {
    position: absolute;
    z-index: 2;
    left: 24px;
    top: 24px;
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 15px;
    border: 1px solid rgba(255,255,255,0.72);
    border-radius: 999px;
    background: rgba(255,255,255,0.90);
    color: #1d5d9c;
    font-size: 0.88rem;
    font-weight: 900;
    box-shadow: 0 10px 24px rgba(22,67,105,0.15);
    backdrop-filter: blur(10px);
}

.project-map-demo-controls {
    position: absolute;
    z-index: 2;
    top: 24px;
    right: 24px;
    display: grid;
    gap: 8px;
}

.project-map-demo-controls span {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,0.78);
    border-radius: 14px;
    background: rgba(255,255,255,0.92);
    color: #174f86;
    font-size: 1.35rem;
    font-weight: 900;
    box-shadow: 0 10px 24px rgba(22,67,105,0.16);
    backdrop-filter: blur(10px);
}

.project-map-demo-legend {
    position: absolute;
    z-index: 2;
    left: 24px;
    bottom: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    max-width: calc(100% - 48px);
    padding: 13px 16px;
    border: 1px solid rgba(255,255,255,0.74);
    border-radius: 18px;
    background: rgba(255,255,255,0.90);
    color: #244f68;
    font-size: 0.82rem;
    font-weight: 800;
    box-shadow: 0 12px 28px rgba(22,67,105,0.14);
    backdrop-filter: blur(10px);
}

.project-map-demo-legend span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.project-map-demo-legend i {
    width: 10px;
    height: 10px;
    display: inline-block;
    border-radius: 50%;
}

.project-map-demo-legend .legend-green {
    background: #2c9a67;
}

.project-map-demo-legend .legend-blue {
    background: #2f70b2;
}

.project-map-demo-legend .legend-gold {
    background: #e0a51b;
}

/* Старият двуколонен placeholder вече не се използва. */
.project-map-visual-page .project-map-future-section {
    display: none;
}

@media (max-width: 1180px) {
    .project-map-intro-section,
    .project-map-canvas-section {
        padding-left: 32px;
        padding-right: 32px;
    }

    .project-map-intro-section {
        grid-template-columns: 1fr;
    }

    .project-map-canvas-shell,
    .project-map-canvas-shell img {
        min-height: 520px;
    }
}

@media (max-width: 760px) {
    .project-map-intro-section,
    .project-map-canvas-section {
        padding-left: 18px;
        padding-right: 18px;
    }

    .project-map-intro-section {
        padding-top: 30px;
    }

    .project-map-intro-copy,
    .project-map-intro-note {
        padding: 24px;
    }

    .project-map-canvas-shell,
    .project-map-canvas-shell img {
        min-height: 380px;
    }

    .project-map-canvas-shell {
        border-radius: 24px;
    }

    .project-map-canvas-status {
        left: 14px;
        top: 14px;
        font-size: 0.78rem;
    }

    .project-map-demo-controls {
        top: 14px;
        right: 14px;
    }

    .project-map-demo-controls span {
        width: 38px;
        height: 38px;
        border-radius: 12px;
    }

    .project-map-demo-legend {
        left: 14px;
        right: 14px;
        bottom: 14px;
        max-width: none;
        gap: 8px 12px;
    }
}

/* =========================================================
   PATCH 26 — Project story detail template
   ========================================================= */
.project-story-detail-page {
    background: radial-gradient(circle at 14% 8%, rgba(193, 229, 221, 0.44), transparent 32rem),
    radial-gradient(circle at 86% 14%, rgba(239, 225, 177, 0.34), transparent 30rem),
    linear-gradient(180deg, #fbfcf8 0%, #f7fbf8 52%, #edf8f6 100%);
}

.project-story-detail-page .main-nav a.is-active {
    color: #007a70;
}

.project-story-detail-hero {
    position: relative;
    min-height: 470px;
    overflow: hidden;
    border-bottom: 1px solid rgba(155, 199, 196, 0.44);
}

.project-story-detail-hero-image,
.project-story-detail-hero-wash {
    position: absolute;
    inset: 0;
}

.project-story-detail-hero-image {
    background-image: url("../images/projects/story-template/project-story-hero.webp");
    background-size: cover;
    background-position: center 42%;
}

.project-story-detail-hero-wash {
    background: linear-gradient(90deg,
      rgba(255,255,251,0.99) 0%,
      rgba(255,255,251,0.95) 36%,
      rgba(255,255,251,0.58) 62%,
      rgba(255,255,251,0.10) 100%);
}

.project-story-detail-hero-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1368px;
    min-height: 470px;
    margin: 0 auto;
    padding: 30px 28px 54px;
    display: flex;
    flex-direction: column;
}

.project-story-detail-hero-inner .story-breadcrumbs {
    margin-bottom: auto;
    color: #567286;
}

.project-story-detail-copy {
    width: min(720px, 55%);
}

.project-story-detail-copy .hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    color: #a87100;
    font-size: 0.9rem;
    font-weight: 900;
}

.project-story-detail-copy .hero-kicker::before {
    content: "";
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #dda900;
    box-shadow: 0 0 0 6px rgba(221, 169, 0, 0.13);
}

.project-story-detail-copy h1 {
    max-width: 760px;
    margin: 0;
    color: #073466;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.7rem, 4.2vw, 4.7rem);
    line-height: 0.98;
    letter-spacing: -0.045em;
}

.project-story-detail-title-line {
    display: block;
    width: 62px;
    height: 4px;
    margin: 22px 0 22px;
    border-radius: 999px;
    background: #dda900;
}

.project-story-detail-copy > p:not(.hero-kicker) {
    max-width: 690px;
    margin: 0;
    color: #244f68;
    font-size: 1.02rem;
    line-height: 1.6;
}

.project-story-facts {
    max-width: 1368px;
    margin: -28px auto 0;
    padding: 0 28px 28px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    position: relative;
    z-index: 2;
}

.project-story-facts article {
    min-height: 126px;
    padding: 20px;
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    border: 1px solid rgba(155, 199, 196, 0.60);
    border-radius: 22px;
    background: radial-gradient(circle at 86% 10%, rgba(232, 246, 241, 0.76), transparent 34%),
    rgba(255,255,255,0.95);
    box-shadow: 0 18px 42px rgba(21,79,98,0.10);
}

.project-story-fact-icon {
    width: 50px;
    height: 50px;
    display: block;
    border-radius: 50%;
    background: #e7f3ef;
    position: relative;
}

.project-story-fact-icon::before,
.project-story-fact-icon::after {
    content: "";
    position: absolute;
}

.project-story-facts small {
    display: block;
    margin-bottom: 4px;
    color: #5b7788;
    font-size: 0.78rem;
    font-weight: 800;
}

.project-story-facts strong {
    display: block;
    color: #073466;
    font-size: 0.97rem;
    line-height: 1.3;
}

.project-story-content {
    max-width: 1368px;
    margin: 0 auto;
    padding: 18px 28px 34px;
}

.project-story-feature-card {
    min-height: auto;
    padding: 22px 28px;
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
    border: 1px solid rgba(155, 199, 196, 0.58);
    border-radius: 28px;
    background: radial-gradient(circle at 86% 12%, rgba(232, 246, 241, 0.80), transparent 32%),
    linear-gradient(145deg, rgba(255,255,255,0.97), rgba(242,250,248,0.90));
    box-shadow: 0 18px 46px rgba(21,79,98,0.08);
}

.project-story-feature-card + .project-story-feature-card {
    margin-top: 14px;
}

.project-story-feature-card .story-card-icon {
    width: 70px;
    height: 70px;
    margin: 0;
    border-radius: 22px;
}

.project-story-feature-card h2,
.project-story-detail-card h2,
.project-story-return h2 {
    margin: 0 0 12px;
    color: #073466;
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.05;
    letter-spacing: -0.025em;
}

.project-story-feature-card h2 {
    font-size: clamp(1.9rem, 2.2vw, 2.45rem);
}

.project-story-feature-card p:not(.eyebrow),
.project-story-detail-card p,
.project-story-return p {
    margin: 0;
    color: #315d72;
    font-size: 0.98rem;
    line-height: 1.56;
}

.project-story-details-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.project-story-detail-card {
    min-height: 265px;
    padding: 26px;
    border: 1px solid rgba(155, 199, 196, 0.56);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(243,250,248,0.88));
    box-shadow: 0 16px 40px rgba(21,79,98,0.07);
}

.project-story-detail-card .story-card-icon {
    margin-bottom: 18px;
}

.project-story-detail-card h2 {
    font-size: 1.35rem;
}

.project-story-tags-card {
    background: radial-gradient(circle at 84% 16%, rgba(247, 234, 190, 0.62), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,0.95), rgba(250,248,239,0.92));
}

.project-story-return {
    max-width: 1368px;
    margin: 0 auto;
    padding: 16px 28px 52px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
}

.project-story-return > div {
    padding: 28px 30px;
    border: 1px solid rgba(155, 199, 196, 0.58);
    border-radius: 28px;
    background: radial-gradient(circle at 86% 12%, rgba(232, 246, 241, 0.80), transparent 32%),
    linear-gradient(145deg, rgba(255,255,255,0.96), rgba(242,250,248,0.90));
    box-shadow: 0 18px 46px rgba(21,79,98,0.08);
}

.project-story-return h2 {
    font-size: clamp(1.85rem, 2.1vw, 2.35rem);
}

.project-story-return a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 22px;
    border: 1px solid rgba(0, 122, 112, 0.30);
    border-radius: 999px;
    background: rgba(255,255,255,0.92);
    color: #007a70;
    font-weight: 900;
    white-space: nowrap;
}

.project-story-detail-page .site-footer {
    margin-top: 0;
}

@media (max-width: 1180px) {
    .project-story-detail-hero-image {
        background-position: 58% center;
    }

    .project-story-detail-hero-wash {
        background: linear-gradient(90deg,
        rgba(255,255,251,0.99) 0%,
        rgba(255,255,251,0.96) 42%,
        rgba(255,255,251,0.60) 74%,
        rgba(255,255,251,0.10) 100%);
    }

    .project-story-detail-copy {
        width: min(720px, 64%);
    }

    .project-story-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .project-story-return {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .project-story-detail-hero,
    .project-story-detail-hero-inner {
        min-height: 560px;
    }

    .project-story-detail-hero-image {
        background-position: 68% center;
    }

    .project-story-detail-hero-wash {
        background: linear-gradient(180deg,
        rgba(255,255,251,0.99) 0%,
        rgba(255,255,251,0.95) 56%,
        rgba(255,255,251,0.46) 82%,
        rgba(255,255,251,0.10) 100%);
    }

    .project-story-detail-hero-inner {
        padding: 24px 18px 190px;
    }

    .project-story-detail-hero-inner .story-breadcrumbs {
        margin-bottom: 32px;
    }

    .project-story-detail-copy {
        width: 100%;
    }

    .project-story-detail-copy h1 {
        font-size: clamp(2.35rem, 12vw, 3.4rem);
    }

    .project-story-facts,
    .project-story-content,
    .project-story-return {
        padding-left: 18px;
        padding-right: 18px;
    }

    .project-story-facts {
        grid-template-columns: 1fr;
        margin-top: -18px;
    }

    .project-story-feature-card {
        grid-template-columns: 1fr;
        padding: 24px;
    }

    .project-story-feature-card .story-card-icon {
        width: 62px;
        height: 62px;
    }

    .project-story-details-grid {
        grid-template-columns: 1fr;
    }

    .project-story-detail-card {
        min-height: auto;
    }
}

/* =========================================================
   PATCH 20 — Useful information: compact navigation hub
   Structure preview before final image assets
   ========================================================= */
.useful-hub-page {
    --useful-navy: #073466;
    --useful-blue: #0b6698;
    --useful-teal: #087a72;
    --useful-green: #679b36;
    --useful-purple: #6553a4;
    --useful-gold: #d8aa35;
    --useful-paper: rgba(255, 255, 255, 0.94);
    --useful-border: rgba(139, 188, 185, 0.50);
    background: radial-gradient(circle at 8% 18%, rgba(205, 235, 226, 0.58), transparent 28rem),
    radial-gradient(circle at 91% 13%, rgba(210, 232, 239, 0.70), transparent 30rem),
    linear-gradient(180deg, #fbfcf8 0%, #f8fbf8 58%, #edf7f4 100%);
}

.useful-hub-page main {
    position: relative;
    overflow: hidden;
    background: transparent;
}

.useful-hub-page .site-footer {
    margin-top: 0;
}

/* Hero */
.useful-hub-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 430px;
    border-bottom: 1px solid rgba(139, 188, 185, 0.28);
    background: radial-gradient(circle at 50% 5%, rgba(255,255,255,0.96) 0 11%, transparent 36%),
    linear-gradient(180deg, rgba(237,248,248,0.96), rgba(255,253,245,0.90));
}

.useful-hub-hero::before,
.useful-hub-hero::after {
    content: "";
    position: absolute;
    pointer-events: none;
    z-index: -2;
}

.useful-hub-hero::before {
    left: -7%;
    right: -7%;
    bottom: -94px;
    height: 240px;
    opacity: 0.74;
    background: linear-gradient(155deg, transparent 0 30%, rgba(113,164,129,0.26) 31% 49%, transparent 50%),
    linear-gradient(22deg, rgba(61,145,155,0.22) 0 32%, transparent 33%),
    linear-gradient(165deg, transparent 0 55%, rgba(224,200,126,0.21) 56% 72%, transparent 73%);
}

.useful-hub-hero::after {
    width: 460px;
    height: 180px;
    right: -30px;
    bottom: -20px;
    opacity: 0.58;
    border-radius: 50% 40% 0 0;
    background: radial-gradient(circle at 78% 26%, rgba(255,224,140,0.40) 0 14%, transparent 15%),
    linear-gradient(150deg, transparent 0 31%, rgba(104,164,130,0.50) 32% 48%, transparent 49%),
    linear-gradient(172deg, transparent 0 47%, rgba(56,144,170,0.42) 48% 62%, transparent 63%);
}

.useful-hub-hero-decoration {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.useful-hub-hero-decoration::before,
.useful-hub-hero-decoration::after {
    content: "";
    position: absolute;
    opacity: 0.58;
}

.useful-hub-hero-decoration::before {
    left: 3%;
    bottom: 38px;
    width: 180px;
    height: 120px;
    border-radius: 52% 48% 44% 56%;
    background: radial-gradient(circle at 18% 72%, #80ad70 0 9%, transparent 10%),
    radial-gradient(circle at 39% 61%, #a3c588 0 13%, transparent 14%),
    radial-gradient(circle at 56% 74%, #6d9f73 0 10%, transparent 11%),
    linear-gradient(160deg, transparent 0 58%, rgba(109,154,117,0.30) 59%);
}

.useful-hub-hero-decoration::after {
    right: 4%;
    bottom: 26px;
    width: 150px;
    height: 116px;
    border-radius: 48% 52% 0 0;
    background: radial-gradient(circle at 42% 34%, rgba(246,210,112,0.52) 0 12%, transparent 13%),
    linear-gradient(145deg, transparent 0 42%, rgba(83,149,161,0.32) 43% 58%, transparent 59%);
}

.useful-hub-hero-inner {
    width: min(1480px, calc(100% - 64px));
    min-height: 430px;
    margin: 0 auto;
    padding: 52px 0 86px;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(360px, 0.72fr);
    gap: clamp(42px, 6vw, 88px);
    align-items: center;
}

.useful-hub-intro {
    max-width: 790px;
}

.useful-hub-page .hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    margin: 0 0 16px;
    padding: 8px 14px;
    border: 1px solid rgba(81,155,125,0.20);
    border-radius: 999px;
    background: rgba(238,248,242,0.86);
    color: var(--useful-teal);
    font-size: 0.92rem;
    font-weight: 900;
}

.useful-hub-page .hero-kicker::before {
    content: "";
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--useful-green);
    box-shadow: 0 0 0 5px rgba(103,155,54,0.12);
}

.useful-hub-intro h1 {
    max-width: 780px;
    margin: 0 0 22px;
    color: var(--useful-navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.55rem, 3.2vw, 3.2rem);
    line-height: 1;
    letter-spacing: -0.045em;
}

.useful-hub-lead {
    max-width: 770px;
    margin: 0;
    color: #244f68;
    font-size: 1.08rem;
    line-height: 1.68;
}

/* How-to card */
.useful-how-card {
    position: relative;
    padding: 28px 30px;
    border: 1px solid var(--useful-border);
    border-radius: 28px;
    background: radial-gradient(circle at 88% 12%, rgba(222,242,235,0.74), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,0.97), rgba(248,252,250,0.94));
    box-shadow: 0 24px 60px rgba(21,79,98,0.12);
}

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

.useful-how-heading h2 {
    margin: 0;
    color: var(--useful-navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.55rem, 2vw, 2rem);
    line-height: 1.05;
}

.useful-how-icon {
    position: relative;
    display: block;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(8,122,114,0.12);
}

.useful-how-icon::before {
    content: "";
    position: absolute;
    inset: 13px;
    border: 3px solid var(--useful-teal);
    border-radius: 50%;
}

.useful-how-icon::after {
    content: "";
    position: absolute;
    width: 15px;
    height: 3px;
    left: 27px;
    top: 31px;
    border-radius: 999px;
    background: var(--useful-teal);
    transform: rotate(45deg);
}

.useful-how-card > p {
    margin: 0 0 18px;
    color: #315d72;
    font-size: 0.92rem;
    line-height: 1.5;
}

.useful-how-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 13px;
}

.useful-how-steps li {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.useful-how-step-number {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(103,155,54,0.14);
    color: var(--useful-green);
    font-weight: 950;
}

.useful-how-steps strong,
.useful-how-steps small {
    display: block;
}

.useful-how-steps strong {
    margin-bottom: 3px;
    color: var(--useful-navy);
    font-size: 0.95rem;
}

.useful-how-steps small {
    color: #4b6d7f;
    font-size: 0.82rem;
    line-height: 1.38;
}

/* Role shortcuts */
.useful-role-strip {
    position: relative;
    z-index: 2;
    margin-top: -42px;
}

.useful-role-strip-inner {
    width: min(1280px, calc(100% - 64px));
    margin: 0 auto;
    padding: 15px 18px;
    display: grid;
    grid-template-columns: minmax(170px, 0.7fr) minmax(0, 3.3fr);
    gap: 18px;
    align-items: center;
    border: 1px solid rgba(139,188,185,0.52);
    border-radius: 22px;
    background: rgba(255,255,255,0.94);
    box-shadow: 0 18px 44px rgba(21,79,98,0.10);
    backdrop-filter: blur(10px);
}

.useful-role-strip h2 {
    margin: 0;
    color: var(--useful-navy);
    font-size: 0.98rem;
    line-height: 1.35;
}

.useful-role-links {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.useful-role-links a {
    min-width: 0;
    min-height: 58px;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 22px;
    gap: 10px;
    align-items: center;
    padding: 9px 11px;
    border: 1px solid rgba(139,188,185,0.38);
    border-radius: 15px;
    background: linear-gradient(180deg, #ffffff, #fbfdfc);
    color: var(--useful-navy);
    box-shadow: 0 8px 20px rgba(21,79,98,0.05);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.useful-role-links a:hover {
    transform: translateY(-2px);
    border-color: rgba(8,122,114,0.42);
    box-shadow: 0 14px 28px rgba(21,79,98,0.10);
}

.useful-role-links strong {
    min-width: 0;
    font-size: 0.84rem;
    line-height: 1.25;
}

.useful-role-arrow {
    justify-self: end;
    color: var(--useful-teal);
    font-size: 1.15rem;
    font-weight: 900;
}

.useful-role-icon {
    position: relative;
    display: block;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(103,155,54,0.14);
}

.useful-role-icon::before,
.useful-role-icon::after {
    content: "";
    position: absolute;
}

.useful-role-icon--candidate::before {
    width: 10px;
    height: 10px;
    left: 8px;
    top: 8px;
    border-radius: 50%;
    background: var(--useful-green);
    box-shadow: 13px 0 0 var(--useful-green);
}

.useful-role-icon--candidate::after {
    width: 24px;
    height: 11px;
    left: 7px;
    bottom: 7px;
    border-radius: 12px 12px 5px 5px;
    background: var(--useful-green);
}

.useful-role-icon--project {
    background: rgba(11,102,152,0.12);
}

.useful-role-icon--project::before {
    width: 22px;
    height: 16px;
    left: 8px;
    top: 12px;
    border: 3px solid var(--useful-blue);
    border-radius: 4px;
}

.useful-role-icon--project::after {
    width: 10px;
    height: 5px;
    left: 14px;
    top: 7px;
    border: 3px solid var(--useful-blue);
    border-bottom: 0;
    border-radius: 4px 4px 0 0;
}

.useful-role-icon--partner::before,
.useful-role-icon--partner::after {
    width: 17px;
    height: 12px;
    top: 13px;
    border: 3px solid var(--useful-green);
    border-radius: 10px 10px 4px 4px;
}

.useful-role-icon--partner::before {
    left: 4px;
    transform: rotate(26deg);
}

.useful-role-icon--partner::after {
    right: 4px;
    transform: rotate(-26deg);
}

.useful-role-icon--control {
    background: rgba(101,83,164,0.12);
}

.useful-role-icon--control::before {
    width: 20px;
    height: 23px;
    left: 9px;
    top: 7px;
    background: var(--useful-purple);
    clip-path: polygon(50% 0, 94% 17%, 84% 72%, 50% 100%, 16% 72%, 6% 17%);
}

.useful-role-icon--control::after {
    width: 7px;
    height: 11px;
    left: 16px;
    top: 12px;
    border-right: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(42deg);
}

/* Main thematic cards */
.useful-entry-section {
    position: relative;
    max-width: 1480px;
    margin: 0 auto;
    padding: 54px 56px 68px;
}

.useful-entry-section::before,
.useful-entry-section::after {
    content: "";
    position: absolute;
    z-index: -1;
    pointer-events: none;
    opacity: 0.44;
}

.useful-entry-section::before {
    width: 210px;
    height: 340px;
    left: -90px;
    bottom: 12px;
    border-radius: 50%;
    background: radial-gradient(ellipse at 70% 16%, rgba(104,156,79,0.55) 0 6%, transparent 7%),
    radial-gradient(ellipse at 54% 34%, rgba(78,145,116,0.42) 0 8%, transparent 9%),
    radial-gradient(ellipse at 68% 52%, rgba(61,136,129,0.38) 0 7%, transparent 8%);
}

.useful-entry-section::after {
    width: 210px;
    height: 330px;
    right: -90px;
    bottom: 10px;
    border-radius: 50%;
    background: radial-gradient(ellipse at 28% 18%, rgba(115,160,77,0.52) 0 6%, transparent 7%),
    radial-gradient(ellipse at 45% 38%, rgba(80,143,126,0.44) 0 8%, transparent 9%),
    radial-gradient(ellipse at 30% 60%, rgba(82,128,172,0.30) 0 7%, transparent 8%);
}

.useful-entry-heading {
    max-width: 820px;
    margin: 0 auto 26px;
    text-align: center;
}

.useful-entry-heading .eyebrow {
    justify-content: center;
}

.useful-entry-heading h2 {
    margin: 0 0 12px;
    color: var(--useful-navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.1rem, 2.8vw, 3rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.useful-entry-heading > p:last-child {
    margin: 0;
    color: #315d72;
    font-size: 0.98rem;
    line-height: 1.5;
}

.useful-entry-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.useful-entry-card {
    position: relative;
    min-width: 0;
    min-height: 248px;
    padding: 18px 20px 20px;
    display: grid;
    grid-template-columns: 126px minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    gap: 8px 18px;
    align-items: start;
    overflow: hidden;
    border: 1px solid var(--useful-border);
    border-radius: 24px;
    background: radial-gradient(circle at 18% 20%, rgba(235,247,241,0.95), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(249,252,250,0.94));
    color: var(--useful-navy);
    box-shadow: 0 16px 40px rgba(21,79,98,0.08);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.useful-entry-card:hover {
    transform: translateY(-5px);
    border-color: rgba(8,122,114,0.42);
    box-shadow: 0 26px 58px rgba(21,79,98,0.14);
}

.useful-entry-number {
    position: absolute;
    left: 14px;
    top: 14px;
    z-index: 2;
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 30px;
    border-radius: 999px;
    background: var(--useful-green);
    color: white;
    font-size: 0.78rem;
    font-weight: 950;
    box-shadow: 0 8px 16px rgba(57,102,55,0.16);
}

.useful-entry-visual {
    position: relative;
    grid-column: 1;
    grid-row: 1 / 3;
    align-self: center;
    display: block;
    width: 126px;
    height: 138px;
    border-radius: 50% 50% 44% 56%;
    background: radial-gradient(circle at 50% 48%, rgba(255,255,255,0.94) 0 32%, transparent 33%),
    radial-gradient(circle at 45% 55%, rgba(142,193,164,0.32) 0 56%, transparent 57%);
}

.useful-entry-visual::before,
.useful-entry-visual::after {
    content: "";
    position: absolute;
}

/* 01 signpost */
.useful-entry-visual--applications::before {
    width: 10px;
    height: 82px;
    left: 59px;
    top: 30px;
    border-radius: 4px;
    background: #8e7249;
    box-shadow: 0 5px 12px rgba(60,82,54,0.16);
}

.useful-entry-visual--applications::after {
    width: 74px;
    height: 22px;
    left: 26px;
    top: 35px;
    border-radius: 5px 12px 12px 5px;
    background: #6fa35c;
    box-shadow: 8px 31px 0 #4f9aaf, -4px 62px 0 #d6b55a;
    clip-path: polygon(0 0, 84% 0, 100% 50%, 84% 100%, 0 100%);
}

/* 02 clipboard + calculator */
.useful-entry-visual--reporting {
    background: radial-gradient(circle at 66% 76%, rgba(94,158,180,0.20) 0 22%, transparent 23%),
    radial-gradient(circle at 40% 52%, rgba(142,193,164,0.34) 0 58%, transparent 59%);
}

.useful-entry-visual--reporting::before {
    width: 55px;
    height: 76px;
    left: 22px;
    top: 31px;
    border: 4px solid #6e8793;
    border-radius: 6px;
    background: linear-gradient(#6da3b2,#6da3b2) 12px 25px/29px 3px no-repeat,
    linear-gradient(#9cbe77,#9cbe77) 12px 36px/22px 3px no-repeat,
    linear-gradient(#6da3b2,#6da3b2) 12px 47px/30px 3px no-repeat,
    #fdfefe;
}

.useful-entry-visual--reporting::after {
    width: 37px;
    height: 50px;
    right: 18px;
    bottom: 22px;
    border: 4px solid #2c728e;
    border-radius: 7px;
    background: repeating-linear-gradient(90deg, transparent 0 7px, rgba(44,114,142,.55) 8px 10px),
    repeating-linear-gradient(0deg, transparent 0 7px, rgba(44,114,142,.55) 8px 10px),
    #dfeff2;
}

/* 03 calculator + coins */
.useful-entry-visual--eligibility::before {
    width: 52px;
    height: 72px;
    left: 24px;
    top: 34px;
    border: 4px solid #276f8e;
    border-radius: 8px;
    background: linear-gradient(#b9d9df,#b9d9df) 8px 8px/28px 12px no-repeat,
    repeating-linear-gradient(90deg, transparent 0 8px, rgba(39,111,142,.50) 9px 12px),
    repeating-linear-gradient(0deg, transparent 0 8px, rgba(39,111,142,.50) 9px 12px),
    #eef7f7;
}

.useful-entry-visual--eligibility::after {
    width: 24px;
    height: 12px;
    right: 17px;
    bottom: 28px;
    border-radius: 50%;
    background: #deb039;
    box-shadow: 0 -13px 0 #e9c64d, 0 -26px 0 #f0d16e, -24px 3px 0 #d7a326;
}

/* 04 documents / files */
.useful-entry-visual--procurement::before {
    width: 62px;
    height: 76px;
    left: 18px;
    top: 35px;
    border: 4px solid #497b97;
    border-radius: 5px;
    background: linear-gradient(#6da3b2,#6da3b2) 12px 22px/34px 3px no-repeat,
    linear-gradient(#91b576,#91b576) 12px 34px/29px 3px no-repeat,
    linear-gradient(#6da3b2,#6da3b2) 12px 46px/36px 3px no-repeat,
    #ffffff;
    transform: rotate(-6deg);
}

.useful-entry-visual--procurement::after {
    width: 38px;
    height: 58px;
    right: 12px;
    bottom: 20px;
    border-radius: 5px;
    background: #5e88a9;
    box-shadow: -16px 6px 0 #86aa7b, -32px 12px 0 #d7b75a;
}

/* 05 checklist + magnifier */
.useful-entry-visual--control::before {
    width: 60px;
    height: 78px;
    left: 18px;
    top: 31px;
    border: 4px solid #738a7c;
    border-radius: 6px;
    background: linear-gradient(135deg, transparent 0 40%, #7eab57 41% 55%, transparent 56%) 10px 18px/13px 13px no-repeat,
    linear-gradient(#7b9bac,#7b9bac) 28px 23px/22px 3px no-repeat,
    linear-gradient(135deg, transparent 0 40%, #7eab57 41% 55%, transparent 56%) 10px 38px/13px 13px no-repeat,
    linear-gradient(#7b9bac,#7b9bac) 28px 43px/22px 3px no-repeat,
    linear-gradient(135deg, transparent 0 40%, #7eab57 41% 55%, transparent 56%) 10px 58px/13px 13px no-repeat,
    linear-gradient(#7b9bac,#7b9bac) 28px 63px/22px 3px no-repeat,
    #ffffff;
}

.useful-entry-visual--control::after {
    width: 40px;
    height: 40px;
    right: 12px;
    bottom: 25px;
    border: 5px solid #276f8e;
    border-radius: 50%;
    box-shadow: 17px 17px 0 -12px #276f8e;
}

/* 06 books */
.useful-entry-visual--glossary::before {
    width: 76px;
    height: 48px;
    left: 24px;
    top: 39px;
    border: 4px solid #6b7db1;
    border-radius: 8px 8px 18px 18px;
    background: linear-gradient(90deg, transparent 49%, #6b7db1 50% 52%, transparent 53%),
    repeating-linear-gradient(0deg, transparent 0 8px, rgba(107,125,177,.28) 9px 10px),
    #ffffff;
}

.useful-entry-visual--glossary::after {
    width: 64px;
    height: 13px;
    left: 34px;
    bottom: 24px;
    border-radius: 4px;
    background: #4f88aa;
    box-shadow: -9px 14px 0 #6d9daf, 5px 28px 0 #51628f;
}

.useful-entry-content {
    grid-column: 2;
    grid-row: 1 / 3;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-self: stretch;
    padding-top: 20px;
}

.useful-entry-content strong {
    display: block;
    margin-bottom: 10px;
    color: var(--useful-navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.26rem;
    line-height: 1.08;
}

.useful-entry-content small {
    display: block;
    color: #315d72;
    font-size: 0.88rem;
    line-height: 1.47;
}

.useful-entry-content em {
    display: block;
    margin-top: auto;
    padding-top: 16px;
    color: var(--useful-green);
    font-style: normal;
    font-size: 0.9rem;
    font-weight: 950;
}

.useful-entry-card--reporting .useful-entry-number,
.useful-entry-card--procurement .useful-entry-number {
    background: var(--useful-blue);
}

.useful-entry-card--reporting .useful-entry-content em,
.useful-entry-card--procurement .useful-entry-content em {
    color: var(--useful-blue);
}

.useful-entry-card--glossary .useful-entry-number {
    background: var(--useful-purple);
}

.useful-entry-card--glossary .useful-entry-content em {
    color: var(--useful-purple);
}

/* Tablet */
@media (max-width: 1240px) {
    .useful-hub-hero-inner {
        grid-template-columns: minmax(0, 1.15fr) minmax(330px, 0.85fr);
    }

    .useful-role-strip-inner {
        grid-template-columns: 1fr;
    }

    .useful-role-strip h2 {
        text-align: center;
    }

    .useful-entry-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 960px) {
    .useful-hub-hero-inner {
        width: min(100% - 48px, 820px);
        grid-template-columns: 1fr;
        padding-top: 46px;
        padding-bottom: 82px;
    }

    .useful-hub-intro {
        max-width: 760px;
    }

    .useful-how-card {
        max-width: 680px;
    }

    .useful-role-strip-inner {
        width: min(100% - 48px, 820px);
    }

    .useful-role-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .useful-entry-section {
        padding-left: 24px;
        padding-right: 24px;
    }
}

/* Mobile */
@media (max-width: 700px) {
    .useful-hub-hero {
        min-height: auto;
    }

    .useful-hub-hero-inner {
        width: calc(100% - 36px);
        min-height: 0;
        padding: 36px 0 72px;
        gap: 28px;
    }

    .useful-hub-intro h1 {
        font-size: clamp(2.45rem, 12vw, 3.65rem);
    }

    .useful-hub-lead {
        font-size: 1rem;
    }

    .useful-how-card {
        padding: 24px 22px;
        border-radius: 24px;
    }

    .useful-how-heading {
        grid-template-columns: 44px minmax(0, 1fr);
    }

    .useful-how-icon {
        width: 42px;
        height: 42px;
    }

    .useful-role-strip {
        margin-top: -38px;
    }

    .useful-role-strip-inner {
        width: calc(100% - 28px);
        padding: 16px;
    }

    .useful-role-links,
    .useful-entry-grid {
        grid-template-columns: 1fr;
    }

    .useful-role-links a {
        min-height: 54px;
    }

    .useful-entry-section {
        padding: 46px 18px 52px;
    }

    .useful-entry-card {
        min-height: auto;
        grid-template-columns: 104px minmax(0, 1fr);
        padding: 18px;
    }

    .useful-entry-visual {
        width: 104px;
        height: 124px;
        transform: scale(.88);
        transform-origin: center;
    }

    .useful-entry-content {
        padding-top: 14px;
    }

    .useful-entry-content strong {
        font-size: 1.12rem;
    }
}

@media (max-width: 440px) {
    .useful-entry-card {
        grid-template-columns: 1fr;
    }

    .useful-entry-visual,
    .useful-entry-content {
        grid-column: 1;
    }

    .useful-entry-visual {
        grid-row: 1;
        justify-self: center;
    }

    .useful-entry-content {
        grid-row: 2;
        padding-top: 0;
        text-align: left;
    }
}

/* =========================================================
   PATCH 19 — Useful page: final watercolor image assets
   ========================================================= */
/* Hero artwork replaces the temporary abstract CSS shapes. */
.useful-hub-page .useful-hub-hero {
    background: linear-gradient(90deg,
      rgba(255,255,255,0.84) 0%,
      rgba(255,255,255,0.70) 34%,
      rgba(255,255,255,0.28) 57%,
      rgba(255,255,255,0.20) 76%,
      rgba(255,255,255,0.42) 100%),
    linear-gradient(180deg, rgba(238,249,250,0.38), rgba(255,253,245,0.16)),
    url("../images/useful/useful-hero-watercolor.webp") center bottom / cover no-repeat;
}

.useful-hub-page .useful-hub-hero::before,
.useful-hub-page .useful-hub-hero::after,
.useful-hub-page .useful-hub-hero-decoration {
    display: none !important;
}

/* The approved title size. */
.useful-hub-page .useful-hub-intro h1 {
    max-width: 780px;
    font-size: clamp(2.55rem, 3.2vw, 3.2rem);
    line-height: 1.02;
    letter-spacing: -0.042em;
}

/* Real watercolor images inside the six thematic cards. */
.useful-hub-page .useful-entry-card {
    grid-template-columns: 150px minmax(0, 1fr);
    min-height: 258px;
}

.useful-hub-page .useful-entry-visual {
    width: 150px;
    height: 160px;
    border-radius: 0;
    background-color: transparent;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    filter: drop-shadow(0 10px 14px rgba(31, 77, 92, 0.10));
}

.useful-hub-page .useful-entry-visual::before,
.useful-hub-page .useful-entry-visual::after {
    display: none !important;
}

.useful-hub-page .useful-entry-visual--applications {
    background-image: url("../images/useful/useful-applications-partnerships.png");
}

.useful-hub-page .useful-entry-visual--reporting {
    background-image: url("../images/useful/useful-reporting.png");
}

.useful-hub-page .useful-entry-visual--eligibility {
    background-image: url("../images/useful/useful-eligibility.png");
}

.useful-hub-page .useful-entry-visual--procurement {
    background-image: url("../images/useful/useful-procurement.png");
}

.useful-hub-page .useful-entry-visual--control {
    background-image: url("../images/useful/useful-national-control.png");
}

.useful-hub-page .useful-entry-visual--glossary {
    background-image: url("../images/useful/useful-glossary.png");
}

@media (max-width: 960px) {
    .useful-hub-page .useful-hub-hero {
        background-position: 58% bottom;
    }
}

@media (max-width: 700px) {
    .useful-hub-page .useful-hub-hero {
        background: linear-gradient(180deg, rgba(255,255,255,0.78), rgba(255,255,255,0.64)),
      url("../images/useful/useful-hero-watercolor.webp") center bottom / auto 100% no-repeat,
      linear-gradient(180deg, #edf9fa, #fffdf7);
    }

    .useful-hub-page .useful-hub-intro h1 {
        font-size: clamp(2.35rem, 11vw, 3.2rem);
    }

    .useful-hub-page .useful-entry-card {
        grid-template-columns: 118px minmax(0, 1fr);
    }

    .useful-hub-page .useful-entry-visual {
        width: 118px;
        height: 132px;
        transform: none;
    }
}

@media (max-width: 440px) {
    .useful-hub-page .useful-entry-visual {
        width: 170px;
        height: 138px;
    }
}

/* =========================================================
   PATCH 21 — Useful page alignment with approved visual
   Six editorial cards in one row + stronger hero artwork
   ========================================================= */
/* Hero: shorter, brighter and closer to the approved composition. */
.useful-hub-page .useful-hub-hero {
    min-height: 390px;
    background: linear-gradient(90deg,
      rgba(255,255,255,0.60) 0%,
      rgba(255,255,255,0.46) 33%,
      rgba(255,255,255,0.18) 53%,
      rgba(255,255,255,0.08) 72%,
      rgba(255,255,255,0.12) 100%),
    url("../images/useful/useful-hero-watercolor.webp") center bottom / cover no-repeat;
}

.useful-hub-page .useful-hub-hero-inner {
    min-height: 390px;
    width: min(1450px, calc(100% - 64px));
    padding: 34px 0 72px;
    grid-template-columns: minmax(0, 1.18fr) minmax(390px, 0.72fr);
    gap: clamp(38px, 4.4vw, 72px);
}

.useful-hub-page .useful-hub-intro {
    max-width: 760px;
}

.useful-hub-page .useful-hub-intro h1 {
    max-width: 740px;
    font-size: clamp(2.65rem, 3.2vw, 3.2rem);
    line-height: 1.01;
}

.useful-hub-page .useful-hub-lead {
    max-width: 690px;
    font-size: 1rem;
    line-height: 1.56;
}

.useful-hub-page .useful-how-card {
    padding: 22px 24px;
    border-radius: 22px;
    box-shadow: 0 18px 44px rgba(21,79,98,0.11);
}

.useful-hub-page .useful-how-heading {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    margin-bottom: 10px;
}

.useful-hub-page .useful-how-heading h2 {
    font-size: clamp(1.35rem, 1.7vw, 1.72rem);
}

.useful-hub-page .useful-how-icon {
    width: 40px;
    height: 40px;
}

.useful-hub-page .useful-how-icon::before {
    inset: 10px;
}

.useful-hub-page .useful-how-icon::after {
    left: 23px;
    top: 26px;
}

.useful-hub-page .useful-how-card > p {
    margin-bottom: 12px;
    font-size: 0.82rem;
    line-height: 1.42;
}

.useful-hub-page .useful-how-steps {
    gap: 9px;
}

.useful-hub-page .useful-how-steps li {
    position: relative;
    grid-template-columns: 28px 28px minmax(0, 1fr);
    gap: 8px;
}

.useful-hub-page .useful-how-step-number {
    width: 27px;
    height: 27px;
    grid-column: 1;
    font-size: 0.78rem;
}

/* Small pictograms for the three instructions. */
.useful-hub-page .useful-how-steps li::before,
.useful-hub-page .useful-how-steps li::after {
    content: "";
    position: relative;
    display: block;
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    justify-self: center;
}

.useful-hub-page .useful-how-steps li:nth-child(1)::before {
    width: 14px;
    height: 14px;
    margin-top: 4px;
    border: 2px solid var(--useful-teal);
    border-radius: 50%;
}

.useful-hub-page .useful-how-steps li:nth-child(1)::after {
    width: 8px;
    height: 2px;
    margin-top: 17px;
    margin-left: 13px;
    border-radius: 999px;
    background: var(--useful-teal);
    transform: rotate(45deg);
}

.useful-hub-page .useful-how-steps li:nth-child(2)::before {
    width: 16px;
    height: 20px;
    margin-top: 2px;
    border: 2px solid var(--useful-teal);
    border-radius: 2px;
    background: linear-gradient(var(--useful-teal),var(--useful-teal)) 3px 5px/8px 2px no-repeat,
    linear-gradient(var(--useful-teal),var(--useful-teal)) 3px 10px/8px 2px no-repeat,
    linear-gradient(var(--useful-teal),var(--useful-teal)) 3px 15px/6px 2px no-repeat;
}

.useful-hub-page .useful-how-steps li:nth-child(2)::after {
    display: none;
}

.useful-hub-page .useful-how-steps li:nth-child(3)::before {
    width: 19px;
    height: 19px;
    margin-top: 2px;
    border: 2px solid var(--useful-teal);
    border-radius: 50%;
    background: linear-gradient(90deg, transparent 43%, var(--useful-teal) 44% 56%, transparent 57%),
    linear-gradient(transparent 43%, var(--useful-teal) 44% 56%, transparent 57%);
}

.useful-hub-page .useful-how-steps li:nth-child(3)::after {
    display: none;
}

.useful-hub-page .useful-how-steps li > div {
    grid-column: 3;
    grid-row: 1;
}

.useful-hub-page .useful-how-steps strong {
    font-size: 0.84rem;
}

.useful-hub-page .useful-how-steps small {
    font-size: 0.74rem;
    line-height: 1.28;
}

/* Role strip and its icons: clearly visible, coloured circles. */
.useful-hub-page .useful-role-strip {
    margin-top: -34px;
}

.useful-hub-page .useful-role-strip-inner {
    width: min(1320px, calc(100% - 64px));
    padding: 12px 16px;
    border-radius: 18px;
}

.useful-hub-page .useful-role-links a {
    min-height: 54px;
    grid-template-columns: 42px minmax(0, 1fr) 20px;
    padding: 7px 10px;
    border-radius: 14px;
}

.useful-hub-page .useful-role-icon {
    display: block !important;
    width: 40px;
    height: 40px;
    opacity: 1 !important;
    visibility: visible !important;
    flex: 0 0 40px;
}

.useful-hub-page .useful-role-icon::before,
.useful-hub-page .useful-role-icon::after {
    display: block !important;
}

.useful-hub-page .useful-role-links strong {
    font-size: 0.80rem;
}

/* Main area: approved six-card editorial row. */
.useful-hub-page .useful-entry-section {
    max-width: 1660px;
    padding: 28px 56px 48px;
}

.useful-hub-page .useful-entry-heading {
    margin: 0 auto 18px;
    text-align: center;
}

.useful-hub-page .useful-entry-heading h2 {
    position: relative;
    display: inline-block;
    margin: 0;
    color: var(--useful-navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.55rem, 1.8vw, 1.9rem);
    line-height: 1.05;
    letter-spacing: -0.025em;
}

.useful-hub-page .useful-entry-heading h2::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -10px;
    width: 30px;
    height: 2px;
    border-radius: 999px;
    background: var(--useful-teal);
    transform: translateX(-50%);
}

.useful-hub-page .useful-entry-assist {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

.useful-hub-page .useful-entry-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
    align-items: stretch;
}

.useful-hub-page .useful-entry-card {
    position: relative;
    min-width: 0;
    min-height: 342px;
    padding: 14px 14px 16px;
    display: flex;
    flex-direction: column;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(252,254,253,0.94));
}

.useful-hub-page .useful-entry-number {
    position: absolute;
    z-index: 3;
    top: 12px;
    left: 12px;
    width: 34px;
    height: 30px;
    font-size: 0.78rem;
}

.useful-hub-page .useful-entry-visual {
    flex: 0 0 auto;
    width: 100%;
    height: 142px;
    margin: 4px 0 4px;
    background-position: center;
    background-size: contain;
}

.useful-hub-page .useful-entry-content {
    grid-column: auto;
    grid-row: auto;
    flex: 1 1 auto;
    min-width: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.useful-hub-page .useful-entry-content strong {
    margin-bottom: 8px;
    font-size: 1.02rem;
    line-height: 1.08;
}

.useful-hub-page .useful-entry-content small {
    font-size: 0.78rem;
    line-height: 1.42;
}

.useful-hub-page .useful-entry-content em {
    margin-top: auto;
    padding-top: 14px;
    font-size: 0.79rem;
}

/* A soft ground line and botanical feel, without adding another image file. */
.useful-hub-page .useful-entry-section::before {
    left: -60px;
    bottom: -36px;
    width: 360px;
    height: 210px;
    opacity: 0.45;
    background: radial-gradient(ellipse at 12% 75%, rgba(91,151,105,.55) 0 7%, transparent 8%),
    radial-gradient(ellipse at 26% 52%, rgba(91,151,105,.48) 0 6%, transparent 7%),
    radial-gradient(ellipse at 36% 78%, rgba(76,136,154,.35) 0 6%, transparent 7%),
    linear-gradient(160deg, transparent 0 62%, rgba(109,154,117,.24) 63%);
}

.useful-hub-page .useful-entry-section::after {
    right: -55px;
    bottom: -30px;
    width: 330px;
    height: 200px;
    opacity: 0.43;
    background: radial-gradient(ellipse at 78% 60%, rgba(109,154,117,.52) 0 7%, transparent 8%),
    radial-gradient(ellipse at 91% 40%, rgba(224,190,83,.45) 0 6%, transparent 7%),
    radial-gradient(ellipse at 66% 82%, rgba(90,130,176,.38) 0 6%, transparent 7%),
    linear-gradient(20deg, transparent 0 62%, rgba(109,154,117,.22) 63%);
}

@media (max-width: 1380px) {
    .useful-hub-page .useful-entry-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .useful-hub-page .useful-entry-card {
        min-height: 300px;
        display: grid;
        grid-template-columns: 140px minmax(0, 1fr);
        gap: 12px;
    }

    .useful-hub-page .useful-entry-visual {
        width: 140px;
        height: 150px;
        align-self: center;
    }
}

@media (max-width: 960px) {
    .useful-hub-page .useful-hub-hero-inner {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .useful-hub-page .useful-entry-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .useful-hub-page .useful-entry-card {
        display: flex;
        min-height: 330px;
    }

    .useful-hub-page .useful-entry-visual {
        width: 100%;
        height: 148px;
    }
}

@media (max-width: 700px) {
    .useful-hub-page .useful-hub-hero {
        min-height: auto;
    }

    .useful-hub-page .useful-entry-section {
        padding-left: 18px;
        padding-right: 18px;
    }

    .useful-hub-page .useful-entry-grid {
        grid-template-columns: 1fr;
    }

    .useful-hub-page .useful-entry-card {
        min-height: auto;
        display: grid;
        grid-template-columns: 120px minmax(0, 1fr);
        gap: 12px;
    }

    .useful-hub-page .useful-entry-visual {
        width: 120px;
        height: 128px;
        margin-top: 12px;
    }
}

@media (max-width: 440px) {
    .useful-hub-page .useful-entry-card {
        display: flex;
    }

    .useful-hub-page .useful-entry-visual {
        width: 100%;
        height: 150px;
    }
}
