:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
}

.logo span {
    color: var(--secondary-color);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover, nav ul li a.active {
    color: var(--primary-color);
}

/* Blog Detail Section */
.blog-detail-section {
    padding: 120px 0 80px;
}

.blog-detail-container {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 40px;
}

.blog-post-detail {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.blog-post-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.blog-post-content {
    padding: 30px;
}

.blog-meta {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 20px;
}

.blog-meta span {
    display: flex;
    align-items: center;
}

.blog-meta i {
    margin-right: 5px;
}

.blog-post-content h1 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.blog-post-content .content {
    margin-bottom: 30px;
    color: #444;
    font-size: 1.1rem;
    line-height: 1.8;
}

.blog-post-content .content p {
    margin-bottom: 20px;
}

.blog-post-content .content h2 {
    margin: 30px 0 15px;
    color: var(--secondary-color);
}

.blog-post-content .content ul, 
.blog-post-content .content ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

.blog-post-content .content img {
    max-width: 100%;
    border-radius: 5px;
    margin: 20px 0;
}

.blog-post-content .content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 20px;
    margin: 20px 0;
    font-style: italic;
    color: #555;
}

/* Tags */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}

.post-tags a {
    display: inline-block;
    padding: 5px 15px;
    background-color: #f0f0f0;
    color: #555;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.post-tags a:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Author Box */
.author-box {
    display: flex;
    align-items: center;
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 20px;
    margin-top: 40px;
}

.author-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 20px;
}

.author-info h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--secondary-color);
}

.author-info p {
    color: #666;
    margin-bottom: 10px;
}

.social-links a {
    color: #777;
    margin-right: 15px;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--primary-color);
}

/* Comments Section */
.comments-section {
    margin-top: 40px;
}

.comments-section h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.comment {
    display: flex;
    margin-bottom: 30px;
}

.comment-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 20px;
}

.comment-content {
    flex: 1;
}

.comment-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.comment-author {
    font-weight: bold;
    color: var(--secondary-color);
}

.comment-date {
    color: #777;
    font-size: 0.9rem;
}

.comment-text {
    color: #555;
    margin-bottom: 10px;
}

.comment-reply {
    color: var(--primary-color);
    font-weight: 500;
    cursor: pointer;
    transition: color 0.3s;
}

.comment-reply:hover {
    color: var(--secondary-color);
}

/* Reply Form */
.comment-form {
    margin-top: 40px;
}

.comment-form h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

textarea.form-control {
    height: 150px;
    resize: vertical;
}

.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
}

/* Related Posts */
.related-posts {
    margin-top: 60px;
}

.related-posts h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.related-post-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.related-post-card:hover {
    transform: translateY(-5px);
}

.related-post-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.related-post-content {
    padding: 15px;
}

.related-post-content h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.related-post-content h4 a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.related-post-content h4 a:hover {
    color: var(--primary-color);
}

.related-post-meta {
    font-size: 0.8rem;
    color: #777;
}

/* Sidebar */
.blog-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.sidebar-widget h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
    position: relative;
    padding-bottom: 10px;
}

.sidebar-widget h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.search-form {
    display: flex;
    margin-bottom: 10px;
}

.search-form input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px 0 0 5px;
    outline: none;
}

.search-form button {
    padding: 10px 15px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
}

.category-list {
    list-style: none;
}

.category-list li {
    border-bottom: 1px solid #eee;
    padding: 10px 0;
}

.category-list li:last-child {
    border-bottom: none;
}

.category-list a {
    text-decoration: none;
    color: #555;
    display: flex;
    justify-content: space-between;
    transition: color 0.3s;
}

.category-list a:hover {
    color: var(--primary-color);
}

.category-list span {
    background-color: #f0f0f0;
    color: #777;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
}

.recent-post {
    display: flex;
    margin-bottom: 15px;
}

.recent-post:last-child {
    margin-bottom: 0;
}

.recent-post img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 15px;
}

.recent-post-content h4 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.recent-post-content h4 a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.recent-post-content h4 a:hover {
    color: var(--primary-color);
}

.recent-post-content p {
    font-size: 0.8rem;
    color: #777;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-cloud a {
    display: inline-block;
    padding: 5px 15px;
    background-color: #f0f0f0;
    color: #555;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.tag-cloud a:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Contact Float */
.contact-float {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    color: white;
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, background-color 0.3s;
}

.contact-icon:hover {
    transform: scale(1.1);
    background-color: var(--secondary-color);
}

/* Responsive */
@media (max-width: 992px) {
    .blog-detail-container {
        grid-template-columns: 1fr;
    }
    
    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-main {
        flex-direction: column;
        text-align: center;
    }
    
    nav ul {
        margin-top: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 10px 15px;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-float {
        bottom: 20px;
        top: auto;
        right: 20px;
        transform: none;
        flex-direction: row;
    }
    
    .contact-icon {
        margin-right: 15px;
        margin-bottom: 0;
    }
} 