:root {
    --bg: #f6f8fc;
    --surface: #ffffff;
    --surface-alt: #eef2f9;
    --primary: #1f4fff;
    --primary-dark: #193fcc;
    --accent: #2dd4bf;
    --text: #111827;
    --muted: #4b5563;
    --border: #e5e7eb;
    --radius: 8px;
    --shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

a {
    text-decoration: none;
    color: inherit;
}

img, video, iframe {
    max-width: 100%;
    height: auto;
}

input, select, textarea, button {
    max-width: 100%;
}

.container {
    width: min(1100px, 92vw);
    margin: 0 auto;
    padding: 0 1rem;
    max-width: 100%;
    box-sizing: border-box;
}

.hero {
    background: var(--bg);
    padding: 3rem 0 2rem;
    border-bottom: 1px solid var(--border);
}

.hero__content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    align-items: center;
    width: 100%;
}

.site-header {
    display: flex;
    align-items: center;
    padding: 1rem 0;
}

.site-logo {
    width: 64px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(15,23,42,0.08);
}

.hero__badge {
    display: none;
}

.hero h1 {
    font-size: clamp(1.8rem, 2.5vw, 2.5rem);
    margin: 0.5rem 0 1rem;
    font-weight: 600;
    color: var(--text);
}

.hero p {
    font-size: 1rem;
    color: var(--muted);
    max-width: 600px;
    line-height: 1.6;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border-radius: var(--radius);
    padding: 0.7rem 1.4rem;
    font-weight: 500;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.1s ease;
    font-size: 0.95rem;
}

.btn--primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.btn--primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn--ghost {
    background: transparent;
    color: var(--primary);
    border-color: var(--border);
}

.btn--ghost:hover {
    background: rgba(31, 79, 255, 0.05);
    border-color: var(--primary);
}

.hero__card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1.5rem;
    border: 1px solid var(--border);
}

.hero__card h2 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.search {
    display: flex;
    gap: 0.8rem;
    width: 100%;
}

.search input,
.search button {
    min-width: 0;
}

.search input {
    flex: 1;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 0.7rem 1rem;
    font-size: 0.95rem;
}

.hero__hint {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--muted);
}

.section {
    padding: 3rem 0;
}

.section--alt {
    background: var(--surface);
}

.section__header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.section__header h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.section__subhead {
    color: var(--muted);
}

.section__header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.state-select {
    padding: 0.6rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.1s ease;
    font-family: inherit;
    min-width: 160px;
}

.state-select:hover {
    border-color: var(--primary);
}

.state-select:focus {
    outline: none;
    border-color: var(--primary);
}

.no-results {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--muted);
    font-size: 1.1rem;
    grid-column: 1 / -1;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

.card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1.25rem;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: border-color 0.1s ease;
}

.card:hover {
    border-color: var(--primary);
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    background: rgba(148, 163, 184, 0.12);
    color: var(--muted);
    font-size: 0.75rem;
    text-transform: capitalize;
    font-weight: 400;
}

.card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.card__badge {
    background: rgba(31, 79, 255, 0.08);
    color: var(--primary);
    border-radius: 4px;
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    font-weight: 500;
}

.card__title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
}

.meta {
    font-size: 0.95rem;
    color: var(--muted);
}

.meta strong {
    color: var(--text);
}

.deadline {
    font-weight: 600;
    color: #ef4444;
}

.link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    color: var(--primary);
}

.link--icon::after {
    content: '→';
    transition: transform 0.1s ease;
}

.link--icon:hover::after {
    transform: translateX(4px);
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border-radius: 4px;
    background: rgba(31, 79, 255, 0.1);
    color: var(--primary);
    font-weight: 500;
    font-size: 0.85rem;
    padding: 0.3rem 0.8rem;
}

.chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.chip--selectable {
    border: 1px solid rgba(31, 79, 255, 0.22);
    background: rgba(31, 79, 255, 0.06);
    font-weight: 500;
    color: var(--muted);
    cursor: pointer;
    transition: background 0.1s ease, transform 0.1s ease;
    padding-right: 1.1rem;
}

.chip--selectable input {
    appearance: none;
    width: 0;
    height: 0;
    margin: 0;
}

.chip--selectable span {
    pointer-events: none;
}

.chip--selectable:hover {
    background: rgba(31, 79, 255, 0.18);
    transform: translateY(-1px);
}

.chip--selectable.is-selected {
    background: var(--primary);
    color: #fff;
    border-color: transparent;
}

.table-wrapper {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

th, td {
    padding: 0.9rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

th {
    font-weight: 600;
    background: var(--bg);
    color: var(--text);
}

tbody tr:last-child td {
    border-bottom: none;
}

.categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.category-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1.25rem;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    transition: border-color 0.1s ease;
}

.category-card:hover {
    border-color: var(--primary);
}

.category-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
}

.category-card ul {
    list-style: none;
    display: grid;
    gap: 0.45rem;
    color: var(--muted);
}

.section--cta {
    background: linear-gradient(140deg, rgba(31, 79, 255, 0.14), rgba(45, 212, 191, 0.12));
}

.cta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    align-items: center;
}

.cta__form {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 2rem;
    display: grid;
    gap: 1rem;
    box-shadow: var(--shadow);
}

.form-group {
    display: grid;
    gap: 0.4rem;
}

.form-group label {
    font-weight: 500;
}

.form-group input,
.form-group select {
    border-radius: 999px;
    border: 1px solid var(--border);
    padding: 0.75rem 1.1rem;
    font-size: 1rem;
}

.form-status {
    font-size: 0.9rem;
    padding: 0.6rem 0.9rem;
    border-radius: 12px;
    border: 1px solid transparent;
    background: rgba(148, 163, 184, 0.14);
    color: var(--muted);
    display: none;
}

.form-status.is-visible {
    display: block;
}

.form-status.is-success {
    border-color: rgba(34, 197, 94, 0.4);
    background: rgba(34, 197, 94, 0.14);
    color: #166534;
}

.form-status.is-error {
    border-color: rgba(239, 68, 68, 0.35);
    background: rgba(239, 68, 68, 0.14);
    color: #b91c1c;
}

.form-status.is-info {
    border-color: rgba(59, 130, 246, 0.35);
    background: rgba(59, 130, 246, 0.14);
    color: #1d4ed8;
}

.btn--loading,
.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

.resource-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1.25rem;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    transition: border-color 0.1s ease;
}

.resource-card:hover {
    border-color: var(--primary);
}

.resource-card span {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--primary);
    background: rgba(31, 79, 255, 0.08);
    border-radius: 4px;
    padding: 0.2rem 0.6rem;
    width: fit-content;
}

.empty-state {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 2.5rem;
    text-align: center;
    border: 1px dashed rgba(148, 163, 184, 0.45);
    color: var(--muted);
    display: grid;
    gap: 0.6rem;
}

.toast-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    display: grid;
    gap: 0.75rem;
    z-index: 999;
}

.toast {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1rem 1.3rem;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary);
    min-width: 240px;
}

.toast--success {
    border-color: #22c55e;
}

.toast--error {
    border-color: #ef4444;
}

.toast__title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.footer {
    background: var(--surface);
    color: var(--text);
    padding: 2.5rem 0 1.5rem;
    border-top: 1px solid var(--border);
}

.footer__content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.footer h3,
.footer h4 {
    color: var(--text);
    font-weight: 600;
}

.footer ul {
    list-style: none;
    display: grid;
    gap: 0.6rem;
    font-size: 0.95rem;
}

.footer__contact {
    display: grid;
    gap: 0.4rem;
    margin-top: 1rem;
}

.footer__bottom {
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--muted);
}

@media (max-width: 640px) {
    .container {
        padding: 0 1rem;
        width: 100%;
    }

    .hero {
        padding: 2rem 0 1.5rem;
    }

    .hero__content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .hero p {
        font-size: 0.95rem;
    }

    .search {
        flex-direction: column;
    }

    .hero__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }

    .section {
        padding: 2rem 0;
    }

    .section__header h2 {
        font-size: 1.5rem;
    }

    .cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .categories {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .resource-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    table {
        min-width: 600px;
    }

    .section__header-actions {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
    }

    .state-select {
        width: 100%;
        min-width: auto;
    }

    .footer__content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.platform-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.8rem;
    background: rgba(31, 79, 255, 0.1);
    color: var(--primary);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
}

.disclaimer-box {
    background: rgba(239, 68, 68, 0.08);
    border: 2px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius);
    padding: 1.2rem 1.5rem;
    margin: 1.5rem 0;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.disclaimer-box__icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.disclaimer-box__content {
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #991b1b;
}

.disclaimer-box__content strong {
    color: #7f1d1d;
    font-weight: 700;
}

.disclaimer-box--modal {
    margin-bottom: 1.5rem;
    margin-top: 0;
}

.disclaimer-warning {
    background: rgba(239, 68, 68, 0.05);
    border-left: 4px solid rgba(239, 68, 68, 0.5);
    padding: 1.5rem;
    border-radius: var(--radius);
    margin-top: 1rem;
}

.disclaimer-warning p {
    margin-bottom: 1rem;
    color: var(--text);
    line-height: 1.7;
}

.disclaimer-warning p:last-child {
    margin-bottom: 0;
}

.disclaimer-warning strong {
    color: #7f1d1d;
    font-weight: 700;
}

.disclaimer-warning ul {
    margin: 0.75rem 0;
    padding-left: 1.5rem;
}

.disclaimer-warning li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    color: var(--text);
}

.section__header-actions--bottom {
    margin-top: 1rem;
    justify-content: flex-start;
}

.privacy-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    backdrop-filter: blur(4px);
}

.privacy-modal[style*="display: flex"] {
    display: flex !important;
}

.privacy-modal__content {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 2rem;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: slideIn 0.15s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.privacy-modal__header {
    margin-bottom: 1.5rem;
}

.privacy-modal__header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text);
}

.privacy-modal__body {
    margin-bottom: 1.5rem;
}

.privacy-modal__body p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: var(--text);
}

.privacy-modal__links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin: 1.5rem 0;
    padding: 1rem;
    background: rgba(31, 79, 255, 0.05);
    border-radius: var(--radius);
}

.privacy-modal__links span {
    color: var(--muted);
}

.privacy-modal__accept-text {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(31, 79, 255, 0.05);
    border-radius: var(--radius);
    color: var(--text);
    line-height: 1.6;
    font-size: 0.95rem;
}

.privacy-modal__actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.privacy-modal__actions .btn {
    min-width: 120px;
}

@media (max-width: 640px) {
    .privacy-modal__content {
        padding: 1.5rem;
    }

    .privacy-modal__actions {
        flex-direction: column;
    }

    .privacy-modal__actions .btn {
        width: 100%;
    }
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal__content {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 2rem;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow);
    position: relative;
}

.modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal__header h2 {
    font-size: 1.5rem;
    font-weight: 600;
}

.modal__close {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--muted);
    line-height: 1;
    padding: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.1s ease;
}

.modal__close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text);
}

.job-form {
    display: grid;
    gap: 1.2rem;
}

.job-form .form-group {
    display: grid;
    gap: 0.5rem;
}

.job-form label {
    font-weight: 600;
    color: var(--text);
    font-size: 0.95rem;
}

.job-form input,
.job-form select {
    padding: 0.75rem 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.1s ease;
}

.job-form input:focus,
.job-form select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(31, 79, 255, 0.1);
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    justify-content: flex-end;
}

.form-actions .btn {
    min-width: 120px;
}

@media (max-width: 640px) {
    .modal__content {
        padding: 1.5rem;
    }

    .section__header-actions {
        flex-direction: column;
        width: 100%;
    }

    .section__header-actions .state-select,
    .section__header-actions .btn {
        width: 100%;
    }
}

@media (min-width: 768px) {
    .section__header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .section__header > *:first-child {
        flex: 1;
    }
}

/* Site banner styles */
.site-banner {
    width: 100%;
    background: linear-gradient(180deg, #fffef7 0%, #fffaf0 100%);
    border-bottom: 1px solid rgba(15, 23, 42, 0.04);
}
.site-banner__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 0.6rem 1rem;
}
.site-banner__text {
    color: var(--muted);
    font-weight: 600;
}
.site-banner__close {
    margin-left: auto;
    background: transparent;
    border: none;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    color: var(--muted);
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
}
.site-banner__close:hover {
    background: rgba(0,0,0,0.04);
    color: var(--text);
}
@media (max-width: 640px) {
    .site-banner__inner {
        padding: 0.5rem;
    }
    .site-banner__text {
        font-size: 0.95rem;
    }
}

