:root {
    --primary-1000: #0d2d5e;
    --primary-900: #164081;
    --primary-800: #2557a7;
    --primary-700: #3f73d3;
    --primary-600: #6792f0;
    --neutral-1000: #2d2d2d;
    --neutral-900: #424242;
    --neutral-400: #d4d2d0;
    --dark-1000: #040606;
    
    --primary: var(--primary-1000);
    --secondary: #4a90e2;
    --accent: var(--primary-700);
    --highlight: var(--primary-600);
    --text: var(--neutral-1000);
    --text-light: #ffffff;
    --bg-light: #f8f9fb;
    --border-color: var(--neutral-400);
    --filter-border: #e0e0e0;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.7;
    color: var(--text);
    background: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main[role="main"] {
    flex: 1;
}

header {
    background: var(--primary-1000);
    color: white;
    padding: 0;
    position: relative;
    width: 100%;
    z-index: 1000;
    overflow: visible;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 3px solid var(--primary-600);
}

header h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    letter-spacing: -0.025em;
}

.burger {
    display: none;
    font-size: 1.5rem;
    background: none;
    color: white;
    border: none;
    cursor: pointer;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: background-color 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

nav.main-nav {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    align-items: center;
}

nav.main-nav ul {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    list-style: none;
}

nav.main-nav li {
    margin: 0;
    padding: 0;
}

nav.main-nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.65rem 1.25rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
    display: block;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

nav.main-nav a:hover {
    background: var(--primary-600);
    color: white;
    border-color: var(--primary-600);
}

nav.main-nav a.active {
    background: var(--primary-600);
    color: white;
    font-weight: 600;
    border-color: var(--primary-600);
}

nav.breadcrumbs {
    max-width: 1200px;
    margin: 1.25rem auto;
    padding: 0.85rem 1.25rem;
    font-size: 0.9rem;
    color: var(--text);
    background: var(--bg-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid var(--border-color);
}

nav.breadcrumbs a {
    color: var(--primary-800);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav.breadcrumbs a:hover {
    color: var(--primary-600);
    text-decoration: underline;
}

nav.breadcrumbs span {
    color: var(--text);
    font-weight: 600;
}

.hero {
    background: linear-gradient(135deg, var(--primary-900) 0%, var(--primary-700) 100%);
    color: white;
    padding: 4rem 1.5rem;
    text-align: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><path d="M50 10 L90 50 L50 90 L10 50 Z" fill="rgba(255,255,255,0.03)"/></svg>') repeat;
    opacity: 0.5;
}

.hero > * {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

section {
    padding: 3rem 1.5rem;
    max-width: 1200px;
    margin: auto;
}

section h2 {
    color: var(--primary-1000);
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.75rem;
}

.card {
    border: 1px solid var(--border-color);
    padding: 1.75rem;
    border-radius: 12px;
    text-align: center;
    background: white;
    transition: all 0.3s ease;
}

.card:hover {
    border-color: var(--primary-600);
}

.card h3 {
    color: var(--primary-900);
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.card p {
    color: var(--neutral-900);
    line-height: 1.6;
}

.carousel {
    overflow-x: auto;
    white-space: nowrap;
    padding: 1.5rem;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-600) var(--bg-light);
}

.carousel-item {
    display: inline-block;
    margin-right: 1.5rem;
    width: 240px;
}

.carousel-item.card {
    background: linear-gradient(135deg, var(--primary-900) 0%, var(--primary-800) 100%);
    color: var(--text-light);
    border: 1px solid var(--primary-800);
}

.carousel-item.card h3 {
    color: var(--text-light);
    margin: 0 0 1rem 0;
}

.carousel-item.card:hover {
    background: linear-gradient(135deg, var(--primary-800) 0%, var(--primary-700) 100%);
}

.faq details {
    margin-bottom: 1.25rem;
    background: var(--bg-light);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.faq summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--primary-900);
    padding: 0.5rem;
}

.faq details[open] summary {
    color: var(--primary-600);
    margin-bottom: 0.75rem;
}

.form-container {
    max-width: 700px;
    margin: auto;
    padding: 2.5rem;
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.form-container label {
    display: block;
    margin: 0.1rem 0 0.6rem 0;
    font-weight: 600;
    font-size: 1rem;
    color: var(--neutral-1000);
    text-align: left;
}

.form-container input,
.form-container select,
.form-container textarea,
.form-container input[type="file"] {
    width: 100%;
    padding: 0.85rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    background: #fff;
    transition: all 0.3s ease;
}

.form-container input:focus,
.form-container select:focus,
.form-container textarea:focus {
    border-color: var(--primary-600);
    outline: none;
}

.form-container button {
    background: var(--primary-600);
    color: white;
    padding: 0.95rem 2rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
}

.form-container button:hover {
    background: var(--primary-700);
}

.content {
    max-width: 900px;
    margin: auto;
    padding: 2rem 1.5rem;
}

.content h2 {
    color: var(--primary-900);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.content h3 {
    color: var(--primary-800);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

footer {
    background: var(--primary-1000);
    color: white;
    padding: 2.5rem 1.5rem;
    text-align: center;
    border-top: 3px solid var(--primary-600);
}

footer nav ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin: 1.25rem 0 0 0;
    padding: 0;
    list-style: none;
}

footer nav li {
    margin: 0;
    padding: 0;
}

footer a {
    color: var(--primary-600);
    text-decoration: none;
    margin: 0 0.5rem;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    display: block;
    padding: 0.25rem 0;
}

footer a:hover {
    color: white;
    text-decoration: underline;
}

a {
    color: var(--primary-800);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-600);
}

.cta {
    background: var(--primary-600);
    color: var(--text-light);
    padding: 0.85rem 1.75rem;
    border-radius: 8px;
    display: inline-block;
    transition: all 0.3s ease;
    text-decoration: none;
    font-weight: 600;
}

.cta:hover {
    background: var(--primary-700);
    color: var(--text-light);
}

.required::after {
    content: '*';
    color: #dc2626;
    margin-left: 0.25rem;
}

@media (max-width: 768px) {
    .burger {
        display: flex;
    }

    .burger:hover {
        background: rgba(255, 255, 255, 0.1);
    }

    nav.main-nav {
        display: none !important;
        flex-direction: column;
        background: var(--primary-1000);
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        text-align: center;
        padding: 1rem 0;
    }

    nav.main-nav.show {
        display: flex !important;
    }

    nav.main-nav ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    nav.main-nav a {
        padding: 1rem;
    }
    
    nav.breadcrumbs {
        flex-direction: row;
        align-items: center;
        font-size: 0.85rem;
        gap: 0.3rem;
        flex-wrap: wrap;
    }

    nav.breadcrumbs a,
    nav.breadcrumbs span {
        white-space: nowrap;
    }

    .hero {
        padding: 2.5rem 1rem;
    }

    .hero h1 {
        font-size: 1.85rem;
    }

    .form-container {
        padding: 1.75rem;
    }

    .form-container label {
        font-size: 0.95rem;
        margin: 0.1rem 0 0.6rem 0;
        text-align: left;
    }

    .form-container input,
    .form-container select,
    .form-container textarea,
    .form-container input[type="file"] {
        padding: 0.75rem;
        margin-bottom: 1.25rem;
    }

    footer nav ul {
        flex-direction: column;
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    nav.main-nav a {
        padding: 0.75rem;
        font-size: 0.9rem;
    }

    nav.breadcrumbs {
        padding: 0.65rem;
        font-size: 0.8rem;
        gap: 0.25rem;
    }

    nav.breadcrumbs a,
    nav.breadcrumbs span {
        font-size: 0.8rem;
    }

    section {
        padding: 2rem 1rem;
    }

    .form-container label {
        font-size: 0.9rem;
        text-align: left;
    }

    footer nav ul {
        gap: 0.5rem;
    }

    footer a {
        font-size: 0.85rem;
    }
}

.post-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
    margin-bottom: 1rem;
    display: block;
    transition: transform 0.3s ease;
}


@media (max-width: 768px) {
    .post-thumbnail {
        height: 160px;
    }
}

@media (max-width: 480px) {
    .post-thumbnail {
        height: 140px;
    }
}

.post-image-wrapper {
    text-align: center;
    margin-bottom: 2rem;
}

.post-image-wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, var(--primary-1000) 0%, var(--primary-900) 100%);
    color: white;
    padding: 1.25rem 1.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 99999;
    font-size: 14px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    box-sizing: border-box;
    border-top: 2px solid var(--primary-600);
}

#cookie-banner span {
    max-width: 80%;
    word-wrap: break-word;
}

#cookie-banner .cookie-link {
    color: var(--primary-600);
    text-decoration: underline;
    font-weight: 500;
}

#cookie-banner button#accept-cookies {
    background-color: var(--primary-600);
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    margin-left: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

#cookie-banner button#accept-cookies:hover {
    background-color: var(--primary-700);
}

@media (max-width: 768px) {
    #cookie-banner {
        padding: 1rem 1.25rem;
        font-size: 13px;
        flex-direction: column;
        align-items: flex-start;
    }

    #cookie-banner button#accept-cookies {
        margin-left: 0;
        margin-top: 1rem;
        width: 100%;
        padding: 12px 0;
    }

    #cookie-banner span {
        max-width: 100%;
        text-align: center;
    }
}

.message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    font-size: 14px;
}

.message.success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.message.error {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

.hidden {
    display: none;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hidden { display: none !important; }

.error-message {
    color: #d32f2f;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

input.error, select.error, textarea.error {
    border-color: #d32f2f !important;
}

.loading {
    opacity: 0.6;
    pointer-events: none;
}

#form-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 45, 94, 0.5);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
}

#form-overlay .loader {
    border: 6px solid #f3f3f3;
    border-top: 6px solid var(--primary-600);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

#form-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    z-index: 9999;
    max-width: 450px;
    text-align: center;
    border: 1px solid var(--border-color);
}

#form-modal-message {
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
    color: var(--neutral-1000);
}

#form-modal button {
    background: var(--primary-600);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

#form-modal button:hover {
    background: var(--primary-700);
    transform: translateY(-1px);
}

.pagination {
    margin: 2.5rem 0;
    text-align: center;
}

.pagination__controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pagination__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.75rem;
    height: 2.75rem;
    padding: 0 1rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--primary-900);
    background: white;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.pagination__button:hover:not(.pagination__button--disabled):not(.pagination__button--active) {
    background: var(--primary-600);
    color: white;
    border-color: var(--primary-600);
    transform: translateY(-2px);
}

.pagination__button--active {
    color: white;
    background: var(--primary-800);
    border-color: var(--primary-800);
    cursor: default;
    text-decoration: none;
    font-weight: 600;
}

.pagination__button--disabled {
    color: #999;
    border-color: var(--border-color);
    background: #f5f5f5;
    cursor: not-allowed;
    text-decoration: none;
}

.pagination__button--prev,
.pagination__button--next {
    padding: 0 1.5rem;
    font-weight: 600;
}

.pagination__button:focus {
    outline: 2px solid var(--primary-600);
    outline-offset: 2px;
    text-decoration: none;
}

@media (max-width: 768px) {
    .pagination__button {
        min-width: 2.25rem;
        height: 2.25rem;
        font-size: 0.9rem;
    }

    .pagination__button--prev,
    .pagination__button--next {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .pagination__controls {
        gap: 0.35rem;
    }

    .pagination__button {
        min-width: 2rem;
        height: 2rem;
        font-size: 0.85rem;
    }
}

section h1,
article h1,
aside h1,
nav h1 {
    font-size: 2.25rem;
    line-height: 1.3;
    font-weight: 700;
    margin: 0 0 1.25rem;
    color: var(--primary-1000);
}

strong {
    color: var(--primary-900);
    font-weight: 600;
}

.job-count {
    color: var(--primary-700);
    font-weight: 500;
    font-size: 0.95rem;
}

















.filter-container {
    max-width: 900px; 
    margin: 2.5rem auto 0; 
    padding: 0 1rem; 
}


.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    line-height: normal;
}

.custom-select-wrapper {
    position: relative;
    text-align: left;
}

.custom-select-label {
    display: block;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.custom-select {
    position: relative;
    width: 100%;
}

.select-trigger {
    background: white;
    border: 2px solid var(--filter-border);
    border-radius: 12px;
    padding: 1rem 3rem 1rem 1.25rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 3.5rem;
}

.select-trigger:hover {
    border-color: var(--secondary);
}

.select-trigger.active {
    border-color: var(--secondary);
}

.select-trigger-text {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #1f2937;
}

.select-trigger-text.placeholder {
    color: #999;
    font-weight: 500;
}

.select-arrow {
    position: absolute;
    right: 1.25rem;
    top: 50%;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid var(--primary);
    transition: transform 0.3s ease;
    pointer-events: none;
}

.select-trigger.active .select-arrow {
    transform: translateY(-50%) rotate(180deg);
}

.select-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: white;
    border: 2px solid var(--secondary);
    border-radius: 12px;
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
    display: none;
}

.select-dropdown.show {
    display: block;
    animation: dropdownFade 0.3s ease;
}

@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.select-search {
    padding: 1rem;
    border-bottom: 2px solid var(--filter-border);
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
}

.select-search input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--filter-border);
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
}

.select-search input:focus {
    outline: none;
    border-color: var(--secondary);
}

.select-options {
    padding: 0.5rem;
    color: var(--text);
}

.select-group {
    margin-bottom: 0.5rem;
}

.select-group-title {
    padding: 0.75rem 1rem;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--bg-light);
    border-radius: 6px;
    margin-bottom: 0.25rem;
}

.select-option {
    padding: 0.85rem 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

.select-option:hover {
    background: var(--bg-light);
}

.select-option.selected {
    background: rgba(252, 163, 17, 0.1);
    color: var(--primary);
    font-weight: 700;
}

.select-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid var(--filter-border);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.select-option.selected .select-checkbox {
    background: var(--secondary);
    border-color: var(--secondary);
}

.select-checkbox::after {
    content: '\2713';
    opacity: 0;
    font-size: 12px;
    font-weight: bold;
    color: white;
}

.select-option.selected .select-checkbox::after {
    opacity: 1;
}

.selected-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
    min-height: 2rem;
}

.tag {
    background: var(--secondary);
    color: var(--primary);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    animation: tagFade 0.3s ease;
}

@keyframes tagFade {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.tag-remove {
    cursor: pointer;
    font-weight: 900;
    font-size: 1.1rem;
    line-height: 1;
}


.clear-all {
    background: none;
    border: 2px solid var(--accent);
    color: var(--accent);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.clear-all:hover {
    background: var(--accent);
    color: white;
}

.filter-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    /* margin-top: 2rem; */
}

.btn-filter {
    background: var(--secondary);
    color: var(--text-light);
    padding: 1rem 3rem;
    border: none;
    border-radius: 8px;
    font-weight: 800;
    font-size: 1.1rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-filter:hover {
    background:  #aa181d;
}

.specialty-cascade {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cascade-step {
    padding: 0.75rem 1rem;
    background: var(--bg-light);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    border-left: 4px solid var(--secondary);
}

.cascade-step.disabled {
    opacity: 0.5;
    border-left-color: #ccc;
}

@media (max-width: 768px) {
    .filter-grid {
        grid-template-columns: 1fr;
    }

    .filter-header h1 {
        font-size: 2rem;
    }
}

.select-navigation {
    padding: 1rem;
    border-bottom: 2px solid var(--filter-border);
    background: white;
    position: sticky;
    top: 0;
    z-index: 11;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.back-button {
    background: var(--bg-light);
    border: 2px solid var(--filter-border);
    border-radius: 6px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.back-button:hover {
    background: var(--secondary);
    border-color: var(--secondary);

}

.back-arrow {
    font-size: 1.2rem;
    font-weight: 700;
}

.filter-breadcrumbs {
    flex: 1;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    padding: 0.5rem;
    background: var(--bg-light);
    border-radius: 6px;
}

/* Job Direct Apply Enhancements */
html {
    scroll-behavior: smooth;
}

.job-details-section {
    background: transparent;
}

.job-details-card {
    background: linear-gradient(180deg, #ffffff 0%, #f7fcff 100%);
    border: 1px solid #d8edf6;
    border-radius: 22px;
    padding: 2rem;
    box-shadow: 0 14px 30px rgba(2, 37, 52, 0.08);
}

.job-details-head h2 {
    margin: 0;
    color: var(--primary);
}

.job-details-head p {
    margin: 0.65rem 0 0 0;
    color: #446677;
}

.job-kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
    margin-top: 1.4rem;
}

.job-kpi {
    padding: 1rem;
    border-radius: 14px;
    border: 1px solid #c5e7f3;
    background: #eefdff;
    text-align: left;
}

.job-kpi-label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    color: #3a6880;
    margin-bottom: 0.4rem;
}

.job-kpi-value {
    display: block;
    color: #0d3f53;
    font-size: 1.05rem;
    line-height: 1.35;
}

.job-facts-grid {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.job-fact {
    border: 1px solid #e1edf3;
    border-radius: 12px;
    padding: 0.85rem 0.95rem;
    background: #ffffff;
}

.job-fact span {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #5d7a88;
    margin-bottom: 0.35rem;
}

.job-fact strong {
    color: #183846;
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.35;
}

.job-description {
    margin-top: 1rem;
    padding: 1rem 1.05rem;
    border: 1px solid #e1edf3;
    border-radius: 14px;
    background: #ffffff;
}

.job-description h3 {
    margin: 0 0 0.7rem 0;
    color: var(--primary);
    font-size: 1.15rem;
}

.job-description-body {
    color: #203f4d;
    line-height: 1.7;
}

.job-description-body p:first-child {
    margin-top: 0;
}
.job-description-body h2,
.job-description-body h3,
.job-description-body h4 {
    color: var(--primary);
    border-left: none;
    padding-left: 0;
    margin-top: 1.3rem;
    margin-bottom: 0.45rem;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.35;
}

.job-description-body h2 {
    font-size: 1.15rem;
}

.job-description-body h3 {
    font-size: 1.05rem;
}

.job-description-body h4 {
    font-size: 0.98rem;
    font-weight: 600;
}

.job-description-body p {
    margin: 0 0 0.75rem;
}

.job-description-body ul,
.job-description-body ol {
    margin: 0.4rem 0 0.9rem;
    padding-left: 1.6rem;
}

.job-description-body li {
    margin-bottom: 0.3rem;
    line-height: 1.6;
}


.direct-apply-section {
    background: transparent;
    padding-top: 1rem;
}

#direct-apply {
    scroll-margin-top: 24px;
}

.direct-apply-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fdff 100%);
    border: 1px solid #d6eef6;
    border-radius: 22px;
    padding: 2rem;
    box-shadow: 0 12px 30px rgba(2, 37, 52, 0.08);
}

.direct-apply-header h2 {
    margin: 0 0 0.5rem 0;
    color: var(--primary);
}

.direct-apply-header p {
    margin: 0 0 1.25rem 0;
    color: #35576a;
}

.direct-apply-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.4rem;
}

.direct-apply-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.4rem 0.8rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: #05546e;
    background: #e8f7fc;
    border: 1px solid #bee5f2;
}

.direct-apply-form {
    margin: 0;
}

.direct-apply-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem 1rem;
}

.direct-apply-field label {
    display: block;
    margin: 0.1rem 0 0.5rem 0;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--primary);
    text-align: left;
}

.direct-apply-field input {
    width: 100%;
    padding: 0.95rem 1rem;
    margin: 0;
    border: 2px solid #dce8ef;
    border-radius: 12px;
    font-size: 1rem;
    background: #ffffff;
    transition: all 0.2s ease;
}

.direct-apply-field input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(4, 107, 138, 0.12);
}

.direct-apply-form button {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 1.2rem;
}

.direct-apply-form button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(4, 107, 138, 0.25);
}

.direct-apply-note {
    margin: 0.8rem 0 0 0;
    font-size: 0.86rem;
    color: #5a7383;
    text-align: center;
}

@media (max-width: 768px) {
    .job-details-card {
        padding: 1.35rem;
    }

    .job-kpi-grid {
        grid-template-columns: 1fr;
        gap: 0.7rem;
    }

    .job-facts-grid {
        grid-template-columns: 1fr;
        gap: 0.65rem;
    }

    .direct-apply-card {
        padding: 1.35rem;
    }

    .direct-apply-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .job-details-card {
        padding: 1rem;
        border-radius: 16px;
    }

    .direct-apply-card {
        padding: 1rem;
        border-radius: 16px;
    }

    .direct-apply-chip {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}

/* Job Apply Theme Override */
.job-details-card,
.direct-apply-card {
    background: linear-gradient(180deg, #ffffff 0%, var(--bg-light, #f8fafc) 100%);
    border: 1px solid rgba(15, 23, 42, 0.12);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.job-details-head h2,
.job-description h3,
.direct-apply-header h2,
.job-kpi-value,
.job-fact strong,
.direct-apply-chip,
.direct-apply-field label {
    color: var(--primary);
}

.job-details-head p,
.job-description-body,
.direct-apply-header p,
.direct-apply-note,
.job-fact span,
.job-kpi-label {
    color: var(--text, #1f2937);
}

.job-kpi,
.job-fact,
.job-description,
.direct-apply-field input {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.12);
}

.direct-apply-chip {
    background: var(--accent, #eef2ff);
    border: 1px solid rgba(15, 23, 42, 0.12);
}

.direct-apply-field input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.12);
}

.direct-apply-form button {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

/* Direct Apply Chip Theme Variant: indi */
.direct-apply-chip {
    border-radius: 8px;
    padding: 0.45rem 0.9rem 0.45rem 0.75rem;
    border: 2px solid var(--secondary);
    background: rgba(74, 144, 226, 0.1);
    text-transform: none;
    letter-spacing: 0.01em;
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--primary);
    box-shadow: 0 2px 5px rgba(74, 144, 226, 0.15);
}

.direct-apply-chip::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--secondary);
    margin-right: 0.45rem;
    flex-shrink: 0;
}

.direct-apply-header {
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 1.25rem;
}

.direct-apply-header p {
    margin: 0.4rem 0 0 0;
}
/* End Direct Apply Chip Theme Variant */

/* ------------------------------
   Blog Refresh
   ------------------------------ */
.blog-hub {
    background: linear-gradient(145deg, #ffffff, #f6fbff);
    border: 1px solid #d9ebf5;
    border-radius: 24px;
    padding: 2rem;
    margin-top: 1rem;
}

.blog-hub__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.6rem;
}

.blog-hub__header h2 {
    margin: 0;
    color: var(--primary);
    font-size: 1.9rem;
    line-height: 1.2;
}

.blog-hub__header p {
    margin: 0.65rem 0 0;
    color: #375060;
    max-width: 760px;
}

.blog-hub__stats {
    display: flex;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.blog-pill {
    background: #e8f7ff;
    color: #0f5f78;
    border: 1px solid #bfe9fb;
    border-radius: 999px;
    padding: 0.42rem 0.8rem;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
}

.blog-pill--muted {
    background: #f3f8fb;
    border-color: #d8e5ec;
    color: #486073;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.35rem;
}

.blog-card {
    background: #ffffff;
    border: 1px solid #d8eaf4;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 26px rgba(8, 76, 98, 0.08);
    display: flex;
    flex-direction: column;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 34px rgba(8, 76, 98, 0.14);
}

.blog-card__media-link,
.blog-card__media-link:focus {
    display: block;
    outline: none;
}

.blog-card__media {
    width: 100%;
    height: 210px;
    object-fit: cover;
    display: block;
}

.blog-card__body {
    padding: 1.15rem 1.1rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.78rem;
}

.blog-card__meta {
    margin: 0;
    font-size: 0.82rem;
    color: #637c8b;
}

.blog-card__title {
    margin: 0;
    font-size: 1.16rem;
    line-height: 1.32;
}

.blog-card__title a {
    color: #0f4760;
    text-decoration: none;
}

.blog-card__title a:hover {
    color: var(--primary);
}

.blog-card__excerpt {
    margin: 0;
    color: #304756;
    line-height: 1.62;
}

.blog-card__cta {
    align-self: flex-start;
    margin-top: auto;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #ffffff;
    border-radius: 999px;
    padding: 0.54rem 0.9rem;
    font-size: 0.83rem;
    font-weight: 700;
    text-decoration: none;
}

.blog-card__cta:hover {
    color: #ffffff;
    filter: brightness(0.97);
}

.blog-empty {
    text-align: center;
    background: #ffffff;
    border: 1px dashed #bdd8e6;
    border-radius: 14px;
    padding: 2rem 1rem;
    margin-top: 1rem;
}

.blog-empty h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.blog-empty p {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #446172;
}

.blog-pagination-wrap {
    margin-top: 1.5rem;
}

.blog-article {
    max-width: 940px;
    margin: 0 auto 2rem;
    padding: 2rem;
    border-radius: 24px;
    border: 1px solid #d8eaf4;
    background: #ffffff;
    box-shadow: 0 14px 30px rgba(8, 76, 98, 0.08);
}

.blog-article__header {
    margin-bottom: 1.25rem;
}

.blog-article__kicker {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #0a5a74;
    background: #e8f7ff;
    border: 1px solid #bfe9fb;
    border-radius: 999px;
    padding: 0.42rem 0.72rem;
}

.blog-article__header h1 {
    margin: 0.95rem 0 0.7rem;
    color: #113f54;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    line-height: 1.18;
}

.blog-article__dek {
    margin: 0;
    color: #3a5666;
    font-size: 1.02rem;
    line-height: 1.66;
}

.blog-article__meta {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.blog-meta-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.72rem;
    border-radius: 999px;
    border: 1px solid #cfe5f1;
    background: #f7fcff;
    color: #3e5b6b;
    font-size: 0.8rem;
    font-weight: 600;
}

.blog-article__cover {
    margin: 1.2rem 0 1.5rem;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #d6e8f3;
}

.blog-article__cover img {
    width: 100%;
    height: auto;
    display: block;
}

.blog-article__content {
    color: #243b49;
    font-size: 1.03rem;
    line-height: 1.85;
}

.blog-article__content > *:first-child {
    margin-top: 0;
}

.blog-article__content h2,
.blog-article__content h3,
.blog-article__content h4 {
    color: #10455d;
    line-height: 1.32;
    margin-top: 2rem;
    margin-bottom: 0.8rem;
}

.blog-article__content p {
    margin: 0.85rem 0;
}

.blog-article__content ul,
.blog-article__content ol {
    margin: 0.85rem 0 1rem;
    padding-left: 1.2rem;
}

.blog-article__content li + li {
    margin-top: 0.4rem;
}

.blog-article__content blockquote {
    margin: 1.3rem 0;
    padding: 0.95rem 1rem;
    border-left: 4px solid var(--secondary);
    border-radius: 10px;
    background: #f2fbff;
    color: #214758;
}

.blog-article__content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.blog-article__content a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.blog-article__content a:hover {
    opacity: 0.75;
}

.blog-article__content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.95rem;
    overflow-x: auto;
    display: block;
}

.blog-article__content th,
.blog-article__content td {
    padding: 0.55rem 0.85rem;
    border: 1px solid #d8eaf4;
    text-align: left;
    vertical-align: top;
}

.blog-article__content th {
    background: var(--accent, #f0f8fd);
    font-weight: 700;
    color: var(--primary);
}

.blog-article__content tr:nth-child(even) td {
    background: #f8fcff;
}

.blog-article__content hr {
    border: none;
    border-top: 2px solid #dde8ef;
    margin: 1.8rem 0;
}

.blog-article__content code {
    background: var(--accent, #f0f7fb);
    border: 1px solid #d2e8f3;
    border-radius: 5px;
    padding: 0.15em 0.4em;
    font-size: 0.88em;
    color: var(--primary);
    font-family: 'Courier New', Courier, monospace;
}

.blog-article__content pre {
    background: var(--accent, #f0f7fb);
    border: 1px solid #d2e8f3;
    border-radius: 10px;
    padding: 1rem 1.2rem;
    overflow-x: auto;
    margin: 1rem 0;
}

.blog-article__content pre code {
    background: none;
    border: none;
    padding: 0;
    font-size: 0.91rem;
    color: inherit;
}

.blog-article__footer {
    margin-top: 1.8rem;
    padding-top: 1.2rem;
    border-top: 1px solid #dcebf3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.blog-article__back {
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.blog-article__back:hover {
    text-decoration: underline;
    color: var(--primary);
}

.blog-article__apply {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #ffffff;
    border-radius: 999px;
    padding: 0.58rem 0.95rem;
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
}

.blog-article__apply:hover {
    color: #ffffff;
    filter: brightness(0.96);
}

.blog-related-section {
    background: #ffffff;
    border: 1px solid #d8eaf4;
    border-radius: 24px;
    padding: 2rem;
}

.blog-related-section h2 {
    margin-top: 0;
    color: #11435a;
}

.blog-related-section .grid {
    gap: 1rem;
}

.blog-related-section .card {
    text-align: left;
    border-radius: 16px;
    border: 1px solid #d6e8f3;
    box-shadow: 0 8px 22px rgba(8, 76, 98, 0.08);
    padding: 1.2rem;
}

.blog-related-section .card h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.06rem;
}

.blog-related-section .card p {
    margin-top: 0;
    margin-bottom: 0.8rem;
    color: #365161;
}

.blog-related-section .card a {
    font-weight: 700;
}

@media (max-width: 768px) {
    .blog-hub {
        padding: 1.15rem;
        border-radius: 16px;
    }

    .blog-hub__header {
        flex-direction: column;
        gap: 0.7rem;
    }

    .blog-hub__header h2 {
        font-size: 1.45rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .blog-card__media {
        height: 180px;
    }

    .blog-article {
        padding: 1.2rem;
        border-radius: 16px;
    }

    .blog-article__header h1 {
        font-size: 1.62rem;
    }

    .blog-related-section {
        padding: 1.2rem;
        border-radius: 16px;
    }
}

@media (max-width: 480px) {
    .blog-article__content {
        font-size: 0.98rem;
        line-height: 1.74;
    }

    .blog-card__media {
        height: 160px;
    }
}

/* ------------------------------
   Blog Contrast Hardening
   ------------------------------ */
.blog-hub,
.blog-article,
.blog-related-section {
    color: #163645;
}

.blog-hub *,
.blog-article *,
.blog-related-section * {
    text-shadow: none;
}

.blog-card,
.blog-related-section .card {
    color: #1f3f50;
}

.blog-card p,
.blog-card__excerpt,
.blog-related-section .card p,
.blog-article__dek,
.blog-article__content,
.blog-article__content p,
.blog-article__content li,
.blog-article__content span {
    color: #2a4757;
}

.blog-card__title,
.blog-card__title a,
.blog-article__header h1,
.blog-article__content h1,
.blog-article__content h2,
.blog-article__content h3,
.blog-article__content h4,
.blog-related-section .card h3 {
    color: #123e54;
}

.blog-card__title a:hover,
.blog-article__content a:hover,
.blog-related-section .card a:hover,
.blog-article__back:hover {
    color: #0d6a87;
}

.blog-article__header,
.blog-article__footer {
    position: static;
    min-height: 0;
    box-shadow: none;
}

.blog-article__footer {
    background: transparent;
}

.blog-card__cta,
.blog-article__apply {
    color: #ffffff !important;
}

.blog-card__cta:hover,
.blog-article__apply:hover {
    color: #ffffff !important;
}

.blog-meta-chip,
.blog-card__meta,
.blog-article__back {
    color: #3e5b6b;
}

.blog-empty,
.blog-empty p,
.blog-empty h3 {
    color: #244656;
}

@media (max-width: 768px) {
    .blog-article__meta {
        gap: 0.42rem;
    }

    .blog-meta-chip {
        font-size: 0.76rem;
    }
}

.dropdown-done-bar {
    position: sticky;
    bottom: 0;
    padding: 0.75rem 1rem;
    background: white;
    border-top: 2px solid var(--filter-border, #c8d2dc);
    display: none;
}

.dropdown-done-bar .btn-dropdown-done {
    width: 100%;
    padding: 0.65rem 1rem;
    background: var(--color-accent, #e05252);
    color: var(--text-light, #ffffff);
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.dropdown-done-bar .btn-dropdown-done:hover {
    background: var(--color-accent-dark, #c03030);
}

.select-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 10000;
}

.select-backdrop.show {
    display: block;
}

@media (max-width: 768px) {
    .dropdown-done-bar {
        display: block;
    }

    .select-dropdown.mobile-sheet {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        max-height: 80vh;
        border-radius: 16px 16px 0 0;
        z-index: 10001;
        overflow-y: auto;
        box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.15);
    }
}
