@import url('https://fonts.googleapis.com/css2?family=Lexend+Deca:wght@100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* Root Variables */
:root {
    --job-primary: #e85d04;
    --job-primary-light: #ff9500;
    --job-primary-dark: #dc2f02;
    --job-bg: #fff9f0;
    --job-card-bg: #ffffff;
    --job-text-primary: #2c2c2c;
    --job-text-secondary: #666666;
    --job-text-muted: #999999;
    --job-border: #e0e0e0;
    --job-shadow: rgba(232, 93, 4, 0.1);
    --job-shadow-hover: rgba(232, 93, 4, 0.2);
    --job-success: #28a745;
    --job-info: #17a2b8;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Popins', sans-serif !important;
    line-height: 1;
    color: var(--job-text-primary);
    background: linear-gradient(135deg, var(--job-bg) 0%, #fff 100%);
}

.job-main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    min-height: 100vh;
}

/* Header Section */
.job-header-section {
    text-align: center;
    padding: 60px 0 40px 0;
    /* background: linear-gradient(135deg, var(--job-bg) 0%, #fff 100%); */
}

.job-header-content {
    max-width: 600px;
    margin: 0 auto;
}

.job-main-title {
    font-size: 5rem;
    font-weight: 700;
    color: var(--job-primary);
    margin-bottom: 15px;
    line-height: 1.2;
}

.job-subtitle {
    font-size: 2rem;
    color: var(--job-text-secondary);
    font-weight: 400;
}

/* Filter Section */
.job-filter-section {
    background: var(--job-card-bg);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 4px 20px var(--job-shadow);
    border: 1px solid var(--job-border);
}

.job-filter-container {
    max-width: 100%;
}

.job-filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    align-items: center;
}

.job-filter-select {
    padding: 9px 16px;
    border: 2px solid var(--job-border);
    border-radius: 8px;
    font-size: 15px;
    background: var(--job-card-bg);
    color: var(--job-text-primary);
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: inherit;
}

.job-filter-select:focus {
    outline: none;
    border-color: var(--job-primary);
    box-shadow: 0 0 0 3px rgba(232, 93, 4, 0.1);
}

.job-filter-select:hover {
    border-color: var(--job-primary-light);
}

.job-filter-reset-btn {
    background: var(--job-primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.job-filter-reset-btn:hover {
    background: var(--job-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--job-shadow-hover);
}

/* Loading Section */
.job-loading-section {
    text-align: center;
    padding: 60px 20px;
}

.job-loader {
    width: 50px;
    height: 50px;
    border: 4px solid var(--job-border);
    border-top: 4px solid var(--job-primary);
    border-radius: 50%;
    animation: job-spin 1s linear infinite;
    margin: 0 auto 20px auto;
}

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

/* Job Count Section */
.job-count-section {
    text-align: center;
    margin-bottom: 30px;
}

#job-count-display {
    font-size: 1.8rem;
    color: var(--job-text-secondary);
    font-weight: 500;
}

/* Jobs Cards Section */
.job-cards-section {
    margin-bottom: 40px;
}

.job-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    padding: 20px 0;
}

/* Job Card Styles */
.job-card {
    background: var(--job-card-bg);
    border-radius: 12px;
    padding: 23px;
    border-left: 5px solid var(--job-primary);
    box-shadow: 0 4px 15px var(--job-shadow);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--job-shadow-hover);
    border-left-width: 8px;
}

.job-card-header {
    margin-bottom: 15px;
}

.job-card-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--job-primary);
    margin-bottom: 8px;
    line-height: 1.3;
}

.job-card-company {
    font-size: 1.7rem;
    color: var(--job-text-primary);
    font-weight: 500;
    margin-bottom: 5px;
}

.job-card-location {
    font-size: 1.6rem;
    color: var(--job-text-secondary);
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 1rem !important;
}

.job-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 15px;
}

.job-card-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background: var(--job-bg);
    border-radius: 20px;
    font-size: 1.3rem;
    color: var(--job-text-secondary);
    font-weight: 500;
}

.job-card-experience {
    background: rgba(232, 93, 4, 0.1);
    color: var(--job-primary);
}

.job-card-type {
    background: rgba(23, 162, 184, 0.1);
    color: var(--job-info);
}

.job-card-date {
    background: rgba(40, 167, 69, 0.1);
    color: var(--job-success);
}

.job-card-footer {
    margin-top: 20px;
    margin-bottom: 0;
    padding-top: 15px;
    border-top: 1px solid var(--job-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.job-card-apply-btn {
    background: var(--job-primary);
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.job-card-apply-btn:hover {
    background: var(--job-primary-dark);
}

/* No Results Section */
.job-no-results-section {
    text-align: center;
    padding: 80px 20px;
}

.job-no-results-content h3 {
    font-size: 1.8rem;
    color: var(--job-text-primary);
    margin-bottom: 15px;
}

.job-no-results-content p {
    font-size: 1.1rem;
    color: var(--job-text-secondary);
    margin-bottom: 25px;
}

.job-try-again-btn {
    background: var(--job-primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.job-try-again-btn:hover {
    background: var(--job-primary-dark);
}

/* Load More Section */
.job-load-more-section {
    text-align: center;
    margin: 40px 0;
}

.job-load-more-btn {
    background: transparent;
    color: var(--job-primary);
    border: 2px solid var(--job-primary);
    padding: 10px 28px;
    border-radius: 8px;
    font-size: 1.4rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.job-load-more-btn:hover {
    background: var(--job-primary);
    color: white;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .job-main-container {
        padding: 0 15px;
    }
    
    .job-main-title {
        font-size: 2.5rem;
    }
    
    .job-filter-row {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 12px;
    }
    
    .job-cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 20px;
    }
    
    .job-header-section {
        padding: 40px 0 30px 0;
    }
    
    .job-filter-section {
        padding: 20px;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .job-main-title {
        font-size: 2rem;
    }
    
    .job-subtitle {
        font-size: 1.5rem;
    }
    
    .job-filter-row {
        grid-template-columns: 1fr;
    }
    
    .job-cards-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .job-card {
        padding: 20px;
    }
    
    .job-card-meta {
        gap: 8px;
    }
    
    .job-card-meta-item {
        font-size: 0.8rem;
        padding: 5px 10px;
    }
}

@media (max-width: 480px) {
    .job-main-container {
        padding: 0 10px;
    }
    
    .job-header-section {
        padding: 30px 0 20px 0;
    }
    
    .job-main-title {
        font-size: 3rem;
    }
    
    .job-filter-section {
        padding: 15px;
    }
    
    .job-card {
        padding: 15px;
    }
    
    .job-card-title {
        font-size: 1.1rem;
    }
    
    .job-card-company {
        font-size: 1rem;
    }
}

/* Update the filter button styles */
.job-filter-buttons {
  display: flex;
  gap: 15px;
  align-items: center;
  justify-content: center;
  margin-top: 15px;
}

.job-filter-search-btn {
  background: var(--job-primary);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 8px;
}

.job-filter-search-btn:hover {
  background: var(--job-bg);
  color: var(--job-primary);
  box-shadow: 0 4px 12px var(--job-shadow-hover);
}

.job-filter-reset-btn {
  background: transparent;
  color: var(--job-text-secondary);
  border: 2px solid var(--job-border);
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 8px;
}

.job-filter-reset-btn:hover {
  background: var(--job-bg);
  color: var(--job-primary);
  box-shadow: 0 4px 12px var(--job-shadow-hover);
}

/* Updated filter section to accommodate new layout */
.job-filter-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
  align-items: center;
  margin-bottom: 20px;
}

/* Job card description styling */
.job-card-description {
  margin: 15px 0;
  font-size: 0.9rem;
  color: var(--job-text-secondary);
  line-height: 1.5;
}

.job-card-description p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.job-card-salary {
  font-weight: 600;
  color: var(--job-success);
  font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .job-filter-buttons {
    flex-direction: column;
    gap: 10px;
  }
  
  .job-filter-search-btn,
  .job-filter-reset-btn {
    width: 100%;
    justify-content: center;
  }
  
  /* Add these lines to reorder buttons on mobile */
  .job-filter-search-btn {
    order: 1;
  }
  
  .job-filter-reset-btn {
    order: 2;
  }
}

/* Add hover effects for job tags */
.job-tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(232, 93, 4, 0.4) !important;
}

/* Responsive adjustments for initial message */
@media (max-width: 768px) {
  .job-suggestion-tags {
    flex-direction: column !important;
    align-items: center !important;
  }
  
  .job-tag {
    width: 80% !important;
    text-align: center !important;
    justify-content: center !important;
  }
}

/* Loading state for search button */
.job-filter-search-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.job-filter-search-btn .fa-spinner {
  animation: spin 1s linear infinite;
}

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

/* Center the job cards container and make initial message a centered square */
.job-cards-section {
  margin-bottom: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 70vh;
}

/* Base styles for initial message */
.job-initial-message {
  background: var(--job-card-bg);
  border-radius: 15px;
  box-shadow: 0 8px 30px var(--job-shadow);
  border: 1px solid var(--job-border);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.job-initial-content {
  text-align: center;
}

.job-search-icon {
  font-size: 4rem;
  color: var(--job-primary);
  margin-bottom: 20px;
}

.job-expertise-title {
  color: var(--job-text-primary);
  margin: 15px 0;
  font-size: 1.8rem;
  line-height: 1.3;
}

.job-intro-text {
  color: var(--job-text-secondary);
  margin-bottom: 30px;
  /* font-size: 1.1rem; */
  line-height: 1.6;
}

.job-suggestions {
  margin-top: 30px;
}

.job-suggestions-title {
  color: var(--job-text-primary);
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.job-suggestion-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.job-tag {
  background: var(--job-primary);
  color: white;
  padding: 10px 18px;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  /* font-size: 0.9rem; */
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(232, 93, 4, 0.3);
}

.job-pro-tip {
  margin-top: 30px;
  padding: 20px;
  background: var(--job-bg);
  border-radius: 10px;
  border-left: 4px solid var(--job-primary);
}

.job-pro-tip p {
  color: var(--job-text-muted);
  font-size: 1.3rem;
  margin: 0;
}

/* Square layout for desktop */
@media (min-width: 769px) {
  .job-initial-message {
    width: 600px;
    height: 600px;
    margin: 0 auto;
  }
  
  .job-initial-content {
    max-width: 500px;
    padding: 40px;
  }
  
  .job-search-icon {
    font-size: 3rem;
  }
  
  .job-expertise-title {
    font-size: 1.6rem;
  }
  
  .job-intro-text {
    font-size: 1rem;
  }
  
  .job-suggestions-title {
    font-size: 1.1rem;
  }
  
  .job-tag {
    padding: 8px 16px;
    font-size: 0.85rem;
  }
}

@media (min-width: 1024px) {
  .job-initial-message {
    width: 700px;
    height: 700px;
  }
  
  .job-initial-content {
    max-width: 600px;
    padding: 50px;
    margin-top: -5rem;
  }
  
  .job-search-icon {
    font-size: 4rem;
  }
  
  .job-expertise-title {
    font-size: 2.8rem;
  }
  
  .job-intro-text {
    font-size: 1.6rem;
  }
  
  .job-suggestions-title {
    font-size: 1.6rem;
  }
  
  .job-tag {
    padding: 10px 18px;
    font-size: 1.3rem;
  }
}

/* Mobile layout */
@media (max-width: 768px) {
  .job-cards-section {
    min-height: auto;
  }
  
  .job-initial-message {
    width: 100%;
    height: auto;
    padding: 40px 20px;
    margin: 20px 0;
  }
  
  .job-initial-content {
    padding: 0;
  }
}

.job-search-icon {
  font-size: 5rem;
  font-weight: 900 !important;
}

/* Flexbox centering for all screen sizes */
.job-no-filters-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 75vh;
    padding: 20px;
    box-sizing: border-box;
}

.job-no-filters-message {
    width: 100%;
    max-width: 600px;
    margin: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
