/* ============================================
   JOBS PAGE
   ============================================ */

.container {
    width: 80rem;
    margin: 0 auto;
    max-width: calc(100% - 2rem);
    padding: 0 1.5rem;
}

/* ---------- JOBS HEADER ---------- */

.jobs-header {
    position: relative;
    padding: 5rem 0 3rem;
    text-align: center;
    overflow: hidden;
    isolation: isolate;
}

.jobs-header::before {
    content: "";
    position: absolute;
    top: -10rem;
    left: 50%;
    width: 32rem;
    height: 32rem;
    border: 1px solid #1ab5c515;
    border-radius: 50%;
    transform: translateX(-50%);
    animation: aboutHeroOrbit 20s linear infinite;
    pointer-events: none;
}

.jobs-header::after {
    content: "";
    position: absolute;
    top: 40%;
    left: 50%;
    width: 18rem;
    height: 18rem;
    border-radius: 50%;
    background: radial-gradient(circle, #1ab5c508, transparent 70%);
    transform: translate(-50%, -50%);
    animation: aboutHeroGlow 5s ease-in-out infinite;
    pointer-events: none;
}

.jobs-header h1 {
    position: relative;
    z-index: 1;
    color: var(--secondary-color);
    font-size: 4rem;
    line-height: 1.1;
    letter-spacing: -0.05rem;
    margin-bottom: 1rem;
}

.jobs-header h1::after {
    content: "";
    display: block;
    width: 4rem;
    height: 3px;
    margin: 1.2rem auto 0;
    border-radius: 2rem;
    background: linear-gradient(90deg, var(--primary-color), #7c3aed);
}

.jobs-header p {
    position: relative;
    z-index: 1;
    max-width: 45rem;
    margin: 0 auto;
    color: #666;
    font-size: 1.1rem;
    line-height: 1.8;
}

.jobs-header p::before {
    content: "";
    display: inline-block;
    width: 0.45rem;
    height: 0.45rem;
    margin-right: 0.5rem;
    border-radius: 50%;
    background: var(--primary-color);
    box-shadow: 0 0 0.7rem #1ab5c5aa;
    vertical-align: middle;
    animation: pulseDot 2s ease-in-out infinite;
}

/* ---------- ERROR ---------- */

.error {
    position: relative;
    max-width: 40rem;
    margin: 3rem auto;
    padding: 2rem;
    border: 1px solid #f0c4c4;
    border-radius: 1.5rem;
    background: linear-gradient(145deg, #fff5f5, #ffffff);
    color: #b42318;
    text-align: center;
    line-height: 1.6;
    box-shadow: 0 1rem 3rem #b423180d;
    overflow: hidden;
}

.error::before {
    content: "!";
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: #fee4e2;
    color: #b42318;
    font-weight: 700;
    font-size: 1.1rem;
}

/* ---------- JOB LIST ---------- */

.job-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    padding: 2rem 0 3rem;
}

/* ---------- JOB CARD ---------- */

.job-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 2.2rem;
    border: 1px solid #ffffff;
    border-radius: 2rem;
    background: linear-gradient(145deg, #f3f6f9, #ffffff);
    box-shadow: 0 1rem 3rem #082a4a0b;
    overflow: hidden;
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}

.job-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), #7c3aed, #ec4899);
    background-size: 200% 100%;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.job-card::after {
    content: "";
    position: absolute;
    top: -5rem;
    right: -5rem;
    width: 12rem;
    height: 12rem;
    border-radius: 50%;
    background: #1ab5c514;
    filter: blur(25px);
    transition: transform 0.5s ease;
    pointer-events: none;
}

.job-card:hover {
    transform: translateY(-8px);
    border-color: #1ab5c544;
    box-shadow: 0 1.5rem 4rem #082a4a18;
}

.job-card:hover::before {
    transform: scaleX(1);
    animation: profileCardGradient 3s linear infinite;
}

.job-card:hover::after {
    transform: scale(1.5);
}

/* ---------- JOB TITLE ---------- */

.job-title {
    position: relative;
    z-index: 1;
    color: var(--secondary-color);
    font-size: 1.5rem;
    line-height: 1.3;
    transition: color 0.25s ease;
}

.job-card:hover .job-title {
    color: var(--primary-color);
}

/* ---------- COMPANY ---------- */

.company {
    position: relative;
    z-index: 1;
    width: fit-content;
    padding: 0.45rem 0.9rem;
    border: 1px solid #1ab5c522;
    border-radius: 2rem;
    background: #eaf9fa;
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
}

/* ---------- META ---------- */

.meta {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.meta span {
    padding: 0.45rem 0.75rem;
    border: 1px solid #dce5e9;
    border-radius: 2rem;
    background: #ffffff;
    color: #555;
    font-size: 0.78rem;
    font-weight: 500;
    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease;
}

.job-card:hover .meta span {
    border-color: #1ab5c533;
    color: var(--secondary-color);
}

/* ---------- DESCRIPTION ---------- */

.description {
    position: relative;
    z-index: 1;
    color: #666;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---------- JOB FOOTER ---------- */

.job-footer {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-top: 1.2rem;
    margin-top: auto;
    border-top: 1px solid #dce5e9;
}

.salary {
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 1rem;
}

.salary::before {
    content: "£";
    color: var(--primary-color);
    margin-right: 0.1rem;
}

/* ---------- APPLY BUTTON ---------- */

.apply-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.8rem 1.5rem;
    border: 1px solid #1ab5c522;
    border-radius: 2rem;
    background: var(--primary-color);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    overflow: hidden;
    box-shadow:
        0 0.6rem 1.5rem #1ab5c533,
        inset 0 1px 0 #ffffff44;
    transition:
        transform 0.3s ease,
        background 0.3s ease,
        box-shadow 0.3s ease;
}

.apply-button::before {
    content: "";
    position: absolute;
    top: -20%;
    left: -100%;
    width: 60%;
    height: 140%;
    background: linear-gradient(90deg, transparent, #ffffff66, transparent);
    transform: skewX(-20deg);
    transition: left 0.6s ease;
}

.apply-button::after {
    content: "→";
    display: inline-block;
    transition: transform 0.25s ease;
}

.apply-button:hover {
    transform: translateY(-3px);
    background: #22c5d5;
    box-shadow:
        0 1rem 2rem #1ab5c555,
        inset 0 1px 0 #ffffff55;
}

.apply-button:hover::before {
    left: 150%;
}

.apply-button:hover::after {
    transform: translateX(4px);
}

.apply-button:active {
    transform: translateY(-1px) scale(0.98);
}

/* ---------- PAGINATION ---------- */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 2rem 0 5rem;
}

.pagination a {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.8rem;
    padding: 0.75rem 1rem;
    border: 1px solid #dce5e9;
    border-radius: 2rem;
    background: #ffffff;
    color: var(--secondary-color);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    overflow: hidden;
    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease;
}

.pagination a:hover {
    transform: translateY(-2px);
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 0.5rem 1rem #1ab5c51a;
}

.pagination a.active {
    background: linear-gradient(135deg, var(--primary-color), #0d8fa0);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 0.5rem 1.2rem #1ab5c544;
}

.pagination a.active:hover {
    transform: translateY(-2px);
    color: #fff;
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 900px) {
    .job-list {
        grid-template-columns: 1fr;
    }

    .jobs-header h1 {
        font-size: 3rem;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 0 1rem;
    }

    .jobs-header {
        padding: 3.5rem 1rem;
    }

    .jobs-header h1 {
        font-size: 2.2rem;
    }

    .job-card {
        padding: 1.6rem;
    }

    .job-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .apply-button {
        width: calc(100% - 2rem);
    }
}


/* ============================================
   JOB DETAIL PAGE
   ============================================ */

.job-detail {
    position: relative;
    width: 80rem;
    margin: 0 auto;
    max-width: 100%;
    padding: 2rem 1.5rem 5rem;
}

/* ---------- BACK LINK ---------- */

.back-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 2rem;
    padding: 0.7rem 1.2rem;
    border: 1px solid #1ab5c522;
    border-radius: 2rem;
    background: #eaf9fa;
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    overflow: hidden;
    transition:
        transform 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.back-link::before {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, #ffffffcc, transparent);
    transform: skewX(-20deg);
    transition: left 0.6s ease;
}

.back-link:hover {
    transform: translateX(-4px);
    background: #dfffff;
    border-color: #1ab5c555;
    box-shadow: 0 0.5rem 1.2rem #1ab5c51a;
}

.back-link:hover::before {
    left: 150%;
}

/* ---------- DETAIL HEADER ---------- */

.job-detail-header {
    position: relative;
    padding: 3rem;
    border: 1px solid #ffffff;
    border-radius: 2.5rem;
    background:
        radial-gradient(circle at 90% 10%, #7c3aed0d, transparent 30%),
        radial-gradient(circle at 10% 90%, #1ab5c50d, transparent 30%),
        linear-gradient(145deg, #f3f6f9, #ffffff);
    box-shadow: 0 1.5rem 4rem #082a4a0d;
    overflow: hidden;
    isolation: isolate;
}

.job-detail-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #7c3aed, #ec4899, var(--primary-color));
    background-size: 300% 100%;
    animation: legalAccentGradient 5s linear infinite;
}

.job-detail-header::after {
    content: "";
    position: absolute;
    top: -8rem;
    right: -8rem;
    width: 20rem;
    height: 20rem;
    border-radius: 50%;
    background: #1ab5c510;
    filter: blur(60px);
    pointer-events: none;
    z-index: -1;
}

/* ---------- CATEGORY BADGE ---------- */

.job-detail-category {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    margin-bottom: 1.2rem;
    border: 1px solid #1ab5c533;
    border-radius: 2rem;
    background: #eaf9fa;
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04rem;
}

.job-detail-category::before {
    content: "";
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: var(--primary-color);
    box-shadow: 0 0 0.7rem #1ab5c5aa;
    animation: pulseDot 2s ease-in-out infinite;
}

/* ---------- DETAIL TITLE ---------- */

.job-detail-header h1 {
    position: relative;
    z-index: 1;
    max-width: 52rem;
    margin-bottom: 1.2rem;
    color: var(--secondary-color);
    font-size: 3.5rem;
    line-height: 1.15;
    letter-spacing: -0.05rem;
}

/* ---------- COMPANY ---------- */

.job-company {
    position: relative;
    z-index: 1;
    display: inline-block;
    margin-bottom: 1.5rem;
    padding: 0.55rem 1rem;
    border: 1px solid #1ab5c522;
    border-radius: 1rem;
    background: linear-gradient(135deg, #1ab5c510, #7c3aed10);
    color: var(--secondary-color);
    font-size: 1rem;
    font-weight: 600;
}

/* ---------- META ---------- */

.job-meta {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.job-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 0.9rem;
    border: 1px solid #dce5e9;
    border-radius: 2rem;
    background: #ffffff;
    color: #555;
    font-size: 0.85rem;
    font-weight: 500;
    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease;
}

.job-meta span:hover {
    transform: translateY(-2px);
    border-color: #1ab5c544;
    color: var(--secondary-color);
}

/* ---------- DETAIL CONTENT LAYOUT ---------- */

.job-detail-content {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 2.5rem;
    padding: 3rem 0;
    align-items: start;
}

/* ---------- MAIN ---------- */

.job-main {
    position: relative;
    padding: 2.5rem;
    border: 1px solid #ffffff;
    border-radius: 2rem;
    background: linear-gradient(145deg, #f3f6f9, #ffffff);
    box-shadow: 0 1rem 3rem #082a4a0a;
    overflow: hidden;
}

.job-main::before {
    content: "";
    position: absolute;
    top: -6rem;
    right: -6rem;
    width: 14rem;
    height: 14rem;
    border-radius: 50%;
    background: #1ab5c50d;
    filter: blur(40px);
    pointer-events: none;
}

.job-main h2 {
    position: relative;
    z-index: 1;
    color: var(--secondary-color);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    padding-left: 1rem;
}

.job-main h2::before {
    content: "";
    position: absolute;
    top: 0.15rem;
    left: 0;
    width: 4px;
    height: calc(100% - 0.3rem);
    border-radius: 1rem;
    background: linear-gradient(180deg, var(--primary-color), #7c3aed);
}

.job-description {
    position: relative;
    z-index: 1;
    color: #555;
    line-height: 1.85;
    font-size: 1rem;
}

.job-description p {
    margin-bottom: 1rem;
}

.job-description ul,
.job-description ol {
    margin: 1rem 0 1.5rem 1.5rem;
}

.job-description li {
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

.job-description li::marker {
    color: var(--primary-color);
}

.job-description h3,
.job-description h4 {
    color: var(--secondary-color);
    margin: 1.5rem 0 0.8rem;
}

.job-description a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.25s ease;
}

.job-description a:hover {
    color: #7c3aed;
}

.job-description strong {
    color: var(--secondary-color);
}

/* ---------- SIDEBAR ---------- */

.job-sidebar {
    position: sticky;
    top: 7rem;
}

.job-info-card {
    position: relative;
    padding: 2rem;
    border: 1px solid #ffffff;
    border-radius: 2rem;
    background:
        radial-gradient(circle at 90% 10%, #7c3aed0d, transparent 30%),
        linear-gradient(145deg, #f3f6f9, #ffffff);
    box-shadow: 0 1.2rem 3.5rem #082a4a0d;
    overflow: hidden;
    isolation: isolate;
}

.job-info-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), #7c3aed);
}

.job-info-card::after {
    content: "";
    position: absolute;
    top: -6rem;
    right: -6rem;
    width: 14rem;
    height: 14rem;
    border-radius: 50%;
    background: #1ab5c510;
    filter: blur(35px);
    pointer-events: none;
    z-index: -1;
}

.job-info-card h2 {
    position: relative;
    z-index: 1;
    color: var(--secondary-color);
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #dce5e9;
}

/* ---------- INFO ITEMS ---------- */

.job-info-item {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1rem 0;
    border-bottom: 1px solid #eef2f4;
}

.job-info-item:last-of-type {
    border-bottom: none;
}

.job-info-item strong {
    color: #888;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
}

.job-info-item span {
    color: var(--secondary-color);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
}

/* Highlight salary */
.job-info-item:first-child span {
    color: var(--primary-color);
    font-size: 1.15rem;
    font-weight: 700;
}

/* ---------- APPLY BLOCK ---------- */

.job-apply {
    position: relative;
    z-index: 1;
    margin-top: 1.8rem;
    padding-top: 1.8rem;
    border-top: 1px solid #dce5e9;
}

.job-apply .apply-button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    box-sizing: border-box;
    padding: 1.1rem 1.8rem;
    border: 1px solid #ffffff44;
    border-radius: 2rem;
    background: linear-gradient(135deg, var(--primary-color), #0d8fa0, #7c3aed);
    background-size: 200% 200%;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    overflow: hidden;
    box-shadow:
        0 0.8rem 2rem #1ab5c533,
        inset 0 1px 0 #ffffff44;
    animation: searchButtonGradient 5s ease infinite;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.job-apply .apply-button::before {
    content: "";
    position: absolute;
    top: -20%;
    left: -100%;
    width: 60%;
    height: 140%;
    background: linear-gradient(90deg, transparent, #ffffff66, transparent);
    transform: skewX(-20deg);
    animation: searchButtonShine 3.5s ease-in-out infinite;
}

.job-apply .apply-button::after {
    content: "→";
    display: inline-block;
    transition: transform 0.25s ease;
}

.job-apply .apply-button:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow:
        0 1.2rem 2.8rem #1ab5c544,
        inset 0 1px 0 #ffffff55;
}

.job-apply .apply-button:hover::after {
    transform: translateX(4px);
}

.job-apply .apply-button:active {
    transform: translateY(-1px) scale(0.98);
}

.job-apply p {
    margin-top: 1rem;
    color: #888;
    font-size: 0.8rem;
    line-height: 1.6;
    text-align: center;
}

/* ---------- SOURCE ---------- */

.job-source {
    position: relative;
    padding: 1.5rem;
    border: 1px solid #dce5e9;
    border-radius: 1.5rem;
    background: #f7fafb;
    color: #777;
    font-size: 0.85rem;
    text-align: center;
    transition:
        border-color 0.3s ease,
        background 0.3s ease;
}

.job-source::before {
    content: "✓";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.4rem;
    height: 1.4rem;
    margin-right: 0.5rem;
    border-radius: 50%;
    background: #eaf9fa;
    color: var(--primary-color);
    font-size: 0.7rem;
    font-weight: 700;
    vertical-align: middle;
}

.job-source:hover {
    border-color: #1ab5c533;
    background: #ffffff;
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 1000px) {
    .job-detail-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .job-sidebar {
        position: static;
    }
}

@media (max-width: 700px) {
    .job-detail {
        padding: 0;
    }

    .job-detail-header {
        padding: 2rem 1.5rem;
        border-radius: 2rem;
    }

    .job-detail-header h1 {
        font-size: 2.2rem;
    }

    .job-main {
        padding: 1.8rem 1.5rem;
        border-radius: 1.5rem;
    }

    .job-main h2 {
        font-size: 1.4rem;
    }

    .job-info-card {
        padding: 1.6rem;
        border-radius: 1.5rem;
    }

    .job-meta span {
        font-size: 0.78rem;
    }
}

/* ============================================
   JOBS BY COUNTRY PAGE
   ============================================ */

.jobs-countries {
    position: relative;
    width: 80rem;
    margin: 0 auto;
    max-width: calc(100% - 2rem);
    padding: 0 1.5rem 5rem;
}

/* ---------- JOBS HERO ---------- */

.jobs-hero {
    position: relative;
    padding: 6rem 0 4rem;
    text-align: center;
    overflow: hidden;
    isolation: isolate;
}

.jobs-hero::before {
    content: "";
    position: absolute;
    top: -10rem;
    left: 50%;
    width: 34rem;
    height: 34rem;
    border: 1px solid #1ab5c515;
    border-radius: 50%;
    transform: translateX(-50%);
    animation: aboutHeroOrbit 20s linear infinite;
    pointer-events: none;
}

.jobs-hero::after {
    content: "";
    position: absolute;
    top: 45%;
    left: 50%;
    width: 20rem;
    height: 20rem;
    border-radius: 50%;
    background: radial-gradient(circle, #1ab5c510, transparent 70%);
    transform: translate(-50%, -50%);
    animation: aboutHeroGlow 5s ease-in-out infinite;
    pointer-events: none;
}

.jobs-hero h1 {
    position: relative;
    z-index: 1;
    max-width: 52rem;
    margin: 0 auto 1.2rem;
    color: var(--secondary-color);
    font-size: 4.5rem;
    line-height: 1.1;
    letter-spacing: -0.06rem;
}

.jobs-hero h1::after {
    content: "";
    display: block;
    width: 4rem;
    height: 3px;
    margin: 1.5rem auto 0;
    border-radius: 2rem;
    background: linear-gradient(90deg, var(--primary-color), #7c3aed);
}

.jobs-hero p {
    position: relative;
    z-index: 1;
    max-width: 45rem;
    margin: 0 auto;
    color: #666;
    font-size: 1.15rem;
    line-height: 1.8;
}

/* ---------- COUNTRIES GRID ---------- */

.countries-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    padding: 2rem 0 4rem;
}

/* ---------- COUNTRY CARD ---------- */

.country-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1.3rem;
    padding: 1.8rem;
    border: 1px solid #ffffff;
    border-radius: 2rem;
    background: linear-gradient(145deg, #f3f6f9, #ffffff);
    box-shadow: 0 1rem 3rem #082a4a0b;
    text-decoration: none;
    overflow: hidden;
    isolation: isolate;
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}

/* Top gradient accent bar */
.country-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg,
            var(--primary-color),
            #7c3aed,
            #ec4899);
    background-size: 200% 100%;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

/* Glow orb */
.country-card::after {
    content: "";
    position: absolute;
    top: -5rem;
    right: -5rem;
    width: 12rem;
    height: 12rem;
    border-radius: 50%;
    background: #1ab5c514;
    filter: blur(25px);
    transition: transform 0.5s ease;
    pointer-events: none;
    z-index: -1;
}

.country-card:hover {
    transform: translateY(-8px);
    border-color: #1ab5c544;
    box-shadow: 0 1.5rem 4rem #082a4a18;
}

.country-card:hover::before {
    transform: scaleX(1);
    animation: profileCardGradient 3s linear infinite;
}

.country-card:hover::after {
    transform: scale(1.5);
}

/* ---------- FLAG ---------- */

.country-card img {
    position: relative;
    z-index: 1;
    width: 4rem;
    height: 3rem;
    flex: 0 0 auto;
    border: 2px solid #ffffff;
    border-radius: 0.7rem;
    object-fit: cover;
    box-shadow:
        0 0.5rem 1.2rem #082a4a18,
        inset 0 1px 0 #ffffff;
    transition:
        transform 0.4s ease,
        box-shadow 0.4s ease;
}

.country-card:hover img {
    transform: scale(1.08) rotate(-3deg);
    box-shadow:
        0 0.8rem 1.8rem #082a4a22,
        inset 0 1px 0 #ffffff;
}

/* ---------- TEXT ---------- */

.country-card>div {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    min-width: 0;
}

.country-card h2 {
    color: var(--secondary-color);
    font-size: 1.25rem;
    line-height: 1.2;
    transition: color 0.25s ease;
}

.country-card:hover h2 {
    color: var(--primary-color);
}

.country-card span {
    position: relative;
    display: inline-block;
    width: fit-content;
    color: #777;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.25s ease;
}

.country-card span::after {
    content: " →";
    display: inline-block;
    transition: transform 0.25s ease;
}

.country-card:hover span {
    color: var(--primary-color);
}

.country-card:hover span::after {
    transform: translateX(4px);
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 900px) {
    .countries-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .jobs-hero h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 600px) {
    .jobs-countries {
        padding: 0 1rem 4rem;
    }

    .jobs-hero {
        padding: 4rem 0 3rem;
    }

    .jobs-hero h1 {
        font-size: 2.4rem;
    }

    .jobs-hero p {
        font-size: 1rem;
    }

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

    .country-card {
        padding: 1.4rem;
        border-radius: 1.5rem;
    }

    .country-card img {
        width: 3.5rem;
        height: 2.6rem;
    }

    .country-card h2 {
        font-size: 1.1rem;
    }
}