.blog-hero-section {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border-bottom: 1px solid #e2e8f0;
  padding: 8rem 0 4.5rem;
  position: relative;
  overflow: hidden;
}
.blog-hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 85% 15%, rgba(16, 185, 129, 0.07) 0%, transparent 45%), radial-gradient(circle at 15% 85%, rgba(14, 165, 233, 0.05) 0%, transparent 45%);
  pointer-events: none;
}
.blog-hero-section h1, .blog-hero-section .display-5, .blog-hero-section .blog-hero-title {
  color: #0f172a !important;
  font-weight: 800;
  letter-spacing: -0.025em;
  text-shadow: none;
}
.blog-hero-section p, .blog-hero-section .lead, .blog-hero-section .hero-lead-text {
  color: #475569 !important;
  font-size: 1.15rem;
  line-height: 1.7;
}

.blog-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.blog-search-bar {
  max-width: 640px;
  margin: 2rem auto 0;
  position: relative;
}

.blog-search-input {
  height: 56px;
  border-radius: 50px;
  padding: 0 1.5rem 0 3.25rem;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a !important;
  font-size: 1rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.06), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
  transition: all 0.25s ease;
}
.blog-search-input:focus {
  background: #ffffff;
  border-color: #10b981;
  color: #0f172a !important;
  box-shadow: 0 0 0 0.25rem rgba(16, 185, 129, 0.2);
}
.blog-search-input::placeholder {
  color: #94a3b8;
}

.blog-search-icon {
  position: absolute;
  top: 50%;
  left: 1.25rem;
  transform: translateY(-50%);
  color: #10b981;
  font-size: 1.2rem;
  pointer-events: none;
}

[dir=rtl] .blog-search-input {
  padding: 0 3.25rem 0 1.5rem;
}
[dir=rtl] .blog-search-icon {
  left: auto;
  right: 1.25rem;
}

.blog-category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin: 2rem 0 2.5rem;
}

.blog-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.15rem;
  border-radius: 50px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}
.blog-cat-pill:hover, .blog-cat-pill.active {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}
.blog-cat-pill .badge {
  font-size: 0.72rem;
  padding: 0.2em 0.55em;
  background: #e2e8f0;
  color: #0f172a;
}
.blog-cat-pill.active .badge {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.featured-blog-card {
  background: #ffffff;
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  margin-bottom: 3rem;
}
.featured-blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.08);
}
.featured-blog-card:hover .featured-blog-img-box img {
  transform: scale(1.06);
}

.featured-blog-img-box {
  background: #0f172a;
  display: block;
  min-height: 280px;
  height: 100%;
  position: relative;
  overflow: hidden;
}
.featured-blog-img-box img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.blog-grid-card {
  background: #ffffff;
  border-radius: 0.85rem;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.blog-grid-card:hover {
  transform: translateY(-4px);
  border-color: #cbd5e1;
  box-shadow: 0 12px 20px -5px rgba(0, 0, 0, 0.08);
}
.blog-grid-card:hover .blog-card-media img {
  transform: scale(1.05);
}

.blog-card-media {
  background: #f8fafc;
  height: 210px;
  display: block;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #f1f5f9;
}
.blog-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

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

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: #64748b;
  margin-bottom: 0.75rem;
}

.blog-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.45;
  color: #0f172a;
  margin-bottom: 0.75rem;
  transition: color 0.2s ease;
}
.blog-card-title a {
  color: inherit;
  text-decoration: none;
}
.blog-card-title a:hover {
  color: #0d6efd;
}

.blog-card-excerpt {
  color: #475569;
  font-size: 0.9rem;
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-footer {
  padding-top: 1rem;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.84rem;
}

.aeo-direct-answer-card {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border: 2px solid #34d399;
  border-radius: 1rem;
  padding: 1.75rem;
  margin: 2rem 0 2.5rem;
  position: relative;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.08);
}

.aeo-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #059669;
  color: #ffffff;
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.aeo-answer-text {
  font-size: 1.08rem;
  line-height: 1.75;
  color: #064e3b;
  font-weight: 500;
  margin-bottom: 0;
}

.blog-detail-header {
  padding: 8rem 0 3rem;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
}

.blog-detail-featured-media {
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
}
.blog-detail-featured-media img {
  display: block;
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.blog-category-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 6px;
  text-decoration: none;
  margin-bottom: 1rem;
}

.blog-detail-title {
  font-size: 2.35rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
  margin-bottom: 1.25rem;
}
@media (max-width: 768px) {
  .blog-detail-title {
    font-size: 1.75rem;
  }
}

.blog-detail-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  color: #64748b;
  font-size: 0.9rem;
}

.blog-meta-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.blog-toc-sidebar {
  position: sticky;
  top: 95px;
  background: #ffffff;
  border-radius: 0.85rem;
  border: 1px solid #e2e8f0;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.blog-toc-title {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.blog-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.blog-toc-list li {
  margin-bottom: 0.6rem;
}
.blog-toc-list a {
  color: #475569;
  font-size: 0.88rem;
  line-height: 1.45;
  text-decoration: none;
  display: block;
  transition: all 0.2s ease;
  padding-left: 0.5rem;
  border-left: 2px solid transparent;
}
.blog-toc-list a:hover {
  color: #0d6efd;
  border-left-color: #0d6efd;
}
.blog-toc-list .toc-h3 {
  padding-left: 1.25rem;
  font-size: 0.82rem;
  opacity: 0.9;
}

[dir=rtl] .blog-toc-list a {
  padding-left: 0;
  padding-right: 0.5rem;
  border-left: none;
  border-right: 2px solid transparent;
}
[dir=rtl] .blog-toc-list a:hover {
  border-right-color: #0d6efd;
}
[dir=rtl] .blog-toc-list .toc-h3 {
  padding-left: 0;
  padding-right: 1.25rem;
}

.blog-author-card {
  background: #f8fafc;
  border-radius: 0.85rem;
  border: 1px solid #e2e8f0;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.author-avatar-box {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #0f172a;
  color: #34d399;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
}

.blog-content-body {
  color: #1e293b;
  font-size: 1.1rem;
  line-height: 1.85;
}
.blog-content-body h2 {
  font-size: 1.65rem;
  font-weight: 700;
  color: #0f172a;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  scroll-margin-top: 100px;
}
.blog-content-body h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #1e293b;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  scroll-margin-top: 100px;
}
.blog-content-body p {
  margin-bottom: 1.35rem;
}

.blog-callout {
  border-radius: 0.75rem;
  padding: 1.35rem 1.5rem;
  margin: 2rem 0;
  border-left: 4px solid;
}
.blog-callout-success {
  background: #f0fdf4;
  border-color: #10b981;
  color: #064e3b;
}
.blog-callout-info {
  background: #f0f9ff;
  border-color: #0ea5e9;
  color: #0369a1;
}
.blog-callout-title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

[dir=rtl] .blog-callout {
  border-left: none;
  border-right: 4px solid;
}

.blog-numbered-list {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}
.blog-numbered-list li {
  margin-bottom: 0.75rem;
}

[dir=rtl] .blog-numbered-list {
  padding-left: 0;
  padding-right: 1.5rem;
}

.blog-faq-section {
  background: #f8fafc;
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  padding: 2.25rem;
  margin: 3rem 0;
}
.blog-faq-section .accordion-button {
  font-weight: 700;
  font-size: 1.05rem;
  color: #0f172a;
  background: #ffffff;
  padding: 1.15rem 1.35rem;
}
.blog-faq-section .accordion-button:not(.collapsed) {
  background: #f0fdf4;
  color: #065f46;
  box-shadow: none;
}
.blog-faq-section .accordion-body {
  background: #ffffff;
  color: #334155;
  line-height: 1.7;
  padding: 1.25rem 1.35rem;
}

.blog-share-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin: 2.5rem 0;
  padding: 1.25rem;
  background: #f8fafc;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
}

.btn-share-whatsapp {
  background: #25d366;
  color: #ffffff;
  font-weight: 600;
  border: none;
}
.btn-share-whatsapp:hover {
  background: #1da851;
  color: #ffffff;
}

.btn-share-linkedin {
  background: #0077b5;
  color: #ffffff;
  font-weight: 600;
  border: none;
}
.btn-share-linkedin:hover {
  background: #005885;
  color: #ffffff;
}

.btn-share-twitter {
  background: #0f172a;
  color: #ffffff;
  font-weight: 600;
  border: none;
}
.btn-share-twitter:hover {
  background: #1e293b;
  color: #ffffff;
}
