.volunteer-offers-page {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #333;
}

.section-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #222;
    letter-spacing: -0.02em;
}

.intro-description {
    color: #555;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.intro-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 25px;
}

.intro-list li {
    color: #555;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
}

.intro-list li:before {
    content: '•';
    color: #00568F;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.sort-section {
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.sort-label {
    font-size: 15px;
    font-weight: 600;
    color: #222;
    margin: 0;
}

.sort-select {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 15px;
    color: #222;
    background: #fff;
    min-width: 250px;
    font-weight: 500;
}

.sort-select:focus {
    outline: none;
    border-color: #00568F;
    box-shadow: 0 0 0 3px rgba(0, 86, 143, 0.1);
}

.offers-count {
    font-size: 17px;
    font-weight: 600;
    color: #222;
    margin-bottom: 20px;
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.offer-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    height: 100%;
}

.offer-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.offer-header {
    margin-bottom: 12px;
}

.offer-title {
    font-size: 17px;
    font-weight: 600;
    color: #222;
    margin: 0 0 10px 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 51px;
    letter-spacing: -0.01em;
}

.offer-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}

.meta-item {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #555;
    font-weight: 500;
}

.meta-item svg {
    margin-right: 5px;
    flex-shrink: 0;
}

.offer-description {
    color: #555;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 15px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.offer-details {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.detail-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 11px;
    background: #f5f5f5;
    border-radius: 6px;
    font-size: 13px;
    color: #555;
    font-weight: 500;
}

.detail-badge svg {
    margin-right: 5px;
}

.offer-stats {
    display: flex;
    gap: 15px;
    padding: 12px 0;
    border-top: 1px solid #f0f0f0;
    margin-bottom: 15px;
}

.stat-item {
    font-size: 13px;
    color: #777;
    font-weight: 500;
}

.stat-item strong {
    color: #222;
    font-weight: 600;
}

.contact-button {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 8px;
    background: #00568F;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    letter-spacing: 0.01em;
}

.contact-button:hover {
    background: #004070;
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 86, 143, 0.3);
}

.contact-button.secondary {
    background: #6c757d;
}

.contact-button.secondary:hover {
    background: #5a6268;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #555;
}

.empty-state h4 {
    font-size: 20px;
    font-weight: 600;
    color: #222;
    margin-bottom: 12px;
}

.empty-state p {
    font-size: 15px;
    color: #777;
    line-height: 1.6;
}

.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    margin-bottom: 20px;
}

/* Custom Pagination Styling */
.pagination-wrapper .pagination {
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination-wrapper .page-item {
    display: inline-block;
}

.pagination-wrapper .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    color: #555;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.pagination-wrapper .page-link:hover {
    background: #f5f5f5;
    border-color: #00568F;
    color: #00568F;
}

.pagination-wrapper .page-item.active .page-link {
    background: #00568F;
    border-color: #00568F;
    color: #fff;
}

.pagination-wrapper .page-item.disabled .page-link {
    background: #f5f5f5;
    border-color: #e0e0e0;
    color: #ccc;
    cursor: not-allowed;
}

.pagination-wrapper .page-item.disabled .page-link:hover {
    background: #f5f5f5;
    border-color: #e0e0e0;
    color: #ccc;
}

/* Login Required Overlay */
.protected-content {
    position: relative;
}

.protected-content.blurred .offer-details,
.protected-content.blurred .offer-stats {
    filter: blur(4px);
    user-select: none;
    pointer-events: none;
}

.login-overlay {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #00568F;
    border-radius: 8px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(0, 86, 143, 0.15);
    z-index: 10;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.login-overlay:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 12px rgba(0, 86, 143, 0.25);
    text-decoration: none;
}


.login-overlay svg {
    flex-shrink: 0;
}

.login-overlay-text {
    font-size: 13px;
    color: #00568F;
    font-weight: 600;
}

.login-overlay-link {
    color: #00568F;
    text-decoration: underline;
    font-weight: 600;
}

.login-overlay-link:hover {
    color: #004070;
    text-decoration: underline;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .offers-grid {
        grid-template-columns: 1fr;
    }
    
    .sort-section {
        flex-direction: column;
        align-items: stretch;
    }
    
    .sort-select {
        width: 100%;
    }
    
    .offer-meta {
        flex-direction: column;
        gap: 6px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .offers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
</style>
