/*
Theme Name: NOO JobMonster Child Theme
Theme URI: https://nootheme.com/
Author: NooTheme
Author URI: https://nootheme.com/
Description: Custom child theme for JobMonster theme
Template: noo-jobmonster
Version: 1.1.1
Tags: two-columns, left-sidebar, right-sidebar, fixed-layout, responsive-layout, custom-background, custom-header, custom-menu, editor-style, featured-images, flexible-header, full-width-template, sticky-post, theme-options, translation-ready
Text Domain: noo
*/

/* ==========================================================================
   Gateway Job Center fixes — validated on staging 2026-08
   ========================================================================== */

/* 1. Company logos in job grids/listings: keep them, but constrain them.
   The theme only caps logo size inside .noo-job-grid / .noo-job-list2
   wrappers; the homepage grid (.row.is-flex .noo-grid-item) has no such
   wrapper, so the fallback company-logo.png rendered at ~320px and made
   card heights wildly uneven. Give every listing logo the same fixed box. */
.noo-job-item .company-logo {
	width: 64px;
	height: 64px;
	flex: 0 0 64px;
	overflow: hidden;
}

.noo-job-item .company-logo a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}

.noo-job-item .company-logo img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
}

/* Tone down the theme's gray-briefcase placeholder so jobs without a
   real logo don't visually shout over the ones that have one. */
.noo-job-item .company-logo img[src*="assets/images/company-logo"] {
	opacity: 0.45;
}

/* 2. Kill the duplicate header logo.
   Old theme JS toggled `.shrink`; JobMonster 4.8.x toggles
   `.navbar-fixed-top` (+ `.navbar-shrink`). Cover both schemes so the
   fix holds before and after the stale assets are deployed over. */
.navbar:not(.navbar-fixed-top):not(.shrink) .noo-sticky-logo-img {
	display: none !important;
}
.navbar.navbar-fixed-top .noo-logo-normal,
.navbar.shrink .noo-logo-normal {
	display: none !important;
}

/* Elementor job grid (homepage): hide the generic placeholder logo only.
   Real company logos (East-West, HFTH, etc.) still show. visibility keeps
   the card layout aligned with cards that have a logo. 2026-09 */
.job-elementor-widget .company-logo img[src$="company-logo.png"] {
	visibility: hidden;
}
