/* =========================================================
   NIVESHAKFIRST - INDIVIDUAL BLOG ARTICLE PAGES
   ========================================================= */

.article-page {
    background: transparent;
    padding: 0 0 80px;
}

/* Main article container */
.article-page>.container {
    max-width: 1240px;
}

/* Back to Blog */
.back-to-blog {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin-top: 45px;
    margin-bottom: 35px;

    padding: 11px 17px;

    border: 1px solid rgba(24, 122, 91, 0.18);
    border-radius: 11px;

    background: rgba(255, 255, 255, 0.95);

    color: #187a5b;
    font-size: 14px;
    font-weight: 700;

    text-decoration: none;

    box-shadow: 0 7px 20px rgba(20, 42, 64, 0.07);

    transition:
        transform 0.25s ease,
        background 0.25s ease,
        color 0.25s ease,
        box-shadow 0.25s ease;
}

.back-to-blog:hover {
    background: #ffffff;
    color: #142a40;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(20, 42, 64, 0.11);
}

/* Article Hero */
.article-hero {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
    padding: 25px 20px 55px;
}

.article-hero>span {
    display: block;
    margin-bottom: 18px;

    color: #187a5b;

    font-family: "Inter", sans-serif;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.8px;
}

.article-hero h1 {
    max-width: 1000px;
    margin: 0 auto;

    color: #142a40;

    font-family: "Playfair Display", serif;
    font-size: clamp(44px, 5vw, 68px);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -1.2px;
}

.article-hero p {
    max-width: 820px;
    margin: 22px auto 0;

    color: #71808b;

    font-family: "Inter", sans-serif;
    font-size: 17px;
    line-height: 1.8;
}

/* Article Image */
.article-image {
    display: block;

    width: min(100%, 900px);
    max-height: 520px;

    margin: 0 auto 55px;

    object-fit: contain;

    border-radius: 28px;

    box-shadow: 0 18px 50px rgba(20, 42, 64, 0.08);
}

/* Article Content */
.article-content {
    width: min(100%, 820px);
    margin: 0 auto;

    color: #536777;

    font-size: 17px;
    line-height: 1.85;
}

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

.article-content h2 {
    margin: 42px 0 16px;

    color: #142a40;

    font-family: "Playfair Display", serif;
    font-size: 32px;
    line-height: 1.2;
}

.article-content ul,
.article-content ol {
    margin: 0 0 28px;
    padding-left: 25px;
}

.article-content li {
    margin-bottom: 10px;
}

.article-content strong {
    color: #142a40;
}

/* Key takeaway */
.article-callout {
    margin: 35px 0;
    padding: 25px 28px;

    background: #f3f9f6;

    border-left: 3px solid #187a5b;
    border-radius: 0 14px 14px 0;
}

.article-callout strong {
    display: block;
    margin-bottom: 8px;

    color: #142a40;
}

.article-callout p {
    margin: 0;
}

/* Article CTA */
.article-cta {
    width: min(100%, 820px);

    margin: 55px auto 0;
    padding-top: 30px;

    border-top: 1px solid #dfe9e5;
}

.article-cta h2 {
    margin: 0 0 18px;

    color: #142a40;

    font-family: "Playfair Display", serif;
    font-size: 30px;
    line-height: 1.25;
}

.article-cta .primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 13px 22px;

    border: 0;
    border-radius: 10px;

    background: #187a5b;
    color: #ffffff;

    font-size: 14px;
    font-weight: 700;

    text-decoration: none;

    transition:
        transform 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease;
}

.article-cta .primary-button:hover {
    background: #126548;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(24, 122, 91, 0.18);
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 700px) {

    .article-page {
        padding-bottom: 60px;
    }

    .back-to-blog {
        margin-top: 30px;
        margin-bottom: 25px;
    }

    .article-hero {
        padding: 15px 10px 40px;
    }

    .article-hero h1 {
        font-size: clamp(36px, 9vw, 50px);
    }

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

    .article-image {
        margin-bottom: 40px;
        border-radius: 20px;
    }

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

    .article-content h2 {
        font-size: 28px;
    }

    .article-cta h2 {
        font-size: 26px;
    }
}

/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 430px) {

    .back-to-blog {
        padding: 10px 14px;
        font-size: 13px;
    }

    .article-hero h1 {
        font-size: 34px;
    }

    .article-hero p {
        font-size: 15px;
    }

    .article-content {
        font-size: 15px;
    }

    .article-callout {
        padding: 20px;
    }

    .article-cta h2 {
        font-size: 24px;
    }
}
/* =========================================================
   Mutual Fund Article - Tax Difference Section
========================================================= */

.article-flow {
    margin: 24px 0 34px;
    padding: 22px 24px;

    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;

    background: #f7faf9;
    border: 1px solid #e2ebe7;
    border-radius: 14px;

    color: #187a5b;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
}

.article-flow span:nth-child(even) {
    color: #9aa7ad;
    font-size: 18px;
}


/* Feature List */

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

.article-feature-list li {
    position: relative;
    padding: 16px 18px 16px 21px;
    margin-bottom: 10px;

    background: #f8fbfa;
    border: 1px solid #e8efec;
    border-radius: 11px;
}

.article-feature-list li strong {
    display: block;
    margin-bottom: 4px;
    color: #142a40;
}

.article-feature-list li span {
    color: #71808b;
}


/* Section Divider */

.article-section-divider {
    display: flex;
    align-items: center;
    gap: 14px;

    margin: 66px 0 36px;
}

.article-section-divider span {
    height: 1px;
    flex: 1;
    background: #dce5e3;
}

.article-section-divider p {
    margin: 0;

    color: #187a5b;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    white-space: nowrap;
}


/* Tax Section */

.article-tax-section > h2 {
    margin-top: 0;
}

.article-tax-section > h2 span {
    color: #187a5b;
}


/* Did You Know */

.article-highlight-box {
    display: flex;
    align-items: flex-start;
    gap: 16px;

    margin: 30px 0 38px;
    padding: 24px;

    background: #f1f8f5;
    border: 1px solid #dbeae4;
    border-radius: 16px;
}

.article-highlight-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    background: #ffffff;
    color: #187a5b;
}

.article-highlight-icon i {
    font-size: 18px;
}

.article-highlight-box strong {
    display: block;
    margin-bottom: 6px;
    color: #142a40;
    font-size: 16px;
}

.article-highlight-box p {
    margin: 0;
}


/* Sub Headings */

.article-tax-section h3 {
    margin-top: 42px;
    margin-bottom: 15px;

    color: #142a40;
    font-family: "Playfair Display", serif;
    font-size: 28px;
    line-height: 1.25;
}


/* Tax Cards */

.article-tax-card {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    margin: 30px 0;
    border: 1px solid #e2e9e7;
    border-radius: 16px;
    overflow: hidden;

    background: #ffffff;
}

.article-tax-card-item {
    padding: 25px;
    text-align: center;
}

.article-tax-card-item + .article-tax-card-item {
    border-left: 1px solid #e2e9e7;
}

.article-tax-card-item span {
    display: block;

    margin-bottom: 10px;

    color: #71808b;
    font-size: 13px;
    line-height: 1.5;
}

.article-tax-card-item strong {
    display: block;

    color: #187a5b;
    font-family: "Playfair Display", serif;
    font-size: 34px;
    line-height: 1;
}

.article-tax-card-item small {
    display: block;
    margin-top: 9px;

    color: #9aa5ab;
    font-size: 11px;
    line-height: 1.5;
}


/* Stocks vs Mutual Funds */

.article-comparison-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 70px minmax(0, 1fr);

    align-items: stretch;

    margin: 36px 0;
    padding: 8px;

    background: #f7faf9;
    border: 1px solid #e2eae7;
    border-radius: 18px;
}

.comparison-column {
    padding: 25px 24px;
    text-align: center;
}

.comparison-icon {
    width: 46px;
    height: 46px;
    margin: 0 auto 14px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;

    background: #ffffff;
    color: #187a5b;
}

.comparison-icon i {
    font-size: 18px;
}

.comparison-column h4 {
    margin: 0 0 10px;

    color: #142a40;
    font-family: "Playfair Display", serif;
    font-size: 22px;
}

.comparison-column p {
    margin: 0;

    color: #71808b;
    font-size: 14px;
    line-height: 1.75;
}

.comparison-divider {
    display: flex;
    align-items: center;
    justify-content: center;

    position: relative;
}

.comparison-divider::before {
    content: "";
    position: absolute;

    width: 1px;
    height: 70%;

    background: #dfe7e4;
}

.comparison-divider span {
    position: relative;
    z-index: 1;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    border-radius: 50%;

    background: #ffffff;
    border: 1px solid #dfe7e4;

    color: #187a5b;
    font-size: 10px;
    font-weight: 700;
}


/* Takeaway */

.article-takeaway {
    margin-top: 46px;
    padding: 30px;

    background: #142a40;
    border-radius: 18px;
}

.article-takeaway .takeaway-label {
    margin: 0 0 10px;

    color: #8bd0b3;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.article-takeaway h3 {
    margin: 0 0 14px;

    color: #ffffff;
}

.article-takeaway p:not(.takeaway-label) {
    color: #d7e0e5;
}


/* Closing phrase */

.article-closing-line {
    margin: 34px 0 8px;

    color: #187a5b !important;
    font-family: "Playfair Display", serif;
    font-size: 24px !important;
    font-weight: 600;

    text-align: center;
}


/* Tax Disclaimer */

.article-tax-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 12px;

    margin-top: 20px;
    padding: 18px 20px;

    background: #f7f9f9;
    border: 1px solid #e4e9e8;
    border-radius: 12px;
}

.article-tax-disclaimer i {
    margin-top: 3px;

    color: #187a5b;
    font-size: 15px;
}

.article-tax-disclaimer p {
    margin: 0;

    color: #7a878f;
    font-size: 13px !important;
    line-height: 1.7;
}


/* =========================================================
   Responsive
========================================================= */

@media (max-width: 768px) {

    .article-flow {
        justify-content: flex-start;
        gap: 8px;
        font-size: 14px;
    }

    .article-section-divider {
        margin: 48px 0 30px;
    }

    .article-highlight-box {
        padding: 20px;
    }

    .article-tax-section h3 {
        font-size: 24px;
    }

    .article-tax-card {
        grid-template-columns: 1fr;
    }

    .article-tax-card-item + .article-tax-card-item {
        border-left: none;
        border-top: 1px solid #e2e9e7;
    }

    .article-comparison-card {
        grid-template-columns: 1fr;
    }

    .comparison-divider {
        height: 54px;
    }

    .comparison-divider::before {
        width: 70%;
        height: 1px;
    }

    .article-takeaway {
        padding: 24px 20px;
    }

}


@media (max-width: 520px) {

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

    .article-flow span:nth-child(even) {
        transform: rotate(90deg);
        margin: -2px 0;
    }

    .article-section-divider p {
        font-size: 10px;
    }

    .article-highlight-box {
        flex-direction: column;
    }

    .article-tax-card-item strong {
        font-size: 30px;
    }

    .comparison-column {
        padding: 22px 16px;
    }

}