body {
  background-color: #fafaf8;
}

/* ===========================
   Blog Hero Section
   =========================== */
.blog-hero {
  background: url('../img/Blogs/bloghero-image.png') center/cover no-repeat;
  min-height: 680px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: #fff;
  padding: 40px 20px;

}

.blog-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  /* dim overlay */
  z-index: 0;
}

.blog-hero__overlay {
  position: relative;
  z-index: 1;
  text-align: center;
  /* ✅ desktop default */
  max-width: 900px;
}

.blog-hero__title {
  font-size: 3.2rem;
  /* ~51px on large screens */
  font-weight: 800;
  margin-bottom: 16px;
}

.blog-hero__subtitle {
  font-size: 1.1rem;
  /* ~18px */
  line-height: 1.6;
  font-weight: 400;
}

/* ✅ Responsive adjustments */
@media (max-width: 1024px) {
  .blog-hero__title {
    font-size: 2.5rem;
    /* ~40px on tablet */
  }

  .blog-hero__subtitle {
    font-size: 1rem;
    /* ~16px */
  }
}

@media (max-width: 768px) {
  .blog-hero {
    min-height: 380px;
    justify-content: flex-start;
    align-items: flex-end;
    text-align: left;
    padding: 60px 20px;
  }

  .blog-hero__overlay {
    text-align: center;
  }

  .blog-hero__title {
    font-size: 2rem;
    /* ~32px */
  }

  .blog-hero__subtitle {
    font-size: 0.95rem;
    /* ~15px */
  }
}


/* ===========================
   Featured Blog Slider Section
   =========================== */
.latest-blog {
  padding: 20px;
  padding-bottom: 0px;
  background: #faf9f7;
}

.latest-blog__heading {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 40px;
  color: #146782;
  padding-left: 20px;
  /* ✅ aligns with .container padding */
}

/* Optional: center it only on mobile */
@media (max-width: 768px) {
  .latest-blog__heading {
    text-align: center;
    padding-left: 0;
    /* reset so it's truly centered */
  }
}

.latest-blog-slider-wrapper {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.latest-blog-slider {
  display: flex;
  transition: transform 0.6s ease-in-out;
  width: 100%;
}

.slide {
  flex: 0 0 100%;
  display: flex;
  gap: 40px;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
}

.slide-image img {
  width: 656px;
  height: 500px;
  object-fit: cover;
  border-radius: 10px;
}

.slide-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  /* reduce from 16px to 8px */
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  /* smaller gap under meta */
}

.slide-title {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
  /* remove default h3 margin */
}

.slide-excerpt {
  font-size: 1rem;
  color: #444;
  line-height: 1.5;
  margin-top: 4px;
  /* reduced gap above excerpt */
  margin-bottom: 0;
}


.featured-readmore {
  font-weight: 600;
  color: #146782;
  text-decoration: none;
}

.featured-readmore:hover {
  color: #0e4f5c;
}

.container {
  max-width: 1300px;
  padding: 0 20px;
  margin-bottom: 30px;
  margin-top: 0px;
}

/* Slider Controls */
.slider-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 80px;
  margin-bottom: 30px;
}

.slider-dots {
  display: flex;
  gap: 8px;
}

.slider-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cfd8dc;
  cursor: pointer;
  transition: background 0.3s;
}

.slider-dots span.active {
  background: #146782;
}

.slider-arrows {
  display: flex;
  gap: 12px;
}

.slider-arrows button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: #146782;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}

.slider-arrows button:hover {
  background: #0f4d5a;
}

/* ==========================
   Filters + Search
========================== */
.blog-filters {
  /* padding-top: 40px; */
  background: #fafaf8;
  /* match background */
}

.filters-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  /* spacing between filters and search */
  max-width: 1312px;
  /* align with grid width */
  margin: 0 auto;
}

.filters {
  display: flex;
  gap: 32px;
  /* spacing between filter buttons */
}

.filter-btn {
  background: transparent;
  border: none;
  font-family: Roboto, sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #000;
  cursor: pointer;
  padding: 6px 0;
}

.filter-btn.active {
  background-color: #146782;
  color: #fff;
  padding: 6px 16px;
  border-radius: 6px;
}

.search-bar {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 10px;
  padding: 0 12px;
  height: 36px;
  border: 1px solid #ddd;
  flex-shrink: 0;
  /* prevent shrinking */
}

.search-bar input {
  border: none;
  outline: none;
  font-size: 17px;
  margin-left: 8px;
  width: 220px;
  /* narrower for balance */
}

.search-bar {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 10px;
  padding: 0 12px;
  height: 44px;
  border: 1px solid #ddd;
  flex-shrink: 0;
}

.search-bar .search-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.search-bar .search-icon img {
  width: 20px;
  /* adjust size */
  height: 20px;
  display: block;
}

.search-bar input {
  border: none;
  outline: none;
  font-size: 16px;
  margin-left: 10px;
  /* space between icon and text */
  flex: 1;
  color: #333;
}


/* ===========================
   Blog Grid
   =========================== */
.blog-posts {
  padding: 30px 0 80px;

  /* reduce top padding */
  background-color: #f9f9f9;
  /* padding: 112px 64px 60px 64px; */
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(416px, 1fr));
  gap: 64px 24px;
}

.post-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.post-card:hover {
  transform: translateY(-4px);
}

.post-card__thumbnail img {
  width: 100%;
  height: 338px;
  object-fit: cover;
}

.post-card__content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.post-category-pill {
  background-color: #146782;
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 4px 12px;
  border-radius: 20px;
}

.post-card__title {
  font-size: 1.2rem;
  margin: 10px 0;
}

.post-card__excerpt {
  color: #444;
  font-size: 1rem;
  margin-bottom: auto;
}

.post-card__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.post-card__link:hover {
  text-decoration: none;
}

.read-more {
  margin-top: 16px;
  font-weight: 600;
  color: #146782;
  text-decoration: none;
}

.read-more:hover {
  color: #0e4f5c;
}

/* ===========================
   Load More Button
   =========================== */
.load-more-container {
  text-align: center;
  /* top smaller, bottom balanced */
}


#loadMoreBtn {
  margin-top: 40px;
  padding: 16px 36px;
  /* bigger height + width */
  font-size: 1rem;
  /* increase text size */
  font-weight: 600;
  /* bolder text */
  background: #146782;
  color: #fff;
  border: none;
  border-radius: 8px;
  /* slightly rounder corners */
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

#loadMoreBtn:hover {
  background: #0f4d5a;
  transform: translateY(-2px);
  /* subtle hover lift */
}

/* Filter buttons default */
.filter-btn {
  background: transparent;
  border: none;
  font-family: Roboto, sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #000;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Active button (View all selected) */
.filter-btn.active {
  background-color: #146782;
  color: #fff;
  padding: 6px 16px;
  border-radius: 6px;
}

/* Hover state for other buttons */
.filter-btn:hover {
  color: #146782;
  /* Text changes to theme teal */
  background-color: #e6f3f6;
  /* Light teal background */
  border-radius: 6px;
  /* Rounded edges like active */
  padding: 6px 16px;
  /* Match active button padding */
}

/* ===========================
   Single Post – Base Styles
   =========================== */

.single-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 32px;
  font-size: 0.9rem;
  color: #000;
  align-items: center
}

.single-thumbnail img {
  width: 100%;
  height: 648px;
  object-fit: cover;
  border-radius: 10px;

}

.single-content {
  font-size: 1rem;
  line-height: 1.8;
  color: #333;
  margin-bottom: 60px;
}


.breadcrumbs {
  margin-top: 27px;
  color: #146782;
  font-family: Roboto;
  text-align: center;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 113px;
  height: 24px;
  margin-bottom: 24px;
  font-weight: 700;

}

.single-header {
  display: flex;
  flex-direction: column;
}

.user-image {
  object-fit: cover;
  border-radius: 50%;
  width: 56px;
  height: 56px;
}

.meta-left {
  display: flex;
  flex-direction: row
}

.meta-right {
  display: flex;
  flex-direction: row;
  width: 50%;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.post-meta-inline {
  gap: 8px;
}

.author-name {
  margin-bottom: 4px;
}

.author-block {
  margin-left: 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: #000;
  font-family: Roboto;
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: 150%;

}

.single-title {
  font-size: 2.4rem;
  font-family: Roboto;
  font-style: normal;
  font-weight: 700;
  line-height: 120%;
  margin-bottom: 48px;
  color: #000;

}


/* Tags */
.meta-right.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.tag-pill {
  display: inline-block;
  background: #146782;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.tag-pill:hover {
  background: #0f4d5a;
  color: #fff;
}

.single-post time,
.single-post .wp-block-post-date,
.single-post hr {
  display: none !important;
}


/* =======================
   Single Post Content Styles
======================= */
/* .single-content {} */
.single-post container {
  margin-bottom: 0;
}

.single-content,
.entry-content {

  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 0;
  max-width: 1225px;
  font-family: 'Roboto';
  font-size: 16px;
  line-height: 1.5;
  color: #000;
  padding: 20px 32px 20px 32px;
  padding-bottom: 0px;

}

/* Paragraphs */
.single-content p {
  padding: 0;
  margin: 0;
  /* padding-bottom: 20px; */
}

.wp-block-list {
  /* margin-top: 0%; */
}

/* Headings inside content */
.single-content h2,
.single-content h3,
.single-content h4 {
  font-weight: 700;
  color: #000;
}

.single-content p strong {
  padding-bottom: 10px;
}

/* Lists */


.single-content ul,
.single-content ol {
  /* margin-top: 20px; */
  padding-left: 20px;
}

.single-content li {
  margin-bottom: 4px;
  line-height: 150%;
  font-size: 16px;

}

/* Blockquotes */
.single-content blockquote {
  font-style: italic;
  font-weight: 600;
  margin: 24px 0;
  padding: 16px 20px;
  border-left: 4px solid #146782;
  background: #f9f9f9;
}

/* Links */
.single-content a {
  color: #146782;
  text-decoration: underline;
  font-weight: 700;
}

.single-content a:hover {
  color: #0f4d5a;
}

/* Share Icons */

.share-post {
  /* add spacing instead */
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.share-post span {
  color: #000;
  /* Text/Medium/Semi Bold */
  font-family: Roboto;
  font-size: 18px;
  font-style: normal;
  font-weight: 600;
  line-height: 150%;
  margin-bottom: 10px;
}

.share-icon:hover {
  background: #004f66;
  color: #fff;
  border-color: #004f66;
}

.share-icons {
  justify-content: flex-start;
  /* or flex-end if in figma */
  align-items: center;
  gap: 8px;
}

.share-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.share-btn svg {
  width: 24px;
  height: 24px;
  fill: #000;
  /* match Figma */
}

.share-btn:hover {
  transform: scale(1.1);
}

.share-icons a {
  text-decoration: none;
  /* remove underline */
  display: inline-flex;
  /* aligns SVG nicely */
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  /* spacing between icons */
}

.share-icons svg {
  width: 24px;
  height: 24px;
  fill: #000;
  /* you can change color here */
  transition: fill 0.2s ease;
}

.share-icons a:hover svg {
  fill: #0056b3;
  /* hover effect */
}



/* ===========================
   Related Posts Section
   =========================== */
.single-blog-posts {
  background: var(--background-1, #fcfaf3);
  padding: 0px 20px 60px 20px;
  margin-top: 0;
  margin: 0;
}

.section-heading {
  font-family: 'Roboto', sans-serif;
  font-size: 48px;
  font-weight: 700;
  line-height: 120%;
  color: #146782;
  /* From Figma */
  margin-bottom: 80px;
  margin-top: 0px;
  padding-top: 80px;
  /* Space before grid */
}

.related-posts {
  padding: 80px 0;
  background: #fafafa;
}

.related-posts__heading {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 40px;
  color: #146782;
}

#relatedGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(416px, 1fr));
  gap: 64px 24px;
}

#relatedGrid .post-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

#relatedGrid .post-card:hover {
  transform: translateY(-4px);
}

#relatedGrid .post-card__thumbnail img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

#relatedGrid .post-card__content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

#relatedGrid .post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

#relatedGrid .post-category-pill {
  background-color: #146782;
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 4px 12px;
  border-radius: 20px;
}

#relatedGrid .post-date {
  font-size: 0.9rem;
  color: #444;
}

#relatedGrid .post-card__title {
  font-size: 1.2rem;
  margin: 10px 0;
  line-height: 1.3;
  color: #000;
}

#relatedGrid .post-card__excerpt {
  color: #444;
  font-size: 1rem;
  margin-bottom: auto;
}

#relatedGrid .read-more {
  margin-top: 16px;
  font-weight: 600;
  color: #146782;
  text-decoration: none;
}

#relatedGrid .read-more:hover {
  color: #0e4f5c;
}

#relatedLoadMoreBtn {
  padding: 14px 36px;
  font-size: 1rem;
  font-weight: 600;
  background: #146782;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

#relatedLoadMoreBtn:hover {
  background: #0f4d5a;
  transform: translateY(-2px);
}

/* ===========================
   Single Post Responsive (≤768px)
   =========================== */
@media (max-width: 768px) {
  .single-title {
    font-size: 1.6rem;
    /* smaller */
  }

  .single-meta {
    flex-direction: column;
    gap: 12px;
  }

  .single-thumbnail img {
    height: auto;
    /* flexible height */
  }

  .single-content {
    padding: 0 20px;
    font-size: 0.95rem;
  }

  #relatedGrid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

#relatedGrid .post-card,
#postGrid .post-card {
  display: none;
}

/* Filter Dropdown  */
.my-dropdown {

  position: relative;
  display: inline-block;
}

.my-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid #ddd;
  min-width: 160px;
  z-index: 9999;
  padding: 8px 0;
  border-radius: 6px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.my-dropdown-menu.show {
  display: block;
}

.my-dropdown-menu .filter-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 16px;
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 500;
  list-style: none;
  /* extra safety */
}

.my-dropdown-menu .filter-btn:hover {
  background: #f5f5f5;
}

/* Keep active button highlighted (even inside dropdown) */
.filter-btn.active {
  background: #2f647c;
  /* your blue */
  color: #fff;
}

/* Prevent hover from removing active */
.dropdown-menu .filter-btn.active:hover {
  background: #2f647c;
  color: #fff;
}

.my-dropdown-menu {
  list-style: none;
  /* 🔥 removes bullets */
  margin: 0;
  padding: 0;
}

/* ===========================
   Share Post Enhancements
=========================== */
.copy-btn {
  position: relative;
  transition: transform 0.2s ease, fill 0.2s ease;
}

.copy-btn.copied svg {
  fill: #146782;
  transform: scale(1.2);
}

.copy-feedback {
  display: none;
  font-size: 14px;
  color: #146782;
  font-weight: 600;
  margin-top: 8px;
  transition: opacity 0.3s ease;
}

.copy-feedback.show {
  display: inline-block;
  opacity: 1;
}

.share-btn[aria-label]:hover::after {
  content: attr(aria-label);
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: #fff;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

/* =====================================================
   BLOG — MOBILE HERO FIX
===================================================== */
@media (max-width: 768px) {

  .blog-hero {
    min-height: unset;                 /* remove fixed height */
    aspect-ratio: 4 / 5;               /* stable across devices */
    padding: 24px 16px;
    align-items: flex-end;
  }

  .blog-hero__title {
    font-size: 1.9rem;
    line-height: 1.2;
    margin-bottom: 8px;
  }

  .blog-hero__subtitle {
    font-size: 0.95rem;
    line-height: 1.45;
  }
}

/* =====================================================
   BLOG — FEATURED SLIDER MOBILE FIX
===================================================== */
@media (max-width: 768px) {

  .slide {
    flex-direction: column;
    gap: 16px;
    padding: 0;
  }

  .slide-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .slide-content {
    padding: 0 16px 8px;
  }

  .slide-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .slide-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .slider-controls {
    margin-top: 32px;
  }

  .slider-arrows button {
    width: 44px;
    height: 44px;
  }
}

/* =====================================================
   BLOG — FILTERS MOBILE SCROLL
===================================================== */
@media (max-width: 768px) {

  .filters-container {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .filters {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }

  .filters::-webkit-scrollbar {
    display: none;
  }

  .filter-btn {
    flex: 0 0 auto;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 14px;
  }

  .my-dropdown {
    display: none; /* hide dropdown on mobile */
  }

  .search-bar {
    width: 95%;
  }

  .search-bar input {
    width: 100%;
  }
}

/* =====================================================
   BLOG — POSTS GRID MOBILE FIX
===================================================== */
@media (max-width: 768px) {

  .posts-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .post-card__thumbnail img {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .post-card__title {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
  }

  .post-card__content {
    padding: 16px;
  }
}

/* =========================
   RELATED BLOGS — MOBILE ONLY FIX
   (Desktop untouched)
========================= */
@media (max-width: 768px) {

  /* Force same card width as Blog page */
  .single-blog-posts .posts-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  /* Make cards full width */
  .single-blog-posts .post-card {
    width: 100%;
  }

  /* Match blog page image size */
  .single-blog-posts .post-card__thumbnail img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 12px;
  }

}
