/* Blog listing page */
.blog-page-hero {
  background: #080808;
  color: #fff;
  padding: 8.4rem 5vw 3.4rem;
  position: relative;
  overflow: hidden;
  min-height: 400px;
}

.blog-page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 0%, rgba(255,255,255,0.14), transparent 42%),
    radial-gradient(circle at 88% 78%, rgba(255,255,255,0.07), transparent 35%);
  pointer-events: none;
}

.blog-page-hero::after {
  content: "NEXA SOLUTIONS";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -44%);
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.2rem, 14vw, 11rem);
  letter-spacing: 0.08em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.22);
  text-stroke: 1px rgba(255,255,255,0.22);
  opacity: 0.48;
  z-index: 0;
  pointer-events: none;
}

.blog-page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1150px;
  margin: 0 auto;
  text-align: center;
}

.blog-page-eyebrow {
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.54);
  margin-bottom: 0.9rem;
}

.blog-page-hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.5rem, 8vw, 5.6rem);
  letter-spacing: 0.03em;
  line-height: 1;
  margin-bottom: 0.55rem;
}

.blog-detail-page .blog-page-hero h1 {
  font-size: clamp(2rem, 5.5vw, 3.8rem);
}

.blog-page-sub {
  font-size: 1.03rem;
  color: rgba(255,255,255,0.7);
  max-width: 650px;
  line-height: 1.65;
  margin: 0 auto;
}

.blog-page-wrap {
  background: #fff;
  padding: 2.1rem 5vw 4rem;
}

.mobile-search-wrap {
  display: none;
}

.blog-page-grid {
  width: 90vw;
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 2rem;
}

.blog-list-card {
  display: grid;
  grid-template-columns: 255px minmax(0, 1fr);
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.08);
  margin-bottom: 1.15rem;
  transform: translateY(14px) scale(0.985);
  opacity: 0;
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.35s ease,
    box-shadow 0.28s ease,
    border-color 0.28s ease;
}

.blog-list-card.visible {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.blog-list-card:hover {
  transform: translateY(-6px) scale(1);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  border-color: rgba(0,0,0,0.14);
}

.blog-list-media {
  display: block;
  height: 100%;
  min-height: 220px;
  overflow: hidden;
}

.blog-list-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.48s ease;
}

.blog-list-card:hover .blog-list-media img {
  transform: scale(1.05);
}

.blog-fallback-image {
  width: 100%;
  height: 100%;
  min-height: 220px;
  display: grid;
  place-items: center;
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.09em;
  font-size: 2rem;
  color: #fff;
  background:
    linear-gradient(135deg, #111 0%, #2a2a2a 45%, #131313 100%);
}

.blog-list-content {
  padding: 1.35rem 1.5rem 1.35rem 1.35rem;
  text-align: center;
}

.blog-list-meta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: rgba(0,0,0,0.55);
  font-size: 0.8rem;
  margin-bottom: 0.8rem;
  flex-wrap: wrap;
}

.blog-list-chip {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.3rem 0.68rem;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 999px;
  color: rgba(0,0,0,0.74);
}

.blog-list-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(0,0,0,0.3);
}

.blog-list-content h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.78rem;
  line-height: 1.08;
  letter-spacing: 0.02em;
  margin-bottom: 0.55rem;
}

.blog-list-content h2 a {
  color: #0f0f0f;
  text-decoration: none;
}

.blog-list-content h2 a:hover {
  color: #373737;
}

.blog-author {
  font-size: 0.86rem;
  color: rgba(0,0,0,0.58);
  margin-bottom: 0.7rem;
}

.blog-summary {
  font-size: 0.95rem;
  line-height: 1.63;
  color: rgba(0,0,0,0.7);
  margin-bottom: 1rem;
}

.blog-read-link {
  text-decoration: none;
  color: #121212;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  letter-spacing: 0.02em;
  transition: gap 0.2s ease;
  margin: 0 auto;
}

.blog-read-link:hover {
  gap: 0.7rem;
}

.blog-pagination {
  margin-top: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  flex-wrap: wrap;
}

.page-btn,
.page-number {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.12);
  color: #111;
  background: rgba(255,255,255,0.9);
  font-size: 0.88rem;
  transition: all 0.2s ease;
}

.page-number.active {
  background: #111;
  color: #fff;
  border-color: #111;
}

.page-btn:hover,
.page-number:hover {
  border-color: rgba(0,0,0,0.22);
  transform: translateY(-2px);
}

.page-btn.disabled {
  opacity: 0.45;
  pointer-events: none;
}

.page-ellipsis {
  padding: 0 0.2rem;
  color: rgba(0,0,0,0.55);
}

.blog-empty-state {
  border-radius: 20px;
  border: 1px solid rgba(0,0,0,0.12);
  background: #fff;
  padding: 2rem;
  text-align: center;
}

.blog-empty-state h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
}

.blog-empty-state p {
  color: rgba(0,0,0,0.62);
  margin-bottom: 0.9rem;
}

.blog-empty-reset {
  color: #111;
  text-decoration: none;
  font-weight: 600;
}

.blog-side-col {
  position: relative;
}

.blog-side-sticky {
  position: sticky;
  top: 106px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.blog-side-card,
.blog-side-cta {
  background: rgba(255,255,255,0.95);
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 18px;
  padding: 1.5rem;
  text-align: left;
}

.blog-side-card h3,
.blog-side-cta h3 {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.04em;
  font-size: 1.55rem;
  margin-bottom: 1.2rem;
  color: #000;
}

.blog-search-form,
.newsletter-form {
  display: flex;
  gap: 0.48rem;
  flex-direction: column;
}

.blog-search-form input,
.newsletter-form input {
  border: 1px solid rgba(0,0,0,0.14);
  height: 42px;
  border-radius: 12px;
  padding: 0 0.8rem;
  font-family: inherit;
  font-size: 0.9rem;
  text-align: left;
}

.blog-search-form button,
.newsletter-form button,
.blog-side-cta a {
  border: none;
  height: 42px;
  border-radius: 12px;
  background: #111;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.side-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.side-item {
  display: flex;
  gap: 0.85rem;
  text-decoration: none;
  align-items: center;
  transition: transform 0.2s ease;
}

.side-item:hover {
  transform: translateX(5px);
}

.side-thumb {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(0,0,0,0.05);
}

.side-title {
  font-size: 0.92rem;
  line-height: 1.35;
  color: #000;
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-side-card p {
  color: #333;
  font-size: 0.9rem;
  line-height: 1.55;
  margin-bottom: 0.75rem;
}

.categories-list {
  list-style: none;
  display: grid;
  gap: 0.44rem;
}

.categories-list a {
  text-decoration: none;
  color: #333;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 12px;
  min-height: 48px;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  transition: all 0.2s ease;
}

.categories-list a.active,
.categories-list a:hover {
  border-color: #000;
  background: rgba(0,0,0,0.03);
  color: #000;
}

.categories-list a span {
  font-size: 0.78rem;
  color: rgba(0,0,0,0.55);
  background: rgba(0,0,0,0.05);
  padding: 2px 8px;
  border-radius: 999px;
}

.blog-side-cta {
  background: #111;
  color: #fff;
  
}

.blog-side-cta .cta-mini {
  color: rgba(255,255,255,0.62);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}

.blog-side-cta h3 {
  color: #fff;
  line-height: 1.1;
  margin-bottom: 0.85rem;
}

.blog-side-cta a {
  width: 100%;
  background: #fff;
  color: #111;
}

/* ── Blog Detail Article ── */
.blog-article {
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.blog-article-cover {
  width: 100%;
  max-height: 500px;
  overflow: hidden;
}

.blog-article-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.48s ease;
}

.blog-article-body {
  padding: 2.5rem 3rem;
}

@media (max-width: 1024px) {
  .blog-article-body {
    padding: 2rem 2rem;
  }
}

@media (max-width: 640px) {
  .blog-article-body {
    padding: 1.4rem 1.1rem;
  }

  .blog-article-cover {
    max-height: 240px;
  }
}

/* Live blog listing page used by templates/blog.html */
.blog-container {
  width: 90vw;
  max-width: 1300px;
  margin: 0 auto;
}

.mobile-filter-toggle {
  display: none;
}

.blog-filter-section {
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  padding: 1.5rem 0;
  position: sticky;
  top: 70px;
  z-index: 10;
  box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}

.filter-bar {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.filter-group {
  display: flex;
  align-items: center;
}

.search-group {
  flex: 1;
}

.filter-input-wrapper {
  width: 100%;
  display: flex;
  align-items: center;
  background: #f8f8f8;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  padding: 0 1.2rem;
  height: 52px;
  transition: all 0.3s ease;
}

.filter-input-wrapper:focus-within {
  background: #fff;
  border-color: #000;
  box-shadow: 0 0 0 4px rgba(0,0,0,0.03);
}

.search-icon {
  color: #888;
  margin-right: 0.8rem;
}

.filter-input-wrapper input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.95rem;
  color: #111;
  font-weight: 500;
}

.category-group {
  width: 220px;
}

.category-dropdown-wrapper {
  position: relative;
  width: 100%;
}

.category-select {
  width: 100%;
  height: 52px;
  appearance: none;
  background: #fff;
  color: #111;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  padding: 0 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.category-select:hover {
  border-color: #000;
}

.category-dropdown-wrapper .dropdown-arrow {
  position: absolute;
  right: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
  pointer-events: none;
}

.button-group {
  width: auto;
}

.apply-filter-btn {
  height: 52px;
  padding: 0 1.8rem;
  background: #111;
  color: #fff;
  border: none;
  border-radius: 14px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.apply-filter-btn:hover {
  background: #000;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.blog-main-grid {
  display: flex;
  gap: 2rem;
}

.blog-feed {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
  align-content: start;
}

.blog-card-custom {
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 18px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04), 0 10px 30px rgba(0,0,0,0.06);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.blog-card-custom:hover {
  transform: translateY(-4px);
  border-color: rgba(0,0,0,0.14);
  box-shadow: 0 14px 34px rgba(0,0,0,0.1);
}

.card-lottie-container {
  position: absolute;
  right: 0.9rem;
  bottom: 0.9rem;
  width: 64px;
  height: 64px;
  z-index: 1;
  opacity: 0.12;
  pointer-events: none;
}

.card-lottie2-container {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.12;
  pointer-events: none;
}

.blog-card-image {
  position: relative;
  z-index: 2;
  height: clamp(180px, 16vw, 240px);
  overflow: hidden;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-card-body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(1.2rem, 2vw, 1.8rem);
  flex: 1;
}

.meta-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #333;
  margin-bottom: 0.85rem;
}

.tag-blue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: #111;
  color: #fff;
}

.blog-card-body h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.4rem, 1.7vw, 1.9rem);
  line-height: 1.12;
  letter-spacing: 0.02em;
  margin: 0 0 0.85rem;
  color: #111;
}

.blog-card-body p {
  color: rgba(0,0,0,0.72);
  font-size: 0.96rem;
  line-height: 1.62;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer-flex {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-top: auto;
  position: relative;
  z-index: 2;
}

.read-article-btn,
.join-now-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.join-now-btn,
.sidebar-widget .join-now-btn,
.sidebar-widget button.join-now-btn {
  padding: 0.65rem 1.2rem;
  background: #fff !important;
  color: #111 !important;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.88rem;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}

.join-now-btn:hover,
.sidebar-widget .join-now-btn:hover {
  background: #f0f0f0 !important;
  transform: translateY(-1px);
}

.newsletter-join-btn,
.sidebar-widget .newsletter-join-btn,
.sidebar-widget button.newsletter-join-btn {
  width: 100%;
  padding: 0.75rem 1rem;
  background: #fff !important;
  color: #111 !important;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}

.newsletter-join-btn:hover,
.sidebar-widget .newsletter-join-btn:hover {
  background: #f0f0f0 !important;
  transform: translateY(-1px);
}

.read-article-btn {
  padding: 0.65rem 1.1rem;
  background: #111;
  color: #fff;
  border: 1px solid #111;
  font-size: 0.9rem;
}

.read-article-btn:hover {
  transform: translateY(-1px);
  background: #222;
  color: #fff;
}

.author-name {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #111;
}

.author-name div {
  max-width: none;
  color: #333;
  word-break: break-word;
}

.sticky-sidebar {
  position: sticky;
  top: 90px;
  width: 340px;
  flex-shrink: 0;
  align-self: flex-start;
}

.sidebar-widget,
.recent-widget,
.blog-side-cta {
  border-radius: 20px;
  padding: 1.25rem;
  margin-bottom: 1.1rem;
}

.sidebar-widget {
  background: #111;
  border: 1px solid rgba(255,255,255,0.08);
  color: #ddd;
}

.sidebar-widget p,
.sidebar-widget li,
.sidebar-widget a,
.sidebar-widget small,
.sidebar-widget input,
.sidebar-widget button {
  color: inherit;
}

.sidebar-widget form {
  display: grid;
  gap: 0.75rem;
}

.newsletter-widget p {
  margin-bottom: 1.1rem;
}

.newsletter-email-input {
  width: 100%;
  border: none;
  border-radius: 10px;
  padding: 0.65rem 0.95rem;
  background: rgba(255,255,255,0.96);
  color: #111;
  font: inherit;
}

.newsletter-email-input::placeholder {
  color: rgba(0,0,0,0.42);
}

.newsletter-join-btn {
  width: 100%;
  padding: 0.85rem 1rem;
  background: #fff;
  color: #111;
  border: 1px solid #fff;
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.newsletter-join-btn:hover {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

.recent-widget {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 2px 10px rgba(0,0,0,0.04), 0 10px 25px rgba(0,0,0,0.06);
  color: #111;
}

.blog-side-cta {
  background: #111;
  color: #fff;
}

.sidebar-widget h3,
.recent-widget h3,
.blog-side-cta h3 {
  margin: 0 0 1rem;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.45rem;
  line-height: 1;
  letter-spacing: 0.03em;
}

.sidebar-widget h3 {
  border-left: 4px solid currentColor;
  padding-left: 0.85rem;
}

.recent-post-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
  color: inherit;
  padding: 0.5rem 0;
  border-radius: 12px;
}

.recent-post-item:hover {
  background: rgba(0,0,0,0.03);
}

.recent-post-thumb {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
  flex: 0 0 auto;
}

.recent-post-info h4 {
  font-size: 0.9rem;
  line-height: 1.3;
  margin: 0;
  color: #111;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.recent-post-info small {
  display: block;
  margin-top: 0.25rem;
  color: rgba(0,0,0,0.58);
}

.blog-pagination {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  flex-wrap: wrap;
  margin-top: 0.6rem;
}

@media (max-width: 1200px) {
  .blog-feed {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sticky-sidebar {
    width: 300px;
  }
}

@media (max-width: 1024px) {
  .blog-page-wrap {
    padding-inline: 4vw;
  }

  .blog-main-grid {
    flex-direction: column;
  }

  .sticky-sidebar {
    position: static;
    width: 100%;
  }

  .blog-feed {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .blog-side-sticky {
    position: static;
    margin-top: 0.7rem;
  }
}

@media (max-width: 768px) {
  .blog-page-hero {
    padding: 5.5rem 1.2rem 2.5rem;
    min-height: 380px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .blog-page-hero::after {
    letter-spacing: 0.05em;
    font-size: clamp(1.6rem, 13vw, 4.4rem);
    transform: translate(-50%, -48%);
  }

  .blog-page-wrap {
    padding: 1.1rem 1rem 3rem;
  }

  .blog-list-card {
    grid-template-columns: 1fr;
    margin-bottom: 0.95rem;
  }

  .blog-list-media,
  .blog-fallback-image {
    min-height: 210px;
  }

  .blog-list-content {
    padding: 1.05rem;
  }

  .blog-list-content h2 {
    font-size: 1.45rem;
  }
}

@media (max-width: 768px) {
  .blog-page-wrap {
    padding: 1.1rem 1rem 2.5rem;
  }

  .category-nav-wrapper {
    margin-bottom: 1.4rem;
    padding-bottom: 0.9rem;
  }

  .blog-filter-section {
    padding: 0.8rem 0;
    top: 60px;
  }

  .mobile-filter-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.75rem 1.2rem;
    background: #f8f8f8;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #111;
    cursor: pointer;
    gap: 0.8rem;
  }

  .mobile-filter-toggle svg:first-child {
    color: #888;
  }

  .mobile-filter-toggle .toggle-chevron {
    transition: transform 0.3s ease;
  }

  .mobile-filter-toggle.active .toggle-chevron {
    transform: rotate(180deg);
  }

  .filter-bar-form {
    display: none;
    padding-top: 1rem;
    border-top: 1px solid rgba(0,0,0,0.05);
    margin-top: 0.8rem;
  }

  .filter-bar-form.active {
    display: block;
    animation: slideDown 0.3s ease forwards;
  }

  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .filter-bar {
    flex-direction: column;
    gap: 0.85rem;
    align-items: stretch;
  }

  .filter-group {
    width: 100%;
  }

  .filter-input-wrapper,
  .category-select,
  .apply-filter-btn {
    width: 100% !important;
    height: 50px;
    border-radius: 12px;
  }

  .filter-input-wrapper,
  .category-select {
    background: #f8f8f8;
    border-color: rgba(0,0,0,0.06);
  }

  .blog-feed {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
  }

  .blog-card-image {
    height: 150px;
  }

  .blog-card-body {
    padding: 0.85rem;
    gap: 0.6rem;
  }

  .blog-card-body h2 {
    font-size: 1.3rem;
  }

  .blog-card-body p {
    font-size: 0.9rem;
    -webkit-line-clamp: 2;
  }

  .card-footer-flex {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .author-name {
    display: none;
  }

  .sidebar-widget,
  .recent-widget,
  .blog-side-cta {
    padding: 1rem;
    border-radius: 18px;
  }

  .blog-side-cta a,
  .join-now-btn,
  .read-article-btn {
    width: 100%;
  }

  .newsletter-join-btn {
    padding: 0.8rem 0.95rem;
  }
}

@media (max-width: 480px) {
  .blog-feed {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .author-name {
    display: flex;
  }

  .blog-card-image {
    height: 180px;
  }

  .blog-card-body p {
    -webkit-line-clamp: 3;
  }
}

.blog-messages {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.blog-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(0,0,0,0.1);
}

.blog-alert p {
  flex: 1;
  margin: 0;
  font-weight: 500;
}

.blog-alert-success {
  border-color: rgba(8,120,8,0.25);
  color: #087808;
  background: rgba(8,120,8,0.05);
}

.blog-alert-error {
  border-color: rgba(176,40,40,0.25);
  color: #b02828;
  background: rgba(176,40,40,0.05);
}

.blog-alert .flash-close {
  flex-shrink: 0;
}

.flash-close {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.25rem;
  opacity: 0.7;
}

.flash-close:hover {
  opacity: 1;
}
