/* Jobs Page Styles */
:root {
    --primary-color: #13005A;
    --secondary-color: #00337C;
    --accent-color: #1C82AD;
    --gradient-start: #13005A;
    --gradient-end: #00337C;
    --dark-color: #333333;
    --light-color: #ffffff;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --border-radius: 16px;
}

/* Jobs Section */
.jobs-section {
    min-height: 100vh;
    background: #fff;
    padding: 5rem 0 4rem;
    position: relative;
    overflow: hidden;
    /* Subtle SVG pattern background */
    background-image:
        url('data:image/svg+xml;utf8,<svg width="320" height="320" viewBox="0 0 320 320" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="160" cy="160" r="120" fill="%23e6e6ff" fill-opacity="0.35"/><circle cx="220" cy="100" r="60" fill="%235b3df6" fill-opacity="0.08"/><rect x="60" y="220" width="80" height="80" rx="40" fill="%231c82ad" fill-opacity="0.07"/></svg>'),
        url('data:image/svg+xml;utf8,<svg width="320" height="320" viewBox="0 0 320 320" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="160" cy="160" r="120" fill="%23e6e6ff" fill-opacity="0.25"/><circle cx="100" cy="220" r="60" fill="%235b3df6" fill-opacity="0.07"/><rect x="180" y="20" width="80" height="80" rx="40" fill="%231c82ad" fill-opacity="0.06"/></svg>');
    background-repeat: no-repeat, no-repeat;
    background-position: top right, bottom left;
    background-size: 340px, 340px;
}

.jobs-section::before {
    display: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 2;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #13005A;
    margin-bottom: 2.5rem;
    text-align: center;
    letter-spacing: -1px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #13005A 0%, #1C82AD 100%);
    border-radius: 2px;
    margin: 1rem auto 0 auto;
}

/* Search and Filter Section */
.search-filters {
    background: #fff;
    border-radius: 1.5rem;
    box-shadow: 0 6px 32px rgba(19,0,90,0.07), 0 1.5px 8px 0 rgba(19,0,90,0.04) inset;
    padding: 2rem 2.5rem;
    margin-bottom: 3rem;
    position: sticky;
    top: 80px;
    z-index: 10;
    border: none;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
}

.search-box {
    flex: 1 1 320px;
    margin-bottom: 0;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border-radius: 1rem;
    box-shadow: 0 2px 8px rgba(19,0,90,0.04);
    padding: 0.5rem 1rem;
}

.search-input-wrapper i {
    color: #13005A;
    font-size: 1.3rem;
    margin-right: 1rem;
}

#jobSearch {
    width: 100%;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 1rem;
    font-size: 1.1rem;
    background: transparent;
    color: #222;
    outline: none;
}

#jobSearch::placeholder {
    color: #888;
    opacity: 1;
}

.filters-wrapper {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.filter-group select {
    width: 180px;
    padding: 0.75rem 1rem;
    border: 1.5px solid #e9ecef;
    border-radius: 1rem;
    font-size: 1rem;
    color: #13005A;
    background: #f8f9fa;
    cursor: pointer;
    transition: border 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 4px rgba(19,0,90,0.04);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 8L10 12L14 8' stroke='%2313005A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.2rem;
}

.filter-group select:focus, .filter-group select:hover {
    border-color: #13005A;
    box-shadow: 0 0 0 3px rgba(19,0,90,0.08);
    outline: none;
}

/* Jobs Grid */
.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 6rem;
    width: 100%;
}

.footer{
    margin-top: 0rem !important;
}

/* Job Card */
.job-card {
    width: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 1.5rem;
    box-shadow: 0 8px 32px rgba(19,0,90,0.10), 0 1.5px 8px 0 rgba(19,0,90,0.06) inset;
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    transition: box-shadow 0.3s, transform 0.3s;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    will-change: transform, box-shadow;
    animation: cardEntrance 0.7s cubic-bezier(.4,2,.6,1) both;
}

.job-card:hover {
    transform: translateY(-10px) scale(1.025);
    box-shadow: 0 16px 48px rgba(19,0,90,0.16), 0 1.5px 8px 0 rgba(19,0,90,0.10) inset;
}

.job-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.2rem;
}

.company-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(19,0,90,0.06);
    overflow: hidden;
}

.company-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.job-info {
    flex: 1;
}

.job-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #13005A;
    margin-bottom: 0.2rem;
    line-height: 1.2;
}

.job-title a {
    color: #13005A;
    text-decoration: none;
    transition: color 0.2s;
}

.job-title a:hover {
    color: #1C82AD;
}

.company-name {
    font-size: 1rem;
    color: #888;
    margin-bottom: 0.2rem;
}

.job-meta {
    display: flex;
    gap: 1.2rem;
    font-size: 0.98rem;
    color: #1C82AD;
    margin-top: 0.2rem;
    flex-wrap: wrap;
}

.job-content {
    margin-bottom: 1.2rem;
}

.job-tags {
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.skill-tag, .benefit-tag {
    background: #f8f9fa;
    color: #13005A;
    border-radius: 1rem;
    padding: 0.3rem 0.9rem;
    font-size: 0.92rem;
    font-weight: 500;
    box-shadow: 0 1px 4px rgba(19,0,90,0.04);
    transition: background 0.2s, color 0.2s;
}

.skill-tag:hover, .benefit-tag:hover {
    background: #13005A;
    color: #fff;
}

.job-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

.job-posted {
    color: #888;
    font-size: 0.98rem;
}

.job-actions {
    display: flex;
    gap: 0.7rem;
}

.btn-apply {
    background: #13005A;
    color: #fff;
    border: none;
    padding: 0.5rem 1.2rem;
    border-radius: 0.7rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
    box-shadow: 0 2px 8px rgba(19,0,90,0.10);
}

.btn-apply:hover {
    background: #1C82AD;
    color: #fff;
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 4px 16px rgba(19,0,90,0.18);
}

.btn-save, .btn-share {
    background: #f8f9fa;
    color: #13005A;
    border: none;
    padding: 0.5rem 0.9rem;
    border-radius: 0.7rem;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}

.btn-save:hover, .btn-share:hover {
    background: #13005A;
    color: #fff;
    transform: translateY(-2px) scale(1.04);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
    padding: 1rem 0;
}

.pagination-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    border: 2px solid var(--gray-200);
    border-radius: 30px;
    background: var(--light-color);
    color: var(--gray-700);
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition);
}

.pagination-btn:hover:not(:disabled) {
    background: var(--primary-color);
    color: var(--light-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.pagination-btn.active {
    background: var(--primary-color);
    color: var(--light-color);
    border-color: var(--primary-color);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-ellipsis {
    color: var(--gray-600);
    padding: 0 0.5rem;
}

/* Loading State */
.loading-jobs {
    text-align: center;
    padding: 4rem 2rem;
}

.loading-spinner {
    display: inline-block;
    width: 3rem;
    height: 3rem;
    border: 4px solid var(--gray-200);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s linear infinite;
}

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

/* Empty State */
.no-jobs {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.no-jobs i {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.no-jobs h3 {
    font-size: 1.5rem;
    color: var(--gray-800);
    margin-bottom: 1rem;
}

.no-jobs p {
    color: var(--gray-600);
    margin-bottom: 2rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .jobs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .jobs-grid {
        grid-template-columns: 1fr;
    }
    .search-filters {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem 1rem;
    }
    .jobs-section {
        background-size: 180px, 180px;
        background-position: top 10px right -40px, bottom -40px left -40px;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 0 0.5rem;
    }
    .search-filters {
        padding: 1rem 0.5rem;
    }
    .job-card {
        padding: 1.2rem 0.7rem 1rem 0.7rem;
    }
}

/* Animations */
@keyframes cardEntrance {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(30px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.job-card {
    animation: cardEntrance 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
}

.jobs-grid .job-card:nth-child(1) { animation-delay: 0.1s; }
.jobs-grid .job-card:nth-child(2) { animation-delay: 0.2s; }
.jobs-grid .job-card:nth-child(3) { animation-delay: 0.3s; }
.jobs-grid .job-card:nth-child(4) { animation-delay: 0.4s; }
.jobs-grid .job-card:nth-child(5) { animation-delay: 0.5s; }
.jobs-grid .job-card:nth-child(6) { animation-delay: 0.6s; }
.jobs-grid .job-card:nth-child(7) { animation-delay: 0.7s; }
.jobs-grid .job-card:nth-child(8) { animation-delay: 0.8s; }
.jobs-grid .job-card:nth-child(9) { animation-delay: 0.9s; }
}

/* Notification */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    background: var(--light-color);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 1000;
    animation: slideIn 0.3s ease forwards;
}

.notification.success {
    border-left: 4px solid var(--success-color);
}

.notification.error {
    border-left: 4px solid var(--danger-color);
}

.notification i {
    font-size: 1.25rem;
}

.notification.success i {
    color: var(--success-color);
}

.notification.error i {
    color: var(--danger-color);
}

.notification span {
    color: var(--gray-800);
    font-size: 0.95rem;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.custom-dropdown-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 180px;
}
.custom-dropdown-label {
  font-size: 1rem;
  color: #13005A;
  font-weight: 600;
  margin-bottom: 0.2rem;
}
.custom-dropdown {
  position: relative;
  user-select: none;
  min-width: 180px;
}
.custom-dropdown-toggle {
  width: 100%;
  background: rgba(255,255,255,0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid #e9ecef;
  border-radius: 1rem;
  color: #13005A;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.75rem 2.5rem 0.75rem 1rem;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(19,0,90,0.04);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: border 0.2s, box-shadow 0.2s;
  outline: none;
  position: relative;
}
.custom-dropdown-toggle:focus, .custom-dropdown-toggle[aria-expanded="true"] {
  border-color: #13005A;
  box-shadow: 0 0 0 3px rgba(19,0,90,0.08);
}
.custom-dropdown-arrow {
  display: inline-block;
  margin-left: 1rem;
  width: 1.2rem;
  height: 1.2rem;
  background: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 8L10 12L14 8' stroke='%2313005A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center/contain;
  transition: transform 0.25s cubic-bezier(.4,2,.6,1);
}
.custom-dropdown[open] .custom-dropdown-arrow,
.custom-dropdown-toggle[aria-expanded="true"] .custom-dropdown-arrow {
  transform: rotate(180deg);
}
.custom-dropdown-list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 0.2rem);
  background: rgba(255,255,255,0.98);
  border-radius: 1rem;
  box-shadow: 0 8px 32px rgba(19,0,90,0.10);
  z-index: 100;
  padding: 0.5rem 0;
  margin: 0;
  list-style: none;
  max-height: 260px;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px) scale(0.98);
  transition: opacity 0.2s, transform 0.2s;
}
.custom-dropdown[open] .custom-dropdown-list,
.custom-dropdown-toggle[aria-expanded="true"] + .custom-dropdown-list {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}
.custom-dropdown-option {
  padding: 0.7rem 1.5rem;
  color: #13005A;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
  border: none;
  background: none;
}
.custom-dropdown-option.selected,
.custom-dropdown-option:hover {
  background: #f0f4ff;
  color: #1C82AD;
}