/*
 Theme Name:   ExpertHive Child
 Description:  A child theme for ExpertHive.
 Author:       Your Name
 Template:     experthive
 Version:      1.0.0
*/

/* STICKY FOOTER FIX — .mt-footer is nested inside .site-content > .container,
   not a sibling of it, so the flex chain has to pass through each level
   down to .content-area for this to work */
html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-container {
  display: flex;
  flex-direction: column;
  flex: 1 0 auto;
}

.site-content {
  display: flex;
  flex-direction: column;
  flex: 1 0 auto;
}
.site-content {
   padding: 70px 0 0 0 !important;
    position: relative;
    z-index: 1;
}

@media only screen and (max-width: 74.99em) {
    .site-content {
        padding: 70px 0 0 0 !important;
    }
}

.site-content > .container {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 0 auto;
  width: 100%;
}

.content-area {
  flex: 1 0 auto;
}

.header-logo img {
    display: block;
    width: 240px !important;
}

@media only screen and (min-width: 100em) {
    .container {
        width: 100rem !important;
    }
}

/* FULL-WIDTH, NO PADDING — ONLY on page id 11 and 16.
   All other pages keep the theme's normal container padding/margins. */
.page-id-11 body .container,
.page-id-16 body .container,
body.page-id-11 .container,
body.page-id-16 .container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

body.page-id-11 > div.site-container > header > section > div > div > h1,
body.page-id-16 > div.site-container > header > section > div > div > h1 {
    display: none;
}

body.page-id-11 .site-content,
body.page-id-16 .site-content {
    padding: 0 !important;
    position: relative;
    z-index: 1;
}

body .site-footer,
body footer.site-footer,
html body .site-footer {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
}



/* category list on the home page*/
/* CONTAINER */
body.page-id-11 .hp-listing-categories .hp-row {
  background: white;
  border: 2px solid #dde5f5;
  border-radius: 14px;
  padding: 8px 0;
  display: flex;
  flex-wrap: wrap;
  margin: 10px 80px;
}

/* EACH ITEM */
body.page-id-11 .hp-listing-category {
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 0 !important;
}

body.page-id-11 .hp-grid__item {
    margin-bottom: 0 !important;
}

body.page-id-11 .hp-listing-category__header {
  display: none;
}

body.page-id-11 .hp-listing-category__content {
  padding: 0;
}

body.page-id-11 .hp-listing-category__details {
  display: none;
}

/* LINK STYLING */
body.page-id-11 .hp-listing-category__name {
  margin: 0;
}

body.page-id-11 .hp-listing-category__name a {
  display: block;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 500;
  color: #1a2e5a;
  text-decoration: none;
  border-bottom: 1px solid #dde5f5;
  transition: all 0.18s;
}

body.page-id-11 .hp-listing-category__name a:hover {
  color: #f47b20;
  padding-left: 30px;
  background: rgba(244,123,32,0.04);
}

/* LAST ITEM IN EACH COLUMN — REMOVE BORDER */
body.page-id-11 .hp-grid__item:nth-last-child(-n+3) .hp-listing-category__name a {
  border-bottom: none;
}

/* RESPONSIVE */
@media (max-width: 767px) {
  body.page-id-11 .hp-grid__item:nth-last-child(-n+1) .hp-listing-category__name a {
    border-bottom: none;
  }
}

/* category list — page id 58 (single column layout) */
/* CONTAINER */
body.page-id-58 .hp-listing-categories .hp-row {
  background: white;
  border: 2px solid #dde5f5;
  border-radius: 14px;
  padding: 8px 0;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  margin: 10px 80px;
}

/* EACH ITEM — override the Bootstrap-style hp-col-sm-4 / hp-col-xs-12
   width classes directly, since those (not flex-basis) control width here */
body.page-id-58 .hp-listing-categories .hp-grid__item {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    margin-bottom: 0 !important;
}

body.page-id-58 .hp-listing-category {
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 0 !important;
}

body.page-id-58 .hp-listing-category__header {
  display: none;
}

body.page-id-58 .hp-listing-category__content {
  padding: 0;
}

body.page-id-58 .hp-listing-category__details {
  display: none;
}

/* LINK STYLING */
body.page-id-58 .hp-listing-category__name {
  margin: 0;
}

body.page-id-58 .hp-listing-category__name a {
  display: block;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 500;
  color: #1a2e5a;
  text-decoration: none;
  border-bottom: 1px solid #dde5f5;
  transition: all 0.18s;
}

body.page-id-58 .hp-listing-category__name a:hover {
  color: #f47b20;
  padding-left: 30px;
  background: rgba(244,123,32,0.04);
}

/* LAST ITEM — REMOVE BORDER (single column, so just the last one overall) */
body.page-id-58 .hp-grid__item:last-child .hp-listing-category__name a {
  border-bottom: none;
}

body.page-id-11 #content > div > div > div.wp-block-columns.has-background.is-layout-flex.wp-container-core-columns-is-layout-8f761849.wp-block-columns-is-layout-flex,
body.page-id-16 #content > div > div > div.wp-block-columns.has-background.is-layout-flex.wp-container-core-columns-is-layout-8f761849.wp-block-columns-is-layout-flex {
    padding-bottom: 5rem !important;
    margin-bottom: 0 !important;
}

body.page-id-11 .wp-block-columns,
body.page-id-16 .wp-block-columns {
    margin-bottom: 0 !important;
}

.hp-grid:last-child {
    margin-bottom: 4rem !important;
}


.mt-footer {
  background: #1a2e5a;
  padding: 56px 5% 28px;
  flex-shrink: 0;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: 4rem !important;
    
}

.mt-footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 44px;
}

.mt-footer-brand {
  display: flex;
  flex-direction: column;
}

.mt-footer-logo {
  text-decoration: none;
  margin-bottom: 14px;
  display: inline-block;
}

.mt-footer-tagline {
  font-size: 0.84rem;
  color: rgba(255,255,255,0.38);
  line-height: 1.65;
  max-width: 262px;
  margin-bottom: 18px;
}

.mt-footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255,255,255,0.42);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mt-footer-heading {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: white;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.mt-footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mt-footer-list li {
  display: flex;
  align-items: center;
  gap: 7px;
}

.mt-footer-list li::before {
  content: '';
  width: 4px;
  height: 4px;
  background: #f47b20;
  border-radius: 50%;
  flex-shrink: 0;
}

.mt-footer-list li a {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: color 0.18s;
}

.mt-footer-list li a:hover {
  color: #f47b20;
}

.mt-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.27);
  flex-wrap: wrap;
  gap: 10px;
}

.mt-footer-bottom a {
  color: rgba(255,255,255,0.27);
  text-decoration: none;
}

.mt-footer-bottom a:hover {
  color: #f47b20;
}

.mt-footer-badge {
  display: inline-flex;
  align-self: flex-start;
}

@media (max-width: 991px) {
  .mt-footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 576px) {
  .mt-footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}





/* job (request) category list, matches page id 58 styling */

.job-categories-list {
	background: white;
	border: 2px solid #dde5f5;
	border-radius: 14px;
	padding: 8px 0;
	list-style: none;
	margin: 10px 80px;
}
.job-categories-list__item {
	margin-bottom: 0;
}
.job-categories-list__item a {
	display: block;
	padding: 10px 24px;
	font-size: 14px;
	font-weight: 500;
	color: #1a2e5a;
	text-decoration: none;
	border-bottom: 1px solid #dde5f5;
	transition: all 0.18s;
}
.job-categories-list__item a:hover {
	color: #f47b20;
	padding-left: 30px;
	background: rgba(244,123,32,0.04);
}
.job-categories-list__item:last-child a {
	border-bottom: none;
}