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

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #f5f6fa;
  color: #222;
  line-height: 1.7;
}

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

/* Header */
header {
  background: #1a73e8;
  color: #fff;
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.logo a {
  color: #fff;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 700;
}
nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
nav ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  transition: opacity 0.2s;
}
nav ul li a:hover { opacity: 0.75; }

/* Page title */
.page-title {
  margin: 30px 0 20px;
  font-size: 1.8rem;
  color: #1a73e8;
}

/* Posts grid */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}
.post-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.13);
}
.post-card-img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  background: #1a73e8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}
.post-card-body { padding: 18px; }
.post-card-category {
  font-size: 0.75rem;
  color: #1a73e8;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.post-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.4;
}
.post-card-title a {
  color: #222;
  text-decoration: none;
}
.post-card-title a:hover { color: #1a73e8; }
.post-card-excerpt {
  font-size: 0.88rem;
  color: #555;
  margin-bottom: 12px;
}
.post-card-meta {
  font-size: 0.78rem;
  color: #888;
}
.read-more {
  display: inline-block;
  margin-top: 10px;
  padding: 7px 16px;
  background: #1a73e8;
  color: #fff;
  border-radius: 5px;
  text-decoration: none;
  font-size: 0.85rem;
  transition: background 0.2s;
}
.read-more:hover { background: #1558b0; }

/* Single Post */
.post-page { max-width: 750px; margin: 30px auto 50px; background: #fff; border-radius: 12px; padding: 35px 40px; box-shadow: 0 2px 15px rgba(0,0,0,0.09); }
.post-page h1 { font-size: 1.9rem; margin-bottom: 10px; color: #1a1a1a; }
.post-meta { color: #888; font-size: 0.85rem; margin-bottom: 20px; }
.post-content { font-size: 1rem; line-height: 1.9; color: #333; }
.post-content h2 { margin: 24px 0 10px; font-size: 1.3rem; color: #1a73e8; }
.post-content p { margin-bottom: 16px; }
.post-content ul, .post-content ol { margin: 10px 0 16px 24px; }
.post-content li { margin-bottom: 6px; }
.back-link { display: inline-block; margin-bottom: 20px; color: #1a73e8; text-decoration: none; font-size: 0.9rem; }
.back-link:hover { text-decoration: underline; }

/* Static pages */
.static-page { max-width: 750px; margin: 30px auto 50px; background: #fff; border-radius: 12px; padding: 35px 40px; box-shadow: 0 2px 15px rgba(0,0,0,0.09); }
.static-page h1 { font-size: 1.8rem; margin-bottom: 20px; color: #1a73e8; }
.static-page h2 { font-size: 1.2rem; margin: 20px 0 8px; color: #333; }
.static-page p { margin-bottom: 14px; color: #444; }

/* Contact form */
.contact-form { display: flex; flex-direction: column; gap: 14px; margin-top: 20px; }
.contact-form input, .contact-form textarea {
  padding: 12px; border: 1px solid #ddd; border-radius: 6px; font-size: 1rem; font-family: inherit;
}
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form button {
  padding: 12px 28px; background: #1a73e8; color: #fff; border: none; border-radius: 6px;
  font-size: 1rem; cursor: pointer; transition: background 0.2s; align-self: flex-start;
}
.contact-form button:hover { background: #1558b0; }
.form-success { color: green; font-weight: 600; display: none; margin-top: 10px; }

/* Footer */
footer {
  background: #222;
  color: #bbb;
  text-align: center;
  padding: 22px 0;
  font-size: 0.88rem;
}
footer a { color: #aaa; text-decoration: none; }
footer a:hover { text-decoration: underline; }

@media (max-width: 600px) {
  .post-page, .static-page { padding: 20px 16px; }
  .posts-grid { grid-template-columns: 1fr; }
}
