/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f9f9f9;
}

a {
  color: #2c5aa0;
  text-decoration: none;
}

a:hover {
  color: #1a3a6b;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header (Regular Pages) */
.site-header {
  background: white;
  border-bottom: 1px solid #e0e0e0;
  padding: 1rem 0;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2c5aa0;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-menu a {
  color: #333;
  font-weight: 500;
}

/* Hero (Homepage) */
.hero {
  background: linear-gradient(135deg, #2c5aa0 0%, #4a7bc8 100%);
  color: white;
  padding: 2rem 0 4rem;
}

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

.logo-hero {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
}

.nav-menu-hero {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-menu-hero a {
  color: white;
  font-weight: 500;
}

.hero-content {
  text-align: center;
  padding: 3rem 0;
}

.hero-title {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero-subtitle {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.hero-description {
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
  opacity: 0.95;
}

/* Main Layout (Homepage) */
.main-container {
  padding: 3rem 0;
}

.content-wrapper {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
}

.main-content {
  min-width: 0;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 2rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e0e0e0;
}

/* Post Cards */
.post-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.post-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.post-content {
  padding: 1.5rem;
}

.post-meta {
  font-size: 0.875rem;
  color: #666;
  margin-bottom: 0.5rem;
}

.category {
  background: #f0f0f0;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  margin-left: 0.5rem;
}

.post-title {
  font-size: 1.5rem;
  margin: 0.5rem 0;
}

.post-title a {
  color: #333;
}

.post-excerpt {
  color: #666;
  margin: 1rem 0;
}

.read-more {
  color: #2c5aa0;
  font-weight: 600;
}

.view-all {
  text-align: center;
  margin-top: 2rem;
}

.btn {
  display: inline-block;
  background: #2c5aa0;
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 4px;
  font-weight: 600;
  transition: background 0.2s;
}

.btn:hover {
  background: #1a3a6b;
  color: white;
}

/* Sidebar */
.sidebar {
  min-width: 0;
}

.widget {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.widget h3 {
  font-size: 1.125rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e0e0e0;
}

.about-icon {
  font-size: 3rem;
  text-align: center;
  margin: 1rem 0;
}

.widget p {
  color: #666;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.widget-list {
  list-style: none;
}

.widget-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.widget-list li:last-child {
  border-bottom: none;
}

.widget-list a {
  display: flex;
  justify-content: space-between;
  color: #333;
}

.widget-list a:hover {
  color: #2c5aa0;
}

.count {
  color: #999;
  font-size: 0.875rem;
}

.recent-title {
  font-weight: 500;
  display: block;
  margin-bottom: 0.25rem;
}

.widget-list time {
  font-size: 0.75rem;
  color: #999;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  background: #f0f0f0;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.875rem;
  transition: background 0.2s;
}

.tag:hover {
  background: #2c5aa0;
  color: white;
}

/* Single Post */
.post {
  background: white;
  padding: 3rem 0;
}

.post-container {
  max-width: 800px;
}

.post-hero-image {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.post-header {
  margin-bottom: 2rem;
}

.post-header h1 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.post-tags {
  margin-top: 1rem;
}

.post-body {
  font-size: 1.125rem;
  line-height: 1.8;
}

.post-body h2 {
  font-size: 1.75rem;
  margin: 2rem 0 1rem;
}

.post-body h3 {
  font-size: 1.5rem;
  margin: 1.5rem 0 0.75rem;
}

.post-body p {
  margin-bottom: 1rem;
}

.post-body img {
  border-radius: 8px;
  margin: 2rem 0;
}

.post-body ul, .post-body ol {
  margin: 1rem 0 1rem 2rem;
}

.post-body li {
  margin-bottom: 0.5rem;
}

.post-body code {
  background: #f5f5f5;
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
}

.post-body pre {
  background: #2d2d2d;
  color: #f8f8f2;
  padding: 1rem;
  border-radius: 4px;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.post-body pre code {
  background: none;
  padding: 0;
  color: inherit;
}

/* Footer */
.site-footer {
  background: #2d2d2d;
  color: #ccc;
  padding: 2rem 0;
  text-align: center;
  margin-top: 4rem;
}

.site-footer p {
  margin: 0.5rem 0;
}

/* Responsive */
@media (max-width: 768px) {
  .content-wrapper {
    grid-template-columns: 1fr;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .nav-menu, .nav-menu-hero {
    gap: 1rem;
    font-size: 0.875rem;
  }
  
  .post-header h1 {
    font-size: 2rem;
  }
}

/* Blockquotes */
blockquote {
  border-left: 4px solid #2c5aa0;
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: #f9f9f9;
  font-style: italic;
  color: #555;
}

blockquote p {
  margin: 0.5rem 0;
}

blockquote p:first-child {
  margin-top: 0;
}

blockquote p:last-child {
  margin-bottom: 0;
}

/* Optional: Add a quote icon */
/*
blockquote::before {
  content: '"';
  font-size: 3rem;
  color: #2c5aa0;
  opacity: 0.3;
  line-height: 0;
  display: block;
  margin-bottom: -0.5rem;
}
*/

/* Optional: Add a quote icon */
/*
blockquote::after {
  content: '"';
  font-size: 3rem;
  color: #2c5aa0;
  opacity: 0.3;
  line-height: 0;
  display: block;
  margin-bottom: -0.5rem;
}
*/

