/* Blog Styles for Ernst & Conte Website */

/* Blog Container */
.blog-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Blog Header */
.blog-header {
    margin-bottom: 3em;
    text-align: center;
}

.blog-header p {
    font-size: 1.1em;
    color: rgba(255, 255, 255, 0.7);
}

/* Blog Categories */
.blog-categories {
    margin: 2em 0;
    text-align: center;
}

.category-label {
    display: block;
    margin-bottom: 0.5em;
    font-weight: bold;
    color: #ffffff;
}

.category-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5em;
}

.category {
    display: inline-block;
    padding: 0.3em 0.8em;
    border-radius: 2em;
    background-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.category.active {
    background-color: #b74e91;
    color: #ffffff;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2em;
}

/* Blog Post Card */
.blog-post {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 0.5em;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.blog-post-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.blog-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-post:hover .blog-post-image img {
    transform: scale(1.05);
}

.blog-post-content {
    padding: 1.5em;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-post-content h2 {
    font-size: 1.5em;
    margin-bottom: 0.5em;
}

.blog-post-content h2 a {
    color: #ffffff;
    text-decoration: none;
    border-bottom: none;
}

.blog-post-content h2 a:hover {
    color: #b74e91;
}

.blog-post-meta {
    margin-bottom: 1em;
    font-size: 0.8em;
    color: rgba(255, 255, 255, 0.5);
}

.blog-post-meta .date {
    margin-right: 1em;
}

.blog-post-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
    margin-bottom: 1em;
}

.blog-post-categories .category {
    font-size: 0.7em;
    padding: 0.2em 0.6em;
}

.blog-post .summary {
    margin-bottom: 1.5em;
    flex-grow: 1;
}

.read-more {
    display: inline-block;
    padding: 0.5em 1em;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-radius: 2em;
    text-decoration: none;
    font-size: 0.8em;
    transition: background-color 0.3s ease;
    border-bottom: none;
    align-self: flex-start;
}

.read-more:hover {
    background-color: #b74e91;
    color: #ffffff;
}

/* Single Blog Post */
.blog-back-button {
    margin-bottom: 2em;
}

.blog-back-button a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    border-bottom: none;
    transition: color 0.3s ease;
}

.blog-back-button a:hover {
    color: #ffffff;
}

.blog-post-full {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 0.5em;
    padding: 2em;
}

.blog-post-header {
    margin-bottom: 2em;
}

.blog-post-header h1 {
    font-size: 2.5em;
    margin-bottom: 0.5em;
}

.blog-post-featured-image {
    margin-bottom: 2em;
    border-radius: 0.5em;
    overflow: hidden;
}

.blog-post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.blog-post-full .content {
    line-height: 1.8;
}

.blog-post-full .content h2 {
    margin-top: 1.5em;
    margin-bottom: 0.8em;
    color: #ffffff;
}

.blog-post-full .content h3 {
    margin-top: 1.2em;
    margin-bottom: 0.6em;
    color: #ffffff;
}

.blog-post-full .content p {
    margin-bottom: 1.5em;
}

.blog-post-full .content ul,
.blog-post-full .content ol {
    margin-bottom: 1.5em;
    padding-left: 1.5em;
}

.blog-post-full .content li {
    margin-bottom: 0.5em;
}

.blog-post-full .content pre {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 1em;
    border-radius: 0.3em;
    overflow-x: auto;
    margin-bottom: 1.5em;
}

.blog-post-full .content code {
    font-family: "Courier New", monospace;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 0.2em 0.4em;
    border-radius: 0.3em;
}

.blog-post-full .content pre code {
    padding: 0;
    background-color: transparent;
}

/* Responsive Adjustments */
@media screen and (max-width: 980px) {
    .blog-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .blog-post-header h1 {
        font-size: 2em;
    }
}

@media screen and (max-width: 736px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-post-image {
        height: 180px;
    }

    .blog-post-header h1 {
        font-size: 1.8em;
    }

    .blog-post-full {
        padding: 1.5em;
    }
}

@media screen and (max-width: 480px) {
    .blog-post-image {
        height: 150px;
    }

    .blog-post-content {
        padding: 1em;
    }

    .blog-post-header h1 {
        font-size: 1.5em;
    }
}
