/* Interactive SVG Styles */
.interactive-svg-container {
    width: 100%;
    max-width: 100%;
    height: auto;
}

.interactive-svg-container svg {
    width: 100%;
    height: auto;
    display: block;
}

#state-data-display {
    font-family: Arial, sans-serif;
    font-size: 16px;
}

.state-partner-post {
    margin-bottom: 20px;
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.state-partner-post h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 500;
}

.state-partner-post p {
    margin: 0;
    font-size: 14px;
}







/* Base styles for the grid container */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem; /* Reduced slightly for smaller screens */
    padding: 1rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Card styles */
.partner-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.partner-card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* Card title */
.partner-card h3 {
    font-size: 1.375rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

/* Excerpt */
.excerpt {
    color: #4a4a4a;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

/* Partner details */
.partner-details {
    font-size: 0.875rem;
    color: #333;
    line-height: 1.6;
}

.partner-details p {
    margin-bottom: 0.5rem;
}

/* Staff section */
.staff-section h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1a1a1a;
    border-bottom: 2px solid #ccc;
    padding-bottom: 0.25rem;
    margin-bottom: 1rem;
}

/* Staff inner card */
.staff-card {
    background: #eee;
    border-radius: 8px;
    padding: 0.875rem;
    margin-bottom: 0.75rem;
}

.staff-card p {
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

/* No staff message */
.no-staff {
    color: #666;
    margin-left: 1rem;
    font-size: 0.875rem;
}

/* Links */
.link {
    color: #0066cc;
    text-decoration: none;
}

.link:hover {
    text-decoration: underline;
}

.details-link {
    display: inline-block;
    margin-top: 1rem;
    color: #0066cc;
    font-weight: 500;
    text-decoration: none;
    font-size: 0.875rem;
}

.details-link:hover {
    text-decoration: underline;
}

/* Error message */
.error-message {
    color: #cc0000;
    font-weight: 500;
    padding: 1rem;
    font-size: 0.875rem;
}

/* Hidden by default */
#state-data-display {
    display: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .partners-grid {
        grid-template-columns: 1fr; /* Single column on smaller screens */
        gap: 1rem;
        padding: 0.75rem;
    }

    .partner-card {
        padding: 1rem;
    }

    .partner-card h3 {
        font-size: 1.25rem;
    }

    .staff-section h4 {
        font-size: 1rem;
    }

    .staff-card {
        padding: 0.75rem;
    }

    .partner-details,
    .staff-card p,
    .no-staff,
    .details-link {
        font-size: 0.8125rem;
    }
}

@media (max-width: 480px) {
    .partners-grid {
        padding: 0.5rem;
    }

    .partner-card {
        padding: 0.875rem;
    }

    .partner-card h3 {
        font-size: 1.125rem;
    }

    .excerpt {
        font-size: 0.8125rem;
    }

    .staff-section h4 {
        font-size: 0.9375rem;
    }

    .staff-card {
        padding: 0.625rem;
    }
}

@media (min-width: 1024px) {
    .partners-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 2rem; /* Larger gap for desktop */
        padding: 1.5rem;
    }

    .partner-card h3 {
        font-size: 1.5rem;
    }

    .partner-details,
    .staff-card p,
    .no-staff,
    .details-link {
        font-size: 0.9375rem;
    }
}