:root {
  --bg: #f2f4f8;
  --panel: #ffffff;
  --text: #0e1220;
  --muted: #556079;
  --accent: #00a2ff;
  --accent-2: #ff6b35;
  --shadow: 0 18px 48px rgba(10, 18, 38, 0.16);
  --radius: 16px;
  --font: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #000;
  color: #fff;
  font-family: var(--font);
  line-height: 1.6;
}

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

.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: #0a0c12;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.brand {
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

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

.nav-links {
  display: flex;
  gap: 12px;
  font-weight: 700;
}

.nav-links a {
  padding: 9px 14px;
  border-radius: 12px;
  color: #fff;
  transition: 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  /* background: rgba(255, 255, 255, 0.1); */
}

.nav-actions {
  display: flex;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(130deg, var(--accent), #6cd3ff);
  color: #041019;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(0, 162, 255, 0.35);
  transition: 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(0, 162, 255, 0.45);
}

.btn.slim {
  padding: 10px 14px;
  font-size: 14px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 3px;
  background: #fff;
  border-radius: 6px;
}

.content {
  /* padding: 0 0 40px; */
}

.page-container {
  max-width: 1220px;
  margin: 0 auto;
  padding: 24px 22px 0;
}

.main-title {
  margin: 0 0 18px;
  font-size: 44px;
  font-weight: 800;
  color: #ad4805;
}

.featured-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  grid-auto-rows: 240px;
  gap: 18px;
}

.feature-card {
  position: relative;
  border-radius: var(--radius);
  border: 2px solid #fff;
  overflow: hidden;
  background: #0f141f;
  color: #f7f9fc;
  box-shadow: var(--shadow);
}

.feature-card.tall {
  grid-row: span 2;
}

.feature-card:hover,
.story-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(10, 18, 38, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-media,
.story-media {
  position: absolute;
  inset: 0;
}

.card-media img,
.story-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  filter: blur(1.2px) brightness(0.75) saturate(0.92);
}

.card-overlay {
  position: absolute;
  inset: 0;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(180deg, rgba(8, 12, 20, 0.1) 0%, rgba(8, 12, 20, 0.65) 65%, rgba(8, 12, 20, 0.8) 100%);
  gap: 8px;
}

.card-overlay h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.3;
}

.card-overlay p {
  margin: 0;
  color: #e9edf6;
  font-size: 14px;
}

.card-meta {
  font-size: 12px;
  color: #000;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  width: fit-content;
}

.badge-blue {
  background: linear-gradient(120deg, #4da8ff, #0066ff);
  color: #041019;
  border: none;
}

.badge-sky {
  background: linear-gradient(120deg, #7ff0ff, #00b1d8);
  color: #041019;
  border: none;
}

.badge-gold {
  background: linear-gradient(120deg, #ffd166, #ff9f1c);
  color: #321300;
  border: none;
}

.story-section {
  margin: 28px 0 10px;
  display: grid;
  grid-template-columns: minmax(0, 2fr) 340px;
  gap: 22px;
  align-items: start;
  grid-auto-rows: auto;
}

.story-section .article-card {
  grid-column: 1;
}

.story-section .sidebar-stack {
  grid-column: 2;
  grid-row: 1 / -1;
}

.story-section .feed {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.story-section .feed-text {
  max-width: 780px;
  margin: 0 auto;
}

.story-section .feed .sidebar-stack {
  order: 1;
}

.story-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  min-height: 420px;
  background: #0f141f;
  /* box-shadow: var(--shadow); */
  border: 2px solid #fff;
  color: #f7f9fc;
}

.story-content {
  position: absolute;
  left: 30px;
  right: 30px;
  bottom: 24px;
  background: #ffffff63;
  color: var(--text);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 16px 40px rgba(10, 18, 38, 0.22);
  display: grid;
  gap: 8px;
}

.story-content h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.35;
}

.story-content p {
  margin: 0;
  color: #000;
  font-size: 15px;
}

.sidebar-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: sticky;
  top: 90px;
}

.author-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  background: var(--panel);
  border-radius: 14px;
  padding: 16px;
  border: 1px solid rgba(10, 18, 38, 0.08);
  box-shadow: 0 12px 26px rgba(10, 18, 38, 0.12);
}

.author-avatar {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ff7a3c, #ffaf5f);
  color: #0f141f;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 20px;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  color: #7a849b;
}

.muted {
  margin: 8px 0 12px;
  color: var(--muted);
}

.popular-card {
  color: #000;
  background: linear-gradient(120deg, #7ff0ff, #00b1d8);
  border-radius: 14px;
  padding: 16px;
  border: 1px solid rgba(10, 18, 38, 0.08);
  box-shadow: 0 12px 26px rgba(10, 18, 38, 0.12);
}

.popular-title {
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 10px;
}

.popular-list {
  display: grid;
  gap: 10px;
}

.popular-item {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border-radius: 12px;
  transition: 0.2s ease;
}

.popular-item:hover {
  background: rgba(0, 0, 0, 0.03);
}

.popular-thumb {
  width: 100%;
  height: 70px;
  border-radius: 12px;
  overflow: hidden;
  background: #e5e9f1;
}

.popular-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.popular-name {
  margin: 0 0 4px;
  font-weight: 700;
  line-height: 1.3;
}

.popular-meta {
  font-size: 12px;
  color: var(--muted);
}

footer {
  padding: 18px;
  text-align: center;
  color: #7a849b;
  border-top: 1px solid rgba(10, 18, 38, 0.08);
  background: #0a0c12;
  margin-top: 28px;
}

@media (max-width: 1100px) {
  .featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 220px;
  }

  .feature-card.tall {
    grid-row: span 1;
  }

  .story-section {
    grid-template-columns: 1fr;
  }

  .story-section .article-card,
  .story-section .sidebar-stack {
    grid-column: auto;
    grid-row: auto;
  }

  .story-section .feed {
    grid-template-columns: 1fr;
  }

  .story-section .feed .sidebar-stack {
    order: -1;
  }
}

@media (max-width: 760px) {
  .topbar {
    padding: 12px 16px;
  }

  .nav {
    position: absolute;
    top: 66px;
    left: 16px;
    right: 16px;
    background: #0a0c12;
    padding: 14px;
    border-radius: 12px;
    flex-direction: column;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
    display: none;
  }

  .nav.open {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
  }

  .nav-links a {
    width: 100%;
  }

  .nav-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .nav-toggle {
    display: flex;
  }

  .featured-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
  }

  .story-card {
    min-height: 340px;
  }

  .story-content {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }
  .main-title{
    font-size: 22px;
  }
}

.feed{
  max-width: 1400px;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  padding: 10px;
}
.feed-text{
  /* max-width: 600px; */
  margin: 0 auto;
}
.feed h1{
 font-size: 25px;
 margin: 0 10px 10px;
}


  .flex-box{
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: column;
    gap: 20px;
    @media (min-width: 768px) {
    
        flex-direction: row;
      }
  }


  .img-box {
  width: 100%;
  height: auto;
  overflow: hidden;
  margin: 0px auto 15px auto;
}

.img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}



.button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 1.5px;
  padding: 15px 10px;
  background: linear-gradient(130deg, var(--accent), #6cd3ff);
  border-radius: 0.75rem;
  transition: all 0.12s ease;
  max-width: 360px;
  height: 60px;
  color: #d3d3d5;
  margin: 20px auto;
  border: 1px solid rgba(255, 122, 60, 0.32);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.14);
}

.button:hover {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  transform: translateY(-2px);
}

.button:active {
  letter-spacing: 1px;
  transform: translateY(4px);
  background: linear-gradient(135deg, var(--accent-2), var(--accent-3));
}