/* Modern CSS Styling */
:root {
  --primary-color: #4A90E2; /* A shade of blue */
  --secondary-color: #50E3C2; /* A shade of turquoise */
  --accent-color: #F5A623; /* An orange accent */
  --text-color: #333333;
  --light-text-color: #666666;
  --bg-color: #F8F8F8;
  --card-bg-color: #FFFFFF;
  --border-color: #EEEEEE;
  --shadow-light: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-medium: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

body {
  font-family: 'Inter', sans-serif; /* Modern sans-serif font, consider importing from Google Fonts */
  line-height: 1.7;
  color: var(--text-color);
  background-color: var(--bg-color);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 25px;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* Header */
.site-header {
  background-color: var(--card-bg-color);
  padding: 20px 0;
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-light);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-title {
  font-size: 1.8rem;
  font-weight: 700;
}

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

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
}

.main-nav a {
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--light-text-color);
}

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

/* Main Content Sections */
.hero-section {
  text-align: center;
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
}

.hero-section h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-section p {
  font-size: 1.3rem;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.btn {
  display: inline-block;
  background-color: var(--accent-color);
  color: white;
  padding: 12px 25px;
  border-radius: 5px;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn:hover {
  background-color: darken(#F5A623, 10%);
  transform: translateY(-2px);
}

.content-section {
  padding: 60px 0;
}

.content-section h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 40px;
  color: var(--primary-color);
}

/* Post/Page Layout */
.post-page {
  padding: 40px 0;
}

.post-header {
  text-align: center;
  margin-bottom: 40px;
}

.post-title {
  font-size: 3rem;
  margin-bottom: 15px;
  color: var(--text-color);
}

.post-meta {
  font-size: 1rem;
  color: var(--light-text-color);
}

.post-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 8px;
  box-shadow: var(--shadow-light);
}

.post-content {
  max-width: 800px;
  margin: 0 auto;
  background-color: var(--card-bg-color);
  padding: 30px;
  border-radius: 8px;
  box-shadow: var(--shadow-light);
}

.post-content h1, .post-content h2, .post-content h3, .post-content h4, .post-content h5, .post-content h6 {
  color: var(--primary-color);
  margin-top: 1.5em;
  margin-bottom: 0.8em;
  line-height: 1.3;
}

.post-content p {
  margin-bottom: 1em;
}

.post-content ul, .post-content ol {
  margin-bottom: 1em;
  padding-left: 25px;
}

.post-content li {
  margin-bottom: 0.5em;
}

/* Blog Post List */
.blog-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.blog-card {
  background-color: var(--card-bg-color);
  border-radius: 8px;
  box-shadow: var(--shadow-light);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.blog-card-content {
  padding: 25px;
}

.blog-card h3 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.blog-card h3 a {
  color: var(--text-color);
}

.blog-card p {
  font-size: 0.95rem;
  color: var(--light-text-color);
  margin-bottom: 15px;
}

.blog-card .post-meta {
  font-size: 0.85rem;
}

/* Footer */
.site-footer {
  background-color: var(--text-color);
  color: white;
  padding: 40px 0;
  text-align: center;
  margin-top: 60px;
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.footer-nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin-top: 15px;
}

.footer-nav a {
  color: white;
  font-size: 0.9rem;
}

.footer-nav a:hover {
  color: var(--secondary-color);
}

.copyright {
  margin-top: 20px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Responsive Design */
@media (max-width: 768px) {
  .site-header .container {
    flex-direction: column;
    gap: 15px;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .hero-section h1 {
    font-size: 2.5rem;
  }

  .hero-section p {
    font-size: 1.1rem;
  }

  .content-section {
    padding: 40px 0;
  }

  .content-section h2 {
    font-size: 2rem;
  }

  .post-title {
    font-size: 2rem;
  }

  .post-content {
    padding: 20px;
  }

  .site-footer .container {
    padding: 0 20px;
  }
}
