* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
  background: #f0f2f5;
  color: #333;
  line-height: 1.6;
}
header {
  background: #111;
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

nav {
  display: flex;
  justify-content: center;
  gap: 25px;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  transition: 0.3s;
}

nav a:hover { color: #00c853; }

.hero {
  height: 400px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  margin-bottom: 40px;
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.4);
}

.hero-content { position: relative; z-index: 1; }
.hero h1 { font-size: 3.5rem; text-transform: uppercase; }

.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}
#posts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  align-items: stretch;
}
.blog-post {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  height: 100%;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s ease;
}

.blog-post:hover {
  transform: translateY(-10px); 
  box-shadow: 0 12px 30px rgba(0,0,0,0.2);
  background-color: #fff; 
}

.blog-post img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.blog-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-post h2 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: #111;
  min-height: 3.4em; 
}

.blog-post p {
  font-size: 0.95rem;
  color: #666;
  flex-grow: 1;
  margin-bottom: 15px;
}
.read-article-link {
  margin-top: auto;
  color: #111; 
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  transition: color 0.3s ease;
}
.read-article-link:hover {
  color: #00c853;
}
footer {
  text-align: center;
  padding: 40px;
  background: #111;
  color: #fff;
  margin-top: 60px;
}