/**
 * Blog Page Styles
 * Al Hussan Tech - الحصان تك
 * Professional blog page with animations and glass-morphism
 */

/* ===== KEYFRAME ANIMATIONS ===== */
@keyframes blogHeroZoom {
  0% { transform: scale(1.15) translateY(-1%); }
  100% { transform: scale(1) translateY(0); }
}

@keyframes blogFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(3deg); }
}

@keyframes blogFloat2 {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(-3deg); }
}

@keyframes blogShimmer {
  0% { transform: translateX(-100%) rotate(25deg); }
  100% { transform: translateX(200%) rotate(25deg); }
}

@keyframes blogPulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.05); }
}

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

/* ===== SCROLL ANIMATIONS ===== */
.blog-animate {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-animate.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.blog-animate[data-delay="1"] { transition-delay: 0.1s; }
.blog-animate[data-delay="2"] { transition-delay: 0.2s; }
.blog-animate[data-delay="3"] { transition-delay: 0.3s; }
.blog-animate[data-delay="4"] { transition-delay: 0.4s; }
.blog-animate[data-delay="5"] { transition-delay: 0.5s; }
.blog-animate[data-delay="6"] { transition-delay: 0.6s; }
.blog-animate[data-delay="7"] { transition-delay: 0.7s; }
.blog-animate[data-delay="8"] { transition-delay: 0.8s; }

/* ===== BLOG HERO ===== */
.blog-hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  padding: 9rem 0 4rem;
  overflow: hidden;
  background: linear-gradient(135deg, #1d0a32 0%, #2d1149 50%, #1a0a2e 100%);
}

.blog-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.blog-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: blogHeroZoom 30s ease-out forwards;
}

.blog-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(135deg, rgba(29, 10, 50, 0.92) 0%, rgba(45, 17, 73, 0.85) 50%, rgba(26, 10, 46, 0.9) 100%),
    linear-gradient(180deg, transparent 0%, rgba(29, 10, 50, 0.4) 100%);
}

.blog-hero__decor {
  position: absolute;
  border-radius: 50%;
  z-index: 2;
  pointer-events: none;
}

.blog-hero__decor--1 {
  width: 300px;
  height: 300px;
  top: -100px;
  right: -50px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, transparent 70%);
  animation: blogFloat 8s ease-in-out infinite;
}

.blog-hero__decor--2 {
  width: 200px;
  height: 200px;
  bottom: -60px;
  left: 10%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.1) 0%, transparent 70%);
  animation: blogFloat2 10s ease-in-out infinite;
}

.blog-hero__decor--3 {
  width: 150px;
  height: 150px;
  top: 30%;
  left: -40px;
  background: radial-gradient(circle, rgba(240, 171, 252, 0.08) 0%, transparent 70%);
  animation: blogFloat 12s ease-in-out infinite 2s;
}

.blog-hero__content {
  position: relative;
  z-index: 3;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.blog-hero__breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-bottom: 1.5rem;
  font-size: 0.8rem;
}

.blog-hero__breadcrumb a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color 0.3s;
}

.blog-hero__breadcrumb a:hover {
  color: rgba(255, 255, 255, 0.9);
}

.blog-hero__breadcrumb svg {
  width: 14px;
  height: 14px;
  color: rgba(255, 255, 255, 0.35);
}

.blog-hero__breadcrumb span[aria-current] {
  color: rgba(255, 255, 255, 0.85);
}

.blog-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.1rem;
  margin-bottom: 1.2rem;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.22);
  border-radius: 100px;
  color: #e0c4fc;
  font-size: 0.82rem;
  font-weight: 500;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.blog-hero__badge svg {
  width: 16px;
  height: 16px;
  color: #a855f7;
}

.blog-hero__title {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-family: var(--ff-ar-bold, "ArbFont-Bold", sans-serif);
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
  margin-bottom: 0.8rem;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.2);
}

.blog-hero__title span {
  background: linear-gradient(90deg, #a855f7, #f0abfc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.blog-hero__accent {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #a855f7, #7c3aed);
  border-radius: 2px;
  margin: 0 auto 1.2rem;
}

.blog-hero__desc {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.8;
  max-width: 650px;
  margin: 0 auto 2rem;
}

.blog-hero__stats {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.blog-hero__stat {
  flex: 1;
  min-width: 100px;
  text-align: center;
  padding: 0.5rem 0;
}

.blog-hero__stat-num {
  display: block;
  font-size: 1.6rem;
  font-family: var(--ff-ar-bold, "ArbFont-Bold", sans-serif);
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.2rem;
}

.blog-hero__stat-label {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
}

.blog-hero__stat-sep {
  width: 1px;
  background: rgba(255, 255, 255, 0.12);
  margin: 0.3rem 0;
}

/* ===== FEATURED ARTICLE ===== */
.blog-featured {
  padding: 5rem 0 2rem;
}

.blog-featured__header {
  text-align: center;
  margin-bottom: 3rem;
}

.blog-featured__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 1rem;
  margin-bottom: 1rem;
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.18);
  border-radius: 100px;
  color: #a855f7;
  font-size: 0.78rem;
  font-weight: 500;
}

.blog-featured__badge svg {
  width: 14px;
  height: 14px;
}

.blog-featured__title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-family: var(--ff-ar-bold, "ArbFont-Bold", sans-serif);
  font-weight: 700;
  color: var(--clr-dark, #1a1a2e);
  line-height: 1.3;
  margin-bottom: 0.6rem;
}

.blog-featured__title span {
  background: linear-gradient(90deg, #a855f7, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.blog-featured__accent {
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, #a855f7, #7c3aed);
  border-radius: 2px;
  margin: 0 auto 1rem;
}

.blog-featured__sub {
  font-size: 1rem;
  color: var(--clr-text-light, #666);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto;
}

.blog-featured__card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  box-shadow: 0 15px 50px rgba(84, 33, 135, 0.15);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.5s;
}

.blog-featured__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 60px rgba(84, 33, 135, 0.25);
}

.blog-featured__card-img {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.blog-featured__card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-featured__card:hover .blog-featured__card-img img {
  transform: scale(1.05);
}

.blog-featured__card-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(29, 10, 50, 0.3) 40%,
    rgba(29, 10, 50, 0.85) 75%,
    rgba(29, 10, 50, 0.95) 100%
  );
}

.blog-featured__card-content {
  position: relative;
  z-index: 2;
  padding: 2.5rem;
  width: 100%;
}

.blog-featured__card-cat {
  display: inline-block;
  padding: 0.35rem 1rem;
  background: linear-gradient(135deg, #a855f7, #7c3aed);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 50px;
  margin-bottom: 1rem;
}

.blog-featured__card-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-family: var(--ff-ar-bold, "ArbFont-Bold", sans-serif);
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

.blog-featured__card-title a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.3s;
}

.blog-featured__card-title a:hover {
  opacity: 0.85;
}

.blog-featured__card-excerpt {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 600px;
}

.blog-featured__card-meta {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.blog-featured__card-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.blog-featured__card-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(168, 85, 247, 0.3);
  border: 2px solid rgba(168, 85, 247, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e0c4fc;
}

.blog-featured__card-avatar svg {
  width: 20px;
  height: 20px;
}

.blog-featured__card-author-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
}

.blog-featured__card-info {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
}

.blog-featured__card-info svg {
  width: 14px;
  height: 14px;
}

.blog-featured__card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.8rem;
  background: linear-gradient(135deg, #a855f7, #7c3aed);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  margin-top: 1.5rem;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
}

.blog-featured__card-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(168, 85, 247, 0.45);
}

.blog-featured__card-cta svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s;
}

html[dir="rtl"] .blog-featured__card-cta:hover svg {
  transform: translateX(-3px);
}

html[dir="ltr"] .blog-featured__card-cta:hover svg {
  transform: translateX(3px);
}

/* ===== BLOG CONTENT SECTION ===== */
.blog-section {
  padding: 4rem 0;
  background: var(--clr-off-white, #faf8fc);
}

.blog-section__header {
  text-align: center;
  margin-bottom: 3rem;
}

/* Transition for filter animation */
.blog-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 3rem;
  align-items: start;
}

/* ===== CATEGORIES FILTER ===== */
.blog-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(84, 33, 135, 0.1);
}

.blog-cat {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.4rem;
  border: 2px solid rgba(84, 33, 135, 0.12);
  border-radius: 50px;
  background: #fff;
  color: var(--clr-text, #333);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-cat svg {
  width: 16px;
  height: 16px;
  opacity: 0.6;
  transition: opacity 0.3s;
}

.blog-cat:hover {
  border-color: var(--clr-primary, #542187);
  color: var(--clr-primary, #542187);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(84, 33, 135, 0.1);
}

.blog-cat:hover svg {
  opacity: 1;
}

.blog-cat.active {
  border-color: transparent;
  background: linear-gradient(135deg, #542187, #a855f7);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(84, 33, 135, 0.3);
}

.blog-cat.active svg {
  opacity: 1;
  color: #fff;
}

/* ===== BLOG GRID ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

/* ===== BLOG CARD ===== */
.blog-card {
  position: relative;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #542187, #a855f7, #f0abfc);
  opacity: 0;
  transition: opacity 0.4s;
  z-index: 2;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 35px rgba(84, 33, 135, 0.18);
}

.blog-card:hover::before {
  opacity: 1;
}

/* Card shimmer effect on hover */
.blog-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  transition: none;
  z-index: 3;
  pointer-events: none;
}

.blog-card:hover::after {
  animation: blogShimmer 0.8s ease-out;
}

.blog-card__img {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.blog-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-card:hover .blog-card__img img {
  transform: scale(1.08);
}

.blog-card__img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(29, 10, 50, 0.15) 100%);
  opacity: 0;
  transition: opacity 0.4s;
}

.blog-card:hover .blog-card__img-overlay {
  opacity: 1;
}

.blog-card__cat {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.35rem 0.9rem;
  background: linear-gradient(135deg, #542187, #a855f7);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 50px;
  z-index: 2;
}

html[dir="ltr"] .blog-card__cat {
  right: auto;
  left: 1rem;
}

.blog-card__reading-time {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.8rem;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 500;
  border-radius: 50px;
  z-index: 2;
}

html[dir="ltr"] .blog-card__reading-time {
  left: auto;
  right: 1rem;
}

.blog-card__reading-time svg {
  width: 12px;
  height: 12px;
}

.blog-card__body {
  padding: 1.5rem;
}

.blog-card__meta {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
  color: var(--clr-text-light, #666);
}

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

.blog-card__meta-item svg {
  width: 14px;
  height: 14px;
  opacity: 0.6;
}

.blog-card__title {
  font-size: 1.15rem;
  font-family: var(--ff-ar-bold, "ArbFont-Bold", sans-serif);
  font-weight: 700;
  margin-bottom: 0.6rem;
  line-height: 1.45;
  color: var(--clr-dark, #1a1a2e);
}

.blog-card__title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s;
}

.blog-card__title a:hover {
  color: var(--clr-primary, #542187);
}

.blog-card__excerpt {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--clr-text-light, #666);
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid rgba(84, 33, 135, 0.08);
}

.blog-card__author {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.blog-card__avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(84, 33, 135, 0.08), rgba(168, 85, 247, 0.12));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-primary, #542187);
}

.blog-card__avatar svg {
  width: 18px;
  height: 18px;
}

.blog-card__author-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--clr-text, #333);
}

.blog-card__read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--clr-primary, #542187);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: gap 0.3s, color 0.3s;
}

.blog-card__read-more:hover {
  gap: 0.7rem;
  color: var(--clr-accent, #a855f7);
}

.blog-card__read-more svg {
  width: 16px;
  height: 16px;
}

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

.blog-page {
  min-width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(84, 33, 135, 0.12);
  border-radius: 10px;
  background: #fff;
  color: var(--clr-text, #333);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.35s;
}

.blog-page:hover {
  border-color: var(--clr-primary, #542187);
  color: var(--clr-primary, #542187);
  transform: translateY(-2px);
}

.blog-page.active {
  border-color: transparent;
  background: linear-gradient(135deg, #542187, #a855f7);
  color: #fff;
  box-shadow: 0 4px 12px rgba(84, 33, 135, 0.3);
}

.blog-page--prev,
.blog-page--next {
  padding: 0 1rem;
  gap: 0.3rem;
}

.blog-page--prev svg,
.blog-page--next svg {
  width: 16px;
  height: 16px;
}

/* ===== SIDEBAR ===== */
.blog-sidebar {
  position: sticky;
  top: 90px;
}

.sidebar-widget {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(84, 33, 135, 0.08);
  border-radius: 16px;
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.3s;
}

.sidebar-widget:hover {
  box-shadow: 0 5px 25px rgba(84, 33, 135, 0.1);
}

.sidebar-widget__title {
  font-size: 1.15rem;
  font-family: var(--ff-ar-bold, "ArbFont-Bold", sans-serif);
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--clr-dark, #1a1a2e);
  padding-bottom: 0.75rem;
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(90deg, #542187, #a855f7) 1;
}

/* Search Widget */
.sidebar-search {
  position: relative;
}

.sidebar-search__input {
  width: 100%;
  padding: 0.75rem 3.5rem 0.75rem 1rem;
  border: 2px solid rgba(84, 33, 135, 0.1);
  border-radius: 10px;
  font-size: 0.9rem;
  background: rgba(250, 248, 252, 0.8);
  transition: border-color 0.3s, box-shadow 0.3s;
  font-family: inherit;
}

html[dir="rtl"] .sidebar-search__input {
  padding: 0.75rem 1rem 0.75rem 3.5rem;
}

.sidebar-search__input:focus {
  outline: none;
  border-color: var(--clr-primary, #542187);
  box-shadow: 0 0 0 3px rgba(84, 33, 135, 0.1);
}

.sidebar-search__btn {
  position: absolute;
  left: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #542187, #a855f7);
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

html[dir="rtl"] .sidebar-search__btn {
  left: auto;
  right: unset;
}

.sidebar-search__btn:hover {
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 2px 8px rgba(84, 33, 135, 0.3);
}

.sidebar-search__btn svg {
  width: 18px;
  height: 18px;
}

/* Recent Posts Widget */
.recent-post {
  display: flex;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(84, 33, 135, 0.06);
  transition: transform 0.3s;
}

.recent-post:hover {
  transform: translateX(-3px);
}

html[dir="ltr"] .recent-post:hover {
  transform: translateX(3px);
}

.recent-post:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.recent-post__img {
  width: 75px;
  height: 75px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}

.recent-post__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.recent-post:hover .recent-post__img img {
  transform: scale(1.08);
}

.recent-post__content {
  flex: 1;
  min-width: 0;
}

.recent-post__title {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.4rem;
}

.recent-post__title a {
  color: var(--clr-dark, #1a1a2e);
  text-decoration: none;
  transition: color 0.3s;
}

.recent-post__title a:hover {
  color: var(--clr-primary, #542187);
}

.recent-post__date {
  font-size: 0.78rem;
  color: var(--clr-text-light, #666);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.recent-post__date svg {
  width: 13px;
  height: 13px;
  opacity: 0.5;
}

/* Categories Widget */
.sidebar-cat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(84, 33, 135, 0.06);
  color: var(--clr-text, #333);
  text-decoration: none;
  transition: all 0.3s;
}

.sidebar-cat:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.sidebar-cat:hover {
  color: var(--clr-primary, #542187);
  transform: translateX(-3px);
}

html[dir="ltr"] .sidebar-cat:hover {
  transform: translateX(3px);
}

.sidebar-cat__name {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 500;
  font-size: 0.9rem;
}

.sidebar-cat__icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(84, 33, 135, 0.06), rgba(168, 85, 247, 0.1));
  border-radius: 8px;
  color: var(--clr-primary, #542187);
  transition: background 0.3s;
}

.sidebar-cat:hover .sidebar-cat__icon {
  background: linear-gradient(135deg, rgba(84, 33, 135, 0.12), rgba(168, 85, 247, 0.18));
}

.sidebar-cat__icon svg {
  width: 16px;
  height: 16px;
}

.sidebar-cat__count {
  padding: 0.2rem 0.65rem;
  background: linear-gradient(135deg, rgba(84, 33, 135, 0.06), rgba(168, 85, 247, 0.1));
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--clr-primary, #542187);
  transition: all 0.3s;
}

.sidebar-cat:hover .sidebar-cat__count {
  background: linear-gradient(135deg, #542187, #a855f7);
  color: #fff;
}

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

.sidebar-tag {
  padding: 0.4rem 0.9rem;
  background: rgba(84, 33, 135, 0.04);
  border: 1px solid rgba(84, 33, 135, 0.08);
  border-radius: 50px;
  color: var(--clr-text, #333);
  font-size: 0.8rem;
  text-decoration: none;
  transition: all 0.3s;
}

.sidebar-tag:hover {
  background: linear-gradient(135deg, #542187, #a855f7);
  border-color: transparent;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 3px 10px rgba(84, 33, 135, 0.2);
}

/* Newsletter Widget */
.sidebar-nl__desc {
  font-size: 0.85rem;
  color: var(--clr-text-light, #666);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.sidebar-nl__form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sidebar-nl__input {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 2px solid rgba(84, 33, 135, 0.1);
  border-radius: 10px;
  font-size: 0.9rem;
  font-family: inherit;
  background: rgba(250, 248, 252, 0.8);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.sidebar-nl__input:focus {
  outline: none;
  border-color: var(--clr-primary, #542187);
  box-shadow: 0 0 0 3px rgba(84, 33, 135, 0.1);
}

.sidebar-nl__btn {
  padding: 0.7rem 1.5rem;
  background: linear-gradient(135deg, #542187, #a855f7);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 12px rgba(84, 33, 135, 0.25);
}

.sidebar-nl__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(84, 33, 135, 0.35);
}

/* ===== NEWSLETTER SECTION ===== */
.blog-newsletter {
  padding: 5rem 0;
  background: linear-gradient(135deg, #1d0a32 0%, #2d1149 50%, #1a0a2e 100%);
  position: relative;
  overflow: hidden;
}

.blog-newsletter::before {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  top: -200px;
  right: -100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.12) 0%, transparent 70%);
  animation: blogPulse 6s ease-in-out infinite;
}

.blog-newsletter::after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  bottom: -150px;
  left: -50px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.08) 0%, transparent 70%);
  animation: blogPulse 8s ease-in-out infinite 2s;
}

.blog-newsletter__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.blog-newsletter__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  margin-bottom: 1.2rem;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.22);
  border-radius: 100px;
  color: #e0c4fc;
  font-size: 0.78rem;
  font-weight: 500;
}

.blog-newsletter__badge svg {
  width: 14px;
  height: 14px;
  color: #a855f7;
}

.blog-newsletter__title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-family: var(--ff-ar-bold, "ArbFont-Bold", sans-serif);
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.blog-newsletter__title span {
  background: linear-gradient(90deg, #a855f7, #f0abfc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.blog-newsletter__desc {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.blog-newsletter__form {
  display: flex;
  gap: 0.75rem;
  max-width: 480px;
  margin: 0 auto 1.5rem;
}

.blog-newsletter__input {
  flex: 1;
  padding: 0.85rem 1.2rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  color: #fff;
  font-size: 0.95rem;
  font-family: inherit;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: border-color 0.3s, background 0.3s;
}

.blog-newsletter__input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.blog-newsletter__input:focus {
  outline: none;
  border-color: rgba(168, 85, 247, 0.5);
  background: rgba(255, 255, 255, 0.12);
}

.blog-newsletter__btn {
  padding: 0.85rem 2rem;
  background: linear-gradient(135deg, #a855f7, #7c3aed);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
}

.blog-newsletter__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(168, 85, 247, 0.45);
}

.blog-newsletter__count {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

.blog-newsletter__count strong {
  color: #a855f7;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
  .blog-layout {
    grid-template-columns: 1fr 300px;
    gap: 2rem;
  }
}

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

  .blog-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .blog-hero {
    min-height: auto;
    padding: 7rem 0 2.5rem;
  }

  .blog-hero__decor--1 {
    width: 180px;
    height: 180px;
  }

  .blog-hero__decor--2,
  .blog-hero__decor--3 {
    display: none;
  }

  .blog-hero__stats {
    flex-wrap: wrap;
    gap: 0;
  }

  .blog-hero__stat-sep {
    display: none;
  }

  .blog-hero__stat {
    min-width: 45%;
  }

  .blog-featured__card {
    min-height: 350px;
  }
}

@media (max-width: 768px) {
  .blog-hero {
    padding: 6rem 0 2rem;
  }

  .blog-hero__decor--1 {
    display: none;
  }

  .blog-hero__badge {
    font-size: 0.75rem;
    padding: 0.35rem 0.9rem;
    margin-bottom: 1rem;
  }

  .blog-hero__desc {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }

  .blog-hero__stats {
    padding: 0.7rem 0.8rem;
    border-radius: 12px;
    width: 100%;
  }

  .blog-hero__stat {
    min-width: 45%;
    padding: 0.4rem 0;
  }

  .blog-hero__stat-num {
    font-size: 1.2rem;
  }

  .blog-hero__stat-label {
    font-size: 0.7rem;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .blog-categories {
    gap: 0.5rem;
  }

  .blog-cat {
    padding: 0.5rem 1rem;
    font-size: 0.82rem;
  }

  .blog-sidebar {
    grid-template-columns: 1fr;
  }

  .blog-featured__card {
    min-height: 280px;
  }

  .blog-featured__card-content {
    padding: 1.2rem;
  }

  .blog-featured__card-meta {
    gap: 0.8rem;
  }

  .blog-featured__card h3 {
    font-size: 1.1rem;
  }

  .blog-newsletter__form {
    flex-direction: column;
  }

  .blog-newsletter__btn {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .blog-hero {
    padding: 5.5rem 0 1.5rem;
  }

  .blog-hero__breadcrumb {
    font-size: 0.72rem;
    margin-bottom: 1rem;
  }

  .blog-hero__badge {
    font-size: 0.7rem;
    padding: 0.3rem 0.8rem;
  }

  .blog-hero__accent {
    width: 40px;
    margin-bottom: 0.8rem;
  }

  .blog-hero__desc {
    font-size: 0.85rem;
    line-height: 1.7;
    margin-bottom: 1.2rem;
  }

  .blog-hero__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    padding: 0.6rem;
  }

  .blog-hero__stat {
    min-width: auto;
  }

  .blog-hero__stat-num {
    font-size: 1.1rem;
  }

  .blog-cat svg {
    display: none;
  }

  .blog-featured__card-excerpt {
    display: none;
  }

  .blog-featured__card {
    min-height: 240px;
  }

  .blog-featured__card-content {
    padding: 1rem;
  }

  .blog-card__img {
    height: 160px;
  }

  .blog-page {
    min-width: 36px;
    height: 36px;
    font-size: 0.8rem;
  }
}
