/* News Section Style - Converted from WebMuIntrol */

.news-section {
    padding: 100px 0;
    background-image: url('../images/backgruond.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.news-section .container {
    max-width: 1700px;
    margin: 0 auto;
    padding: 20px 80px 0px 80px;
}

.news-section .section-title {
    color: #fff;
    text-align: center;
    margin-bottom: 30px;
    font-size: 36px;
}

/* Tab Navigation */
.tab-navigation {
    background: rgb(17, 1, 1);
    border-radius: 8px;
    overflow: hidden;
    border-radius: 10px 15px 0 0;
    box-shadow: 0 -8px 32px rgba(61, 2, 2, 0.6), 0 -8px 32px rgba(61, 2, 2, 0.4);
}

.tab-list {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 1px solid #424242;
    gap: 1px;
    z-index: 10;
}

.tab-item {
    flex: none;
}

.tab-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 20px 20px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    background: rgb(17, 1, 1);
    z-index: 1;
    flex-grow: 1;
    user-select: none;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 10px 55px 0 0;
    white-space: nowrap;
}

.tab-button:before {
    position: absolute;
    left: -8px;
    top: 0;
    height: 100%;
    width: calc(100% + 16px);
    background: linear-gradient(1turn, #F18D00, rgba(255,144,0,0) 8.57%), 
                radial-gradient(307.71% 364.11% at 43.77% -252.14%, #3C0000 0, #6F0000 100%), 
                #18181d;
    opacity: 0;
    content: "";
    transition: all 0.3s ease;
    z-index: -1;
    border-radius: 10px 0px 0 0;
}

.tab-button:hover {
    color: #fff;
}

.tab-button:hover:before,
.tab-button.active:before {
    opacity: 1;
}

.tab-button.active {
    color: #fff;
}

/* Content Layout */
.content-layout {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 20px;
    align-items: start;
    background: rgb(17, 1, 1);
    width: 100%;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(39, 2, 2, 0.6), -8px 0 32px rgba(61, 2, 2, 0.4), 8px 0 32px rgba(61, 2, 2, 0.4);
    border-radius: 0px 0px 10px 10px;
}

/* Main Content */
.main-content-news {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0px 0px 10px 10px;
    overflow: hidden;
}

.article-display {
    display: none;
    max-width: 100%;
    overflow: hidden;
}

.article-display.active {
    display: block;
}

.article-header {
    border-bottom: 1px solid #333333;
    padding: 20px;
    padding-bottom: 10px;
}

.article-title {
    font-size: 40px;
    font-weight: 700;
    color: #ffffff;
    margin-top: 20px;
    margin-bottom: 15px;
    line-height: 1.3;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    display: block;
}

.article-meta {
    color: #ffffff;
    font-size: 14px;
    margin-bottom: 15px;
}

.article-content {
    font-size: 16px;
    line-height: 1.6;
    color: #ffffff;
    padding: 10px 20px;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
}

.article-content * {
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.article-content img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* News Table Styles */
.article-content table,
.article-content .news-table {
    width: 100%;
    max-width: 1100px;
    margin: 20px auto;
    border-collapse: collapse;
    font-size: 14px;
    background-color: #ffffff;
    overflow: hidden;
    display: table;
}

.article-content table th,
.article-content .news-table th {
    background-color: #f8f9fa;
    color: #2c3e50;
    font-weight: 600;
    padding: 12px 15px;
    border: 1px solid #dee2e6;
    border-bottom: 2px solid #1ba6f0;
}

.article-content table td,
.article-content .news-table td {
    padding: 10px 15px;
    border: 1px solid #dee2e6;
    color: #2c3e50;
    vertical-align: top;
}

.article-content table tr:nth-child(even),
.article-content .news-table tr:nth-child(even) {
    background-color: #f8f9fa;
}

.article-content table tr:hover,
.article-content .news-table tr:hover {
    background-color: #e8f4fd;
}

.placeholder-message {
    text-align: center;
    color: #ffffff;
    font-style: italic;
    padding: 60px 20px;
    background: rgb(17, 1, 1);
    border-radius: 0px 0px 10px 10px;
}

.placeholder-message h3 {
    margin-bottom: 10px;
    color: #ffffff;
}

/* Sidebar */
.sidebar-news {
    background: rgb(17, 1, 1);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 20px;
    height: fit-content;
    max-width: 100%;
    overflow: hidden;
    max-height: 800px;
    overflow-y: auto;
}

.sidebar-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #ffffff;
    border-bottom: 2px solid #3d3d3d;
    padding-bottom: 8px;
}

.sidebar-item {
    position: relative;
    padding: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 5px;
    max-width: 100%;
    overflow: hidden;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    border-radius: 8px;
}

.sidebar-item:hover {
    background: rgba(241, 141, 0, 0.1);
}

.sidebar-item.active {
    background: linear-gradient(45deg, rgba(241, 141, 0, 0.2), rgba(255, 107, 0, 0.2));
}

.sidebar-item.active::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    width: 3px;
    height: 60%;
    background: #ffd700;
    box-shadow: 
        0 0 5px rgba(255, 215, 0, 1),
        0 0 10px rgba(255, 215, 0, 1),
        0 0 20px rgba(255, 215, 0, 0.8);
}

.sidebar-item-title {
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 5px;
    line-height: 1.4;
}

.sidebar-item.active .sidebar-item-title {
    color: #F18D00;
    font-weight: 600;
}

.sidebar-item-date {
    font-size: 12px;
    color: #cccccc;
}

.sidebar-item-preview {
    font-size: 12px;
    color: #999999;
    line-height: 1.4;
    margin-top: 5px;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar-item-views {
    font-size: 11px;
    color: #888;
    margin-top: 3px;
}

/* Responsive */
@media (max-width: 1200px) {
    .content-layout {
        grid-template-columns: 2fr 1fr;
    }
}

@media (max-width: 768px) {
    .news-section .container {
        padding: 30px;
    }

    .content-layout {
        grid-template-columns: 1fr;
    }

    .tab-list {
        overflow-x: auto;
    }

    .tab-button {
        padding: 12px 16px;
        font-size: 12px;
    }

    .article-title {
        font-size: 24px;
    }

    .sidebar-news {
        max-height: 400px;
    }
}
