:root {
  --primary: #4CAF50;
  --primary-light: #81C784;
  --primary-dark: #388E3C;
  --secondary: #4FC3F7;
  --accent: #FFD54F;
  --background: #F5F9F5;
  --surface: #FFFFFF;
  --text: #2E7D32;
  --text-secondary: #558B2F;
  --text-light: #81C784;
  --border-radius: 12px;
  --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s ease-in-out;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: var(--background);
  color: var(--text);
  font-family: 'Poppins', 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--primary-dark);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero Section */
.hero {
  padding: 80px 20px;
  text-align: center;
  background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%);
  position: relative;
  overflow: hidden;
  border-radius: 0 0 30px 30px;
  margin-bottom: 40px;
  box-shadow: var(--box-shadow);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><path d="M30,15 L50,35 L70,15 L85,30 L65,50 L85,70 L70,85 L50,65 L30,85 L15,70 L35,50 L15,30 Z" fill="none" stroke="%234CAF50" stroke-width="0.5" opacity="0.1"/></svg>');
  opacity: 0.1;
  z-index: 0;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  color: var(--primary-dark);
  position: relative;
  z-index: 1;
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
}

.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 2rem;
  position: relative;
  z-index: 1;
  color: var(--text-secondary);
}

/* Timeline */
.timeline {
  padding: 0 20px 60px;
  position: relative;
}

/* Year */
.year {
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}

.year h2 {
  color: var(--primary);
  font-size: 2rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-light);
  display: inline-block;
  position: relative;
}

.year h2::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 50px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
}

/* Month */
.month {
  margin-bottom: 30px;
}

.month h3 {
  color: var(--primary-dark);
  font-size: 1.5rem;
  margin: 30px 0 15px;
  padding-left: 15px;
  border-left: 4px solid var(--primary-light);
}

/* Post Card */
.post-card {
  background: var(--surface);
  padding: 25px;
  margin: 15px 0;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.post-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--primary);
  transition: var(--transition);
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.post-card:hover::before {
  width: 6px;
  background: var(--accent);
}

.post-card a {
  color: var(--text);
  text-decoration: none;
  display: block;
}

.post-card h4 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: var(--primary-dark);
  transition: var(--transition);
}

.post-card:hover h4 {
  color: var(--primary);
}

.meta {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.meta svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* Tags */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}

.tags span {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(76, 175, 80, 0.1);
  color: var(--primary);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  transition: var(--transition);
}

.tags span:hover {
  background: var(--primary);
  color: white;
}

/* Single Post */
.post {
  padding: 40px 20px;
  max-width: 800px;
  margin: 0 auto;
  background: var(--surface);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  margin-top: 40px;
  margin-bottom: 60px;
}

.post h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--primary-dark);
}

.post .meta {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Back Button */
.back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 20px;
  padding: 10px 20px;
  background: var(--primary);
  color: white !important;
  border-radius: 50px;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 100;
}

.back:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
  text-decoration: none;
  background: var(--primary-dark);
}

.back svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .post {
    padding: 30px 20px;
    margin: 20px 10px 40px;
  }
  
  .back {
    margin: 10px;
    padding: 8px 16px;
    font-size: 0.9rem;
  }
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.post-card {
  animation: fadeIn 0.6s ease-out forwards;
  opacity: 0;
}

/* Add delay for each card */
.post-card:nth-child(1) { animation-delay: 0.1s; }
.post-card:nth-child(2) { animation-delay: 0.2s; }
.post-card:nth-child(3) { animation-delay: 0.3s; }
.post-card:nth-child(4) { animation-delay: 0.4s; }
.post-card:nth-child(n+5) { animation-delay: 0.5s; }
