/* News and Blog Pages - Simple Styles */

/* News List Page */
.news-page-label {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    text-align: center;
}

.news-list-container {
    margin-top: 2rem;
}

/* News Item Styles */
.news-item {
    display: flex;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 1rem;
    padding: 1rem;
    gap: 1rem;
}

.news-item-image-wrapper {
    flex-shrink: 0;
    width: 200px;
    height: 120px;
    border-radius: 6px;
    overflow: hidden;
}

.news-item-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-item-image-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.category-label {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background: var(--secondary-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.news-item-info-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.news-item-title {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.news-item-title:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.news-item-publish {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0.75rem 0;
    display: flex;
    align-items: center;
}

.news-item-publish i {
    color: var(--primary-color);
}

.news-item-description {
    color: var(--text-color);
    line-height: 1.5;
    font-size: 0.95rem;
}

/* News View Page */
.news-article-content {
    max-width: 100%;
    margin: 0 auto;
}


.news-article {
    position: relative;
}

.news-article-category {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.news-article h1 {
    color: var(--text-color);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 1rem;
}

.news-breadcrumbs {
    background: #f8f9fa;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.news-breadcrumbs a {
    color: var(--primary-color);
    text-decoration: none;
}

.news-breadcrumbs a:hover {
    text-decoration: underline;
}

.news-date-wrapper {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0.5rem 0 1.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.news-date-wrapper i {
    color: var(--primary-color);
}

.news-image-wrapper {
    margin: 2rem 0;
    text-align: center;
}

.news-image-wrapper .news-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.news-description-wrapper {
    color: var(--text-color);
    line-height: 1.7;
    font-size: 1rem;
    margin: 2rem 0;
}

.news-description-wrapper p {
    margin-bottom: 1rem;
}

.news-description-wrapper h2,
.news-description-wrapper h3,
.news-description-wrapper h4 {
    color: var(--text-color);
    margin: 1.5rem 0 1rem 0;
    font-weight: 600;
}

.news-description-wrapper ul {
    list-style-type: disc !important;
    list-style-position: outside !important;
    margin: 1rem 0 !important;
    padding-left: 2rem !important;
}

.news-description-wrapper ol {
    list-style-type: decimal !important;
    list-style-position: outside !important;
    margin: 1rem 0 !important;
    padding-left: 2rem !important;
}

.news-description-wrapper li {
    margin-bottom: 0.5rem !important;
    list-style-position: outside !important;
    display: list-item !important;
    list-style-type: inherit !important;
}

.news-additional-info {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
    border-left: 4px solid var(--primary-color);
}

.news-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    padding: 0.5rem 0;
}

.news-author .news-author-label {
    font-weight: 600;
    color: var(--text-color);
}

.news-author .news-author-name {
    color: var(--primary-color);
    font-weight: 500;
}

.news-source-url-wrapper {
    margin-bottom: 1rem;
}

.news-source-url-text {
    font-weight: 600;
    color: var(--text-color);
    margin-right: 0.5rem;
}

.news-source-url-wrapper a {
    color: var(--primary-color);
    text-decoration: none;
}

.news-source-url-wrapper a:hover {
    text-decoration: underline;
}

.news-links-wrapper {
    background: #e3f2fd;
    padding: 1rem;
    border-radius: 6px;
    margin-top: 1rem;
}

.news-links-text {
    font-weight: 600;
    color: var(--text-color);
    margin-right: 0.5rem;
}

.news-links-wrapper a {
    color: var(--primary-color);
    text-decoration: none;
    margin-right: 0.5rem;
}

.news-links-wrapper a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Fix sidebar and content layout for news pages */
    .sidebar.left230px {
        width: 100%;
        margin-bottom: 20px;
        float: none;
    }
    
    .content.left230px {
        width: 100%;
        margin-left: 0;
        float: none;
    }
    
    .news-item {
        flex-direction: column;
        padding: 1rem;
    }
    
    .news-item-image-wrapper {
        width: 100%;
        height: 200px;
        margin-bottom: 1rem;
    }
    
    .news-article h1 {
        font-size: 1.5rem;
    }
    
    .news-article-content {
        padding: 1rem 0.5rem;
        max-width: 100%;
    }
    
    .news-article-wrapper {
        padding: 1.5rem;
        border: none;
    }
    
    .news-additional-info {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    /* Fix sidebar and content layout for very small screens */
    .sidebar.left230px {
        width: 100%;
        margin-bottom: 20px;
        float: none;
    }
    
    .content.left230px {
        width: 100%;
        margin-left: 0;
        float: none;
    }
    
    .news-item {
        margin-bottom: 1rem;
        padding: 0.75rem;
    }
    
    .news-item-image-wrapper {
        height: 150px;
    }
    
    .news-article h1 {
        font-size: 1.3rem;
    }
    
    .news-article-wrapper {
        padding: 1rem;
        border: none;
    }
}

/* Blog Pages - Same styles as news but with blog- prefix */
.blog-page-label {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    text-align: center;
}

.blog-list-container {
    margin-top: 2rem;
}

.blog-item {
    display: flex;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 1rem;
    padding: 1rem;
    gap: 1rem;
}

.blog-item-image-wrapper {
    flex-shrink: 0;
    width: 200px;
    height: 120px;
    border-radius: 6px;
    overflow: hidden;
}

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

.blog-item-image-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.blog-item-info-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.blog-item-title {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.blog-item-title:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.blog-item-publish {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-item-publish i {
    color: var(--primary-color);
}

.blog-item-description {
    color: var(--text-color);
    line-height: 1.5;
    font-size: 0.95rem;
}

/* Blog View Page */
.blog-article-content {

}

.blog-article-wrapper {
}

.blog-article {
    position: relative;
}

.blog-article h1 {
    color: var(--text-color);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 1rem;
}

.blog-breadcrumbs {
    background: #f8f9fa;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.blog-breadcrumbs a {
    color: var(--primary-color);
    text-decoration: none;
}

.blog-breadcrumbs a:hover {
    text-decoration: underline;
}

.blog-date-wrapper {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-date-wrapper i {
    color: var(--primary-color);
}

.blog-image-wrapper {
    margin: 2rem 0;
    text-align: center;
}

.blog-image-wrapper .blog-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.blog-description-wrapper {
    color: var(--text-color);
    line-height: 1.7;
    font-size: 1rem;
    margin: 2rem 0;
}

.blog-description-wrapper p {
    margin-bottom: 1rem;
}

.blog-description-wrapper h2,
.blog-description-wrapper h3,
.blog-description-wrapper h4 {
    color: var(--text-color);
    margin: 1.5rem 0 1rem 0;
    font-weight: 600;
}

.blog-description-wrapper ul,
.blog-description-wrapper ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.blog-description-wrapper li {
    margin-bottom: 0.5rem;
}

.blog-additional-info {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
    border-left: 4px solid var(--primary-color);
}

.blog-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.blog-author .blog-author-label {
    font-weight: 600;
    color: var(--text-color);
}

.blog-author .blog-author-name {
    color: var(--primary-color);
    font-weight: 500;
}

.blog-source-url-wrapper {
    margin-bottom: 1rem;
}

.blog-source-url-text {
    font-weight: 600;
    color: var(--text-color);
    margin-right: 0.5rem;
}

.blog-source-url-wrapper a {
    color: var(--primary-color);
    text-decoration: none;
}

.blog-source-url-wrapper a:hover {
    text-decoration: underline;
}

/* Blog Responsive Design */
@media (max-width: 768px) {
    .blog-item {
        flex-direction: column;
        padding: 1rem;
    }
    
    .blog-item-image-wrapper {
        width: 100%;
        height: 200px;
        margin-bottom: 1rem;
    }
    
    .blog-article h1 {
        font-size: 1.5rem;
    }
    
    .blog-article-content {
        padding: 1rem 0.5rem;
    }
    
    .blog-article-wrapper {
        padding: 1.5rem;
    }
    
    .blog-additional-info {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .blog-item {
        margin-bottom: 1rem;
        padding: 0.75rem;
    }
    
    .blog-item-image-wrapper {
        height: 150px;
    }
    
    .blog-article h1 {
        font-size: 1.3rem;
    }
    
    .blog-article-wrapper {
        padding: 1rem;
    }
}

/* News Widget Styling */
.news-block {
    margin-top: 3rem;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.label-block {
    background: linear-gradient(135deg, var(--primary-color), #2c5aa0);
    color: white;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.h-label {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

.line-label {
    flex: 1;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    margin: 0 1rem;
}

.info-label {
    margin: 0;
}

.info-label a {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: inline-block;
}

.info-label a:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    color: white;
}

.news-item {
    padding: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.3s ease;
}

.news-item:last-child {
    border-bottom: none;
}

.news-item:hover {
    background-color: #f8f9fa;
}

.news-item-image-wrapper {
    position: relative;
    margin-bottom: 1rem;
}

.news-item-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
    transition: transform 0.3s ease;
}

.news-item-image-link:hover .news-item-image {
    transform: scale(1.02);
}

.news-item-title {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.news-item-title:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.news-item-publish {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

.news-item-description {
    color: var(--text-color);
    line-height: 1.6;
    margin-top: 0.5rem;
}

.category-label {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Responsive news widget */
@media (max-width: 768px) {
    .label-block {
        padding: 0.75rem 1rem;
        flex-direction: column;
        text-align: center;
    }
    
    .line-label {
        display: none;
    }
    
    .news-item {
        padding: 1rem;
    }
    
    .news-item-image {
        height: 150px;
    }
}