@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Playfair+Display:wght@400&display=swap');

/* ---------------------------------------
   Jobs Portal - Core CSS
   (Matches UI Design Specifications)
--------------------------------------- */

:root {
    --jp-primary-color: #FFD700;
    --jp-primary-hover: #e6c200;
    --jp-text-dark: #333;
    --jp-text-muted: #666;
    --jp-bg-light: #F5F5F7;
    --jp-border-color: #eee;
    --jp-white: #ffffff;
    --jp-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

.jp-jobs-list,
.jp-jobs-portal-container,
.jp-single-job-container {
    font-family: var(--jp-font-family);
    color: var(--jp-text-dark);
    max-width: 1240px;
    margin: 0 auto;
    background: transparent !important;
    padding: 0 !important;
    box-sizing: border-box;
}

/* ---------------------------------------
   Buttons
--------------------------------------- */
.jp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 17px !important;
    line-height: 26px !important;
    text-decoration: none !important;
    border-radius: 6px !important;
    cursor: pointer;
    border: none !important;
    transition: all 0.2s ease;
}

.jp-btn-primary {
    background-color: var(--jp-primary-color) !important;
    color: #000 !important;
    font-weight: 500 !important;
}

.jp-btn-primary:hover {
    background-color: var(--jp-primary-hover);
    color: #000;
}

.jp-btn-secondary {
    background-color: transparent !important;
    color: #000 !important;
    border: 1px solid var(--jp-primary-color) !important;
    font-weight: 500 !important;
}

.jp-btn-secondary:hover {
    background-color: rgba(255, 215, 0, 0.1); /* Subtle hover for the reset button */
}

.jp-btn-full {
    width: 100%;
}

/* ---------------------------------------
   Jobs List (Image 1)
--------------------------------------- */
.jp-jobs-filter-form {
    display: flex;
    flex-direction: row;
    gap: 15px;
    background: #FFFFFF !important;
    padding: 24px 30px !important;
    margin-bottom: 30px;
    align-items: center;
    flex-wrap: wrap;
    border-radius: 6px !important;
    border: none !important;
}

.jp-filter-select {
    padding: 10px 45px 10px 16px !important;
    border: none !important;
    border-radius: 6px !important;
    width: 250px !important;
    flex: none !important;
    background-color: #F5F5F7 !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 17px !important;
    line-height: 26px !important;
    color: #333 !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    /* Custom select arrow */
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2212%22%20height%3D%228%22%20viewBox%3D%220%200%2012%208%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M1.5%201.5L6%206L10.5%201.5%22%20stroke%3D%22%23333333%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 16px center !important;
}

.jp-filter-actions {
    margin-left: auto;
    display: flex;
    gap: 15px;
}

.jp-jobs-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 20px;
}

.jp-jobs-title {
    margin: 0;
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    font-size: 34px;
    line-height: 100%;
    color: #000;
}

.jp-jobs-count {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 17px;
    line-height: 26px;
    color: #000;
}

.jp-job-card-link {
    text-decoration: none !important;
    display: block;
    margin-bottom: 20px;
}

.jp-job-card {
    background: #FFFFFF !important;
    padding: 24px 20px !important;
    border-radius: 6px !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s ease;
    border: 1px solid var(--jp-border-color) !important;
}

.jp-job-card:hover {
    background: #FFFFFF !important;
}

.jp-job-card-left .jp-job-title {
    margin: 0 0 8px 0;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 21px;
    line-height: 26px;
    letter-spacing: 0%;
    color: var(--jp-text-dark);
}

.jp-job-meta {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 17px;
    line-height: 26px;
    letter-spacing: 0%;
    color: var(--jp-text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
}

.jp-job-separator {
    color: #ddd;
}

.jp-job-card-right .jp-job-chevron {
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--jp-primary-color);
    border-top: 2px solid var(--jp-primary-color);
    transform: rotate(45deg);
    display: inline-block;
    margin-right: 5px;
}

/* ---------------------------------------
   Single Job (Image 3)
--------------------------------------- */
.jp-single-header {
    background: #FFFFFF !important;
    padding: 30px !important;
    border-radius: 6px !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.jp-single-header-left .jp-job-title {
    margin: 0 0 10px 0;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 30px;
    line-height: 100%;
    color: #000;
    white-space: normal;
    word-wrap: break-word;
}

.jp-single-body {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    align-items: start;
}

.jp-single-header-right {
    flex-shrink: 0;
    white-space: nowrap;
}

.jp-sidebar-box {
    background: #FFFFFF !important;
    padding: 20px !important;
    border-radius: 6px !important;
    position: sticky;
    top: 20px;
}

.jp-sidebar-box .jp-btn-primary,
.jp-single-header-right .jp-btn-primary,
.jp-content-footer .jp-btn-primary {
    font-family: 'Inter', sans-serif !important;
    font-weight: 500 !important;
    font-size: 17px !important;
    line-height: 26px !important;
    padding: 14px 45px !important;
    letter-spacing: 0% !important;
}

.jp-sidebar-title,
.jp-content-title {
    margin: 0 0 20px 0;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 21px;
    line-height: 26px;
    color: #000;
    border-bottom: 1px solid #0000001A;
    padding-bottom: 10px;
}

.jp-sidebar-meta-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.jp-sidebar-meta-list li {
    margin: 0 0 15px 0 !important;
    padding: 0 !important;
}

.jp-sidebar-meta-list li:last-child {
    margin-bottom: 0 !important;
}

.jp-meta-label {
    display: block;
    font-family: 'Inter', sans-serif !important;
    font-weight: 400 !important;
    font-size: 15px !important;
    line-height: 100% !important;
    letter-spacing: 0% !important;
    color: rgba(10, 10, 15, 0.5) !important;
    margin: 0 0 6px 0 !important;
}

.jp-meta-value {
    display: block;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 17px;
    line-height: 26px;
    letter-spacing: 0%;
    color: #0A0A0F;
}

.jp-single-content {
    background: #FFFFFF !important;
    padding: 20px !important;
    border-radius: 6px !important;
}

.jp-job-description {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--jp-text-dark);
    margin-bottom: 0;
}

.jp-job-description h2,
.jp-job-description h3,
.jp-job-description h4 {
    margin-top: 25px;
    margin-bottom: 10px;
    font-size: 17px;
    font-weight: 600;
}

.jp-job-description ul {
    padding-left: 20px;
}

.jp-job-description li {
    margin-bottom: 8px;
}

.jp-content-footer {
    margin-top: 40px;
}

/* ---------------------------------------
   Apply Form & Modal
--------------------------------------- */
.jp-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.jp-modal-overlay.jp-modal-active {
    opacity: 1;
    visibility: visible;
}

.jp-modal-content {
    background: var(--jp-white);
    width: 90%;
    max-width: 600px;
    border-radius: 8px;
    padding: 30px;
    border: 1px solid var(--jp-border-color);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.jp-modal-overlay.jp-modal-active .jp-modal-content {
    transform: translateY(0);
}

.jp-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    line-height: 1;
}

.jp-modal-close:hover {
    color: #333;
}

.jp-apply-title {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 20px;
}

.jp-apply-form {
    width: 100%;
    margin-top: 30px;
}

.jp-form-row {
    margin-bottom: 20px;
}

.jp-form-row label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 14px;
}

.jp-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 14px;
    font-family: inherit;
}

.jp-input:focus {
    outline: none;
    border-color: var(--jp-primary-color);
}

.jp-form-row textarea.jp-input {
    resize: vertical;
}

/* ---------------------------------------
   General Apply Banner & Modal
--------------------------------------- */
.jp-general-banner-wrapper {
    max-width: 1240px;
    margin: 120px auto;
    padding: 0;
}

.jp-general-banner {
    background-color: #FFD700 !important;
    background-image: linear-gradient(90deg, #FFD700 0%, rgba(255, 255, 255, 0.7) 52.31%, rgba(255, 255, 255, 0) 75.51%), url('https://hridayananda.fewtone.com/wp-content/uploads/2026/07/Rectangle-34-1.png') !important;
    background-size: cover !important;
    background-position: center !important;
    border-radius: 6px !important;
    padding: 76px 50px !important;
    display: flex;
    align-items: center;
}

.jp-general-banner-content {
    max-width: 600px;
}

.jp-general-banner-title {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    font-size: 44px;
    line-height: 100%;
    margin: 0 0 15px 0;
    color: #000;
}

.jp-general-banner-subtitle {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 17px;
    line-height: 26px;
    color: #0A0A0F;
    margin: 0 0 30px 0;
}

.jp-general-apply-btn {
    background: #0A0A0F !important;
    color: #FFF !important;
    border-radius: 50px !important;
    padding: 16px 40px !important;
    font-size: 17px !important;
    text-decoration: none !important;
    border: none !important;
}

.jp-general-apply-btn:hover {
    background: #333;
}

/* Modal Form Overrides */
.jp-general-modal-content {
    max-width: 800px;
    padding: 40px;
}

.jp-general-apply-title {
    font-family: 'Playfair Display', serif;
    font-size: 34px;
    margin-bottom: 10px;
    color: #000;
}

.jp-general-modal-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #666;
    margin-top: 0;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--jp-border-color);
    padding-bottom: 25px;
}

.jp-flex-row {
    display: flex;
    gap: 20px;
}

.jp-form-col {
    flex: 1;
}

.jp-job-type-pills {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.jp-job-type-pill {
    cursor: pointer;
}

.jp-job-type-pill input[type="radio"] {
    display: none;
}

.jp-job-type-pill span {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 4px;
    background: #F5F5F7;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #333;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.jp-job-type-pill.active span {
    border-color: var(--jp-primary-color);
    background: var(--jp-white);
}

.jp-resume-upload-box {
    position: relative !important;
    border: 1px dashed #ccc !important;
    border-radius: 6px !important;
    padding: 40px 20px !important;
    text-align: center !important;
    background: var(--jp-white) !important;
    transition: background 0.2s ease;
    overflow: hidden !important;
}

.jp-resume-upload-box:hover {
    background: #FAFAFA !important;
}

.jp-file-input-hidden {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 0 !important;
    cursor: pointer !important;
    z-index: 99 !important;
    display: block !important;
}

.jp-upload-placeholder svg {
    display: block;
    margin: 0 auto 10px auto;
}

.jp-upload-placeholder span {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #333;
}

.jp-upload-placeholder .jp-selected-filename {
    margin-top: 10px;
    font-weight: 600;
    color: var(--jp-primary-color);
}

.jp-form-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid var(--jp-border-color);
}

.jp-btn-cancel {
    background: #F5F5F7;
    color: #333;
    font-weight: 500;
    min-width: 120px !important;
}

.jp-btn-cancel:hover {
    background: #E5E5E5;
}

.jp-submit {
    min-width: 120px !important;
    background-color: var(--jp-primary-color) !important;
    color: #000 !important;
    border: none !important;
}

/* ---------------------------------------
   Responsive
--------------------------------------- */
@media (max-width: 768px) {
    .jp-single-body {
        grid-template-columns: 1fr;
    }
    
    .jp-jobs-header,
    .jp-single-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .jp-jobs-filter-form {
        flex-direction: column;
        align-items: stretch;
    }

    .jp-filter-select,
    .jp-jobs-filter-form .jp-btn {
        width: 100%;
        box-sizing: border-box;
    }

    .jp-filter-actions {
        margin-left: 0;
        flex-direction: column;
    }

    .jp-job-card {
        padding: 16px 15px;
    }

    .jp-job-meta {
        flex-wrap: wrap;
        gap: 5px 10px;
    }

    .jp-job-separator {
        display: none; /* Hide separator on small screens if they wrap */
    }

    .jp-general-banner {
        padding: 40px 20px;
        background-position: left center;
        text-align: center;
    }

    .jp-general-banner-title {
        font-size: 32px;
    }

    .jp-flex-row {
        flex-direction: column;
        gap: 0;
    }

    .jp-job-type-pills {
        gap: 10px;
    }
}
