.project-profiles-section {
    margin: 40px 0;
    color: #fff;
}

.project-profiles-header {
    /* display: flex; */
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.project-profiles-header h3 {
    font-size: 24px;
    line-height: 1.5;
    font-weight: 600;
    color: #f5f5f6;
    margin: 0;
}

.project-profiles-header p {
    font-size: 14px;
    color: #85999E;
    font-weight: 400;
    margin-bottom: 0px;
}

.project-profiles-card {
    background-color: #0C111D;
    border-radius: 12px;
    border: 1px solid #333741;
    margin-bottom: 16px;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
}

.project-profiles-card .thumbnail {
    width: 240px;
    height: 240px;
}

.project-profiles-card .thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-profiles-card .card-content {
    padding: 24px 40px;
    flex-grow: 1;
}

.project-profiles-card .card-content h4 {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.project-profiles-card .card-content .input-grp {
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-items: flex-start;
    gap: 10px;
}

.project-profiles-card .card-content .input-grp .label {
    /* min-width: 200px; */
    font-size: 14px;
    color: #f5f5f6;
    font-weight: 400;
}

.project-profiles-card .card-content .input-grp input {
    padding: 8px 24px;
    border-radius: 8px;
    border: 1px solid #333741;
    background: transparent;
    box-shadow: none;
    outline: none;
    color: #85999E;
    font-size: 14px;
    flex-grow: 1;
}

.project-profiles-card .project-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.project-profiles-card .btn-edit {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    border: 1px solid #333741;
    background-color: #161B26;
    margin-left: auto;
    transition: 0.3s ease-in-out;
}

.project-profiles-card .btn-edit:hover,
.project-profiles-card .btn-edit:focus {
    border-color: #fff;
    transition: 0.3s ease-in-out;
    outline: none;
}

.project-profiles-card .btn-edit img {
    margin: 0 auto;
}

.project-profiles-card .btn-edit .icon-pencil {
    width: 20px;
    height: 20px;
    margin: 0 auto;
}

.project-profiles-card .card-content .link-grp {
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-items: flex-start;
    gap: 10px;
}

.project-profiles-card .card-content .link-grp .label {
    padding-left: 15px;
    min-width: 200px;
    font-size: 14px;
    color: #f5f5f6;
    font-weight: 400;
}

.project-profiles-card .card-content .link-grp .label img {
    width: 16px;
    height: 16px;
    margin-bottom: 5px;
}

.project-profiles-card .card-content .link-grp a {
    font-size: 14px;
    color: #0171E3;
    text-decoration: none;
    word-break: break-all;
}

.project-profiles-card .card-content .link-grp a:hover {
    text-decoration: underline;
}

.project-profiles-card .card-content .link-grp .btn-copy-link {
    padding: 0;
    border: none;
    background: transparent;
    outline: none;
    box-shadow: none;
    margin-bottom: 4px;
}

.project-profiles-card .card-content .link-grp .btn-copy-link img {
    width: 16px;
    height: 16px;
}



/* ---- Referral Program ---- */
.referral-program-section .referral-program-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.referral-program-section .referral-program-header h3 {
    font-size: 24px;
    line-height: 1.5;
    font-weight: 600;
    color: #f5f5f6;
    margin: 0;
    margin-bottom: 5px;
}

.referral-program-section .referral-program-header .header-left p {
    font-size: 14px;
    color: #85999E;
    font-weight: 400;
    margin-bottom: 0px;
}

.referral-program-section .referral-program-header .header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.referral-program-section .referral-program-header .header-right p {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: #85999E;
    font-weight: 600;
    margin-bottom: 5px;
}

.referral-program-section .referral-program-header .header-right p img {
    width: 20px;
    height: 20px;
}

.referral-program-section .referral-program-header .header-right select {
    padding: 8px 10px;
    padding-right: 30px;
    border-radius: 8px;
    border: 1px solid #333741;
    background: transparent;
    box-shadow: none;
    outline: none;
    color: #CECFD2;
    font-size: 14px;
    background: url("data:image/svg+xml,<svg height='10px' width='10px' viewBox='0 0 16 16' fill='%23CECFD2' xmlns='http://www.w3.org/2000/svg'><path d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/></svg>") no-repeat;
    background-position: calc(100% - 10px) calc(50% + 2px) !important;
    -moz-appearance: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

.referral-program-section .referral-program-card {
    background-color: #0C111D;
    border-radius: 12px;
    border: 1px solid #333741;
    margin-bottom: 16px;
    overflow: hidden;
}

.referral-program-section .referral-program-card .card-header {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 35px;
    z-index: 1;
}

.referral-program-section .referral-program-card .card-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../assets/refreel-glow.png') no-repeat;
    background-size: cover;
    background-position: top left;
    z-index: -1;
}

.referral-program-section .referral-program-card .card-header .icon {
    width: auto;
    height: 40px;
}

.referral-program-section .referral-program-card .card-header .icon img {
    height: 100%;
}

.referral-program-section .referral-program-card .card-header .icon h3 {
    font-size: 24px;
    font-weight: 600;
    color: #f5f5f6;
    margin: 0;
}

.referral-program-section .referral-program-card .btn-generate-code {
    padding: 10px 16px;
    border-radius: 8px;
    border: none;
    background-color: #0171E3;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-transform: capitalize;
    box-shadow: none;
    border: none;
}

.referral-program-section .referral-program-card .btn-generate-code:hover {
    background-color: #015AB6;
}

.referral-program-section .referral-program-card .btn-generate-code:disabled {
    color: #85999E;
    background-color: #1F242F;
}

.referral-program-section .referral-program-card .card-content {
    padding: 30px 35px;
}
.referral-program-section .referral-program-card .card-content h4 {
    font-size: 14px;
    color: #85999E;
    font-weight: 400;
    margin-bottom: 0px;
}

.referral-program-section .referral-program-card .card-content .card-title {
    font-size: 16px;
    font-weight: 600;
    color: #f5f5f6;
    margin-bottom: 15px;
}

.referral-program-section .referral-program-card .card-content .input-grp {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 15px;
}

.referral-program-section .referral-program-card .card-content .input-grp .label {
    font-size: 14px;
    color: #f5f5f6;
    font-weight: 400;
    text-align: left;
    min-width: 130px;
}

.referral-program-section .referral-program-card .card-content .input-grp input {
    width: 100%;
    padding: 8px 24px;
    border-radius: 8px;
    border: 1px solid #333741;
    background: transparent;
    box-shadow: none;
    text-align: center;
    outline: none;
    color: #85999E;
    font-weight: 600;
    font-size: 14px;
    text-align: left;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.referral-program-section .referral-program-card .card-content .input-grp .btn-copy-code {
    padding: 0;
    border: none;
    background: transparent;
    outline: none;
    box-shadow: none;
    margin-left: 15px;

}

.referral-program-section .referral-program-card .card-content .input-grp .btn-copy-code img {
    min-width: 20px;
}

.referral-program-section .referral-program-card .card-content .description {
    display: inline-block;
    font-size: 14px;
    line-height: 1.42;
    color: #85999E;
    margin-bottom: 14px;
}

.referral-program-section .referral-program-card .card-content .top-recruits-details {
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
}

.referral-program-section .referral-program-card .card-content .top-recruits-details .rank-banner img {
    width: 142px;
    height: 142px;
    border-radius: 8px;
}

.toggle-visibility-btn {
    background: transparent;
    border: none;
    outline: none;
    box-shadow: none;
    padding: 0;
    margin-left: 10px;
}

.toggle-visibility-btn img {
    margin: 0 !important;
}

/* ---- Responsive Design ---- */

@media (min-width: 1400px) and (max-width : 1599px) {}

@media (min-width: 1200px) and (max-width : 1399px) {
    .project-profiles-card .thumbnail {
        width: 220px;
        height: 220px;
    }

    .project-profiles-card .card-content .input-grp .label,
    .project-profiles-card .card-content .link-grp .label {
        /* min-width: 170px; */
    }

    .project-profiles-card .card-content .input-grp input {
        /* max-width: 400px; */
    }

    .referral-program-section .referral-program-card .card-header .icon {
        height: 35px;
    }

    .referral-program-section .referral-program-card .card-content .top-recruits-details .rank-banner img {
        width: 130px;
        height: 130px;
    }
    .path-dashboard .site-main {
        padding-left: 125px;
    }
    .field--name-field-dashboard-other-links-sec {
        padding: 0 20px;
        margin-left: 80px;
    }
    body.path-dashboard .footer-sec {
        margin-left: -125px;
    }
}

@media (min-width: 992px) and (max-width : 1199px) {
    .project-profiles-card .thumbnail {
        width: 200px;
        height: 200px;
    }

    .project-profiles-card .card-content {
        padding: 20px 30px;
    }

    .project-profiles-card .card-content .input-grp {
        margin-top: 12px;
    }

    .project-profiles-card .card-content .input-grp input {
        /* max-width: 300px; */
    }

    .project-profiles-card .project-card-header .btn-edit {
        width: 30px;
        height: 30px;
    }

    .project-profiles-card .project-card-header .btn-edit .icon-pencil {
        width: 15px;
        height: 15px;
        margin-bottom: 5px;
    }

    .project-profiles-card .card-content .input-grp .label,
    .project-profiles-card .card-content .link-grp .label {
        min-width: 150px;
    }

    .referral-program-section .referral-program-card .card-header {
        padding: 20px 20px;
    }

    .referral-program-section .referral-program-card .card-header .icon {
        height: 30px;
    }

    .referral-program-section .referral-program-card .btn-generate-code {
        padding: 8px 12px;
        border-radius: 5px;
        font-size: 12px;
    }

    .referral-program-section .referral-program-card .card-content {
        padding: 20px 20px;
    }

    .referral-program-section .referral-program-card .card-content .card-title {
        margin-bottom: 15px;
    }

    .referral-program-section .referral-program-card .card-content .input-grp {
        margin-bottom: 15px;
    }

    .referral-program-section .referral-program-card .card-content .input-grp input {
        max-width: 165px;
        padding: 7px 8px;
        font-size: 13px;
    }

    .referral-program-section .referral-program-card .card-content .input-grp .btn-copy-code {
        margin-left: 5px;
    }

    .referral-program-section .referral-program-card .card-content .top-recruits-details .rank-banner img {
        width: 120px;
        height: 120px;
    }
    .profile-social-section .social-body ul li {
        width: 100%;
        padding: 0 !important;
    }
    .profile-social-section .social-body .connect-btn {
        margin-left: 15px;
    }
}

@media (min-width: 768px) and (max-width : 991px) {
    .project-profiles-card {
        /* flex-direction: column; */
    }

    .project-profiles-card .thumbnail {
        width: 150px;
        height: 150px;
    }

    .project-profiles-card .card-content {
        padding: 20px 20px;
        width: 100%;
    }

    .project-profiles-card .card-content .input-grp .label,
    .project-profiles-card .card-content .link-grp .label {
        min-width: 138px;
    }

    .project-profiles-card .card-content .input-grp input {
        /* max-width: 300px; */
    }

    .project-profiles-card .project-card-header .btn-edit {
        width: 35px;
        height: 35px;
    }

    .project-profiles-card .project-card-header .btn-edit .icon-pencil {
        width: 18px;
        height: 18px;
    }

    .referral-program-section .referral-program-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .referral-program-section .referral-program-header .header-right {
        width: 100%;
        flex-direction: row;
        gap: 10px;
        align-items: center;
        justify-content: space-between;
    }

    .referral-program-section .referral-program-header .header-right p {
        margin-bottom: 0;
    }

    .referral-program-section .referral-program-card .card-header {
        padding: 25px 25px;
    }

    .referral-program-section .referral-program-card .card-header .icon {
        height: 30px;
    }

    .referral-program-section .referral-program-card .btn-generate-code {
        padding: 8px 12px;
        font-size: 12px;
    }

    .referral-program-section .referral-program-card .card-content {
        padding: 25px 25px;
    }

    .referral-program-section .referral-program-card .card-content .card-title {
        margin-bottom: 15px;
    }

    .referral-program-section .referral-program-card .card-content .input-grp {
        margin-bottom: 15px;
    }

    .referral-program-section .referral-program-card .card-content .input-grp input {
        max-width: 165px;
        padding: 7px 8px;
        font-size: 12px;
    }

    .referral-program-section .referral-program-card .card-content .input-grp .btn-copy-code {
        margin-left: 5px;
    }

    .referral-program-section .referral-program-card .card-content .top-recruits-details .rank-banner img {
        width: 120px;
        height: 120px;
    }
}

@media (min-width: 576px) and (max-width : 767px) {
    .project-profiles-card {
        /* flex-direction: column; */
    }

    .project-profiles-card .thumbnail {
        width: 150px;
        height: 150px;
    }

    .project-profiles-card .card-content {
        padding: 20px 20px;
        width: 100%;
    }

    .project-profiles-card .card-content h4 {
        font-size: 14px;
    }

    .project-profiles-card .card-content .input-grp {
        /* flex-direction: column;
        align-items: flex-start; */
        gap: 5px;
        margin-top: 10px;
    }

    .project-profiles-card .card-content .input-grp .label,
    .project-profiles-card .card-content .link-grp .label {
        min-width: 138px;
        font-size: 12px;
    }

    .project-profiles-card .card-content .input-grp input {
        /* max-width: 100%; */
        font-size: 12px;
    }

    .project-profiles-card .project-card-header .btn-edit {
        width: 35px;
        height: 35px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .project-profiles-card .project-card-header .btn-edit .icon-pencil {
        width: 15px;
        height: 15px;
    }

    .project-profiles-card .card-content .link-grp {
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 0;
    }

    .project-profiles-card .card-content .link-grp .label {
        padding: 0;
    }

    .project-profiles-card .card-content .link-grp .btn-copy-link {
        order: 1;
    }

    .project-profiles-card .card-content .link-grp a {
        width: 100%;
        order: 2;
        font-size: 12px;
    }

    .referral-program-section .referral-program-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .referral-program-section .referral-program-header .header-right {
        width: 100%;
        flex-direction: row;
        gap: 10px;
        align-items: center;
        justify-content: space-between;
    }

    .referral-program-section .referral-program-header .header-left p {
        margin-bottom: 0;
        font-size: 12px;
    }

    .referral-program-section .referral-program-header .header-right p {
        margin-bottom: 0;
        font-size: 12px;
    }

    .referral-program-section .referral-program-header .header-right p img {
        width: 15px;
        height: 15px;
    }

    .referral-program-section .referral-program-header .header-right select {
        padding: 7px 10px;
        padding-right: 30px;
        font-size: 12px;
        background-position: calc(100% - 10px) calc(50% + 1px) !important;
    }

    .referral-program-section .referral-program-card .card-header {
        padding: 35px 20px;
    }

    .referral-program-section .referral-program-card .card-header .icon {
        height: 30px;
    }

    .referral-program-section .referral-program-card .btn-generate-code {
        padding: 8px 12px;
        font-size: 12px;
        border-radius: 5px;
    }

    .referral-program-section .referral-program-card .card-content {
        padding: 20px 20px;
    }

    .referral-program-section .referral-program-card .card-content .card-title {
        margin-bottom: 10px;
        font-size: 14px;
    }

    .referral-program-section .referral-program-card .card-content .input-grp {
        margin-bottom: 10px;
    }

    .referral-program-section .referral-program-card .card-content .input-grp .label {
        font-size: 12px;
    }

    .referral-program-section .referral-program-card .card-content .input-grp input {
        max-width: 150px;
        padding: 7px 8px;
        font-size: 12px;
    }

    .referral-program-section .referral-program-card .card-content .input-grp .btn-copy-code {
        margin-left: 5px;
    }

    .referral-program-section .referral-program-card .card-content .description {
        font-size: 12px;
    }

    .referral-program-section .referral-program-card .card-content .top-recruits-details .rank-banner img {
        width: 120px;
        height: 120px;
    }
    .referral-program-section .referral-program-card .card-content h4 {
        font-size: 12px;
        margin-bottom: 0;
    }
}

@media (min-width: 320px) and (max-width : 575px) {
    .project-profiles-card {
        flex-direction: column;
    }

    .project-profiles-card .thumbnail {
        width: 100%;
        height: 180px;
    }

    .project-profiles-card .card-content {
        padding: 20px 20px;
        width: 100%;
    }

    .project-profiles-card .card-content h4 {
        font-size: 14px;
    }

    .project-profiles-card .card-content .input-grp {
        align-items: flex-start;
        gap: 5px;
        margin-top: 10px;
        flex-wrap: wrap;
    }

    .project-profiles-card .card-content .input-grp .label,
    .project-profiles-card .card-content .link-grp .label {
        font-size: 12px;
        min-width: unset;
        width: 100%;
    }

    .project-profiles-card .card-content .input-grp input {
        max-width: calc(100% - 70px);
        font-size: 12px;
    }

    .project-profiles-card .project-card-header .btn-edit {
        width: 35px;
        height: 35px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .project-profiles-card .project-card-header .btn-edit .icon-pencil {
        width: 15px;
        height: 15px;
    }

    .project-profiles-card .card-content .link-grp {
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 0;
    }

    .project-profiles-card .card-content .link-grp .label {
        padding: 0;
    }

    .project-profiles-card .card-content .link-grp .btn-copy-link {
        order: 1;
    }

    .project-profiles-card .card-content .link-grp a {
        width: 100%;
        order: 2;
        font-size: 12px;
    }

    .referral-program-section .referral-program-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .referral-program-section .referral-program-header .header-right {
        width: 100%;
        gap: 10px;
    }

    .referral-program-section .referral-program-header .header-left p {
        margin-bottom: 0;
        font-size: 12px;
    }

    .referral-program-section .referral-program-header .header-right p {
        margin-bottom: 0;
        font-size: 12px;
    }

    .referral-program-section .referral-program-header .header-right p img {
        width: 15px;
        height: 15px;
    }

    .referral-program-section .referral-program-header .header-right select {
        padding: 7px 10px;
        padding-right: 30px;
        font-size: 12px;
        background-position: calc(100% - 10px) calc(50% + 1px) !important;
    }

    .referral-program-section .referral-program-card .card-header {
        padding: 25px 10px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }

    .referral-program-section .referral-program-card .card-header .icon {
        height: 20px;
    }

    .referral-program-section .referral-program-card .btn-generate-code {
        padding: 8px 12px;
        font-size: 12px;
        border-radius: 5px;
    }

    .referral-program-section .referral-program-card .card-content {
        padding: 20px 10px;
    }

    .referral-program-section .referral-program-card .card-content .card-title {
        margin-bottom: 10px;
        font-size: 14px;
    }

    .referral-program-section .referral-program-card .card-content .input-grp {
        margin-bottom: 10px;
        flex-wrap: wrap;
        gap: 5px;
    }

    .referral-program-section .referral-program-card .card-content .input-grp .label {
        font-size: 12px;
        order: 1;
    }

    .referral-program-section .referral-program-card .card-content .input-grp input {
        max-width: 100%;
        padding: 7px 8px;
        font-size: 12px;
        order: 2;
    }

    .referral-program-section .referral-program-card .card-content .input-grp .btn-copy-code {
        margin-left: 5px;
        order: 1;
    }

    .referral-program-section .referral-program-card .card-content .description {
        font-size: 12px;
    }

    .referral-program-section .referral-program-card .card-content .top-recruits-details {
        flex-wrap: wrap;
    }

    .referral-program-section .referral-program-card .card-content .top-recruits-details .rank-banner img {
        width: 120px;
        height: 120px;
    }

    .profile-social-section .social-header .social-title,
    .project-profiles-header h3,
    .referral-program-section .referral-program-header h3 {
        font-size: 18px;
        line-height: 1.5;
    }
    .referral-program-section .referral-program-card .card-content h4 {
        font-size: 12px;
        margin-bottom: 0;
    }


}

.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background-color: #333;
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s ease-in-out;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast.toast-success {
    background-color: #4CAF50;
}

.toast.toast-error {
    background-color: #f44336;
}

.referral-program-card {
    position: relative;
}

.referral-program-card.loading {
    pointer-events: none;
    opacity: 0.7;
}

.loader-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.loader {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loader-text {
    margin-top: 10px;
    color: #333;
    font-weight: 500;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}