.sm-detail-page,
.sm-vacatures-page {
    background: #ffffff;
    padding: 48px clamp(24px, 4vw, 56px);
    overscroll-behavior: none;
}

.sm-vacatures-page *,
.sm-detail-page * {
    box-shadow: none !important;
    outline: none !important;
    -webkit-tap-highlight-color: transparent;
}

.sm-vacatures-shell {
    max-width: 1480px;
    margin: 0 auto;
}

.sm-detail-shell {
    max-width: 1240px;
    margin: 0 auto;
}

.sm-vacatures-heading {
    text-align: center;
    margin-bottom: 40px;
}

.sm-eyebrow {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    background: #e9fff5;
    color: #129662;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sm-vacatures-heading h1 {
    margin: 14px 0 10px;
    color: #1f2940;
    font-size: clamp(32px, 4vw, 52px);
    line-height: 1.05;
}

.sm-detail-card h1 {
    margin: 0 0 8px !important;
    color: #1f2940 !important;
    font-size: clamp(16px, 1.3vw, 20px) !important;
    line-height: 1.2 !important;
    font-weight: 800 !important;
}

.sm-vacatures-heading p,
.sm-detail-subtitle,
.sm-detail-section p,
.sm-detail-meta p,
.sm-description,
.sm-feedback {
    color: #566274;
}

.sm-detail-subtitle {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin: 0;
}

.sm-detail-company-line {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.sm-detail-logo-badge {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #e2e9f1;
    padding: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.sm-detail-logo-image,
.sm-detail-logo-fallback {
    width: 100%;
    height: 100%;
    border-radius: 999px;
}

.sm-detail-logo-image {
    object-fit: cover;
    display: block;
}

.sm-detail-logo-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #43e596 0%, #1cc986 100%);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
}

.sm-vacatures-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    align-items: stretch;
}

.sm-vacature-card,
.sm-detail-card {
    position: relative;
    border: 1px solid #e4ebf3;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(31, 41, 64, 0.08) !important;
}

.sm-vacature-card {
    display: flex;
    flex-direction: column;
    /* Fixed card height to make all cards equal */
    height: 660px;
    padding: 24px;
    cursor: pointer;
    transition: transform 0.2s ease;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
    box-shadow: none !important;
}

.sm-vacature-card:hover {
    transform: translateY(-4px);
}



.sm-vacature-card:focus,
.sm-vacature-card:active,
.js-stagematch-card:focus,
.js-stagematch-card:active {
    outline: none;
    transform: none;
}

.sm-vacature-top {
    display: flex;
    gap: 20px;
    height: 380px;
    min-height: 380px;
    max-height: 380px;
    align-items: stretch;
}

.sm-vacature-hero-column {
    flex: 0 0 44%;
    max-width: 44%;
    height: 100%;
    min-height: 380px;
    max-height: 380px;
}

.sm-vacature-hero-media {
    position: relative;
    height: 380px;
    min-height: 380px;
    max-height: 380px;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(180deg, #edf9f3 0%, #dff3e7 100%);
}

.sm-vacature-hero-image,
.sm-gallery-thumb img,
.sm-vacature-logo-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sm-vacature-hero-media > .sm-vacature-hero-image,
.sm-vacature-hero-media > img,
.sm-vacature-hero-media picture,
.sm-vacature-hero-media picture img {
    position: absolute;
    inset: 0;
    width: 100% !important;
    min-width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    min-height: 100% !important;
    object-fit: cover !important;
    object-position: center center;
    image-rendering: auto;
}

.sm-vacature-hero-media picture {
    display: block;
}

.sm-vacature-hero-media > .sm-vacature-fallback-image {
    object-fit: contain !important;
    padding: 28px;
    background: #a7ccec;
}

/* Keep logo badge above image */
.sm-vacature-logo-badge {
    z-index: 3;
}

.sm-vacature-logo-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 60px;
    height: 60px;
    border-radius: 999px;
    background: #fff;
    box-shadow: none;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sm-vacature-logo-image,
.sm-vacature-logo-fallback {
    border-radius: 999px;
}

.sm-vacature-logo-fallback,
.sm-vacature-placeholder,
.sm-gallery-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #43e596 0%, #1cc986 100%);
    color: #fff;
    font-weight: 800;
}

.sm-vacature-placeholder {
    position: absolute;
    inset: 0;
    height: 380px;
    min-height: 380px;
    max-height: 380px;
    font-size: 42px;
}

.sm-gallery-placeholder {
    font-size: 24px;
}

.sm-vacature-main {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
}

.sm-vacature-title {
    margin: 0;
    color: #1f2940;
    font-size: clamp(15px, 1.7vw, 22px) !important;
    line-height: 1.15 !important;
    font-weight: 800;
    min-height: 2.3em;
    max-height: 2.3em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.sm-vacature-main .sm-vacature-title,
.sm-vacature-card h3.sm-vacature-title {
    font-size: clamp(15px, 1.7vw, 22px) !important;
    line-height: 1.15 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.sm-vacature-company {
    margin: 0;
    color: #20b874;
    font-weight: 700;
    min-height: 1.45em;
    line-height: 1.45;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.sm-vacature-location {
    margin: 0;
    min-height: 2.8em;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.sm-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 58px;
    align-content: flex-start;
}

.sm-badge {
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
}

.sm-badge-soft {
    background: #e9fff5;
    color: #0a8f5a;
}

.sm-badge-muted {
    background: #eef1f5;
    color: #5f6b7a;
}

.sm-gallery {
    display: grid;
    grid-template-columns: repeat(3, 72px);
    justify-content: flex-start;
    gap: 8px;
    margin-top: auto;
    height: 96px;
    min-height: 96px;
    max-height: 96px;
}

.sm-gallery-thumb {
    width: 72px;
    max-width: 100%;
    height: 96px;
    min-height: 96px;
    max-height: 96px;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 12px;
    background: #edf8f2;
}

.sm-gallery:empty,
.sm-gallery-thumb:has(.sm-gallery-placeholder) {
    display: none;
}

.sm-description-wrap {
    margin-top: 18px;
    background: #eef3ef;
    border-radius: 18px;
    padding: 14px 16px;
    height: 132px;
    min-height: 132px;
    max-height: 132px;
    display: flex;
    align-items: flex-start;
    overflow: hidden;
    overscroll-behavior: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    user-select: none;
}

.sm-description {
    margin: 0;
    line-height: 1.58;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

.sm-card-actions,
.sm-detail-actions,
.sm-vacatures-more {
    margin-top: 22px;
}

.sm-card-actions {
    margin-top: 22px;
    display: flex;
    gap: 12px;
    min-height: 52px;
    align-items: center;
}

.sm-button,
.sm-load-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    min-height: 48px;
    padding: 12px 24px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #43e596 0%, #1cc986 100%);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    box-shadow: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    text-align: center;
}

.sm-button:hover,
.sm-button:focus,
.sm-button:active,
.sm-load-more:hover,
.sm-load-more:focus,
.sm-load-more:active {
    color: #fff;
    text-decoration: none;
    box-shadow: none;
    outline: none;
}

.sm-button-secondary {
    background: #fff;
    color: #465365;
    border: 1px solid #d6dee8;
    box-shadow: none;
}

.sm-button-secondary:hover,
.sm-button-secondary:focus,
.sm-button-secondary:active {
    background: #fff;
    color: #465365;
    border-color: #d6dee8;
    text-decoration: none;
    transform: none;
}

.sm-detail-card {
    padding: 28px;
}

.sm-detail-photo-layout {
    display: grid;
    grid-template-columns: minmax(180px, 280px) minmax(0, 1fr);
    gap: 28px;
    align-items: stretch;
    margin-bottom: 28px;
}

.sm-detail-photo-layout.has-single-photo {
    grid-template-columns: minmax(180px, 280px);
}

.sm-detail-photo-hero,
.sm-detail-photo-thumb {
    position: relative;
    overflow: hidden;
    background: #edf8f2;
}

.sm-detail-photo-hero {
    aspect-ratio: 3 / 4;
    border-radius: 18px;
}

.sm-detail-photo-thumbs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    align-items: end;
}

.sm-detail-photo-thumb {
    aspect-ratio: 1 / 1;
    border-radius: 14px;
}

.sm-detail-photo-hero img,
.sm-detail-photo-thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.sm-detail-photo-hero .sm-detail-fallback-image {
    object-fit: contain;
    padding: 24px;
    background: #a7ccec;
}

.sm-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.sm-status {
    display: inline-flex;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.sm-status.is-open {
    background: #e9fff5;
    color: #0a8f5a;
}

.sm-status.is-closed {
    background: #eef1f5;
    color: #5f6b7a;
}

.sm-detail-section {
    margin-top: 28px;
}

.sm-detail-section h2 {
    margin: 0 0 8px !important;
    color: #1f2940 !important;
    font-size: clamp(14px, 1.1vw, 18px) !important;
    line-height: 1.25 !important;
    font-weight: 800 !important;
}

.sm-detail-section p,
.sm-detail-meta p {
    margin: 0 0 8px !important;
    font-size: 14px !important;
    line-height: 1.55 !important;
}

.sm-detail-badges {
    margin-top: 18px;
}

.sm-app-note {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    width: fit-content;
    margin: 16px 0 0;
    padding: 0;
    background: transparent;
    color: #20b874;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 700;
    text-decoration: none;
}

.sm-app-note:hover,
.sm-app-note:focus,
.sm-app-note:active {
    color: #20b874;
    text-decoration: none;
}

.sm-app-note strong {
    color: #20b874;
    font-weight: 900;
}

.sm-store-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    justify-self: end;
}

.sm-store-badge {
    display: inline-flex;
    align-items: center;
    height: 54px;
    text-decoration: none;
}

.sm-store-badge img {
    display: block;
    width: auto;
    height: 54px;
    max-width: 100%;
    object-fit: contain;
}

.sm-detail-actions {
    display: grid;
    grid-template-columns: max-content minmax(260px, 1fr);
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.sm-detail-action-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.sm-alert {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid transparent;
}

.sm-alert-warning {
    background: #fff7e8;
    border-color: #f1d69b;
    color: #7c5b16;
}

.sm-alert-info {
    background: #eef7ff;
    border-color: #c7ddf5;
    color: #335677;
}

.sm-alert-muted {
    margin-top: 18px;
    background: #f4f6f8;
    border-color: #dbe3eb;
    color: #526171;
}

.sm-vacatures-more {
    text-align: center;
}

.sm-feedback {
    margin-top: 12px;
    min-height: 24px;
}

.widget_recent_entries,
.widget_recent_comments,
.widget_block:has(.wp-block-latest-posts),
.widget_block:has(.wp-block-latest-comments),
.wp-block-latest-posts,
.wp-block-latest-comments {
    display: none !important;
}

@media (max-width: 991px) {
    .sm-vacatures-grid {
        grid-template-columns: 1fr;
    }

    .sm-vacature-top,
    .sm-detail-header {
        flex-direction: column;
        height: auto;
        min-height: 0;
        max-height: none;
    }

    .sm-vacature-hero-column {
        flex: 1 1 auto;
        max-width: none;
        min-height: 220px;
        max-height: 220px;
    }

    .sm-vacature-hero-media {
        height: 220px;
        max-height: 220px;
        min-height: 220px;
    }

    .sm-vacature-placeholder {
        height: 220px;
        min-height: 220px;
        max-height: 220px;
    }

    .sm-vacature-title,
    .sm-vacature-main .sm-vacature-title,
    .sm-vacature-card h3.sm-vacature-title {
        font-size: clamp(18px, 4vw, 24px) !important;
    }

    .sm-detail-photo-layout {
        grid-template-columns: minmax(160px, 220px) minmax(0, 1fr);
        gap: 18px;
    }

    .sm-detail-photo-layout.has-single-photo {
        grid-template-columns: minmax(160px, 220px);
    }

    .sm-detail-photo-thumbs {
        gap: 12px;
    }
}

@media (max-width: 1180px) and (min-width: 992px) {
    .sm-vacatures-shell {
        max-width: 820px;
    }

    .sm-vacatures-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .sm-detail-page,
    .sm-vacatures-page {
        padding: 32px 18px;
    }


    .sm-vacature-card,
    .sm-detail-card {
        padding: 18px;
        border-radius: 20px;
    }

    .sm-gallery {
        grid-template-columns: repeat(2, 72px);
    }

    .sm-detail-photo-layout {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 20px;
    }

    .sm-detail-photo-layout.has-single-photo {
        grid-template-columns: 1fr;
    }

    .sm-detail-photo-hero {
        aspect-ratio: 16 / 10;
        border-radius: 16px;
    }

    .sm-detail-photo-thumbs {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .sm-detail-photo-thumb {
        border-radius: 10px;
    }

    .sm-button,
    .sm-load-more {
        width: 100%;
    }

    .sm-detail-actions {
        grid-template-columns: max-content minmax(180px, 1fr);
        align-items: center;
    }

    .sm-detail-action-buttons {
        flex-direction: row;
    }

    .sm-detail-action-buttons .sm-button {
        width: auto;
    }

    .sm-store-badges {
        justify-content: flex-end;
        justify-self: end;
    }

    .sm-store-badge {
        height: 48px;
    }

    .sm-store-badge img {
        height: 48px;
    }
}

@media (max-width: 520px) {
    .sm-detail-actions {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .sm-detail-action-buttons {
        flex-direction: column;
    }

    .sm-detail-action-buttons .sm-button {
        width: 100%;
    }
}
