/*
 Theme Name:   Astra Child
 Theme URI:    https://wpastra.com/
 Description:  Child theme for Astra (MWResource)
 Author:       Leah Dzierzek
 Template:     astra
 Version:      1.0.0
*/

/* ------------------------------------------
 *  
 *  	     MWR Custom Styles
 *
 *  ------------------------------------------ 
 *
 * TABLE OF CONTENTS:
 *
 * 1. MWR BRAND COLORS
 * 2. TYPOGRAPHY
 * 3. BUTTONS
 * 4. FOOTER: PRIVACY POLICY & TERMS & CONDITIONS
 * 5. MAIN FOOTER DESIGN
 * 6. QUICK NAVIGATION BOXES
 * 7. HEADER ACCENT LINE
 * 8. HOMEPAGE HEADER ACCENT LINE
 * 9. UPCOMING & PAST EVENTS GRID LAYOUT
 * 10. NEWSLETTERS GRID LAYOUT
 * 11. INDUSTRY PARTNERS HOVER EFFECT
 * 12. QUOTE BOX STYLING
 * 13. SERVICE SECTION CARD STYLING
 * 14. CAREERS PAGE STYLING
 * 15. JOB DETAILS PAGE STYLING
 * 16. ACCENT LINES ON OUR VALUES
 * 17. BULLET POINTS ON SERVICES DETAILS
 * 18. SYSTEMS & APPLICATIONS STYLING
 * 19. CONTACT PAGE - REMOVE LINK ON PHONE NUMBER
 * 20. HIDE FEATURED IMAGES FROM APPEARING ON PAGE
 * 21. TRADESHOWS PAGE STYLING
 *
 ------------------------------------------------ */


/* ------------------------------------------------
   1. MWR BRAND COLORS
--------------------------------------------------- */
:root {
    --mwr-navy: #04334f;
    --mwr-red: #b10015;
}

/* ------------------------------------------------
   2. TYPOGRAPHY
--------------------------------------------------- */
body {
    font-family: "Montserrat", sans-serif;
}

h1, h2, h3 {
    font-family: "Barlow", sans-serif;
}

.justify-text {
  text-align: justify;
}


/* ------------------------------------------------
   3. BUTTONS
--------------------------------------------------- */
.equal-cta-btn {
  min-width: 175px;
  text-align: center;
}

/* Center buttons on mobile */
@media (max-width: 768px) {
  .wp-block-button__link {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
  }
} 



/* ------------------------------------------------
   4. FOOTER: PRIVACY POLICY & TERMS & CONDITIONS
--------------------------------------------------- */
#footer-site-navigation #astra-footer-menu .menu-link{
  font-size: 13px;
  color: #bfbfbf;
  text-decoration: none;
  transition: color 0.2s ease;
}

/* Hover state */
#footer-site-navigation #astra-footer-menu .menu-link:hover{
  color: #ffffff;
}



/* ------------------------------------------------
   5. MAIN FOOTER DESIGN
--------------------------------------------------- */
.mwr-footer-top{
  display: grid;
  grid-template-columns: 300px 1fr;   /* narrower left column so menus sit closer */
  gap: 100px;                         /* smaller space between brand + menus */
  align-items: start;
  max-width: 1300px;
  margin: 0 auto;                     /* center the whole footer group */
  padding: 15px 24px 30px;            /* prevents edge-hugging on smaller screens */
}

/* Left block */
.mwr-footer-brand .mwr-footer-logo{
  max-width: 85px;
  height: auto;
  display: block;
  margin-bottom: 18px;
}

.mwr-footer-contact{
  color: #cfcfcf;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;        
}

.mwr-footer-contact a{
  color: inherit;                     /* phone link matches address color */
  text-decoration: none;
}

.mwr-footer-contact a:hover{
  color: #ffffff;
  text-decoration: underline;
}

/* Right block */
.mwr-footer-menus{
  display: grid;
  grid-template-columns:
    minmax(160px, 1fr)
    minmax(260px, 1.3fr)
    minmax(180px, 1fr);               /* prevents menus from spreading too wide */
  gap: 32px;                          /* tighter spacing between menu columns */
  max-width: 860px;                   /* keeps the menu block visually compact */
  justify-self: start;                /* align menu block to left within its cell */
  margin: 0 0 0 70px;
}

.mwr-footer-menus h4{
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 10px;
  color: #fff;
}

.mwr-footer-menus ul{
  list-style: none;
  margin: 0;
  padding: 0;
}

.mwr-footer-menus li{
  margin-bottom: 6px;
}

.mwr-footer-menus a{
  font-size: 14px;
  color: #cfcfcf;
  text-decoration: none;
  line-height: 1.35;
  white-space: nowrap;                /* no wrapping on desktop */
}

.mwr-footer-menus a:hover{
  color: #fff;
}

/* ----- MOBILE ----- */
/*
@media (max-width: 768px){

  footer .ast-container,
  footer .ast-builder-grid-row,
  footer .site-footer-section,
  footer .footer-widget-area,
  footer .widget,
  footer .textwidget,
  footer .custom-html-widget{
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    text-align: center !important;
  }

  .mwr-footer-top{
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 15px 20px 20px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    box-sizing: border-box !important;

    row-gap: 50px !important;
  }

  .mwr-footer-brand,
  .mwr-footer-menus,
  .mwr-footer-menus .footer-col{
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    text-align: center !important;
  }

  .mwr-footer-logo{
    display: block !important;
    margin: 0 auto 18px !important;
  }

  .mwr-footer-menus{
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 36px !important;
  }
}
*/

/* ----- TABLET + MOBILE FOOTER ----- */
/*@media (max-width: 1024px){ */
@media (max-width: 1200px){

  footer .ast-container,
  footer .ast-builder-grid-row,
  footer .site-footer-section,
  footer .footer-widget-area,
  footer .widget,
  footer .textwidget,
  footer .custom-html-widget{
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    text-align: center !important;
  }

  .mwr-footer-top{
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 15px 20px 20px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    box-sizing: border-box !important;
    row-gap: 50px !important;
  }

  .mwr-footer-brand,
  .mwr-footer-menus,
  .mwr-footer-menus .footer-col{
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    text-align: center !important;
  }

  .mwr-footer-logo{
    display: block !important;
    margin: 0 auto 18px !important;
  }

  .mwr-footer-menus{
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 36px !important;
  }

  .mwr-footer-menus a{
    white-space: normal !important;
  }

  .site-primary-footer-wrap .ast-builder-grid-row,
  .site-above-footer-wrap .ast-builder-grid-row,
  .site-below-footer-wrap .ast-builder-grid-row{
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 36px !important;
  }
}







/* ------------------------------------------------
   6. QUICK NAVIGATION BOXES
--------------------------------------------------- */
/* Remove underline on quick nav menu items */
.quick-nav .wp-block-navigation-item__content,
.quick-nav .wp-block-navigation-item__content:visited,
.quick-nav .wp-block-navigation-item__label {
  text-decoration: none !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
  background-image: none !important;
}

.quick-nav .wp-block-navigation-item__content::after,
.quick-nav .wp-block-navigation-item__label::after {
  content: none !important;
  display: none !important;
}

/* Base link color */
nav.wp-block-navigation.quick-nav
.wp-block-navigation-item__label {
  color: var(--mwr-navy);
  transition: color 0.25s ease;
}

/* Hover state */
nav.wp-block-navigation.quick-nav
.wp-block-navigation-item__content:hover
.wp-block-navigation-item__label,
nav.wp-block-navigation.quick-nav
.wp-block-navigation-item__content:focus
.wp-block-navigation-item__label {
  color: var(--mwr-red);
}

/* Hover cue line on left */
.quick-nav .wp-block-navigation-item__label {
  text-decoration: none;
  padding-left: 12px;
  border-left: 2px solid transparent;
  transition: border-color 0.25s ease, color 0.25s ease;
}
.quick-nav .wp-block-navigation-item__content:hover
.wp-block-navigation-item__label {
  border-left-color: var(--mwr-red);
}


/* Show full menu on mobile */
.quick-nav .wp-block-navigation__responsive-container-open,
.quick-nav .wp-block-navigation__responsive-container-close {
  display: none !important;
}

.quick-nav .wp-block-navigation__responsive-container {
  display: block !important;
  position: static !important;
  width: auto !important;
  height: auto !important;
  background: transparent !important;
  color: inherit !important;
  overflow: visible !important;
  padding: 0 !important;
}

.quick-nav .wp-block-navigation__responsive-container-content {
  display: block !important;
  padding-top: 0 !important;
}

.quick-nav .wp-block-navigation__container {
  display: flex !important;
  flex-direction: column !important;
  gap: 22px;
  align-items: flex-start !important;
}










/* Stack CTA + quick nav on smaller tablets */
/*
@media (max-width: 980px){

  .mwr-quick-nav-row{
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 28px !important;
  }

  .mwr-quick-nav-row > .wp-block-column,
  .mwr-quick-nav-row > .wp-block-uagb-container{
    width: 100% !important;
    max-width: 720px !important;
    flex-basis: 100% !important;
  }

  .mwr-quick-nav-row .quick-nav{
    width: 100% !important;
  }
}
*/



/* Stack CTA + quick nav on smaller tablets — safer version */
@media (max-width: 980px){

  .mwr-quick-nav-row{
    gap: 28px !important;
  }

  .mwr-quick-nav-row > .wp-block-column{
    width: 100% !important;
    max-width: 720px !important;
  }

  .mwr-quick-nav-row .wp-block-navigation,
  .mwr-quick-nav-row .quick-nav{
    width: 100% !important;
  }
}





@media (max-width: 980px){
  .mwr-quick-nav-row .wp-block-navigation__responsive-container-open{
    display: none !important;
  }

  .mwr-quick-nav-row .wp-block-navigation__responsive-container{
    display: block !important;
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    width: 100% !important;
    height: auto !important;
    overflow: visible !important;
  }

  .mwr-quick-nav-row .wp-block-navigation__responsive-container-content,
  .mwr-quick-nav-row .wp-block-navigation__container{
    display: flex !important;
    flex-direction: column !important;
  }
}





/* ------------------------------------------------
   7. HEADER ACCENT LINE
--------------------------------------------------- */
/* Accent line component */
.accent-line p {
  position: relative;
  padding-left: 18px;
  margin-left: 25px;
}

.accent-line p::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background-color: #ffffff;
  border-radius: 2px;
}


/* ------------------------------------------------
   8. HOMEPAGE HEADER ACCENT LINE
--------------------------------------------------- */

/* Accent line only shows on desktop view */

.hero-accent{
  position: relative;
}

/* Hide line by default */
.hero-accent::before{
  content: none;
}

/* Desktop only */
@media (min-width: 1025px){

  .hero-accent{
    padding-left: 34px;
  }

  .hero-accent::before{
    content: "";
    position: absolute;
    left: 0;
    top: 120px;
    width: 5px;
    height: 150px;
    background: #fff;
    border-radius: 2px;
  }
}

/* Mobile + tablet padding reset */
@media (max-width: 1024px){

  .hero-accent,
  .hero-accent .uagb-ifb-content,
  .hero-accent .uagb-ifb-title-wrap,
  .hero-accent .uagb-ifb-desc{
    padding-left: 0 !important;
    margin-left: 0 !important;
  }
}



/* ------------------------------------------------
   9. UPCOMING & PAST EVENTS GRID LAYOUT
--------------------------------------------------- */
.events-list{
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  gap: 24px;
  align-items: stretch;
  margin: 0;
  padding: 0;
}

/* Event card */
.event-item{
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 8px 22px rgba(0,0,0,.14);
  transition: transform .25s ease, box-shadow .25s ease;
}

.event-item:hover{
  transform: translateY(-8px);
  box-shadow: 0 18px 44px rgba(0,0,0,.24);
}

/* Event image */
.event-image{
  width: 100%;
  margin-bottom: 16px;
}

.event-image img{
  width: 100%;
  height: 150px;
  object-fit: contain;
  display: block;
}

/* Event text */
.event-details{
  flex-grow: 1;
}

.event-title{
  margin: 0 0 8px;
  font-size: 1.3rem;
  line-height: 1.3;
}

.event-subtitle{
  margin: 0 0 10px;
  font-size: 0.95rem;
  color: #25598a;
  font-weight: 600;
}

.event-dates{
  margin: 0 0 6px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #222;
}

.event-location{
  margin: 0 0 6px;
  font-size: 0.9rem;
  color: #333;
}

/* Image link reset */
.event-image a{
  display: block;
}

.event-image a:hover{
  opacity: .9;
}

/* Disable hover lift on Past Events page */
.page-id-4875 .event-item:hover {
  transform: none;
  box-shadow: 0 8px 22px rgba(0,0,0,.14); /* same as default */
}

/* ----- TABLET ----- */
@media (max-width: 1024px){
  .events-list{
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ----- MOBILE ----- */
@media (max-width: 640px){
  .events-list{
    grid-template-columns: 1fr;
  }
}


/* ------------------------------------------------
   10. NEWSLETTERS GRID LAYOUT
--------------------------------------------------- */
/* Grid: 3 cols desktop, 2 tablet, 1 mobile */
.mwr-articles-grid{
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 22px !important;
  align-items: stretch;
}

@media (max-width: 900px){
  .mwr-articles-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 600px){
  .mwr-articles-grid{
    grid-template-columns: 1fr !important;
  }
}

/* Card: flex column for equal heights */
.mwr-article-card{
  display: flex !important;
  flex-direction: column;
  height: 100%;
  min-width: 0;

  border-radius: 18px;
  overflow: hidden;
  background: #ffffff;
  color: inherit;

  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

/* No underlines anywhere inside card */
.mwr-article-card,
.mwr-article-card *{
  text-decoration: none !important;
}

/* Hover: lift + stronger shadow */
.mwr-article-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

/* Prevent theme link hover color from affecting all text */
.mwr-article-card,
.mwr-article-card:hover,
.mwr-article-title,
.mwr-article-meta,
.mwr-article-excerpt{
  color: inherit;
}

/* Image: 3:2 ratio + top-aligned crop */
.mwr-article-img{
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #e5e7eb;
}

.mwr-article-img img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* Body: flex so Read More can sit at bottom */
.mwr-article-body{
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 16px 18px 18px;
}

/* Category pill */
.mwr-article-category{
  display: inline-block;
  align-self: flex-start;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
  background: rgba(4, 107, 210, 0.10);
  color: #04334f;
}

/* Title */
.mwr-article-title{
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Meta (date) */
.mwr-article-meta{
  font-size: 13px;
  opacity: 0.7;
  margin-bottom: 10px;
}

/* Excerpt */
.mwr-article-excerpt{
  font-size: 14px;
  line-height: 1.5;
  opacity: 0.9;

  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Read More pinned to bottom */
.mwr-article-readmore{
  margin-top: auto;
  font-weight: 600;
  color: inherit;
  transition: color 0.2s ease, transform 0.2s ease;
}

/* ONLY Read More changes color on hover */
.mwr-article-card:hover .mwr-article-readmore{
  color: #1a8edb;
  transform: translateX(4px);
}

/* ----- Filter + Search Bar ----- */

.mwr-articles-filters{
  max-width: 1200px;
  margin: 0 auto 26px;
  padding: 0 16px;
}

.mwr-filter-row{
  display: grid;
  grid-template-columns: 1.6fr 1fr auto;
  gap: 12px;
  align-items: center;
}

.mwr-filter-search input,
.mwr-filter-cat select{
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-size: 15px;
  outline: none;
}

.mwr-filter-search input:focus,
.mwr-filter-cat select:focus{
  border-color: #94a3b8;
}

/* Buttons */
.mwr-filter-actions{
  display: flex;
  gap: 10px;
  align-items: center;
}

.mwr-filter-btn{
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  border: 2px solid #04334f;
  cursor: pointer;
  font-weight: 600;
  background: #04334f;
  color: #ffffff;
  transition: background 0.2s ease, transform 0.2s ease;
}

.mwr-filter-btn:hover{
  background: #ffffff;
  color: #04334f;
  border: 2px solid #04334f;
  transform: translateY(-1px);
}

.mwr-filter-clear{
  text-decoration: none;
  font-weight: 600;
  color: #04334f;
  opacity: 0.8;
}

.mwr-filter-clear:hover{
  opacity: 1;
}

/* Empty state */
.mwr-articles-empty{
  max-width: 1200px;
  margin: 12px auto 0;
  padding: 0 16px;
  opacity: 0.85;
}

/* ----- MOBILE ----- */
@media (max-width: 800px){
  .mwr-filter-row{
    grid-template-columns: 1fr;
  }
  .mwr-filter-actions{
    justify-content: flex-start;
  }
}


/* ----- Filter inputs: stronger borders on input fields ----- */

.mwr-filter-search input,
.mwr-filter-cat select{
  border: 1.5px solid #9aa3ad;
  box-shadow: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

/* Hover state */
.mwr-filter-search input:hover,
.mwr-filter-cat select:hover{
  border-color: #6b7280;
}

/* Active state */
.mwr-filter-search input:focus,
.mwr-filter-search input:focus-visible,
.mwr-filter-cat select:focus,
.mwr-filter-cat select:focus-visible{
  border-color: #04334f;         
  box-shadow: 0 0 0 1px #04334f;  /* crisp focus ring */
  outline: none;
}




/* ------------------------------------------------
   11. INDUSTRY PARTNERS HOVER EFFECT
--------------------------------------------------- */
.partner-card-image{
  border-radius: 15px;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}

.partner-card-image:hover{
  transform: translateY(-8px);
  box-shadow: 0 18px 44px rgba(0,0,0,.24);
}





/* ------------------------------------------------
   12. QUOTE BOX STYLING
--------------------------------------------------- */
.quote-box {
  position: relative;
  background: #D6E6F0;
  padding: 64px 72px 35px 112px;   /* extra left padding to account for quote */
  border-radius: 32px;
  max-width: 1200px;
}

.quote-mark {
  font-family: "Playfair Display", serif;
  font-weight: 800;
  position: absolute;
  top: 20px;
  left: -18px;       
  font-size: 160px;
  font-weight: 800;
  line-height: 1;
  color: #000;
  pointer-events: none;
}

.quote-text {
  font-weight: 600;
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.7;
  margin: 0 0 32px 0;
  color: #2f3b4a;
}

.quote-attribution {
  font-size: 1rem;
  text-align: right;
  margin: 0;
  color: #2f3b4a;
}

.quote-attribution span {
  font-style: normal;
  font-size: 0.85rem;
  opacity: 0.65;
}


/* ----- MOBILE ----- */
@media (max-width: 768px) {
  .quote-box {
    padding: 40px 40px 20px 50px; /* give room for the quote */
    border-radius: 20px;
    margin-top: 24px !important;
  }

  .quote-mark {
    font-size: 110px; 
    top: 12px; 
    left: -15px;
    opacity: 0.9;
  }
  
  .about-intro-row {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    min-height: auto !important;
  }

  .about-intro-row .wp-block-column,
  .about-intro-row .wp-block-uagb-container,
  .about-intro-row .uagb-container-inner-blocks-wrap {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    min-height: auto !important;
  }

}




/* ------------------------------------------------
   13. SERVICE SECTION CARD STYLING
--------------------------------------------------- */
.support-card {
  transition: 
    transform 0.25s ease,
    background-color 0.25s ease;
}

/* Hover effect */
.support-card:hover {
  transform: translateY(-6px);
}



/* ------------------------------------------------
   14. CAREERS PAGE STYLING
--------------------------------------------------- */

/* -----------------------------------------------
 * Find the PHP and JS code for displaying Tracker
 * jobs in the custom plugin located at
 * /wp-content/plugins/mwr-tracker
 -----------------------------------------------*/

/* Overall container */
#jobs{
  max-width: 1100px;
  margin: 0 auto;
}

/* Search + Filter form */
#jobs #job-search-form{
  display: grid;
  grid-template-columns: 1.6fr 1fr auto auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

/* Inputs + select */
#jobs #job-search-form input[type="text"],
#jobs #job-search-form input[type="search"],
#jobs #job-search-form select{
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  line-height: 1.2;
  color: #334155;
  border: 1.5px solid #9aa3ad;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.06);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

#jobs #job-search-form input[type="text"]:hover,
#jobs #job-search-form input[type="search"]:hover,
#jobs #job-search-form select:hover{
  border-color: #6b7280;
}

#jobs #job-search-form input[type="text"]:focus,
#jobs #job-search-form input[type="search"]:focus,
#jobs #job-search-form select:focus,
#jobs #job-search-form input[type="text"]:focus-visible,
#jobs #job-search-form input[type="search"]:focus-visible,
#jobs #job-search-form select:focus-visible{
  border-color: #04334f;
  box-shadow: 0 0 0 1px #04334f;
  outline: none;
}

/* Buttons for Search + Clear Filters */

#jobs #job-search-form button,
#jobs #job-search-form input[type="submit"],
#jobs #job-search-form .button{
  appearance: none;
  -webkit-appearance: none;
  width: 140px;           /* forces equal width */
  height: 43px;           /* forces equal height */
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 15px;
  background: #04334f;
  color: #ffffff;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

#jobs #job-search-form button:hover,
#jobs #job-search-form input[type="submit"]:hover,
#jobs #job-search-form .button:hover{
  background: #ffffff;
  color: #04334f;
  border: 2px solid #04334f;
}

#jobs #job-search-form button:active,
#jobs #job-search-form input[type="submit"]:active,
#jobs #job-search-form .button:active{
  transform: translateY(0);
  box-shadow: none;
}

/* keep Clear Filters secondary in color but the same size */
#jobs #job-search-form #job-search-clear,
#jobs #job-search-form .clear-filters,
#jobs #job-search-form button[type="reset"]{
  background: #e8eef3;
  color: #04334f;

  border-radius: 999px;
}

#jobs #job-search-form #job-search-clear:hover,
#jobs #job-search-form .clear-filters:hover,
#jobs #job-search-form button[type="reset"]:hover{
  background: #dbe6ee;
}

/* Results count */
#jobs .job-results{
  margin: 10px 0 18px;
  font-weight: 600;
  color: #334155;
}

/* Job cards list layout */
#jobs .job{
  background: #ffffff;
  border-radius: 18px;
  padding: 18px 20px;
  margin: 0 0 16px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px 24px;
  align-items: center;
  box-shadow: 0 10px 28px rgba(0,0,0,0.14);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

#jobs .job:hover{
  transform: translateY(-4px);
  box-shadow: 0 18px 42px rgba(0,0,0,0.22);
}

.job-card{ cursor: pointer; }


/* Title */
#jobs .job-title{
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.25;
}

#jobs .job-title a{
  color: #04334f;
  text-decoration: none;
  font-weight: 800;
}

#jobs .job-title a:hover{
  text-decoration: underline;
}

/* Details layout */
#jobs .job-details{
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px 14px;
  margin-bottom: 12px;
  color: #475569;
  font-size: 14px;
  line-height: 1.45;
}

#jobs .job-location,
#jobs .job-publishdate,
#jobs .job-jobtype{
  padding: 6px 10px;
  background: #f4f7fb;
  border-radius: 12px;
}

#jobs .job-link{
  grid-column: 2 / 3;
  grid-row: 1 / span 2;

  display: flex;
  justify-content: flex-end;

  /* This controls where it sits vertically */
  align-items: flex-start;
  padding-top: 38px;
}

#jobs .job-link a{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 14px;  
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  color: #ffffff;
  background: #04334f;
  text-decoration: none;
  border-radius: 999px;      
  border: 2px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

#jobs .job-link a:hover{
  background: #ffffff;
  color: #04334f;
  border-color: #04334f;
}

#jobs .job-link a{
  position: relative;
  top: -2.6px;
}

/* ----- MOBILE ----- */
@media (max-width: 700px){
  #jobs .job{
    grid-template-columns: 1fr;
    align-items: start;
  }

  #jobs .job-link{
    grid-column: 1;
    grid-row: auto;
    justify-content: flex-start;
    margin-top: 8px;
  }

  #jobs{
    padding: 0 22px;
  }

  /* Search form */
  #jobs #job-search-form{
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    margin-bottom: 18px;
  }

  #jobs #job-search-form input[type="text"],
  #jobs #job-search-form input[type="search"],
  #jobs #job-search-form select{
    height: 46px;
    font-size: 15px;
    border-radius: 12px;
  }

  #jobs #job-search-form button,
  #jobs #job-search-form input[type="submit"],
  #jobs #job-search-form .button{
    width: 100% !important;
    height: 46px !important;
  }

  /* Put Search + Clear Filters side-by-side */
  #jobs #job-search-form button[type="submit"],
  #jobs #job-search-form input[type="submit"]{
    grid-column: 1;
  }

  #jobs #job-search-form #job-search-clear,
  #jobs #job-search-form .clear-filters,
  #jobs #job-search-form button[type="reset"]{
    width: 100% !important;
  }

  #jobs .job-results{
    font-size: 18px;
    margin: 8px 0 18px;
  }

  /* Job cards */
  #jobs .job{
    padding: 24px 20px;
    border-radius: 22px;
    margin-bottom: 22px;
    grid-template-columns: 1fr !important;
    gap: 16px;
  }

  #jobs .job-title{
    font-size: 21px;
    line-height: 1.25;
    margin-bottom: 14px;
  }

  /* Stack job detail pills cleanly */
  #jobs .job-details{
    grid-template-columns: 1fr !important;
    gap: 10px;
    margin-bottom: 4px;
    font-size: 15px;
  }

  #jobs .job-location,
  #jobs .job-publishdate,
  #jobs .job-jobtype{
    padding: 10px 14px;
    border-radius: 14px;
  }

  /* Learn More button */
  #jobs .job-link{
    grid-column: 1 !important;
    grid-row: auto !important;
    justify-content: flex-start !important;
    align-items: center !important;
    padding-top: 0 !important;
    margin-top: 4px !important;
  }

  #jobs .job-link a{
    top: 0 !important;
    padding: 8px 20px;
    font-size: 15px;
  }
}


/* ------------------------------------------------
   15. JOB DETAILS PAGE STYLING
--------------------------------------------------- */

/* -----------------------------------------------
 * Find the PHP and JS code for displaying Tracker
 * jobs in the custom plugin located at
 * /wp-content/plugins/mwr-tracker
 -----------------------------------------------*/

/* Overall page area */
.job-single{
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 16px 60px;
}

/* Title */
.job-single .job-title{
  font-size: 36px !important;
  line-height: 1.2 !important;
  margin: 0 0 14px;
  color: #04334f;
}

/* Meta rows (location/type/published) */
.job-single .job-location,
.job-single .job-jobtype,
.job-single .job-publishdate{
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: #f3f6fa;
  border: 1px solid #edf2f7;
  color: #526273;
  font-size: 13px;
  line-height: 1;
  margin: 0 8px 10px 0;
}

/* Description wrapper as a card */
.job-single .job-description{
  background: #fff;
  border: 1px solid #e6ebf1;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 10px 26px rgba(16,24,40,.06);
  margin-top: 14px;
}

/* Override the inline Calibri/11pt styles coming from the API */
.job-single .job-description,
.job-single .job-description *{
  font-family: inherit !important;
  color: #2f3b47 !important;
  font-size: 16px !important;
  line-height: 1.65 !important;
}

/* Make section labels look like headings */
.job-single .job-description strong{
  display: block;
  margin: 18px 0 8px;
  font-size: 18px !important;
  color: #0b2a3a !important;
  letter-spacing: .2px;
}

/* Give the BR-heavy content breathing room */
.job-single .job-description br{
  display: block;
  content: "";
  margin: 8px 0;
}

/* If content starts with JOB-#### and other short lines, soften them */
.job-single .job-description p{
  margin: 0;
}

/* Shared Apply button styles */
.job-apply-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #04334f;
  padding: 10px 18px;
  border-radius: 999px;
  background-color: #04334f;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  line-height: 1;
}

.job-apply-button:hover,
.job-apply-button:focus {
  background-color: #ffffff;
  color: #04334f;
  text-decoration: none;
}

/* Job details card wrapper */
.job-details-card {
  position: relative;
}

/* Top-right Apply button */
.job-apply-top {
  position: absolute;
  top: 20px;
  right: 20px;
}

/* Bottom Apply button spacing */
.job-linkregister {
  margin-top: 32px;
}

/* Remove underline from Apply buttons */
.job-apply-button,
.job-apply-button:hover,
.job-apply-button:focus,
.job-apply-button:active,
.job-apply-button:visited {
  text-decoration: none !important;
}

/* Back to all jobs – text link style */
.mwr-job-back{
  background: none !important;
  border: none !important;
  padding: 0 !important;

  color: #04334f !important;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;

  display: inline-flex;
  align-items: center;
  gap: 6px;

  text-decoration: none;
}

/* Hover */
.mwr-job-back:hover{
  text-decoration: underline;
  color: #04334f;
}

/* Soften arrow a bit */
.mwr-job-back::before{
  font-weight: 400;
}

/* Remove underline from Back to all jobs button */
.mwr-job-back,
.mwr-job-back:hover,
.mwr-job-back:focus,
.mwr-job-back:active,
.mwr-job-back:visited {
  text-decoration: none !important;
}


/* ----- MOBILE ------ */
@media (max-width: 640px){
  .job-single .job-title{ font-size: 22px; }
  .job-single .job-description{ padding: 16px; border-radius: 16px; }

  .job-single{
    width: calc(100vw - 36px) !important;
    max-width: none !important;
    margin-left: 50% !important;
    transform: translateX(-50%) !important;
    padding: 0 15px !important;
  }

  .job-single .job-title{
    font-size: 32px !important;
    line-height: 1.15 !important;
    margin-bottom: 22px !important;
  }

  .job-single .job-location,
  .job-single .job-jobtype,
  .job-single .job-publishdate{
    display: flex !important;
    width: fit-content;
    max-width: 100%;
    padding: 10px 16px !important;
    font-size: 15px !important;
    line-height: 1.3 !important;
    margin-bottom: 12px !important;
  }

  .job-apply-top{
    position: static !important;
    margin: 12px 0 34px !important;
  }

  .job-apply-button{
    padding: 12px 22px !important;
    font-size: 15px !important;
  }

  .job-single .job-description{
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    transform: none !important;
    padding: 24px 24px !important;
    border-radius: 22px !important;
  }

  .job-single .job-description,
  .job-single .job-description *{
    font-size: 17px !important;
    line-height: 1.65 !important;
  }
}




/* ------------------------------------------------
   16. ACCENT LINES ON OUR VALUES
--------------------------------------------------- */

/* These are the vertical lines next to 
 * People-Powered
 * Reliability
 * Expertise
 */

.uagb-block-e984d370 .uagb-faq-content p{
  margin: 0 !important;
}

/* Value title */
.uagb-block-e984d370 .uagb-faq-content p > strong{
  display: block !important;
  position: relative !important;
  padding-left: 22px !important;
  margin: 0 0 6px 0 !important;
  letter-spacing: .03em !important;
}

/* One vertical line per value */
.uagb-block-e984d370 .uagb-faq-content p > strong::before{
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  width: 2px !important;
  height: calc(100% + 58px) !important; /* covers title + paragraph */
  background: #b10015 !important;
  border-radius: 4px !important;
}

/* Description text */
.uagb-block-e984d370 .uagb-faq-content p > mark{
  display: block !important;
  padding-left: 22px !important;
  margin: 0 0 26px 0 !important;
  background: transparent !important; /* remove highlight */
  color: inherit !important;
  line-height: 1.65 !important;
}

/* Remove the <br> spacing so layout is clean */
.uagb-block-e984d370 .uagb-faq-content p > br{
  display: none !important;
}

/* Remove extra spacing after last item */
.uagb-block-e984d370 .uagb-faq-content p > mark:last-of-type{
  margin-bottom: 0 !important;
}




/* ------------------------------------------------
   17. BULLET POINTS ON SERVICES DETAILS
--------------------------------------------------- */
.mwr-services-faq .uagb-faq-content p {
    margin: 0;
}

.mwr-services-faq .uagb-faq-content .uagb-faq-line {
    display: block;
    position: relative;
    padding-left: 22px;
    margin-bottom: 8px;
    line-height: 1.6;
}

.mwr-services-faq .uagb-faq-content .uagb-faq-line:last-child {
    margin-bottom: 0;
}

.mwr-services-faq .uagb-faq-content .uagb-faq-line::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.78em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #04334f;
    transform: translateY(-50%);
}

.mwr-services-faq .uagb-faq-content {
    padding-left: 25px !important;
}



/* ------------------------------------------------
   18. SYSTEMS & APPLICATIONS STYLING
--------------------------------------------------- */

/* This styles the table used to display Systems & Applications */

.wp-block-table.systems-table {
  margin: 0;
}

/* table reset */
.wp-block-table.systems-table table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  table-layout: fixed;
  background: transparent;
  margin: 0;
  border: none !important;
}

/* remove outer figure spacing */
.wp-block-table.systems-table figure {
  margin: 0;
}

/* cells */
.wp-block-table.systems-table td {
  border: none !important;
  border-bottom: 1px solid #cfd4da !important;
  /*padding: 16px 0;*/    
  padding: 16px 0 16px 10px;    
  font-size: 18px;            
  line-height: 1.3;
  color: #4e5f79;
  background: transparent;
}

/* top divider */
.wp-block-table.systems-table tr:first-child td {
  border-top: 1px solid #cfd4da;
}

/* remove left/right borders coming from theme */
.wp-block-table.systems-table,
.wp-block-table.systems-table table,
.wp-block-table.systems-table tr,
.wp-block-table.systems-table td {
  border-left: none !important;
  border-right: none !important;
}


/* ------------------------------------------------
   19. CONTACT PAGE - REMOVE LINK ON PHONE NUMBER
--------------------------------------------------- */
a[href^="tel"] {
  color: inherit !important;
  /*text-decoration: none !important;
  pointer-events: none; */
  cursor: default;
}


/* ------------------------------------------------
   20. HIDE FEATURED IMAGES FROM APPEARING ON PAGE
--------------------------------------------------- */
/* Hide page featured image area and remove leftover top space */
.page .ast-single-post-featured-section,
.page .post-thumb-img-content,
.page .ast-featured-img,
.page .ast-article-single .post-thumb,
.page .entry-header {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.page .site-content,
.page .content-area,
.page .ast-article-single {
  padding-top: 0 !important;
  margin-top: 0 !important;
}


/* ------------------------------------------------
   21. TRADESHOWS PAGE STYLING
--------------------------------------------------- */
/* Mobile-only drop shadow for Calendly embed */
@media (max-width: 768px) {
  .calendly-inline-widget {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-radius: 16px; /* optional, makes shadow look nicer */
    overflow: hidden; /* ensures corners clip properly */
  }
}


