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

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    overflow-x: hidden;
}

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

/* Header */
header {
    background-color: #e60023; /* Robota.ua red */
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    color: #fff;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.logo {
    font-size: 32px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.header-actions a {
    color: #fff;
    text-decoration: none;
    margin-left: 25px;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.header-actions a:hover {
    opacity: 0.8;
}

.hero-search {
    text-align: center;
    padding: 40px 0;
}

.hero-search h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
}

.hero-search .stats-text {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.search-bar {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.search-bar input,
.search-bar select {
    border: none;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    color: #333;
}

.search-bar input {
    width: 400px;
}

.search-bar select {
    width: 180px;
    background-color: #fff;
    cursor: pointer;
}

.search-bar button {
    background-color: #007bff; /* Blue for action button */
    color: #fff;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-bar button:hover {
    background-color: #0056b3;
}

.search-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.search-tags a {
    color: #fff;
    text-decoration: none;
    background-color: rgba(255,255,255,0.2);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.search-tags a:hover {
    background-color: rgba(255,255,255,0.4);
}

/* Job Listings */
.job-listings {
    padding: 60px 0;
    background-color: #fff;
}

.job-listings h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: #333;
    position: relative;
    padding-bottom: 15px;
}

.job-listings h2::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background-color: #e60023;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.job-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.job-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.job-card h3 {
    font-size: 22px;
    color: #e60023;
    font-weight: 600;
    margin: 0;
    flex: 1;
}

.job-card .salary {
    font-size: 20px;
    font-weight: 700;
    color: #28a745; /* Green for salary */
    margin-bottom: 12px;
}

.job-card .company, .job-card .location {
    font-size: 16px;
    color: #666;
    margin-bottom: 8px;
}

.job-card .description {
    font-size: 15px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 20px;
    flex-grow: 1;
}

.job-card .apply-button {
    display: inline-block;
    background-color: #e60023; /* Robota.ua red */
    color: #fff;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: background-color 0.3s ease;
    width: 100%;
}

.job-card .apply-button:hover {
    background-color: #c0001c;
}

/* Footer */
footer {
    background-color: #333;
    color: #fff;
    padding: 40px 0;
    text-align: center;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
    text-align: left;
}

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #e60023;
}

.footer-section p {
    color: #ccc;
    margin-bottom: 8px;
}

.footer-bottom {
    border-top: 1px solid #555;
    padding-top: 20px;
    font-size: 14px;
    color: #aaa;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        gap: 15px;
    }

    .header-actions a {
        margin: 0 10px;
    }

    .hero-search h1 {
        font-size: 36px;
    }

    .search-bar {
        flex-direction: column;
        align-items: center;
    }

    .search-bar input,
    .search-bar select,
    .search-bar button {
        width: 100%;
        max-width: 400px;
    }

    .search-tags {
        flex-direction: column;
        align-items: center;
    }

    .job-card-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 28px;
    }

    .hero-search h1 {
        font-size: 30px;
    }

    .search-bar input,
    .search-bar select,
    .search-bar button {
        padding: 12px 15px;
        font-size: 14px;
    }

    .search-tags a {
        padding: 6px 12px;
        font-size: 12px;
    }

    .job-card h3 {
        font-size: 20px;
    }

    .job-card .salary {
        font-size: 18px;
    }
}
