/* OddlyJobs - RunBackHome Warm Palette */

:root {
    --bg-cream: #fdf8f2;
    --text-dark: #2f2a24;
    --accent-green: #7a8f78;
    --accent-green-dark: #5a6f58;
    --card-white: #ffffff;
    --shadow-soft: rgba(47, 42, 36, 0.08);
    --border-light: #e8e0d6;
    --success: #6b8e6b;
    --error: #c97a7a;
    --text-muted: #6b6560;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-cream);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Video Background for Homepage */
/* Navigation */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
    padding: 1.25rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--accent-green);
    text-decoration: none;
    letter-spacing: -0.02em;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
    color: var(--accent-green-dark);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

.nav-menu a {
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-green);
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: var(--accent-green);
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--text-dark);
    transition: all 0.3s;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 2rem 0;
}

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

.container-narrow {
    max-width: 700px;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    height: 100vh;
    max-height: 800px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #7a8f78 0%, #5a6f58 100%);
    margin-top: -70px; /* Pull up behind header */
    padding-top: 70px; /* Add padding to compensate */
    z-index: 0;
}

.hero-video {
    position: absolute;
    top: -70px; /* Start from top of viewport, behind header */
    left: 0;
    width: 100%;
    height: calc(100% + 70px); /* Extend to cover header area */
    object-fit: cover;
    z-index: 0;
    min-width: 100%;
    min-height: calc(100vh + 70px);
}

.hero-video-fallback {
    position: absolute;
    top: -70px;
    left: 0;
    width: 100%;
    height: calc(100% + 70px);
    background: linear-gradient(135deg, #7a8f78 0%, #5a6f58 100%);
    z-index: 0;
}

/* Fallback if video doesn't load */
.hero-video:not([src]) + .hero-video-fallback,
video.hero-video:not([src]) {
    background: linear-gradient(135deg, #7a8f78 0%, #5a6f58 100%);
}

.hero-overlay {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: linear-gradient(135deg, rgba(47, 42, 36, 0.5) 0%, rgba(122, 143, 120, 0.4) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    backdrop-filter: blur(1px);
}

.hero-overlay .container {
    max-width: 900px;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    font-size: 1.125rem;
    letter-spacing: 0.01em;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--accent-green);
    color: white;
    box-shadow: 0 4px 14px rgba(122, 143, 120, 0.4);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--accent-green-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(122, 143, 120, 0.5);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--accent-green);
    border: 2px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: white;
    color: var(--accent-green-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

.btn-link {
    background: none;
    color: var(--accent-green);
    text-decoration: underline;
    padding: 0;
}

/* Sections */
.section {
    padding: 5rem 0;
}

.section-alt {
    background-color: var(--card-white);
}

.section h1, .section h2 {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    font-weight: 800;
    font-size: clamp(2.25rem, 5vw, 3.25rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
    text-align: center;
}

.lead {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.7;
    max-width: 800px;
}

/* Cards */
.card, .feed-card, .job-card, .project-card, .activity-card {
    background-color: var(--card-white);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px var(--shadow-soft);
    border: 1px solid var(--border-light);
}

.activity-card {
    border-left: 4px solid var(--accent-green);
}

.success-card {
    border-left: 4px solid var(--success);
    background: linear-gradient(to right, rgba(107, 142, 107, 0.05), var(--card-white));
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.card-body {
    margin-bottom: 1rem;
}

.card-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Avatar */
.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--accent-green);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--accent-green);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 2rem;
    flex-shrink: 0;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: var(--bg-cream);
    color: var(--text-dark);
    border-radius: 12px;
    font-size: 0.875rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.badge-success {
    background-color: var(--success);
    color: white;
}

.badge-warning {
    background-color: #f4a261;
    color: white;
}

.pending-card {
    border-left: 4px solid #f4a261;
    background: linear-gradient(to right, rgba(244, 162, 97, 0.05), var(--card-white));
}

.section-subsection {
    margin-bottom: 2.5rem;
}

.section-subsection h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

/* Help Others CTA */
.help-others-cta {
    background: linear-gradient(135deg, var(--accent-green) 0%, var(--accent-green-dark) 100%);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    color: white;
    box-shadow: 0 4px 20px rgba(122, 143, 120, 0.3);
}

.help-others-cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.help-others-cta-text {
    flex: 1;
    min-width: 250px;
}

.help-others-cta-text h2 {
    color: white;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.help-others-cta-text p {
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 0;
    font-size: 1.05rem;
}

.help-others-cta-button {
    flex-shrink: 0;
}

.btn-cta-white {
    background: white;
    color: var(--accent-green);
    font-weight: 600;
    padding: 0.875rem 2rem;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-cta-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    color: var(--accent-green-dark);
}

@media (max-width: 768px) {
    .help-others-cta {
        padding: 1.5rem;
    }
    
    .help-others-cta-text h2 {
        font-size: 1.25rem;
    }
    
    .help-others-cta-content {
        flex-direction: column;
        text-align: center;
    }
    
    .help-others-cta-button {
        width: 100%;
    }
    
    .help-others-cta-button .btn {
        width: 100%;
    }
}

.card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

/* Forms */
.form {
    background-color: var(--card-white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--shadow-soft);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    background-color: var(--card-white);
    color: var(--text-dark);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-green);
    box-shadow: 0 0 0 3px rgba(122, 143, 120, 0.1);
}

.form-group small {
    display: block;
    margin-top: 0.25rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: normal;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: normal;
}

/* Feed */
.feed-composer {
    background-color: var(--card-white);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px var(--shadow-soft);
}

.composer-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--border-light);
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}

.tab-btn.active {
    color: var(--accent-green);
    border-bottom-color: var(--accent-green);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Steps */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.step {
    text-align: center;
    padding: 2.5rem 2rem;
    background: linear-gradient(135deg, var(--card-white) 0%, rgba(253, 248, 242, 0.5) 100%);
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(122, 143, 120, 0.1);
    position: relative;
    overflow: hidden;
}

.step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-green) 0%, var(--accent-green-dark) 100%);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.step:hover::before {
    transform: scaleX(1);
}

.step:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 50px rgba(122, 143, 120, 0.15);
    border-color: var(--accent-green);
}

.step-number {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-green) 0%, var(--accent-green-dark) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 25px rgba(122, 143, 120, 0.4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.step:hover .step-number {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 35px rgba(122, 143, 120, 0.5);
}

.step h3 {
    font-size: 1.375rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-weight: 600;
}

.step p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* How It Works Page */
.hero-mini {
    min-height: 300px;
    max-height: 400px;
    height: auto;
}

.how-it-works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
    margin-bottom: 4rem;
}

.how-step-card {
    background: linear-gradient(135deg, var(--card-white) 0%, rgba(253, 248, 242, 0.5) 100%);
    padding: 3rem 2rem;
    border-radius: 24px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(122, 143, 120, 0.1);
    position: relative;
    overflow: hidden;
}

.how-step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--accent-green) 0%, var(--accent-green-dark) 100%);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.how-step-card:hover::before {
    transform: scaleX(1);
}

.how-step-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(122, 143, 120, 0.15);
    border-color: var(--accent-green);
}

.how-step-number {
    position: absolute;
    top: -20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-green) 0%, var(--accent-green-dark) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    box-shadow: 0 8px 25px rgba(122, 143, 120, 0.4);
    z-index: 1;
}

.how-step-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    display: block;
    transition: transform 0.4s ease;
}

.how-step-card:hover .how-step-icon {
    transform: scale(1.15) rotate(5deg);
}

.how-step-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
    line-height: 1.3;
}

.how-step-card p {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 1.0625rem;
}

.cta-box-modern {
    background: linear-gradient(135deg, var(--accent-green) 0%, var(--accent-green-dark) 100%);
    border-radius: 24px;
    padding: 4rem 3rem;
    text-align: center;
    color: white;
    box-shadow: 0 20px 60px rgba(122, 143, 120, 0.3);
    margin-top: 4rem;
}

.cta-content h2 {
    color: white;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-large {
    padding: 1.25rem 3rem;
    font-size: 1.25rem;
}

.cta-box-modern .btn-secondary {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
    backdrop-filter: blur(10px);
}

.cta-box-modern .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.3);
    border-color: white;
    color: white;
}

.steps-detailed {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

.step-detailed {
    padding: 1.5rem;
    background-color: var(--card-white);
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--shadow-soft);
}

/* Categories */
.categories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.category-card {
    background-color: var(--card-white);
    padding: 2.5rem 1.5rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    font-weight: 500;
    color: var(--text-dark);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(122, 143, 120, 0.05) 0%, rgba(122, 143, 120, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.category-card:hover::before {
    opacity: 1;
}

.category-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 40px rgba(122, 143, 120, 0.2);
    border-color: var(--accent-green);
    color: var(--accent-green);
}

.category-icon {
    font-size: 3rem;
    line-height: 1;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.category-card:hover .category-icon {
    transform: scale(1.15) rotate(5deg);
}

.category-name {
    font-size: 1.125rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

/* Stories */
.stories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.story-card {
    background-color: var(--card-white);
    padding: 0;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(122, 143, 120, 0.1);
}

.story-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 60px rgba(122, 143, 120, 0.2);
    border-color: var(--accent-green);
}

.story-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
    position: relative;
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.story-card:hover .story-image img {
    transform: scale(1.05);
}

.story-card h3 {
    padding: 1.5rem 2rem 0.75rem;
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
}

.story-card p {
    padding: 0 2rem 2rem;
    margin: 0;
    color: var(--text-muted);
    line-height: 1.6;
    font-style: italic;
}

.story-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--accent-green);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 1rem auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Alerts */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.alert-success {
    background-color: rgba(107, 142, 107, 0.1);
    color: var(--success);
    border: 1px solid var(--success);
}

.alert-error {
    background-color: rgba(201, 122, 122, 0.1);
    color: var(--error);
    border: 1px solid var(--error);
}

.alert-info {
    background-color: rgba(122, 143, 120, 0.1);
    color: var(--accent-green);
    border: 1px solid var(--accent-green);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-muted);
}

.empty-state p {
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

/* Jobs Grid */
.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Filters */
.filters {
    background-color: var(--card-white);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px var(--shadow-soft);
}

.filter-form {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: flex-end;
}

.filter-group {
    display: flex;
    gap: 1rem;
}

/* Messages */
.messages-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message-thread-card {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background-color: var(--card-white);
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--shadow-soft);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s;
}

.message-thread-card:hover {
    transform: translateX(4px);
}

.thread-content {
    flex: 1;
}

.thread-header {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.thread-time {
    margin-left: auto;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.thread-preview {
    color: var(--text-muted);
}

.message-thread {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.messages {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 500px;
    overflow-y: auto;
    padding: 1rem;
    background-color: var(--bg-cream);
    border-radius: 8px;
}

.message {
    max-width: 70%;
    padding: 0.75rem 1rem;
    border-radius: 8px;
}

.message-sent {
    align-self: flex-end;
    background-color: var(--accent-green);
    color: white;
}

.message-received {
    align-self: flex-start;
    background-color: var(--card-white);
    border: 1px solid var(--border-light);
}

.message-time {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.message-form {
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
    background-color: var(--card-white);
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--shadow-soft);
}

.message-form .form-group {
    flex: 1;
    margin-bottom: 0;
}

/* Profile */
.profile-header {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-light);
}

.profile-sections {
    margin-top: 2rem;
}

.profile-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: var(--card-white);
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--shadow-soft);
}

.profile-actions {
    margin-top: 2rem;
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.project-detail {
    background-color: var(--card-white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--shadow-soft);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.project-section {
    margin-bottom: 2rem;
}

.users-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.user-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background-color: var(--bg-cream);
    border-radius: 6px;
}

/* Billing */
.billing-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.plan-card {
    background-color: var(--card-white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--shadow-soft);
    text-align: center;
}

.plan-featured {
    border: 2px solid var(--accent-green);
}

.plan-price {
    font-size: 2rem;
    font-weight: bold;
    color: var(--accent-green);
    margin: 1rem 0;
}

.plan-status {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.plan-status.active {
    color: var(--accent-green);
    font-weight: bold;
}

.billing-note {
    margin-top: 2rem;
    text-align: center;
    color: var(--text-muted);
}

/* Admin */
.admin-stats {
    margin-bottom: 3rem;
}

.stat-card {
    background-color: var(--card-white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--shadow-soft);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.stat-item {
    text-align: center;
}

.stat-item strong {
    display: block;
    font-size: 2.5rem;
    color: var(--accent-green);
    margin-bottom: 0.5rem;
}

.admin-sections {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.admin-section {
    background-color: var(--card-white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--shadow-soft);
}

.table-container {
    overflow-x: auto;
    margin-top: 1rem;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th,
table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

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

/* Application Card */
.application-card {
    padding: 1.5rem;
    background-color: var(--bg-cream);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.application-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

/* Job Detail */
.job-detail {
    background-color: var(--card-white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--shadow-soft);
}

.job-header {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-light);
}

.job-content {
    margin-top: 2rem;
}

.job-section {
    margin-bottom: 2rem;
}

.job-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
    padding: 1.5rem;
    background-color: var(--bg-cream);
    border-radius: 8px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

/* CTA Box */
.cta-box {
    text-align: center;
    padding: 3rem 2rem;
    background-color: var(--card-white);
    border-radius: 8px;
    margin-top: 3rem;
    box-shadow: 0 2px 8px var(--shadow-soft);
}

/* Footer */
.footer {
    background-color: var(--card-white);
    border-top: 1px solid var(--border-light);
    padding: 2rem 0;
    margin-top: auto;
    text-align: center;
    color: var(--text-muted);
}

.footer-tagline {
    margin-top: 0.5rem;
    font-style: italic;
}

/* Utility */
.text-center {
    text-align: center;
}

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

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background-color: var(--card-white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        min-height: 70vh;
        max-height: 600px;
    }

    .hero-mini {
        min-height: 250px;
        max-height: 300px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    .section {
        padding: 3rem 0;
    }

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

    .how-it-works-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .cta-box-modern {
        padding: 3rem 2rem;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    .categories {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 1rem;
    }

    .stories {
        grid-template-columns: 1fr;
    }

    .jobs-grid {
        grid-template-columns: 1fr;
    }

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

    .message {
        max-width: 85%;
    }
}

