/* Page-wide CSS to prevent app.min.css interference */
.news-panel-body {
    max-width: none !important;
    width: 100% !important;
}

.cc-pr #app .full-width .container {
    max-width: none !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

.cc-pr #app .full-width {
    width: 100% !important;
    max-width: none !important;
}

.cc-pr {
    width: 100% !important;
    max-width: none !important;
}

.news-specialty-banner {
    text-align: left !important;
    margin: 0 !important;
    width: 100% !important;
    padding: 20px 0 20px 30px !important;
    background-color: #2C5AA0 !important;
}

.news-specialty-banner h2 {
    font-size: 3rem !important;
    line-height: 1.4 !important;
    margin: 10px 0 10px 0 !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    color: white !important;
    font-style: italic !important;
}

/* Individual News Article Page Styles */

/* Base Layout */
.news-container {
    width: 100% !important;
    max-width: none !important;
}

.news-content {
    background: #fff !important;
    padding: 30px !important;
    margin: 0 !important;
    border-radius: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    display: flex !important;
    gap: 30px !important;
}

.news-layout {
    display: flex !important;
    gap: 30px !important;
    width: 100% !important;
}

.news-main-content {
    flex: 2 !important;
}

.news-sidebar {
    flex: 1 !important;
    max-width: 300px !important;
}

/* Article Detail Styles */
.news-article-detail {
    background: #fff !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
    margin-bottom: 30px !important;
}

.news-article-header {
    padding: 30px 30px 22px 30px !important;
    background: transparent !important;
    border-bottom: none !important;
}

.news-article-title {
    margin: 0 0 15px 0 !important;
    font-size: 2.2rem !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    color: #0f172a !important;
}

.news-article-meta {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    margin-top: 8px !important;
    padding: 0 !important;
    width: auto !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    background: transparent !important;
    color: #64748b !important;
    font-size: 0.95rem !important;
}

.news-article-date {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    color: #334155 !important;
    font-weight: 500 !important;
}

.news-article-date i {
    color: #0089C6 !important;
}

.news-article-content {
    padding: 30px !important;
    line-height: 1.8 !important;
    color: #495057 !important;
    font-size: 1.2rem !important;
}

.news-article-content h1,
.news-article-content h2,
.news-article-content h3,
.news-article-content h4,
.news-article-content h5,
.news-article-content h6 {
    color: #333 !important;
    margin: 25px 0 15px 0 !important;
    font-weight: 600 !important;
}

.news-article-content h2 {
    font-size: 1.8rem !important;
    border-bottom: 2px solid #0089C6 !important;
    padding-bottom: 10px !important;
}

.news-article-content h3 {
    font-size: 1.5rem !important;
    color: #0089C6 !important;
}

.news-article-content p {
    margin-bottom: 20px !important;
    text-align: justify !important;
}

.news-article-content ul,
.news-article-content ol {
    margin: 20px 0 !important;
    padding-left: 30px !important;
}

.news-article-content li {
    margin-bottom: 8px !important;
}

.news-article-content blockquote {
    background: #f8f9fa !important;
    border-left: 4px solid #0089C6 !important;
    margin: 25px 0 !important;
    padding: 20px 25px !important;
    font-style: italic !important;
    color: #495057 !important;
}

.news-article-content a {
    color: #0089C6 !important;
    text-decoration: none !important;
    border-bottom: 1px solid transparent !important;
    transition: all 0.3s ease !important;
}

.news-article-content a:hover {
    border-bottom-color: #0089C6 !important;
}

.news-article-content img,
.news-article-content .news-inline-figure img {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    border-radius: 8px !important;
    margin: 20px 0 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
}

.news-article-content .news-inline-figure {
    margin: 0 !important;
    padding: 0 !important;
}

/* Sidebar Widgets */
.news-widget {
    background: #f8f9fa !important;
    border: 1px solid #e9ecef !important;
    border-radius: 8px !important;
    padding: 20px !important;
    margin-bottom: 25px !important;
}

.news-widget-title {
    color: #053e77 !important;
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    margin-bottom: 15px !important;
    text-transform: uppercase !important;
    border-bottom: 2px solid #0089C6 !important;
    padding-bottom: 8px !important;
}

/* Search Widget */
.news-search-input-group {
    display: flex !important;
    gap: 0 !important;
}

.news-search-input {
    flex: 1 !important;
    padding: 10px 15px !important;
    border: 1px solid #ced4da !important;
    border-radius: 4px 0 0 4px !important;
    font-size: 1rem !important;
    outline: none !important;
}

.news-search-input:focus {
    border-color: #0089C6 !important;
    box-shadow: 0 0 0 2px rgba(0, 137, 198, 0.2) !important;
}

.news-search-button {
    background-color: #0089C6 !important;
    color: white !important;
    border: none !important;
    padding: 10px 15px !important;
    border-radius: 0 4px 4px 0 !important;
    cursor: pointer !important;
    transition: background-color 0.3s ease !important;
}

.news-search-button:hover {
    background-color: #053e77 !important;
}

/* Categories List */
.news-categories-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.news-category-item {
    border-bottom: 1px solid #e9ecef !important;
    padding: 8px 0 !important;
}

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

.news-category-item a,
.news-category-link {
    color: #495057 !important;
    text-decoration: none !important;
    font-size: 1.2rem !important;
    transition: color 0.3s ease !important;
    display: block !important;
}

.news-category-item a:hover,
.news-category-link:hover {
    color: #0089C6 !important;
}

/* Recent Articles */
.news-recent-articles {
    margin-top: 15px !important;
}

.news-recent-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.news-recent-item {
    margin-bottom: 20px !important;
    padding-bottom: 20px !important;
    border-bottom: 1px solid #e9ecef !important;
}

.news-recent-item:last-child {
    border-bottom: none !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.news-recent-link {
    text-decoration: none !important;
    color: inherit !important;
    display: block !important;
    transition: all 0.3s ease !important;
}

.news-recent-link:hover {
    transform: translateX(5px) !important;
}

.news-recent-title {
    margin: 0 0 8px 0 !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    color: #333 !important;
    transition: color 0.3s ease !important;
}

.news-recent-link:hover .news-recent-title {
    color: #0089C6 !important;
}

.news-recent-date {
    color: #6c757d !important;
    font-size: 0.85rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.news-recent-date i {
    color: #0089C6 !important;
    font-size: 0.8rem !important;
}

/* Responsive Design */
@media (max-width: 768px) {

    .news-specialty-banner{
        margin: -170px 0 0 0 !important;
    }
    .news-specialty-banner h2{
        font-size: 2.4rem !important;
    }

    .news-layout {
        flex-direction: column !important;
        gap: 20px !important;
    }
    
    .news-main-content {
        flex: none !important;
    }
    
    .news-sidebar {
        max-width: none !important;
    }
    
    .news-content {
        padding: 20px !important;
        flex-direction: column !important;
        gap: 20px !important;
    }
    
    .news-article-header {
        padding: 20px 20px 15px 20px !important;
    }
    
    .news-article-title {
        font-size: 1.8rem !important;
    }
    
    .news-article-content {
        padding: 20px !important;
        font-size: 1rem !important;
    }
    
    .news-article-meta {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
    }

    .news-widget {
        padding: 15px !important;
        margin-bottom: 20px !important;
    }
}

@media (max-width: 480px) {
    .news-specialty-banner{
        margin: -170px 0 0 0 !important;
        text-align: center !important;
        padding: 20px 0 20px 0 !important;
    }
    .news-specialty-banner h2 {
        font-size: 1.6rem !important;

    }
    .news-content {
        padding: 15px !important;
    }
    
    .news-article-title {
        font-size: 1.6rem !important;
    }
    
    .news-article-header {
        padding: 15px 15px 10px 15px !important;
    }
    
    .news-article-content {
        padding: 15px !important;
    }
    
    .news-article-content h2 {
        font-size: 1.5rem !important;
    }
    
    .news-article-content h3 {
        font-size: 1.3rem !important;
    }

    .news-widget {
        padding: 12px !important;
        margin-bottom: 15px !important;
    }

    .news-widget-title {
        font-size: 1.2rem !important;
    }

    .news-search-input-group {
        flex-direction: column !important;
    }

    .news-search-input {
        border-radius: 4px !important;
        margin-bottom: 5px !important;
    }

    .news-search-button {
        border-radius: 4px !important;
    }
}

.news-article-tags--below-date {
    box-sizing: border-box !important;
    width: 100% !important;
    margin: 18px 0 0 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
}

.news-article-tags-list {
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 10px 12px !important;
}

.news-article-tags-item {
    margin: 0 !important;
    padding: 0 !important;
}

.news-article-tags-link {
    display: inline-block !important;
    padding: 8px 14px !important;
    font-size: 0.85rem !important;
    line-height: 1.3 !important;
    color: #2C5AA0 !important;
    background: #fff !important;
    border-radius: 999px !important;
    text-decoration: none !important;
    border: 1px solid #c5d4eb !important;
    box-shadow: 0 1px 2px rgba(44, 90, 160, 0.06) !important;
    cursor: default !important;
    user-select: text !important;
}

.news-article-tags-link:hover,
.news-article-tags-link:focus {
    background: #eef4ff !important;
    text-decoration: none !important;
    color: #1a3d6e !important;
    border-color: #a8c0e0 !important;
}

/*
 * Reinforce article shell after header.css / app.min.css (noticia.css loads last via stylesAfterHeader).
 */
.cc-pr .news-panel .news-main-content article.news-article-detail {
    background: #ffffff !important;
}

.cc-pr .news-panel .news-main-content article.news-article-detail > .news-article-header {
    background: transparent !important;
    border-bottom: none !important;
    box-shadow: none !important;
}

.cc-pr .news-panel .news-main-content article.news-article-detail > .news-article-header .news-article-title {
    color: #0f172a !important;
}

.cc-pr .news-panel .news-main-content article.news-article-detail > .news-article-header .news-article-meta {
    background: transparent !important;
}

.cc-pr .news-panel .news-main-content article.news-article-detail .news-article-tags--below-date,
.cc-pr .news-panel .news-main-content article.news-article-detail .news-article-tags-list {
    background: transparent !important;
    box-shadow: none !important;
}

/* Print Styles */
@media print {
    .news-sidebar {
        display: none !important;
    }
    
    .news-main-content {
        flex: none !important;
        max-width: 100% !important;
    }
    
    .news-article-detail {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}