:root {
    --primary-color: var(--portalThemeColor9);
    --secondary-color: var(--portalThemeColor1);
    --light-bg: var(--portalThemeColor3);
}

.job-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 20px;
    border: none;
    overflow: hidden;
    border-left: 4px solid var(--primary-color);
}

.job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.filter-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    padding: 20px;
    margin-top: 10px;
}

.job-type {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    background-color: var(--portalThemeColor12);
    color: white;
}

.job-department {
    color: var(--secondary-color);
    font-weight: 600;
}

@media (max-width: 768px) {
    /* .job-header {
        flex-direction: column;
        padding: 20px;
    } */
    
    .job-type-container {
        align-self: flex-start;
        margin-top: 0.5rem;
    }
}

#header-job-department {
    color: var(--light-bg);
}

.sort-controls {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.sort-btn {
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 8px 16px;
    margin-right: 10px;
    margin-bottom: 10px;
    background: white;
    transition: all 0.2s ease;
}

.sort-btn:hover,
.sort-btn.active {
    background-color: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

.no-jobs {
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.job-details-html {
    color: var(--portalThemeColor4);
    line-break: auto;
    line-height: normal;
    font-size: 16px;
}

.job-details-html>p {
    font-size: 16px;
}

.job-meta {
    color: #6c757d;
    font-size: 0.9rem;
}

.job-meta i {
    margin-right: 5px;
}

body {
    line-height: 1.6;
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary-color) !important;
}

.job-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a2530 100%);
    color: white;
    padding: 1rem 0;
    margin-bottom: 1rem;
}

.job-details-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    border: none;
    overflow: hidden;
    padding-bottom: 10px;
}

.job-info-sidebar {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    padding: 25px;
    position: sticky;
    top: 20px;
}

.info-item {
    border-bottom: 1px solid #eee;
    padding-top: 10px;
    padding-bottom: 10px;
}

.info-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.info-label {
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.back-btn {
    color: var(--light-bg);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    margin-bottom: 20px;
    transition: color 0.3s ease;
}

.back-btn:hover {
    color: #2980b9;
}

.section-title {
    color: var(--primary-color);
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-weight: bold;
}

.requirements-list,
.responsibilities-list {
    padding-left: 20px;
}

.requirements-list li,
.responsibilities-list li {
    margin-bottom: 10px;
}

.footer {
    background-color: var(--primary-color);
    color: white;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.benefit-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-5px);
}

.benefit-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.share-buttons {
    display: flex;
    gap: 12px;
    margin-top: 30px;
    justify-content: flex-end;
}

.share-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.share-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.5);
}

.share-btn i {
    font-size: 1.2rem;
}

.related-jobs {
    margin-top: 60px;
}

.related-job-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    padding: 20px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
    border-left: 4px solid var(--secondary-color);
}

.related-job-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Language Dropdown Styles */
.language-dropdown {
    margin-left: 15px;
}

.language-dropdown .dropdown-toggle {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 4px;
    padding: 6px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.language-dropdown .dropdown-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
}

.language-dropdown .dropdown-menu {
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 8px;
    min-width: 140px;
}

.language-dropdown .dropdown-item {
    border-radius: 4px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
}

.language-dropdown .dropdown-item:hover {
    background-color: var(--light-bg);
    color: var(--primary-color);
}

.language-dropdown .dropdown-item.active {
    background-color: var(--secondary-color);
    color: white;
}

.language-flag {
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
}

/* For mobile view */
@media (max-width: 991.98px) {
    .language-dropdown {
        margin-left: 0;
        margin-top: 10px;
        width: 100%;
    }

    .language-dropdown .dropdown-toggle {
        width: 100%;
        justify-content: center;
    }

    .navbar-nav {
        align-items: flex-start;
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.no-results-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.no-results-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    padding: 50px 40px;
    text-align: center;
    max-width: 600px;
    width: 100%;
    border-top: 4px solid var(--secondary-color);
}

.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

.btn-primary-custom {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    padding: 10px 25px;
    font-weight: 600;
    color: var(--light-bg);
}

.btn-primary-custom:hover {
    background-color: #2980b9;
    border-color: #2980b9;
    transform: translateY(-2px);
}

.btn-outline-custom {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    padding: 10px 25px;
    font-weight: 600;
}

.btn-outline-custom:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
}

.icon-container {
    font-size: 4rem;
    color: #6c757d;
    margin-bottom: 25px;
}

@media (max-width: 768px) {
    .no-results-card {
        padding: 30px 20px;
    }

    .action-buttons {
        flex-direction: column;
        align-items: center;
    }

    .action-buttons .btn {
        width: 100%;
        max-width: 250px;
    }
}

/* Corporate Websites Section Styles */
.corporate-websites-section {
    background-color: #f8f9fa;
    padding: 60px 0;
}

.company-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.company-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.company-logo-full {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.company-card:hover .company-logo-full {
    transform: scale(1.05);
}

.company-name-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    padding: 30px 20px 20px;
    border-radius: 0 0 10px 10px;
}

.company-name {
    font-weight: 600;
    color: white !important;
    font-size: 1.3rem;
    margin-bottom: 0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.company-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.company-link:hover {
    color: inherit;
    text-decoration: none;
}

/* Cookie Notification */
.cookie-notification {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--primary-color);
    color: white;
    padding: 15px 0;
    z-index: 1050;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-notification.show {
    transform: translateY(0);
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cookie-text {
    flex: 1;
    margin-right: 20px;
}

.cookie-close {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 4px;
    padding: 6px 12px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cookie-close:hover {
    background: var();
    border-color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 991.98px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-text {
        margin-right: 0;
        margin-bottom: 10px;
    }
}


.bg-custom-primary {
    background-color: var(--primary-color);
}

.text-custom-primary {
    color: var(--primary-color);
}

.btn-custom-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-custom-primary:hover {
    background-color: var(--primary-dark);
    color: white;
}

.legal-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1589829545856-d10d557cf95f?ixlib=rb-4.0.3&auto=format&fit=crop&w=1500&q=80');
    background-size: cover;
    background-position: center;
}

/* Legal Cards */
.legal-card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    overflow: hidden;
}

.legal-card-header {
    background-color: white;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 20px 25px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.legal-card-header:hover {
    background-color: #f8f9fa;
}

.legal-card-header h3 {
    margin: 0;
    font-size: 1.3rem;
    color: var(--primary-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.legal-card-header .toggle-icon {
    transition: transform 0.3s ease;
}

.legal-card-header[aria-expanded="true"] .toggle-icon {
    transform: rotate(180deg);
}

.legal-card-body {
    padding: 25px;
}

.legal-section {
    margin-bottom: 30px;
}

.legal-section:last-child {
    margin-bottom: 0;
}

.legal-section h4 {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.legal-section p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.legal-section ul {
    margin-bottom: 15px;
    padding-left: 20px;
}

.legal-section li {
    margin-bottom: 8px;
}

.back-to-careers {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 30px;
    transition: color 0.3s ease;
}

.back-to-careers:hover {
    color: var(--primary-dark);
}

.back-to-careers i {
    margin-right: 8px;
}

.quick-links {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
}

.quick-links h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.quick-link-btn {
    display: block;
    width: 100%;
    text-align: left;
    margin-bottom: 10px;
    padding: 12px 15px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    background: white;
    color: var(--dark);
    text-decoration: none;
    transition: all 0.3s ease;
}

.quick-link-btn:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.quick-link-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}
