:root {
  --primary: #0ea5e9; /* Vibrant Light Blue */
  --primary-hover: #0284c7;
  --secondary: #facc15; /* Bright Yellow */
  --text-dark: #1e293b; /* Slate 800 - Headings */
  --text-body: #334155; /* Slate 700 - Body text */
  --text-muted: #4b5563; /* Gray 600 - Secondary text */
  --bg-light: #ffffff;
  --bg-gray: #f8fafc; /* Slate 50 */
  --accent: #e63946;
  --radius-lg: 24px;
  --radius-md: 12px;
  --shadow:
    0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
  line-height: 1.6;
  color: var(--text-body);
  background-color: var(--bg-gray);
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  background: var(--bg-light);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--text-dark);
  text-decoration: none;
  letter-spacing: -1px;
}

.logo span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--primary);
}

/* Hero Section */
.hero {
  background: white;
  color: var(--text-dark);
  padding: 50px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: transparent;
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 4.5rem;
  margin-bottom: 24px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -2px;
}

.hero h1 span.highlight {
  color: #d97706; /* Warmer, darker orange-yellow for better contrast on white */
  text-shadow: 1px 1px 0px rgba(255, 255, 255, 0.5);
}

.hero p {
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto 40px;
  color: var(--text-dark);
  font-weight: 600;
}

/* Categories */
/* Category Menu */
.category-menu-bar {
  background: white;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 72px; /* Adjust if header height differs */
  z-index: 90;
  margin-bottom: 40px;
  box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.03);
}

.category-menu-inner {
  display: flex;
  overflow-x: auto;
  gap: 32px;
  padding: 0;
  scrollbar-width: none;
  justify-content: center;
}

.category-menu-inner::-webkit-scrollbar {
  display: none;
}

.menu-item {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  padding: 20px 0;
  position: relative;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.menu-item:hover,
.menu-item.active {
  color: var(--primary);
}

.menu-item::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--primary);
  transition: var(--transition);
  border-radius: 3px 3px 0 0;
}

.menu-item:hover::after,
.menu-item.active::after {
  width: 100%;
}

@media (max-width: 768px) {
  .category-menu-bar {
    top: 60px; /* Mobile header might be shorter */
  }
  .category-menu-inner {
    justify-content: flex-start;
    padding: 0 20px;
    gap: 20px;
  }
  .menu-item {
    padding: 15px 0;
    font-size: 0.85rem;
  }
}

.pill {
  padding: 8px 16px;
  background: white;
  border-radius: 50px;
  text-decoration: none;
  color: var(--text-body);
  font-weight: 500;
  font-size: 0.9rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.pill:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

/* Post Grid */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
  margin-top: 50px;
}

.post-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
}

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

.post-content {
  padding: 32px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.post-category {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(14, 165, 233, 0.1);
  padding: 4px 12px;
  border-radius: 100px;
  font-weight: 700;
  margin-bottom: 16px;
  width: fit-content;
}

.post-card h3 {
  margin-bottom: 12px;
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1.3;
}

.post-card a {
  text-decoration: none;
  color: var(--text-dark);
  transition: var(--transition);
}

.post-card a:hover {
  color: var(--primary);
}

.post-card p {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.6;
}

.read-more {
  margin-top: auto;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Single Post */
.post-header {
  max-width: 800px;
  margin: 40px auto;
  text-align: center;
}

.post-body {
  max-width: 800px;
  margin: 0 auto 60px;
  background: white;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  color: var(--text-body);
}

.post-body h2,
.post-body h3 {
  color: var(--text-dark);
  margin: 30px 0 15px;
}

.post-body p {
  margin-bottom: 20px;
}

.post-body ol,
.post-body ul {
  margin: 20px 20px;
}

/* Footer */
footer {
  background: #1a1a1a;
  color: white;
  padding: 40px 0;
  margin-top: 60px;
  text-align: center;
}

footer p {
  opacity: 0.7;
  font-size: 0.9rem;
}

/* Mobile Navigation */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1000;
  padding: 0;
}

.menu-toggle span {
  width: 100%;
  height: 3px;
  background-color: var(--primary);
  border-radius: 10px;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

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

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: white;
    flex-direction: column;
    padding: 100px 40px;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    z-index: 999;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links li {
    margin-bottom: 25px;
  }

  .nav-links a {
    font-size: 1.2rem;
    font-weight: 600;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero {
    padding: 40px 0;
  }

  .hero p {
    font-size: 1rem;
    padding: 0 10px;
  }
}
