/* ========================================
   News Detail Page - Trang Chi Tiết Tin Tức
   Aura Realty Design System
   Primary: #523829, Gold Gradient
======================================== */

/* Hero Banner */
.news-detail-hero {
    position: relative;
    min-height: 500px;
    overflow: hidden;
}

.news-detail-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.news-detail-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.news-detail-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, 
        rgba(82, 56, 41, 0.95) 0%, 
        rgba(82, 56, 41, 0.7) 40%,
        rgba(82, 56, 41, 0.4) 100%);
}

.news-detail-hero-content {
    position: relative;
    z-index: 5;
    padding: 180px 0 80px;
}

.news-detail-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.news-detail-breadcrumb a {
    font-family: var(--normal-font);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-detail-breadcrumb a:hover {
    color: #ecd69f;
}

.news-detail-breadcrumb span {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.news-detail-breadcrumb .current {
    font-family: var(--normal-font);
    font-size: 14px;
    color: #ecd69f;
}

.news-detail-category {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(82deg, #653e2c 0%, #c6803b 63.6%, #ecd69f 100%);
    border-radius: 25px;
    font-family: var(--normal-font);
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 25px;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-detail-category:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(198, 128, 59, 0.4);
    color: #ffffff;
}

.news-detail-title {
    font-family: var(--title-font);
    font-size: clamp(1.8rem, 1.3rem + 2.5vw, 3rem);
    font-weight: 600;
    color: #ffffff;
    line-height: 1.3;
    margin: 0 0 30px;
    max-width: 900px;
}

.news-detail-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 25px;
}

.news-detail-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--normal-font);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
}

.news-detail-meta-item svg {
    width: 18px;
    height: 18px;
    fill: #ecd69f;
}

.news-detail-author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 5px;
}

.news-detail-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Main Content Section */
.news-detail-section {
    padding: 80px 0 100px;
    background: #f8f6f3;
}

/* Content Area */
.news-detail-content-wrap {
    background: #ffffff;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

/* Article Content Typography */
.news-detail-content {
    font-family: var(--normal-font);
    font-size: 16px;
    color: #333333;
    line-height: 1.85;
}

.news-detail-content p {
    margin-bottom: 1.5em;
}

.news-detail-content h2 {
    font-family: var(--title-font);
    font-size: 1.8rem;
    font-weight: 600;
    color: #523829;
    margin: 2em 0 1em;
    padding-left: 20px;
    border-left: 4px solid #c6803b;
}

.news-detail-content h3 {
    font-family: var(--title-font);
    font-size: 1.4rem;
    font-weight: 600;
    color: #333333;
    margin: 1.8em 0 0.8em;
}

.news-detail-content h4 {
    font-family: var(--normal-font);
    font-size: 1.2rem;
    font-weight: 600;
    color: #333333;
    margin: 1.5em 0 0.7em;
}

.news-detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 1.5em 0;
}

.news-detail-content figure {
    margin: 2em 0;
}

.news-detail-content figcaption {
    font-size: 13px;
    color: #888888;
    text-align: center;
    margin-top: 10px;
    font-style: italic;
}

.news-detail-content blockquote {
    position: relative;
    margin: 2em 0;
    padding: 25px 30px 25px 35px;
    background: linear-gradient(135deg, #f9f5e8 0%, #f8f6f3 100%);
    border-left: 4px solid #c6803b;
    border-radius: 0 12px 12px 0;
    font-size: 17px;
    font-style: italic;
    color: #523829;
    line-height: 1.7;
}

.news-detail-content blockquote::before {
    content: '"';
    position: absolute;
    top: 15px;
    left: 15px;
    font-family: Georgia, serif;
    font-size: 50px;
    color: #c6803b;
    opacity: 0.3;
    line-height: 1;
}

.news-detail-content ul,
.news-detail-content ol {
    margin: 1.5em 0;
    padding-left: 1.5em;
}

.news-detail-content li {
    margin-bottom: 0.8em;
    position: relative;
}

.news-detail-content ul li::marker {
    color: #c6803b;
}

.news-detail-content ol li::marker {
    color: #c6803b;
    font-weight: 600;
}

.news-detail-content a {
    color: #a8743a;
    text-decoration: underline;
    text-decoration-color: rgba(168, 116, 58, 0.3);
    text-underline-offset: 3px;
    transition: all 0.3s ease;
}

.news-detail-content a:hover {
    color: #523829;
    text-decoration-color: #523829;
}

.news-detail-content strong {
    font-weight: 600;
    color: #222222;
}

.news-detail-content em {
    color: #555555;
}

.news-detail-content hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #d8b27a 50%, transparent 100%);
    margin: 3em 0;
}

.news-detail-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2em 0;
    font-size: 15px;
}

.news-detail-content table th,
.news-detail-content table td {
    padding: 12px 15px;
    border: 1px solid #e8e0d8;
    text-align: left;
}

.news-detail-content table th {
    background: #523829;
    color: #ffffff;
    font-weight: 600;
}

.news-detail-content table tr:nth-child(even) {
    background: #f9f5e8;
}

/* Tags Section */
.news-detail-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e8e0d8;
}

.news-detail-tags-label {
    font-family: var(--normal-font);
    font-size: 14px;
    font-weight: 600;
    color: #523829;
}

.news-detail-tag {
    display: inline-block;
    padding: 7px 16px;
    background: #f8f6f3;
    border: 1px solid #e8e0d8;
    border-radius: 20px;
    font-family: var(--normal-font);
    font-size: 13px;
    color: #666666;
    text-decoration: none;
    transition: all 0.3s ease;
}

.news-detail-tag:hover {
    background: #523829;
    border-color: #523829;
    color: #ffffff;
}

/* Share Section */
.news-detail-share {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e8e0d8;
}

.news-detail-share-label {
    font-family: var(--normal-font);
    font-size: 14px;
    font-weight: 600;
    color: #523829;
}

.news-detail-share-buttons {
    display: flex;
    gap: 10px;
}

.news-detail-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: #f8f6f3;
    border: 1px solid #e8e0d8;
    border-radius: 50%;
    color: #666666;
    text-decoration: none;
    transition: all 0.3s ease;
}

.news-detail-share-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.news-detail-share-btn:hover {
    transform: translateY(-3px);
}

.news-detail-share-btn.facebook:hover {
    background: #1877f2;
    border-color: #1877f2;
    color: #ffffff;
}

.news-detail-share-btn.twitter:hover {
    background: #1da1f2;
    border-color: #1da1f2;
    color: #ffffff;
}

.news-detail-share-btn.linkedin:hover {
    background: #0a66c2;
    border-color: #0a66c2;
    color: #ffffff;
}

.news-detail-share-btn.pinterest:hover {
    background: #e60023;
    border-color: #e60023;
    color: #ffffff;
}

.news-detail-share-btn.copy:hover {
    background: #523829;
    border-color: #523829;
    color: #ffffff;
}

/* Sidebar */
.news-detail-sidebar {
    position: sticky;
    top: 100px;
}

.news-detail-widget {
    background: #ffffff;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.04);
    margin-bottom: 25px;
}

.news-detail-widget:last-child {
    margin-bottom: 0;
}

.news-detail-widget-title {
    font-family: var(--title-font);
    font-size: 16px;
    font-weight: 600;
    color: #523829;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #ecd69f;
}

/* Author Widget */
.news-detail-author-widget {
    text-align: center;
}

.news-detail-author-widget .author-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 15px;
    border: 3px solid #ecd69f;
}

.news-detail-author-widget .author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-detail-author-widget .author-name {
    font-family: var(--normal-font);
    font-size: 18px;
    font-weight: 600;
    color: #333333;
    margin: 0 0 8px;
}

.news-detail-author-widget .author-role {
    font-family: var(--normal-font);
    font-size: 13px;
    color: #888888;
    margin: 0;
}

/* Related Posts Widget */
.news-detail-related-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #f0ebe4;
    text-decoration: none;
    transition: all 0.3s ease;
}

.news-detail-related-item:first-child {
    padding-top: 0;
}

.news-detail-related-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.news-detail-related-item:hover {
    transform: translateX(5px);
}

.news-detail-related-image {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
}

.news-detail-related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-detail-related-item:hover .news-detail-related-image img {
    transform: scale(1.1);
}

.news-detail-related-content {
    flex: 1;
    min-width: 0;
}

.news-detail-related-title {
    font-family: var(--normal-font);
    font-size: 14px;
    font-weight: 500;
    color: #333333;
    line-height: 1.4;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.news-detail-related-item:hover .news-detail-related-title {
    color: #a8743a;
}

.news-detail-related-date {
    font-family: var(--normal-font);
    font-size: 12px;
    color: #888888;
}

/* Related News Section */
.news-detail-related-section {
    padding: 80px 0 100px;
    background: #ffffff;
}

.news-detail-related-header {
    text-align: center;
    margin-bottom: 50px;
}

.news-detail-related-section-title {
    font-family: var(--title-font);
    font-size: clamp(1.8rem, 1.5rem + 1.5vw, 2.5rem);
    font-weight: 500;
    color: #333333;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

.news-detail-related-section-title span {
    background: linear-gradient(82deg, #653e2c 0%, #c6803b 63.6%, #ecd69f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Related News Swiper */
.news-detail-related-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.news-detail-related-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.news-related-prev,
.news-related-next {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    border: 1px solid #d8b27a;
    background: transparent;
    color: #523829;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

/* Override Swiper lock/disabled styles - giữ nút luôn hiển thị và tròn */
.news-related-prev.swiper-button-lock,
.news-related-next.swiper-button-lock,
.news-related-prev.swiper-button-disabled,
.news-related-next.swiper-button-disabled {
    display: inline-flex !important;
    opacity: 0.4;
    pointer-events: none;
}

.news-related-prev:hover,
.news-related-next:hover {
    background: #523829;
    border-color: #523829;
    color: #ffffff;
}

.news-related-prev svg,
.news-related-next svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.news-related-pagination {
    display: flex;
    align-items: center;
    gap: 6px;
}

.news-related-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: #d8b27a;
    opacity: 0.4;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.news-related-pagination .swiper-pagination-bullet-active {
    opacity: 1;
    background: #523829;
    width: 24px;
    border-radius: 4px;
}

.news-related-swiper {
    overflow: hidden;
}

.news-related-swiper .swiper-slide {
    height: auto;
}

.news-related-swiper .news-list-card {
    height: 100%;
}

/* Navigation (Prev/Next Article) */
.news-detail-navigation {
    display: flex;
    margin-top: 50px;
    border-top: 1px solid #e8e0d8;
    padding-top: 30px;
}

.news-detail-nav-item {
    flex: 1;
    padding: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.news-detail-nav-item:first-child {
    border-right: 1px solid #e8e0d8;
    padding-left: 0;
}

.news-detail-nav-item:last-child {
    text-align: right;
    padding-right: 0;
}

.news-detail-nav-item:hover {
    transform: translateX(5px);
}

.news-detail-nav-item:first-child:hover {
    transform: translateX(-5px);
}

.news-detail-nav-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--normal-font);
    font-size: 12px;
    font-weight: 600;
    color: #888888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.news-detail-nav-item:last-child .news-detail-nav-label {
    justify-content: flex-end;
}

.news-detail-nav-label svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.news-detail-nav-title {
    font-family: var(--normal-font);
    font-size: 16px;
    font-weight: 500;
    color: #333333;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.news-detail-nav-item:hover .news-detail-nav-title {
    color: #a8743a;
}

/* ========================================
   Responsive Styles
======================================== */

/* Tablet Landscape */
@media (max-width: 1199px) {
    .news-detail-hero {
        min-height: 450px;
    }
    
    .news-detail-content-wrap {
        padding: 40px;
    }
    
    .news-detail-related-grid {
        gap: 25px;
    }
}

/* Tablet Portrait */
@media (max-width: 991px) {
    .news-detail-hero {
        min-height: 400px;
    }
    
    .news-detail-hero-content {
        padding: 140px 0 60px;
    }
    
    .news-detail-section {
        padding: 60px 0 80px;
    }
    
    .news-detail-content-wrap {
        padding: 35px;
    }
    
    .news-detail-sidebar {
        position: static;
        margin-top: 40px;
    }
    
    /* Convert sidebar to horizontal layout */
    .news-detail-sidebar .row {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .news-detail-widget {
        flex: 1;
        min-width: 280px;
        margin-bottom: 0;
    }
    
    .news-detail-related-section {
        padding: 60px 0 80px;
    }
    
    .news-detail-related-header {
        flex-direction: column;
        text-align: center;
    }
    
    .news-detail-related-nav {
        justify-content: center;
    }
    
    .news-related-prev,
    .news-related-next {
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
    }
    
    .news-related-prev svg,
    .news-related-next svg {
        width: 16px;
        height: 16px;
    }
    
    .news-detail-content h2 {
        font-size: 1.5rem;
    }
    
    .news-detail-content h3 {
        font-size: 1.25rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .news-detail-hero {
        min-height: 350px;
    }
    
    .news-detail-hero-content {
        padding: 120px 0 50px;
    }
    
    .news-detail-breadcrumb {
        margin-bottom: 20px;
    }
    
    .news-detail-category {
        padding: 6px 16px;
        font-size: 11px;
        margin-bottom: 20px;
    }
    
    .news-detail-title {
        margin-bottom: 20px;
    }
    
    .news-detail-meta {
        gap: 15px;
    }
    
    .news-detail-meta-item {
        font-size: 13px;
    }
    
    .news-detail-section {
        padding: 40px 0 60px;
    }
    
    .news-detail-content-wrap {
        padding: 25px;
        border-radius: 16px;
    }
    
    .news-detail-content {
        font-size: 15px;
    }
    
    .news-detail-content h2 {
        font-size: 1.35rem;
        padding-left: 15px;
    }
    
    .news-detail-content h3 {
        font-size: 1.15rem;
    }
    
    .news-detail-content blockquote {
        padding: 20px 20px 20px 25px;
        font-size: 15px;
    }
    
    .news-detail-share {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .news-detail-sidebar .row {
        flex-direction: column;
    }
    
    .news-detail-widget {
        flex: none;
        min-width: 100%;
    }
    
    .news-detail-related-section {
        padding: 50px 0 60px;
    }
    
    .news-detail-related-header {
        margin-bottom: 35px;
    }
    
    .news-detail-related-nav {
        display: none !important;
    }
    
    .news-detail-navigation {
        flex-direction: column;
        gap: 20px;
    }
    
    .news-detail-nav-item {
        padding: 15px 0;
    }
    
    .news-detail-nav-item:first-child {
        border-right: none;
        border-bottom: 1px solid #e8e0d8;
    }
    
    .news-detail-nav-item:last-child {
        text-align: left;
    }
    
    .news-detail-nav-item:last-child .news-detail-nav-label {
        justify-content: flex-start;
    }
    
    .news-detail-nav-item:hover,
    .news-detail-nav-item:first-child:hover {
        transform: translateX(0) translateY(-3px);
    }
}

/* Small Mobile */
@media (max-width: 576px) {
    .news-detail-hero {
        min-height: 320px;
    }
    
    .news-detail-hero-content {
        padding: 100px 0 40px;
    }
    
    .news-detail-breadcrumb a,
    .news-detail-breadcrumb .current {
        font-size: 12px;
    }
    
    .news-detail-meta-item {
        font-size: 12px;
    }
    
    .news-detail-meta-item svg {
        width: 16px;
        height: 16px;
    }
    
    .news-detail-author-avatar {
        width: 32px;
        height: 32px;
    }
    
    .news-detail-section {
        padding: 30px 0 50px;
    }
    
    .news-detail-content-wrap {
        padding: 20px;
        border-radius: 12px;
    }
    
    .news-detail-content {
        font-size: 14px;
        line-height: 1.75;
    }
    
    .news-detail-content h2 {
        font-size: 1.2rem;
        margin: 1.5em 0 0.8em;
    }
    
    .news-detail-content h3 {
        font-size: 1.1rem;
    }
    
    .news-detail-content blockquote {
        padding: 15px 15px 15px 20px;
        font-size: 14px;
    }
    
    .news-detail-content blockquote::before {
        font-size: 35px;
        top: 10px;
        left: 8px;
    }
    
    .news-detail-tags {
        margin-top: 30px;
        padding-top: 20px;
    }
    
    .news-detail-tag {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .news-detail-share {
        margin-top: 20px;
        padding-top: 20px;
    }
    
    .news-detail-share-btn {
        width: 38px;
        height: 38px;
    }
    
    .news-detail-share-btn svg {
        width: 16px;
        height: 16px;
    }
    
    .news-detail-widget {
        padding: 20px;
        border-radius: 12px;
    }
    
    .news-detail-widget-title {
        font-size: 15px;
        margin-bottom: 15px;
        padding-bottom: 12px;
    }
    
    .news-detail-author-widget .author-avatar {
        width: 75px;
        height: 75px;
    }
    
    .news-detail-author-widget .author-name {
        font-size: 16px;
    }
    
    .news-detail-related-image {
        width: 70px;
        height: 52px;
    }
    
    .news-detail-related-title {
        font-size: 13px;
    }
    
    .news-detail-related-section {
        padding: 40px 0 50px;
    }
    
    .news-detail-related-header {
        margin-bottom: 30px;
    }
    
    .news-detail-nav-title {
        font-size: 14px;
    }
}

/* Extra Small Mobile */
@media (max-width: 375px) {
    .news-detail-hero {
        min-height: 280px;
    }
    
    .news-detail-content-wrap {
        padding: 15px;
    }
    
    .news-detail-content table {
        font-size: 13px;
    }
    
    .news-detail-content table th,
    .news-detail-content table td {
        padding: 8px 10px;
    }
}
