/* ==========================================================================
   SANI ACTIVE — BLOG & INSIGHTS STYLESHEET (css/blog.css)
   ========================================================================== */

:root {
  --blog-cyan: #00bcd4;
  --blog-dark: #0f172a;
  --blog-slate: #1e293b;
  --blog-muted: #64748b;
  --blog-border: #e2e8f0;
}

.blog-hero {
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  color: #fff;
  padding: 4rem 1.5rem 3rem;
  text-align: center;
}
.blog-hero h1 {
  font-size: 2.75rem;
  font-weight: 900;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}
.blog-hero p {
  color: #94a3b8;
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.blog-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
@media (max-width: 960px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .blog-grid { grid-template-columns: 1fr; }
}

.blog-card {
  background: #fff;
  border-radius: 1.25rem;
  border: 1px solid var(--blog-border);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  text-decoration: none;
  color: inherit;
}
.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 188, 212, 0.15);
  border-color: rgba(0, 188, 212, 0.4);
}
.blog-card__img {
  width: 100%;
  height: 200px;
  background: #0f172a;
  object-fit: cover;
}
.blog-card__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.blog-card__category {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--blog-cyan);
  margin-bottom: 0.5rem;
}
.blog-card__title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--blog-slate);
  margin: 0 0 0.75rem;
  line-height: 1.35;
}
.blog-card__snippet {
  font-size: 0.9rem;
  color: var(--blog-muted);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1rem;
}
.blog-card__meta {
  font-size: 0.8rem;
  color: #94a3b8;
  display: flex;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid #f1f5f9;
}

/* Single Post View */
.post-container {
  max-width: 800px;
  margin: 3rem auto;
  padding: 0 1.5rem;
}
.post-header {
  margin-bottom: 2.5rem;
}
.post-header h1 {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--blog-slate);
  line-height: 1.25;
  margin: 0.5rem 0 1rem;
}
.post-meta-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--blog-muted);
}
.post-cover {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
  border-radius: 1.25rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
.post-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #334155;
}
.post-content h2 {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--blog-slate);
  margin: 2.5rem 0 1rem;
}
.post-content h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--blog-slate);
  margin: 2rem 0 0.75rem;
}
.post-content p {
  margin-bottom: 1.5rem;
}
.post-content ul, .post-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}
.post-content li {
  margin-bottom: 0.5rem;
}
        /* Scoped Blog Page Styles */
        .blog-page {
            background-color: #0b1120;
            color: #e2e8f0;
            font-family: var(--font-primary, 'Inter', sans-serif);
        }
        .blog-hero {
            background: linear-gradient(135deg, #0b1120 0%, #1e293b 100%);
            color: #ffffff;
            padding: 80px 20px 60px;
            text-align: center;
            position: relative;
            overflow: hidden;
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        }
        .blog-hero::before {
            content: '';
            position: absolute;
            top: -50%;
            left: 50%;
            transform: translateX(-50%);
            width: 800px;
            height: 400px;
            background: radial-gradient(circle, rgba(82, 200, 236, 0.15) 0%, transparent 70%);
            pointer-events: none;
        }
        .blog-hero-container {
            max-width: 850px;
            margin: 0 auto;
            position: relative;
            z-index: 2;
        }
        .blog-badge {
            display: inline-block;
            background: rgba(82, 200, 236, 0.12);
            color: var(--cyan-energy, #52c8ec);
            border: 1px solid rgba(82, 200, 236, 0.3);
            padding: 6px 16px;
            border-radius: 20px;
            font-size: 0.85rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 20px;
        }
        .blog-hero h1 {
            font-size: 2.75rem;
            font-weight: 800;
            margin-bottom: 16px;
            line-height: 1.2;
            color: #ffffff;
        }
        .blog-hero p {
            font-size: 1.15rem;
            color: #94a3b8;
            margin-bottom: 32px;
            line-height: 1.6;
        }
        .blog-search-box {
            display: flex;
            max-width: 550px;
            margin: 0 auto;
            gap: 10px;
        }
        .blog-search-input {
            flex: 1;
            padding: 14px 20px;
            border-radius: 12px;
            border: 1px solid rgba(255, 255, 255, 0.15);
            background: rgba(15, 23, 42, 0.8);
            color: #ffffff;
            font-size: 0.95rem;
            outline: none;
            transition: all 0.2s ease;
        }
        .blog-search-input:focus {
            border-color: var(--cyan-energy, #52c8ec);
            box-shadow: 0 0 0 3px rgba(82, 200, 236, 0.2);
        }
        
        .blog-filter-bar {
            background: #0f172a;
            padding: 20px 0;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        }
        .filter-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 15px;
        }
        .filter-tags {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
        }
        .filter-tag {
            padding: 8px 18px;
            border-radius: 8px;
            background: rgba(255, 255, 255, 0.05);
            color: #94a3b8;
            font-size: 0.9rem;
            font-weight: 600;
            cursor: pointer;
            border: 1px solid transparent;
            transition: all 0.2s ease;
            text-decoration: none;
        }
        .filter-tag.active, .filter-tag:hover {
            background: var(--cyan-energy, #52c8ec);
            color: #0f172a;
            border-color: var(--cyan-energy, #52c8ec);
        }
        
        .blog-section {
            padding: 60px 20px;
            background: #0b1120;
            color: #e2e8f0;
        }
        .blog-container {
            max-width: 1200px;
            margin: 0 auto;
        }
        
        /* Featured Post */
        .featured-card {
            background: rgba(15, 23, 42, 0.9);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 20px;
            overflow: hidden;
            display: grid;
            grid-template-columns: 1fr 1fr;
            margin-bottom: 50px;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
            transition: transform 0.3s ease;
        }
        .featured-card:hover {
            transform: translateY(-4px);
            border-color: rgba(82, 200, 236, 0.4);
        }
        .featured-img-wrap {
            position: relative;
            min-height: 340px;
            background: #1e293b;
            overflow: hidden;
        }
        .featured-img-wrap img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        .play-btn-overlay {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 64px;
            height: 64px;
            background: rgba(82, 200, 236, 0.9);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 0 30px rgba(82, 200, 236, 0.6);
            cursor: pointer;
            transition: all 0.2s ease;
        }
        .play-btn-overlay:hover {
            transform: translate(-50%, -50%) scale(1.1);
            background: var(--cyan-energy, #52c8ec);
        }
        .play-btn-overlay svg {
            fill: #0f172a;
            margin-left: 4px;
        }
        .featured-content {
            padding: 40px;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }
        .post-meta {
            display: flex;
            align-items: center;
            gap: 12px;
            font-size: 0.85rem;
            color: var(--cyan-energy, #52c8ec);
            font-weight: 700;
            margin-bottom: 12px;
        }
        .featured-content h2 {
            font-size: 1.85rem;
            font-weight: 800;
            color: #ffffff;
            margin-bottom: 16px;
            line-height: 1.3;
        }
        .featured-content p {
            color: #94a3b8;
            font-size: 1rem;
            line-height: 1.6;
            margin-bottom: 24px;
        }
        .btn-read-more {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: var(--cyan-energy, #52c8ec);
            color: #0f172a;
            padding: 12px 24px;
            border-radius: 10px;
            font-weight: 700;
            text-decoration: none;
            width: fit-content;
            transition: all 0.2s ease;
            cursor: pointer;
            border: none;
        }
        .btn-read-more:hover {
            background: #7dd3fc;
            box-shadow: 0 4px 20px rgba(82, 200, 236, 0.4);
        }

        /* Grid Cards */
        .grid-title {
            font-size: 1.5rem;
            font-weight: 800;
            margin-bottom: 30px;
            color: #ffffff;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        .blog-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
            gap: 30px;
        }
        .blog-card {
            background: rgba(15, 23, 42, 0.8);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 16px;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            transition: all 0.3s ease;
        }
        .blog-card:hover {
            transform: translateY(-4px);
            border-color: rgba(82, 200, 236, 0.4);
            box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4);
        }
        .blog-card-img {
            height: 200px;
            background: #1e293b;
            position: relative;
            overflow: hidden;
        }
        .blog-card-img img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        .blog-card-body {
            padding: 24px;
            display: flex;
            flex-direction: column;
            flex: 1;
        }
        .blog-card-body h3 {
            font-size: 1.25rem;
            font-weight: 700;
            color: #ffffff;
            margin-bottom: 12px;
            line-height: 1.4;
        }
        .blog-card-body p {
            color: #94a3b8;
            font-size: 0.95rem;
            line-height: 1.5;
            margin-bottom: 20px;
            flex: 1;
        }
        .blog-card-footer {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding-top: 16px;
            border-top: 1px solid rgba(255, 255, 255, 0.06);
            font-size: 0.85rem;
            color: #64748b;
        }

        /* Newsletter Banner */
        .newsletter-banner {
            background: linear-gradient(135deg, rgba(82, 200, 236, 0.1) 0%, rgba(15, 23, 42, 0.95) 100%);
            border: 1px solid rgba(82, 200, 236, 0.25);
            border-radius: 24px;
            padding: 50px 40px;
            margin-top: 70px;
            text-align: center;
            position: relative;
        }
        .newsletter-banner h2 {
            font-size: 2rem;
            font-weight: 800;
            color: #ffffff;
            margin-bottom: 12px;
        }
        .newsletter-banner p {
            color: #94a3b8;
            font-size: 1.05rem;
            max-width: 600px;
            margin: 0 auto 30px;
        }
        .newsletter-form {
            display: flex;
            max-width: 500px;
            margin: 0 auto;
            gap: 12px;
        }
        .newsletter-form input {
            flex: 1;
            padding: 14px 20px;
            border-radius: 12px;
            border: 1px solid rgba(255, 255, 255, 0.2);
            background: rgba(15, 23, 42, 0.9);
            color: #ffffff;
            font-size: 0.95rem;
            outline: none;
        }
        .newsletter-form button {
            background: var(--cyan-energy, #52c8ec);
            color: #0f172a;
            font-weight: 700;
            padding: 14px 28px;
            border-radius: 12px;
            border: none;
            cursor: pointer;
            transition: all 0.2s ease;
        }
        .newsletter-form button:hover {
            background: #7dd3fc;
            box-shadow: 0 4px 20px rgba(82, 200, 236, 0.4);
        }
        .newsletter-guarantee {
            font-size: 0.8rem;
            color: #64748b;
            margin-top: 14px;
        }

        /* Modal Reader */
        .modal-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(11, 17, 32, 0.85);
            backdrop-filter: blur(10px);
            z-index: 9999;
            justify-content: center;
            align-items: center;
            padding: 20px;
        }
        .modal-overlay.active {
            display: flex;
        }
        .modal-content {
            background: #0f172a;
            border: 1px solid rgba(255, 255, 255, 0.12);
            border-radius: 24px;
            max-width: 850px;
            width: 100%;
            max-height: 90vh;
            overflow-y: auto;
            padding: 40px;
            position: relative;
            color: #e2e8f0;
            box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
        }
        .modal-close {
            position: absolute;
            top: 20px;
            right: 24px;
            background: rgba(255, 255, 255, 0.1);
            border: none;
            color: #ffffff;
            font-size: 1.5rem;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.2s ease;
        }
        .modal-close:hover {
            background: rgba(239, 68, 68, 0.8);
        }
        .video-container {
            position: relative;
            padding-bottom: 56.25%;
            height: 0;
            overflow: hidden;
            border-radius: 16px;
            margin: 24px 0;
            background: #000;
        }
        .video-container iframe {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            border: 0;
        }

        @media (max-width: 768px) {
            .featured-card {
                grid-template-columns: 1fr;
            }
            .blog-hero h1 {
                font-size: 2rem;
            }
            .newsletter-form {
                flex-direction: column;
            }
        }
