/*
Theme Name: Mero ShareNepal Theme
Author: Mero ShareNepal
Description: Fast, Lightweight & SEO-Optimized Theme for Nepal Share Market & NEPSE News.
Version: 1.0
Text Domain: merosharenepal
*/

:root {
  --primary-color: #0a7d3f;   /* NEPSE green */
  --secondary-color: #f5a623; /* Gold accent */
  --dark-color: #1a1a1a;
  --light-bg: #f4f6f9;
  --text-color: #333333;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--light-bg);
}

a {
  color: inherit;
}

header {
  background: #ffffff;
  border-bottom: 3px solid var(--primary-color);
  padding: 15px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  flex-wrap: wrap;
}

.logo a {
  font-size: 26px;
  font-weight: 800;
  color: var(--primary-color);
  text-decoration: none;
}

.logo span {
  color: var(--secondary-color);
}

nav ul {
  display: flex;
  list-style: none;
  flex-wrap: wrap;
}

nav ul li {
  margin-left: 20px;
}

nav ul li a {
  text-decoration: none;
  color: var(--dark-color);
  font-weight: 600;
  transition: color 0.3s;
}

nav ul li a:hover {
  color: var(--primary-color);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 20px auto;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
}

/* Grid Layout for Articles */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s;
}

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

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.card-content {
  padding: 15px;
}

.card-content h2 {
  font-size: 18px;
  margin-bottom: 10px;
}

.card-content h2 a {
  color: var(--dark-color);
  text-decoration: none;
}

.card-content h2 a:hover {
  color: var(--primary-color);
}

.meta {
  font-size: 12px;
  color: #777;
  margin-bottom: 8px;
}

.sidebar {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  align-self: start;
}

.sidebar h3 {
  margin-bottom: 10px;
}

footer {
  background: var(--dark-color);
  color: #fff;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
}

/* Single Article Page */
.single-article {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.single-article .featured-image {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.single-article h1 {
  font-size: 28px;
  margin-bottom: 10px;
  color: var(--dark-color);
}

.single-article .meta {
  margin-bottom: 20px;
  font-size: 13px;
}

.single-article .entry-content {
  font-size: 16px;
}

.single-article .entry-content p {
  margin-bottom: 16px;
}

.single-article .entry-content h2,
.single-article .entry-content h3 {
  margin: 24px 0 12px;
  color: var(--dark-color);
}

.single-article .entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 10px 0;
}

.single-article .entry-content ul,
.single-article .entry-content ol {
  margin: 0 0 16px 22px;
}

.tags-links {
  margin-top: 24px;
  font-size: 14px;
}

.tags-links a {
  background: var(--light-bg);
  padding: 4px 10px;
  border-radius: 4px;
  text-decoration: none;
  margin-right: 6px;
  display: inline-block;
  margin-bottom: 6px;
}

.post-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #eee;
  font-size: 14px;
}

.post-navigation a {
  text-decoration: none;
  color: var(--primary-color);
  font-weight: 600;
}

/* Static Page */
.static-page {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.static-page h1 {
  margin-bottom: 16px;
  color: var(--dark-color);
}

/* Mobile Friendly */
@media (max-width: 768px) {
  .container {
    grid-template-columns: 1fr;
  }
  header {
    flex-direction: column;
    text-align: center;
  }
  nav ul {
    margin-top: 10px;
    justify-content: center;
  }
  nav ul li {
    margin: 0 10px;
  }
  .single-article {
    padding: 18px;
  }
}
