:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-soft: #f0f3f8;
  --text: #0f172a;
  --muted: #475569;
  --accent: #1f4acc;
  --accent-2: #18a0fb;
  --border: rgba(15, 23, 42, 0.12);
  --shadow: 0 16px 28px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Barlow", "Noto Sans SC", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f5f7fb 0%, #ffffff 40%, #f5f7fb 100%);
  min-height: 100vh;
}

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

a:hover {
  color: var(--accent);
}

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

h1,
h2,
h3 {
  font-family: "Bebas Neue", "Barlow", sans-serif;
  letter-spacing: 0.6px;
}

h2 {
  margin: 0 0 16px;
  font-size: clamp(1.7rem, 2.6vw, 2.3rem);
}

.meta {
  color: var(--muted);
  font-size: 0.95rem;
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Bebas Neue", "Barlow", sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.8px;
}

.brand-badge {
  width: 54px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #ffffff;
  text-transform: uppercase;
}

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

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

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

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

.site-hero {
  position: relative;
  min-height: 340px;
  background: url("https://loremflickr.com/1600/900/sports") center/cover no-repeat;
}

.site-hero .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(7, 14, 30, 0.65), rgba(7, 14, 30, 0.35));
}

.site-hero::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(135deg, rgba(31, 74, 204, 0.65), rgba(24, 160, 251, 0.25));
  clip-path: polygon(20% 0, 100% 0, 100% 100%, 0 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 72px 0 48px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 16px;
  color: #ffffff;
  max-width: 1000px;
}

.hero-inner > :not(.hero-panel) {
  grid-column: 1;
}

.hero-inner h1 {
  font-size: clamp(2.4rem, 4.2vw, 3.2rem);
  margin: 0;
}

.hero-inner p {
  margin: 0;
  color: rgba(248, 250, 252, 0.9);
  line-height: 1.7;
}

.hero-panel {
  display: grid;
  gap: 14px;
  align-content: start;
  grid-column: 2;
  grid-row: 1 / -1;
  align-self: center;
}

.hero-card {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 14px;
  padding: 16px;
  backdrop-filter: blur(8px);
  box-shadow: 0 16px 28px rgba(7, 14, 30, 0.18);
}

.hero-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  color: #ffffff;
}

.hero-card p {
  margin: 0;
  color: rgba(248, 250, 252, 0.9);
}

.hero-card ul {
  margin: 0;
  padding-left: 18px;
  color: rgba(248, 250, 252, 0.9);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.tag {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  width: fit-content;
}

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

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

.btn-primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #ffffff;
  box-shadow: 0 14px 24px rgba(31, 74, 204, 0.2);
}

.btn-secondary {
  border-color: rgba(255, 255, 255, 0.6);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}

.section {
  padding: 72px 0;
  border-top: 1px solid var(--border);
}

.section:nth-of-type(even) {
  background: var(--surface-soft);
}

.section-title {
  display: grid;
  gap: 8px;
  margin-bottom: 32px;
  padding-left: 16px;
  border-left: 4px solid var(--accent);
}

.section-title p {
  margin: 0;
  color: var(--muted);
  max-width: 720px;
  line-height: 1.7;
}

.bento-grid,
.mini-grid,
.card-grid,
.info-grid,
.post-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.timeline {
  position: relative;
  display: grid;
  gap: 20px;
  padding-left: 32px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), rgba(31, 74, 204, 0.2));
}

.timeline-item {
  position: relative;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -22px;
  top: 24px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(31, 74, 204, 0.12);
}

.timeline-item .card {
  margin-left: 6px;
}

.card,
.info-card,
.post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 14px;
}

.card h3,
.info-card h3 {
  margin: 0;
}

.card p,
.info-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.mini-card {
  min-height: 160px;
}

.mini-card h3 {
  font-size: 1rem;
  margin: 0;
}

.mini-card p {
  font-size: 0.85rem;
  line-height: 1.6;
  margin: 0;
  color: var(--muted);
}

.info-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
}

.stat-list {
  display: grid;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--muted);
}

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

.site-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 20px;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.filter-chip.active,
.filter-chip:hover {
  color: var(--text);
  border-color: var(--accent);
  background: rgba(31, 74, 204, 0.08);
}

.result-info {
  color: var(--muted);
  font-size: 0.95rem;
}

.post-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 16px;
}

.post-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 12px;
}

.post-body {
  display: grid;
  gap: 8px;
  align-content: start;
}

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

.pagination {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}

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

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

.post-header {
  display: grid;
  gap: 8px;
}

.post-header .meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.post-hero {
  margin: 16px 0 8px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.prose {
  display: grid;
  gap: 16px;
  line-height: 1.85;
  color: var(--muted);
}

.prose h2,
.prose h3 {
  margin-bottom: 4px;
  color: var(--text);
}

.prose ul,
.prose ol {
  margin: 0;
  padding-left: 20px;
}

.prose blockquote {
  margin: 0;
  padding: 12px 16px;
  border-left: 4px solid var(--accent);
  background: rgba(31, 74, 204, 0.08);
  color: var(--text);
  border-radius: 8px;
}

.post-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.post-nav a,
.post-nav span {
  border-radius: 999px;
  border: 1px solid var(--border);
  padding: 10px 14px;
  text-align: center;
  color: var(--muted);
  background: #ffffff;
}

.post-nav a:hover {
  color: var(--text);
  border-color: var(--accent);
}

.post-nav .disabled {
  opacity: 0.5;
  pointer-events: none;
}

form {
  display: grid;
  gap: 12px;
}

input,
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--text);
}

footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 60px;
  color: var(--muted);
  background: #ffffff;
}

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

@media (max-width: 980px) {
  .bento-grid,
  .mini-grid,
  .card-grid,
  .info-grid,
  .post-list {
    grid-template-columns: 1fr;
  }

  .post-card {
    grid-template-columns: 1fr;
  }

  .timeline {
    padding-left: 24px;
  }

  .timeline-item::before {
    left: -18px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    max-width: 720px;
  }

  .hero-panel {
    grid-column: 1;
    grid-row: auto;
  }

  .site-hero::after {
    width: 60%;
  }
}

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

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

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

  .site-hero {
    min-height: 220px;
  }
}
