/* Base styles */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; line-height: 1.6; color: #333; background: #f6f7fb; }
header { background: #ffffff; color: #1e3a8a; padding: 0.5rem 1rem; letter-spacing: 0.5px; border-bottom: 1px solid #e5e9f2; box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
.header-inner { max-width: 980px; margin: 0 auto; display: flex; align-items: center; gap: 12px; }
.site-logo-wrap { display: inline-flex; align-items: center; justify-content: center; background: #ffffff; border-radius: 8px; padding: 3px; box-shadow: 0 1px 6px rgba(0,0,0,0.10); }
.site-logo { height: 80px; width: auto; display: block; }
@media (max-width: 768px) { .site-logo { height: 70px; } }
@media (max-width: 480px) { .site-logo { height: 50px; } }

/* Social media icons in header */
.social-icons { display: flex; gap: 16px; align-items: center; margin-left: auto; }
.social-icon { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; color: #1e3a8a; text-decoration: none; transition: color 0.2s ease; }
.social-icon:hover { color: #0077b6; }
.social-icon svg { width: 100%; height: 100%; }
nav { background: #1e2430; padding: 0.6rem; margin-bottom: 2rem; text-align: center; }
nav a { color: #eef2f7; text-decoration: none; margin: 0 0.8rem; display: inline-block; font-weight: 500; }
nav a:hover { text-decoration: underline; }
main { max-width: 980px; margin: 0 auto; padding: 2rem 1rem; background: white; min-height: 60vh; box-shadow: 0 2px 10px rgba(0,0,0,0.04); }
main h1 { margin-bottom: 1rem; }
main h2 { margin-top: 1.5rem; margin-bottom: 0.75rem; }
main h3 { margin-top: 1.25rem; margin-bottom: 0.5rem; }
main p { margin-bottom: 1rem; }

/* List styling */
main ul, main ol { margin: 1rem 0; padding-left: 2rem; }
main ul { list-style-type: disc; }
main ol { list-style-type: decimal; }
main li { margin-bottom: 0.5rem; line-height: 1.6; }
main ul ul, main ol ul { list-style-type: circle; margin-top: 0.5rem; }
main ul ol, main ol ol { list-style-type: lower-alpha; margin-top: 0.5rem; }
article ul, article ol { margin: 1rem 0; padding-left: 2rem; }
article li { margin-bottom: 0.5rem; }

footer { background: #101418; color: white; text-align: center; padding: 2rem; margin-top: 2rem; }
.ad-slot { background: #f0f0f0; border: 1px solid #ddd; padding: 1rem; margin: 1rem 0; text-align: center; font-size: 0.9rem; color: #666; }
.affiliate-notice { background: #e8f5e9; border-left: 4px solid #4caf50; padding: 1rem; margin: 2rem 0; border-radius: 4px; }
.affiliate-notice p { font-size: 0.9rem; color: #2e7d32; margin: 0; }
.affiliate-notice strong { color: #1b5e20; }

/* Responsive images */
img { max-width: 100%; height: auto; }
article img { display: block; margin: 1rem auto; border-radius: 6px; }
figure { margin: 1rem 0; }
figure img { display: block; }
figcaption { font-size: 0.9rem; color: #666; text-align: center; margin-top: 0.5rem; }

/* Slider */
.hero-slider { position: relative; overflow: hidden; margin-bottom: 2rem; border-radius: 8px; background: #000; }
.slider-container { position: relative; width: 100%; padding-bottom: 60%; height: 0; }
.slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; background-repeat: no-repeat; opacity: 0; transition: opacity 0.6s ease-in-out; }
.slide.active { opacity: 1; }
.slider-prev, .slider-next { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; background: rgba(255,255,255,0.5); border: none; color: #000; font-size: 24px; cursor: pointer; z-index: 10; border-radius: 4px; transition: background 0.3s ease; }
.slider-prev { left: 16px; }
.slider-next { right: 16px; }
.slider-prev:hover, .slider-next:hover { background: rgba(255,255,255,0.8); }
.slider-dots { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 10; }
.dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.5); border: none; cursor: pointer; transition: background 0.3s ease; }
.dot.active { background: rgba(255,255,255,0.9); }
.dot:hover { background: rgba(255,255,255,0.75); }
@media (max-width: 768px) { .slider-prev, .slider-next { width: 40px; height: 40px; font-size: 20px; } }

/* Feature cards */
.features { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 1rem; }
@media (min-width: 700px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature-card { border: 1px solid #e5e9f2; border-radius: 8px; padding: 16px; background: #fff; box-shadow: 0 1px 6px rgba(0,0,0,0.04); }
.feature-card h3 { margin-bottom: 8px; font-size: 1.1rem; }
.feature-card p { color: #566; font-size: 0.95rem; margin-bottom: 10px; }
.btn { display: inline-block; background: #1e88e5; color: #fff; padding: 8px 12px; border-radius: 4px; text-decoration: none; font-weight: 600; }
.btn:hover { background: #1565c0; }

/* Blog listing */
.blog-listing { display: grid; gap: 24px; margin-top: 24px; }
.blog-post-card { border: 1px solid #e5e9f2; border-radius: 8px; padding: 0; background: #fff; box-shadow: 0 1px 6px rgba(0,0,0,0.04); overflow: hidden; }
.blog-post-card .post-image { width: 100%; height: 200px; overflow: hidden; }
.blog-post-card .post-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.blog-post-card .post-image:hover img { transform: scale(1.05); }
.blog-post-card .post-content { padding: 20px; }
.blog-post-card h3 { margin-bottom: 8px; font-size: 1.3rem; }
.blog-post-card h3 a { color: #334862; text-decoration: none; }
.blog-post-card h3 a:hover { color: #1e88e5; }
.blog-post-card .post-date { color: #999; font-size: 0.9rem; margin-bottom: 12px; }
.blog-post-card p { margin-bottom: 12px; }

/* Related products component */
.related-products { margin-top: 2rem; }
.related-products h2 { font-size: 1.4rem; margin-bottom: 0.75rem; color: #334862; }
.related-products .products-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.related-products .product-card { background: #fff; border: 1px solid #e5e9f2; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 6px rgba(0,0,0,0.04); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.related-products .product-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.related-products .product-card-image img { width: 100%; height: 160px; object-fit: cover; }
.related-products .product-card-content { padding: 0.75rem 1rem; }
.related-products .product-category { font-size: 0.85rem; color: #1e88e5; font-weight: 600; margin-bottom: 0.25rem; }
.related-products .btn { display: inline-block; margin-top: 0.5rem; padding: 0.5rem 0.75rem; background: #0f766e; color: #fff; text-decoration: none; border-radius: 4px; }
.related-products .btn:hover { background: #0c5f59; }
