/* NiveshakFirst — philosophy page */

.philosophy-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 18px;

    align-items: stretch;
}

.philosophy-step:last-child {
    grid-column: 2 / 4;
}

.philosophy-step {
    position: relative;

    padding: 30px 24px 32px;

    text-align: center;

    background:
        linear-gradient(145deg,
            #ffffff 0%,
            #f7faf9 100%);

    border: 1px solid #dfe9e5;

    border-radius: 16px;

    min-height: 220px;

    overflow: hidden;

    box-shadow:
        0 8px 25px rgba(20, 42, 64, .035);

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

.philosophy-step::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 3px;

    background: #dbe7e1;

    transition: .3s ease;
}

.philosophy-step::after {
    content: "";

    position: absolute;

    width: 110px;
    height: 110px;

    right: -50px;
    bottom: -50px;

    border-radius: 50%;

    background: rgba(24, 122, 91, .045);

    transition: .3s ease;

    pointer-events: none;
}

.philosophy-step:first-child::before {
    background: linear-gradient(90deg,
            #187a5b,
            #69be43);
}

.philosophy-step:hover {
    transform: translateY(-6px);

    border-color: #c7ddd3;

    box-shadow:
        0 18px 38px rgba(20, 42, 64, .08);
}

.philosophy-step:hover::before {
    background: linear-gradient(90deg,
            #187a5b,
            #69be43);
}

.philosophy-step:hover::after {
    width: 150px;
    height: 150px;

    background: rgba(24, 122, 91, .07);
}

.philosophy-top {
    display: flex;
    justify-content: center;

    position: relative;
    z-index: 2;
}

.philosophy-top span {
    display: inline-flex;

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

    width: 36px;
    height: 36px;

    border-radius: 50%;

    background: #eef7f2;

    color: #187a5b;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 1px;

    border: 1px solid #d8ebe2;

    transition: .3s ease;
}

.philosophy-step:hover .philosophy-top span {
    background: #187a5b;
    color: #fff;

    border-color: #187a5b;
}

.philosophy-step h3 {
    position: relative;
    z-index: 2;

    margin-top: 17px;

    color: #142a40;

    font-family: "Playfair Display", serif;

    font-size: 22px;
    line-height: 1.3;
}

.philosophy-step p {
    position: relative;
    z-index: 2;

    max-width: 280px;

    margin: 11px auto 0;

    color: #71808b;

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

/* Keep the page gradient visible behind the philosophy cards. */
.philosophy-section {
    background: transparent;
}