/**
 * Government Resources Page Styles
 *
 * State-by-state collapsible directory
 *
 * @package FFOA_Custom
 * @since 1.1.0
 */

.page-government-resources {
    background-color: #f8f9fa;
    min-height: 100vh;
}

.gov-resources-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.5rem 4rem;
}

/* Header */
.gov-resources-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 3px solid #C2B97F;
}

.gov-resources-header .page-title {
    font-size: 2.75rem;
    font-weight: 700;
    color: #222E51;
    margin-bottom: 1rem;
}

.gov-resources-header .page-subtitle {
    font-size: 1.25rem;
    color: #C2B97F;
    font-weight: 600;
}

/* Federal Resources Section */
.federal-resources-section {
    margin-bottom: 4rem;
}

.federal-resources-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #222E51;
    margin-bottom: 2rem;
}

.federal-resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.resource-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-top: 4px solid #06A77D;
    display: flex;
    flex-direction: column;
}

.resource-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #222E51;
    margin-bottom: 1rem;
}

.resource-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.resource-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #C2B97F;
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.resource-button:hover {
    background: #a89b6a;
    transform: translateY(-2px);
}

/* State Resources Section */
.state-resources-section {
    margin-bottom: 3rem;
}

.state-resources-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #222E51;
    margin-bottom: 2rem;
}

.states-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.state-section {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.state-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: #222E51;
    color: #ffffff;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.state-header:hover {
    background: #2a3a63;
}

.state-header[aria-expanded="true"] {
    background: #C2B97F;
}

.state-name {
    font-size: 1.125rem;
    font-weight: 700;
}

.expand-icon {
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.state-content {
    padding: 1.5rem;
}

.state-content[hidden] {
    display: none;
}

.state-resource-card {
    padding: 1.5rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.state-resource-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.state-resource-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #222E51;
    margin-bottom: 0.75rem;
}

.state-resource-card .resource-description {
    margin-bottom: 1rem;
}

.state-resource-card .resource-button {
    font-size: 0.875rem;
    padding: 0.625rem 1.25rem;
}

/* Footer */
.resources-footer {
    text-align: center;
    padding: 2rem;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.resources-footer p {
    font-size: 0.9375rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.back-button {
    display: inline-flex;
    align-items: center;
    color: #C2B97F;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.2s ease;
}

.back-button:hover {
    color: #a89b6a;
}

/* Responsive */
@media (max-width: 768px) {
    .gov-resources-container {
        padding: 2rem 1rem 3rem;
    }

    .gov-resources-header .page-title {
        font-size: 2rem;
    }

    .federal-resources-section h2,
    .state-resources-section h2 {
        font-size: 1.5rem;
    }

    .federal-resources-grid,
    .states-grid {
        grid-template-columns: 1fr;
    }

    .resource-card {
        padding: 1.5rem;
    }
}
