/* ============================================================
   work-permit-detail.css — Trip Designer Work Permit Detail
   ============================================================ */

/* Hero — shared B2C pattern */
.wpd-hero {
    position: relative;
    background: url('../../images/hero-beach.jpg') center/cover no-repeat, #0e1f5c;
    padding: 36px 0 56px;
    overflow: hidden;
}
.wpd-hero::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(8,17,84,.82) 0%, rgba(30,64,175,.55) 50%, rgba(4,16,124,.82) 100%);
    z-index: 0; pointer-events: none;
}
.wpd-hero::after {
    content: ''; position: absolute;
    bottom: -1px; left: 0; right: 0; height: 40px;
    background: #f4f6fb;
    clip-path: ellipse(70% 100% at 50% 100%);
    z-index: 1; pointer-events: none;
}
.wpd-hero-dots {
    position: absolute; inset: 0; pointer-events: none; z-index: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 40px 40px;
}
.wpd-hero-content { position: relative; z-index: 2; padding: 0 20px; text-align: center; }
.wpd-hero-badge {
    display: inline-flex; align-items: center; gap: 7px;
    background: rgba(251,191,36,.15); border: 1px solid rgba(251,191,36,.4);
    color: #fcd34d; font-size: 11px; font-weight: 800;
    letter-spacing: 1.4px; text-transform: uppercase;
    padding: 5px 14px; border-radius: 5px; margin-bottom: 12px;
    box-shadow: 0 4px 16px rgba(251,191,36,.18);
}
.wpd-hero-title {
    font-size: 2.1rem; font-weight: 900; color: #fff;
    line-height: 1.25; margin: 0 0 14px;
    letter-spacing: -0.3px;
    text-shadow: 0 4px 24px rgba(0,0,0,.3);
}
.wpd-hero-meta { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.wpd-hero-pill {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15);
    color: #fff; font-size: 12px; font-weight: 700;
    padding: 7px 14px; border-radius: 5px;
    backdrop-filter: blur(8px); transition: background .2s, transform .2s;
}
.wpd-hero-pill:hover { background: rgba(255,255,255,.18); transform: translateY(-2px); }
.wpd-hero-pill i { color: #fbbf24; }

/* Body */
.wpd-body { background: #f4f6fb; padding: 36px 0 56px; }
.wpd-flex { display: flex; gap: 24px; align-items: flex-start; }
.wpd-main { flex: 1; min-width: 0; }
.wpd-sidebar { width: 300px; flex-shrink: 0; position: sticky; top: 80px; align-self: flex-start; }

/* Back buttons bar (shared pattern) */
.wpd-back-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.wpd-back {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: .9rem; font-weight: 700; text-decoration: none;
    padding: 10px 20px; border-radius: 5px;
    transition: all .2s; cursor: pointer;
    border: 1.5px solid transparent;
}
.wpd-back i { font-size: .95rem; transition: transform .2s; }
.wpd-back:hover { text-decoration: none; transform: translateY(-2px); }
.wpd-back:hover i { transform: translateX(-3px); }
.wpd-back-secondary { background: #fff; color: #64748b; border-color: #e2e8f0; box-shadow: 0 1px 4px rgba(0,0,0,.04); }
.wpd-back-secondary:hover { background: #f8fafc; color: var(--tp, #04107C); border-color: var(--tp, #04107C); box-shadow: 0 6px 18px rgba(4,16,124,.12); }
.wpd-back-primary { background: linear-gradient(135deg, var(--tp, #04107C) 0%, #1e40af 100%); color: #fff; border-color: transparent; box-shadow: 0 4px 14px rgba(4,16,124,.25); }
.wpd-back-primary:hover { background: linear-gradient(135deg, #020a5e 0%, var(--tp, #04107C) 100%); color: #fff; box-shadow: 0 8px 24px rgba(4,16,124,.35); }
.wpd-back-primary:hover i { transform: translateX(0) rotate(-10deg); }

/* Cards */
.wpd-card { background: #fff; border-radius: 5px; box-shadow: 0 2px 12px rgba(0,0,0,.06); border: 1px solid #e8eaf0; margin-bottom: 20px; overflow: hidden; }
.wpd-card-header { display: flex; align-items: center; gap: 10px; padding: 13px 20px; background: #f8f9fc; border-bottom: 2px solid #e8eaf0; color: #1e293b; font-size: 14px; font-weight: 800; }
.wpd-card-header i { font-size: 15px; color: var(--tp, #04107C); }
.wpd-card-body { padding: 20px; }
.wpd-html { font-size: 13.5px; color: #475569; line-height: 1.75; }
.wpd-html ul, .wpd-html ol { padding-left: 20px; margin: 8px 0; }
.wpd-html ul li { list-style: disc; margin-bottom: 5px; }
.wpd-html ol li { margin-bottom: 5px; }
.wpd-html p { margin-bottom: 8px; }
.wpd-html font, .wpd-html span { font-family: inherit !important; font-size: inherit !important; color: inherit !important; }

/* Sidebar */
.wpd-info-card { background: #fff; border-radius: 5px; box-shadow: 0 4px 20px rgba(4,16,124,.12); border: 2px solid var(--tp, #04107C); overflow: hidden; }
.wpd-info-header { background: var(--tp, #04107C); padding: 20px; text-align: center; }
.wpd-info-label { color: rgba(255,255,255,.75); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; }
.wpd-info-country {
    color: #fff; font-size: 22px; font-weight: 900; line-height: 1.2; margin: 8px 0 0;
    display: flex; align-items: center; justify-content: center; gap: 10px;
}
.wpd-info-body { padding: 18px 20px; }
.wpd-info-row { display: flex; align-items: flex-start; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid #f0f3fb; font-size: 13px; gap: 8px; }
.wpd-info-row:last-child { border-bottom: none; }
.wpd-info-row-label { color: #64748b; font-weight: 600; display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.wpd-info-row-label i { color: var(--tp, #04107C); }
.wpd-info-row-val { font-weight: 700; color: #1e293b; text-align: right; }
.wpd-apply-btn {
    display: block; width: 100%; padding: 14px; margin-top: 16px;
    background: linear-gradient(135deg, var(--tp, #04107C), #1a2fa8);
    color: #fff; text-align: center; font-size: 14px; font-weight: 800;
    border: none; border-radius: 5px; cursor: pointer;
    text-decoration: none; letter-spacing: .3px; transition: opacity .2s;
}
.wpd-apply-btn:hover { opacity: .9; color: #fff; text-decoration: none; }

/* Similar */
.wpd-similar { margin-top: 32px; }
.wpd-similar-head { font-size: 15px; font-weight: 800; color: #1e293b; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.wpd-similar-head i { color: var(--tp, #04107C); }
.wpd-similar-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.wpd-sim-card {
    background: #fff; border-radius: 5px; border: 1.5px solid #e2e8f0;
    overflow: hidden; text-decoration: none; color: inherit; transition: all .2s;
    display: flex; flex-direction: column;
}
.wpd-sim-card:hover { transform: translateY(-4px); box-shadow: 0 10px 26px rgba(4,16,124,.14); border-color: #c7d2fe; text-decoration: none; color: inherit; }
.wpd-sim-img { height: 170px; position: relative; overflow: hidden; background: linear-gradient(135deg,#1e3a5f,var(--tp, #04107C)); }
.wpd-sim-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.wpd-sim-card:hover .wpd-sim-img img { transform: scale(1.05); }
.wpd-sim-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.wpd-sim-body { padding: 14px 16px; flex: 1; }
.wpd-sim-country { font-size: 14px; font-weight: 800; color: var(--tp, #04107C); margin-bottom: 6px; }
.wpd-sim-salary { font-size: 12.5px; color: #64748b; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 991px) {
    .wpd-similar-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .wpd-similar-grid { grid-template-columns: 1fr; }
    .wpd-sim-img { height: 180px; }
}

/* Mobile fixed bar */
.wpd-mobile-book {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 1050;
    padding: 12px 16px; background: #fff; box-shadow: 0 -4px 16px rgba(0,0,0,.12);
}
.wpd-mobile-book-btn {
    display: block; width: 100%; padding: 14px;
    background: linear-gradient(135deg, var(--tp, #04107C), #1a2fa8);
    color: #fff; text-align: center; font-size: 15px; font-weight: 800;
    border-radius: 5px; text-decoration: none; letter-spacing: .3px;
}
.wpd-mobile-book-btn:hover { opacity: .9; color: #fff; text-decoration: none; }

@media (max-width: 900px) {
    .wpd-flex { flex-direction: column; }
    .wpd-sidebar { width: 100%; position: static; }
    .wpd-body { padding-bottom: 80px; }
    .wpd-apply-btn { display: none; }
    .wpd-hero-title { font-size: 20px; }
    .wpd-similar-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
    .wpd-similar-grid { grid-template-columns: repeat(2, 1fr); }
}
