

/* ======================= HEADER ======================= */

.header {
  background: var(--light);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  max-width: 1200px;
  margin: auto;
  padding: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 55px;
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav a {
  font-weight: 600;
  color: var(--primary);
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent);
  transition: 0.3s;
}

.nav a:hover::after {
  width: 100%;
}

/* MOBILE MENU */
.menu-btn {
  display: none;
  font-size: 1.6rem;
  cursor: pointer;
}

/* ======================= HERO ======================= */

.blog-hero {
  background: linear-gradient(135deg, #0b3b66, #1f6fba);
  padding: 5rem 1.5rem;
  color: white;
  text-align: center;
}

.blog-hero h1 {
  font-size: 2.6rem;
  margin-bottom: 0.7rem;
}

.blog-hero p {
  max-width: 680px;
  margin: auto;
  opacity: 0.95;
}

/* ======================= BLOG GRID ======================= */

.blog-container {
  max-width: 1200px;
  margin: auto;
  padding: 4rem 1rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.2rem;
}

.blog-card {
  background: var(--light);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 15px 25px rgba(0,0,0,0.05);
  transition: 0.3s;
}

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

.blog-card-content {
  padding: 1.5rem;
}

.blog-card h2 {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
  color: var(--primary);
}

.blog-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* BUTTON */
.read-more {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.7rem 1.4rem;
  background: var(--primary);
  color: white;
  border-radius: 6px;
  font-size: 0.9rem;
  transition: 0.2s;
}

.read-more:hover {
  background: var(--accent);
}

/* ======================= SINGLE POST ======================= */

.post-wrapper {
  max-width: 900px;
  margin: 4rem auto;
  background: var(--light);
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: 0 15px 25px rgba(0,0,0,0.05);
}

.post-wrapper h1 {
  color: var(--primary);
  margin-bottom: 1rem;
}

.post-wrapper .meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.post-wrapper p {
  margin: 1rem 0;
  color: #333;
}

/* ======================= CTA ======================= */

.blog-cta {
  margin-top: 3rem;
  background: var(--primary);
  color: white;
  padding: 2.3rem;
  border-radius: var(--radius);
  text-align: center;
}

.blog-cta a {
  display: inline-block;
  margin-top: 1rem;
  background: white;
  color: var(--primary);
  padding: 0.8rem 1.5rem;
  font-weight: 600;
  border-radius: 6px;
}


/* ======================= RESPONSIVE ======================= */

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

  .nav {
    display: none;
    flex-direction: column;
    position: absolute;
    background: white;
    width: 100%;
    left: 0;
    top: 80px;
    border-bottom: 1px solid var(--border);
  }

  .nav.active {
    display: flex;
  }

  .nav a {
    padding: 1rem;
    border-top: 1px solid var(--border);
  }

  .blog-hero h1 {
    font-size: 1.9rem;
  }

  .post-wrapper {
    padding: 1.5rem;
    margin: 2rem 1rem;
  }
}

@media(min-width: 768px){
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media(min-width: 1100px){
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
