/* Global Path Listings - Professional Design v1.5.0 */
.global-path-platform-container {
    margin: 40px 0;
}

/* Filter Form Styles */
.global-path-filter-form {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid #eaeaea;
}

.global-path-filter-form h3 {
    margin: 0 0 20px 0;
    color: #1a365d;
    font-size: 1.4em;
    font-weight: 700;
}

.filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    margin-bottom: 8px;
    font-weight: 600;
    color: #4a5568;
    font-size: 0.95em;
}

.filter-group select {
    padding: 12px;
    border: 1px solid #cbd5e0;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    color: #2d3748;
    transition: border-color 0.3s ease;
}

.filter-group select:focus {
    outline: none;
    border-color: #25D366;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.1);
}

.filter-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.filter-submit,
.filter-reset {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95em;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.filter-submit {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
}

.filter-submit:hover {
    background: linear-gradient(135deg, #128C7E 0%, #0a6e5f 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.filter-reset {
    background: #f7fafc;
    color: #4a5568;
    border: 1px solid #cbd5e0;
}

.filter-reset:hover {
    background: #edf2f7;
    color: #1a365d;
    border-color: #1a365d;
}

/* Loading Indicator */
#global-path-loading {
    text-align: center;
    padding: 40px;
    background: #f7fafc;
    border-radius: 12px;
    margin: 20px 0;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e2e8f0;
    border-top: 4px solid #25D366;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Listings Grid */
.global-path-listings {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 25px;
}

.gp-listings-list .listing-card {
    display: flex;
    flex-direction: column;
}

/* Listing Cards */
.listing-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: 0;
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid #eaeaea;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.featured-card {
    border: 2px solid #25D366;
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.15);
}

.featured-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 10;
}

/* Hero Image - 16:9 Ratio */
.card-hero {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
    background: #f7fafc;
}

.card-hero img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.listing-card:hover .card-hero img {
    transform: scale(1.05);
}

/* Card Content */
.card-content-wrapper {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.listing-title {
    margin: 0 0 12px 0;
    color: #1a365d;
    font-size: 22px !important;
    font-weight: 700;
    line-height: 1.3;
}

.listing-category {
    margin-bottom: 15px;
}

.category-badge {
    display: inline-block;
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: 600;
}

/* Card Meta */
.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f4f8;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    color: #2d3748;
    border: 1px solid #cbd5e0;
    word-break: break-word;
    flex: 1 0 auto;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.meta-icon {
    font-size: 1.1em;
}

.meta-item strong {
    color: #4a5568;
    margin-right: 5px;
    display: inline-block;
}

.deadline {
    background: linear-gradient(135deg, #fff5f5 0%, #fed7d7 100%);
    border-color: #fc8181;
    color: #c53030;
}

/* Content Sections */
.card-content {
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 20px;
}

.card-content p {
    margin-bottom: 15px;
}

.card-content p:last-child {
    margin-bottom: 0;
}

.eligibility-section,
.benefits-section,
.application-section,
.field-section,
.requirements-section {
    margin-bottom: 20px;
    padding: 20px;
    background: #f7fafc;
    border-radius: 8px;
    border-left: 4px solid #25D366;
}

.eligibility-section h4,
.benefits-section h4,
.application-section h4,
.field-section h4,
.requirements-section h4 {
    color: #1a365d;
    margin: 0 0 15px 0;
    font-size: 1.1em;
    font-weight: 600;
}

.highlights {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.highlight-item {
    padding-left: 20px;
    position: relative;
    color: #4a5568;
    line-height: 1.5;
}

.highlight-item:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #25D366;
    font-weight: bold;
    font-size: 1.2em;
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.process-item {
    padding-left: 20px;
    position: relative;
    color: #4a5568;
    line-height: 1.5;
}

.process-item:before {
    content: "→";
    position: absolute;
    left: 0;
    color: #25D366;
    font-weight: bold;
    font-size: 1.1em;
}

.field-section p {
    margin: 0;
    color: #4a5568;
    line-height: 1.6;
}

/* Action Buttons */
.card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 25px;
}

.whatsapp-btn,
.website-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95em;
    text-decoration: none;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 140px;
    text-align: center;
    border: none;
    cursor: pointer;
}

.btn-icon {
    margin-right: 8px;
    font-size: 1.1em;
}

.whatsapp-btn {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white !important;
}

.whatsapp-btn:hover {
    background: linear-gradient(135deg, #128C7E 0%, #0a6e5f 100%);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.website-btn {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    color: white !important;
}

.website-btn:hover {
    background: linear-gradient(135deg, #3182ce 0%, #2b6cb0 100%);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.3);
}

.no-listings {
    text-align: center;
    padding: 40px;
    background: #f7fafc;
    border-radius: 12px;
    color: #718096;
    font-size: 1.1em;
    grid-column: 1 / -1;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .global-path-listings {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    }
}

@media (max-width: 768px) {
    .global-path-listings {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .listing-card {
        padding: 0;
    }
    
    .global-path-filter-form {
        padding: 20px;
    }
    
    .filter-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .filter-actions {
        flex-direction: column;
    }
    
    .filter-submit,
    .filter-reset {
        width: 100%;
    }
    
    .card-content-wrapper {
        padding: 15px;
    }
    
    .listing-title {
        font-size: 20px !important;
    }
    
    .card-meta {
        flex-direction: column;
        gap: 6px;
    }
    
    .meta-item {
        width: 100%;
        justify-content: flex-start;
    }
    
    .card-actions {
        flex-direction: column;
    }
    
    .whatsapp-btn,
    .website-btn {
        width: 100%;
    }
    
    .featured-badge {
        font-size: 9px;
        padding: 4px 10px;
    }
}

@media (max-width: 480px) {
    .listing-title {
        font-size: 18px !important;
    }
    
    .meta-item {
        font-size: 0.8em;
        padding: 5px 10px;
    }
    
    .whatsapp-btn,
    .website-btn {
        font-size: 0.9em;
        padding: 10px 16px;
    }
}

/* Animation for cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.listing-card {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.listing-card:nth-child(1) { animation-delay: 0.1s; }
.listing-card:nth-child(2) { animation-delay: 0.2s; }
.listing-card:nth-child(3) { animation-delay: 0.3s; }
.listing-card:nth-child(4) { animation-delay: 0.4s; }
.listing-card:nth-child(5) { animation-delay: 0.5s; }
.listing-card:nth-child(n+6) { animation-delay: 0.6s; }

/* Hover effects */
.listing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}
        