/* ═══════════════════════════════════════════════════════════════
   FRONTEND ADVERTISEMENTS
   ═══════════════════════════════════════════════════════════════ */

.ad-slot {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px 0;
    margin: 0 auto;
}

.ad-slot .ad-link {
    position: relative;
    display: inline-block;
    text-decoration: none;
    transition: transform .15s ease;
}
.ad-slot .ad-link:hover { transform: scale(1.005); }

.ad-slot .ad-link img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px -2px rgba(15,23,42,.1);
}

.ad-slot .ad-label {
    position: absolute;
    top: 4px;
    right: 4px;
    padding: 2px 6px;
    font-size: 9px;
    font-weight: 700;
    color: #fff;
    background: rgba(15,23,42,.65);
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: .5px;
    pointer-events: none;
}

/* Placement variants */
.ad-slot-homepage_top,
.ad-slot-jobs_top {
    background: #f8fafc;
    border-radius: 10px;
    padding: 14px 20px;
    margin: 16px auto;
    max-width: 970px;
}

.ad-slot-sidebar_home,
.ad-slot-sidebar_jobs,
.ad-slot-sidebar_cv,
.ad-slot-sidebar_mid,
.ad-slot-sidebar_left_top,
.ad-slot-sidebar_left_bottom,
.ad-slot-sidebar_job_details {
    padding: 12px;
    background: #fff;
    border: 1px solid #e8ecf1;
    border-radius: 12px;
    margin: 16px 0;
}
.ad-slot-sidebar_home .ad-link img,
.ad-slot-sidebar_jobs .ad-link img,
.ad-slot-sidebar_cv .ad-link img,
.ad-slot-sidebar_mid .ad-link img,
.ad-slot-sidebar_left_top .ad-link img,
.ad-slot-sidebar_left_bottom .ad-link img,
.ad-slot-sidebar_job_details .ad-link img {
    width: 100%;
}

.ad-slot-jobs_infeed,
.ad-slot-jobs_infeed_2,
.ad-slot-job_details_infeed {
    padding: 16px;
    margin: 20px 0;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
}

.ad-slot-footer,
.ad-slot-bottom_banner,
.ad-slot-bottom_banner_2 {
    padding: 16px 20px;
    margin: 20px auto;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    max-width: 1320px;
}

/* Sticky */
.ad-slot-sticky {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 50;
    padding: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 10px 30px -8px rgba(15,23,42,.2);
}
.ad-slot-sticky .ad-close {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #0f172a;
    color: #fff;
    border: 2px solid #fff;
    cursor: pointer;
    display: grid;
    place-items: center;
    font-size: 10px;
    z-index: 5;
}

/* Popup */
.ad-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15,23,42,.6);
    backdrop-filter: blur(3px);
}
.ad-popup-box {
    position: relative;
    max-width: 500px;
    width: 100%;
}
.ad-popup-box .ad-popup-close {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    border: 0;
    color: #0f172a;
    cursor: pointer;
    font-size: 16px;
    display: grid;
    place-items: center;
    box-shadow: 0 4px 12px rgba(0,0,0,.2);
    z-index: 5;
}
.ad-popup-box img {
    max-width: 100%;
    border-radius: 12px;
    display: block;
    margin: 0 auto;
}

/* Responsive */
@media (max-width: 900px) {
    .ad-slot-sidebar_left_top,
    .ad-slot-sidebar_left_bottom,
    .ad-slot-sidebar_mid {
        display: none;
    }
}
@media (max-width: 640px) {
    .ad-slot-jobs_infeed_2,
    .ad-slot-bottom_banner_2 {
        display: none;
    }
    .ad-slot-sticky {
        bottom: 10px;
        right: 10px;
        max-width: 250px;
    }
}