/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
}

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

/* Header */
.header {
    background: #2d5016;
    color: #fff;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    display: inline;
}

.logo span {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-left: 5px;
}

.nav {
    display: flex;
    gap: 25px;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    opacity: 0.9;
    transition: opacity 0.2s;
}

.nav-link:hover,
.nav-link.active {
    opacity: 1;
    border-bottom: 2px solid #fff;
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-primary {
    background: #c41e3a;
    color: #fff;
}

.btn-primary:hover {
    background: #a01830;
}

.btn-outline {
    background: transparent;
    border: 2px solid #2d5016;
    color: #2d5016;
    margin: 5px;
}

.btn-outline:hover {
    background: #2d5016;
    color: #fff;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, #2d5016 0%, #1a3010 100%);
    color: #fff;
    text-align: center;
    padding: 60px 20px;
}

.hero h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.hero .tagline {
    margin-top: 15px;
    font-style: italic;
    opacity: 0.8;
}

/* Stats */
.stats {
    background: #f5f5f5;
    padding: 30px 0;
}

.stats .container {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d5016;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
}

/* Sections */
.section {
    padding: 50px 0;
}

.section-alt {
    background: #f9f9f9;
}

.section h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: #2d5016;
    text-align: center;
}

/* Search Bar */
.search-bar {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.search-bar input,
.search-bar select {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.search-bar input {
    flex: 1;
    min-width: 250px;
}

.search-bar select {
    min-width: 180px;
}

/* Member Grid */
.member-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.member-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 20px;
    transition: box-shadow 0.2s;
}

.member-card:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.member-card h4 {
    color: #2d5016;
    margin-bottom: 5px;
}

.member-card .village {
    color: #c41e3a;
    font-size: 0.9rem;
    font-weight: 500;
}

.member-card .location {
    color: #666;
    font-size: 0.9rem;
    margin: 10px 0;
}

.member-card .profession {
    color: #888;
    font-size: 0.85rem;
}

/* Events */
.events-list {
    max-width: 800px;
    margin: 0 auto;
}

.event-card {
    background: #fff;
    border-left: 4px solid #2d5016;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 0 10px 10px 0;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.event-date {
    text-align: center;
    min-width: 60px;
}

.event-date .day {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: #c41e3a;
}

.event-date .month {
    font-size: 0.9rem;
    color: #666;
}

.event-details h4 {
    color: #333;
    margin-bottom: 5px;
}

.event-details p {
    color: #666;
    font-size: 0.9rem;
}

.event-details .location {
    margin-top: 8px;
    color: #2d5016;
}

/* Contributions */
.contributions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.contribution-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
}

.contribution-card h4 {
    color: #2d5016;
    margin-bottom: 10px;
}

.contribution-card .amount {
    font-size: 2rem;
    font-weight: 700;
    color: #c41e3a;
    margin: 15px 0;
}

.contribution-card p {
    color: #666;
    margin-bottom: 20px;
}

/* Progress Bar */
.transparency {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.transparency h4 {
    margin-bottom: 15px;
    color: #333;
}

.progress-bar {
    background: #eee;
    height: 25px;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress {
    background: linear-gradient(90deg, #2d5016, #4a8028);
    height: 100%;
    border-radius: 15px;
    transition: width 0.5s;
}

/* News */
.news-list {
    max-width: 800px;
    margin: 0 auto;
}

.news-card {
    background: #fff;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 10px;
    border: 1px solid #eee;
}

.news-card .date {
    color: #888;
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.news-card h4 {
    color: #333;
    margin-bottom: 10px;
}

.news-card p {
    color: #666;
}

.news-card .tag {
    display: inline-block;
    background: #2d5016;
    color: #fff;
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 0.75rem;
    margin-top: 10px;
}

.news-card .tag.urgent {
    background: #c41e3a;
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: #fff;
    text-align: center;
    padding: 30px 20px;
}

.footer p {
    opacity: 0.8;
    margin: 5px 0;
}

.footer-tagline {
    font-style: italic;
    margin-top: 10px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 200;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-content h3 {
    margin-bottom: 20px;
    color: #2d5016;
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #888;
}

.close:hover {
    color: #333;
}

/* Form */
form input,
form select {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

form input:focus,
form select:focus {
    outline: none;
    border-color: #2d5016;
}

form button {
    width: 100%;
}

/* Payment */
.payment-methods {
    margin: 20px 0;
}

.bank-details {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 5px;
    margin-top: 20px;
}

.bank-details h4 {
    margin-bottom: 10px;
    color: #2d5016;
}

.bank-details p {
    margin: 5px 0;
    font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 768px) {
    .header .container {
        justify-content: center;
        text-align: center;
    }
    
    .nav {
        order: 3;
        width: 100%;
        justify-content: center;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .stats .container {
        gap: 30px;
    }
    
    .event-card {
        flex-direction: column;
    }
}
