/* Donation Pages Styles */

/* ==========================================================================
   Shared Styles
   ========================================================================== */

/* Result page containers (success & cancel) */
.success-wrap,
.cancel-wrap {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding: 5px 30px 40px 30px;
}

/* Result page icons */
.success-icon,
.cancel-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.success-icon {
    background: #2b7f1c;
}

.cancel-icon {
    background: #ffc107;
}

.success-icon i,
.cancel-icon i {
    font-size: 50px;
    color: #fff;
}

/* Result page titles & messages */
.success-title,
.cancel-title {
    font-size: 32px;
    color: #333;
    margin-bottom: 15px;
}

.success-message,
.cancel-message {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Info boxes */
.donation-details,
.info-box {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    text-align: left;
}

.donation-details h4,
.info-box h4 {
    margin-bottom: 15px;
    color: #333;
}

.donation-details h4 {
    border-bottom: 2px solid #2b7f1c;
    padding-bottom: 10px;
}

.info-box ul {
    margin: 0;
    padding-left: 20px;
}

.info-box li {
    margin-bottom: 10px;
    color: #666;
}

/* Detail rows */
.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    color: #666;
}

.detail-value {
    font-weight: 600;
    color: #333;
}

.amount-highlight {
    font-size: 24px;
    color: #2b7f1c;
}

/* Action buttons */
.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.action-btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.action-btn-primary {
    background: #2b7f1c;
    color: #fff;
}

.action-btn-primary:hover {
    background: #236617;
    color: #fff;
}

.action-btn-secondary {
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
}

.action-btn-secondary:hover {
    background: #e5e5e5;
    color: #333;
}

/* Notes */
.gift-aid-note {
    background: #e8f5e9;
    border: 1px solid #c8e6c9;
    padding: 15px;
    border-radius: 5px;
    margin-top: 15px;
}

.gift-aid-note i {
    color: #2b7f1c;
    margin-right: 5px;
}

.receipt-note {
    margin-top: 30px;
    padding: 15px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 5px;
    color: #856404;
}

.receipt-note i {
    margin-right: 5px;
}

.contact-note {
    margin-top: 30px;
    color: #666;
}

.contact-note a {
    color: #2b7f1c;
}

/* ==========================================================================
   Donation Form Styles
   ========================================================================== */

/* Container */
.donation-form-wrap {
    max-width: 700px;
    margin: 0 auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Button groups (amount & frequency) */
.amount-buttons,
.frequency-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.amount-btn,
.frequency-btn {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #ddd;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 5px;
    text-align: center;
}

.amount-btn {
    min-width: 100px;
    padding: 15px 20px;
    font-size: 18px;
    font-weight: bold;
}

.frequency-btn {
    min-width: 120px;
    font-size: 14px;
}

.amount-btn:hover,
.frequency-btn:hover {
    border-color: #2b7f1c;
}

.amount-btn.selected,
.frequency-btn.selected {
    border-color: #2b7f1c;
    background: #2b7f1c;
    color: #fff;
}

/* Toggle visibility pattern */
.custom-amount-input,
.address-fields,
.donor-details-fields,
.loading-spinner {
    display: none;
}

.custom-amount-input.show,
.address-fields.show,
.donor-details-fields.show,
.loading-spinner.show {
    display: block;
}

/* Custom amount input */
.custom-amount-input {
    margin-bottom: 20px;
}

.custom-amount-input .input-group {
    display: flex;
    align-items: center;
}

.custom-amount-input .input-group-text,
.custom-amount-input input {
    padding: 10px 15px;
    font-size: 18px;
}

.custom-amount-input .input-group-text {
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-right: none;
    font-weight: bold;
}

.custom-amount-input input {
    flex: 1;
    border: 1px solid #ddd;
}

/* Form sections */
.donation-form-wrap .form-section {
    margin-bottom: 30px;
}

.donation-form-wrap #section-frequency {
    padding-top: 60px;
}

.donation-form-wrap #section-frequency h4 {
    text-align: center;
}

.donation-form-wrap .form-section h4 {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #2b7f1c;
    color: #333;
}


.donation-form-wrap .form-group {
    margin-bottom: 15px;
}

.donation-form-wrap .form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.donation-form-wrap .form-group .form-control {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.donation-form-wrap .form-group .form-control:focus {
    outline: none;
    border-color: #2b7f1c;
}

/* Gift Aid section */
.gift-aid-section,
.summary-box {
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.gift-aid-section {
    background: #f9f9f9;
}

.gift-aid-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
    width: 100%;
}

.gift-aid-checkbox input[type="checkbox"] {
    margin-top: 3px;
    min-width: 20px;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    cursor: pointer;
}

.gift-aid-checkbox label {
    flex: 1;
    display: inline;
    text-align: left;
    margin: 0;
    padding: 0;
    font-weight: normal;
    cursor: pointer;
    line-height: 1.5;
}

.gift-aid-declaration {
    font-size: 12px;
    color: #666;
    margin-top: 10px;
    padding: 10px;
    background: #fff;
    border-radius: 5px;
}

.address-fields {
    margin-top: 15px;
}

/* Grid layout */
.donation-form-wrap .row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.donation-form-wrap .col-half {
    width: 50%;
    padding: 0 10px;
}

@media (max-width: 600px) {
    .donation-form-wrap .col-half {
        width: 100%;
    }
}

/* Submit button */
.submit-btn {
    width: 100%;
    padding: 15px 30px;
    background: #2b7f1c;
    color: #fff;
    border: none;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.submit-btn:hover {
    background: #236617;
}

.submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Feedback states */
.error-message {
    color: #dc3545;
    font-size: 14px;
    margin-top: 5px;
}

.form-errors {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.loading-spinner {
    text-align: center;
    padding: 20px;
}

/* Summary box */
.summary-box {
    background: #f5f5f5;
}

.summary-box .amount-display {
    font-size: 32px;
    font-weight: bold;
    color: #2b7f1c;
    text-align: center;
}

.summary-box .frequency-display {
    text-align: center;
    color: #666;
    margin-top: 5px;
}

/* ==========================================================================
   Expandable Campaign Cards
   ========================================================================== */

.campaign-cards-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.campaign-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease;
}

.campaign-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.campaign-card-header {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    cursor: pointer;
    background: #f9f9f9;
    border-bottom: 1px solid transparent;
    transition: background 0.3s ease;
}

.campaign-card-header:hover {
    background: #f0f0f0;
}

.campaign-card.expanded .campaign-card-header {
    border-bottom-color: #ddd;
}

.campaign-card-image {
    flex-shrink: 0;
    margin-right: 15px;
}

.campaign-card-image img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.campaign-card-title {
    flex: 1;
}

.campaign-card-title h4 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.campaign-card-toggle {
    flex-shrink: 0;
    margin-left: 15px;
}

.expand-icon {
    font-size: 16px;
    color: #666;
    transition: transform 0.3s ease;
}

.campaign-card.expanded .expand-icon {
    transform: rotate(180deg);
}

.campaign-card-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    padding: 0 20px;
}

.campaign-card.expanded .campaign-card-content {
    max-height: 600px;
    padding: 20px;
}

.campaign-description {
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.campaign-description p {
    margin-bottom: 10px;
}

.campaign-goal-info {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.campaign-goal-text {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
}

.campaign-progress-bar {
    height: 12px;
    background: #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2b7f1c, #3da52a);
    border-radius: 6px;
    transition: width 0.5s ease;
}

.progress-text {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.campaign-donate-action {
    text-align: center;
    padding-top: 10px;
}

.campaign-donate-action .action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

@media (max-width: 600px) {
    .campaign-card-header {
        padding: 12px 15px;
    }

    .campaign-card-image img {
        width: 50px;
        height: 50px;
    }

    .campaign-card-title h4 {
        font-size: 16px;
    }

    .campaign-card.expanded .campaign-card-content {
        padding: 15px;
    }
}

/* ==========================================================================
   Selected Campaign Banner (on donate form)
   ========================================================================== */

.selected-campaign-banner {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border: 2px solid #2b7f1c;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 25px;
    gap: 15px;
}

.selected-campaign-image {
    flex-shrink: 0;
}

.selected-campaign-image img {
    max-width: 120px;
    max-height: 120px;
    width: auto;
    height: auto;
    border-radius: 10px;
    object-fit: contain;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.selected-campaign-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.selected-campaign-label {
    font-size: 13px;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.selected-campaign-name {
    font-size: 18px;
    font-weight: 600;
    color: #2b7f1c;
}

.change-campaign-link {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 5px;
    transition: all 0.2s ease;
}

.change-campaign-link:hover {
    background: rgba(0,0,0,0.05);
    color: #333;
}

.change-campaign-link i {
    margin-right: 4px;
}

@media (max-width: 480px) {
    .selected-campaign-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .change-campaign-link {
        align-self: flex-end;
    }
}

/* ==========================================================================
   Progressive Form - Hidden Sections
   ========================================================================== */

.form-section.hidden,
.summary-box.hidden {
    display: none;
}

/* ==========================================================================
   Gift Aid Enhancement Styles
   ========================================================================== */

/* Gift Aid intro text */
.gift-aid-intro {
    color: #666;
    margin-bottom: 20px;
}

/* Gift Aid boost display */
.gift-aid-boost {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 25px;
    margin-bottom: 25px;
    text-align: center;
}

.gift-aid-boost .original-amount,
.gift-aid-boost .boosted-amount {
    font-size: 32px;
    font-weight: bold;
    color: #2b7f1c;
}

.gift-aid-boost .boost-arrow {
    color: #2b7f1c;
    font-size: 24px;
}

/* Gift Aid Yes/No question */
.gift-aid-question {
    margin-bottom: 20px;
    text-align: center;
}

.gift-aid-question p {
    margin-bottom: 12px;
}

/* Gift Aid Yes/No checkbox buttons */
.gift-aid-options {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 15px !important;
    justify-content: center !important;
    width: 100% !important;
}

.gift-aid-option {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 12px 30px !important;
    border: 2px solid #ddd !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all 0.2s ease;
    background: #fff !important;
    white-space: nowrap;
}

.gift-aid-option:hover {
    border-color: #2b7f1c !important;
}

.gift-aid-option.selected {
    border-color: #2b7f1c !important;
    background: #e8f5e9 !important;
}

.gift-aid-option input[type="checkbox"] {
    -webkit-appearance: checkbox !important;
    appearance: checkbox !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    min-height: 18px !important;
    cursor: pointer !important;
    accent-color: #2b7f1c;
    flex-shrink: 0;
}

.gift-aid-option .option-label {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #333 !important;
    line-height: 18px !important;
    display: inline !important;
}

/* Mobile responsive for Gift Aid */
@media (max-width: 480px) {
    .gift-aid-boost {
        flex-direction: column;
        gap: 12px;
        padding: 20px;
    }

    .gift-aid-boost .boost-arrow {
        transform: rotate(90deg);
    }

    .gift-aid-options {
        flex-direction: row;
        gap: 10px;
        flex-wrap: wrap;
    }

    .gift-aid-option {
        padding: 10px 20px;
    }
}

/* ==========================================================================
   Donations Index Page Styles
   ========================================================================== */

/* Rich text centering */
.donations-index-page .rich-text {
    text-align: center;
}

/* Campaign cards container - Index page overrides */
.donations-index-page .campaign-cards-container {
    margin-bottom: 30px;
    width: 100% !important;
    display: block !important;
    clear: both;
}

.donations-index-page .campaign-cards-container > .row {
    margin-left: -10px !important;
    margin-right: -10px !important;
    display: flex !important;
    flex-wrap: wrap !important;
}

.donations-index-page .campaign-card-wrapper {
    padding: 10px !important;
    float: none !important;
    display: block !important;
}

.donations-index-page .campaign-card {
    background: #fff !important;
    border: 2px solid #2b7f1c !important;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow: hidden;
    width: 100% !important;
    display: block !important;
}

.donations-index-page .campaign-card-header {
    display: flex !important;
    align-items: center !important;
    padding: 20px 25px !important;
    cursor: pointer;
    background: linear-gradient(135deg, #f9f9f9 0%, #f0f0f0 100%) !important;
    min-height: 100px;
    width: 100% !important;
}

.donations-index-page .campaign-card-header:hover {
    background: linear-gradient(135deg, #f0f0f0 0%, #e8e8e8 100%) !important;
}

.donations-index-page .campaign-card-image {
    flex-shrink: 0 !important;
    margin-right: 20px !important;
    display: block !important;
}

.donations-index-page .campaign-card-image img {
    max-width: 120px !important;
    max-height: 120px !important;
    width: auto;
    height: auto;
    border-radius: 10px;
    object-fit: contain;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    display: block !important;
}

.donations-index-page .campaign-card-title {
    flex: 1 !important;
    min-width: 0;
}

.donations-index-page .campaign-card-title h4 {
    margin: 0 !important;
    font-size: 20px !important;
    font-weight: 600;
    color: #333 !important;
}

.donations-index-page .campaign-card-toggle {
    flex-shrink: 0;
    margin-left: 15px;
}

.donations-index-page .campaign-card-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.4s ease, padding 0.3s ease;
}

.donations-index-page .campaign-card.expanded .campaign-card-content {
    max-height: 1200px;
    padding: 25px;
}

.donations-index-page .expand-icon {
    transition: transform 0.3s ease;
    font-size: 18px;
    color: #2b7f1c;
}

.donations-index-page .campaign-card.expanded .expand-icon {
    transform: rotate(180deg);
}

.donations-index-page .campaign-description {
    margin-bottom: 20px;
    color: #444;
    line-height: 1.8;
    font-size: 16px;
}

.donations-index-page .campaign-description p {
    margin-bottom: 15px;
}

.donations-index-page .campaign-description p:last-child {
    margin-bottom: 0;
}

.donations-index-page .campaign-description ul,
.donations-index-page .campaign-description ol {
    margin: 15px 0;
    padding-left: 25px;
}

.donations-index-page .campaign-description li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.donations-index-page .campaign-description h3,
.donations-index-page .campaign-description h4 {
    margin: 20px 0 10px;
    color: #2b7f1c;
    font-weight: 600;
}

.donations-index-page .campaign-description strong {
    color: #333;
}

.donations-index-page .campaign-description a {
    color: #2b7f1c;
    text-decoration: underline;
}

.donations-index-page .campaign-description a:hover {
    color: #236617;
}

.donations-index-page .campaign-goal-info {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border: 2px solid #2b7f1c;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.donations-index-page .campaign-goal-text {
    font-size: 18px;
    color: #333;
    margin-bottom: 12px;
}

.donations-index-page .campaign-goal-text strong {
    color: #2b7f1c;
}

.donations-index-page .campaign-goal-amount {
    font-size: 28px;
    font-weight: 700;
    color: #2b7f1c;
}

.donations-index-page .campaign-progress-bar {
    height: 20px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin: 15px 0;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.donations-index-page .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2b7f1c, #3da52a);
    border-radius: 10px;
    transition: width 0.5s ease;
}

.donations-index-page .progress-text {
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

.donations-index-page .progress-text .raised-amount {
    color: #2b7f1c;
    font-weight: 700;
}

.donations-index-page .campaign-donate-action {
    text-align: center;
    padding-top: 10px;
}

/* Campaign placeholder icon (when no image) */
.donations-index-page .campaign-placeholder-icon {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #2b7f1c, #3da52a);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.donations-index-page .campaign-placeholder-icon i {
    color: #fff;
    font-size: 48px;
}

/* Campaign full image in expanded content */
.donations-index-page .campaign-full-image {
    margin-bottom: 20px;
    text-align: center;
}

.donations-index-page .campaign-image-link {
    display: inline-block;
    cursor: pointer;
}

.donations-index-page .campaign-full-img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: contain;
    transition: opacity 0.2s;
}

.donations-index-page .campaign-full-img:hover {
    opacity: 0.85;
}

/* General donate section */
.donations-index-page .general-donate-section {
    text-align: center;
    margin: 40px 0;
}

/* Legacy campaign cards (external links mode) */
.donations-index-page .legacy-card-wrapper {
    margin-bottom: 20px;
}

.donations-index-page .legacy-campaign-card {
    display: block;
    text-decoration: none;
    background: #fff;
    border: 2px solid #2b7f1c;
    border-radius: 12px;
    overflow: hidden;
}

.donations-index-page .legacy-card-image {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.donations-index-page .legacy-card-content {
    padding: 20px;
    text-align: center;
}

.donations-index-page .legacy-card-content h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 18px;
}

.donations-index-page .donate-now-btn {
    display: inline-block;
    background: #2b7f1c;
    color: #fff;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
}

/* Intro text spacing */
.donations-index-page .intro-text {
    padding-bottom: 30px;
}

/* Stripe payment banner */
.stripe-payment-banner {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border: 1px solid #dee2e6;
}

.stripe-payment-banner .banner-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px 0;
}

.stripe-payment-banner .banner-title i {
    color: #2b7f1c;
    margin-right: 8px;
}

.stripe-payment-banner .stripe-logo {
    height: 28px;
    vertical-align: middle;
    margin-left: 8px;
}

.stripe-payment-banner .banner-subtitle {
    font-size: 16px;
    color: #555;
    margin: 0 0 8px 0;
}

.stripe-payment-banner .banner-cta {
    font-size: 17px;
    color: #2b7f1c;
    font-weight: 600;
    margin: 0;
}

/* ==========================================================================
   Bank Details Table Styles
   ========================================================================== */

/* Desktop styles */
.bank-table-responsive {
    width: 100% !important;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
    border: 2px solid #2b7f1c;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Column widths to fill the table */
.bank-table-responsive th:nth-child(1),
.bank-table-responsive td:nth-child(1) {
    width: 6%;
}

.bank-table-responsive th:nth-child(2),
.bank-table-responsive td:nth-child(2) {
    width: 22%;
}

.bank-table-responsive th:nth-child(3),
.bank-table-responsive td:nth-child(3) {
    width: 18%;
}

.bank-table-responsive th:nth-child(4),
.bank-table-responsive td:nth-child(4) {
    width: 18%;
}

.bank-table-responsive th:nth-child(5),
.bank-table-responsive td:nth-child(5) {
    width: 18%;
}

.bank-table-responsive th:nth-child(6),
.bank-table-responsive td:nth-child(6) {
    width: 18%;
}

/* Hide any columns beyond the 6th (shouldn't exist but just in case) */
.bank-table-responsive th:nth-child(n+7),
.bank-table-responsive td:nth-child(n+7) {
    display: none;
}

.bank-table-responsive thead {
    background: linear-gradient(135deg, #2b7f1c 0%, #3da52a 100%);
}

.bank-table-responsive thead th {
    color: #fff;
    font-weight: 600;
    padding: 16px 12px;
    text-align: left;
    border: none;
    font-size: 15px;
}

.bank-table-responsive tbody tr {
    transition: background-color 0.2s ease;
}

.bank-table-responsive tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

.bank-table-responsive tbody tr:hover {
    background-color: #e8f5e9;
}

.bank-table-responsive tbody td {
    padding: 14px 12px;
    border: none;
    border-bottom: 1px solid #e0e0e0;
    font-size: 15px;
    color: #333;
}

.bank-table-responsive tbody tr:last-child td {
    border-bottom: none;
}

.bank-table-responsive tbody td:first-child {
    font-weight: 600;
    color: #2b7f1c;
    text-align: center;
    width: 60px;
}

/* Mobile styles for donations index page */
@media (max-width: 768px) {
    .donations-index-page .campaign-card-header {
        padding: 15px 20px;
        min-height: auto;
    }

    .donations-index-page .campaign-card-image img {
        max-width: 80px !important;
        max-height: 80px !important;
    }

    .donations-index-page .campaign-placeholder-icon {
        width: 80px;
        height: 80px;
    }

    .donations-index-page .campaign-placeholder-icon i {
        font-size: 32px;
    }

    .donations-index-page .campaign-card-title h4 {
        font-size: 16px;
    }

    .donations-index-page .campaign-card-content {
        padding: 0 20px;
    }

    .donations-index-page .campaign-card.expanded .campaign-card-content {
        padding: 20px;
    }

    /* Responsive bank table - card layout */
    .kode_blog_detail_row {
        overflow-x: visible !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
    }

    .bank-table-responsive {
        display: block !important;
        width: 100% !important;
        border: none !important;
        border-radius: 0;
        box-shadow: none;
    }

    .bank-table-responsive thead {
        display: none;
    }

    .bank-table-responsive tbody {
        display: block;
        width: 100%;
    }

    .bank-table-responsive tbody tr {
        display: block;
        width: 100% !important;
        margin: 0 0 20px 0;
        border: 2px solid #2b7f1c;
        border-radius: 10px;
        padding: 10px 15px;
        background: #fff;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        box-sizing: border-box;
    }

    .bank-table-responsive tbody tr:hover {
        background-color: #fff;
    }

    .bank-table-responsive tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 14px 10px;
        border: none !important;
        border-bottom: 1px solid #ddd !important;
        width: 100% !important;
        box-sizing: border-box;
        background: #fff;
        text-align: right;
    }

    .bank-table-responsive tbody td:nth-child(odd) {
        background: #f9f9f9;
    }

    .bank-table-responsive tbody td:last-child {
        border-bottom: none !important;
    }

    .bank-table-responsive tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #2b7f1c;
        flex: 0 0 35%;
        text-align: left;
    }

    .bank-table-responsive tbody td:first-child {
        display: none;
    }
}
