/* SPACING */
/* Margins */
.m-0 {
    margin: 0 !important;
}

.m-1 {
    margin: 0.25rem !important;
}

.m-2 {
    margin: 0.5rem !important;
}

.m-3 {
    margin: 1rem !important;
}

.m-4 {
    margin: 1.5rem !important;
}

.m-5 {
    margin: 3rem !important;
}

/* Margin Top */
.mt-0 {
    margin-top: 0 !important;
}

.mt-1 {
    margin-top: 0.25rem !important;
}

.mt-2 {
    margin-top: 0.5rem !important;
}

.mt-3 {
    margin-top: 1rem !important;
}

.mt-4 {
    margin-top: 1.5rem !important;
}

.mt-5 {
    margin-top: 3rem !important;
}

/* Margin Bottom */
.mb-0 {
    margin-bottom: 0 !important;
}

.mb-1 {
    margin-bottom: 0.25rem !important;
}

.mb-2 {
    margin-bottom: 0.5rem !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.mb-5 {
    margin-bottom: 3rem !important;
}

/* Margin Start (Left) */
.ms-0 {
    margin-left: 0 !important;
}

.ms-1 {
    margin-left: 0.25rem !important;
}

.ms-2 {
    margin-left: 0.5rem !important;
}

.ms-3 {
    margin-left: 1rem !important;
}

.ms-4 {
    margin-left: 1.5rem !important;
}

.ms-5 {
    margin-left: 3rem !important;
}

/* Margin End (Right) */
.me-0 {
    margin-right: 0 !important;
}

.me-1 {
    margin-right: 0.25rem !important;
}

.me-2 {
    margin-right: 0.5rem !important;
}

.me-3 {
    margin-right: 1rem !important;
}

.me-4 {
    margin-right: 1.5rem !important;
}

.me-5 {
    margin-right: 3rem !important;
}

/* Padding (follows same pattern as margin) */
.p-0 {
    padding: 0 !important;
}

.p-1 {
    padding: 0.25rem !important;
}

.p-2 {
    padding: 0.5rem !important;
}

.p-3 {
    padding: 1rem !important;
}

.p-4 {
    padding: 1.5rem !important;
}

.p-5 {
    padding: 3rem !important;
}

/* TYPOGRAPHY */
/* Font Sizes */
.fs-1 {
    font-size: 2.5rem !important;
}

.fs-2 {
    font-size: 2rem !important;
}

.fs-3 {
    font-size: 1.75rem !important;
}

.fs-4 {
    font-size: 1.5rem !important;
}

.fs-5 {
    font-size: 1.25rem !important;
}

.fs-6 {
    font-size: 1rem !important;
}

.fs-7 {
    font-size: 0.875rem !important;
}

.lh-5 {
    line-height: 1.25rem !important;
}

.lh-6 {
    line-height: 1rem !important;
}

.lh-7 {
    line-height: 0.875rem !important;
}

/* Font Weight */
.fw-bold {
    font-weight: 700 !important;
}

.fw-bolder {
    font-weight: bolder !important;
}

.fw-normal {
    font-weight: 400 !important;
}

.fw-light {
    font-weight: 300 !important;
}

.fw-lighter {
    font-weight: lighter !important;
}

/* Text Alignment */
.text-start {
    text-align: left !important;
}

.text-center {
    text-align: center !important;
}

.text-end {
    text-align: right !important;
}

/* Text Transform */
.text-uppercase {
    text-transform: uppercase !important;
}

.text-lowercase {
    text-transform: lowercase !important;
}

.text-capitalize {
    text-transform: capitalize !important;
}

/* COLORS */
/* Text colors (using Joomla's default color palette) */
.text-rabenu-brown {
    color: var(--rabenu-brown-color) !important;
}

.text-primary {
    color: #2a69b8 !important;
}

.text-secondary {
    color: #6c757d !important;
}

.text-success {
    color: #457d54 !important;
}

.text-danger {
    color: #c52827 !important;
}

.text-warning {
    color: #ffc107 !important;
}

.text-info {
    color: #0dcaf0 !important;
}

.text-light {
    color: #f8f9fa !important;
}

.text-dark {
    color: #212529 !important;
}

.text-muted {
    color: #6c757d !important;
}

/* Background colors */
.bg-primary {
    background-color: #2a69b8 !important;
}

.bg-secondary {
    background-color: #6c757d !important;
}

.bg-success {
    background-color: #457d54 !important;
}

.bg-danger {
    background-color: #c52827 !important;
}

.bg-warning {
    background-color: var(--rabenu-brown-color) !important;
}

.bg-info {
    background-color: #0dcaf0 !important;
}

.bg-light {
    background-color: #f8f9fa !important;
}

.bg-white {
    background-color: #ffffff !important;
}

.bg-dark {
    background-color: #212529 !important;
}

.bg-light-gray {
    background-color: var(--rabenu-very-light-gray-color) !important;
}

/* DISPLAY */
.d-none {
    display: none !important;
}

.d-inline {
    display: inline !important;
}

.d-inline-block {
    display: inline-block !important;
}

.d-block {
    display: block !important;
}

.d-grid {
    display: grid;
}

.d-grid-2 {
    grid-template-columns: 1fr 1fr;
}

.d-grid-3 {
    grid-template-columns: 1fr 1fr 1fr;
}

.d-grid-4 {
    grid-template-columns: 1fr 1fr 1fr 1fr;
}

.d-flex {
    display: flex !important;
}

.flex-1 {
    flex: 1;
}

.d-inline-flex {
    display: inline-flex !important;
}

/* FLEX */
.flex-row {
    flex-direction: row !important;
}

.flex-column {
    flex-direction: column !important;
}

.flex-row-reverse {
    flex-direction: row-reverse !important;
}

.flex-column-reverse {
    flex-direction: column-reverse !important;
}

.flex-wrap {
    flex-wrap: wrap;
}

/* Justify Content */
.justify-content-start {
    justify-content: flex-start !important;
}

.justify-content-end {
    justify-content: flex-end !important;
}

.justify-content-center {
    justify-content: center !important;
}

.justify-content-between {
    justify-content: space-between !important;
}

.justify-content-around {
    justify-content: space-around !important;
}

/* Align Items */
.align-items-start {
    align-items: flex-start !important;
}

.align-items-end {
    align-items: flex-end !important;
}

.align-items-center {
    align-items: center !important;
}

.align-items-baseline {
    align-items: baseline !important;
}

.align-items-stretch {
    align-items: stretch !important;
}

/* Gap */
.gap-0 {
    gap: 0 !important;
}

.gap-1 {
    gap: 0.25rem !important;
}

.gap-2 {
    gap: 0.5rem !important;
}

.gap-3 {
    gap: 1rem !important;
}

.gap-4 {
    gap: 1.5rem !important;
}

.gap-5 {
    gap: 3rem !important;
}

.pointer {
    cursor: pointer;
}

/* BORDERS */
.border {
    border: 1px solid #dee2e6 !important;
}

.border-0 {
    border: 0 !important;
}

.border-top {
    border-top: 1px solid #dee2e6 !important;
}

.border-bottom {
    border-bottom: 1px solid #dee2e6 !important;
}

.border-start {
    border-left: 1px solid #dee2e6 !important;
}

.border-end {
    border-right: 1px solid #dee2e6 !important;
}

.rounded {
    border-radius: 0.25rem !important;
}

.rounded-circle {
    border-radius: 50% !important;
}

.rounded-pill {
    border-radius: 50rem !important;
}

/* WIDTH & HEIGHT */
.w-25 {
    width: 25% !important;
}

.w-50 {
    width: 50% !important;
}

.w-40 {
    width: 40% !important;
}

.w-75 {
    width: 75% !important;
}

.w-100 {
    width: 100% !important;
}

.h-25 {
    height: 25% !important;
}

.h-50 {
    height: 50% !important;
}

.h-75 {
    height: 75% !important;
}

.h-100 {
    height: 100% !important;
}

.sixteen-nine {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
}

.sixteen-nine .sixteen-nine-child {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.com_donations .rounded-container {
    margin-bottom: 0;
}

/* Progress bar */
.progress-bar {
    width: 100%;
    height: 20px;
    border: 1px solid #4c7aaf;
    overflow: hidden;
    padding: 2px;
    box-sizing: border-box;
}

.progress {
    height: 100%;
    background: var(--rabenu-red-color);
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* Donation widget */
.donation-widget .share svg {
    height: 20px;
}

/* Quick donations */
.quick-donation-btn:hover {
    background-color: #fffaf6;
    cursor: pointer;
}

.quick-donation-btn {
    border: 2px solid var(--rabenu-brown-color);
    color: var(--rabenu-brown-color);
    padding: 0.5rem 1rem;
    text-align: center;
    flex: 1;
    text-wrap: nowrap;
    border-radius: 4px;
}

/* Donation list */
.donation-list .blog-items .intro-text {
    height: 40px;
}

.donation-list .blog-items .card-title {
    height: 54px;
}

.donation-list .blog-items .intro-text,
.donation-list .blog-items .card-title {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.donation-list .blog-item img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.donation-list p {
    margin: 0;
}

/* Donors widget */
.donors .sort .selected {
    font-weight: bold;
}

.donors .sort span:hover {
    color: var(--rabenu-brown-color);
}

.donors .sort {
    font-size: 13px;
    cursor: pointer;
}

.view-donations .donor-list {
    max-height: 2695px;
}

.donor-list {
    overflow-y: auto;
    max-height: 400px;
}

.uk-modal.uk-open {
    opacity: 1;
}

.uk-modal {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1010;
    overflow-y: auto;
    padding: 15px 15px;
    background: rgba(0, 0, 0, .6);
    opacity: 0;
    transition: opacity .15s linear;
}

.uk-scope.uk-open>.uk-modal-dialog {
    opacity: 1;
    transform: translateY(0);
}

.uk-scope.uk-modal-container .uk-modal-dialog {
    width: 1200px;
}

.rtl .uk-scope [class*=uk-modal-close-] {
    left: 10px;
    right: auto;
}