/* ========================================
   HSU Lowongan Kerja - Public Styles
   ======================================== */

/* Elementor Reset - isolate our styles from theme */
.elementor-widget .hsu-lowongan-grid,
.elementor-widget .hsu-lowongan-card,
.elementor-widget .hsu-form,
.elementor-widget .hsu-section,
.hsu-lowongan-grid,
.hsu-lowongan-card,
.hsu-form,
.hsu-section {
    all: revert;
    box-sizing: border-box;
}

/* Force our font inside Elementor */
[class*="hsu-"] {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    box-sizing: border-box;
}
[class*="hsu-"] *, [class*="hsu-"] *::before, [class*="hsu-"] *::after {
    box-sizing: border-box;
}

/* Reset & Base */
.hsu-single-wrap, .hsu-archive-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Banner */
.hsu-banner {
    margin-bottom: 25px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.hsu-banner-img {
    width: 100%;
    display: block;
    object-fit: cover;
    max-height: 280px;
}
.hsu-banner-default {
    background: linear-gradient(135deg, #1a237e 0%, #283593 50%, #3949ab 100%);
    color: #fff;
    text-align: center;
    padding: 60px 20px;
}
.hsu-banner-title {
    font-size: 3em;
    font-weight: 800;
    letter-spacing: 3px;
    margin: 0 0 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}
.hsu-banner-closing {
    font-size: 1.2em;
    opacity: 0.9;
    margin: 0;
}

/* Content Grid */
.hsu-content-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    align-items: start;
}

/* Job Header */
.hsu-job-header {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e8eaf6;
}
.hsu-job-title {
    font-size: 28px;
    color: #1a237e;
    margin: 0 0 12px;
    font-weight: 700;
    line-height: 1.3;
}
.hsu-job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.9em;
    color: #666;
}
.hsu-job-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.hsu-meta-expired {
    color: #d32f2f !important;
    font-weight: 600;
}

/* Share Section */
.hsu-share-section {
    background: #f5f5f5;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
}
.hsu-share-section h3 {
    margin: 0 0 15px;
    color: #1a237e;
    font-size: 1em;
}
.hsu-share-row {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}
.hsu-share-qr {
    flex-shrink: 0;
}
.hsu-qr-img {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.hsu-share-links {
    flex: 1;
}
.hsu-share-input-group {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}
.hsu-share-input-group .hsu-input {
    flex: 1;
}
.hsu-social-share {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.hsu-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border-radius: 20px;
    color: #fff;
    text-decoration: none;
    font-size: 0.85em;
    font-weight: 500;
    transition: opacity 0.2s;
}
.hsu-share-btn:hover { opacity: 0.85; color: #fff; }
.hsu-share-wa { background: #25d366; }
.hsu-share-fb { background: #1877f2; }
.hsu-share-tw { background: #1da1f2; }
.hsu-share-tg { background: #0088cc; }

/* Sections */
.hsu-section {
    margin-bottom: 25px;
}
.hsu-section-title {
    font-size: 20px;
    color: #1a237e;
    margin: 0 0 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e8eaf6;
    font-weight: 600;
}
.hsu-section-body {
    line-height: 1.7;
    color: #333;
}
.hsu-section-body p { margin: 0 0 12px; }
.hsu-section-body h3 { color: #333; margin: 15px 0 8px; }

/* Toggle / Accordion Sections */
.hsu-toggle-header {
    cursor: pointer !important;
    user-select: none !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding-right: 10px !important;
    margin-bottom: 0 !important;
}
.hsu-toggle-header:hover {
    opacity: 0.8;
}
.hsu-toggle-icon {
    font-size: 14px !important;
    transition: transform 0.3s ease !important;
    display: inline-block !important;
    flex-shrink: 0 !important;
    margin-left: 10px !important;
}
.hsu-toggle.is-open .hsu-toggle-icon {
    transform: rotate(180deg) !important;
}
.hsu-toggle.is-open .hsu-toggle-header {
    padding-bottom: 8px !important;
    margin-bottom: 15px !important;
}

.hsu-numbered-list, .hsu-bullet-list {
    padding-left: 20px;
    margin: 0;
}
.hsu-numbered-list li, .hsu-bullet-list li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* Deadline Notice */
.hsu-deadline-notice {
    background: #fff3e0 !important;
    border-left: 4px solid #ff9800 !important;
    padding: 12px 18px !important;
    border-radius: 0 8px 8px 0 !important;
    margin: 20px 0 !important;
    font-weight: 500 !important;
    color: #e65100 !important;
}

/* Form */
.hsu-form {
    background: #fff !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 12px !important;
    padding: 28px !important;
}
.hsu-form-group {
    margin-bottom: 18px !important;
}
.hsu-form-group label {
    display: block !important;
    font-weight: 600 !important;
    margin-bottom: 6px !important;
    color: #333 !important;
    font-size: 0.95em !important;
}
.hsu-required { color: #d32f2f !important; }
.hsu-input, .hsu-textarea {
    width: 100% !important;
    padding: 11px 14px !important;
    border: 1px solid #ccc !important;
    border-radius: 8px !important;
    font-size: 0.95em !important;
    font-family: inherit !important;
    transition: border-color 0.2s !important;
    box-sizing: border-box !important;
    background: #fff !important;
    color: #333 !important;
}
.hsu-input:focus, .hsu-textarea:focus {
    border-color: #1a237e !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(26,35,126,0.1) !important;
}
.hsu-input-readonly {
    background: #f5f5f5 !important;
    color: #666 !important;
}
.hsu-textarea { resize: vertical !important; }
.hsu-form-row {
    display: flex !important;
    gap: 15px !important;
}
.hsu-half { flex: 1 !important; }

/* File Upload */
.hsu-file-upload { position: relative; }
.hsu-file-input {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    top: 0;
    left: 0;
    z-index: 2;
}
.hsu-file-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 2px dashed #ccc;
    border-radius: 6px;
    background: #fafafa;
    transition: border-color 0.2s, background 0.2s;
    cursor: pointer;
}
.hsu-file-upload:hover .hsu-file-label {
    border-color: #1a237e;
    background: #e8eaf6;
}
.hsu-file-icon { font-size: 1.5em; }
.hsu-file-text { color: #888; font-size: 0.9em; }

.hsu-berkas-info {
    background: #fff8e1;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
}
.hsu-berkas-info ol { margin: 5px 0 0 20px; }
.hsu-berkas-info li { margin-bottom: 4px; }

.hsu-checkbox-group {
    padding: 10px 0;
}
.hsu-checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: normal !important;
}
.hsu-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

/* Buttons */
.hsu-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 10px 24px !important;
    border-radius: 8px !important;
    font-size: 0.95em !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    font-family: inherit !important;
    line-height: 1.4 !important;
}
.hsu-btn-primary {
    background: #1a237e !important;
    color: #fff !important;
}
.hsu-btn-primary:hover {
    background: #283593 !important;
    color: #fff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(26,35,126,0.3) !important;
}
.hsu-btn-outline {
    background: transparent !important;
    border: 2px solid #1a237e !important;
    color: #1a237e !important;
}
.hsu-btn-outline:hover {
    background: #1a237e !important;
    color: #fff !important;
}
.hsu-btn-full { width: 100% !important; }
.hsu-btn-sm { padding: 6px 14px !important; font-size: 0.85em !important; }

/* Alerts */
.hsu-alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}
.hsu-alert-warning {
    background: #fff3e0;
    border-left: 4px solid #ff9800;
    color: #e65100;
}
.hsu-alert-success {
    background: #e8f5e9;
    border-left: 4px solid #4caf50;
    color: #2e7d32;
}
.hsu-alert-error {
    background: #fce4ec;
    border-left: 4px solid #f44336;
    color: #c62828;
}

/* Form Message */
.hsu-form-message {
    padding: 12px 16px;
    border-radius: 6px;
    margin-top: 15px;
    font-weight: 500;
}
.hsu-form-message.success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}
.hsu-form-message.error {
    background: #fce4ec;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

/* Note */
.hsu-note {
    color: #888;
    font-size: 0.9em;
    margin-top: 20px;
}

/* Sidebar */
.hsu-sidebar {
    position: sticky;
    top: 20px;
}
.hsu-sidebar-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.hsu-sidebar-card h3 {
    font-size: 1.05em;
    color: #1a237e;
    margin: 0 0 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e8eaf6;
}
.hsu-sidebar-info {
    margin-bottom: 15px;
}
.hsu-info-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f5;
    font-size: 0.9em;
}
.hsu-info-label { color: #888; }
.hsu-info-value { color: #333; font-weight: 500; text-align: right; }
.hsu-text-danger { color: #d32f2f !important; }
.hsu-text-warning { color: #ff9800 !important; }

.hsu-qr-card { text-align: center; }
.hsu-qr-sidebar {
    width: 180px;
    margin: 0 auto 10px;
    border-radius: 8px;
}
.hsu-qr-hint {
    font-size: 0.8em;
    color: #888;
    margin-bottom: 10px;
}

.hsu-related-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.hsu-related-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
    text-decoration: none;
    color: #333;
    transition: color 0.2s;
}
.hsu-related-item:hover { color: #1a237e; }
.hsu-related-title { font-size: 0.9em; flex: 1; padding-right: 10px; }
.hsu-related-date { font-size: 0.75em; color: #999; white-space: nowrap; }

/* Archive / Grid */
.hsu-archive-header {
    text-align: center;
    padding: 40px 0 30px;
}
.hsu-archive-title {
    font-size: 2.2em;
    color: #1a237e;
    margin: 0 0 8px;
}
.hsu-archive-desc { color: #666; font-size: 1.1em; margin: 0; }

.hsu-lowongan-grid {
    display: grid !important;
    gap: 25px !important;
}
.hsu-grid-2 { grid-template-columns: repeat(2, 1fr) !important; }

.hsu-lowongan-card {
    background: #fff !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease !important;
    display: flex !important;
    flex-direction: column !important;
}
.hsu-lowongan-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 30px rgba(26,35,126,0.12) !important;
}
.hsu-lowongan-card.hsu-expired {
    opacity: 0.65;
}
.hsu-card-thumb {
    position: relative;
    overflow: hidden;
}
.hsu-card-thumb img {
    width: 100% !important;
    height: 200px !important;
    object-fit: cover !important;
    display: block !important;
}
.hsu-card-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.78em;
    font-weight: 600;
    color: #fff;
}
.hsu-badge-expired { background: #d32f2f; }

.hsu-card-body {
    padding: 20px !important;
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
}
.hsu-card-title {
    font-size: 1.05em !important;
    margin: 0 0 10px !important;
    line-height: 1.4 !important;
}
.hsu-card-title a {
    color: #1a237e !important;
    text-decoration: none !important;
}
.hsu-card-title a:hover {
    text-decoration: underline !important;
}
.hsu-card-excerpt {
    font-size: 0.9em !important;
    color: #555 !important;
    line-height: 1.6 !important;
    margin-bottom: 15px !important;
    flex: 1 !important;
}
.hsu-card-footer {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 10px !important;
    margin-top: auto !important;
    padding-top: 12px !important;
    border-top: 1px solid #f0f0f0 !important;
}
.hsu-card-deadline {
    font-size: 0.82em !important;
    color: #ff9800 !important;
    font-weight: 600 !important;
}
.hsu-deadline-passed { color: #d32f2f !important; }

/* Pagination */
.hsu-pagination {
    text-align: center;
    padding: 30px 0;
}
.hsu-pagination .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 3px;
    border-radius: 6px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #333;
    transition: all 0.2s;
}
.hsu-pagination .page-numbers.current,
.hsu-pagination .page-numbers:hover {
    background: #1a237e;
    color: #fff;
    border-color: #1a237e;
}

.hsu-empty {
    text-align: center;
    padding: 60px 20px;
    color: #888;
}

/* ========================================
   Responsive - Tablet (max 992px)
   ======================================== */
@media (max-width: 992px) {
    .hsu-content-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .hsu-sidebar {
        position: static;
    }
    .hsu-single-wrap, .hsu-archive-wrap {
        padding: 15px;
    }
    .hsu-banner-img {
        max-height: 220px;
    }
}

/* ========================================
   Responsive - Mobile (max 768px)
   ======================================== */
@media (max-width: 768px) {
    /* Layout */
    .hsu-single-wrap, .hsu-archive-wrap {
        padding: 10px;
    }
    .hsu-content-grid {
        gap: 15px;
    }

    /* Banner */
    .hsu-banner {
        margin-bottom: 15px;
        border-radius: 8px;
    }
    .hsu-banner-img {
        max-height: 180px;
    }
    .hsu-banner-default {
        padding: 35px 15px;
    }
    .hsu-banner-title {
        font-size: 1.6em;
        letter-spacing: 2px;
    }
    .hsu-banner-closing {
        font-size: 1em;
    }

    /* Job Header */
    .hsu-job-header {
        margin-bottom: 15px;
        padding-bottom: 12px;
    }
    .hsu-job-title {
        font-size: 1.3em;
        margin-bottom: 8px;
    }
    .hsu-job-meta {
        gap: 10px;
        font-size: 0.85em;
    }

    /* Sections */
    .hsu-section {
        margin-bottom: 15px;
    }
    .hsu-section-title {
        font-size: 1.1em;
    }

    /* Form */
    .hsu-form {
        padding: 18px !important;
        border-radius: 8px !important;
    }
    .hsu-form-row {
        flex-direction: column !important;
        gap: 0 !important;
    }
    .hsu-half {
        flex: none !important;
        width: 100% !important;
    }
    .hsu-input, .hsu-textarea {
        padding: 10px 12px !important;
        font-size: 16px !important; /* Prevent iOS zoom */
    }
    .hsu-form-group {
        margin-bottom: 14px !important;
    }

    /* Sidebar */
    .hsu-sidebar-card {
        padding: 15px;
        margin-bottom: 15px;
    }
    .hsu-sidebar-card h3 {
        font-size: 1em;
        margin-bottom: 10px;
        padding-bottom: 8px;
    }
    .hsu-info-row {
        font-size: 0.85em;
        padding: 6px 0;
    }
    .hsu-qr-sidebar {
        width: 150px;
    }

    /* Buttons */
    .hsu-btn {
        padding: 10px 18px !important;
        font-size: 0.9em !important;
    }

    /* Deadline */
    .hsu-deadline-notice {
        padding: 10px 14px !important;
        font-size: 0.9em !important;
    }

    /* Archive Grid */
    .hsu-grid-2 {
        grid-template-columns: 1fr !important;
    }
    .hsu-lowongan-grid {
        gap: 15px !important;
    }
    .hsu-card-body {
        padding: 15px !important;
    }
    .hsu-card-thumb img {
        height: 160px !important;
    }
    .hsu-card-title {
        font-size: 1em !important;
    }
    .hsu-card-excerpt {
        font-size: 0.85em !important;
    }
    .hsu-card-footer {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
    }

    /* Archive header */
    .hsu-archive-header {
        padding: 20px 0 15px;
    }
    .hsu-archive-title {
        font-size: 1.6em;
    }
    .hsu-archive-desc {
        font-size: 0.95em;
    }

    /* Share */
    .hsu-share-row {
        flex-direction: column;
        align-items: center;
    }
    .hsu-share-input-group {
        flex-direction: column;
    }

    /* Pagination */
    .hsu-pagination .page-numbers {
        padding: 6px 10px;
        margin: 2px;
        font-size: 0.9em;
    }

    /* Note */
    .hsu-note {
        font-size: 0.85em;
    }

    /* Lists */
    .hsu-numbered-list, .hsu-bullet-list {
        padding-left: 18px;
    }
    .hsu-numbered-list li, .hsu-bullet-list li {
        margin-bottom: 6px;
        font-size: 0.95em;
    }
}

/* ========================================
   Responsive - Small Mobile (max 480px)
   ======================================== */
@media (max-width: 480px) {
    .hsu-single-wrap, .hsu-archive-wrap {
        padding: 8px;
    }
    .hsu-banner-default {
        padding: 25px 10px;
    }
    .hsu-banner-title {
        font-size: 1.3em;
        letter-spacing: 1px;
    }
    .hsu-job-title {
        font-size: 1.15em;
    }
    .hsu-section-title {
        font-size: 1em;
    }
    .hsu-form {
        padding: 14px !important;
    }
    .hsu-sidebar-card {
        padding: 12px;
    }
    .hsu-card-thumb img {
        height: 140px !important;
    }
    .hsu-qr-sidebar {
        width: 130px;
    }
}
