/**
 * Vacancies Page Stylesheet - Aberdeen Holdings
 * Self-contained stylesheet for Vacancies page (Hero Banner + Intro Section)
 * Theme: Archivo font, Primary Cyan (#1bbfdd), Primary Dark (#014f6e)
 */

/* Page Background Configuration */
body.vacancies-page {
    min-height: 100vh;
    background-color: #ffffff;
}

/* ==========================================================================
   Full-Width Hero Banner (Edge-to-Edge)
   ========================================================================== */
.about-hero-fullwidth {
    position: relative;
    width: 100%;
    min-height: 82vh;
    display: flex;
    align-items: flex-end;
    padding-top: 180px;
    padding-bottom: 85px;
    overflow: hidden;
}

/* Background photo layer (slow zoom-out animation) */
.about-hero-fullwidth::before,
.vacancies-banner-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../assets/images/vacancies-banner.jpg') !important;
    background-size: cover;
    background-position: center 35% !important;
    background-repeat: no-repeat;
    z-index: 0;
    transform: scale(1.15);
    animation: heroZoom 2.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Vignette & High-Contrast Gradient Overlay */
.about-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgb(3 10 18 / 18%) 0%, rgba(3, 10, 18, 0.25) 38%, rgba(3, 10, 18, 0.45) 60%, rgb(3 10 18 / 7%) 100%),
        linear-gradient(90deg, rgb(3 10 18 / 48%) 0%, rgba(3, 10, 18, 0.2) 55%, rgba(3, 10, 18, 0.4) 100%);
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    animation: heroOverlayIn 1.4s ease 0.1s forwards;
}

/* Hero Content Container Alignment */
.about-hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
}

/* Banner Content Flex Layout */
.about-banner-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
    width: 100%;
}

/* Left Column: Title, Subtitle & Accent Line */
.about-banner-left {
    width: 100%;
    position: relative;
}

.about-banner-title {
    font-size: clamp(34px, 4.5vw, 54px);
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.5px;
    line-height: 1.12;
    margin: 0 0 16px 0;
    opacity: 0;
    animation: heroRise 1s cubic-bezier(0.16, 1, 0.3, 1) 0.55s forwards;
}

.about-banner-desc {
    font-size: 17px;
    line-height: 1.6;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.92);
    margin: 0;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
    max-width: 680px;
    opacity: 0;
    animation: heroRise 1s cubic-bezier(0.16, 1, 0.3, 1) 0.8s forwards;
}

/* Accent line under the description */
.about-banner-left::after {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    margin-top: 24px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0.3) 30%, rgba(255, 255, 255, 0.12) 65%, rgba(255, 255, 255, 0) 100%);
    transform: scaleX(0);
    transform-origin: left;
    animation: heroLineGrow 1s cubic-bezier(0.16, 1, 0.3, 1) 1.1s forwards;
}

/* Right Column: CTA Button */
.about-banner-right {
    flex-shrink: 0;
    margin-bottom: 6px;
    opacity: 0;
    animation: heroBtnIn 1s cubic-bezier(0.16, 1, 0.3, 1) 1.1s forwards;
}

.about-banner-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 36px;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--color-primary-dark, #014f6e) 0%, #036891 40%, var(--color-primary-cyan, #1bbfdd) 100%);
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid rgba(27, 191, 221, 0.5);
    box-shadow: 0 6px 22px rgba(27, 191, 221, 0.38), 0 2px 6px rgba(0, 0, 0, 0.25);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.about-banner-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(27, 191, 221, 0.55), 0 4px 12px rgba(0, 0, 0, 0.35);
    background: linear-gradient(135deg, var(--color-primary-cyan, #1bbfdd) 0%, var(--color-primary-dark, #014f6e) 100%);
    border-color: rgba(255, 255, 255, 0.85);
    color: #ffffff;
}

.about-banner-cta-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: translateX(-120%) skewX(-20deg);
    animation: heroBtnShine 3.6s ease-in-out 2.4s infinite;
    pointer-events: none;
}

/* ==========================================================================
   Banner Keyframe Animations
   ========================================================================== */
@keyframes heroZoom {
    from {
        transform: scale(1.15);
    }
    to {
        transform: scale(1);
    }
}

@keyframes heroOverlayIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes heroRise {
    from {
        opacity: 0;
        transform: translateY(34px);
        filter: blur(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes heroBtnIn {
    from {
        opacity: 0;
        transform: translateX(40px) scale(0.92);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes heroLineGrow {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

@keyframes heroBtnShine {
    0% {
        transform: translateX(-120%) skewX(-20deg);
    }
    60%,
    100% {
        transform: translateX(260%) skewX(-20deg);
    }
}

/* ==========================================================================
   Vacancies Intro Section (Matching Home Page Global Impact Style)
   ========================================================================== */
.vacancies-intro-section {
    padding: 85px 0 60px 0;
    background: #ffffff;
    position: relative;
    z-index: 5;
    text-align: center;
}

.vacancies-intro-section .impact-container-center {
    max-width: 1040px;
    margin: 0 auto;
}

.vacancies-intro-section .impact-header-content {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.vacancies-intro-section .impact-title {
    font-family: 'Archivo', sans-serif;
    font-size: 45px;
    font-weight: 800;
    line-height: 1.18;
    color: #0b1727;
    margin-bottom: 20px;
}

.vacancies-intro-section .cyan-highlight-text {
    color: #014f6e;
    background: linear-gradient(90deg, #014f6e 0%, #1bbfdd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.vacancies-intro-section .impact-desc {
    font-size: 18px;
    line-height: 1.7;
    color: #475569;
    font-weight: 300;
    margin: 0 auto;
}

/* ==========================================================================
   Scroll Reveal Animation
   ========================================================================== */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 991px) {
    .about-hero-fullwidth {
        min-height: auto;
        padding-top: 140px;
        padding-bottom: 60px;
    }

    .about-banner-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 28px;
    }

    .about-banner-right {
        margin-bottom: 0;
    }

    .vacancies-intro-section {
        padding: 65px 0 45px 0;
    }

    .vacancies-intro-section .impact-title {
        font-size: 36px;
    }
}

@media (max-width: 576px) {
    .about-hero-fullwidth {
        padding-top: 120px;
        padding-bottom: 50px;
    }

    .about-banner-title {
        font-size: 32px;
    }

    .about-banner-desc {
        font-size: 15.5px;
    }

    .about-banner-cta-btn {
        padding: 13px 28px;
        font-size: 14px;
    }

    .vacancies-intro-section {
        padding: 50px 0 35px 0;
    }

    .vacancies-intro-section .impact-title {
        font-size: 28px;
    }

    .vacancies-intro-section .impact-desc {
        font-size: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .about-hero-fullwidth::before,
    .vacancies-banner-bg::before,
    .about-banner-overlay,
    .about-banner-title,
    .about-banner-desc,
    .about-banner-left::after,
    .about-banner-right,
    .about-banner-cta-btn::after,
    .reveal-on-scroll {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }
}

/* ==========================================================================
   Vacancies List Section (Clean Horizontal List Layout - Matching Home Page News)
   ========================================================================== */
.vacancies-list-section {
    padding: 20px 0 100px 0;
    background: #ffffff;
    position: relative;
    z-index: 5;
}

.vacancies-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
}

.vacancies-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #1bbfdd;
    margin-bottom: 8px;
}

.vacancies-section-title {
    font-family: 'Archivo', sans-serif;
    font-size: 32px;
    font-weight: 800;
    color: #0b1727;
    margin: 0;
    line-height: 1.2;
}

.vacancies-count-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: #f1f5f9;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
}

.vacancies-count-badge .count-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: #014f6e;
    color: #ffffff;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
}

/* Header Actions & Search Bar */
.vacancies-header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.vacancy-search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    border-radius: 50px;
    padding: 7px 14px 7px 18px;
    width: 330px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.vacancy-search-box:focus-within {
    background: #ffffff;
    border-color: #1bbfdd;
    box-shadow: 0 4px 16px rgba(27, 191, 221, 0.18);
}

.vacancy-search-icon {
    color: #014f6e;
    font-size: 14px;
    margin-right: 10px;
    flex-shrink: 0;
    transition: color 0.3s ease;
}

.vacancy-search-box:focus-within .vacancy-search-icon {
    color: #1bbfdd;
}

.vacancy-search-input {
    border: none;
    outline: none;
    background: transparent;
    font-family: 'Archivo', sans-serif;
    font-size: 14px;
    color: #0b1727;
    width: 100%;
    font-weight: 500;
}

.vacancy-search-input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.vacancy-search-clear-btn {
    border: none;
    background: #e2e8f0;
    color: #64748b;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    cursor: pointer;
    flex-shrink: 0;
    margin-left: 6px;
    transition: all 0.2s ease;
}

.vacancy-search-clear-btn:hover {
    background: #cbd5e1;
    color: #0b1727;
}

/* No Results State */
.vacancies-no-results {
    text-align: center;
    padding: 55px 20px;
    background: #f8fafc;
    border: 1.5px dashed #cbd5e1;
    border-radius: 16px;
    margin: 25px 0;
    display: none;
}

.vacancies-no-results.is-visible {
    display: block;
}

.no-results-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: rgba(27, 191, 221, 0.12);
    color: #014f6e;
    display: grid;
    place-items: center;
    font-size: 22px;
}

.no-results-title {
    font-family: 'Archivo', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #0b1727;
    margin-bottom: 8px;
}

.no-results-desc {
    font-size: 15px;
    color: #64748b;
    max-width: 480px;
    margin: 0 auto 20px;
    line-height: 1.6;
}

.no-results-query-highlight {
    color: #014f6e;
    font-weight: 600;
}

.no-results-reset-btn {
    display: inline-flex;
    margin: 0 auto;
}

/* Horizontal List Container */
.vacancies-horizontal-list {
    display: flex;
    flex-direction: column;
}

/* Vacancy Row Item - Smooth Per-Box Scroll Animation */
.vacancy-row-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 38px 0;
    border-bottom: 1px solid #e2e8f0;
    opacity: 0;
    transform: translateY(44px);
    transition: opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1),
                transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.vacancy-row-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.vacancy-row-item:first-child {
    padding-top: 15px;
}

.vacancy-row-item:last-child {
    border-bottom: none;
}

.vacancy-row-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.vacancy-meta-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.vacancy-badge-category {
    font-size: 12px;
    font-weight: 700;
    color: #014f6e;
    background: rgba(1, 79, 110, 0.08);
    border: 1px solid rgba(1, 79, 110, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vacancy-meta-item {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.vacancy-meta-item i {
    color: #1bbfdd;
    font-size: 12px;
}

.vacancy-row-headline {
    margin: 0 0 14px 0;
}

.vacancy-row-headline a {
    font-family: 'Archivo', sans-serif;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.35;
    color: #1e293b;
    text-decoration: none;
    letter-spacing: -0.2px;
    transition: color 0.3s ease;
}

.vacancy-row-item:hover .vacancy-row-headline a {
    color: #014f6e;
}

.vacancy-row-summary {
    font-size: 15.5px;
    line-height: 1.7;
    color: #475569;
    font-weight: 400;
    margin: 0;
    max-width: 880px;
}

/* Action Button on the Right (matching Home page .homeAbout-btn) */
.vacancy-row-action {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.vacancy-row-action .homeAbout-btn {
    font-family: 'Archivo', sans-serif;
    border: none;
    outline: none;
    margin: 0;
    white-space: nowrap;
}

.vacancy-row-action .homeAbout-btn .homeAbout-btn-text {
    transition: color 0.3s ease;
}

.vacancy-row-action .homeAbout-btn:hover .homeAbout-btn-text {
    color: #ffffff;
}

/* ==========================================================================
   Vacancy Details Popup Modal
   ========================================================================== */
.vacancy-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(3, 10, 18, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.vacancy-modal-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

.vacancy-modal-dialog {
    width: 100%;
    max-width: 860px;
    max-height: 88vh;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(28px) scale(0.96);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.vacancy-modal-backdrop.is-open .vacancy-modal-dialog {
    transform: translateY(0) scale(1);
}

.vacancy-modal-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 88vh;
    overflow: hidden;
}

/* Modal Header */
.vacancy-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    padding: 28px 32px 24px 32px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.vacancy-modal-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #014f6e;
    margin-bottom: 6px;
}

.vacancy-modal-title {
    font-family: 'Archivo', sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: #0b1727;
    line-height: 1.25;
    margin: 0 0 12px 0;
}

.vacancy-modal-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

.vacancy-modal-meta span {
    font-size: 13.5px;
    font-weight: 600;
    color: #475569;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.vacancy-modal-meta i {
    color: #014f6e;
    font-size: 13px;
}

.vacancy-modal-close {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #475569;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
}

.vacancy-modal-close:hover {
    background: #014f6e;
    color: #ffffff;
    border-color: #014f6e;
    transform: rotate(90deg);
}

/* Modal Body */
.vacancy-modal-body {
    padding: 32px;
    overflow-y: auto;
    flex: 1;
}

.vacancy-modal-section {
    margin-bottom: 30px;
}

.vacancy-modal-section:last-child {
    margin-bottom: 0;
}

.vacancy-section-title {
    font-family: 'Archivo', sans-serif;
    font-size: 19px;
    font-weight: 700;
    color: #063649;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

.vacancy-section-title i {
    color: #1bbfdd;
    font-size: 17px;
}

.vacancy-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.vacancy-checklist li {
    position: relative;
    padding-left: 26px;
    font-size: 15px;
    line-height: 1.75;
    color: #334155;
    font-weight: 400;
}

.vacancy-checklist li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #014f6e 0%, #1bbfdd 100%);
    box-shadow: 0 0 6px rgba(27, 191, 221, 0.4);
}

/* Modal Footer */
.vacancy-modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 20px 32px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.vacancy-modal-footer-note {
    font-size: 14px;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.vacancy-modal-footer-note i {
    color: #014f6e;
}

.vacancy-email-text {
    color: #014f6e;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: rgba(27, 191, 221, 0.45);
    text-underline-offset: 3px;
    transition: color 0.25s ease, text-decoration-color 0.25s ease;
}

.vacancy-email-text:hover {
    color: #1bbfdd;
    text-decoration-color: #1bbfdd;
}

.vacancy-meta-email {
    color: #475569;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.25s ease;
}

.vacancy-meta-email:hover {
    color: #014f6e;
    text-decoration: underline;
}

.vacancy-apply-btn {
    padding: 13px 32px !important;
    font-size: 15px !important;
    gap: 10px;
}

.vacancy-apply-btn i {
    font-size: 13px;
    transition: transform 0.3s ease;
}

.vacancy-apply-btn:hover i {
    transform: translateX(4px);
}

/* Responsive adjustments for vacancies list & modal */
@media (max-width: 991px) {
    .vacancies-header-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }

    .vacancies-header-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .vacancy-search-box {
        width: 100%;
        box-sizing: border-box;
    }

    .vacancies-count-badge {
        align-self: flex-start;
    }

    .vacancy-row-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding: 30px 0;
    }

    .vacancy-row-action {
        width: 100%;
    }

    .vacancy-row-action .homeAbout-btn {
        width: auto;
    }

    .vacancy-row-headline a {
        font-size: 21px;
    }

    .vacancy-modal-dialog {
        max-height: 92vh;
        border-radius: 16px;
    }

    .vacancy-modal-header {
        padding: 24px;
    }

    .vacancy-modal-body {
        padding: 24px;
    }

    .vacancy-modal-footer {
        padding: 18px 24px;
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        text-align: center;
    }

    .vacancy-modal-footer-note {
        justify-content: center;
    }

    .vacancy-apply-btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .vacancies-header-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .vacancy-row-headline a {
        font-size: 19px;
    }

    .vacancy-row-summary {
        font-size: 14.5px;
    }

    .vacancy-modal-header {
        padding: 20px 18px;
    }

    .vacancy-modal-title {
        font-size: 20px;
    }

    .vacancy-modal-body {
        padding: 20px 18px;
    }

    .vacancy-section-title {
        font-size: 17px;
    }

    .vacancy-checklist li {
        font-size: 14px;
        line-height: 1.65;
    }
}