/* Blog page specific styles */

.background-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(0, 255, 0, 0.03) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(0, 255, 0, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    z-index: -1;
}

.page-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 30px;
    color: var(--secondary-color);
    transition: text-shadow 0.3s ease;
}

.page-title:hover {
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.7),
                 0 0 20px rgba(0, 255, 0, 0.5),
                 0 0 30px rgba(0, 255, 0, 0.3);
}

.blog-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
    padding: 0 15px;
}

.blog-card {
    background-color: rgba(0, 255, 0, 0.05);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, outline 0.3s ease;
    display: flex;
    flex-direction: column;
    outline: 2px solid transparent;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 255, 0, 0.1);
    outline: 2px solid var(--secondary-color);
}

.blog-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-content h2 {
    font-size: 22px;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.blog-content p {
    font-size: 14px;
    margin-bottom: 15px;
    flex-grow: 1;
}

.read-more {
    display: inline-block;
    padding: 8px 16px;
    background-color: var(--text-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    align-self: flex-start;
    font-weight: bold;
    font-size: 14px;
}

.read-more:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    transform: scale(1.05);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Media Queries for Responsive Design */
@media (min-width: 768px) {
    .page-title {
        font-size: 48px;
        margin-bottom: 40px;
    }

    .blog-list {
        gap: 30px;
        margin-bottom: 60px;
        padding: 0;
        max-width: 800px;
        margin-left: auto;
        margin-right: auto;
    }

    .blog-image {
        height: 250px;
    }

    .blog-content {
        padding: 25px;
    }

    .blog-content h2 {
        font-size: 24px;
        margin-bottom: 12px;
    }

    .blog-content p {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .read-more {
        padding: 10px 20px;
        font-size: 16px;
    }
}

/* Individual blog post styles */
.blog-post {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 15px;
}

.post-title {
    font-size: 28px;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.post-meta {
    font-size: 12px;
    color: var(--text-color);
    margin-bottom: 15px;
    opacity: 0.8;
}

.post-image {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
}

.post-content {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
}

.post-content h2, .post-content h3 {
    color: var(--secondary-color);
    margin-top: 25px;
    margin-bottom: 12px;
}

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

.post-content a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.post-content a:hover {
    opacity: 0.8;
}

@media (min-width: 768px) {
    .blog-post {
        padding: 40px 20px;
    }

    .post-title {
        font-size: 36px;
        margin-bottom: 20px;
    }

    .post-meta {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .post-image {
        max-height: 400px;
        margin-bottom: 30px;
    }

    .post-content {
        font-size: 18px;
    }

    .post-content h2, .post-content h3 {
        margin-top: 30px;
        margin-bottom: 15px;
    }

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