/*
  Theme Name: Lunox Blogs
  Version: 1.0.0.0
  Theme URI: https://blog.lunox.ng/
  Author: Lunox Creative Innovation
  Author URI: https://lunox.ng/
  Description: This is the official theme for Lunox Blogs. It’s been carefully designed to look and perform great across mobile devices, computers, and tablets.
*/ 

@-ms-viewport {
  width: device-width;
} 

html {
  box-sizing: border-box;
  margin: 0 !important;
  padding: 0 !important;
  -ms-overflow-style: scrollbar;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}  

body{
  padding: 0;
  margin: 0;  
  line-height: 1.5; 
  scroll-behavior: smooth; 
  user-select: none;
  font-family: "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
  background: #f8fafc;
  color: #0f172a;
}    

:root {
  --primary: #206bc4;
  --text-muted: #475467;
  --card-bg: #ffffff;
  --border: #e2e8f0;
  --shadow: 0 15px 35px rgba(15, 23, 42, 0.08);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1200px, 100% - 2.5rem);
  margin: 0 auto;
}

.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--text-muted);
}

.site-brand span {
  color: var(--primary);
  font-weight: 700;
}

.site-link {
  font-size: 0.95rem;
  color: var(--primary);
  font-weight: 600;
}

.header-search {
  display: inline-flex;
  margin-left: 1rem;
}

.header-search input {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.65rem 1.2rem;
  font-size: 16px;
  min-width: 180px;
  background: #fff;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.link-underline {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.site-main {
  padding-bottom: 4rem;
}

.hero {
  padding: 3rem 0 2rem;
  text-align: left;
}
 
.hero--single {
  padding-top: 0;
  padding-bottom: 1rem;
}
 
.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0.5rem 0 0.75rem;
  color: #0b1a2c;
}

.large-404{
  font-size: 1.5rem;
  margin: 5px 0;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.15em; 
  color: var(--primary);
  margin: 0;
}

.eyebrow--link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.lede {
  max-width: 640px;
  color: var(--text-muted); 
}

.posts {
  padding: 1rem 0 0;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -0.75rem;
  margin-right: -0.75rem;
}

.row > [class*="col-"] {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  box-sizing: border-box;
  flex: 0 0 auto;
}

.col-12 {
  width: 100%;
}

.col-lg-8,
.col-lg-4 {
  width: 100%;
}

@media (min-width: 992px) {
  .col-lg-8 {
    width: 66.6667%;
    max-width: 66.6667%;
  }

  .col-lg-4 {
    width: 33.3333%;
    max-width: 33.3333%;
  }
}

.page-grid {
  padding: 2rem 0 0;
}

.blog-content { 
  width: 100%;
  margin: 0 auto;
}

.content-block {
  padding: 0 0.5rem;
}

@media (min-width: 768px) {
  .content-block {
    padding: 0;
  }
}

.promo-column {
  width: 100%;
}

.promo-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow);
  position: sticky;
  top: 6rem;
}

.promo-card h3 {
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
}

.promo-card p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.promo-card ul {
  padding-left: 1rem;
  color: var(--text-muted);
  margin: 0 0 1.25rem;
}

.promo-card li {
  margin-bottom: 0.35rem;
}

.posts-grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.blog-card {
  background: var(--card-bg);
  border-radius: 18px;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.15);
}

.blog-card__link {
  display: flex;
  height: 100%;
  flex-direction: column;
}

.blog-card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.blog-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card__body { 
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
} 
.blog-card__eyebrow {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.blog-card__body h2 {
  margin: 0;
  min-height: 60px;
  font-size: 1.25rem;
  color: #0b1a2c;
}

.blog-card__body p {
  margin: 0;
  color: var(--text-muted);
}

.blog-card__cta {
  margin-top: auto;
  font-weight: 600;
  color: var(--primary);
}

.pagination {
  margin-top: 2.5rem;
  text-align: center;
}

.pagination .page-numbers {
  display: inline-block;
  padding: 0.55rem 1rem;
  margin: 0 0.25rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-weight: 600;
}

.pagination .current {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.empty-state {
  text-align: center;
  color: var(--text-muted);
  padding: 3rem 0;
}

.site-footer {
  text-align: center;
  padding: 2rem 2rem 3rem;
  border-top: 1px solid var(--border);
  background: #ffffff;
}

.scroll-top {
  position: fixed;
  right: 1.75rem;
  bottom: 1.75rem;
  border: none;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  padding: 0.55rem 1.2rem;
  box-shadow: 0 10px 25px rgba(14, 77, 146, 0.35);
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 99;
}

.scroll-top--visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

@media (max-width: 640px) {
  .site-header__inner {
    flex-direction: column;
    gap: 0.75rem;
  }

  .blog-card__body {
    padding: 1.25rem;
  }

  .scroll-top {
    right: 1rem;
    bottom: 1rem;
  }
}

.single-meta {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.single-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.pill-btn {
  border: 1px solid var(--primary);
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.pill-btn--ghost {
  background: transparent;
  color: var(--primary);
}

.pill-btn--block {
  display: inline-flex;
  justify-content: center;
  width: fit-content;
  margin-top: 1rem;
}

.pill-btn:hover {
  opacity: 0.8;
}

.single-post {
  padding: 0;
}

.single-post__media {
  margin: 0 0 2rem;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.single-post__media img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.single-post__content {
  font-size: 1.05rem;
  color: #0f172a;
}

.single-post__content p {
  margin-bottom: 1.25rem;
}

.single-post__content img,
.single-post__content iframe {
  width: 100% !important;
  border-radius: 18px;
  margin: 2rem 0;
}

.single-post__footer {
  margin-top: 2rem;
}

.single-post__footer .tags a {
  display: inline-block;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: #e0ecff;
  color: var(--primary);
  font-size: 0.9rem;
}

.comments {
  margin: 2rem 0; 
  padding-block: 1.5rem; 
  border-top: 1px solid var(--border);
}

.comments h2 {
  margin-top: 0;
}

.comment-list {
  list-style: none;
  padding-left: 0;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form input[type="date"],
.comment-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  margin-bottom: 1rem;
  background: #fdfdfd;
}

.comment-form input[type="submit"] {
  border: none;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  padding: 0.75rem 1.75rem;
  font-weight: 600;
  cursor: pointer;
}

.related-posts {
  padding: 2rem 0 4rem;
}
.related-posts .container{ 
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.related-posts h3 {
  margin-bottom: 1.5rem;
}