/* ==========================================================================
   AH TELECOM BLOG REDESIGN & SIDEBAR ENHANCEMENTS
   ========================================================================== */

.blog-header {
  padding: 130px 0 60px;
  background: linear-gradient(135deg, #0d111a 0%, #1a0815 60%, #2b0b1e 100%);
  position: relative;
}

.blog-header .overlay {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(190, 15, 93, 0.22) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.6;
}

.blog-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(190, 15, 93, 0.2);
  color: #ff3b8d;
  border: 1px solid rgba(190, 15, 93, 0.4);
  padding: 6px 18px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 16px;
  backdrop-filter: blur(8px);
}

.blog-main-wrapper {
  background: #f8fafc;
  padding: 40px 0 90px;
}

.blog-single-page {
  background: #f8fafc;
  padding: 120px 0 90px;
}

/* Quick Bar Tabs Badge */
.products-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.products-tabs .tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-weight: 700;
  font-size: 0.92rem;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.products-tabs .tab-btn:hover {
  border-color: #be0f5d;
  color: #be0f5d;
  background: #fdf2f6;
}

.products-tabs .tab-btn.active {
  background: #be0f5d;
  border-color: #be0f5d;
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(190, 15, 93, 0.3);
}

.products-tabs .tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.07);
  color: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  margin-inline-start: 4px;
  min-width: 22px;
}

.products-tabs .tab-btn.active .tab-badge {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* Active Filter Banner */
.active-filter-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-inline-start: 4px solid #be0f5d;
  padding: 14px 20px;
  border-radius: 14px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.filter-banner-info {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-icon {
  color: #be0f5d;
  font-size: 1rem;
}

.filter-label {
  font-weight: 700;
  color: #1e293b;
  font-size: 0.92rem;
}

.filter-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fdf2f6;
  color: #be0f5d;
  border: 1px solid rgba(190, 15, 93, 0.2);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
}

.filter-badge.tag-badge {
  background: #fdf2f6;
  color: #be0f5d;
  border-color: rgba(190, 15, 93, 0.3);
}

.filter-badge.search-badge {
  background: #f1f5f9;
  color: #475569;
  border-color: #cbd5e1;
}

.clear-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #64748b;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  padding: 5px 14px;
  border-radius: 8px;
  transition: all 0.2s;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.clear-filter-btn:hover {
  color: #be0f5d;
  background: #fdf2f6;
  border-color: #fbcfe8;
}

/* Modern Blog Cards */
.modern-blog-card {
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #eef2f6;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.modern-blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(190, 15, 93, 0.12);
  border-color: rgba(190, 15, 93, 0.35);
}

.modern-blog-card .card-thumb-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: #1e293b;
}

.modern-blog-card .thumb-link {
  display: block;
  width: 100%;
  height: 100%;
}

.modern-blog-card .thumb-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.modern-blog-card:hover .thumb-image {
  transform: scale(1.08);
}

.modern-blog-card .thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
}

.card-category-badge {
  position: absolute;
  top: 14px;
  inset-inline-end: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #ffffff !important;
  text-decoration: none !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  backdrop-filter: blur(8px);
  z-index: 2;
  transition: transform 0.2s ease;
}

.card-category-badge:hover {
  transform: scale(1.05);
}

.card-category-badge.cat-community_impact {
  background: linear-gradient(135deg, #be0f5d 0%, #880940 100%);
}

.card-category-badge.cat-news {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.card-read-time {
  position: absolute;
  bottom: 12px;
  inset-inline-start: 14px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(6px);
  color: #f1f5f9;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  z-index: 2;
}

.modern-blog-card .card-body-content {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.modern-blog-card .card-meta {
  margin-bottom: 8px;
  font-size: 0.8rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 6px;
}

.modern-blog-card .card-title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 10px;
}

.modern-blog-card .card-title a {
  color: #1e293b;
  text-decoration: none;
  transition: color 0.2s ease;
}

.modern-blog-card:hover .card-title a {
  color: #be0f5d;
}

.modern-blog-card .card-excerpt {
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 16px;
  flex-grow: 1;
}

.modern-blog-card .card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.mini-tag {
  display: inline-flex;
  align-items: center;
  background: #fdf2f6;
  color: #be0f5d;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.mini-tag:hover {
  background: #be0f5d;
  color: #ffffff;
}

.card-footer-action {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
}

.read-more-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #be0f5d;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: gap 0.25s ease, color 0.2s ease;
}

.read-more-link:hover {
  color: #880940;
  gap: 12px;
}

/* Sidebar Styling */
.blog-sidebar {
  position: sticky;
  top: 90px;
}

.sidebar-widget {
  background: #ffffff;
  border: 1px solid #eef2f6;
  border-radius: 18px;
  padding: 22px;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.sidebar-widget .widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.widget-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.widget-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #fdf2f6;
  color: #be0f5d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
}

.widget-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
}

.widget-reset-link {
  font-size: 0.78rem;
  font-weight: 600;
  color: #be0f5d;
  text-decoration: none;
}

.widget-reset-link:hover {
  text-decoration: underline;
}

/* Search Widget */
.sidebar-search-form .search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.sidebar-search-form .search-icon {
  position: absolute;
  inset-inline-start: 14px;
  color: #94a3b8;
  font-size: 0.9rem;
  pointer-events: none;
}

.sidebar-search-form input {
  width: 100%;
  padding: 12px 46px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  font-size: 0.9rem;
  color: #1e293b;
  font-family: inherit;
  transition: all 0.25s ease;
}

.sidebar-search-form input:focus {
  outline: none;
  background: #ffffff;
  border-color: #be0f5d;
  box-shadow: 0 0 0 4px rgba(190, 15, 93, 0.1);
}

.search-clear-btn {
  position: absolute;
  inset-inline-end: 44px;
  color: #94a3b8;
  font-size: 0.85rem;
  padding: 4px 6px;
  transition: color 0.2s;
}

.search-clear-btn:hover {
  color: #be0f5d;
}

.search-submit-btn {
  position: absolute;
  inset-inline-end: 8px;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #be0f5d;
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.search-submit-btn:hover {
  background: #880940;
  transform: scale(1.05);
}

/* Categories List */
.sidebar-category-list li {
  margin-bottom: 6px;
}

.sidebar-category-list .category-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  border-radius: 12px;
  color: #334155;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  transition: all 0.2s ease;
  background: transparent;
}

.sidebar-category-list .category-item .cat-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-category-list .cat-item-icon {
  color: #94a3b8;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.sidebar-category-list .cat-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  color: #64748b;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  min-width: 24px;
  transition: all 0.2s ease;
}

.sidebar-category-list .category-item:hover {
  background: #fdf2f6;
  color: #be0f5d;
}

.sidebar-category-list .category-item:hover .cat-item-icon {
  color: #be0f5d;
}

.sidebar-category-list .category-item.active {
  background: linear-gradient(135deg, rgba(190, 15, 93, 0.1) 0%, rgba(190, 15, 93, 0.04) 100%);
  color: #be0f5d;
  border-inline-start: 3px solid #be0f5d;
  font-weight: 700;
}

.sidebar-category-list .category-item.active .cat-item-icon {
  color: #be0f5d;
}

.sidebar-category-list .category-item.active .cat-count {
  background: #be0f5d;
  color: #ffffff;
}

/* Tags Cloud Widget */
.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f8fafc;
  color: #475569;
  border: 1px solid #e2e8f0;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.22s ease;
}

.tag-chip .tag-hash {
  color: #be0f5d;
  font-weight: 700;
}

.tag-chip .tag-badge {
  background: rgba(0, 0, 0, 0.05);
  font-size: 0.68rem;
  padding: 1px 5px;
  border-radius: 8px;
  margin-inline-start: 2px;
  color: #64748b;
}

.tag-chip:hover {
  background: #fdf2f6;
  color: #be0f5d;
  border-color: #fbcfe8;
  transform: translateY(-2px);
}

.tag-chip.active {
  background: #be0f5d;
  color: #ffffff;
  border-color: #be0f5d;
}

.tag-chip.active .tag-hash {
  color: #ffffff;
}

.tag-chip.active .tag-badge {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* Recent Posts Widget */
.recent-posts-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.recent-post-card {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  border-radius: 12px;
  padding: 6px;
  transition: background 0.2s, transform 0.2s;
}

.recent-post-card:hover {
  background: #f8fafc;
  transform: translateX(-4px);
}

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

.recent-post-thumb {
  width: 64px;
  height: 64px;
  min-width: 64px;
  border-radius: 10px;
  overflow: hidden;
  background: #1e293b;
}

.recent-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.recent-post-card:hover .recent-post-thumb img {
  transform: scale(1.1);
}

.recent-post-details {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.recent-post-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  color: #94a3b8;
  margin-bottom: 4px;
}

.recent-cat-pill {
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 6px;
}

.recent-cat-pill.cat-community_impact {
  background: #fdf2f6;
  color: #be0f5d;
}

.recent-cat-pill.cat-news {
  background: #f1f5f9;
  color: #334155;
}

.recent-post-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}

.recent-post-card:hover .recent-post-title {
  color: #be0f5d;
}

/* CTA Widget */
.cta-widget {
  background: linear-gradient(135deg, #181926 0%, #2b0b1c 100%);
  border: 1px solid rgba(190, 15, 93, 0.3);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.cta-inner {
  position: relative;
  z-index: 2;
  text-align: center;
}

.cta-sparkle {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(190, 15, 93, 0.3);
  color: #ff3b8d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin: 0 auto 12px;
  box-shadow: 0 0 20px rgba(190, 15, 93, 0.4);
}

.cta-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
}

.cta-desc {
  font-size: 0.85rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 18px;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #be0f5d 0%, #901140 100%);
  color: #ffffff;
  padding: 10px 22px;
  border-radius: 30px;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(190, 15, 93, 0.35);
  transition: all 0.25s ease;
}

.cta-btn:hover {
  background: linear-gradient(135deg, #d81b60 0%, #be0f5d 100%);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(190, 15, 93, 0.45);
}

/* Empty State */
.blog-empty-state {
  text-align: center;
  padding: 60px 20px;
  background: #ffffff;
  border-radius: 18px;
  border: 1px dashed #cbd5e1;
}

.empty-icon-circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #fdf2f6;
  color: #be0f5d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 16px;
}

.blog-empty-state h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 8px;
}

.blog-empty-state p {
  color: #64748b;
  font-size: 0.95rem;
  max-width: 420px;
  margin: 0 auto;
}

/* Blog Single Page Details */
.blog-breadcrumbs .breadcrumb {
  background: transparent;
  padding: 0;
  font-size: 0.88rem;
}

.blog-breadcrumbs .breadcrumb-item a {
  color: #64748b;
  text-decoration: none;
  transition: color 0.2s;
}

.blog-breadcrumbs .breadcrumb-item a:hover {
  color: #be0f5d;
}

.blog-breadcrumbs .breadcrumb-item.active {
  color: #1e293b;
  font-weight: 600;
}

.blog-single-card {
  background: #ffffff;
  border: 1px solid #eef2f6;
  border-radius: 20px;
  padding: 36px;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.04);
}

.single-article-header .header-badges {
  display: flex;
  align-items: center;
  gap: 10px;
  position: static;
}

.single-article-header .card-category-badge,
.single-article-header .card-read-time {
  position: static;
}

.single-article-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.35;
  color: #0f172a;
  margin-bottom: 18px;
}

.single-article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #64748b;
  font-size: 0.88rem;
}

.meta-author {
  display: flex;
  align-items: center;
  gap: 8px;
}

.author-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fdf2f6;
  color: #be0f5d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
}

.author-name {
  font-weight: 600;
  color: #1e293b;
}

.meta-separator {
  color: #cbd5e1;
}

.single-featured-image-wrap {
  border-radius: 16px;
  overflow: hidden;
  margin: 28px 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.single-featured-image {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

.single-excerpt-lead {
  position: relative;
  background: #fdf2f6;
  border-inline-start: 4px solid #be0f5d;
  padding: 20px 24px;
  border-radius: 12px;
  margin-bottom: 28px;
}

.single-excerpt-lead .quote-icon {
  position: absolute;
  top: 14px;
  inset-inline-end: 18px;
  font-size: 1.8rem;
  color: rgba(190, 15, 93, 0.15);
}

.single-excerpt-lead p {
  color: #374151;
  font-size: 1.05rem;
  line-height: 1.75;
  font-weight: 600;
  margin: 0;
}

.single-article-body {
  font-size: 1.1rem;
  line-height: 1.9;
  color: #334155;
}

.single-tags-section .tags-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: #1e293b;
  font-size: 0.95rem;
}

/* Share Buttons */
.share-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 6px;
}

.share-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.22s ease;
  border: 1px solid transparent;
  position: relative;
}

.share-whatsapp {
  background: #25d366;
  color: #ffffff;
}

.share-whatsapp:hover {
  background: #1eb956;
  color: #ffffff;
  transform: translateY(-2px);
}

.share-linkedin {
  background: #0a66c2;
  color: #ffffff;
}

.share-linkedin:hover {
  background: #08529d;
  color: #ffffff;
  transform: translateY(-2px);
}

.share-twitter {
  background: #0f1419;
  color: #ffffff;
}

.share-twitter:hover {
  background: #000000;
  color: #ffffff;
  transform: translateY(-2px);
}

.share-copy {
  background: #f1f5f9;
  color: #334155;
  border-color: #cbd5e1;
  cursor: pointer;
}

.share-copy:hover {
  background: #be0f5d;
  color: #ffffff;
  border-color: #be0f5d;
  transform: translateY(-2px);
}

.copy-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #1e293b;
  color: #ffffff;
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  pointer-events: none;
}

.copy-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 4px;
  border-style: solid;
  border-color: #1e293b transparent transparent transparent;
}

.copy-tooltip.visible {
  opacity: 1;
  visibility: visible;
  bottom: calc(100% + 12px);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #be0f5d;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  transition: gap 0.2s;
}

.back-link:hover {
  color: #880940;
  gap: 12px;
}

/* Related Articles */
.title-with-pill {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pill-accent {
  width: 5px;
  height: 24px;
  border-radius: 4px;
  background: #be0f5d;
}

.mini-card .card-thumb-wrap {
  height: 160px;
}

.mini-card .card-title {
  font-size: 0.98rem;
}

/* Direction Flips */
[dir="ltr"] .flip-ltr {
  transform: scaleX(-1);
}

[dir="rtl"] .flip-ltr {
  transform: scaleX(1);
}

@media (max-width: 991.98px) {
  .blog-sidebar {
    position: static;
    margin-top: 30px;
  }
  .blog-single-card {
    padding: 22px;
  }
  .single-article-title {
    font-size: 1.5rem;
  }
}
