/* E-CoRe Landing — EU & Energy theme */
:root {
    --eu-blue: #003399;
    --eu-blue-dark: #002266;
    --eu-gold: #FFD700;
    --eu-gold-dark: #E6C200;
    --energy-green: #1a4d2e;
    --energy-green-light: #2d7a4a;
}
html.dark-mode {
    color-scheme: dark;
}
html.dark-mode body {
    background: #1e293b;
    color: #e2e8f0;
}
html.dark-mode .header-nav {
    background: #0f172a;
    border-bottom-color: rgba(255, 255, 255, 0.08);
}
html.dark-mode .header-brand-title { color: #f1f5f9; }
html.dark-mode .header-brand-tagline { color: #94a3b8; }
html.dark-mode .header-menu-link { color: #cbd5e1; }
html.dark-mode .header-menu-link:hover { color: var(--eu-gold); }
html.dark-mode .header-action-btn { color: #94a3b8; }
html.dark-mode .header-action-btn:hover { color: var(--eu-gold); }
html.dark-mode .header-dropdown { background: #1e293b; border-color: #334155; }
html.dark-mode .header-dropdown-link { color: #e2e8f0; }
html.dark-mode .header-dropdown-link:hover { background: rgba(255, 215, 0, 0.1); color: var(--eu-gold); }
html.dark-mode .header-nav-toggle-bar { background: #e2e8f0; }
html.dark-mode .header-nav .dropdown-menu {
    background: #1e293b;
    border-color: #334155;
}
html.dark-mode .header-nav .dropdown-menu .dropdown-item {
    color: #e2e8f0;
}
html.dark-mode .header-nav .dropdown-menu .dropdown-item:hover {
    background: rgba(255, 215, 0, 0.1);
    color: var(--eu-gold);
}
html.dark-mode .site-wrapper main { background: #1e293b; }
html.dark-mode .breadcrumb-bar { background: #0f172a; border-bottom-color: #334155; }
html.dark-mode .breadcrumb-item a { color: #94a3b8; }
html.dark-mode .breadcrumb-item a:hover { color: var(--eu-gold); }
html.dark-mode .breadcrumb-item.active { color: #e2e8f0; }
html.dark-mode .breadcrumb-item + .breadcrumb-item::before { color: #64748b; }

body {
    padding-top: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Dark theme (landing + project page) */
body.dark-theme {
    overflow-x: hidden;
}
body.dark-theme .header-nav {
    background: rgba(8, 23, 42, 0.85) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}
body.dark-theme .header-brand-title { color: #fff !important; }
body.dark-theme .header-brand-tagline { color: rgba(255, 255, 255, 0.7) !important; }
body.dark-theme .header-menu-link { color: rgba(255, 255, 255, 0.85) !important; }
body.dark-theme .header-menu-link:hover { color: #00d4aa !important; }
body.dark-theme .header-action-btn { color: rgba(255, 255, 255, 0.85) !important; }
body.dark-theme .header-action-btn:hover { color: #00d4aa !important; }
body.dark-theme .header-nav-toggle-bar { background: #fff !important; }
body.dark-theme .header-nav .dropdown-menu {
    background: rgba(30, 41, 59, 0.98) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}
body.dark-theme .header-nav .dropdown-menu .dropdown-item {
    color: rgba(255, 255, 255, 0.9) !important;
}
body.dark-theme .header-nav .dropdown-menu .dropdown-item:hover {
    background: rgba(0, 212, 170, 0.15) !important;
    color: #00d4aa !important;
}

/* Dark theme: mobile menu panel */
@media (max-width: 991px) {
    body.dark-theme .header-nav-collapse {
        background: rgba(15, 23, 42, 0.98) !important;
        border-top-color: rgba(255, 255, 255, 0.1) !important;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    }
    body.dark-theme .header-nav-collapse .header-menu-link {
        color: rgba(255, 255, 255, 0.9) !important;
    }
    body.dark-theme .header-nav-collapse .header-menu-link:hover {
        background: rgba(0, 212, 170, 0.15) !important;
        color: #00d4aa !important;
    }
    body.dark-theme .header-nav-collapse .header-dropdown {
        background: rgba(30, 41, 59, 0.8) !important;
    }
    body.dark-theme .header-nav-collapse .header-dropdown .dropdown-item {
        color: rgba(255, 255, 255, 0.9) !important;
    }
    body.dark-theme .header-nav-collapse .header-dropdown .dropdown-item:hover {
        background: rgba(0, 212, 170, 0.15) !important;
        color: #00d4aa !important;
    }
    body.dark-theme .header-nav-collapse .header-actions {
        border-top-color: rgba(255, 255, 255, 0.1) !important;
    }
}

/* Top bar + main nav */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
}
/* Professional header + navigation */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.header-nav {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    gap: 2rem;
}
.header-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
    flex-shrink: 0;
    transition: opacity 0.2s;
}
.header-brand:hover {
    color: inherit;
    opacity: 0.9;
}
.header-logo {
    height: 44px;
    width: auto;
    display: block;
}
.header-brand-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}
.header-brand-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--eu-blue);
    letter-spacing: -0.02em;
    line-height: 1.2;
}
.header-brand-tagline {
    font-size: 0.75rem;
    font-weight: 500;
    color: #64748b;
    letter-spacing: 0.01em;
    line-height: 1.2;
}
.header-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s;
}
.header-nav-toggle:hover {
    background: rgba(0, 51, 153, 0.08);
}
.header-nav-toggle-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--eu-blue);
    border-radius: 1px;
    transition: transform 0.3s, opacity 0.3s;
}
.header-nav-collapse {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: space-between;
}
/* Override Bootstrap collapse: always show menu on desktop */
@media (min-width: 992px) {
    .header-nav-collapse.collapse {
        display: flex !important;
        visibility: visible;
        height: auto;
    }
}
.header-menu {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.25rem;
}
.header-menu-item {
    position: relative;
}
.header-menu-link {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #334155;
    text-decoration: none;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
}
.header-menu-link:hover {
    color: var(--eu-blue);
    background: rgba(0, 51, 153, 0.06);
}
.header-menu-dropdown .header-menu-link::after {
    content: '';
    display: inline-block;
    margin-left: 0.35em;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    vertical-align: 0.2em;
}
.header-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    padding: 0.5rem 0;
    margin: 0.25rem 0 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
    z-index: 1000;
}
.header-menu-dropdown:hover .header-dropdown,
.header-dropdown-wrap:hover .header-dropdown,
.header-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.header-dropdown-end {
    left: auto;
    right: 0;
}
.header-dropdown-link {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    color: #475569;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
.header-dropdown-link:hover {
    background: rgba(0, 51, 153, 0.06);
    color: var(--eu-blue);
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.header-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #475569;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s, background 0.2s;
}
.header-action-btn:hover {
    color: var(--eu-blue);
    background: rgba(0, 51, 153, 0.06);
}
.header-action-btn-outline:hover {
    background: rgba(220, 38, 38, 0.08);
    color: #dc2626;
}
.header-action-btn-icon {
    padding: 0.5rem 0.75rem;
}
.header-action-chevron {
    font-size: 0.7rem;
    opacity: 0.7;
}
.header-dropdown-wrap {
    position: relative;
}
/* Bootstrap dropdown integration */
.header-nav .dropdown-menu {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    padding: 0.5rem 0;
}
.header-nav .dropdown-menu .dropdown-item {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    color: #475569;
}
.header-nav .dropdown-menu .dropdown-item:hover {
    background: rgba(0, 51, 153, 0.06);
    color: var(--eu-blue);
}
.header-lang-code {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}
@media (max-width: 991px) {
    .header-nav-toggle {
        display: flex;
    }
    .header-nav-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        background: #fff;
        border-top: 1px solid #e2e8f0;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
        padding: 1rem;
        gap: 1rem;
    }
    .header-nav-collapse.collapse:not(.show) {
        display: none;
    }
    .header-nav-collapse.collapse.show {
        display: flex;
    }
    .header-menu {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 0.25rem;
    }
    .header-menu-link {
        padding: 0.75rem 1rem;
        border-radius: 8px;
    }
    .header-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: #f8fafc;
        margin: 0.25rem 0 0 1rem;
        max-height: 0;
        overflow: hidden;
        padding: 0;
        transition: max-height 0.3s;
    }
    .header-menu-dropdown:hover .header-dropdown,
    .header-dropdown.show {
        max-height: 300px;
    }
    .header-dropdown-link {
        padding: 0.5rem 1rem;
    }
    .header-actions {
        flex-wrap: wrap;
        justify-content: flex-start;
        padding-top: 0.5rem;
        border-top: 1px solid #e2e8f0;
    }
}
@media (max-width: 575px) {
    .header-brand-tagline {
        display: none;
    }
    .header-brand-title {
        font-size: 1.1rem;
    }
    .header-logo {
        height: 38px;
    }
}
.site-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.site-wrapper main {
    flex: 1 0 auto;
    background: #fff;
}
.breadcrumb-bar {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    padding: 0.5rem 0;
}
.breadcrumb {
    margin: 0;
    padding: 0;
    background: transparent;
    font-size: 0.875rem;
}
.breadcrumb-item a {
    color: #64748b;
    text-decoration: none;
}
.breadcrumb-item a:hover {
    color: var(--eu-blue);
}
.breadcrumb-item.active {
    color: #334155;
    font-weight: 500;
}
.breadcrumb-item + .breadcrumb-item::before {
    color: #94a3b8;
}

/* Professional footer */
.site-footer {
    flex-shrink: 0;
    background: linear-gradient(180deg, #1a1a2e 0%, #0f0f1a 100%);
    color: #fff;
}
.site-footer .footer-main {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.site-footer .footer-brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--eu-gold);
    margin-bottom: 0.5rem;
}
.site-footer .footer-tagline {
    color: rgba(255,255,255,0.9);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}
.site-footer .footer-funded {
    max-width: 280px;
}
.site-footer .footer-heading {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--eu-gold);
    margin-bottom: 1rem;
}
.site-footer .footer-links li {
    margin-bottom: 0.5rem;
}
.site-footer .footer-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 0.9rem;
}
.site-footer .footer-links a:hover {
    color: var(--eu-gold);
}
.site-footer .footer-eu-badge {
    text-align: right;
    color: rgba(255,255,255,0.9);
}
.site-footer .eu-stars-small {
    color: var(--eu-gold);
    letter-spacing: 0.15em;
    font-size: 0.7rem;
}
.site-footer .footer-bottom {
    background: rgba(0,0,0,0.2);
}
.page-content, .topic-content {
    line-height: 1.7;
}

/* Hero */
.hero-section {
    background: linear-gradient(135deg, var(--eu-blue) 0%, var(--eu-blue-dark) 50%, var(--energy-green) 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.hero-section .hero-bg {
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23FFD700' fill-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}
.hero-section .container {
    position: relative;
    z-index: 1;
}
.min-vh-75 {
    min-height: 75vh;
}
.hero-badge {
    display: inline-block;
    background: rgba(255, 215, 0, 0.2);
    color: var(--eu-gold);
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}
.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}
.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.95;
    margin-bottom: 1rem;
}
.hero-lead {
    font-size: 1.1rem;
    max-width: 540px;
    line-height: 1.6;
    opacity: 0.95;
}
.btn-eu-gold {
    background: var(--eu-gold);
    color: var(--eu-blue);
    border: none;
    font-weight: 600;
}
.btn-eu-gold:hover {
    background: var(--eu-gold-dark);
    color: var(--eu-blue);
}
.hero-image-placeholder img {
    border: 3px solid rgba(255, 215, 0, 0.3);
}
.eu-funding-bar {
    background: rgba(0, 0, 0, 0.2);
    font-size: 0.9rem;
    font-weight: 500;
}
.eu-stars {
    color: var(--eu-gold);
    letter-spacing: 0.2em;
    font-size: 0.75rem;
}

/* Sections */
.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--eu-blue);
    margin-bottom: 1.5rem;
}
.text-eu-blue {
    color: var(--eu-blue) !important;
}
.image-encart {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 51, 153, 0.15);
}
.image-encart img {
    display: block;
    width: 100%;
}

/* Work Packages — white cards on blue bg for readability */
.section-workpackages {
    background: linear-gradient(135deg, var(--eu-blue) 0%, var(--eu-blue-dark) 100%) !important;
}
.wp-card {
    background: #fff;
    color: var(--eu-blue);
    border: none;
    border-radius: 12px;
    padding: 1.5rem;
    height: 100%;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}
.wp-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}
.wp-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--eu-gold);
    margin-bottom: 0.5rem;
}
.wp-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--eu-blue);
    margin-bottom: 0.5rem;
}
.wp-card p {
    font-size: 0.9rem;
    color: #333;
    margin: 0;
}
.section-workpackages .section-title,
.section-workpackages .lead {
    color: #fff !important;
}

/* CTA Cards */
.section-cta .cta-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    height: 100%;
    transition: box-shadow 0.2s, border-color 0.2s;
}
.section-cta .cta-card:hover {
    box-shadow: 0 8px 30px rgba(0, 51, 153, 0.12);
    border-color: var(--eu-blue);
}
.cta-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.cta-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.cta-card h4 a {
    color: var(--eu-blue);
    text-decoration: none;
}
.cta-card h4 a:hover {
    color: var(--energy-green);
}
.cta-card p {
    font-size: 0.9rem;
    color: #6c757d;
    margin: 0;
}

/* Events listing */
/* Events index page */
.events-index-page .events-hero {
    background: linear-gradient(135deg, var(--eu-blue) 0%, var(--eu-blue-dark) 50%, var(--energy-green) 100%);
    color: #fff;
    position: relative;
}
.events-index-page .events-hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.events-index-page .events-hero-lead {
    font-size: 1.1rem;
    opacity: 0.95;
}
.events-listing .text-eu-blue { color: var(--eu-blue) !important; }
.events-filters .card-header { background: linear-gradient(135deg, var(--eu-blue) 0%, var(--eu-blue-dark) 100%) !important; }
.events-filters .btn-check:checked + .btn-outline-primary { background-color: var(--eu-blue); color: #fff; border-color: var(--eu-blue); }
.event-card { border-radius: 12px; transition: transform 0.2s, box-shadow 0.2s; }
.event-card:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0, 51, 153, 0.15) !important; }
.event-card .card-title a:hover { color: var(--eu-blue) !important; }
.event-badge { font-size: 0.7rem; }
.event-icon { opacity: 0.8; }

/* Event view page */
.event-view-page .event-hero {
    background: linear-gradient(135deg, var(--eu-blue) 0%, var(--eu-blue-dark) 100%);
    color: #fff;
}
.event-view-page .event-hero .event-back-link:hover { color: #fff !important; }
.event-view-page .event-title { font-size: 2rem; font-weight: 700; }
.event-view-page .event-organizer { font-size: 1.1rem; }
.event-view-page .event-status-badge { font-size: 0.8rem; padding: 0.4rem 0.8rem; }
.event-view-page .event-description .card-title { font-size: 1.25rem; }
.event-view-page .event-content { line-height: 1.7; }
.event-view-page .event-content p:last-child { margin-bottom: 0; }
.event-view-page .event-cta { margin-top: 1.5rem; }
.event-view-page .event-details-card .card-header {
    background: linear-gradient(135deg, var(--eu-blue) 0%, var(--eu-blue-dark) 100%) !important;
    border-radius: 0.375rem 0.375rem 0 0;
}
.event-view-page .event-detail-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}
.event-view-page .event-detail-item:last-child { border-bottom: none; padding-bottom: 0; }
.event-view-page .event-detail-icon { font-size: 1.5rem; flex-shrink: 0; }
.event-view-page .event-detail-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6c757d;
    margin-bottom: 0.25rem;
}
.event-view-page .event-detail-value { font-weight: 500; }

/* Offers index page */
.offers-index-page .offers-hero {
    background: linear-gradient(135deg, var(--eu-blue) 0%, var(--eu-blue-dark) 100%);
    color: #fff;
    position: relative;
}
.offers-index-page .offers-hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.offers-index-page .offers-hero-lead {
    font-size: 1.1rem;
    opacity: 0.9;
}
.offers-index-page .offers-filters .form-control,
.offers-index-page .offers-filters .form-select {
    border-radius: 8px;
}
.offers-index-page .offer-card {
    border-radius: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.offers-index-page .offer-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 51, 153, 0.12) !important;
}
.offers-index-page .offer-card-title a {
    color: var(--eu-blue);
}
.offers-index-page .offer-card-title a:hover {
    color: var(--energy-green);
}
.offers-index-page .offer-card-company {
    letter-spacing: 0.05em;
}
.offers-index-page .offer-card-tags .badge {
    font-size: 0.7rem;
    font-weight: 500;
}
.offers-index-page .offers-filter-form .form-control,
.offers-index-page .offers-filter-form .form-select {
    border-radius: 8px;
    border-color: #e2e8f0;
}
.offers-index-page .offers-filter-form .form-control:focus,
.offers-index-page .offers-filter-form .form-select:focus {
    border-color: var(--eu-blue);
    box-shadow: 0 0 0 3px rgba(0, 51, 153, 0.12);
}
.offers-index-page .offers-filters .card {
    border-radius: 12px;
}
.offers-index-page .offers-results .text-muted.small {
    font-weight: 500;
    color: #64748b;
}
.offers-index-page .offers-empty-icon {
    font-size: 4rem;
    color: #dee2e6;
}
/* Offers pagination */
.offers-pagination-wrap {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}
.offers-pagination-wrap .offers-pagination-nav {
    display: flex;
    justify-content: center;
}
.offers-index-page .offers-pagination .page-item {
    margin: 0 0.15rem;
}
.offers-index-page .offers-pagination .page-link {
    border-radius: 8px !important;
    padding: 0.5rem 0.85rem;
    font-weight: 500;
    color: var(--eu-blue);
    border: 1px solid #dee2e6;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.offers-index-page .offers-pagination .page-link:hover {
    background: rgba(0, 51, 153, 0.08);
    color: var(--eu-blue-dark);
    border-color: var(--eu-blue);
}
.offers-index-page .offers-pagination .page-item.active .page-link {
    background: var(--eu-blue);
    border-color: var(--eu-blue);
    color: #fff;
}
.offers-index-page .offers-pagination .page-item.disabled .page-link {
    color: #adb5bd;
    background: #f8f9fa;
    border-color: #dee2e6;
}

/* Offers view page */
.offers-view-page .offers-hero {
    background: linear-gradient(135deg, var(--eu-blue) 0%, var(--eu-blue-dark) 100%);
    color: #fff;
}
.offers-view-page .offers-hero .offers-back-link:hover { color: #fff !important; }
.offers-view-page .offers-title { font-size: 2rem; font-weight: 700; }
.offers-view-page .offers-company { font-size: 1.1rem; }
.offers-view-page .offers-description .card-title { font-size: 1.25rem; }
.offers-view-page .offers-content { line-height: 1.7; }
.offers-view-page .offers-content p:last-child { margin-bottom: 0; }
.offers-view-page .offers-content a { color: var(--eu-blue); text-decoration: none; }
.offers-view-page .offers-content a:hover { text-decoration: underline; }
.offers-view-page .offers-cta { margin-top: 1.5rem; }
.offers-view-page .offers-details-card .card-header {
    background: linear-gradient(135deg, var(--eu-blue) 0%, var(--eu-blue-dark) 100%) !important;
    border-radius: 0.375rem 0.375rem 0 0;
}
.offers-view-page .offers-detail-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}
.offers-view-page .offers-detail-item:last-child { border-bottom: none; padding-bottom: 0; }
.offers-view-page .offers-detail-icon { font-size: 1.5rem; flex-shrink: 0; }
.offers-view-page .offers-detail-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6c757d;
    margin-bottom: 0.25rem;
}
.offers-view-page .offers-detail-value { font-weight: 500; }

/* PhD Topics index */
.topics-index-page .topics-hero {
    background: linear-gradient(135deg, var(--eu-blue) 0%, var(--eu-blue-dark) 50%, var(--energy-green) 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.topics-index-page .topics-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23FFD700' fill-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}
.topics-hero-badge {
    display: inline-block;
    background: rgba(255, 215, 0, 0.2);
    color: var(--eu-gold);
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}
.topics-hero-title { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; }
.topics-hero-subtitle { font-size: 1.1rem; }
.topics-hero-lead { font-size: 1rem; max-width: 600px; margin: 0 auto; line-height: 1.6; }
.topics-wp-section { margin-top: 3rem; }
.topics-wp-badge {
    display: inline-block;
    background: var(--eu-blue);
    color: var(--eu-gold);
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}
.topics-wp-title { font-size: 1.5rem; font-weight: 700; color: var(--eu-blue); margin-bottom: 1rem; }
.topic-card { border-radius: 12px; transition: transform 0.2s, box-shadow 0.2s; }
.topic-card:hover { transform: translateY(-4px); box-shadow: 0 8px 25px rgba(0, 51, 153, 0.15) !important; }
.topic-dc-badge {
    display: inline-block;
    background: var(--eu-gold);
    color: var(--eu-blue);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}
.topic-card-title { font-size: 1.1rem; font-weight: 600; color: var(--eu-blue); margin-bottom: 0.5rem; }
.topic-card-title a { color: inherit; }
.topic-card-title a:hover { color: var(--energy-green); }
.topic-card-supervisor { font-size: 0.9rem; margin-bottom: 0.25rem; }
.topic-detail-label { font-size: 0.7rem; text-transform: uppercase; color: #6c757d; display: block; }
.topic-card-excerpt { font-size: 0.85rem; color: #6c757d; margin-bottom: 0.75rem; line-height: 1.5; }
.topic-card-link { font-size: 0.9rem; font-weight: 600; color: var(--eu-blue); }
.topic-card-link:hover { color: var(--energy-green); }

/* PhD Topic view */
.topic-view-page .topic-hero {
    background: linear-gradient(135deg, var(--eu-blue) 0%, var(--eu-blue-dark) 50%, var(--energy-green) 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.topic-view-page .topic-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23FFD700' fill-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}
.topic-view-page .topic-back-link:hover { color: #fff !important; }
.topic-view-page .topic-wp-badge {
    display: inline-block;
    background: rgba(255, 215, 0, 0.2);
    color: var(--eu-gold);
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-right: 0.5rem;
}
.topic-view-page .topic-dc-badge {
    display: inline-block;
    background: var(--eu-gold);
    color: var(--eu-blue);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
}
.topic-view-page .topic-title { font-size: 2rem; font-weight: 700; }
.topic-view-page .topic-supervisor { font-size: 1.1rem; }
.topic-view-page .topic-institution { font-size: 0.95rem; }
.topic-view-page .topic-section-header {
    background: linear-gradient(135deg, var(--eu-blue) 0%, var(--eu-blue-dark) 100%) !important;
    color: #fff;
    border-radius: 0.375rem 0.375rem 0 0;
}
.topic-view-page .topic-sidebar-header {
    background: linear-gradient(135deg, var(--eu-blue) 0%, var(--eu-blue-dark) 100%) !important;
    color: #fff;
    border-radius: 0.375rem 0.375rem 0 0;
}
.topic-view-page .topic-detail-item {
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}
.topic-view-page .topic-detail-item:last-child { border-bottom: none; padding-bottom: 0; }
.topic-view-page .topic-detail-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6c757d;
    margin-bottom: 0.25rem;
}
.topic-view-page .topic-detail-value { font-weight: 500; }

/* People index */
.people-index-page .people-hero {
    background: linear-gradient(135deg, var(--eu-blue) 0%, var(--eu-blue-dark) 50%, var(--energy-green) 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.people-index-page .people-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23FFD700' fill-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}
.people-hero-badge {
    display: inline-block;
    background: rgba(255, 215, 0, 0.2);
    color: var(--eu-gold);
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}
.people-hero-title { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; }
.people-hero-lead { font-size: 1rem; max-width: 600px; margin: 0 auto; line-height: 1.6; }
/* Person business card */
.person-biz-card {
    border-radius: 8px;
    border: 1px solid #e9ecef;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    background: #fff;
}
.person-biz-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 51, 153, 0.12);
}
.person-biz-card-accent {
    height: 4px;
    background: linear-gradient(90deg, var(--eu-blue) 0%, var(--eu-gold) 100%);
}
.person-biz-card-body {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    align-items: flex-start;
}
.person-biz-card-photo {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid #e9ecef;
}
.person-biz-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.person-biz-card-info {
    flex: 1;
    min-width: 0;
}
.person-biz-card-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--eu-blue);
    margin: 0 0 0.25rem 0;
    line-height: 1.3;
}
.person-biz-card-name a { color: inherit; }
.person-biz-card-name a:hover { color: var(--energy-green); }
.person-biz-card-role {
    font-size: 0.8rem;
    color: #555;
    margin: 0 0 0.15rem 0;
    font-weight: 600;
}
.person-biz-card-institution {
    font-size: 0.75rem;
    color: #6c757d;
    margin: 0 0 0.25rem 0;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.person-biz-card-email {
    font-size: 0.75rem;
    margin: 0 0 0.5rem 0;
}
.person-biz-card-email a {
    color: var(--eu-blue);
    text-decoration: none;
}
.person-biz-card-email a:hover { text-decoration: underline; }
.person-biz-card-link {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--eu-blue);
}
.person-biz-card-link:hover { color: var(--energy-green); }
@media (max-width: 575px) {
    .person-biz-card-body { flex-direction: column; align-items: center; text-align: center; }
    .person-biz-card-photo { width: 88px; height: 88px; }
}

/* Person view */
.person-view-page .person-hero {
    background: linear-gradient(135deg, var(--eu-blue) 0%, var(--eu-blue-dark) 50%, var(--energy-green) 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.person-view-page .person-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23FFD700' fill-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
    pointer-events: none;
}
.person-view-page .person-hero .container {
    position: relative;
    z-index: 1;
}
.person-view-page .person-back-link:hover { color: #fff !important; }
.person-view-photo { width: 100px; height: 100px; object-fit: cover; }
.person-view-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--eu-gold) 0%, var(--eu-gold-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--eu-blue);
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
}
.person-view-page .person-view-title { font-size: 2rem; font-weight: 700; }
.person-view-page .person-view-role { font-size: 1.1rem; }
.person-view-page .person-view-institution { font-size: 0.95rem; }
.person-view-page .person-section-header,
.person-view-page .person-sidebar-header {
    background: linear-gradient(135deg, var(--eu-blue) 0%, var(--eu-blue-dark) 100%) !important;
    color: #fff;
    border-radius: 0.375rem 0.375rem 0 0;
}
.person-view-page .person-detail-item {
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}
.person-view-page .person-detail-item:last-child { border-bottom: none; padding-bottom: 0; }
.person-view-page .person-detail-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6c757d;
    margin-bottom: 0.25rem;
}
.person-view-page .person-detail-value { font-weight: 500; }
.person-view-page .person-content { line-height: 1.7; }
.person-view-page .person-topics-list { padding-left: 0; }
.person-view-page .person-topic-item { padding: 0.5rem 0; border-bottom: 1px solid #eee; }
.person-view-page .person-topic-item:last-child { border-bottom: none; }
.person-view-page .person-topic-dc {
    display: inline-block;
    background: var(--eu-gold);
    color: var(--eu-blue);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    margin-right: 0.5rem;
}
.person-view-page .person-topic-link { color: var(--eu-blue); font-weight: 500; }
.person-view-page .person-topic-link:hover { color: var(--energy-green); }

/* People filters */
.people-filters-header {
    background: linear-gradient(135deg, var(--eu-blue) 0%, var(--eu-blue-dark) 100%) !important;
    color: #fff;
}

/* Application page */
.application-apply-page {
    min-height: 60vh;
}
.application-hero {
    background: linear-gradient(135deg, var(--eu-blue) 0%, var(--eu-blue-dark) 50%, var(--energy-green) 100%);
    color: #fff;
    padding: 3rem 0 4rem;
    position: relative;
    overflow: hidden;
}
.application-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23FFD700' fill-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}
.application-hero .container {
    position: relative;
    z-index: 1;
}
.application-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    transition: color 0.2s;
}
.application-back-link:hover {
    color: var(--eu-gold);
}
.application-badge {
    display: inline-block;
    background: rgba(255, 215, 0, 0.2);
    color: var(--eu-gold);
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}
.application-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.application-company {
    font-size: 1.1rem;
    opacity: 0.95;
    margin: 0;
}
.application-form-container {
    max-width: 720px;
    margin: 0 auto;
}
.application-card {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.application-card .card-header {
    background: linear-gradient(135deg, var(--eu-blue) 0%, var(--eu-blue-dark) 100%);
    color: #fff;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 1rem 1.25rem;
    border-radius: 12px 12px 0 0;
    border: none;
}
.application-card .card-body {
    padding: 1.5rem 1.25rem;
}
.application-field .form-label {
    font-weight: 500;
    color: #333;
}
.application-checkbox-list .form-check {
    padding-left: 1.5rem;
}
.application-submit-wrap .btn-eu-gold {
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* Auth pages — Split layout (design left, form right) */
.auth-split-page {
    display: flex;
    flex-direction: row;
    min-height: calc(100vh - 70px);
    background: #fff;
}
.auth-split-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}
.auth-split-design {
    background: linear-gradient(160deg, #f8fafc 0%, #e2e8f0 50%, #cbd5e1 100%);
    position: relative;
    overflow: hidden;
}
.auth-split-design::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60%;
    height: 60%;
    background: linear-gradient(135deg, rgba(0, 51, 153, 0.08) 0%, rgba(26, 77, 46, 0.12) 100%);
    border-radius: 50% 0 0 0;
}
.auth-split-design-inner {
    position: relative;
    z-index: 1;
    max-width: 480px;
}
.auth-split-headline {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 700;
    color: #1e293b;
    line-height: 1.25;
    margin-bottom: 1rem;
}
.auth-split-accent {
    background: linear-gradient(135deg, var(--eu-blue) 0%, var(--energy-green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.auth-split-lead {
    font-size: 1.1rem;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 2rem;
}
.auth-split-features {
    list-style: none;
    padding: 0;
    margin: 0;
}
.auth-split-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    font-size: 1rem;
    color: #334155;
    line-height: 1.4;
}
.auth-split-features li i {
    color: var(--energy-green);
    font-size: 1.25rem;
    flex-shrink: 0;
}
.auth-split-form-panel {
    background: #fff;
    flex: 0 0 45%;
    min-width: 380px;
}
.auth-split-form-inner {
    width: 100%;
    max-width: 400px;
}
.auth-split-form-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.5rem;
}
.auth-form .form-label {
    font-weight: 500;
    color: #475569;
}
.auth-form .form-control {
    border-radius: 8px;
    border-color: #e2e8f0;
}
.auth-form .form-control:focus {
    border-color: var(--eu-blue);
    box-shadow: 0 0 0 3px rgba(0, 51, 153, 0.15);
}
.auth-form .form-check-input:checked {
    background-color: var(--eu-blue);
    border-color: var(--eu-blue);
}
.auth-form .mb-3 {
    margin-bottom: 1.25rem !important;
}
.auth-form-actions {
    margin-top: 1.5rem;
    margin-bottom: 0;
}
.auth-submit-btn {
    background: linear-gradient(135deg, var(--eu-blue) 0%, var(--eu-blue-dark) 100%);
    border: none;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.auth-submit-btn:hover {
    background: linear-gradient(135deg, var(--eu-blue-dark) 0%, var(--energy-green) 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 51, 153, 0.35);
}
.auth-switch {
    font-size: 0.95rem;
    color: #64748b;
}
.auth-link {
    color: var(--eu-blue);
    font-weight: 600;
    text-decoration: none;
}
.auth-link:hover {
    color: var(--energy-green);
    text-decoration: underline;
}
@media (max-width: 991px) {
    .auth-split-page {
        flex-direction: column;
    }
    .auth-split-design {
        min-height: auto;
        padding: 2.5rem 2rem;
    }
    .auth-split-design-inner {
        max-width: 100%;
    }
    .auth-split-form-panel {
        flex: 1 1 auto;
        min-width: auto;
        padding: 2rem;
    }
}

/* Contact page */
.contact-page {
    padding-bottom: 3rem;
}
.contact-hero {
    position: relative;
    padding: 3rem 0;
    margin-bottom: 2rem;
    overflow: hidden;
}
.contact-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--eu-blue) 0%, var(--eu-blue-dark) 50%, var(--energy-green) 100%);
    opacity: 0.95;
}
.contact-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}
.contact-hero-title {
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.contact-hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin: 0;
}
.contact-form-container {
    margin-top: -1rem;
}
.contact-card {
    border: none;
    border-radius: 12px;
}
.contact-form .form-control,
.contact-form .form-select {
    border-radius: 8px;
    border-color: #e2e8f0;
}
.contact-form .form-control:focus {
    border-color: var(--eu-blue);
    box-shadow: 0 0 0 3px rgba(0, 51, 153, 0.15);
}
.contact-form-actions {
    margin-top: 1.5rem;
}

/* Project description page */
.project-description-page {
    padding-bottom: 0;
}
.project-hero {
    position: relative;
    padding: 4rem 0 5rem;
    background: linear-gradient(135deg, var(--eu-blue) 0%, var(--eu-blue-dark) 40%, var(--energy-green) 100%);
    color: #fff;
    overflow: hidden;
}
.project-hero-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.project-shape {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
}
.project-shape-1 {
    width: 300px;
    height: 300px;
    top: -80px;
    right: -60px;
    border-radius: 50%;
}
.project-shape-2 {
    width: 180px;
    height: 180px;
    bottom: 20%;
    left: 5%;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}
.project-shape-3 {
    width: 120px;
    height: 120px;
    top: 30%;
    right: 15%;
    border-radius: 50%;
    background: rgba(255, 215, 0, 0.08);
}
.project-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}
.project-hero-badge {
    display: inline-block;
    background: rgba(255, 215, 0, 0.2);
    color: var(--eu-gold);
    padding: 0.35rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    margin-bottom: 1.5rem;
}
.project-hero-title {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}
.project-hero-lead {
    font-size: 1.15rem;
    line-height: 1.65;
    opacity: 0.95;
    margin: 0;
}

/* Project sections */
.project-section {
    padding: 4rem 0;
}
.project-section-1 {
    background: #fff;
}
.project-section-2 {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}
.project-section-inner {
    display: flex;
    align-items: flex-start;
    gap: 3rem;
    max-width: 960px;
    margin: 0 auto;
}
.project-section-visual {
    flex-shrink: 0;
}
.project-icon-wrap {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--eu-blue) 0%, var(--eu-blue-dark) 100%);
    color: var(--eu-gold);
    font-size: 2rem;
    box-shadow: 0 8px 24px rgba(0, 51, 153, 0.2);
}
.project-shape-circle {
    border-radius: 50%;
}
.project-shape-hexagon {
    border-radius: 16px;
    transform: rotate(-5deg);
}
.project-shape-square {
    border-radius: 20px 20px 4px 20px;
}
.project-section-content {
    flex: 1;
    min-width: 0;
}
.project-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--eu-blue);
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}
.project-section-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #334155;
}
.project-section-text strong {
    color: var(--eu-blue);
}

/* Work packages section */
.project-wp-section {
    position: relative;
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--eu-blue) 0%, var(--eu-blue-dark) 50%, var(--energy-green) 100%);
    color: #fff;
    overflow: hidden;
}
.project-wp-bg-shape {
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23FFD700' fill-opacity='0.06'%3E%3Cpath d='M50 50c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10-10-4.477-10-10zm0-30c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10-10-4.477-10-10zM10 50c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10-10-4.477-10-10zm0-30c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10-10-4.477-10-10z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.8;
}
.project-wp-section .container {
    position: relative;
    z-index: 1;
}
.project-wp-title {
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}
.project-wp-lead {
    text-align: center;
    font-size: 1.1rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}
.project-wp-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}
.project-wp-card {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}
.project-wp-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 212, 170, 0.4);
}
.project-wp-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--eu-gold);
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}
.project-wp-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}
.project-wp-card p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    line-height: 1.5;
}
.project-wp-cta {
    text-align: center;
}
.project-wp-cta .btn {
    font-weight: 600;
}
.project-wp-cta .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.35);
}

/* EU bar */
.project-eu-bar {
    background: rgba(0, 0, 0, 0.15);
    color: rgba(255, 255, 255, 0.95);
}
.project-eu-bar .eu-stars {
    color: var(--eu-gold);
    letter-spacing: 0.2em;
    font-size: 0.75rem;
}

@media (max-width: 991px) {
    .project-section-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2rem;
    }
    .project-wp-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* Project page dark mode */
html.dark-mode .project-section-1 { background: #1e293b; }
html.dark-mode .project-section-2 { background: #0f172a; }
html.dark-mode .project-section-title { color: #94a3b8; }
html.dark-mode .project-section-text { color: #cbd5e1; }
html.dark-mode .project-section-text strong { color: var(--eu-gold); }

@media (max-width: 575px) {
    .project-hero {
        padding: 3rem 0 4rem;
    }
    .project-section {
        padding: 3rem 0;
    }
    .project-wp-grid {
        grid-template-columns: 1fr;
    }
    .project-icon-wrap {
        width: 64px;
        height: 64px;
        font-size: 1.5rem;
    }
}
