:root {
  --bg: #f8fafc;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --accent: #6366f1;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* CONTAINER */
.container {
  max-width: 1100px;
  margin: auto;
  padding: 20px;
}

/* HEADER */
.header {
  position: sticky;
  top: 0;
  background: white;
  border-bottom: 1px solid #e5e7eb;
  z-index: 1000;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 700;
  font-size: 20px;
}

/* NAV */
.nav-links a {
  margin-left: 20px;
  color: var(--muted);
}

.nav-links a:hover {
  color: var(--text);
}

/* MOBILE MENU BUTTON */
#menuBtn {
  display: none;
  font-size: 22px;
  background: none;
  border: none;
  cursor: pointer;
}

/* MOBILE MENU */
.mobile-menu {
  position: absolute;
  top: 70px;
  left: 0;
  width: 100%;
  background: white;
  border-bottom: 1px solid #e5e7eb;

  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 15px 20px;

  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: 0.3s ease;
}

.mobile-menu.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.mobile-menu a {
  padding: 12px;
  border-radius: 10px;
  font-weight: 500;
  color: #374151;
}

.mobile-menu a:hover {
  background: #f1f5f9;
}

/* HERO */
.hero img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: 18px;
}

.hero-content {
  max-width: 700px;
  margin-top: 20px;
}

.hero-content span {
  color: var(--accent);
  font-weight: 600;
  font-size: 12px;
}

.hero-content h1 {
  font-size: 38px;
  margin: 10px 0;
}

.hero-content p {
  color: var(--muted);
}

/* POSTS */
.posts {
  margin-top: 50px;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

/* CARD */
.card {
  position: relative;
  background: var(--card);
  border-radius: 16px;
  padding: 10px;
  display: flex;
  gap: 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  transition: 0.2s;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.card img {
  width: 220px;
  height: 150px;
  border-radius: 12px;
  object-fit: cover;
}

/* CLICKABLE */
.card-link {
  position: absolute;
  inset: 0;
  z-index: 5;
}

/* TEXT */
.card-content span {
  color: var(--accent);
  font-size: 12px;
}

.card-content h3 {
  margin: 6px 0;
}

.card-content p {
  color: var(--muted);
  font-size: 14px;
}

/* FOOTER */
.footer {
  margin-top: 60px;
  padding: 30px;
  text-align: center;
  color: var(--muted);
}

/* MOBILE */
@media(max-width:768px) {

  .nav-links {
    display: none;
  }

  #menuBtn {
    display: block;
  }

  .card {
    flex-direction: column;
  }

  .card img {
    width: 100%;
  }
}

/* ARTICLE PAGE */
.article-page {
  max-width: 900px;
  margin: auto;
}

/* HERO */
.article-hero {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 40px;
}

.article-hero img {
  width: 100%;
  height: 65vh;
  object-fit: cover;
  transition: 0.4s;
}

.article-hero:hover img {
  transform: scale(1.05);
}

.article-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65), transparent);
}

.article-hero-content {
  position: absolute;
  bottom: 30px;
  left: 30px;
  color: white;
  max-width: 700px;
}

/* CATEGORY */
.category-pill {
  background: #6366f1;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  text-transform: uppercase;
}

/* TITLE */
.article-hero-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 10px 0;
}

/* META */
.article-meta {
  font-size: 14px;
  opacity: 0.9;
}

/* CONTENT BOX */
.article-content-wrapper {
  background: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

/* TEXT */
.article-wrapper p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #334155;
}

/* HEADINGS */
.article-wrapper h2 {
  margin-top: 35px;
  font-size: 1.8rem;
}

/* BACK TO TOP */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: #6366f1;
  color: white;
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
}

/* MOBILE */
@media(max-width:768px) {

  .article-hero img {
    height: 45vh;
  }

  .article-content-wrapper {
    padding: 20px;
  }

  .article-hero-content h1 {
    font-size: 1.8rem;
  }
}