/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.2
*/

/* Transparent by default */
.my-custom-header {
    position: sticky;
    top: 0;
    z-index: 999;
    transition: all 0.3s ease;
}

/* White background after scrolling */
.my-custom-header.scrolled {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.page-id-6 .sb-job-count{
	margin-bottom:20px !important;
}

/* animate-fade-up */
/* Hidden state */
.animate-fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Active state */
.animate-fade-up.show {
  opacity: 1;
  transform: translateY(0);
}

.reading-time {
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.reading-time .clock-icon {
    height: 14px;
    display: inline-block;
}

/* animate-fade-up end */

.full-button {
	width: 100%;
}

.widget-full-button {
    width: 100%;
    color: #ffffff !important;
}

.single-post {
    background-image: linear-gradient(180deg, #d2dffa 0%, rgba(255, 255, 255, 0) 10%);
}

.single-post .inside-article {
    background-color: transparent !important;
}

.gb-query-loop-pagination a,.gb-query-loop-pagination .page-numbers.current{
     background-color: var(--accent);
    border-radius: 12px;
    color: #fff;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    border: solid 1px var(--accent) !important;
}

.gb-query-page-numbers-18f33f8f .page-numbers{
	border-color: var(--accent);
	color:var(--accent);
}

/* General Ninja Forms styling */

.nf-form-fields-required,
.nf-error-msg.nf-error-field-errors {
    display: none;
}

/* Digital Jobs */
.jobs-login-panel {
    --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 
                 0 4px 6px -4px rgb(0 0 0 / .1);
    --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 
                         0 4px 6px -4px var(--tw-shadow-color);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), 
                var(--tw-ring-shadow, 0 0 #0000), 
                var(--tw-shadow);
    width: 448px;
    margin: 30px auto;
    padding: 24px;
    border-radius: 8px;
}

.single-job .job-single-list-wrapper 
.job-single-list-wrapper-right .job-sidebar-widget {
    padding: 24px !important;
}

.logged-in.admin-bar .jobs-login-panel {
    width: 896px;
}

.jobs-login-panel .wpjb-field {
    width: 100%;
}

.jobs-login-panel .wpjb-label {
    width: 100%;
    font-size: 14px;
    font-weight: 500;
    padding: 6px 0;
    margin: 1px 0;
    color: rgb(2, 8, 23);
}

.jobs-login-panel div.wpjb-flash-error:nth-child(2) {
    display: none;
}

.jobs-login-panel .wpjb-form input {
    padding: 10px;
    font-size: 13px;
    background: transparent;
    border-radius: 6px;
}

.jobs-login-panel 
.wpjb-element-input-checkbox.wpjb-element-name-remember {
    position: relative;
    padding-left: 20px !important;
}

.jobs-login-panel 
.wpjb-element-input-checkbox.wpjb-element-name-remember{
    display: flex;
    align-items: center;
    padding: 0 !important;
    margin: 0;
    overflow: unset;
}

.jobs-login-panel 
.wpjb-element-input-checkbox.wpjb-element-name-remember *{
    padding: 0 !important;
    margin: 0 !important;
}

.jobs-login-panel input#wpjb_submit {
    background: #4487ff;
    width: 100%;
}

.jobs-login-panel fieldset legend {
    border: none;
}

.jobs-login-panel .wpjb-form-actions div {
    margin: 0 !important;
}

.jobs-login-panel .wpjb-form-actions a {
    display: inline-block;
    width: 100%;
    margin-top: 16px !important;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: #1a5eb5;
}

.jobs-login-panel .wpjb-form-actions a:hover {
    text-decoration: underline;
}

.jobs-login-panel 
.wpjb-element-input-checkbox.wpjb-element-name-remember 
.wpjb-field {
    position: absolute;
    left: 0;
    top: -1px;
}

.jobs-login-panel 
.wpjb-element-input-checkbox.wpjb-element-name-remember 
.wpjb-field input{
    padding: 0 !important;
    border: none ! IMPORTANT;
    outline: none !important;
    width: 16px;
    height: 16px;
}

.jobs-login-panel .wpjb-element-input-checkbox.wpjb-element-name-remember .wpjb-field label{
    height: 16px !important;
    width: 16px !important;
    display: inline-block !important;
}

.jobs-login-panel 
.wpjb-element-input-checkbox.wpjb-element-name-remember label.wpjb-label{
    padding-left: 25px !important;
    line-height: 20px;
}

.jobs-login-panel .wpjb-flash-error 
.wpjb-icon-attention:before {
    display: none;
}

.single-post .latest-job-widget p:empty {
    display: none;
}

.single-job .job-single-list-wrapper .job-single-list-wrapper-right p.gb-text.alert-widget-p {
	font-size: 14px !important;
	margin: 0 !important;
}

.single-job .job-single-list-wrapper .job-single-list-wrapper-right .nf-field-element {
    margin-bottom: 12px !important;
}

.single-post .latest-job-widget .sb-job-list {
    margin-top: 0;
}

/* Digital Jobs END */

@media (min-width: 768px) { 
  .inside-right-sidebar {
    position: sticky;
    top: 112px;
  }
}


@media only screen and (max-width: 480px) {
    .logo-size.wp-block-site-logo {
        max-width: 60px;
    }

    .jobs-login-panel {
        width: 100%;
        box-sizing: border-box;
    }
}

/* Mobile (up to 480px) */
@media (max-width: 480px) {
  .single-post {
    background-image: linear-gradient(180deg, #d7e4ff 0%, rgba(255, 255, 255, 0) 4%);
  }
}

/* Tablet (481px to 768px) */
@media (min-width: 481px) and (max-width: 768px) {
  .single-post {
    background-image: linear-gradient(180deg, #d7e4ff 0%, rgba(255, 255, 255, 0) 8%);
  }
}

/* Company page background gradient to match jobs page - from top of header down */
body.single-company {
  background-image: linear-gradient(180deg, #dfe9ff 0%, rgba(255, 255, 255, 0) 100%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center top;
}

body.single-company .site-main,
body.single-company .inside-article {
  background-color: transparent !important;
}

/* LinkedIn Login Button - Full Width to Match Login Button */
.jobs-login-panel .wpjb-form-actions > div:last-child {
  width: 100% !important;
}

.jobs-login-panel div.nsl-button {
  border-radius: 12px !important;
}

.jobs-login-panel .nsl-container,
.jobs-login-panel .nsl-container-block,
.jobs-login-panel .nsl-container-buttons {
  width: 100% !important;
  max-width: 100% !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* LinkedIn Login Button - Match Login Button Height (40px) and Horizontal Layout */
.jobs-login-panel .nsl-button-linkedin {
  width: 100% !important;
  max-width: 100% !important;
  display: flex !important;
  align-items: center !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  border-radius: 12px !important;
}

.jobs-login-panel .nsl-button-linkedin a {
  width: 100% !important;
  max-width: 100% !important;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  padding: 0 16px !important;
  font-size: 16px !important;
  line-height: 1 !important;
}

.jobs-login-panel .nsl-button-linkedin .nsl-button-svg-container {
  height: 28px !important;
  width: 28px !important;
  max-height: 28px !important;
  min-height: 28px !important;
  padding: 8px !important;
  margin: 0 0 0 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  vertical-align: middle !important;
}

.jobs-login-panel .nsl-button-linkedin .nsl-button-svg-container svg {
  height: 28px !important;
  width: 28px !important;
  max-height: 28px !important;
  display: block !important;
  transform: scale(1.35) !important;
  transform-origin: center !important;
}

.jobs-login-panel .nsl-button-linkedin .nsl-button-svg-container img {
  height: 28px !important;
  width: 28px !important;
  max-height: 28px !important;
  display: block !important;
}

.jobs-login-panel .nsl-button-linkedin .nsl-button-svg-container i,
.jobs-login-panel .nsl-button-linkedin .nsl-button-svg-container span {
  font-size: 28px !important;
  line-height: 28px !important;
  height: 28px !important;
  width: 28px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.jobs-login-panel .nsl-button-linkedin .nsl-button-label-container {
  padding: 0 !important;
  margin: 0 24px 0 12px !important;
  font-size: 16px !important;
  line-height: 20px !important;
  height: auto !important;
  display: block !important;
  align-items: center !important;
  white-space: nowrap !important;
  text-align: center !important;
  flex: 1 1 auto !important;
}

/* Job skills tag cloud (single job sidebar) */
.job-skill-cloud {
  margin: 0 0 32px 0;
  padding-bottom: 12px;
}

.job-single-list-wrapper-right .job-skill-cloud + * {
  margin-top: 24px !important;
}

.job-skill-cloud-title {
  font-size: 18px;
  line-height: 24px;
  font-weight: 600;
  margin: 0 !important;
  color: #000000;
}

.job-skill-cloud-title-wrap {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 0 0 16px 0;
}

.job-skill-cloud-help {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  cursor: help;
  top: -4px;
}

.job-skill-cloud-help-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px !important;
  height: 15px !important;
  min-width: 15px;
  min-height: 15px;
  border: 2px solid #000000 !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  color: #000000 !important;
  font-size: 9px;
  line-height: 1;
  font-weight: 700;
  text-align: center;
  box-sizing: border-box;
}

.job-skill-cloud-tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  background: #1d8bff;
  color: #ffffff;
  padding: 5px 7px !important;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.4;
  box-sizing: border-box;
  width: max-content;
  max-width: 280px;
  min-width: 240px;
  text-align: left;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 20;
}

.job-skill-cloud-help:hover .job-skill-cloud-tooltip,
.job-skill-cloud-help:focus .job-skill-cloud-tooltip,
.job-skill-cloud-help:focus-within .job-skill-cloud-tooltip {
  opacity: 1;
  visibility: visible;
}

.job-skill-cloud-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 12px 0 !important;
}

.job-single-list-wrapper-right .job-skill-cloud-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 13px;
  border-radius: 12px;
  background: #ffffff !important;
  color: #1c5eb5 !important;
  border: 2px solid #1c5eb5 !important;
  box-sizing: border-box;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.1;
  white-space: nowrap;
}

.job-single-list-wrapper-right .job-skill-cloud-tag.job-skill-cloud-tag-direct {
  color: #1d8bff !important;
  border-color: #1d8bff !important;
}
