/**
 * Simple Community Plugin Public Styles
 * 
 * This file contains all the CSS for the public-facing functionality.
 * Adapted from the reference project with sbp- prefix for uniqueness.
 */

/* Community Directory Container */
.sbp-community-directory {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Filters Section */
.sbp-filters-section {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 32px;
}

.sbp-filters-title {
    margin: 0 0 20px 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
}

.sbp-filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    align-items: start;
}

.sbp-filter-group {
    display: flex;
    flex-direction: column;
}

.sbp-filter-label {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

.sbp-label-text {
    margin-right: 8px;
}

.sbp-label-icon {
    font-size: 1.1em;
}

.sbp-filter-input,
.sbp-filter-select-input {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

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

.sbp-input-help {
    margin-top: 4px;
    font-size: 12px;
    color: #666;
}

.sbp-filter-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.sbp-filter-button,
.sbp-clear-filters {
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.sbp-btn-primary {
    background: #007cba;
    color: white;
}

.sbp-btn-primary:hover {
    background: #005a87;
}

.sbp-btn-secondary {
    background: #f1f1f1;
    color: #333;
}

.sbp-btn-secondary:hover {
    background: #e0e0e0;
}

.sbp-btn-icon {
    margin-right: 6px;
}

/* Results Section */
.sbp-results-section {
    margin-top: 32px;
}

.sbp-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.sbp-results-info {
    flex: 1;
}

.sbp-results-count {
    font-size: 16px;
    color: #555;
    margin: 0;
}

.sbp-count-number {
    font-weight: 600;
    color: #333;
}

.sbp-results-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.sbp-export-pdf-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.sbp-export-pdf-btn:hover {
    background: #218838;
    transform: translateY(-1px);
}

.sbp-export-pdf-btn:active {
    transform: translateY(0);
}

.sbp-export-pdf-btn .sbp-btn-icon {
    margin-right: 6px;
}

.sbp-export-pdf-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    opacity: 0.8;
}

.sbp-export-pdf-btn:disabled:hover {
    background: #6c757d;
    transform: none;
}

/* Community Grid - Standard Layout */
.sbp-community-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 equal columns */
    gap: 24px;
    margin-bottom: 32px;
    align-items: stretch; /* Makes all cards same height */
}

.sbp-community-card {
    background: white;
    border: 2px solid #666;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.sbp-business-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    border-color: #007cba;
}

.sbp-card-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 16px;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid #ddd;
}

.sbp-community-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.sbp-icon-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.sbp-header-text {
    flex: 1;
    min-width: 0;
}

.sbp-community-name {
    margin: 0 0 4px 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.sbp-community-link {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.sbp-community-link:hover {
    color: #007cba;
}

.sbp-organization-name {
    margin: 0;
    font-size: 14px;
    color: #666;
    font-style: italic;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.4;
}

/* Card Content */
.sbp-card-content {
    margin-bottom: 16px;
    flex: 1; /* Expand to fill available space */
}

.sbp-community-description {
    margin-bottom: 16px;
}

.sbp-community-description p {
    margin: 0;
    color: #555;
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.sbp-community-details {
    margin-bottom: 12px;
}

.sbp-detail-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 8px;
    font-size: 14px;
    gap: 8px;
}

.sbp-detail-icon {
    width: 16px;
    text-align: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.sbp-detail-label {
    font-weight: 500;
    color: #333;
    white-space: nowrap;
    flex-shrink: 0;
}

.sbp-detail-value {
    color: #555;
    word-wrap: break-word;
    overflow-wrap: break-word;
    flex: 1;
    min-width: 0;
}

.sbp-services-more {
    color: #007cba;
    font-weight: 500;
}

/* Business Tags */
.sbp-community-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.sbp-tag {
    background: #f0f8ff;
    color: #007cba;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid #b3d9ff;
}

.sbp-tag-more {
    background: #e9ecef;
    color: #666;
    border-color: #ced4da;
}

/* Card Footer */
.sbp-card-footer {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 16px;
    border-top: 2px solid #ddd;
}

.sbp-contact-info {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.sbp-contact-item {
    display: inline-flex;
    align-items: center;
    color: #007cba;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.sbp-contact-item:hover {
    color: #005a87;
}

.sbp-contact-icon {
    margin-right: 4px;
    flex-shrink: 0;
}

.sbp-contact-text {
    word-wrap: break-word;
    overflow-wrap: break-word;
    min-width: 0;
}

.sbp-card-actions {
    text-align: center;
}

.sbp-view-details-btn {
    background: #007cba;
    color: #f0f0f0;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.2s ease;
    display: inline-block;
}

.sbp-view-details-btn:hover {
    background: #005a87;
    color: #f0f0f0;
}

/* Resource Detail Page */
.sbp-detail-hero {
    background: linear-gradient(135deg, #007cba 0%, #005a87 100%);
    color: white;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.sbp-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
}

.sbp-hero-content {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.sbp-detail-nav {
    margin-bottom: 20px;
}

.sbp-back-btn {
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.sbp-back-btn:hover {
    opacity: 0.8;
    color: white;
}

.sbp-back-icon {
    margin-right: 8px;
}

.sbp-hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.sbp-hero-subtitle {
    font-size: 1.1rem;
    margin: 0;
    opacity: 0.9;
    line-height: 1.4;
}

.sbp-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.sbp-resource-header {
    margin-bottom: 40px;
}

.sbp-resource-name {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 16px 0;
}

.sbp-service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.sbp-service-tag {
    background: #e3f2fd;
    color: #1565c0;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
}

.sbp-detail-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

.sbp-detail-main {
    min-width: 0;
}

.sbp-resource-image {
    margin-bottom: 32px;
}

.sbp-detail-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.sbp-placeholder-image {
    width: 100%;
    height: 300px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sbp-about-section,
.sbp-services-offered-section {
    margin-bottom: 32px;
}

.sbp-section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 16px 0;
    border-bottom: 2px solid #007cba;
    padding-bottom: 8px;
}

.sbp-about-content p {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    margin: 0;
}

.sbp-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

.sbp-service-category {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    padding: 12px 16px;
    border-radius: 6px;
    text-align: center;
    font-weight: 500;
    color: #333;
}

.sbp-detail-sidebar {
    position: sticky;
    top: 20px;
}

.sbp-contact-card,
.sbp-quote-form-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sbp-contact-title,
.sbp-form-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 20px 0;
}

.sbp-contact-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.sbp-contact-detail:last-of-type {
    border-bottom: none;
}

.sbp-contact-field {
    font-weight: 500;
    color: #666;
}

.sbp-contact-data {
    color: #333;
    font-weight: 500;
}

.sbp-contact-actions {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sbp-action-btn {
    display: block;
    text-align: center;
    padding: 12px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.sbp-btn-primary-full {
    background: #007cba;
    color: white;
}

.sbp-btn-primary-full:hover {
    background: #005a87;
    color: white;
}

.sbp-btn-secondary-full {
    background: #28a745;
    color: white;
}

.sbp-btn-secondary-full:hover {
    background: #1e7e34;
    color: white;
}

.sbp-quote-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sbp-form-group {
    display: flex;
    flex-direction: column;
}

.sbp-form-input,
.sbp-form-textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

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

.sbp-form-submit {
    background: #dc3545;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.sbp-form-submit:hover {
    background: #c82333;
}

/* Responsive Design for Detail Page */
@media (max-width: 768px) {
    .sbp-detail-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .sbp-detail-sidebar {
        position: static;
    }
    
    .sbp-hero-title {
        font-size: 2rem;
    }
    
    .sbp-resource-name {
        font-size: 1.75rem;
    }
}

/* No Results */
.sbp-no-results {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.sbp-no-results-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.sbp-no-results-title {
    margin: 0 0 8px 0;
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

.sbp-no-results-message {
    margin: 0;
    font-size: 16px;
}

/* Error Styling */
.sbp-error {
    background: #ffeaea;
    border: 1px solid #ff6b6b;
    border-radius: 4px;
    padding: 16px;
    margin: 20px 0;
}

.sbp-error p {
    margin: 0;
    color: #d63031;
}

/* Loading State */
.sbp-loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

/* Pagination */
.sbp-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.sbp-pagination-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.sbp-pagination-item:hover {
    background: #007cba;
    color: white;
    border-color: #007cba;
}

.sbp-pagination-item.active {
    background: #007cba;
    color: white;
    border-color: #007cba;
    cursor: default;
}

.sbp-pagination-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.sbp-pagination-ellipsis {
    padding: 0 8px;
    color: #666;
}

.sbp-pagination-info {
    color: #666;
    font-size: 14px;
    margin: 0 16px;
}

/* Responsive Design */
@media (max-width: 1024px) and (min-width: 769px) {
    .sbp-community-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablets */
    }
}

@media (max-width: 768px) {
    .sbp-community-directory {
        padding: 16px;
    }
    
    .sbp-filter-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .sbp-filter-actions {
        justify-content: space-between;
        flex-direction: column;
        gap: 8px;
    }
    
    .sbp-filter-button,
    .sbp-clear-filters {
        width: 100%;
        justify-content: center;
    }
    
    .sbp-results-header {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 12px;
    }
    
    .sbp-results-actions {
        justify-content: center;
    }
    
    .sbp-community-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .sbp-card-header {
        gap: 8px;
    }
    
    .sbp-community-name {
        font-size: 16px;
        line-height: 1.4;
    }
    
    .sbp-detail-item {
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 6px;
    }
    
    .sbp-detail-label {
        min-width: 65px;
    }
    
    .sbp-card-footer {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    
    .sbp-contact-info {
        justify-content: center;
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    
    .sbp-contact-item {
        justify-content: center;
        max-width: 100%;
        text-align: center;
    }
    
    .sbp-pagination {
        gap: 4px;
        font-size: 14px;
    }
    
    .sbp-pagination-item {
        min-width: 36px;
        height: 36px;
        padding: 0 10px;
        font-size: 14px;
    }
    
    .sbp-pagination-info {
        font-size: 12px;
        margin: 8px 0;
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .sbp-community-card {
        padding: 16px;
    }
    
    .sbp-card-header {
        flex-direction: column;
        text-align: center;
    }
    
    .sbp-community-icon {
        margin: 0 auto 12px auto;
    }
}

/* ========================================
   RESOURCE DETAIL PAGE STYLES
   ======================================== */

/* Detail Page Container */
.sbp-resource-detail {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
}

/* Back Navigation */
.sbp-detail-nav {
    margin-bottom: 24px;
}

.sbp-back-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    text-decoration: none;
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.sbp-back-btn:hover {
    background: #e9ecef;
    color: #495057;
    text-decoration: none;
}

.sbp-back-icon {
    margin-right: 6px;
    font-size: 16px;
}

/* Detail Header */
.sbp-detail-header {
    background: linear-gradient(135deg, #00819E 0%, #0099B8 100%);
    color: white;
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: 0 4px 20px rgba(0, 129, 158, 0.15);
}

.sbp-header-content {
    display: flex;
    align-items: center;
    gap: 24px;
}

.sbp-resource-icon-large {
    flex-shrink: 0;
}

.sbp-icon-img-large {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
    background: white;
    padding: 8px;
}

.sbp-header-text {
    flex-grow: 1;
}

.sbp-resource-title {
    margin: 0 0 8px 0;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
}

.sbp-organization-name-large {
    margin: 0 0 12px 0;
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 400;
}

.sbp-service-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    margin: 0;
}

.sbp-badge-icon {
    font-size: 16px;
}

/* Detail Content */
.sbp-detail-content {
    display: grid;
    gap: 32px;
}

.sbp-detail-section {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.sbp-section-title {
    margin: 0 0 20px 0;
    font-size: 1.4rem;
    font-weight: 600;
    color: #00819E;
    border-bottom: 2px solid #f8f9fa;
    padding-bottom: 8px;
}

/* Description Section */
.sbp-description-content p {
    margin: 0;
    font-size: 1rem;
    color: #555;
}

/* Services Section */
.sbp-services-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}

.sbp-service-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #00819E;
}

.sbp-service-icon {
    color: #00819E;
    font-weight: bold;
    font-size: 14px;
}

.sbp-service-text {
    color: #333;
    font-weight: 500;
}

/* Contact Section */
.sbp-contact-grid {
    display: grid;
    gap: 16px;
}

.sbp-contact-item-detail {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.sbp-contact-icon-wrapper {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: #00819E;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sbp-contact-icon-wrapper .sbp-contact-icon {
    font-size: 20px;
    color: white;
}

.sbp-contact-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sbp-contact-label {
    font-size: 12px;
    color: #6c757d;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.sbp-contact-value {
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

.sbp-contact-link {
    color: #00819E;
    text-decoration: none;
    transition: color 0.2s ease;
}

.sbp-contact-link:hover {
    color: #0099B8;
    text-decoration: underline;
}

/* Tags Section */
.sbp-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sbp-tag-detail {
    background: linear-gradient(135deg, #00819E, #0099B8);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    border: none;
}

/* Meta Section */
.sbp-meta-section {
    background: #f8f9fa !important;
    border: 1px solid #e9ecef !important;
}

.sbp-meta-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.sbp-meta-label {
    color: #6c757d;
    font-weight: 500;
}

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

/* Detail Footer */
.sbp-detail-footer {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e9ecef;
}

.sbp-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.sbp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.sbp-btn-primary {
    background: linear-gradient(135deg, #00819E, #0099B8);
    color: white;
}

.sbp-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 129, 158, 0.3);
    color: white;
    text-decoration: none;
}

.sbp-btn-secondary {
    background: white;
    color: #6c757d;
    border-color: #e9ecef;
}

.sbp-btn-secondary:hover {
    background: #f8f9fa;
    color: #495057;
    text-decoration: none;
}

.sbp-btn-icon {
    font-size: 16px;
}

/* Error States */
.sbp-resource-detail .sbp-error {
    text-align: center;
    padding: 40px 20px;
}

.sbp-error-content h2 {
    color: #dc3545;
    margin-bottom: 16px;
}

.sbp-error-content p {
    color: #6c757d;
    margin-bottom: 20px;
}

/* Responsive Design for Detail Page */
@media (max-width: 768px) {
    .sbp-resource-detail {
        padding: 16px;
    }
    
    .sbp-detail-header {
        padding: 24px;
    }
    
    .sbp-header-content {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .sbp-resource-title {
        font-size: 1.6rem;
    }
    
    .sbp-detail-section {
        padding: 20px;
    }
    
    .sbp-section-title {
        font-size: 1.2rem;
    }
    
    .sbp-contact-grid {
        gap: 12px;
    }
    
    .sbp-contact-item-detail {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .sbp-detail-actions {
        flex-direction: column;
    }
    
    .sbp-btn {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .sbp-resource-detail {
        padding: 12px;
    }
    
    .sbp-detail-header {
        padding: 20px;
    }
    
    .sbp-resource-title {
        font-size: 1.4rem;
    }
    
    .sbp-detail-section {
        padding: 16px;
    }
    
    .sbp-services-list {
        gap: 8px;
    }
    
    .sbp-service-item {
        padding: 10px;
    }
}