/* static/css/home.css */
/* Hero Section */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.hero-content {
    max-width: 100%;
}

.hero-content h1 {
    font-size: 2.2rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.1rem;
    color: #7f8c8d;
    margin-bottom: 1.5rem;
}

.search-bar {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.5rem;
    width: 100%;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.search-bar input {
    padding: 0.8rem 1.2rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    flex: 1;
    min-width: 0;
}

.search-bar button {
    background: linear-gradient(to right, #6a11cb, #2575fc);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.search-bar button:hover {
    background: linear-gradient(to right, #5809b5, #1c64e0);
    transform: translateY(-2px);
}

.hero-image {
    margin-top: 2rem;
    width: 100%;
    display: flex;
    justify-content: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Categories Section */
.categories {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.category-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    width: 100%;
    max-width: 300px;
    text-align: center;
}

.category-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.category-btn img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.category-btn strong {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.job-count {
    background: linear-gradient(to right, #6a11cb, #2575fc);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

/* Featured Jobs Section */
.featured-jobs {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.featured-jobs h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #2c3e50;
    font-size: 1.8rem;
}

.featured-jobs-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.job-card {
    background-color: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 350px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    position: relative;
}

.job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.job-badge {
    position: absolute;
    top: -10px;
    right: 15px;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.job-badge.product {
    background-color: #e1f7e3;
    color: #27ae60;
}

.job-badge.service {
    background-color: #e8eaf6;
    color: #3f51b5;
}

.job-card strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.job-card p {
    color: #566573;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.job-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.job-meta span {
    background-color: #f3f7fc;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #5a6b7c;
}

.job-posted-date {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: #7f8c8d;
}

.view-all {
    text-align: center;
    margin-top: 2rem;
}

.view-all a {
    color: #2575fc;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.view-all a:hover {
    color: #6a11cb;
}

/* Benefits Section */
.benefits-section {
    background: linear-gradient(135deg, #f3f7fc 0%, #e8eaf6 100%);
    color: #2c3e50;
    border-radius: 15px;
    margin: 3rem auto;
    padding: 2rem 1rem;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.benefits-content {
    max-width: 100%;
}

.benefits-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.benefits-content ul {
    list-style: none;
    margin-bottom: 1.5rem;
}

.benefits-content li {
    margin-bottom: 0.8rem;
    font-size: 1rem;
    color: #34495e;
}

.benefits-image {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

.benefits-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

/* Home Page Responsive Design */
@media (min-width: 769px) {
    .hero {
        flex-direction: row;
        text-align: left;
        padding: 3rem 2rem;
    }
    
    .hero-content {
        max-width: 600px;
    }
    
    .search-bar {
        justify-content: flex-start;
    }
    
    .categories {
        flex-direction: row;
        justify-content: center;
        padding: 2rem;
    }
    
    .featured-jobs-container {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .benefits-section {
        flex-direction: row;
        text-align: left;
        padding: 2rem;
    }
    
    .benefits-content {
        max-width: 600px;
    }
    
    .benefits-image {
        justify-content: flex-end;
        margin-top: 0;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .search-bar {
        flex-direction: column;
    }
    
    .categories {
        flex-direction: column;
    }
    
    .category-btn {
        max-width: 100%;
    }
    
    .featured-jobs h2 {
        font-size: 1.5rem;
    }
    
    .benefits-content h3 {
        font-size: 1.3rem;
    }
}
