/* =======================================================
   SJLLCC Premium Blog & Article Styles
   ======================================================= */
:root {
  --blog-navy: #0a192f;
  --blog-navy-light: #112240;
  --blog-gold: #c5a880;
  --blog-gold-hover: #b09164;
  --blog-gold-light: #fbf7ee;
  --blog-border: #e2e8f0;
  --blog-text: #334155;
}

/* Reading Progress Bar */
.reading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blog-gold), #eab308, var(--blog-gold));
  z-index: 10000;
  width: 0%;
  transition: width 0.1s ease-out;
}

/* Featured Hero Card */
.featured-hero-card {
  background: linear-gradient(135deg, #0a192f 0%, #162a4a 100%);
  border-radius: 16px;
  overflow: hidden;
  color: #ffffff;
  border: 1px solid rgba(197, 168, 128, 0.3);
  box-shadow: 0 15px 35px rgba(10, 25, 47, 0.25);
  margin-bottom: 45px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-hero-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 45px rgba(10, 25, 47, 0.35);
}

.featured-hero-img-wrap {
  position: relative;
  min-height: 320px;
  height: 100%;
}

.featured-hero-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-badge-gold {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(197, 168, 128, 0.2);
  color: var(--blog-gold);
  border: 1px solid var(--blog-gold);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.featured-hero-title {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.4;
  margin: 15px 0;
}

.featured-hero-title a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.featured-hero-title a:hover {
  color: var(--blog-gold);
}

/* Category Filter Pills */
.blog-category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.cat-pill-btn {
  background: #ffffff;
  color: #475569;
  border: 1px solid #cbd5e1;
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cat-pill-btn:hover {
  background: #f8fafc;
  color: var(--blog-navy);
  border-color: var(--blog-gold);
}

.cat-pill-btn.active {
  background: linear-gradient(135deg, var(--blog-navy), #1e3a5f);
  color: #ffffff;
  border-color: var(--blog-navy);
  box-shadow: 0 4px 12px rgba(10, 25, 47, 0.2);
}

.cat-pill-count {
  background: rgba(0, 0, 0, 0.08);
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 10px;
}

.cat-pill-btn.active .cat-pill-count {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

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

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 30px rgba(10, 25, 47, 0.1);
  border-color: var(--blog-gold);
}

.blog-card-img-wrap {
  position: relative;
  width: 100%;
  padding-top: 58%;
  overflow: hidden;
  background: #0a192f;
}

.blog-card-img-wrap img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-img-wrap img {
  transform: scale(1.06);
}

.blog-card-cat-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(10, 25, 47, 0.85);
  color: var(--blog-gold);
  border: 1px solid rgba(197, 168, 128, 0.4);
  backdrop-filter: blur(4px);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  z-index: 2;
}

.blog-card-indicators {
  position: absolute;
  bottom: 12px;
  left: 12px;
  display: flex;
  gap: 6px;
  z-index: 2;
}

.blog-media-badge {
  background: rgba(0, 0, 0, 0.7);
  color: #ffffff;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.blog-media-badge.video {
  background: #dc2626;
}

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

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

.blog-card-title a {
  color: var(--blog-navy);
  text-decoration: none;
  transition: color 0.2s ease;
}

.blog-card-title a:hover {
  color: var(--blog-gold);
}

.blog-card-excerpt {
  color: #64748b;
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 18px;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

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

.author-chip-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #e2e8f0;
}

/* Social Share Bar */
.social-share-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 20px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  margin: 25px 0 35px;
}

.social-share-title {
  font-weight: 700;
  color: var(--blog-navy);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 10px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.share-btn:hover {
  transform: translateY(-2px);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.share-btn.whatsapp { background: #25d366; }
.share-btn.x { background: #000000; }
.share-btn.facebook { background: #1877f2; }
.share-btn.linkedin { background: #0a66c2; }
.share-btn.telegram { background: #229ed9; }
.share-btn.copy { background: #475569; }

/* Video Responsive Player */
.video-responsive-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 12px;
  overflow: hidden;
  background: #000000;
  margin-bottom: 25px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.video-responsive-wrapper iframe,
.video-responsive-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Article Gallery Grid */
.article-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 15px;
  margin: 30px 0;
}

.gallery-photo-thumb {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}

.gallery-photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-photo-thumb:hover img {
  transform: scale(1.08);
}

.gallery-photo-thumb .overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 25, 47, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 22px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-photo-thumb:hover .overlay {
  opacity: 1;
}

/* Author Bio Card */
.author-bio-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 25px;
  background: #f8fafc;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  margin: 35px 0;
}

.author-bio-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--blog-gold);
  flex-shrink: 0;
}

/* Related Posts */
.related-post-card {
  background: #ffffff;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  transition: all 0.25s ease;
  height: 100%;
}

.related-post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  border-color: var(--blog-gold);
}

.related-post-img {
  height: 140px;
  width: 100%;
  object-fit: cover;
}

/* Article Body & Typography */
.blog-article-content {
  font-size: 17.5px;
  line-height: 2.1;
  color: #334155;
  font-family: 'Cairo', sans-serif;
}

.blog-article-content p {
  margin-bottom: 22px;
}

.blog-article-content h1, 
.blog-article-content h2 {
  font-size: 26px;
  font-weight: 800;
  color: #0a192f;
  margin-top: 36px;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f1f5f9;
}

.blog-article-content h3 {
  font-size: 21px;
  font-weight: 700;
  color: #1e293b;
  margin-top: 28px;
  margin-bottom: 14px;
}

.blog-article-content h4, 
.blog-article-content h5 {
  font-size: 18px;
  font-weight: 700;
  color: #334155;
  margin-top: 22px;
  margin-bottom: 12px;
}

.blog-article-content blockquote {
  border-right: 4px solid var(--blog-gold);
  background: #fdfbf7;
  padding: 18px 24px;
  margin: 28px 0;
  border-radius: 0 12px 12px 0;
  font-size: 18px;
  font-style: italic;
  color: #475569;
  box-shadow: 0 2px 10px rgba(197, 168, 128, 0.08);
}

.blog-article-content ul, 
.blog-article-content ol {
  padding-right: 25px;
  margin-bottom: 24px;
}

.blog-article-content li {
  margin-bottom: 10px;
  position: relative;
}

.blog-article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 25px 0;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.blog-article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 25px 0;
}

.blog-article-content th, 
.blog-article-content td {
  border: 1px solid #e2e8f0;
  padding: 12px 15px;
  text-align: right;
}

.blog-article-content th {
  background: #f8fafc;
  color: var(--blog-navy);
  font-weight: 700;
}

/* Sidebar Widgets */
.sidebar-box {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  padding: 25px;
  margin-bottom: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.sidebar-box-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--blog-navy);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f1f5f9;
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-box-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  right: 0;
  width: 40px;
  height: 2px;
  background: var(--blog-gold);
}

.sidebar-cat-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-cat-list li {
  border-bottom: 1px solid #f8fafc;
}

.sidebar-cat-list li:last-child {
  border-bottom: none;
}

.sidebar-cat-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 6px;
  color: #475569;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s ease;
}

.sidebar-cat-list a:hover {
  color: var(--blog-gold);
  transform: translateX(-4px);
}

.sidebar-cat-list .badge {
  font-size: 11px;
  background: #f1f5f9;
  color: #64748b;
  font-weight: 600;
}

.sidebar-recent-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f8fafc;
}

.sidebar-recent-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.sidebar-recent-img {
  width: 70px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.sidebar-recent-title {
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 4px;
}

.sidebar-recent-title a {
  color: var(--blog-navy);
  text-decoration: none;
  transition: color 0.2s;
}

.sidebar-recent-title a:hover {
  color: var(--blog-gold);
}

/* Consultation Sidebar CTA */
.sidebar-cta-card {
  background: linear-gradient(135deg, #0a192f 0%, #162a4a 100%);
  border-radius: 14px;
  padding: 28px 22px;
  color: #ffffff;
  text-align: center;
  border: 1px solid rgba(197, 168, 128, 0.3);
  box-shadow: 0 10px 25px rgba(10, 25, 47, 0.2);
}

.sidebar-cta-card h4 {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 10px;
}

.sidebar-cta-card p {
  font-size: 13px;
  color: #cbd5e1;
  line-height: 1.7;
  margin-bottom: 20px;
}

.sidebar-cta-card .btn-gold {
  background: linear-gradient(135deg, var(--blog-gold), #b09164);
  color: #0a192f;
  font-weight: 800;
  border: none;
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  transition: all 0.2s ease;
  text-decoration: none;
}

.sidebar-cta-card .btn-gold:hover {
  background: #d4b890;
  transform: translateY(-2px);
  color: #0a192f;
}

/* Copy Toast */
.share-toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #0a192f;
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 99999;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  border: 1px solid var(--blog-gold);
}

.share-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
/* Article Header in Details Page - Force White Text on Dark Navy Background */
.article-header-bg h1,
.article-header-bg #articleTitle,
#articleTitle {
  color: #ffffff !important;
  font-weight: 800 !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}
