/* ==============================================================================
   FUTURE TECH CLOUD - BLOG & CMS STYLESYSTEM
   Futuristic Glassmorphic Enterprise Styling, Cyber Accents & Responsive Layout
   ============================================================================== */

/* Blog Hero & Listing Header */
.blog-header-section {
  padding: 130px 0 40px;
  background: radial-gradient(circle at 50% 0%, rgba(0, 102, 255, 0.12) 0%, transparent 60%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}

.blog-header-content {
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}

.blog-header-overline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(0, 102, 255, 0.1);
  border: 1px solid rgba(0, 102, 255, 0.3);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #38bdf8;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.blog-header-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.blog-header-desc {
  font-size: 1.05rem;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 32px;
}

/* Search & Filter Toolbar */
.blog-toolbar {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 32px 0 40px;
}

.blog-search-bar {
  display: flex;
  max-width: 640px;
  margin: 0 auto;
  width: 100%;
  position: relative;
}

.blog-search-input {
  width: 100%;
  padding: 14px 20px 14px 48px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.95rem;
  transition: all 0.25s ease;
  backdrop-filter: blur(12px);
}

.blog-search-input:focus {
  outline: none;
  border-color: #0066cc;
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.25);
  background: rgba(15, 23, 42, 0.95);
}

.blog-search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  pointer-events: none;
}

.blog-category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  align-items: center;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #94a3b8;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.category-pill:hover {
  background: rgba(0, 102, 204, 0.15);
  border-color: rgba(0, 102, 204, 0.4);
  color: #ffffff;
  transform: translateY(-1px);
}

.category-pill.active {
  background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
  border-color: #0066cc;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 102, 204, 0.35);
}

.category-pill .pill-count {
  font-size: 0.72rem;
  opacity: 0.8;
  background: rgba(0, 0, 0, 0.25);
  padding: 2px 6px;
  border-radius: 999px;
}

/* Featured Hero Post Card */
.featured-post-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(0, 102, 204, 0.3);
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 48px;
  backdrop-filter: blur(12px);
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.featured-post-card:hover {
  border-color: #0066cc;
  box-shadow: 0 14px 40px rgba(0, 102, 204, 0.25);
  transform: translateY(-2px);
}

.featured-img-wrap {
  position: relative;
  min-height: 340px;
  overflow: hidden;
}

.featured-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.featured-post-card:hover .featured-img-wrap img {
  transform: scale(1.03);
}

.featured-post-content {
  padding: 36px 36px 36px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-tag {
  display: inline-block;
  align-self: flex-start;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(0, 102, 204, 0.2);
  color: #38bdf8;
  border: 1px solid rgba(0, 102, 204, 0.4);
  margin-bottom: 14px;
}

.featured-post-title {
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
  margin-bottom: 14px;
}

.featured-post-title a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.featured-post-title a:hover {
  color: #38bdf8;
}

.featured-post-excerpt {
  font-size: 0.96rem;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 24px;
}

.post-meta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.84rem;
  color: #64748b;
  flex-wrap: wrap;
}

.post-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Post Cards Grid */
.blogs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 28px;
  margin-bottom: 48px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.blog-card:hover {
  border-color: rgba(0, 102, 204, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  transform: translateY(-4px);
}

.blog-card-img-wrap {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: #0b1120;
}

.blog-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.blog-card-category-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 4px 10px;
  background: rgba(11, 17, 32, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  color: #38bdf8;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  backdrop-filter: blur(6px);
}

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

.blog-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  color: #ffffff;
  margin-bottom: 12px;
}

.blog-card-title a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.blog-card-title a:hover {
  color: #38bdf8;
}

.blog-card-excerpt {
  font-size: 0.9rem;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 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.8rem;
  color: #64748b;
}

/* Pagination */
.blog-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 40px 0;
}

.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.page-btn:hover {
  background: rgba(0, 102, 204, 0.2);
  border-color: #0066cc;
  color: #ffffff;
}

.page-btn.active {
  background: #0066cc;
  border-color: #0066cc;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.35);
}

.page-btn.disabled {
  opacity: 0.35;
  pointer-events: none;
}

/* ==============================================================================
   SINGLE BLOG ARTICLE PAGE
   ============================================================================== */

.article-hero {
  padding: 130px 0 30px;
  background: radial-gradient(circle at 50% 0%, rgba(0, 102, 255, 0.14) 0%, transparent 60%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.article-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.82rem;
  color: #64748b;
  margin-bottom: 20px;
}

.article-breadcrumbs a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s ease;
}

.article-breadcrumbs a:hover {
  color: #38bdf8;
}

.article-breadcrumbs .breadcrumb-sep {
  opacity: 0.4;
}

.article-title {
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  color: #ffffff;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.article-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.88rem;
  color: #94a3b8;
}

.article-author-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.article-author-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0066cc, #0284c7);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
}

.article-featured-image {
  margin: 36px 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.article-featured-image img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  display: block;
}

/* Article Layout: Main Body + Sticky Sidebar */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  margin-top: 36px;
  margin-bottom: 60px;
}

/* Table of Contents */
.toc-box {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(0, 102, 204, 0.25);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 32px;
  backdrop-filter: blur(10px);
}

.toc-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 12px;
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.toc-list a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.92rem;
  line-height: 1.45;
  transition: all 0.2s ease;
  display: block;
}

.toc-list a:hover {
  color: #38bdf8;
  transform: translateX(4px);
}

.toc-list li.toc-level-3 {
  padding-left: 18px;
  font-size: 0.86rem;
}

/* Sanitized Article Typography */
.article-content {
  font-size: 1.06rem;
  line-height: 1.8;
  color: #cbd5e1;
}

.article-content h2 {
  font-size: 1.85rem;
  font-weight: 800;
  color: #ffffff;
  margin: 40px 0 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  letter-spacing: -0.01em;
}

.article-content h3 {
  font-size: 1.45rem;
  font-weight: 700;
  color: #f1f5f9;
  margin: 32px 0 14px;
}

.article-content h4 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #e2e8f0;
  margin: 24px 0 12px;
}

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

.article-content a {
  color: #38bdf8;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.article-content a:hover {
  color: #7dd3fc;
}

.article-content ul, .article-content ol {
  margin: 0 0 24px 24px;
}

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

.article-content blockquote {
  margin: 28px 0;
  padding: 20px 24px;
  background: rgba(0, 102, 204, 0.08);
  border-left: 4px solid #0066cc;
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: #e2e8f0;
}

.article-content pre {
  background: #090d16;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 20px;
  overflow-x: auto;
  margin: 28px 0;
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 0.92rem;
  color: #38bdf8;
}

.article-content code {
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 0.88em;
  color: #38bdf8;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
  font-size: 0.95rem;
}

.article-content th, .article-content td {
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: left;
}

.article-content th {
  background: rgba(0, 102, 204, 0.15);
  color: #ffffff;
  font-weight: 700;
}

.article-content tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

.article-content img {
  max-width: 100%;
  border-radius: 12px;
  margin: 24px 0;
}

.article-content figure {
  margin: 30px 0;
  text-align: center;
}

.article-content figcaption {
  font-size: 0.84rem;
  color: #64748b;
  margin-top: 8px;
  font-style: italic;
}

.article-content iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 12px;
  margin: 24px 0;
}

/* Article Tags */
.article-tags-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 40px 0 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.article-tag-item {
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
  color: #94a3b8;
  text-decoration: none;
  transition: all 0.2s ease;
}

.article-tag-item:hover {
  background: rgba(0, 102, 204, 0.2);
  border-color: #0066cc;
  color: #ffffff;
}

/* Social Sharing Bar */
.social-share-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 0;
  margin: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.social-share-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #cbd5e1;
  margin-right: 8px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.share-btn:hover {
  transform: translateY(-2px);
  color: #ffffff;
}

.share-btn.share-x:hover { background: #000000; border-color: #333; }
.share-btn.share-linkedin:hover { background: #0a66c2; border-color: #0a66c2; }
.share-btn.share-wa:hover { background: #25d366; border-color: #25d366; }
.share-btn.share-fb:hover { background: #1877f2; border-color: #1877f2; }
.share-btn.share-copy:hover { background: #0066cc; border-color: #0066cc; }

/* Sticky Article Sidebar */
.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-sticky-wrap {
  position: sticky;
  top: 100px;
}

.sidebar-card {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px;
  backdrop-filter: blur(10px);
}

.sidebar-card-title {
  font-size: 1.08rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Related Posts */
.related-posts-section {
  padding: 60px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 15, 29, 0.4);
}

.related-posts-heading {
  font-size: 1.8rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 28px;
}

/* Admin Preview Mode Alert Banner */
.admin-preview-banner {
  background: linear-gradient(90deg, #b45309 0%, #d97706 100%);
  color: #ffffff;
  padding: 12px 20px;
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
  position: sticky;
  top: 0;
  z-index: 9999;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.admin-preview-banner a {
  color: #ffffff;
  text-decoration: underline;
  margin-left: 8px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .featured-post-card {
    grid-template-columns: 1fr;
  }
  .featured-post-content {
    padding: 24px;
  }
  .featured-img-wrap {
    min-height: 240px;
  }
  .article-layout {
    grid-template-columns: 1fr;
  }
  .sidebar-sticky-wrap {
    position: static;
  }
}

@media (max-width: 640px) {
  .blogs-grid {
    grid-template-columns: 1fr;
  }
  .article-title {
    font-size: 1.75rem;
  }
  .article-meta-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}
