/* ==========================================
   FUNDRAISING SYSTEM STYLES - OPTIMIZED
   
   This CSS file has been optimized for:
   - Removed duplicate definitions
   - Consolidated similar rules
   - Merged responsive breakpoints
   - Organized animations
   - Improved maintainability
   
   IMPORTANT: This file consolidates ALL button, form,
   and component styles to avoid duplication across pages.
   ========================================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Reduce motion for accessibility and performance */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ==========================================
   CONSOLIDATED BUTTON STYLES
   ========================================== */

/* Base button styles - used globally */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 16px;
    gap: 8px;
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out, all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px) translateZ(0);
    text-decoration: none;
}

/* Typography Utilities */
.text-muted { color: var(--gray-500); }
.text-center { text-align: center; }

/* Background Utilities */
.bg-light { background-color: var(--gray-50); }

/* CSS Variables - Main Website Color Scheme */
:root {
    --card-bg-rgb: 255, 255, 255;
    
    /* Main Website Colors */

    /* RGB Values for transparency */
    --primary-rgb: 42, 95, 110;
    --secondary-rgb: 2, 134, 109;
    --accent-rgb: 255, 179, 71;
    
    /* Color helpers */
    --primary-color: rgb(var(--primary-rgb));
    --secondary-color: rgb(var(--secondary-rgb));
    --accent-color: rgb(var(--accent-rgb));
    
    /* Fundraising specific colors */
    --fundraising-primary: #e95159;
    --fundraising-primary-dark: #c0392b;
    
    /* Primary color variations */
    --primary: #2a5f6e;
    --primary-light: #3d7d8c;
    --primary-dark: #1f4853;
    
    /* Gray scale */
    --gray-50: #f9fafb;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    
    /* Spacing */
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    
    /* Font sizes */
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    
    /* Border radius */
    --radius-sm: 0.375rem;
   
    /* Shadows for consistency */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

/* Layout Utilities */
.container { max-width: 1200px; margin: 0 auto; padding: 0 var(--spacing-lg); }

/* Breadcrumb Styles */
.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 1rem;
    list-style: none;
    margin: -30px 0 var(--spacing-md);
    padding: 0;
}
.breadcrumb-item {
    position: relative;
    display: flex;
    align-items: center;
    color: var(--gray-600);
    font-size: var(--font-size-sm);
}
.breadcrumb-item:not(:last-child)::after {
    content: '›';
    margin-left: 1rem;
    color: var(--gray-400);
    font-size: 1.2rem;
    line-height: 1;
}
.breadcrumb-item a {
    color: var(--gray-600);
    text-decoration: none;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
}
.breadcrumb-item.active {
    color: #fff;
    background: var(--primary);
    border-radius: var(--radius-sm);
    padding: 0.25rem 0.5rem;
}

/* Page Header */
.page-header {
    position: relative;
    z-index: 1;
    padding: 60px 0 120px;
    overflow: visible;
    margin: 0;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-dark) 100%);
    color: white;

}
#particles-js { position: absolute; inset: 0; z-index: 1; }
.page-header__content { position: relative; z-index: 2; }
.page-header__lead {
    font-size: clamp(1rem, 1rem + .6vw, 1.1rem);
    line-height: 1.5;
    color: #fff;
    font-weight: 400;
    margin-top: var(--spacing-sm);
    margin-bottom: 10px;
}

.page-header__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.page-header .sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap; border: 0;
}


.page-header .breadcrumb-list { gap: 0.75rem; }
.page-header .breadcrumb-item {
    color: rgba(255,255,255,0.75);
    font-size: var(--font-size-xs);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-weight: 500;
}
.page-header .breadcrumb-item a {
    color: rgba(255,255,255,0.85);
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(4px);
    transition: background .25s ease, color .25s ease;
}
.page-header .breadcrumb-item a:hover {
    background: rgba(255,255,255,0.18);
    color: #fff;
}
.page-header .breadcrumb-item:not(:last-child)::after {
    content: '/';
    margin-left: 0.75rem;
    color: rgba(255,255,255,0.4);
    font-size: 0.75rem;
    transform: translateY(1px);
}
.page-header .breadcrumb-item.active {
    color: #fff;
    background: rgba(255,255,255,0.18);
    border-radius: var(--radius-sm);
    padding: 0.2rem 0.55rem;
}

/* Add spacing between consecutive sections */
.content-section + .content-section {
    margin-top: 0.25rem;
}


.bg-white {
    background: #fff;
}

.header-cta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 0rem;
    text-align: center;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border-color: var(--primary-dark);
}

.btn-primary:hover {
    background: var(--fundraising-primary-dark);
    border-color: var(--fundraising-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(2, 69, 57, 0.4);
}

.btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.btn-primary:focus {
    outline-color: var(--fundraising-primary);
}

.btn-outline-light {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-outline-light:hover {
    background: white;
    color: var(--primary);
}

.btn-lg {
    padding: 15px 30px;
    font-size: 18px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* Search and Filter Section */
.fundraising-filters {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    margin-bottom: -80px;
    transform: translateY(-90px);
    position: relative;
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.search-form .input-group {
    display: flex;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.search-form .form-control {
    border: none;
    padding: 15px 20px;
    font-size: 16px;
    flex: 1;
    outline: none;
}

.search-form .btn {
    border-radius: 0;
    padding: 15px 25px;
}

/* Campaign stats for overview sections (filters/search area) */
.campaign-stats-overview {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 15px 20px;
    border-radius: 15px;
    margin-top: 20px;
    max-width: 100%;
    width: 60%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.5rem;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

/* Campaign stats for individual campaign cards */
.campaign-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--gray-500);
    margin-top: 8px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.campaign-stats .stat-item {
    position: relative;
}

.campaign-stats .stat-item:not(:last-child)::after {
    content: '•';
    position: absolute;
    right: -8px;
    color: var(--gray-400);
    font-size: 10px;
}


.campaign-stats-overview .stat-number {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 4px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.campaign-stats-overview .stat-label {
    font-size: 13px;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
    margin-top: 2px;
}

/* Small stats for campaign cards */
.campaign-stats .stat-number {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-600);
}

.campaign-stats .stat-label {
    font-size: 11px;
    color: var(--gray-500);
    text-transform: lowercase;
}

/* Category Filter */
.category-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 30px;
    justify-content: center;
}

.category-filter {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: white;
    border: 2px solid var(--gray-400);
    border-radius: 25px;
    text-decoration: none;
    color: var(--gray-600);
    transition: all 0.3s ease;
    gap: 8px;
}

.category-filter:hover,
.category-filter.active {
    background: var(--fundraising-primary);
    color: white;
    border-color: var(--fundraising-primary);
    transform: translateY(-2px);
}

/* Trending Section */
.trending-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: 50px 0;
    margin-bottom: 50px;
    border-radius: 20px;
}

.trending-section h3 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
    font-weight: 700;
}

.trending-campaigns {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 20px;
    padding: 2rem;
    margin-top: -130px;
    margin-bottom: 2rem;
    color: white;
    box-shadow: 0 10px 30px rgba(var(--primary-rgb), 0.2);
}

.trending-campaigns h3 {
    color: white;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.trending-campaigns-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.trending-campaigns .campaign-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    max-height: 300px;
    overflow: hidden;
}

.trending-campaigns .campaign-card:hover {
    background: white;
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

/* Make trending campaign images smaller */
.trending-campaigns .campaign-image {
    height: 120px !important;
}

/* Reduce padding in trending campaign content */
.trending-campaigns .campaign-content {
    padding: 15px !important;
}

/* Hide some details in trending campaigns */
.trending-campaigns .campaign-description {
    display: none;
}

.trending-campaigns .campaign-stats {
    display: none;
}

.trending-campaigns .campaign-footer {
    display: none;
}

/* Make trending campaign titles smaller */
.trending-campaigns .campaign-title {
    font-size: 1.1rem !important;
    margin-bottom: 10px !important;
    line-height: 1.2;
}

/* Make trending campaign progress section more compact */
.trending-campaigns .campaign-progress {
    margin-bottom: 10px !important;
}

.trending-campaigns .progress-info {
    margin-bottom: 5px !important;
}

.trending-campaigns .progress-info-bottom {
    margin-top: 3px !important;
}

.trending-campaigns .spent-summary {
    font-size: 0.8rem !important;
    color: #28a745 !important;
}

.trending-campaigns .amount-raised {
    font-size: 0.95rem !important;
}

.trending-campaigns .goal-amount {
    font-size: 0.8rem !important;
}

.trending-campaigns .progress {
    height: 5px !important;
}

/* Campaign Cards */

.campaigns-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.campaign-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    will-change: transform;
}

.campaign-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.campaign-card.trending {
    box-shadow: 0 8px 30px rgba(var(--accent-rgb), 0.3);
    position: relative;
    overflow: hidden;
}

.campaign-card.trending::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
    z-index: 5;
}

.campaign-subcategory {
    position: absolute;
    top: 3rem;
    left: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.2rem 0.4rem;
    border-radius: 10px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    z-index: 1;
    max-width: calc(100% - 2rem);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.campaign-category {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: white;
    color: #f7f7f7;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}



.campaign-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.campaign-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.campaign-card:hover .campaign-image img {
    transform: scale(1.05);
}


.campaign-content {
    padding: 25px;
}

.campaign-title {
    margin-bottom: 15px;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.3;
}

.campaign-title a {
    color: var(--primary-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.campaign-title a:hover {
    color: var(--fundraising-primary);
}

.campaign-description {
    color: var(--gray-500);
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 14px;
}

.campaign-progress {
    margin-bottom: 20px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

/* Progress info bottom for spent amount */
.progress-info-bottom {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-top: 8px;
}

.spent-summary {
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 0.95rem;
}

.amount-raised {
    font-weight: 700;
    color: var(--primary-dark);
    font-size: 1.1rem;
}

.goal-amount {
    color: var(--gray-500);
    font-size: 14px;
}

.progress {
    height: 8px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: visible;
    margin-bottom: 12px;
    position: relative;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--fundraising-primary) 0%, var(--fundraising-primary-dark) 100%);
    border-radius: 10px;
    transition: width 0.3s ease;
}




.campaign-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    margin-top: 15px;
    background: linear-gradient(135deg, transparent 0%, rgba(0, 0, 0, 0.01) 100%);
}

.campaign-metadata {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.campaign-category-info {
    color: var(--gray-600);
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.campaign-category-info i {
    font-size: 12px;
}

.subcategory-divider {
    color: var(--gray-500);
    margin: 0 4px;
    font-size: 14px;
}

.subcategory-text {
    color: var(--gray-500);
    font-weight: 400;
}

.campaign-creator {
    color: var(--gray-500);
    font-size: 13px;
}

.campaign-actions {
    display: flex;
    gap: 10px;
}

.share-btn {
    background: var(--gray-500);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.share-btn:hover {
    background: var(--gray-600);
}

/* Create Campaign Form */
.create-campaign {
    background: #f8f9fa;
    min-height: 100vh;
    padding: 40px 0;
}

.campaign-form-card {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.campaign-form-card h2 {
    color: var(--primary-dark);
    margin-bottom: 30px;
    font-weight: 700;
    font-size: 2rem;
}

.form-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--gray-400);
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.form-section h4 {
    color: var(--gray-600);
    margin-bottom: 25px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-section h4 i {
    color: var(--primary);
}

.form-label {
    font-weight: 600;
    color: var(--gray-600);
    margin-bottom: 8px;
    display: block;
}

.form-control,
.form-select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--gray-400);
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
}

.form-control:focus,
.form-select:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(var(--fundraising-primary), 0.1);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
}

.form-text {
    font-size: 13px;
    color: var(--gray-500);
    margin-top: 5px;
}

.file-upload {
    border: 2px dashed var(--gray-400);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.file-upload:hover {
    border-color: var(--fundraising-primary);
    background: rgba(var(--fundraising-primary), 0.05);
}

.file-upload.dragover {
    border-color: var(--fundraising-primary);
    background: rgba(var(--fundraising-primary), 0.1);
}

.file-upload-icon {
    font-size: 3rem;
    color: #e74c3c;
    margin-bottom: 15px;
}

.file-upload-text {
    color: var(--gray-600);
    font-weight: 600;
    margin-bottom: 5px;
}

.file-upload-hint {
    color: var(--gray-500);
    font-size: 13px;
}

.image-preview {
    margin-top: 15px;
    border-radius: 8px;
    overflow: hidden;
    max-width: 300px;
}

.image-preview img {
    width: 100%;
    height: auto;
}

/* Form Grid */
.mb-3 {
    margin-bottom: 1rem;
    color: var(--gray-600);
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-md-4,
.col-md-6,
.col-md-8,
.col-lg-8,
.col-lg-4 {
    padding: 0 15px;
    width: 100%;
}

@media (min-width: 768px) {
    .col-md-4 { width: 33.333%; }
    .col-md-6 { width: 50%; }
    .col-md-8 { width: 66.666%; }
    
    .trending-campaigns-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 2rem;
    }
}

@media (min-width: 992px) {
    .col-lg-4 { width: 33.333%; }
    .col-lg-8 { width: 66.666%; }
    
    .trending-campaigns {
        padding: 3rem;
    }
    
    .trending-campaigns h3 {
        font-size: 2.2rem;
    }
    
    .trending-campaigns-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }
}

/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    border: none;
}

.alert-danger {
    background: rgba(var(--fundraising-primary), 0.1);
    color: var(--fundraising-primary-dark);
    border-left: 4px solid var(--fundraising-primary);
}

.alert-success {
    background: rgba(var(--secondary-rgb), 0.1);
    color: var(--secondary-color);
    border-left: 4px solid var(--secondary-color);
}

.alert ul {
    margin: 0;
    padding-left: 20px;
}

/* Campaign Guidelines Sidebar */
.guidelines-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: 15px;
    padding: 30px;
    position: sticky;
    top: 30px;
}

.guidelines-card h3 {
    margin-bottom: 20px;
    font-weight: 700;
}

.guidelines-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.guidelines-list li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.guidelines-list li:last-child {
    border-bottom: none;
}

.guidelines-list i {
    color: var(--accent-color);
    margin-top: 2px;
    flex-shrink: 0;
}

/* Success Page */


/* Success Page styles moved to consolidated section below */
.success-content {
    text-align: center;
    padding: 50px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.success-content h2 {
    color: var(--primary-dark);
    margin-bottom: 20px;
    font-weight: 700;
}

.success-content p {
    color: var(--gray-500);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

/* Volunteer Page Styles */
.volunteer-form {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
}

.skill-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--fundraising-primary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }
    
    .page-header__lead {
        font-size: 1rem;
    }
    
    .page-header__badges {
        gap: 0.5rem;
        margin-top: 1rem;
    }
    
    .badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
 
    .campaigns-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .trending-campaigns {
        grid-template-columns: 1fr;
    }
    
    .campaign-form-card {
        padding: 25px;
    }
    
    .row {
        margin: 0;
    }
    
    .col-md-4,
    .col-md-6,
    .col-md-8,
    .col-lg-8,
    .col-lg-4 {
        padding: 0;
        margin-bottom: 20px;
    }
    
    .fundraising-filters {
        padding: 20px;
    }
    
    .campaign-stats-overview {
        width: 100%;
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 1rem;
        padding: 12px 15px;
    }
    
    .campaign-stats-overview .stat-item {
        padding: 8px;
        min-width: 100px;
    }
    
    .campaign-stats-overview .stat-number {
        font-size: 1.8rem;
    }
    
    .campaign-stats-overview .stat-label {
        font-size: 11px;
        letter-spacing: 0.5px;
    }
    
    .category-filters {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .category-filter {
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    /* Campaigns page specific styles */
    .campaigns-grid.list-view {
        grid-template-columns: 1fr;
    }
    
    .category-pills {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .campaign-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}

/* Mobile responsive styles */
@media (max-width: 576px) {
    .campaign-card {
        margin: 0 10px;
    }
    
    .campaigns-grid {
        padding: 0 10px;
    }
    
    .campaign-stats {
        flex-wrap: wrap;
        gap: 6px;
        padding: 6px 8px;
        font-size: 11px;
    }
    
    .campaign-stats .stat-item:not(:last-child)::after {
        display: none;
    }
    
    /* Overlapping cards styles */
    .application-form-card {
        padding: 1rem;
        border-radius: 10px;
    }
    
    .volunteer-application .application-form-card {
        transform: translateY(-10px);
    }
    
    .info-card {
        padding: 1rem;
        top: 0.5rem;
    }
    
    .volunteer-application .info-card {
        transform: translateY(-5px);
    }
    
    .volunteer-application .info-card:nth-child(1),
    .volunteer-application .info-card:nth-child(2),
    .volunteer-application .info-card:nth-child(3) {
        transform: translateY(-5px);
        top: 0.5rem;
    }
    
    .volunteer-application .info-card:hover,
    .volunteer-application .info-card:nth-child(1):hover,
    .volunteer-application .info-card:nth-child(2):hover,
    .volunteer-application .info-card:nth-child(3):hover {
        transform: translateY(-7px);
    }
    
    .volunteer-areas {
        grid-template-columns: 1fr;
    }
}

/* Animation and Transitions */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.campaign-card {
    animation: fadeInUp 0.6s ease forwards;
}

.campaign-card:nth-child(2) { animation-delay: 0.1s; }
.campaign-card:nth-child(3) { animation-delay: 0.2s; }
.campaign-card:nth-child(4) { animation-delay: 0.3s; }

/* Loading States */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-50);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--fundraising-primary);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--fundraising-primary-dark);
}

/* Campaign Controls */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
}

.campaign-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.sort-dropdown {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sort-dropdown label {
    font-weight: 500;
    margin-bottom: 0;
    color: var(--gray-600);
    white-space: nowrap;
}

.sort-dropdown select {
    min-width: 150px;
    border: 1px solid var(--gray-400);
    border-radius: 5px;
    padding: 0.375rem 0.75rem;
    background-color: white;
}

.view-toggle {
    display: flex;
    border: 1px solid var(--gray-400);
    border-radius: 5px;
    overflow: hidden;
}

.view-toggle .btn {
    border: none;
    border-radius: 0;
    border-right: 1px solid var(--gray-400);
    padding: 0.375rem 0.75rem;
    background-color: white;
    color: var(--gray-600);
}

.view-toggle .btn:last-child {
    border-right: none;
}


.view-toggle .btn:hover:not(.active) {
    background-color: #f8f9fa;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .campaign-controls {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        width: 100%;
    }
    
    .sort-dropdown {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
        width: 100%;
    }
    
    .sort-dropdown select {
        width: 100%;
    }
}

/* Print Styles */
@media print {
.campaign-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid var(--gray-400);
}    .btn,
    .header-cta,
    .fundraising-filters {
        display: none;
    }
}
.application-form-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    padding: 2.5rem;
    position: relative;
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    margin-top: 0;
    animation: fadeInUp 0.8s ease-out;
    transform: translateY(0);
}



/* Enhanced form card for volunteer applications */
.volunteer-application .application-form-card {
    transform: translateY(-100px);
    margin-top: 0;
    transition: all 0.4s ease;
}

.form-intro {
    color: var(--gray-500);
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.section-intro {
    color: #6c757d;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.agreement-box {
    background: #f8f9fa;
    border-left: 3px solid var(--notice);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 0 8px 8px 0;
}

.agreement-box h5 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.agreement-box ul {
    margin: 0;
    padding-left: 1.25rem;
}

.agreement-box li {
    color: var(--gray-600);
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.submit-section {
    text-align: center;
    padding-top: 2rem;
}

.info-card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    margin-bottom: 2rem;
    position: sticky;
    top: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 8;
    backdrop-filter: blur(5px);
    overflow: hidden;
}



/* Enhanced styles for volunteer application info cards */
.volunteer-application .info-card {
    transform: translateY(-30px);
}

/* Stagger the info cards for visual interest */
.volunteer-application .info-card:nth-child(1) {
    transform: translateY(-25px);
    top: 1.5rem;
}

.volunteer-application .info-card:nth-child(2) {
    transform: translateY(-35px);
    top: 2.5rem;
}

.volunteer-application .info-card:nth-child(3) {
    transform: translateY(-30px);
    top: 2rem;
}

.volunteer-application .info-card:hover {
    transform: translateY(-35px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.volunteer-application .info-card:nth-child(1):hover {
    transform: translateY(-30px);
}

.volunteer-application .info-card:nth-child(2):hover {
    transform: translateY(-40px);
}

.volunteer-application .info-card:nth-child(3):hover {
    transform: translateY(-35px);
}

.info-card h3 {
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.info-card h3 i {
    margin-right: 0.5rem;
    color: var(--fundraising-primary);
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.benefit-item:last-child {
    margin-bottom: 0;
}

.benefit-item i {
    width: 40px;
    height: 40px;
    background: rgba(var(--secondary-rgb), 0.1);
    color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.benefit-item h5 {
    color: var(--primary-dark);
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
}

.benefit-item p {
    color: var(--gray-500);
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.process-timeline {
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gray-400);
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    position: relative;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    width: 30px;
    height: 30px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    margin-right: 1rem;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.timeline-content h5 {
    color: var(--primary-dark);
    margin: 0 0 0.5rem 0;
    font-size: 0.95rem;
}

.timeline-content p {
    color: var(--gray-500);
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.5;
}

.faq-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-50);
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.faq-item h5 {
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.faq-item p {
    color: var(--gray-500);
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.5;
}

.success-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid rgba(42, 95, 110, 0.1);
    position: relative;
    overflow: hidden;
    margin-top: -80px;
    z-index: 10;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.success-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary));
}

.success-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
}

.success-card h2 {
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
    font-weight: 600;
    font-size: 1.75rem;
    line-height: 1.3;
}

.success-card p {
    color: var(--gray-600);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.success-card .lead {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--gray-700);
}

.success-details {
    margin: 1.5rem 0;
}

.success-details .alert {
    background: rgba(40, 167, 69, 0.08);
    border: 1px solid rgba(40, 167, 69, 0.2);
    border-radius: 8px;
    padding: 1rem;
    margin: 0;
}

.success-details h5 {
    color: var(--primary-dark);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.success-details ul {
    margin: 0;
    padding-left: 1.25rem;
}

.success-details li {
    color: var(--gray-600);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

.success-actions {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

/* Remove duplicate button styles - using global .btn and .btn-action classes instead */

.volunteer-areas {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.volunteer-areas .form-check {
    background: var(--gray-50);
    border: 1px solid var(--gray-400);
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.volunteer-areas .form-check:hover {
    background: var(--gray-400);
    border-color: var(--primary);
}

.volunteer-areas .form-check-input:checked + .form-check-label {
    color: var(--primary);
    font-weight: 500;
}

.volunteer-areas .form-check-label {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    cursor: pointer;
    font-size: 0.95rem;
}

.volunteer-areas .form-check-label i {
    margin-right: 0.5rem;
    width: 20px;
    color: var(--gray-500);
}

.volunteer-areas .form-check-input:checked + .form-check-label i {
    color: var(--primary);
}

/* Removed duplicate .form-check-input styles - using enhanced version below */

.form-check-input:focus {
    border-color: var(--primary);
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(var(--primary-rgb), 0.25);
}

.volunteer-areas-label {
    font-weight: 500;
    color: var(--gray-600);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .application-form-card {
        padding: 1.5rem;
        border-radius: 15px;
    }
    
    .volunteer-application .application-form-card {
        transform: translateY(-20px);
        margin-top: 0;
    }
    
    .info-card {
        position: sticky;
        padding: 1.5rem;
        top: 1rem;
    }
    
    .volunteer-application .info-card {
        transform: translateY(-15px);
    }
    
    .volunteer-application .info-card:nth-child(1) {
        transform: translateY(-10px);
        top: 0.5rem;
    }
    
    .volunteer-application .info-card:nth-child(2) {
        transform: translateY(-20px);
        top: 1.5rem;
    }
    
    .volunteer-application .info-card:nth-child(3) {
        transform: translateY(-15px);
        top: 1rem;
    }
    
    .volunteer-application .info-card:hover,
    .volunteer-application .info-card:nth-child(1):hover,
    .volunteer-application .info-card:nth-child(2):hover,
    .volunteer-application .info-card:nth-child(3):hover {
        transform: translateY(-17px);
    }
    
    .success-card {
        padding: 1.5rem;
        margin-top: -40px;
        border-radius: 12px;
    }
    
    .success-card h2 {
        font-size: 1.5rem;
    }
    
    .success-icon {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }
    
    .success-details {
        margin: 1rem 0;
    }
    
    .success-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    
    .success-actions .btn {
        justify-content: center;
        padding: 0.75rem 1rem;
    }
    
    .submit-section .btn {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .benefit-item {
        flex-direction: column;
        text-align: center;
    }
    
    .benefit-item i {
        margin: 0 auto 1rem auto;
    }
    
    .volunteer-areas {
        grid-template-columns: repeat(2, 1fr);
    }
}
.volunteer-application .container.py-5 {
    padding-top: 0 !important;
    padding-bottom: 3rem !important;
}
/* Step Indicator Styles */
.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem 0;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: var(--primary);
    color: white;
}

.step.completed .step-number {
    background: #28a745;
    color: white;
}

.step-title {
    font-size: 0.875rem;
    color: #6c757d;
    font-weight: 500;
}

.step.active .step-title {
    color: var(--primary);
    font-weight: 600;
}

.step.completed .step-title {
    color: #28a745;
    font-weight: 600;
}

.step-line {
    width: 100px;
    height: 2px;
    background: #e9ecef;
    margin: 0 1rem;
    margin-top: -1rem;
    transition: all 0.3s ease;
}

.step-line.completed {
    background: #28a745;
}

/* Review Section Styles */
.review-section {
    margin: 2rem 0;
}

.review-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.review-card h4 {
    color: #495057;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.review-item {
    margin-bottom: 1rem;
}

.review-item strong {
    display: block;
    color: #495057;
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.review-item span, .review-item p {
    color: #212529;
    margin: 0;
}

.volunteer-areas-review .area-tag {
    display: inline-block;
    background: #007bff;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    margin: 0.25rem 0.25rem 0.25rem 0;
}

/* Loading Overlay Styles */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-content {
    background: white;
    padding: 3rem;
    border-radius: 10px;
    text-align: center;
    max-width: 400px;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem;
}

.loading-content h3 {
    color: #495057;
    margin-bottom: 0.5rem;
}

.loading-content p {
    color: #6c757d;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .step-indicator {
        flex-direction: column;
    }
    
    .step-line {
        width: 2px;
        height: 30px;
        margin: 0.5rem 0;
        margin-left: 19px;
    }
    
    .review-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   CAMPAIGNS PAGE SPECIFIC STYLES
   ========================================== */



.header-cta .btn {
    margin: 0 0.5rem 0.5rem 0;
}

.category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.category-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: var(--gray-50);
    color: var(--gray-600);
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.category-pill:hover,
.category-pill.active {
    background: var(--category-color, var(--primary));
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
}

.category-pill i {
    margin-right: 0.5rem;
}

.subcategory-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.subcategory-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.8rem;
    background: var(--gray-200);
    color: var(--gray-600);
    text-decoration: none;
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    font-size: 0.85rem;
}

.subcategory-pill:hover,
.subcategory-pill.active {
    background: var(--gray-500);
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

.subcategory-pill i {
    margin-right: 0.4rem;
}

/* Campaign Card Overrides for Campaigns Page */
.campaigns-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    transition: opacity 0.3s ease;
}

.campaigns-grid.loading {
    opacity: 0.5;
    pointer-events: none;
}

#loadingIndicator {
    background: rgba(248, 249, 250, 0.9);
    border-radius: 8px;
    padding: 2rem;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
}


.no-campaigns {
    background: #f8f9fa;
    border-radius: 12px;
    margin: 2rem 0;
}

.search-form .input-group {
    max-width: 500px;
}

.campaign-stats-overview .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 140px;
    flex: 1;
    padding: 10px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.campaign-stats-overview .stat-item:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* This rule is now defined above with the main campaign-stats */

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* List View Styles */
.campaigns-grid.list-view {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.campaigns-grid.list-view .campaign-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    height: auto;
    max-width: none;
}

.campaigns-grid.list-view .campaign-image {
    flex: 0 0 200px;
    height: 150px;
    margin-bottom: 0;
}

.campaigns-grid.list-view .campaign-content {
    flex: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.campaigns-grid.list-view .campaign-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.campaigns-grid.list-view .campaign-description {
    flex: 1;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.campaigns-grid.list-view .campaign-progress {
    margin-bottom: 0.5rem;
}

.campaigns-grid.list-view .progress-info-bottom {
    font-size: 0.85rem;
}

.campaigns-grid.list-view .spent-summary {
    font-size: 0.85rem;
}

.campaigns-grid.list-view .campaign-footer {
    margin-top: 0;
    padding-top: 0.5rem;
    border-top: 1px solid #eee;
}

.campaigns-grid.list-view .campaign-metadata {
    gap: 6px;
}

.campaigns-grid.list-view .campaign-category-info,
.campaigns-grid.list-view .campaign-creator {
    font-size: 12px;
}

/* View toggle button styles */
.view-toggle .btn.active {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
}


/* Additional styles for programme-specific elements */
.page-header h1 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.page-header h1 i {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.9);
    flex-shrink: 0;
}

.urgent-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

.program-status {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
}

.badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-warning { background-color: #ffc107; color: #212529; }
.badge-success { background-color: #28a745; color: white; }
.badge-secondary { background-color: #6c757d; color: white; }
.badge-primary { background-color: #007bff; color: white; }
.badge-danger { background-color: #dc3545; color: white; }

/* Progress container and spent marker styles */
.progress-container {
    position: relative;
}

.spent-marker {
    position: absolute;
    top: 0;
    height: 100%;
    width: 2px;
    background-color: #dc3545;
    z-index: 10;
    cursor: pointer;
    transition: all 0.3s ease;
}

.spent-marker:hover {
    width: 3px !important;
}

.spent-arrow {
    position: absolute;
    bottom: -4px;
    left: -3px;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid #28a745;
    transition: all 0.3s ease;
}

.spent-marker:hover .spent-arrow {
    border-top-width: 6px;
    border-left-width: 5px;
    border-right-width: 5px;
    left: -4px;
    bottom: -6px;
}

/* Progress info bottom positioning */
.progress-info-bottom {
    position: relative;
    margin-top: 8px;
}

.spent-summary {
    position: absolute;
    top: 0;
    font-size: 0.75rem;
    color: #28a745;
    font-weight: 500;
    white-space: nowrap;
    z-index: 15;
}

/* Tooltip for spent marker */
.spent-marker::after {
    content: attr(title);
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 20;
}

.spent-marker:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Financial information styling */
.financial-summary {
    font-size: 0.75rem;
    color: #6c757d;
    font-weight: 500;
}

.budget-amount {
    font-size: 0.7rem;
    color: #9ca3af;
    font-weight: 400;
}

.progress-info {
    margin-bottom: 8px;
}

.progress-info span {
    font-size: 0.75rem;
}

/* RTL support for spent marker */
[dir="rtl"] .spent-marker {
    right: calc(100% - var(--spent-progress, 0%));
    left: auto;
}

[dir="rtl"] .spent-arrow {
    right: -3px;
    left: auto;
}

[dir="rtl"] .spent-marker:hover .spent-arrow {
    right: -4px;
    left: auto;
}

/* RTL support for progress bars and campaign info */
[dir="rtl"] .progress-bar {
    right: 0;
    left: auto;
}

[dir="rtl"] .campaign-stats,
[dir="rtl"] .campaign-stats-overview {
    direction: rtl;
}

[dir="rtl"] .progress-info {
    direction: rtl;
    text-align: right;
}

/* RTL support for category pills */
[dir="rtl"] .category-pill i {
    margin-right: 0;
    margin-left: 0.5rem;
}

[dir="rtl"] .subcategory-pill i {
    margin-right: 0;
    margin-left: 0.4rem;
}

/* Load More Button Styles */
#loadMoreContainer {
    margin-top: 3rem;
    padding: 2rem 0;
}

#loadMoreBtn {
    padding: 0.75rem 2rem;
    font-weight: 600;
    color: var(--primary);
    border-radius: 50px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#loadMoreBtn:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--secondary-shadow);
}

#loadMoreBtn i {
    margin-right: 0.5rem;
}

.loading-spinner {
    padding: 1rem 0;
}

.loading-spinner .spinner-border {
    width: 2rem;
    height: 2rem;
    margin-bottom: 1rem;
}

/* RTL support for load more button */
[dir="rtl"] #loadMoreBtn i {
    margin-right: 0;
    margin-left: 0.5rem;
}

/* Animation for new programme cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.campaign-card.newly-loaded {
    animation: fadeInUp 0.6s ease forwards;
}

/* Enhanced form check styling for volunteer application */
.form-check {
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(var(--primary-rgb), 0.02);
    border: 1px solid rgba(var(--primary-rgb), 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.form-check:hover {
    background: rgba(var(--primary-rgb), 0.04);
    border-color: rgba(var(--primary-rgb), 0.2);
}

.form-check-input {
    width: 1.25em;
    height: 1.25em;
    margin: 0;
    border: 2px solid var(--gray-400);
    border-radius: 0.25em;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.form-check-input:focus {
    border-color: var(--primary);
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(var(--primary-rgb), 0.25);
}

.form-check-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--gray-700);
    margin-bottom: 0;
    flex: 1;
}

.checkbox-text {
    flex: 1;
    margin-right: 0.5rem;
}

.required-indicator {
    color: #dc3545;
    font-weight: 600;
    margin-left: 0.25rem;
    flex-shrink: 0;
}

/* Legal links styling */
.legal-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
    padding: 0.125rem 0.25rem;
    border-radius: 3px;
}

.legal-link:hover {
    color: var(--primary-dark);
    background: rgba(var(--primary-rgb), 0.1);
    border-bottom-color: var(--primary);
    text-decoration: none;
}

.legal-link:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: 3px;
    text-decoration: none;
}

/* Agreement box refinements */
.agreement-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 4px solid var(--primary);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.agreement-box h5 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.agreement-box h5::before {
    content: '📋';
    font-size: 1.2rem;
}

.agreement-box ul {
    margin: 0;
    padding-left: 1.25rem;
}

.agreement-box li {
    color: var(--gray-600);
    margin-bottom: 0.75rem;
    line-height: 1.5;
    font-size: 0.95rem;
    position: relative;
}

.agreement-box li::marker {
    color: var(--primary);
    font-weight: bold;
}

/* Enhanced button styling for volunteer application */
.btn-action {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 2rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    letter-spacing: 0.25px;
    text-transform: none;
    border-width: 2px;
    min-width: 180px;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.btn-action::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s ease;
}

.btn-action:hover::before {
    left: 100%;
}

.btn-action i {
    font-size: 0.9rem;
    flex-shrink: 0;
}

.btn-action span {
    font-weight: 500;
    flex: 1;
}

/* Primary action button */
.btn-action.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 2px 8px rgba(var(--primary-rgb), 0.25);
}

.btn-action.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    border-color: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.35);
}

/* Success action button */
.btn-action.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border-color: #28a745;
    color: white;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.25);
}

.btn-action.btn-success:hover {
    background: linear-gradient(135deg, #218838 0%, #1e7e34 100%);
    border-color: #1e7e34;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.35);
}

/* Outline primary button */
.btn-action.btn-outline-primary {
    background: transparent;
    border-color: var(--primary);
    color: var(--primary);
}

.btn-action.btn-outline-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.25);
}

/* Outline secondary button */
.btn-action.btn-outline-secondary {
    background: transparent;
    border-color: var(--gray-400);
    color: var(--gray-600);
}

.btn-action.btn-outline-secondary:hover {
    background: var(--gray-600);
    border-color: var(--gray-600);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.25);
}

/* Loading state for buttons */
.btn-action:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.btn-action:disabled::before {
    display: none;
}

/* Submit section styling */
.submit-section {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(var(--primary-rgb), 0.1);
    margin-top: 2rem;
}

.submit-section .btn-action {
    margin-bottom: 0.75rem;
}

/* Mobile responsive button styling */
@media (max-width: 768px) {
    .btn-action {
        width: 100%;
        margin-bottom: 1rem;
        padding: 1rem 1.5rem;
        font-size: 1rem;
        min-width: auto;
    }
    
    .submit-section .btn-action.ms-3 {
        margin-left: 0 !important;
    }
    
    .submit-section {
        padding-top: 1.5rem;
    }
}