/* Base Styles */
body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fcfcfc;
    margin: 0;
}

html { scroll-behavior: smooth; }

/* Layout */
.container {
    max-width: 1250px;
    margin: 0 auto;
    padding: 40px 20px;
    display: grid;
    grid-template-columns: 1.2fr 3fr 1.2fr; 
    gap: 40px;
}

/* Nav & Header */
.navbar {
    background: #fff;
    padding: 1rem 2rem;
    border-bottom: 1px solid #eee;
    position: sticky; top: 0; z-index: 1000;
}
.nav-container { display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: 0 auto; }
.nav-links { display: flex; list-style: none; gap: 25px; }
.nav-links a { text-decoration: none; color: #333; font-weight: 500; }
.logo { font-weight: bold; font-size: 1.5rem; text-decoration: none; color: #2c3e50; }
.logo span { color: #e67e22; }

#main-header { background: #fff; padding: 60px 20px; text-align: center; border-bottom: 1px solid #eee; }
#main-header h1 { font-size: 2.5rem; color: #2c3e50; margin: 0; }

/* Articles & Content */
article { margin-bottom: 60px; overflow: hidden; }
article img {
    float: left; margin: 10px 20px 10px 0;
    border-radius: 8px; border: 4px solid #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}
article img:hover { transform: scale(1.03); }

/* Post Tags */
.post-tags { margin: 15px 0; clear: both; font-size: 0.85rem; }
.post-tags span { font-weight: bold; color: #7f8c8d; margin-right: 10px; }
.post-tags a { color: #e67e22; text-decoration: none; margin-right: 8px; font-weight: 500; }

/* Comments Section */
.comments {
    background: #f1f1f1;
    padding: 15px 20px;
    border-radius: 8px;
    margin-top: 20px;
}
.comments h4 { margin-top: 0; font-size: 0.9rem; color: #2c3e50; border-bottom: 1px solid #ddd; padding-bottom: 5px; }
.comment-item { font-size: 0.85rem; margin-bottom: 10px; border-bottom: 1px dashed #ccc; padding-bottom: 5px; }
.comment-item:last-child { border-bottom: none; }

/* Tag Cloud (Sidebar) */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.tag-cloud a {
    text-decoration: none; background: #eee; color: #555;
    padding: 5px 12px; border-radius: 20px; font-size: 0.85rem;
    transition: background 0.3s;
}
.tag-cloud a:hover { background: #e67e22; color: #fff; }
.tag-lg { font-size: 1rem !important; font-weight: bold; }

/* Contact Form - LONG INPUTS */
#contact { background: #f9f9f9; padding: 40px; border-radius: 12px; margin-top: 40px; }
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-group input, .form-group textarea {
    width: 100%; padding: 15px; border: 1px solid #ddd;
    border-radius: 8px; box-sizing: border-box; font-size: 1rem;
}
.btn-submit {
    background: #2c3e50; color: white; border: none;
    padding: 15px 40px; border-radius: 8px; cursor: pointer; font-weight: 600;
}
.btn-submit:hover { background: #e67e22; }

/* Sidebar General */
aside h3 { font-size: 0.9rem; color: #34495e; text-transform: uppercase; margin-bottom: 15px; }
aside ul { list-style: none; padding: 0; }
aside ul li { margin-bottom: 10px; }
aside a { color: #2980b9; text-decoration: none; }

.sidebar-left { border-right: 1px solid #eee; padding-right: 15px; }
.sidebar-right { border-left: 1px solid #eee; padding-left: 15px; }

@media (min-width: 769px) {
    aside { position: sticky; top: 100px; height: fit-content; }
}

/* Footer & HR */
footer { text-align: center; padding: 40px; background: #f4f4f4; color: #7f8c8d; }
hr { border: 0; height: 1px; background: #eee; margin: 40px 0; }

/* Mobile */
@media (max-width: 950px) {
    .container { grid-template-columns: 1fr; }
    .sidebar-left, .sidebar-right { border: none; padding: 20px 0; border-top: 1px solid #eee; }
}