/* Donation Section Styles */
.donation-section {
    padding: 6rem 0;
    background: #111;
    /* Dark Background */
    color: white;
}

.donation-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.donation-header h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: white;
    /* White Title */
}

.impact-subtitle {
    font-size: 1.35rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
    font-weight: 500;
    opacity: 0.9;
}

/* Trust Badges - Text Style (No Button Look) */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.trust-badges .badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: transparent;
    padding: 0;
    border: none;
    font-weight: 500;
    color: #cbd5e0;
    font-size: 1rem;
    opacity: 0.8;
}

/* Remove hover scale/move, just slight brighten */
.trust-badges .badge:hover {
    transform: none;
    opacity: 1;
    color: white;
}

.trust-badges .icon {
    font-size: 1.25rem;
}

/* Enhancing Chart Labels and Fixes */
/* Enhancing Chart Labels and Fixes */
.transparency-chart {
    margin: 4rem auto 2rem auto !important;
    display: flex !important;
    justify-content: space-between;
    align-items: flex-start !important;
    /* Items align to top to ensure text starts at same height */
    max-width: 800px;
    position: relative;
    padding-top: 1rem;
    /* The "reference line" start point */
}

.chart-item {
    flex: 1;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center;
    padding-top: 1.5rem;
    /* Space from the top line */
}

.chart-label {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.chart-category {
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.9rem !important;
    color: #a0aec0 !important;
    /* Lighter Grey for Dark Mode */
    font-weight: 700;
    margin-bottom: 0.5rem;
    /* No order property, so it comes first (Top) */
}

.chart-value {
    font-size: 3rem !important;
    color: var(--primary-color) !important;
    font-weight: 800;
    line-height: 1;
}

/* 
   Layout Logic:
   ------------------------- (Green Top Border as Reference)
   CONSERVATION    OPERATIONS
       85%            10%
   
   This aligns with "balance the reference start point of the letters" 
   by putting the letters (Category) right at the top, aligned with the border.
*/

/* --- Wishlist Section --- */
.wishlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.wishlist-card {
    background: #1a202c;
    /* Main Card Dark */
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #2d3748;
    display: flex;
    flex-direction: column;
}

.wishlist-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.4);
    border-color: var(--primary-color);
}

.wishlist-image {
    height: 200px;
    background: #2d3748;
    position: relative;
    overflow: hidden;
    padding: 0;
    /* Clear padding */
}

.wishlist-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    filter: none;
    /* Remove drop shadow from icons */
}

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

.wishlist-content {
    padding: 1.5rem;
    flex-grow: 1;
}

.wishlist-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.wishlist-content p {
    font-size: 0.95rem;
    color: #a0aec0;
    /* Light Text */
    line-height: 1.6;
}

/* --- Donation Grid --- */
.donation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    /* Tighter gap as per screenshot */
    margin-bottom: 2rem;
    max-width: 800px;
    /* Slightly narrower */
    margin-left: auto;
    margin-right: auto;
}

.donation-card {
    background: #262626;
    border: 1px solid #404040;
    border-radius: 12px;
    padding: 1.5rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    min-height: 160px;
    position: relative;
    gap: 0.5rem;
}

.donation-card:hover {
    background: #2f855a !important;
    border-color: #2f855a !important;
    transform: translateY(-4px);
}

.donation-card:active {
    transform: translateY(-1px);
}

/* Hide content on hover */
.donation-card:hover .amount,
.donation-card:hover .description,
.donation-card:hover .label,
.donation-card:hover .btn-donate {
    opacity: 0;
}

/* Show 'Donate Now' on hover */
.donation-card::after {
    content: 'Donate Now';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    width: 90%;
    text-align: center;
}

.donation-card:hover::after {
    opacity: 1;
}

.donation-card .amount {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    transition: opacity 0.2s ease;
    line-height: 1.2;
}

.donation-card .label {
    transition: opacity 0.2s ease;
}

.donation-card .description {
    color: #a0aec0;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    /* min-height: 2.5em; Removed fixed height to center better */
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.4;
    transition: opacity 0.2s ease;
}

/* Custom Card Logic */
.donation-card.custom {
    background: #2f855a;
    border-color: #2f855a;
}

.donation-card.custom .amount {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.donation-card.custom .label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.8rem;
    font-weight: 500;
}

.donation-card.custom:hover {
    background: #276749 !important;
    border-color: #276749 !important;
}

/* Header Pill Style */
.header-pill {
    display: inline-block;
    border: 2px solid #2f855a;
    border-radius: 50px;
    padding: 1rem 2rem;
    color: #4ade80;
    text-align: center;
    margin-bottom: 1rem;
}

.header-pill h3 {
    margin: 0;
    color: #4ade80;
    font-size: 1.25rem;
}

.header-pill p {
    margin: 0.25rem 0 0 0;
    color: #4ade80;
    font-size: 0.9rem;
    opacity: 0.8;
}

.header-pill:hover {
    background-color: #2f855a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(47, 133, 90, 0.3);
}

.header-pill:hover h3,
.header-pill:hover p {
    color: white;
}

/* --- Large Donations / Wire Transfer --- */
.large-donations {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}


.large-donations h3 {
    color: #1a202c;
}

/* Wishlist Immediate Button Styling */
.wishlist-cta {
    text-align: center;
    margin: 4rem 0 2rem;
}

.btn-wishlist {
    display: inline-block;
    padding: 1rem 3rem;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-wishlist:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 139, 87, 0.3);
}

.large-donations p {
    color: #1a202c;
    margin-bottom: 2rem;
    font-weight: 500;
}

.large-donations .btn-outline {
    display: inline-block;
    border: 2px solid var(--primary-color);
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.large-donations .btn-outline:hover {
    background: transparent;
    color: var(--primary-color);
}

.btn-tax {
    display: inline-block;
    border-color: #2f855a !important;
    /* Force override generic */
    color: #4ade80 !important;
    margin-bottom: 1rem;
}

.btn-tax:hover {
    background: #2f855a !important;
    color: white !important;
    border-color: #2f855a !important;
}

.large-donations .btn-outline:hover {
    background: #2f855a;
    color: white;
}

/* --- Detailed Needs Table (New) --- */
.wishlist-table-wrapper {
    overflow-x: auto;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    background: white;
    border: 1px solid #e2e8f0;
}

.wishlist-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    min-width: 600px;
}

.wishlist-table th {
    background-color: #f7fafc;
    color: #4a5568;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    padding: 1rem 1.5rem;
    text-align: left;
    border-bottom: 2px solid #edf2f7;
}

.wishlist-table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #edf2f7;
    color: #2d3748;
    vertical-align: middle;
}

.wishlist-table tr:last-child td {
    border-bottom: none;
}

.wishlist-table tr:hover {
    background-color: #f8fafc;
}

.category-row td {
    background-color: #edf2f7;
    font-weight: 700;
    color: #2d3748;
    padding: 0.75rem 1.5rem;
}

.item-name-cell {
    font-weight: 600;
    color: #2d3748;
    position: relative;
    cursor: pointer;
    /* Changed from help to pointer */
    text-decoration: underline;
    text-decoration-style: dotted;
    text-decoration-color: #cbd5e0;
    text-underline-offset: 4px;
}

.item-name-cell:hover {
    color: var(--primary-color);
    text-decoration-color: var(--primary-color);
}

.action-btn {
    display: none;
    /* Hide action button styles as we are removing the column */
}

/* --- Tooltip Popup Card --- */
.wishlist-tooltip {
    position: fixed;
    z-index: 9999;
    /* Increased z-index */
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-radius: 12px;
    padding: 1.5rem;
    width: 320px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease;
    transform: translateY(10px);
    pointer-events: none;
}

.wishlist-tooltip.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.tooltip-header {
    margin-bottom: 0.75rem;
}

.tooltip-title {
    font-weight: 700;
    color: #1a202c;
    font-size: 1.1rem;
    line-height: 1.3;
}

.tooltip-body {
    font-size: 0.95rem;
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    border-left: 3px solid var(--primary-color);
    padding-left: 0.75rem;
}

.tooltip-footer {
    background: #f0fff4;
    border: 1px solid #c6f6d5;
    border-radius: 8px;
    padding: 1rem;
    font-size: 0.9rem;
    color: #2f855a;
    text-align: center;
}

.tooltip-footer strong {
    display: block;
    margin-bottom: 0.75rem;
    color: #276749;
    font-weight: 600;
}

.tooltip-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.tooltip-btn {
    display: inline-block;
    background-color: #3182ce;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid #3182ce;
}

.tooltip-btn:hover {
    background-color: #2b6cb0;
    transform: translateY(-1px);
    border-color: #2b6cb0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}