*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif; color: #1a1a2e; background: #fff; line-height: 1.6; }
a { color: #cd2653; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Top bar */
.top-bar { background: #1a1a2e; color: #ccc; font-size: 13px; padding: 8px 0; }
.top-bar .container { display: flex; justify-content: space-between; align-items: center; }
.top-bar a { color: #ccc; }
.top-bar a:hover { color: #fff; }

/* Header */
header { background: #fff; border-bottom: 1px solid #eee; position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo img { width: 48px; height: 48px; border-radius: 50%; }
.logo-text { font-size: 1.3rem; font-weight: 700; color: #1a1a2e; }
.logo-text span { color: #cd2653; }
.logo-tagline { font-size: 0.8rem; color: #666; }
nav { display: flex; gap: 8px; align-items: center; }
nav a { padding: 8px 14px; color: #444; font-size: 0.9rem; font-weight: 500; border-radius: 6px; transition: all .2s; }
nav a:hover { background: #f5f5f5; text-decoration: none; color: #cd2653; }
nav a.active { color: #cd2653; }
.btn { display: inline-block; padding: 10px 24px; background: #cd2653; color: #fff; border-radius: 6px; font-weight: 600; font-size: 0.9rem; transition: all .2s; }
.btn:hover { background: #a81e44; text-decoration: none; }
.btn-outline { background: transparent; border: 2px solid #cd2653; color: #cd2653; }
.btn-outline:hover { background: #cd2653; color: #fff; }

/* Hero */
.hero { background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%); color: #fff; padding: 80px 0; text-align: center; }
.hero h1 { font-size: 2.8rem; font-weight: 800; margin-bottom: 16px; line-height: 1.2; }
.hero h1 span { color: #cd2653; }
.hero p { font-size: 1.15rem; color: #b0b8d1; max-width: 650px; margin: 0 auto 28px; line-height: 1.7; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Sections */
section { padding: 60px 0; }
.section-alt { background: #f8f9fc; }
.section-title { font-size: 1.8rem; font-weight: 700; margin-bottom: 12px; text-align: center; }
.section-title span { color: #cd2653; }
.section-sub { color: #666; text-align: center; max-width: 600px; margin: 0 auto 40px; font-size: 1.05rem; }

/* Article Grid */
.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px; }
.card { background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid #eee; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0,0,0,0.08); }
.card-img { height: 200px; background: #e8ecf1; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; color: #999; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 20px; }
.card-cat { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.5px; color: #cd2653; font-weight: 600; margin-bottom: 8px; }
.card-title { font-size: 1.1rem; font-weight: 600; margin-bottom: 10px; line-height: 1.4; }
.card-title a { color: #1a1a2e; }
.card-title a:hover { color: #cd2653; text-decoration: none; }
.card-meta { font-size: 0.85rem; color: #888; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.card-excerpt { font-size: 0.92rem; color: #555; margin-top: 10px; line-height: 1.6; }

/* Featured Post */
.featured { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; margin-bottom: 40px; }
.featured-img { border-radius: 12px; overflow: hidden; background: #e8ecf1; height: 350px; display: flex; align-items: center; justify-content: center; font-size: 3rem; color: #999; }
.featured-img img { width: 100%; height: 100%; object-fit: cover; }
.featured-body .card-title { font-size: 1.6rem; }
.featured-body .card-excerpt { font-size: 1rem; }

/* Blog List */
.blog-list { max-width: 800px; margin: 0 auto; }
.blog-item { display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding: 24px 0; border-bottom: 1px solid #eee; }
.blog-item:first-child { padding-top: 0; }
.blog-item-img { border-radius: 8px; overflow: hidden; background: #e8ecf1; height: 140px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: #999; }
.blog-item-img img { width: 100%; height: 100%; object-fit: cover; }

/* Footer */
footer { background: #1a1a2e; color: #b0b8d1; padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .logo-text { color: #fff; }
.footer-brand p { font-size: 0.9rem; margin-top: 12px; line-height: 1.7; }
.footer-col h4 { color: #fff; font-size: 0.95rem; margin-bottom: 16px; }
.footer-col a { display: block; color: #b0b8d1; font-size: 0.88rem; padding: 4px 0; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #2a2a4e; padding-top: 24px; display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; flex-wrap: wrap; gap: 12px; }
.social-links { display: flex; gap: 16px; }
.social-links a { color: #888; font-size: 1.2rem; }
.social-links a:hover { color: #cd2653; }

/* Article page */
.article-header { padding: 40px 0 20px; }
.article-title { font-size: 2.2rem; font-weight: 800; line-height: 1.2; margin-bottom: 16px; }
.article-meta { color: #888; font-size: 0.92rem; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-bottom: 24px; }
.article-featured-img { border-radius: 12px; overflow: hidden; margin-bottom: 32px; max-height: 450px; background: #e8ecf1; display: flex; align-items: center; justify-content: center; font-size: 3rem; color: #999; }
.article-featured-img img { width: 100%; height: 100%; object-fit: cover; }
.article-content { max-width: 740px; margin: 0 auto; font-size: 1.05rem; line-height: 1.8; color: #333; }
.article-content p { margin-bottom: 1.2em; }
.article-content h2 { font-size: 1.5rem; margin: 1.5em 0 0.6em; }
.article-content h3 { font-size: 1.2rem; margin: 1.3em 0 0.5em; }
.article-content ul, .article-content ol { margin-bottom: 1.2em; padding-left: 1.5em; }
.article-content li { margin-bottom: 0.4em; }
.article-content blockquote { border-left: 4px solid #cd2653; padding-left: 20px; margin: 1.5em 0; color: #555; font-style: italic; }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.pagination a, .pagination span { padding: 8px 16px; border: 1px solid #ddd; border-radius: 6px; color: #444; font-size: 0.9rem; }
.pagination a:hover { background: #f5f5f5; text-decoration: none; }
.pagination span.current { background: #cd2653; color: #fff; border-color: #cd2653; }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 5px; background: none; border: none; }
.hamburger span { width: 24px; height: 2px; background: #1a1a2e; border-radius: 2px; transition: all .3s; }

/* Newsletter */
.newsletter { background: #fff; border-radius: 16px; padding: 48px; text-align: center; border: 1px solid #eee; }
.newsletter h3 { font-size: 1.5rem; margin-bottom: 8px; }
.newsletter p { color: #666; margin-bottom: 20px; }
.newsletter-form { display: flex; gap: 10px; max-width: 440px; margin: 0 auto; }
.newsletter-form input { flex: 1; padding: 12px 16px; border: 2px solid #ddd; border-radius: 6px; font-size: 0.95rem; outline: none; }
.newsletter-form input:focus { border-color: #cd2653; }

/* Page header */
.page-header { background: linear-gradient(135deg, #1a1a2e, #0f3460); color: #fff; padding: 60px 0; text-align: center; }
.page-header h1 { font-size: 2.2rem; font-weight: 700; }
.page-header p { color: #b0b8d1; margin-top: 8px; }
.page-content { max-width: 740px; margin: 40px auto; font-size: 1.05rem; line-height: 1.8; color: #333; }
.page-content p { margin-bottom: 1.2em; }
.page-content h2 { font-size: 1.5rem; margin: 1.5em 0 0.6em; }

/* Tags */
.tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0; }
.tag { display: inline-block; padding: 4px 12px; background: #f0f0f5; border-radius: 20px; font-size: 0.8rem; color: #555; }
.tag:hover { background: #cd2653; color: #fff; text-decoration: none; }

@media (max-width: 768px) {
  .hamburger { display: flex; }
  nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid #eee; padding: 16px; flex-direction: column; box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
  nav.open { display: flex; }
  nav a { width: 100%; }
  .hero h1 { font-size: 2rem; }
  .featured { grid-template-columns: 1fr; }
  .featured-img { height: 250px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .blog-item { grid-template-columns: 1fr; }
  .blog-item-img { height: 200px; }
  .article-title { font-size: 1.6rem; }
  .newsletter { padding: 28px 20px; }
  .newsletter-form { flex-direction: column; }
}
