/* =========================================
   DBMC Web — Blog Theme
   Premium Dark Blog Layout
   ========================================= */

/* Blog Hero */
.blog-hero {
  padding: 160px 0 80px;
  text-align: center;
  background: var(--bg-dark);
  position: relative;
  overflow: hidden;
}

.blog-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 600px;
  height: 600px;
  background: var(--primary);
  filter: blur(150px);
  opacity: 0.15;
  border-radius: 50%;
}

.blog-hero .subtitle {
  display: inline-block;
  margin-bottom: 20px;
}

.blog-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.1;
}

.blog-hero p {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Blog Grid */
.blog-section {
  padding: 80px 0 120px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 35px;
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  overflow: hidden;
  transition: 0.4s var(--ease);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-8px);
  border-color: rgba(215, 183, 120, 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.blog-card-img {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

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

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

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.blog-card-tag {
  background: rgba(215, 183, 120, 0.1);
  color: var(--accent);
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.blog-card-body h2 {
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 12px;
  transition: 0.3s;
}

.blog-card:hover .blog-card-body h2 {
  color: var(--accent);
}

.blog-card-body .excerpt {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

.blog-card-body .read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  transition: 0.3s;
}

.blog-card-body .read-more i {
  transition: transform 0.3s;
}

.blog-card:hover .read-more i {
  transform: translateX(5px);
}

/* =========================================
   ARTICLE PAGE
   ========================================= */

/* Article Hero */
.article-hero {
  padding: 160px 0 60px;
  background: var(--bg-dark);
  position: relative;
  overflow: hidden;
}

.article-hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent), transparent);
  filter: blur(120px);
  opacity: 0.08;
  border-radius: 50%;
}

.article-hero .container {
  max-width: 850px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.article-meta .tag {
  background: rgba(215, 183, 120, 0.15);
  color: var(--accent);
  padding: 6px 16px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.article-meta .date,
.article-meta .read-time {
  color: var(--text-muted);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.article-hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 25px;
}

.article-hero .article-intro {
  font-size: 1.2rem;
  color: var(--text-muted);
  line-height: 1.7;
  border-left: 3px solid var(--accent);
  padding-left: 20px;
}

/* Article Cover Image */
.article-cover {
  max-width: 900px;
  margin: 0 auto -40px;
  padding: 0 1rem;
  position: relative;
  z-index: 2;
}

.article-cover img {
  width: 100%;
  border-radius: 16px;
  aspect-ratio: 21/9;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Article Content */
.article-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 80px 1rem 120px;
}

.article-content h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 50px 0 20px;
  color: #fff;
  position: relative;
  padding-left: 20px;
}

.article-content h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 5px;
  bottom: 5px;
  width: 4px;
  background: var(--accent);
  border-radius: 2px;
}

.article-content h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 35px 0 15px;
  color: #eee;
}

.article-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.article-content strong {
  color: #fff;
}

.article-content ul,
.article-content ol {
  margin: 15px 0 25px 20px;
  color: var(--text-muted);
  line-height: 1.8;
}

.article-content li {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.article-content blockquote {
  background: rgba(215, 183, 120, 0.05);
  border-left: 4px solid var(--accent);
  padding: 25px 30px;
  margin: 30px 0;
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: #ccc;
  font-size: 1.1rem;
  line-height: 1.7;
}

/* Info Box */
.info-box {
  background: rgba(27, 43, 101, 0.15);
  border: 1px solid rgba(27, 43, 101, 0.3);
  border-radius: 12px;
  padding: 25px 30px;
  margin: 30px 0;
}

.info-box h4 {
  color: var(--accent);
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.info-box p {
  margin: 0;
  font-size: 1rem;
}

/* Pricing Table in Articles */
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
  border-radius: 12px;
  overflow: hidden;
}

.pricing-table th {
  background: var(--primary);
  color: #fff;
  padding: 15px 20px;
  text-align: left;
  font-size: 0.95rem;
  font-weight: 600;
}

.pricing-table td {
  padding: 15px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-size: 0.95rem;
}

.pricing-table tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.02);
}

.pricing-table tr:hover td {
  background: rgba(215, 183, 120, 0.05);
}

/* Article CTA Box */
.article-cta {
  background: linear-gradient(135deg, var(--primary), #0e1a40);
  border: 1px solid rgba(215, 183, 120, 0.2);
  border-radius: 20px;
  padding: 50px;
  text-align: center;
  margin: 60px 0;
}

.article-cta h3 {
  font-size: 1.8rem;
  color: #fff;
  margin: 0 0 15px;
}

.article-cta p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 30px;
  font-size: 1.1rem;
}

.article-cta .btn {
  font-size: 1.05rem;
  padding: 16px 36px;
}

/* Related Articles */
.related-section {
  background: #0b0f19;
  padding: 80px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.related-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 50px;
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 30px;
}

.breadcrumbs a {
  color: var(--text-muted);
  transition: 0.3s;
}

.breadcrumbs a:hover {
  color: var(--accent);
}

.breadcrumbs .sep {
  opacity: 0.4;
}

/* TOC - Table of Contents */
.toc {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 25px 30px;
  margin: 30px 0 40px;
}

.toc h4 {
  font-size: 1rem;
  margin: 0 0 15px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.toc ol {
  margin: 0;
  padding-left: 20px;
}

.toc li {
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.toc a {
  color: var(--text-muted);
  transition: 0.3s;
}

.toc a:hover {
  color: var(--accent);
}

/* Responsive */
@media (max-width: 900px) {
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .article-cta {
    padding: 35px 25px;
  }

  .article-content h2 {
    font-size: 1.5rem;
  }
}

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

  .article-hero h1 {
    font-size: 1.8rem;
  }
}