@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700;800&display=swap');

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

html { scroll-behavior: smooth; }
body { font-family: 'Poppins', sans-serif; line-height: 1.6; color: var(--text); background: var(--bg); }

/* Load theme */
:root { --primary: #2563eb; --primary-dark: #1d4ed8; }

/* Header */
header { background: var(--surface); border-bottom: 1px solid var(--border); padding: 1rem 2rem; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.header-wrapper { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.8rem; font-weight: 800; color: var(--primary); }
.nav { display: flex; gap: 2rem; }
.nav a { color: var(--text); text-decoration: none; font-weight: 600; transition: 0.3s; }
.nav a:hover { color: var(--primary); }

/* Hero Slider */
.hero-slider { position: relative; height: 500px; overflow: hidden; background: var(--gradient-1); }
.slide { position: absolute; width: 100%; height: 100%; opacity: 0; transition: opacity 1s ease-in-out; display: flex; align-items: center; justify-content: center; color: white; text-align: center; }
.slide.active { opacity: 1; }
.slide-content { z-index: 2; max-width: 600px; }
.slide h1 { font-size: 3rem; margin-bottom: 1rem; text-shadow: 2px 2px 8px rgba(0,0,0,0.3); }
.slide p { font-size: 1.3rem; margin-bottom: 2rem; text-shadow: 1px 1px 4px rgba(0,0,0,0.3); }
.slide-btn { display: inline-block; padding: 1rem 2rem; background: white; color: var(--primary); font-weight: 700; border-radius: 50px; text-decoration: none; transition: 0.3s; }
.slide-btn:hover { transform: scale(1.05); box-shadow: 0 10px 30px rgba(0,0,0,0.2); }

/* Sections */
.section { padding: 4rem 2rem; max-width: 1200px; margin: 0 auto; }
.section h2 { font-size: 2.2rem; margin-bottom: 1rem; color: var(--primary); }
.section-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin-top: 2rem; }

/* News Grid */
.news-card { background: var(--surface); border-radius: 12px; overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,0.1); transition: 0.3s; cursor: pointer; }
.news-card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.15); }
.news-card img { width: 100%; height: 250px; object-fit: cover; }
.news-card-content { padding: 1.5rem; }
.news-card h3 { color: var(--primary); margin-bottom: 0.5rem; }
.news-card p { color: var(--text-secondary); margin-bottom: 1rem; }
.news-card-meta { font-size: 0.85rem; color: var(--text-secondary); }

/* Blog Listing */
.blog-grid { display: grid; gap: 2rem; }
.post-item { display: grid; grid-template-columns: 300px 1fr; gap: 2rem; background: var(--surface); padding: 1.5rem; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.post-item img { height: 200px; object-fit: cover; border-radius: 8px; }
.post-content h3 { color: var(--primary); margin-bottom: 0.5rem; }
.post-content a { color: var(--primary); text-decoration: none; font-weight: 600; }
.post-content a:hover { text-decoration: underline; }

/* Single Post */
.article-wrapper { max-width: 800px; margin: 2rem auto; }
.article-header { margin-bottom: 2rem; }
.article-meta { display: flex; gap: 2rem; color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 1rem; }
.article-meta span { display: flex; align-items: center; gap: 0.5rem; }
.article-body { line-height: 1.8; color: var(--text); }
.article-body h2 { font-size: 1.8rem; margin: 2rem 0 1rem; color: var(--primary); }
.article-body h3 { font-size: 1.3rem; margin: 1.5rem 0 0.8rem; color: var(--primary-dark); }
.article-body p { margin-bottom: 1rem; }

/* FAQ */
.faq-item { margin-bottom: 1rem; }
.faq-summary { padding: 1rem; background: var(--bg); border-left: 4px solid var(--primary); cursor: pointer; font-weight: 600; }
.faq-summary:hover { background: rgba(37,99,235,0.05); }
.faq-detail { padding: 1rem; background: white; border-left: 4px solid var(--primary); margin-top: 0.5rem; color: var(--text-secondary); }

/* Forms */
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 600; color: var(--primary); }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 0.8rem; border: 1px solid var(--border); border-radius: 8px; font-family: inherit; font-size: 1rem; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }

/* Buttons */
.btn { display: inline-block; padding: 0.8rem 1.6rem; border-radius: 8px; text-decoration: none; font-weight: 600; border: none; cursor: pointer; transition: 0.3s; }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 8px 16px rgba(37,99,235,0.3); }
.btn-secondary { background: var(--bg); color: var(--primary); border: 2px solid var(--primary); }
.btn-secondary:hover { background: var(--primary); color: white; }

/* Footer */
footer { background: var(--primary); color: white; padding: 3rem 2rem 1rem; margin-top: 4rem; }
.footer-content { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; margin-bottom: 2rem; }
.footer-section h3 { margin-bottom: 1rem; }
.footer-section a { color: rgba(255,255,255,0.8); text-decoration: none; display: block; margin-bottom: 0.5rem; transition: 0.3s; }
.footer-section a:hover { color: white; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.2); padding-top: 1.5rem; text-align: center; font-size: 0.9rem; color: rgba(255,255,255,0.8); }

/* Pagination */
.pagination { display: flex; gap: 0.5rem; justify-content: center; margin: 2rem 0; }
.pagination a, .pagination span { padding: 0.5rem 1rem; border: 1px solid var(--border); border-radius: 6px; text-decoration: none; color: var(--text); }
.pagination a:hover { background: var(--primary); color: white; border-color: var(--primary); }
.pagination .active { background: var(--primary); color: white; border-color: var(--primary); }

/* Responsive */
@media (max-width: 768px) {
  .nav { gap: 1rem; font-size: 0.9rem; }
  .slide h1 { font-size: 2rem; }
  .post-item { grid-template-columns: 1fr; }
  .section-content { grid-template-columns: 1fr; }
}
