/* Global Styles */
:root {
    --bg-dark: #121212;
    --bg-card: #1e1e1e;
    --primary-gold: #c5a065;
    --text-muted: #888;
    --border-color: #333;
    --font-serif: 'Noto Serif SC', serif;
}

body {
    background-color: var(--bg-dark);
    color: #fff;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
.logo-text,
.section-title {
    color: var(--primary-gold);
    font-size: 2.5rem;
    font-weight: 700;
    
    font-family: var(--font-serif);
   
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
}

/* Navbar */
.navbar {
    background-color: rgba(18, 18, 18, 0.95);
    border-bottom: 1px solid #333;
    padding: 1rem 0;
}

.logo-text {
    font-size: 1.5rem;
    color: var(--primary-gold) !important;
    letter-spacing: 2px;
}

.nav-link {
    color: #aaa !important;
    margin-left: 1rem;
    font-size: 0.9rem;
}

.nav-link.active,
.nav-link:hover {
    color: var(--primary-gold) !important;
}

/* Hero Section */
.hero-section {
    position: relative;
    margin-top: 76px;
    /* Navbar height */
}

.hero-img {
    height: 600px;
    object-fit: cover;
    object-position: center 20%;
    /* Focus on the person */
    filter: brightness(0.8);
}

.vertical-text-container {
    position: absolute;
    left: 10%;
    top: 50%;
    transform: translateY(-50%);
    text-align: center;
    writing-mode: vertical-rl;
    text-orientation: upright;
}

.vertical-text {
    font-size: 4rem;
    color: var(--primary-gold);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    font-weight: bold;
    letter-spacing: 10px;
}

.seal-box {
    writing-mode: horizontal-tb;
    border: 1px solid var(--primary-gold);
    padding: 2px 5px;
    color: var(--primary-gold);
    display: inline-block;
    margin-right: 10px;
    font-size: 0.8rem;
}

.carousel-indicators [data-bs-target] {
    background-color: var(--primary-gold);
}

/* Section Common */
.section-header {
    margin-bottom: 3rem;
}

.section-title {
    color: var(--primary-gold);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Projects Section */
.projects-section {
    background-color: #161616;
    border-bottom: 1px solid #222;
}

.project-card {
    background-color: transparent;
    border: 1px solid #333;
    transition: transform 0.3s;
    height: 100%;
}

.project-card:hover {
    border-color: var(--primary-gold);
    transform: translateY(-5px);
}

/* Carousel Specifics */
.project-carousel-wrapper {
    position: relative;
    padding: 0 60px;
    /* Space for buttons */
}

.project-track-container {
    overflow: hidden;
    width: 100%;
    padding-top: 15px;
    padding-bottom: 15px;
}

.project-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
    /* Will be managed by JS effectively, but start at 100 */
}

.project-card-slide {
    flex: 0 0 33.333%;
    max-width: 33.333%;
    padding: 0 15px;
    box-sizing: border-box;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 60px;
    /* Rectangular vertical */
    background-color: var(--primary-gold);
    border: none;
    color: #121212;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: all 0.3s;
}

.carousel-btn:hover {
    opacity: 1;
    background-color: #d4b476;
}

.prev-btn {
    left: 0;
}

.next-btn {
    right: 0;
}

.carousel-indicators-custom {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.indicator {
    width: 40px;
    height: 4px;
    background-color: #444;
    cursor: pointer;
    border: none;
    padding: 0;
    transition: background-color 0.3s;
}

.indicator.active {
    background-color: var(--primary-gold);
}

.card-img-wrapper {
    overflow: hidden;
    height: 250px;
    padding: 10px;
}

.card-img-top {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.custom-card-body {
    padding: 1.5rem;
    background-color: #222;
    border-top: 1px solid #333;
}

.card-title {
    color: var(--primary-gold);
    margin-bottom: 0.5rem;
}

.card-text {
    font-size: 0.8rem;
    color: #999;
}

/* Inheritance Section */
.inheritance-section {
    position: relative;
    background-color: var(--bg-dark);
    background-image: url('xiangyun.png');
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: contain;
    /* Or cover, depending on the image aspect ratio, usually cloud patterns at bottom use contain or 100% width */
}

.inheritance-vertical-banner {
    height: 452px;
    /* 140px * 3 rows + 16px * 2 gaps */
    background-color: #000;
    border: 1px solid #333;
    overflow: hidden;
}

.vertical-content {
    z-index: 2;
}

.vertical-text-large {
    writing-mode: vertical-rl;
    font-size: 2.5rem;
    letter-spacing: 10px;
    color: #a88d5e;
    font-family: var(--font-serif);
    background-color: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border: 1px solid #a88d5e;
    transition: all 0.3s;
}

.inheritance-vertical-banner:hover {
    border-color: #fff;
    cursor: pointer;
}

.inheritance-vertical-banner:hover .vertical-text-large {
    color: #fff;
    border-color: #fff;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 8px;
}

.bg-overlay-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.grid-item {
    position: relative;
    background-color: #1e1e1e;
    border: 1px solid var(--primary-gold);
    height: 140px;
    /* Base height */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ccc;
    transition: all 0.3s;
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.grid-item:hover {
    background-color: #2a2a2a;
    border-color: #fff;
    /* Optional: highlight border */
    cursor: pointer;
}

.grid-item:hover h6 {
    color: var(--primary-gold);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.grid-item h6 {
    margin-top: 10px;
    font-size: 0.9rem;
    transition: color 0.3s;
    z-index: 3;
    /* Ensure text is above overlay */
    position: relative;
}

.gold-icon {
    font-size: 1.5rem;
    color: #999;
}

.highlight-gold {
    background: linear-gradient(135deg, #d4b476 0%, #a88d5e 100%);
    color: #121212;
    border: none;
}

.highlight-gold i {
    color: #121212 !important;
}

/* News Section */
.news-section {
    background-color: #161616;
}

.news-card {
    background-color: transparent;
    border: none;
}

.news-img-wrapper {
    height: 180px;
    overflow: hidden;
    margin-bottom: 1rem;
    border-radius: 4px;
}

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

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

.news-title {
    color: #ddd;
    font-weight: bold;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.news-desc {
    color: #777;
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.news-date {
    color: var(--primary-gold);
    font-size: 0.8rem;
}

/* Footer */
.footer {
    background-color: #111;
    border-top: 1px solid #222;
    position: relative;
    overflow: hidden;
}

.copyright {
    color: #666;
    font-size: 0.9rem;
}

.social-icons a {
    color: var(--primary-gold);
    margin: 0 10px;
    font-size: 1.2rem;
}

/* Decorations (Cloud lines) */
.cloud-decoration-left {
    position: absolute;
    left: 0;
    top: 60%;
    width: 200px;
    height: 50px;
    border: 1px solid var(--primary-gold);
    border-left: none;
    opacity: 0.3;
}

.cloud-decoration-right {
    position: absolute;
    right: 0;
    top: 40%;
    width: 200px;
    height: 50px;
    border: 1px solid var(--primary-gold);
    border-right: none;
    opacity: 0.3;
}

/* Responsive fixes */
@media (max-width: 768px) {
    .hero-img {
        height: 400px;
    }

    .vertical-text {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .inheritance-vertical-banner {
        height: 200px;
        flex-direction: row;
    }

    .vertical-text-large {
        writing-mode: horizontal-tb;
        font-size: 1.5rem;
        letter-spacing: 5px;
    }
}

/* Footer Decoration */
.footer-decoration {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background-color: #333;
    transform: rotate(45deg);
    border: 1px solid var(--primary-gold);
    opacity: 0.5;
}

.footer-decoration::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 1px solid var(--primary-gold);
}

/* Subpage Banner */
.subpage-banner {
    position: relative;
    margin-top: 76px;
    height: 300px;
    background-image: url('subpage_banner.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    border-bottom: 1px solid var(--primary-gold);
}

.subpage-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.banner-content {
    position: relative;
    z-index: 1;
}

.banner-title {
    font-size: 3rem;
    color: var(--primary-gold);
    font-family: var(--font-serif);
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.banner-subtitle {
    font-size: 1.2rem;
    color: #eee;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 300;
}

/* Product List Section */
.product-list-section {
    background-color: #161616;
    min-height: 60vh;
}

.search-filter-bar {
    margin-bottom: 1rem;
}

.search-filter-bar .form-control,
.search-filter-bar .form-select {
    color: #fff;
}

.search-filter-bar .form-control:focus,
.search-filter-bar .form-select:focus {
    background-color: #1e1e1e;
    border-color: var(--primary-gold);
    color: #fff;
    box-shadow: 0 0 0 0.2rem rgba(197, 160, 101, 0.25);
}

.search-filter-bar .input-group-text {
    border-color: #444;
}

/* Product Card */
.product-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    border-color: var(--primary-gold);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(197, 160, 101, 0.2);
}

.product-image-wrapper {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background-color: #1a1a1a;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image {
    transform: scale(1.1);
}

.product-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
}

.product-category-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: rgba(197, 160, 101, 0.9);
    color: #121212;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-card-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    color: var(--primary-gold);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-family: var(--font-serif);
    line-height: 1.4;
}

.product-description {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.product-level {
    color: #ddd;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.product-date {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.product-link {
    color: var(--primary-gold);
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.product-link:hover {
    color: #fff;
    transform: translateX(5px);
}

.product-link i {
    transition: transform 0.3s ease;
}

.product-link:hover i {
    transform: translateX(3px);
}

/* Pagination */
.pagination .page-link {
    color: var(--primary-gold);
    border-color: #444;
    padding: 0.5rem 0.75rem;
}

.pagination .page-link:hover {
    background-color: var(--primary-gold);
    color: #121212;
    border-color: var(--primary-gold);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-gold);
    border-color: var(--primary-gold);
    color: #121212;
}

.pagination .page-item.disabled .page-link {
    color: #666;
    background-color: #1a1a1a;
    border-color: #444;
    cursor: not-allowed;
}

/* Empty State */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

.no-results i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #444;
}

.no-results h4 {
    color: #888;
    margin-bottom: 0.5rem;
}

/* Responsive adjustments for product list */
@media (max-width: 768px) {
    .product-image-wrapper {
        height: 180px;
    }

    .product-card-body {
        padding: 1rem;
    }

    .product-title {
        font-size: 1.1rem;
    }

    .product-description {
        font-size: 0.85rem;
        -webkit-line-clamp: 2;
    }

    .search-filter-bar {
        margin-bottom: 1.5rem;
    }

    .banner-title {
        font-size: 2rem;
    }
}

/* Detail Page Styles */
.breadcrumb-section {
    background-color: #1a1a1a;
    border-bottom: 1px solid #333;
}

.breadcrumb-item a {
    color: var(--primary-gold);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb-item a:hover {
    color: #fff;
}

.breadcrumb-item.active {
    color: #888;
}

/* Detail Header */
.detail-header-section {
    background-color: #161616;
    border-bottom: 1px solid #222;
}

.detail-image-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.detail-main-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.detail-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.badge-level,
.badge-category {
    background-color: rgba(197, 160, 101, 0.95);
    color: #121212;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-category {
    background-color: rgba(255, 255, 255, 0.95);
    color: #121212;
}

.detail-header-content {
    padding-left: 2rem;
}

.detail-title {
    color: var(--primary-gold);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-family: var(--font-serif);
}

.detail-subtitle {
    color: #888;
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.detail-meta-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ddd;
    font-size: 0.95rem;
}

.meta-item i {
    color: var(--primary-gold);
    width: 20px;
}

.text-gold {
    color: var(--primary-gold);
}

.detail-share {
    display: flex;
    align-items: center;
    gap: 15px;
}

.share-label {
    color: #888;
    font-size: 0.9rem;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #1e1e1e;
    border: 1px solid #444;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-gold);
    text-decoration: none;
    transition: all 0.3s;
}

.share-btn:hover {
    background-color: var(--primary-gold);
    color: #121212;
    transform: translateY(-3px);
}

/* Detail Content */
.detail-content-section {
    background-color: #161616;
}

.detail-main-content {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2.5rem;
}

.content-block {
    margin-bottom: 3rem;
}

.content-block:last-child {
    margin-bottom: 0;
}

.content-title {
    color: var(--primary-gold);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary-gold);
    font-family: var(--font-serif);
    display: flex;
    align-items: center;
}

.content-text {
    color: #ddd;
    line-height: 1.8;
    font-size: 1rem;
}

.content-text p {
    margin-bottom: 1.5rem;
}

.content-text p:last-child {
    margin-bottom: 0;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 1rem;
    margin-bottom: 1rem;
    background-color: #1a1a1a;
    border-left: 3px solid var(--primary-gold);
    color: #ddd;
    line-height: 1.8;
}

.feature-list li strong {
    color: var(--primary-gold);
}

.protection-list {
    color: #ddd;
    line-height: 2;
    padding-left: 1.5rem;
}

.protection-list li {
    margin-bottom: 1rem;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    aspect-ratio: 1;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.1);
}

.gallery-overlay i {
    color: var(--primary-gold);
    font-size: 2rem;
}

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

.sidebar-block {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.sidebar-title {
    color: var(--primary-gold);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    font-family: var(--font-serif);
}

/* Related Projects */
.related-projects {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.related-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background-color: #1a1a1a;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.related-item:hover {
    border-color: var(--primary-gold);
    transform: translateX(5px);
}

.related-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.related-content h5 {
    color: var(--primary-gold);
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.related-content p {
    color: #888;
    font-size: 0.85rem;
    margin: 0;
}

/* Info Card */
.info-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-row {
    display: flex;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    color: #888;
    font-size: 0.9rem;
    min-width: 100px;
    flex-shrink: 0;
}

.info-value {
    color: #ddd;
    font-size: 0.9rem;
    flex-grow: 1;
}

/* Contact Card */
.contact-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-card p {
    color: #ddd;
    font-size: 0.9rem;
    margin: 0;
    display: flex;
    align-items: center;
    line-height: 1.6;
}

.contact-card i {
    margin-right: 0.75rem;
    width: 20px;
}

/* Responsive for detail page */
@media (max-width: 992px) {
    .detail-header-content {
        padding-left: 0;
        margin-top: 2rem;
    }

    .detail-sidebar {
        position: static;
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    .detail-title {
        font-size: 2rem;
    }

    .detail-main-image {
        height: 300px;
    }

    .detail-main-content {
        padding: 1.5rem;
    }

    .content-title {
        font-size: 1.25rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .detail-meta-info {
        gap: 0.75rem;
    }

    .meta-item {
        font-size: 0.85rem;
    }
}

/* Article List Styles */
.article-list-section {
    background-color: #161616;
    min-height: 60vh;
}

.article-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    border-color: var(--primary-gold);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(197, 160, 101, 0.2);
}

.article-image-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: #1a1a1a;
}

.article-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-card:hover .article-image {
    transform: scale(1.1);
}

.article-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
}

.article-category-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: rgba(197, 160, 101, 0.9);
    color: #121212;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-date-badge {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-card-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.article-title {
    color: var(--primary-gold);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-family: var(--font-serif);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-excerpt {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
}

.article-author,
.article-views {
    color: #ddd;
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-link {
    color: var(--primary-gold);
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.article-link:hover {
    color: #fff;
    transform: translateX(5px);
}

.article-link i {
    transition: transform 0.3s ease;
}

.article-link:hover i {
    transform: translateX(3px);
}

/* Article Detail Styles */
.article-detail-header {
    background-color: #161616;
    border-bottom: 1px solid #222;
}

.article-header-content {
    max-width: 900px;
    margin: 0 auto;
}

.article-category-tag {
    display: inline-block;
    background-color: var(--primary-gold);
    color: #121212;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.article-detail-title {
    color: var(--primary-gold);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-family: var(--font-serif);
    line-height: 1.3;
}

.article-header-meta {
    margin-bottom: 1rem;
}

.meta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.meta-group .meta-item {
    color: #ddd;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-share-bar {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* Article Main Content */
.article-main-content {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2.5rem;
}

.article-featured-image {
    border-radius: 8px;
    overflow: hidden;
}

.article-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.article-body {
    color: #ddd;
    line-height: 1.9;
    font-size: 1.05rem;
}

.article-intro {
    background-color: #1a1a1a;
    padding: 1.5rem;
    border-left: 4px solid var(--primary-gold);
    border-radius: 4px;
    margin-bottom: 2rem;
}

.article-intro .lead {
    color: #ddd;
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.8;
}

.article-body h2 {
    color: var(--primary-gold);
    font-size: 1.75rem;
    font-weight: 600;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    font-family: var(--font-serif);
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-gold);
}

.article-body h2:first-of-type {
    margin-top: 0;
}

.article-body h3 {
    color: var(--primary-gold);
    font-size: 1.4rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-family: var(--font-serif);
}

.article-body p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.article-body ul,
.article-body ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.article-body ul li,
.article-body ol li {
    margin-bottom: 0.75rem;
    line-height: 1.8;
}

.article-body ul li strong {
    color: var(--primary-gold);
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.tag-label {
    color: #888;
    font-size: 0.9rem;
}

.article-tag {
    background-color: #1a1a1a;
    color: var(--primary-gold);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    text-decoration: none;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.article-tag:hover {
    background-color: var(--primary-gold);
    color: #121212;
    border-color: var(--primary-gold);
}

/* Related Articles */
.related-articles-section {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
}

.section-title-small {
    color: var(--primary-gold);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-family: var(--font-serif);
    display: flex;
    align-items: center;
}

.related-articles-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.related-article-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background-color: #1a1a1a;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.related-article-item:hover {
    border-color: var(--primary-gold);
    transform: translateX(5px);
}

.related-article-image {
    width: 100px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
}

.related-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-article-content h5 {
    color: var(--primary-gold);
    font-size: 1rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.related-article-content p {
    color: #888;
    font-size: 0.85rem;
    margin: 0;
}

/* Article Sidebar */
.article-sidebar {
    position: sticky;
    top: 100px;
}

.author-card {
    text-align: center;
    padding: 1.5rem;
    background-color: #1a1a1a;
    border-radius: 8px;
}

.author-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background-color: var(--primary-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #121212;
}

.author-name {
    color: var(--primary-gold);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.author-title {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.author-bio {
    color: #ddd;
    font-size: 0.9rem;
    line-height: 1.6;
    text-align: left;
}

/* Popular Articles */
.popular-articles {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.popular-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background-color: #1a1a1a;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.popular-item:hover {
    border-color: var(--primary-gold);
    transform: translateX(5px);
}

.popular-number {
    width: 30px;
    height: 30px;
    background-color: var(--primary-gold);
    color: #121212;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.popular-content h6 {
    color: var(--primary-gold);
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.popular-content p {
    color: #888;
    font-size: 0.8rem;
    margin: 0;
}

/* Article Categories */
.article-categories {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.category-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background-color: #1a1a1a;
    border-radius: 6px;
    text-decoration: none;
    color: #ddd;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.category-item:hover {
    border-color: var(--primary-gold);
    color: var(--primary-gold);
    transform: translateX(5px);
}

.category-item i {
    margin-right: 0.75rem;
    width: 20px;
}

.category-count {
    color: #888;
    font-size: 0.85rem;
}

/* Responsive for article pages */
@media (max-width: 992px) {
    .article-sidebar {
        position: static;
        margin-top: 2rem;
    }

    .article-detail-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .article-card-body {
        padding: 1rem;
    }

    .article-title {
        font-size: 1rem;
    }

    .article-excerpt {
        font-size: 0.85rem;
        -webkit-line-clamp: 2;
    }

    .article-detail-title {
        font-size: 1.75rem;
    }

    .article-main-content {
        padding: 1.5rem;
    }

    .article-body {
        font-size: 1rem;
    }

    .article-body h2 {
        font-size: 1.5rem;
    }

    .article-body h3 {
        font-size: 1.25rem;
    }

    .meta-group {
        flex-direction: column;
        gap: 0.75rem;
    }

    .meta-group .meta-item {
        font-size: 0.85rem;
    }
}


.k_pagelist {
    text-align: center;
    margin: 20px 0 0 0;
    padding: 8px 10px;
    font-size: 14px;
    background: rgba(34, 34, 34, 0.96);
    border-radius: 24px;
    box-shadow: 0 2px 12px 0 rgba(30, 32, 44, 0.08);
    display: inline-block;
    font-weight: normal;
    color: #FFF;
    letter-spacing: 1.5px;
}

.k_pagelist strong {
    background: linear-gradient(90deg, var(--primary-gold), #ab8642);
    border-radius: 16px;
    padding: 4px 16px;
    margin: 0 2px;
    font-weight: bold;
    color: #fff;
    box-shadow: 0 0 0 1.5px #fff2 inset;
    font-size: 15px;
}

.k_pagelist a {
    display: inline-block;
    min-width: 32px;
    margin: 0 2px;
    padding: 4px 12px;
    font-size: 14px;
    border-radius: 16px;
    color: var(--primary-gold);
    background: transparent;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    border: none;
    box-shadow: none;
    vertical-align: middle;
}

.k_pagelist a:hover {
    text-decoration: none;
    background: var(--primary-gold);
    color: #222;
    box-shadow: 0 2px 8px 0 rgba(197, 160, 101, 0.18);
}

.k_pagelist span {
    color: #999;
    margin: 0 3px;
    vertical-align: middle;
    font-size: 13px;
}

.k_pagelist input {
    border: 1.5px solid var(--primary-gold);
    border-radius: 8px;
    padding: 3px 7px;
    margin-left: 8px;
    width: 42px;
    background-color: #23232a;
    color: #fff;
    outline: none;
    font-size: 13px;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 4px 0 rgba(197, 160, 101, 0.06);
}

.k_pagelist input:focus {
    border-color: #ffe5b5;
    box-shadow: 0 0 0 2px rgba(197,160,101,.16);
}

@media (max-width: 600px) {
    .k_pagelist {
        font-size: 12px;
        padding: 6px 3px;
    }
    .k_pagelist strong,
    .k_pagelist a {
        padding: 3px 7px;
        font-size: 13px;
    }
    .k_pagelist input {
        width: 32px;
        font-size: 12px;
        padding: 3px 4px;
    }
}


.content {
    color: #fff;
}

.content h1,
.content h2,
.content h3,
.content h4,
.content h5,
.content h6 {
    color: var(--primary-gold);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-family: var(--font-serif);
    line-height: 1.3;
}