﻿.news-detail-page {
    display: flex;
    flex-direction: column;
    gap: 32px;
    max-width: 100%;
    margin: 0 auto;
}

.news-hero {
    width: calc(100vw - 240px);
    height: 284px;
    overflow: hidden;
    background-color: #f5f5f5;
    margin: -56px -32px 0 -40px;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.content-container {
    display: grid;
    grid-template-columns: 1fr 356px;
    gap: 42px;
}

.main-content {
    min-width: 0;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 16px;
}

.news-time {
    font-size: 14px;
    color: #666;
}

.sidebar-newDetail {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.category-link{
    background: #fff !important;
    color: #000000;
    font-weight: 500;
    font-size: 14px;
    line-height: 22px;
    letter-spacing: 0.25px;
    transition: background-color 0.2s;
}

.category-link:hover {
    background: #e9ecef !important;
    color: #000000;
    text-decoration: none;
}

.news-title {
    font-family: "Space Grotesk", sans-serif;
    font-weight: 500;
    font-size: 32px;
    line-height: 36px;
    color: #000000;
}

.news-content {
    font-family: "Inter", sans-serif;
    font-size: 14px;
    line-height: 24px;
    color: #5F5F5F;
}

.sidebar-card {
    background: white;
    border-radius: 8px;
    padding: 24px;
    border: 1px solid #DEE1E5;
}

.card-title {
    font-family: "Space Grotesk", sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 150%;
    margin-bottom: 20px;
    color: #121212;
}

.card-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 24px;
}

.sidebar-card-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.news-card {
    display: flex;
    gap: 16px;
    align-items: center;
    text-decoration: none;
}

.news-card:hover {
    text-decoration: none;
}

.news-card-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.news-card-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    flex: 1;
}

.news-card-title {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-wrap: break-word;
    hyphens: auto;
    margin: 0;
    padding: 0;
}

.fund-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: auto;
}

.news-card .fund-tag {
    display: flex;
    align-items: center;
    gap: 4px;
    width: fit-content;
    flex-shrink: 0;
    cursor: pointer;
    border: 1px solid #ECECEC;
    border-radius: 200px;
    padding: 6px 8px;
}

.news-card .fund-tag:hover {
    background-color: #ECECEC;
}

.fund-tag img {
    width: 16px;
    height: 16px;
    border-radius: 50%;
}

.fund-tag-code {
    font-size: 13px;
    color: #1a1a1a;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 992px) {
    .content-container {
        flex-direction: column;
        gap: 32px;
        padding: 0 16px;
    }

    .main-content {
        width: 100%;
    }

    .sidebar-newDetail {
        width: 100%;
    }
}