/* Custom styles for GrowDodo website */

/* NGO card styles - fix alignment of buttons */
.ngo-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 400px; /* Set minimum height to ensure consistent sizing */
    position: relative;
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
}

.ngo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.ngo-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    height: 100%;
    padding: 20px;
}

.ngo-footer {
    margin-top: auto; /* Push the footer to the bottom of the card */
    width: 100%;
    display: flex;
    justify-content: center; /* Center the button */
    padding: 15px 0;
}

.ngo-btn {
    min-width: 150px; /* Set a minimum width for the button */
    text-align: center;
    padding: 10px 20px;
    border-radius: 30px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.ngo-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

/* Filter and category styles */
.ngo-filter-section {
    background-color: #fff;
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
}

.filter-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.search-box {
    width: 100%;
    max-width: 480px;
    margin-bottom: 20px;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin: 10px 0;
}

.category-filter-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 15px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    background-color: transparent;
    border: 1px solid #e0e0e0;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.category-filter-button i {
    margin-right: 6px;
    font-size: 13px;
}

.category-filter-button:hover {
    background-color: rgba(0, 122, 135, 0.05);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.category-filter-button.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Category label in NGO cards */
.ngo-category {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    background-color: rgba(0, 122, 135, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 14px;
    margin-bottom: 10px;
}

.ngo-category i {
    margin-right: 6px;
}

/* No results message styling */
.no-results, .no-content-message {
    width: 100%;
    text-align: center;
    padding: 40px 0;
    color: var(--text-light);
    font-size: 18px;
    background-color: #f9f9f9;
    border-radius: 8px;
    margin: 20px 0;
    border: 1px dashed #e0e0e0;
}

/* Search input styles */
.search-box form {
    display: flex;
    width: 100%;
}

.search-input {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid #e0e0e0;
    border-right: none;
    border-radius: 50px 0 0 50px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease;
}

.search-input:focus {
    border-color: var(--primary-color);
}

.search-btn {
    padding: 10px 16px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0 50px 50px 0;
    cursor: pointer;
    transition: background-color 0.2s ease;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn i {
    font-size: 16px;
}

.search-btn:hover {
    background-color: var(--secondary-color);
}

/* Pagination styling */
.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    margin-bottom: 50px;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination-link, .pagination-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    border: 1px solid var(--primary-color);
    background-color: transparent;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination-link.active {
    background-color: var(--primary-color);
    color: white;
}

.pagination-link:hover:not(.active), 
.pagination-arrow:hover:not(.disabled) {
    background-color: rgba(0, 122, 135, 0.1);
}

.pagination-arrow.disabled {
    color: #ccc;
    border-color: #e0e0e0;
    cursor: not-allowed;
}

.pagination-ellipsis {
    width: 32px;
    text-align: center;
    color: var(--text-light);
}

/* NGO grid layout */
.ngo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Make sure the grid area has a background */
.ngo-grid-section {
    background-color: var(--bg-light);
    padding: 40px 0;
}

/* Hero section styling */
.hero-section-ngos {
    background-color: var(--bg-dark);
    padding: 60px 0;
}

/* Project card styling in NGO detail page */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.project-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    background-color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.project-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-status {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 2;
}

.project-status.ongoing {
    background-color: rgba(0, 122, 135, 0.9);
    color: white;
}

.project-status.completed {
    background-color: rgba(39, 174, 96, 0.9);
    color: white;
}

.project-status.urgent {
    background-color: rgba(231, 76, 60, 0.9);
    color: white;
}

.project-content {
    padding: 20px;
    padding-bottom: 30px;
}

.project-title {
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
}

.project-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.2s ease;
}

.project-title a:hover {
    color: var(--primary-color);
}

.project-description {
    margin-bottom: 20px;
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.5;
}

.project-progress {
    margin-bottom: 20px;
}

.project-progress .progress-bar {
    height: 6px;
    background-color: #f0f0f0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 15px;
}

.project-progress .progress-fill {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 3px;
}

.project-stats {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.progress-percentage {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.raised-amount {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3;
}

.target-amount {
    font-size: 16px;
    color: var(--text-light);
    margin-top: 3px;
}

.days-left {
    font-size: 14px;
    color: var(--text-dark);
    margin-top: 15px;
    display: flex;
    align-items: center;
    font-weight: 500;
}

.days-left i {
    margin-right: 8px;
    color: var(--text-dark);
    font-size: 16px;
}

.project-actions {
    margin-top: 20px;
}

.view-campaign-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 3px 8px rgba(241, 90, 36, 0.2);
}

.view-campaign-btn:hover {
    background-color: #e04a14;
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(241, 90, 36, 0.3);
}

.view-campaign-btn i {
    margin-left: 8px;
    font-size: 12px;
    transition: transform 0.2s ease;
}

.view-campaign-btn:hover i {
    transform: translateX(3px);
}

.of-text {
    color: var(--text-light);
    font-size: 14px;
    margin: 5px 0;
}

/* Campaign filter section - updated to match NGO filter section */
.campaign-filter-section {
    background-color: #fff;
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
}

.category-filters {
    width: 100%;
    margin-top: 15px;
}

.filter-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
    text-align: center;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 15px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    background-color: transparent;
    border: 1px solid #e0e0e0;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.filter-btn i {
    margin-right: 6px;
    font-size: 13px;
}

.filter-btn:hover {
    background-color: rgba(0, 122, 135, 0.05);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.filter-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Campaign grid layout - make it match the NGO grid layout */
.campaign-grid-section {
    background-color: var(--bg-light);
    padding: 40px 0;
}

.campaign-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Campaign card styling - updated to match NGO card */
.campaign-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 400px;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
}

.campaign-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.campaign-content-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.campaign-image {
    height: 180px;
    position: relative;
    overflow: hidden;
}

.campaign-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.campaign-card:hover .campaign-image img {
    transform: scale(1.05);
}

.campaign-urgency {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    background-color: rgba(231, 76, 60, 0.9);
    color: white;
    font-size: 12px;
    border-radius: 15px;
    display: flex;
    align-items: center;
}

.campaign-urgency i {
    margin-right: 5px;
}

.campaign-ended {
    background-color: rgba(52, 73, 94, 0.9);
}

.campaign-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.campaign-category {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    background-color: rgba(0, 122, 135, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 14px;
    margin-bottom: 10px;
}

.campaign-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.campaign-description {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-light);
    margin-bottom: 15px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.campaign-progress {
    margin-top: auto;
    margin-bottom: 15px;
}

.campaign-progress .progress-bar {
    height: 6px;
    background-color: #f0f0f0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 10px;
}

.campaign-progress .progress-fill {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 3px;
}

.progress-stats {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--text-light);
}

.raised, .target {
    display: flex;
    flex-direction: column;
    font-size: 14px;
}

.raised span, .target span {
    font-weight: 600;
    color: var(--text-dark);
}

.campaign-by {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.campaign-by a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.campaign-by a:hover {
    text-decoration: underline;
}

.campaign-card-action {
    padding: 0 20px 20px;
}

.view-campaign {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 3px 8px rgba(241, 90, 36, 0.2);
}

.view-campaign:hover {
    background-color: #e04a14;
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(241, 90, 36, 0.3);
}

.view-campaign i {
    margin-left: 8px;
    font-size: 12px;
    transition: transform 0.2s ease;
}

.view-campaign:hover i {
    transform: translateX(3px);
}

.start-campaign-section {
    padding: 60px 0;
    background-color: var(--bg-dark);
    text-align: center;
}

.start-campaign-content {
    max-width: 700px;
    margin: 0 auto;
}

.start-campaign-content h2 {
    font-size: 32px;
    color: white;
    margin-bottom: 20px;
    line-height: 1.3;
}

.start-campaign-content p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
    line-height: 1.6;
}

.start-campaign-content .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.start-campaign-content .btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.hero-section-campaigns {
    background-color: var(--bg-dark);
    padding: 60px 0;
    text-align: center;
}

.hero-section-campaigns .hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-section-campaigns .hero-title {
    font-size: 40px;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-section-campaigns .hero-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    font-weight: 400;
}

/* Responsive styles for campaign section */
@media (max-width: 768px) {
    .hero-section-campaigns .hero-title {
        font-size: 32px;
    }
    
    .hero-section-campaigns .hero-subtitle {
        font-size: 16px;
    }
    
    .campaign-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .start-campaign-content h2 {
        font-size: 28px;
    }
}

@media (max-width: 576px) {
    .hero-section-campaigns .hero-title {
        font-size: 28px;
    }
    
    .campaign-grid {
        grid-template-columns: 1fr;
    }
    
    .campaign-card {
        max-width: 100%;
    }
    
    .search-box {
        width: 90%;
    }
    
    .start-campaign-content h2 {
        font-size: 24px;
    }
    
    .start-campaign-content p {
        font-size: 14px;
    }
}

/* Update the tab content on the NGO detail page to provide proper spacing */

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* Project tab campaign card overrides */
.projects-grid .campaign-card {
    height: 100%;
    min-height: 450px;
    display: flex;
    flex-direction: column;
}

.projects-grid .campaign-content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.projects-grid .campaign-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.projects-grid .campaign-progress {
    margin-top: auto;
}

.projects-grid .campaign-card-action {
    padding: 15px 20px 20px;
}

/* Make the description styling consistent */
.campaign-description {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-light);
    margin-bottom: 15px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
} 