/* Fashion Intern Core - Frontend Display Rules */

/* Job Listings List - Layout Fix */
ul.job_listings li.job_listing a,
ul.job_listings li.job_listing .job_listing_link {
    display: flex !important;
    align-items: center;
    width: 100%;
    position: relative; /* Ensure container is a positioning context if needed */
}

/* Job Listings List - Content Fix */
ul.job_listings li.job_listing a > div:not(.job_listing_logo),
ul.job_listings li.job_listing .job_listing_link > div:not(.job_listing_logo) {
    flex-grow: 1;
    min-width: 0; /* allows text truncation/wrapping within flex item */
}

/* Job Listings List - Logo Container */
body .job_listings ul.job_listings li.job_listing .job_listing_logo,
body .job_listings .job_listing .company_logo {
    width: 80px; 
    height: 80px;
    min-width: 80px;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border-radius: 8px;
    box-sizing: border-box;
    overflow: hidden;
    margin-right: 25px; /* Increased margin to prevent overlap */
    flex-shrink: 0; /* Prevent logo from shrinking */
    float: none !important; /* Disable float if theme applies it */
    position: static !important; /* Ensure it's part of the flex flow, not absolute */
}

@media (max-width: 480px) {
    ul.job_listings li.job_listing .job_listing_logo,
    .job_listing .company_logo {
        width: 60px;
        height: 60px;
        margin-right: 15px;
        padding: 6px;
    }
}

/* Job Listings List - Logo Image */
ul.job_listings li.job_listing .job_listing_logo img,
.job_listing .company_logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain; /* Ensures the image is contained and not distorted */
    margin: 0 auto;
    display: block;
}

/* Single Job Listing - Company Header Logo */
.single_job_listing .company_header .company_logo {
    width: 160px; /* Larger on single page as per example range */
    height: 160px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border: 1px solid #f0f0f0;
    box-sizing: border-box;
    overflow: hidden;
    margin-right: 20px; /* Spacing from text */
}

.single_job_listing .company_header .company_logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
    display: block;
}

/* Hide Job Types Filter (Checkboxes) */
ul.job_types,
.job_types {
    display: none !important;
}

/* Hide RSS Link */
.job_listings .rss_link,
a.rss_link,
.job-manager-rss-link {
    display: none !important;
}

/* Hide Remote Position Filter and Label */
.job_filters .showing_remote,
.job_filters .filter_by_remote,
.job_filters .search_remote,
.job_filters .remote_position,
.job_filters input[name="remote_position"],
.job_filters label[for="remote_position"] {
    display: none !important;
}

/* Supporting Material Section */
.fi-supporting-material {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
    clear: both;
}

.fi-supporting-material h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: #333;
}

.fi-supporting-material p {
    color: #666;
    margin-bottom: 20px;
    font-style: italic;
    font-size: 0.95rem;
    line-height: 1.5;
}

.fi-supporting-material .button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #333;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.fi-supporting-material .button:hover {
    background-color: #000;
}

/* Branded Internship PDF */

/* Hide Wordfence help link inside account settings */
.fi-account-settings a[href*="wordfence.com/help/?query=module-login-security-2fa"] {
    display: none;
}
.fi-job-pdf {
    margin: 30px 0 40px;
    padding-top: 10px;
}

.fi-job-pdf h2 {
    font-size: 1.35rem;
    margin-bottom: 16px;
    color: #222;
}

.fi-job-pdf__viewer {
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    overflow: hidden;
    background: #fafafa;
}

.fi-job-pdf__viewer object {
    width: 100%;
    height: calc(100vh - 120px);
    min-height: 900px;
    display: block;
}

@media (max-width: 768px) {
    .fi-job-pdf__viewer object {
        height: calc(100vh - 280px);
        min-height: 440px;
    }
}

.fi-job-pdf__fallback {
    padding: 20px;
}

/* Job Description HTML Styling */
.job_description, 
.job-listing-description {
    line-height: 1.7;
    color: #444;
}

.job_description h2, 
.job_description h3 {
    margin: 1.5em 0 0.5em;
    color: #222;
    font-weight: 600;
}

.job_description h2 { font-size: 1.5rem; border-bottom: 1px solid #eee; padding-bottom: 5px; }
.job_description h3 { font-size: 1.2rem; }

.job_description ul, 
.job_description ol {
    margin: 1em 0 1.5em 1.5em;
    padding: 0;
}

.job_description ul li {
    list-style-type: disc;
    margin-bottom: 0.5em;
}

.job_description ol li {
    list-style-type: decimal;
    margin-bottom: 0.5em;
}

.job_description strong, 
.job_description b {
    color: #000;
    font-weight: 700;
}

.job_description a {
    color: #333;
    text-decoration: underline;
}

.job_description a:hover {
    color: #000;
}

/* Hide icon next to company website link */

.single_job_listing .company_website:before,

.single_job_listing .job-manager-website:before,

.single_job_listing .company .website:before {

    display: none !important;

}



.single_job_listing .company_website img,

.single_job_listing .job-manager-website img {

    display: none !important;

}



/* Hide Company Description/Tagline from the job listings list */

ul.job_listings li.job_listing .tagline {

    display: none !important;

}
