/* Main layout */
.main-layout {
    display: flex;
    flex-direction: row;
    gap: 24px;
}

.main-left {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.main-right {
    width: 300px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Section Card */
.section-card {
    background: #fff;
    border-radius: 6px;
    margin-bottom: 10px;
}

.section-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: none;
}

.section-card-title {
    font-weight: 700;
    font-size: 20px;
    color: #B70B00;
    text-transform: uppercase;
    font-family: 'Roboto', Arial, sans-serif;
}

.section-card-divider {
    position: relative;
    height: 4px;
    width: 100%;
    margin-left: 10px;
    flex: 1;
    display: flex;
    align-items: center;
    background: none;
}

.section-card-divider::before {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 1px;
    border-top: 1px dashed #A48E73;
    opacity: 0.3;
    top: 0;
}

.section-card-divider-inner {
    width: 100%;
    height: 1px;
    background: #A48E73;
    position: absolute;
    top: 1.5px;
    left: 0;
}

.section-card-divider::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 1px;
    border-top: 1px dashed #A48E73;
    opacity: 0.3;
    bottom: 0;
}

/* Horizontal Border */
.horizontal-border {
    background: #FFEBC1;
    border-radius: 6px;
    margin: 10px 0;
    padding: 0 10px;
    display: flex;
    align-items: center;
}

.horizontal-border-content {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7.67px 10.5px 8.29px 0;
}

.quochuy {
    width: 25px;
    height: 26px;
    background: url('/images/QuocHuy.png') no-repeat center/contain;
    flex-shrink: 0;
}

.horizontal-border-title {
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    color: #B70B00;
    font-family: 'Roboto', Arial, sans-serif;
}

.main-right .dropdown-content:first-of-type {
    display: block;
}

/* Danh sách kỳ họp */
.kyhop-list {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin: 5px 0 10px 0;
}

.kyhop-item {
    background: #F5F8FA;
    color: #3F4254;
    padding: 7px 10px;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s;
    font-family: 'Roboto', Arial, sans-serif;
}

.kyhop-item:hover {
    background: #FFEBC1;
}

.kyhop-item.xem-tiep {
    background: #fff;
    color: #B70B00;
    font-weight: 700;
    text-align: right;
    cursor: pointer;
}

.kyhop-list .kyhop-item {
    position: relative;
    background: #F5F8FA;
    color: #3F4254;
    padding: 7px 10px 7px 16px;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s;
    font-family: 'Roboto', Arial, sans-serif;
    overflow: hidden;
}

.kyhop-list .kyhop-item::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 4px;
    width: 4px;
    height: calc(100% - 8px);
    background: #B70B00;
    border-radius: 8px;
}

.kyhop-list .kyhop-item.xem-tiep::before {
    display: none;
}

.kyhop-list .kyhop-item.xem-tiep,
.kyhop-list .kyhop-item.xem-tiep:hover,
.kyhop-list .kyhop-item.xem-tiep:active,
.kyhop-list .kyhop-item.xem-tiep:focus {
    background: #fff !important;
    color: #B70B00;
}

.kyhop-list .kyhop-item:not(.xem-tiep):hover {
    background: #FFEBC1;
    color: #1B1D2D;
}

.kyhop-item a {
    color: inherit;
    text-decoration: none;
    font-weight: inherit;
}

.kyhop-item a:hover,
.kyhop-item a:active,
.kyhop-item a:focus {
    color: inherit;
    text-decoration: none;
}

/* Menu right */
.menu-right {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 20px 0 rgba(76, 87, 125, 0.02);
    border-radius: 6.65px;
    padding: 10.5px 0 0 0;
    margin-bottom: 10px;
}

/* Video block */
.video-block {
    background: linear-gradient(180deg, #FCFAF6 0%, #FFF6E2 100%);
    border: 1px solid #D0B779;
    border-radius: 6px;
    padding: 10px 15px 15px 15px;
    margin-bottom: 10px;
}

.video-block-head {
    display: flex;
    align-items: center;
    gap: 5px;
    border-bottom: 1px solid #B70B00;
    padding-bottom: 7px;
    margin-bottom: 10px;
}

.video-block-icon {
    color: #B70B00;
    font-size: 18px;
}

.video-block-title {
    color: #B70B00 !important;
    font-size: 17px !important;
    font-style: normal !important;
    font-weight: 700 !important;
    line-height: 21px !important;
    letter-spacing: -0.4px !important;
    text-transform: uppercase !important;
    font-family: 'Roboto', Arial, sans-serif;
}

.video-block-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.video-block-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.video-block-thumb {
    width: 120px;
    height: 68px;
    background: #eee url('https://placehold.co/120x68') center/cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.video-block-caption {
    font-size: 15px;
    color: #1B1D2D;
    font-weight: 400;
    font-family: 'Roboto', Arial, sans-serif;
}

/* Breadcrumb */
.breadcrumb-section {
    margin-bottom: 20px;
}

.breadcrumb {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 10px 15px;
    margin-bottom: 0;
}

.breadcrumb-item a {
    color: #B70B00;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: #8B0000;
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #6c757d;
}

/* News list section */
.news-list-section {
    background: #fff;
    border-radius: 6px;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.news-item {
    border-bottom: 1px solid #e9ecef;
    padding: 15px 0;
}

.news-item:last-child {
    border-bottom: none;
}

.news-title {
    margin-bottom: 10px;
}

.news-title a {
    color: #333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

.news-title a:hover {
    color: #B70B00;
    text-decoration: none;
}

.news-meta {
    color: #6c757d;
    font-size: 14px;
}

.news-date {
    margin-right: 15px;
}

.news-date i {
    margin-right: 5px;
}

.news-summary {
    margin-top: 8px;
    color: #666;
    line-height: 1.5;
}

/* Pagination */
.pagination-section {
    margin-top: 30px;
    text-align: center;
}

/* Category menu active state */
.category-menu .kyhop-item.active {
    background: #B70B00 !important;
    color: #fff !important;
}

.category-menu .kyhop-item.active a {
    color: #fff !important;
}

.category-menu .kyhop-item.active::before {
    background: #fff;
}

/* No news message */
.no-news {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

/* Mobile responsive - Ẩn sidebar trên mobile */
@media (max-width: 768px) {
    .main-layout {
        flex-direction: column;
    }
    
    .main-right {
        display: none;
    }
    
    .main-left {
        width: 100%;
    }
}

/* Tablet và desktop nhỏ */
@media (max-width: 1320px) and (min-width: 769px) {
    .main-layout {
        width: 100%;
        flex-direction: column;
    }

    .main-right {
        width: 100%;
    }
}