/* Research & Insights Career Hub - Modern Professional Stylesheet */
/* Place this file at: themes/apac-career-hub/static/css/style.css */

@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@300;400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'proxima-nova', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #172c66;
    background: #f3d2c1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Header Styles */
.header {
    background: #001858;
    padding: 1rem 1.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.header h1 a {
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

/* Decorative pattern ribbon (hidden) */
.network-bg {
    display: none;
}

.header-content {
    margin: 0 auto;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
}

.header-main {
    flex: 1;
    min-width: 0;
}

/* Conjointly Branding */
.conjointly-branding {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.35rem;
    text-decoration: none;
    flex-shrink: 0;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.07);
    transition: background 0.3s ease;
    max-width: 200px;
    margin-top: 0.25rem;
}

.conjointly-branding:hover {
    background: rgba(255, 255, 255, 0.12);
}

.conjointly-presented {
    font-size: 0.6rem;
    color: rgba(243, 210, 193, 0.7);
    line-height: 1.3;
    text-align: right;
}

.conjointly-logo {
    height: 28px;
    width: auto;
}

.conjointly-tagline {
    font-size: 0.6rem;
    color: rgba(243, 210, 193, 0.7);
    line-height: 1.3;
    text-align: right;
}

h1 {
    font-size: 1.75rem;
    font-weight: 800;
    color: #fef6e4;
    margin-bottom: 0.25rem;
    letter-spacing: -0.5px;
}


.tagline {
    font-size: 0.9rem;
    color: #f3d2c1;
    line-height: 1.5;
    font-weight: 400;
}

.header-actions {
    margin-top: 0.75rem;
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.linkedin-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #001858;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    background: #8bd3dd;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.linkedin-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    background: #fef6e4;
}

.linkedin-icon {
    width: 20px;
    height: 20px;
}

/* Social Sharing Buttons */
.social-sharing {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.15);
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    box-shadow: none;
}

.share-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #fef6e4;
    margin-right: 0.15rem;
}

.share-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: rgba(255,255,255,0.2);
    color: #fef6e4;
    transition: all 0.3s ease;
    text-decoration: none;
}

.share-button svg {
    width: 16px;
    height: 16px;
}

.share-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.share-button.linkedin {
    background: #0077b5;
    color: white;
}

.share-button.linkedin:hover {
    background: #006399;
}

.share-button.twitter {
    background: #000000;
    color: white;
}

.share-button.twitter:hover {
    background: #333333;
}

.share-button.pinterest {
    background: #E60023;
    color: white;
}

.share-button.pinterest:hover {
    background: #bd001c;
}

.share-button.reddit {
    background: #FF4500;
    color: white;
}

.share-button.reddit:hover {
    background: #e03d00;
}

.share-button.facebook {
    background: #1877F2;
    color: white;
}

.share-button.facebook:hover {
    background: #0d65d9;

}

/* Add a job Button */
.submit-opportunity-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #001858;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    background: #8bd3dd;
    border: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    font-family: inherit;
}

.submit-opportunity-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    background: #fef6e4;
}

.submit-icon {
    width: 20px;
    height: 20px;
}

/* Email Updates Button */
.email-updates-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #001858;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    background: #8bd3dd;
    border: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    font-family: inherit;
}

.email-updates-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    background: #fef6e4;
}

.email-icon {
    width: 20px;
    height: 20px;
}


/* Container */
.container {
    margin: 0 auto;
    padding: 1rem 1rem;
}

/* Country Navigation */
.country-nav {
    background: #fef6e4;
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.06);
}

.nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.country-nav h3 {
    font-size: 0.75rem;
    color: #3a5199;
    margin-bottom: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.recency-filter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    user-select: none;
}

.filter-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #f582ae;
}

.filter-label {
    font-size: 0.85rem;
    color: #172c66;
    font-weight: 600;
}

.filter-label-suffix {
    font-size: 0.85rem;
    color: #172c66;
    font-weight: 600;
}

.filter-toggle:hover .filter-label {
    color: #001858;
}

.days-selector {
    font-size: 0.85rem;
    color: #001858;
    font-weight: 600;
    padding: 0.4rem 0.6rem;
    border: 2px solid #e8c4b8;
    border-radius: 8px;
    background: #fef6e4;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.days-selector:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f3d2c1;
}

.days-selector:not(:disabled):hover {
    border-color: #f582ae;
}

.days-selector:not(:disabled):focus {
    outline: none;
    border-color: #f582ae;
    box-shadow: 0 0 0 3px rgba(245, 130, 174, 0.1);
}

.country-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.country-link {
    color: #172c66;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8rem;
    padding: 0.3rem 0.9rem;
    border-radius: 8px;
    background: #f3d2c1;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    display: inline-flex;
    align-items: center;
}

.country-link:hover {
    background: #fef0f5;
    color: #001858;
    border-color: #f582ae;
}

.country-link.active {
    background: #f582ae;
    color: #001858;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(245, 130, 174, 0.3);
}

/* Country Dropdown */
.country-dropdown {
    font-size: 0.9rem;
    color: #172c66;
    font-weight: 600;
    padding: 0.5rem 1.25rem 0.3rem 1.25rem;
    border: 2px solid #e8c4b8;
    border-radius: 10px;
    background: #f3d2c1;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.country-dropdown:hover {
    background: #fef0f5;
    border-color: #f582ae;
}

.country-dropdown:focus {
    outline: none;
    border-color: #f582ae;
    box-shadow: 0 0 0 3px rgba(245, 130, 174, 0.1);
}

/* Country Header */
.country-header {
    margin-bottom: 1rem;
}

.country-header h2 {
    font-size: 1.5rem;
    color: #001858;
    font-weight: 800;
    letter-spacing: -0.3px;
}

/* Kanban Board */
.kanban-board {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 0.75rem;
    min-height: 500px;
}

.kanban-column {
    background: #fef6e4;
    border-radius: 12px;
    padding: 0.75rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0,0,0,0.06);
    transition: box-shadow 0.3s ease;
}

.kanban-column[data-status="not-interested"] {
    background: #f8ebe4;
}


.kanban-column[data-status="not-interested"] .apply-link {
    display: none;
}

.kanban-column[data-status="not-interested"] .added-date {
    display: none;
}

.kanban-column[data-status="not-interested"] .column-header {
    background: #f8ebe4;
    border-bottom: 2px solid #fef6e4;
}

.kanban-column:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.column-header {
    font-size: 0.9rem;
    font-weight: 700;
    color: #001858;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f3d2c1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    background: #fef6e4;
    z-index: 10;
    padding-top: 0;
    margin-top: 0;
    transition: padding-top 0.15s ease;
}

.column-header.is-stuck {
    padding-top: 0.75rem;
}

.column-title {
    cursor: text;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    outline: none;
    position: relative;
}

.column-title:hover {
    background: rgba(245, 130, 174, 0.1);
}

.column-title:focus {
    background: rgba(245, 130, 174, 0.15);
    box-shadow: 0 0 0 2px rgba(245, 130, 174, 0.3);
}

.column-title::after {
    content: '✏️';
    opacity: 0;
    margin-left: 0.5rem;
    font-size: 0.7rem;
    transition: opacity 0.2s ease;
}

.column-title:hover::after {
    opacity: 0.4;
}

.column-title:focus::after {
    display: none;
}

.job-count {
    background: #f582ae;
    color: #001858;
    padding: 0.2rem 0.5rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(245, 130, 174, 0.25);
}

.drop-zone {
    flex: 1;
    min-height: 100px;
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 0.5rem;
}

.drop-zone.drag-over {
    background: rgba(245, 130, 174, 0.12);
    border: 2px dashed #f582ae;
    border-radius: 8px;
}

.kanban-column.drag-over {
    background: rgba(245, 130, 174, 0.08);
    box-shadow: 0 0 0 3px #f582ae inset;
}

/* Enhanced visual feedback on mobile */
@media (max-width: 768px) {
    .drop-zone.drag-over {
        border-width: 4px;
        background: linear-gradient(135deg, rgba(245, 130, 174, 0.25) 0%, rgba(245, 130, 174, 0.25) 100%);
    }
    
    .kanban-column.drag-over {
        box-shadow: 0 0 0 4px #f582ae inset;
        background: rgba(245, 130, 174, 0.12);
    }
}


.kanban-column.drag-over .column-header {
    background: transparent;
}

/* Job Cards */
.job-card {
    background: #fef6e4;
    border: 1px solid #e8c4b8;
    border-radius: 10px;
    padding: 0.65rem;
    margin-bottom: 0.5rem;
    cursor: grab;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    touch-action: pan-y; /* Allow vertical scrolling on mobile */
    -webkit-user-select: none;
    user-select: none;
}

/* Drag handle for mobile */
.drag-handle {
    position: absolute;
    top: 50%;
    right: 0.5rem;
    transform: translateY(-50%);
    color: #3a5199;
    font-size: 1.5rem;
    cursor: grab;
    padding: 0.5rem;
    display: none;
    touch-action: none;
    z-index: 5;
    line-height: 1;
}

@media (max-width: 768px) {
    .drag-handle {
        display: block;
    }
    
    .job-card {
        padding-right: 3rem; /* Make room for drag handle */
    }
}

.drag-handle:active {
    cursor: grabbing;
}

/* Touch dragging state for mobile */
.job-card.touch-dragging {
    opacity: 0.3;
    transform: scale(0.95);
}

/* Visual feedback when dragging over a card for reordering */
.job-card.drag-over-card {
    border-top: 3px solid #f582ae;
    margin-top: 0.5rem;
}

/* Ghost element for touch drag visual feedback */
.ghost-element {
    box-shadow: 0 12px 40px rgba(0,0,0,0.3) !important;
    border: 3px solid #f582ae !important;
    background: #fef6e4 !important;
}

/* Improve touch target size on mobile */
@media (max-width: 768px) {
    .job-card {
        min-height: 80px; /* Ensure adequate touch target */
        padding: 1.25rem;
        margin-bottom: 1rem;
    }
}

/* Old job cards (>3 weeks) — grey background only */
.job-card.old-job {
    background: #edeef0;
    border-color: #d1d3d8;
}

/* Hidden state for filtered jobs */
.job-card.filtered-hidden {
    display: none;
}

/* Smaller cards in non-Found columns */
.kanban-column[data-status="not-interested"] .job-card,
.kanban-column[data-status="will-apply"] .job-card,
.kanban-column[data-status="applying"] .job-card,
.kanban-column[data-status="applied"] .job-card {
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    border-radius: 8px;
}

.kanban-column[data-status="not-interested"] .job-card .job-title,
.kanban-column[data-status="will-apply"] .job-card .job-title,
.kanban-column[data-status="applying"] .job-card .job-title,
.kanban-column[data-status="applied"] .job-card .job-title {
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.kanban-column[data-status="not-interested"] .job-card .company-and-location,
.kanban-column[data-status="will-apply"] .job-card .company-and-location,
.kanban-column[data-status="applying"] .job-card .company-and-location,
.kanban-column[data-status="applied"] .job-card .company-and-location {
    font-size: 0.7rem;
    margin-bottom: 0.4rem;
}

.kanban-column[data-status="not-interested"] .job-card .apply-link,
.kanban-column[data-status="will-apply"] .job-card .apply-link,
.kanban-column[data-status="applying"] .job-card .apply-link,
.kanban-column[data-status="applied"] .job-card .apply-link {
    font-size: 0.65rem;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
}

.kanban-column[data-status="not-interested"] .job-card .added-date,
.kanban-column[data-status="will-apply"] .job-card .added-date,
.kanban-column[data-status="applying"] .job-card .added-date,
.kanban-column[data-status="applied"] .job-card .added-date {
    font-size: 0.65rem;
    gap: 0.2rem;
}

.kanban-column[data-status="not-interested"] .job-card .added-date::before,
.kanban-column[data-status="will-apply"] .job-card .added-date::before,
.kanban-column[data-status="applying"] .job-card .added-date::before,
.kanban-column[data-status="applied"] .job-card .added-date::before {
    font-size: 0.7rem;
}

.job-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #f582ae;
    border-radius: 12px 12px 0 0;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.kanban-column[data-status="not-interesting"] .job-card::before,
.kanban-column[data-status="will-apply"] .job-card::before,
.kanban-column[data-status="applying"] .job-card::before,
.kanban-column[data-status="applied"] .job-card::before {
    height: 2px;
    border-radius: 8px 8px 0 0;
}

.job-card:hover::before {
    opacity: 1;
}

.job-card:active {
    cursor: grabbing;
}

.job-card:hover {
    border-color: #f582ae;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    transform: translateY(-2px);
    background: #fef6e4;
}

.job-card.dragging {
    opacity: 0.5;
    cursor: grabbing;
    transform: rotate(2deg);
}

.job-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #001858;
    margin-bottom: 0.3rem;
    line-height: 1.3;
    letter-spacing: -0.2px;
}

.company-and-location {
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.company {
    color: #172c66;
}

.and-location{
    color: #3a5199;
}

.job-meta {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.8rem;
}

.apply-link {
    background: #f582ae;
    color: #001858;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-block;
    width: fit-content;
    box-shadow: 0 2px 6px rgba(245, 130, 174, 0.25);
}

.added-date {
    color: #3a5199;
    font-size: 0.75rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.added-date::before {
    content: none;
}

/* Footer */
.footer {
    background: #001858;
    color: #fef6e4;
    text-align: center;
    padding: 1rem;
    margin-top: 1rem;
}

.footer p {
    margin: 0;
    font-weight: 500;
    font-size: 0.75rem;
    opacity: 0.95;
}

.footer a {
    color: #fef6e4;
    text-decoration: underline;
    transition: all 0.2s ease;
}

.footer a:hover {
    color: #f582ae;
    text-decoration: none;
}

/* Save Notification */
.save-notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #001858;
    color: #fef6e4;
    padding: 1rem 1.75rem;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    display: none;
    align-items: center;
    gap: 0.75rem;
    z-index: 1000;
    animation: slideInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.save-notification.show {
    display: flex;
}

@keyframes slideInUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.save-icon {
    width: 24px;
    height: 24px;
    color: #f582ae;
    animation: bounce 0.6s ease;
    flex-shrink: 0;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
    background: #001858;
}

/* Focus states for accessibility */
.country-link:focus,
.linkedin-link:focus {
    outline: 3px solid #f582ae;
    outline-offset: 2px;
}

.job-card:focus {
    outline: 2px solid #f582ae;
    outline-offset: 2px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .kanban-board {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 1.5rem;
        margin-bottom: 0.25rem;
    }

    .tagline {
        font-size: 0.875rem;
        line-height: 1.4;
    }

    .header-actions {
        margin-top: 0.5rem;
        gap: 0.5rem;
    }

    .linkedin-link,
    .email-updates-btn,
    .submit-opportunity-btn {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }

    .linkedin-icon,
    .email-icon,
    .submit-icon {
        width: 16px;
        height: 16px;
    }

    .social-sharing {
        padding: 0.35rem 1rem;
        gap: 0.5rem;
    }

    .share-label {
        font-size: 0.75rem;
    }

    .share-buttons {
        gap: 0.35rem;
    }

    .share-button {
        width: 28px;
        height: 28px;
    }

    .share-button svg {
        width: 13px;
        height: 13px;
    }

    .kanban-board {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0.75rem;
    }

    .header {
        padding: 0.75rem 1rem;
    }

    .country-nav {
        padding: 0.5rem 1rem;
        margin-bottom: 0.75rem;
    }

    .nav-header {
        margin-bottom: 0.5rem;
    }

    .country-nav h3 {
        font-size: 0.7rem;
    }

    .country-links {
        gap: 0.4rem;
    }

    .country-link {
        padding: 0.4rem 0.875rem;
        font-size: 0.8rem;
    }

    .conjointly-branding {
        display: none;
    }

    .header-content {
        display: block;
    }

    .network-bg {
        display: none;
    }

    .network-node {
        width: 35px;
        height: 35px;
    }

    .save-notification {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.35rem;
        margin-bottom: 0.2rem;
    }

    .header {
        padding: 0.65rem 0.875rem;
    }

    .tagline {
        font-size: 0.8rem;
        line-height: 1.35;
    }

    .header-actions {
        flex-direction: column;
        align-items: stretch;
        margin-top: 0.4rem;
        gap: 0.4rem;
    }

    .linkedin-link,
    .email-updates-btn,
    .submit-opportunity-btn {
        justify-content: center;
        font-size: 0.8rem;
        padding: 0.45rem 0.875rem;
    }

    .social-sharing {
        justify-content: center;
        padding: 0.3rem 0.875rem;
    }

    .container {
        padding: 0.5rem;
    }

    .country-nav {
        padding: 0.4rem 0.875rem;
        margin-bottom: 0.5rem;
    }

    .nav-header {
        margin-bottom: 0.4rem;
        gap: 0.5rem;
    }

    .country-nav h3 {
        font-size: 0.65rem;
    }

    .recency-filter {
        gap: 0.35rem;
    }

    .filter-label,
    .filter-label-suffix {
        font-size: 0.75rem;
    }

    .days-selector {
        font-size: 0.75rem;
        padding: 0.3rem 0.5rem;
    }

    .country-links {
        gap: 0.35rem;
    }

    .country-link {
        padding: 0.35rem 0.75rem;
        font-size: 0.75rem;
    }

    .job-title {
        font-size: 1rem;
    }

    .company-and-location {
        font-size: 0.85rem;
    }
    
    .kanban-column {
        padding: 0.75rem;
    }
    
    .job-card {
        padding: 0.75rem;
    }
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.2s ease;
}

.modal-content {
    position: relative;
    background: #fef6e4;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    max-width: 540px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideInUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-header {
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid #e8c4b8;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #001858;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: #3a5199;
    transition: all 0.2s ease;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: #f3d2c1;
    color: #001858;
}

.modal-close svg {
    width: 24px;
    height: 24px;
}

.modal-body {
    padding: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #172c66;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e8c4b8;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.2s ease;
    color: #001858;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #f582ae;
    box-shadow: 0 0 0 3px rgba(245, 130, 174, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #3a5199;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-hint {
    display: block;
    font-size: 0.8rem;
    color: #3a5199;
    margin-top: 0.35rem;
}

.form-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.btn-primary,
.btn-secondary {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background: #f582ae;
    color: #001858;
    flex: 1;
    box-shadow: 0 2px 8px rgba(245, 130, 174, 0.25);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 130, 174, 0.35);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-secondary {
    background: #f3d2c1;
    color: #172c66;
}

.btn-secondary:hover {
    background: #e8c4b8;
}

.form-error {
    background: #fee2e2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 0.75rem;
    border-radius: 8px;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.spinner {
    width: 16px;
    height: 16px;
    animation: spin 1s linear infinite;
}

.spinner circle {
    stroke: currentColor;
    stroke-dasharray: 50;
    stroke-dashoffset: 0;
    animation: dash 1.5s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes dash {
    0% { stroke-dashoffset: 50; }
    50% { stroke-dashoffset: 12.5; }
    100% { stroke-dashoffset: 50; }
}
/* Twemoji flag styling for cross-platform support */
.country-link img.emoji,
.country-header img.emoji {
    height: 1.2em;
    width: 1.2em;
    margin: 0 0.05em 0 0.1em;
    vertical-align: -0.1em;
    display: inline-block;
}

.country-link img.emoji {
    height: 1.5em;
    width: 1.5em;
}

.job-flag img.emoji {
    height: 1em;
    width: 1em;
    margin-left: 0.3em;
    vertical-align: -0.1em;
    display: inline-block;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 3rem 0;
    font-family: 'proxima-nova', 'Nunito Sans', sans-serif;
}

.pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background: #fef6e4;
    color: #001858;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pagination-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.08);
    border-color: rgba(245, 130, 174, 0.3);
    background: #fef0f5;
}

.pagination-link.prev::before {
    margin-right: 0.5rem;
}

.pagination-link.next::after {
    margin-left: 0.5rem;
}

.pagination-info {
    font-size: 0.9rem;
    color: #3a5199;
    font-weight: 500;
    background: rgba(255,255,255,0.5);
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

/* Job Detail Page Styles */
.job-detail-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.job-detail-post {
    background: #fef6e4;
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.06);
}

.job-detail-header {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
}

.job-detail-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #001858;
    line-height: 1.2;
    margin-bottom: 2rem;
    letter-spacing: -0.5px;
}

.job-detail-meta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.job-detail-field {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    font-size: 1.05rem;
    line-height: 1.6;
}

.job-detail-link-field {
    align-items: center;
}

.job-detail-label {
    font-weight: 700;
    color: #172c66;
    min-width: 140px;
}

.job-detail-value {
    color: #001858;
    font-weight: 500;
}

.job-detail-apply-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #f582ae;
    color: #001858;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(245, 130, 174, 0.25);
    transition: all 0.3s ease;
}

.job-detail-apply-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(245, 130, 174, 0.35);
}

.job-detail-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #172c66;
    margin-bottom: 2.5rem;
}

.job-detail-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #001858;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.job-detail-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #001858;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.job-detail-content p {
    margin-bottom: 1.5rem;
}

.job-detail-content ul,
.job-detail-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.job-detail-content li {
    margin-bottom: 0.75rem;
}

.job-detail-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #f3d2c1;
}

/* Responsive Job Detail Styles */
@media (max-width: 768px) {
    .job-detail-container {
        padding: 1.5rem 1rem;
    }

    .job-detail-post {
        padding: 2rem 1.5rem;
    }

    .job-detail-title {
        font-size: 1.75rem;
    }

    .job-detail-field {
        flex-direction: column;
        gap: 0.25rem;
        align-items: flex-start;
    }

    .job-detail-label {
        min-width: auto;
        font-size: 0.9rem;
    }

    .job-detail-value {
        font-size: 1rem;
    }

    .job-detail-content {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .job-detail-container {
        padding: 1rem 0.75rem;
    }

    .job-detail-post {
        padding: 1.5rem 1rem;
        border-radius: 12px;
    }

    .job-detail-title {
        font-size: 1.5rem;
    }

    .job-detail-apply-link {
        font-size: 0.9rem;
        padding: 0.65rem 1.25rem;
    }
}

/* Context Menu Styles */
.job-context-menu {
    position: fixed;
    background: #fef6e4;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
    padding: 4px 0;
    min-width: 220px;
    z-index: 10000;
    display: none;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.job-context-menu.show {
    display: block;
    opacity: 1;
    transform: scale(1);
}

.context-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    cursor: pointer;
    transition: background-color 0.15s ease;
    font-size: 0.875rem;
    color: #001858;
    user-select: none;
}

.context-menu-item:hover {
    background-color: #8bd3dd;
    color: #001858;
}

.context-menu-item:active {
    filter: brightness(0.9);
}

.context-menu-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    stroke-width: 2;
}

/* Prevent text selection during right-click */
.job-card {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Allow text selection in job details */
.job-title, .company-and-location, .job-meta {
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
}
