/*
Theme Name: BlueEdge Pro
Theme URI: https://richtechy.com
Author: RichTechy
Author URI: https://richtechy.com
Description: A lightweight, fast-loading, SEO-optimized WordPress blog theme designed for clean readability and modern UI.
Version: 1.0
License: GPL2
Text Domain: blueedge-pro
*/





/* Variables */
:root {
  --bg: #0f172a;
  --card: #020617;
  --text: #e5e7eb;
  --accent: #38bdf8;
}
* {
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
}
/* Base */
body {
  font-family: system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  margin: 0;
  transition: background 0.3s, color 0.3s;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Header */
header {
  background: var(--card);
  padding: 20px;
  text-align: center;
  position: static !important;
  top: auto !important;
}











header h1 {
  margin: 0;
}

/* Layout */
.container {
  display: flex;
  max-width: 1100px;
  width: 100%;
  margin: auto;
  padding: 20px;
  box-sizing: border-box; /* CRITICAL */
}

.content {
  flex: 3;
}

.sidebar {
  flex: 1;
  margin-left: 20px;
  position: sticky;
  top: 100px;
  height: fit-content;
}

/* Posts */
.post {
  background: var(--card);
  padding: 25px;
  margin-bottom: 30px;
  border-radius: 12px;
  line-height: 1.7;
}
.post h2 {
  margin-top: 10px;
  font-size: 1.5rem;
}

.post p {
  font-size: 1rem;
  opacity: 0.9;
}

/* Footer */
footer {
  text-align: center;
  padding: 20px;
  background: var(--card);
}

/* Navigation Menu */
.main-nav {
  margin-top: 10px;
}
.main-nav ul {
  list-style: none !important;
  padding: 0;
  margin: 10px 0 0;
  display: flex !important;
  justify-content: center;
  gap: 20px;
}

.main-nav li {
  list-style: none !important;
}

.main-nav a {
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
}

.main-nav a:hover {
  color: var(--accent);
}





/* Mobile */
@media (max-width: 768px) {

  .container {
    flex-direction: column;
    padding: 15px;
  }

  .content,
  .sidebar {
    width: 100%;
  }

  .sidebar {
    margin-left: 0;
    position: relative;
    top: 0;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
	.site-title {
  font-size: 1.6rem;
}

.site-description {
  font-size: 0.95rem;
}
}
 
.post img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  margin-bottom: 10px;
}
/* Prevent horizontal scrolling globally */
html, body {
  overflow-x: hidden;
}
* {
  box-sizing: border-box;
}
.content {
  max-width: 700px;
  margin: auto;
}
.post {
  margin-bottom: 40px;
}
.post h3 {
  margin-top: 25px;
  color: var(--accent);
}
.post {
  padding: 20px;
}
/* Typography Scale */

/* Main post title */
.post h2 {
  font-size: 1.6rem;
  line-height: 1.3;
  margin-bottom: 10px;
}

/* Section headings inside posts */
.post h3 {
  font-size: 1.2rem;
  margin-top: 25px;
  margin-bottom: 10px;
  color: var(--accent);
}

/* Body text */
.post p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 15px;
  opacity: 0.9;
}

/* Small text (optional future use) */
small {
  font-size: 0.85rem;
  opacity: 0.7;
}
body {
  font-size: 16px;
}
.site-description {
  max-width: 600px;
  margin: 10px auto 15px;
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0.8;
}
.site-description {
  max-width: 600px;
  margin: 10px auto 20px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  opacity: 0.85;
}
/* HERO SECTION */
.hero {
  background: linear-gradient(180deg, #020617, #020617 70%, transparent);
  text-align: center;
  padding: 40px 20px 30px;
}

.hero-inner {
  max-width: 800px;
  margin: auto;
}

.site-title {
  font-size: 2rem;
  margin: 0;
}

.site-title a {
  color: var(--text);
  text-decoration: none;
}

.site-description {
  margin: 15px auto 20px;
  font-size: 1.05rem;
  line-height: 1.6;
  opacity: 0.85;
}

/* Menu button */
.menu-toggle {
  background: var(--accent);
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  margin-top: 10px;
  cursor: pointer;
}
/* RELATED POSTS */

.related-title {
  margin-top: 40px;
  margin-bottom: 15px;
  font-size: 1.3rem;
}

/* Grid layout */
.related-posts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

/* Card */
.related-card {
  background: var(--card);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.2s ease;
}

.related-card:hover {
  transform: translateY(-3px);
}

/* Image */
.related-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Content */
.related-content {
  padding: 10px;
}

.related-content h4 {
  font-size: 0.95rem;
  line-height: 1.4;
}
.sidebar ul {
  list-style: none;
  padding-left: 0;
}
.sidebar {
  background: var(--card);
  padding: 20px;
  border-radius: 12px;
}
.sidebar h2 {
  font-size: 1.2rem;
  margin-bottom: 15px;
}
.sidebar ul li {
  margin-bottom: 10px;
}

.sidebar ul li a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255,255,255,0.03);
  color: var(--text);
  text-decoration: none;
  transition: all 0.2s ease;
}

.sidebar ul li a:hover {
  background: var(--accent);
  color: #000;
}
.post a {
  text-decoration: underline;
}

.post a:hover {
  color: var(--accent);
}


