main {
    max-width: 1400px;
    margin: auto;
}

.main-dash {
    margin: 1.44rem auto;
}

@media only screen and (max-width: 950px) {
    .main-dash {
        margin: 0rem;
        margin-top: 1rem;
        padding: 0.5rem;
    }

    .main-dash .text-section,
    .profile-view {
        padding: 1rem !important;
    }

    .profile-view {
        justify-content: space-between;
    }

    .profile-name {
        font-size: 13px;
    }

    .view-profile-btn-container {
        text-align: end;
    }

    .main-heading,
    .profile-view,
    .profile-card,
    .my-progress-dashboard,
    .my-progress-section,
    .swimmer-section {
        width: 100% !important;
    }

    .my-progress-dashboard {
        height: 100% !important;
    }

    .my-progress-section {
        border: none !important;
        border-bottom: 1px solid #ecedf0 !important;
    }

    .swimmer-section,
    .my-progress-section {
        padding: 1rem 0rem !important;
    }

    .upcoming-events {
        margin-top: 1.25rem;
    }

    .progress-section-dashboard {
        flex-direction: column;
    }
}

@media screen and (max-width: 950px) and (min-width: 600px) {
     {
        margin: 2rem 3rem 0px 3rem;
    }
}

@media screen and (max-width: 1200px) and (min-width: 950px) {
    .main-dash {
        margin: 2rem 4rem 0px 4rem;
    }
}

.progress-section-dashboard {
    display: flex;
    margin-top: 1.5rem;
    gap: 1.25rem;
}

.my-progress-dashboard {
    width: 65%;
    height: auto;
}

.my-progress-section {
    width: 45%;
    border-right: 1px solid #ecedf0;
}

.swimmer-section-info {
    height: auto;
}

.swimmer-info {
    border-bottom: 1px solid;
}

.completed-progress {
    padding: 0.75rem;
    margin-top: 1.25rem;
}

.swimmer-section {
    width: 55%;
}

.upcoming-events {
    width: 53%;
    /* height: 13.25rem; */
}

.events-list {
    margin-top: 1.25rem;
}

.events-list li {
    list-style: none;
    border-bottom: 1px solid;
    margin-bottom: 0.75rem;
}

.cards-title {
    font-weight: var(--semi);
    border-bottom: 1px solid;
}

@media only screen and (min-width: 1300px) {
    .view-profile-btn-container {
        padding-left: 4rem;
    }
}

.image-section {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

.clinic-image-section {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

/* safa */

.refer-friend {
    width: 25%;
    display: flex;
    padding: 20px;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    flex: 1 0 0;
    align-self: stretch;
}
.refer-friend-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    flex: 1 0 0;
    align-self: stretch;
}
.refer-friend-body h3 {
    color: #333;
    font-family: "DM Sans";
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: 120%;
}
.refer-friend-body p {
    color: #54595f;
    text-align: center;
    font-family: "DM Sans";
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 140%;
}

.gift-icon {
    display: flex;
    padding: 8px;
    align-items: center;
    gap: 8px;
    border-radius: 100px;
    background: #f9f9fb;
}
.popup-btn svg {
    margin-top: -22px;
}
.popup-btn {
    display: flex;
    width: 40px;
    height: 40px;
    padding: 8px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border-radius: 32px;
    background: #f9f9fb;
}
.profile-popup {
    display: flex;
    padding: 32px;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #fff;

    box-shadow: 0px 4px 8px 0px rgba(0, 0, 0, 0.08);
}
.refer-popup {
    display: flex;
    padding: 32px;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    border-radius: 5px;
    border: 1px solid #fff;
    background: #fff;
    box-shadow: 0px 4px 8px 0px rgba(0, 0, 0, 0.08);
}
.popup-close {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    flex: 1 0 0;
    align-self: end;
}
.popup-close-icon {
    display: flex;

    width: 32px;
    height: 32px;
    align-items: flex-start;
    gap: 8px;
}
.popup-surprise {
    display: flex;
    padding: 8px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}
.popup-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    align-self: stretch;
}
.popup-content-title {
    color: #333;
    font-family: "DM Sans";
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: 120%;
    text-transform: uppercase;
}
.popup-content-body {
    color: #54595f;
    text-align: center;
    font-family: "DM Sans";
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 170%;
    text-transform: capitalize;
}
.popup-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    align-self: stretch;
}
.popup-code {
    display: flex;
    height: 40px;
    padding: 10px 16px;
    justify-content: space-between;
    align-items: center;
    align-self: stretch;
}
.popup-code h3 {
    color: #0008ff;
    font-family: "DM Sans";
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 120%;
}
.popup-seperator {
    display: flex;
    align-items: center;
    gap: 12px;
    align-self: stretch;
}
.seperator-line {
    height: 1px;
    color: #333;
    flex: 1 0 0;
    background: #ecedf0;
}
.seperator-text {
    color: #54595f;
    font-family: "DM Sans";
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 120%;
}
.footer-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.footer-box-body {
    display: flex;
    padding: 8px 16px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 4px;
    border: 1px solid #1877f2;
    color: #1877f2;

    font-family: "DM Sans";
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
}
.footer-box-twitter {
    display: flex;
    padding: 8px 16px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 4px;
    border: 1px solid #000;

    color: #000;

    font-family: "DM Sans";
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
}

@media (max-width: 768px) {
    .actions {
        grid-template-columns: 1fr;
    }
    .card {
        width: 100%;
    }
    .navbar-toggler {
        background: #289f35;
        padding: 0.25rem 0.45rem !important;
    }
    .navbar-toggler {
        color: transparent !important;
        border-color: transparent !important;
    }

    .icon-bars {
        color: #fff;
    }
    .profile-popup {
        width: 100%;
    }
}
