/* =========================================================
   BLOG FILTER BUTTONS — Fixed Layout + Mobile Vertical Stack
========================================================= */

/* Wrapper only affects its own section, not the grid below */
.blog-filter {
  text-align: center;
  margin: 30px auto 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  width: 100%;
  position: relative;
  z-index: 2; /* ✅ keeps above overlapping content */
}

/* Buttons - desktop view */
.filter-btn {
  background: #003e51;
  border: none;
  border-radius: 6px;
  padding: 10px 22px;
  cursor: pointer;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  white-space: nowrap;
  min-width: 160px;
}

.filter-btn.active,
.filter-btn:hover {
  background: #41b6e6;
  color: #003e51;
}

/* =========================================================
   MOBILE VIEW (Stack Vertically)
========================================================= */
@media (max-width: 768px) {
  .blog-filter {
    flex-direction: column;       /* ✅ stack vertically */
    align-items: center;
    gap: 12px;
  }

  .filter-btn {
    width: 85%;                   /* ✅ consistent width */
    max-width: 340px;
    text-align: center;
    padding: 12px 0;
    font-size: 1rem;
    border-radius: 6px;
  }
}

@media (max-width: 480px) {
  .filter-btn {
    width: 90%;
    font-size: 0.9rem;
    padding: 10px 0;
  }
}

/* =========================================================
   BLOG CARD DESIGN
========================================================= */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 10px; /* ✅ small gap below filter */
}

/* =========================================================
   FIX: Remove unwanted ::before / ::after in blog grid
========================================================= */
.blog-grid::before,
.blog-grid::after {
  content: none !important;
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

.blog-grid.container::before,
.blog-grid.container::after {
  content: none !important;
  display: none !important;
}


.blog-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.blog-thumb {
  position: relative;
  display: block;
}

.blog-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  background-color: #003e51;
}

.blog-card .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 20px;
  color: #fff;
  background: linear-gradient(
    to top,
    #003e51 0%,
    rgba(0, 62, 81, 0.8) 60%,
    transparent 100%
  );
}

.blog-card .blog-title {
  font-size: 1.1rem;
  line-height: 1.3;
  color: #41b6e6;
  margin: 0;
  margin-bottom: -10px;
}

.blog-excerpt-box {
  background: #fff;
  padding: 20px;
  border-radius: 0 0 8px 8px;
}

.blog-excerpt {
  color: #333;
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

/* =========================================================
   READ MORE LINK IN BLOG CARDS
========================================================= */
.blog-excerpt-box .read-more {
  display: inline-block;
  margin-top: 12px;
  color: #003e51;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.3s ease;
}

.blog-excerpt-box .read-more:hover {
  color: #41b6e6;
  text-decoration: underline;
}

/* =========================================================
   PAGINATION (LOAD MORE)
========================================================= */
.pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin: 40px auto 60px;
  width: 100%;
}

#load-more {
  background: #003e51;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 14px 35px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 700;
  font-size: 1rem;
}

#load-more:hover {
  background: #41b6e6;
  color: #003e51;
}

#load-more.hide {
  opacity: 0;
  pointer-events: none;
}

/* =========================================================
   SINGLE POST WRAPPER
========================================================= */
.single-wrapper.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
}

/* =========================================================
   POST HEADER (TITLE, SUBHEADING, META)
========================================================= */
.post-header {
  position: relative;
  z-index: 1;
  background: transparent;
  margin: 60px 0 35px;
  padding-bottom: 15px;
  border-bottom: 2px solid #f0f4f6;
}

.post-title {
  font-size: 4rem;
  line-height: 1.3;
  color: #003e51;
  font-weight: 800;
  margin-bottom: 12px;
}

.post-subheading {
  font-size: 1.6rem;
  color: #000;
  max-width: 700px;
  margin-bottom: 18px;
  line-height: 1.6;
  font-weight: 600;
}

.post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.95rem;
  color: #003e51;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.post-meta i {
  margin-right: 6px;
  color: #41b6e6;
  font-size: 0.9rem;
}

.post-meta .meta-separator {
  color: #41b6e6;
  font-weight: 700;
}

.post-meta .meta-category {
  color: #003e51;
  font-weight: 600;
  text-transform: capitalize;
  letter-spacing: 0.5px;
}

.post-meta .meta-category:hover {
  color: #41b6e6;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .post-title {
    font-size: 2rem;
  }
  .post-subheading {
    font-size: 1rem;
  }
  .post-meta {
    font-size: 0.9rem;
    gap: 8px;
  }
}

/* =========================================================
   FEATURED IMAGE BELOW HEADER
========================================================= */
.featured-image-full {
  margin-bottom: 40px;
}

.featured-image-full img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}

/* =========================================================
   SINGLE POST STRUCTURE
========================================================= */
.single-layout {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 60px;
  margin-bottom: 100px;
  position: relative;
}

.content-area {
  flex: 3;
  max-width: 750px;
}

.sidebar {
  flex: 1;
  max-width: 330px;
  position: sticky;
  top: 120px;
  align-self: flex-start;
  z-index: 0;
}

/* Responsive collapse */
@media (max-width: 992px) {
  .single-layout {
    flex-direction: column;
    gap: 30px;
  }
  .content-area,
  .sidebar {
    max-width: 100%;
  }
  .sidebar {
    position: static;
    top: auto;
  }
}

/* =========================================================
   SIDEBAR WRAPPER
========================================================= */
.sidebar-wrapper {
  background: #fff;
  border-radius: 10px;
  box-shadow: 5px 5px 7px 0px rgba(0, 0, 0, 0.4);
  padding: 25px 20px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  position: relative;
}

.sidebar-wrapper .widget {
  background: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
}

/* =========================================================
   SIDEBAR SEARCH WIDGET
========================================================= */
.sidebar-search-widget {
  margin-bottom: 10px;
}

.sidebar-search-widget form {
  display: flex;
  align-items: center;
  position: relative;
  width: 100%;
}

.sidebar-search-widget input[type="text"],
.sidebar-search-widget input[type="search"] {
  width: 100%;
  padding: 10px 45px 10px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  height: 40px;
  font-size: 0.95rem;
  color: #333;
  background: #fff;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.sidebar-search-widget input:focus {
  border-color: #41b6e6;
  box-shadow: 0 0 4px rgba(65, 182, 230, 0.4);
  outline: none;
}

.sidebar-search-widget button {
  position: absolute;
  right: 0;
  top: 0;
  height: 40px;
  width: 40px;
  background: #003e51;
  color: #fff;
  border: none;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  transition: background 0.3s ease;
}

.sidebar-search-widget button:hover {
  background: #41b6e6;
  color: #003e51;
}

/* =========================================================
   RECENT POSTS WIDGET
========================================================= */
.recent-posts-widget ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.recent-posts-widget li {
  display: flex;
  align-items: center; /* ✅ center-align text & image vertically */
  gap: 14px;
  margin-bottom: 15px;
  background: #f9fafb;
  padding: 12px 16px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.recent-posts-widget li:last-child {
  margin-bottom: 0;
}

.recent-posts-widget li:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

/* Thumbnail */
.recent-posts-widget img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

/* Fix link wrapper alignment */
.recent-posts-widget a {
  display: flex;
  align-items: center; /* keep centered layout */
  width: 100%;
  text-decoration: none;
  color: inherit;
}

/* Text wrapper */
.recent-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.4;
  flex: 1;
  margin-left: 20px;
}

.recent-info .title {
  color: #003e51;
  font-weight: 700;
  font-size: 0.95rem;
  margin: 0 0 3px;
  transition: color 0.2s ease;
}


.recent-info .title:hover {
  color: #41b6e6;
}

.recent-info .date {
  font-size: 0.85rem;
  color: #666;
  margin: 0;
}


/* =========================================================
   SOCIAL LINKS (ICONS)
========================================================= */
.social-links-icons {
  display: flex;
  justify-content: flex-start;
  gap: 12px;
}

.social-links-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #003e51;
  color: #fff;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.social-links-icons a:hover {
  transform: translateY(-2px);
}

.social-links-icons a.facebook:hover {
  background: #1877f2;
}
.social-links-icons a.instagram:hover {
  background: radial-gradient(
    circle at 30% 107%,
    #fdf497 0%,
    #fd5949 45%,
    #d6249f 60%,
    #285aeb 90%
  );
}
.social-links-icons a.linkedin:hover {
  background: #0077b5;
}

/* =========================================================
   BULLET FIX
========================================================= */
.sidebar a::before,
.sidebar a::after,
.sidebar li::marker,
.recent-posts-widget li::before,
.recent-posts-widget li::after,
.social-links-icons a::before,
.social-links-icons a::after {
  content: none !important;
  display: none !important;
  list-style: none !important;
}

.single-post .hero-image {
    display: none;
}


