/* ================================
   ADVANCE JOB LISTING ELEMENT CSS
   ================================ */

   .advance-job-wrapper {
    font-family: -apple-system, 'Instrument Sans', sans-serif;
    max-width: 100%;
    position: relative;
}

/* ================================
   SEARCH FORM STYLES
   ================================ */

.job-search-form {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 40px;
    align-items: center;
	padding: 30px;
  	border-radius: 16px;
  	border: 1px solid #D2CEBE;
  	background: #F2F1EC;
}

.job-search-form .form-group {
    
    display: flex;
    align-items: center;
}
.job-search-form .form-group label{
	position: relative;
	color:#636362;
	display: flex;
  	flex-direction: column;
	width:100%;
}
.job-search-form input[type="text"],
.job-search-form select {
    width: 350px;
	margin-top: 20px;
    font-size: 14px;
    color: #374151;
	border-radius: 8px;
	border: 1px solid #D2CEBE;
	background: #FFF;
    transition: all 0.2s;
}
.job-search-form input[type="text"]{
	padding: 14px 16px 14px 40px;
}

.job-search-form input[type="text"]::placeholder {
    color: #9ca3af;
}

.job-search-form input[type="text"]:focus,
.job-search-form select:focus {
    outline: none;
    border-color: #D2CEBE;
    box-shadow: none;
}

.job-search-form select {
    padding: 14px 40px 14px 16px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%239ca3af'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    cursor: pointer;
}

.job-search-form .search-icon {
    position: absolute;
    left: 12px;
	bottom:15px;
    width: 20px;
    height: 20px;
    color: #9ca3af;
    pointer-events: none;
}

.job-search-btn {
    padding: 14px 32px;
    background: #000000;
    color: white;
    border: none;
    border-radius: 60px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    letter-spacing: 0.5px;
	margin-top: 35px;
}

.job-search-btn:hover {
    background: #1f2937;
    box-shadow: none;
}

/* ================================
   SECTION HEADING STYLES
   ================================ */

.job-section-heading {
    text-align: left;
    margin-bottom: 40px;
}

.job-section-subheading {
    font-size: 12px;
    font-weight: 600;
    color: #000;
    letter-spacing: 2px;
    margin-bottom: 8px;
    text-transform: uppercase;
	position:relative;
}
.job-section-subheading::after{
	position:absolute;
	content:'';
	background:#BFBBA8;
	width:100px;
	height:1px;
	top:10px;
	margin-left:10px;
}
.job-section-title {
    font-size: 36px;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

/* ================================
   TAB FILTERS STYLES
   ================================ */

.job-tabs {
    display: flex;
    gap: 24px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    justify-content: left;
}

.job-tab {
    padding: 12px 28px;
    background: white;
    border: 1px solid #D9D9D9;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    color: #00033D;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.job-tab:hover {
    color: #1e3a8a;
	background:#F1F9FF;
}

.job-tab.active {
    background: #F1F9FF;
    color: #fff;
    border-color: #3A3B7B;
}

/* ================================
   JOB LISTINGS GRID
   ================================ */

.job-list {
    display: grid;
/*     grid-template-columns: repeat(auto-fill, minmax(500px, 1fr)); */
    gap: 30px;
    margin-bottom: 20px;
}

/* ================================
   JOB CARD STYLES
   ================================ */

.job-card {
    background: #F1F9FF;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 32px;
    transition: all 0.3s;
}

.job-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.job-title {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 24px 0;
    line-height: 1.3;
}

.job-description-section {
    margin-bottom: 24px;
}

.job-field-label {
    font-size: 12px;
    font-weight: 700;
    color: #1e3a8a;
    letter-spacing: 1px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.job-description-text {
    font-size: 15px;
    color: #4b5563;
    line-height: 1.7;
}

/* ================================
   JOB DETAILS GRID
   ================================ */

.job-details-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px 30px;
    margin-bottom: 20px;
}

.job-detail-item {
    display: flex;
    flex-direction: column;
	border-right:1px solid #CCE0EF;
}

.job-details-grid .job-detail-item:nth-child(4){border-right:0px;}
.job-field-value {
    font-size: 17px;
    font-weight: 500;
    color: #111827;
}

/* ================================
   APPLY BUTTON
   ================================ */

.job-button-container {
    display: flex;
    justify-content: flex-end;
}

.job-apply-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: #000000;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 0.5px;
	font-size:16px !important;
}

.job-apply-btn:hover {
    background: #1f2937;
	color: #fff;
    box-shadow: none;
}

.job-apply-btn .arrow {
    font-size: 18px;
    transition: transform 0.3s;
}

.job-apply-btn:hover .arrow {
    transform: translateX(5px);
}

/* ================================
   PAGINATION
   ================================ */

.job-pagination-container {
    margin-top: 20px;
}

.job-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.job-pagination a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 8px 12px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
}

.job-pagination a:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.job-pagination a.current {
    background: #1e3a8a;
    color: white;
    border-color: #1e3a8a;
}

/* ================================
   LOADER
   ================================ */

.job-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
}

.job-loader .spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f4f6;
    border-top: 4px solid #1e3a8a;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.job-list-container {
    transition: opacity 0.3s ease;
}

/* ================================
   NO RESULTS MESSAGE
   ================================ */

.no-jobs-found {
    text-align: center;
    padding: 60px 20px;
    font-size: 16px;
    color: #6b7280;
}

/* ================================
   ERROR MESSAGE
   ================================ */

.error-message {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 16px;
    border-radius: 6px;
    text-align: center;
    margin: 20px 0;
}

/* ================================
   RESPONSIVE DESIGN
   ================================ */
@media (max-width: 1366px){
	
.job-details-grid{gap:15px 20px;}
.job-search-form input[type="text"], .job-search-form select{width:284px;}
.job-apply-btn{height:55px;
	padding: 14px 20px;
	font-size: 15px !important;
	gap:5px;}
.job-section-title{font-size:45px!important; line-height:55px;}
}

@media (max-width: 1200px){
	.job-details-grid{grid-template-columns:repeat(3,1fr)}
	.job-search-form {grid-template-columns:repeat(2, 1fr);}
	.job-search-form input[type="text"], .job-search-form select{width:430px;}
	.job-search-btn{width:200px;}
	
}

@media (max-width: 1024px) {
    .job-list {
        grid-template-columns: 1fr;
    }
	.job-section-title{font-size:35px!important; line-height:45px;}
	.job-search-form input[type="text"], .job-search-form select{width:350px;}
	.job-search-btn{width:180px;}
	
}


@media (max-width: 881px) {
	.job-section-title{font-size:30px!important; line-height:45px;}
	.job-search-form input[type="text"], .job-search-form select{width:280px;}
	.job-search-btn{width:200px;}
	.job-details-grid{grid-template-columns:repeat(2,1fr)}
	.job-button-container{justify-content:flex-start;}
	.job-apply-btn{width:200px !important;}
	.job-detail-item{border-right:0px;}
}
@media (max-width: 768px) {
    .job-search-form {
        grid-template-columns: 1fr;
    }
	.job-search-form input[type="text"], .job-search-form select{width:100%;}
	.job-search-form .form-group label{font-size:16px;}
    .job-section-title {
        font-size: 28px;
    }
    
    .job-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
		gap:15px;
    }
    
    .job-tabs::-webkit-scrollbar {
        height: 6px;
    }
    
    .job-tabs::-webkit-scrollbar-track {
        background: #f3f4f6;
        border-radius: 3px;
    }
    
    .job-tabs::-webkit-scrollbar-thumb {
        background: #d1d5db;
        border-radius: 3px;
    }
    
    .job-card {
        padding: 24px;
    }
    
    .job-title {
        font-size: 20px;
    }
    
    .job-details-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .job-button-container {
        justify-content: stretch;
    }
    
    .job-apply-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .job-card {
        padding: 20px;
    }
    
    .job-section-title {
        font-size: 24px;
    }
}

/* ================================
   ANIMATION
   ================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.job-card {
    animation: fadeIn 0.5s ease forwards;
}

.job-card:nth-child(1) { animation-delay: 0.05s; }
.job-card:nth-child(2) { animation-delay: 0.1s; }
.job-card:nth-child(3) { animation-delay: 0.15s; }
.job-card:nth-child(4) { animation-delay: 0.2s; }
.job-card:nth-child(5) { animation-delay: 0.25s; }
.job-card:nth-child(6) { animation-delay: 0.3s; }
