/* Hero Background Image */
.hero {
  background: url("../images/blog-hero.jpg") no-repeat center center/cover;
  min-height: 62vh;
  --r: 20px; /* radius */
  --s: 35px; /* inner curve size */
  --x: 120px; /* horizontal offset */
  --y: 20px; /* vertical offset */

  border-radius: var(--r);
  --_m:/calc(2*var(--r)) calc(2*var(--r)) radial-gradient(#000 70%,#0000 72%);
  --_g:conic-gradient(at calc(100% - var(--r)) var(--r),#0000 25%,#000 0);
  --_d:(var(--s) + var(--r));
  mask:
    calc(100% - var(--_d) - var(--x)) 0 var(--_m),
    100% calc(var(--_d) + var(--y)) var(--_m),
    radial-gradient(var(--s) at 100% 0,#0000 99%,#000 calc(100% + 1px))
     calc(-1*var(--r) - var(--x)) calc(var(--r) + var(--y)),
    var(--_g) calc(-1*var(--_d) - var(--x)) 0,
    var(--_g) 0 calc(var(--_d) + var(--y));
  mask-repeat: no-repeat;
}

.hero-content {
  text-align: left;
  top: 8px;
  right: 300px;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 10px;
}

.breadcrumb {
  font-size: 0.9rem;
  color: #ddd;
}

.breadcrumb a {
  color: #fff;
  text-decoration: none;
}

.breadcrumb span {
  margin: 0 5px;
  color: #ccc;
}

/* Content on top */
.hero-content {
  position: relative;
  z-index: 2;
  text-align: left;
  max-width: 600px;
  margin-right: 400px;
  margin-bottom: -10px;
  
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 15px;
}





.blog-section {
  padding: 60px 20px;
  background: #f9f9f4;
}

.blog-filters {
  text-align: center;
  margin-bottom: 40px;
}

.blog-filters button {
  background: #e6e8e3;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  margin: 5px;
  cursor: pointer;
  font-weight: 500;
}

.blog-filters button.active {
  background: #3b5d2a;
  color: #fff;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(300px, 320px)); /* fixed width around 320px */
  gap: 20px;
  justify-content: center; /* center the 3 columns */
  margin-top: 30px;
}

.blog-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
  width: 100%;
  max-width: 320px;
}

.blog-image {
  position: relative;   /* important: anchors button inside */
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 20px;
}

.blog-category {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #ffffff;
  color: #559e11;
  padding: 3px 10px;
  font-size: 0.85rem;
  font-weight: 550;
  border-radius: 50px;
  z-index: 999;          /* make sure it's on top */
  display: inline-block;
}

.blog-link-btn {
  position: absolute;
  bottom: 0px;     /* small spacing from bottom */
  right: 0px;      /* small spacing from right */
  background: #0978f7;
  width: 40px;      /* button size */
  height: 40px;
  border-radius: 50%;  /* circle */
  display: flex;       /* center icon */
  align-items: center;
  justify-content: center;
  z-index: 999;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: background 0.3s ease;
}

.blog-link-btn:hover {
  background: #065ac1;
}

.blog-link-btn img {
  width: 18px;   /* adjust to fit inside circle */
  height: 18px;
  filter: brightness(0) invert(1);
}

.blog-content {
  padding: 15px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.blog-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.blog-content p {
  font-size: 3.0rem;
  color: #555;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.8rem;
  color: #777;
  margin-bottom: 10px;
}

.blog-meta span {
  display: flex;              /* make each span a flex container */
  align-items: center;        /* vertically center icon + text */
  gap: 6px;                   /* spacing between icon and text */
  font-weight: 600;      /* makes text bold */
}

.blog-meta img {
  width: 18px;
  height: 18px;
  display: block;
  font-weight: bold;
}




















