/* ===== GLOBAL STYLES ===== */
:root {
    --primary: #00796b;
    --primary-dark: #004d40;
    --danger: #e53935;
    --warning: #ff9800;
    --success: #4caf50;
    --light: #f8f9fa;
    --gray: #6c757d;
    --dark: #212529;
}

/* ===== CARD STYLES (Shared) ===== */
.modern-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}
.modern-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

/* ===== GRID LAYOUT ===== */
.modern-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.75rem;
    margin-bottom: 2rem;
}

/* ===== SEARCH BAR ===== */
.search-container {
    background: white;
    padding: 1.25rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}
.search-input {
    flex: 1;
    min-width: 250px;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}
.search-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,121,107,0.2);
}
.search-btn:hover {
    background: #00695c;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,121,107,0.3);
}

/* ===== PAGINATION ===== */
.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}
.pagination-item {
    margin: 0 0.25rem;
}
.pagination-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    color: var(--primary);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s;
}
.pagination-link.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    font-weight: 600;
}
.pagination-link:hover:not(.active) {
    background: var(--light);
}

/* ===== PROGRESS BAR (Causes) ===== */
.progress-container {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}
.progress-bar {
    height: 100%;
    transition: width 0.5s ease;
}
.progress-danger { background: var(--danger); }
.progress-warning { background: var(--warning); }
.progress-success { background: var(--success); }

/* ===== BADGES ===== */
.days-badge {
    background: #e9ecef;
    color: #495057;
    padding: 0.25rem 0.5rem;
    border-radius: 20px;
    font-size: 0.85rem;
}

/* ===== BUTTONS ===== */
.donate-btn {
    display: block;
    width: 100%;
    padding: 0.6rem;
    text-align: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0,121,107,0.2);
    transition: all 0.2s;
}
.donate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,121,107,0.3);
}

/* ===== NO RESULTS ===== */
.no-results {
    text-align: center;
    padding: 3rem;
    color: var(--gray);
    font-style: italic;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* ===== MEMBER DETAIL PAGE ===== */
.member-detail-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    padding: 2rem;
    margin-bottom: 2rem;
}

.member-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}
.member-avatar-large {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e9ecef;
}
.member-name-large {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
}

.member-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}
.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.detail-label {
    font-weight: 600;
    color: #495057;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.detail-value {
    color: #212529;
    font-size: 1rem;
    word-break: break-word;
}

.achievements-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    padding: 1.5rem;
    margin-top: 2rem;
}
.achievement-item {
    padding: 1rem;
    border-bottom: 1px solid #eee;
    transition: background 0.2s;
}
.achievement-item:last-child {
    border-bottom: none;
}
.achievement-item:hover {
    background: #f8f9fa;
}
.achievement-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    margin: 0 0 0.5rem 0;
}
.achievement-date {
    font-size: 0.9rem;
    color: #6c757d;
    margin: 0 0 0.5rem 0;
}
.achievement-desc {
    font-size: 0.95rem;
    color: #495057;
    line-height: 1.5;
}


.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,121,107,0.2);
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,121,107,0.3);
}

/* ===== NEWS PAGE ===== */
.news-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    height: 350px;
}

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

.news-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
    display: block;
}

.news-content {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.news-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 0.75rem 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.4;
}

.news-date {
    font-size: 0.9rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.news-date i {
    color: var(--primary);
}

/* ===== ACHIEVEMENT DETAIL PAGE ===== */
.achievement-header {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.achievement-avatar {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid #e9ecef;
}
.achievement-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 0.5rem 0;
}
.achievement-meta {
    font-size: 1rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.achievement-meta i {
    color: var(--primary);
}

.achievement-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    padding: 1.5rem;
    margin-bottom: 2rem;
}
.achievement-description {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #212529;
    margin-top: 1rem;
}

.member-details-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    padding: 1.5rem;
}
.member-details-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 1rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #eee;
}
.member-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f8f9fa;
}
.member-detail-row:last-child {
    border-bottom: none;
}
.member-detail-label {
    font-weight: 600;
    color: #495057;
}
.member-detail-value {
    color: #212529;
    text-align: right;
}

.member-detail-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.member-detail-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e9ecef;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.member-detail-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
}

/* ===== MEMBER DETAILS CARD ===== */
.member-details-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    padding: 1.5rem;
    margin-bottom: 2rem;
}
.member-details-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 1.5rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #eee;
}
.member-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f8f9fa;
    font-size: 0.95rem;
}
.member-detail-row:last-child {
    border-bottom: none;
}
.member-detail-label {
    font-weight: 600;
    color: #495057;
}
.member-detail-value {
    color: #212529;
    text-align: right;
    word-break: break-word;
}

/* ===== CONTACT BUTTON ===== */
.contact-button-container {
    text-align: center;
    margin-top: 2rem;
}
.contact-button {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,121,107,0.2);
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.contact-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,121,107,0.3);
}
.contact-button i {
    font-size: 1rem;
}

/* ===== SIDEBAR WIDGETS ===== */
.sidebar-widget {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.sidebar-widget-title h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 1rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #eee;
}
.sidebar-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sidebar-widget li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f8f9fa;
}
.sidebar-widget li:last-child {
    border-bottom: none;
}
.sidebar-widget li strong {
    color: var(--primary);
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 600;
}
.sidebar-widget p {
    color: #6c757d;
    font-size: 0.95rem;
    margin: 0;
}

/* ===== ABOUT SECTION ===== */
.about-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    padding: 1.5rem;
    margin-top: 2rem;
}
.about-header {
    background: var(--primary);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px 12px 0 0;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.about-content {
    line-height: 1.6;
    color: #212529;
    font-size: 1rem;
    text-align: justify;
}

/* ===== EVENT HEADER ===== */
.event-detail-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.event-detail-avatar {
    width: 150px;
    height: 150px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid #e9ecef;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.event-detail-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
}
.event-detail-meta {
    font-size: 1rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}
.event-detail-meta i {
    color: var(--primary);
}

/* ===== EVENT CONTENT ===== */
.event-content-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    padding: 1.5rem;
    margin-bottom: 2rem;
}
.event-content-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 1.5rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #eee;
}
.event-content-text {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #212529;
    margin-top: 1rem;
}

/* ===== EVENT DETAILS PANEL ===== */
.event-details-panel {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    padding: 1.5rem;
    margin-bottom: 2rem;
}
.event-details-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 1.5rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #eee;
}
.event-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f8f9fa;
    font-size: 0.95rem;
}
.event-detail-row:last-child {
    border-bottom: none;
}
.event-detail-label {
    font-weight: 600;
    color: #495057;
}
.event-detail-value {
    color: #212529;
    text-align: right;
    word-break: break-word;
}

/* ===== EVENT PHOTOS ===== */
.event-photos-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    padding: 1.5rem;
    margin-top: 2rem;
}
.event-photos-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 1.5rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #eee;
}
.event-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}
.event-photo-item {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}
.event-photo-item:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}
.event-photo-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}


@media (max-width: 992px) {
    .member-detail-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .member-detail-avatar {
        width: 120px;
        height: 120px;
    }
    .member-detail-name {
        font-size: 1.5rem;
    }
    .about-section {
        margin-top: 2rem;
    }
    
    .news-detail-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .news-detail-avatar {
        width: 120px;
        height: 120px;
    }
    .news-detail-title {
        font-size: 1.5rem;
    }
    
    .event-detail-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .event-detail-avatar {
        width: 120px;
        height: 120px;
    }
    .event-detail-title {
        font-size: 1.5rem;
    }
    .event-photos-section {
        margin-top: 2rem;
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .search-container {
        flex-direction: column;
    }
    .search-btn {
        align-self: stretch;
    }
    
    .member-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .member-avatar-large {
        width: 120px;
        height: 120px;
    }
    .member-name-large {
        font-size: 1.5rem;
    }
    .member-details-grid {
        grid-template-columns: 1fr;
    }
    .achievements-section {
        padding: 1rem;
    }
    
    /* Achievement Detail Responsive */
    .achievement-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .achievement-avatar {
        width: 100px;
        height: 100px;
    }
    .achievement-title {
        font-size: 1.5rem;
    }
    .member-detail-row {
        flex-direction: column;
        gap: 0.5rem;
    }
    .member-detail-value {
        text-align: left;
    }
     .news-content-text {
        font-size: 1rem;
    }
     .event-detail-row {
        flex-direction: column;
        gap: 0.5rem;
    }
    .event-detail-value {
        text-align: left;
    }
    .event-photos-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    .sidebar-widget {
        margin-top: 2rem;
    }
}