/* Homepage Styling */

/* Hero Section */
.hero {
    position: relative;
    background-color: var(--primary-color);
    background-size: cover;
    background-position: center right; /* Focus on the right side of the image */
    color: white;
    padding: 120px 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Gradient: darker on the left for text, transparent on the right for image */
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 40%, rgba(0, 0, 0, 0) 100%);
}

.hero .container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    max-width: 600px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.2rem;
    max-width: 500px;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}


.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* Activities Section */
.activities {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.section-title {
    text-align: center;
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 40px;
}

.activity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.activity-card {
    background: var(--bg-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
}

.activity-card:hover {
    transform: translateY(-5px);
}

.activity-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.activity-content {
    padding: 20px;
}

.activity-content h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

.activity-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

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

.progress-bar {
    background: var(--primary-color);
    height: 100%;
}

.progress-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    display: block;
}

/* Tracking Section */
.tracking {
    padding: 80px 0;
    background: white;
}

.tracking-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}

.tracking-item {
    display: flex;
    gap: 20px;
    align-items: center;
}

.tracking-item img {
    width: 150px;
    height: 100px;
    object-fit: cover;
    border-radius: var(--border-radius);
}

.tracking-info h4 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

/* Action Section */
.action-section {
    padding: 80px 0;
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.action-box {
    padding: 40px;
    border-radius: var(--border-radius);
    text-align: center;
}

.action-box.donor {
    background-color: #e8f5e9;
    border: 1px solid #c8e6c9;
}

.action-box.recipient {
    background-color: #e3f2fd;
    border: 1px solid #bbdefb;
}

.action-box h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.action-box p {
    margin-bottom: 25px;
    color: var(--text-muted);
}

/* Activity specific styling removed to revert to original */

/* Projects Section */
.projects {
    padding: 60px 0;
    background-color: #fafafa;
}

.projects .section-title {
    text-align: center;
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 40px;
    font-weight: 700;
    text-transform: uppercase;
    position: relative;
}

.project-grid-wrapper {
    background-color: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    margin: 0 auto;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}


.project-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
}

.project-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

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

.project-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #333;
}

.project-content p {
    color: #666;
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 15px;
    flex: 1;
}

.project-progress-container {
    background: #eee;
    border-radius: 4px;
    height: 6px;
    margin-bottom: 8px;
    overflow: hidden;
}

.project-progress-bar {
    background: var(--primary-color);
    height: 100%;
}

.project-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #333;
    font-weight: 700;
    margin-bottom: 15px;
}

.project-btn {
    display: block;
    width: 100%;
    text-align: center;
    background-color: var(--primary-color);
    color: #fff;
    padding: 10px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background-color 0.3s;
}

.project-btn:hover {
    background-color: #3b5a40;
    color: #fff;
}

/* Mobile Responsiveness for Hero */
@media (max-width: 768px) {
    .hero {
        padding: 60px 0;
        background-position: center;
    }
    .hero h1 {
        font-size: 2rem;
        max-width: 100%;
        line-height: 1.3;
    }
    .hero p {
        font-size: 1rem;
        max-width: 100%;
    }
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    .hero-buttons .btn {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* App Download Bar */
.app-download-bar {
    background: white;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.app-download-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.app-download-container span {
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--primary-color);
}

.about-images {
    display: flex;
    gap: 20px;
    margin: 40px 0;
}

/* Tracking Section Header */
.tracking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.tracking-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 1rem;
    transition: all 0.2s;
}

/* Tracking Map Overlay */
.mobile-map-overlay {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    background: rgba(255,255,255,0); /* Invisible but catches clicks */
}

/* Large Titles */
.large-title {
    color: var(--primary-color);
    text-align: center;
    font-weight: 800;
    font-size: 2.2rem;
    margin-bottom: 30px;
    text-transform: uppercase;
}

