* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background: #0a0a0a;
    color: #fff;
    line-height: 1.6;
}

.funding-page {
    min-height: 100vh;
}


.header {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #333;
}

.header-nav a.active {
    color: #338f42;
    position: relative;
}

.header-nav a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: #338f42;
}


.hero-section {
    background: linear-gradient(135deg, rgba(51, 143, 66, 0.1), rgba(45, 122, 58, 0.05));
    padding: 80px 20px;
    text-align: center;
}

.hero-container {
    max-width: 800px;
    margin: 0 auto;
}

.hero-section h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #338f42, #2d7a3a);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.hero-section p {
    font-size: 1.2rem;
    color: #ccc;
    margin-bottom: 40px;
}

.search-bar {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    background: #333;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid #444;
    transition: border-color 0.3s ease;
}

.search-bar:focus-within {
    border-color: #338f42;
}

.search-bar input {
    flex: 1;
    padding: 15px 20px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1rem;
}

.search-bar input::placeholder {
    color: #888;
}

.search-bar input:focus {
    outline: none;
}

.search-submit {
    background: linear-gradient(135deg, #338f42, #2d7a3a);
    border: none;
    color: white;
    padding: 15px 25px;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.3s ease;
}

.search-submit:hover {
    transform: translateX(-2px);
}


.filter-section {
    background: #111;
    padding: 30px 20px;
    border-bottom: 1px solid #333;
}

.filter-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.filter-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-tab {
    background: transparent;
    border: 1px solid #444;
    color: #ccc;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-tab:hover,
.filter-tab.active {
    background: #338f42;
    border-color: #338f42;
    color: white;
}

.sort-options select {
    background: #333;
    border: 1px solid #444;
    color: #fff;
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
}


.campaigns-section {
    padding: 50px 20px;
}

.campaigns-container {
    max-width: 1200px;
    margin: 0 auto;
}

.campaigns-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.campaign-card {
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #333;
}

.campaign-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(51, 143, 66, 0.2);
    border-color: #338f42;
}

.campaign-image {
    position: relative;
    height: 200px;
    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-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.campaign-badge.featured {
    background: linear-gradient(135deg, #ff6b6b, #ff5252);
    color: white;
}

.campaign-badge.new {
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
    color: white;
}

.campaign-badge.eco {
    background: linear-gradient(135deg, #56ab2f, #a8e6cf);
    color: white;
}

.campaign-badge.trending {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    color: white;
}

.campaign-content {
    padding: 25px;
}

.campaign-category {
    font-size: 0.9rem;
    color: #338f42;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.campaign-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
}

.campaign-description {
    color: #ccc;
    font-size: 0.95rem;
    margin-bottom: 15px;
    line-height: 1.5;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}


.campaign-card p,
.campaign-content p,
.campaign-tagline,
.campaign-description,
.detail-item {
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
    box-sizing: border-box;
}

.campaign-creator {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 20px;
}

.campaign-stats {
    margin-bottom: 20px;
}

.progress-bar {
    background: #333;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #338f42, #2d7a3a);
    transition: width 0.3s ease;
    max-width: 100%;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
}

.stat-label {
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
}

.support-btn {
    width: 100%;
    background: linear-gradient(135deg, #338f42, #2d7a3a);
    border: none;
    color: white;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.support-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(51, 143, 66, 0.4);
}


.funding-footer {
    background: #111;
    border-top: 1px solid #333;
    padding: 50px 20px 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 20px;
    color: #338f42;
}

.footer-section a {
    display: block;
    color: #ccc;
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #338f42;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    color: #888;
}


@media (max-width: 768px) {
    
    .hero-section h1 {
        font-size: 2.2rem;
    }
    
    .hero-section {
        padding: 50px 20px;
    }
    
    .filter-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-tabs {
        justify-content: center;
    }
    
    .campaigns-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .stat {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .stat-value,
    .stat-label {
        display: inline;
    }
}

@media (max-width: 480px) {
    .hero-section h1 {
        font-size: 1.8rem;
    }
    
    .search-bar {
        flex-direction: column;
    }
    
    .search-submit {
        border-radius: 0;
    }
    
    .campaign-content {
        padding: 20px;
    }
    
    .filter-tabs {
        gap: 8px;
    }
    
    .filter-tab {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
}


.campaign-tagline {
    font-size: 0.9rem;
    color: #ccc;
    margin: 5px 0;
    font-style: italic;
}

.campaign-location {
    font-size: 0.85rem;
    color: #999;
    margin: 5px 0;
}

.campaign-company-info {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0;
    font-size: 0.85rem;
}

.company-industry {
    background: #444;
    color: #338f42;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
}

.company-website {
    color: #338f42;
    text-decoration: none;
    font-size: 0.8rem;
}

.company-website:hover {
    text-decoration: underline;
}

.company-location {
    color: #999;
    font-size: 0.8rem;
}

.min-contribution {
    font-size: 0.85rem;
    color: #338f42;
    font-weight: 500;
    margin: 8px 0;
}

.campaign-deadline {
    font-size: 0.85rem;
    color: #ff9800;
    margin: 5px 0;
}

.preferred-token {
    font-size: 0.85rem;
    color: #338f42;
    background: rgba(51, 143, 66, 0.1);
    padding: 3px 8px;
    border-radius: 12px;
    display: inline-block;
    margin: 5px 0;
}

.gallery-preview {
    display: flex;
    gap: 5px;
    margin: 10px 0;
    align-items: center;
}

.gallery-thumb {
    width: 30px;
    height: 30px;
    border-radius: 4px;
    object-fit: cover;
    border: 1px solid #444;
}

.gallery-more {
    font-size: 0.8rem;
    color: #999;
    background: #333;
    padding: 2px 6px;
    border-radius: 10px;
}
