/*
Theme Name: ISC Modern
Author: International Security Cluster
Description: Modern bilingual WordPress theme for International Security Cluster.
Version: 1.0.0
Text Domain: isc-modern
*/
:root {
  --bg: #f7f8fa;
  --panel: #ffffff;
  --ink: #111827;
  --muted: #5b6472;
  --line: #dfe4ea;
  --accent: #0f766e;
  --accent-2: #b42318;
  --navy: #172033;
  --gold: #c38a2e;
  --shadow: 0 18px 48px rgba(17, 24, 39, 0.12);
  --radius: 8px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
img { max-width: 100%; height: auto; }
.container { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.skip-link { position:absolute; left:-999px; top:auto; width:1px; height:1px; overflow:hidden; }
.skip-link:focus { left: 16px; top: 16px; width: auto; height: auto; z-index: 1000; background: var(--panel); padding: 10px 12px; border: 1px solid var(--line); }
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 780; letter-spacing: 0; }
.brand-mark { width: 38px; height: 38px; border-radius: 8px; display: grid; place-items: center; color: white; background: linear-gradient(135deg, var(--navy), var(--accent)); font-size: 14px; font-weight: 800; }
.brand-text { display: grid; line-height: 1.1; }
.brand-text span:first-child { font-size: 15px; }
.brand-text span:last-child { color: var(--muted); font-size: 12px; font-weight: 600; }
.nav-row { display: flex; align-items: center; gap: 18px; }
.primary-nav { display: flex; align-items: center; gap: 4px; }
.primary-nav a { text-decoration: none; color: var(--navy); padding: 10px 11px; border-radius: 7px; font-size: 14px; font-weight: 650; }
.primary-nav a:hover, .primary-nav a[aria-current="page"] { background: #eef3f5; color: #0b5f59; }
.lang-switch { display: flex; align-items: center; gap: 6px; border-left: 1px solid var(--line); padding-left: 16px; }
.lang-switch a, .lang-switch span { font-size: 13px; font-weight: 750; text-decoration: none; padding: 6px 8px; border-radius: 6px; }
.lang-switch .current-lang { background: var(--navy); color: white; }
.mobile-menu-button { display: none; width: 42px; height: 42px; border: 1px solid var(--line); background: white; border-radius: 7px; }
.mobile-menu-button span { display:block; width:18px; height:2px; margin:4px auto; background:var(--navy); }
.hero { position: relative; overflow: hidden; background: var(--navy); color: white; }
.hero::before { content:""; position:absolute; inset:0; background: linear-gradient(90deg, rgba(23,32,51,.96), rgba(23,32,51,.78), rgba(15,118,110,.54)), var(--hero-image, none); background-size: cover; background-position: center; }
.hero::after { content:""; position:absolute; inset:auto 0 0; height: 5px; background: linear-gradient(90deg, var(--accent), var(--gold), var(--accent-2)); }
.hero-inner { position: relative; min-height: min(690px, calc(100vh - 72px)); display: grid; align-content: center; padding: 86px 0 110px; max-width: 850px; }
.eyebrow { color: #9ee6d9; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.hero h1 { margin: 16px 0 18px; font-size: clamp(42px, 7vw, 82px); line-height: .98; letter-spacing: 0; max-width: 820px; }
.hero p { margin: 0; font-size: clamp(18px, 2vw, 22px); max-width: 760px; color: rgba(255,255,255,.86); }
.hero-actions { display:flex; flex-wrap:wrap; gap:12px; margin-top:32px; }
.button { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:44px; padding: 11px 16px; border-radius: 7px; border: 1px solid transparent; text-decoration:none; font-weight: 760; }
.button.primary { background: #ffffff; color: var(--navy); }
.button.secondary { border-color: rgba(255,255,255,.38); color:white; background: rgba(255,255,255,.08); }
.band { padding: 72px 0; }
.band.white { background: white; }
.band.navy { background: var(--navy); color: white; }
.section-head { display:flex; align-items:end; justify-content:space-between; gap:24px; margin-bottom:28px; }
.section-head h2 { margin:0; font-size: clamp(28px, 3vw, 42px); line-height:1.08; }
.section-head p { margin:0; max-width:620px; color: var(--muted); }
.navy .section-head p { color: rgba(255,255,255,.72); }
.grid-3 { display:grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap:18px; }
.grid-2 { display:grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap:22px; }
.feature { background: var(--panel); border:1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: 0 1px 0 rgba(17,24,39,.02); }
.feature strong { display:block; color: var(--accent); font-size: 13px; text-transform:uppercase; letter-spacing:.1em; margin-bottom:10px; }
.feature h3 { margin:0 0 10px; font-size: 21px; line-height:1.2; }
.feature p { margin:0; color: var(--muted); }
.navy .feature { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); }
.navy .feature p { color: rgba(255,255,255,.72); }
.content-wrap { padding: 62px 0 82px; }
.content-layout { display:grid; grid-template-columns: minmax(0, 780px) minmax(240px, 1fr); gap: 50px; align-items:start; }
.entry-title { margin: 0 0 24px; font-size: clamp(34px, 5vw, 58px); line-height:1.02; }
.entry-content { font-size: 18px; }
.entry-content h1, .entry-content h2, .entry-content h3 { line-height:1.14; margin: 1.5em 0 .55em; }
.entry-content p { margin: 0 0 1.05em; }
.entry-content ul { padding-left: 1.2em; }
.sidebar { position: sticky; top: 96px; background: white; border:1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.sidebar h2 { margin:0 0 12px; font-size:18px; }
.sidebar a { display:block; padding: 8px 0; color: var(--navy); font-weight:650; text-decoration:none; border-top:1px solid #eef1f4; }
.card-grid { display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.post-card { background:white; border:1px solid var(--line); border-radius: var(--radius); overflow:hidden; display:flex; flex-direction:column; min-height:100%; }
.post-card img { width:100%; aspect-ratio: 16 / 9; object-fit: cover; background:#dfe4ea; }
.post-card-body { padding: 18px; }
.post-card time { color: var(--muted); font-size: 13px; font-weight: 700; }
.post-card h3 { margin: 8px 0 8px; font-size: 20px; line-height:1.22; }
.post-card p { color: var(--muted); margin:0; }
.site-footer { background: #0b1220; color: rgba(255,255,255,.76); padding: 46px 0 30px; }
.footer-grid { display:grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; }
.footer-grid h2, .footer-grid h3 { color:white; margin:0 0 12px; font-size: 17px; }
.footer-grid a { display:block; color: rgba(255,255,255,.8); text-decoration:none; margin: 7px 0; }
.footer-bottom { border-top:1px solid rgba(255,255,255,.13); margin-top:32px; padding-top:20px; font-size:13px; display:flex; justify-content:space-between; gap:16px; }
@media (max-width: 900px) {
  .container { width: min(100% - 28px, 1160px); }
  .mobile-menu-button { display:block; }
  .nav-row { position:absolute; left:0; right:0; top:72px; background:white; border-bottom:1px solid var(--line); display:none; padding:12px 14px 18px; align-items:stretch; flex-direction:column; }
  .nav-row.open { display:flex; }
  .primary-nav { display:grid; gap:4px; }
  .lang-switch { border-left:0; padding-left:0; border-top:1px solid var(--line); padding-top:12px; }
  .grid-3, .grid-2, .card-grid, .content-layout, .footer-grid { grid-template-columns:1fr; }
  .hero-inner { min-height: 560px; padding: 72px 0 92px; }
  .section-head { display:block; }
  .section-head p { margin-top:10px; }
  .sidebar { position: static; }
  .footer-bottom { display:block; }
}
.member-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0 32px;
}
.member-list section {
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  background: white;
  padding: 18px;
}
.member-list h3 { margin: 0 0 8px; font-size: 20px; }
.member-list p { margin: 0; color: var(--muted); }
@media (max-width: 760px) { .member-list { grid-template-columns: 1fr; } }