@import url("header.css");
@import url("profile_incomplete.css");
/* Reset & Base Styles */
* {
    box-sizing: border-box;
}


body, html {
    height: auto;
    overflow-y: auto;
}

body.no-scroll {
    overflow: hidden;
    height: 100vh;
}


/* Wrap the entire page in a main container */
main {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px 40px;
}


body {
    margin: 0;
    /*font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;*/
    font-family: 'Poppins', sans-serif;
    background-color: #f3f6fc;
    color: #333;
    line-height: 1.6;
}

.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    min-height: 100vh;
}

/* Search Box */
.search-section {
    padding: 32px 20px;
    background-color: #f3f6fc;
    border-radius: 12px;
    margin-bottom: 20px;
}

/* Search bar layout */
.search-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    background-color: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 100%;
}


.input-group {
    flex: 1 1 100%;
    display: flex;
    flex-direction: column;
}


.input-group label {
    font-size: 14px;
    margin-bottom: 4px;
    color: #333;
}

.input-group input {
    padding: 16px 20px; /* More padding */
    font-size: 18px;
    border: 1px solid #333;
    border-radius: 6px;
    background-color: #fff;
}

input[type="text"]::placeholder {
    font-family: 'Poppins', sans-serif;
}

input[type="text"]::-webkit-input-placeholder {
    font-family: 'Poppins', sans-serif;
}

input[type="text"]:-moz-placeholder {
    font-family: 'Poppins', sans-serif;
}

input[type="text"]::-moz-placeholder {
    font-family: 'Poppins', sans-serif;
}

input[type="text"]:-ms-input-placeholder {
    font-family: 'Poppins', sans-serif;
}


/* Button styles */
.search-btn {
    padding: 16px 24px;
    font-size: 18px;
    background-color: #2557a7;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    flex: 1 1 100%;
}


.search-btn:hover {
    background-color: #1e4d93;
}

/* Desktop layout: side-by-side */
@media (min-width: 600px) {
    .search-bar {
        flex-wrap: nowrap;
    }

    .input-group {
        flex: 1;
    }

    .search-btn {
        flex: 0 0 auto;
        margin-top: 24px; /* aligns with label height */
    }
}

/* Results */
.results {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.results-section {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);

}


.results-container {
    display: flex;
    border-radius: inherit;
    overflow: hidden;
    position: relative;
}

.result-card {
    background: white;
    padding: 16px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

.result-card h3 {
    margin-bottom: 6px;
    font-size: 18px;
    color: #222;
}

.result-card p {
    font-size: 14px;
    color: #555;
}

.input-icon-wrapper {
    position: relative;
    display: inline-block;
    height: auto;
    width: 100%;
}

.input-icon-wrapper input {
    width: 100%;
    padding: 16px 20px 16px 40px;
    font-size: 18px;
    border-radius: 6px;
    border: 1px solid #ccc;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input-icon-wrapper input:focus {
    border-color: #2557a7;
    box-shadow: 0 0 0 2px rgba(37, 87, 167, 0.2);
    outline: none;
}

.input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    height: 20px;
    width: 20px;
    pointer-events: none;
    display: block;
}

.job-results {
    display: flex;
    flex-direction: row;
    gap: 20px;
}

/* Left panel - scrollable job list */
.job-list {
    border-color: #ccc; /* slightly darker */

    /*border-top: 1px solid #ddd;*/
    /*border-bottom: 1px solid #ddd;*/
    width: 35%;
    max-width: 400px;
    padding: 30px 20px 40px; /* Top, left/right, bottom padding */
    background-color: #fefefe;
    border-right: 1px solid #eee;
    margin-top: 30px;
}

.job-summary {
    padding: 16px;
    border-radius: 6px;
    margin-bottom: 12px;
    background: white;
    cursor: pointer;
    border: 1px solid #ddd;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.job-summary:hover {
    border-color: #2557a7;
    background-color: #f3f8ff;
    box-shadow: 0 0 4px rgba(37, 87, 167, 0.2); /* optional soft hover effect */

}

.job-summary:first-child {
    margin-top: 10px;
}

.job-summary.selected {
    border: 2px solid #2557a7; /* Highlighted border */
    background-color: #f3f8ff; /* Light blue background */
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.05); /* Optional subtle shadow */
}

.job-item {
    cursor: pointer;
    padding: 10px;
    border: 1px solid #ccc;
    margin-bottom: 10px;
}

/* Right panel - job detail */
.job-detail {
    flex: 1;
    padding: 20px;
    background-color: #fff;
    /* REMOVE overflow-y and height constraints */
}

.job-detail.show-detail {
    display: block;
}

.job-detail-content {
    padding-left: 20px;
    padding-right: 0; /* optional */

}

.job-detail-content h2, .job-detail-content h4{
    color: #333;
}
.job-detail-content h2 {
    margin-bottom: 0px;
    padding-bottom: 0px;
    margin-top: 0px;
}

.job-detail .back-button {
    display: none;
    margin-bottom: 16px;
    background: none;
    border: none;
    color: #2557a7;
    font-size: 16px;
    cursor: pointer;
}

.job-section {
    margin-top: 20px;
}

.job-section h3 {
    margin-bottom: 8px;
    font-size: 18px;
    color: #2557a7;
}

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

.job-section li {
    margin-bottom: 6px;
    list-style: disc;
}


/* MOBILE LAYOUT */
@media (max-width: 767px) {
    .search-summary {
        flex-direction: column;
        align-items: flex-start;
    }
    .search-summary-inner span {
        width: 100%;
    }
    .results-container {
        flex-direction: column; /* stack the sections vertically */
    }

    .job-list {
        max-height: none;
        overflow-y: visible;
        width: 100%; /* take full width */
        border-right: none;
    }

    .job-detail {
        display: none !important; /* ensure it doesn't show at all unless active */
    }

    .job-detail.active {
        display: block !important;
        position: fixed; /* changed from absolute */
        top: 0;
        left: 0;
        height: 100%;
        width: 100%;
        z-index: 1000;
        background-color: white;
        padding: 16px;
        overflow-y: auto; /* enables scrolling */
        -webkit-overflow-scrolling: touch; /* smooth iOS scroll */

    }

    .job-detail.active .back-button {
        display: block;
    }

    .job-detail-content {
        padding-bottom: 40px; /* buffer space so content isn't clipped at bottom */
    }

    .job-summary.selected {
        border: 2px solid #2557a7; /* Highlighted border */
        background-color: #f3f8ff; /* Light blue background */
        box-shadow: 0 0 6px rgba(0, 0, 0, 0.05); /* Optional subtle shadow */
    }

    .mobile-nav {
        z-index: 1100; /* higher than modal */
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
    }

    .contact-modal-content {
        width: 95%;
        padding: 20px;
        border-radius: 6px;
    }

    .contact-modal h2 {
        font-size: 20px;
        text-align: center;
    }

    .form-group label {
        font-size: 14px;
    }

    .form-group input,
    .form-group textarea {
        font-size: 14px;
        padding: 12px;
    }

    .send-contact-btn {
        width: 100%;
        padding: 14px;
        font-size: 16px;
    }

    .close-contact-modal {
        top: 12px;
        right: 15px;
        font-size: 24px;
    }
    .contact-buttons {
        display: flex;
        gap: 12px; /* Spacing between the buttons */
        justify-content: left;
    }
    .contact-email-btn,
    .contact-phone-btn {
        background-color: transparent;  /* Dark blue background on hover */
        color: #004080;  /* Change text and icon to white on hover */
        border: 2px solid #004080;
    }
    .contact-email-btn:active,
    .contact-phone-btn:active {
        background-color: #004080;  /* Dark blue background on hover */
        color: white;  /* Change text and icon to white on hover */
        border: 2px solid #004080;
    }
}

@media (min-width: 768px) {
    .input-group {
        flex: 1 1 0;
    }

    .search-btn {
        flex: 0 0 auto;
        align-self: flex-end;
    }

    .job-detail {
        display: block; /* fallback default for desktop */
    }

    .job-detail.active {
        display: block;
    }
}

footer {
    background: #3470CA;
    color: white;
    padding: 20px;
    text-align: center;
    margin-top: 40px;
}

.suggestion-item:hover,
.suggestion-item.active {
    background-color: #f0f0f0;
}
.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item {
    /*border: 1px solid #ccc;*/

    padding: 10px 16px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    font-size: 16px;
    white-space: nowrap;
}

body.modal-open #where-suggestions {
    display: none !important;
}

.profile-image {
    display: block;
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin: 16px 0;
}

#where-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 10;
    background: #ffffff;
    border: none;
    border-top: none;

    max-height: 400px; /* Approx height for 10 items */
    overflow-y: auto;
}

.no-results-message {
    text-align: center;
    color: #555;
    background-color: #fff;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
    /*border: 1px solid #ddd;*/
}

.search-summary {
    margin-bottom: 16px;
    padding: 12px 16px;
    font-size: 14px;
    color: #333;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.search-summary-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    flex-wrap: wrap;
    gap: 8px;
}

.location-label {
    font-weight: 500;
}

.applicants-label {
    color: #555;
}

.search-summary-key {
    text-transform: uppercase;
    font-size: 12px;
    color: #004080;

}

.pagination {
    display: flex;
    justify-content: center;
    margin: 24px 0;
    gap: 6px;
    flex-wrap: wrap;
    padding-bottom: 32px; /* 👈 Added padding */
}

.pagination button {
    padding: 6px 12px;
    border: 1px solid #ccc;
    background-color: #fff;
    color: #333;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.pagination button:hover {
    background-color: #f0f0f0;
}

.pagination button.active {
    background-color: #2557a7;
    color: #fff;
    border-color: #2557a7;
}

.pagination button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}
.profile-summary {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 14px;
    color: #333;
}

.profile-header h4, .profile-header h5 {
    margin: 0;
    font-weight: 600;
}

.profile-header .profile-title {
    font-size: 13px;
    color: #666;
    font-weight: 400;
}

.profile-details p {
    margin: 4px 0;
    line-height: 1.4;
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.tag {
    background-color: #f0f4f8;
    color: #004080;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    display: inline-block;
    white-space: nowrap;
}

.detail-title {
    margin-top: 0px;
    padding-top: 0px;
    font-size: 12px;
    font-weight: 500;
    font-style: normal;
    text-transform: uppercase;
}
.job-description h4 {
    text-decoration: underline;
    margin-top: 40px;
}

.fancy-quote {
    font-style: italic;
    color: #444;
    border-left: 4px solid #0073e6; /* professional accent color */
    background-color: #f9f9f9;
    padding: 16px 20px;
    margin: 20px 0;
    border-radius: 6px;
    position: relative;
}

.fancy-quote::before {
    content: "“";
    font-size: 2rem;
    color: #0073e6;
    position: absolute;
    top: -10px;
    left: 10px;
    line-height: 1;
}

.fancy-quote::after {
    content: "”";
    font-size: 2rem;
    color: #0073e6;
    position: absolute;
    bottom: -10px;
    right: 10px;
    line-height: 1;
}

.apply-btn {
    clear: both;
    background-color: #004080;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    margin-top: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.apply-btn:hover {
    background-color: #0059b3;
}

.applied-indicator {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 16px;
    font-size: 1rem;
    color: #2e7d32;
    background-color: #e8f5e9;
    border: 1px solid #c8e6c9;
    border-radius: 5px;
    font-weight: 500;
}

.applied-badge {
    display: inline-flex;
    align-items: center;
    background-color: #e6f4ea;
    color: #256029;
    font-weight: 600;
    font-size: 0.8rem;
    padding: 4px 8px;
    border-radius: 12px;
    margin-top: 8px;
    width: fit-content;
}

.checkmark {
    margin-right: 5px;
    font-weight: bold;
}

/*****************************/
/**** SKELETON ***************/

.job-skeleton-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1rem 0;
}

.skeleton-job-card {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    border-radius: 8px;
    background-color: #f5f5f5;
    animation: pulse 1.5s infinite ease-in-out;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.skeleton-title,
.skeleton-company,
.skeleton-location,
.skeleton-salary {
    height: 14px;
    background-color: #e0e0e0;
    border-radius: 4px;
    margin-bottom: 10px;
}

.skeleton-title {
    width: 60%;
    height: 18px;
}

.skeleton-company {
    width: 40%;
}

.skeleton-location {
    width: 30%;
}

.skeleton-salary {
    width: 25%;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

@media (max-width: 600px) {
    .skeleton-job-card {
        padding: 0.75rem;
    }

    .skeleton-title {
        width: 80%;
    }

    .skeleton-company,
    .skeleton-location,
    .skeleton-salary {
        width: 60%;
    }
}

.contact-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;

}

.contact-modal-content {
    position: relative;
    background: white;
    padding: 30px;
    max-width: 600px;
    width: 100%;
    border-radius: 8px;
    margin: 0 auto;
    box-sizing: border-box;
}

.contact-modal h2 {
    margin-top: 0;
    color: #004080;
}

.close-contact-modal {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 24px;
    font-weight: bold;
    color: #444;
    cursor: pointer;
    line-height: 1;
    z-index: 10;
}


.form-group {
    margin-bottom: 16px;
}

.form-group label {
    font-weight: bold;
    display: block;
    margin-bottom: 6px;
}

/* Inputs and textareas fix */
.form-group input,
.form-group textarea {
    width: 100%;
    box-sizing: border-box;  /* Ensure borders/padding are included in width */
    padding: 12px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.send-contact-btn {
    background-color: #004080;
    color: white;
    padding: 10px 20px;
    border: none;
    font-size: 15px;
    border-radius: 4px;
    cursor: pointer;
}

.send-contact-btn:hover {
    background-color: #002a5c;
}

.contact-buttons {
    display: flex;
    gap: 12px; /* Spacing between the buttons */
}

.contact-email-btn,
.contact-phone-btn {
    padding: 8px 16px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px; /* Space between icon and text */
    background-color: transparent;  /* Transparent background */
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: transparent;  /* Dark blue background on hover */
    color: #004080;  /* Change text and icon to white on hover */
    border: 2px solid #004080;
}

.applicant-detail-content:hover .contact-email-btn,
.applicant-detail-content:hover .contact-phone-btn {
    background-color: #004080;  /* Dark blue background on hover */
    color: #fff;  /* Change text and icon to white on hover */
    border: 2px solid #ffffff;
}

.contact-email-btn:hover,
.contact-phone-btn:hover {
    background-color: #004080;  /* Dark blue background on hover */
    color: white;  /* Change text and icon to white on hover */
    border: 2px solid #004080;
}

.contact-email-btn i,
.contact-phone-btn i {
    font-size: 16px; /* Icon size */
}

.initials-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: #004080;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 20px;
}
