.lns-search-wrap {
  margin-bottom: 2rem;
  width: 100%;
}

#lns-search-input {
  width: 100%;
  padding: 0.875rem 1.25rem;
  font-size: 1rem;
  border-radius: 10px;
  border: 1px solid #334155;
  /* background-color: #0f172a; */
  color: black;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#lns-search-input:focus {
  border-color: #74858c;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

/* Optional helper to hide cards when filtered */
.lns-card.is-hidden {
  display: none !important;
}




/* Card container setup */
.lns-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
}

/* Fix title height alignment */
.lns-card-title {
  flex: 1;
  margin-bottom: 1rem;
}

/* Image container layout */
.lns-img-wrap {
  width: 100%;
  margin-bottom: 1rem;
  border-radius: 12px;
  overflow: hidden;
}

/* Footer layout (holds date and read more link) */
.lns-card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

/* Reset absolute positioning on the badge */
.lns-date-badge {
  position: static !important;
  font-size: 0.75rem;
  padding: 0.35rem 0.65rem;
  background-color: #ffffff;
  color: #0f172a;
  border-radius: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Read More Link */
.lns-read-more {
  font-size: 0.875rem;
  font-weight: 600;
  color: #38bdf8;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap;
}

.lns-card:hover .lns-read-more {
  color: #0284c7;
}



/* 1. Ensure the grid forces all cards in a row to match height */
.lns-blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); /* or your existing columns */
  gap: 1.5rem;
  align-items: stretch; /* Forces equal height cards per row */
}

/* 2. Force the card link to fill full vertical height */
.lns-card {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  box-sizing: border-box;
}

/* 3. Let the title take up the top space naturally */
.lns-card-title {
  margin-bottom: 1rem;
}

/* 4. Use a dedicated content wrapper around the image + footer */
.lns-card-bottom-content {
  margin-top: auto !important; /* Pushes image and footer to the bottom */
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* 5. Footer styling */
.lns-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}




/*article*/
.article-container {
    width: 100%;
    padding: 3rem;
    border-radius: 20px;
}

    /* Hero Section: Title Left, Image Right */
    .article-hero {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 3rem;
      margin-bottom: 3rem;
      padding-bottom: 2.5rem;
      border-bottom: 1px solid #334155;
    }

    .hero-title-wrap {
      flex: 1;
    }

    .meta-badge {
      display: inline-block;
      font-size: 0.875rem;
      font-weight: 600;
      color: #000000;
      margin-bottom: 1rem;
    }

    .hero-title {
      font-size: 2.25rem;
      line-height: 1.25;
      /* color: #ffffff; */
      font-weight: 800;
    }

    .hero-image-wrap {
      flex: 1;
      max-width: 550px;
    }

    ol {
    color: black;
}

    .hero-img {
      width: 100%;
      height: auto;
      display: block;
      border-radius: 20px; /* 20px rounded edges */
      object-fit: cover;
    }

    /* Main Article Content */
    .article-content {
      max-width: 800px;
      margin: 0 auto;
      font-size: 1.125rem;
      line-height: 1.8;
      color: #cbd5e1;
    }

    .article-content p {
      margin-bottom: 1.5rem;
    }

    .article-content h2 {
      font-size: 1.5rem;
      /* color: #ffffff; */
      margin: 2.5rem 0 1rem 0;
    }

    .article-content ul, .article-content ol {
      margin-bottom: 1.5rem;
      padding-left: 1.5rem;
    }

    .article-content li {
      margin-bottom: 0.75rem;
    }

    .warning-box {
      background-color: #0f172a;
      border-left: 4px solid #ef4444;
      padding: 1.25rem;
      border-radius: 8px;
      margin: 2rem 0;
    }

    .warning-box h3 {
      color: #ef4444;
      font-size: 1.125rem;
      margin-bottom: 0.5rem;
    }

    /* Responsive Design */
    @media (max-width: 900px) {
      .article-hero {
        flex-direction: column;
        gap: 2rem;
      }
      .hero-image-wrap {
        max-width: 100%;
      }
      .hero-title {
        font-size: 1.75rem;
      }
    }


.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 2rem;
    transition: color 0.2s ease, transform 0.2s ease;
    background: #ff3624;
    padding: 15px;
}
.back-link:hover {
  opacity: 0.8; /* Slightly fades on hover */
  transform: translateX(-4px); /* Shifts left slightly on hover */
}