/* Search Section Layout */
.search-section-wrapper {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    align-items: flex-start;  
}

.search-logo-col {
    width: 100px; /* Adjust based on logo size */
    padding-top: 10px;
}

.search-logo {
    width: 100%;
    height: auto;
}

.search-form-col {
    flex: 1;
}

/* Auth Buttons */
.auth-buttons-row {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 10px;
}

.btn-auth {
    background-color: #007fc7; /* Blue color from image */
    color: white;
    border: none;
    padding: 5px 20px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
}

.btn-auth:hover {
    background-color: #0056b3;
    color: white;
}

/* Job Search Form Styles */
.job-search-form {
    background-color: #fff;
    padding: 0;
    margin-bottom: 0;
}

.search-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.input-wrapper, .filter-wrapper {
    flex: 1;
    min-width: 150px;
    position: relative;
}

/* Input Styles */
.search-row input[type="text"] {
    width: 100%;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    height: 42px;
    background-color: #fff; /* Changed to white to avoid looking disabled */
    color: #000;
    font-size: 15px;
    border: 1px solid #ccc; /* Added border for visibility */
}

/* Disabled State - Grey Background */
.search-row input[type="text"]:disabled {
    background-color: #e9ecef;
    cursor: not-allowed;
}

.search-row input[type="text"]::placeholder {
    color: #000;
    opacity: 1;
}

.input-wrapper .location-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #003366;
    z-index: 2;
    font-size: 16px;
}

.input-wrapper input.has-icon {
    padding-left: 35px;
}

/* Select2 Customization */
.select2-container .select2-selection--single {
    height: 42px !important;
    border: 2px solid #000 !important; /* Thicker border as requested */
    border-radius: 5px !important;
    display: flex !important;
    align-items: center !important;
    background-color: #fff !important;
}

/* Disabled Select2 */
.select2-container--default.select2-container--disabled .select2-selection--single {
    background-color: #e9ecef !important;
    cursor: not-allowed;
    border-color: #ced4da !important; /* Grey border for disabled state */
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: normal !important;
    color: #000 !important;
    padding-left: 10px !important;
    font-weight: 400;
    font-size: 15px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 40px !important;
    top: 1px !important;
    right: 5px !important;
    width: 20px !important;
}

/* Larger, solid triangle for caret */
.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #000 transparent transparent transparent !important;
    border-width: 8px 6px 0 6px !important; /* Increased size */
    margin-top: -2px !important;
}

.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent #000 transparent !important;
    border-width: 0 6px 8px 6px !important; /* Increased size */
}

/* Search Button */
.search-row button {
    background-color: #8bc34a;
    color: white;
    border: none;
    padding: 0 30px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    height: 42px;
    font-size: 16px;
    min-width: 120px;
}

.search-row button:disabled {
    background-color: #a5d6a7; /* Lighter green for disabled state */
    cursor: not-allowed;
}

.search-row button:hover:not(:disabled) {
    background-color: #7cb342;
}

/* Job List Info Text */
.job-list > p {
    font-size: 13px; /* Reduced from 14px */
    margin-bottom: 15px;
    color: #333;
    font-weight: 500;
}

.locked-filters {
    position: relative;
    cursor: pointer;
}

/*
 * Click locking is handled in JS so auth buttons can stay clickable.
 * Keep visual styling on the container only.
 */

.locked-pagination {
    position: relative;
    cursor: pointer;
    opacity: 0.6;
}

/* Pagination */
.pagination {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 30px 0;
    justify-content: center;
    margin: 0;
}

.pagination li a,
.pagination li span {
    display: inline-block;
    padding: 6px 12px;
    border: 2px solid #003366;
    border-radius: 5px;
    color: #003366;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    transition: background-color 0.2s, color 0.2s;
}

.pagination li a:hover {
    background-color: #003366;
    color: #fff;
}

.pagination li.active span {
    background-color: #8bc34a;
    border-color: #8bc34a;
    color: #fff;
    font-weight: bold;
}

.pagination li.disabled span {
    color: #aaa;
    border-color: #ccc;
    cursor: default;
    font-weight: 400;
}

/* Responsive */
@media (max-width: 992px) {
    .search-row {
        flex-wrap: wrap;
    }
    .input-wrapper {
        min-width: 100%;
    }
    .filter-wrapper {
        min-width: 48%;
    }
    
    .search-section-wrapper {
        flex-direction: column;
    }
    
    .search-logo-col {
        width: 100%;
        text-align: center;
        padding-bottom: 10px;
    }
    
    .search-logo {
        width: 150px;
    }
    
    .search-form-col {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .search-row {
        flex-direction: column;
    }
    
    .input-wrapper, .filter-wrapper, .search-row button {
        width: 100%;
    }
}

/* Job Card Styles */
.job-card {
    border: 1px solid #00204a;
    margin-bottom: 15px;
    display: flex;
    align-items: stretch;
    background: white;
}

.job-logo {
    width: 120px;
    min-width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid #00204a;
    padding: 10px;
}

.job-logo img {
    max-width: 100%;
    max-height: 100%;
}

.job-details {
    flex: 1;
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.job-details h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
    font-weight: bold;
    text-align: left;
}

.job-details h3 a {
    color: #0056b3;
    text-decoration: underline;
}

.job-details p {
    margin: 0 0 3px 0;
    font-size: 14px;
    color: #000;
    line-height: 1.4;
    max-width: none;
}

.job-details .company-name {
    font-weight: normal;
    margin-bottom: 5px;
}

.job-details .posted-date {
    margin-top: 10px;
    font-size: 13px;
    color: #555;
}

.job-action {
    padding: 0 20px;
    display: flex;
    align-items: center;
}

.btn-apply {
    background-color: #8bc34a;
    color: white;
    padding: 8px 25px;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    display: inline-block;
    font-size: 15px;
    white-space: nowrap;
    cursor: pointer;
}

.banner-placeholder {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: center;
    margin-bottom: 30px;
    cursor: pointer;
    display: block;
}

/* Signature */
.intro-signature {
    text-align: center;
}

/* No Logo Placeholder */
.no-logo-icon {
    font-size: 50px;
    color: #ccc;
}
