/* ==========================================================================
   EPIC UTTARAKHAND NEWS - ENHANCED NEWS BLOG & EDITORIAL READING PORTAL
   Responsive Across Mobile, Tablet, Laptop, and Desktop Screens
   ========================================================================== */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
  margin-top: 1.5rem;
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.blog-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-glow-gold);
}

.blog-thumb-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  background: #000;
}

.blog-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.blog-content {
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-category-badge {
  color: var(--accent-gold);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
}

.blog-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 0.65rem;
}

.blog-excerpt {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.55;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-meta-footer {
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   ARTICLE READER VIEW WITH FLOATING READING DOCK
   ========================================================================== */
.article-reader-container {
  max-width: 860px;
  margin: 1.5rem auto;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.article-header {
  margin-bottom: 1.75rem;
}

.article-category-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.article-headline {
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.article-author-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* Floating Reading Control Dock */
.floating-reading-dock {
  position: sticky;
  top: 1rem;
  z-index: 100;
  background: var(--bg-glass-strong);
  border: 1px solid var(--border-accent);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 1.5rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  flex-wrap: wrap;
}

.reading-dock-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dock-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.dock-btn:hover {
  background: var(--accent-cyan);
  color: #030712;
}

.article-hero-media {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 1.5rem 0;
}

.article-hero-media img {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
}

.article-body-text {
  font-size: 1.1rem;
  line-height: 1.85;
  color: #e2e8f0;
  transition: font-size 0.2s ease;
}

.article-body-text p {
  margin-bottom: 1.5rem;
}

.article-body-text h3 {
  font-size: 1.35rem;
  margin: 2rem 0 0.75rem;
  color: var(--accent-gold);
}

.article-body-text blockquote {
  border-left: 4px solid var(--accent-cyan);
  padding: 0.85rem 1.25rem;
  margin: 1.5rem 0;
  background: rgba(0, 229, 255, 0.05);
  font-style: italic;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: #f8fafc;
}

/* ==========================================================================
   RESPONSIVE RULES FOR BLOG PORTAL
   ========================================================================== */
@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .article-reader-container {
    padding: 1.25rem 1rem;
    border-radius: var(--radius-lg);
    margin: 0.75rem 0;
  }

  .article-headline {
    font-size: 1.6rem;
  }

  .article-body-text {
    font-size: 1rem;
    line-height: 1.7;
  }

  .floating-reading-dock {
    position: static;
    border-radius: var(--radius-md);
  }
}
