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

:root {
  --primary: #64769E;
  --primary-dark: #4a5878;
  --accent: #FF6B35;
  --bg: #f7f8fb;
  --surface: #ffffff;
  --text: #1a1d24;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --radius: 12px;
  --shadow: 0 4px 16px rgba(0,0,0,.06);
  --shadow-hover: 0 8px 24px rgba(0,0,0,.12);
}

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0);
}

/* ============ HEADER ============ */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex; align-items: center; gap: 24px;
  padding: 16px 20px; flex-wrap: wrap;
}

.main-nav ul { display: flex; gap: 20px; flex-wrap: wrap; }
.main-nav a {
  font-weight: 600; font-size: 0.95rem; color: var(--text-muted);
  transition: color .2s;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] { color: var(--primary); }

.search-form { display: flex; margin-left: auto; gap: 8px; }
.search-form input {
  padding: 8px 14px; border: 1px solid var(--border);
  border-radius: 999px; font-size: 0.9rem; outline: none;
  min-width: 200px; transition: border .2s;
}
.search-form input:focus { border-color: var(--primary); }
.search-form button {
  background: var(--primary); color: #fff; border: none;
  border-radius: 999px; width: 38px; height: 38px;
  cursor: pointer; font-size: 1rem;
}

/* ============ HERO ============ */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff; padding: 64px 0;
}
.hero .badge {
  display: inline-block; background: var(--accent);
  padding: 4px 12px; border-radius: 999px;
  font-size: 0.8rem; font-weight: 700; margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 800; line-height: 1.2; margin-bottom: 16px;
}
.hero-desc { font-size: 1.05rem; opacity: .95; max-width: 680px; margin-bottom: 24px; }
.btn-primary {
  display: inline-block; background: #fff; color: var(--primary-dark);
  padding: 12px 24px; border-radius: 999px;
  font-weight: 700; transition: transform .2s, box-shadow .2s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }

/* ============ MAIN GRID ============ */
.main-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  padding: 40px 20px;
}
@media (max-width: 900px) {
  .main-grid { grid-template-columns: 1fr; }
}

/* ============ SECTION ============ */
.section-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px;
}
.section-header h2 { font-size: 1.4rem; font-weight: 800; }
.see-all { color: var(--primary); font-weight: 600; font-size: 0.9rem; }

/* ============ NEWS GRID ============ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }

.card img {
  width: 100%; height: 180px; object-fit: cover;
  background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
}

.card-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.category {
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  color: var(--accent); letter-spacing: .05em;
}
.card h3 { font-size: 1.05rem; font-weight: 700; line-height: 1.3; }
.card h3 a:hover { color: var(--primary); }
.card p { font-size: 0.9rem; color: var(--text-muted); flex: 1; }
.card time { font-size: 0.8rem; color: var(--text-muted); font-weight: 600; }

/* ============ SIDEBAR ============ */
.sidebar { display: flex; flex-direction: column; gap: 24px; }
.widget {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.widget h2 {
  font-size: 1.1rem; font-weight: 800;
  margin-bottom: 12px; padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}
.widget ul { display: flex; flex-direction: column; gap: 10px; }
.widget a {
  font-size: 0.9rem; color: var(--text-muted);
  transition: color .2s, padding-left .2s;
  display: block;
}
.widget a:hover { color: var(--primary); padding-left: 4px; }

/* ============ FOOTER ============ */
.site-footer {
  background: #1a1d24; color: #cbd5e1;
  padding: 40px 0 20px; margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px; margin-bottom: 32px;
}
.site-footer h3, .site-footer h4 {
  color: #fff; margin-bottom: 12px; font-weight: 700;
}
.site-footer p, .site-footer a { font-size: 0.9rem; color: #94a3b8; }
.site-footer a:hover { color: #fff; }
.site-footer ul { display: flex; flex-direction: column; gap: 8px; }
.copyright {
  border-top: 1px solid #334155;
  padding-top: 20px; text-align: center;
  font-size: 0.85rem; color: #64748b;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 640px) {
  .header-inner { flex-direction: column; align-items: stretch; }
  .search-form { margin-left: 0; }
  .search-form input { min-width: 0; flex: 1; }
  .hero { padding: 40px 0; }
}