﻿/* ============================================================
   IAS IPT — International Academy of Sciences on Information,
   Information Processes and Technologies
   Official Website Stylesheet
   ============================================================ */

:root {
  --navy-900: #081d3d;
  --navy-800: #0c2d5c;
  --navy-700: #143d75;
  --navy-600: #1d4f8f;
  --gold-500: #c9a227;
  --gold-400: #d4b84a;
  --gold-300: #e8d08a;
  --bg-light: #f5f7fa;
  --bg-white: #ffffff;
  --text-dark: #1a2332;
  --text-muted: #5a6a7e;
  --border: #dde3ec;
  --shadow-sm: 0 2px 8px rgba(8, 29, 61, 0.08);
  --shadow-md: 0 4px 20px rgba(8, 29, 61, 0.12);
  --shadow-lg: 0 8px 40px rgba(8, 29, 61, 0.16);
  --radius: 6px;
  --radius-lg: 12px;
  --transition: 0.3s ease;
  --maxw: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-dark);
  background: var(--bg-white);
  line-height: 1.7;
  font-size: 16px;
}

h1, h2, h3, h4, h5 {
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--navy-800);
  line-height: 1.3;
  font-weight: 700;
}

a { color: var(--navy-700); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-500); }

img { max-width: 100%; display: block; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--navy-900);
  color: #b8c6db;
  font-size: 13px;
  padding: 8px 0;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.topbar a { color: #b8c6db; }
.topbar a:hover { color: var(--gold-400); }
.topbar .topbar-info span { margin-right: 20px; }
.topbar .topbar-info i { color: var(--gold-500); margin-right: 6px; }

.lang-switch {
  display: inline-flex;
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
  overflow: hidden;
}
.lang-switch button {
  background: none; border: none; color: #b8c6db;
  padding: 5px 14px; cursor: pointer; font-size: 13px;
  font-weight: 600; transition: all var(--transition);
}
.lang-switch button.active {
  background: var(--gold-500); color: var(--navy-900);
}
.lang-switch button:hover:not(.active) { background: rgba(255,255,255,0.12); color: #fff; }

/* ---------- Header / Nav ---------- */
.site-header {
  background: var(--bg-white);
  box-shadow: var(--shadow-sm);
  position: sticky; top: 0; z-index: 1000;
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; padding-bottom: 14px;
}
.logo { display: flex; align-items: center; gap: 14px; }
.logo img { height: 64px; width: auto; }
.logo-text .logo-title {
  font-family: Georgia, serif; font-size: 17px; font-weight: 700;
  color: var(--navy-800); line-height: 1.25; max-width: 380px;
}
.logo-text .logo-sub {
  font-size: 12px; color: var(--text-muted); margin-top: 2px;
  font-style: italic;
}

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  padding: 10px 14px; font-size: 14.5px; font-weight: 600;
  color: var(--text-dark); border-radius: 4px; position: relative;
}
.main-nav a:hover, .main-nav a.active { color: var(--navy-700); background: var(--bg-light); }
.main-nav a.active::after {
  content: ''; position: absolute; bottom: -2px; left: 14px; right: 14px;
  height: 2px; background: var(--gold-500);
}

.nav-toggle {
  display: none; background: none; border: none; font-size: 26px;
  color: var(--navy-800); cursor: pointer;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 12px 28px; border-radius: 4px;
  font-weight: 600; font-size: 15px; cursor: pointer;
  transition: all var(--transition); border: 2px solid transparent;
  text-align: center;
}
.btn-primary { background: var(--gold-500); color: var(--navy-900); border-color: var(--gold-500); }
.btn-primary:hover { background: var(--gold-400); border-color: var(--gold-400); color: var(--navy-900); transform: translateY(-1px); }
.btn-outline { background: transparent; color: #fff; border-color: #fff; }
.btn-outline:hover { background: #fff; color: var(--navy-800); }
.btn-navy { background: var(--navy-700); color: #fff; border-color: var(--navy-700); }
.btn-navy:hover { background: var(--navy-800); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, rgba(8,29,61,0.92) 0%, rgba(20,61,117,0.85) 100%),
              url('../image/iasipt/hero-conference.jpg') center/cover no-repeat;
  color: #fff; padding: 110px 0 120px; text-align: center;
}
.hero h1 {
  color: #fff; font-size: 44px; max-width: 900px; margin: 0 auto 20px;
  letter-spacing: 0.5px;
}
.hero p.lead {
  font-size: 19px; max-width: 720px; margin: 0 auto 36px;
  color: #d6deea; line-height: 1.7;
}
.hero .hero-badges {
  display: flex; justify-content: center; gap: 28px; flex-wrap: wrap;
  margin-top: 44px;
}
.hero-badge {
  background: rgba(255,255,255,0.1); border: 1px solid rgba(201,162,39,0.4);
  border-radius: var(--radius-lg); padding: 18px 28px;
  backdrop-filter: blur(4px);
}
.hero-badge .num { font-family: Georgia, serif; font-size: 36px; color: var(--gold-400); font-weight: 700; }
.hero-badge .label { font-size: 13px; color: #c5d0e0; margin-top: 4px; }

/* Page hero (inner pages) */
.page-hero {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
  color: #fff; padding: 70px 0 60px; text-align: center;
}
.page-hero h1 { color: #fff; font-size: 38px; margin-bottom: 12px; }
.page-hero .breadcrumb { font-size: 14px; color: #a8b8cf; }
.page-hero .breadcrumb a { color: var(--gold-400); }

/* ---------- Sections ---------- */
section { padding: 80px 0; }
.section-alt { background: var(--bg-light); }
.section-title {
  text-align: center; margin-bottom: 56px;
}
.section-title h2 {
  font-size: 34px; margin-bottom: 14px; position: relative;
  display: inline-block; padding-bottom: 16px;
}
.section-title h2::after {
  content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 70px; height: 3px; background: var(--gold-500);
}
.section-title p { color: var(--text-muted); font-size: 17px; max-width: 680px; margin: 0 auto; }

/* ---------- Cards ---------- */
.card-grid {
  display: grid; gap: 30px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--bg-white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); overflow: hidden;
  transition: all var(--transition); border: 1px solid var(--border);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.card-img { height: 220px; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.card:hover .card-img img { transform: scale(1.06); }
.card-body { padding: 26px; }
.card-body h3 { font-size: 20px; margin-bottom: 10px; }
.card-body p { color: var(--text-muted); font-size: 15px; }
.card-icon {
  width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-600));
  color: var(--gold-400); display: flex; align-items: center; justify-content: center;
  font-size: 26px; margin-bottom: 18px;
}

/* ---------- Feature / About block ---------- */
.feature-block { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.feature-block img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.feature-block h2 { font-size: 32px; margin-bottom: 20px; }
.feature-block p { color: var(--text-muted); margin-bottom: 16px; }
.feature-list { list-style: none; margin-top: 20px; }
.feature-list li {
  padding: 8px 0 8px 32px; position: relative; color: var(--text-dark);
}
.feature-list li::before {
  content: '\2713'; position: absolute; left: 0; top: 8px;
  width: 22px; height: 22px; background: var(--gold-500); color: var(--navy-900);
  border-radius: 50%; text-align: center; line-height: 22px; font-size: 12px; font-weight: 700;
}

/* ---------- Stats band ---------- */
.stats-band {
  background: linear-gradient(135deg, var(--navy-800), var(--navy-700));
  color: #fff; padding: 60px 0;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.stat-item .stat-num {
  font-family: Georgia, serif; font-size: 48px; color: var(--gold-400); font-weight: 700;
}
.stat-item .stat-label { font-size: 15px; color: #c5d0e0; margin-top: 6px; }

/* ---------- Timeline ---------- */
.timeline { position: relative; max-width: 800px; margin: 0 auto; padding-left: 40px; }
.timeline::before {
  content: ''; position: absolute; left: 12px; top: 0; bottom: 0;
  width: 3px; background: var(--gold-500);
}
.timeline-item { position: relative; margin-bottom: 36px; }
.timeline-item::before {
  content: ''; position: absolute; left: -34px; top: 6px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--navy-700); border: 3px solid var(--gold-500);
}
.timeline-item h4 { font-size: 18px; color: var(--navy-700); margin-bottom: 4px; }
.timeline-item .year {
  display: inline-block; background: var(--gold-500); color: var(--navy-900);
  padding: 2px 12px; border-radius: 20px; font-size: 13px; font-weight: 700;
  margin-bottom: 8px;
}
.timeline-item p { color: var(--text-muted); font-size: 15px; }

/* ---------- News / Events ---------- */
.news-meta { font-size: 13px; color: var(--gold-500); font-weight: 600; margin-bottom: 8px; }
.news-date {
  display: inline-block; background: var(--navy-800); color: #fff;
  padding: 3px 12px; border-radius: 4px; font-size: 12px; margin-right: 10px;
}

/* ---------- Table ---------- */
.content-table {
  width: 100%; border-collapse: collapse; margin: 24px 0;
  background: var(--bg-white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.content-table th, .content-table td {
  padding: 14px 20px; text-align: left; border-bottom: 1px solid var(--border);
}
.content-table th {
  background: var(--navy-800); color: #fff; font-weight: 600; font-size: 14px;
}
.content-table tr:last-child td { border-bottom: none; }
.content-table tr:hover td { background: var(--bg-light); }

/* ---------- UN Status ---------- */
.un-banner {
  background: linear-gradient(135deg, rgba(8,29,61,0.95), rgba(20,61,117,0.9)),
              url('../image/iasipt/global-network.jpg') center/cover;
  color: #fff; border-radius: var(--radius-lg); padding: 50px; text-align: center;
  margin-bottom: 40px;
}
.un-banner h2 { color: #fff; font-size: 30px; margin-bottom: 14px; }
.un-banner p { color: #d6deea; max-width: 700px; margin: 0 auto 24px; }
.un-logo-row { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; margin-top: 30px; }
.un-logo-item {
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius); padding: 16px 30px; font-weight: 600;
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.contact-info .info-item {
  display: flex; gap: 16px; margin-bottom: 24px; align-items: flex-start;
}
.contact-info .info-icon {
  width: 46px; height: 46px; min-width: 46px; border-radius: 50%;
  background: var(--navy-800); color: var(--gold-400);
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.contact-info h4 { font-size: 16px; margin-bottom: 2px; }
.contact-info p, .contact-info a { color: var(--text-muted); font-size: 15px; }

.contact-form { background: var(--bg-light); padding: 36px; border-radius: var(--radius-lg); }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; color: var(--navy-800); }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 11px 14px; border: 1px solid var(--border);
  border-radius: 4px; font-size: 15px; font-family: inherit;
  transition: border var(--transition);
}
.form-group input:focus, .form-group textarea:focus {
  outline: none; border-color: var(--navy-600); box-shadow: 0 0 0 3px rgba(29,79,143,0.12);
}

/* ---------- Membership tiers ---------- */
.tier-card {
  background: var(--bg-white); border: 2px solid var(--border);
  border-radius: var(--radius-lg); padding: 36px 28px; text-align: center;
  transition: all var(--transition);
}
.tier-card:hover { border-color: var(--gold-500); box-shadow: var(--shadow-md); }
.tier-card.featured { border-color: var(--gold-500); position: relative; }
.tier-card.featured::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--gold-500); border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.tier-card h3 { font-size: 22px; margin-bottom: 8px; }
.tier-card .tier-desc { color: var(--text-muted); font-size: 14px; margin-bottom: 20px; }
.tier-card ul { list-style: none; text-align: left; margin-bottom: 24px; }
.tier-card ul li {
  padding: 8px 0 8px 28px; position: relative; font-size: 14.5px;
  border-bottom: 1px solid var(--border);
}
.tier-card ul li::before {
  content: '\2713'; position: absolute; left: 0; color: var(--gold-500); font-weight: 700;
}

/* ---------- Publication list ---------- */
.pub-item {
  display: flex; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--border);
}
.pub-item:last-child { border-bottom: none; }
.pub-cover {
  width: 120px; min-width: 120px; height: 160px;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
  border-radius: 4px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; color: var(--gold-400);
  padding: 16px; text-align: center; box-shadow: var(--shadow-sm);
}
.pub-cover .pub-cover-title { font-family: Georgia, serif; font-size: 13px; line-height: 1.3; }
.pub-cover .pub-cover-year { font-size: 11px; margin-top: 8px; color: #a8b8cf; }
.pub-info h3 { font-size: 19px; margin-bottom: 6px; }
.pub-info .pub-authors { font-size: 14px; color: var(--navy-700); font-style: italic; margin-bottom: 8px; }
.pub-info p { color: var(--text-muted); font-size: 14.5px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900); color: #a8b8cf; padding: 60px 0 0;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; padding-bottom: 40px; }
.footer-col h4 {
  color: #fff; font-size: 16px; margin-bottom: 18px;
  padding-bottom: 10px; border-bottom: 2px solid var(--gold-500); display: inline-block;
}
.footer-col p { font-size: 14px; line-height: 1.8; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: #a8b8cf; font-size: 14px; }
.footer-col ul li a:hover { color: var(--gold-400); }
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-logo img { height: 52px; }
.footer-logo .ft-title { font-family: Georgia, serif; color: #fff; font-size: 15px; font-weight: 700; line-height: 1.3; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 0;
  text-align: center; font-size: 13px;
}
.footer-bottom a { color: var(--gold-400); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  padding: 50px 0; text-align: center;
}
.cta-band h2 { color: var(--navy-900); font-size: 30px; margin-bottom: 10px; }
.cta-band p { color: var(--navy-900); font-size: 17px; margin-bottom: 24px; opacity: 0.85; }
.cta-band .btn-primary { background: var(--navy-900); color: var(--gold-400); border-color: var(--navy-900); }
.cta-band .btn-primary:hover { background: var(--navy-800); color: #fff; }

/* ---------- Content area (prose) ---------- */
.prose { max-width: 820px; margin: 0 auto; }
.prose h2 { font-size: 28px; margin: 36px 0 16px; }
.prose h3 { font-size: 22px; margin: 28px 0 12px; }
.prose p { margin-bottom: 16px; color: #334155; }
.prose ul, .prose ol { margin: 16px 0 16px 24px; color: #334155; }
.prose li { margin-bottom: 8px; }

/* ---------- Countries ---------- */
.country-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.country-tag {
  background: var(--bg-light); border: 1px solid var(--border);
  padding: 6px 16px; border-radius: 20px; font-size: 14px;
  color: var(--navy-700); font-weight: 600;
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .feature-block { grid-template-columns: 1fr; gap: 36px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 34px; }
}
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; flex-direction: column; padding: 10px;
    box-shadow: var(--shadow-md); gap: 0;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 16px; width: 100%; }
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 70px 0 80px; }
  .hero h1 { font-size: 28px; }
  .section-title h2 { font-size: 26px; }
  section { padding: 56px 0; }
  .logo-text .logo-title { font-size: 14px; max-width: 240px; }
  .logo img { height: 50px; }
  .pub-item { flex-direction: column; }
  .un-banner { padding: 30px 20px; }
  .topbar .topbar-info span { display: block; margin-right: 0; margin-bottom: 4px; }
}

/* ============================================================
   Fellows & News Pages
   ============================================================ */

/* Fellow grid */
.fellow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}
.fellow-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid var(--border);
}
.fellow-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.fellow-photo {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
}
.fellow-photo-placeholder {
  width: 100%;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
  color: var(--gold-400);
  font-family: Georgia, serif;
  font-size: 64px;
  font-weight: 700;
}
.fellow-body {
  padding: 24px;
}
.fellow-name {
  font-family: Georgia, serif;
  font-size: 20px;
  color: var(--navy-800);
  margin-bottom: 4px;
}
.fellow-title {
  color: var(--gold-500);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
}
.fellow-affiliation {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 12px;
}
.fellow-field {
  display: inline-block;
  background: rgba(201,162,39,0.1);
  color: var(--navy-700);
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 12px;
}
.fellow-bio {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}
.fellow-year {
  float: right;
  background: var(--navy-800);
  color: #fff;
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

/* News grid */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 30px;
  margin-top: 40px;
}
.news-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.news-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.news-card-img-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.3);
  font-size: 48px;
}
.news-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.news-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 13px;
  color: var(--text-muted);
}
.news-category {
  background: var(--gold-500);
  color: #fff;
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.news-category.announcement {
  background: var(--navy-700);
}
.news-card-title {
  font-family: Georgia, serif;
  font-size: 20px;
  color: var(--navy-800);
  margin-bottom: 10px;
  line-height: 1.3;
}
.news-card-title a { color: inherit; }
.news-card-title a:hover { color: var(--gold-500); }
.news-card-summary {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}
.news-card-link {
  margin-top: 16px;
  font-weight: 600;
  font-size: 14px;
  color: var(--navy-700);
}

/* News detail */
.news-detail {
  max-width: 800px;
  margin: 0 auto;
}
.news-detail-img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: 30px;
}
.news-detail h1 {
  font-size: 32px;
  margin-bottom: 16px;
}
.news-detail .news-meta {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.news-detail-content {
  font-size: 17px;
  line-height: 1.8;
}
.news-detail-content p { margin-bottom: 16px; }
.news-detail-content ul { margin: 0 0 16px 24px; }
.news-detail-content li { margin-bottom: 6px; }
.news-back {
  display: inline-block;
  margin-bottom: 30px;
  font-weight: 600;
}

/* Category filter */
.news-filter {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 20px;
  flex-wrap: wrap;
}
.news-filter a {
  padding: 8px 24px;
  border: 2px solid var(--navy-700);
  border-radius: 30px;
  font-weight: 600;
  font-size: 14px;
  color: var(--navy-700);
  transition: all var(--transition);
}
.news-filter a:hover,
.news-filter a.active {
  background: var(--navy-700);
  color: #fff;
}

/* ============================================================
   Admin Panel
   ============================================================ */
.admin-body {
  background: #f0f2f5;
  min-height: 100vh;
}
.admin-wrapper {
  display: flex;
  min-height: 100vh;
}
.admin-sidebar {
  width: 260px;
  background: var(--navy-900);
  color: #fff;
  flex-shrink: 0;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  overflow-y: auto;
  z-index: 100;
}
.admin-sidebar-brand {
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  gap: 12px;
}
.admin-sidebar-brand img {
  width: 42px; height: 42px;
  border-radius: 50%;
}
.admin-sidebar-brand span {
  font-family: Georgia, serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}
.admin-nav { padding: 16px 0; }
.admin-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}
.admin-nav a:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
}
.admin-nav a.active {
  background: rgba(201,162,39,0.15);
  color: var(--gold-400);
  border-left-color: var(--gold-500);
}
.admin-nav .nav-icon { font-size: 18px; width: 24px; text-align: center; }
.admin-nav-section {
  padding: 16px 24px 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.35);
  font-weight: 700;
}
.admin-main {
  flex: 1;
  margin-left: 260px;
  padding: 0;
}
.admin-topbar {
  background: #fff;
  padding: 16px 32px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 50;
}
.admin-topbar h1 {
  font-size: 20px;
  color: var(--navy-800);
}
.admin-topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
}
.admin-topbar-right a { color: var(--text-muted); }
.admin-topbar-right a:hover { color: #dc3545; }
.admin-content {
  padding: 32px;
}
.admin-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 28px;
  margin-bottom: 24px;
}
.admin-card h2 {
  font-size: 18px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

/* Stats cards */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}
.admin-stat {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--gold-500);
}
.admin-stat.navy { border-left-color: var(--navy-700); }
.admin-stat.green { border-left-color: #28a745; }
.admin-stat .stat-num {
  font-size: 36px;
  font-weight: 700;
  color: var(--navy-800);
  font-family: Georgia, serif;
}
.admin-stat .stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Admin tables */
.admin-table {
  width: 100%;
  border-collapse: collapse;
}
.admin-table th {
  text-align: left;
  padding: 12px 16px;
  background: var(--bg-light);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  border-bottom: 2px solid var(--border);
}
.admin-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  vertical-align: middle;
}
.admin-table tr:hover td { background: #fafbfc; }
.admin-table .thumb {
  width: 50px; height: 50px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-light);
}
.admin-table .thumb-placeholder {
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--navy-700);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
}
.btn-sm {
  padding: 5px 14px;
  font-size: 12px;
  border-radius: 4px;
  display: inline-block;
  margin-right: 4px;
}
.btn-edit {
  background: var(--navy-700);
  color: #fff;
}
.btn-edit:hover { background: var(--navy-800); color: #fff; }
.btn-delete {
  background: #dc3545;
  color: #fff;
}
.btn-delete:hover { background: #c82333; color: #fff; }
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}
.badge-success { background: #d4edda; color: #155724; }
.badge-secondary { background: #e2e3e5; color: #383d41; }

/* Admin forms */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 13px;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.form-group label .lang-tag {
  display: inline-block;
  background: var(--navy-700);
  color: #fff;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 3px;
  margin-left: 6px;
  font-weight: 700;
  vertical-align: middle;
}
.form-group label .lang-tag.ru { background: var(--gold-500); }
.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: inherit;
  transition: border-color var(--transition);
}
.form-control:focus {
  outline: none;
  border-color: var(--navy-600);
  box-shadow: 0 0 0 3px rgba(29,79,143,0.1);
}
textarea.form-control { min-height: 120px; resize: vertical; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.btn {
  display: inline-block;
  padding: 10px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-primary {
  background: var(--gold-500);
  color: #fff;
}
.btn-primary:hover { background: #b8921f; color: #fff; }
.btn-navy {
  background: var(--navy-700);
  color: #fff;
}
.btn-navy:hover { background: var(--navy-800); color: #fff; }
.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.btn-outline:hover { border-color: var(--navy-700); color: var(--navy-700); }
.btn-danger {
  background: #dc3545;
  color: #fff;
}
.btn-danger:hover { background: #c82333; color: #fff; }

/* Image preview */
.img-preview {
  margin-top: 10px;
  max-width: 200px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.img-preview-circle {
  width: 100px; height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border);
  margin-top: 10px;
}

/* Login page */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  padding: 20px;
}
.login-box {
  background: #fff;
  border-radius: 16px;
  padding: 40px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  text-align: center;
}
.login-box img {
  width: 80px; height: 80px;
  border-radius: 50%;
  margin-bottom: 16px;
}
.login-box h1 {
  font-size: 22px;
  margin-bottom: 8px;
}
.login-box p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 28px;
}
.login-box .form-group { text-align: left; }
.login-box .btn { width: 100%; padding: 12px; }
.login-error {
  background: #f8d7da;
  color: #721c24;
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  margin-bottom: 20px;
}

/* Alert */
.alert {
  padding: 12px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  margin-bottom: 20px;
}
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-danger { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* Mobile admin */
@media (max-width: 900px) {
  .admin-sidebar { transform: translateX(-100%); transition: transform 0.3s; }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-main { margin-left: 0; }
  .form-row { grid-template-columns: 1fr; }
  .admin-content { padding: 20px; }
}
