body {
    background: #f5f7fa;
}

/* Listing cards */
.card.event-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.09);
    overflow: hidden;
    transition: all 0.3s ease-in-out;
    background: #fff;
    position: relative;
}

.card.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.card-img-wrapper img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    color: #222;
}

.card-text {
    font-size: 14px;
    color: #555;
}

.past-event {
    opacity: 0.6;
}

.status-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #28a745;
    color: #fff;
    padding: 4px 12px;
    font-size: 12px;
    border-radius: 20px;
    font-weight: 600;
    z-index: 10;
}

.status-badge.closed {
    background: #6c757d;
}

.status-badge.pending {
    background: #ffc107;
    color: #000;
}

.card-buttons {
    margin-top: 10px;
}

.card-buttons .btn {
    font-size: 12px;
    padding: 6px 14px;
    margin: 3px;
    text-transform: uppercase;
}

.section-title {
    font-size: 32px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 30px;
    color: #222;
}

.form-select,
.search-bar-section input[type=search] {
    font-size: 0.9rem !important;
}

.shop-sidebar .sidebar-search .search-form .form-group button {
    right: 78px !important;
}

/* Progress */
.progress {
    height: 10px;
    border-radius: 999px;
    overflow: hidden;
    background: #e5e7eb;
}

.progress-bar {
    background: linear-gradient(90deg, #0d6efd, #6610f2);
    font-size: 10px;
    line-height: 10px;
}

/* Detail page */
.fundraising-page {
    padding: 40px 0;
}

.fundraising-breadcrumbs {
    font-size: 13px;
    margin-bottom: 16px;
    color: #6c757d;
}

.fundraising-breadcrumbs a {
    color: #298bf3;
    text-decoration: none;
}

.fundraising-breadcrumbs span {
    color: #444;
}

.fundraising-hero {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.08);
    margin-bottom: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.fundraising-hero-left {
    flex: 1 1 340px;
    min-width: 340px;
}

.fundraising-hero-right {
    flex: 1 1 260px;
    min-width: 260px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
}

.campaign-main-image {
    width: 90%;
    border-radius: 14px;
    object-fit: cover;
    max-height: 360px;
}

.campaign-thumbs {
    margin-top: 10px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.campaign-thumb {
    flex: 0 0 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s ease, transform 0.15s ease;
}

.campaign-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.campaign-thumb.active {
    border-color: #0d6efd;
    transform: translateY(-1px);
}

.campaign-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 6px;
    color: #1f2933;
}

.campaign-meta {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 12px;
}

.campaign-meta span {
    margin-right: 12px;
}

.badge-status {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 999px;
    font-weight: 600;
    margin-right: 6px;
}

.badge-running {
    background: #e6f4ea;
    color: #137333;
}

.badge-pending {
    background: #fff4e5;
    color: #9a5a00;
}

.badge-closed {
    background: #fde7e9;
    color: #b00020;
}

.progress-wrapper {
    margin: 14px 0;
}

.progress-label-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 6px;
}

.stats-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: #444;
    margin-top: 4px;
}

.stats-row strong {
    font-weight: 700;
}

.donate-panel {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #f3f4ff;
    border: 1px solid #e0e2ff;
}

.donate-panel p {
    margin: 0 0 8px;
    font-size: 14px;
}

.donate-amounts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.donate-pill {
    border-radius: 999px;
    padding: 4px 12px;
    border: 1px solid #cdd4ff;
    background: #fff;
    font-size: 13px;
    cursor: pointer;
}

.donate-pill.active {
    background: #0d6efd;
    color: #fff;
    border-color: #0d6efd;
}

.donate-input {
    max-width: 160px;
}

.donate-btn {
    margin-top: 8px;
    width: 100%;
}

/* Layout */
.layout-main {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 10px;
}

.layout-left {
    flex: 1 1 400px;
    min-width: 0;
}

.layout-right {
    flex: 0 0 320px;
    max-width: 320px;
}

.card-section {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
    margin-bottom: 20px;
}

.card-section h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.card-section p {
    font-size: 14px;
    color: #444;
}

/* CMS content */
.cms-content ul {
    list-style: none;
}

.cms-content ul li {
    position: relative;
    padding-left: 1.2rem;
    color: #444;
    font-size: 14px;
    font-weight: 600;
}

.cms-content ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: #6b7280;
    font-weight: bold;
}

.cms-content li {
    list-style: inherit;
    margin-bottom: 0.35rem;
}

.cms-content b,
.cms-content strong {
    font-weight: 600;
}

.styled-list {
    list-style: disc !important;
    padding: 0;
    margin: 0;
}

/* Tags and sharing */
.tags-box {
    margin-top: 8px;
}

.tag-btn {
    display: inline-block;
    margin: 0 4px 4px 0;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    background: #e3f2fd;
    color: #0d47a1;
    text-decoration: none;
}

.social-share .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    margin-right: 8px;
    margin-bottom: 8px;
    font-size: 14px;
    padding: 6px 12px;
    white-space: nowrap;
}

.social-share .btn i {
    margin-right: 6px;
}

.social-share .btn-facebook {
    background: #3b5998;
    color: #fff;
}

.social-share .btn-twitter {
    background: #1da1f2;
    color: #fff;
}

.social-share .btn-linkedin {
    background: #0077b5;
    color: #fff;
}

.social-share .btn-email {
    background: #ea4335;
    color: #fff;
}

/* Donors and media */
.donor-list-item {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    padding: 6px 0;
    border-bottom: 1px dashed #e0e0e0;
    font-weight: 600;
}

.donor-list-item:last-child {
    border-bottom: none;
}

.media-block audio,
.media-block iframe,
.media-block video {
    width: 100%;
    border-radius: 12px;
}

/* Tablet */
@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) {
    .layout-right {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        margin: 0;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .section-title {
        font-size: 24px;
    }
}

@media (max-width: 767px) {
    .fundraising-hero {
        padding: 16px;
    }

    .fundraising-hero-left {
        min-width: 100%;
    }

    .campaign-title {
        font-size: 22px;
    }

    .campaign-main-image {
        width: 100%;
    }

    .layout-main {
        flex-direction: column;
    }

    .layout-right {
        max-width: 100%;
        flex: 1 1 auto;
    }
}