/* Career Portal Styles */

.career-portal-jobs {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.read-more-btn {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    min-width: 140px;
}

.read-more-btn:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    color: #ffffff;
    text-decoration: none;
}

.read-more-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
}

.read-more-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}

/* Modern Job Filters */
.job-filters {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.search-section {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 0;
}

.search-input-wrapper {
    position: relative;
    height: 59px;
    width: 100%;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

input#job-search-input
{
    border-bottom-color: transparent;
    font-size: 18px;
    margin-top: 12px;
}

.search-input-wrapper:hover,
.search-input-wrapper:focus-within {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.job-search-input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    background: transparent;
    color: #fff!important;
    font-size: 16px;
    outline: none;
    padding-left: 20px!important;
}

.job-search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-jobs-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0 10px 10px 0;
    padding: 36px;
    font-size: 21px;
}

.search-jobs-btn:hover {
    background: #0B65D3;
    color: #fff;
    transform: scale(1.02);
}

.filters-section {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 0;
}

.filter-group {
    position: relative;
}

.job-filter {
    padding: 12px 40px 12px 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: #fff;
    font-size: 14px;
    min-width: 150px;
    outline: none;
    transition: all 0.3s ease;
    appearance: none;
    cursor: pointer;
    line-height: 1.4;
    height: auto;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}

.job-filter:hover,
.job-filter:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}

.job-filter option {
    background: #333;
    color: #fff;
    padding: 10px;
}

.filter-group {
    position: relative;
    display: flex;
    align-items: center;
}

.filter-group select {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

.filter-group select:focus {
    background-color: rgba(255, 255, 255, 0.15) !important;
}

.clear-all-filters {
    padding: 12px 25px;
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.clear-all-filters:hover {
    background: linear-gradient(135deg, #c82333, #a71e2a);
    transform: translateY(-1px);
    color: white;
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

.search-results-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 10px 0;
    font-size: 14px;
    color: #666;
}

.results-count {
    font-weight: 600;
    color: #333;
}

.active-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-tag {
    background: #e3f2fd;
    color: #1976d2;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.filter-tag .remove-filter {
    cursor: pointer;
    margin-left: 5px;
    opacity: 0.7;
}

.filter-tag .remove-filter:hover {
    opacity: 1;
}

/* Jobs Grid */
.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

/* Enhanced Job Card */
.job-card {
    background: #fff;
    border: none;
    border-radius: 16px;
    padding: 25px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.job-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.job-card:hover::before {
    transform: scaleX(1);
}

.job-card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-8px);
}

.job-header {
    margin-bottom: 18px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 18px;
}

.job-title {
    margin: 0 0 10px 0;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.3;
}

.job-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.job-title a:hover {
    color: #667eea;
}

.job-meta {
    display: flex;
    gap: 18px;
    font-size: 13px;
    color: #7f8c8d;
    flex-wrap: wrap;
}

.job-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.job-meta i {
    color: #667eea;
    width: 16px;
}

/* Job Information */
.job-info {
    margin-bottom: 18px;
}

.job-info-item {
    margin-bottom: 10px;
    font-size: 14px;
    color: #555;
    display: flex;
    align-items: center;
}

.job-info-item strong {
    color: #2c3e50;
    margin-right: 8px;
    min-width: 80px;
    font-weight: 600;
}

/* Job Excerpt */
.job-excerpt {
    color: #6c757d;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 18px;
}

/* Job Taxonomies */
.job-taxonomies {
    margin-bottom: 22px;
}

.job-categories,
.job-types {
    margin-bottom: 10px;
}

.job-category-tag,
.job-type-tag {
    display: inline-block;
    padding: 6px 12px;
    background: linear-gradient(135deg, #e3f2fd, #f3e5f5);
    color: #1565c0;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-right: 8px;
    margin-bottom: 6px;
    border: 1px solid rgba(21, 101, 192, 0.1);
    transition: all 0.3s ease;
}

.job-type-tag {
    background: linear-gradient(135deg, #fff3e0, #fce4ec);
    color: #e65100;
    border-color: rgba(230, 81, 0, 0.1);
}

.job-category-tag:hover,
.job-type-tag:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

/* Job Actions */
.job-actions {
    text-align: center;
}

.apply-now-btn {
    display: inline-block;
    padding: 14px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.apply-now-btn:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* Single Job Page */
.single-career-job {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.job-single-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 50px 40px;
    border-radius: 20px;
    margin-bottom: 40px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.3);
}

.job-single-title {
    font-size: 32px!important;
    margin: 0 0 20px 0;
    font-weight: 800;
    line-height: 1.2;
    color: white;
}

.job-single-meta {
    display: flex;
    justify-content: center;
    gap: 35px;
    font-size: 18px;
    flex-wrap: wrap;
    opacity: 0.95;
}

.job-single-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.job-single-meta i {
    font-size: 16px;
}

.job-apply-section {
    text-align: center;
    margin: 40px 0;
    padding: 40px 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    border: 2px solid #e9ecef;
}

.job-apply-section h2 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 24px;
    font-weight: 700;
}

.job-apply-section p {
    color: #6c757d;
    margin: 0 0 25px 0;
    font-size: 16px;
}

.job-apply-btn {
    display: inline-block;
    padding: 18px 40px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 5px 20px rgba(40, 167, 69, 0.3);
    margin-bottom: 15px;
    width: 100%;
    max-width: 300px;
}

.job-apply-btn:hover {
    background: linear-gradient(135deg, #218838 0%, #1ea085 100%);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(40, 167, 69, 0.4);
}

.job-description-section {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

.job-description-field {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    background: #fff;
    font-size: 14px;
    color: #6c757d;
    text-align: center;
    line-height: 1.5;
    transition: all 0.3s ease;
}

.job-description-field:hover {
    border-color: #ced4da;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
}

/* Job Details Sections */
.job-details-section {
    margin-bottom: 30px;
    background: #fff;
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
}

.job-details-section:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.job-details-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px 30px;
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    border-bottom: 2px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 10px;
}

.job-details-header i {
    color: #667eea;
    font-size: 20px;
}

.job-details-content {
    padding: 30px;
}

.job-details-content p {
    margin-bottom: 16px;
    line-height: 1.7;
    color: #555;
    font-size: 15px;
}

.job-details-content ul {
    margin: 16px 0;
    padding-left: 0;
    list-style: none;
}

.job-details-content li {
    margin-bottom: 12px;
    line-height: 1.7;
    color: #555;
    padding-left: 25px;
    position: relative;
    font-size: 15px;
}

.job-details-content li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: #28a745;
    font-weight: bold;
    font-size: 16px;
}

/* Job Information Sidebar */
.job-content-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.job-sidebar {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.job-info-sidebar {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: none;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.job-info-sidebar h3 {
    margin: 0 0 25px 0;
    font-size: 20px;
    color: #2c3e50;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.job-info-item-sidebar {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: #fff;
    border-radius: 12px;
    border: 2px solid #f0f0f0;
    transition: all 0.3s ease;
}

.job-info-item-sidebar:hover {
    border-color: #667eea;
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.job-info-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.job-info-icon i {
    color: #fff;
    font-size: 18px;
}

.job-info-text {
    flex: 1;
}

.job-info-label {
    font-size: 12px;
    color: #7f8c8d;
    margin-bottom: 3px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.job-info-value {
    font-size: 14px;
    color: #2c3e50;
    font-weight: 700;
    line-height: 1.3;
}

/* Share Section */
.job-share {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border: none;
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.job-share h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
    color: #2c3e50;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.share-btn:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.share-btn.facebook { background: linear-gradient(135deg, #3b5998, #2d4373); }
.share-btn.twitter { background: linear-gradient(135deg, #1da1f2, #1a91da); }
.share-btn.linkedin { background: linear-gradient(135deg, #0077b5, #005885); }
.share-btn.whatsapp { background: linear-gradient(135deg, #25d366, #1ebe57); }

.share-actions {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.share-actions a {
    color: #6c757d;
    font-size: 13px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
    font-weight: 500;
}

.share-actions a:hover {
    color: #667eea;
}

.copy-job-url.copied {
    color: #28a745 !important;
}

/* Job Categories List */
.job-categories-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 20px 0;
}

.job-category-link {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #e9ecef;
    border-radius: 25px;
    color: #2c3e50;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.job-category-link:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

/* No Jobs Message */
.no-jobs {
    text-align: center;
    padding: 80px 20px;
    color: #6c757d;
    font-size: 18px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    grid-column: 1 / -1;
    border: 2px dashed #ced4da;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.search-jobs-btn.loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .job-content-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .job-sidebar {
        position: static;
        order: -1;
    }
    
    .filters-section {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .career-portal-jobs {
        padding: 15px;
    }
    
    .job-filters {
        padding: 20px;
        gap: 15px;
    }
    
    .search-input-wrapper {
        width: 100%;
    }
    
    .filters-section {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .job-filter {
        width: 100%;
        min-width: auto;
    }
    
    .clear-all-filters {
        align-self: center;
        width: auto;
    }
    
    .jobs-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .job-card {
        padding: 20px;
    }
    
    .job-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .single-career-job {
        padding: 15px;
    }
    
    .job-single-header {
        padding: 35px 25px;
    }
    
    .job-single-title {
        font-size: 26px!important;
    }
    
    .job-single-meta {
        flex-direction: column;
        gap: 15px;
    }
    
    .job-apply-section {
        padding: 30px 20px;
    }
    
    .job-apply-btn {
        padding: 16px 30px;
        font-size: 15px;
    }
    
    .job-details-content {
        padding: 25px;
    }
    
    .job-info-sidebar {
        padding: 25px;
    }
    
    .share-buttons {
        gap: 10px;
    }
    
    .job-categories-list {
        justify-content: center;
    }
    
    .job-info-item-sidebar {
        flex-direction: column;
        text-align: center;
        padding: 20px 15px;
    }
    
    .job-info-icon {
        margin: 0 auto 10px auto;
    }
}

@media (max-width: 480px) {
    .job-single-header {
        padding: 25px 20px;
    }
    
    .job-single-title {
        font-size: 22px!important;
    }
    
    .job-apply-btn {
        padding: 14px 25px;
        font-size: 14px;
        width: 80%;
        max-width: none;
    }
    
    .job-details-content {
        padding: 20px;
    }
    
    .job-info-sidebar {
        padding: 20px;
    }
    
    .share-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .job-filters {
        padding: 15px;
    }
    
    .search-input-wrapper {
        border-radius: 10px;
    }

    .search-jobs-btn {
        border-radius: 0 10px 10px 0;
    }
}

/* Hide page title only on single job pages */
body.single-career_job .gt3-page-title_wrapper {
    display: none !important;
}