/* Blog-specific overrides for body and container */
body {
    flex-direction: column; /* Changed to column for blog layout */
}

.container {
    margin: 40px 0;
}

/* Blog listing page styles */
.blog-header {
    margin-bottom: 50px;
    text-align: center;
}

.blog-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: darkorange;
    margin-bottom: 20px;
}

.blog-description {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

.home-link {
    display: inline-block;
    color: #ffffff;
    text-decoration: none;
    margin-top: 15px;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.home-link:hover {
    color: darkorange;
}

.posts-list {
    list-style: none;
}

.post-item {
    margin-bottom: 40px;
    border-bottom: 1px solid #333;
    padding-bottom: 40px;
}

.post-item:last-child {
    border-bottom: none;
}

.post-date {
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 10px;
}

.post-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #fff;
}

.post-title a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: darkorange;
}

.post-excerpt {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.read-more {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 4px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.read-more:hover {
    background-color: darkorange;
    transform: translateY(-2px);
}

/* Blog post page styles */
.post-header {
    margin-bottom: 40px;
}

.blog-nav {
    margin-bottom: 30px;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.nav-link:hover {
    color: darkorange;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1rem;
    color: #999;
    margin-bottom: 40px;
}

.post-meta .post-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-content {
    font-size: 1.2rem;
    line-height: 1.8;
}

.post-content p {
    margin-bottom: 25px;
}

.post-content h2 {
    font-size: 1.8rem;
    margin-top: 50px;
    margin-bottom: 20px;
    color: #fff;
}

.post-content h3 {
    font-size: 1.5rem;
    margin-top: 40px;
    margin-bottom: 15px;
    color: #fff;
}

.post-content ul, .post-content ol {
    margin-bottom: 25px;
    padding-left: 25px;
}

.post-content li {
    margin-bottom: 10px;
}

.post-content blockquote {
    border-left: 4px solid darkorange;
    padding-left: 20px;
    margin-left: 0;
    margin-bottom: 25px;
    font-style: italic;
}

/* Back to top button */
.back-to-top {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 4px;
    color: #fff;
    text-decoration: none;
    margin-top: 50px;
    transition: all 0.3s ease;
}

.back-to-top:hover {
    background-color: darkorange;
}

/* Newsletter signup section */
.newsletter-signup {
    background-color: rgba(255, 140, 0, 0.05);
    border: 1px solid rgba(255, 140, 0, 0.2);
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 50px;
    text-align: center;
}

.newsletter-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: darkorange;
    margin-bottom: 10px;
}

.newsletter-description {
    font-size: 1.1rem;
    color: #ccc;
    margin-bottom: 20px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto 15px auto;
}

.newsletter-input {
    flex: 1;
    padding: 12px 16px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: #fff;
    font-family: 'Urbanist', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.newsletter-input:focus {
    outline: none;
    border-color: darkorange;
    background-color: rgba(255, 255, 255, 0.08);
}

.newsletter-input::placeholder {
    color: #666;
}

.newsletter-button {
    padding: 12px 24px;
    background-color: darkorange;
    border: none;
    border-radius: 4px;
    color: #000;
    font-family: 'Urbanist', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-button:hover {
    background-color: #ff8c00;
    transform: translateY(-2px);
}

.newsletter-note {
    font-size: 0.9rem;
    color: #999;
}

.rss-link {
    color: darkorange;
    text-decoration: none;
    transition: color 0.3s ease;
}

.rss-link:hover {
    color: #ff8c00;
    text-decoration: underline;
}

/* Responsive styles */
@media (max-width: 768px) {
    .container {
        padding: 40px;
        margin: 20px;
    }

    .blog-title {
        font-size: 2rem;
    }

    .post-title {
        font-size: 1.5rem;
    }

    .post-content {
        font-size: 1.1rem;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 25px;
    }

    .newsletter-signup {
        padding: 20px;
    }

    .newsletter-title {
        font-size: 1.3rem;
    }

    .newsletter-description {
        font-size: 1rem;
    }
}
