/* Base styles */
:root {
    --primary-color: #007bff;
    --primary-hover: #0069d9;
    --primary-light: #e6f2ff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #eef2f7;
    --dark-color: #333;
    --border-color: #dde2e8;
    --text-color: #495057;
    --shadow-sm: 0 .125rem .25rem rgba(0,0,0,.075);
    --shadow: 0 .5rem 1rem rgba(0,0,0,.15);
    --transition: all 0.3s ease;
    --button-primary: #5e5bed;
    --button-hover: #4b48c8;
}

body {
    background-color: #dce4ef !important;
    color: var(--dark-color);
    line-height: 1.6;
    font-family: 'Poppins', sans-serif;
}

/* Header styling */
.header-area {
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    background-color: #ffffff !important;
}

.header-sticky {
    background-color: #ffffff !important;
}

.headder-top {
    position: relative;
}

.headder-top:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 8px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.05), rgba(0,0,0,0));
}

.main-menu ul li a {
    color: #333 !important;
    font-weight: 500;
    transition: color 0.3s;
}

.main-menu ul li a:hover {
    color: #5e5bed !important;
}

.btn.head-btn1 {
    background-color: #5e5bed !important;
    transition: all 0.3s ease;
}

.btn.head-btn1:hover {
    background-color: #4b48c8 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(94, 91, 237, 0.2);
}

/* Page title */
.page-title-container {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.page-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.page-subtitle {
    font-size: 14px;
    color: var(--secondary-color);
    margin-bottom: 0;
}

/* Main Job Listing Container */
.job-listing-main {
    padding: 15px 0 30px;
}

body .job-listing-main .main-content {
    padding: 25px !important;
    margin-bottom: 20px !important;
    background-color: #ffffff !important;
    border-radius: 15px !important;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.05) 0px 4px 6px -2px !important;
    transition: box-shadow 0.3s ease-in-out !important;
    border: 1px solid #d1d9e6 !important;
}

body .job-listing-main .main-content:hover {
    box-shadow: rgba(17, 17, 26, 0.1) 0px 8px 24px, rgba(17, 17, 26, 0.1) 0px 16px 56px, rgba(17, 17, 26, 0.1) 0px 24px 80px !important;
}

.job-listing-inner-wrapper {
    background-color: #edf2f7;
    border-radius: 12px;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px !important;
    padding: 20px;
    position: relative;
    border: 1px solid #d1d9e6;
    margin-bottom: 20px;
}

/* Search Section */
.search-section {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    position: relative;
    border: 1px solid #d1d9e6;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px !important;
}

.search-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 2px solid #edf2f7;
}

.search-title {
    margin: 0;
    color: var(--dark-color);
    font-weight: 600;
    font-size: 15px;
}

.search-title i {
    color: var(--primary-color);
    margin-right: 8px;
    font-size: 14px;
}

.toggle-form-btn {
    cursor: pointer;
    font-size: 14px;
    color: var(--primary-color);
    transition: var(--transition);
    padding: 5px 10px;
    border-radius: 4px;
}

.toggle-form-btn:hover {
    background-color: var(--primary-light);
    text-decoration: none;
}

.search-box {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 10px;
}

.input-form, 
.select-form, 
.txtCity,
.txtZip {
    flex: 1;
    min-width: 200px;
    position: relative;
}

.input-form label,
.select-form label,
.txtCity label,
.txtZip label {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary-color);
    z-index: 1;
    font-size: 14px;
}

.jobTextboxWidth,
.combo-box,
#txtCity,
#txtZip,
#keywordInput {
    width: 100%;
    height: 42px;
    padding: 8px 15px 8px 35px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    color: var(--text-color);
    transition: var(--transition);
}

.jobTextboxWidth:focus,
.combo-box:focus,
#txtCity:focus,
#txtZip:focus,
#keywordInput:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(94, 91, 237, 0.25);
    outline: none;
}

/* Override any other border styles */
#keywordInput {
    border: 1px solid #ced4da !important;
}

.find-job-btn-wrapper {
    flex-basis: 100%;
    margin-top: 5px;
}

.btnFindJob {
    width: 100%;
    height: 42px;
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 14px;
}

.btnFindJob i {
    margin-right: 8px;
}

.btnFindJob:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.25);
    color: white;
}

/* Job Tabs Section */
.job-tabs-section {
    margin-bottom: 12px;
}

.job-tabs {
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 12px;
}

.job-tabs .nav-item {
    margin-right: 5px;
}

.job-tabs .nav-link {
    padding: 10px 15px;
    border: 1px solid transparent;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    font-size: 14px;
}

.job-tabs .nav-link i {
    margin-right: 8px;
    color: var(--primary-color);
}

.job-tabs .nav-link.active {
    color: var(--primary-color);
    border-color: var(--border-color);
    border-bottom-color: transparent;
    background-color: white;
}

.job-tabs .nav-link:hover:not(.active) {
    background-color: var(--light-color);
    border-color: var(--border-color);
    border-bottom-color: transparent;
}

.alert-container {
    margin-bottom: 15px;
}

/* Job Results */
.job-results-section {
    background-color: white;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    margin-bottom: 20px;
}

.tab-content {
    padding: 12px;
}

.job-listing-results {
    min-height: 300px;
    max-height: 800px;
    overflow-y: auto;
    padding-right: 5px;
}

.job-listing-results::-webkit-scrollbar {
    width: 6px;
}

.job-listing-results::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.job-listing-results::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 10px;
}

.job-listing-results::-webkit-scrollbar-thumb:hover {
    background: var(--primary-hover);
}

/* Loading Placeholder */
.loading-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 300px;
    color: var(--secondary-color);
}

.spinner-border {
    width: 3rem;
    height: 3rem;
    color: var(--primary-color) !important;
    margin-bottom: 20px;
}

/* Pagination */
.pagination-area {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: var(--light-color);
    border-top: 1px solid var(--border-color);
}

.pagination-info {
    color: var(--secondary-color);
    font-size: 13px;
}

.pagination-controls {
    display: flex;
    justify-content: flex-end;
}

.pagination {
    margin-bottom: 0;
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.pagination .page-link {
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: 4px;
    margin: 0 3px;
    transition: var(--transition);
    font-size: 14px;
}

.pagination .page-link:hover {
    background-color: var(--primary-light);
    color: var(--primary-hover);
    cursor: pointer;
}

/* Job Search Tips */
.job-search-tips {
    background-color: var(--primary-light);
    border-radius: 8px;
    padding: 12px;
    margin-top: 15px;
}

.job-search-tips h5 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 15px;
}

.job-search-tips h5 i {
    color: var(--warning-color);
    margin-right: 8px;
}

.tips-list {
    list-style: none;
    padding-left: 20px;
}

.tips-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--text-color);
}

.tips-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: 600;
}

/* Sidebar */
.sidebar {
    padding: 0 10px;
}

.sidebar .panel {
    margin-bottom: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid #e9ecef;
    overflow: hidden;
}

/* Footer styling */
.footer {
    background-color: #ffffff !important;
    padding: 30px 0 !important;
    border-top: 1px solid #e9ecef;
    margin-top: 0 !important;
}

#footerIcons {
    margin-top: 15px;
    padding: 15px 0;
}

#footerIcons a img {
    transition: transform 0.3s;
}

#footerIcons a:hover img {
    transform: translateY(-3px);
}

.copyright {
    margin-top: 15px;
    font-size: 14px;
    color: #6c757d;
}

hr {
    margin-top: 40px;
    margin-bottom: 30px;
    border: 0;
    border-top: 1px solid #e9ecef;
    opacity: 0.5;
}

/* Chosen dropdown styling */
.chosen-container-single .chosen-single {
    height: 42px;
    line-height: 42px !important;
    background: white !important;
    border: 1px solid #ced4da !important;
    border-radius: 4px !important;
    box-shadow: none !important;
    padding-left: 15px !important;
    color: #495057 !important;
}

.chosen-container-single .chosen-single div b {
    background-position: 0 12px !important;
}

.chosen-container-active.chosen-with-drop .chosen-single div b {
    background-position: -18px 12px !important;
}

.chosen-container-single .chosen-drop {
    border-color: #5e5bed !important;
    border-radius: 0 0 4px 4px !important; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.1) !important;
}

.chosen-container .chosen-results li.highlighted {
    background-color: #5e5bed !important;
    background-image: none !important;
}

.chosen-container-single .chosen-single span {
    margin-top: 8px;
}

/* Mobile Ad Banner (visible only on mobile) */
.mobile-ad-banner {
    display: none;
    margin: 20px 0;
    text-align: center;
}

.mobile-ad-banner img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

/* Responsive styles for mobile devices */
@media (max-width: 768px) {
    .job-hero-section {
        padding: 25px 0;
    }
    
    .hero-title {
        font-size: 24px;
    }
    
    .hero-subtitle {
        font-size: 14px;
    }
    
    .job-listing-inner-wrapper {
        padding: 15px 10px;
    }
    
    .search-section {
        padding: 15px 10px;
    }
    
    .search-box {
        flex-direction: column;
        gap: 10px;
    }
    
    .input-form, 
    .select-form, 
    .txtCity,
    .txtZip {
        flex-basis: 100%;
        width: 100%;
        margin-bottom: 10px;
    }
    
    .jobTextboxWidth,
    .combo-box,
    #txtCity,
    #txtZip {
        height: 45px;
    }
    
    .find-job-btn-wrapper {
        width: 100%;
    }
    
    .btnFindJob {
        height: 45px;
        width: 100%;
        margin-top: 5px;
    }
    
    .job-tabs .nav-link {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .pagination .page-link {
        padding: 6px 12px;
        font-size: 14px;
    }
    
    .pagination-area {
        flex-direction: column;
        gap: 10px;
    }
    
    .pagination-info {
        text-align: center;
        margin-bottom: 10px;
    }
    
    .pagination-controls {
        justify-content: center;
        width: 100%;
    }
    
    .mobile-ad-banner {
        display: block;
        margin: 15px 0;
    }
    
    #bannerMobileAdImage {
        max-width: 100%;
        height: auto;
    }
    
    .page-title {
        font-size: 24px;
    }
    
    .page-subtitle {
        font-size: 16px;
    }
    
    /* Improve small screen search box experience */
    .chosen-container {
        width: 100% !important;
    }
    
    .chosen-container-single .chosen-search input[type="text"] {
        width: 100% !important;
    }
    
    .chosen-container .chosen-results {
        max-height: 200px;
    }
    
    /* Fix icon and input field overlap on mobile */
    .input-form label,
    .select-form label,
    .txtCity label,
    .txtZip label {
        left: 10px;
        font-size: 14px;
    }
    
    .jobTextboxWidth,
    .combo-box,
    #txtCity,
    #txtZip {
        padding-left: 40px;
        font-size: 16px;
    }
    
    .chosen-container-single .chosen-single {
        padding-left: 40px !important;
    }
    
    .chosen-container-single .chosen-single span {
        margin-right: 0;
        text-overflow: ellipsis;
        overflow: hidden;
        white-space: nowrap;
        max-width: calc(100% - 40px);
    }
    
    .search-help-text {
        font-size: 12px;
        padding: 10px 5px 0;
    }
    
    /* Improve scroll area on mobile */
    .job-listing-results {
        -webkit-overflow-scrolling: touch;
        max-height: 600px;
    }
    
    /* Ensure there's enough room for the text */
    input::placeholder {
        opacity: 0.7;
    }
    
    /* Mobile-friendly school cards */
    .school-card {
        margin-bottom: 12px !important;
    }
    
    .school-header {
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 12px 15px 8px !important;
    }
    
    .school-info {
        margin-bottom: 10px !important;
    }
    
    .school-actions {
        text-align: left !important;
        margin-top: 8px !important;
    }
    
    .school-actions .btn {
        width: 100% !important;
        font-size: 0.8rem !important;
        padding: 8px 12px !important;
    }
    
    .school-details {
        padding: 10px 15px 15px !important;
    }
    
    .school-details .row {
        margin: 0 !important;
    }
    
    .school-details .col-md-6 {
        padding: 0 !important;
        margin-bottom: 6px !important;
    }
}

/* Extra small devices (phones, 576px and down) */
@media (max-width: 576px) {
    .job-listing-inner-wrapper {
        padding: 12px 8px;
        margin-bottom: 10px;
    }
    
    .search-section {
        padding: 12px 8px;
    }
    
    .search-title {
        font-size: 14px;
    }
    
    .job-tabs .nav-link {
        padding: 8px 10px;
        font-size: 13px;
    }
    
    .job-tabs .nav-link i {
        margin-right: 5px;
    }
    
    .pagination .page-link {
        padding: 5px 10px;
        font-size: 13px;
    }
    
    .job-search-tips h5 {
        font-size: 14px;
    }
    
    .tips-list li {
        font-size: 12px;
        margin-bottom: 6px;
    }
    
    .footer {
        padding: 20px 0 !important;
    }
    
    .search-header {
        margin-bottom: 8px;
        padding-bottom: 6px;
    }
    
    /* Extra small mobile school cards */
    .school-card {
        margin-bottom: 10px !important;
    }
    
    .school-header {
        padding: 10px 12px 6px !important;
    }
    
    .school-name {
        font-size: 0.95rem !important;
        line-height: 1.2 !important;
    }
    
    .school-badges .badge {
        font-size: 0.65rem !important;
        padding: 2px 5px !important;
        margin-right: 3px !important;
    }
    
    .school-details {
        padding: 8px 12px 12px !important;
    }
    
    .detail-item {
        margin-bottom: 5px !important;
        font-size: 0.8rem !important;
    }
    
    .school-actions .btn {
        font-size: 0.75rem !important;
        padding: 6px 10px !important;
    }
    
    /* Further adjust form field spacing */
    .input-form label,
    .select-form label,
    .txtCity label,
    .txtZip label {
        left: 8px;
        font-size: 13px;
    }
    
    .jobTextboxWidth,
    .combo-box,
    #txtCity,
    #txtZip {
        padding-left: 30px;
    }
    
    /* Better placeholder visibility */
    input::placeholder {
        font-size: 14px;
    }
    
    /* Better loading indicator on small screens */
    .loading-placeholder {
        height: 200px;
    }
    
    .spinner-border {
        width: 2.5rem;
        height: 2.5rem;
        margin-bottom: 15px;
    }
}

/* Help Icon */
.help-icon {
    display: inline-block;
    margin-left: 8px;
    color: var(--primary-color);
    font-size: 16px;
    transition: var(--transition);
    vertical-align: middle;
}

.help-icon:hover {
    color: var(--primary-hover);
    transform: scale(1.1);
}

/* Help Modal */
.help-section {
    margin-bottom: 20px;
}

.help-section h6 {
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 15px;
}

.help-section p {
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.5;
    color: var(--text-color);
}

.help-tips {
    padding-left: 20px;
    margin-bottom: 0;
}

.help-tips li {
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-color);
}

/* Search help text */
.search-help-text {
    margin-top: 12px;
    font-size: 13px;
    color: var(--secondary-color);
    padding-top: 8px;
    border-top: 1px dashed var(--border-color);
}

.search-help-text i {
    font-size: 14px;
    margin-right: 5px;
}

/* Job Preview Modal Styles */
@media (forced-colors: active) {
    .btn-primary {
        forced-color-adjust: none;
        background-color: ButtonText;
        color: ButtonFace;
    }
    
    .meta-item i {
        forced-color-adjust: none;
        color: LinkText;
    }
}

.job-preview-container {
    font-family: 'Poppins', sans-serif;
}

.company-header {
    display: flex;
    align-items: center;
}

.company-logo {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 8px;
}

.meta-item {
    margin-bottom: 10px;
}

.meta-item i {
    margin-right: 8px;
}

.description-content {
    line-height: 1.6;
}

.description-content ul {
    padding-left: 20px;
}

.description-content p {
    margin-bottom: 1rem;
}

.badge {
    font-weight: normal;
    font-size: 0.9rem;
    margin-right: 8px;
    margin-bottom: 8px;
}

.gap-2 {
    gap: 0.5rem;
}

/* Mobile-specific form styles with high specificity */
body .search-box .input-form label,
body .search-box .select-form label,
body .search-box .txtCity label,
body .search-box .txtZip label {
    position: absolute !important;
    left: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 10 !important;
    font-size: 14px !important;
    color: #6c757d !important;
}

body .search-box .jobTextboxWidth,
body .search-box .combo-box,
body .search-box #txtCity,
body .search-box #txtZip {
    padding-left: 40px !important;
    font-size: 16px !important;
    height: 48px !important;
    width: 100% !important;
}

/* Extra padding for job title field */
body .search-box .jobTextboxWidth {
    padding-left: 45px !important;
}

/* Direct targeting of keyword input */
html body form.search-box div.input-form input#keywordInput.jobTextboxWidth {
    padding-left: 40px !important;
}

/* Chosen select specific styling */
body .chosen-container-single .chosen-single {
    height: 48px !important;
    line-height: 48px !important;
    font-size: 16px !important;
    padding-left: 40px !important;
}

body .chosen-container-single .chosen-single span {
    margin-top: 7px !important;
    text-indent: 5px !important;
}

body .chosen-container-single .chosen-single div b {
    background-position: 0 15px !important;
}

body .chosen-container-active.chosen-with-drop .chosen-single div b {
    background-position: -18px 15px !important;
}

/* Additional utility classes */
.search-input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.search-input {
    padding-left: 40px;
    font-size: 16px;
    height: 48px;
}

.find-job-button {
    padding: 15px 30px;
    font-size: 16px;
    font-weight: bold;
    height: auto;
}

.modal-button {
    padding: 12px 25px;
    font-size: 16px;
    font-weight: bold;
}

.single-job-items {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid #e1e8f0;
    transition: all 0.3s ease;
    box-shadow: rgba(0, 0, 0, 0.05) 0px 6px 24px 0px, rgba(0, 0, 0, 0.08) 0px 0px 0px 1px;
}

.single-job-items:hover {
    transform: translateY(-2px);
    box-shadow: rgba(17, 17, 26, 0.1) 0px 4px 16px, rgba(17, 17, 26, 0.1) 0px 8px 24px, rgba(17, 17, 26, 0.1) 0px 16px 56px !important;
    border-color: #c9d6e9;
}

/* Consistent Button Styling */
.btn, 
.btnFindJob,
.head-btn1,
.apply-btn2 .btn {
    background-color: var(--button-primary) !important;
    color: white !important;
    font-weight: 600 !important;
    padding: 12px 25px !important;
    border-radius: 6px !important;
    border: none !important;
    transition: all 0.3s ease !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    font-size: 14px !important;
    box-shadow: 0 2px 4px rgba(94, 91, 237, 0.2) !important;
    text-align: center !important;
    display: inline-block !important;
    line-height: 1.5 !important;
    cursor: pointer !important;
}

.btn:hover, 
.btnFindJob:hover,
.head-btn1:hover,
.apply-btn2 .btn:hover {
    background-color: var(--button-hover) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 8px rgba(94, 91, 237, 0.3) !important;
    color: white !important;
    text-decoration: none !important;
}

.btn i, 
.btnFindJob i,
.head-btn1 i {
    margin-right: 8px !important;
}

/* Find Job Button Specific */
.find-job-button {
    width: 100% !important;
    height: auto !important;
    margin-top: 10px !important;
}

/* Apply Now Button Specific */
.apply-btn2 {
    display: inline-block !important;
}

.apply-btn2 .btn {
    min-width: 120px !important;
    text-align: center !important;
    padding: 12px 20px !important;
}

/* Login Button Specific */
.head-btn1 {
    margin-left: 15px !important;
} 