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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.7;
  color: #333;
  background: #f9f9f9;
}

header {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: #fff;
  padding: 20px 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo { font-size: 26px; font-weight: bold; color: #fff; text-decoration: none; }
.logo span { color: #e94560; }

nav a {
  color: #fff;
  text-decoration: none;
  margin-left: 20px;
  font-size: 15px;
  transition: color 0.3s;
}
nav a:hover { color: #e94560; }

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

.ad-header, .ad-footer {
  max-width: 1100px;
  margin: 20px auto;
  padding: 10px;
  text-align: center;
  min-height: 90px;
  background: #fff;
  border: 1px dashed #ddd;
  border-radius: 6px;
}

.article-ad {
  margin: 30px 0;
  padding: 15px;
  text-align: center;
  min-height: 250px;
  background: #fafafa;
  border: 1px dashed #ddd;
  border-radius: 6px;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.post-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 15px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.post-card-body { padding: 20px; }

.post-card .category {
  display: inline-block;
  background: #e94560;
  color: #fff;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.post-card h3 { font-size: 18px; margin-bottom: 10px; color: #1a1a2e; }
.post-card h3 a { color: inherit; text-decoration: none; }
.post-card h3 a:hover { color: #e94560; }

.post-card .meta { font-size: 12px; color: #888; margin-bottom: 10px; }

.read-more {
  display: inline-block;
  margin-top: 12px;
  color: #e94560;
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
}
.read-more:hover { text-decoration: underline; }

.post-full {
  background: #fff;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}

.post-full h1 {
  font-size: 32px;
  color: #1a1a2e;
  margin-bottom: 15px;
  line-height: 1.3;
}

.post-full .post-meta {
  color: #888;
  font-size: 14px;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.post-full h2 { font-size: 24px; color: #16213e; margin: 30px 0 15px; }
.post-full h3 { font-size: 20px; color: #16213e; margin: 25px 0 10px; }
.post-full p { margin-bottom: 15px; }
.post-full ul, .post-full ol { margin: 15px 0 15px 30px; }
.post-full li { margin-bottom: 8px; }
.post-full strong { color: #1a1a2e; }
.post-full img { max-width: 100%; height: auto; border-radius: 6px; margin: 15px 0; }

.back-link {
  display: inline-block;
  margin-bottom: 20px;
  color: #e94560;
  text-decoration: none;
  font-weight: 600;
}
.back-link:hover { text-decoration: underline; }

footer {
  background: #1a1a2e;
  color: #aaa;
  text-align: center;
  padding: 30px 20px;
  margin-top: 50px;
  font-size: 14px;
}

footer a { color: #e94560; text-decoration: none; }

@media (max-width: 600px) {
  .post-full { padding: 20px; }
  .post-full h1 { font-size: 24px; }
  .header-inner { flex-direction: column; gap: 10px; }
  nav a { margin: 0 10px; }
}