.volunteer-card {
    height: max-content;
}

.volunteer-card-link {
    color: inherit;
    text-decoration: none;
}

.volunteer-card-link:hover {
    color: inherit;
    text-decoration: none;
}

.volunteer-empty-state {
    padding: 2rem;
    background: var(--white-1);
    border: 1px solid #EAEAEA;
    border-radius: 1rem;
    color: var(--wb-theme-text);
    text-align: center;
    font-size: 16px;
    font-weight: 600;
}

.volunteer-card .card  {
    display: flex;
    justify-content: space-between;
    row-gap: 0.5rem;
    border: 1px solid #E1EFFD;
    box-shadow: 0px 3px 8px 0px #191E220A;
    border-radius: 1.5rem;
    margin: unset !important;
    margin-top: -8rem !important;
}

.volunteer-card .body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    row-gap: 2rem;
    margin-bottom: 2rem;
}

/* img-wrapper */

.volunteer-card .img-wrapper {
    position: relative;
}

.volunteer-card .img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1.5rem;
}

/* img-wrapper */

/* content-wrapper */

.volunteer-card .content-wrapper {
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.volunteer-card .content-wrapper .content {
    height: 48px;
}

.volunteer-card .content-wrapper .title {
    background: var(--wb-theme-secondary);
    padding: 1rem .75rem;
    border-radius: 0.75rem;
}

.volunteer-card .content-wrapper .title .text {
    color: white;
    font-weight: bold;
    line-height: 1.7 !important;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.volunteer-card .content-wrapper .content span {
    color: var(--wb-theme-text);
    font-weight: 600;
    line-height: 1.7 !important;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.volunteer-card .content-wrapper  .details {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.volunteer-card .content-wrapper  .details .amount {
    background: var(--wb-theme-secondary);
    padding: 1rem .75rem;
    border-radius: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.volunteer-card .content-wrapper  .details .progress-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.volunteer-card .content-wrapper  .details .progress-container .progress {
    height: 7px;
    flex-grow: 1;
}

.volunteer-card .content-wrapper  .details .progress-container .progress-bar {
    background: var(--wb-theme-secondary);
}

.volunteer-card .content-wrapper  .details .num {
    color: white;
}
.volunteer-card .content-wrapper .details .progress-container span {
    color: var(--wb-theme-primary);
}
.volunteer-card .content-wrapper  .details span {
    color: white;
}
/* content-wrapper */

/* footer-wrapper */

.volunteer-card .footer-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 1.5rem;
}

.volunteer-card .footer-wrapper .inputs {
    width: 100%;
    display: flex;
    gap: 0.5rem;
}

.volunteer-card .footer-wrapper .inputs .count {
    display: flex;
    gap: 0.5rem;
}

.volunteer-card .footer-wrapper .inputs .count .btn {
    min-width: max-content;
    background: var(--wb-theme-primary);
    color: var(--white-1);
}

.volunteer-card .footer-wrapper .inputs .count .form-control {
    text-align: center;
}

.volunteer-card .footer-wrapper .controls {
    display: flex;
    align-items: stretch;
    gap: 1rem;
}

.volunteer-card .footer-wrapper .controls .btn {
    min-width: max-content;
}

.volunteer-card .footer-wrapper .controls .btn.outline {
    aspect-ratio: 1/1;
}

.volunteer-card .footer-wrapper .controls .btn.outline svg path.stroke-fill {
    stroke: var(--wb-theme-primary);
    fill: var(--wb-theme-primary);
}

.volunteer-card .footer-wrapper .controls .btn.outline svg path {
    fill: var(--wb-theme-primary);
}

.volunteer-card .footer-wrapper .controls .btn.filled {
    aspect-ratio: 1/1;
    background: #1A9F58;
    border-color: #1A9F58;
}

.volunteer-card .footer-wrapper .controls .btn.outline svg path {
    fill: var(--wb-theme-primary);
}

.volunteer-card .footer-wrapper .controls .card-action {
    border: 0;
    background: var(--wb-theme-primary);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    border-radius: 0.75rem;
    flex-grow: 1;
    align-self: stretch;
    color: var(--white-1);
    font-weight: bold;
    text-decoration: none;
    padding: 0 1rem;
}

.volunteer-card .footer-wrapper .controls .card-action .icon {
    height: calc(100% + 1rem);
    aspect-ratio: 1/1;
    background: var(--wb-theme-primary);
    position: absolute;
    top: -0.5rem;
    left: -0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid var(--white-1);
    border-radius: 50%;
}

.volunteer-card .footer-wrapper .pending {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: #CE800A;
    color: var(--white-1);
    font-weight: bold;
    padding: 1rem;
    border-radius: 0.75rem;
}

.volunteer-card .footer-wrapper .completed {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: #1A9F58;
    color: var(--white-1);
    font-weight: bold;
    padding: 1rem;
    border-radius: 0.75rem;
}

/* footer-wrapper */

.volunteer-completed-state {
    order: 3;
    flex: 0 0 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: #1A9F58;
    color: var(--white-1);
    font-weight: bold;
    padding: 1rem;
    border-radius: 0.75rem;
}

.volunteer-details-page {
    color: var(--wb-theme-text);
}

.volunteer-details-layout {
    row-gap: 2rem;
}

.volunteer-details-content,
.volunteer-details-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.volunteer-details-cover-wrap {
    position: relative;
}

.volunteer-details-cover {
    width: 100%;
    aspect-ratio: 810 / 354;
    min-height: 16rem;
    object-fit: cover;
    border-radius: 1rem;
}

.volunteer-date-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.75rem;
    background: rgba(0, 0, 0, 0.5);
    color: var(--white-1);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 12px;
    line-height: 1.7;
}

.volunteer-date-badge svg {
    width: 16px;
    height: 16px;
}

.volunteer-details-intro {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.volunteer-details-intro p {
    margin: 0;
    color: var(--wb-theme-text);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.9;
    text-align: right;
}

.volunteer-gallery-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
}

.volunteer-gallery-section h2,
.related-volunteers-card h2 {
    margin: 0;
    color: #043A30;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.8;
}

.volunteer-gallery-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.volunteer-gallery-grid img {
    width: 100%;
    aspect-ratio: 1.35 / 1;
    object-fit: cover;
    border: 2px solid rgba(42, 100, 133, 0.28);
    border-radius: 1rem;
}

.volunteer-info-card,
.related-volunteers-card {
    padding: 1rem;
    background: var(--white-1);
    border: 1px solid #EAEAEA;
    border-radius: 1.5rem;
    box-shadow: 0 3px 8px rgba(25, 30, 34, 0.04);
}

.volunteer-info-card {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: start;
}

.volunteer-progress-ring {
    order: 2;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: conic-gradient(var(--wb-theme-primary) 0 var(--volunteer-progress, 0%), #EAEAEA var(--volunteer-progress, 0%) 100%);
    display: grid;
    place-items: center;
}

.volunteer-progress-ring::before {
    content: "";
    width: 3.25rem;
    height: 3.25rem;
    grid-area: 1 / 1;
    border-radius: 50%;
    background: var(--white-1);
}

.volunteer-progress-ring span {
    position: relative;
    grid-area: 1 / 1;
    color: var(--wb-theme-primary);
    font-size: 13px;
    font-weight: 800;
}

.volunteer-info-card dl {
    order: 1;
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.volunteer-info-card dl > div {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.volunteer-info-card dt,
.volunteer-info-card dd {
    margin: 0;
    color: var(--wb-theme-text);
    font-size: 14px;
    line-height: 1.8;
}

.volunteer-info-card dt {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
}

.volunteer-info-card dd {
    /* padding-right: 1.5rem; */
}

.volunteer-info-card strong {
    color: #043A30;
}

.volunteer-info-card svg {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
}

.volunteer-info-card dt svg path
 {
    fill: var(--wb-theme-primary);
}
.related-volunteer-content span.date svg path {
    fill: var(--wb-theme-primary);
}
.volunteer-info-summary {
    gap: 0.125rem;
}

.volunteer-apply-button {
    order: 3;
    flex: 0 0 100%;
    min-height: 3rem;
    padding: 0 1rem 0 3.5rem;
    border: 0;
    border-radius: 0.75rem;
    background: var(--wb-theme-primary);
    color: var(--white-1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}

.volunteer-apply-button:hover {
    color: var(--white-1);
}

.volunteer-apply-button .icon {
    width: 3rem;
    height: 3rem;
    position: absolute;
    left: -0.75rem;
    top: 50%;
    transform: translateY(-50%);
    border: 4px solid var(--white-1);
    border-radius: 50%;
    background: var(--wb-theme-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.volunteer-apply-button .icon svg {
    width: 1.65rem;
    height: 1.65rem;
}

.related-volunteers-card h2 {
    margin-bottom: 1.25rem;
    color: #191C1D;
    text-align: right;
}

.related-volunteers-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.related-volunteer-item {
    min-height: 8.5rem;
    border: 1px solid #EAEAEA;
    border-radius: 0.75rem;
    overflow: hidden;
    display: grid;
    grid-template-columns: 9.25rem minmax(0, 1fr);
    background: var(--white-1);
}

.related-volunteer-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-volunteer-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.related-volunteer-content h3 {
    margin: 0;
    padding: 0.45rem 1rem;
    background: color-mix(in srgb, var(--wb-theme-primary) 10%, white 90%);
    color: #043A30;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.7;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.related-volunteer-content span {
    margin: 0.5rem 1rem;
    color: #727272;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 12px;
    line-height: 1.7;
}
.volunteer-apply-button span {
    color: white;
    margin: 0;
}
.related-volunteer-content span svg {
    width: 16px;
    height: 16px;
}

.volunteer-apply-button.is-compact {
    flex: 0 0 auto;
    margin: auto 1rem 0.75rem;
    min-height: 3rem;
    padding: 0 1rem 0 3.5rem;
    width: calc(100% - 2rem);
}

.volunteer-apply-modal .modal-dialog {
    max-width: 600px;
}

.volunteer-apply-modal .modal-content {
    padding: 2rem;
    border: 1px solid #EAEAEA;
    border-radius: 1.5rem;
    background: var(--white-1);
    box-shadow: 0 2px 11px rgba(0, 0, 0, 0.02);
}

.volunteer-apply-modal .modal-header {
    min-height: 2rem;
    padding: 0;
    border: 0;
    justify-content: flex-end;
}
.volunteer-apply-modal .modal-body form {
    width: 100%;
}
.volunteer-modal-close {
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--wb-theme-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
}

.volunteer-apply-modal .modal-body {
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.volunteer-modal-icon {
    width: 11.5rem;
    height: 11.5rem;
    border-radius: 50%;
    background: color-mix(in srgb, var(--wb-theme-primary) 10%, white 90%);
    color: var(--wb-theme-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
}

.volunteer-modal-copy {
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.volunteer-modal-copy h2 {
    margin: 0;
    color: #043A30;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.5;
}

.volunteer-modal-copy p {
    margin: 0;
    color: #606060;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
}

.volunteer-modal-actions {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.volunteer-modal-actions .btn {
    flex: 1 1 0;
    min-height: 3rem;
    border-radius: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
}

.volunteer-modal-confirm {
    border-color: var(--wb-theme-primary);
    background: var(--wb-theme-primary);
    color: var(--white-1);
}

.volunteer-modal-confirm:hover {
    border-color: var(--wb-theme-primary);
    background: var(--wb-theme-primary);
    color: var(--white-1);
}

.volunteer-modal-cancel {
    border-color: var(--wb-theme-primary);
    background: var(--white-1);
    color: var(--wb-theme-primary);
}

.volunteer-modal-cancel:hover {
    border-color: var(--wb-theme-primary);
    background: var(--white-1);
    color: var(--wb-theme-primary);
}

@media (max-width: 575.98px) {
    .volunteer-apply-modal .modal-content {
        padding: 1.25rem;
    }

    .volunteer-modal-icon {
        width: 8rem;
        height: 8rem;
        font-size: 3.5rem;
    }

    .volunteer-modal-actions {
        flex-direction: column;
    }

    .volunteer-modal-actions .btn {
        width: 100%;
    }
}

@media (max-width: 991.98px) {
    .volunteer-details-cover {
        min-height: 13rem;
    }
}

@media (max-width: 767.98px) {
    .volunteer-gallery-grid {
        grid-template-columns: 1fr;
    }

    .volunteer-progress-ring {
        justify-self: start;
    }
}

@media (max-width: 575.98px) {
    .related-volunteer-item {
        grid-template-columns: 1fr;
    }

    .related-volunteer-item img {
        height: 12rem;
        order: -1;
    }
}
