/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

 .wpfc-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.wpfc-campaign-header {
    text-align: center;
    margin-bottom: 48px;
    background: #f3f3f3;
    padding: 56px 16px;
}

.wpfc-title {
    font-size: 36px;
    font-weight: 800;
    color: #000;
    margin: 0 0 20px 0;
}

.wpfc-description {
    font-size: 20px;
    font-weight: 600;
    max-width: 580px;
    margin: 0 auto;
    color: #4a5565;
}

.wpfc-campaigns-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
}

.wpfc-campaign-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: white;
    border-radius: var(--wpfc-border-radius);
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1)) drop-shadow(0 1px 1px rgba(0, 0, 0, 0.06));
    overflow: hidden;
}
.wpfc-campaign-card:focus,
.wpfc-campaign-card-link:focus {
    outline: none;
    /* box-shadow: 0 0 0 2px var(--wpfc-primary-color); */
}

.wpfc-campaign-card-link{
    transition: none;
}

.wpfc-campaign-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.wpfc-campaign-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* .wpfc-campaign-card:hover .wpfc-campaign-image img {
    transform: scale(1.05);
} */

.wpfc-placeholder-image {
    width: 100%;
    height: 100%;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
}

.wpfc-company-logo {
    position: absolute;
    bottom: -20px;
    left: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: white;
    padding: 3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.wpfc-company-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.wpfc-campaign-body {
    padding: 1.5rem;
    position: relative;
}

.wpfc-campaign-title {
    text-align: center;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 16px;
    color: #364153;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    padding: 0px;
}

.wpfc-campaign-video {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    background-color: var(--wpfc-secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.wpfc-progress-container {
    margin: 8px 0px 0px 0px;
}

.wpfc-progress-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.16px;
    color: #1c1c1c;
}

.wpfc-progress-bar {
    height: 8px;
    background-color: #ebe6e7;
    border-radius: 4px;
    overflow: hidden;
}

.wpfc-progress-fill {
    height: 100%;
    background-color: var(--wpfc-primary-color);
    border-radius: 4px;
}

.wpfc-campaign-details {
    margin: 1rem 0;
    font-size: 0.9rem;
    color: #666;
}
.wpfc-campaign-card .wpfc-campaign-details {
    font-size: 15px;
    font-weight: 300;
    line-height: 20px;
    color: #414141;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wpfc-campaign-card .wpfc-campaign-details p,
.wpfc-campaign-card .wpfc-campaign-details h1,
.wpfc-campaign-card .wpfc-campaign-details h2,
.wpfc-campaign-card .wpfc-campaign-details h3 {
    margin: 0px;
    padding: 0px;
    font-size: 15px;
    font-weight: 300;
    line-height: 20px;
    color: #414141;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

p.wpfc-all-camp {
    font-size: 20px;
    font-weight: 600;
    color: #000;
    margin: 20px 0px;
}
.wpfc-campaign-details p {
    margin-bottom: 0.5rem;
}

.wpfc-campaign-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.wpfc-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

.wpfc-btn-primary {
    background-color: var(--wpfc-primary-color);
    color: white !important;
}

.wpfc-btn-primary:hover {
    background-color: #1d6349;
    text-decoration: none;
}

.wpfc-btn-outline {
    background-color: transparent;
    color: var(--wpfc-primary-color) !important;
    border: 1px solid var(--wpfc-primary-color);
}

.wpfc-btn-outline:hover {
    background-color: rgba(37, 120, 92, 0.08);
    text-decoration: none;
}

.wpfc-donation-count {
    display: flex;
    align-items: center;
    line-height: normal;
    gap: 5px;
    font-size: 16px;
    color: #4a5565;
    margin: 0;
    padding: 0;
    font-weight: 300;
}

.wpfc-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 12px;
    margin-left: 0.5rem;
}

.wpfc-badge-funded {
    background-color: rgba(39, 174, 96, 0.1);
    color: #27ae60;
}

.wpfc-badge-half-funded {
    background-color: rgba(243, 156, 18, 0.1);
    color: #f39c12;
}

.wpfc-badge-partial-funding {
    background-color: rgba(37, 120, 92, 0.1);
    color: var(--wpfc-primary-color);
}

.wpfc-campaign-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    line-height: normal;
}

.wpfc-campaign-pledge {
    font-size: 0.85rem;
    color: #666;
}

.wpfc-campaign-pledge span {
    font-weight: 600;
    color: var(--wpfc-primary-color);
}

.wpfc-campaign-date {
    font-size: 0.85rem;
    color: #666;
}

.wpfc-play-icon {
    width: 18px;
    height: 18px;
    fill: white;
}

.wpfc-error {
    padding: 15px;
    background-color: #f8d7da;
    color: #721c24;
    border-radius: 4px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .wpfc-container {
        padding: 1rem;
    }
    
    .wpfc-campaigns-container {
        grid-template-columns: 1fr;
    }
    
    .wpfc-title {
        font-size: 2rem;
    }
}

.wpfc-campaign-footer .wpfc-campaign-donation {
    font-size: 16px;
    color: #000;
    margin: 0;
    padding: 0;
    font-weight: 400;
}

.wpfc-campaign-footer .wpfc-campaign-percentage{
    font-size: 16px;
    color: #00a63e;
    margin: 0;
    padding: 0;
    font-weight: 300;
}

