/*--------------------------------------------------------------
# Bootstrap Variable Overrides
--------------------------------------------------------------*/
:root {
  --vz-border-color: #191919;
}

/*--------------------------------------------------------------
# Frontpage
--------------------------------------------------------------*/
.page-title {
  font-size: 70px;
}
@media (max-width: 767px) {
  .page-title {
    font-size: 40px;
  }
}
.page-title-2 {
  font-size: 40px;
}
@media (max-width: 767px) {
  .page-title-2 {}
}

/*--------------------------------------------------------------------------
# Make the Header permanently stuck and force header fixed, no movement ever
---------------------------------------------------------------------------*/
header.rainbow-header.header-default,
header.rainbow-header.header-sticky, /* original “sticky” class */
.rainbow-header.sticky  /* JS-added class on scroll */
{
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100px !important;
  z-index: 9999 !important;

  /* kill every animation/transition/transform */
  animation: none !important;
  transition: none !important;
  transform: none !important;
}

/*--------------------------------------------------------------
# Header overrides
--------------------------------------------------------------*/
header.rainbow-header.header-default {
  height: 100px;
}

header.rainbow-header.header-default .logo a {
  height: 100px;
  line-height: 100px;
}

.rainbow-header.sticky {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;
  animation: none !important;
  background-color: #ffffff !important;
  z-index: 999;
}

header.rainbow-header.header-default .header-right {
  align-items: center;
  height: 100px;
}

.mainmenu-nav .mainmenu li a {
  display: inline-flex;
  align-items: center;         /* vertically center text/icons */
  justify-content: center;     /* horizontally center (optional) */
  height: 40px;                /* FIXED height */
  padding: 0 15px;             /* horizontal breathing room */
  line-height: normal;         /* reset any inherited line-height */
  transition: background .2s;  /* smooth hover */
}

/*--------------------------------------------------------------
# Teams page
--------------------------------------------------------------*/
.overlay .default-content {
  display: block;
}
.inner:hover .overlay {
  display: none !important;
}

.avatar-xxs {
  height: 1.5rem;
  width: 1.5rem;
}

.avatar-xs {
  height: 2rem;
  width: 2rem;
}

.avatar-sm {
  height: 3rem;
  width: 3rem;
}

.avatar-md {
  height: 4.5rem;
  width: 4.5rem;
}

.avatar-lg {
  height: 6rem;
  width: 6rem;
}

.avatar-xl {
  height: 7.5rem;
  width: 7.5rem;
}

.avatar-title {
  align-items: center;
  background-color: #000000;
  color: #ffffff;
  display: flex;
  font-weight: 500;
  height: 100%;
  justify-content: center;
  width: 100%;
}

/*--------------------------------------------------------------
# Form inputs
--------------------------------------------------------------*/
body.active-light-mode .form-group input,
body.active-light-mode .form-group textarea,
body.active-light-mode .rainbow-accordion-style.rainbow-accordion-02 .card .card-header,
body.active-light-mode .mainmenu-nav .mainmenu li.with-megamenu .rainbow-megamenu .wrapper .mega-menu-item,
body.active-light-mode .breadcarumb-style-1,
body.active-light-mode .rainbow-accordion-style.rainbow-accordion-03 .card .card-header,
body.active-light-mode .rainbow-accordion-style.rainbow-accordion-04 .card,
body.active-light-mode .rainbow-pricing .pricing-table-inner,
body.active-light-mode input[type=text],
body.active-light-mode input[type=password],
body.active-light-mode input[type=email],
body.active-light-mode input[type=number],
body.active-light-mode input[type=tel],
body.active-light-mode textarea,
body.active-light-mode select,
body.active-light-mode .rbt-single-widget,
body.active-light-mode .rbt-single-widget.widget_recent_comments ul li + li,
body.active-light-mode .rbt-single-widget.widget_recent_entries ul li + li,
body.active-light-mode .rbt-single-widget.widget_archive ul li + li,
body.active-light-mode .rbt-single-widget.widget_categories ul li + li,
body.active-light-mode .rbt-single-widget.widget_meta ul li + li,
body.active-light-mode .rbt-single-widget.widget_pages ul li + li,
body.active-light-mode .rbt-single-widget.widget_nav_menu ul li + li,
body.active-light-mode .tagcloud a,
body.active-light-mode .wp-block-tag-cloud a,
body.active-light-mode .section-title-2 .title,
body.active-light-mode .clltoaction-style-default.style-7 .content-wrapper,
body.active-light-mode .copyright-style-one,
body.active-light-mode .footer-style-default .newsletter-form .form-group input,
body.active-light-mode .newsletter-area .border-top-bottom, body.active-light-mode .rainbow-comment-form .inner .rnform-group textarea,
body.active-light-mode .rainbow-portfolio-details .content-left .single-list-wrapper .single-list + .single-list {
  border-color: #00000024 !important;
  color: var(--color-body) !important;
}

.custom-file-input-large {
  /* Increase the minimum height */
  min-height: 45px;
  height: auto;
  /* Increase font size and padding for a larger appearance */
  font-size: 1.125rem;
  padding: 0.5rem 0.75rem;
}

/*--------------------------------------------------------------
# Solutions page
--------------------------------------------------------------*/
.square-solution {
  background-color: #000;
  display: block; /* makes the link fill the grid cell */
  position: relative;
  width: 100%;
  padding-top: 100%; /* forces a square aspect ratio */
  overflow: hidden;
  transition: background-color 0.3s, border 0.3s;
  /*border-radius: 10px;*/
  text-decoration: none;
}

.square-solution:hover {
  background-color: #fff;
  outline: 1px solid #000;
  outline-offset: -1px; /* pulls it flush with the element’s edge */
}

.solution-title {
  font-size: 3rem !important;
  font-weight: 500 !important;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%; /* keep if you want full width, or remove if not needed */
  text-align: left;
  padding: 20px;
  box-sizing: border-box;
  transition: color 0.3s;
  color: #fff !important;
}

.square-solution:hover .solution-title {
  color: #000 !important;
}

/* Override card-header and card-body text colors */
.card-solution .card-header,
.card-solution .card-body,
.card-solution .card-body p {
  background-color: transparent;
  color: #fff !important;
}

/*--------------------------------------------------------------
# Jobs page
--------------------------------------------------------------*/
.square-card {
  aspect-ratio: 1 / 1;
  padding: 20px;
  border: 2px solid var(--color-border);
  /*border-radius: 10px;*/
  transition: background-color 0.3s, border 0.3s;
  overflow: hidden;
}

.card-title {
  font-size: 2.3rem !important;
  line-height: 2.6rem !important;
  font-weight: 500; !important;
  color: #000000;
  transition: color 0.3s;
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: auto !important;
  -webkit-hyphens: auto !important;
  -ms-hyphens: auto !important;
}

@media (max-width: 767px) {
  .card-title {
    font-size: 3rem !important;
    line-height: 3.4rem !important;
  }
  .card-text {
    font-size: 20px !important;
  }
}

.square-card-dark {
  background-color: #000000;
  color: #ffffff;
  aspect-ratio: 1 / 1;
  padding: 20px;
  border: 2px solid var(--color-border);
  /*border-radius: 10px;*/
  transition: background-color 0.3s, border 0.3s;
  overflow: hidden;
}

.card-title-dark {
  font-size: 2.3rem !important;
  line-height: 2.6rem !important;
  color: #ffffff;
  transition: color 0.3s;
}

/* Hover background colors for the entire card */
.job-card-default.square-card:hover {
  background-color: #ffffff;
  border-color: #000000;
}
.job-card-technic.square-card:hover {
  background-color: #335680;
  border-color: #ffffff;
}
.job-card-kv.square-card:hover {
  background-color: #d6c1ad;
  border-color: #ffffff;
}
.job-card-beauty.square-card:hover {
  background-color: #fb93d0;
  border-color: #ffffff;
}

.square-card .card-title {
  transition: color 0.3s;
}

.square-card:hover .card-title {
  color: #ffffff !important;
}
.square-card:hover .card-text {
  color: #ffffff !important;
}

/* ——————————————————————————————————————
   Filter row: 4-col grid matching your job cards
   (use the exact same gutter as row--15: 15px on each side)
   —————————————————————————————————————— */
.job-filters {
  display: grid;
  /* 4 equal columns, just like your cards */
  grid-template-columns: repeat(4, minmax(0, 1fr));
  /* gap = padding-left + padding-right from row--15 = 30px */
  gap: 30px;
  margin-top: 100px; /* replicate mt--100 */
}

/* search spans 3 columns (3 card-items wide) */
.job-filters .search {
  grid-column: span 3;
}

/* canton spans 1 column */
.job-filters .canton {
  grid-column: span 1;
}

/* ensure form-controls fill their grid cell */
.job-filters .search input,
.job-filters .canton select {
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 767px) {
  .job-filters {
    /* switch to a single-column grid */
    grid-template-columns: 1fr;
    gap: 30px; /* keep the same gutter if you like */
  }

  /* override the spans so each child fills 1fr */
  .job-filters .search,
  .job-filters .canton {
    grid-column: span 1 !important;
  }
}


/*--------------------------------------------------------------
# Jobs detail page
--------------------------------------------------------------*/
b, strong {
  font-weight: 500 !important;
}

.title {
  font-weight: 500 !important;
}

/* desktop only: screens 992px and up */
@media (min-width: 992px) {
  /* only inside the job-detail page */
  .job-detail-page .container {
    max-width: 900px;   /* whatever width you want */
    margin-left: auto;  /* re–center, though .container already does this */
    margin-right: auto;
  }
}

.job-description ul li {
  font-size: 1.8rem;
  line-height: 2.5rem;
  margin: 0;
  color: #65676b;
}

/*--------------------------------------------------------------
# cards for company contact
--------------------------------------------------------------*/
.card-contact {
  background: none;
  padding: 0;
  overflow: hidden;
  color: #fff;
}

.card-contact .card-img-top {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.card-contact .card-body {
  background: transparent;
  padding: 0;
  position: relative;
}

.card-contact .badge-text {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 0.25rem;
  color: #fff;
}

.card-contact .badge-text .card-title,
.card-contact .badge-text p,
.card-contact .badge-text a {
  color: #fff;
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.8rem;
}

.card-contact .badge-text a {
  text-decoration: none;
}

.card-contact .badge-text p {
  margin-bottom: 0.5rem;
}


/*--------------------------------------------------------------
# cards for solutions and trades etc.
--------------------------------------------------------------*/
.card-solution {
  background-size: cover;
  background-position: center;
  /*border-radius: 10px;*/
  overflow: hidden;
  position: relative;
  color: #fff;
  /* Set a fixed height (and width if needed) */
  height: 400px; /* adjust value as needed */
  /* Optionally set a fixed width, if not using a grid that does that already */
  /* width: 300px; */
  /* Use flexbox so the header and body are laid out consistently */
  display: flex;
  flex-direction: column;
}

.card-solution .card-header {
  /* Let the header take its content height */
  flex: 0 0 auto;
  padding-top: 3rem;
}

.card-solution .card-body {
  /* Allow the body to fill the remaining space */
  flex: 1 1 auto;
  padding: 3rem;
  overflow: hidden; /* Hide extra text */
}

/* Add a dark overlay */
.card-solution::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Adjust opacity as needed */
  z-index: 1;
}

/* Ensure that card header and body appear above the overlay */
.card-solution .card-header,
.card-solution .card-body {
  position: relative;
  z-index: 2;
  background-color: transparent;
}

/* Keep card title and links white */
.card-solution .card-title {
  color: #fff !important;
}

.card-solution a {
  color: #fff;
  text-decoration: none;
  transition: text-decoration 0.3s;
}

.card-solution a:hover {
  color: #fff;
}

/*--------------------------------------------------------------
# Square Categories
--------------------------------------------------------------*/
.square-category {
  display: block;
  position: relative;
  width: 100%;
  padding-top: 100%; /* forces a square aspect ratio */
  overflow: hidden;
  background-size: cover;
  background-position: center;
  /*border-radius: 10px;*/
  text-decoration: none;
  transition: transform 0.3s;
}

.square-category:hover {
  transform: scale(1.02);
}

.square-txt {
  font-family: "Helvetica Neue LT W05_75 Bold", sans-serif;
  color: #fff;
  font-size: 1.6em;
  font-weight: 700;
  line-height: 1em;
  margin-bottom: 20px;
  position: absolute;
  right: 0;
  bottom: 0;
  padding: 5px 10px;

  /* Use flexbox to align text and icon */
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.square-txt i {
  margin-top: 5px;
  margin-left: 0; /* space between text and icon */
  font-size: 1.5em; /* increased size */
  font-weight: 600; /* adjust if the font supports it */
}

.brand-list {
  display: flex;
  flex-wrap: wrap; /* if you want items to wrap on smaller screens */
  gap: 15px; /* adjust gap size as needed */
  padding: 0;
  list-style: none;
}

/*--------------------------------------------------------------
# Team Page cards
--------------------------------------------------------------*/
.square-txt-team {
  /*font-family: "Helvetica Neue LT W05_75 Bold", sans-serif;*/
  color: #fff;
  font-size: 1.2em;
  font-weight: 700;
  line-height: 1em;
  margin-bottom: 20px;
  position: absolute;
  right: 0;
  bottom: 0;
  padding: 5px 10px;
  text-shadow: 1px -1px 6px rgba(0, 0, 0, 0.6);

  /* Use flexbox to align text and icon */
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.square-txt-team i {
  margin-top: 2px;
  margin-left: 0; /* space between text and icon */
  font-size: 1.5em; /* increased size */
  font-weight: 600; /* adjust if the font supports it */
}

/* Make background black and all text white */
.modal.modal-inverse .modal-content {
  background-color: #191919 !important;
  color: #fff !important;
}
/* Ensure links stay white */
.modal.modal-inverse .modal-content a {
  color: #fff;
}
/* Invert the “X” close‐icon (so it’s visible on black) */
.modal.modal-inverse .btn-close {
  filter: invert(1);
}
body.active-light-mode .modal-inverse p {
  color: #fff !important;
}
body.active-light-mode .modal-inverse h3 {
  color: #fff !important;
}
body.active-light-mode .modal-inverse h6 {
  color: #fff !important;
}

/*--------------------------------------------------------------
# Brand Items - References
--------------------------------------------------------------*/
.brand-list {
  display: flex;
  flex-wrap: wrap; /* if you want items to wrap on smaller screens */
  gap: 100px; /* adjust gap size as needed */
  padding: 0;
  list-style: none;
}

/*--------------------------------------------------------------
# Button default - btn border
--------------------------------------------------------------*/
/* active state */
a.btn-default.btn-border.active {
  background-color: #191919 !important;
  color: #fff !important;
}

.btn-default.btn-border {
  text-shadow: none !important;
  color: #070b11;
}

a.btn-default, button.btn-default, div.btn-default {
  font-weight: 500 !important;
}

/*--------------------------------------------------------------
# Exedra Btn
--------------------------------------------------------------*/

.btn-exedra {
  font-weight: 400;
  hyphens: none !important;
  text-align: center;
  box-sizing: border-box;
  border: 1px solid #eee9e9;
  color: #191919;
  padding: 12px 24px 12px 18px;
  font-size: 1.8rem;
  line-height: 1.8rem;
  display: inline-block;
  margin: 15px 15px 30px;
  margin-bottom: 0;
  background-image: none;
  padding-right: 18px;
  /*-webkit-border-radius: 8px;*/
}

.btn-exedra:hover,
.btn-exedra.active{
  color: #fff;
  background-color: #191919;
  border-color: #191919;
}

.btn-exedra-black {
  font-weight: 400;
  hyphens: none !important;
  text-align: center;
  box-sizing: border-box;
  background-color: #191919;
  border: 1px solid #000000;
  color: #ffffff;
  padding: 12px 24px 12px 18px;
  font-size: 1.8rem;
  line-height: 1.8rem;
  display: inline-block;
  margin-bottom: 0;
  background-image: none;
  padding-right: 18px;
  /*-webkit-border-radius: 8px;*/
}

.btn-exedra-black:hover,
.btn-exedra-black.active{
  color: #191919;
  background-color: #ffffff;
  border-color: #191919;
}

.btn-job {
  font-weight: 400;
  hyphens: none !important;
  text-align: center;
  box-sizing: border-box;
  border: 1px solid #ffffff;
  color: transparent; /* Hide text by default */
  background-color: #ffffff;
  padding: 12px 24px 12px 18px;
  font-size: 1.8rem;
  line-height: 1.8rem;
  display: inline-block;
  margin-bottom: 0;
  background-image: none;
  padding-right: 18px;
  /*-webkit-border-radius: 8px;*/
  transition: color 0.3s, background-color 0.3s, border-color 0.3s;
  position: relative;
  z-index: 2;
  pointer-events: auto;
}

/* Reveal text when hovering over the card */
.square-card:hover .btn-job {
  color: #191919;
  background-color: #ffffff;
  border-color: #ffffff;
}

/* When hovering directly on the button inside a hovered card, invert the colors */
.square-card:hover .btn-job:hover {
  color: #ffffff !important;
  background-color: #191919 !important;
  border-color: #191919 !important;
}

/* Fallback rule if the button is hovered outside a hovered card (if needed) */
.btn-job:hover,
.btn-job.active {
  color: #000000 !important;
  background-color: #ffffff !important;
  border-color: #000000 !important;
}

/* Position the button at the bottom of the card */
.card-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 36px;
  z-index: 1;
}

/* Ensure stretched-link doesn't interfere with button hover */
.stretched-link::after {
  z-index: 0;
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.footer-text p {
  font-size: 15px;
  color: #fefefe !important;
  font-weight: var(--p-medium);
}

.footer-text a {
  color: #fff;
  text-decoration: none;
  transition: text-decoration 0.3s;
}

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

/*------------------------
    Back to Top
--------------------------*/
body.active-light-mode .rainbow-back-top {
  background-color: var(--color-gray-light) !important;
}
body.active-light-mode .rainbow-back-top:hover {
  background-color: var(--color-extra01) !important;
}

/*--------------------------------------------------------------
# Privacy Policy Page
--------------------------------------------------------------*/
.text-muted.text-left.mt--20 ul li {
  font-size: var(--font-size-b3) !important;
  line-height: var(--line-height-b3) !important;
}

/*--------------------------------------------------------------
# Mobile Menu
--------------------------------------------------------------*/
/* Override the mobile menu styles to match the main menu */
.popup-mobile-menu {
  background-color: rgba(255, 255, 255, 0.8) !important; /* Semi-transparent white background */
}

.popup-mobile-menu .inner {
  background-color: #ffffff !important; 
}

/* Remove border from header top */
.popup-mobile-menu .inner .header-top {
  border-bottom: none;
}

/* Style close button as white with black text */
.popup-mobile-menu .inner .header-top .close-menu .close-button {
  background: #ffffff !important;
  color: #191919 !important;
  border-radius: 0;
}

/* Remove borders from menu items */
.popup-mobile-menu .mainmenu li {
  border-top: none;
}

/* Style menu items with black text */
.popup-mobile-menu .mainmenu li a {
  color: #191919 !important;
  font-size: 24px !important;
  font-weight: 500;
  display: inline-flex;
  align-items: center;         /* vertically center text/icons */
  justify-content: center;     /* horizontally center (optional) */
  height: 50px;                /* FIXED height */
  padding: 0 15px;             /* horizontal breathing room */
  line-height: normal;         /* reset any inherited line-height */
  transition: background .2s;  /* smooth hover */
}

/* Login button styling */
.popup-mobile-menu .inner .header-top #login a.btn-outline-light {
  color: #191919;
  border-color: #191919;
}

.popup-mobile-menu .inner .header-top #login a.btn-outline-light:hover {
  background-color: #191919;
  color: #ffffff;
}

/* Add hover effect with white text on black background */
body.active-light-mode .mainmenu li a:hover,
.popup-mobile-menu .mainmenu li a:hover,
.popup-mobile-menu .mainmenu li.active a {
  background: #070b11 !important;
  color: var(--color-white) !important;
  text-decoration: none;
}

/*--------------------------------------------------------------
# Responsive Media Query for screens less than 992px
--------------------------------------------------------------*/
@media (max-width: 991px) {
  /* Center all columns in copyRightArea for screens less than 992px */
  .copyright-area .row > div {
    text-align: center !important;
    margin-bottom: 15px;
    width: 100%;
    display: block;
    flex: 0 0 100%;
    max-width: 100%;
  }

  .copyright-area .text-start,
  .copyright-area .text-md-end {
    text-align: center !important;
  }

  /* Fix logo positioning for responsive view */
  .copyright-area .position-relative {
    position: static !important;
  }

  .copyright-area .position-relative > div {
    position: static !important;
    margin-bottom: 10px;
  }

  /* Display both logos on the same row */
  .copyright-area .position-relative {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
  }
}

/*--------------------------------------------------------------
# Responsive Media Query for 576px-768px (iPad Pro)
--------------------------------------------------------------*/
@media (min-width: 575px) and (max-width: 767px) {
  /* Make badge-text smaller in contact.html.twig company cards */
  .card-contact .badge-text {
    padding: 0.5rem;
  }

  .card-contact .badge-text .card-title,
  .card-contact .badge-text p,
  .card-contact .badge-text a {
    font-size: 1.1rem;
    line-height: 1.4rem;
  }

  .card-contact .badge-text p {
    margin-bottom: 0.3rem;
  }

  /* square-txt in homepage.html.twig and people.html.twig */
  .square-txt {
    font-size: 1.2em;
  }

  /* card-title in _job_list.html.twig */
  .card-title {
    font-size: 1.6rem !important;
    line-height: 2.2rem !important;
  }

  /* card-text in _job_list.html.twig */
  .card-text {
    font-size: 12px !important;
  }

  /* solution-title in people.html.twig and solution.html.twig */
  .solution-title {
    font-size: 2rem !important;
  }

  /* square-txt-team in team.html.twig */
  .square-txt-team {
    font-size: 16px;
    font-weight: 500 !important;
  }

  /* Change padding for square-card to get more space */
  .square-card {
    padding: 10px;
  }

  /* Make the job button smaller for this screen size */
  .btn-job {
    font-size: 1.4rem;
    line-height: 1.4rem;
    padding: 8px 16px 8px 12px;
    padding-right: 12px;
    position: relative;
    z-index: 2;
    pointer-events: auto;
  }

  /* Position the button at the bottom of the card */
  .card-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    z-index: 1;
  }

  /* Reveal text when hovering over the card */
  .square-card:hover .btn-job {
    color: #191919;
    background-color: #ffffff;
    border-color: #ffffff;
  }

  /* When hovering directly on the button inside a hovered card, invert the colors */
  .square-card:hover .btn-job:hover {
    color: #ffffff !important;
    background-color: #191919 !important;
    border-color: #191919 !important;
  }

  /* Fallback rule if the button is hovered outside a hovered card (if needed) */
  .btn-job:hover,
  .btn-job.active {
    color: #000000 !important;
    background-color: #ffffff !important;
    border-color: #000000 !important;
  }
}

/*--------------------------------------------------------------
# Responsive Media Query for 992px-1200px (iPad Pro)
--------------------------------------------------------------*/
@media (min-width: 992px) and (max-width: 1200px) {
  /* Make badge-text smaller in contact.html.twig company cards */
  .card-contact .badge-text {
    padding: 0.5rem;
  }

  .card-contact .badge-text .card-title,
  .card-contact .badge-text p,
  .card-contact .badge-text a {
    font-size: 1.1rem;
    line-height: 1.4rem;
  }

  .card-contact .badge-text p {
    margin-bottom: 0.3rem;
  }

  /* square-txt in homepage.html.twig and people.html.twig */
  .square-txt {
    font-size: 1.2em;
  }

  /* card-title in _job_list.html.twig */
  .card-title {
    font-size: 1.6rem !important;
    line-height: 2.2rem !important;
  }

  /* card-text in _job_list.html.twig */
  .card-text {
    font-size: 12px;
  }

  /* solution-title in people.html.twig and solution.html.twig */
  .solution-title {
    font-size: 2rem !important;
  }

  /* square-txt-team in team.html.twig */
  .square-txt-team {
    font-size: 16px;
  }

  /* Change padding for square-card to get more space */
  .square-card {
    padding: 10px;
  }

  /* Make the job button smaller for this screen size */
  .btn-job {
    font-size: 1.4rem;
    line-height: 1.4rem;
    padding: 8px 16px 8px 12px;
    padding-right: 12px;
    position: relative;
    z-index: 2;
    pointer-events: auto;
  }

  /* Position the button at the bottom of the card */
  .card-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    z-index: 1;
  }

  /* Reveal text when hovering over the card */
  .square-card:hover .btn-job {
    color: #191919;
    background-color: #ffffff;
    border-color: #ffffff;
  }

  /* When hovering directly on the button inside a hovered card, invert the colors */
  .square-card:hover .btn-job:hover {
    color: #ffffff !important;
    background-color: #191919 !important;
    border-color: #191919 !important;
  }

  /* Fallback rule if the button is hovered outside a hovered card (if needed) */
  .btn-job:hover,
  .btn-job.active {
    color: #000000 !important;
    background-color: #ffffff !important;
    border-color: #000000 !important;
  }
}

/*--------------------------------------------------------------
# Responsive Media Query for 1200px-1400px (iPad Pro)
--------------------------------------------------------------*/
@media (min-width: 1200px) and (max-width: 1400px) {
  /* square-txt in homepage.html.twig and people.html.twig */
  .square-txt {
    font-size: 1.4em;
  }

  /* card-title in _job_list.html.twig */
  .card-title {
    font-size: 2rem !important;
    line-height: 2.4rem !important;
  }

  /* card-text in _job_list.html.twig */
  .card-text {
    font-size: 12px;
  }

  /* solution-title in people.html.twig and solution.html.twig */
  .solution-title {
    font-size: 2rem !important;
  }

  /* square-txt-team in team.html.twig */
  .square-txt-team {
    font-size: 16px;
  }

  /* Change padding for square-card to get more space */
  .square-card {
    padding: 10px;
  }

  /* Make the job button smaller for this screen size */
  .btn-job {
    font-size: 1.4rem;
    line-height: 1.4rem;
    padding: 8px 16px 8px 12px;
    padding-right: 12px;
    position: relative;
    z-index: 2;
    pointer-events: auto;
  }

  /* Position the button at the bottom of the card */
  .card-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    z-index: 1;
  }

  /* Reveal text when hovering over the card */
  .square-card:hover .btn-job {
    color: #191919;
    background-color: #ffffff;
    border-color: #ffffff;
  }

  /* When hovering directly on the button inside a hovered card, invert the colors */
  .square-card:hover .btn-job:hover {
    color: #ffffff !important;
    background-color: #191919 !important;
    border-color: #191919 !important;
  }

  /* Fallback rule if the button is hovered outside a hovered card (if needed) */
  .btn-job:hover,
  .btn-job.active {
    color: #000000 !important;
    background-color: #ffffff !important;
    border-color: #000000 !important;
  }
}

@media (max-width: 1200px) {
  /* Make category filter buttons smaller in team.html.twig */
  a.btn-default.btn-border,
  button.btn-default.btn-border {
    padding: 0 20px;
    font-size: 14px;
    height: 40px;
    line-height: 40px;
  }
}

/*--------------------------------------------------------------
# Team Member Modal Fix for Mobile Devices
--------------------------------------------------------------*/
/* Fix for team member modal on mobile devices */
/* Ensure modal appears above header and remove vertical centering to prevent image cutoff */
@media (max-width: 767.98px) {
  /* Fix z-index issue - header has z-index: 9999, so modal needs higher value */
  .modal {
    z-index: 10000 !important;
  }

  .modal-dialog.modal-dialog-centered {
    display: flex;
    align-items: flex-start;
    min-height: calc(100% - 1rem);
    margin: 0.5rem auto;
  }

  .modal-dialog.modal-dialog-centered .modal-content {
    max-height: calc(100vh - 1rem);
    overflow-y: auto;
  }
}
