/* Container for the news details page */
.news-details-container {
    max-width: 1000px;
    margin: 30px auto;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* Featured Image Container */
.news-feature-image {
    width: 100%;
    max-height: 400px;
    position: relative;
    overflow: hidden;
    background-color: #f0f0f0; /* fallback background */
    background-size: cover;
    background-position: center;
}

/* Featured Image Styling */
.news-feature-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Show entire image without stretching */
    display: block;
    position: relative;
    z-index: 1;
}

/* Placeholder for missing feature image */
.feature-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6em;
    color: #fff;
    background-color: #4ca1af; /* Default theme color */
}

/* News Information Section */
.news-info {
    padding: 30px 40px;
}

/* Title and Meta Info */
.news-title {
    font-size: 2.5em;
    margin-bottom: 10px;
    color: #2c3e50;
}

.news-meta {
    font-size: 0.95em;
    color: #777;
    margin-bottom: 20px;
}

.news-meta span {
    margin-right: 20px;
    display: inline-flex;
    align-items: center;
}

.news-meta span i {
    margin-right: 5px;
    font-size: 1.1em;
}

/* News Content Styling (including Quill Editor Defaults) */
.news-content {
    font-size: 1.1em;
    line-height: 1.8;
    color: #333;
}

/* Paragraphs and Headings */
.news-content p {
    margin: 0 0 1em;
}

.news-content h1,
.news-content h2,
.news-content h3,
.news-content h4,
.news-content h5,
.news-content h6 {
    margin: 1.2em 0 0.6em;
    font-weight: 600;
    color: #2c3e50;
}

/* Blockquotes */
.news-content blockquote {
    border-left: 4px solid #ccc;
    margin: 1em 0;
    padding-left: 15px;
    font-style: italic;
    color: #555;
    background: #f9f9f9;
}

/* Lists */
.news-content ul,
.news-content ol {
    margin: 0 0 1em 1.5em;
}

.news-content li {
    margin-bottom: 0.5em;
}

/* Preformatted Text and Code Blocks */
.news-content pre {
    background-color: #f4f4f4;
    padding: 15px;
    font-family: 'Courier New', Courier, monospace;
    overflow-x: auto;
    border-radius: 4px;
}

.news-content code {
    background-color: #f4f4f4;
    padding: 3px 5px;
    border-radius: 4px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.95em;
}

/* Additional Quill Editor Styles */
.ql-editor {
    box-sizing: border-box;
    font-family: inherit;
    font-size: 1em;
    color: inherit;
    padding: 12px 15px;
    background-color: transparent;
}

.ql-editor p {
    margin: 0 0 1em;
}

.ql-editor h1,
.ql-editor h2,
.ql-editor h3,
.ql-editor h4,
.ql-editor h5,
.ql-editor h6 {
    margin: 1em 0;
}

.ql-editor blockquote {
    border-left: 4px solid #ccc;
    margin: 1em 0;
    padding-left: 10px;
    color: #666;
}

.ql-editor ul,
.ql-editor ol {
    margin: 0 0 1em 20px;
}

.ql-editor pre {
    background-color: #f4f4f4;
    padding: 10px;
    font-family: monospace;
    overflow-x: auto;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .news-details-container {
        margin: 15px;
    }
    .news-info {
        padding: 20px;
    }
    .news-title {
        font-size: 2em;
    }
}
