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

:root {
  --primary: #e63946;
  --primary-dark: #c1121f;
  --secondary: #1a1a2e;
  --accent: #16213e;
  --bg: #0f0f23;
  --bg-card: #1a1a2e;
  --bg-card-hover: #222244;
  --text: #e8e8e8;
  --text-muted: #a0a0b8;
  --text-light: #c0c0d0;
  --border: #2a2a4a;
  --green: #2ecc71;
  --gold: #f1c40f;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,0.3);
  --shadow-lg: 0 8px 48px rgba(0,0,0,0.4);
  --transition: all 0.3s ease;
  --max-width: 1200px;
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--gold); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style-position: inside; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
.narrow { max-width: 800px; }
.text-center { text-align: center; }

/* ==================== HEADER ==================== */
.site-header {
  background: var(--secondary);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.3rem;
  color: var(--text);
  font-weight: 600;
}
.logo:hover { color: var(--text); }
.logo-icon { font-size: 1.6rem; }
.logo-text strong { color: var(--primary); }
.nav-links {
  display: flex;
  gap: 0.25rem;
  list-style: none;
}
.nav-links a {
  color: var(--text-light);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-links a:hover, .nav-links a.active {
  color: #fff;
  background: var(--primary);
}
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: var(--transition);
}

/* ==================== HERO ==================== */
.hero {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 50%, #0a0a1a 100%);
  padding: 5rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(230,57,70,0.08) 0%, transparent 50%),
              radial-gradient(circle at 70% 50%, rgba(241,196,15,0.05) 0%, transparent 50%);
  animation: pulse 8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}
.hero h1 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 900;
  margin-bottom: 1.2rem;
  position: relative;
  line-height: 1.2;
}
.highlight { color: var(--primary); }
.hero-desc {
  font-size: 1.15rem;
  color: var(--text-light);
  max-width: 750px;
  margin: 0 auto 2rem;
  position: relative;
  line-height: 1.8;
}
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 2rem;
  position: relative;
}
.tag {
  background: rgba(230,57,70,0.15);
  color: var(--primary);
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid rgba(230,57,70,0.3);
  transition: var(--transition);
}
.tag:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}
.btn-primary {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 0.9rem 2.2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  transition: var(--transition);
  position: relative;
}
.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(230,57,70,0.4);
}
.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--text);
  padding: 0.9rem 2.2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid var(--border);
  transition: var(--transition);
}
.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ==================== FEATURES ==================== */
.features {
  padding: 5rem 0;
  background: var(--bg);
}
.features h2 {
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  margin-bottom: 3rem;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
}
.feature-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--primary);
}
.feature-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.8rem;
  color: #fff;
}
.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ==================== POSTS GRID ==================== */
.latest-posts, .blog-listing {
  padding: 5rem 0;
}
.latest-posts h2, .blog-listing h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.section-desc {
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
}
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
}
.small-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}
.post-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.post-card-body { padding: 1.8rem; }
.post-category {
  display: inline-block;
  background: rgba(230,57,70,0.15);
  color: var(--primary);
  padding: 0.25rem 0.8rem;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.8rem;
}
.post-card h2, .post-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  line-height: 1.4;
}
.post-card h2 a, .post-card h3 a {
  color: #fff;
}
.post-card h2 a:hover, .post-card h3 a:hover {
  color: var(--primary);
}
.post-card p {
  color: var(--text-muted);
  font-size: 0.93rem;
  margin-bottom: 1rem;
  line-height: 1.6;
}
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.83rem;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.mini-tag {
  background: rgba(255,255,255,0.05);
  color: var(--text-muted);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
  border: 1px solid var(--border);
}
.read-more {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
}
.read-more:hover { color: var(--gold); }

/* ==================== PAGE HERO ==================== */
.page-hero {
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  padding: 3rem 0 2.5rem;
  border-bottom: 1px solid var(--border);
}
.page-hero h1 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 0.8rem;
}
.page-hero p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 700px;
  line-height: 1.7;
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.88rem;
  margin-bottom: 1.2rem;
  color: var(--text-muted);
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { color: var(--text-muted); }

/* ==================== BLOG ARTICLE ==================== */
.blog-article { padding: 3rem 0 5rem; }
.article-header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.article-header h1 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  line-height: 1.3;
  margin: 1rem 0 1.2rem;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.article-content {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-light);
}
.article-content h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.6rem;
  color: #fff;
  margin: 2.5rem 0 1rem;
  padding-top: 1rem;
}
.article-content h3 {
  font-size: 1.25rem;
  color: #fff;
  margin: 2rem 0 0.8rem;
}
.article-content p {
  margin-bottom: 1.2rem;
}
.article-content ul, .article-content ol {
  margin: 1rem 0 1.5rem;
  padding-left: 0.5rem;
}
.article-content li {
  margin-bottom: 0.5rem;
  color: var(--text-light);
}
.article-content strong { color: #fff; }
.article-content a { color: var(--primary); }
.article-content a:hover { color: var(--gold); text-decoration: underline; }

/* ==================== FAQ ==================== */
.faq-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.faq-section h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
}
.faq-list { display: flex; flex-direction: column; gap: 0.8rem; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: var(--transition);
}
.faq-item:hover { border-color: var(--primary); }
.faq-item summary {
  padding: 1.2rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  color: #fff;
  font-size: 1rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--primary);
  font-weight: 700;
  flex-shrink: 0;
  margin-left: 1rem;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-answer {
  padding: 0 1.5rem 1.2rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* ==================== RELATED POSTS ==================== */
.related-posts {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.related-posts h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
}

/* ==================== SEO CONTENT ==================== */
.seo-content {
  padding: 4rem 0;
  background: var(--secondary);
  border-top: 1px solid var(--border);
}
.seo-content h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}
.seo-content p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1rem;
}
.seo-content strong { color: var(--text-light); }

/* ==================== PAGE CONTENT ==================== */
.page-content {
  padding: 3rem 0 5rem;
}
.page-content h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.4rem;
  margin: 2rem 0 1rem;
  color: #fff;
}
.page-content h3 {
  font-size: 1.15rem;
  margin: 1.5rem 0 0.8rem;
  color: #fff;
}
.page-content p {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 1rem;
}
.page-content ul {
  margin: 1rem 0 1.5rem;
}
.page-content li {
  color: var(--text-light);
  margin-bottom: 0.5rem;
}
.page-content strong { color: #fff; }
.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}
.contact-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.contact-item h3 {
  margin: 0 0 0.5rem !important;
  font-size: 1.05rem;
}

/* ==================== ERROR PAGE ==================== */
.error-page {
  padding: 8rem 0;
}
.error-code {
  font-family: 'Poppins', sans-serif;
  font-size: 8rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 1rem;
}
.error-page h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}
.error-page p {
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 2rem;
}
.error-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ==================== FOOTER ==================== */
.site-footer {
  background: var(--secondary);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 1rem;
}
.footer-logo:hover { color: var(--text); }
.footer-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}
.footer-col h3 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 1.2rem;
  font-weight: 700;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: var(--transition);
}
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  text-align: center;
}
.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}
.footer-seo {
  font-size: 0.78rem !important;
  color: rgba(160,160,184,0.5) !important;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .menu-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--secondary);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .nav-links.active { display: flex; }
  .nav-links a { padding: 0.8rem 1rem; }
  .hero { padding: 3rem 0 2.5rem; }
  .hero-desc { font-size: 1rem; }
  .features-grid { grid-template-columns: 1fr; }
  .posts-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .article-header h1 { font-size: 1.5rem; }
  .article-content { font-size: 1rem; }
  .article-content h2 { font-size: 1.35rem; }
  .contact-info { grid-template-columns: 1fr; }
  .error-code { font-size: 5rem; }
}
@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .hero h1 { font-size: 1.8rem; }
  .post-card-body { padding: 1.2rem; }
  .hero-tags { gap: 0.4rem; }
  .tag { padding: 0.4rem 0.8rem; font-size: 0.8rem; }
  .btn-primary, .btn-secondary { padding: 0.7rem 1.5rem; font-size: 0.9rem; }
}

/* ==================== PRINT ==================== */
@media print {
  .site-header, .site-footer, .hero-tags, .btn-primary, .btn-secondary, .menu-toggle { display: none; }
  body { background: #fff; color: #000; }
  .article-content { color: #333; }
  a { color: #000; }
}
