/* Root Variables */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --white-color: #ffffff;
    --border-radius: 8px;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

    a:hover {
        color: var(--dark-color);
    }

/* Navbar Styles */
.navbar {
    box-shadow: var(--box-shadow);
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--white-color) !important;
}

.navbar-brand i {
    margin-right: 8px;
}

.nav-link {
    font-weight: 500;
    margin: 0 10px;
     color: rgba(0, 46, 172, 0.65) !important;
}

.nav-link:hover {
    color: var(--white-color) !important;
}

/* Hero Section */
.hero-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
}

    .hero-section h1 {
        font-size: 3rem;
        font-weight: 700;
        margin-bottom: 1rem;
    }

    .hero-section p {
        font-size: 1.25rem;
        margin-bottom: 2rem;
    }

    .hero-section .input-group-lg input {
        height: 60px;
        border-radius: var(--border-radius) 0 0 var(--border-radius);
    }

    .hero-section .input-group-lg button {
        height: 60px;
        padding: 0 30px;
        border-radius: 0 var(--border-radius) var(--border-radius) 0;
    }

/* Category Cards */
.category-card {
    transition: var(--transition);
    cursor: pointer;
    border-radius: var(--border-radius);
    padding: 20px;
    text-align: center;
}

    .category-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--box-shadow);
    }

    .category-card i {
        font-size: 3rem;
        margin-bottom: 15px;
    }

    .category-card h5 {
        font-weight: 600;
        color: var(--dark-color);
    }

/* Job Cards */
.job-card {
    border-radius: var(--border-radius);
    transition: var(--transition);
    border: 1px solid #e0e0e0;
    overflow: hidden;
}

    .job-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    }

    .job-card .card-img-top {
        height: 100px;
        object-fit: contain;
        padding: 15px;
        background-color: var(--white-color);
    }

    .job-card .card-body {
        padding: 20px;
    }

    .job-card .badge {
        padding: 5px 10px;
        font-size: 0.85rem;
    }

    .job-card .card-title {
        font-size: 1.1rem;
        font-weight: 600;
        margin-bottom: 10px;
        color: var(--dark-color);
    }

        .job-card .card-title a {
            color: var(--dark-color);
        }

            .job-card .card-title a:hover {
                color: var(--primary-color);
            }

    .job-card .text-muted {
        font-size: 0.9rem;
        margin-bottom: 5px;
    }

        .job-card .text-muted i {
            margin-right: 5px;
        }

    .job-card .card-footer {
        background-color: transparent;
        padding: 15px 20px;
    }

    /* Featured Job Badge */
    .job-card.featured {
        border: 2px solid var(--warning-color);
    }

        .job-card.featured .card-header {
            background-color: var(--warning-color);
            color: var(--dark-color);
            font-weight: bold;
            padding: 5px 10px;
            text-align: center;
        }

/* Search Bar */
.search-box {
    background-color: var(--white-color);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    margin-bottom: 30px;
}

    .search-box .form-control,
    .search-box .form-select {
        height: 50px;
        border-radius: var(--border-radius);
    }

/* Filter Sidebar */
.filter-sidebar {
    background-color: var(--white-color);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--box-shadow);
}

    .filter-sidebar h5 {
        font-weight: 600;
        margin-bottom: 15px;
        padding-bottom: 10px;
        border-bottom: 2px solid var(--light-color);
    }

    .filter-sidebar .form-check {
        margin-bottom: 10px;
    }

/* Pagination */
.pagination {
    margin-top: 30px;
}

    .pagination .page-link {
        border-radius: var(--border-radius);
        margin: 0 3px;
        border: 1px solid #dee2e6;
    }

    .pagination .page-item.active .page-link {
        background-color: var(--primary-color);
        border-color: var(--primary-color);
    }

/* Breadcrumb */
.breadcrumb-nav {
    background: #FFFFFF;
    padding: 12px 0;
    border-bottom: 1px solid #F7F5F2;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
    list-style: none;
    align-items: center;
    background: transparent;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

    .breadcrumb-item a {
        color: #4A4A5A;
        text-decoration: none;
        display: flex;
        align-items: center;
        gap: 5px;
        transition: color 0.2s;
    }

        .breadcrumb-item a:hover {
            color: #FF6B35;
        }

        .breadcrumb-item a i {
            color: #FF6B35;
        }

    .breadcrumb-item.active {
        color: #1A1A2E;
        font-weight: 500;
    }

/* Stats Section */
.stats-section {
    padding: 60px 0;
}

    .stats-section i {
        font-size: 3rem;
        margin-bottom: 15px;
    }

    .stats-section h3 {
        font-size: 2.5rem;
        font-weight: 700;
        margin-bottom: 5px;
    }

/* Footer */
footer {
    padding: 40px 0 20px;
    margin-top: 50px;
}

    footer h5 {
        font-weight: 600;
        margin-bottom: 20px;
    }

    footer ul {
        list-style: none;
        padding: 0;
    }

        footer ul li {
            margin-bottom: 10px;
        }

    footer a {
        color: rgba(255, 255, 255, 0.7);
    }

        footer a:hover {
            color: var(--white-color);
        }

    footer .input-group {
        margin-top: 15px;
    }

/* Exam Card */
.exam-card {
    border-radius: var(--border-radius);
    border: 1px solid #e0e0e0;
    padding: 20px;
    margin-bottom: 20px;
    transition: var(--transition);
}

    .exam-card:hover {
        box-shadow: var(--box-shadow);
    }

    .exam-card h5 {
        font-weight: 600;
        margin-bottom: 10px;
    }

    .exam-card .badge {
        margin-right: 5px;
    }

/* Material Card */
.material-card {
    border-radius: var(--border-radius);
    border: 1px solid #e0e0e0;
    padding: 20px;
    margin-bottom: 20px;
}

    .material-card .material-icon {
        font-size: 2.5rem;
        margin-bottom: 15px;
        color: var(--primary-color);
    }

/* Buttons */
.btn {
    border-radius: var(--border-radius);
    padding: 10px 25px;
    font-weight: 500;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

    .btn-primary:hover {
        background-color: #0a58ca;
        border-color: #0a58ca;
        transform: translateY(-2px);
    }

.btn-lg {
    padding: 12px 30px;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 5px 15px;
    font-size: 0.875rem;
}

/* Loading Spinner */
.loading-spinner {
    text-align: center;
    padding: 50px 0;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Alerts */
.alert {
    border-radius: var(--border-radius);
    border: none;
    padding: 15px 20px;
}

.alert-dismissible .btn-close {
    padding: 15px 20px;
}

/* Forms */
.form-control,
.form-select {
    border-radius: var(--border-radius);
    border: 1px solid #ced4da;
    padding: 10px 15px;
}

    .form-control:focus,
    .form-select:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
    }

.form-label {
    font-weight: 500;
    margin-bottom: 8px;
}

/* Modal */
.modal-content {
    border-radius: var(--border-radius);
    border: none;
    box-shadow: var(--box-shadow);
}

.modal-header {
    border-bottom: 1px solid var(--light-color);
    padding: 20px;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    border-top: 1px solid var(--light-color);
    padding: 15px 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

    .category-card {
        margin-bottom: 15px;
    }

    .job-card {
        margin-bottom: 20px;
    }
}

/* Utilities */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.text-truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.shadow-sm-hover:hover {
    box-shadow: var(--box-shadow) !important;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--primary-color);
    color: var(--white-color);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: none;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1000;
    transition: var(--transition);
}

    .scroll-to-top:hover {
        background-color: var(--dark-color);
        transform: translateY(-5px);
    }

    .scroll-to-top.show {
        display: flex;
    }



/* ===== GLOBAL TABLE STYLING FOR ALL JOB CONTENT ===== */

/* Target any div that might contain job content */
[class*="job-"] table,
.content-wrapper table,
.tinymce-content table {
    border-collapse: collapse;
    width: 100%;
    margin: 20px 0;
    border: 1px solid #ddd;
    background-color: #fff;
}

    [class*="job-"] table td,
    [class*="job-"] table th,
    .content-wrapper table td,
    .content-wrapper table th,
    .tinymce-content table td,
    .tinymce-content table th {
        border: 1px solid #ddd;
        padding: 12px;
        text-align: left;
        vertical-align: top;
    }

    [class*="job-"] table th,
    .content-wrapper table th,
    .tinymce-content table th {
        background-color: #667eea;
        color: white;
        font-weight: 600;
    }

    [class*="job-"] table tr:nth-child(even),
    .content-wrapper table tr:nth-child(even),
    .tinymce-content table tr:nth-child(even) {
        background-color: #f9f9f9;
    }

    [class*="job-"] table tr:hover,
    .content-wrapper table tr:hover,
    .tinymce-content table tr:hover {
        background-color: #f5f5f5;
    }