/* ==================== JOIN US PAGE STYLES ==================== */

/* Hero Section */
.joinus-hero {
    background: linear-gradient(135deg, #FFF7ED 0%, #FFEDD5 50%, #FFF7ED 100%);
    padding: 8rem 1.5rem 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.joinus-hero::before {
    content: '';
    position: absolute;
    top: 20%;
    right: 10%;
    width: 300px;
    height: 300px;
    background: rgba(222, 94, 9, 0.08);
    border-radius: 50%;
    filter: blur(80px);
}

.joinus-hero::after {
    content: '';
    position: absolute;
    bottom: 10%;
    left: 10%;
    width: 250px;
    height: 250px;
    background: rgba(230, 126, 34, 0.06);
    border-radius: 50%;
    filter: blur(60px);
}

.joinus-hero h1 {
    font-size: 2.75rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.joinus-hero p {
    font-size: 1.125rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Section Layout */
.joinus-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.5rem 4rem;
}

/* Two-Column Layout */
.joinus-layout {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

/* Sticky Sidebar */
.joinus-sidebar {
    width: 240px;
    flex-shrink: 0;
    position: sticky;
    top: 100px;
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(0, 0, 0, 0.03);
}

.sidebar-header {
    font-size: 0.7rem;
    font-weight: 700;
    color: #6b7280;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0 1.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
}

.sidebar-tab {
    display: block;
    width: 100%;
    padding: 0.6rem 1.5rem;
    background: none;
    border: none;
    border-left: 3px solid transparent;
    font-size: 0.9rem;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    line-height: 1.5;
}

.sidebar-tab:hover {
    color: var(--primary);
    background: rgba(222, 94, 9, 0.04);
}

.sidebar-tab.active {
    color: var(--primary);
    font-weight: 600;
    border-left-color: var(--primary);
    background: rgba(222, 94, 9, 0.06);
}

/* Content Area */
.joinus-content {
    flex: 1;
    min-width: 0;
}

/* Panels */
.joinus-panel {
    display: none;
    animation: fadeInPanel 0.3s ease;
}

.joinus-panel.active {
    display: block;
}

@keyframes fadeInPanel {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Category Sections */
.joinus-category {
    margin-bottom: 3rem;
}

.category-heading {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.category-heading h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    white-space: nowrap;
}

.category-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(to right, var(--primary), transparent);
    border-radius: 1px;
}

/* No Vacancy Card */
.no-vacancy-card {
    background: #f9fafb;
    border: 2px dashed #e5e7eb;
    border-radius: 1rem;
    padding: 3rem 2rem;
    text-align: center;
}

.no-vacancy-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.25rem;
    color: #d1d5db;
}

.no-vacancy-icon svg {
    width: 64px;
    height: 64px;
}

.no-vacancy-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.no-vacancy-card p {
    font-size: 0.9rem;
    color: #9ca3af;
    max-width: 400px;
    margin: 0 auto;
}

/* Job Cards Grid */
.job-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.job-card {
    background: #fff;
    border-radius: 1rem;
    padding: 1.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    border: 1px solid #f3f4f6;
    display: flex;
    flex-direction: column;
}

.job-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), 0 8px 24px rgba(0, 0, 0, 0.06);
    transform: translateY(-4px);
}

.job-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.job-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #FFF7ED, #FFEDD5);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(222, 94, 9, 0.15);
}

.job-icon svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.job-badge {
    display: inline-block;
    background: #FFF7ED;
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    border: 1px solid rgba(222, 94, 9, 0.2);
}

.job-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.75rem;
}

.job-description {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex: 1;
}

.job-responsibilities {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
    flex: 1;
}

.job-responsibilities li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    color: #4b5563;
    line-height: 1.6;
}

.job-responsibilities li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0.7;
}

.job-meta {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid #f3f4f6;
}

.job-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #6b7280;
    font-weight: 500;
}

.job-meta-item svg {
    width: 14px;
    height: 14px;
    color: var(--primary);
    flex-shrink: 0;
}

.job-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary);
    color: #fff;
    padding: 0.625rem 1.5rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    align-self: flex-start;
}

.job-btn:hover {
    background: var(--secondary);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(222, 94, 9, 0.3);
}

.job-btn svg {
    width: 16px;
    height: 16px;
}

/* Be Our Agent Info Card */
.agent-info-card {
    background: #fff;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid #f3f4f6;
}

.agent-description {
    font-size: 1rem;
    color: #4b5563;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.agent-lists {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.agent-list-section h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.75rem;
}

.agent-list-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.agent-list-section ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #4b5563;
    line-height: 1.6;
}

.agent-list-section ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0.6;
}

/* Agent Requirements List */
.agent-requirements-list {
    list-style: decimal;
    padding-left: 1.75rem;
    margin: 0 0 2rem;
}

.agent-requirements-list li {
    font-size: 0.9rem;
    color: #4b5563;
    line-height: 1.8;
    padding-left: 0.5rem;
}

.agent-requirements-list li::marker {
    color: var(--primary);
    font-weight: 600;
}

.agent-contact-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.agent-contact-link:hover {
    color: var(--secondary);
    text-decoration: underline;
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 768px) {
    .joinus-hero {
        padding: 7rem 1.25rem 3rem;
    }

    .joinus-hero h1 {
        font-size: 2rem;
    }

    .joinus-hero p {
        font-size: 1rem;
    }

    .joinus-section {
        padding: 2rem 1.25rem 3rem;
    }

    /* Sidebar becomes horizontal tabs */
    .joinus-layout {
        flex-direction: column;
        gap: 1.5rem;
    }

    .joinus-sidebar {
        width: 100%;
        position: static;
        display: flex;
        flex-direction: row;
        gap: 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0;
        border-radius: 8px;
    }

    .sidebar-header {
        display: none;
    }

    .sidebar-tab {
        white-space: nowrap;
        padding: 0.75rem 1.25rem;
        font-size: 0.85rem;
        text-align: center;
        flex: 1;
        border-bottom: 3px solid transparent;
    }

    .sidebar-tab.active {
        border-bottom-color: var(--primary);
    }

    .joinus-category {
        margin-bottom: 2.5rem;
    }

    /* Cards grid stacks */
    .job-cards-grid {
        grid-template-columns: 1fr;
    }

    /* Agent lists stack */
    .agent-lists {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .joinus-hero h1 {
        font-size: 1.75rem;
    }

    .job-card {
        padding: 1.5rem;
    }

    .agent-info-card {
        padding: 1.5rem;
    }

    .no-vacancy-card {
        padding: 2rem 1.5rem;
    }
}
