/* News Detail Page CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #f5f5f5;
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

/* Header */
.header {
    background: url('../img/pc-bg-nav-header.jpg') center center/cover no-repeat;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    padding: 0 20px;
}

.nav-item {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 20px;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.nav-item:hover {
    color: #c84223;
    transform: translateY(-2px);
}

/* Main Content */
.main-content {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Article */
.article {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

.article-header {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #d4af37;
}

.article-image {
    flex: 0 0 250px;
}

.article-image img {
    width: 250px;
    height: 180px;
    object-fit: contain;
    border-radius: 8px;
}

.article-info {
    flex: 1;
}

.article-category {
    background: #2c5530;
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 15px;
}

.article-title {
    font-size: 28px;
    color: #2c5530;
    font-weight: bold;
    margin-bottom: 15px;
    line-height: 1.3;
}

.article-date {
    color: #999;
    font-size: 16px;
    font-style: italic;
}

/* Article Content */
.article-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    font-family: 'Times New Roman', serif;
}

/* Main section headers - NO ICON */
.article-content h1 {
    color: #D2691E;
    margin: 30px 0 15px 0;
    font-weight: bold;
    font-size: 24px;
    padding-left: 0;
}

/* Sub-section headers - NO ICON */
.article-content h2 {
    color: #B8860B;
    margin: 25px 0 12px 0;
    font-weight: bold;
    font-size: 18px;
    padding-left: 0;
    font-style: italic;
}

/* Element type headers (Mộc sinh, Hỏa sinh, etc.) */
.article-content h3 {
    color: #B8860B;
    margin: 20px 0 10px 0;
    font-weight: bold;
    font-size: 16px;
    font-style: italic;
}

/* Regular headers */
.article-content h4 {
    color: #2c5530;
    margin: 18px 0 8px 0;
    font-weight: bold;
    font-size: 16px;
}

.article-content h5 {
    color: #2c5530;
    margin: 15px 0 8px 0;
    font-weight: bold;
    font-size: 14px;
}

.article-content p {
    margin-bottom: 15px;
    text-align: justify;
}

.article-content img {
    max-width: 100%;
    height: auto;
    margin: 20px auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.article-content ul, .article-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.article-content li {
    margin-bottom: 8px;
}

.article-content strong {
    color: #2c5530;
    font-weight: bold;
}

.article-content a {
    color: #d4af37;
    text-decoration: none;
    font-weight: bold;
}

.article-content a:hover {
    color: #2c5530;
    text-decoration: underline;
}

/* Back Button */
.back-button {
    display: inline-block;
    background: #2c5530;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.back-button:hover {
    background: #4CAF50;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .main-content {
        padding: 0 15px;
    }
    
    .article {
        padding: 20px;
    }
    
    .article-header {
        flex-direction: column;
        text-align: center;
    }
    
    .article-image {
        flex: none;
        align-self: center;
    }
    
    .article-image img {
        width: 100%;
        max-width: 300px;
        height: auto;
    }
    
    .article-title {
        font-size: 22px;
    }
    
    .article-content {
        font-size: 14px;
    }
    
    .nav-container {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .nav-item {
        padding: 8px 15px;
        font-size: 14px;
    }
}

/* Special bullet points with diamond symbols */
.article-content ul {
    margin: 20px 0;
    padding-left: 30px;
    list-style: none;
}

.article-content li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 20px;
}

.article-content li:before {
    content: '♦';
    position: absolute;
    left: 0;
    top: 0;
    color: #4169E1;
    font-size: 14px;
    font-weight: bold;
}

/* Special formatting for element types */
.article-content .element-types {
    color: #B8860B;
    font-weight: bold;
    font-style: italic;
}

/* Bold text styling */
.article-content strong {
    color: #2c5530;
    font-weight: bold;
}

/* Special emphasis for important terms */
.article-content .highlight {
    color: #D2691E;
    font-weight: bold;
}

/* Table styling for faction information */
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.article-content th {
    background: #8B4513;
    color: white;
    padding: 12px;
    text-align: center;
    font-weight: bold;
    border: 1px solid #654321;
}

.article-content td {
    padding: 12px;
    text-align: center;
    border: 1px solid #ddd;
    background: #FFF8DC;
}

.article-content tr:nth-child(even) td {
    background: #F5F5DC;
}

.article-content tr:hover td {
    background: #FFFACD;
}

/* Special styling for faction names in table */
.article-content .faction-name {
    font-weight: bold;
    color: #8B4513;
}

/* Paragraph indentation and spacing */
.article-content p {
    margin-bottom: 15px;
    text-align: justify;
    text-indent: 0;
}

/* Special formatting for introductory text */
.article-content .intro-text {
    font-style: italic;
    color: #666;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(184, 134, 11, 0.1);
    border-left: 4px solid #B8860B;
    border-radius: 0 8px 8px 0;
}
/* Additional styling to match the image format */

/* Special styling for element sequence headers */
.article-content h2 {
    color: #B8860B !important;
    font-size: 16px !important;
    font-weight: bold;
    font-style: italic;
    margin: 15px 0 10px 0;
    /* padding-left: 0 !important; - REMOVED TO ALLOW HEADING ICONS */
}

/* Override h1 styling for main section headers */
.article-content h1 {
    color: #D2691E !important;
    font-size: 20px !important;
    font-weight: bold;
    margin: 25px 0 15px 0;
    /* padding-left: 0 !important; - REMOVED TO ALLOW HEADING ICONS */
}

/* Remove any pseudo-elements - REMOVED TO ALLOW HEADING ICONS */

/* Special bullet styling with blue diamonds */
.article-content ul li:before {
    content: '♦';
    color: #4169E1;
    font-size: 12px;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 2px;
}

/* Text formatting for special terms */
.article-content .element-types {
    color: #B8860B;
    font-weight: bold;
    font-style: italic;
}

.article-content .highlight {
    color: #000;
    font-weight: bold;
}

/* Table header styling to match the brown color in image */
.article-content th {
    background: #8B4513 !important;
    color: white !important;
    font-weight: bold;
    text-align: center;
    padding: 10px;
    border: 1px solid #654321;
}

/* Table cell styling */
.article-content td {
    background: #FFF8DC !important;
    padding: 10px;
    text-align: center;
    border: 1px solid #ddd;
    vertical-align: middle;
}

/* Faction name styling in table */
.article-content .faction-name {
    font-weight: bold;
    color: #8B4513;
    background: #DEB887 !important;
}

/* Intro text styling */
.article-content .intro-text {
    font-style: normal;
    color: #333;
    margin-bottom: 20px;
    padding: 0;
    background: none;
    border: none;
    font-size: 16px;
    line-height: 1.6;
}

/* Remove default paragraph indentation */
.article-content p {
    text-indent: 0 !important;
    margin-bottom: 12px;
    line-height: 1.6;
}

/* Strong text styling */
.article-content strong {
    color: #000 !important;
    font-weight: bold;
}