/* ====== DonatePay Carousel Widget ====== */

.dpc-wrapper {
    position: relative;
    overflow: hidden;
    direction: rtl;
    font-family: inherit;
}

.dpc-track-container {
    overflow: hidden;
    width: 100%;
}

.dpc-track {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    will-change: transform;
}

.dpc-slide {
    flex-shrink: 0;
    box-sizing: border-box;
}

/* ====== Card ====== */
.dpc-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.2s, transform 0.2s;
}

.dpc-card:hover {
    box-shadow: 0 12px 32px -4px rgba(30,44,51,0.15);
    transform: translateY(-3px);
}

/* ====== Image ====== */
.dpc-card-image-link {
    display: block;
    text-decoration: none;
}

.dpc-card-image {
    height: 220px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f1f5f9;
    transition: opacity 0.2s;
}

.dpc-card-image-link:hover .dpc-card-image {
    opacity: 0.9;
}

/* ====== Card Body ====== */
.dpc-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 14px;
}

.dpc-card-title-link {
    text-decoration: none;
}

.dpc-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #1E2C33;
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dpc-card-title-link:hover .dpc-card-title {
    color: #10B981;
}

/* ====== Progress ====== */
.dpc-progress-track {
    height: 8px;
    border-radius: 20px;
    background-color: #E2E8F0;
    overflow: hidden;
    position: relative;
}

.dpc-progress-fill {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    border-radius: 20px;
    background-color: #10B981;
    transition: width 1s ease;
}

/* ====== Amounts ====== */
.dpc-amounts {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.dpc-amount-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.dpc-amount-label {
    color: #94a3b8;
    font-weight: 500;
}

.dpc-raised-value {
    color: #10B981;
    font-weight: 700;
    font-size: 14px;
}

.dpc-target-value {
    color: #64748B;
    font-weight: 600;
}

.dpc-donors-value,
.dpc-percent-value {
    color: #1E2C33;
    font-weight: 600;
}

/* ====== Button ====== */
.dpc-donate-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    background-color: #1E2C33;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    transition: background-color 0.2s, transform 0.2s;
    border: none;
    cursor: pointer;
    margin-top: auto;
}

.dpc-donate-btn:hover {
    background-color: #2A3F49;
    transform: translateY(-1px);
}

.dpc-donate-btn svg {
    flex-shrink: 0;
}

/* ====== Navigation Arrows ====== */
.dpc-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #1E2C33;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background-color 0.2s, opacity 0.2s;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

.dpc-arrow:hover {
    background-color: #2A3F49;
}

.dpc-arrow svg {
    stroke: #fff;
}

.dpc-arrow-prev {
    right: -16px;
}

.dpc-arrow-next {
    left: -16px;
}

/* ====== Dots ====== */
.dpc-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    padding-bottom: 4px;
}

.dpc-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #CBD5E1;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.2s, transform 0.2s;
}

.dpc-dot.active {
    background-color: #1E2C33;
    transform: scale(1.3);
}

/* ====== Responsive ====== */
@media (max-width: 600px) {
    .dpc-arrow-prev { right: 4px; }
    .dpc-arrow-next { left: 4px; }
}
