:root {
  --bg: #0b1020;
  --bg-muted: #121a32;
  --bg-card: #161f3b;
  --text: #e5e7eb;
  --text-muted: #94a3b8;
  --accent: #3b82f6;
  --accent-2: #22d3ee;
  --border: rgba(148, 163, 184, 0.2);
  --shadow: 0 20px 60px rgba(4, 8, 20, 0.5);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top, #1a2447 0%, #0b1020 45%, #090c1b 100%);
  min-height: 100vh;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(9, 12, 27, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.brand-badge {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #020617;
}

.nav-links {
  display: flex;
  gap: 22px;
  align-items: center;
}

.nav-links a {
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  color: var(--text);
  font-size: 1.1rem;
}

.hero {
  position: relative;
  padding: 110px 0 90px;
  background: url("https://loremflickr.com/1600/900/stadium") center/cover;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(4, 8, 20, 0.9) 30%, rgba(15, 23, 42, 0.5) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 28px;
  max-width: 650px;
  animation: rise 0.8s ease-out both;
}

.hero h1 {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: clamp(2.6rem, 4vw, 3.6rem);
  margin: 0;
}

.hero p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  letter-spacing: 0.2px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: linear-gradient(130deg, var(--accent), var(--accent-2));
  color: #0f172a;
  box-shadow: 0 12px 30px rgba(59, 130, 246, 0.35);
}

.btn-secondary {
  border-color: var(--border);
  color: var(--text);
}

.btn:hover {
  transform: translateY(-2px);
}

.section {
  padding: 80px 0;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
}

.section-title h2 {
  margin: 0;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.section-title p {
  color: var(--text-muted);
  max-width: 520px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 18px;
  animation: rise 0.8s ease-out both;
}

.card h3 {
  margin: 0;
}

.card p {
  margin: 0;
  color: var(--text-muted);
}

.stat-bar {
  display: grid;
  gap: 12px;
}

.stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.stat span {
  color: var(--text);
  font-weight: 600;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.post-card {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  display: grid;
  gap: 16px;
  padding-bottom: 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: rise 0.8s ease-out both;
}

.card-grid .card:nth-child(1),
.post-grid .post-card:nth-child(1) {
  animation-delay: 0.05s;
}

.card-grid .card:nth-child(2),
.post-grid .post-card:nth-child(2) {
  animation-delay: 0.12s;
}

.card-grid .card:nth-child(3),
.post-grid .post-card:nth-child(3) {
  animation-delay: 0.18s;
}

.card-grid .card:nth-child(4),
.post-grid .post-card:nth-child(4) {
  animation-delay: 0.24s;
}

.card-grid .card:nth-child(5),
.post-grid .post-card:nth-child(5) {
  animation-delay: 0.3s;
}

.card-grid .card:nth-child(6),
.post-grid .post-card:nth-child(6) {
  animation-delay: 0.36s;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(4, 8, 20, 0.6);
}

.post-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.post-card .post-body {
  padding: 0 18px;
  display: grid;
  gap: 10px;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.tag {
  padding: 4px 10px;
  background: rgba(59, 130, 246, 0.2);
  color: #bfdbfe;
  border-radius: 999px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.filter-btn {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn.active,
.filter-btn:hover {
  color: var(--text);
  border-color: var(--accent);
}

.pagination {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.pagination button {
  border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  padding: 8px 12px;
  cursor: pointer;
}

.pagination button.active {
  color: var(--text);
  border-color: var(--accent);
}

.detail-hero {
  padding: 90px 0 60px;
  background: var(--bg-muted);
}

.detail-hero h1 {
  margin: 0 0 16px;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
}

.detail-content {
  display: grid;
  gap: 28px;
  line-height: 1.8;
}

.detail-content h3 {
  margin-bottom: 8px;
}

.detail-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}

.detail-nav a {
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
}

footer {
  padding: 40px 0 60px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
}

.footer-grid h4 {
  margin: 0 0 12px;
  color: var(--text);
}

.newsletter {
  display: grid;
  gap: 12px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(34, 211, 238, 0.08));
  padding: 24px;
  border-radius: 18px;
  border: 1px solid var(--border);
}

input,
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.6);
  color: var(--text);
}

form button {
  width: 100%;
  margin-top: 10px;
}

@media (max-width: 900px) {
  .section-title {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    right: 4vw;
    top: 70px;
    background: var(--bg-card);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 20px;
    border-radius: 14px;
    border: 1px solid var(--border);
    display: none;
    min-width: 200px;
  }

  .nav-links.open {
    display: flex;
  }

  .hero {
    padding: 80px 0;
  }
}

@media (max-width: 600px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .detail-nav {
    flex-direction: column;
  }
}
