/* ==========================================================================
   MODERN PREMIUM ADVENTURE BLOG STYLESHEET
   Project: Phượt 4P Blog UI Redesign
   ========================================================================== */

/* --- CSS Variables & Core Design System --- */
:root {
    --blog-orange: #FF4D00;
    --blog-orange-hover: #E34400;
    --blog-orange-glow: rgba(255, 77, 0, 0.2);
    --blog-red: #E60000;
    --blog-dark: #0f172a;
    --blog-slate: #1e293b;
    --blog-text: #334155;
    --blog-bg: #f8fafc;
    --blog-card-bg: #ffffff;
    --blog-border: #e2e8f0;
    --blog-radius: 16px;
    --blog-radius-sm: 8px;
    --blog-font: 'Plus Jakarta Sans', sans-serif;
    --blog-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
    --blog-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.04), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
    --blog-shadow-lg: 0 20px 40px -10px rgba(15, 23, 42, 0.08), 0 10px 10px -10px rgba(15, 23, 42, 0.08);
}

/* --- Layout Base --- */
.news-page, .news-detail-page {
    background: var(--blog-bg);
    font-family: var(--blog-font);
    color: var(--blog-text);
    padding-bottom: 60px;
    line-height: 1.6;
}

/* Smooth Scrolling & Transitions */
*, *::before, *::after {
    transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Reading Progress Bar (Top of Detail Page) */
#reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, var(--blog-orange) 0%, var(--blog-red) 100%);
    z-index: 9999;
    transition: width 0.1s ease;
}

/* ==========================================================================
   BLOG LANDING PAGE (blog.php)
   ========================================================================== */

/* --- Masthead / Hero Banner --- */
.news-masthead {
    position: relative;
    background: var(--blog-dark);
    color: #ffffff;
    padding: 70px 24px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

/* Animated decorative background gradients */
.news-masthead::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%; right: -50%; bottom: -50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 77, 0, 0.18) 0%, transparent 60%),
                radial-gradient(circle at 80% 80%, rgba(230, 0, 0, 0.12) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.news-masthead .news-date-line {
    position: relative;
    z-index: 2;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--blog-orange);
    margin-bottom: 12px;
}

.news-masthead h1 {
    position: relative;
    z-index: 2;
    font-size: 3.2rem;
    font-weight: 800;
    letter-spacing: -1px;
    color: #ffffff;
    margin: 0;
    line-height: 1.15;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.news-masthead .news-tagline {
    position: relative;
    z-index: 2;
    font-size: 1.1rem;
    color: #94a3b8;
    margin-top: 14px;
    font-weight: 500;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Category Navigation Bar --- */
.news-category-bar {
    background: var(--blog-card-bg);
    border-bottom: 1px solid var(--blog-border);
    padding: 14px 24px;
    position: sticky;
    top: 70px; /* Adjust based on global menu height */
    z-index: 99;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
    overflow-x: auto;
    scrollbar-width: none; /* Hide scrollbar for Firefox */
}

.news-category-bar::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome/Safari */
}

.news-category-bar-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    gap: 10px;
    white-space: nowrap;
    align-items: center;
}

.news-cat-tab {
    padding: 8px 20px;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--blog-slate);
    text-decoration: none;
    background: #f1f5f9;
    border-radius: 100px;
    border: 1px solid transparent;
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.news-cat-tab:hover {
    color: var(--blog-orange);
    background: rgba(255, 77, 0, 0.05);
    border-color: rgba(255, 77, 0, 0.15);
}

.news-cat-tab.active {
    color: #ffffff;
    background: var(--blog-orange);
    box-shadow: 0 4px 12px var(--blog-orange-glow);
}

/* --- Grid Container --- */
.news-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Hero Featured Layout --- */
.news-hero {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 24px;
    margin-top: 32px;
    margin-bottom: 40px;
}

/* Main Big Featured Post */
.news-hero-main {
    position: relative;
    background: var(--blog-dark);
    min-height: 480px;
    border-radius: var(--blog-radius);
    overflow: hidden;
    cursor: pointer;
    display: block;
    text-decoration: none;
    box-shadow: var(--blog-shadow);
}

.news-hero-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0; left: 0;
    opacity: 0.8;
    transition: transform 0.6s ease, opacity 0.4s ease;
}

.news-hero-main:hover img {
    transform: scale(1.03);
    opacity: 0.9;
}

.news-hero-main .hero-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 50px 32px 32px;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.5) 60%, transparent 100%);
    color: #ffffff;
    z-index: 2;
}

.news-hero-main .hero-cat {
    display: inline-block;
    background: var(--blog-orange);
    color: #ffffff;
    padding: 4px 14px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 100px;
    margin-bottom: 14px;
    box-shadow: 0 4px 10px rgba(255, 77, 0, 0.3);
}

.news-hero-main .hero-title {
    font-size: 2.1rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 12px;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.news-hero-main .hero-excerpt {
    font-size: 0.96rem;
    color: #cbd5e1;
    line-height: 1.6;
    max-width: 90%;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-hero-main .hero-meta {
    font-size: 0.8rem;
    color: #94a3b8;
    display: flex;
    gap: 20px;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 16px;
}

.news-hero-main .hero-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.news-hero-main .hero-meta i {
    color: var(--blog-orange);
    font-size: 0.95rem;
}

/* Side Stack Column */
.news-hero-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-hero-side-item {
    position: relative;
    flex: 1;
    background: var(--blog-dark);
    overflow: hidden;
    display: block;
    text-decoration: none;
    border-radius: var(--blog-radius);
    min-height: 230px;
    box-shadow: var(--blog-shadow);
}

.news-hero-side-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0; left: 0;
    opacity: 0.7;
    transition: transform 0.6s ease, opacity 0.4s ease;
}

.news-hero-side-item:hover img {
    opacity: 0.8;
    transform: scale(1.04);
}

.news-hero-side-item .side-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 24px;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.3) 70%, transparent 100%);
    color: #ffffff;
    z-index: 2;
}

.news-hero-side-item .side-cat {
    display: inline-block;
    background: var(--blog-orange);
    color: #ffffff;
    padding: 3px 10px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 100px;
    margin-bottom: 8px;
}

.news-hero-side-item .side-title {
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.35;
    color: #ffffff;
    letter-spacing: -0.2px;
}

.news-hero-side-item .side-meta {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Image Placeholders */
.hero-no-img, .side-no-img {
    width: 100%; height: 100%;
    position: absolute;
    top: 0; left: 0;
    background: linear-gradient(135deg, var(--blog-dark) 0%, var(--blog-slate) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-no-img i, .side-no-img i {
    font-size: 4rem;
    color: var(--blog-orange);
    opacity: 0.25;
}

/* --- Sort/Filter/Toolbar Bar --- */
.news-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: var(--blog-card-bg);
    border-radius: var(--blog-radius);
    border: 1px solid var(--blog-border);
    margin-bottom: 32px;
    box-shadow: var(--blog-shadow-sm);
    gap: 16px;
}

.news-toolbar .toolbar-info {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--blog-slate);
}

.news-toolbar .toolbar-info strong {
    color: var(--blog-orange);
}

.news-toolbar .toolbar-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

.news-toolbar select {
    padding: 8px 36px 8px 16px;
    border: 1px solid var(--blog-border);
    border-radius: var(--blog-radius-sm);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--blog-slate);
    background: #f8fafc;
    cursor: pointer;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px;
    transition: all 0.2s ease;
}

.news-toolbar select:focus {
    border-color: var(--blog-orange);
    box-shadow: 0 0 0 3px var(--blog-orange-glow);
    background-color: #ffffff;
}

.news-toolbar .rss-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #f97316;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 700;
    padding: 8px 16px;
    border: 1px solid rgba(249, 115, 22, 0.2);
    border-radius: var(--blog-radius-sm);
    background: rgba(249, 115, 22, 0.05);
}

.news-toolbar .rss-link:hover {
    background: #f97316;
    color: #ffffff;
    border-color: #f97316;
}

/* --- Section Dividers --- */
.news-section-label {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--blog-dark);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.3px;
}

.news-section-label .label-accent {
    width: 6px;
    height: 26px;
    background: linear-gradient(180deg, var(--blog-orange) 0%, var(--blog-red) 100%);
    border-radius: 100px;
    display: inline-block;
}

/* --- Main Grid Content --- */
.news-body {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
}

/* Article Cards Grid (Feed) */
.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.news-article {
    background: var(--blog-card-bg);
    border: 1px solid var(--blog-border);
    border-radius: var(--blog-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--blog-shadow-sm);
}

.news-article:hover {
    transform: translateY(-6px);
    box-shadow: var(--blog-shadow-lg);
    border-color: rgba(255, 77, 0, 0.15);
}

.news-article-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #e2e8f0;
    position: relative;
}

.news-article-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-article:hover .news-article-img img {
    transform: scale(1.05);
}

.news-article-img .img-placeholder {
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.news-article-img .img-placeholder i {
    font-size: 3rem;
    color: #cbd5e1;
}

.news-article .art-info-wrap {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-article .art-cat {
    display: inline-block;
    color: var(--blog-orange);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
    align-self: flex-start;
    padding: 2px 10px;
    background: rgba(255, 77, 0, 0.08);
    border-radius: 100px;
}

.news-article .art-title {
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1.35;
    color: var(--blog-dark);
    margin-bottom: 10px;
    letter-spacing: -0.2px;
}

.news-article:hover .art-title {
    color: var(--blog-orange);
}

.news-article .art-excerpt {
    font-size: 0.9rem;
    color: var(--blog-text);
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-article .art-meta {
    margin-top: auto;
    font-size: 0.78rem;
    color: #64748b;
    display: flex;
    gap: 16px;
    align-items: center;
    border-top: 1px solid #f1f5f9;
    padding-top: 14px;
}

.news-article .art-meta i {
    color: var(--blog-orange);
}

/* --- Sidebar Widgets --- */
.news-sidebar, .nd-sidebar {
    display: flex;
    flex-direction: column;
    gap: 32px;
    position: sticky;
    top: 140px; /* Aligned with navigation */
    align-self: start;
}

/* Search widget */
.news-search-box {
    background: var(--blog-card-bg);
    border: 1px solid var(--blog-border);
    padding: 24px;
    border-radius: var(--blog-radius);
    box-shadow: var(--blog-shadow-sm);
}

.news-search-box form {
    display: flex;
    position: relative;
    border: 1px solid var(--blog-border);
    border-radius: var(--blog-radius-sm);
    overflow: hidden;
}

.news-search-box input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    font-size: 0.9rem;
    outline: none;
    background: #f8fafc;
    color: var(--blog-dark);
}

.news-search-box form:focus-within {
    border-color: var(--blog-orange);
    box-shadow: 0 0 0 3px var(--blog-orange-glow);
}

.news-search-box button {
    padding: 0 20px;
    background: var(--blog-orange);
    color: #ffffff;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
}

.news-search-box button:hover {
    background: var(--blog-orange-hover);
}

/* Generic widget design */
.news-widget, .nd-widget {
    background: var(--blog-card-bg);
    border: 1px solid var(--blog-border);
    border-radius: var(--blog-radius);
    overflow: hidden;
    box-shadow: var(--blog-shadow-sm);
}

.news-widget-header, .nd-widget-header {
    background: #f8fafc;
    border-bottom: 1px solid var(--blog-border);
    padding: 16px 24px;
    font-size: 0.95rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--blog-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.news-widget-header::before, .nd-widget-header::before {
    content: '';
    width: 4px;
    height: 16px;
    background: var(--blog-orange);
    border-radius: 10px;
    display: inline-block;
}

/* Numbered List Widget */
.news-numbered-list, .nd-numbered-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: sidebar-counter;
}

.news-numbered-list li, .nd-numbered-list li {
    counter-increment: sidebar-counter;
    padding: 18px 24px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.news-numbered-list li:last-child, .nd-numbered-list li:last-child {
    border-bottom: none;
}

.news-numbered-list li:hover, .nd-numbered-list li:hover {
    background: rgba(255, 77, 0, 0.02);
}

.news-numbered-list li::before, .nd-numbered-list li::before {
    content: "0" counter(sidebar-counter);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--blog-orange);
    opacity: 0.8;
    line-height: 1.1;
    min-width: 24px;
    text-align: center;
}

.news-numbered-list .num-content a, .nd-numbered-list .num-content a {
    font-size: 0.92rem;
    color: var(--blog-dark);
    text-decoration: none;
    font-weight: 700;
    line-height: 1.4;
    display: block;
}

.news-numbered-list .num-content a:hover, .nd-numbered-list .num-content a:hover {
    color: var(--blog-orange);
}

.news-numbered-list .num-meta, .nd-numbered-list .num-meta {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 6px;
    display: flex;
    gap: 10px;
}

/* Category Sidebar Widget */
.news-cat-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-cat-list li {
    border-bottom: 1px solid #f1f5f9;
}

.news-cat-list li:last-child {
    border-bottom: none;
}

.news-cat-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 24px;
    color: var(--blog-dark);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 700;
}

.news-cat-list a:hover {
    background: rgba(255, 77, 0, 0.02);
    color: var(--blog-orange);
    padding-left: 28px;
}

.news-cat-list .cat-count {
    background: #f1f5f9;
    color: #64748b;
    padding: 2px 10px;
    font-size: 0.72rem;
    font-weight: 800;
    border-radius: 100px;
}

.news-cat-list a:hover .cat-count {
    background: var(--blog-orange);
    color: #ffffff;
}

/* Newsletter Signup Widget */
.news-newsletter {
    background: linear-gradient(135deg, var(--blog-dark) 0%, var(--blog-slate) 100%);
    border: none;
    padding: 32px 24px;
    color: #ffffff;
    text-align: center;
    border-radius: var(--blog-radius);
    box-shadow: var(--blog-shadow);
    position: relative;
    overflow: hidden;
}

.news-newsletter::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 10% 10%, rgba(255, 77, 0, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.news-newsletter h3 {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.news-newsletter h3 i {
    color: var(--blog-orange);
}

.news-newsletter p {
    font-size: 0.88rem;
    color: #94a3b8;
    margin-bottom: 20px;
    line-height: 1.5;
}

.news-newsletter input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--blog-radius-sm);
    font-size: 0.9rem;
    color: #ffffff;
    margin-bottom: 12px;
    outline: none;
    text-align: center;
}

.news-newsletter input::placeholder {
    color: #64748b;
}

.news-newsletter input:focus {
    border-color: var(--blog-orange);
    background: rgba(255, 255, 255, 0.1);
}

.news-newsletter button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(90deg, var(--blog-orange) 0%, var(--blog-red) 100%);
    color: #ffffff;
    border: none;
    font-weight: 800;
    font-size: 0.9rem;
    border-radius: var(--blog-radius-sm);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(255, 77, 0, 0.2);
}

.news-newsletter button:hover {
    opacity: 0.95;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 77, 0, 0.3);
}

/* --- Pagination (Modern Cards Layout) --- */
.news-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--blog-border);
}

.news-pagination a, .news-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--blog-slate);
    background: var(--blog-card-bg);
    border: 1px solid var(--blog-border);
    border-radius: var(--blog-radius-sm);
    box-shadow: var(--blog-shadow-sm);
}

.news-pagination a:hover {
    color: var(--blog-orange);
    border-color: var(--blog-orange);
    background: rgba(255, 77, 0, 0.02);
    transform: translateY(-2px);
}

.news-pagination .pg-active {
    background: var(--blog-orange);
    color: #ffffff;
    border-color: var(--blog-orange);
    box-shadow: 0 4px 10px var(--blog-orange-glow);
}

/* --- Breadcrumbs --- */
.news-breadcrumb, .nd-breadcrumb {
    padding: 18px 0;
    margin-bottom: 8px;
}

.news-breadcrumb ol, .nd-breadcrumb ol {
    display: flex;
    list-style: none;
    padding: 0; margin: 0;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    font-size: 0.82rem;
    font-weight: 600;
}

.news-breadcrumb a, .nd-breadcrumb a {
    color: #64748b;
    text-decoration: none;
}

.news-breadcrumb a:hover, .nd-breadcrumb a:hover {
    color: var(--blog-orange);
}

.news-breadcrumb .bc-sep, .nd-breadcrumb .bc-sep {
    color: #94a3b8;
    font-size: 0.8rem;
}

.news-breadcrumb .bc-current, .nd-breadcrumb .bc-current {
    color: var(--blog-dark);
}

/* Empty state design */
.news-empty {
    text-align: center;
    padding: 80px 40px;
    background: var(--blog-card-bg);
    border: 1px solid var(--blog-border);
    border-radius: var(--blog-radius);
    box-shadow: var(--blog-shadow-sm);
    color: #64748b;
}

.news-empty i {
    font-size: 4rem;
    color: #cbd5e1;
    margin-bottom: 20px;
    display: block;
}

.news-empty h3 {
    font-size: 1.4rem;
    color: var(--blog-dark);
    margin-bottom: 10px;
    font-weight: 800;
}

/* ==========================================================================
   BLOG DETAIL PAGE (blog-detail.php)
   ========================================================================== */

.nd-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    padding-top: 10px;
}

/* Article Container Card */
.nd-article {
    background: var(--blog-card-bg);
    border: 1px solid var(--blog-border);
    border-radius: var(--blog-radius);
    box-shadow: var(--blog-shadow-sm);
    overflow: hidden;
}

/* Back Link Button */
.nd-back {
    padding: 20px 32px;
    border-bottom: 1px solid #f1f5f9;
}

.nd-back a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--blog-orange);
    text-decoration: none;
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nd-back a:hover {
    color: var(--blog-orange-hover);
}

.nd-back a:hover i {
    transform: translateX(-4px);
}

/* Article Header Area */
.nd-header {
    padding: 40px 40px 30px;
}

.nd-meta-top {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
    font-size: 0.82rem;
    color: #64748b;
    font-weight: 600;
}

.nd-category-badge {
    background: rgba(255, 77, 0, 0.08);
    color: var(--blog-orange);
    padding: 3px 12px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 100px;
}

.nd-meta-top span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nd-meta-top i {
    color: var(--blog-orange);
    font-size: 0.95rem;
}

.nd-title {
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--blog-dark);
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.nd-excerpt {
    font-size: 1.15rem;
    color: #475569;
    line-height: 1.65;
    font-weight: 500;
    padding: 20px 24px;
    border-left: 4px solid var(--blog-orange);
    background: #f8fafc;
    border-radius: 0 var(--blog-radius-sm) var(--blog-radius-sm) 0;
    margin-top: 24px;
}

.nd-author-line {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
    font-size: 0.88rem;
    color: #64748b;
    font-weight: 600;
    flex-wrap: wrap;
}

.nd-author-line span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nd-author-line i {
    color: var(--blog-orange);
}

/* Article Hero Cover Image */
.nd-featured-img {
    width: 100%;
    max-height: 520px;
    overflow: hidden;
    background: #f1f5f9;
}

.nd-featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Sharing Bar design */
.nd-share-bar {
    padding: 20px 40px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    background: #f8fafc;
}

.nd-share-bar .share-label {
    font-weight: 800;
    font-size: 0.82rem;
    color: var(--blog-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-right: 8px;
}

.nd-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    font-size: 0.82rem;
    font-weight: 700;
    border: none;
    border-radius: var(--blog-radius-sm);
    text-decoration: none;
    color: #ffffff;
    cursor: pointer;
}

.nd-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.nd-share-btn.fb { background: #1877f2; }
.nd-share-btn.tw { background: #0f172a; }
.nd-share-btn.ln { background: #0077b5; }
.nd-share-btn.copy { background: #64748b; }

/* Tag cloud list details */
.nd-tags {
    padding: 20px 40px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.nd-tags .tags-label {
    font-weight: 800;
    font-size: 0.82rem;
    color: var(--blog-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-right: 6px;
}

.nd-tag {
    display: inline-flex;
    align-items: center;
    padding: 5px 14px;
    background: #f1f5f9;
    color: var(--blog-slate);
    font-size: 0.8rem;
    text-decoration: none;
    font-weight: 700;
    border-radius: 100px;
}

.nd-tag:hover {
    background: var(--blog-orange);
    color: #ffffff;
    box-shadow: 0 4px 10px var(--blog-orange-glow);
}

/* ==========================================================================
   ARTICLE READABILITY STYLE SETS (nd-content)
   ========================================================================== */

.nd-content {
    padding: 48px 40px;
    font-size: 1.1rem;
    line-height: 1.85;
    color: #334155;
}

/* Beautiful Dropcap for introductory paragraph */
.nd-content p:first-of-type::first-letter {
    font-size: 4rem;
    font-weight: 800;
    float: left;
    line-height: 0.85;
    margin-right: 12px;
    margin-top: 6px;
    color: var(--blog-orange);
}

.nd-content p {
    margin-bottom: 24px;
    text-align: justify;
}

.nd-content h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--blog-dark);
    margin-top: 48px;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nd-content h2::before {
    content: '';
    width: 5px;
    height: 24px;
    background: var(--blog-orange);
    border-radius: 10px;
    display: inline-block;
}

.nd-content h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--blog-dark);
    margin-top: 36px;
    margin-bottom: 16px;
}

.nd-content h4 {
    font-size: 1.2rem;
    font-weight: 800;
    margin-top: 32px;
    margin-bottom: 12px;
    color: var(--blog-dark);
}

.nd-content img {
    max-width: 100%;
    height: auto;
    margin: 32px auto;
    display: block;
    border-radius: var(--blog-radius);
    box-shadow: var(--blog-shadow);
}

.nd-content ul, .nd-content ol {
    margin-bottom: 24px;
    padding-left: 24px;
}

.nd-content li {
    margin-bottom: 10px;
    line-height: 1.8;
}

.nd-content ul li {
    list-style-type: none;
    position: relative;
    padding-left: 18px;
}

.nd-content ul li::before {
    content: "•";
    color: var(--blog-orange);
    font-weight: bold;
    font-size: 1.25rem;
    position: absolute;
    left: 0;
    top: -2px;
}

.nd-content ol li {
    list-style-type: decimal;
}

.nd-content blockquote {
    border-left: 4px solid var(--blog-orange);
    padding: 20px 28px;
    margin: 36px 0;
    background: #f8fafc;
    font-style: italic;
    color: #475569;
    font-size: 1.15rem;
    border-radius: 0 var(--blog-radius-sm) var(--blog-radius-sm) 0;
}

.nd-content a {
    color: var(--blog-orange);
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 2px;
    font-weight: 700;
}

.nd-content a:hover {
    color: var(--blog-orange-hover);
}

/* Detail Footer design */
.nd-footer {
    padding: 24px 40px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.88rem;
    color: #64748b;
    font-weight: 600;
}

.nd-footer span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nd-footer i {
    color: var(--blog-orange);
}

.nd-footer-actions {
    display: flex;
    gap: 12px;
}

.nd-footer-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #f1f5f9;
    color: var(--blog-slate);
    border: none;
    border-radius: var(--blog-radius-sm);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
}

.nd-footer-btn:hover {
    background: var(--blog-orange);
    color: #ffffff;
    box-shadow: 0 4px 10px var(--blog-orange-glow);
}

/* --- Related Posts Grid Section --- */
.nd-related {
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 24px;
}

.nd-related-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--blog-dark);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.nd-related-title .label-accent {
    width: 6px;
    height: 26px;
    background: linear-gradient(180deg, var(--blog-orange) 0%, var(--blog-red) 100%);
    border-radius: 100px;
    display: inline-block;
}

.nd-related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.nd-related-card {
    background: var(--blog-card-bg);
    border: 1px solid var(--blog-border);
    border-radius: var(--blog-radius);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    box-shadow: var(--blog-shadow-sm);
}

.nd-related-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--blog-shadow-lg);
    border-color: rgba(255, 77, 0, 0.15);
}

.nd-related-card-img {
    width: 100%;
    height: 150px;
    overflow: hidden;
    background: #e2e8f0;
    position: relative;
}

.nd-related-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nd-related-card:hover .nd-related-card-img img {
    transform: scale(1.05);
}

.nd-related-card-img .img-placeholder {
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.nd-related-card-img .img-placeholder i {
    font-size: 2rem;
    color: #cbd5e1;
}

.nd-related-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.nd-related-card .rc-cat {
    color: var(--blog-orange);
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 6px;
    display: block;
}

.nd-related-card .rc-title {
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.4;
    color: var(--blog-dark);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nd-related-card:hover .rc-title {
    color: var(--blog-orange);
}

.nd-related-card .rc-meta {
    margin-top: auto;
    font-size: 0.72rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ==========================================================================
   RESPONSIVE DESIGN ADAPTATIONS
   ========================================================================== */

@media (max-width: 1200px) {
    .nd-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .news-body, .nd-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .news-sidebar, .nd-sidebar {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .news-sidebar > *, .nd-sidebar > * {
        flex: 1 1 calc(50% - 20px);
    }
}

@media (max-width: 768px) {
    .news-masthead h1 {
        font-size: 2.4rem;
    }
    
    .news-masthead .news-tagline {
        font-size: 0.95rem;
    }
    
    .news-hero {
        grid-template-columns: 1fr;
    }
    
    .news-hero-main {
        min-height: 380px;
    }
    
    .news-hero-main .hero-title {
        font-size: 1.6rem;
    }
    
    .news-hero-side {
        flex-direction: row;
    }
    
    .news-hero-side-item {
        flex: 1;
        min-height: 200px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .news-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .news-toolbar .toolbar-actions {
        justify-content: space-between;
    }
    
    .nd-title {
        font-size: 1.8rem;
    }
    
    .nd-excerpt {
        font-size: 1rem;
        padding: 16px;
    }
    
    .nd-content {
        padding: 32px 24px;
        font-size: 1rem;
    }
    
    .nd-content h2 {
        font-size: 1.45rem;
    }
    
    .nd-content h3 {
        font-size: 1.25rem;
    }
    
    .nd-share-bar, .nd-tags {
        padding: 16px 24px;
    }
}

@media (max-width: 640px) {
    .news-sidebar > *, .nd-sidebar > * {
        flex: 1 1 100%;
    }
    
    .news-hero-side {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .news-masthead {
        padding: 48px 16px;
    }
    
    .news-masthead h1 {
        font-size: 1.9rem;
    }
    
    .news-container, .nd-container {
        padding: 0 16px;
    }
    
    .news-hero-main {
        min-height: 300px;
    }
    
    .news-hero-main .hero-title {
        font-size: 1.35rem;
    }
    
    .news-hero-main .hero-overlay {
        padding: 24px 20px;
    }
    
    .news-article .art-info-wrap {
        padding: 20px;
    }
    
    .news-article .art-title {
        font-size: 1.15rem;
    }
    
    .nd-header {
        padding: 24px 20px;
    }
    
    .nd-content {
        padding: 24px 20px;
    }
    
    .nd-content p:first-of-type::first-letter {
        font-size: 3rem;
    }
    
    .nd-share-bar, .nd-tags {
        padding: 14px 20px;
    }
    
    .nd-share-btn {
        width: 100%;
        justify-content: center;
    }
    
    .nd-footer {
        padding: 20px;
        flex-direction: column;
        align-items: stretch;
    }
    
    .nd-footer-actions {
        flex-direction: column;
    }
    
    .nd-footer-btn {
        justify-content: center;
    }
    
    .nd-related-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   PORTAL-SPECIFIC UPGRADES (trang tin tức Phượt 4P)
   ========================================================================== */

/* Header News Branding */
.news-masthead .masthead-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
    gap: 30px;
    position: relative;
    z-index: 5;
}

.news-masthead .masthead-left {
    text-align: left;
}

.news-masthead .masthead-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

/* Weather Widget */
.news-weather-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.8rem;
    color: #cbd5e1;
    font-weight: 600;
}

.news-weather-badge i {
    color: #fbbf24;
    font-size: 1.1rem;
    animation: pulse-weather 3s infinite ease-in-out;
}

@keyframes pulse-weather {
    0%, 100% { opacity: 0.8; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

/* Breaking News Ticker */
.news-ticker {
    background: #ffffff;
    border-bottom: 1px solid var(--blog-border);
    padding: 10px 24px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.85rem;
    font-weight: 700;
}

.news-ticker-label {
    background: linear-gradient(90deg, var(--blog-orange) 0%, var(--blog-red) 100%);
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(255, 77, 0, 0.2);
}

.news-ticker-content {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 20px;
}

.news-ticker-text {
    position: absolute;
    white-space: nowrap;
    animation: ticker-animation 25s linear infinite;
    display: flex;
    gap: 40px;
}

.news-ticker-text a {
    color: var(--blog-slate);
    text-decoration: none;
}

.news-ticker-text a:hover {
    color: var(--blog-orange);
}

@keyframes ticker-animation {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

/* Portal Magazine Sections */
.news-portal-section {
    margin-bottom: 48px;
}

.news-section-label .section-view-all {
    margin-left: auto;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--blog-orange);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

.news-section-label .section-view-all:hover {
    color: var(--blog-orange-hover);
}

.news-section-label .section-view-all i {
    font-size: 0.9rem;
    transition: transform 0.2s ease;
}

.news-section-label .section-view-all:hover i {
    transform: translateX(3px);
}

/* Phuot Safety Checklist Widget */
.safety-checklist-widget {
    list-style: none;
    padding: 16px 20px !important;
    margin: 0;
}

.safety-checklist-widget li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--blog-slate);
    padding: 10px 0;
    border-bottom: 1px dashed #f1f5f9;
}

.safety-checklist-widget li:last-child {
    border-bottom: none;
}

.safety-checklist-widget i {
    color: #10b981;
    font-size: 1.1rem;
    margin-top: 2px;
}

/* Quick Map Route widget */
.route-map-widget {
    padding: 20px;
    text-align: center;
}

.route-map-widget img {
    border-radius: var(--blog-radius-sm);
    width: 100%;
    height: 140px;
    object-fit: cover;
    margin-bottom: 12px;
}

.route-map-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--blog-slate);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: var(--blog-radius-sm);
}

.route-map-btn:hover {
    background: var(--blog-orange);
    box-shadow: 0 4px 10px var(--blog-orange-glow);
}

/* Responsive updates for Portal Masthead */
@media (max-width: 768px) {
    .news-masthead .masthead-grid {
        flex-direction: column;
        text-align: center;
    }
    
    .news-masthead .masthead-left {
        text-align: center;
    }
    
    .news-masthead .masthead-right {
        align-items: center;
    }
}

/* ==========================================================================
   HIGH-TECH PREMIUM VISUAL STYLING INJECTIONS (CLEAN VERSION)
   ========================================================================== */

/* Holographic News Ticker design */
.news-ticker {
    background: #070c17 !important; /* Tech dark dark */
    border: 1px solid rgba(248, 158, 27, 0.2) !important;
    border-radius: 10px !important;
    color: #cbd5e1 !important;
    margin-top: 15px !important;
    box-shadow: 0 0 15px rgba(248, 158, 27, 0.05), inset 0 2px 4px rgba(255, 255, 255, 0.02) !important;
    position: relative;
    overflow: hidden;
}
.news-ticker::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(18, 24, 38, 0.1) 50%, rgba(0, 0, 0, 0.2) 50%);
    background-size: 100% 4px;
    pointer-events: none;
}
.news-ticker-text a {
    color: #94a3b8 !important;
    text-shadow: 0 0 4px rgba(148, 163, 184, 0.1);
}
.news-ticker-text a:hover {
    color: var(--blog-orange) !important;
    text-shadow: 0 0 8px rgba(248, 158, 27, 0.5);
}

/* Premium Glassmorphic upgrades for cards & widgets */
.news-article, .news-widget {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.02) !important;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

.news-article:hover {
    border-color: rgba(248, 158, 27, 0.3) !important;
    box-shadow: 0 20px 40px rgba(248, 158, 27, 0.08), 0 0 25px rgba(248, 158, 27, 0.05) !important;
    transform: translateY(-5px) !important;
}

/* Safety Checklist Cockpit Widget updates */
.safety-checklist-widget li {
    transition: all 0.25s ease;
    cursor: pointer;
    border-radius: 6px;
    padding: 10px 8px !important;
}

.safety-checklist-widget li:hover {
    background: rgba(248, 158, 27, 0.05);
    padding-left: 14px !important;
    color: var(--blog-orange);
}

.safety-checklist-widget li:hover i {
    transform: scale(1.15);
    filter: drop-shadow(0 0 4px #10b981);
}


