/* Blog Post List */
#post-list-container {
    max-width: 800px;
    margin: 160px auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.post-list-title {
    font-size: 2em;
    text-align: center;
    margin-bottom: 20px;
}

.post-list {
    list-style: none;
    padding: 0;
}

.post-list-item {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #fff;
    transition: transform 0.2s;
}

.post-list-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.post-list-link {
    text-decoration: none;
    color: #333;
}

.post-list-item-title {
    font-size: 1.5em;
    margin: 0;
}

.post-list-item-meta {
    font-size: 0.9em;
    color: #666;
    margin-top: 5px;
}

/* Blog Post Detail */
#post-detail-container {
    max-width: 800px;
    margin: 160px auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.post-detail {
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #fff;
}

.post-detail-header {
    margin-bottom: 20px;
}

/* Featured Image Styles */
.featured-image {
    margin: 0 0 20px 0;
    position: relative;
    width: 100%;
    aspect-ratio: 1200/628; /* Maintain the WordPress recommended aspect ratio */
    overflow: hidden;
    border-radius: 5px;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.post-detail-title {
    font-size: 2.5em;
    margin: 0;
}

.post-detail-meta {
    font-size: 1em;
    color: #666;
    margin-top: 5px;
}

.post-detail-content {
    font-size: 1.2em;
    line-height: 1.6;
    color: #333;
}

/* Responsive Styles */
@media (max-width: 768px) {
    #post-detail-container {
        margin: 160px auto;
        padding: 15px;
    }

    .post-detail {
        padding: 15px;
    }

    .featured-image {
        margin: -15px -15px 15px -15px;
        width: calc(100% + 30px);
        max-height: 300px;
    }

    .post-detail-title {
        font-size: 2em;
    }

    .post-detail-content {
        font-size: 1.1em;
    }
}

@media (max-width: 480px) {
    #post-detail-container {
        margin: 160px auto;
        padding: 10px;
    }

    .post-detail {
        padding: 10px;
    }

    .featured-image {
        margin: -10px -10px 10px -10px;
        width: calc(100% + 20px);
        max-height: 200px;
    }

    .post-detail-title {
        font-size: 1.8em;
    }

    .post-detail-content {
        font-size: 1em;
    }
}
