/* =========================================================
   Blog — listing + article pages
   ========================================================= */

/* --- Variables ------------------------------------------ */
:root {
  --blog-navy: #0a1628;
  --blog-blue: #0066CC;
  --blog-orange: #FF6B35;
  --blog-gold: #f59e0b;
  --blog-gray-50: #f8fafc;
  --blog-gray-100: #f1f5f9;
  --blog-gray-200: #e2e8f0;
  --blog-gray-400: #94a3b8;
  --blog-gray-500: #64748b;
  --blog-gray-600: #475569;
  --blog-gray-700: #334155;
  --blog-gray-800: #1e293b;
  --blog-shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --blog-shadow-md: 0 4px 6px -1px rgba(0,0,0,.1);
  --blog-shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1);
  --blog-shadow-xl: 0 20px 40px -8px rgba(10,22,40,.25);
}

/* --- Blog Hero ------------------------------------------ */
.blog-hero {
  background: linear-gradient(135deg, #0a1628 0%, #0A2540 100%);
  color: #fff;
  padding: 72px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.blog-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 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='%23ffffff' fill-opacity='0.03'%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/svg%3E");
  pointer-events: none;
}

.blog-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
}

.blog-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 24px;
}

.blog-hero-badge svg {
  width: 15px;
  height: 15px;
  fill: var(--blog-gold);
}

.blog-hero-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  color: #fff;
  margin-bottom: 18px;
  line-height: 1.15;
}

.blog-hero-highlight {
  color: var(--blog-gold);
}

.blog-hero-sub {
  font-size: 18px;
  color: rgba(255,255,255,.75);
  margin: 0;
  line-height: 1.7;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Category Toolbar ----------------------------------- */
.blog-toolbar {
  background: var(--blog-gray-50);
  border-bottom: 1px solid var(--blog-gray-200);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.filter-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 18px;
  border-radius: 999px;
  border: 1px solid var(--blog-gray-200);
  font-size: 13px;
  font-weight: 600;
  color: var(--blog-gray-600);
  background: #fff;
  text-decoration: none;
  transition: all .18s ease;
  white-space: nowrap;
}

.chip:hover {
  border-color: var(--blog-blue);
  color: var(--blog-blue);
}

.chip.active {
  background: var(--blog-blue);
  border-color: var(--blog-blue);
  color: #fff;
}

/* --- Blog view content area ----------------------------- */
.blog-view-content {
  padding-top: 56px;
  padding-bottom: 24px;
}

/* --- Category pills on cards ---------------------------- */
.post-cat {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  padding: 4px 12px;
  border-radius: 6px;
  background: rgba(0,102,204,.1);
  color: var(--blog-blue);
}

.post-cat.compliance       { background: rgba(4,120,87,.12);  color: #047857; }
.post-cat.fedramp          { background: rgba(10,37,64,.1);   color: #0A2540; }
.post-cat.hosting          { background: rgba(0,102,204,.12); color: #0066CC; }
.post-cat.gdh-news,
.post-cat.govdatahosting-news { background: rgba(245,158,11,.12); color: #b45309; }
.post-cat.managed-services { background: rgba(109,40,217,.12); color: #6d28d9; }
.post-cat.disaster-recovery{ background: rgba(185,28,28,.12); color: #b91c1c; }
.post-cat.videos           { background: rgba(0,0,0,.07);     color: #334155; }

/* =========================================================
   Featured Post (first card in listing)
   ========================================================= */
.blog-featured-wrap .post-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--blog-shadow-lg);
  border: 1px solid var(--blog-gray-200);
  margin-bottom: 48px;
  background: #fff;
}

.blog-featured-wrap .post-card-img {
  height: 100%;
  min-height: 360px;
  background-size: cover;
  background-position: center;
  border-radius: 0;
  position: relative;
}

.blog-featured-wrap .post-card-img-link {
  position: absolute;
  inset: 0;
}

.blog-featured-wrap .post-card-body {
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.blog-featured-wrap .post-card-title {
  font-size: 26px;
  line-height: 1.3;
  margin: 14px 0 16px;
  font-weight: 800;
}

.blog-featured-wrap .post-card-excerpt {
  font-size: 16px;
  line-height: 1.75;
  color: var(--blog-gray-600);
  margin-bottom: 24px;
}

.blog-featured-wrap .post-card-read-more {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  background: var(--blog-blue);
  color: #fff;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  width: fit-content;
  transition: background .18s;
}

.blog-featured-wrap .post-card-read-more:hover {
  background: #0A2540;
}

/* =========================================================
   Post Grid (cards 2–N)
   ========================================================= */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 48px;
}

.post-grid .post-card {
  background: #fff;
  border: 1px solid var(--blog-gray-200);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, transform .2s;
  text-decoration: none;
}

.post-grid .post-card:hover {
  box-shadow: var(--blog-shadow-lg);
  transform: translateY(-3px);
}

.post-card-img {
  height: 200px;
  background-size: cover;
  background-position: center;
  background-color: var(--blog-gray-100);
  position: relative;
}

.post-card-img-link {
  position: absolute;
  inset: 0;
}

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

.post-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.post-card-meta time {
  font-size: 12px;
  color: var(--blog-gray-400);
  font-weight: 500;
}

.post-card-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--blog-gray-800);
  margin: 0 0 10px;
}

.post-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color .15s;
}

.post-card-title a:hover {
  color: var(--blog-blue);
}

.post-card-excerpt {
  font-size: 14px;
  line-height: 1.65;
  color: var(--blog-gray-600);
  flex: 1;
  margin-bottom: 16px;
  /* Clamp to 3 lines */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--blog-gray-100);
  margin-top: auto;
}

.post-card-byline {
  font-size: 12px;
  color: var(--blog-gray-400);
  font-weight: 500;
}

.post-card-read-more {
  font-size: 13px;
  font-weight: 600;
  color: var(--blog-blue);
  text-decoration: none;
  transition: color .15s;
}

.post-card-read-more:hover {
  color: #0A2540;
}

/* --- Pager --------------------------------------------- */
.blog-pager {
  padding-bottom: 64px;
  padding-top: 8px;
}

.blog-pager nav {
  display: flex;
  justify-content: center;
}

.blog-pager .pagination {
  display: flex;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  justify-content: center;
}

.blog-pager .page-item .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid var(--blog-gray-200);
  font-size: 14px;
  font-weight: 600;
  color: var(--blue, #0066CC);
  text-decoration: none;
  background: #fff;
  transition: background .15s, border-color .15s, color .15s;
  line-height: 1;
}

.blog-pager .page-item .page-link:hover {
  background: var(--blue, #0066CC);
  border-color: var(--blue, #0066CC);
  color: #fff;
}

.blog-pager .page-item.active .page-link,
.blog-pager .page-item.active .page-link:hover {
  background: var(--blue, #0066CC);
  border-color: var(--blue, #0066CC);
  color: #fff;
  cursor: default;
}

.blog-pager .page-item.disabled .page-link {
  color: var(--blog-gray-400);
  border-color: var(--blog-gray-200);
  background: var(--blog-gray-50);
  pointer-events: none;
}

/* =========================================================
   Article Full Page
   ========================================================= */

/* Hero */
.article-hero {
  background: linear-gradient(135deg, #0a1628 0%, #0A2540 100%);
  color: #fff;
  padding: 56px 0 110px;
  position: relative;
  overflow: hidden;
}

.article-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 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='%23ffffff' fill-opacity='0.03'%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/svg%3E");
  pointer-events: none;
}

.article-hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.article-hero-content .post-cat {
  background: rgba(255,255,255,.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,.25);
}

.article-hero-content h1 {
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
  margin: 18px 0 16px;
}

.article-meta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 14px;
  color: rgba(255,255,255,.7);
}

.article-meta-row .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  display: inline-block;
}

.article-tagline {
  margin-top: 14px;
  font-size: 13px;
  color: rgba(255,255,255,.55);
  letter-spacing: .3px;
}

/* Featured image overlapping hero */
.article-featured {
  max-width: 1000px;
  margin: -80px auto 0;
  padding: 0 24px;
  position: relative;
  z-index: 5;
}

.article-featured img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  box-shadow: var(--blog-shadow-xl);
  border: 4px solid #fff;
}

/* Article layout */
.article-section {
  padding: 56px 0 80px;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 56px;
  align-items: start;
}

/* Breadcrumb inside article */
.article-breadcrumb {
  font-size: 13px;
  color: var(--blog-gray-500);
  margin-bottom: 32px;
}

.article-breadcrumb a {
  color: var(--blog-gray-600);
  text-decoration: none;
}

.article-breadcrumb a:hover {
  color: var(--blog-blue);
}

/* Article body prose */
.article-body {
  max-width: 760px;
}

.article-body h2 {
  font-size: 26px;
  color: var(--blog-navy);
  margin: 44px 0 16px;
  line-height: 1.3;
  font-weight: 700;
}

.article-body p {
  font-size: 17px;
  line-height: 1.85;
  color: var(--blog-gray-700);
  margin-bottom: 20px;
}

.article-body ul,
.article-body ol {
  font-size: 17px;
  line-height: 1.8;
  color: var(--blog-gray-700);
  margin-bottom: 20px;
  padding-left: 24px;
}

.article-body blockquote {
  border-left: 4px solid var(--blog-blue);
  padding: 8px 0 8px 28px;
  margin: 32px 0;
  font-style: italic;
  font-size: 18px;
  color: var(--blog-navy);
  line-height: 1.6;
}

.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 16px 0;
}

/* Tags */
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 32px 0 24px;
}

.article-tags .tag {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--blog-gray-100);
  color: var(--blog-gray-600);
  text-decoration: none;
  transition: background .15s;
}

.article-tags .tag:hover {
  background: var(--blog-gray-200);
}

/* Article footer */
.article-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--blog-gray-200);
  margin-top: 24px;
}

.share-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.share-row span {
  font-size: 13px;
  font-weight: 600;
  color: var(--blog-gray-500);
}

.share-btn {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--blog-gray-100);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
  text-decoration: none;
}

.share-btn:hover {
  background: var(--blue, #0066CC);
}

.share-btn svg {
  width: 17px;
  height: 17px;
  fill: var(--blog-gray-600);
  transition: fill .2s;
}

.share-btn:hover svg {
  fill: #fff;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue, #0066CC);
  text-decoration: none;
  transition: color .15s;
}

.back-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.back-link:hover {
  color: var(--dark-blue, #003D7A);
}

/* Sidebar */
.article-aside {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.side-card {
  background: #fff;
  border: 1px solid var(--blog-gray-200);
  border-radius: 14px;
  padding: 24px;
}

.side-card h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--blog-gray-800);
  margin-bottom: 16px;
}

.side-cta {
  background: linear-gradient(135deg, var(--blog-blue) 0%, #0A2540 100%);
  border-color: transparent;
}

.side-cta h4 {
  color: #fff;
}

.side-cta p {
  font-size: 14px;
  color: rgba(255,255,255,.85);
  line-height: 1.6;
  margin-bottom: 18px;
}

.side-cta .btn {
  display: block;
  width: 100%;
  padding: 12px 20px;
  text-align: center;
  background: var(--blog-gold);
  color: #0a1628;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background .15s;
}

.side-cta .btn:hover {
  background: #fbbf24;
}

/* Recent posts block inside sidebar */
.article-aside .view-blog .node--article--teaser {
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 12px 0;
  border-bottom: 1px solid var(--blog-gray-100);
}

.article-aside .view-blog .node--article--teaser:last-child {
  border-bottom: none;
}

.article-aside .view-blog .post-card-img {
  display: none;
}

.article-aside .view-blog .post-card-body {
  padding: 0;
}

.article-aside .view-blog .post-card-title {
  font-size: 14px;
}

.article-aside .view-blog .post-card-excerpt,
.article-aside .view-blog .post-card-foot {
  display: none;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .blog-featured-wrap .post-card {
    grid-template-columns: 1fr;
  }

  .blog-featured-wrap .post-card-img {
    min-height: 260px;
  }

  .post-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .article-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .article-aside {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .side-card {
    flex: 1;
    min-width: 240px;
  }
}

@media (max-width: 640px) {
  .post-grid {
    grid-template-columns: 1fr;
  }

  .blog-featured-wrap .post-card-body {
    padding: 28px 24px;
  }

  .article-hero {
    padding: 40px 0 100px;
  }

  .article-hero-content h1 {
    font-size: 24px;
  }

  .article-featured {
    margin-top: -70px;
    padding: 0 16px;
  }
}

/* Sidebar topic list */
.side-topics {
  list-style: none;
  margin: 0;
  padding: 0;
}

.side-topics li {
  border-bottom: 1px solid var(--blog-gray-100);
}

.side-topics li:last-child {
  border-bottom: none;
}

.side-topics a {
  display: block;
  padding: 10px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--blog-gray-700);
  text-decoration: none;
  transition: color .15s;
}

.side-topics a:hover {
  color: var(--blog-blue);
}
