app-sangh-profile {
    background: var(--ion-background-content);

    h3 {
        padding: var(--ion-padding-0);
        margin: var(--ion-margin-0) var(--ion-margin-0) 0.25rem var(--ion-margin-0);
        font-weight: 700;
        color: #7C459C;
    }

    ion-button {
        margin: var(--ion-margin-0);
        --border-radius: 0.313rem;

        &::part(native) {
            --background: var(--ion-color-sangh);
        }
    }

    ion-header {
        ion-toolbar {
            ion-buttons {
                ion-icon {
                    color: #fff;
                    margin: var(--ion-margin-0);
                    vertical-align: middle;
                    font-size: 25px;
                }
            }
        }
    }

    ion-content {
        --background: var(--ion-background-content);

        &.sangh {
            --ion-background-button: var(--ion-background-content-sangh);
            --ion-color: var(--ion-color-sangh);
            --ion-color-light-text: var(--ion-color-sangh);
        }

        p {
            font-size: var(--ion-font-size-14);
            padding: var(--ion-padding-0) var(--ion-padding-15);
            margin-top: var(--ion-margin-0);
            color: var(--ion-content-color);
        }

        .profile-bg {
            width: 8.875rem;
            height: 8.875rem;
            margin: var(--ion-margin-0) auto 1rem auto;
            background: url(/assets/images/sangh-profile-bg.svg) no-repeat center center;
            display: flex;
            align-items: center;
            justify-content: center;
            background-size: contain;

            img {
                border: 0.125rem solid #fff;
                border-radius: var(--ion-border-radius-100);
                width: 6.25rem;
                height: 6.25rem;
                background: var(--ion-background-content);
                border-radius: var(--ion-border-radius-100);
            }
        }

        ion-button {
            height: 1.875rem;
        }

        .bg {
            background: var(--ion-background-white);
            text-align: var(--ion-text-align-center);
            padding: var(--ion-padding-15);
            margin-bottom: var(--ion-margin-15);

            .points {
                font-size: var(--ion-font-size-12);
                border: 0.063rem solid #0000001A;
                padding: 0.313rem 0.625rem;
                border-radius: 0.938rem;
                margin: var(--ion-margin-0) auto var(--ion-margin-15);
                display: flex;
                align-items: center;
                width: max-content;

                ion-icon {
                    color: #FFA500;
                    margin-right: 3px;
                }

                span {
                    color: #FFA500;
                    margin-left: 3px;
                }
            }

            div {
                &.admin-view {
                    display: flex;
                    flex-wrap: wrap;
                    justify-content: center;
                    /* Center the content horizontally */
                    gap: 16px;
                    /* Optional: Adds space between buttons */

                    ion-button {
                        flex: 0 0 45%;
                        /* Each button takes up 45% of the container width */
                        max-width: 45%;

                        &::part(native) {
                            padding: var(--ion-padding-0) 5px;
                            --background: var(--ion-background-content-sangh);
                            color: var(--ion-color-sangh);
                            border: 1px solid;
                        }

                        &:nth-child(1) {
                            &::part(native) {
                                --background: var(--ion-color-sangh);
                                color: #fff;
                            }
                        }

                        &:nth-child(3) {
                            &::part(native) {
                                --background: var(--ion-color-sangh);
                                color: #fff;
                            }
                        }

                        img {
                            width: auto;
                            height: 10px;
                            margin-right: 4px;
                        }
                    }
                }

                &.member-view {
                    display: flex;
                    justify-content: space-between;

                    ion-button {
                        margin: var(--ion-margin-0);
                        font-size: var(--ion-font-size-14);
                        width: 48%;

                        &::part(native) {
                            padding: var(--ion-padding-0) 5px;
                            --background: var(--ion-background-content-sangh);
                            color: var(--ion-color-sangh);
                            border: 1px solid;
                        }

                        &:first-child {
                            &::part(native) {
                                --background: var(--ion-color-sangh);
                                color: #fff;
                            }
                        }

                        img {
                            width: auto;
                            height: 10px;
                            margin-right: 4px;
                        }
                    }

                    &.member-label {
                        justify-content: center;

                        ion-button {
                            &.m-label {
                                &::part(native) {
                                    --background: var(--ion-background-content-sangh);
                                    color: var(--ion-color-sangh);
                                    border: 1px solid;
                                }
                            }
                        }
                    }
                }
            }

            ion-avatar {
                position: relative;

                ion-button {
                    position: absolute;
                    right: 1.25rem;
                    bottom: 2.063rem;
                    width: 1.563rem;
                    height: 1.563rem;

                    &::part(native) {
                        padding: 0.375rem;
                        border-radius: var(--ion-border-radius-100);
                    }

                    img {
                        width: 13px;
                        height: 13px;
                        border: none;
                        background: none;
                    }
                }
            }
        }

        .bottom-bg-location {
            padding: var(--ion-padding-0);

            ion-card {
                margin: var(--ion-margin-0);
                padding: 6px;
                margin-bottom: var(--ion-margin-15);

                ion-card-header {
                    padding: var(--ion-padding-0);

                    ion-card-title {
                        font-size: var(--ion-font-size-14);
                        display: flex;

                        ion-icon {
                            width: 1.438rem;
                            height: 1.438rem;
                            padding: 0.375rem;
                            background: var(--ion-background-content);
                            border-radius: var(--ion-border-radius-100);
                            color: var(--ion-color);
                            margin-right: var(--ion-margin-10);
                        }
                    }
                }

                ion-card-content {
                    font-size: var(--ion-font-size-14);
                    padding: var(--ion-padding-0);
                    display: flex;
                    justify-content: space-between;

                    p {
                        padding: var(--ion-padding-0);

                        span {
                            color: var(--ion-color);
                        }

                        a {
                            span {
                                color: var(--ion-color-primary, #3880ff);
                            }
                        }
                    }
                }

                &.detail {
                    padding: var(--ion-padding-0);
                    border-radius: 0;

                    ion-card-header {
                        padding: var(--ion-padding-10);
                        background: #F3E1FC;
                        border-top: 2px solid var(--ion-color-sangh);
                        border-bottom: 2px solid var(--ion-color-sangh);

                        img {
                            width: 2.625rem;
                            height: 2.625rem;
                            margin-right: var(--ion-margin-10);
                            background: var(--ion-background-content);
                            border-radius: var(--ion-border-radius-100);
                            display: flex;
                            align-items: center;
                            justify-content: center;
                            object-fit: cover;
                        }

                        ion-card-title {
                            font-size: var(--ion-font-size-14);
                            position: relative;
                            align-items: center;
                            margin: var(--ion-margin-0);

                            p {
                                padding: var(--ion-padding-0);
                                font-size: var(--ion-font-size-14);
                                margin: var(--ion-margin-0);
                                color: #000;
                                font-weight: 600;
                                display: inline;
                            }

                            span {
                                font-size: var(--ion-font-size-12);
                                color: var(--ion-color-sangh);
                                margin-top: 0.313rem;
                                font-weight: 400;
                            }

                            ion-icon {
                                margin: var(--ion-margin-0);
                                background: none;
                                color: var(--ion-color-sangh);
                                font-size: var(--ion-font-size-20);
                                padding: var(--ion-padding-0);
                            }

                            >div {
                                width: calc(100% - 10px);
                            }
                        }

                        p {
                            margin: 0;
                            font-size: 12px;
                            display: inline-block;
                            margin-top: 5px;
                            border-radius: 10px;
                            color: var(--ion-color-sangh);
                            padding: var(--ion-padding-0);
                        }
                    }

                    ion-card-content {
                        display: block;

                        p {
                            margin: var(--ion-margin-0) var(--ion-margin-10) var(--ion-margin-10);
                            color: #000;
                            font-weight: 500;
                        }

                        .img-upload {
                            flex-wrap: wrap;

                            swiper-container {
                                swiper-slide {
                                    text-align: center;
                                    background: #f3e1fc;
                                }

                                &::part(pagination) {
                                    position: absolute;
                                    margin: 5px var(--ion-margin-0) var(--ion-margin-0) var(--ion-margin-0);
                                    bottom: 0px;
                                    background: var(--ion-color-sangh);
                                }

                                &::part(bullet) {
                                    background-color: #c1c1c1;
                                    opacity: 1;
                                }

                                &::part(bullet-active) {
                                    background-color: var(--ion-color-white);
                                }
                            }

                        }

                        .footer-icon {
                            display: flex;
                            justify-content: space-between;
                            padding: var(--ion-padding-10);

                            div {
                                display: flex;
                                align-items: center;
                                color: #000;
                                font-weight: 600;

                                span {
                                    padding: var(--ion-padding-0) var(--ion-padding-0) var(--ion-padding-0) var(--ion-padding-10);
                                    min-width: 30px;
                                }
                            }

                            ion-icon {
                                width: 1.5rem;
                                height: 1.5rem;
                                color: var(--ion-color);

                                &.heart {
                                    color: red;
                                }
                            }
                        }
                    }
                }
            }

            .sangh-members {
                display: flex;
                justify-content: space-between;
                padding: var(--ion-padding-0) var(--ion-padding-15);

                ion-card {
                    ion-card-header {
                        ion-card-title {
                            div {
                                width: 2.688rem;
                                height: 2.688rem;
                                border-radius: 0.438rem;
                                background: var(--ion-background-content-sangh);
                                display: flex;
                                align-items: center;
                                justify-content: center;
                            }

                            p {
                                padding: var(--ion-padding-0);
                                margin: var(--ion-margin-0);
                                font-size: var(--ion-font-size-12);
                                display: flex;
                                align-items: center;
                                justify-content: center;
                                flex-direction: column;
                                width: calc(100% - 2.625rem);

                                span {
                                    display: block;
                                    font-size: var(--ion-font-size-14);
                                    color: #000;
                                    font-weight: 600;
                                }
                            }
                        }
                    }
                }

                .follower {
                    width: 36%;
                }

                .members {
                    width: 36%;
                }

                .vihar {
                    width: 22%;

                    ion-card-title {
                        justify-content: center;
                    }

                    & div {
                        background: #DFEAE2;
                        width: 100%;
                    }
                }
            }

            .about-info {
                padding: var(--ion-padding-0) var(--ion-padding-15);

                ion-card {
                    text-align: center;

                    ion-card-header {
                        ion-card-title {
                            margin-bottom: var(--ion-margin-10);

                            p {
                                display: flex;
                                justify-content: space-between;
                                align-items: center;
                                width: calc(100% - 45px);
                                padding: var(--ion-padding-0);
                                margin: var(--ion-margin-0);
                                font-size: var(--ion-font-size-14);
                                font-weight: 500;

                                span {
                                    color: #000;
                                    font-weight: 600;
                                    text-align: right;
                                }
                            }

                            .icons {
                                width: 2.188rem;
                                height: 2.188rem;
                                padding: 8px;
                                background: var(--ion-background-content);
                                border-radius: var(--ion-border-radius-100);
                                color: var(--ion-color);
                                margin-right: var(--ion-margin-10);
                                display: flex;
                                align-items: center;
                                justify-content: center;
                                overflow: hidden;
                            }
                        }
                    }

                    ion-button {
                        margin: var(--ion-margin-0);
                    }
                }

                img {
                    path {
                        fill: #f00;
                    }
                }
            }
        }
    }

    .disable-card {
        pointer-events: none;
    }

    .reject-sangh {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        padding: 15px;
    }

    .reject-sangh-content {
        margin-top: -20px;
        border-radius: 5px;
        background-color: #f8d7da;
        border: 1px solid #721c24;
        padding: 8px 0px;

        p {
            color: #721c24;
            font-weight: 500;
            padding: 0px 10px;
        }
    }
}