/*
Theme Name: GeneratePress Child
Template: generatepress
*/

body {
  padding: 0;
  margin: 0;
	font-size: 18px;
}

p, h1, h2, h3, h4, h5{
	margin-bottom: 0px;
}

/* === Header Styles === */
#primary-menu {
	font-family: "Nunito Sans", sans-serif;
	color: #373737;
}

#primary-menu a {
	font-size: 1em;
	font-weight: 400;
	position: relative;
	display: inline-block;
	text-decoration: none;
}

/* polylang language switcher button */
.custom-lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.custom-lang-switcher a.lang-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.custom-lang-switcher a.lang-link:hover,
.custom-lang-switcher a.lang-link.active {
    opacity: 1;
}

/* underline base */
#primary-menu a::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -10px;
	width: 100%;
	height: 5px;
	background-color: #1a1c31;
	opacity: 0;
	transition: opacity 0.3s ease;
}

/* fade in on hover */
#primary-menu .menu-item a:hover::after {
	opacity: 1;
}

/* active menu underline always visible by default */
#primary-menu .current-menu-item a::after {
	opacity: 1;
}

/* BUT hide active underline when hovering over any other menu item */
#primary-menu:hover .current-menu-item a::after {
	opacity: 0;
}

/* restore it when hovering back on the active item */
#primary-menu .current-menu-item a:hover::after {
	opacity: 1;
}

/* text colors */
#primary-menu .menu-item a:hover {
	color: #1a1c31 !important;
}

#primary-menu .current-menu-item a {
	color: #1a1c31;
}

@media (max-width: 1024px), (min-width: 1025px) {
    .main-navigation.sticky-navigation-transition .main-nav > ul > li > a, .sticky-navigation-transition .menu-toggle, .main-navigation.sticky-navigation-transition .menu-bar-item > a, .sticky-navigation-transition .navigation-branding .main-title {
        line-height: 50px !important;
    }
}


/* Services Container */
.services-container:hover .services-icon-hover {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.service-learn-more:hover .gb-shape svg path {
    fill: #002155;
    transition: fill 0.3s ease, opacity 0.3s ease;
}

.services-icon-hover {
    transition: transform 0.3s ease;
}


/* Capabilities and Services page */
.hover-scale-bg {
    position: relative;
    overflow: hidden;
}

.hover-scale-bg > * {
        position: relative;
        z-index: 2; /* Put content above background */
    }

.hover-scale-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to left, rgba(26, 28, 49, 0.55) 0%, rgba(26, 28, 49, 0.55) 100%);
    z-index: 1;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.hover-scale-bg:hover::after {
    opacity: 0.45; /* Lower opacity = lighter overlay */
}

.capabilities-services-learn-more:hover .gb-shape svg path {
    fill: #cecece;
    transition: fill 0.3s ease;
}

.capabilities-services-learn-more .gb-shape svg path {
    transition: fill 0.3s ease;
}

/* Comment disable */
.nocomments,
.comments-area {
    display: none !important;
}

/*===== Pagination Styling =====*/
/* Container styling */
.gb-query-loop-pagination {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Base styles for all pagination items (numbers and next) */
.gb-query-loop-pagination a, 
.gb-query-loop-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 6px;
    text-decoration: none;
    color: #333333;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease-in-out;
}

/* Hover state for clickable links */
.gb-query-loop-pagination a:hover {
    background-color: #f5f5f5;
    border-color: #adadad;
    color: #000000;
}

/* Active/Current page styling */
.gb-query-loop-pagination .page-numbers.current {
    background-color: #0073aa; /* Change this to your brand color */
    color: #ffffff;
    border-color: #0073aa;
    cursor: default;
}

/* "Next" button specific styling */
.gb-query-loop-pagination a.gb-text {
    padding: 0 16px;
    margin-left: 4px;
}


/* CF7 Message Style */
.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.unaccepted .wpcf7-response-output, .wpcf7 form.payment-required .wpcf7-response-output {
    border-color: #D8000C;
	color: #D8000C;
    background-color: #FFBABA;
}

.wpcf7 form.sent .wpcf7-response-output {
    border-color: #270;
	color: #270;
    background-color: #DFF2BF;
}

.wpcf7-not-valid-tip {
    color: #FFBABA;
}


.h-captcha {
    width: 100% !important;
}

/* === Technical Services sidebar (reference match) === */
.technical-services-menu {
    box-sizing: border-box;
    padding: 0 40px 40px;
}

.technical-services-menu > h1.wp-block-heading,
.technical-services-menu > h2.wp-block-heading {
    position: relative;
    display: inline-block;
    margin: 0 0 30px;
    padding: 0;
    color: #373737;
    font-family: "Montserrat", sans-serif;
    font-size: 23.4px;
    font-weight: 700;
    line-height: 36px;
}

.technical-services-menu > h1.wp-block-heading::before,
.technical-services-menu > h2.wp-block-heading::before,
.technical-services-menu > h1.wp-block-heading::after,
.technical-services-menu > h2.wp-block-heading::after {
    content: "";
    position: absolute;
    left: 0;
}

.technical-services-menu > h1.wp-block-heading::before,
.technical-services-menu > h2.wp-block-heading::before {
    bottom: -5px;
    z-index: 2;
    width: 55px;
    height: 5px;
    background: #0a0434;
}

.technical-services-menu > h1.wp-block-heading::after,
.technical-services-menu > h2.wp-block-heading::after {
    bottom: -4px;
    width: 100%;
    height: 1px;
    background: rgba(123, 123, 123, 0.34);
}

.technical-services-menu nav,
.technical-services-menu .wp-block-navigation__responsive-dialog,
.technical-services-menu .wp-block-navigation__responsive-container-content {
    display: block !important;
    padding: 0 !important;
}

.technical-services-menu .wp-block-navigation__responsive-container-open,
.technical-services-menu .wp-block-navigation__responsive-container-close {
    display: none !important;
}

.technical-services-menu .wp-block-navigation__responsive-container {
    position: static !important;
    display: block !important;
    visibility: visible !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    opacity: 1 !important;
    color: inherit !important;
    background: transparent !important;
    transform: none !important;
}

.technical-services-menu .wp-block-navigation__container {
    display: block !important;
    width: 100%;
    margin: 0;
    padding: 0;
    gap: 0 !important;
    list-style: none;
}

.technical-services-menu .wp-block-navigation-item {
    display: block !important;
    width: 100%;
    margin: 0 0 9px !important;
    padding: 0;
}

.technical-services-menu .wp-block-navigation-item:last-child {
    margin-bottom: 0 !important;
}

.technical-services-menu .wp-block-navigation-item__content {
    display: inline !important;
    margin: 0;
    padding: 0;
    color: #7b7b7b;
    font-family: "Nunito", sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 24px;
    text-decoration: none;
}

.technical-services-menu .wp-block-navigation-item__content:hover,
.technical-services-menu .wp-block-navigation-item__content:focus,
.technical-services-menu .current-menu-item > .wp-block-navigation-item__content,
.technical-services-menu .current-menu-ancestor > .wp-block-navigation-item__content {
    color: #2f2f2f;
}

.technical-services-menu .current-menu-item > .wp-block-navigation-item__content,
.technical-services-menu .current-menu-ancestor > .wp-block-navigation-item__content {
    font-weight: 700;
}

/* Careers */

.career-popup-country {
	width: 30%;
	margin-top: 20px;
}

/* Overlay */
.career-popup-overlay {
  opacity: 0;                  /* start invisible */
  pointer-events: none;        /* not clickable when hidden */
  transition: opacity 0.3s ease; /* smooth fade */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5); /* darker background */
  z-index: 99999;

}

/* Active overlay */
.career-popup-overlay.active {
  opacity: 1;
  pointer-events: auto;        /* enable interaction */
}

/* Popup container */
.career-popup-container {
  background: #fff;
  width: 90%;
  max-width: 1200px;
  max-height: 80vh; /* limit height */
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  transform: translateY(-50px); /* start slightly above */
  opacity: 0;                   /* invisible initially */
  transition: transform 0.3s ease, opacity 0.3s ease; /* smooth slide + fade */
}

/* Slide in + fade in when active */
.career-popup-overlay.active .career-popup-container {
  transform: translateY(0);
  opacity: 1;
}

/* Scrollable content */
.career-popup-content {
  overflow-y: auto; /* scroll inside the popup */
  flex: 1;
  padding: 20px; /* optional spacing */
}

/* Close button fixed outside content */
.career-popup-close {
  position: fixed; /* fixed to viewport */
  top: 48px;
  right: 30px;
  font-size: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-weight: bold;
  color: #fff; /* white on dark overlay */
  z-index: 100000; /* above overlay */
}

/* Trigger buttons */
.career-open-btn {
  cursor: pointer;
}

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

    /* Country dropdown */
    .career-popup-country {
        width: 100%;
        margin-top: 15px;
    }

    /* Popup container */
    .career-popup-container {
        width: 95%;
        max-width: 95%;
        max-height: 90vh;
    }

    /* Content spacing */
    .career-popup-content {
        padding: 15px;
        font-size: 15px;
        line-height: 1.45;
    }

    /* Close button (smaller & inside container) */
    .career-popup-close {
        top: 15px;
        right: 15px;
        font-size: 28px;
        color: #000;              /* easier to see on small screens */
        width: 36px;
        height: 36px;
        line-height: 36px;
        text-align: center;
        z-index: 100001;
    }

    /* Fade/Slide stays smooth but shorter */
    .career-popup-container {
        transform: translateY(-30px);
    }
    .career-popup-overlay.active .career-popup-container {
        transform: translateY(0);
    }
}
