/*
 Theme Name: Astra Child
 Author: Bursaries Africa
 Author URI: https://explore.bursariesafrica.co.za
 Description: A child theme for Astra, customized to include a search tool with AJAX-powered search and filtering for posts.
 Version: 1.0.0
 License: GNU General Public License v2 or later
 License URI: http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain: astra-child
 Template: astra
*/

.job-board-container {
    max-width: var(--ast-container-default, 1200px);
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

/* Hero Section */
.hero-section {
    background: #f8f9fa;
    padding: 40px 0;
    text-align: center;
}

.hero-title {
    font-size: 2.5em;
    margin-bottom: 10px;
    color: #1a1a1a;
}

.hero-subtitle {
    font-size: 1.2em;
    margin-bottom: 20px;
    color: #666;
}

.job-board-search-filter {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.job-board-form {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.job-board-form .search-field,
.job-board-form .filter-category,
.job-board-form .filter-tag {
    flex: 1;
    min-width: 200px;
}

.job-board-form label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.9em;
    color: #333;
}

.job-board-form input[type="search"],
.job-board-form select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 1em;
}

.job-board-form button {
    padding: 10px 20px;
    background: #f28c38;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    transition: background 0.2s ease;
}

.job-board-form button:hover,
.job-board-form button:focus {
    background: #e07b30;
    outline: 2px solid #e07b30;
    outline-offset: 2px;
}

.job-board-results {
    display: grid;
    gap: 20px;
}

.job-board-results p {
    text-align: center;
    color: #666;
    padding: 20px;
    margin: 0;
    font-size: 1em;
}

.job-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    transition: box-shadow 0.2s ease;
}

.job-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.job-thumbnail {
    flex: 0 0 auto;
}

.job-thumbnail img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

.job-title {
    margin: 0;
    font-size: 1.2em;
}

.job-title a {
    text-decoration: none;
    color: #1a1a1a;
    transition: color 0.2s ease;
}

.job-title a:hover,
.job-title a:focus {
    color: #0073aa;
    outline: none;
}

.job-board-pagination {
    text-align: center;
    margin-top: 20px;
}

.job-board-pagination ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: inline-flex;
    flex-direction: row;
    gap: 10px;
    white-space: nowrap;
}

.job-board-pagination ul li {
    display: inline-block;
    margin: 0;
    padding: 0;
}

.job-board-pagination .page-numbers {
    display: inline-block;
    padding: 8px 12px;
    margin: 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: background 0.2s ease, color 0.2s ease;
}

.job-board-pagination .page-numbers:hover,
.job-board-pagination .page-numbers:focus {
    background: #f5f5f5;
    color: #0073aa;
    outline: none;
}

.job-board-pagination .page-numbers.current {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
    cursor: default;
}

/* Categories Section */
.categories-section {
    padding: 40px 0;
}

.section-title {
    font-size: 2em;
    text-align: center;
    margin-bottom: 30px;
    color: #1a1a1a;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.category-card {
    background: #fff;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.2s ease;
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-card h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #1a1a1a;
}

.category-card p {
    margin-bottom: 15px;
    color: #666;
}

.category-link {
    display: inline-block;
    padding: 10px 20px;
    background: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.category-link:hover,
.category-link:focus {
    background: #005d87;
}

/* Resources Section */
.resources-section {
    padding: 40px 0;
    background: #f8f9fa;
}

.resources-section p {
    text-align: center;
    margin-bottom: 30px;
    color: #666;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.resource-category {
    background: #fff;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
}

.resource-category h3 {
    font-size: 1.3em;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.resource-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.resource-category li {
    margin-bottom: 10px;
}

.resource-category a {
    color: #0073aa;
    text-decoration: none;
    transition: color 0.2s ease;
}

.resource-category a:hover,
.resource-category a:focus {
    color: #005d87;
    text-decoration: underline;
}

/* About Section */
.about-section {
    padding: 40px 0;
    text-align: center;
}

.about-section p {
    max-width: 800px;
    margin: 0 auto 20px;
    color: #666;
}

.about-section p strong {
    color: #1a1a1a;
}

.contact-button {
    display: inline-block;
    padding: 10px 20px;
    background: #f28c38;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.contact-button:hover,
.contact-button:focus {
    background: #e07b30;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .job-board-form {
        flex-direction: column;
        align-items: stretch;
    }

    .job-board-form .search-field,
    .job-board-form .filter-category,
    .job-board-form .filter-tag {
        min-width: 100%;
    }

    .job-thumbnail img {
        width: 60px;
        height: 60px;
    }

    .hero-title {
        font-size: 2em;
    }

    .section-title {
        font-size: 1.5em;
    }
}

@media (max-width: 400px) {
    .job-board-container {
        padding: 10px;
    }

    .job-board-form button,
    .category-link,
    .contact-button {
        padding: 8px 16px;
        font-size: 0.9em;
    }

    .job-title {
        font-size: 1em;
    }

    .hero-title {
        font-size: 1.5em;
    }
}