/**
 * N2EXPRESS - Master Luxury News & Editorial Insights (Dark Mode Edition)
 * Obsidian Midnight Titanium, Royal Emerald & Champagne Gold
 * File: assets/css/news.css
 */

/* ==========================================================================
   1. NEWS HERO
   ========================================================================== */
.n2-news-hero {
    padding: 75px 0 85px 0;
    background: 
        radial-gradient(circle at 50% 20%, rgba(16, 185, 129, 0.12) 0%, transparent 60%),
        radial-gradient(circle at 80% 80%, rgba(212, 175, 55, 0.08) 0%, transparent 45%),
        linear-gradient(180deg, #05080e 0%, #090e17 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.n2-news-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 25%;
    width: 50%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #10b981 30%, #d4af37 70%, transparent);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

.n2-news-hero-title {
    font-size: 40px !important;
    font-weight: 900 !important;
    color: #ffffff !important;
    line-height: 1.25 !important;
    max-width: 880px;
    margin: 0 auto 16px auto !important;
    font-family: var(--font-family-heading) !important;
    letter-spacing: -0.5px !important;
}

.n2-news-hero-p {
    font-size: 16px;
    color: #94a3b8;
    line-height: 1.7;
    max-width: 720px;
    margin: 0 auto 26px auto;
}

/* Category Filter Tabs */
.n2-news-cat-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.n2-ncat-btn {
    background: rgba(14, 21, 33, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 200ms ease;
    font-family: var(--font-family-heading);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.n2-ncat-btn:hover {
    color: #ffffff;
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.15);
    transform: translateY(-2px);
}

.n2-ncat-btn.active {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    border-color: #10b981 !important;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
}

/* ==========================================================================
   2. FEATURED MAGAZINE ARTICLE
   ========================================================================== */
.n2-news-section {
    padding: 85px 0;
    background: #070b12;
}

.n2-featured-article {
    background: rgba(14, 21, 33, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    overflow: hidden;
    margin-bottom: 50px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.4);
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    transition: all 350ms ease;
}

.n2-featured-article:hover {
    border-color: rgba(16, 185, 129, 0.5);
    transform: translateY(-4px);
    box-shadow: 0 25px 60px rgba(16, 185, 129, 0.15);
}

.n2-fart-media {
    position: relative;
    height: 380px;
    overflow: hidden;
    background: #05080e;
}

.n2-fart-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 700ms ease;
}

.n2-featured-article:hover .n2-fart-img {
    transform: scale(1.05);
}

.n2-fart-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 800;
    padding: 5px 14px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.n2-fart-body {
    padding: 40px 45px;
    display: flex;
    flex-direction: column;
}

.n2-fart-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: #64748b;
    margin-bottom: 14px;
}

.n2-fart-meta-tag {
    color: #10b981;
    font-weight: 700;
}

.n2-fart-title {
    font-size: 26px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    line-height: 1.35 !important;
    margin: 0 0 16px 0 !important;
    font-family: var(--font-family-heading) !important;
}

.n2-fart-p {
    font-size: 15px;
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: 24px;
}

.n2-fart-link {
    color: #10b981 !important;
    font-size: 14.5px;
    font-weight: 700;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-family-heading);
    transition: all 200ms ease;
}

.n2-fart-link:hover {
    color: #34d399 !important;
    transform: translateX(4px);
}

/* ==========================================================================
   3. ARTICLES GRID
   ========================================================================== */
.n2-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.n2-art-card {
    background: rgba(14, 21, 33, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    overflow: hidden;
    transition: all 300ms ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.n2-art-card:hover {
    transform: translateY(-6px);
    border-color: rgba(16, 185, 129, 0.5);
    box-shadow: 0 20px 45px rgba(16, 185, 129, 0.12);
}

.n2-art-media {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #05080e;
}

.n2-art-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 600ms ease;
}

.n2-art-card:hover .n2-art-img {
    transform: scale(1.06);
}

.n2-art-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(9, 14, 23, 0.85);
    border: 1px solid rgba(212, 175, 55, 0.4);
    color: #fbbf24;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 6px;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.n2-art-body {
    padding: 26px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.n2-art-date {
    font-size: 12.5px;
    color: #64748b;
    margin-bottom: 10px;
}

.n2-art-title {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    line-height: 1.4 !important;
    margin: 0 0 12px 0 !important;
    font-family: var(--font-family-heading) !important;
}

.n2-art-p {
    font-size: 13.5px;
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.n2-art-link {
    color: #10b981 !important;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    font-family: var(--font-family-heading);
    transition: all 200ms ease;
}

.n2-art-link:hover {
    color: #34d399 !important;
    transform: translateX(3px);
}

/* ==========================================================================
   4. NEWSLETTER VIP SUBSCRIBE BOX
   ========================================================================== */
.n2-newsletter-section {
    padding: 70px 0;
    background: #05080e;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.n2-nletter-box {
    max-width: 820px;
    margin: 0 auto;
    background: rgba(14, 21, 33, 0.95);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-top: 3px solid #10b981;
    border-radius: 20px;
    padding: 36px 40px;
    text-align: center;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.4);
}

.n2-nletter-title {
    font-size: 24px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    margin-bottom: 8px !important;
    font-family: var(--font-family-heading) !important;
}

.n2-nletter-p {
    font-size: 14.5px;
    color: #94a3b8;
    margin-bottom: 24px;
}

.n2-nletter-form {
    display: flex;
    gap: 12px;
    max-width: 580px;
    margin: 0 auto;
    align-items: stretch;
    justify-content: center;
}

.n2-nletter-input {
    flex: 1 1 auto;
    min-width: 0;
    background: rgba(7, 11, 18, 0.9) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 12px !important;
    padding: 0 18px !important;
    height: 50px !important;
    color: #ffffff !important;
    font-size: 14px !important;
    outline: none !important;
    box-sizing: border-box !important;
}

.n2-nletter-input:focus {
    border-color: #10b981 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2) !important;
}

.n2-nletter-btn {
    flex: 0 0 auto;
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    color: #ffffff !important;
    border: 1px solid #10b981 !important;
    border-radius: 12px !important;
    padding: 0 28px !important;
    height: 50px !important;
    line-height: 50px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    font-family: var(--font-family-heading) !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4) !important;
    transition: all 200ms ease !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

.n2-nletter-btn:hover {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.5) !important;
}

.n2-nletter-msg {
    display: none;
    margin-top: 16px;
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 13.5px;
    line-height: 1.5;
    text-align: center;
}

/* ==========================================================================
   5. RESPONSIVE
   ========================================================================== */
@media (max-width: 992px) {
    .n2-featured-article {
        grid-template-columns: 1fr;
    }
    .n2-news-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .n2-news-grid {
        grid-template-columns: 1fr;
    }
    .n2-nletter-form {
        flex-direction: column;
    }
    .n2-nletter-btn {
        width: 100%;
    }
}

/* ==========================================================================
   6. LUXURY SINGLE POST ENTRY CONTENT TYPOGRAPHY (DARK MODE)
   ========================================================================== */
.n2-entry-content,
.entry-content,
.n2-article-detail {
    color: #e2e8f0;
    font-size: 16px;
    line-height: 1.85;
}

.n2-entry-content p,
.entry-content p {
    margin-bottom: 20px;
    color: #cbd5e1;
}

.n2-entry-content p.lead,
.entry-content p.lead {
    font-size: 18px;
    font-weight: 500;
    color: #ffffff;
    line-height: 1.75;
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.15) 0%, transparent 100%);
    border-left: 4px solid #10b981;
    padding: 16px 22px;
    border-radius: 0 10px 10px 0;
    margin-bottom: 30px;
}

.n2-entry-content h2,
.entry-content h2 {
    font-size: 24px !important;
    font-weight: 900 !important;
    color: #ffffff !important;
    margin: 38px 0 18px 0 !important;
    font-family: var(--font-family-heading) !important;
    letter-spacing: -0.3px;
    position: relative;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 8px;
}

.n2-entry-content h3,
.entry-content h3 {
    font-size: 19px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    margin: 28px 0 14px 0 !important;
    font-family: var(--font-family-heading) !important;
}

/* Custom Luxury Emerald & Gold Bullet Lists */
.n2-entry-content ul,
.entry-content ul,
.n2-article-detail ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 20px 0 28px 0 !important;
}

.n2-entry-content ul li,
.entry-content ul li,
.n2-article-detail ul li {
    list-style: none !important;
    position: relative !important;
    padding-left: 28px !important;
    margin-bottom: 14px !important;
    color: #e2e8f0 !important;
    line-height: 1.7 !important;
}

.n2-entry-content ul li::before,
.entry-content ul li::before,
.n2-article-detail ul li::before {
    content: '' !important;
    position: absolute !important;
    left: 4px !important;
    top: 9px !important;
    width: 8px !important;
    height: 8px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.6) !important;
    border: 1.5px solid #34d399 !important;
    transition: all 0.25s ease !important;
}

.n2-entry-content ul li:hover::before,
.entry-content ul li:hover::before,
.n2-article-detail ul li:hover::before {
    transform: scale(1.35) !important;
    background: #fbbf24 !important;
    border-color: #f59e0b !important;
    box-shadow: 0 0 12px rgba(251, 191, 36, 0.8) !important;
}

.n2-entry-content ul li strong,
.entry-content ul li strong {
    color: #ffffff;
    font-weight: 700;
}

/* Custom Numbered Ordered Lists */
.n2-entry-content ol,
.entry-content ol,
.n2-article-detail ol {
    list-style: none !important;
    counter-reset: n2-ol-counter !important;
    padding: 0 !important;
    margin: 20px 0 28px 0 !important;
}

.n2-entry-content ol li,
.entry-content ol li,
.n2-article-detail ol li {
    list-style: none !important;
    counter-increment: n2-ol-counter !important;
    position: relative !important;
    padding-left: 36px !important;
    margin-bottom: 14px !important;
    color: #e2e8f0 !important;
    line-height: 1.7 !important;
}

.n2-entry-content ol li::before,
.entry-content ol li::before,
.n2-article-detail ol li::before {
    content: counter(n2-ol-counter) !important;
    position: absolute !important;
    left: 0 !important;
    top: 2px !important;
    width: 22px !important;
    height: 22px !important;
    border-radius: 6px !important;
    background: rgba(16, 185, 129, 0.15) !important;
    border: 1px solid rgba(16, 185, 129, 0.4) !important;
    color: #10b981 !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-family: var(--font-family-heading) !important;
}

/* Master Executive Luxury Table Styling (High-Contrast Obsidian Dark Card with Champagne Gold & Emerald Borders) */
.n2-entry-content table,
.entry-content table,
.n2-article-detail table {
    width: 100% !important;
    margin: 32px 0 !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    background: rgba(14, 21, 33, 0.95) !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    border: 2px solid #d4af37 !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.45) !important;
}

.n2-entry-content table thead th,
.entry-content table thead th,
.n2-article-detail table thead th {
    background: linear-gradient(135deg, #064e3b 0%, #047857 100%) !important;
    color: #ffffff !important;
    padding: 16px 20px !important;
    font-weight: 900 !important;
    font-size: 14px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    border: 1px solid rgba(16, 185, 129, 0.4) !important;
    border-bottom: 2.5px solid #d4af37 !important;
    font-family: var(--font-family-heading) !important;
    text-align: left !important;
}

.n2-entry-content table thead th:first-child,
.entry-content table thead th:first-child,
.n2-article-detail table thead th:first-child {
    border-left: none !important;
}

.n2-entry-content table thead th:last-child,
.entry-content table thead th:last-child,
.n2-article-detail table thead th:last-child {
    border-right: none !important;
}

.n2-entry-content table tbody td,
.entry-content table tbody td,
.n2-article-detail table tbody td {
    padding: 15px 20px !important;
    background: rgba(14, 21, 33, 0.95) !important;
    color: #f8fafc !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.6 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    transition: all 0.2s ease !important;
}

/* Cột Tiêu Chí đầu tiên có nền nhấn nổi bật */
.n2-entry-content table tbody td:first-child,
.entry-content table tbody td:first-child,
.n2-article-detail table tbody td:first-child {
    background: rgba(20, 32, 50, 0.85) !important;
    color: #fbbf24 !important;
    font-weight: 800 !important;
    border-right: 2px solid rgba(212, 175, 55, 0.3) !important;
    border-left: none !important;
}

.n2-entry-content table tbody td:last-child,
.entry-content table tbody td:last-child,
.n2-article-detail table tbody td:last-child {
    border-right: none !important;
}

/* Dòng chẵn xen kẽ */
.n2-entry-content table tbody tr:nth-child(even) td,
.entry-content table tbody tr:nth-child(even) td,
.n2-article-detail table tbody tr:nth-child(even) td {
    background: rgba(9, 14, 23, 0.7) !important;
}

.n2-entry-content table tbody tr:nth-child(even) td:first-child,
.entry-content table tbody tr:nth-child(even) td:first-child,
.n2-article-detail table tbody tr:nth-child(even) td:first-child {
    background: rgba(16, 26, 42, 0.95) !important;
}

/* Hover dòng phát sáng */
.n2-entry-content table tbody tr:hover td,
.entry-content table tbody tr:hover td,
.n2-article-detail table tbody tr:hover td {
    background: rgba(16, 185, 129, 0.15) !important;
    color: #34d399 !important;
}

.n2-entry-content table tbody tr:last-child td,
.entry-content table tbody tr:last-child td,
.n2-article-detail table tbody tr:last-child td {
    border-bottom: none !important;
}

.n2-entry-content blockquote,
.entry-content blockquote {
    background: rgba(14, 21, 33, 0.95) !important;
    border-left: 4px solid #d4af37 !important;
    padding: 20px 24px !important;
    border-radius: 0 12px 12px 0 !important;
    margin: 28px 0 !important;
    font-style: italic !important;
    color: #cbd5e1 !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3) !important;
}
