/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy: #0a1628;
  --navy-light: #12233d;
  --navy-mid: #1a3050;
  --gold: #c9a84c;
  --gold-light: #dfc06a;
  --gold-dark: #a88a3a;
  --cream: #f5f0e8;
  --cream-dark: #e8dfd0;
  --text: #2c2c2c;
  --text-light: #6b6b6b;
  --text-on-dark: #e0ddd4;
  --white: #ffffff;
  --border: #d4cfc4;
  --red: #b53030;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'EB Garamond', Georgia, 'Times New Roman', serif;
  font-weight: 600;
  line-height: 1.2;
}

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

/* ===== TOP BAR ===== */
.top-bar {
  background: var(--navy);
  border-bottom: 1px solid rgba(201,168,76,0.3);
  font-size: 0.75rem;
  color: rgba(224,221,212,0.7);
}

.top-bar__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ===== HEADER ===== */
.header {
  background: var(--navy);
  border-bottom: 3px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.header__brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header__emblem {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}

.emblem-svg {
  width: 100%;
  height: 100%;
}

.header__title {
  font-size: 1.3rem;
  color: var(--gold);
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.header__subtitle {
  font-size: 0.75rem;
  color: rgba(224,221,212,0.6);
  margin-top: 2px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.header__nav {
  display: flex;
  gap: 8px;
}

.header__link {
  padding: 8px 16px;
  font-size: 0.85rem;
  color: rgba(224,221,212,0.7);
  border-radius: 4px;
  transition: all 0.2s;
  border: 1px solid transparent;
}

.header__link:hover {
  color: var(--gold);
  background: rgba(201,168,76,0.08);
}

.header__link--active {
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(201,168,76,0.1);
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(170deg, var(--navy) 0%, var(--navy-mid) 50%, var(--navy-light) 100%);
  padding: 100px 24px 80px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.hero__bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(201,168,76,0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(201,168,76,0.04) 0%, transparent 50%);
  pointer-events: none;
}

.hero__bg-pattern::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 99px, rgba(201,168,76,0.03) 99px, rgba(201,168,76,0.03) 100px),
    repeating-linear-gradient(90deg, transparent, transparent 99px, rgba(201,168,76,0.03) 99px, rgba(201,168,76,0.03) 100px);
}

.hero__content {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.hero__badge {
  display: inline-block;
  padding: 6px 20px;
  border: 1px solid rgba(201,168,76,0.4);
  border-radius: 20px;
  font-size: 0.75rem;
  color: var(--gold-light);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 32px;
  background: rgba(201,168,76,0.05);
  animation: fadeInDown 0.8s ease-out;
}

.hero__heading {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--white);
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero__heading-line {
  display: block;
}

.hero__heading-line--accent {
  color: var(--gold);
  font-style: italic;
}

.hero__description {
  font-size: 1.1rem;
  color: var(--text-on-dark);
  max-width: 600px;
  margin: 0 auto 40px;
  opacity: 0.85;
  line-height: 1.7;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero__cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero__stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  padding-top: 40px;
  border-top: 1px solid rgba(201,168,76,0.2);
  animation: fadeInUp 0.8s ease-out 0.8s both;
}

.stat {
  text-align: center;
}

.stat__number {
  display: block;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
}

.stat__label {
  font-size: 0.8rem;
  color: rgba(224,221,212,0.6);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
  border: 2px solid transparent;
}

.btn--primary {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}

.btn--primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(201,168,76,0.3);
}

.btn--outline {
  background: transparent;
  color: var(--text-on-dark);
  border-color: rgba(224,221,212,0.3);
}

.btn--outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn--large {
  padding: 18px 48px;
  font-size: 1.05rem;
}

/* ===== QUOTE ===== */
.quote-section {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 60px 24px;
}

.quote-section__inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.quote__text {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1.6rem;
  font-style: italic;
  color: var(--navy);
  line-height: 1.5;
  margin-bottom: 16px;
}

.quote__author {
  font-size: 0.85rem;
  color: var(--text-light);
  font-style: normal;
}

/* ===== ABOUT ===== */
.about {
  padding: 80px 24px;
}

.about__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header__tag {
  display: inline-block;
  padding: 4px 16px;
  background: rgba(201,168,76,0.1);
  color: var(--gold-dark);
  border-radius: 4px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
  margin-bottom: 12px;
}

.section-header__title {
  font-size: 2rem;
  color: var(--navy);
}

.about__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.about__card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px;
  transition: all 0.3s;
}

.about__card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.about__card-icon {
  width: 48px;
  height: 48px;
  color: var(--gold);
  margin-bottom: 20px;
}

.about__card-title {
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 12px;
}

.about__card-text {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* ===== SLOGANS ===== */
.slogans {
  background: var(--navy);
  padding: 80px 24px;
}

.slogans__inner {
  max-width: 900px;
  margin: 0 auto;
}

.slogans__item {
  text-align: center;
  padding: 32px 0;
}

.slogans__number {
  display: block;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 0.9rem;
  color: var(--gold);
  letter-spacing: 4px;
  margin-bottom: 12px;
}

.slogans__text {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1.5rem;
  color: var(--white);
  font-style: italic;
  line-height: 1.5;
  margin-bottom: 8px;
}

.slogans__attr {
  font-size: 0.8rem;
  color: rgba(224,221,212,0.5);
}

.slogans__divider {
  width: 60px;
  height: 1px;
  background: rgba(201,168,76,0.3);
  margin: 0 auto;
}

/* ===== FACTS ===== */
.facts {
  padding: 80px 24px;
}

.facts__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.facts__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.fact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px;
  text-align: center;
  transition: all 0.3s;
}

.fact-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow);
}

.fact-card__value {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.fact-card__label {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 12px;
}

.fact-card__source {
  font-size: 0.7rem;
  color: var(--text-light);
  font-style: italic;
}

/* ===== CTA ===== */
.cta-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: 80px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 50% 50%, rgba(201,168,76,0.06) 0%, transparent 70%);
}

.cta-section__inner {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}

.cta-section__title {
  font-size: 2.2rem;
  color: var(--white);
  margin-bottom: 16px;
}

.cta-section__text {
  font-size: 1rem;
  color: var(--text-on-dark);
  opacity: 0.8;
  line-height: 1.7;
  margin-bottom: 32px;
}

.cta-section__disclaimer {
  font-size: 0.7rem;
  color: rgba(224,221,212,0.4);
  margin-top: 24px;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--navy);
  border-top: 3px solid var(--gold);
  padding: 48px 24px 24px;
}

.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(201,168,76,0.15);
  flex-wrap: wrap;
  gap: 24px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer__emblem {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.footer__name {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1rem;
  color: var(--gold);
}

.footer__legal {
  font-size: 0.7rem;
  color: rgba(224,221,212,0.5);
  margin-top: 2px;
}

.footer__links {
  display: flex;
  gap: 24px;
}

.footer__links a {
  font-size: 0.8rem;
  color: rgba(224,221,212,0.5);
  transition: color 0.2s;
}

.footer__links a:hover {
  color: var(--gold);
}

.footer__bottom {
  padding-top: 16px;
  text-align: center;
}

.footer__bottom p {
  font-size: 0.7rem;
  color: rgba(224,221,212,0.3);
  margin-bottom: 4px;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .header__inner {
    flex-direction: column;
    text-align: center;
  }

  .header__nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero {
    padding: 60px 16px 50px;
  }

  .hero__stats {
    flex-direction: column;
    gap: 24px;
  }

  .hero__heading {
    font-size: 1.8rem;
  }

  .slogans__text {
    font-size: 1.2rem;
  }

  .footer__top {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer__links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* ===== TEST PAGE STYLES ===== */
/* (shared with test.html) */

/* ===== PAGE HERO (shared inner pages) ===== */
.page-hero {
  background: linear-gradient(170deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: 60px 24px 50px;
  text-align: center;
  border-bottom: 3px solid var(--gold);
}

.page-hero__inner {
  max-width: 700px;
  margin: 0 auto;
}

.page-hero__tag {
  display: inline-block;
  padding: 4px 14px;
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 20px;
  font-size: 0.65rem;
  color: var(--gold-light);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
  background: rgba(201,168,76,0.05);
}

.page-hero__title {
  font-size: 2rem;
  color: var(--white);
  margin-bottom: 12px;
}

.page-hero__text {
  font-size: 0.95rem;
  color: var(--text-on-dark);
  opacity: 0.75;
  max-width: 550px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ===== PUBLICATIONS FILTER ===== */
.pub-filter {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0;
}

.pub-filter__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
}

.pub-filter__btn {
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: transparent;
  font-size: 0.8rem;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  font-family: 'Inter', sans-serif;
}

.pub-filter__btn:hover {
  border-color: var(--gold);
  color: var(--gold-dark);
}

.pub-filter__btn--active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
  font-weight: 600;
}

/* ===== PUBLICATIONS LIST ===== */
.pub-list {
  padding: 40px 24px 80px;
}

.pub-list__inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pub-empty {
  text-align: center;
  color: var(--text-light);
  padding: 60px 20px;
  font-size: 0.95rem;
}

/* Publication Card */
.pub-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px 32px;
  transition: all 0.25s;
  cursor: pointer;
}

.pub-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.pub-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  gap: 12px;
}

.pub-card__category {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold-dark);
  font-weight: 600;
  background: rgba(201,168,76,0.1);
  padding: 3px 10px;
  border-radius: 3px;
}

.pub-card__date {
  font-size: 0.75rem;
  color: var(--text-light);
}

.pub-card__edited {
  display: inline-block;
  font-size: 0.7rem;
  color: var(--gold-dark);
  font-weight: 600;
  margin-bottom: 8px;
  padding: 2px 8px;
  background: rgba(201,168,76,0.08);
  border-radius: 3px;
}

.pub-card__title {
  font-size: 1.25rem;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.3;
}

.pub-card__summary {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 16px;
}

.pub-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

.pub-card__author {
  font-size: 0.75rem;
  color: var(--text-light);
  font-style: italic;
}

.pub-card__read {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold-dark);
  transition: color 0.2s;
}

.pub-card:hover .pub-card__read {
  color: var(--gold);
}

/* ===== ARTICLE PAGE ===== */
.article {
  padding: 40px 24px 60px;
}

.article__inner {
  max-width: 800px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 48px;
}

.article__loading {
  text-align: center;
  color: var(--text-light);
  padding: 40px;
}

.article__error {
  text-align: center;
  color: var(--text-light);
  padding: 40px;
  font-size: 1rem;
}

.article__error a {
  color: var(--gold-dark);
  text-decoration: underline;
}

.article__header {
  border-bottom: 2px solid var(--gold);
  padding-bottom: 24px;
  margin-bottom: 32px;
}

.article__category {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(201,168,76,0.1);
  color: var(--gold-dark);
  border-radius: 3px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.article__title {
  font-size: 1.8rem;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 16px;
}

.article__meta {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.article__edited {
  font-size: 0.75rem;
  color: var(--gold-dark);
  font-weight: 600;
  padding: 3px 10px;
  background: rgba(201,168,76,0.12);
  border-radius: 3px;
}

.article__date {
  font-size: 0.8rem;
  color: var(--text-light);
}

.article__doi {
  font-size: 0.7rem;
  color: var(--text-light);
  font-family: 'JetBrains Mono', monospace;
}

.article__author {
  font-size: 0.85rem;
  color: var(--text-light);
  font-style: italic;
  margin-top: 8px;
}

.article__body h3 {
  font-size: 1.3rem;
  color: var(--navy);
  margin: 32px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.article__body p {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 16px;
}

.article__body ul, .article__body ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.article__body li {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 8px;
}

.article__body strong {
  color: var(--navy);
}

.article__body table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.85rem;
}

.article__body th, .article__body td {
  padding: 10px 14px;
  border: 1px solid var(--border);
  text-align: left;
}

.article__body th {
  background: var(--cream);
  color: var(--navy);
  font-weight: 600;
}

.article-back {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px 40px;
}

.article-back__link {
  display: inline-block;
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.85rem;
  color: var(--text-light);
  transition: all 0.2s;
  background: var(--white);
}

.article-back__link:hover {
  border-color: var(--gold);
  color: var(--gold-dark);
}

/* ===== CONTACTS ===== */
.contacts {
  padding: 48px 24px 24px;
}

.contacts__inner {
  max-width: 1000px;
  margin: 0 auto;
}

.contacts__section-title {
  font-size: 1.3rem;
  color: var(--navy);
  margin-bottom: 24px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gold);
}

.contacts__grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Contact Card */
.contact-card {
  display: flex;
  gap: 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px;
  transition: all 0.25s;
}

.contact-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow);
}

.contact-card__avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  flex-shrink: 0;
  letter-spacing: 2px;
}

.contact-card__info {
  flex: 1;
  min-width: 0;
}

.contact-card__name {
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 4px;
}

.contact-card__degree {
  font-size: 0.75rem;
  color: var(--gold-dark);
  font-weight: 600;
  margin-bottom: 4px;
}

.contact-card__position {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 8px;
}

.contact-card__meta {
  display: flex;
  gap: 16px;
  margin-bottom: 10px;
}

.contact-card__age, .contact-card__email {
  font-size: 0.75rem;
  color: var(--text-light);
  padding: 3px 10px;
  background: var(--cream);
  border-radius: 3px;
}

.contact-card__email {
  color: var(--gold-dark);
}

.contact-card__desc {
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.6;
}

/* ===== CONTACTS INFO ===== */
.contacts-info {
  padding: 24px 24px 80px;
}

.contacts-info__inner {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.contacts-info__card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  text-align: center;
}

.contacts-info__label {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}

.contacts-info__card p {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ===== LANGUAGE SWITCHER ===== */
.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 4px;
  color: var(--gold);
  cursor: pointer;
  font-size: 0.8rem;
  font-family: 'Inter', sans-serif;
  transition: all 0.2s;
}

.lang-btn:hover {
  background: rgba(201,168,76,0.2);
  border-color: var(--gold);
}

.lang-btn svg {
  width: 16px;
  height: 16px;
  fill: var(--gold);
}

/* Modal overlay */
.lang-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(4px);
}

.lang-modal-overlay.active {
  display: flex;
}

.lang-modal {
  background: var(--white);
  border-radius: 12px;
  padding: 32px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 16px 48px rgba(0,0,0,0.2);
  animation: fadeInUp 0.3s ease-out;
}

.lang-modal__title {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1.3rem;
  color: var(--navy);
  text-align: center;
  margin-bottom: 20px;
}

.lang-modal__grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lang-modal__option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--white);
  font-family: 'Inter', sans-serif;
}

.lang-modal__option:hover {
  border-color: var(--gold);
  background: rgba(201,168,76,0.04);
}

.lang-modal__option.active {
  border-color: var(--gold);
  background: rgba(201,168,76,0.08);
}

.lang-modal__flag {
  font-size: 1.4rem;
  width: 32px;
  text-align: center;
}

.lang-modal__name {
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 500;
}

.lang-modal__native {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-left: auto;
}

.lang-modal__close {
  display: block;
  margin: 16px auto 0;
  padding: 8px 24px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.85rem;
  color: var(--text-light);
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: all 0.2s;
}

.lang-modal__confirm {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 14px;
  background: var(--gold);
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: all 0.2s;
}

.lang-modal__confirm:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(201,168,76,0.3);
}

.lang-modal__close {
  display: block;
  margin: 8px auto 0;
  padding: 8px 24px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.85rem;
  color: var(--text-light);
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: all 0.2s;
}

.lang-modal__close:hover {
  border-color: var(--gold);
  color: var(--gold-dark);
}

/* RTL support */
[dir="rtl"] body {
  direction: rtl;
  text-align: right;
}

[dir="rtl"] .header__inner {
  flex-direction: row-reverse;
}

[dir="rtl"] .hero__heading-line--accent {
  direction: rtl;
}

[dir="rtl"] .about__card, [dir="rtl"] .fact-card {
  text-align: right;
}

[dir="rtl"] .quote {
  border: none;
  border-right: 3px solid var(--gold);
  padding-right: 20px;
  padding-left: 0;
}

[dir="rtl"] .question-card__hint {
  border-left: none;
  border-right: 2px solid var(--gold);
  padding-left: 0;
  padding-right: 16px;
}

[dir="rtl"] .question-card__ref {
  border-left: none;
  border-right: 3px solid var(--gold);
}

[dir="rtl"] .contact-card {
  flex-direction: row-reverse;
}

[dir="rtl"] .contact-card__meta {
  flex-direction: row-reverse;
}

[dir="rtl"] .pub-card__footer {
  flex-direction: row-reverse;
}

[dir="rtl"] .result-bar__header {
  flex-direction: row-reverse;
}

/* ===== RESPONSIVE ADDITIONS ===== */
@media (max-width: 640px) {
  .contact-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .contact-card__meta {
    justify-content: center;
    flex-wrap: wrap;
  }

  .pub-card__footer {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }

  .article__inner {
    padding: 24px;
  }

  .article__title {
    font-size: 1.4rem;
  }

  .pub-filter__inner {
    padding: 12px 16px;
  }

  .header__inner {
    flex-direction: column;
    text-align: center;
  }

  .header__nav {
    flex-wrap: wrap;
    justify-content: center;
  }
}
