@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Source+Serif+4:wght@300;400;600&family=Noto+Sans:wght@300;400;500;600&display=swap');

:root {
  --navy: #1a2a4a;
  --deep-blue: #0d1f3c;
  --accent: #c8973a;
  --accent-light: #e8b55a;
  --gray-light: #f4f6f8;
  --gray-mid: #e0e4ea;
  --gray-text: #6b7280;
  --text: #1e2535;
  --white: #ffffff;
  --red: #b5222e;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Noto Sans', sans-serif;
  color: var(--text);
  background: var(--white);
  font-size: 15px;
  line-height: 1.6;
}

/* ====== TOP BAR ====== */
.top-bar {
  background: var(--deep-blue);
  color: rgba(255,255,255,0.75);
  font-size: 12.5px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.top-bar .inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.top-bar .contacts { display: flex; gap: 20px; align-items: center; }
.top-bar .contacts a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
}
.top-bar .contacts a:hover { color: var(--accent-light); }
.top-bar .contacts .icon { font-size: 14px; }

/* ====== LANG SWITCHER ====== */
.lang-switcher {
  display: flex;
  gap: 4px;
  align-items: center;
}
.lang-switcher button {
  background: none;
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.65);
  padding: 2px 9px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 12px;
  font-family: inherit;
  transition: all 0.2s;
  letter-spacing: 0.5px;
}
.lang-switcher button:hover,
.lang-switcher button.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ====== HEADER ====== */
header {
  background: var(--white);
  border-bottom: 3px solid var(--accent);
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.logo-wrap {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.logo-wrap img {
  height: 70px;
  width: auto;
  display: block;
}
.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
}
.header-search input {
  border: 1.5px solid var(--gray-mid);
  padding: 7px 14px;
  border-radius: 4px;
  font-size: 13.5px;
  font-family: inherit;
  width: 220px;
  outline: none;
  transition: border-color 0.2s;
  display: none;
}
.header-search input.active { display: block; }
.header-search input:focus { border-color: var(--navy); }
.header-search button {
  background: var(--navy);
  color: #fff;
  border: none;
  padding: 7px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.2s;
}
.header-search button:hover { background: var(--accent); }

/* ====== NAV ====== */
nav {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: none;
  align-items: stretch;
}
.nav-inner.active { display: flex; }

.nav-item { position: relative; }
.nav-item > a, .nav-item > span {
  display: flex;
  align-items: center;
  gap: 5px;
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  padding: 14px 18px;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.3px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.18s, color 0.18s;
  border-bottom: 3px solid transparent;
}
.nav-item > a:hover, .nav-item > span:hover,
.nav-item.active > a, .nav-item.active > span {
  background: rgba(255,255,255,0.08);
  color: var(--accent-light);
  border-bottom-color: var(--accent);
}
.nav-item > span::after { content: ' ▾'; font-size: 10px; opacity: 0.7; }

/* Dropdown */
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 240px;
  border: 1px solid var(--gray-mid);
  border-top: 3px solid var(--accent);
  box-shadow: 0 6px 24px rgba(0,0,0,0.14);
  z-index: 200;
}
.nav-item:hover .dropdown { display: block; }
.dropdown a {
  display: block;
  padding: 10px 18px;
  color: var(--text);
  text-decoration: none;
  font-size: 13.5px;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.15s, color 0.15s, padding-left 0.15s;
}
.dropdown a:last-child { border-bottom: none; }
.dropdown a:hover { background: var(--gray-light); color: var(--navy); padding-left: 24px; }

/* ====== MAIN LAYOUT ====== */
.page-wrap {
  max-width: 1200px;
  margin: 32px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
}

/* ====== SECTION TITLE ====== */
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 19px;
  font-weight: 700;
  color: var(--navy);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 9px;
  margin-bottom: 20px;
  letter-spacing: 0.2px;
}

/* ====== ISSUE HEADER ====== */
.issue-header {
  background: linear-gradient(135deg, var(--navy) 0%, #243a6a 100%);
  color: #fff;
  padding: 22px 28px;
  border-radius: 6px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.issue-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.issue-header .year-badge {
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 20px;
  white-space: nowrap;
}

/* ====== ARTICLE LIST ====== */
.article-list { list-style: none; }
.article-item {
  border-bottom: 1px solid var(--gray-mid);
  padding: 14px 0;
}
.article-item:last-child { border-bottom: none; }
.article-category {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 4px;
}
.article-title {
  font-family: 'Source Serif 4', serif;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  line-height: 1.4;
  display: block;
  margin-bottom: 4px;
  transition: color 0.15s;
}
.article-title:hover { color: var(--accent); }
.article-authors {
  font-size: 13px;
  color: var(--gray-text);
  font-style: italic;
}

/* ====== LATEST ARTICLES ====== */
.latest-header { margin-top: 36px; }
.latest-grid { display: flex; flex-direction: column; gap: 16px; }
.latest-card {
  background: var(--gray-light);
  border-left: 4px solid var(--navy);
  padding: 16px 20px;
  border-radius: 0 6px 6px 0;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.latest-card:hover {
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}
.latest-card .cat {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 5px;
}
.latest-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  color: var(--navy);
  margin-bottom: 6px;
  line-height: 1.4;
}
.latest-card p {
  font-size: 13.5px;
  color: var(--gray-text);
  line-height: 1.55;
}
.latest-card .meta {
  display: flex;
  gap: 16px;
  margin-top: 10px;
  font-size: 12px;
  color: #9ca3af;
}

/* ====== SIDEBAR ====== */
.sidebar { display: flex; flex-direction: column; gap: 24px; }

.sidebar-card {
  background: var(--gray-light);
  border-radius: 6px;
  overflow: hidden;
}
.sidebar-card-header {
  background: var(--navy);
  color: #fff;
  padding: 11px 16px;
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: 0.3px;
  display: none;
}
.sidebar-card-header.active { display: block; }

.sidebar-card-body { padding: 14px 16px; }

/* Journal cover */
.journal-cover {
  text-align: center;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--gray-mid);
  border-radius: 6px;
}
.cover-img {
  width: 140px;
  height: 196px;
  background: linear-gradient(160deg, var(--navy) 0%, #1e4080 60%, var(--accent) 100%);
  margin: 0 auto 12px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: 'Playfair Display', serif;
  font-size: 13px;
  text-align: center;
  padding: 12px;
  line-height: 1.4;
  box-shadow: 4px 4px 16px rgba(0,0,0,0.2);
  position: relative;
  overflow: hidden;
}
.cover-img::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: var(--accent);
}
.journal-cover p { font-size: 12.5px; color: var(--gray-text); }
.journal-cover strong {
  display: none;
  font-size: 14px;
  color: var(--navy);
  margin-bottom: 4px;
}
.journal-cover strong.active { display: block; }
.journal-cover p { display: none; }
.journal-cover p.active { display: block; }

/* Archive list */
.archive-list { list-style: none; }
.archive-list li { border-bottom: 1px solid #e8ecf0; }
.archive-list li:last-child { border: none; }
.archive-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  color: var(--navy);
  text-decoration: none;
  font-size: 13.5px;
  transition: color 0.15s;
}
.archive-list a:hover { color: var(--accent); }
.archive-list .issue-num {
  background: var(--navy);
  color: #fff;
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 10px;
}

/* Info links */
.info-links { list-style: none; display: none; }
.info-links.active { display: block; }
.info-links li { border-bottom: 1px solid #e8ecf0; }
.info-links li:last-child { border: none; }
.info-links a {
  display: block;
  padding: 9px 0 9px 14px;
  color: var(--navy);
  text-decoration: none;
  font-size: 13.5px;
  position: relative;
  transition: color 0.15s, padding-left 0.15s;
}
.info-links a::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 18px;
  line-height: 1;
  top: 8px;
}
.info-links a:hover { color: var(--accent); padding-left: 20px; }

/* Indexing badges */
.index-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.index-badge {
  background: var(--white);
  border: 1.5px solid var(--navy);
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

/* ====== ANNOUNCEMENT BANNER ====== */
.announcement {
  background: linear-gradient(135deg, #fef3e0, #fdf8f0);
  border: 1px solid #e8c97a;
  border-left: 4px solid var(--accent);
  padding: 14px 18px;
  border-radius: 4px;
  margin-bottom: 24px;
}
.announcement strong {
  color: var(--navy);
  font-size: 14px;
  display: block;
  margin-bottom: 4px;
}
.announcement p { font-size: 13px; color: #5a4a20; }

/* ====== MAIN CONTENT LANG BLOCKS ====== */
.lang-block { display: none; }
.lang-block.active { display: block; }

/* ====== BREADCRUMB ====== */
.breadcrumb {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px;
  font-size: 12.5px;
  color: var(--gray-text);
  display: flex;
  gap: 6px;
  align-items: center;
  background: var(--gray-light);
  border-bottom: 1px solid var(--gray-mid);
}
.breadcrumb a {
  color: var(--navy);
  text-decoration: none;
  display: none;
}
.breadcrumb a.active { display: inline; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: #ccc; }

/* ====== FOOTER ====== */
footer {
  background: var(--deep-blue);
  color: rgba(255,255,255,0.75);
  margin-top: 50px;
  padding: 40px 0 20px;
  border-top: 4px solid var(--accent);
}
.footer-grid {
  max-width: 1200px;
  margin: 0 auto 28px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 36px;
}
.footer-col h4 {
  color: var(--accent-light);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 14px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  display: none;
}
.footer-col h4.active { display: block; }
.footer-about { display: none; }
.footer-about.active { display: block; }
.footer-about p {
  font-size: 13px;
  line-height: 1.7;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 7px; }
.footer-col ul a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.15s;
  display: none;
}
.footer-col ul a.active { display: inline; }
.footer-col ul a:hover { color: var(--accent-light); }
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 20px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: rgba(255,255,255,0.45);
}

/* ====== UNDER CONSTRUCTION PAGE ====== */
.under-construction {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(13, 31, 60, 0.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.under-construction.show { display: flex; }
.uc-box {
  background: #fff;
  border-radius: 10px;
  padding: 50px 60px;
  text-align: center;
  max-width: 480px;
  width: 90%;
  border-top: 5px solid var(--accent);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  position: relative;
  animation: ucIn 0.3s ease;
}
@keyframes ucIn {
  from { transform: translateY(30px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.uc-icon {
  font-size: 56px;
  margin-bottom: 18px;
  display: block;
}
.uc-box h2 {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  color: var(--navy);
  margin-bottom: 12px;
}
.uc-box p {
  color: var(--gray-text);
  font-size: 14.5px;
  line-height: 1.6;
  margin-bottom: 24px;
}
.uc-close {
  background: var(--navy);
  color: #fff;
  border: none;
  padding: 10px 32px;
  border-radius: 5px;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
}
.uc-close:hover { background: var(--accent); }
.uc-x {
  position: absolute;
  top: 14px; right: 18px;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: #aaa;
  line-height: 1;
  transition: color 0.15s;
}
.uc-x:hover { color: var(--red); }

/* ====== RESPONSIVE ====== */
@media(max-width: 900px) {
  .page-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .header-inner { flex-wrap: wrap; }
  .nav-inner { overflow-x: auto; }
}
@media(max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .issue-header { flex-direction: column; align-items: flex-start; }
  .logo-wrap img { height: 50px; }
}
