:root {
  --navy: #1b2a4a;
  --navy-light: #274070;
  --accent: #c0392b;
  --accent-2: #0f7a8c;
  --bg: #f6f5f1;
  --card-bg: #ffffff;
  --text: #232323;
  --muted: #6b6f76;
  --border: #e5e2da;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

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

img { max-width: 100%; display: block; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 18px;
}

/* ---------- Top utility bar ---------- */
.topbar {
  background: var(--navy);
  color: #cfd6e6;
  font-size: 13px;
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 34px;
  flex-wrap: wrap;
}
.topbar .date-line { opacity: 0.85; display: flex; align-items: center; gap: 5px; }
.topbar .clock-sep { opacity: 0.5; }
.topbar .tz-label { opacity: 0.6; font-size: 11px; display: none; }
@media (min-width: 480px) {
  .topbar .tz-label { display: inline; }
}
.topbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.weather-widget {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 3px;
  background: rgba(255,255,255,0.08);
  font-size: 12.5px;
  white-space: nowrap;
}
.weather-widget .weather-icon { font-size: 14px; line-height: 1; }
.weather-widget .weather-temp { font-weight: 700; color: #fff; }
.weather-widget .weather-label { opacity: 0.85; display: none; }
.weather-widget .weather-range { opacity: 0.65; font-size: 11.5px; }
@media (min-width: 560px) {
  .weather-widget .weather-label { display: inline; }
}
@media (max-width: 480px) {
  .topbar .container { height: auto; padding-top: 6px; padding-bottom: 6px; }
}
.lang-switch { display: flex; gap: 4px; }
.lang-switch a {
  padding: 3px 8px;
  border-radius: 3px;
  color: #cfd6e6;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.lang-switch a.active, .lang-switch a:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
  text-decoration: none;
}

/* ---------- Header ---------- */
header.site-header {
  background: #fff;
  border-bottom: 3px solid var(--navy);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0 10px;
  flex-wrap: wrap;
  gap: 10px;
}
.brand {
  display: flex;
  flex-direction: column;
}
.brand .logo {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 34px;
  letter-spacing: 0.5px;
  color: var(--navy);
}
.brand .logo span { color: var(--accent); }
.brand .tagline {
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: 0.3px;
}

.search-form {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  background: #fafaf8;
}
.search-form input[type="text"] {
  border: none;
  background: transparent;
  padding: 9px 10px;
  font-size: 14px;
  width: 190px;
  outline: none;
  font-family: var(--sans);
}
.search-form button {
  border: none;
  background: var(--navy);
  color: #fff;
  padding: 9px 14px;
  cursor: pointer;
  font-size: 14px;
}
.search-form button:hover { background: var(--navy-light); }

/* ---------- Nav ---------- */
nav.main-nav {
  background: var(--navy);
}
nav.main-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}
nav.main-nav a {
  display: block;
  padding: 12px 16px;
  color: #e9ecf3;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
nav.main-nav a:hover, nav.main-nav a.active {
  background: var(--navy-light);
  text-decoration: none;
}

/* ---------- Layout ---------- */
main { padding: 26px 0 50px; }

h1.page-title {
  font-family: var(--serif);
  font-size: 28px;
  color: var(--navy);
  margin: 0 0 20px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 10px;
}

.section-heading {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--navy);
  margin: 34px 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.section-heading a.view-all {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent-2);
  text-transform: uppercase;
}

/* ---------- Hero (featured latest article) ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 10px;
}
.hero img { width: 100%; height: 100%; object-fit: cover; min-height: 260px; }
.hero-content { padding: 20px 22px 20px 0; display: flex; flex-direction: column; justify-content: center; }
.hero .cat-tag { order: -1; }
.hero-content h2 {
  font-family: var(--serif);
  font-size: 26px;
  margin: 8px 0 10px;
  color: var(--navy);
}
.hero-content p.excerpt { color: var(--muted); font-size: 15px; margin: 0 0 12px; }
.hero-content .meta { font-size: 12.5px; color: var(--muted); }

@media (max-width: 720px) {
  .hero { grid-template-columns: 1fr; }
  .hero-content { padding: 16px; }
}

/* ---------- Category tag ---------- */
.cat-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #fff;
  background: var(--accent-2);
  padding: 3px 9px;
  border-radius: 3px;
}
.cat-tag.politics { background: #4a6fa5; }
.cat-tag.economy  { background: #2f9e7f; }
.cat-tag.tourism  { background: #3fc1c9; color: #063a41; }
.cat-tag.culture  { background: #a35bb0; }
.cat-tag.society  { background: #d67d3e; }
.cat-tag.sports   { background: #4caf50; }

/* ---------- Article grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card .thumb { aspect-ratio: 16/9; overflow: hidden; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card .card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 {
  font-family: var(--serif);
  font-size: 17px;
  margin: 4px 0 0;
  color: var(--navy);
  line-height: 1.3;
}
.card p.excerpt { font-size: 13.5px; color: var(--muted); margin: 0; flex: 1; }
.card .meta { font-size: 11.5px; color: #9a9d a3; color: #9a9da3; }

/* ---------- Sidebar / category list widget ---------- */
.layout-with-sidebar {
  display: grid;
  grid-template-columns: 2.3fr 1fr;
  gap: 26px;
}
@media (max-width: 860px) { .layout-with-sidebar { grid-template-columns: 1fr; } }

.sidebar .widget {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 20px;
}
.sidebar .widget h4 {
  font-family: var(--serif);
  color: var(--navy);
  margin: 0 0 12px;
  font-size: 16px;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 8px;
}
.sidebar .widget ul { list-style: none; margin: 0; padding: 0; }
.sidebar .widget ul li { margin-bottom: 9px; }
.sidebar .widget ul li a { font-size: 14px; font-weight: 600; color: var(--navy-light); }
.sidebar .widget ul li a:hover { color: var(--accent); }

/* ---------- Article page ---------- */
.article-header { margin-bottom: 16px; }
.article-header h1 {
  font-family: var(--serif);
  font-size: 30px;
  color: var(--navy);
  margin: 10px 0 8px;
  line-height: 1.25;
}
.article-meta { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.article-hero-img { border-radius: 6px; overflow: hidden; margin-bottom: 18px; }
.photo-credit {
  font-size: 11.5px;
  color: var(--muted);
  text-align: right;
  margin: 6px 2px 0;
  border-radius: 0;
}
.photo-credit a { color: var(--muted); text-decoration: underline; }
.article-excerpt { font-size: 17px; color: #444; font-style: italic; border-left: 3px solid var(--accent); padding-left: 14px; margin: 0 0 18px; }
.article-body { font-size: 16.5px; color: var(--text); max-width: 760px; }
.article-body p { margin: 0 0 16px; }

/* ---------- Share buttons ---------- */
.share-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0;
  flex-wrap: wrap;
}
.share-label {
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--muted);
  margin-right: 2px;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f1efe9;
  color: var(--navy);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, transform 0.1s;
}
.share-btn:hover { transform: translateY(-1px); text-decoration: none; }
.share-fb:hover { background: #1877f2; color: #fff; border-color: #1877f2; }
.share-x:hover { background: #000; color: #fff; border-color: #000; }
.share-wa:hover { background: #25d366; color: #fff; border-color: #25d366; }
.share-viber:hover { background: #7360f2; color: #fff; border-color: #7360f2; }
.share-email:hover { background: var(--accent-2); color: #fff; border-color: var(--accent-2); }
.share-copy:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.share-copy.share-copied { background: #2f9e7f; color: #fff; border-color: #2f9e7f; }
.share-note {
  font-size: 12px;
  color: var(--muted);
  margin: -8px 0 18px;
  max-width: 560px;
}

/* ---------- Pagination-ish "more news" list ---------- */
.list-row {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.list-row .thumb { width: 130px; min-width: 130px; aspect-ratio: 16/10; border-radius: 4px; overflow: hidden; }
.list-row .thumb img { width: 100%; height: 100%; object-fit: cover; }
.list-row .info h3 { margin: 4px 0 6px; font-family: var(--serif); font-size: 16.5px; color: var(--navy); }
.list-row .info p { margin: 0; font-size: 13.5px; color: var(--muted); }

/* ---------- Static pages ---------- */
.static-page { max-width: 780px; }
.static-page p { margin: 0 0 15px; font-size: 16px; }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--navy);
  color: #c6cde0;
  margin-top: 40px;
  padding: 32px 0 20px;
  font-size: 13.5px;
}
footer.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 20px;
}
footer.site-footer h5 {
  color: #fff;
  font-family: var(--serif);
  font-size: 15px;
  margin: 0 0 12px;
}
footer.site-footer ul { list-style: none; margin: 0; padding: 0; }
footer.site-footer ul li { margin-bottom: 7px; }
footer.site-footer a { color: #c6cde0; }
footer.site-footer a:hover { color: #fff; }
footer.site-footer .bottom-line {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 14px;
  text-align: center;
  color: #9aa3bd;
  font-size: 12px;
}
@media (max-width: 700px) {
  footer.site-footer .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Cookie notice ---------- */
.cookie-notice {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--navy);
  color: #dbe1f0;
  z-index: 200;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.25);
}
.cookie-notice-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 18px;
  flex-wrap: wrap;
}
.cookie-notice-inner p { margin: 0; font-size: 13.5px; }
.cookie-notice-inner a { color: #8fb4ff; text-decoration: underline; }
.cookie-notice-inner button {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 8px 18px;
  border-radius: 4px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.cookie-notice-inner button:hover { background: #a5301f; }
