/* NiveshakFirst — Home page */

/* --------------------------------------------------
   Home page background
   Creates the soft dark-to-light premium background
   across the complete Home page.
-------------------------------------------------- */
body[data-page="home"] {
    background: linear-gradient(135deg,
            #d9e3ec 0%,
            #e2e9ef 30%,
            #ebf0f4 55%,
            #f3f6f8 78%,
            #fafbfc 100%);
}

/* --------------------------------------------------
   Hero section
   Background is transparent so the page-wide gradient
   remains visible behind the complete section.
-------------------------------------------------- */
.hero-section {
    min-height: 650px;
    background: transparent;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-container {
    min-height: 650px;
    display: grid;
    grid-template-columns: 1.02fr .98fr;
    align-items: center;
    gap: 45px;
}

.hero-content {
    padding: 50px 0;
}

.hero-label,
.section-label {
    color: #187a5b;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.hero-content h1 {
    max-width: 690px;
    color: #142a40;
    font-family: "Playfair Display", serif;
    font-size: clamp(44px, 5vw, 68px);
    line-height: 1.08;
    letter-spacing: -1.3px;
}

.hero-content h1 span {
    display: block;
    color: #187a5b;
}

.hero-description {
    max-width: 590px;
    margin-top: 24px;
    color: #61707c;
    font-size: 17px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.hero-buttons .primary-button,
.hero-buttons .secondary-button {
    width: 220px;
    min-width: 220px;
    max-width: 220px;
    height: 54px;
    padding: 0 20px;

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

    box-sizing: border-box;
    border-radius: 8px;

    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    text-decoration: none;

    transition: .25s ease;
}

.hero-buttons .primary-button {
    background: #187a5b;
    border: 1px solid #187a5b;
    color: #fff;
    box-shadow: 0 10px 24px rgba(24, 122, 91, .16);
}

.hero-buttons .primary-button:hover {
    background: #126548;
    border-color: #126548;
    transform: translateY(-2px);
}

.hero-buttons .secondary-button {
    background: #fff;
    border: 1px solid #dce6e1;
    color: #142a40;
}

.hero-buttons .secondary-button:hover {
    border-color: #187a5b;
    color: #187a5b;
    transform: translateY(-2px);
}

.secondary-button {
    background: #fff;
    color: #142a40;
    border: 1px solid #dce6e1;
}

.secondary-button:hover {
    border-color: #187a5b;
    color: #187a5b;
    transform: translateY(-2px);
}

.hero-trust {
    display: flex;
    gap: 30px;
    margin-top: 38px;
    flex-wrap: wrap;
}

.hero-trust div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hero-trust strong {
    font-size: 14px;
    color: #142a40;
}

.hero-trust span {
    font-size: 14px;
    color: #7a8791;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 25px 0;
}

.hero-visual img {
    width: min(620px, 100%);
    filter: drop-shadow(0 24px 30px rgba(20, 42, 64, .08));
    animation: heroFloat 6s ease-in-out infinite;
}

@keyframes heroFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-7px);
    }
}


/* --------------------------------------------------
   Calculator preview section
   Transparent so the page-wide background remains visible.
   Individual calculator cards stay white.
-------------------------------------------------- */
.calculator-preview-section {
    background: transparent;
}

.calculator-preview-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.preview-calculator-card {
    padding: 28px 24px 26px;
    border: 1px solid #dfe9e5;
    border-radius: 18px;
    background: linear-gradient(145deg, #fff, #f7faf9);
    box-shadow: 0 10px 30px rgba(20, 42, 64, .045);
    transition: .3s ease;
}

.preview-calculator-card:hover {
    transform: translateY(-6px);
    border-color: #bcd8cc;
    box-shadow: 0 18px 40px rgba(20, 42, 64, .09);
}

.preview-calculator-card.featured {
    background: linear-gradient(145deg, #edf8f2, #fff);
}

.preview-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: #e9f5ef;
    color: #187a5b;
    font-size: 19px;
}

.preview-number {
    display: block;
    margin-top: 22px;
    color: #8a969e;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
}

.preview-calculator-card h3 {
    margin-top: 5px;
    color: #142a40;
    font-family: "Playfair Display", serif;
    font-size: 24px;
}

.preview-calculator-card p {
    margin: 10px 0 20px;
    color: #71808b;
    font-size: 14px;
    line-height: 1.7;
}

.preview-calculator-card a,
.home-blog-card a,
.blog-list-card a {
    color: #187a5b;
    font-size: 14px;
    font-weight: 800;
}

.preview-calculator-card a span,
.home-blog-card a span,
.blog-list-card a b {
    margin-left: 5px;
    font-size: 18px;
}

.center-action {
    text-align: center;
    margin-top: 34px;
}


/* --------------------------------------------------
   Home Blog section
   Transparent so the same page-wide gradient continues.
   Blog cards remain white.
-------------------------------------------------- */
.home-blog-section {
    background: transparent;
}

.home-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.home-blog-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid #dfe9e5;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(20, 42, 64, .045);
    transition: .3s ease;
}

.home-blog-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 20px 45px rgba(20, 42, 64, .09);
}

.home-blog-card img {
    width: 100%;
    height: 190px;
    object-fit: cover;
}

.home-blog-card-content {
    padding: 25px;
}

.home-blog-card-content>span,
.blog-list-card>div>span {
    color: #187a5b;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.3px;
}

.home-blog-card h3 {
    margin-top: 10px;
    color: #142a40;
    font-family: "Playfair Display", serif;
    font-size: 24px;
    line-height: 1.25;
}

.home-blog-card p {
    margin: 12px 0 20px;
    color: #71808b;
    font-size: 15px;
    line-height: 1.75;
}


/* --------------------------------------------------
   Responsive layout
-------------------------------------------------- */

@media(max-width:1050px) {

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

    .home-blog-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media(max-width:800px) {

    .home-process-cta {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media(max-width:600px) {

    .calculator-preview-grid,
    .home-blog-grid {
        grid-template-columns: 1fr;
    }

    .home-process-cta {
        padding: 27px;
    }
}

/* SIP Journey modal */
.sip-journey-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 25px;
    background: rgba(20, 42, 64, .55);
    backdrop-filter: blur(5px);
}

.sip-journey-overlay.active {
    display: flex;
}

.sip-journey-box {
    position: relative;
    width: min(760px, 100%);
    max-height: 90vh;
    overflow-y: auto;
    padding: 48px;
    background: #fff;
    border: 1px solid #dfe9e5;
    border-radius: 22px;
    box-shadow: 0 25px 70px rgba(20, 42, 64, .20);
}

.sip-close {
    position: absolute;
    top: 18px;
    right: 20px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: #f1f6f3;
    color: #142a40;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
}

.sip-close:hover {
    background: #187a5b;
    color: #fff;
}

.sip-step {
    display: none;
}

.sip-step.active {
    display: block;
}

.sip-step h2 {
    margin-top: 8px;
    color: #142a40;
    font-family: "Playfair Display", serif;
    font-size: 34px;
    line-height: 1.2;
}

.sip-step-description {
    margin-top: 12px;
    color: #71808b;
    font-size: 16px;
    line-height: 1.7;
}

.sip-options,
.sip-large-options,
.sip-final-options {
    display: grid;
    gap: 16px;
    margin-top: 28px;
}

.sip-options,
.sip-large-options,
.sip-final-options {
    grid-template-columns: repeat(2, 1fr);
}

.sip-option {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    padding: 20px;
    text-align: left;
    background: #f9fcfb;
    border: 1px solid #dfe9e5;
    border-radius: 15px;
    cursor: pointer;
    transition: .25s ease;
}

.sip-option:hover,
.sip-large-option:hover,
.sip-final-button:hover {
    border-color: #187a5b;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(20, 42, 64, .08);
}

.sip-option-icon,
.sip-large-icon {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #e8f4ee;
    color: #187a5b;
}

.sip-option-icon {
    width: 44px;
    height: 44px;
    font-size: 20px;
}

.sip-large-icon {
    width: 54px;
    height: 54px;
    margin: 0 auto 18px;
    font-size: 25px;
}

.sip-option strong,
.sip-option small,
.sip-large-option strong,
.sip-large-option small,
.sip-final-button strong,
.sip-final-button small {
    display: block;
}

.sip-option strong {
    color: #142a40;
    font-size: 16px;
}

.sip-option small {
    margin-top: 5px;
    color: #71808b;
    font-size: 13px;
}

.sip-large-option {
    padding: 30px 25px;
    text-align: center;
    background: #f9fcfb;
    border: 1px solid #dfe9e5;
    border-radius: 18px;
    cursor: pointer;
    transition: .25s ease;
}

.sip-large-option strong {
    color: #142a40;
    font-size: 20px;
}

.sip-large-option small {
    max-width: 280px;
    margin: 10px auto 0;
    color: #71808b;
    font-size: 14px;
    line-height: 1.7;
}

.sip-final-button {
    position: relative;
    display: block;
    padding: 25px;
    border-radius: 17px;
    text-decoration: none;
    transition: .25s ease;
}

.sip-final-button strong {
    font-size: 17px;
}

.sip-final-button small {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.6;
}

.sip-final-button span {
    position: absolute;
    right: 20px;
    bottom: 20px;
    font-size: 20px;
}

.sip-final-button.secondary {
    border: 1px solid #d6e5de;
    background: #f8fbfa;
    color: #142a40;
}

.sip-final-button.primary {
    border: 1px solid #187a5b;
    background: #187a5b;
    color: #fff;
}

.sip-final-button.primary small {
    color: rgba(255, 255, 255, .78);
}

.sip-back {
    margin-top: 25px;
    border: 0;
    background: transparent;
    color: #187a5b;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

@media (max-width: 600px) {
    .sip-journey-box {
        padding: 38px 22px 28px;
    }

    .sip-step h2 {
        font-size: 27px;
    }

    .sip-options,
    .sip-large-options,
    .sip-final-options {
        grid-template-columns: 1fr;
    }

    /*
       Mobile hero order:
       Heading/description
       -> Investment illustration
       -> Action buttons
       -> Trust points

       This changes only the mobile layout. Desktop remains untouched.
    */
    .hero-container {
        display: flex !important;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding-top: 50px;
        padding-bottom: 50px;
    }

    .hero-content {
        display: contents !important;
    }

    .hero-visual {
        display: contents !important;
    }

    .hero-label {
        order: 1;
    }

    .hero-content h1 {
        order: 2;
    }

    .hero-description {
        order: 3;
    }

    .hero-visual img {
        order: 4;
        display: block !important;
        width: min(100%, 360px);
        max-width: 360px;
        height: auto !important;
        margin: 20px auto 10px;
        visibility: visible !important;
    }

    .hero-buttons {
        order: 5;
    }

    .hero-trust {
        order: 6;
    }
}

/* How We Work - Bottom Button */

.how-we-work-bottom-action {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 32px;
}

.how-we-work-bottom-action .text-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;

    min-height: 54px;
    padding: 0 24px;

    background: #ffffff;
    border: 1px solid #d9e2df;
    border-radius: 8px;

    color: #142a40;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;

    box-shadow: 0 2px 6px rgba(20, 42, 64, 0.03);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.how-we-work-bottom-action {
    grid-column: 1 / -1;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 32px;
}

/* =========================================================
   External Investment Warning
   ========================================================= */

.external-warning-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;

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

    padding: 20px;

    background: rgba(20, 42, 64, 0.62);
    backdrop-filter: blur(8px);
}

.external-warning-overlay.active {
    display: flex;
}

.external-warning-modal {
    position: relative;
    width: min(520px, 100%);

    background: #ffffff;
    border-radius: 22px;

    box-shadow: 0 25px 70px rgba(20, 42, 64, 0.28);

    animation: externalWarningIn 0.25s ease;
}

@keyframes externalWarningIn {

    from {
        opacity: 0;
        transform: translateY(15px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

}

.external-warning-close {
    position: absolute;
    top: 18px;
    right: 18px;

    width: 38px;
    height: 38px;

    border: none;
    border-radius: 50%;

    background: #f1f6f3;
    color: #142a40;

    font-size: 24px;
    cursor: pointer;

    transition: 0.2s ease;
}

.external-warning-close:hover {
    background: #e3eee9;
    transform: rotate(90deg);
}

.external-warning-content {
    padding: 42px;
}

.external-warning-label {
    margin: 0 0 14px;

    color: #187a5b;

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
}

.external-warning-content h2 {
    margin: 0 0 15px;

    color: #142a40;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 30px;
    line-height: 1.2;
}

.external-warning-content>p:not(.external-warning-label) {
    margin: 0;

    color: #6d7d8b;

    font-size: 15px;
    line-height: 1.7;
}

.external-warning-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;

    margin-top: 30px;
}

.warning-cancel-btn,
.warning-continue-btn {
    min-height: 45px;
    padding: 0 22px;

    border-radius: 8px;

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

    cursor: pointer;
}

.warning-cancel-btn {
    border: 1px solid #d7e2de;
    background: #ffffff;
    color: #52606d;
}

.warning-cancel-btn:hover {
    background: #f5f8f7;
}

.warning-continue-btn {
    border: 1px solid #187a5b;
    background: #187a5b;
    color: #ffffff;

    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.warning-continue-btn:hover {
    background: #146b50;
}

.warning-continue-btn span {
    font-size: 17px;
}


/* Mobile */

@media (max-width: 600px) {

    .external-warning-content {
        padding: 35px 25px 30px;
    }

    .external-warning-content h2 {
        font-size: 25px;
    }

    .external-warning-actions {
        flex-direction: column;
    }

    .warning-cancel-btn,
    .warning-continue-btn {
        width: 100%;
        justify-content: center;
    }

}
.rating-number {
    font-weight: 700;
    color: #000000;
}