/* ========================================
   Blog System Styles — INDIATECH247
   ======================================== */

/* Blog Hero / Header */
.blog-hero {
  background: linear-gradient(135deg, #442B6D 0%, #5a3a8a 50%, #6B46A8 100%);
  padding: 4rem 0 3rem;
  position: relative;
  overflow: hidden;
}
.blog-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
  border-radius: 50%;
}
.blog-hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 70%);
  border-radius: 50%;
}
.blog-hero .container { position: relative; z-index: 2; }
.blog-hero h1 {
  color: white;
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
.blog-hero .subtitle {
  color: rgba(255,255,255,0.85);
  font-size: 1.15rem;
  line-height: 1.7;
  max-width: 680px;
  margin-bottom: 0;
}
.blog-hero .hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.blog-hero .hero-stat {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
}
.blog-hero .hero-stat ion-icon {
  font-size: 1.2rem;
  color: #FFD700;
}

/* Blog Listing Grid */
.blog-listing { padding: 3.5rem 0 4rem; background: #f7f5fa; }

.blog-card {
  background: white;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0,0,0,0.04);
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(68,43,109,0.12), 0 2px 8px rgba(0,0,0,0.06);
}
.blog-card-body {
  padding: 1.75rem 1.75rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-card-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  margin-bottom: 1rem;
  width: fit-content;
}
.blog-card-tag.projectors { background: #f0e6ff; color: #442B6D; }
.blog-card-tag.displays   { background: #e6f7ed; color: #1a7a3a; }
.blog-card-tag.sound      { background: #fff3e0; color: #b45309; }
.blog-card-tag.checklists { background: #e8f4fd; color: #1565c0; }
.blog-card-tag.troubleshooting { background: #fde8e8; color: #c53030; }

.blog-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.4;
  margin-bottom: 0.75rem;
}
.blog-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
.blog-card-title a:hover { color: #442B6D; }

.blog-card-excerpt {
  color: #5a5a6e;
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
  flex: 1;
}
.blog-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid #f0eff2;
}
.blog-card-date {
  font-size: 0.8rem;
  color: #999;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.blog-card-date ion-icon { font-size: 0.95rem; }
.blog-card-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: #442B6D;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: gap 0.2s;
}
.blog-card-link:hover { gap: 0.6rem; color: #6B46A8; }

/* Featured Blog Card — full-width top card */
.blog-card-featured {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06), 0 8px 30px rgba(68,43,109,0.08);
  margin-bottom: 2.5rem;
  border: 1px solid rgba(0,0,0,0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.blog-card-featured:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(68,43,109,0.14);
}
.blog-card-featured .featured-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 300px;
}
.blog-card-featured .featured-visual {
  background: linear-gradient(135deg, #442B6D 0%, #6B46A8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}
.blog-card-featured .featured-visual::before {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
  top: -40px;
  right: -40px;
}
.blog-card-featured .featured-icon {
  font-size: 6rem;
  color: rgba(255,255,255,0.25);
}
.blog-card-featured .featured-badge {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  background: rgba(255,215,0,0.9);
  color: #1a1a2e;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
}
.blog-card-featured .featured-body {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.blog-card-featured .blog-card-tag { margin-bottom: 1.25rem; }
.blog-card-featured .blog-card-title { font-size: 1.6rem; margin-bottom: 1rem; }
.blog-card-featured .blog-card-excerpt { font-size: 1rem; margin-bottom: 1.5rem; }

/* ========================================
   Blog Post / Article Styles
   ======================================== */

/* Article Hero Header */
.article-hero {
  background: linear-gradient(135deg, #442B6D 0%, #5a3a8a 50%, #6B46A8 100%);
  padding: 3.5rem 0 3rem;
  position: relative;
  overflow: hidden;
}
.article-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -8%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
  border-radius: 50%;
}
.article-hero .container { position: relative; z-index: 2; }
.article-hero .article-tag {
  display: inline-block;
  background: rgba(255,215,0,0.9);
  color: #1a1a2e;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  margin-bottom: 1.25rem;
}
.article-hero h1 {
  color: white;
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
  max-width: 800px;
}
.article-hero .article-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  color: rgba(255,255,255,0.7);
  font-size: 0.88rem;
}
.article-hero .article-meta span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.article-hero .article-meta ion-icon { font-size: 1.1rem; }
.article-hero .article-meta a { color: rgba(255,255,255,0.85); text-decoration: underline; }
.article-hero .article-meta a:hover { color: white; }

/* Article Body */
.article-body {
  padding: 3rem 0 2rem;
}
.article-content {
  max-width: none;
}
.article-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a2e;
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #f0e6ff;
  line-height: 1.3;
}
.article-content h2:first-child { margin-top: 0; }
.article-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #333;
  margin: 2rem 0 0.75rem;
}
.article-content p {
  color: #3d3d4e;
  line-height: 1.85;
  margin-bottom: 1.15rem;
  font-size: 1.02rem;
}
.article-content ul, .article-content ol {
  color: #3d3d4e;
  line-height: 2;
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}
.article-content li { margin-bottom: 0.3rem; }
.article-content a {
  color: #442B6D;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(68,43,109,0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}
.article-content a:hover { text-decoration-color: #442B6D; }

/* Callout / Info Box */
.article-callout {
  background: #f5f0ff;
  border-left: 4px solid #442B6D;
  padding: 1.5rem 1.75rem;
  margin: 1.5rem 0;
  border-radius: 0 8px 8px 0;
}
.article-callout p { margin-bottom: 0.5rem; }
.article-callout p:last-child { margin-bottom: 0; }
.article-callout strong { color: #442B6D; }

/* Table */
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.92rem;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.article-content thead tr {
  background: #442B6D;
  color: white;
}
.article-content th {
  padding: 0.85rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.article-content td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid #f0eff2;
}
.article-content tbody tr:nth-child(even) { background: #faf9fc; }
.article-content tbody tr:hover { background: #f5f0ff; }

/* FAQ Section */
.blog-faq { margin: 2.5rem 0; }
.blog-faq-item {
  background: white;
  border: 1px solid #e8e6ee;
  border-radius: 10px;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: border-color 0.2s;
}
.blog-faq-item:hover { border-color: #d0c8e0; }
.blog-faq-item h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a1a2e;
  padding: 1.25rem 1.5rem;
  margin: 0;
  background: #faf9fc;
  border-bottom: 1px solid #f0eff2;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.blog-faq-item h3::before {
  content: 'Q';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  background: #442B6D;
  color: white;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
}
.blog-faq-item p {
  padding: 1.25rem 1.5rem 1.25rem 3.5rem;
  margin: 0;
  color: #4a4a5a;
  line-height: 1.8;
  font-size: 0.95rem;
}

/* Author Box */
.blog-author {
  display: flex;
  gap: 1.5rem;
  padding: 2rem;
  background: linear-gradient(135deg, #faf9fc 0%, #f5f0ff 100%);
  border-radius: 14px;
  margin: 2.5rem 0 1.5rem;
  border: 1px solid #e8e2f4;
  align-items: center;
}
.blog-author-avatar {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #442B6D, #6B46A8);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.blog-author-avatar ion-icon {
  font-size: 2rem;
  color: white;
}
.blog-author-info h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 0.35rem;
}
.blog-author-info p {
  font-size: 0.88rem;
  color: #666;
  line-height: 1.6;
  margin: 0;
}
.blog-author-info a { color: #442B6D; font-weight: 600; }

/* Back to Blog link */
.blog-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #442B6D;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.6rem 1.25rem;
  border: 2px solid #e8e2f4;
  border-radius: 8px;
  transition: all 0.2s;
  margin-top: 1rem;
}
.blog-back-link:hover {
  background: #f5f0ff;
  border-color: #442B6D;
  gap: 0.6rem;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 768px) {
  .blog-hero h1 { font-size: 2rem; }
  .blog-hero .hero-stats { gap: 1.5rem; }
  .blog-card-featured .featured-inner { grid-template-columns: 1fr; }
  .blog-card-featured .featured-visual { min-height: 160px; padding: 1.5rem; }
  .blog-card-featured .featured-body { padding: 1.75rem; }
  .blog-card-featured .blog-card-title { font-size: 1.3rem; }
  .article-hero h1 { font-size: 1.8rem; }
  .article-hero { padding: 2.5rem 0 2rem; }
  .article-content h2 { font-size: 1.3rem; }
  .blog-author { flex-direction: column; text-align: center; gap: 1rem; }
  .blog-faq-item h3 { font-size: 0.95rem; padding: 1rem 1.25rem; }
  .blog-faq-item p { padding: 1rem 1.25rem; }
}
@media (max-width: 480px) {
  .blog-hero h1 { font-size: 1.7rem; }
  .blog-card-body { padding: 1.25rem; }
  .blog-card-title { font-size: 1.1rem; }
  .article-hero h1 { font-size: 1.5rem; }
}
