/* Single Post Page Styles */
.single-post-page {
    padding: 80px 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Back to News Link */
.back-to-news {
    margin-bottom: 30px;
}

.back-to-news a {
    color: #000;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s ease;
}

.back-to-news a:hover {
    color: #007bff;
}

/* Post Header */
.post-header {
    margin-bottom: 40px;
}

.post-meta {
    margin-bottom: 20px;
}

.post-category {
    background: #f0f0f0;
    padding: 5px 10px;
    border-radius: 4px;
    margin-right: 10px;
    font-size: 14px;
}

.post-date {
    color: #666;
    font-size: 14px;
}

.post-title {
    font-size: 2.5rem;
    line-height: 1.3;
    margin: 0;
    color: #000;
}

/* Featured Media */
.post-featured-media {
    margin-bottom: 40px;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}

.post-featured-media video,
.post-featured-media iframe,
.post-video,
.post-video-embed {
    width: 100%;
    display: block;
    aspect-ratio: 16/9;
    border: none;
}

.post-featured-media video {
    background: #000;
}

/* Featured Image */
.post-featured-image {
    margin-bottom: 40px;
}

.post-featured-image img,
.post-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    object-fit: cover;
}

/* Post Content */
.post-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.post-content h2 {
    margin: 40px 0 20px;
    font-size: 1.75rem;
}

.post-content p {
    margin-bottom: 20px;
    font-size: 1.125rem;
    color: #333;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

/* Related Posts */
.related-posts {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #eee;
}

.related-posts h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.75rem;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.post-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
}

.post-card .post-image {
    height: 200px;
    overflow: hidden;
}

.post-card .post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-card .post-content {
    padding: 20px;
}

.post-card .post-title {
    font-size: 1.25rem;
    margin: 10px 0;
}

.post-card .post-title a {
    color: #000;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-card .post-title a:hover {
    color: #007bff;
}

/* Responsive Design */
@media (max-width: 992px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .post-title {
        font-size: 2rem;
    }
    
    .post-content {
        padding: 0 20px;
    }
}

@media (max-width: 576px) {
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .post-title {
        font-size: 1.75rem;
    }
    
    .post-featured-media,
    .post-featured-image {
        margin: 0 -20px 30px;
        border-radius: 0;
    }
}
/* CKEditor Image Alignment Styles */
.image-style-side {
    float: right;
    margin-left: 20px;
    max-width: 50%;
}

.image-style-align-left {
    float: left;
    margin-right: 20px;
}

.image-style-align-right {
    float: right;
    margin-left: 20px;
}

.image-style-align-center {
    display: block;
    margin: 0 auto;
}

.image-style-full {
    width: 100%;
    height: auto;
}

/* Media embed responsive */
.media {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

.media iframe,
.media object,
.media embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}