/* ==========================================================================
   BLOG DETAIL PAGES SPECIFIC STYLES
   ========================================================================== */

/* ========== HERO SECTION ========== */
.blog-detail-hero {
  padding: 100px 0 90px;
  background: var(--gradient-hero);
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.blog-detail-hero .container {
  position: relative;
  z-index: 3;
}

/* Category Badge */
.badge-category {
  display: inline-block;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: var(--transition);
}

.badge-category:hover {
  background: var(--white);
  color: var(--primary-dark);
  transform: translateY(-2px);
}

/* Title */
.blog-detail-title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 25px;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

/* Meta Data */
.blog-detail-meta {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 20px;
}

.blog-detail-meta span {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
}

.blog-detail-meta span i {
  color: var(--accent);
  font-size: 15px;
}

/* ========== CONTENT SECTION ========== */
.blog-detail-section {
  padding: 80px 0;
  background-color: var(--light-bg);
}

/* Main Article Card */
.article-card {
  background: var(--white);
  border-radius: 24px;
  padding: 45px;
  box-shadow: var(--shadow-md);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Featured Image */
.featured-image-wrapper {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 40px;
  position: relative;
  aspect-ratio: 16 / 9;
}

.featured-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.article-card:hover .featured-image-wrapper img {
  transform: scale(1.04);
}

/* Article Typography */
.article-body {
  font-family: 'Inter', sans-serif;
  color: #334155;
  font-size: 16px;
  line-height: 1.8;
}

.article-body p {
  margin-bottom: 24px;
}

.article-body strong {
  color: var(--dark-text);
  font-weight: 700;
}

.article-body h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.8rem;
  color: var(--primary-dark);
  font-weight: 800;
  margin: 45px 0 20px;
  padding-left: 16px;
  border-left: 4px solid var(--primary);
  line-height: 1.3;
}

.article-body h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.35rem;
  color: var(--primary-dark);
  font-weight: 700;
  margin: 35px 0 15px;
  line-height: 1.4;
}

/* Custom Bullet List */
.article-list {
  list-style: none;
  padding: 0;
  margin: 25px 0 35px;
}

.article-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 16px;
  line-height: 1.6;
}

.article-list li::before {
  content: "\f058"; /* Font Awesome checked circle */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 3px;
  color: var(--primary);
  font-size: 16px;
  transition: color 0.3s ease;
}

.article-list li:hover::before {
  color: #ff9900;
}

/* Premium Blockquote */
.article-blockquote {
  position: relative;
  background: rgba(66, 95, 133, 0.05);
  border-left: 4px solid var(--primary);
  padding: 30px 40px;
  border-radius: 0 16px 16px 0;
  margin: 40px 0;
  overflow: hidden;
}

.article-blockquote p {
  font-size: 1.15rem;
  font-style: italic;
  color: var(--primary-dark);
  line-height: 1.7;
  font-weight: 500;
  margin: 0;
  position: relative;
  z-index: 2;
}

.article-blockquote i {
  position: absolute;
  right: 25px;
  bottom: 15px;
  font-size: 4.5rem;
  color: rgba(66, 95, 133, 0.08);
  pointer-events: none;
  z-index: 1;
}

/* Social Sharing */
.article-share-area {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #e2e8f0;
  padding-top: 30px;
  margin-top: 45px;
  flex-wrap: wrap;
  gap: 15px;
}

.share-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--dark-text);
  margin: 0;
}

.share-icons {
  display: flex;
  gap: 12px;
}

.share-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f1f5f9;
  color: var(--gray-text);
  font-size: 16px;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.share-btn:hover {
  transform: translateY(-4px);
  color: var(--white);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.share-btn.fb:hover { background-color: #1877f2; }
.share-btn.tw:hover { background-color: #1da1f2; }
.share-btn.ln:hover { background-color: #0a66c2; }
.share-btn.wa:hover { background-color: #25d366; }

/* ========== SIDEBAR STYLES ========== */
.sidebar-widget {
  background: var(--white);
  border-radius: 20px;
  padding: 30px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 30px;
  border: 1px solid rgba(226, 232, 240, 0.6);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sidebar-widget:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.widget-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2rem;
  color: var(--primary-dark);
  font-weight: 700;
  margin-bottom: 25px;
  padding-bottom: 12px;
  border-bottom: 2px solid #f1f5f9;
  position: relative;
}

.widget-title::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 45px;
  height: 2px;
  background: var(--primary);
}

/* Search Widget */
.sidebar-widget .input-group {
  display: flex;
  width: 100%;
}

.sidebar-widget .input-group .form-control {
  height: 48px;
  border-radius: 12px 0 0 12px;
  border: 1.5px solid #e2e8f0;
  border-right: none;
  font-size: 14.5px;
  padding: 10px 16px;
  box-shadow: none;
  transition: var(--transition);
}

.sidebar-widget .input-group .form-control:focus {
  border-color: var(--primary);
}

.sidebar-widget .input-group .btn-primary {
  height: 48px;
  border-radius: 0 12px 12px 0;
  background: var(--gradient-main);
  border: none;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: var(--transition);
}

.sidebar-widget .input-group .btn-primary:hover {
  background: var(--primary-dark);
  color: var(--white);
}

/* Popular Articles List */
.widget-post-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.widget-post-item {
  display: flex;
  gap: 15px;
  align-items: center;
}

.widget-post-img {
  width: 70px;
  height: 70px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.widget-post-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.widget-post-item:hover .widget-post-img img {
  transform: scale(1.1) rotate(1deg);
}

.widget-post-info {
  flex: 1;
}

.widget-post-info h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 6px;
}

.widget-post-info h4 a {
  color: var(--dark-text);
  transition: var(--transition);
}

.widget-post-info h4 a:hover {
  color: var(--primary);
}

.widget-post-info span {
  font-size: 11.5px;
  color: var(--gray-text);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Promo CTA Card Widget */
.sidebar-widget.widget-cta {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #0a2a3c 100%);
  color: var(--white);
  border: none;
  text-align: center;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.sidebar-widget.widget-cta::before {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  top: -60px;
  right: -60px;
  z-index: -1;
}

.sidebar-widget.widget-cta::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.02);
  bottom: -40px;
  left: -40px;
  z-index: -1;
}

.sidebar-widget.widget-cta h3 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 15px;
  color: var(--white);
  line-height: 1.25;
}

.sidebar-widget.widget-cta p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 13.5px;
  line-height: 1.6;
  margin-bottom: 25px;
}

.widget-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--white);
  color: var(--primary-dark);
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 12px;
  font-size: 14px;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  width: 100%;
}

.widget-cta-btn:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.widget-cta-btn i {
  transition: transform 0.2s ease;
}

.widget-cta-btn:hover i {
  transform: translateX(4px);
}

/* ========== RESPONSIVE STYLES ========== */
@media (max-width: 991px) {
  .blog-detail-hero {
    padding: 80px 0 70px;
  }
  .blog-detail-title {
    font-size: 2.3rem;
  }
  .article-card {
    padding: 30px;
  }
  .blog-detail-section {
    padding: 60px 0;
  }
}

@media (max-width: 767px) {
  .blog-detail-title {
    font-size: 1.85rem;
    margin-bottom: 18px;
  }
  .article-card {
    padding: 24px;
    border-radius: 16px;
  }
  .article-body h2 {
    font-size: 1.5rem;
    margin: 35px 0 15px;
  }
  .article-body h3 {
    font-size: 1.2rem;
    margin: 25px 0 12px;
  }
  .article-blockquote {
    padding: 20px 25px;
    margin: 30px 0;
  }
  .article-blockquote p {
    font-size: 1.05rem;
  }
}

@media (max-width: 576px) {
  .blog-detail-meta {
    gap: 15px;
  }
  .blog-detail-meta span {
    font-size: 13px;
  }
}
