/* Teaching Jobs Page Styles */

/* Breadcrumbs */
.breadcrumbs {
    background-color: #ffffff;
    padding: 1rem 2rem;
    border-top: 1px solid var(--primary-color);
}

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

.breadcrumb-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.875rem;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item:not(:last-child)::after {
    content: '›';
    margin-left: 0.5rem;
    color: #999999;
}

.breadcrumb-item a {
    color: #666666;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
    color: var(--primary-color);
}

.breadcrumb-current {
    color: #333333;
    font-weight: 500;
}

/* Hero Section */
.page-hero {
    background-color: #ffffff;
    min-height: 95vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
}

.page-hero-container {
    max-width: 900px;
    margin: 0 auto;
}

/* Search Section */
.search-section {
    background-color: #fefefe;
    padding: 3rem 2rem;
    border-top: 1px solid var(--primary-color);
}

.search-container {
    max-width: 900px;
    margin: 0 auto;
}

.search-heading {
    font-family: 'Inter Tight', sans-serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: #000000;
    text-align: center;
    margin-bottom: 1.5rem;
}

.results-top {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1.5rem;
}

.btn-list-job {
    display: inline-block;
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: #ffffff;
    background-color: var(--primary-color);
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.btn-list-job:hover {
    background-color: #e54000;
}

.page-title {
    font-family: 'Inter Tight', sans-serif;
    font-size: 3.5rem;
    font-weight: 300;
    color: #000000;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.title-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(-100vh);
    animation: fallDown 1.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.title-word-1 {
    animation-delay: 0s;
}

.title-word-2 {
    animation-delay: 0.5s;
}

.title-word-3 {
    animation-delay: 1s;
}

.title-word-4 {
    animation-delay: 1.5s;
}

.title-accent {
    color: var(--primary-color);
}

@keyframes fallDown {
    0% {
        opacity: 0;
        transform: translateY(-100vh);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-subtitle {
    font-family: 'Inter Tight', sans-serif;
    font-size: 1.25rem;
    font-weight: 300;
    color: #666666;
    margin-bottom: 0;
}

/* Search Form */
.search-form {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    background-color: #faf9f7;
}

.search-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.search-field {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.search-field-button {
    grid-column: 1 / -1;
}

.search-label {
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: #333333;
}

.search-input,
.search-select {
    font-family: 'Inter Tight', sans-serif;
    font-size: 1rem;
    padding: 1rem 1.25rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #ffffff;
    color: #333333;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input:focus,
.search-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 87, 34, 0.1);
}

.search-input::placeholder {
    color: #999999;
}

.search-input-wrapper {
    position: relative;
}

.search-input-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: #999999;
    font-size: 0.9rem;
}

.search-input-with-icon {
    padding-left: 3rem;
}

select.search-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.25rem center;
    padding-right: 3rem;
}

/* Tom Select wrapper inherits search-select class - reset conflicting styles */
.ts-wrapper.search-select {
    appearance: auto;
    background-image: none;
    padding: 0;
    border: none;
    background-color: transparent;
}

.search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    font-family: 'Inter Tight', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: #ffffff;
    background-color: var(--primary-color);
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    width: 100%;
    margin-top: 0.5rem;
}

.search-btn:hover {
    background-color: #e54000;
}

/* Results Section */
.results-section {
    background-color: #faf9f7;
    padding: 2rem;
    min-height: 60vh;
}

.results-container {
    max-width: 1100px;
    margin: 0 auto;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.results-count {
    font-family: 'Inter Tight', sans-serif;
    font-size: 1rem;
    color: #666666;
}

.results-count strong {
    color: #000000;
}

.results-sort {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.results-sort label {
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.9rem;
    color: #666666;
}

.sort-select {
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.9rem;
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background-color: #ffffff;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
}

/* Job Sections */
.job-section {
    margin-bottom: 2rem;
}

.job-section-title {
    font-family: 'Inter Tight', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: #333333;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.job-section-title i {
    color: var(--primary-color);
}

/* Job Listings */
.job-listings {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.job-card {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    transition: box-shadow 0.2s ease;
}

.job-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Dated Job Card - subtle highlight */
.job-card-dated {
    border-left: 3px solid var(--primary-color);
}

.job-date-highlight {
    color: var(--primary-color) !important;
    font-weight: 500;
}

.job-card-content {
    flex: 1;
}

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

.job-title {
    font-family: 'Inter Tight', sans-serif;
    font-size: 1.2rem;
    font-weight: 500;
    color: #000000;
    margin: 0;
}

.job-price-badge {
    background-color: #28a745;
    color: #ffffff;
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
}

.job-price-badge.badge-closed {
    background-color: #6c757d;
}

.job-price-badge.badge-expired {
    background-color: #dc3545;
}

.job-price-badge.badge-archived {
    background-color: #17a2b8;
}

.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    align-items: center;
    margin-bottom: 0.75rem;
}

.job-meta-item {
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.9rem;
    color: #666666;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.job-icon {
    font-size: 0.85rem;
    color: #999999;
    width: 16px;
    text-align: center;
}

.job-date {
    color: #dc3545;
}

.job-description {
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.9rem;
    color: #666666;
    line-height: 1.6;
    margin: 0;
}

.job-view-btn {
    background-color: #4285f4;
    color: #ffffff;
    font-family: 'Inter Tight', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    padding: 0.75rem 2rem;
    border-radius: 6px;
    transition: background-color 0.2s ease;
    white-space: nowrap;
    align-self: center;
}

.job-view-btn:hover {
    background-color: #3367d6;
}

/* No Results */
.no-results {
    background-color: #ffffff;
    padding: 3rem;
    text-align: center;
    border-radius: 10px;
}

.no-results i {
    font-size: 3rem;
    color: #cccccc;
    margin-bottom: 1rem;
    display: block;
}

.no-results h3 {
    font-family: 'Inter Tight', sans-serif;
    font-size: 1.25rem;
    font-weight: 500;
    color: #333333;
    margin: 0 0 0.5rem 0;
}

.no-results p {
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.95rem;
    color: #666666;
    margin: 0 0 1.5rem 0;
}

.btn-view-all {
    display: inline-block;
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: #ffffff;
    background-color: var(--primary-color);
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.btn-view-all:hover {
    background-color: #e54000;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.pagination-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.9rem;
    color: #333333;
    padding: 0.625rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background-color: #ffffff;
    transition: all 0.2s ease;
}

.pagination-btn:hover:not(.disabled) {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.pagination-btn.disabled {
    color: #cccccc;
    cursor: not-allowed;
}

.pagination-numbers {
    display: flex;
    gap: 0.5rem;
}

.pagination-num {
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.9rem;
    color: #333333;
    padding: 0.625rem 0.875rem;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background-color: #ffffff;
    transition: all 0.2s ease;
}

.pagination-num:hover:not(.active) {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.pagination-num.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
}

.pagination-ellipsis {
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.9rem;
    color: #999999;
    padding: 0.625rem 0.5rem;
}

/* Job Alerts CTA */
.job-alerts-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #000000;
    border-radius: 10px;
    padding: 1.5rem 2rem;
    margin-top: 2.5rem;
    gap: 1.5rem;
}

.job-alerts-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.job-alerts-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.job-alerts-title {
    font-family: 'Inter Tight', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: #ffffff;
    margin: 0 0 0.25rem 0;
}

.job-alerts-subtitle {
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.9rem;
    color: #999999;
    margin: 0;
}

.job-alerts-btn {
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: #ffffff;
    background-color: var(--primary-color);
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    white-space: nowrap;
    transition: background-color 0.2s ease;
}

.job-alerts-btn:hover {
    background-color: #e54000;
}

/* Responsive */
@media (max-width: 600px) {
    .search-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-hero {
        min-height: 70vh;
        padding: 3rem 1.5rem;
    }

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

    .page-subtitle {
        font-size: 1rem;
    }

    .search-section {
        padding: 2rem 1.5rem;
    }

    .results-section {
        padding: 1.5rem;
    }

    .job-card {
        flex-direction: column;
        align-items: stretch;
    }

    .job-title {
        font-size: 1.1rem;
    }

    .job-meta {
        gap: 0.75rem;
    }

    .job-meta-item {
        font-size: 0.8rem;
    }

    .job-view-btn {
        width: 100%;
        text-align: center;
    }

    .pagination {
        gap: 0.5rem;
    }

    .pagination-btn span {
        display: none;
    }

    .job-alerts-cta {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

    .job-alerts-content {
        flex-direction: column;
    }

    .job-alerts-btn {
        width: 100%;
    }
}
