
:root {
  --primary: #0A2540;
  --primary-light: #1E3A8A;
  --accent: #E0A96D;
  --bg-color: #F8FAFC;
  --card-bg: #FFFFFF;
  --text-main: #1E293B;
  --text-muted: #64748B;
  --border-color: #E2E8F0;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  background-color: var(--primary);
  color: #FFFFFF;
  padding: 1rem 0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #FFFFFF;
  font-size: 1.35rem;
  font-weight: 700;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

nav a {
  color: #E2E8F0;
  text-decoration: none;
  margin-left: 1.5rem;
  font-weight: 500;
  transition: color 0.2s;
}

nav a:hover {
  color: var(--accent);
}

.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #FFFFFF;
  padding: 4rem 1.5rem;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 800;
}

.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 1.5rem auto;
  color: #CBD5E1;
}

.hero-btn {
  display: inline-block;
  background-color: var(--accent);
  color: var(--primary);
  font-weight: 700;
  padding: 0.75rem 1.75rem;
  border-radius: 6px;
  text-decoration: none;
  transition: transform 0.2s, background-color 0.2s;
}

.hero-btn:hover {
  background-color: #D49855;
  transform: translateY(-2px);
}

main {
  max-width: 1200px;
  margin: 2.5rem auto;
  padding: 0 1.5rem;
  flex: 1;
}

.section-title {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
  border-bottom: 3px solid var(--accent);
  display: inline-block;
  padding-bottom: 0.25rem;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
}

.post-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.04);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}

.post-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: space-between;
}

.post-tag {
  background-color: #EFF6FF;
  color: var(--primary-light);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-weight: 600;
}

.post-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--primary);
  line-height: 1.35;
}

.post-title a {
  text-decoration: none;
  color: inherit;
}

.post-title a:hover {
  color: var(--accent);
}

.post-excerpt {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  flex: 1;
}

.read-more {
  color: var(--primary-light);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.read-more:hover {
  text-decoration: underline;
}

/* Single Post Page */
.single-post-container {
  max-width: 800px;
  margin: 0 auto;
  background-color: var(--card-bg);
  padding: 2.5rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.single-post-header {
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.5rem;
}

.single-post-header h1 {
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.post-content p {
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
}

.post-content h3 {
  margin: 1.75rem 0 0.75rem 0;
  color: var(--primary);
}

.post-content ul, .post-content ol {
  margin: 1rem 0 1.25rem 1.5rem;
}

.post-content li {
  margin-bottom: 0.5rem;
}

footer {
  background-color: var(--primary);
  color: #94A3B8;
  padding: 2rem 0;
  margin-top: 4rem;
  text-align: center;
  font-size: 0.9rem;
  border-top: 1px solid #1E293B;
}

footer a {
  color: var(--accent);
  text-decoration: none;
}

@media (max-width: 768px) {
  .hero h1 { font-size: 1.8rem; }
  .single-post-container { padding: 1.5rem; }
}
