/* News Detail Page Styles */

.news-detail-page {
    background: var(--off-white);
}

.news-detail-page-content {
    margin-top: 80px;
}

/* News Detail Hero (Banner) - Same as product-detail */
.news-detail-hero {
    background: url('../images/banner/news-banner.webp') no-repeat scroll center / cover;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.news-detail-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.news-detail-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 3rem 2rem;
}

.news-detail-hero-inner>*,
.news-detail-hero-inner>.news-detail-hero-meta span {
    color: var(--primary-blue) !important;
}

.news-detail-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.news-detail-hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.news-detail-hero-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.news-detail-hero-meta span {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    color: var(--white);
    font-weight: 600;
    font-size: 0.9rem;
    backdrop-filter: blur(5px);
}

/* News Detail Content */
.news-detail-content {
    padding: 3rem 0;
}

.news-detail-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
    align-items: start;
}

/* Main News Content */
.news-detail-main {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.news-detail-header {
    padding: 2rem;
    border-radius: 16px;
}

.news-detail-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.news-category {
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--secondary-blue);
}

.news-date {
    color: var(--text-light);
}

.news-detail-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.news-detail-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.news-detail-author {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--text-light);
}

.news-detail-author span {
    display: flex;
    align-items: center;
}

.news-detail-image {
    border-radius: 16px;
    overflow: hidden;
    padding: 0;
}

.news-detail-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.news-detail-body {
    padding: 2rem;
    border-radius: 16px;
}

.news-detail-text {
    color: var(--text-light);
    line-height: 1.8;
}

.news-detail-text p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.news-detail-text h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.news-detail-text h2:first-of-type {
    margin-top: 0;
}

.news-detail-text ul {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.news-detail-text ul li {
    margin-bottom: 0.75rem;
    font-size: 1.05rem;
}

.news-detail-tags {
    padding: 2rem;
    border-radius: 16px;
}

.news-detail-tags h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.news-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.news-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    background: rgba(30, 64, 175, 0.1);
    color: var(--primary-blue);
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(30, 64, 175, 0.2);
}

/* Sidebar - Same style as news.html */
.news-detail-sidebar {
    position: sticky;
    top: 120px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    background: var(--white);
}

.sidebar-section+.sidebar-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.sidebar-section h4 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.sidebar-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.sidebar-tag {
    border: 1px solid var(--border-color);
    padding: 0.4rem 1rem;
    border-radius: 999px;
    background: var(--white);
    color: var(--text-gray);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.sidebar-tag.active,
.sidebar-tag:hover {
    background: var(--secondary-blue);
    color: var(--white);
    border-color: var(--secondary-blue);
}

.sidebar-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    padding: 0;
    margin: 0;
}

.sidebar-list li {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.sidebar-list li span {
    font-size: 0.85rem;
    color: var(--text-light);
    display: block;
}

.sidebar-list li a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    transition: color 0.2s ease;
}

.sidebar-list li a:hover {
    color: var(--primary-blue);
}

.newsletter form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.newsletter input {
    border-radius: 10px;
    border: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
}

.newsletter p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Related Articles */
.related-articles {
    padding: 3rem 0;
    background: var(--white);
    border-top: 1px solid var(--border-color);
}

.related-articles h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 2rem;
    text-align: center;
}

.related-articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.news-card {
    padding: 1.75rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: var(--white);
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.news-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-light);
}

.news-card h3 {
    font-size: 1.4rem;
    color: var(--primary-blue);
    margin: 0;
}

.news-card p {
    color: var(--text-gray);
    line-height: 1.7;
    flex-grow: 1;
}

.news-card-footer {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    align-items: flex-end;
}

.news-meta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
    background: var(--off-white);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 0.85rem;
}

.news-meta span {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.9rem;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.1);
    border-radius: 999px;
    background: white;
    color: var(--primary-blue);
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .news-detail-hero h1 {
        font-size: 2.5rem;
    }

    .news-detail-hero-subtitle {
        font-size: 1.1rem;
    }

    .news-detail-hero-meta {
        gap: 1rem;
    }

    .news-detail-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .news-detail-sidebar {
        position: static;
    }

    .related-articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .news-detail-hero {
        padding: 2rem 1rem;
    }

    .news-detail-hero-inner {
        padding: 2rem 1.5rem;
    }

    .news-detail-hero h1 {
        font-size: 2rem;
    }

    .news-detail-hero-subtitle {
        font-size: 1rem;
    }

    .news-detail-hero-meta {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .news-detail-content {
        padding: 2rem 0;
    }

    .news-detail-header,
    .news-detail-body,
    .news-detail-tags {
        padding: 1.5rem;
    }

    .news-detail-header h1 {
        font-size: 1.75rem;
    }

    .news-detail-subtitle {
        font-size: 1.1rem;
    }

    .news-detail-text h2 {
        font-size: 1.5rem;
    }

    .news-detail-text p,
    .news-detail-text ul li {
        font-size: 1rem;
    }

    .related-articles-grid {
        grid-template-columns: 1fr;
    }

    .related-articles h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .news-detail-hero h1 {
        font-size: 1.75rem;
    }

    .news-detail-hero-subtitle {
        font-size: 0.95rem;
    }

    .news-detail-hero-meta span {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }

    .breadcrumbs ol {
        font-size: 0.8rem;
        flex-wrap: wrap;
    }

    .news-detail-header h1 {
        font-size: 1.5rem;
    }

    .news-detail-subtitle {
        font-size: 1rem;
    }

    .news-detail-author {
        flex-direction: column;
        gap: 0.75rem;
    }

    .news-tags-list {
        gap: 0.5rem;
    }

    .news-tag {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}