/**
 * Article Detail Page CSS
 * HungLoc Property Template
 */

/* ========================================
   GLOBAL RESET & BASE
   Note: Base styles are inherited from 02-reset.css
   ======================================== */

/* ========================================
   ARTICLE HERO SECTION
   ======================================== */
.article-hero {
    height: 65vh;
    min-height: 480px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
    margin-top: -80px;
}

.article-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(13, 27, 42, 0.85) 0%, rgba(13, 27, 42, 0.35) 100%);
}

.article-hero-content {
    position: relative;
    z-index: 1;
    max-width: var(--container-max, 1200px);
    margin: 0 auto;
    padding: 0 var(--container-padding, 20px) 48px;
}

.article-hero-info {
    margin-top: 24px;
}

.article-hero .breadcrumb {
    margin-bottom: 16px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    font-size: 13px;
}

.article-hero .breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s ease;
}

.article-hero .breadcrumb a:hover {
    color: var(--gold, #c6a87c);
}

.article-hero .breadcrumb i {
    color: rgba(255, 255, 255, 0.4);
    font-size: 10px;
    margin: 0 8px;
}

.article-hero .breadcrumb span {
    color: var(--gold, #c6a87c);
    font-weight: 500;
}

.category-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--gold, #c6a87c);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
}

.article-hero .article-title {
    font-family: var(--font-primary);
    font-size: 48px;
    font-weight: 700;
    color: #fff;
    line-height: 1.15;
    margin: 16px 0;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    font-size: 14px;
}

.article-meta span {
    color: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-meta i {
    color: var(--gold, #c6a87c);
    font-size: 14px;
}

.article-meta .separator {
    color: rgba(255, 255, 255, 0.3);
}

/* ========================================
   MAIN CONTENT AREA
   ======================================== */
.article-main {
    background: var(--light-bg, #f8f9fa);
    padding: 36px 0 80px;
}

.article-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 28px;
    max-width: var(--container-max, 1200px);
    margin: 0 auto;
    padding: 0 20px;
    align-items: start;
}

.article-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
    align-self: flex-start;
}

/* Article Summary Box */
.article-summary {
    background: #fff;
    border-left: 4px solid var(--gold, #c6a87c);
    padding: 22px 26px;
    border-radius: 0 6px 6px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.article-summary p {
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-primary, #333);
    font-style: italic;
    margin: 0;
}

/* Table of Contents */
.article-toc {
    background: #fff;
    padding: 20px 24px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.article-toc h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-color, #0d1b2a);
    margin-bottom: 14px;
}

.article-toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.article-toc ul li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.article-toc ul li:last-child {
    border-bottom: none;
}

.article-toc ul li a {
    color: var(--text-secondary, #666);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
    display: block;
}

.article-toc ul li a:hover {
    color: var(--gold, #c6a87c);
}

/* ========================================
   ARTICLE BODY CONTENT
   ======================================== */
.article-body {
    background: #fff;
    padding: 32px 36px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    font-size: 16px;
    line-height: 1.75;
    color: var(--text-primary, #333);
    font-family: var(--font-primary, 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
}

.article-body h2 {
    font-family: var(--font-primary);
    font-size: 26px;
    font-weight: 700;
    color: var(--primary-color, #0d1b2a);
    margin-top: 36px;
    margin-bottom: 18px;
    padding-top: 22px;
    border-top: 1px solid #eee;
}

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

.article-body h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color, #0d1b2a);
    /* margin-top: 20px; */
    margin-bottom: 14px;
}

.article-body p {
    margin-bottom: 18px;
    color: #333;
}

.article-body ul,
.article-body ol {
    margin-bottom: 18px;
    padding-left: 22px;
}

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

/* Article Image */
.article-image {
    margin: 28px 0;
}

.article-image img {
    width: 100%;
    border-radius: 6px;
    display: block;
}

.article-image figcaption {
    text-align: center;
    font-size: 13px;
    color: #888;
    font-style: italic;
    margin-top: 8px;
}

/* Highlight List */
.article-highlight {
    background: linear-gradient(135deg, rgba(198, 168, 124, 0.06), rgba(198, 168, 124, 0.12));
    padding: 22px 26px;
    border-radius: 6px;
    margin: 26px 0;
    list-style: none;
    padding-left: 0;
    border-left: 3px solid var(--gold, #c6a87c);
}

.article-highlight li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(198, 168, 124, 0.15);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.article-highlight li:last-child {
    border-bottom: none;
}

.article-highlight strong {
    color: var(--gold, #c6a87c);
    min-width: 130px;
    font-weight: 600;
}

/* Blockquote */
.article-quote {
    background: var(--primary-color, #0d1b2a);
    color: #fff;
    padding: 28px 32px;
    border-radius: 6px;
    margin: 30px 0;
    position: relative;
}

.article-quote::before {
    content: '\201C';
    font-family: var(--font-primary);
    font-size: 72px;
    color: #F59E0B;
    opacity: 0.25;
    position: absolute;
    top: 8px;
    left: 24px;
    line-height: 1;
}

.article-quote p {
    font-size: 17px;
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
    padding-left: 20px;
    color: #fff;
}

.article-quote cite {
    color: var(--gold, #c6a87c);
    font-size: 13px;
    font-style: normal;
    display: block;
    padding-left: 20px;
}

/* Table */
.article-table {
    width: 100%;
    border-collapse: collapse;
    margin: 26px 0;
    font-size: 14px;
}

.article-table th,
.article-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid #E5E7EB;
    border-right: 1px solid #E5E7EB;
}

.article-table th {
    background: var(--primary-color, #0d1b2a);
    color: #fff;
    font-weight: 600;
}

.article-table th:first-child {
    border-radius: 4px 0 0 0;
}

.article-table th:last-child {
    border-radius: 0 4px 0 0;
    border-right: none;
}

.article-table tr:hover td {
    background: #fafafa;
}

.article-table td:last-child {
    border-right: none;
}

/* Recommendations */
.article-recommendations {
    display: grid;
    gap: 16px;
    margin: 28px 0;
}

.recommendation-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 18px;
    background: #f8f9fa;
    border-radius: 6px;
}

.rec-icon {
    width: 36px;
    height: 36px;
    background: var(--gold, #c6a87c);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 14px;
}

.rec-content h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-color, #0d1b2a);
    margin-bottom: 6px;
}

.rec-content p {
    font-size: 14px;
    color: var(--text-secondary, #666);
    margin: 0;
    line-height: 1.5;
}

/* CTA Box */
.article-cta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-color, #0d1b2a), #1b263b);
    padding: 24px 28px;
    border-radius: 6px;
    margin-top: 20px;
    gap: 20px}

.cta-content h3 {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
    font-size: 14px;
}

.article-cta .btn {
    flex-shrink: 0;
}

/* ========================================
   ARTICLE FOOTER (Tags & Share)
   ======================================== */
.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    background: #fff;
    padding: 20px 24px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.tag-label {
    font-weight: 600;
    color: var(--text-secondary, #666);
    font-size: 13px;
}

.tag {
    background: #f0f0f0;
    color: var(--text-secondary, #666);
    padding: 5px 12px;
    font-size: 12px;
    border-radius: 15px;
    text-decoration: none;
    transition: all 0.2s;
}

.tag:hover {
    background: var(--gold, #c6a87c);
    color: #fff;
}

.article-share {
    display: flex;
    align-items: center;
    gap: 8px;
}

.share-label {
    font-weight: 600;
    color: var(--text-secondary, #666);
    font-size: 13px;
}

.share-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: #f0f0f0;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-size: 14px;
}

.share-btn:hover {
    background: var(--gold, #c6a87c);
    color: #fff;
}

/* ========================================
   AUTHOR BOX
   ======================================== */
.author-box {
    display: flex;
    gap: 20px;
    background: #fff;
    padding: 24px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.author-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

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

.author-info {
    flex: 1;
    min-width: 0;
}

.author-info h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color, #0d1b2a);
    margin-bottom: 3px;
}

.author-title {
    color: var(--gold, #c6a87c);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
}

.author-bio {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-secondary, #666);
    margin: 0;
}

/* ========================================
   RELATED ARTICLES
   ======================================== */
.related-articles {
    background: #fff;
    padding: 28px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.related-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color, #0d1b2a);
    margin-bottom: 22px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--gold, #c6a87c);
    display: inline-block;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.related-card {
    background: #fafafa;
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.related-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.related-image {
    position: relative;
    height: 140px;
    overflow: hidden;
}

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

.related-card:hover .related-image img {
    transform: scale(1.04);
}

.related-content {
    padding: 14px;
}

.related-cat {
    font-size: 10px;
    color: var(--gold, #c6a87c);
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.3px;
}

.related-content h4 {
    font-size: 14px;
    line-height: 1.4;
    margin: 6px 0 10px;
}

.related-content h4 a {
    color: var(--primary-color, #0d1b2a);
    text-decoration: none;
    transition: color 0.2s;
    display: block;
}

.related-content h4 a:hover {
    color: var(--gold, #c6a87c);
}

.related-meta {
    display: flex;
    gap: 12px;
    font-size: 11px;
    color: #999;
}

.related-meta i {
    margin-right: 3px;
}

/* ========================================
   SIDEBAR - Article only
   ======================================== */
.sidebar-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.sidebar-form .form-group {
    margin-bottom: 12px;
}

.sidebar-form input,
.sidebar-form select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    font-size: 14px;
    font-family: var(--font-primary);
    transition: all 0.2s;
    background: #fff;
    box-sizing: border-box;
}

.sidebar-form input:focus,
.sidebar-form select:focus {
    outline: none;
    border-color: var(--gold, #c6a87c);
}

.sidebar-form input::placeholder {
    color: #999;
}

.sidebar-form select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E") no-repeat right 14px center;
    padding-right: 36px;
    cursor: pointer;
}

.sidebar-form button {
    width: 100%;
    padding: 14px 24px;
    margin-top: 8px;
}

/* Category List Widget */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.category-list li a {
    display: flex;
    justify-content: space-between;
    color: var(--text-primary, #333);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.category-list li a:hover {
    color: var(--gold, #c6a87c);
}

.category-list li a span {
    color: #999;
    font-size: 12px;
}

/* ========================================
   RESPONSIVE STYLES
   ======================================== */
@media (max-width: 1024px) {
    .article-layout {
        grid-template-columns: 1fr 300px;
        gap: 24px;
    }

    .article-hero .article-title {
        font-size: 40px;
    }
}

@media (max-width: 992px) {
    .article-layout {
        grid-template-columns: 1fr;
        padding: 0;
        max-width: 100%;
    }

    .article-content-wrapper {
        padding: 0 12px;
        order: -1;
    }

    .article-sidebar {
        position: static;
        padding: 0 12px;
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .article-hero {
        height: 55vh;
        min-height: 400px;
    }

    .article-hero .article-title {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .article-main {
        padding: 24px 0 60px;
    }

    .article-body {
        padding: 24px;
    }

    .article-body h2 {
        font-size: 22px;
    }

    .article-body h3 {
        font-size: 17px;
    }

    .article-cta {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .article-summary {
        padding: 18px 20px;
    }

    .article-summary p {
        font-size: 16px;
    }

    .article-toc {
        display: none;
    }

    .article-hero {
        height: 50vh;
        min-height: 360px;
    }

    .article-hero .article-title {
        font-size: 26px;
    }

    .article-hero .article-meta {
        font-size: 12px;
    }

    .article-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 576px) {
    .article-body {
        padding: 16px;
    }

    .article-summary {
        padding: 16px;
    }

    .article-toc {
        padding: 16px;
    }

    .author-box {
        flex-direction: column;
        text-align: center;
    }

    .author-avatar {
        margin: 0 auto;
    }

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

    .related-card {
        max-width: 320px;
        margin: 0 auto;
    }

    .article-meta {
        gap: 10px;
    }

    .article-meta span {
        font-size: 12px;
    }

    .article-hero .article-title {
        font-size: 22px;
    }

    .rec-icon {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .recommendation-item {
        gap: 12px;
        padding: 14px;
    }
}