/* Main Container and Header */
.sgf-container {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
    color: #1f2937;
}
.sgf-header {
    text-align: center;
    margin-bottom: 2rem;
}
.sgf-header h1 {
    font-size: 2.25rem; /* Equivalent to text-3xl or text-4xl */
    line-height: 2.5rem;
    font-weight: 700;
    color: #2563eb; /* Blue */
}
.sgf-header p {
    margin-top: 0.5rem;
    color: #4b5563; /* Gray */
}

/* Filter Controls */
.sgf-filters {
    display: grid;
    /* Adjust grid to accommodate more filters gracefully */
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    padding: 1rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}
.sgf-filters input,
.sgf-filters select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
}
.sgf-filters input:focus,
.sgf-filters select:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
    border-color: #2563eb;
    box-shadow: 0 0 0 2px #bfdbfe;
}

/* Status Message */
.sgf-status {
    text-align: center;
    margin-bottom: 2rem;
    color: #16a34a; /* Green */
}

/* Results Grid */
.sgf-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}
.sgf-no-results {
    grid-column: 1 / -1;
    text-align: center;
    color: #6b7280;
    padding: 2rem;
}

/* Card Styling */
.sgf-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.sgf-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
}
.sgf-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1d4ed8;
    margin-bottom: 1rem;
}
.sgf-card-title a {
    color: inherit;
    text-decoration: none;
}
.sgf-card-title a:hover {
    text-decoration: underline;
}
.sgf-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.sgf-tag {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
}
.sgf-type-tag {
    background-color: #dbeafe;
    color: #1e40af;
}
.sgf-level-tag {
    background-color: #e5e7eb;
    color: #374151;
}
.sgf-skill-tag {
    background-color: #dcfce7; /* Light Green */
    color: #166534; /* Dark Green */
}
.sgf-card-section {
    margin-bottom: 0.75rem; /* Reduced spacing between sections */
}
.sgf-card-subtitle {
    /* --- UPDATED STYLES --- */
    font-weight: normal; /* Removed bolding */
    font-size: 0.75rem; /* Made font smaller */
    color: #6b7280; /* Lighter text color */
    margin-bottom: 0.375rem; /* Reduced space below the label */
    text-transform: uppercase; /* Added for style */
    letter-spacing: 0.05em; /* Added for style */
}
.sgf-card-text {
    font-size: 0.875rem;
    color: #4b5563;
}
.sgf-card-description {
    color: #1f2937;
    margin-top: 0.5rem; /* Added margin-top to separate from tags */
    margin-bottom: 1rem;
    flex-grow: 1;
}
.sgf-card-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #f3f4f6;
}
.sgf-card-link {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
}
.sgf-card-link:hover {
    text-decoration: underline;
}
