/* ============================================
   Blog-Specific Styles - Hyderabad Water Purifiers
   Complements ../styles.css
   ============================================ */

/* Blog Index Page */
.blog-hero {
  background: linear-gradient(135deg, #0a1628 0%, #1a3a5c 50%, #0d2847 100%);
  padding: 80px 20px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.blog-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2300b4d8' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.blog-hero h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 2.8rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 15px;
  position: relative;
  z-index: 1;
}

.blog-hero h1 span {
  background: linear-gradient(135deg, #00b4d8, #48cae4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.blog-hero p {
  color: #94a3b8;
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Blog Navigation Header */
.blog-nav {
  background: rgba(10, 22, 40, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 180, 216, 0.15);
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.blog-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 65px;
}

.blog-nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.blog-nav-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #00b4d8, #0077b6);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.blog-nav-logo .logo-text {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: #ffffff;
}

.blog-nav-logo .logo-text span {
  color: #00b4d8;
}

.blog-nav-links {
  display: flex;
  align-items: center;
  gap: 25px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.blog-nav-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.blog-nav-links a:hover {
  color: #00b4d8;
}

.blog-nav-links .nav-cta {
  background: linear-gradient(135deg, #00b4d8, #0077b6);
  color: #ffffff !important;
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 600;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-nav-links .nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 180, 216, 0.4);
}

/* Blog Grid */
.blog-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}

/* Blog Card */
.blog-card {
  background: linear-gradient(145deg, #0d1f3c, #112240);
  border: 1px solid rgba(0, 180, 216, 0.1);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 180, 216, 0.15);
  border-color: rgba(0, 180, 216, 0.3);
}

.blog-card-image {
  height: 200px;
  background: linear-gradient(135deg, #0a1628, #1a3a5c);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.blog-card-image .card-emoji {
  font-size: 3.5rem;
  z-index: 1;
}

.blog-card-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(transparent, #0d1f3c);
}

.blog-card-category {
  position: absolute;
  top: 15px;
  left: 15px;
  background: rgba(0, 180, 216, 0.2);
  color: #48cae4;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
}

.blog-card-content {
  padding: 25px;
}

.blog-card-content h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
  line-height: 1.4;
}

.blog-card-content h3 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.blog-card-content h3 a:hover {
  color: #48cae4;
}

.blog-card-content p {
  color: #94a3b8;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 15px;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.blog-card-meta span {
  color: #64748b;
  font-size: 0.8rem;
}

.blog-card-meta .read-more {
  color: #00b4d8;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: gap 0.3s ease;
}

.blog-card-meta .read-more:hover {
  gap: 8px;
}

/* Article Page Layout */
.article-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
}

.article-main {
  min-width: 0;
}

/* Article Header */
.article-header {
  margin-bottom: 40px;
}

.article-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 0.85rem;
}

.article-breadcrumb a {
  color: #00b4d8;
  text-decoration: none;
}

.article-breadcrumb span {
  color: #64748b;
}

.article-header h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.3;
  margin-bottom: 15px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  color: #64748b;
  font-size: 0.9rem;
  flex-wrap: wrap;
}

.article-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Article Content - Reading Typography */
.article-content {
  color: #c8d6e5;
  font-size: 1.05rem;
  line-height: 1.8;
}

.article-content h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #ffffff;
  margin: 40px 0 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(0, 180, 216, 0.2);
}

.article-content h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #e2e8f0;
  margin: 30px 0 15px;
}

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

.article-content strong {
  color: #ffffff;
  font-weight: 600;
}

.article-content a {
  color: #00b4d8;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 180, 216, 0.3);
  transition: border-color 0.3s ease;
}

.article-content a:hover {
  border-bottom-color: #00b4d8;
}

.article-content ul,
.article-content ol {
  margin: 15px 0 25px 20px;
}

.article-content li {
  margin-bottom: 10px;
  padding-left: 5px;
}

.article-content li::marker {
  color: #00b4d8;
}

/* Featured Snippet Box */
.snippet-box {
  background: linear-gradient(135deg, rgba(0, 180, 216, 0.08), rgba(0, 119, 182, 0.08));
  border: 1px solid rgba(0, 180, 216, 0.2);
  border-left: 4px solid #00b4d8;
  border-radius: 12px;
  padding: 25px;
  margin: 25px 0;
}

.snippet-box h3 {
  color: #48cae4 !important;
  margin-top: 0 !important;
  font-size: 1.1rem !important;
}

.snippet-box p {
  margin-bottom: 10px;
}

/* Comparison Table */
.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 25px 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0, 180, 216, 0.15);
}

.comparison-table thead th {
  background: linear-gradient(135deg, #0d2847, #1a3a5c);
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  padding: 14px 18px;
  text-align: left;
  font-size: 0.9rem;
}

.comparison-table tbody td {
  padding: 12px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #c8d6e5;
  font-size: 0.9rem;
}

.comparison-table tbody tr:nth-child(even) {
  background: rgba(0, 180, 216, 0.03);
}

.comparison-table tbody tr:hover {
  background: rgba(0, 180, 216, 0.08);
}

/* FAQ Section */
.faq-section {
  margin: 40px 0;
}

.faq-section h2 {
  text-align: center;
  border-bottom: none !important;
}

.faq-item {
  background: linear-gradient(145deg, #0d1f3c, #112240);
  border: 1px solid rgba(0, 180, 216, 0.1);
  border-radius: 12px;
  margin-bottom: 15px;
  overflow: hidden;
}

.faq-question {
  padding: 20px 25px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.3s ease;
}

.faq-question:hover {
  background: rgba(0, 180, 216, 0.05);
}

.faq-question h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0 !important;
  padding: 0;
}

.faq-question .faq-toggle {
  color: #00b4d8;
  font-size: 1.2rem;
  font-weight: bold;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
}

.faq-answer {
  padding: 0 25px 20px;
  color: #94a3b8;
  line-height: 1.7;
  font-size: 0.95rem;
}

/* CTA Box */
.cta-box {
  background: linear-gradient(135deg, #0077b6, #00b4d8);
  border-radius: 16px;
  padding: 35px;
  text-align: center;
  margin: 40px 0;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.cta-box h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px !important;
  margin-top: 0 !important;
}

.cta-box p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 20px;
  font-size: 1rem;
}

.cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-btn:hover {
  transform: translateY(-2px);
}

.cta-btn-whatsapp {
  background: #25d366;
  color: #ffffff;
}

.cta-btn-whatsapp:hover {
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

.cta-btn-call {
  background: #ffffff;
  color: #0077b6;
}

.cta-btn-call:hover {
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

/* Sidebar */
.article-sidebar {
  position: sticky;
  top: 85px;
  align-self: start;
}

.sidebar-widget {
  background: linear-gradient(145deg, #0d1f3c, #112240);
  border: 1px solid rgba(0, 180, 216, 0.1);
  border-radius: 16px;
  padding: 25px;
  margin-bottom: 25px;
}

.sidebar-widget h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(0, 180, 216, 0.2);
}

/* Table of Contents Widget */
.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-list li {
  margin-bottom: 8px;
}

.toc-list a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.88rem;
  display: block;
  padding: 6px 12px;
  border-radius: 6px;
  border-left: 2px solid transparent;
  transition: all 0.3s ease;
}

.toc-list a:hover,
.toc-list a.active {
  color: #00b4d8;
  background: rgba(0, 180, 216, 0.05);
  border-left-color: #00b4d8;
}

/* Related Posts Widget */
.related-post {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.related-post:last-child {
  border-bottom: none;
}

.related-post:hover {
  opacity: 0.8;
}

.related-post-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, rgba(0, 180, 216, 0.1), rgba(0, 119, 182, 0.1));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.related-post-text h5 {
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 3px;
  line-height: 1.3;
}

.related-post-text span {
  font-size: 0.75rem;
  color: #64748b;
}

/* Sidebar CTA */
.sidebar-cta {
  background: linear-gradient(135deg, #0077b6, #00b4d8) !important;
  text-align: center;
}

.sidebar-cta h4 {
  border-bottom-color: rgba(255, 255, 255, 0.2) !important;
}

.sidebar-cta p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.sidebar-cta .cta-btn {
  width: 100%;
  justify-content: center;
  margin-bottom: 10px;
}

/* Key Takeaway Box */
.key-takeaway {
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.08), rgba(0, 180, 216, 0.08));
  border: 1px solid rgba(37, 211, 102, 0.2);
  border-radius: 12px;
  padding: 20px 25px;
  margin: 25px 0;
}

.key-takeaway h4 {
  color: #25d366;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.key-takeaway p {
  margin-bottom: 5px;
  font-size: 0.95rem;
}

/* Pro Tip */
.pro-tip {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.08), rgba(255, 152, 0, 0.08));
  border: 1px solid rgba(255, 193, 7, 0.2);
  border-left: 4px solid #ffc107;
  border-radius: 12px;
  padding: 20px 25px;
  margin: 25px 0;
}

.pro-tip h4 {
  color: #ffc107;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

/* Article Footer */
.article-footer {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid rgba(0, 180, 216, 0.1);
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 25px;
}

.article-tag {
  background: rgba(0, 180, 216, 0.1);
  color: #48cae4;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.3s ease;
}

.article-tag:hover {
  background: rgba(0, 180, 216, 0.2);
}

/* Blog Footer */
.blog-footer {
  background: #070d1a;
  border-top: 1px solid rgba(0, 180, 216, 0.1);
  padding: 40px 20px;
  text-align: center;
}

.blog-footer p {
  color: #64748b;
  font-size: 0.85rem;
  margin-bottom: 5px;
}

.blog-footer a {
  color: #00b4d8;
  text-decoration: none;
}

/* Responsive Styles */
@media (max-width: 968px) {
  .article-container {
    grid-template-columns: 1fr;
  }

  .article-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .blog-hero h1 {
    font-size: 2rem;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    padding: 30px 15px;
  }

  .article-header h1 {
    font-size: 1.7rem;
  }

  .article-content {
    font-size: 1rem;
  }

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

  .blog-nav-links {
    gap: 15px;
  }

  .blog-nav-links .hide-mobile {
    display: none;
  }

  .cta-box {
    padding: 25px 20px;
  }

  .cta-box h3 {
    font-size: 1.25rem;
  }

  .comparison-table {
    font-size: 0.85rem;
  }

  .comparison-table thead th,
  .comparison-table tbody td {
    padding: 10px 12px;
  }

  .article-sidebar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .blog-hero {
    padding: 60px 15px 40px;
  }

  .blog-hero h1 {
    font-size: 1.6rem;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .cta-btn {
    justify-content: center;
  }

  .article-container {
    padding: 25px 15px;
  }
}

/* Print Styles */
@media print {
  .blog-nav,
  .article-sidebar,
  .cta-box,
  .blog-footer {
    display: none;
  }

  .article-container {
    grid-template-columns: 1fr;
  }

  .article-content {
    color: #000;
  }

  .article-content h2,
  .article-content h3 {
    color: #000;
  }
}
