/* ========================================
   JOBSHIVES COMPLETE OPTIMIZED CSS
   Modern, Clean, and Responsive Design
   ======================================== */

/* Base Variables */
:root {
    --primary-color: #4e73df;
    --primary-dark: #224abe;
    --success-color: #1cc88a;
    --success-dark: #17a673;
    --warning-color: #f6c23e;
    --danger-color: #e74a3b;
    --text-dark: #1f2937;
    --text-muted: #6b7280;
    --border-color: #e5e7eb;
    --bg-light: #f8fafc;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 25px rgba(0, 0, 0, 0.15);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

/* Base Styles */
body {
    font-family: 'Work Sans', sans-serif;
    color: #455260;
    line-height: 1.6;
}

/* ========================================
   ENHANCED NAVBAR STYLES
   ======================================== */

.enhanced-navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.enhanced-navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.navbar-brand-enhanced {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.navbar-brand-enhanced:hover {
    transform: scale(1.02);
}

.brand-logo {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.brand-logo:hover {
    transform: rotate(-5deg) scale(1.1);
}

.brand-text {
    font-weight: 700;
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

/* Navigation Links */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item-enhanced {
    position: relative;
}

.nav-link-enhanced {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    font-weight: 500;
    font-size: 0.95rem;
    color: #374151;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.nav-link-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
    border-radius: 12px;
}

.nav-link-enhanced:hover::before {
    left: 0;
}

.nav-link-enhanced:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(78, 115, 223, 0.3);
    text-decoration: none;
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-primary-enhanced {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 12px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-primary-enhanced:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(78, 115, 223, 0.4);
    color: white;
    text-decoration: none;
}

.btn-outline-enhanced {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 12px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-outline-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.btn-outline-enhanced:hover::before {
    left: 0;
}

.btn-outline-enhanced:hover {
    color: white;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(78, 115, 223, 0.4);
    text-decoration: none;
}

/* Authentication Section */
.auth-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.login-btn-enhanced {
    background: transparent;
    border: 2px solid #e5e7eb;
    color: #374151;
    padding: 0.75rem 1.25rem;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 12px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-btn-enhanced:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    color: #1f2937;
    transform: translateY(-2px);
    text-decoration: none;
}

/* User Profile Dropdown */
.user-profile-dropdown {
    position: relative;
}

.user-avatar-enhanced {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid #e5e7eb;
    transition: all 0.3s ease;
    object-fit: cover;
}

.user-avatar-enhanced:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.dropdown-menu-enhanced {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    min-width: 240px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.dropdown-menu-enhanced.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    padding: 1.25rem;
    border-bottom: 1px solid #f3f4f6;
    background: linear-gradient(135deg, var(--bg-light) 0%, #f1f5f9 100%);
}

.dropdown-user-name {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.dropdown-user-email {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.dropdown-item-enhanced {
    padding: 0.875rem 1.25rem;
    color: #374151;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.dropdown-item-enhanced:hover {
    background: var(--bg-light);
    color: var(--primary-color);
    text-decoration: none;
    transform: translateX(4px);
}

.dropdown-item-enhanced i {
    width: 18px;
    text-align: center;
    opacity: 0.7;
}

.dropdown-divider {
    border-top: 1px solid #f3f4f6;
    margin: 0.5rem 0;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #374151;
    font-size: 1.25rem;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: #f3f4f6;
    color: var(--primary-color);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    color: #374151;
    text-decoration: none;
    border-radius: 12px;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.mobile-nav-link:hover {
    background: var(--bg-light);
    color: var(--primary-color);
    text-decoration: none;
    transform: translateX(4px);
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero-home {
    background-color: var(--bg-light);
    padding-top: 2rem;
    padding-bottom: 3rem;
}

.hero-home h1 {
    font-weight: 700;
    color: #344050;
    line-height: 1.3;
}

/* ========================================
   MODAL STYLES
   ======================================== */

.modal-content {
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border: none;
}

.modal-header {
    background-color: #455260;
    color: #fff;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    padding: 1.2rem 1.5rem;
    border-bottom: 0;
}

.modal-body {
    padding: 1.8rem;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-control,
.form-select {
    border-radius: 6px;
    border: 1px solid #e1e5eb;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.15);
}

.form-check-label {
    margin-left: 10px;
    font-size: 0.9rem;
    font-weight: 400;
}

/* ========================================
   JOB LISTING TABLE STYLES
   ======================================== */

.card.shadow {
    border-radius: 16px;
    border: none;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

#dataTable {
    margin-bottom: 0;
    font-size: 0.9rem;
}

#dataTable thead th {
    background: linear-gradient(135deg, var(--bg-light) 0%, #f1f5f9 100%);
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    padding: 1rem 0.75rem;
    white-space: nowrap;
}

#dataTable tbody tr {
    border: none;
    transition: var(--transition);
    background: white;
    border-bottom: 1px solid #f8fafc;
}

#dataTable tbody tr:hover {
    background: linear-gradient(135deg, #f8faff 0%, #f0f4ff 100%);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
    border-radius: var(--border-radius);
}

#dataTable tbody td {
    padding: 1rem 0.75rem;
    border: none;
    vertical-align: middle;
}

/* Company Logo */
.company-logo-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.company-logo-modern {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: var(--border-radius);
    border: 2px solid var(--border-color);
    background: white;
    padding: 4px;
    transition: var(--transition);
}

#dataTable tbody tr:hover .company-logo-modern {
    transform: scale(1.1);
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(78, 115, 223, 0.2);
}

/* Company Info */
.company-info .company-name {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
}

/* Role Info */
.role-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.role-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.role-category {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    background: var(--bg-light);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    width: fit-content;
}

.role-category i {
    font-size: 0.7rem;
}

/* New Badge */
.new-badge {
    background: linear-gradient(135deg, var(--success-color), var(--success-dark));
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Salary Info */
.salary-info {
    font-weight: 500;
}

.salary-amount {
    color: var(--success-color);
    font-weight: 600;
}

.salary-not-specified {
    color: var(--text-muted);
    font-size: 0.8rem;
    background: var(--bg-light);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
}

/* Posted Info */
.posted-info {
    font-size: 0.8rem;
    font-weight: 500;
}

.posted-today {
    color: var(--success-color);
}

.posted-recent {
    color: var(--warning-color);
}

.posted-old {
    color: var(--text-muted);
}

/* Apply Button */
.btn-apply-modern {
    background: linear-gradient(135deg, var(--success-color), var(--success-dark));
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 0.8rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.btn-apply-modern:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: white;
    text-decoration: none;
    background: linear-gradient(135deg, var(--success-dark), #059669);
}

.btn-apply-modern i {
    font-size: 0.75rem;
}

/* ========================================
   MOBILE CARD STYLES
   ======================================== */

.mobile-cards {
    display: none;
}

.desktop-table {
    display: block;
}

/* Mobile Controls */
.mobile-controls {
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem;
}

.mobile-controls-inner {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.mobile-search-wrapper {
    flex: 1;
    position: relative;
}

.mobile-search-wrapper i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.mobile-search-wrapper input {
    width: 100%;
    padding: 0.75rem 0.75rem 0.75rem 2.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    background: white;
    transition: var(--transition);
}

.mobile-search-wrapper input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(78, 115, 223, 0.1);
}

.mobile-filter-wrapper {
    position: relative;
}

.mobile-filter-wrapper select {
    padding: 0.75rem 2rem 0.75rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: white;
    font-size: 0.9rem;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 6 7 7 7-7'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    min-width: 80px;
}

.mobile-filter-wrapper select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(78, 115, 223, 0.1);
}

/* Job Cards Container */
.job-cards-container {
    padding: 1rem;
}

/* Modern Job Card */
.job-card-modern {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.job-card-modern:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.job-card-header-modern {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.job-card-logo-wrapper {
    flex-shrink: 0;
}

.job-card-logo-modern {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: var(--border-radius);
    border: 2px solid var(--border-color);
    background: white;
    padding: 4px;
}

.job-card-main-info {
    flex: 1;
    min-width: 0;
}

.job-card-company {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.job-card-role {
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.job-card-category {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    background: var(--bg-light);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    width: fit-content;
}

.new-badge-mobile {
    background: linear-gradient(135deg, var(--success-color), var(--success-dark));
    color: white;
    padding: 0.2rem 0.4rem;
    border-radius: 8px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* Meta Information */
.job-card-meta-modern {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    flex-wrap: wrap;
}

.meta-item-modern {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.meta-item-modern i {
    color: var(--primary-color);
    width: 14px;
    text-align: center;
}

/* Apply Button Mobile */
.job-card-footer-modern {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

.btn-apply-mobile {
    background: linear-gradient(135deg, var(--success-color), var(--success-dark));
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition);
    width: 100%;
    box-shadow: var(--shadow-sm);
}

.btn-apply-mobile:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: white;
    text-decoration: none;
    background: linear-gradient(135deg, var(--success-dark), #059669);
}

/* No Jobs State */
.no-jobs-mobile {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}

.no-jobs-mobile i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Mobile Pagination */
.mobile-pagination-modern {
    background: var(--bg-light);
    border-top: 1px solid var(--border-color);
    padding: 1rem;
    border-radius: 0 0 12px 12px;
}

.mobile-info {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 1rem;
}

.pagination-wrapper-modern {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.pagination-modern {
    display: flex;
    justify-content: center;
    gap: 0.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
    flex-wrap: nowrap;
}

.pagination-modern li {
    flex-shrink: 0;
}

.pagination-modern a,
.pagination-modern span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    background: white;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 500;
    font-size: 0.85rem;
    transition: var(--transition);
}

.pagination-modern a:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}

.pagination-modern .active a {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.pagination-modern .disabled span {
    background: var(--bg-light);
    color: var(--text-muted);
    cursor: not-allowed;
}

/* ========================================
   DATATABLE CONTROLS
   ======================================== */

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    margin-bottom: 1.5rem;
}

.dataTables_wrapper .dataTables_filter input {
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    transition: var(--transition);
    background: var(--bg-light);
    width: 250px;
}

.dataTables_wrapper .dataTables_filter input:focus {
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(78, 115, 223, 0.1);
    outline: none;
}

.dataTables_wrapper .dataTables_length select {
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    background: var(--bg-light);
    font-size: 0.9rem;
    transition: var(--transition);
}

.dataTables_wrapper .dataTables_length select:focus {
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(78, 115, 223, 0.1);
    outline: none;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    border-radius: var(--border-radius);
    margin: 0 0.25rem;
    padding: 0.5rem 0.75rem;
    border: 2px solid var(--border-color);
    background: white;
    transition: var(--transition);
    font-weight: 500;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white !important;
    transform: translateY(-1px);
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: white !important;
}

.dataTables_wrapper .dataTables_info {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
}

/* ========================================
   FAQ SECTION
   ======================================== */

.faq-section {
    padding: 4rem 0;
    background-color: var(--bg-light);
}

.faq-card {
    border: none;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 2.5rem;
}

.faq-card .card-header {
    background-color: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.faq-card .card-header:hover {
    background-color: #f8f9fa;
}

.faq-question {
    font-weight: 600;
    color: #455260;
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question:after {
    content: '\f107';
    font-family: 'Font Awesome 5 Free';
    color: var(--primary-color);
    font-weight: 900;
    transition: transform 0.2s ease;
}

.faq-question.collapsed:after {
    transform: rotate(-180deg);
}

.faq-card .card-body {
    padding: 1.5rem;
    color: #6e7c87;
    line-height: 1.7;
}

/* ========================================
   FOOTER STYLES
   ======================================== */

footer {
    background: #111;
}

footer .list-unstyled li {
    margin-bottom: 0.7rem;
}

footer .reset-anchor {
    color: #bbb;
    transition: color 0.2s;
}

footer .reset-anchor:hover {
    color: #fff;
    text-decoration: none;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.3s;
}

.social-link:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.btn-primary {
    padding: 0.6rem 1.2rem;
    font-weight: 500;
    border-radius: 6px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.badge {
    font-weight: 500;
    padding: 0.4em 0.7em;
    border-radius: 6px;
    letter-spacing: 0.3px;
}

.badge.bg-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: white;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
}

.badge.bg-primary {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%) !important;
    color: white;
    box-shadow: 0 2px 4px rgba(99, 102, 241, 0.3);
}

.badge.bg-secondary {
    background: #6b7280 !important;
    color: white;
}

.badge.bg-warning {
    background: var(--warning-color) !important;
    color: #1f2937;
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate__pulse {
    animation: pulse 2s infinite;
}

.animate__infinite {
    animation-iteration-count: infinite;
}

/* Loading States */
.btn-loading {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
    position: relative;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Navbar Responsive */
@media (max-width: 991.98px) {
    .nav-menu {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .cta-buttons {
        gap: 0.5rem;
    }

    .btn-primary-enhanced,
    .btn-outline-enhanced {
        padding: 0.625rem 1rem;
        font-size: 0.85rem;
    }

    .desktop-table {
        display: none;
    }

    .mobile-cards {
        display: block;
    }
}

@media (max-width: 767.98px) {
    .brand-text {
        font-size: 1.25rem;
    }

    .brand-logo {
        width: 40px;
        height: 40px;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }

    .btn-primary-enhanced,
    .btn-outline-enhanced {
        width: 100%;
        justify-content: center;
    }

    .faq-title {
        font-size: 1.8rem;
    }

    .mobile-controls-inner {
        flex-direction: column;
        gap: 1rem;
    }

    .mobile-search-wrapper,
    .mobile-filter-wrapper {
        width: 100%;
    }

    .job-card-header-modern {
        flex-direction: column;
        text-align: center;
        align-items: center;
        gap: 0.75rem;
    }

    .job-card-main-info {
        text-align: center;
    }

    .job-card-meta-modern {
        justify-content: center;
    }

    .pagination-modern a,
    .pagination-modern span {
        min-width: 36px;
        height: 36px;
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .mobile-controls {
        padding: 0.75rem;
    }

    .job-cards-container {
        padding: 0.75rem;
    }

    .job-card-modern {
        padding: 1rem;
    }

    .mobile-pagination-modern {
        padding: 0.75rem;
    }
}

/* Table Responsive */
@media (max-width: 1200px) {

    #dataTable th:nth-child(5),
    #dataTable td:nth-child(5) {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .table-responsive {
        overflow-x: auto;
    }

    #dataTable td,
    #dataTable th {
        white-space: nowrap;
    }
}

/* ========================================
   CUSTOM CARD HEADER
   ======================================== */

.custom-card-header {
    background-color: #455260;
    color: #fff;
}

/* ========================================
   GLOWING EFFECT (if needed)
   ======================================== */

.glowing {
    font-weight: bold;
    color: #fff;
    text-shadow: 0 0 10px #00C9FF, 0 0 20px #00C9FF, 0 0 30px #00C9FF;
    animation: glow 1.5s infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 5px #00C9FF, 0 0 10px #00C9FF, 0 0 15px #00C9FF;
    }

    to {
        text-shadow: 0 0 10px #00C9FF, 0 0 20px #00C9FF, 0 0 30px #00C9FF;
    }
}

/* ========================================
   JOB ALERT MODAL
   ======================================== */

#jobAlertModal {
    display: none;
}

.close {
    color: #fff;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.close:hover {
    opacity: 1;
}

/* ========================================
   ENHANCED JOB LISTING HOVER EFFECTS
   ======================================== */

.job-row {
    transition: all 0.2s ease;
}

.job-row:hover {
    background-color: rgba(78, 115, 223, 0.05) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.company-logo {
    transition: transform 0.3s;
    object-fit: contain;
    border-radius: 8px;
}

.job-row:hover .company-logo {
    transform: scale(1.08);
}

.apply-btn {
    transition: all 0.3s;
    font-weight: 500;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.apply-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* ========================================
   SCROLL ANIMATIONS
   ======================================== */

.nav-item-enhanced {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.nav-item-enhanced:nth-child(1) {
    animation-delay: 0.1s;
}

.nav-item-enhanced:nth-child(2) {
    animation-delay: 0.2s;
}

.nav-item-enhanced:nth-child(3) {
    animation-delay: 0.3s;
}

#dataTable tbody tr {
    animation: fadeInUp 0.3s ease-out;
}

/* ========================================
   FINAL UTILITY CLASSES
   ======================================== */

.text-muted {
    color: var(--text-muted) !important;
}

.fw-bold {
    font-weight: 600 !important;
}

.navbar-brand {
    font-weight: 600;
}

.nav-link-highlight {
    position: relative;
    color: #455260 !important;
    font-weight: 500;
}

.nav-link-highlight:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    bottom: 0;
    left: 0;
    transition: width 0.3s;
}

.nav-link-highlight:hover:after {
    width: 100%;
}

/* ========================================
   ENHANCED DATATABLE CONTROLS
   ======================================== */
.dataTables_wrapper .dataTables_length {
    background: #f8fafc;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.dataTables_wrapper .dataTables_length label {
    margin: 0 !important;
    font-size: 0.85rem;
    color: #6b7280;
    font-weight: 500;
}

.dataTables_wrapper .dataTables_length select {
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 0.25rem 1.5rem 0.25rem 0.5rem;
    font-size: 0.85rem;
    min-width: 60px;
    font-weight: 600;
    color: #374151;
    margin-left: 8px;
    margin-right: 8px;
}

/* ========================================
   SAVE FOR LATER FUNCTIONALITY
   ======================================== */

/* Save Button Styles */
.btn-save-modern {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.6rem 0.8rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 0.8rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    margin-left: 0.5rem;
    position: relative;
}

.btn-save-modern:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    text-decoration: none;
}

.btn-save-modern.saved {
    background: var(--success-color);
    border-color: var(--success-color);
    color: white;
}

.btn-save-modern.saved:hover {
    background: var(--success-dark);
    border-color: var(--success-dark);
}

.btn-save-mobile {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition);
    width: 100%;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    margin-top: 0.5rem;
}

.btn-save-mobile:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    text-decoration: none;
}

.btn-save-mobile.saved {
    background: var(--success-color);
    border-color: var(--success-color);
    color: white;
}

.btn-save-mobile.saved:hover {
    background: var(--success-dark);
    border-color: var(--success-dark);
}

/* Tooltip Styles */
.save-tooltip {
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    background: #1f2937;
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    pointer-events: none;
}

.save-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #1f2937;
}

.btn-save-modern:hover .save-tooltip {
    opacity: 1;
    visibility: visible;
}

/* Action buttons container */
.action-buttons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* No Saved Jobs Styles */
.no-saved-jobs {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

.no-saved-jobs i {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.5;
    color: var(--primary-color);
}

.no-saved-jobs h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 600;
}

.no-saved-jobs p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.btn-explore {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    font-size: 1rem;
}

.btn-explore:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(78, 115, 223, 0.4);
    color: white;
    text-decoration: none;
}

/* ========================================
   MOBILE RESPONSIVE FOR SAVED JOBS
   ======================================== */

@media (max-width: 991.98px) {
    .desktop-table {
        display: none !important;
    }

    .mobile-cards {
        display: block !important;
    }
}

@media (min-width: 992px) {
    .mobile-cards {
        display: none !important;
    }

    .desktop-table {
        display: block !important;
    }
}

/* Saved jobs specific mobile adjustments */
@media (max-width: 767.98px) {
    .no-saved-jobs {
        padding: 2rem 1rem;
    }

    .no-saved-jobs i {
        font-size: 3rem;
    }

    .no-saved-jobs h3 {
        font-size: 1.5rem;
    }
}

/* Profile Hint Styles - Fully Responsive */
.profile-hint {
    position: fixed;
    background: linear-gradient(135deg, #4e73df, #224abe);
    color: white;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    animation: profileHintSlide 0.5s ease-out;
    font-size: 0.9rem;
    line-height: 1.4;
    max-width: 320px;
    width: calc(100vw - 2rem);
}

/* Desktop positioning */
@media (min-width: 992px) {
    .profile-hint {
        top: 70px;
        right: 20px;
        width: 300px;
        max-width: 300px;
    }

    .profile-hint::before {
        content: '';
        position: absolute;
        top: -8px;
        right: 30px;
        width: 0;
        height: 0;
        border-left: 8px solid transparent;
        border-right: 8px solid transparent;
        border-bottom: 8px solid #4e73df;
    }
}

/* Tablet positioning */
@media (min-width: 769px) and (max-width: 991px) {
    .profile-hint {
        top: 15px;
        right: 15px;
        left: auto;
        width: 280px;
        max-width: 280px;
    }

    .profile-hint::before {
        content: '';
        position: absolute;
        top: -8px;
        right: 25px;
        width: 0;
        height: 0;
        border-left: 8px solid transparent;
        border-right: 8px solid transparent;
        border-bottom: 8px solid #4e73df;
    }
}

/* Mobile positioning */
@media (max-width: 768px) {
    .profile-hint {
        top: 15px;
        left: 1rem;
        right: 1rem;
        width: auto;
        max-width: none;
        font-size: 0.85rem;
        padding: 0.875rem 1rem;
    }

    /* No arrow on mobile for cleaner look */
    .profile-hint::before {
        display: none;
    }
}

.profile-hint-content {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.profile-hint-icon {
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.profile-hint-text {
    flex: 1;
    min-width: 0;
    /* Prevents flex overflow */
}

.profile-hint-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: white;
}

.profile-hint-desc {
    opacity: 0.9;
    font-size: 0.85rem;
    word-wrap: break-word;
}

.profile-hint-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 1;
}

.profile-hint-close:hover,
.profile-hint-close:focus {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    outline: none;
}

/* Profile Icon Pulse Animation - Responsive */
.profile-pulse {
    animation: profilePulse 2s infinite;
    position: relative;
}

.profile-pulse::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 2px solid #4e73df;
    border-radius: 50%;
    animation: profileRing 2s infinite;
    pointer-events: none;
}

/* Mobile profile pulse adjustment */
@media (max-width: 768px) {
    .profile-pulse::after {
        border-width: 1px;
        top: -2px;
        left: -2px;
        right: -2px;
        bottom: -2px;
    }
}

@keyframes profileHintSlide {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes profilePulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes profileRing {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: scale(1.4);
    }
}

/* Hide hint after interaction */
.profile-hint.hidden {
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.3s ease;
}

/* Ensure hint doesn't interfere with content */
.profile-hint+* {
    pointer-events: auto;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .profile-hint {
        border: 2px solid white;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {

    .profile-hint,
    .profile-pulse,
    .profile-pulse::after {
        animation: none;
    }

    .profile-hint {
        transform: none;
    }
}

/* ========================================
   ADD THESE STYLES TO css/home.css
   ======================================== */

/* User Profile Dropdown Styles */
.user-profile-dropdown {
    position: relative;
    cursor: pointer;
}

.user-avatar-enhanced {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
}

.user-avatar-enhanced:hover {
    border-color: #4e73df;
    transform: scale(1.05);
}

.dropdown-menu-enhanced {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    min-width: 280px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    margin-top: 0.5rem;
}

.dropdown-menu-enhanced.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f3f4f6;
    background: linear-gradient(135deg, rgba(78, 115, 223, 0.05), rgba(78, 115, 223, 0.1));
}

.dropdown-user-name {
    font-weight: 600;
    color: #1f2937;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.dropdown-user-email {
    font-size: 0.8rem;
    color: #6b7280;
}

.dropdown-item-enhanced {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    color: #374151;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f9fafb;
}

.dropdown-item-enhanced:last-child {
    border-bottom: none;
}

.dropdown-item-enhanced:hover {
    background: #f8fafc;
    color: #4e73df;
    text-decoration: none;
    transform: translateX(4px);
}

.dropdown-item-enhanced i {
    width: 16px;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.8;
}

.dropdown-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 0.5rem 0;
}

/* Jobs count badge */
.jobs-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 18px;
    background: #4e73df;
    color: white;
    border-radius: 9px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: auto;
}

/* Enhanced button styles for saved state */
.btn-save-modern,
.btn-save-mobile {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-save-modern.saved,
.btn-save-mobile.saved {
    background-color: #10b981 !important;
    color: white !important;
    transform: scale(1.05);
}

.btn-save-modern.saved::before,
.btn-save-mobile.saved::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 2s ease-in-out;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

/* Save tooltip enhancement */
.save-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #1f2937;
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
    z-index: 1000;
}

.save-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: #1f2937;
}

.btn-save-modern:hover .save-tooltip,
.btn-save-mobile:hover .save-tooltip {
    opacity: 1;
    visibility: visible;
}

/* Notification styles */
.save-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.save-notification.saved {
    background: #10b981;
    color: white;
}

.save-notification.removed {
    background: #ef4444;
    color: white;
}

.save-notification::before {
    content: '✓';
    font-weight: bold;
}

.save-notification.removed::before {
    content: '✕';
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .dropdown-menu-enhanced {
        right: -1rem;
        min-width: 260px;
    }

    .save-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        right: 10px;
    }

    .dropdown-item-enhanced:hover {
        transform: none;
    }
}

@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;
    }
}