@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #f1f5f9;
    color: #0f172a;
    line-height: 1.65;
    overflow-x: hidden;
}

.page {
    max-width: 1280px;
    margin: 30px auto;
    display: flex;
    gap: 28px;
    padding: 0 20px 50px;
    min-height: 60vh;
}

.main {
    flex: 1;
    min-width: 0;
    width: 100%;
}

.title {
    font-size: 30px;
    color: #0f172a;
    margin: 0 0 16px 0;
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: -0.6px;
    word-wrap: break-word;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 12px;
    margin-bottom: 18px;
}

.status-badge.active {
    background: #e8f5e9;
    color: #008d4c;
    border: 2px solid #00a65a;
}

.status-badge.expired {
    background: #fee2e2;
    color: #991b1b;
    border: 2px solid #ef4444;
}

.job-content-wrap {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    margin-bottom: 24px;
}

.image-col {
    flex: 0 0 420px;
    max-width: 420px;
    width: 100%;
}

.image {
    border-radius: 16px;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    position: relative;
    cursor: pointer;
    width: 100%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.image img {
    width: 100%;
    height: auto;
    display: block;
    max-width: 100%;
}

.watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    color: #00a65a;
    font-size: 85px;
    font-weight: 900;
    pointer-events: none;
    white-space: nowrap;
    opacity: 0.45;
    text-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.zoom-hint {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 166, 90, 0.95);
    color: white;
    padding: 8px 14px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
}

.download-btn {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding: 14px 20px;
    background: linear-gradient(135deg,#f59e0b,#ef4444);
    color: #fff;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(245,158,11,0.25);
}

.download-btn:active {
    transform: scale(0.98);
}

.details-col {
    flex: 1;
    min-width: 0;
    width: 100%;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.info-item {
    display: flex;
    gap: 10px;
    padding: 14px 16px;
    background: #fff;
    border-radius: 12px;
    font-size: 14px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.info-item i {
    color: #00a65a;
    font-size: 18px;
    width: 22px;
    flex-shrink: 0;
}

.info-item div {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.info-item span {
    font-size: 10px;
    color: #94a3b8;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.info-item strong {
    font-size: 13px;
    color: #0f172a;
    font-weight: 700;
    word-wrap: break-word;
}

.info-item strong.highlight {
    color: #008d4c;
}

.badge {
    text-align: center;
    border-radius: 12px;
    margin: 18px 0;
}

.live {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #ef4444, #f97316);
    color: #fff;
    padding: 13px 22px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 16px;
    animation: pulse 1.5s infinite;
    box-shadow: 0 6px 18px rgba(239,68,0.3);
}

.expired {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #1f2937;
    color: #fff;
    padding: 12px 22px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 16px;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.04); }
    100% { transform: scale(1); }
}

.apply-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #00c853 0%, #009688 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,166,90,0.25);
    width: 100%;
    margin-top: 16px;
}

.apply-btn:active {
    transform: scale(0.98);
}

.apply-btn i:first-child {
    font-size: 22px;
}

.apply-btn span {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.apply-btn strong {
    font-size: 16px;
    font-weight: 800;
}

.apply-btn small {
    font-size: 11px;
    opacity: 0.9;
}

.apply-btn.disabled {
    background: #94a3b8;
    cursor: not-allowed;
    box-shadow: none;
}

.desc-section {
    margin-top: 28px;
    padding-top: 28px;
    border-top: 2px solid #e2e8f0;
}

.desc-section h3 {
    margin: 0 0 10px 0;
    color: #0f172a;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.desc-section h3 i {
    color: #00a65a;
}

.desc-content {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid #00a65a;
}

.desc-content p {
    color: #334155;
    line-height: 1.8;
    font-size: 14px;
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.side {
    width: 340px;
    flex-shrink: 0;
}

.sidebar-title {
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 14px 0;
    color: #1b5e20;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e8f5e9;
}

.tender-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tender-item {
    margin-bottom: 10px;
}

.tender-item:last-child {
    margin-bottom: 0;
}

.tender-item a {
    display: block;
    padding: 12px 14px;
    background: #fff;
    border-radius: 12px;
    text-decoration: none;
    color: #0f172a;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid #e2e8f0;
    line-height: 1.5;
}

.tender-item a:active {
    background: #f8fafc;
}

.no-job {
    text-align: center;
    padding: 80px 40px;
    background: #fff;
    border-radius: 16px;
    color: #64748b;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    font-size: 18px;
    margin: 50px auto;
    max-width: 700px;
}

.no-job i {
    font-size: 64px;
    color: #cbd5e1;
    display: block;
    margin-bottom: 20px;
}

/* LIGHTBOX */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    cursor: zoom-out;
}

.lightbox-content {
    position: relative;
    max-width: 95vw;
    max-height: 95vh;
    z-index: 2;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 95vh;
    border-radius: 12px;
    display: block;
}

.lightbox-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    color: #00a65a;
    font-size: 95px;
    font-weight: 900;
    pointer-events: none;
    white-space: nowrap;
    opacity: 0.45;
}

.lightbox-close,.lightbox-download {
    position: absolute;
    top: 10px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    backdrop-filter: blur(10px);
}

.lightbox-close {
    right: 10px;
}

.lightbox-download {
    right: 64px;
    background: rgba(0, 166, 90, 0.9);
}

/* ========== MOBILE RESPONSIVE ========== */
@media (max-width: 1024px) {
   .page {
        gap: 24px;
    }
   .image-col {
        flex: 0 0 360px;
        max-width: 360px;
    }
}

@media (max-width: 900px) {
   .page {
        flex-direction: column;
        padding: 0 12px 30px;
        margin: 16px auto;
    }
   .side {
        width: 100%;
    }
   .job-content-wrap {
        flex-direction: column;
        gap: 20px;
    }
   .image-col {
        flex: 1 1 100%;
        max-width: 100%;
    }
   .info-grid {
        grid-template-columns: 1fr;
    }
   .title {
        font-size: 26px;
    }
}

@media (max-width: 600px) {
   .page {
        padding: 0 10px 20px;
    }
   .title {
        font-size: 22px;
        margin-bottom: 10px;
    }
   .watermark {
        font-size: 55px;
        letter-spacing: 1px;
    }
   .lightbox-watermark {
        font-size: 60px;
    }
   .info-item {
        padding: 12px;
    }
   .info-item strong {
        font-size: 12px;
    }
   .desc-section h3 {
        font-size: 20px;
    }
   .desc-content {
        padding: 16px;
    }
   .desc-content p {
        font-size: 13px;
    }
   .apply-btn {
        padding: 14px 18px;
    }
   .apply-btn strong {
        font-size: 15px;
    }
   .lightbox-close,.lightbox-download {
        top: 15px;
        width: 40px;
        height: 40px;
    }
   .lightbox-download {
        right: 60px;
    }
}

@media (max-width: 480px) {
   .title {
        font-size: 20px;
    }
   .watermark {
        font-size: 48px;
    }
   .lightbox-watermark {
        font-size: 52px;
    }
   .zoom-hint {
        font-size: 10px;
        padding: 6px 12px;
    }
   .info-grid {
        gap: 10px;
    }
}
