.bamdad-th-pn,
.bamdad-th-pn * {
    box-sizing: border-box;
}

.bamdad-th-pn {
    --bamdad-pn-marker-size: 42px;
    --bamdad-pn-marker-bottom-space: 14px;
    --bamdad-pn-line-color: #57c28b;
    --bamdad-pn-line-thickness: 2px;
    --bamdad-pn-line-gap: 8px;
    --bamdad-pn-glass-blur: 10px;
    --bamdad-pn-animation-duration: 0.6s;
    --bamdad-pn-animation-stagger: 0.08s;
    position: relative;
    width: 100%;
    padding: 20px 16px;
    background: transparent;
}

.bamdad-th-pn__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    column-gap: 0;
    row-gap: 30px;
}

.bamdad-th-pn__item {
    position: relative;
    display: flex;
    min-width: 0;
    padding-inline: 16px;
    text-align: center;
}

.bamdad-th-pn.equal-height .bamdad-th-pn__item-inner {
    height: 100%;
}

.bamdad-th-pn__item::before,
.bamdad-th-pn__item::after {
    content: "";
    position: absolute;
    top: calc(var(--bamdad-pn-marker-size) / 2);
    z-index: 0;
    height: var(--bamdad-pn-line-thickness);
    background-color: var(--bamdad-pn-line-color);
}

.bamdad-th-pn__item::before {
    inset-inline-start: 0;
    width: calc(50% - (var(--bamdad-pn-marker-size) / 2) - var(--bamdad-pn-line-gap));
}

.bamdad-th-pn__item::after {
    inset-inline-end: 0;
    width: calc(50% - (var(--bamdad-pn-marker-size) / 2) - var(--bamdad-pn-line-gap));
}

.bamdad-th-pn.no-connector .bamdad-th-pn__item::before,
.bamdad-th-pn.no-connector .bamdad-th-pn__item::after,
.bamdad-th-pn.style-numbered .bamdad-th-pn__item::before,
.bamdad-th-pn.style-numbered .bamdad-th-pn__item::after {
    display: none !important;
}

.bamdad-th-pn__item-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    width: 100%;
    max-width: 190px;
    min-width: 0;
    margin-inline: auto;
    padding: 0 6px;
    border-radius: 12px;
    transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.bamdad-th-pn__marker-wrap {
    position: relative;
    display: flex;
    flex: 0 0 auto;
    justify-content: center;
    margin-bottom: var(--bamdad-pn-marker-bottom-space);
}

.bamdad-th-pn__marker {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--bamdad-pn-marker-size);
    height: var(--bamdad-pn-marker-size);
    min-width: var(--bamdad-pn-marker-size);
    border-radius: 50%;
    background-color: #57c28b;
    color: #fff;
    font-size: 18px;
    line-height: 1;
}

.bamdad-th-pn__marker i,
.bamdad-th-pn__marker svg {
    display: block;
}

.bamdad-th-pn__title {
    margin: 0 0 12px;
    color: #57b680;
    font-size: 24px;
    font-weight: 400;
    line-height: 1.2;
}

.bamdad-th-pn__description {
    margin: 0;
    color: #8a8f98;
    font-size: 15px;
    line-height: 1.7;
}

.bamdad-th-pn__description > *:first-child {
    margin-top: 0;
}

.bamdad-th-pn__description > *:last-child {
    margin-bottom: 0;
}

/* Numbered columns preset */
.bamdad-th-pn.style-numbered .bamdad-th-pn__item {
    text-align: left;
}

.bamdad-th-pn.style-numbered .bamdad-th-pn__item-inner {
    max-width: 100%;
    margin-inline: 0;
}

.bamdad-th-pn.style-numbered .bamdad-th-pn__marker-wrap {
    justify-content: flex-start;
}

.bamdad-th-pn.style-numbered .bamdad-th-pn__marker {
    background-color: #f1edf2;
    color: #c13a8a;
    font-size: 16px;
    font-weight: 500;
}

.bamdad-th-pn.style-numbered .bamdad-th-pn__title {
    color: #111827;
    font-size: 20px;
    font-weight: 500;
}

.bamdad-th-pn.style-numbered .bamdad-th-pn__description {
    color: #667085;
}

.bamdad-th-pn.has-hover.hover-lift .bamdad-th-pn__item-inner:hover,
.bamdad-th-pn.has-hover.hover-lift .bamdad-th-pn__item-inner:focus-within {
    transform: translateY(-6px);
}

.bamdad-th-pn.has-hover.hover-soft-scale .bamdad-th-pn__item-inner:hover,
.bamdad-th-pn.has-hover.hover-soft-scale .bamdad-th-pn__item-inner:focus-within {
    transform: scale(1.03);
}

.bamdad-th-pn.glass-on .bamdad-th-pn__item-inner {
    background-color: rgba(255, 255, 255, 0.18);
    -webkit-backdrop-filter: blur(var(--bamdad-pn-glass-blur));
    backdrop-filter: blur(var(--bamdad-pn-glass-blur));
}

.bamdad-th-pn.has-animation .bamdad-th-pn__item {
    animation-duration: var(--bamdad-pn-animation-duration);
    animation-delay: calc((var(--bamdad-pn-item-order) - 1) * var(--bamdad-pn-animation-stagger));
    animation-fill-mode: both;
    animation-timing-function: ease;
}

.bamdad-th-pn.has-animation.anim-fade-up .bamdad-th-pn__item {
    animation-name: bamdadPnFadeUp;
}

.bamdad-th-pn.has-animation.anim-fade-in .bamdad-th-pn__item {
    animation-name: bamdadPnFadeIn;
}

.bamdad-th-pn.has-animation.anim-zoom-in .bamdad-th-pn__item {
    animation-name: bamdadPnZoomIn;
}

@keyframes bamdadPnFadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

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

@keyframes bamdadPnFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes bamdadPnZoomIn {
    from {
        opacity: 0;
        transform: scale(0.94);
    }

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

@media (prefers-reduced-motion: reduce) {
    .bamdad-th-pn.has-animation .bamdad-th-pn__item {
        animation: none !important;
    }

    .bamdad-th-pn__item-inner {
        transition: none !important;
    }

    .bamdad-th-pn.has-hover .bamdad-th-pn__item-inner:hover,
    .bamdad-th-pn.has-hover .bamdad-th-pn__item-inner:focus-within {
        transform: none !important;
    }
}

@media (max-width: 1024px) {
    .bamdad-th-pn__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bamdad-th-pn__title {
        font-size: 22px;
    }

    .bamdad-th-pn__description {
        font-size: 14px;
    }
}

@media (max-width: 767px) {
    .bamdad-th-pn {
        padding: 16px 10px;
    }

    .bamdad-th-pn__grid {
        grid-template-columns: 1fr;
        row-gap: 22px;
    }

    .bamdad-th-pn__item {
        padding-inline: 6px;
    }

    .bamdad-th-pn__item-inner {
        max-width: 100%;
    }

    .bamdad-th-pn__title {
        font-size: 21px;
    }

    .bamdad-th-pn.style-numbered .bamdad-th-pn__item-inner {
        display: grid;
        grid-template-columns: var(--bamdad-pn-marker-size) minmax(0, 1fr);
        grid-template-rows: auto auto;
        column-gap: 16px;
        align-items: start;
    }

    .bamdad-th-pn.style-numbered .bamdad-th-pn__marker-wrap {
        grid-column: 1;
        grid-row: 1 / span 2;
        margin-bottom: 0;
    }

    .bamdad-th-pn.style-numbered .bamdad-th-pn__title {
        grid-column: 2;
        grid-row: 1;
        margin-top: 2px;
    }

    .bamdad-th-pn.style-numbered .bamdad-th-pn__description {
        grid-column: 2;
        grid-row: 2;
    }
}
