/* ============================================
   EMPLOYER LIST PAGE — Professional Styles
   Matches candidate-list-2 design system
   ============================================ */

/* === Section === */
.employer-list-section {
    padding: 2.5rem 0 3rem;
    background: #f8fafb;
    min-height: 60vh;
}

/* === Sidebar === */
.employer-sidebar {
    border-radius: 14px;
    border: 1px solid #e8ecef;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    position: sticky;
    top: 90px;
}
.employer-sidebar .sidebar_header {
    background: linear-gradient(135deg, #f0fdf7, #ecfdf5);
    border-bottom: 1px solid #e0efe8;
    padding: 1rem 1.25rem;
}
.employer-sidebar .sidebar_header h4 {
    color: #1a1a2e;
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
}
.employer-sidebar .sidebar_header .clear_all {
    font-size: 0.8rem;
    color: #016551 !important;
    text-decoration: none;
    transition: opacity 0.2s;
}
.employer-sidebar .sidebar_header .clear_all:hover {
    opacity: 0.7;
}
.employer-sidebar .search-inner {
    padding: 1.25rem;
}
.employer-sidebar .form-group {
    margin-bottom: 1.25rem;
}
.employer-sidebar .form-group label {
    font-weight: 600;
    font-size: 0.85rem;
    color: #374151;
    margin-bottom: 0.5rem;
    display: block;
}
.employer-sidebar .form-control,
.employer-sidebar .form-select {
    border-radius: 10px;
    border: 1.5px solid #e5e7eb;
    padding: 0.6rem 0.85rem;
    font-size: 0.875rem;
    transition: border-color 0.25s, box-shadow 0.25s;
}
.employer-sidebar .form-control:focus,
.employer-sidebar .form-select:focus {
    border-color: #016551;
    box-shadow: 0 0 0 3px rgba(1,101,81,0.1);
}
.employer-sidebar .btn-main {
    border-radius: 10px;
    padding: 0.7rem;
    font-weight: 600;
    background: linear-gradient(135deg, #016551, #01a67c);
    border: none;
    color: #fff;
    transition: all 0.3s ease;
}
.employer-sidebar .btn-main:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(1,101,81,0.25);
    color: #fff;
}

/* === Results Bar === */
.employer-results-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.1rem;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e8ecef;
    box-shadow: 0 1px 6px rgba(0,0,0,0.03);
    flex-wrap: wrap;
    gap: 0.75rem;
}
.employer-results-info .results-count {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
}
.employer-results-info .results-count i {
    color: #016551;
}
.employer-results-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.btn-filter-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.9rem;
    border-radius: 8px;
    background: linear-gradient(135deg, #016551, #01a67c);
    color: #fff !important;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
}
.btn-filter-toggle:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(1,101,81,0.3);
    color: #fff !important;
}
.employer-sort-group {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.employer-sort-select {
    border-radius: 8px !important;
    border: 1.5px solid #e5e7eb !important;
    padding: 0.4rem 2rem 0.4rem 0.7rem !important;
    font-size: 0.8rem !important;
    font-weight: 500;
    color: #374151;
    background-color: #fff;
    cursor: pointer;
    min-width: 100px;
    transition: border-color 0.2s;
}
.employer-sort-select:focus {
    border-color: #016551 !important;
    box-shadow: 0 0 0 2px rgba(1,101,81,0.1);
}

/* === Employer Card (List Style) === */
.employer-card {
    background: #ffffff;
    border-radius: 14px;
    border: 1.5px solid #e8ecef;
    padding: 1.25rem 1.35rem;
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}
.employer-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #016551, #01a67c);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.employer-card:hover {
    border-color: #016551;
    box-shadow: 0 8px 30px rgba(1,101,81,0.08);
    transform: translateY(-2px);
}
.employer-card:hover::before {
    opacity: 1;
}
.employer-card-inner {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    width: 100%;
}

/* Avatar */
.employer-avatar-wrap {
    flex-shrink: 0;
}
.employer-avatar-link {
    position: relative;
    display: block;
    text-decoration: none;
}
.employer-avatar {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    overflow: hidden;
    background: #f3f4f6;
    border: 2.5px solid #e5e7eb;
    transition: border-color 0.3s;
}
.employer-card:hover .employer-avatar {
    border-color: #016551;
}
.employer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.employer-avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #016551, #01a67c);
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
}
.employer-verified-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #1a73e8;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.employer-verified-inline {
    color: #1a73e8;
    font-size: 0.85rem;
    margin-left: 4px;
}

/* Info */
.employer-info {
    flex: 1;
    min-width: 0;
}
.employer-name-wrap h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    display: flex;
    align-items: center;
}
.employer-name-wrap h4 a {
    color: #1a1a2e;
    text-decoration: none;
    transition: color 0.2s;
}
.employer-name-wrap h4 a:hover {
    color: #016551;
}
.employer-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    margin-top: 0.3rem;
}
.employer-location,
.employer-size-text {
    font-size: 0.8rem;
    color: #6b7280;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}
.employer-location i,
.employer-size-text i {
    color: #016551;
    font-size: 0.7rem;
}
.employer-jobs-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.55rem;
}
.employer-jobs-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    background: #f0fdf7;
    color: #016551;
    font-size: 0.72rem;
    font-weight: 600;
    border: 1px solid #dcfce7;
    transition: all 0.2s;
}
.employer-jobs-tag:hover {
    background: #dcfce7;
}
.employer-jobs-tag.empty {
    background: #f3f4f6;
    color: #9ca3af;
    border-color: #e5e7eb;
}

/* Actions */
.employer-actions {
    flex-shrink: 0;
}
.btn-employer-view {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.55rem 1.1rem;
    border-radius: 10px;
    background: linear-gradient(135deg, #016551, #01a67c);
    color: #fff !important;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    white-space: nowrap;
}
.btn-employer-view:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(1,101,81,0.3);
    color: #fff !important;
}

/* Empty State */
.employer-empty-state {
    text-align: center;
    padding: 3rem 2rem;
    background: #fff;
    border-radius: 16px;
    border: 2px dashed #e5e7eb;
}
.employer-empty-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f0fdf7, #ecfdf5);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
    font-size: 2rem;
    color: #016551;
}
.employer-empty-state h5 {
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 0.4rem;
}
.employer-empty-state p {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 1.2rem;
}
.btn-outline-main {
    color: #016551;
    border: 1.5px solid #016551;
    border-radius: 8px;
    padding: 0.4rem 1rem;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s;
}
.btn-outline-main:hover {
    background: #016551;
    color: #fff;
}

/* === Pagination === */
.employer-pagination-wrap {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
}
.employer-pagination {
    gap: 0.3rem;
}
.employer-pagination .page-item .page-link {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1.5px solid #e5e7eb;
    color: #374151;
    font-size: 0.85rem;
    font-weight: 600;
    background: #fff;
    transition: all 0.25s ease;
    padding: 0;
}
.employer-pagination .page-item .page-link:hover {
    background: #f0fdf7;
    border-color: #016551;
    color: #016551;
}
.employer-pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #016551, #01a67c);
    border-color: #016551;
    color: #fff;
    box-shadow: 0 3px 10px rgba(1,101,81,0.2);
}
.employer-pagination .page-item.disabled .page-link {
    background: #f9fafb;
    color: #d1d5db;
    border-color: #f3f4f6;
}

/* === Loading === */
#employers-container.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Skeletons */
.skeleton-box {
    background-color: #e2e8f0;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}
.skeleton-box::after {
    content: "";
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    transform: translateX(-100%);
    background-image: linear-gradient(90deg, rgba(255,255,255,0) 0, rgba(255,255,255,0.2) 20%, rgba(255,255,255,0.5) 60%, rgba(255,255,255,0));
    animation: shimmer 2s infinite;
}
@keyframes shimmer {
    100% { transform: translateX(100%); }
}

/* === Mobile Filter Modal === */
#filterModal .modal-content {
    border-radius: 16px 16px 0 0;
    border: none;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.15);
}
#filterModal .modal-header {
    border-bottom: 1px solid #f0f0f0;
    padding: 1rem 1.25rem;
}
#filterModal .modal-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: #1a1a2e;
}
#filterModal .modal-body {
    padding: 1rem 1.25rem;
    max-height: 70vh;
    overflow-y: auto;
}
#filterModal .modal-body::-webkit-scrollbar { width: 4px; }
#filterModal .modal-body::-webkit-scrollbar-track { background: transparent; }
#filterModal .modal-body::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }
#filterModal .form-group { margin-bottom: 1.2rem; }
#filterModal .form-group label { font-weight: 600; font-size: 0.9rem; margin-bottom: 0.5rem; display: block; }
#filterModal .btn-apply-filters {
    width: 100%;
    padding: 0.85rem;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #016551, #01a67c);
    color: #fff;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}
#filterModal .btn-apply-filters:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(1,101,81,0.3);
}

/* === Responsive === */
@media (max-width: 991.98px) {
    .employer-list-section {
        padding: 1.5rem 0 2rem;
    }
    .employer-card-inner {
        flex-wrap: wrap;
    }
    .employer-actions {
        width: 100%;
        margin-top: 0.5rem;
    }
    .btn-employer-view {
        width: 100%;
        justify-content: center;
        padding: 0.65rem;
    }
}

@media (max-width: 767.98px) {
    .employer-list-section {
        padding: 1rem 0 1.5rem;
    }
    .employer-results-bar {
        flex-direction: column;
        align-items: flex-start;
        padding: 0.75rem 1rem;
    }
    .employer-results-actions {
        width: 100%;
        justify-content: space-between;
    }
    .employer-card {
        padding: 1rem;
        border-radius: 12px;
    }
    .employer-avatar {
        width: 50px;
        height: 50px;
        border-radius: 10px;
    }
    .employer-avatar-placeholder {
        font-size: 1.2rem;
    }
    .employer-verified-badge {
        width: 18px;
        height: 18px;
        font-size: 0.5rem;
    }
    .employer-name-wrap h4 {
        font-size: 0.9rem;
    }
    .employer-meta {
        gap: 0.3rem 0.6rem;
    }
    .employer-jobs-wrap {
        margin-top: 0.4rem;
    }
    .employer-pagination .page-item .page-link {
        width: 34px;
        height: 34px;
        font-size: 0.8rem;
    }
}

@media (max-width: 575.98px) {
    .employer-card-inner {
        gap: 0.85rem;
    }
    .employer-sort-group {
        flex: 1;
    }
    .employer-sort-select {
        flex: 1;
        min-width: 0 !important;
    }
    .page-title .ipt-title {
        font-size: 1.5rem !important;
    }
}

/* === Animations === */
@keyframes employerFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.employer-card {
    animation: employerFadeIn 0.4s ease forwards;
}
.employer-card:nth-child(2) { animation-delay: 0.05s; }
.employer-card:nth-child(3) { animation-delay: 0.1s; }
.employer-card:nth-child(4) { animation-delay: 0.15s; }
.employer-card:nth-child(5) { animation-delay: 0.2s; }
.employer-card:nth-child(6) { animation-delay: 0.25s; }
.employer-card:nth-child(7) { animation-delay: 0.3s; }
.employer-card:nth-child(8) { animation-delay: 0.35s; }
.employer-card:nth-child(9) { animation-delay: 0.4s; }
/* === SEO & FAQ Sections === */
.seo-content-wrap {
    max-width: 900px;
    margin: 0 auto;
}
.seo-content-wrap h2 {
    font-weight: 800;
    color: #1a1a2e;
    letter-spacing: -0.02em;
    font-size: 1.75rem;
}
.seo-text p {
    line-height: 1.8;
    margin-bottom: 1.2rem;
    font-size: 1rem;
}
.faq-section h3 {
    font-weight: 700;
    color: #1a1a2e;
    font-size: 1.5rem;
}
.faq-section .accordion-item {
    border: 1px solid #e8ecef !important;
    transition: all 0.3s ease;
}
.faq-section .accordion-item:hover {
    border-color: #016551 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(1,101,81,0.08) !important;
}
.faq-section .accordion-button {
    background: #fff;
    color: #1a1a2e;
    font-weight: 600;
    padding: 1.25rem 1.5rem;
    box-shadow: none !important;
    border-radius: 12px !important;
}
.faq-section .accordion-button:not(.collapsed) {
    color: #016551;
    background: #f0fdf7;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}
.faq-section .accordion-body {
    padding: 1.25rem 1.5rem;
    color: #4b5563;
    line-height: 1.7;
    font-size: 0.95rem;
}

@media (max-width: 767.98px) {
    .seo-content-wrap h2 { font-size: 1.5rem; }
    .faq-section h3 { font-size: 1.25rem; }
}
