/* =========================
   BLOG LAYOUT
========================= */

.blog-wrap{
  max-width: 1100px;
  margin: 0 auto;
}

.blog-hero{
  align-items: center;
  gap: 20px;
}

.blog-hero-left{
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1 1 auto;
  min-width: 280px;
}

.blog-hero-right{
  flex: 0 0 auto;
}

.blog-hero-img{
  width: 220px;
  height: auto;
  display: block;
  border-radius: 8px;
  opacity: 0.95;
}

.blog-hero-left #header-logo{
  max-width: 280px;
  width: 100%;
  height: auto;
  flex: 0 0 auto;
}

.blog-hero-left #intro{
  flex: 1 1 auto;
  min-width: 260px;
}

.blog-hero-actions{
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* =========================
   BLOG BUTTONS
========================= */

.blog-cta{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  background: #2e7d32;
  color: #fff;
}

.blog-cta:hover{
  filter: brightness(0.95);
}

.blog-cta-outline{
  background: transparent;
  border: 2px solid #b33a2d;
  color: #b33a2d;
}

.blog-cta-outline:hover{
  background: #b33a2d;
  color: #fff;
}

/* =========================
   BLOG TOOLS
========================= */

.blog-tools{
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 18px;
}

.blog-search{
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px 12px;
}

.blog-search input{
  border: none;
  outline: none;
  width: 100%;
  font-size: 16px;
}

.blog-filters{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.blog-chip{
  cursor: pointer;
  border: 1px solid #b33a2d;
  background: #b33a2d;
  color: #fff;
  padding: 8px 10px;
  border-radius: 999px;
  font-weight: 700;
}

.blog-chip.is-active{
  border-color: #2e7d32;
  background: #2e7d32;
  color: #fff;
}

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

.blog-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.blog-card{
  background: #fff;
  border: 1px solid #e3e3e3;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.blog-card-link{
  display: block;
  padding: 14px;
  color: inherit;
  text-decoration: none;
}

.blog-card-top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.blog-tag{
  display: inline-block;
  font-weight: 800;
  color: #2e7d32;
}

.blog-date{
  color: #666;
  font-size: 14px;
  white-space: nowrap;
}

.blog-card-title{
  margin: 0 0 8px 0;
  font-size: 18px;
  line-height: 1.25;
}

.blog-card-excerpt{
  margin: 0;
  color: #444;
  line-height: 1.45;
}

.blog-card-bottom{
  margin-top: 12px;
  font-weight: 800;
  color: #b33a2d;
}

.blog-empty{
  background: #fff;
  border: 1px dashed #ccc;
  border-radius: 10px;
  padding: 20px;
  margin-top: 16px;
}

.blog-footer-cta{
  margin-top: 24px;
  background: #fff;
  border: 1px solid #e3e3e3;
  border-radius: 10px;
  padding: 18px;
}

/* =========================
   BLOG ARTICLE
========================= */

.blog-article{
  background: transparent;
}

.blog-article h2,
.blog-article h3{
  margin-top: 28px;
}

.blog-article p,
.blog-article li{
  line-height: 1.45;
}

/* =========================
   MOBILE MENU
========================= */

.blog-top-nav{
  position: relative;
  width: 100%;
}

/* hamburger button */
.mobile-menu-btn{
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: #fff;
  cursor: pointer;
  padding: 6px 0;
  line-height: 1;
}

/* dropdown menu */
.mobile-menu{
  display: none;
  position: absolute;
  top: 42px;
  left: 0;
  width: 100%;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
  z-index: 1000;
}

.mobile-menu.open{
  display: block;
}

.mobile-menu a{
  display: block;
  padding: 14px 16px;
  text-decoration: none;
  color: #000 !important;
  font-weight: 600;
  border-bottom: 1px solid #eee;
}

.mobile-menu a:last-child{
  border-bottom: none;
}

.mobile-menu a:hover{
  background: #f5f5f5;
  color: #000 !important;
}

/* desktop links */
.desktop-links{
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

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

@media (max-width: 1000px){
  .blog-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .blog-hero-right{
    display: none;
  }
}

@media (max-width: 900px){
  .desktop-links{
    display: none !important;
  }

  .mobile-menu-btn{
    display: block !important;
  }

  .blog-top-nav{
    display: block !important;
  }

  .blog-hero-left{
    flex-direction: column;
    align-items: flex-start;
  }

  .blog-hero-left #header-logo{
    max-width: 220px;
  }

  .blog-hero-left #intro{
    min-width: 0;
  }

  .blog-grid{
    grid-template-columns: 1fr;
  }
}