/* ════════════════════════════════════════════════
   BLOG ARTICLE SHARED STYLES — XXLCargoTransport
   ================================================ */

/* Body background for article pages */
body {
    background: var(--color-dark, #060E1C);
}

/* Reading Progress Bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary) 0%, #ff9040 100%);
    z-index: 9999;
    transition: width 0.1s ease;
}

/* ── Breadcrumb ── */
.breadcrumb {
    padding: 90px 0 0;
    background: transparent;
}

.breadcrumb-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--color-muted);
    flex-wrap: wrap;
}

.breadcrumb-inner a {
    color: var(--color-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-inner a:hover {
    color: var(--color-primary);
}

.breadcrumb-sep {
    opacity: 0.4;
}

.breadcrumb-current {
    color: rgba(232, 237, 245, 0.7);
}

/* ── Article Hero ── */
.article-hero {
    padding: 24px 0 0;
}

.article-hero-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

.article-category-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.article-cat {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 5px 14px;
    border-radius: 100px;
    background: rgba(230, 92, 0, 0.15);
    color: var(--color-primary);
    border: 1px solid rgba(230, 92, 0, 0.3);
}

.article-date {
    font-size: 0.82rem;
    color: var(--color-muted);
}

.article-read-time {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.82rem;
    color: var(--color-muted);
    margin-left: auto;
}

.article-h1 {
    font-size: clamp(1.9rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--color-white);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.article-lead {
    font-size: 1.15rem;
    color: rgba(232, 237, 245, 0.75);
    line-height: 1.75;
    max-width: 780px;
    margin-bottom: 32px;
    border-left: 3px solid var(--color-primary);
    padding-left: 20px;
}

.article-hero-img {
    width: 100%;
    border-radius: var(--radius-lg);
    aspect-ratio: 16/7;
    object-fit: contain;
    object-position: center center;
    background: var(--color-dark);
    margin-bottom: 48px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

/* ── Article Layout: Content + Sidebar ── */
.article-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 56px;
    align-items: start;
    padding-bottom: 80px;
}

@media (max-width: 1024px) {
    .article-layout {
        grid-template-columns: 1fr;
    }

    .article-sidebar {
        display: none;
    }
}

/* ── Article Body ── */
.article-body {
    color: rgba(232, 237, 245, 0.82);
    font-size: 1.02rem;
    line-height: 1.85;
}

.article-body h2 {
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--color-white);
    margin: 52px 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(230, 92, 0, 0.25);
    scroll-margin-top: 90px;
}

.article-body h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-white);
    margin: 32px 0 12px;
    scroll-margin-top: 90px;
}

.article-body p {
    margin-bottom: 20px;
}

.article-body ul,
.article-body ol {
    padding-left: 24px;
    margin-bottom: 20px;
}

.article-body li {
    margin-bottom: 8px;
    padding-left: 4px;
}

.article-body ul li::marker {
    color: var(--color-primary);
}

.article-body ol li::marker {
    color: var(--color-primary);
    font-weight: 700;
}

.article-body strong {
    color: var(--color-white);
    font-weight: 700;
}

.article-body a {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: opacity 0.2s;
}

.article-body a:hover {
    opacity: 0.8;
}

/* Callout / highlight box */
.callout {
    background: rgba(230, 92, 0, 0.09);
    border-left: 4px solid var(--color-primary);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 20px 24px;
    margin: 32px 0;
}

.callout p {
    margin: 0;
    color: rgba(232, 237, 245, 0.88);
}

.callout-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 8px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Stat blocks */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 36px 0;
}

@media (max-width: 640px) {
    .stat-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.stat-block {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 24px 20px;
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 6px;
    font-family: var(--font-display);
}

.stat-label {
    font-size: 0.82rem;
    color: var(--color-muted);
}

/* Table */
.article-table {
    width: 100%;
    border-collapse: collapse;
    margin: 32px 0;
    font-size: 0.92rem;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.article-table th {
    background: rgba(230, 92, 0, 0.15);
    color: var(--color-white);
    font-weight: 700;
    padding: 12px 16px;
    text-align: left;
    border-bottom: 2px solid rgba(230, 92, 0, 0.3);
}

.article-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--color-border);
    color: rgba(232, 237, 245, 0.8);
}

.article-table tr:hover td {
    background: rgba(255, 255, 255, 0.03);
}

/* FAQ Accordion */
.faq-section {
    margin: 40px 0;
}

.faq-title {
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--color-white);
    margin-bottom: 24px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(230, 92, 0, 0.25);
}

.faq-item {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    margin-bottom: 10px;
    overflow: hidden;
    transition: border-color 0.3s;
}

.faq-item.open {
    border-color: rgba(230, 92, 0, 0.4);
}

.faq-question {
    width: 100%;
    background: var(--color-card);
    border: none;
    color: var(--color-white);
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    padding: 18px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-family: var(--font-body);
    transition: background 0.2s;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.04);
}

.faq-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(230, 92, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-weight: 700;
    font-size: 1.1rem;
    transition: transform 0.3s ease, background 0.3s;
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
    background: var(--color-primary);
    color: white;
}

.faq-answer {
    display: none;
    padding: 0 20px 18px;
    background: var(--color-card);
    color: rgba(232, 237, 245, 0.78);
    font-size: 0.94rem;
    line-height: 1.75;
}

.faq-answer.open {
    display: block;
}

/* ── Sidebar ── */
.article-sidebar {
    position: sticky;
    top: 90px;
}

.sidebar-toc {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
}

.sidebar-toc-title {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-muted);
    margin-bottom: 16px;
}

.sidebar-toc a {
    display: block;
    font-size: 0.88rem;
    color: rgba(232, 237, 245, 0.65);
    text-decoration: none;
    padding: 6px 0;
    border-left: 2px solid transparent;
    padding-left: 12px;
    transition: all 0.2s;
}

.sidebar-toc a:hover,
.sidebar-toc a.toc-active {
    color: var(--color-primary);
    border-left-color: var(--color-primary);
}

.sidebar-cta {
    background: linear-gradient(135deg, rgba(230, 92, 0, 0.15), rgba(10, 22, 40, 0));
    border: 1px solid rgba(230, 92, 0, 0.25);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    text-align: center;
}

.sidebar-cta h4 {
    color: var(--color-white);
    font-size: 1.05rem;
    margin-bottom: 10px;
}

.sidebar-cta p {
    color: var(--color-muted);
    font-size: 0.85rem;
    margin-bottom: 18px;
    line-height: 1.6;
}

/* ── Author Box ── */
.author-box {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin: 48px 0 32px;
}

.author-box-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(230, 92, 0, 0.4);
    flex-shrink: 0;
}

.author-box-info h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 4px;
}

.author-box-info .role {
    font-size: 0.82rem;
    color: var(--color-primary);
    margin-bottom: 10px;
    font-weight: 600;
}

.author-box-info p {
    font-size: 0.88rem;
    color: var(--color-muted);
    line-height: 1.6;
    margin: 0;
}

/* ── Social Share ── */
.share-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 32px 0 48px;
    padding: 20px 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.share-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-right: 4px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid var(--color-border);
    transition: all 0.2s;
    color: var(--color-muted);
    background: transparent;
}

.share-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: rgba(230, 92, 0, 0.08);
}

/* ── Related Articles ── */
.related-section {
    padding: 64px 0;
    border-top: 1px solid var(--color-border);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 32px;
}

@media (max-width: 768px) {
    .related-grid {
        grid-template-columns: 1fr;
    }
}

.related-card {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

.related-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.related-card-img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.related-card:hover .related-card-img {
    transform: scale(1.05);
}

.related-card-img-wrap {
    overflow: hidden;
}

.related-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.related-cat {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.related-card-body h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-white);
    line-height: 1.4;
    margin: 0;
    transition: color 0.2s;
}

.related-card:hover h3 {
    color: var(--color-primary);
}

/* ── Article bottom CTA ── */
.article-cta-box {
    background: linear-gradient(135deg, rgba(230, 92, 0, 0.13), rgba(10, 22, 40, 0));
    border: 1px solid rgba(230, 92, 0, 0.25);
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    text-align: center;
    margin: 48px 0;
}

.article-cta-box h3 {
    color: var(--color-white);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.article-cta-box p {
    color: var(--color-muted);
    margin-bottom: 24px;
    font-size: 0.96rem;
}