/* --- HEADER BACKGROUND --- */
.campaign-header {
    /* Use an image of a flag waving or a crowd */
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('campaign-bg.jpg');
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    text-align: center;
    color: #ffffff;
}

.campaign-header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

/* --- HOME PAGE CARD STYLES --- */
.campaign-card {
    padding: 0 !important; /* Reset padding for full-width image */
    overflow: hidden; /* Keeps image inside rounded corners */
    display: flex;
    flex-direction: column;
}

.campaign-img {
    position: relative;
    height: 200px;
    width: 100%;
}

.campaign-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.status-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    color: #fff;
    text-transform: uppercase;
}

.status-badge.live { background-color: #ff0000; box-shadow: 0 0 10px rgba(255,0,0,0.5); }
.status-badge.completed { background-color: #28a745; }
.status-badge.upcoming { background-color: #ffc107; color: #000; }

.campaign-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.campaign-content h3 {
    margin-bottom: 5px;
    font-size: 1.3rem;
}

.campaign-content .date {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 15px;
    font-weight: 600;
}

.campaign-content p {
    flex-grow: 1; /* Pushes button to bottom */
    margin-bottom: 20px;
    font-size: 0.95rem;
}

/* --- CAMPAIGNS.HTML PAGE STYLES --- */

/* Tabs */
.campaign-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
}

.campaign-tabs .tab {
    padding: 10px 25px;
    border: 2px solid var(--primary);
    background: transparent;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
}

.campaign-tabs .tab.active, .campaign-tabs .tab:hover {
    background: var(--primary);
    color: #000;
}

/* Large Campaign Row Layout */
.campaign-row {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-bottom: 40px;
}

/* Reverse layout for alternate items */
.campaign-row.reverse {
    flex-direction: row-reverse;
}

.camp-img-box {
    flex: 1;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.camp-img-box img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s;
}

.camp-img-box:hover img {
    transform: scale(1.05);
}

.status-label {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: bold;
}

.status-label.live { border-left: 5px solid red; }
.status-label.success { border-left: 5px solid #28a745; }

.camp-info-box {
    flex: 1;
}

.camp-info-box h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.camp-info-box .meta {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 20px;
    font-weight: 600;
}

.camp-info-box .desc {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 25px;
    color: #444;
}

.divider {
    border: 0;
    height: 1px;
    background: #e0e0e0;
    margin: 60px 0;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .campaign-row, .campaign-row.reverse {
        flex-direction: column;
    }
    
    .camp-img-box img {
        height: 250px;
    }

    .campaign-header h1 {
        font-size: 2.2rem;
    }
}