/* styles.css */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Arial', sans-serif; line-height: 1.6; background: #f7f7f7; color: #1f2937; }
nav { background: #1e3a8a; padding: 1rem; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 5px rgba(0,0,0,0.2); }
nav ul { list-style: none; display: flex; justify-content: center; }
nav ul li { margin: 0 1.5rem; }
nav ul li a { color: white; text-decoration: none; font-weight: bold; transition: color 0.3s; }
nav ul li a:hover { color: #f97316; }
header { background: #1e3a8a; color: white; text-align: center; padding: 2rem 1rem; }
header h1 { font-size: 2.5rem; margin-bottom: 0.5rem; }
header p { font-size: 1.2rem; }
.ad-slot { background: #d1d5db; text-align: center; padding: 1rem; margin: 1rem auto; max-width: 728px; border-radius: 5px; }
.ad-footer { position: fixed; bottom: 0; width: 100%; background: #d1d5db; text-align: center; padding: 0.5rem; z-index: 50; }
.intro { max-width: 900px; margin: 2rem auto; text-align: center; padding: 0 1rem; font-size: 1.1rem; }
.hack-grid { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; padding: 2rem 1rem; }
.card { border: 1px solid #e5e7eb; padding: 1.5rem; border-radius: 5px; background: white; box-shadow: 0 2px 5px rgba(0,0,0,0.1); transition: transform 0.3s; }
.card:hover { transform: translateY(-5px); }
.card h2 { font-size: 1.5rem; color: #1e3a8a; }
.card p { margin: 0.5rem 0; }
.card a { color: #f97316; text-decoration: none; font-weight: bold; }
.card a:hover { text-decoration: underline; }
.post-container { max-width: 1000px; margin: 2rem auto; padding: 0 1rem; display: flex; gap: 2rem; }
.post-main { flex: 3; }
.post-sidebar { flex: 1; }
.post-header { text-align: center; margin-bottom: 2rem; }
.post-header h1 { font-size: 2.2rem; color: #1e3a8a; }
.post-meta { font-size: 0.9rem; color: #6b7280; margin: 0.5rem 0; }
.post-content { background: white; padding: 1.5rem; border: 1px solid #e5e7eb; border-radius: 5px; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.post-content h2 { font-size: 1.5rem; color: #1e3a8a; margin: 1rem 0 0.5rem; }
.post-content p { margin-bottom: 1rem; }
.post-content a { color: #f97316; text-decoration: none; }
.post-content a:hover { text-decoration: underline; }
.sidebar { background: #fff; padding: 1rem; border: 1px solid #e5e7eb; border-radius: 5px; }
.sidebar h3 { font-size: 1.2rem; color: #1e3a8a; margin-bottom: 1rem; }
.sidebar a { display: block; margin: 0.5rem 0; }
.related { margin: 2rem auto; text-align: center; max-width: 900px; padding: 0 1rem; }
.daily-hack { max-width: 900px; margin: 2rem auto; text-align: center; padding: 1rem; background: #e5e7eb; border-radius: 5px; }
.daily-hack h3 { color: #1e3a8a; }
.comments { margin-top: 2rem; }
.comments h3 { font-size: 1.5rem; color: #1e3a8a; margin-bottom: 1rem; }
.comments input, .comments textarea { width: 100%; padding: 0.5rem; margin-bottom: 1rem; border: 1px solid #e5e7eb; border-radius: 5px; }
.comments button { background: #f97316; color: white; padding: 0.5rem 1rem; border: none; border-radius: 5px; cursor: pointer; }
.share { margin-top: 1rem; }
.share a { margin: 0 0.5rem; color: #f97316; }
footer { background: #d1d5db; text-align: center; padding: 1rem; font-size: 0.9rem; color: #6b7280; margin-bottom: 3rem; }
@media (max-width: 600px) { 
    header h1 { font-size: 1.8rem; } 
    header p { font-size: 1rem; } 
    .card, .post-content { padding: 1rem; } 
    nav ul { flex-direction: column; }
    nav ul li { margin: 0.5rem 0; }
    .post-container { flex-direction: column; }
}