.ghi-funding-section {
    padding: 20px;
    background: #f9f9f9;
}

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

.ghi-section-title {
    font-size: 32px;
    margin-bottom: 30px;
    color: #333;
    text-align: center;
}

.ghi-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
}

.ghi-results-area {
    display: flex;
    flex-direction: column;
}

.ghi-posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.ghi-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

.ghi-card-badges {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.ghi-badge {
    display: inline-block;
    background: #007cba;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

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

.ghi-card-excerpt {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    flex-grow: 1;
}

.ghi-card-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 13px;
}

.ghi-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
}

.ghi-meta-item i {
    color: #007cba;
    width: 16px;
}

.ghi-btn-apply {
    display: inline-block;
    background: #007cba;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    text-align: center;
    font-weight: bold;
    transition: background 0.3s;
}

.ghi-btn-apply:hover {
    background: #005a87;
}

.ghi-btn-load-more {
    background: #45808E;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background 0.3s;
    align-self: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.ghi-btn-load-more:hover {
    background: #3b6e79;
}

.ghi-btn-load-more.loading {
    pointer-events: none;
}

.ghi-btn-load-more.loading .ghi-spinner-small {
    border: 2px solid #f3f3f3;
    border-top: 2px solid white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    animation: ghi-spin 1s linear infinite;
}

.ghi-sidebar {
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 20px;
    height: fit-content;
}

.ghi-filters-panel {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.ghi-filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.ghi-filters-header h3 {
    margin: 0;
    font-size: 18px;
}

.ghi-btn-clear {
    background: #f0f0f0;
    border: 1px solid #ddd;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.3s;
}

.ghi-btn-clear:hover {
    background: #e0e0e0;
}

.ghi-filter-group {
    margin-bottom: 20px;
}

.ghi-filter-label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 14px;
    color: #333;
}

.ghi-filter-label input[type="checkbox"] {
    margin-right: 8px;
}

.ghi-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ghi-checkbox-group label {
    display: flex;
    align-items: center;
    font-size: 13px;
    cursor: pointer;
}

.ghi-checkbox-group input[type="checkbox"] {
    margin-right: 8px;
}

.ghi-scrollable {
    max-height: 200px;
    overflow-y: auto;
}

.ghi-select,
.ghi-input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    box-sizing: border-box;
}

.ghi-select:focus,
.ghi-input:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.1);
}

.ghi-results-header {
    margin-bottom: 20px;
}

.ghi-results-count {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.ghi-no-results,
.ghi-error {
    text-align: center;
    padding: 40px 20px;
    background: white;
    border-radius: 8px;
    color: #666;
}

.ghi-loading {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.ghi-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #45808E;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: ghi-spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes ghi-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .ghi-content-wrapper {
        grid-template-columns: 1fr;
    }

    .ghi-posts-grid {
        grid-template-columns: 1fr;
    }
}

/* Receiver Shortcode */
.ghi-receiver-wrap { max-width: 700px; margin: 0 auto; }
.ghi-receiver-notice { padding: 10px 14px; border-radius: 4px; font-size: 13px; margin-bottom: 14px; display: none; }
.ghi-receiver-notice.success { background: #d4edda; color: #155724; }
.ghi-receiver-notice.error   { background: #f8d7da; color: #721c24; }

/* Admin table */
.ghi-receiver-admin { margin-bottom: 30px; }
.ghi-receiver-admin h3 { font-size: 18px; margin-bottom: 12px; color: #092140; }
.ghi-receiver-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 8px; }
.ghi-receiver-table th, .ghi-receiver-table td { padding: 9px 12px; border: 1px solid #e0e0e0; text-align: left; }
.ghi-receiver-table th { background: #092140; color: #fff; font-weight: 600; }
.ghi-receiver-table tr:nth-child(even) { background: #f7f7f7; }

/* List */
.ghi-receiver-list-wrap { background: #fff; border-radius: 8px; padding: 20px; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.ghi-receiver-list-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.ghi-receiver-list-header h3 { margin: 0; font-size: 18px; color: #092140; }
.ghi-receiver-list { list-style: none; margin: 0; padding: 0; }
.ghi-receiver-item { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid #f0f0f0; }
.ghi-receiver-item:last-child { border-bottom: none; }
.ghi-receiver-info { display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.ghi-receiver-info strong { font-size: 14px; color: #092140; }
.ghi-receiver-info span { color: #555; }
.ghi-receiver-position { font-style: italic; color: #888 !important; font-size: 12px !important; }
.ghi-receiver-empty { color: #999; font-size: 13px; padding: 10px 0; }
.ghi-receiver-actions { display: flex; gap: 8px; }
.ghi-btn-icon { background: none; border: 1px solid #ddd; border-radius: 4px; padding: 5px 9px; cursor: pointer; font-size: 13px; transition: all .2s; }
.ghi-btn-edit:hover  { border-color: #45808E; color: #45808E; }
.ghi-btn-delete-receiver:hover, .ghi-btn-delete-admin:hover { border-color: #c0392b; color: #c0392b; }
.ghi-btn-delete-admin { background: none; border: 1px solid #ddd; border-radius: 4px; padding: 5px 9px; cursor: pointer; font-size: 12px; transition: all .2s; }

/* Add button */
.ghi-btn-add-receiver { background: #092140; color: #fff; border: none; padding: 8px 16px; border-radius: 4px; cursor: pointer; font-size: 13px; font-weight: 600; transition: background .3s; }
.ghi-btn-add-receiver:hover { background: #45808E; }

/* Form */
.ghi-receiver-form-wrap { margin-top: 20px; padding-top: 20px; border-top: 1px solid #eee; }
.ghi-form-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.ghi-form-group { display: flex; flex-direction: column; gap: 4px; }
.ghi-form-group label { font-weight: 600; font-size: 12px; color: #333; }
.ghi-form-group .req { color: #c0392b; }
.ghi-form-group input { padding: 8px 10px; border: 1px solid #ddd; border-radius: 4px; font-size: 13px; }
.ghi-form-group input:focus { outline: none; border-color: #45808E; }
.ghi-form-actions { margin-top: 14px; display: flex; gap: 10px; }
.ghi-btn-submit { background: #092140; color: #fff; border: none; padding: 9px 22px; border-radius: 4px; cursor: pointer; font-size: 13px; font-weight: 600; transition: background .3s; }
.ghi-btn-submit:hover { background: #45808E; }
.ghi-btn-cancel { background: #f0f0f0; border: 1px solid #ddd; padding: 9px 18px; border-radius: 4px; cursor: pointer; font-size: 13px; transition: background .3s; }
.ghi-btn-cancel:hover { background: #e0e0e0; }

@media (max-width: 600px) {
    .ghi-form-row { grid-template-columns: 1fr; }
}
