/* ── Join Us page ── */

.join-wrap {
    max-width: 960px;
    margin: 0 auto;
    padding: clamp(30px, 4vw, 60px) clamp(16px, 3vw, 36px);
}

/* ── Filter bar ── */
.join-filter {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: clamp(24px, 3vw, 40px);
}

.join-search {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: var(--font-sm, 0.95rem);
    font-family: inherit;
    color: #374151;
    background: #f9fafb;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
    box-sizing: border-box;
}

.join-search:focus {
    border-color: #16d3b7;
    background: #fff;
}

.join-search::placeholder {
    color: #9ca3af;
}

.join-count {
    font-size: var(--font-sm, 0.95rem);
    color: #9ca3af;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── Post row ── */
.join-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.join-post {
    display: block;
    padding: clamp(18px, 2vw, 28px) 0;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.join-post:first-child {
    border-top: 1px solid #f0f0f0;
}

.join-post:hover {
    background: #f8fdfb;
    padding-left: 16px;
    padding-right: 16px;
    margin-left: -16px;
    margin-right: -16px;
    border-radius: 8px;
}

.join-post:hover .join-post-title {
    color: #014240;
}

.join-post:hover .join-post-more {
    color: #014240;
}

.join-post.hidden {
    display: none;
}

/* ── Post content ── */
.join-post-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 6px;
}

.join-post-title {
    font-size: var(--font-md, clamp(1.0625rem, 0.35vw + 1rem, 1.25rem));
    font-family: 'gilroy-bold', sans-serif;
    color: #0e2517;
    line-height: 1.35;
    margin: 0;
    transition: color 0.2s;
}

.join-post-desc {
    font-size: var(--font-base, 1rem);
    color: #6b7280;
    line-height: 1.7;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    text-overflow: ellipsis;
}

.join-post-more {
    font-size: var(--font-sm, 0.95rem);
    color: #16d3b7;
    text-decoration: none;
    font-family: 'gilroy-bold', sans-serif;
    transition: color 0.2s;
    white-space: nowrap;
}

/* ── Empty state ── */
.join-empty {
    text-align: center;
    padding: 48px 20px;
    color: #9ca3af;
    font-size: var(--font-base, 1rem);
    display: none;
}

.join-empty.visible {
    display: block;
}

/* ── Responsive ── */
@media (max-width: 640px) {
    .join-post-header {
        flex-direction: column;
        gap: 4px;
    }
}

/* ── Job posting detail ── */
.job-posting {
    font-size: inherit;
    line-height: 1.6;
    color: #333;
}

.job-posting h2 {
    font-size: clamp(15px, 1.1vw, 19px);
    font-family: 'gilroy-bold', sans-serif;
    font-weight: 700;
    color: #014240;
    margin: 1.8em 0 0.5em;
    padding-bottom: 0.3em;
    border-bottom: 1px solid #e5e5e5;
}

.job-posting h2:first-child {
    margin-top: 0;
}

.job-posting h3 {
    font-size: clamp(14px, 1vw, 17px);
    font-family: 'gilroy-bold', sans-serif;
    font-weight: 600;
    color: #014240;
    margin: 1.2em 0 0.4em;
}

.job-posting p {
    margin: 0 0 0.7em;
}

.job-posting ul {
    margin: 0 0 0.9em;
    padding-left: 1.4em;
}

.job-posting ul li {
    margin-bottom: 0.25em;
}

.job-posting hr {
    border: none;
    border-top: 1px solid #e5e5e5;
    margin: 1.6em 0;
}

.job-posting strong {
    font-family: 'gilroy-bold', sans-serif;
    color: #1b1b1b;
}

.job-posting em {
    font-style: italic;
}

.job-posting a {
    color: #014240;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.job-posting a:hover {
    color: #16d3b7;
}
