/* ============================================================
   Single Post — Premium content design
   Matches Aura navy + orange theme, indexing-friendly structure
   ============================================================ */

.post-main {
    background: #fff;
    padding: 40px 0 80px;
}

.post-wrap {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 24px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #F5A623;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 28px;
}
.back-link:hover { gap: 12px; }

/* Header */
.post-header { margin-bottom: 28px; }

.post-cat {
    display: inline-block;
    background: #0B1C2E;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 6px;
    margin-right: 8px;
    margin-bottom: 14px;
}

.post-featured {
    display: inline-block;
    background: rgba(245,166,35,0.15);
    color: #B45309;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 6px;
    margin-bottom: 14px;
}

.post-title {
    font-size: 36px;
    font-weight: 800;
    color: #0B1C2E;
    line-height: 1.25;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.post-meta-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 24px;
    border-bottom: 1px solid #E2E8F0;
}

.meta-author {
    display: flex;
    align-items: center;
    gap: 12px;
}
.author-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #F5A623, #D4A017);
    color: #0B1C2E;
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.meta-author strong {
    display: block;
    font-size: 14px;
    color: #0B1C2E;
}
.meta-author span {
    font-size: 12px;
    color: #94A3B8;
}

.meta-right {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    font-size: 13px;
    color: #64748B;
}
.meta-right i {
    color: #F5A623;
    margin-right: 5px;
}

/* Cover image */
.post-cover {
    margin: 0 0 36px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(11,28,46,0.1);
}
.post-cover img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 1200 / 630;
    object-fit: cover;
}
.post-cover figcaption {
    font-size: 13px;
    color: #94A3B8;
    padding: 10px 4px 0;
    text-align: center;
    font-style: italic;
}

/* AI Summary */
.ai-summary-box {
    background: linear-gradient(135deg, rgba(245,166,35,0.1), rgba(11,28,46,0.04));
    border: 1px solid rgba(245,166,35,0.3);
    border-radius: 12px;
    padding: 22px 26px;
    margin-bottom: 36px;
}
.ai-summary-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #B45309;
    margin-bottom: 10px;
}
.ai-summary-label i { margin-right: 6px; color: #F5A623; }
.ai-summary-box p {
    font-size: 17px;
    line-height: 1.7;
    color: #1E293B;
    margin: 0;
    font-weight: 500;
}

/* Article body typography */
.post-body {
    font-size: 17.5px;
    line-height: 1.85;
    color: #334155;
}
.post-body > *:first-child { margin-top: 0; }

.post-body h2 {
    font-size: 26px;
    font-weight: 700;
    color: #0B1C2E;
    margin: 42px 0 16px;
    line-height: 1.3;
    letter-spacing: -0.01em;
}
.post-body h3 {
    font-size: 20px;
    font-weight: 650;
    color: #0B1C2E;
    margin: 32px 0 12px;
    line-height: 1.35;
}
.post-body h4 {
    font-size: 17px;
    font-weight: 650;
    color: #1E293B;
    margin: 24px 0 10px;
}

.post-body p { margin: 0 0 20px; }

.post-body ul,
.post-body ol {
    margin: 0 0 22px;
    padding-left: 26px;
}
.post-body li {
    margin-bottom: 10px;
    padding-left: 4px;
}
.post-body li::marker { color: #F5A623; }

.post-body a {
    color: #D97706;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.post-body a:hover { color: #B45309; }

.post-body img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 28px 0;
    box-shadow: 0 4px 20px rgba(11,28,46,0.08);
}
.post-body figure { margin: 28px 0; }
.post-body figcaption {
    font-size: 13px;
    color: #94A3B8;
    text-align: center;
    margin-top: 8px;
}

.post-body blockquote {
    margin: 28px 0;
    padding: 18px 24px;
    border-left: 4px solid #F5A623;
    background: #F8FAFC;
    border-radius: 0 10px 10px 0;
    font-size: 18px;
    font-style: italic;
    color: #1E293B;
}
.post-body blockquote p:last-child { margin-bottom: 0; }

.post-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 15px;
}
.post-body th,
.post-body td {
    border: 1px solid #E2E8F0;
    padding: 12px 14px;
    text-align: left;
}
.post-body th {
    background: #F1F5F9;
    font-weight: 600;
    color: #0B1C2E;
}

.post-body pre,
.post-body code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 14px;
}
.post-body pre {
    background: #0B1C2E;
    color: #E2E8F0;
    padding: 18px 20px;
    border-radius: 10px;
    overflow-x: auto;
    margin: 24px 0;
}
.post-body :not(pre) > code {
    background: #F1F5F9;
    padding: 2px 6px;
    border-radius: 4px;
    color: #B45309;
}

.post-body hr {
    border: none;
    border-top: 1px solid #E2E8F0;
    margin: 36px 0;
}

/* Key Takeaways */
.takeaways-box {
    margin: 48px 0 0;
    background: #0B1C2E;
    color: #fff;
    border-radius: 14px;
    padding: 28px 32px;
}
.takeaways-box h2 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 18px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}
.takeaways-box h2 i { color: #F5A623; }
.takeaways-box ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.takeaways-box li {
    position: relative;
    padding: 10px 0 10px 32px;
    font-size: 15.5px;
    line-height: 1.55;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.takeaways-box li:last-child { border-bottom: none; padding-bottom: 0; }
.takeaways-box li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 10px;
    width: 22px;
    height: 22px;
    background: #F5A623;
    color: #0B1C2E;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* FAQ */
.faq-box {
    margin: 48px 0 0;
}
.faq-box h2 {
    font-size: 22px;
    font-weight: 700;
    color: #0B1C2E;
    margin: 0 0 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.faq-box h2 i { color: #F5A623; }

.faq-list { display: flex; flex-direction: column; gap: 12px; }

.faq-item {
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.2s;
}
.faq-item[open] {
    border-color: rgba(245,166,35,0.4);
    box-shadow: 0 4px 16px rgba(245,166,35,0.08);
}

.faq-item summary {
    padding: 18px 52px 18px 20px;
    font-weight: 600;
    font-size: 16px;
    color: #0B1C2E;
    cursor: pointer;
    list-style: none;
    position: relative;
    line-height: 1.4;
    background: #F8FAFC;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    background: #0B1C2E;
    color: #fff;
    border-radius: 50%;
    font-size: 18px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}
.faq-item[open] summary::after {
    content: "−";
    background: #F5A623;
    color: #0B1C2E;
}
.faq-item[open] summary {
    background: #fff;
    border-bottom: 1px solid #F1F5F9;
}

.faq-answer {
    padding: 18px 20px 22px;
    font-size: 15.5px;
    line-height: 1.75;
    color: #475569;
}

/* Sources */
.sources-box {
    margin: 40px 0 0;
    padding: 24px 28px;
    background: #F8FAFC;
    border-radius: 12px;
    border: 1px solid #E2E8F0;
}
.sources-box h2 {
    font-size: 16px;
    font-weight: 700;
    color: #0B1C2E;
    margin: 0 0 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.sources-box h2 i { color: #94A3B8; }
.sources-box ol {
    margin: 0;
    padding-left: 20px;
}
.sources-box li {
    font-size: 14px;
    color: #64748B;
    margin-bottom: 8px;
    line-height: 1.5;
}
.sources-box a {
    color: #D97706;
    word-break: break-all;
}
.sources-box a:hover { text-decoration: underline; }

/* Author box */
.author-box {
    margin: 48px 0 0;
    display: flex;
    gap: 20px;
    padding: 28px;
    background: linear-gradient(135deg, #F8FAFC, #fff);
    border: 1px solid #E2E8F0;
    border-radius: 14px;
}
.author-avatar-lg {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #F5A623, #D4A017);
    color: #0B1C2E;
    font-weight: 800;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.author-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #94A3B8;
    margin-bottom: 4px;
}
.author-info h3 {
    font-size: 18px;
    font-weight: 700;
    color: #0B1C2E;
    margin: 0 0 4px;
}
.author-role {
    font-size: 13px;
    color: #F5A623;
    font-weight: 600;
    margin-bottom: 10px;
}
.author-info p {
    font-size: 14px;
    color: #64748B;
    line-height: 1.6;
    margin: 0;
}

/* Share bar */
.share-bar {
    margin-top: 40px;
    padding-top: 28px;
    border-top: 1px solid #E2E8F0;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.share-bar > span {
    font-size: 14px;
    font-weight: 600;
    color: #64748B;
    margin-right: 6px;
}
.share-bar a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #F1F5F9;
    color: #0B1C2E;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    transition: 0.2s;
}
.share-bar a:hover {
    background: #0B1C2E;
    color: #F5A623;
}

/* Responsive */
@media (max-width: 640px) {
    .post-title { font-size: 26px; }
    .post-body { font-size: 16px; }
    .post-body h2 { font-size: 22px; }
    .post-meta-bar { flex-direction: column; align-items: flex-start; }
    .author-box { flex-direction: column; align-items: flex-start; }
    .takeaways-box,
    .ai-summary-box { padding: 20px; }
}
