/* css/blogs.css */

/* ------------------------------------------------------------
   1. HERO SECTION
   ------------------------------------------------------------ */
.blog-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  background-image: url('../images/34864.jpg');
  background-size: cover;
  background-position: center;
  text-align: left;
  padding-bottom: 2rem;
  color: #fff;
}

.blog-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(1, 128, 121, 0.7);
  z-index: 1;
}

.blog-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;`n  max-width: 700px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.blog-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 400;
  color: #FFFFFF;
  margin-bottom: 0.75rem;
  line-height: 1.1;
}

.blog-hero__desc {
  font-size: 1.25rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  font-style: italic;
  max-width: 600px;
  margin: 0;
  line-height: 1.6;
}

/* ------------------------------------------------------------
   2. MAIN LAYOUT
   ------------------------------------------------------------ */
.blog-section {
  padding: 5rem 1rem;
  background-color: #F8FAFC;
}

.blog-layout {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* ------------------------------------------------------------
   2.5 FEATURED POST
   ------------------------------------------------------------ */
#featured-post-container {
  margin: 0 auto 4rem auto;
  max-width: 1200px;
}

.featured-post {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 500px;
  background-color: #0A1119;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  padding: 3rem;
  overflow: hidden;
  color: #fff;
}

.featured-post__overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to bottom, rgba(1, 128, 121, 0.2) 0%, rgba(1, 128, 121, 0.95) 100%);
  z-index: 1;
}

.featured-post__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.featured-post__meta-row {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: 0.9rem;
  color: #E2E8F0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 1.5rem;
}

.featured-post__meta-item i {
  margin-right: 0.5rem;
  opacity: 0.8;
}

.featured-post__title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  text-decoration: none;
  transition: color 0.3s ease;
}

.featured-post__title:hover {
  color: var(--color-green);
}

.featured-post__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
}

.featured-post__link {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: color 0.3s ease;
}

.featured-post__link:hover {
  color: var(--color-green);
}

.featured-post__special-badge {
  font-size: 0.8rem;
  font-weight: 700;
  color: #94A3B8;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .featured-post {
    padding: 2rem;
    min-height: 400px;
  }
  .featured-post__meta-row {
    flex-wrap: wrap;
    gap: 1rem;
  }
  .featured-post__title {
    font-size: 1.8rem;
  }
  .featured-post__footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .featured-post__special-badge {
    align-self: flex-end;
  }
}


/* ------------------------------------------------------------
   3. BLOG GRID & CARDS
   ------------------------------------------------------------ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.blog-card {
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.blog-card__image-wrapper {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.blog-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-card__image {
  transform: scale(1.05);
}

.blog-card__play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background-color: #fff;
  color: var(--color-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.blog-card__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  background-color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0A1119;
  font-size: 0.8rem;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.blog-card__nav--prev { left: 1rem; }
.blog-card__nav--next { right: 1rem; }

.blog-card__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-badges-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.blog-badge {
  display: inline-block;
  background-color: rgba(232, 106, 46, 0.1);
  color: var(--color-green);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.blog-card__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #0A1119;
  margin-bottom: 0.75rem;
  line-height: 1.4;
  text-decoration: none;
  transition: color 0.3s ease;
}

.blog-card__title:hover {
  color: var(--color-green);
}

.blog-card__excerpt {
  color: #4A5568;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.blog-card__footer {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  border-top: 1px solid #E2E8F0;
  padding-top: 1rem;
  font-size: 0.8rem;
  color: #718096;
}

.blog-card__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.blog-card__meta i {
  color: #A0AEC0;
}

/* ------------------------------------------------------------
   4. PAGINATION
   ------------------------------------------------------------ */
.pagination {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 3rem;
}

.page-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background-color: #fff;
  border: 1px solid #E2E8F0;
  color: #4A5568;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.page-btn--active, .page-btn:hover {
  background-color: var(--color-green);
  color: #fff;
  border-color: var(--color-green);
}

.page-btn--next {
  width: auto;
  padding: 0 1rem;
  background-color: var(--color-green);
  color: #fff;
  border-color: var(--color-green);
  display: flex;
  gap: 0.5rem;
}

.page-btn--next:hover {
  background-color: #d85d26;
}

/* ------------------------------------------------------------
   5. SIDEBAR WIDGETS
   ------------------------------------------------------------ */
.widget {
  background-color: #fff;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* Search */
.widget-search {
  display: flex;
  padding: 1.5rem;
}

.widget-search__input {
  flex-grow: 1;
  border: 1px solid #E2E8F0;
  border-right: none;
  padding: 0.75rem 1rem;
  border-radius: 6px 0 0 6px;
  font-size: 0.9rem;
  outline: none;
}

.widget-search__btn {
  background-color: var(--color-green);
  color: #fff;
  border: none;
  padding: 0 1rem;
  border-radius: 0 6px 6px 0;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.widget-search__btn:hover {
  background-color: #d85d26;
}

/* Widget Title */
.widget__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #0A1119;
  margin-bottom: 1.5rem;
}

/* Recent Posts */
.recent-post {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.recent-post:last-child {
  margin-bottom: 0;
}

.recent-post__img {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.recent-post__info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.recent-post__title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #0A1119;
  text-decoration: none;
  line-height: 1.3;
  margin-bottom: 0.25rem;
  transition: color 0.3s ease;
}

.recent-post__title:hover {
  color: var(--color-green);
}

.recent-post__date {
  font-size: 0.75rem;
  color: #718096;
}

/* Categories */
.category-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.category-list__item {
  margin-bottom: 0.75rem;
}

.category-list__item:last-child {
  margin-bottom: 0;
}

.category-list__link {
  color: #4A5568;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
  display: block;
}

.category-list__link:hover,
.category-list__link.active {
  color: var(--color-green);
  font-weight: 700;
}

/* Tags */
.tags-widget {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  background-color: #F8FAFC;
  border: 1px solid #E2E8F0;
  color: #4A5568;
  font-size: 0.75rem;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.tag:hover {
  border-color: var(--color-green);
  color: var(--color-green);
}

.tag.active {
  background-color: var(--color-green);
  border-color: var(--color-green);
  color: #fff;
}

/* Social */
.social-widget {
  display: flex;
  gap: 0.5rem;
}

.social-widget__link {
  width: 36px;
  height: 36px;
  background-color: #F8FAFC;
  border: 1px solid #E2E8F0;
  color: #4A5568;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-widget__link:hover {
  background-color: var(--color-green);
  color: #fff;
  border-color: var(--color-green);
}

/* Newsletter */
.widget-newsletter__text {
  font-size: 0.9rem;
  color: #4A5568;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.widget-newsletter__input {
  width: 100%;
  border: 1px solid #E2E8F0;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  outline: none;
  transition: border-color 0.3s ease;
}

.widget-newsletter__input:focus {
  border-color: var(--color-green);
}

.widget-newsletter__btn {
  width: 100%;
  background-color: var(--color-green);
  color: #fff;
  border: none;
  padding: 0.75rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.widget-newsletter__btn:hover {
  background-color: #d85d26;
}

/* ------------------------------------------------------------
   6. RESPONSIVE
   ------------------------------------------------------------ */
@media (max-width: 992px) {
  .blog-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

/* Filter Pills */
.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 2.5rem;
}

.filter-pill {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  color: #4B5563;
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-pill:hover {
  border-color: #018079;
  color: #018079;
  background: #F8F9FC;
}

.filter-pill.active {
  background: #018079;
  color: #FFFFFF;
  border-color: #018079;
}

/* ============================================================
   NEW BLOG HERO (MATCHING MOCKUP)
   ============================================================ */
.blog-new-hero {
  position: relative;
  min-height: 100vh;
  background-image: url('https://images.unsplash.com/photo-1499951360447-b19be8fe80f5?q=80&w=2000&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end; /* 1. ANCHOR TO BOTTOM LIKE HEALTHCARE */
  padding: 150px 0 100px 0; /* 2. EXACT HEALTHCARE PADDING */
  z-index: 1;
}

.blog-new-hero__overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(10, 17, 25, 0.85);
  z-index: -1;
}

/* Force the container to take full width of the screen so its internal margin aligns the text left */
.blog-new-hero .container {
  width: 100%;
  margin: 0 auto;
}

.blog-new-hero__content {
  max-width: 640px; /* MATCH HEALTHCARE MAX WIDTH */
  margin: 0; /* REMOVE AUTO MARGINS */
  text-align: left !important;
}

.blog-new-hero__title {
  font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif);
  font-size: clamp(3rem, 6.5vw, 5rem); /* MATCH HEALTHCARE SIZING */
  font-weight: 800; /* MATCH HEALTHCARE WEIGHT */
  color: #FFFFFF !important;
  margin: 0 0 1.25rem;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-align: left !important;
}

.blog-new-hero__desc {
  font-size: clamp(1.05rem, 2vw, 1.2rem); /* MATCH HEALTHCARE SIZING */
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.65;
  margin: 0 0 2.25rem;
  text-align: left !important;
}

.blog-new-hero__desc em {
  font-style: italic;
  font-weight: 300;
}

.blog-new-hero__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background-color: #CFDD26;
  color: #018079;
  padding: 0.9rem 2.25rem;
  border-radius: 9999px;
  font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif);
  font-weight: 700;
  font-size: 1rem;
  transition: opacity 0.2s ease;
  text-align: left;
}

.blog-new-hero__btn:hover {
  opacity: 0.9;
  color: #018079;
}

.blog-new-hero__scroll {
  position: absolute;
  bottom: 25px; /* MATCH HEALTHCARE CHEVRON */
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.6);
  font-size: 2.5rem; /* MATCH HEALTHCARE CHEVRON SIZE */
  animation: bounce 2s infinite ease-in-out;
  z-index: 3;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); }
  40% { transform: translate(-50%, -10px); }
  60% { transform: translate(-50%, -5px); }
}
/* ============================================================
   FEATURED POST BANNER
   ============================================================ */
.featured-post-banner {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  min-height: 450px;
  display: flex;
  align-items: flex-end;
  margin-bottom: 2rem;
}

.featured-post-banner__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.featured-post-banner__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-post-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 17, 25, 0.95) 0%, rgba(10, 17, 25, 0.6) 40%, rgba(10, 17, 25, 0.1) 100%);
}

.featured-post-banner__content {
  position: relative;
  z-index: 2;
  padding: 3rem;
  width: 100%;
}

.featured-post__meta-row {
  display: flex;
  gap: 1.5rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.featured-post__meta-row i {
  margin-right: 0.4rem;
  color: #fff;
}

.featured-post__title {
  color: #fff;
  font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.3;
  max-width: 900px;
  margin-bottom: 2rem;
}

.featured-post__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.featured-post__link {
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: opacity 0.2s;
}

.featured-post__link:hover {
  opacity: 0.8;
}

.featured-post__badge {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.recent-posts-title {
  font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif);
  font-size: 2rem;
  font-weight: 700;
  color: #0A1119;
  margin-bottom: 2rem;
}
/* ============================================================
   EMPTY STATE (NO POSTS FOUND)
   ============================================================ */
.empty-state {
  text-align: center;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.empty-state__title {
  font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: #0A1119;
  margin-bottom: 0.75rem;
}

.empty-state__desc {
  font-size: 1rem;
  color: #64748B;
  line-height: 1.6;
  max-width: 750px;
}