/* ==========================================================================
   Dawn Financial Solutions - Bespoke Editorial Blog Article Styles
   ========================================================================== */

:root {
    --dfa-navy: #082b3b;
    --dfa-navy-deep: #031b2c;
    --dfa-navy-light: #0d4b68;
    --dfa-gold: #d6a334;
    --dfa-gold-light: #ecc06c;
    --dfa-ink: #1e293b;
    --dfa-copy: #334155;
    --dfa-muted: #64748b;
    --dfa-line: #e2e8f0;
    --dfa-soft: #f8fafc;
    --dfa-white: #ffffff;
}

.df-article-page {
    background: #ffffff;
    color: var(--dfa-copy);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", sans-serif;
    overflow: hidden;
}

/* 1. Hero Section */
.df-article-hero {
    position: relative;
    isolation: isolate;
    padding: clamp(70px, 7vw, 100px) 0 60px;
    background:
        radial-gradient(circle at 85% 20%, rgba(214, 163, 52, 0.12), transparent 45%),
        radial-gradient(circle at 15% 80%, rgba(13, 75, 104, 0.25), transparent 50%),
        linear-gradient(135deg, #021422 0%, #06283b 100%);
    color: var(--dfa-white);
    overflow: hidden;
}

.df-article-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.df-article-breadcrumb {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 24px;
}

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

.df-article-breadcrumb a:hover {
    color: var(--dfa-gold-light);
}

.df-article-cat-badge-wrap {
    position: relative;
    z-index: 2;
    margin-bottom: 16px;
}

.df-article-cat-pill {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(214, 163, 52, 0.18);
    color: var(--dfa-gold-light);
    border: 1px solid rgba(214, 163, 52, 0.35);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 999px;
}

.df-article-headline {
    position: relative;
    z-index: 2;
    max-width: 960px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(32px, 4.2vw, 50px);
    font-weight: 400;
    line-height: 1.15;
    color: var(--dfa-white) !important;
    letter-spacing: -0.025em;
    margin: 0 0 28px 0;
}

.df-article-meta-row {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
}

.df-meta-author-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.df-meta-avatar-img {
    border-radius: 50%;
    width: 38px;
    height: 38px;
    border: 2px solid rgba(214, 163, 52, 0.5);
    display: block;
}

.df-meta-author-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.df-meta-author-name {
    font-weight: 700;
    color: var(--dfa-white);
    font-size: 14px;
}

.df-meta-author-tag {
    font-size: 11px;
    color: var(--dfa-gold-light);
}

.df-meta-bullet {
    color: rgba(255, 255, 255, 0.3);
}

.df-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.df-meta-item svg {
    color: var(--dfa-gold-light);
}

/* 2. Featured Image Showcase */
.df-article-image-showcase {
    position: relative;
    z-index: 3;
    margin-top: -36px;
    margin-bottom: 48px;
}

.df-article-image-card {
    max-width: 1060px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(2, 20, 34, 0.16);
    border: 1px solid rgba(2, 20, 34, 0.08);
    background: #f1f5f9;
}

.df-article-hero-img {
    width: 100%;
    height: auto;
    max-height: 540px;
    object-fit: cover;
    display: block;
}

/* 3. Main Reading Section */
.df-article-body-section {
    padding-bottom: 100px;
}

.df-article-layout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 64px;
    align-items: start;
}

/* Main Column Prose - FIXED READABLE WIDTH */
.df-article-prose-wrap {
    max-width: 760px;
    width: 100%;
    min-width: 0;
}

.df-article-content {
    font-size: 18px;
    line-height: 1.85;
    color: #334155;
    letter-spacing: -0.01em;
}

.df-article-content p {
    margin: 0 0 26px 0;
}

.df-article-content p:first-of-type {
    font-size: 21px;
    line-height: 1.78;
    color: #0f172a;
    font-weight: 400;
}

.df-article-content h2,
.df-article-content h3,
.df-article-content h4 {
    font-family: Georgia, "Times New Roman", serif;
    color: #082b3b !important;
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin-top: 48px;
    margin-bottom: 18px;
}

.df-article-content h2 { font-size: 30px; }
.df-article-content h3 { font-size: 25px; }
.df-article-content h4 { font-size: 21px; }

.df-article-content a:not(.wp-block-button__link) {
    color: #0d4b68;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(13, 75, 104, 0.35);
    text-underline-offset: 3px;
    transition: all 0.2s ease;
}

.df-article-content a:not(.wp-block-button__link):hover {
    color: #d6a334;
    text-decoration-color: #d6a334;
}

/* Blockquotes */
.df-article-content blockquote,
.df-article-content .wp-block-quote {
    position: relative;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 4px solid var(--dfa-gold) !important;
    border-radius: 0 14px 14px 0;
    padding: 28px 34px;
    margin: 38px 0;
    box-shadow: 0 4px 16px rgba(8, 43, 59, 0.03);
}

.df-article-content blockquote p,
.df-article-content .wp-block-quote p {
    font-family: Georgia, "Times New Roman", serif;
    font-style: italic;
    font-size: 20px;
    line-height: 1.65;
    color: #082b3b;
    margin-bottom: 12px;
}

.df-article-content blockquote cite,
.df-article-content .wp-block-quote cite {
    display: block;
    font-style: normal;
    font-size: 13px;
    font-weight: 800;
    color: #8a6a25;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Lists */
.df-article-content ol,
.df-article-content ul {
    padding-left: 24px;
    margin: 0 0 28px 0;
}

.df-article-content li {
    margin-bottom: 12px;
    line-height: 1.75;
}

.df-article-content ol li::marker {
    color: var(--dfa-gold);
    font-weight: 700;
}

.df-article-content ul li::marker {
    color: var(--dfa-gold);
}

/* 4. Tags Block */
.df-article-tags-block {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--dfa-line);
}

.df-tags-heading {
    font-size: 13px;
    font-weight: 700;
    color: var(--dfa-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.df-tags-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.df-tag-link {
    display: inline-block;
    padding: 6px 14px;
    background: #f1f5f9;
    color: #475569;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.df-tag-link:hover {
    background: var(--dfa-navy);
    color: #ffffff;
}

/* 5. Author Card */
.df-article-author-card {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 28px 32px;
    background: #f8fafc;
    border: 1px solid var(--dfa-line);
    border-radius: 14px;
    margin: 40px 0;
}

.df-card-avatar-img {
    border-radius: 50%;
    width: 64px;
    height: 64px;
    flex-shrink: 0;
}

.df-card-author-info h4 {
    margin: 4px 0 8px 0;
    font-size: 17px;
    font-weight: 700;
    color: var(--dfa-navy);
}

.df-card-author-info p {
    font-size: 14px;
    line-height: 1.6;
    color: #475569;
    margin: 0 0 10px 0;
}

.df-card-author-kicker {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #8a6a25;
}

.df-author-link {
    font-size: 13px;
    font-weight: 700;
    color: var(--dfa-navy-light);
    text-decoration: none;
    transition: color 0.2s;
}

.df-author-link:hover {
    color: var(--dfa-gold);
}

/* 6. Consultation CTA Banner */
.df-article-cta-banner {
    background:
        radial-gradient(circle at 90% 10%, rgba(214, 163, 52, 0.15), transparent 40%),
        linear-gradient(135deg, #021422 0%, #06283b 100%);
    border-radius: 16px;
    padding: 38px 36px;
    color: #ffffff;
    margin: 44px 0;
    box-shadow: 0 16px 36px rgba(2, 20, 34, 0.12);
}

.df-cta-banner-kicker {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--dfa-gold-light);
    margin-bottom: 8px;
}

.df-cta-banner-copy h3 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 24px;
    font-weight: 400;
    line-height: 1.25;
    color: #ffffff !important;
    margin: 0 0 10px 0;
}

.df-cta-banner-copy p {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.78);
    margin: 0 0 24px 0;
    max-width: 620px;
}

.df-cta-banner-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* 7. Next / Prev Article Cards */
.df-article-nav-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 44px 0;
    padding-top: 32px;
    border-top: 1px solid var(--dfa-line);
}

.df-article-nav-card {
    display: flex;
    flex-direction: column;
    padding: 22px;
    background: #f8fafc;
    border: 1px solid var(--dfa-line);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.df-article-nav-card:hover {
    border-color: var(--dfa-gold);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(8, 43, 59, 0.05);
}

.df-nav-label {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #8a6a25;
    margin-bottom: 6px;
}

.df-nav-title {
    font-family: Georgia, serif;
    font-size: 16px;
    color: var(--dfa-navy);
    line-height: 1.35;
}

.df-nav-next { text-align: right; }

/* 8. Sticky Sidebar */
.df-article-sidebar {
    position: sticky;
    top: 96px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.df-sidebar-box {
    background: #ffffff;
    border: 1px solid var(--dfa-line);
    border-radius: 14px;
    padding: 26px;
    box-shadow: 0 4px 16px rgba(8, 43, 59, 0.03);
}

.df-sidebar-cta-card {
    background:
        radial-gradient(circle at 85% 15%, rgba(214, 163, 52, 0.18), transparent 45%),
        linear-gradient(135deg, #021422 0%, #06283b 100%) !important;
    border: 1px solid rgba(214, 163, 52, 0.3) !important;
    color: #ffffff;
    box-shadow: 0 12px 30px rgba(2, 20, 34, 0.15) !important;
}

.df-sidebar-cta-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--dfa-gold-light);
    margin-bottom: 8px;
}

.df-sidebar-cta-card h3 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.25;
    color: #ffffff;
    margin: 0 0 10px 0;
}

.df-sidebar-cta-card p {
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.75);
    margin: 0 0 20px 0;
}

.df-sidebar-btn-gold {
    display: block;
    text-align: center;
    padding: 12px 18px;
    background: var(--dfa-gold);
    color: #031b2c !important;
    font-size: 13px;
    font-weight: 800;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.df-sidebar-btn-gold:hover {
    background: var(--dfa-gold-light);
    transform: translateY(-2px);
}

.df-sidebar-perk-row {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 14px;
    text-align: center;
}

.df-sidebar-perk-row span {
    color: var(--dfa-gold-light);
    font-weight: bold;
}

.df-sidebar-title {
    font-family: Georgia, serif;
    font-size: 18px;
    font-weight: 400;
    color: var(--dfa-navy);
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

/* Sidebar Articles List */
.df-sidebar-articles-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.df-sidebar-article-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f8fafc;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.df-sidebar-article-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.df-sidebar-article-item:hover .df-sidebar-item-title {
    color: var(--dfa-gold);
}

.df-sidebar-item-cat {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #8a6a25;
}

.df-sidebar-item-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--dfa-navy);
    line-height: 1.35;
    transition: color 0.2s;
}

.df-sidebar-item-date {
    font-size: 12px;
    color: var(--dfa-muted);
}

/* Sidebar Categories */
.df-sidebar-categories {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.df-sidebar-category-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 14px;
    color: #334155;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.df-sidebar-category-link:hover {
    background: #f1f5f9;
    color: var(--dfa-navy);
}

.df-cat-pill-count {
    padding: 2px 8px;
    background: #e2e8f0;
    color: #475569;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

/* 9. Responsive Adjustments */
@media (max-width: 1024px) {
    .df-article-layout-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .df-article-sidebar {
        position: static;
        margin-top: 32px;
        border-top: 1px solid var(--dfa-line);
        padding-top: 40px;
    }
}

@media (max-width: 640px) {
    .df-article-headline {
        font-size: 29px;
        line-height: 1.2;
    }

    .df-article-content {
        font-size: 16px;
        line-height: 1.75;
    }

    .df-article-content p:first-of-type {
        font-size: 18px;
    }

    .df-article-cta-banner {
        padding: 28px 22px;
    }

    .df-cta-banner-buttons {
        flex-direction: column;
    }

    .df-article-nav-row {
        grid-template-columns: 1fr;
    }
}


/* 10. Comments Styling */
.df-article-prose-wrap .keydesign-comments {
    margin-top: 56px;
    padding-top: 40px;
    border-top: 1px solid var(--dfa-line);
}

.df-article-prose-wrap .comment-reply-title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 24px;
    font-weight: 400;
    color: var(--dfa-navy);
    margin-bottom: 12px;
}

.df-article-prose-wrap .comment-notes {
    font-size: 13px;
    color: var(--dfa-muted);
    margin-bottom: 24px;
}

.df-article-prose-wrap .comment-form p {
    margin-bottom: 20px;
}

.df-article-prose-wrap .comment-form label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--dfa-navy);
    margin-bottom: 6px;
}

.df-article-prose-wrap .comment-form input[type="text"],
.df-article-prose-wrap .comment-form input[type="email"],
.df-article-prose-wrap .comment-form input[type="url"],
.df-article-prose-wrap .comment-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--dfa-line);
    border-radius: 8px;
    font-size: 14px;
    background: #ffffff;
    outline: none;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.df-article-prose-wrap .comment-form input:focus,
.df-article-prose-wrap .comment-form textarea:focus {
    border-color: var(--dfa-navy);
}

.df-article-prose-wrap .comment-form input[type="submit"] {
    padding: 12px 28px;
    background: var(--dfa-navy);
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.df-article-prose-wrap .comment-form input[type="submit"]:hover {
    background: var(--dfa-gold);
}
