/* ============================================================================
   CAREERS PAGE STYLES
   ============================================================================ */

/* Hero Section */
.hero-bg {
    background: linear-gradient(135deg, #f0f7fa 0%, #ecf5f8 100%);
    border-bottom: 1px solid #d4e8f0;
}

.hero-bg h1 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
}

/* Search Box */
.search-box {
    display: flex;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #ddd;
    transition: all 0.3s ease;
}

.search-box:focus-within {
    border-color: #00588F;
    box-shadow: 0 0 0 3px rgba(0, 88, 143, 0.1);
}

.search-box .input-group-text {
    background-color: #f8f8f8;
    border: none;
    padding: 0 12px;
    color: #6b7280;
}

.search-box .form-control {
    border: none;
    padding: 10px 12px;
    font-size: 0.95rem;
}

.search-box .form-control::placeholder {
    color: #999;
}

.search-box .form-control:focus {
    box-shadow: none;
    border: none;
}

.search-box .btn {
    border: none !important;
    border-radius: 0 !important;
    background-color: #00588F !important;
    color: white !important;
    font-weight: 600;
    padding: 8px 24px;
    transition: all 0.3s ease;
}

.search-box .btn:hover {
    background-color: #004b6d !important;
}

.search-box #searchBtn {
    background-color: #00588F !important;
}

.search-box #searchBtn:hover {
    background-color: #004b6d !important;
}

.search-box .btn-outline-secondary {
    color: #6b7280;
    border: none;
    padding: 8px 12px;
}

.search-box .btn-outline-secondary:hover {
    background-color: transparent;
    color: #00588F;
}

/* Filters */
.custom-select {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: white;
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    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='%230a4d68' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 32px;
}

.custom-select:hover {
    border-color: #00588F;
    box-shadow: 0 2px 8px rgba(0, 88, 143, 0.1);
}

.custom-select:focus {
    outline: none;
    border-color: #00588F !important;
    box-shadow: 0 0 0 3px rgba(0, 88, 143, 0.15) !important;
}

/* Job Cards */
.job-card {
    border: 1px solid #ddd;
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    height: 100%;
}

.job-card:hover {
    box-shadow: 0 8px 16px rgba(0, 88, 143, 0.15);
    transform: translateY(-4px);
    border-color: #00588F;
}

.job-card-title {
    transition: color 0.3s ease;
}

.job-card:hover .job-card-title {
    color: #00588F;
}

.job-location {
    color: #6b7280;
    font-size: 0.9rem;
}

.job-location i {
    color: #00588F;
}

.view-role {
    color: #00588F;
    font-weight: 600;
    transition: all 0.3s ease;
}

.view-role:hover {
    color: #004b6d;
    gap: 0.5rem !important;
}

.share-btn {
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.share-btn:hover {
    background-color: #f0f7fa;
    color: #00588F;
}

/* Results Section */
.bg-light {
    background-color: #f8f8f8 !important;
}

#visibleCount {
    font-weight: 800;
    color: #00588F;
}

#sortSelect {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    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='%230a4d68' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 32px;
}

#sortSelect:hover {
    border-color: #00588F;
    box-shadow: 0 2px 8px rgba(0, 88, 143, 0.1);
}

#sortSelect:focus {
    outline: none;
    border-color: #00588F !important;
    box-shadow: 0 0 0 3px rgba(0, 88, 143, 0.15) !important;
}

/* Empty State */
#noResults {
    padding: 3rem 0 !important;
}

#noResults i {
    color: #ccc;
}

#noResults h5 {
    font-weight: 700;
    margin-top: 1rem;
}

#noResults p {
    color: #6b7280;
    margin-top: 0.5rem;
}

/* Clear Buttons */
.btn-outline-secondary {
    border: 1px solid #ddd;
    color: #6b7280;
    transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
    background-color: #f0f7fa;
    border-color: #00588F;
    color: #00588F;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-bg {
        padding: 2.5rem 0 3rem 0 !important;
    }

    .hero-bg h1 {
        font-size: 1.8rem;
    }

    .hero-bg p {
        font-size: 0.95rem;
    }

    .search-box {
        margin-bottom: 1rem;
    }

    .search-box .input-group-text {
        border-radius: 6px 0 0 6px;
    }

    .search-box .btn {
        border-radius: 0 6px 6px 0;
    }

    .custom-select {
        flex: 1 !important;
        min-width: calc(50% - 0.5rem) !important;
    }

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

    #visibleCount {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .hero-bg h1 {
        font-size: 1.5rem;
    }

    .hero-bg p {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .job-card-title {
        font-size: 1rem !important;
    }
}

/* ============================================================================
   ACCESSIBILITY: Focus Indicators (Issue #1)
   ============================================================================ */

/* Focus indicator for all interactive elements */
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 3px solid #00588F;
  outline-offset: 2px;
}

/* Fallback for browsers without focus-visible support */
input:focus,
textarea:focus,
select:focus,
button:focus,
a:focus {
  outline: 2px solid #00588F;
  outline-offset: 1px;
}
