.research-projects-page,
.research-projects-page h1,
.research-projects-page h2,
.research-projects-page h3,
.research-projects-page input,
.research-projects-page button {
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

.research-projects-page {
    --research-color-dark: #121212;
    --groups-color-gray-c: #2E3235;
    --research-color-yellow: #ffc107;
    --research-color-gold: #a69450;
    --research-color-gray: #707170;
    --research-color-white: #ffffff;
    --research-color-soft-gray: #f7f7f7;
    --research-rgb-dark: 18, 18, 18;
    --research-rgb-yellow: 255, 193, 7;
    --research-rgb-gold: 166, 148, 80;
    --research-rgb-gray: 112, 113, 112;
    --research-rgb-white: 255, 255, 255;
    min-height: 100vh;
    padding-top: 84px;
    background:
        linear-gradient(135deg, rgba(var(--research-rgb-yellow), 0.14), transparent 34%),
        linear-gradient(180deg, var(--research-color-white) 0%, var(--research-color-soft-gray) 48%, var(--research-color-white) 100%);
}

.research-projects-hero {
    padding: 48px 0 36px;
    border-bottom: 1px solid rgba(var(--research-rgb-gray), 0.18);
    background: var(--groups-color-gray-c);
    color: var(--research-color-white);
}

.research-projects-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
    gap: 28px;
    align-items: end;
}

.research-projects-kicker {
    margin: 0 0 12px;
    color: var(--research-color-yellow);
    font-size: 0.82rem;
    font-weight: 800;
}

.research-projects-hero h1 {
    max-width: 900px;
    margin: 0;
    font-size: clamp(2.3rem, 6vw, 5rem);
    font-weight: 850;
    line-height: 0.98;
}

.research-projects-intro {
    margin: 0;
    padding: 16px 0 0 18px;
    border-left: 4px solid var(--research-color-yellow);
    color: rgba(var(--research-rgb-white), 0.78);
    line-height: 1.64;
}

.research-projects-section {
    padding: 34px 0 76px;
}

.research-projects-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
    gap: 24px;
    align-items: start;
    margin-bottom: 24px;
}

.research-projects-heading h2 {
    margin: 0;
    color: var(--research-color-dark);
    font-size: clamp(1.45rem, 3vw, 2.3rem);
    font-weight: 850;
    line-height: 1.1;
}

.research-projects-heading p {
    max-width: 760px;
    margin: 8px 0 0;
    color: var(--research-color-gray);
    line-height: 1.62;
}

.research-projects-search {
    width: min(390px, 100%);
}

.research-projects-search-label {
    display: block;
    margin-bottom: 10px;
    color: var(--research-color-gold);
    font-size: 0.76rem;
    font-weight: 800;
}

.research-projects-search-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    overflow: hidden;
    border: 1px solid rgba(var(--research-rgb-gray), 0.18);
    border-radius: 999px;
    background: var(--research-color-white);
    box-shadow: 0 12px 24px rgba(var(--research-rgb-dark), 0.05);
}

.research-projects-search-shell input,
.research-projects-search-shell button {
    min-height: 48px;
    border: 0;
    font: inherit;
}

.research-projects-search-shell input {
    min-width: 0;
    width: 100%;
    padding: 0 16px;
    background: transparent;
    color: var(--research-color-dark);
    outline: 0;
}

.research-projects-search-shell button {
    padding: 0 20px;
    border-radius: 999px;
    background: var(--research-color-dark);
    color: var(--research-color-white);
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
}

.research-projects-state {
    padding: 24px;
    border: 1px solid rgba(var(--research-rgb-gray), 0.18);
    border-radius: 8px;
    background: var(--research-color-white);
    color: var(--research-color-gray);
    text-align: center;
    box-shadow: 0 12px 24px rgba(var(--research-rgb-dark), 0.05);
}

.research-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 430px));
    justify-content: start;
    gap: 12px;
}

.research-project-card {
    position: relative;
    display: grid;
    grid-template-rows: minmax(0, 1fr);
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(var(--research-rgb-gray), 0.18);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(var(--research-rgb-yellow), 0.08), transparent 42%),
        var(--research-color-white);
    box-shadow: 0 8px 18px rgba(var(--research-rgb-dark), 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.research-project-card::after {
    content: none;
}

.research-project-card:hover {
    transform: translateY(-2px);
    border-color: rgba(var(--research-rgb-gold), 0.44);
    box-shadow: 0 12px 24px rgba(var(--research-rgb-dark), 0.08);
}

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

.research-project-year {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    padding: 0;
    color: var(--research-color-gray);
    font-size: 0.78rem;
    font-weight: 850;
}

.research-project-country {
    display: inline-flex;
    align-items: center;
    max-width: 55%;
    min-height: 20px;
    padding: 0 0 0 8px;
    border-left: 3px solid var(--research-color-yellow);
    border-radius: 0;
    color: var(--research-color-gold);
    font-size: 0.7rem;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.research-project-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 12px 14px;
}

.research-project-card h3 {
    margin: 0;
    color: var(--research-color-dark);
    font-size: clamp(0.96rem, 1.5vw, 1.08rem);
    line-height: 1.2;
}

.research-project-card p {
    margin: 5px 0 0;
    color: var(--research-color-gray);
    font-size: 0.84rem;
    line-height: 1.35;
}

.research-project-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    padding-top: 0;
}

.research-project-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 12px;
    border: 1px solid var(--research-color-dark);
    border-radius: 999px;
    background: var(--research-color-dark);
    color: var(--research-color-white);
    font-size: 0.75rem;
    font-weight: 750;
}

.research-project-actions a:hover {
    border-color: var(--research-color-yellow);
    background: var(--research-color-yellow);
    color: var(--research-color-dark);
}

@media (max-width: 980px) {
    .research-projects-hero-inner,
    .research-projects-heading {
        grid-template-columns: 1fr;
    }

    .research-projects-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .research-projects-page {
        padding-top: 76px;
    }

    .research-projects-hero {
        padding: 36px 0 28px;
    }

    .research-projects-grid {
        grid-template-columns: 1fr;
    }


    .research-projects-search-shell {
        grid-template-columns: 1fr;
        border-radius: 8px;
    }

    .research-projects-search-shell button {
        border-radius: 0;
    }
}
