@font-face {
    font-family: 'Onest';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('./fonts/Onest/Onest-VariableFont_wght.ttf') format('woff2');
}


@font-face {
    font-family: "Twemoji Country Flags";
    unicode-range: U+1F1E6-1F1FF, U+1F3F4, U+E0062-E0063, U+E0065, U+E0067,
    U+E006C, U+E006E, U+E0073-E0074, U+E0077, U+E007F;
    src: url('./fonts/TwemojiCountryFlags.woff2') format('woff2');
    font-display: swap;
}

:root {
    --bg: #08121b;
    --bg-soft: #0e1b27;
    --surface: #16181c;
    --surface-soft: #1c2025;
    --surface-softest: #232931;
    --text: #f4f7fb;
    --muted: #8c909c;
    --muted-strong: #b2b8c4;
    --line: rgba(255, 255, 255, 0.1);
    --accent: #14c1b0;
    --accent-strong: #0fb87d;
    --accent-soft: rgba(20, 193, 176, 0.12);
    --white: #ffffff;
    --shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
    --container: 1160px;

    --c-scrollbar-thumb-border-radius: 10px;
    --c-scrollbar-size: 4px;
    --c-scrollbar-thumb-color: #27272a;

    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-2xl: 1rem;
    --content-pad-x: 18px;
    --article-max-width: 690px;

    color-scheme: dark;
}
@media (min-width: 641px) {
    :root {
        --content-pad-x: 32px;
    }
}

::-webkit-scrollbar {
    width: var(--c-scrollbar-size);
    height: var(--c-scrollbar-size);
}

::-webkit-scrollbar-thumb {
    background: var(--c-scrollbar-thumb-color);
    border-radius: var(--c-scrollbar-thumb-border-radius);
}

* { box-sizing: border-box; }
html {
    min-height: 100%;
    scroll-behavior: smooth;
}

html,body {
    min-width: 375px;
}

body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    font-variant-ligatures: none;
    font-family: 'Twemoji Country Flags', 'Onest', sans-serif;
    background: #0b0e11;
    color: var(--white);
}
a { color: inherit; }
img { max-width: 100%; display: block; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #14171a;
    border-bottom: 1px solid #2a2627;
}
.container,
.site-header__inner,
.site-footer__inner,
.news-detail-shell {
    width: min(calc(100% - 20px), var(--container));
    margin: 0 auto;
}
@media (min-width: 641px) {
    .container,
    .site-header__inner,
    .site-footer__inner,
    .news-detail-shell {
        width: min(calc(100% - 32px), var(--container));
    }
}
.site-header__inner {
    min-height: auto;
    padding: 14px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
@media (min-width: 1024px) {
    .site-header__inner {
        min-height: 76px;
        padding: 0;
        align-items: center;
    }
}
.site-logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}

.site-logo__img {
    height: 36px;
    width: 85px;
}

@media screen and (min-width: 1024px) {
    .site-logo__img {
        width: 120px;
        height: 50px;
    }
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: flex-end;
}


.site-nav__link {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.92rem;
}
.site-nav__icon-link {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.92);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.09);
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}
.site-nav__icon-link:hover,
.site-nav__icon-link:focus-visible {
    background: rgba(20, 193, 176, 0.12);
    border-color: rgba(20, 193, 176, 0.36);
    color: var(--white);
    transform: translateY(-1px);
    outline: none;
}
.site-nav__icon {
    width: 20px;
    height: 20px;
}
.language-dropdown {
    position: relative;
}
.language-dropdown__trigger {
    min-height: 42px;
    padding: 0 12px;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.94);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font: inherit;
}
.language-dropdown__trigger:hover {
    background: rgba(255, 255, 255, 0.08);
}
.language-dropdown__trigger:focus-visible {
    outline: 2px solid rgba(20, 193, 176, 0.75);
    outline-offset: 2px;
}
.language-dropdown__selected {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.language-dropdown__flag {
    font-size: 1rem;
    line-height: 1;
}
.language-dropdown__native {
    display: none;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.92);
}
.language-dropdown__code {
    display: inline;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
}
@media (min-width: 641px) {
    .language-dropdown__native {
        display: inline;
    }
    .language-dropdown__code {
        display: none;
    }
}
.language-dropdown__chevron {
    flex-shrink:0;
    color: rgba(255, 255, 255, 0.68);
    display: inline-flex;
}

.language-dropdown__chevron-icon {
    width: 16px;
    height: 16px;
}
.language-dropdown__panel {
    position: absolute;
    right: auto;
    left: 0;
    top: calc(100% + 8px);
    min-width: 240px;
    max-width: min(92vw, 280px);
    right: 0;
        left: auto;
        min-width: 260px;
    max-height: 320px;
    overflow-y: auto;
    background: #18181b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xl);
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.32);
    z-index: 120;
}

.language-dropdown__header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.54);
}
.language-dropdown__list {
    padding: 8px;
    display: grid;
    gap: 4px;
}
.language-dropdown__option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-xl);
    text-decoration: none;
    color: rgba(255, 255, 255, 0.92);
}
.language-dropdown__option:hover,
.language-dropdown__option:focus-visible {
    background: rgba(255, 255, 255, 0.06);
    outline: none;
}
.language-dropdown__option.is-active {
    background: rgba(20, 193, 176, 0.14);
}
.language-dropdown__option-main {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.language-dropdown__labels {
    display: grid;
    min-width: 0;
}
.language-dropdown__label-native {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.96);
}
.language-dropdown__label-english {
    font-size: 0.74rem;
    color: rgba(255, 255, 255, 0.56);
}
.language-dropdown__check {
    color: var(--accent);
    display: inline-flex;
}

.language-dropdown__check-icon {
    width: 18px;
    height: 18px;
}

.site-main {
    flex: 1 0 auto;
    padding: 32px 0 64px;
}
.news-hero {
    margin: 0 0 26px;
}

.news-page {
    padding-bottom: 12px;
}
.news-page .container {
    display: grid;
    gap: 24px;
}
.news-page__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}
@media (min-width: 1024px) {
    .news-page__header {
        align-items: flex-end;
    }
}
.news-page__heading {
    max-width: 740px;
}
.news-page__title {
    margin: 0;
    font-size: 1.7rem;
    line-height: 1.06;
    letter-spacing: -0.03em;
}
.news-page__subtitle {
    margin: 10px 0 0;
    color: #777b86;
    font-size: 0.95rem;
    line-height: 1.65;
}
.news-list-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
@media (min-width: 641px) {
    .news-list-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }
}
@media (min-width: 1024px) {
    .news-list-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
.news-list-item {
    min-width: 0;
}
.project-news-card {
    height: 100%;
}
.project-news-card__link {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    text-decoration: none;
    border-radius: var(--radius-xl);
    background: var(--surface);
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow: var(--shadow);
    transition: transform 160ms ease, box-shadow 160ms ease;
}
.project-news-card__link:hover,
.project-news-card__link:focus-visible {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: 0 24px 52px rgba(0, 0, 0, 0.28);
    outline: none;
}
.project-news-card__media-wrap {
    position: relative;
    /* aspect-ratio: 16 / 9; */
    aspect-ratio: 1 / 1;
    background: linear-gradient(135deg, #10283a, #0f4950);
    overflow: hidden;
}
.project-news-card__media {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.project-news-card__placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 700;
    letter-spacing: 0.18em;
    font-size: 0.8rem;
}
.project-news-card__media-overlay {
    position: absolute;
    bottom:0;
    left: 0;
    right:0;
    height: 70px;
    background: linear-gradient(180deg, rgba(6, 14, 22, 0.04) 0%, rgba(6, 14, 22, 0.78) 100%);
}
.project-news-card__date {
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: var(--radius-md);
    background: rgba(18, 22, 28, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: var(--white);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}
.project-news-card__body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    gap: 18px;
    padding: 14px;
}
@media (min-width: 641px) {
    .project-news-card__body {
        gap: 10px;
        padding: 16px;
    }
}
.project-news-card__title {
    margin: 0;
    font-size: 1.125rem;
    line-height: 1.35;
    letter-spacing: -0.02em;
    color: #f7f8fb;
    font-weight: 700;
    max-height: calc(2 * 1.35em);
}
.project-news-card__excerpt {
    margin: 0;
    color: #9095a4;
    line-height: 1.7;
    font-size: 0.92rem;
    max-height: calc(3 * 1.7em);
}
.line-clamp-2,
.line-clamp-3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.line-clamp-2 {
    -webkit-line-clamp: 2;
    line-clamp: 2;
}
.line-clamp-3 {
    -webkit-line-clamp: 3;
    line-clamp: 3;
}

.news-list__empty,
.news-detail__empty {
    padding: 34px;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.78);
}

.show-more-wrap {
    display: flex;
    justify-content: center;
    padding-top: 6px;
}
.show-more-button {
    min-width: 180px;
    min-height: 48px;
    padding: 0 28px;
    border: 0;
    border-radius: var(--radius-xl);
    background: linear-gradient(180deg, #10c481 0%, #0fb375 100%);
    color: #f7fffb;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    box-shadow: 0 16px 28px rgba(15, 184, 125, 0.22);
}
.show-more-button[hidden] { display: none; }
.show-more-button:disabled {
    opacity: 0.7;
    cursor: wait;
}

.news-detail-shell { display: grid; gap: 20px; }
.news-detail-card {
    background: var(--surface);
    color: var(--text);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow);
    overflow: hidden;
    padding: 24px var(--content-pad-x) 32px;
    max-width: calc(var(--content-pad-x) * 2 + 2px + var(--article-max-width));
    margin: 0 auto;
}


.news-detail__back-link {
    margin-bottom: 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 700;
}
.news-detail__back-link:hover,
.news-detail__back-link:focus-visible {
    color: #34d7a8;
    outline: none;
}
.news-detail__back-icon {
    width: 16px;
    height: 16px;
    margin-inline: -4px;
}
.news-detail__content-wrap {
    margin-top: 20px;
    display: grid;
    gap: 0;
}
.news-detail__content-wrap h1 {
    margin: 0;
    font-size: clamp(1.75rem, 3vw, 2rem);
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: #f8fafc;
    margin-bottom: 12px;
}
.news-detail__excerpt {
    margin: 0 0 20px;
    /* color: #9095a4; */
    line-height: 1.7;
    font-size: 1rem;
    padding-bottom: 20px;
    border-bottom: 1px solid #48494c;
}
.news-detail__gallery {
    padding: 0;
}

.news-detail__main-image {
    position: relative;
    max-width: 690px;
}
/* .news-detail__main-image {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: linear-gradient(135deg, #10283a, #0f4950);
}
.news-detail__main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
} */
.news-detail__main-image::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 80px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.38) 100%);
}
.news-detail__date-badge {
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.65);
    color: var(--white);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    backdrop-filter: blur(8px);
}


.news-detail__content {
    padding: 0;
}

.c-article {
  line-height: 1.75;
  font-size: 1rem;
color: #e2e8f0;
}

@media (min-width: 768px) {
  .c-article {
    font-size: 1.125rem;
    line-height: 1.78;
  }
}

.c-article > :first-child {
  margin-top: 0;
}

.c-article > :last-child {
  margin-bottom: 0;
}

/* === headings === */
.c-article h1,
.c-article h2,
.c-article h3,
.c-article h4 {
  color: #ffffff;
  margin-top: 0;
}


.c-article h2 {
  font-size: 1.5em;
  font-weight: 600;
  margin-top: 2em;
  margin-bottom: 1em;
}

.c-article h3 {
  font-size: 1.25em;
  font-weight: 600;
  margin-top: 1.6em;
  margin-bottom: 0.6em;
}

/* === paragraphs === */
.c-article p {
  margin: 1.25em 0;
}

.c-article strong {
    font-weight: 600;
}

/* === links === */
.c-article a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  transition: border-width 0.15s ease;
}

.c-article a:hover {
  border-bottom-width: 2px;
}

/* === lists === */
.c-article ul,
.c-article ol {
  margin: 1.25em 0;
  padding-left: 1.5em;
}

.c-article ul {
  list-style-type: disc;
}

.c-article ol {
  list-style-type: decimal;
}

.c-article li {
  margin: 0.5em 0;
}

/* === blockquote === */
.c-article blockquote {
  margin: 2em 0;
  padding-left: 1em;
  border-left: 4px solid #475569; /* slate-600 */
  color: #cbd5f5;
  font-style: italic;
}

/* === code === */
.c-article code {
  font-weight: 600;
  color: #fff;
}

.c-article code::before,
.c-article code::after {
  content: "`";
}

/* === pre === */
.c-article pre {
  background: rgba(0, 0, 0, 0.5);
  color: #cbd5f5;
  padding: 1em;
  border-radius: 0.375rem;
  overflow-x: auto;
}

.c-article pre code {
  background: transparent;
  padding: 0;
  border: none;
}

/* === images === */
.c-article img {
  margin: 2em 0;
  border-radius: 0.5rem;
}

/* === hr === */
.c-article hr {
  border: none;
  border-top: 1px solid #334155;
  margin: 3em 0;
}

/* === tables === */
.c-article table {
  width: 100%;
  margin: 2em 0;
  border-collapse: collapse;
}

.c-article th {
  text-align: left;
  border-bottom: 1px solid #475569;
  padding: 0.5em;
}

.c-article td {
  border-bottom: 1px solid #334155;
  padding: 0.5em;
}

.news-detail__chips {
    margin-top: 24px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.news-detail__chip {
    padding: 6px 12px;
    border-radius: var(--radius-xl);
    background: rgba(7, 100, 79, 0.18);
    color: var(--accent);
    border: 1px solid rgba(20, 193, 176, 0.18);
    font-size: 0.75rem;
    font-weight: 700;
}

.site-footer {
    margin-top: auto;
    padding: 36px 0 40px;
    color: rgba(255, 255, 255, 0.66);
}
.site-footer__panel {
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
        #111418;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
    overflow: hidden;
}
.site-footer__top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 22px var(--content-pad-x);
}
@media (min-width: 641px) {
    .site-footer__top {
        gap: 32px;
        padding: 28px var(--content-pad-x);
    }
}
@media (min-width: 1024px) {
    .site-footer__top {
        grid-template-columns: minmax(260px, 1.1fr) minmax(0, 1.6fr);
    }
}
.site-footer__brand-block {
    display: grid;
    align-content: start;
    gap: 18px;
}
.site-footer__logo {
    display: inline-flex;
    align-items: center;
    width: fit-content;
}
.site-footer__logo-img {
    width: 120px;
    height: 50px;
}
.site-footer__lead {
    margin: 0;
    color: #8b919c;
    line-height: 1.75;
    max-width: 420px;
}
.site-footer__icon-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.site-footer__icon-link {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-xl);
    text-decoration: none;
    color: rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.09);
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}
.site-footer__icon-link:hover,
.site-footer__icon-link:focus-visible {
    background: rgba(20, 193, 176, 0.12);
    border-color: rgba(20, 193, 176, 0.36);
    color: var(--white);
    transform: translateY(-1px);
    outline: none;
}
.site-footer__icon {
    width: 20px;
    height: 20px;
}
.site-footer__links-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
@media (min-width: 641px) {
    .site-footer__links-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }
}
@media (min-width: 1024px) {
    .site-footer__links-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
.site-footer__column {
    display: grid;
    align-content: start;
    gap: 12px;
}
.site-footer__heading {
    color: #f5f7fb;
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.site-footer__link {
    width: fit-content;
    text-decoration: none;
    color: #8b919c;
    line-height: 1.6;
    transition: color 160ms ease;
}
.site-footer__link:hover,
.site-footer__link:focus-visible {
    color: #f5f7fb;
    outline: none;
}
.site-footer__bottom {
    padding: 16px var(--content-pad-x) 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
@media (min-width: 641px) {
    .site-footer__bottom {
        padding: 18px var(--content-pad-x) 22px;
    }
}
.site-footer__copyright {
    color: #737985;
    font-size: 0.9rem;
}

@media (min-width: 641px) {
    .news-page__title {
        font-size: clamp(1.8rem, 3vw, 2.35rem);
    }
}
