/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/* Hide Flatsome's default title/header on Products & Product Categories */
.single-products .entry-header,
.single-product_categories .entry-header {
  display: none;
}


/* MAIN header (normal + sticky) */
#header .header-main { 
  border-bottom: 1px solid #c3c3c3;
  box-sizing: border-box;
  width: 100%;
}
.stuck #header .header-main { 
  border-bottom: 1px solid #c3c3c3 !important; /* keep it when sticky */
}

/* BOTTOM header (already working) */
.wide-nav {
  border-bottom: 1px solid #c3c3c3;
  box-sizing: border-box;
  width: 100%;
}

/* If you use a transparent header on some pages */
.header.transparent .header-main {
  border-bottom: 1px solid #c3c3c3;
}

/* Show arrows on mobile (Flatsome hides .hide-for-small) */
.navigation-post .hide-for-small {
  display: inline-block !important;
}

/* Keep titles hidden, keep only arrows */
.navigation-post .nav-prev a,
.navigation-post .nav-next a {
  font-size: 0;           /* hides text */
  border: none !important;
  display: inline-flex;   /* keeps the icon aligned */
  align-items: center;
}

/* Make arrows bigger */
.navigation-post .nav-prev a i,
.navigation-post .nav-next a i {
  font-size: 40px;        /* tweak size as you like */
  line-height: 1;
}

/* Remove the top/bottom borders on that bar */
.navigation-post .bt,
.navigation-post .bb {
  border: none !important;
}

/* Mobile arrow size */
@media (max-width: 768px) {
  .navigation-post .nav-prev a i,
  .navigation-post .nav-next a i {
    font-size: 24px; /* smaller for mobile */
  }
}

/* Top Bar CSS */
.acf-top-bar {
  display: flex;
  align-items: center;
  background-color: #1f3b61;
  color: #fff;
  padding: 10px 20px;
  gap: 30px;
  overflow: hidden;
  font-family: 'scaniasanscy-bold', sans-serif;
  font-weight: 700;
  font-size: 17px;
}

.is-divider {
	
	height: .063rem;
	color: #cecece;

}

/* Title with arrow */
.top-bar-title {
  display: flex;
  align-items: center;
  gap: 15px;
  white-space: nowrap;
  flex-shrink: 0;
}

.top-bar-arrow {
  height: 12px;
  width: auto;
}

/* Scrolling area */
.top-bar-scroll {
  overflow: hidden;
  position: relative;
  flex: 1;
  white-space: nowrap;
}

/* Scrolling text with pause on hover and locked color */
.scrolling-text {
  display: inline-block;
  padding-left: 100%;
  padding-right: 50px;
  animation: scroll-loop 15s linear infinite;
  color: #fff !important; /* lock white color */
  text-decoration: none !important;
  font-weight: 700;
  font-size: 16px;
  font-family: 'scaniasanscy-regular', sans-serif;
  transition: none !important;
}

/* Pause scroll and lock styling on hover */
.top-bar-scroll:hover .scrolling-text {
  animation-play-state: paused;
  color: #fff !important;
  text-decoration: none !important;
}

.scrolling-text:hover {
  text-decoration: underline;
}

/* Keyframe: slides full width + gap out of view before looping */
@keyframes scroll-loop {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* Mobile responsive styles */
@media (max-width: 768px) {
    .acf-top-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
        padding: 8px 15px;
        font-size: 12px;
    }
    
    .top-bar-title {
        gap: 10px;
        font-size: 12px;
			margin-left: 120px
    }
    
    .top-bar-scroll {
        width: 100%;
    }
    
    .scrolling-track {
        gap: 40px; /* Smaller gap on mobile */
    }
    
    .scrolling-text {
        font-size: 12px;
        /* Remove the problematic padding */
    }
    
    /* Adjust animation for mobile */
    @keyframes scroll-loop {
        0% { 
            transform: translateX(0); 
        }
        100% { 
            transform: translateX(calc(-100% - 40px)); 
        }
    }
}

/* Phone number link (needs !important to override theme styles) */
.phone-number {
  color: #1d1c1e !important;
  font-size: 22px !important;
  font-weight: normal !important; /* Let the font file handle weight */
  font-family: 'scaniasanscy-bold', sans-serif !important;
  transition: color 0.3s ease !important;
}

.phone-number:hover {
  color: #1c3a5c !important;
}

/* Shared styles for both header buttons */
.header-button-1 .button.primary,
.header-button-2 .button.primary {
  display: inline-flex;
  background: #d4dce2;
  font-weight: normal; /* Let the font file handle weight */
  font-family: 'scaniasanscy-bold', sans-serif !important;
  font-size: 16px;
  line-height: normal;
  text-align: center;
  color: #1c3a5c;
  text-decoration: none;
  padding: 10px 15px;
  gap: 8px;
  align-items: center;
  cursor: pointer;
  width: auto;
  justify-content: center;
  text-transform: uppercase;
  white-space: nowrap;
  border-radius: 0;
}

/* Icon for Header Button 1 (Quote) */
.header-button-1 .button.primary::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  background-image: url('https://pedlex.pixoverstudios.com/wp-content/uploads/2025/07/quote-request-sn-n.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* Icon for Header Button 2 (Cart) */
.header-button-2 .button.primary::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 24px;
  background-image: url('https://pedlex.pixoverstudios.com/wp-content/uploads/2025/07/cart-icon.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* Right margin between elements */
.header-button-1,
.header-button-2 {
  margin-right: 10px !important;
}

/* Header SM Icons CSS */

.header-social-icons {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 25px; /* Increased spacing */
  align-items: center;
	margin-left: 10px !important;
	margin-right: 10px !important;
}

.header-social-icons li a img {
  height: 20px;
  width: auto;
  display: block;
  object-fit: contain; /* Keeps aspect ratio clean */
  transition: opacity 0.3s ease;
}

/* Footer SM Icons CSS */
.ftr-sm a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
border: 0.75px solid #808080;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin-right: 0.5rem;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.ftr-sm a img {
  height: 20px;
filter: brightness(0) saturate(100%) invert(16%) sepia(22%) saturate(3033%) hue-rotate(183deg) brightness(91%) contrast(86%);
  transition: filter 0.3s ease;
}


.ftr-sm a:hover {
  background: #1c3a5c !important;
  border-color: #1c3a5c !important;
}

.ftr-sm a:hover img {
  filter: brightness(0) invert(1) !important;
}

/* Social Media Icon Container: Always horizontal with flex */
.c-sm {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem; /* Optional: spacing between icons */
}

/* Social Media Icon Circles */
.c-sm a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0.75px solid #808080;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  transition: background 0.3s ease, border-color 0.3s ease;
  margin: 0;
  padding: 0;
}

/* Social Media Icon Images */
.c-sm a img {
  height: 20px;
  filter: brightness(0) saturate(100%) invert(16%) sepia(22%) saturate(3033%) hue-rotate(183deg) brightness(91%) contrast(86%);
  transition: filter 0.3s ease;
}

/* Hover Effects */
.c-sm a:hover {
  background: #1c3a5c !important;
  border-color: #1c3a5c !important;
}

.c-sm a:hover img {
  filter: brightness(0) invert(1) !important;
}


ul.ftr-menu-list {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
ul.ftr-menu-list li {
  margin: 0 0 10px 0 !important;
  padding: 0 !important;
  list-style: none !important;
  display: block !important;
  font-size: 16px !important;
  color: #66616b;
}
ul.ftr-menu-list li span {
  position: relative;
  display: inline-block;
  transition: color 0.6s ease; /* Slower color transition */
}
/* Underline animation */
ul.ftr-menu-list li span::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0%;
  height: 1px; /* Changed from 2px to 1px for thinner underline */
  background-color: #2f5091;
  transition: width 0.6s ease; /* Changed from 0.3s to 0.6s for slower animation */
}
/* Hover effect */
ul.ftr-menu-list li:hover span {
  color: #2f5091 !important;
}
ul.ftr-menu-list li:hover span::after {
  width: 100%;
}

@media (max-width: 767px) {
  ul.ftr-menu-list li {
    font-size: 14px !important;
		  margin-bottom: 6px !important;
  }
}


.ftr-column .icon-box-text span {
  position: relative;
  display: inline-block;
  transition: color 0.6s ease;
}

.ftr-column .icon-box-text span::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0%;
  height: 1px;
  background-color: #2f5091;
  transition: width 0.6s ease;
}

.ftr-column .icon-box:hover .icon-box-text span {
  color: #2f5091 !important;
}

.ftr-column .icon-box:hover .icon-box-text span::after {
  width: 100%;
}

.ftr-column .icon-box-img {
  width: 22px !important;
}

.ftr-column .icon-box-img .icon,
.ftr-column .icon-box-img .icon-inner,
.ftr-column .icon-box-img svg {
  width: 22px !important;
  height: 22px !important;
}

.ftr-column .icon-box-img svg path {
  fill: #828085 !important;
}

.ftr-column .icon-box-img {
  margin-right: -5px !important; /* reduce this value as needed */
}

/* Homepage Banner CSS */

section.tabs-area {
  display: flex;
  align-items: stretch;
}

.simple-tab {
  position: relative;
  width: 33.33%;
  height: 30rem;
  transition: 0.3s ease;
  overflow: hidden;
}

.simple-tab img,
.simple-tab video {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.simple-tab-heading {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  font-family: 'scaniasanscyh-b';
  font-weight: normal;
  font-size: 3.25rem;
  text-align: center;
  color: #fff;
  padding: 5.5rem 2rem;
  background: rgba(0, 0, 0, 0.45);
}

.simple-tab:hover .simple-tab-heading {
  background: none;
  padding: 0 10rem;
  top: 46%;
  transform: translateY(-50%);
  text-align: left;
  width: 90%;
  z-index: 2;
}

.simple-tab:hover .simple-tab-caption {
  display: block;
}

.simple-tab:hover:before {
  position: absolute;
  content: "";
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgb(15 58 95 / 79%);
  z-index: 1;
}

.simple-tab.active {
  width: 60%;
  transition: 1s ease;
}

.simple-tab-caption {
  display: none;
  font-size: 1.125rem;
  font-family: 'scaniasanscy-regular';
  font-weight: 500 !important;
  line-height: 2rem;
  padding-top: 2rem;
  width: 30rem;
}

.simple-tab-caption p {
  margin-bottom: 2rem;
}

.simple-tab-caption a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: 2px solid #fff;
  color: #fff;
  font-weight: normal;
  font-family: 'scaniasanscy-regular';
  text-decoration: none;
  transition: all 0.3s ease;
}

.simple-tab-caption a:hover {
  background-color: #fff;
  color: #234f96;
}

.simple-tab-caption a img {
  width: 0.75rem;
  filter: brightness(0) invert(1);
  transition: transform 0.3s ease;
}

.simple-tab-caption a:hover img {
  transform: translateX(4px);
  filter: none;
}

@media (max-width: 768px) {
  .simple-tab {
    height: 300px; /* 18rem */
  }

  .simple-tab.active {
    width: 60% !important;
  }

  .simple-tab-heading {
    font-size: 14px; /* 1rem */
    padding: 32px 22px; /* 2rem 1.5rem */
  }

  .simple-tab:hover .simple-tab-heading {
    padding: 0 22px; /* 2rem */
    top: 45%;
    transform: translateY(-50%);
    font-size: 16px; /* 1.25rem */
  }

  .simple-tab-caption {
    width: 100%;
    font-size: 10px; /* 0.875rem */
    line-height: 12px; /* 1.4rem */
    padding-top: 16px; /* 1rem */
  }

  .simple-tab-caption p {
    margin-bottom: 16px; /* 1rem */
  }

  .simple-tab-caption a {
    font-size: 10px; /* 0.8rem */
    padding: 8px 6px; /* 0.5rem 1rem */
    gap: 4px; /* 0.25rem */
  }

  .simple-tab-caption a img {
    width: 10px; /* 0.65rem */
  }
}

.h-txt h1 {
  font-family: 'scaniasanscyh-b';
  font-weight: normal;
  font-size: 42px;
}

@media (max-width: 767px) {
  .h-txt h1 {
    font-size: 16px;
  }
}

.h-txt h2 {
  font-family: 'scaniasanscyh-b';
  font-weight: normal;
  font-size: 36px;
}

@media (max-width: 767px) {
  .h-txt h2 {
    font-size: 16px;
  }
}

h2.h-txt {
  font-family: 'scaniasanscyh-b';
  font-weight: normal;
  font-size: 36px !important;
}

@media (max-width: 767px) {
  h2.h-txt {
    font-size: 16px;
  }
}

h4.h-23-txt {
  font-family: 'scaniasanscyh-b';
  font-weight: normal;
  font-size: 22px !important;
}

@media (max-width: 767px) {
  h4.h-23-txt {
    font-size: 16px;
  }
}



.p-txt p {
	
	font-family: 'scaniasanscy-regular';
	font-weight: normal;
	font-size: 18px;
	color: #3f464c;
	line-height: 1.75em;
		
}

@media (max-width: 767px) {
  .p-txt p {
    font-size: 13px;
  }
}

.p-16-txt p {
	
	font-family: 'scaniasanscy-regular';
	font-weight: normal;
	font-size: 16px;
	color: #3f464c;
	line-height: 1.75em;
		
}



@media (max-width: 767px) {
  .p-16-txt p {
    font-size: 13px;
  }
}

.cs-css {
	
	  font-family: 'scaniasanscyh-b';
  font-weight: normal;
  font-size: 22px;
}

@media (max-width: 767px) {
  .cs-css {
    font-size: 16px;
  }
}

.custom-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: 'scaniasanscy-regular', sans-serif;
  font-weight: bold !important;
  font-size: 1.125rem !important;
  letter-spacing: 0.01em !important;
  line-height: normal !important;
  padding: 1rem 1.5rem;
  border: 0 !important;
  border-radius: 0 !important;
  background-color: #234f96;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  position: relative;
}

.custom-button::after {
  content: '';
  display: inline-block;
  width: 13px;
  height: 12px;
  background-image: url('/wp-content/uploads/2025/07/white-arrow.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin-left: 5px;
  transition: transform 0.7s ease;
}

.custom-button:hover {
  background-color: #1d1c1e;
  color: #fff;
}

.custom-button:hover::after {
  transform: translateX(8px);
}

@media (max-width: 767px) {
  .custom-button {
    font-size: 0.75rem !important;   /* Smaller text */
    padding: 0.5rem 0.75rem;         /* Tight padding */
  }

  .custom-button::after {
    width: 8px;
    height: 7px;
    margin-left: 2px;
  }
	
	.custom-button:hover::after {
  transform: translateX(4px);
}
}

.custom-button-no-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: 'scaniasanscy-regular', sans-serif;
  font-weight: bold !important;
  font-size: 1.125rem !important;
  letter-spacing: 0.01em !important;
  line-height: normal !important;
  padding: 1rem 1.5rem;
  border: 0 !important;
  border-radius: 0 !important;
  background-color: #234f96;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  position: relative;
}

.custom-button-no-arrow:hover {
  background-color: #1d1c1e;
  color: #fff;
}

@media (max-width: 767px) {
  .custom-button-no-arrow {
    font-size: 0.75rem !important;
    padding: 0.5rem 0.75rem;
  }
}



.gform_footer input[type="submit"].gform_button,
.gform_page_footer input[type="submit"].gform_button {
  display: block !important;
  align-items: center !important;
  justify-content: center !important;
  font-family: 'scaniasanscy-regular', sans-serif !important;
  font-weight: bold !important;
  font-size: 1.125rem !important;
  letter-spacing: 0.01em !important;
  line-height: normal !important;
  padding: 1.25rem 2rem !important;
  border: 0 !important;
  border-radius: 0 !important;
  background-color: #234f96 !important;
  color: #fff !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: background-color 0.3s ease, color 0.3s ease !important;
  position: relative !important;
  margin: 10px auto 0 auto !important;
  text-align: center !important;
  text-transform: capitalize !important;
}

.gform_footer input[type="submit"].gform_button:hover,
.gform_page_footer input[type="submit"].gform_button:hover {
  background-color: #1d1c1e !important;
  color: #fff !important;
}

@media (max-width: 767px) {
  .gform_footer input[type="submit"].gform_button,
  .gform_page_footer input[type="submit"].gform_button {
    font-size: 0.75rem !important;
    padding: 0.75rem 1rem !important;
    box-sizing: border-box !important;
  }
}

body .gform_wrapper .gform_heading .gform_title {
  display: none !important;
}
body .gform_wrapper .gform_heading .gform_required_legend {
  display: none !important;
}




.txt-button {
  display: inline-flex;
  align-items: center;
  justify-content: left;
  gap: 16px; /* 1rem = 16px */
  font-family: 'scaniasanscy-r', sans-serif;
  font-weight: bold !important;
  font-size: 18px;
  color: #234f96 !important;
  text-decoration: none !important;
  background: none !important;
  border: none !important;
  padding: 0 !important;
  cursor: pointer;
  transition: none !important;
  position: relative;
}

.txt-button:hover {
  color: #234f96 !important;
  background: none !important;
  border: none !important;
  text-decoration: none !important;
  box-shadow: none !important;
  filter: none !important;
  transform: none !important;
}

.txt-button::after {
  content: '';
  display: inline-block;
  width: 13px;
  height: 12px;
  background-image: url('/wp-content/uploads/2025/07/arrow-right-blue.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin-left: 5px;
  transition: transform 0.7s ease;
}

.txt-button:hover::after {
  transform: translateX(8px);
}


@media (max-width: 767px) {
  .txt-button {
    font-size: 13px;
    gap: 10px;
  }

  .txt-button::after {
    width: 10px;
    height: 9px;
    margin-left: 4px;
  }
}


.txt-button-nb {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start; /* Fix this */
  gap: 16px;
  font-family: 'scaniasanscy-r', sans-serif;
  font-weight: normal !important;
  font-size: 18px;
  color: #234f96 !important;
  text-decoration: none !important;
  background: none !important;
  border: none !important;
  padding: 0 !important;
  cursor: pointer;
  transition: none !important;
  position: relative;
  text-align: left; /* Optional but helps */
}


.txt-button-nb:hover {
  color: #234f96 !important;
  background: none !important;
  border: none !important;
  text-decoration: none !important;
  box-shadow: none !important;
  filter: none !important;
  transform: none !important;
}

.txt-button-nb::after {
  content: '';
  display: inline-block;
  width: 13px;
  height: 12px;
  background-image: url('/wp-content/uploads/2025/07/arrow-right-blue.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin-left: 5px;
  transition: transform 0.7s ease;
}

.txt-button-nb:hover::after {
  transform: translateX(8px);
}


@media (max-width: 767px) {
  .txt-button-nb {
    font-size: 13px;
    gap: 10px;
  }

  .txt-button-nb::after {
    width: 10px;
    height: 9px;
    margin-left: 4px;
  }
}


/* Grid wrapper for industry sectors */
.industry-sectors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Each card */
.sector-card {
  background: #fff;
	padding: 50px 40px;
  text-align: center;
	border: 0.77px solid #cecece;
}

/* Icon image */
/* Icon image size */
.sector-icon {
  width: 65px;   /* 4.063rem ≈ 65px */
  height: 65px;
  margin-bottom: 20px;
}

/* Title styling */
.sector-title {
  font-size: 24px;
  font-weight: 400;
  color: #001233;
  text-transform: uppercase;
  font-family: 'scaniasanscyh-b';
	line-height: 1.2;

}

/* Slight vertical offset for second column only */
.industry-sectors-grid .sector-card:nth-child(2),
.industry-sectors-grid .sector-card:nth-child(4),
.industry-sectors-grid .sector-card:nth-child(6) {
  position: relative;
  top: 40px;
}

/* Reduce padding for the last box only */
.industry-sectors-grid .sector-card:last-child {
  padding: 50px 30px;
}

@media (max-width: 767px) {
  /* Smaller 2-column layout */
  .industry-sectors-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 0px 10px;
  }

  /* Remove vertical offset */
  .industry-sectors-grid .sector-card:nth-child(2),
  .industry-sectors-grid .sector-card:nth-child(4),
  .industry-sectors-grid .sector-card:nth-child(6) {
    top: 0;
  }

  /* Smaller card padding */
  .sector-card {
    padding: 20px 10px;
  }

  /* Smaller icon */
  .sector-icon {
    width: 35px;
    height: 35px;
    margin-bottom: 10px;
  }

  /* Smaller title */
  .sector-title {
    font-size: 12px;
    line-height: 1.1;
  }

  /* Match smaller padding on last card */
  .industry-sectors-grid .sector-card:last-child {
    padding: 20px 10px;
  }
}

.youtube-cover-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden; /* Prevent overflow */
}

/* Single embed - image controls height initially */
.youtube-cover {
  width: 100%;
  position: relative;
  cursor: pointer;
  overflow: hidden;
  max-width: 100%;
}

.youtube-cover img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-width: 100%;
}

/* NEW: When single embed becomes iframe, make it responsive */
.youtube-cover:not(.has-cover) {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  max-width: 100%;
  overflow: hidden;
}

.youtube-cover:not(.has-cover) iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  max-width: 100%;
}

/* FIXED: Ensure iframe is always contained when .has-cover is removed */
.youtube-cover iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  max-width: 100%;
}

/* Overlay and play button styles */
.youtube-cover.has-cover::before {
  content: "";
  position: absolute;
  top: 0; 
  left: 0;
  width: 100%; 
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 5;
}

.youtube-cover .play-button {
  position: absolute;
  top: 50%; 
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  transition: transform 0.3s ease;
}

.youtube-cover .play-button:hover {
  transform: translate(-50%, -50%) scale(1.1);
}

.youtube-cover .play-button img {
  width: 80px; 
  height: 80px;
}

@media (max-width: 767px) {
  .youtube-cover .play-button img {
    width: 50px; 
    height: 50px;
  }
}

/* ===== Two-column layout for [youtube_cover_embed_two] ===== */
.youtube-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
  max-width: 100%;
  overflow: hidden; /* Prevent grid overflow */
}

.youtube-two-col__item {
  width: 100%;
  max-width: 100%;
  overflow: hidden; /* Prevent item overflow */
}

/* Force consistent 16:9 tiles inside the two-col grid */
.youtube-two-col .youtube-cover {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  overflow: hidden;
  cursor: pointer;
  max-width: 100%;
}

/* Make the cover image fill the tile */
.youtube-two-col .youtube-cover > img {
  position: absolute;
  left: 0; 
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  max-width: 100%;
}

/* Ensure overlay + play stay centered on the fixed-ratio tile */
.youtube-two-col .youtube-cover.has-cover::before {
  content: "";
  position: absolute;
  left: 0; 
  top: 0;
  width: 100%; 
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 5;
}

.youtube-two-col .youtube-cover .play-button {
  position: absolute;
  left: 50%; 
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
}

/* When playing, the iframe should fill the same area */
.youtube-two-col .youtube-cover iframe {
  position: absolute;
  left: 0; 
  top: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  max-width: 100%;
}

/* Stack on mobile */
@media (max-width: 767px) {
  .youtube-two-col {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* Section wrapper – no background */
.news_catalog_section {
  padding: 0px 0px;
}

/* Grid max-width set to 1450px */
.news_catalog_grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1450px;
  margin: 0 auto;
}

.news_catalog_item {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* Box with image and overlay */
.heading-over-tab {
  position: relative;
  overflow: hidden;
}

/* Default white background behind images */
.heading-over-tab .image-wrapper {
  height: 21rem;
  width: 100%;
  background-color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  z-index: 0;
}

/* Only second box: light grey background */
.heading-over-tab.bg-gray .image-wrapper {
  background-color: #eeeeee;
}

/* Main image inside wrapper */
.heading-over-tab .image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s ease;
  display: block;
}

/* Only 2nd and 3rd boxes: scale to fit inside */
.heading-over-tab.contain-fit .image-wrapper img {
  object-fit: contain;
  width: auto;
  max-width: 100%;
  max-height: 100%;
}

/* Dark overlay */
.heading-over-tab::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0.3;
  z-index: 1;
}

/* Title and arrow */
.heading-over-tab h6 {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 2rem;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-size: 1.5rem;
  color: #fff;
  font-family: 'scaniasanscyh-b', sans-serif;
  z-index: 2;
	opacity: 1 !important;
}


.heading-over-tab h6 span img {
  width: 17px;
  height: auto;
  display: inline-block;
  transition: transform 0.7s ease;
}

/* Hover effects */
.heading-over-tab:hover .image-wrapper img {
  transform: scale(1.08);
}

.heading-over-tab:hover h6 span img {
  transform: translateX(0.8rem);
}

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

  .heading-over-tab .image-wrapper {
    height: 16rem;
  }
}

@media (max-width: 767px) {
  .news_catalog_grid {
    grid-template-columns: 1fr;
  }

  .heading-over-tab .image-wrapper {
    height: 16rem;
  }

  .heading-over-tab h6 {
    font-size: 1.2rem;
    padding: 1.5rem;
  }

  .heading-over-tab h6 span img {
    width: 14px;
  }
}


.footer-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 17px 25px !important;
  border: 2px solid #fff !important;
  color: #fff !important;
  font-weight: bold !important;
  font-family: 'scaniasanscy-regular', sans-serif !important;
  font-size: 18px !important;
  text-decoration: none !important;
  background: none !important;
  box-shadow: none !important;
  transition: none !important;
  cursor: pointer !important;
  position: relative !important;
  white-space: nowrap; /* ⬅️ Prevents line break */
}


/* Remove Flatsome’s hover background, shadow, underline, etc. */
.footer-button:hover {
  background-color: #fff !important;
  color: #234f96 !important;
  border-color: #fff !important;
  text-decoration: none !important;
  box-shadow: none !important;
  filter: none !important;
  transform: none !important;
}

.footer-button::after {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  background-image: url('/wp-content/uploads/2025/07/wht-arrow.svg');
  background-repeat: no-repeat;
  background-size: contain;
  vertical-align: middle;
  position: relative;
  top: 2px; /* Optional fine-tuning */
  transition: transform 0.6s ease, background-image 0.2s ease;
}


.footer-button:hover::after {
  transform: translateX(4px);
  background-image: url('/wp-content/uploads/2025/07/arrow-right-blue.svg');
}


/* Mobile size adjustments */
@media (max-width: 768px) {
  .footer-button {
    font-size: 10px !important;
    padding: 8px 12px !important;
    gap: 4px !important;
		  border: 1px solid #fff !important;

  }

  .footer-button::after {
    width: 8px;
    height: 8px;
		  top: 0px; /* Optional fine-tuning */

  }
}

.top-footer-section-wrapper {
  background: transparent;
  padding: 20px 0;
  text-align: center;
}

.top-footer-section-tabs {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

/* Key change: Force all tabs to similar width for balanced layout */
.top-footer-section-tab {
  flex: 1 1 220px;    /* grow, shrink, basis (adjust values as needed) */
  min-width: 220px;   /* ensure reasonable minimum width */
  max-width: 350px;   /* keep previous maximum */
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.top-footer-section-icon {
  margin-bottom: 30px;
}

.top-footer-section-icon img {
  width: 50px;
  height: auto;
}

@media (max-width: 768px) {
  .top-footer-section-wrapper {
    padding: 0px 0 !important;
  }

  .top-footer-section-tabs {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 0;
  }

  .top-footer-section-tab {
    max-width: 100%;
    min-width: unset;  /* let it be 100% width on small screens */
    width: 100%;
    flex: 1 1 100%;
  }

  .top-footer-section-icon {
    margin-bottom: 12px;
  }

  .top-footer-section-icon img {
    width: 32px;
  }

  .top-footer-section-tab:last-child .footer-button {
    margin-bottom: 0 !important;
  }
}


/* ===== Services Page CSS ===== */
.pedlex-services-menu {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  background: #ffffff;
  border-bottom: 1px solid #ddd;
  padding: 30px 0;
  overflow-x: auto;
  z-index: 10;
}

.pedlex-services-menu-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 20000px;
  width: 100%;
  padding: 0 40px;
  box-sizing: border-box;
  justify-content: center;
}

.pedlex-services-menu a {
  display: block;
  padding: 8px 10px;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  color: #767e84;
  border-bottom: 4px solid transparent;
  margin-bottom: -5px;
  transition: border-color 0.3s, color 0.3s;
  text-align: center;
  max-width: clamp(160px, 20vw, 220px); /* Responsive max width */
  line-height: 1.4; /* Better spacing for multi-line titles */
  word-break: break-word; /* Allow breaking long words */
}

.pedlex-services-menu a:hover {
  border-color: #1c3a5c;
  color: #1c3a5c;
}

.pedlex-services-wrapper {
  width: 100%;
}

.pedlex-service-section {
  padding: 110px 20px 110px;
}

.pedlex-service-inner {
  display: flex;
  flex-wrap: wrap;
  max-width: 1450px;
  margin: 0 auto;
  gap: 30px;
  align-items: center;
}

.pedlex-service-inner.reverse {
  flex-direction: row-reverse;
}

.pedlex-service-image,
.pedlex-service-content {
  flex: 1 1 500px;
}

.pedlex-service-image img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: bottom;
}

.pedlex-service-content {
  padding-left: 0;
  padding-right: 0;
}

.pedlex-service-inner:not(.reverse) .pedlex-service-content {
  padding-left: 60px;
}

.pedlex-service-inner.reverse .pedlex-service-content {
  padding-right: 60px;
}

.pedlex-service-content h2 {
  font-size: 28px;
  margin-bottom: 40px;
  color: #1d1c1e;
}


/* Tablet/smaller desktop breakpoint */
@media (max-width: 940px) {
  .pedlex-services-menu-inner {
    max-width: calc(100vw - 40px);
  }
}

@media (max-width: 1440px) {
  .pedlex-services-menu a {
    max-width: 180px;
    font-size: 15px;
    padding: 6px 8px;
  }
}

@media (max-width: 768px) {
  .pedlex-services-menu {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
		padding: 20px 0px 5px 0px;
  }

  .pedlex-services-menu-inner {
    flex-wrap: nowrap;
    min-width: max-content;
    gap: 1px;
  }

  .pedlex-services-menu a {
    scroll-snap-align: start;
    flex: none;
    min-width: 120px;
    max-width: 160px;
    font-size: 11px;
    line-height: 1.4;
    padding: 1px 10px;
    text-align: center;
    white-space: normal;
    word-break: break-word;
		  border-bottom: 2px solid transparent;

  }

  .pedlex-service-inner,
  .pedlex-service-inner.reverse {
    display: block;
    flex-direction: unset;
    gap: 0;
  }

  .pedlex-service-section {
    padding: 60px 20px 40px;
  }

  .pedlex-service-image {
    margin-bottom: 20px !important;
    padding-bottom: 0 !important;
    line-height: 0 !important;
  }

  .pedlex-service-image img {
    display: block;
    width: 100%;
    height: auto;
    vertical-align: bottom;
  }

  .pedlex-service-content {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .pedlex-service-content h2 {
    margin-top: 0;
    margin-bottom: 20px;
	  font-size: 16px !important;
  }
}

/* === Service Card Styles === */
.pedlex-service-card {
  text-align: left;
  box-sizing: border-box;
  padding: 0 10px;
}

.pedlex-service-card img {
  width: 100%;
  height: auto;
  margin-bottom: 15px;
  display: block;
}

.pedlex-service-card h3 {
  font-size: 20px;
  font-weight: bold;
  color: #1d1c1e;
  margin: 0;
  padding-left: 20px;
  line-height: 1.5;
}

/* === Owl Carousel Dots === */
.owl-theme .owl-dots {
  display: flex;
  justify-content: center;
  gap: 1px; /* reduce spacing between bullets */
  margin-top: 10px;
}

.owl-theme .owl-dots .owl-dot span {
  width: 15px;
  height: 15px;
  background: #c4c9cc;
  border-radius: 50%;
  display: block;
  transition: background 0.3s ease;
  margin: 0 !important; /* remove inherited margins */
}


.owl-theme .owl-dots .owl-dot.active span,
.owl-theme .owl-dots .owl-dot:hover span {
  background: #2f5091;
}

/* === Responsive Tweaks === */
@media (max-width: 768px) {
  .pedlex-service-card {
    padding: 0 5px;

  }

  .pedlex-service-card h3 {
    font-size: 14px;
    padding-left: 10px;
    line-height: 1.4;
			margin-bottom: -40px;
  }

  .owl-theme .owl-dots {
    margin-top: 10px; /* Less space between slides and bullets */
			margin-bottom: -30px;
		  gap: 0px; /* reduce spacing between bullets */

  }

  .owl-theme .owl-dots .owl-dot span {
    width: 10px;
    height: 10px;
  }
}

.icon-box-img {
  margin-right: 15px; /* Adjust the value as needed */
}

.ross-img {
  position: relative;
  display: block;
  overflow: hidden;
}

/* Blue overlay */
.ross-img::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgb(0 99 139 / 85%);
  z-index: 31;
  pointer-events: none;
}

/* Rousseau logo overlay */
.ross-img::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  width: 21.625rem;
  height: 21.625rem;
  background: url('/wp-content/uploads/2025/07/rou-after.png') no-repeat center;
  background-size: cover;
  transform: translateY(-50%);
  margin: 0 auto;
  z-index: 99;
  pointer-events: none;
}

.rousseau-layout {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: nowrap;
min-width: 1500p;
}

.rousseau-left {
  flex: 0 0 55%;
  display: flex;
  flex-direction: column;
}

.rousseau-right {
  flex: 0 0 39%;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

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

.rousseau-right-img {
  overflow: hidden;
}

.rousseau-right-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* === Responsive for mobile === */
@media (max-width: 768px) {
  .rousseau-layout {
    flex-direction: column;
    gap: 2px; /* Reduce space between stacked columns */
  }

  .rousseau-left,
  .rousseau-right {
    flex: 1 1 100%;
  }

  .ross-img::after {
    width: 8rem; /* Shrink overlay logo on mobile */
    height: 8rem;
  }

  .rousseau-right {
    gap: 20px; /* Reduce spacing between right images */
  }

  .rousseau-right-img {
    overflow: visible;
  }

  .ross-img img,
  .rousseau-right-img img {
    height: auto;
    object-fit: contain;
  }
}

.team-2x3-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 30px;
}

.team-cell {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Vertically center the section text */
.team-section-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

/* Team member card */
.team-member {
  text-align: left;
}

/* Team member image wrapper with fixed height on desktop */
.team-member-image {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  width: 100%;
  height: auto; /* remove the fixed 403px height */
}
/* Team member image */
.team-member-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Name */
.team-member-name {
  font-family: 'scaniasanscyh-b';
  font-weight: 400;
  font-size: 22px;
  line-height: normal;
  color: #0a1b33;
  margin-top: 25px;
  padding-left: 30px;
}

/* Title + LinkedIn row */
.team-member-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 30px;
  padding-right: 30px;
  margin-top: 10px;
}

/* Title */
.team-member-title {
  font-family: 'scaniasanscy-regular';
  font-weight: 400;
  font-size: 18px;
  line-height: 30px;
  color: #234f96;
  margin: 0;
  padding: 0;
}

/* LinkedIn SVG icon */
.team-member-linkedin svg {
  fill: #234f96;
  width: 20px;
  height: 20px;
}

@media (max-width: 767px) {
  .team-2x3-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .team-2x3-grid .team-cell:nth-child(1) {
    grid-column: 1 / -1; /* full width for section title */
  }

  .team-member-name {
    font-size: 16px;
    margin-top: 10px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .team-member-title-row {
    justify-content: space-between;
    padding-left: 10px;
    padding-right: 10px;
    margin-top: 4px;
  }

  .team-member-title {
    font-size: 12px;
    line-height: 15px;
  }

  .team-member-linkedin svg {
    width: 16px;
    height: 16px;
  }

  /* Make image square on mobile */
  .team-member-image {
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .team-member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}
.form-control input , .form-control select , .form-control textarea{
    height: 4.063rem !important;
    border-radius: 0 !important;
    border: 0.091rem solid #aaaaaa !important;
    padding-left: 2.063rem !important;
	  font-size: 1.063rem !important;
    color: #3f464c !important;
    outline: none !important;
    box-shadow: none !important;
    text-align: left;
	font-family: 'scaniasanscy-regular';
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .form-control input,
  .form-control select,
  .form-control textarea {
      height: 50px !important;
      padding-left: 20px !important;
      font-size: 15px !important;
  }
}

.gform-theme--foundation .gform_fields , .gform-theme--foundation .gform-grid-row{
    row-gap: 1.375rem !important;
}

/* Default (desktop/tablet) */
.cf-column select {
  padding-top: 20px !important;
  padding-bottom: 5px !important;
  line-height: 1.2 !important;
}

/* Mobile (screen width 768px and below) */
@media (max-width: 768px) {
  .cf-column select {
    padding-top: 5px !important;
  }
}


/* Make Gravity Forms datepickers full width */
body .gform_wrapper .ginput_container_date input.datepicker {
  width: 100% !important;
  box-sizing: border-box;
}

/* Ensure the container also allows full width */
body .gform_wrapper .ginput_container_date {
  width: 100% !important;
}

.gform-theme--framework input[type=checkbox]:where(:not(.gform-theme__disable):not(.gform-theme__disable *):not(.gform-theme__disable-framework):not(.gform-theme__disable-framework *)):before {
    font-size: 1.3rem !important;
    color: #808080 !important;
}

/* Increase the size of all checkboxes and labels inside .cf-column */
.cf-column input[type="checkbox"] {
  width: 30px;
  height: 30px;
  accent-color: #0088cc; /* Optional: style the checkbox */
  /* Or use: transform: scale(1.5); if width/height isn't supported */
}

/* 1. Container flex for horizontal alignment and centering */
.cf-column .gfield_checkbox,
.cf-column .gfield_checkbox li {
  display: flex;
  align-items: flex-start;      /* Use flex-start instead of 'top' */
  justify-content: center;
}

/* 2. Checkbox styling (desktop) */
.cf-column input[type="checkbox"] {
  width: 60px;
  height: 35px;
  margin-right: 10px;
}

/* 3. Label styling (desktop) */
.cf-column label {
  font-size: 1.1em;
  font-family: 'scaniasanscy-regular';
  line-height: 1.5;
  font-weight: normal;
  text-align: center;
}

.show-col .gfield_description {
	
	text-align: center;
	padding-left: 30px;
	padding-right: 30px;
}

/* 4. Mobile adjustments */
@media (max-width: 768px) {
  .cf-column input[type="checkbox"] {
    width: 30px;
    height: 20px;
    margin-right: 6px;
  }

  .cf-column label {
    font-size: 0.9em;
    line-height: 1.3;
  }
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 62px;
  margin: 0 auto;
  padding: 40px 0;
}
.value-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.value-item img {
  width: 90px;
  height: 70px;
  object-fit: contain;
  display: block;
}
.value-title {
  margin-top: 16px;
  font-weight: normal;
  text-align: center;
  font-family: 'scaniasanscyh-b';
  color: #1d1c1e;
}

/* Tablet: Only grid columns and gap change */
@media (max-width: 1024px) {
  .values-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

/* Mobile: icon and text get smaller */
@media (max-width: 480px) {
  .values-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
  .value-item img {
    width: 48px;
    height: 36px;
  }
  .value-title {
    font-size: 14px;
  }
}

.jobs-flex-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;  /* This centers the items when there are fewer than 3 */
  gap: 40px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 20px 0;
}

.job-item {
  background: #fff;
  border: 0.063rem solid #b4b4b4;
  width: 30%;         /* 3 items per row; adjust as needed */
  min-width: 220px;   /* Prevents items from getting too small on large screens */
  box-sizing: border-box;
  padding: 32px 20px 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 24px;
}

.job-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin-bottom: 28px;
  display: block;
}
.job-title {
  font-family: 'scaniasanscyh-b', sans-serif;
  font-size: 22px;
  color: #1d1c1e;
  text-align: center;
  margin-bottom: 12px;
  font-weight: normal;
	line-height: 1.4;
}
.job-pay {
  font-size: 18px;
  color: #3f464c;
  text-align: center;
}

@media (max-width: 767px) {
  .jobs-flex-wrap {
    flex-direction: column;
    align-items: center;
    padding-left: 10px;
    padding-right: 10px;
    gap: 12px;    /* Keeps cards close */
  }
  .job-item {
    width: 100%;
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
    padding: 14px 10px 10px 10px;
    min-width: 0;
    box-sizing: border-box;
  }
  .job-icon {
    width: 28px;
    height: 28px;
    margin-bottom: 10px;
  }
  .job-title {
    font-size: 16px;
    text-align: center;
  }
  .job-pay {
    font-size: 13px;
    text-align: center;
  }
}



@media (max-width: 480px) {
  .jobs-flex-wrap {
    padding-left: 10px;
    padding-right: 10px;
  }
  .job-item {
    width: 100%;
    max-width: 340px;      /* Prevents job card from stretching too wide */
    margin-left: auto;
    margin-right: auto;
    padding: 14px 8px 10px 8px;
    margin-bottom: 10px;
    min-width: 0;          /* Ensures proper scaling on small screens */
    box-sizing: border-box;
  }
  .job-icon {
    width: 28px;
    height: 28px;
    margin-bottom: 10px;
    display: block;
  }
  .job-title {
    font-size: 15px;
    text-align: center;
  }
  .job-pay {
    font-size: 12px;
    text-align: center;
  }
}

/* === Testimonial Slider Styles === */

/* General Testimonial Container */
.testimonial-slider .testimonial {
  background: #fff;
  border-radius: 10px;
  padding: 32px 28px 28px 28px;
  margin: 0 12px;
  text-align: left;
  position: relative;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* Title Styling */
.testimonial-title {
  font-family: 'scaniasanscyh-b';
  font-weight: normal;
  font-size: 36px;
  line-height: 45px;
  color: #1d1c1e;
  margin-bottom: 50px;
  letter-spacing: 0;
}

/* Quote Icon */
.testimonial-slider .quote-icon img {
  width: 77px !important;
  height: auto !important;
  margin-bottom: 29px;
  display: block;
}

/* Testimonial Quote Text */
.testimonial-quote {
  font-family: 'scaniasanscy-regular';
  font-weight: 400;
  font-size: 22px;
  line-height: 33px;
  color: #3f464c;
  margin-bottom: 18px;
  font-style: normal;
  letter-spacing: 0;
}

/* Author block – flex row (no gap desktop, stacked mobile) */
.testimonial-author {
  margin-top: 14px;
  font-family: 'scaniasanscy-bold';
  font-weight: 400;
  font-size: 18px;
  line-height: 25px;
  color: #3f464c;
  letter-spacing: 0;
  display: flex;
  gap: 0;
}

/* Name in blue */
.testimonial-name {
  color: #234f96;
  font-weight: 400;
}

/* Description in gray */
.testimonial-description {
  color: #3f464c;
  font-weight: 400;
}

/* === Owl Carousel Specific (testimonial slider only) === */
.test-slider .owl-theme .owl-dots {
  display: flex !important;
  justify-content: flex-start !important;
  align-items: center;
  gap: 1px;
  margin-top: 10px;
  padding-left: 43px;
  width: 100%;
  text-align: left !important;
}

.test-slider .owl-theme .owl-dots .owl-dot span {
  width: 15px;
  height: 15px;
  background: #c4c9cc;
  border-radius: 50%;
  display: block;
  transition: background 0.3s ease;
  margin: 0 !important;
}

.test-slider .owl-theme .owl-dots .owl-dot.active span,
.test-slider .owl-theme .owl-dots .owl-dot:hover span {
  background: #2f5091;
}

/* Spacing between testimonial slides in Owl */
.owl-carousel .testimonial {
  margin: 0 10px;
}

/* === Responsive Adjustments === */
@media (max-width: 768px) {
  /* Reduce top padding */
  .testimonial-slider .testimonial {
    padding: 12px 0px 20px 0px;  /* was 25px, now 12px */
    min-height: 160px;
  }

  .testimonial-title {
    font-size: 16px;
    line-height: 22px;
		  margin-bottom: 20px;
  }

  .testimonial-quote {
    font-size: 15px;
    line-height: 22px;
		margin-bottom: 5px;
  }

  /* Make name and description on one line */
  .testimonial-author {
    flex-direction: row !important; /* override: row for single line */
    gap: 2px;
    font-size: 15px;
    line-height: 22px;
		margin-bottom: -25px;
  }

  /* Reduce quote icon size and bottom margin */
  .testimonial-slider .quote-icon img {
    width: 40px !important;         /* reduce icon size */
    margin-bottom: 20px;            /* reduce spacing below */
  }

  /* Align dots with content, padding matches card padding */
  .test-slider .owl-theme .owl-dots {
    margin-top: 10px;
    margin-bottom: -40px;
    gap: 0px;
    margin-left: -30px !important;  /* align to card left padding */
    justify-content: flex-start !important;
  }

  .test-slider .owl-theme .owl-dots .owl-dot span {
    width: 10px;
    height: 10px;
  }
}

@media (max-width: 360px) {
  .testimonial-slider .testimonial {
    padding: 8px 6px 14px 6px;
    min-height: 120px;
  }

  .testimonial-title {
    font-size: 13px;
    line-height: 16px;
    margin-bottom: 12px;
  }

  .testimonial-quote {
    font-size: 12px;
    line-height: 15px;
    margin-bottom: 2px;
  }

  .testimonial-author {
    font-size: 12px;
    line-height: 15px;
    gap: 1px;
    margin-bottom: -12px;
  }

  .testimonial-slider .quote-icon img {
    width: 22px !important;
    margin-bottom: 9px;
  }

  .test-slider .owl-theme .owl-dots {
    margin-top: 8px;
    margin-bottom: -26px;
    gap: 0px;
    padding-left: 6px !important;
    margin-left: 0 !important;
    justify-content: flex-start !important;
  }

  .test-slider .owl-theme .owl-dots .owl-dot span {
    width: 7px;
    height: 7px;
  }
}

.my-file-upload .ginput_container_fileupload input[type="file"].large {
  border: 1px dashed #bbb !important;
  border-radius: 6px;
  background: #fff;
  box-sizing: border-box;
}

.my-file-upload .ginput_container_fileupload input[type="file"].large::-webkit-file-upload-button {
  background: #eee;
  margin-left: -33px;
}

.my-file-upload .ginput_container_fileupload input[type="file"].large::file-selector-button {
  background: #eee;
}

/* Mobile override: Reduce or remove margin on small screens */
@media (max-width: 600px) {
  .my-file-upload .ginput_container_fileupload input[type="file"].large::-webkit-file-upload-button {
    margin-left: -20px;  /* Or try 0 if you want no negative margin */
  }
}

/* ==========================================================================
   Catalog Section Styling (ACF-powered catalog, tabs, PDF grid)
   ========================================================================== */

.catalog-section {
    margin-bottom: 60px;
}
.catalog-section-title {
    margin-bottom: 50px;
    font-size: 2em;
    text-align: center;
}

/* TABS */
.catalog-tabs {}
.catalog-tab-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    border-bottom: 1px solid #eaeaea;
    width: 100%;
    justify-content: center;
    gap: 8px 0; /* 8px gap between rows, 0 between columns - ALL SCREENS */
}
.catalog-tab {
    cursor: pointer;
    padding: 20px 12px 20px 12px;
    background: #ffffff;
    font-family: 'scaniasanscy-bold';
    text-transform: uppercase !important;
    transition: background 0.2s;
    margin-bottom: 0px;
    position: relative;
}
.catalog-tab.active,
.catalog-tab:hover {
    background: #234f96;
    color: #ffffff;
}
.catalog-tabs-content {
    padding: 20px 0 0 0;
    background: #fff;
}
.catalog-tab-panel {
    display: none;
}
.catalog-tab-panel.active {
    display: block;
}

/* PDF GRID */
.catalog-pdfs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px 10px;
    margin-top: 10px;
}
.catalog-pdf-card {
    background: transparent;
    border-radius: 8px;
    padding: 18px 14px 14px 14px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    line-height: 1.2;
}

/* WIPE EFFECT - Targets only the image link, excludes download button */
.catalog-pdf-card a[target="_blank"]:not(.txt-button-nb) {
    position: relative;
    display: block;
    overflow: hidden;
}

.catalog-pdf-card a[target="_blank"]:not(.txt-button-nb)::before {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    z-index: 1;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 100%);
    transform: skewX(-25deg);
    transition: left 0.6s ease-in-out;
    pointer-events: none;
}

.catalog-pdf-card a[target="_blank"]:not(.txt-button-nb):hover::before {
    left: 125%;
}

/* Protect the download button from any interference */
.catalog-pdf-card .txt-button-nb {
    position: relative;
    z-index: 10;
    isolation: isolate;
}

.catalog-pdf-image {
    height: 480px;
    width: 100%;
    object-fit: contain;
    background: transparent;
    margin-bottom: 12px;
    display: block;
}
.catalog-pdf-title {
    color: #1d1c1e;
    font-family: 'scaniasanscy-bold';
    font-weight: 400;
    font-size: 18.6875px;
    line-height: 1.35;
    margin-bottom: 20px;
    text-align: left;
}
.catalog-pdf-download {
    margin-top: auto;
}

/* ======================= Responsive Breakpoints ======================= */

/* Tablet and below: 2 columns */
@media (max-width: 900px) {
    .catalog-pdfs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile: 2 columns + spacing fixes */
@media (max-width: 767px) {
    .catalog-pdfs-grid {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 12px;
        column-gap: 6px;
        margin-top: 0;
    }

    .catalog-pdf-card {
        padding: 8px;
    }

    .catalog-pdf-image {
        height: auto;
        max-height: 240px;
        margin-bottom: 8px;
    }

    /* Mobile wipe effect adjustment - also excludes button */
    .catalog-pdf-card a[target="_blank"]:not(.txt-button-nb)::before {
        width: 30%;
        transition: left 0.4s ease-in-out;
    }

    .catalog-pdf-title {
        font-size: 12.6875px;
        margin-bottom: 10px;
    }

    .catalog-tab {
        padding: 8px 10px !important;
        font-size: 12px !important;
        line-height: 1.1 !important;
        min-width: 0 !important;
    }

    .catalog-section {
        margin-bottom: 30px;
    }

    .catalog-section-title {
        margin-bottom: 20px;
        font-size: 20px;
    }
}

.custom-banner-section {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}
.custom-banner-image {
    object-fit: cover;
    width: 100%;
    height: 100%;
    display: block;
}
.custom-banner-overlay {
    position: absolute;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.4); /* 0.4 = 40% opacity, adjust as needed */
    z-index: 2;
    pointer-events: none;
}
.custom-banner-content {
    position: absolute;
    left: 0; top: 0;
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    pointer-events: none;
}
.custom-banner-inner {
    max-width: 1500px;
    width: 100%;
    margin: 0 auto;
    padding-left: 30px;
    padding-right: 30px;
    pointer-events: auto;
}
.custom-banner-text {
    text-align: left;
    color: white;
    font-family: scaniasanscyh-b, sans-serif;
    font-size: 40px;
    /* optional: add text-shadow for extra contrast */
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

@media (max-width: 767px) {
    .custom-banner-section {
        height: 180px;
    }
    .custom-banner-image {
        height: 180px;
    }
    .custom-banner-content {
        height: 180px;
    }
    .custom-banner-text {
        font-size: 24px;
    }
}

.acf-content ul {
  list-style: none;
  padding-left: 0;
}
.acf-content ul li {
  position: relative;
  padding-left: 35px;
	font-family: 'scaniasanscy-regular';
	font-weight: normal;
	font-size: 18px;
	line-height: 1.75em;
		
}

.acf-content ul li:before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px; /* Push bullet down to align better with text */
  transform: none;
  width: 20px;
  height: 20px;
  background-image: url('https://pedlex.pixoverstudios.com/wp-content/uploads/2025/08/bullet.svg');
  background-repeat: no-repeat;
  background-size: contain;
}

@media (max-width: 768px) {
  .acf-content ul li {
    font-size: 13px;  /* Set text size to 13px on mobile */
  }
  .acf-content ul li:before {
    top: 3px;         /* Adjust bullet position on mobile for smaller text */
  }
  .acf-content ul li:before {
    width: 14px;      /* Smaller bullet on mobile */
    height: 14px;
    left: 0;
		top: 6px;
  }
  .acf-content ul li {
    padding-left: 25px;  /* Less space between bullet and text */
  }
}


/* Base styles */
.acf-gallery-grid {
    display: grid;
    gap: 4px;
    width: 100%;
}

/* Dynamic column layouts based on image count */
.acf-gallery-grid--1-cols {
    grid-template-columns: 1fr;
}

.acf-gallery-grid--2-cols {
    grid-template-columns: repeat(2, 1fr);
}

.acf-gallery-grid--3-cols {
    grid-template-columns: repeat(3, 1fr);
}

.acf-gallery-grid--4-cols {
    grid-template-columns: repeat(4, 1fr);
}

/* Optional: cap max columns to 4 for larger galleries */
.acf-gallery-grid--5-cols,
.acf-gallery-grid--6-cols,
.acf-gallery-grid--7-cols,
.acf-gallery-grid--8-cols,
.acf-gallery-grid--9-cols {
    grid-template-columns: repeat(4, 1fr);
}

/* Responsive overrides — only applied if column count > screen space */
@media (max-width: 1024px) {
    .acf-gallery-grid--4-cols,
    .acf-gallery-grid--5-cols,
    .acf-gallery-grid--6-cols,
    .acf-gallery-grid--7-cols,
    .acf-gallery-grid--8-cols,
    .acf-gallery-grid--9-cols {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .acf-gallery-grid--3-cols,
    .acf-gallery-grid--4-cols,
    .acf-gallery-grid--5-cols,
    .acf-gallery-grid--6-cols,
    .acf-gallery-grid--7-cols,
    .acf-gallery-grid--8-cols,
    .acf-gallery-grid--9-cols {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .acf-gallery-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Image container styling */
.acf-gallery-grid .gallery-item {
    aspect-ratio: 1 / 1;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.acf-gallery-grid .gallery-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


.case-temp-row.is-empty {
  display: none !important;
}


/* ===== INDUSTRY GRID ===== */
.pedlex-industry-grid {
  display: grid;
  gap: 32px;
}
.pedlex-industry-grid.columns-2 { grid-template-columns: repeat(2, 1fr); }
.pedlex-industry-grid.columns-3 { grid-template-columns: repeat(3, 1fr); }
.pedlex-industry-grid.columns-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
  .pedlex-industry-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 24px; }
}
@media (max-width: 640px) {
  .pedlex-industry-grid { grid-template-columns: 1fr !important; gap: 18px; }
}

/* ===== INDUSTRY GRID ===== */
.pedlex-industry-grid {
  display: grid;
  gap: 32px;
}
.pedlex-industry-grid.columns-2 { grid-template-columns: repeat(2, 1fr); }
.pedlex-industry-grid.columns-3 { grid-template-columns: repeat(3, 1fr); }
.pedlex-industry-grid.columns-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
  .pedlex-industry-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 24px; }
}
@media (max-width: 640px) {
  .pedlex-industry-grid { grid-template-columns: 1fr !important; gap: 18px; }
}

/* ===== INDUSTRY CARD ===== */
.pedlex-industry-grid .industry-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 0.77px solid #cecece;
  padding-top: 50px;
  padding-bottom: 50px;
  padding-left: 60px;
  padding-right: 70px;
  background: #fff;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  height: 100%;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}
.pedlex-industry-grid .industry-card:hover,
.pedlex-industry-grid .industry-card:focus-visible,
.pedlex-industry-grid .industry-card:active {
  box-shadow: 0 10px 28px rgba(0,0,0,.08);
  border-color: transparent;
}

/* Hover background + overlay (hardcoded image) */
.pedlex-industry-grid .industry-card::before,
.pedlex-industry-grid .industry-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  transition: opacity .35s ease;
}
.pedlex-industry-grid .industry-card::before {
  background: url(/wp-content/uploads/2025/08/icon-tab-bg.jpg) center / cover no-repeat; /* update path */
}
.pedlex-industry-grid .industry-card::after {
  background: rgba(15, 58, 95, 0.76);
}

/* Show bg/overlay on hover, focus, or touch (active) */
.pedlex-industry-grid .industry-card:hover::before,
.pedlex-industry-grid .industry-card:hover::after,
.pedlex-industry-grid .industry-card:focus-visible::before,
.pedlex-industry-grid .industry-card:focus-visible::after,
.pedlex-industry-grid .industry-card:active::before,
.pedlex-industry-grid .industry-card:active::after {
  opacity: 1 !important;
}

/* Content above overlays */
.pedlex-industry-grid .industry-card__icon,
.pedlex-industry-grid .industry-card__title,
.pedlex-industry-grid .industry-card__desc {
  position: relative;
  z-index: 1;
  transition: color .25s ease, filter .25s ease;
}

/* Icon */
.pedlex-industry-grid .industry-card__icon { margin-bottom: 30px; }
.pedlex-industry-grid .industry-card__icon img {
  width: 62px;
  height: auto;
  display: block;
  transition: filter .25s ease;
}

/* Title */
.pedlex-industry-grid .industry-card__title {
  margin: 0 0 32px;
  font-family: 'scaniasanscyh-b', sans-serif;
  font-weight: bold;
  font-size: 22px;
  letter-spacing: .02em;
  text-transform: uppercase;
  line-height: 1.2;
  color: #0D1B2A;
  transition: color .25s ease;
}

/* Description */
.pedlex-industry-grid .industry-card__desc {
  font-family: 'scaniasanscy-regular';
  font-weight: normal;
  font-size: 18px;
  color: #3f464c;
  line-height: 1.75em;
  transition: color .25s ease;
}

/* Flip to white on hover/focus/active */
.pedlex-industry-grid .industry-card:hover .industry-card__title,
.pedlex-industry-grid .industry-card:hover .industry-card__desc,
.pedlex-industry-grid .industry-card:focus-visible .industry-card__title,
.pedlex-industry-grid .industry-card:focus-visible .industry-card__desc,
.pedlex-industry-grid .industry-card:active .industry-card__title,
.pedlex-industry-grid .industry-card:active .industry-card__desc {
  color: #fff !important;
}
.pedlex-industry-grid .industry-card:hover .industry-card__icon img,
.pedlex-industry-grid .industry-card:focus-visible .industry-card__icon img,
.pedlex-industry-grid .industry-card:active .industry-card__icon img {
  filter: invert(1) brightness(3) !important;
}

/* ===== Tablet tweaks ===== */
@media (max-width: 1024px) {
  .pedlex-industry-grid .industry-card { padding: 40px; }
  .pedlex-industry-grid .industry-card__icon img { width: 56px; }
  .pedlex-industry-grid .industry-card__title { font-size: 20px; margin-bottom: 24px; }
  .pedlex-industry-grid .industry-card__desc { font-size: 16px; line-height: 1.7em; }
}

/* ===== Mobile tweaks ===== */
@media (max-width: 640px) {
  .pedlex-industry-grid .industry-card { padding: 24px; }
  .pedlex-industry-grid .industry-card__icon img { width: 48px; }
  .pedlex-industry-grid .industry-card__title { font-size: 18px; margin-bottom: 18px; }
  .pedlex-industry-grid .industry-card__desc { font-size: 15px; line-height: 1.7em; }
}

/* ===== CTA CARD ===== */
.pedlex-industry-grid .industry-card--cta {
  background: #1c3a5c;
  border-color: #1c3a5c;
}
/* Left-align + vertically center CTA content */
.pedlex-industry-grid .industry-card--cta .industry-card__inner {
  display: flex;
  flex-direction: column;
  justify-content: center;   /* vertical center */
  align-items: flex-start;   /* left align */
  min-height: 100%;
  text-align: left;
}
.pedlex-industry-grid .industry-card--cta .industry-card__icon { display: none; }

/* CTA text is white by default */
.pedlex-industry-grid .industry-card--cta .industry-card__title,
.pedlex-industry-grid .industry-card--cta .industry-card__desc {
  color: #fff !important;
}

/* Larger CTA title (optional) */
.pedlex-industry-grid .industry-card__title--cta {
  font-size: 36px;
}

/* Arrow under the title */
.pedlex-industry-grid .industry-card__arrow {
  display: inline-block;
  margin-top: -10px;
  position: relative;
  z-index: 2; /* keep above overlays */
}
.pedlex-industry-grid .industry-card__arrow img {
  width: 16px;
  height: auto;
  display: block;
  transform: translateX(0);
  transition: transform 1.2s ease, opacity .2s ease; /* slow both directions */
  filter: none !important;
  opacity: 1 !important;
  position: relative;
  z-index: 2;
}

.pedlex-industry-grid .industry-card--cta:hover .industry-card__arrow img,
.pedlex-industry-grid .industry-card--cta:active .industry-card__arrow img,
.pedlex-industry-grid .industry-card--cta:focus-visible .industry-card__arrow img {
  transform: translateX(16px); /* further to the right */
}



/* Keep hover overlay behavior from the rest on CTA */
.pedlex-industry-grid .industry-card--cta:hover::before,
.pedlex-industry-grid .industry-card--cta:hover::after,
.pedlex-industry-grid .industry-card--cta:active::before,
.pedlex-industry-grid .industry-card--cta:active::after,
.pedlex-industry-grid .industry-card--cta:focus-visible::before,
.pedlex-industry-grid .industry-card--cta:focus-visible::after {
  opacity: 1 !important;
}

/* Final guards so arrow never disappears under any global rules */
.pedlex-industry-grid .industry-card:hover .industry-card__arrow img,
.pedlex-industry-grid .industry-card:focus-visible .industry-card__arrow img,
.pedlex-industry-grid .industry-card:active .industry-card__arrow img {
  filter: none !important;
  opacity: 1 !important;
}
.pedlex-industry-grid .industry-card--cta:hover img {
  opacity: 1 !important; /* ignore any global img hover fades */
}
/* ===== Testimonials Page ===== */

/* Full-width section backgrounds */
.t-section.t-bg-white { background-color: #ffffff; }
.t-section.t-bg-alt   { background-color: #eeeff2; }

/* Section spacing */
.t-section {
  padding-top: 90px;
  padding-bottom: 90px;
}

/* Centered row, max 1500px */
.t-row {
  max-width: 1500px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  background: none; /* ensure no inner background */
}

/* Columns */
.t-col { width: 100%; }

/* Always add left padding to the right-hand column (video or text) */
.t-row > .t-col:last-child {
  padding-left: 30px;
}

/* ===== Left column (video + text) ===== */
.t-col--media .t-title {
  margin-top: 20px;
  font-family: 'scaniasanscyh-b';
  font-weight: normal;
  font-size: 22px !important;
  padding-left: 30px; /* indent title */
}

.t-col--media .t-short {
  margin-top: 20px; /* increased space from title */
  font-family: 'scaniasanscy-regular';
  font-weight: normal;
  font-size: 18px;
  color: #3f464c;
  line-height: 1.75em;
  padding-left: 30px; /* indent short description */
}

.t-col--media .txt-button {
  margin-top: -10px; /* reduced space from short description */
  display: inline-block;
  margin-left: 30px; /* indent button */
}

/* ===== Right column (quote icon + WYSIWYG) ===== */
.t-quote-icon {
  display: block;
  width: 40px;
  height: auto;
  margin-bottom: 20px;
}

/* Control WYSIWYG typography here */
.t-col--text .t-body p {
  font-family: 'scaniasanscy-regular';
  font-weight: normal;
  font-size: 18px;
  color: #3f464c;
  margin: 0 0 16px;
}
.t-col--text .t-body h1,
.t-col--text .t-body h2,
.t-col--text .t-body h3,
.t-col--text .t-body h4,
.t-col--text .t-body h5,
.t-col--text .t-body h6 {
  font-size: 23px;
  line-height: 1.4;
  font-weight: 700;
  color: #111;
  margin: 20px 0 12px;
}

.t-body img { max-width: 100%; height: auto; }

/* ===== Mobile stack ===== */
@media (max-width: 767px) {
  .t-section {
    padding-top: 30px;
    padding-bottom: 30px;
    padding-left: 20px;   /* added */
    padding-right: 20px;  /* added */
  }

  .t-row {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  /* Always show video section first on mobile */
  .t-col--media {
    order: 1;
  }
  .t-col--text {
    order: 2;
  }

  .t-quote-icon {
    width: 30px;
    margin-bottom: 15px;
  }

  .t-row > .t-col:last-child {
    padding-left: 0;
  }

  .t-col--media .t-title,
  .t-col--media .t-short {
    padding-left: 0;
  }
  .t-col--media .txt-button {
    margin-left: 0;
  }

  .t-col--media .t-title { font-size: 20px; }
  .t-col--media .t-short,
  .t-col--text .t-body p { font-size: 14px; line-height: 1.6; }
  .t-col--text .t-body h1,
  .t-col--text .t-body h2,
  .t-col--text .t-body h3,
  .t-col--text .t-body h4,
  .t-col--text .t-body h5,
  .t-col--text .t-body h6 { font-size: 14px; }
}


/* ===== Google Reviews Section ===== */
.google-reviews-section {
  border-top: 1px solid #cecece;
  padding: 90px 0;
  background: #fff;
}
.gr-container {
  max-width: 1500px;
  margin: 0 auto;
  position: relative;
  padding: 0 90px; /* Updated: Increased from 20px to give space for arrows */
}
.gr-title {
  text-align: center;
  font-size: 42px;
  font-family: 'scaniasanscyh-b', sans-serif;
  font-weight: normal;
  letter-spacing: 1px;
  margin: 0 0 60px;
}

/* ===== Carousel equal heights ===== */
.google-reviews-owl .owl-stage { display: flex !important; align-items: stretch !important; }
.google-reviews-owl .owl-item  { display: flex !important; height: auto !important; flex: 0 0 auto !important; min-width: 0; }
.google-reviews-owl .gr-card   { display: flex; flex-direction: column; height: 100%; min-height: 360px; width: 100%; flex: 1 1 auto; min-width: 0; }

/* ===== Card ===== */
.google-reviews-owl .gr-card {
  position: relative;
  border: 1px solid #dcdfe3;
  background: #fff;
  padding: 50px 30px;
}

/* Google logo (top-right) */
.google-reviews-owl .gr-card .gr-google-logo {
  position: absolute !important;
  top: 20px !important;
  right: 46px !important;
  width: 22px !important;
  height: auto !important;
  max-width: 24px !important;
  z-index: 2 !important;
  pointer-events: none;
}

/* Header (avatar + name + stars) */
.gr-header { display: grid; grid-template-columns: 72px 1fr; gap: 18px; align-items: center; margin-bottom: 18px; }
.gr-avatar { width: 72px; height: 72px; border-radius: 50%; background: #2f5091; color: #fff; font-family: 'scaniasanscyh-b', sans-serif; font-size: 22px; line-height: 72px; text-align: center; }
.gr-meta { display: flex; flex-direction: column; }
.gr-name { font-family: 'scaniasanscy-bold', sans-serif !important; font-size: 16px; margin-bottom: 6px; color: #0a1b33; }

/* Stars */
.gr-stars img { width: 80px !important; height: auto; display: block; }

/* Body with scroll for long reviews */
.gr-body { margin-top: 10px; }
.gr-text {
  max-height: 220px;
  overflow-y: auto;
  padding-right: 6px;
  line-height: 1.8;
  color: #2a2f36;
  font-family: 'scaniasanscy-regular', sans-serif;
  font-size: 18px;
}
/* Scrollbar styling */
.gr-text::-webkit-scrollbar { width: 6px; }
.gr-text::-webkit-scrollbar-track { background: #eef0f2; }
.gr-text::-webkit-scrollbar-thumb { background: #1c3a5c; }

/* Optional: Add hover state */
.gr-text::-webkit-scrollbar-thumb:hover { 
  background: #234f96; /* Darker blue on hover */
}

/* ===== Owl visibility & nav positioning ===== */
.google-reviews-owl { position: relative; overflow: visible; }
.google-reviews-owl .owl-stage-outer { 
  overflow: hidden !important;
  padding: 0 20px; /* Updated: Reduced from 32px to give more card space */
}
.google-reviews-owl .owl-stage { 
  margin: 0 -20px; /* Updated: Match the outer padding */
}

.google-reviews-owl .owl-nav {
  position: absolute;
  top: 44%;
  left: -80px;    /* Updated: Increased from -48px to move arrows further out */
  right: -80px;   /* Updated: Increased from -48px to move arrows further out */
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  z-index: 20;
}

/* Default Owl arrows (text inside the buttons) */
.google-reviews-owl .owl-nav button.owl-prev,
.google-reviews-owl .owl-nav button.owl-next {
	
  font-family: 'scaniasanscy-regular', sans-serif !important; /* Force consistent font */
  background: transparent !important;
  border: none !important;
  color: #234f96 !important;
  width: 66px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  font-size: 64px;
  line-height: 1;
  padding: 0;
}
.google-reviews-owl .owl-nav button span { display: block; line-height: 1; }

/* ===== Dots ===== */
.owl-theme .owl-dots { display: flex; justify-content: center; gap: 1px; margin-top: 28px; }
.owl-theme .owl-dots .owl-dot span { width: 15px; height: 15px; background: #c4c9cc; border-radius: 50%; display: block; transition: background 0.3s ease; margin: 0 !important; }
.owl-theme .owl-dots .owl-dot.active span,
.owl-theme .owl-dots .owl-dot:hover span { background: #2f5091; }

/* ===== Responsive ===== */
@media (max-width: 1200px) {
  .gr-container {
    padding: 0 100px; /* Slightly less padding on smaller screens */
  }
  .google-reviews-owl .owl-nav { 
    left: -70px; 
    right: -70px; 
  }
}

@media (max-width: 1024px) {
  .gr-title { font-size: 34px; }
  .gr-container {
    padding: 0 80px;
  }
  .google-reviews-owl .owl-nav { 
    left: -60px; 
    right: -60px; 
  }
}

@media (max-width: 768px) {
  .google-reviews-section {
    padding: 60px 0; /* Reduced from 90px 0 */
  }
  
  .gr-title { font-size: 26px; }
  .gr-header { grid-template-columns: 58px 1fr; gap: 14px; }
  .gr-avatar { width: 58px; height: 58px; line-height: 58px; font-size: 22px; }
  .gr-text { max-height: 200px; font-size: 16px; }
  
  .gr-container {
    padding: 0 20px; /* Reduced padding since no arrows needed */
  }
  
  /* HIDE navigation arrows on mobile */
  .google-reviews-owl .owl-nav { 
    display: none !important;
  }
  
  /* SMALLER bullets on mobile */
  .owl-theme .owl-dots .owl-dot span { 
    width: 14px !important;  /* Reduced from 15px */
    height: 14px !important; /* Reduced from 15px */
  }
  
  /* Center and adjust dots spacing and margin */
  .owl-theme .owl-dots { 
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    margin-top: 20px; /* Reduced from 28px */
    gap: 2px; /* Slightly more gap between smaller dots */
  }
}

@media (max-width: 480px) {
  .google-reviews-section {
    padding: 40px 0; /* Further reduced for very small screens */
  }
  
  .gr-container {
    padding: 0 15px; /* Even less padding on very small screens */
  }
  
  /* Keep arrows hidden */
  .google-reviews-owl .owl-nav { 
    display: none !important;
  }
  
  /* Even smaller bullets on very small screens */
  .owl-theme .owl-dots .owl-dot span { 
    width: 12px !important;   /* Even smaller */
    height: 12px !important;  /* Even smaller */
  }
  
  /* Keep bullets centered */
  .owl-theme .owl-dots { 
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    margin-top: 16px; /* Less margin */
    gap: 2px;
  }
}

/* CASE STUDY GRID LAYOUT */
#case-study-grid.case-study-grid,
#case-study-grid-3.case-study-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 32px;
}

@media (max-width: 1100px) {
  #case-study-grid.case-study-grid,
  #case-study-grid-3.case-study-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* MOBILE: 2 columns on ≤700px, 1 column on ≤400px */
@media (max-width: 700px) {
  #case-study-grid.case-study-grid,
  #case-study-grid-3.case-study-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
}

@media (max-width: 400px) {
  #case-study-grid.case-study-grid,
  #case-study-grid-3.case-study-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* GRID ITEM */
.case-study-grid .case-study-item {
  transition: transform 0.18s;
  min-height: 355px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* On MOBILE, use flex column so image and title stack naturally */
@media (max-width: 700px) {
  .case-study-grid .case-study-item {
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: auto;
    padding: 0;
  }
}

@media (max-width: 400px) {
  .case-study-grid .case-study-item {
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: auto;
    padding: 0;
  }
}

/* IMAGE CONTAINER */
.image-container {
  position: relative;
  width: 100%;
  height: 495px;
  overflow: hidden;
}

/* MOBILE: Force equal height for every image area! */
@media (max-width: 700px) {
  .image-container {
    width: 100%;
    height: 42vw;
    /* 42% of viewport width = 2 squares fit side-by-side */
    min-height: 200px;
    /* Don't let images get too small */
    max-height: 250px;
    /* Don't let images get too tall */
  }
}

@media (max-width: 400px) {
  .image-container {
    width: 100%;
    height: 65vw;
    /* More portrait, fits 1 column, still all same height */
    min-height: 85px;
    max-height: 160px;
  }
}

/* IMAGE & LOGO - Full height image */
.case-study-main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #e6eef7;
}

/* FULL IMAGE OVERLAY - Covers the entire image area */
.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(28, 58, 92, 0.85);
  z-index: 2;
  pointer-events: none;
}

/* LOGO OVERLAY */
.case-study-logo-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 250px;
  max-width: 60%;
  max-height: 110px;
  transform: translate(-50%, -50%);
  border-radius: 10px;
  padding: 16px;
  z-index: 3;
  object-fit: contain;
}

/* --- Responsive Logo --- */
@media (max-width: 700px) {
  .case-study-logo-overlay {
    width: 90px;
    max-width: 80%;
    max-height: 90px;
    padding: 8px;
  }
}

@media (max-width: 400px) {
  .case-study-logo-overlay {
    width: 95px;
    max-height: 65px;
    padding: 7px;
  }
}

/* TITLE - Always visible under image */
.case-study-title {
  text-align: left;
  padding: 15px 24px 15px 24px;
  font-weight: 400;
  background: transparent !important;
  margin: 0;
  font-family: "scaniasanscyh-b";
  color: #000000;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  letter-spacing: 0.01em;
  min-height: 36px;
  flex: none;
}

.case-study-title-link {
  color: #000000;
  text-decoration: none;
  transition: color 0.2s;
  display: inline-block;
  width: 100%;
}

.case-study-title-link:hover {
  color: #1c3a5c;
}

/* Changes title color when the WHOLE card is hovered or focused */
.case-study-item:hover .case-study-title-link,
.case-study-item:focus-within .case-study-title-link {
  color: #1c3a5c;
}

/* --- Responsive Title --- */
@media (max-width: 700px) {
  .case-study-title {
    padding: 12px 12px 15px 12px;
    font-size: 13px;
    min-height: 33px;
  }
}

@media (max-width: 400px) {
  .case-study-title {
    padding: 14px 8px 12px 8px;
    font-size: 0.96em;
    min-height: 22px;
  }
}

/* FILTER BAR */
.case-study-filters-bar {
  display: flex;
  align-items: center;
  justify-content: flex-start; /* keep label left */
  margin-bottom: 28px;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 0.5em;
}

.filters-label {
  font-weight: 600;
  color: #1a2945;
  min-width: 115px;
  font-size: 18px;
}

.filters-controls {
  display: flex;
  flex-wrap: nowrap;
  gap: 24px;                     /* spacing between filters */
  margin-left: auto;             /* push controls to the right */
  align-items: stretch;
}

/* --- CUSTOM DROPDOWN (native select fallback) --- */
.custom-select-wrapper {
  position: relative;
  display: inline-block;
  width: auto;                   /* content-sized on desktop */
  max-width: 100%;
  flex: 0 0 auto;
}

.custom-filter-dropdown {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  outline: none;
  border: 1.5px solid #0f3a5f;
  background: #f9fbfc;
  width: 100%;
  padding: 36px 65px 20px 33px;  /* big desktop padding */
  font-size: 16px;
  font-weight: 500;
  color: #0f3a5f;
  cursor: pointer;
  min-width: 200px;
}

.custom-filter-dropdown:focus,
.custom-filter-dropdown:hover {
  border-color: #2895d5;
  box-shadow: 0 4px 18px rgba(32,119,176,0.1);
  background: #f3f8fd;
  color: #1e3357;
}

.custom-filter-dropdown::-ms-expand { display: none; }

.custom-select-arrow {
  pointer-events: none;
  position: absolute;
  top: 0;
  right: 22px;
  bottom: 0;
  width: 26px;
  height: 100%;
  display: flex;
  align-items: center;
  z-index: 4;
  background: transparent;
  background-image: url("/wp-content/uploads/2025/08/filter-icon.svg");
  background-repeat: no-repeat;
  background-position: center right;
  background-size: 12px 12px;
}

/* ===== Select2 base ===== */
.select2-container { max-width: 100%; }

.select2-container--default .select2-selection--single {
  box-sizing: border-box;
  height: 70px !important;       /* desktop height */
  border: 1.5px solid #0f3a5f !important;
  border-radius: 0;
  font-size: 16px;
  line-height: 1.2;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  margin: 0;
  padding: 0 44px 0 14px;        /* room for arrow */
  line-height: 70px;             /* vertical-center */
  font-size: 18px !important;
  color: #0f3a5f !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 70px;
  right: 10px;
}

/* Dropdown panel */
.select2-dropdown {
  border: 1px solid #ccc;
  background-color: #fff;
  padding: 0;
  font-size: 18px;
  color: #444;
  line-height: 28px;
  border-radius: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
	margin-top: 30px;
}

/* Results list: show all options, no scroll */
.select2-container--default .select2-results__options {
  max-height: none !important;
  overflow-y: visible !important;
  height: auto !important;
}

.select2-results__option {
  padding: 12px;
  margin: 0;
  background-color: transparent !important;
  color: inherit !important;
  border-bottom: 1.5px solid #0f3a5f;
}
.select2-results__option:last-child { border-bottom: none; }

/* Hover/keyboard highlight */
.select2-results__option--highlighted {
  background-color: #0f3a5f !important;
  color: #fff !important;
}

/* Hide the search box in dropdown for single select */
.select2-search--dropdown { display: none !important; }

/* If you had a custom arrow element elsewhere, hide it */
.custom-select-arrow { display: none !important; }

/* ===== Mobile: keep side-by-side, just smaller ===== */
@media (max-width: 767px) {
  .filters-controls {
    flex-direction: row;        /* stay side by side */
    gap: 10px;
    width: 100%;
  }
	
	.case-study-filters-bar {
  display: flex;
  align-items: center;
  justify-content: center; /* keep label left */

}

.filters-label {
  font-size: 16px;
}

  .custom-select-wrapper {
    width: 50%;                 /* two per row */
    min-width: 0;
  }

  /* Make Select2 fill each half */
  .filters-controls .select2-container {
    width: 100% !important;
    display: block !important;
  }

  /* Smaller field sizes on mobile */
  .select2-container--default .select2-selection--single {
    height: 50px !important;
  }
  .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 50px;
    font-size: 14px !important;
    padding: 0 30px 0 10px;
  }
  .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 50px;
    right: 8px;
  }

  /* If native select shows anywhere, shrink it too */
  .custom-filter-dropdown {
    font-size: 14px;
    padding: 12px 36px 12px 12px !important;
    min-width: 0;
  }
}

/* Tiny phones tweaks */
@media (max-width: 400px) {
  .filters-controls { gap: 8px; }
  .select2-container--default .select2-selection--single .select2-selection__rendered {
    font-size: 13px !important;
  }
  .custom-select-arrow { right: 11px; }
}

/* Menu font tweak (optional) */
.nav-dropdown.nav-dropdown-default > li > a { font-size: 16px; }


.case-tabs-nav {
  display: flex;
  width: 100%;
  justify-content: center;
  gap: 67px; /* 4.188rem ≈ 67px */
  border-bottom: 1px solid #ccc;

  /* 👇 Sticky under Flatsome header */
  position: sticky;
  top: var(--case-sticky-top, 0px); /* set by JS (admin bar + .header-wrapper.stuck) */
  z-index: 900;                     /* lower than mega menu */
  background: #fff;                 /* ensure white background when stuck */
}

/* Optional: subtle shadow when actually pinned (JS toggles .is-sticking) */
.case-tabs-nav.is-sticking {
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
}

.case-tabs-nav a {
  background: transparent;
  border: none;
  cursor: pointer;
  color: #555;
  border-bottom: 5px solid transparent; /* 0.313rem ≈ 5px */
  transition: color 0.3s, border-color 0.3s;
  opacity: 0.8;
  font-size: 16px; /* 1.2rem ≈ 19px */
  font-family: 'scaniasanscy-bold', sans-serif;
  text-transform: capitalize;
  margin: 0;
  padding: 30px 14px 25px; /* 2.438rem 0.875rem 2.25rem */
}

.case-tabs-nav a:hover,
.case-tabs-nav a.active {
  border-bottom: 5px solid #0f3a5f;
  color: #0f3a5f;
  opacity: 1;
}

/* Mobile & small tablets */
@media (max-width: 767px) {
  .case-tabs-nav {
    width: 100%;
    gap: 3px; /* 0.188rem ≈ 3px */
    flex-wrap: wrap; /* allow wrapping if needed */
  }

  .case-tabs-nav a {
    font-size: 14px !important; /* 0.9rem ≈ 14px */
    padding: 24px 6px 18px;
  }

  /* Adjust Select2 dropdown font size */
  .select2-container .select2-dropdown,
  .select2-dropdown {
    font-size: 14px;
    line-height: normal;
  }
}

.case-tabs-nav a.active {
  opacity: 0;
  transition: opacity 0.1s;
}

.case-tabs-nav.js-loaded a.active {
  opacity: 1;
}


/* Remove background color, white outline only */
.sub-col #input_6_1 {
    background-color: transparent;
    border: 1px solid white !important;
}

/* White placeholder text */
.sub-col #input_6_1::placeholder {
    color: white !important;
    opacity: 1 !important;
	font-family: 'scaniasanscy-regular', sans-serif !important;
}

.sub-col #input_6_1 {
    padding-left: 16px !important;
}

/* Submit button - left on desktop, center on mobile */
.sub-col #gform_submit_button_6 {
    display: block !important;
    width: auto !important;
    margin: 0 !important;
}

@media (max-width: 768px) {
    .sub-col #gform_submit_button_6 {
        margin: 0 auto !important;
    }
}

@media (max-width: 768px) {
    .sub-col .banner-inner {
        overflow: hidden;
        max-width: 100%;
    }
    
    .sub-col .banner-layers {
        max-width: 100%;
        overflow: hidden;
    }
}

/* Remove background color, white outline only */
.sub-col #input_7_1 {
    background-color: transparent;
    border: 1px solid white !important;
}

/* White placeholder text */
.sub-col #input_7_1::placeholder {
    color: white !important;
    opacity: 1 !important;
    font-family: 'scaniasanscy-regular', sans-serif !important;
}

.sub-col #input_7_1 {
    padding-left: 16px !important;
}

/* Submit button - left on desktop, center on mobile */
.sub-col #gform_submit_button_7 {
    display: block !important;
    width: auto !important;
    margin: 0 !important;
}

@media (max-width: 768px) {
    .sub-col #gform_submit_button_7 {
        margin: 0 auto !important;
    }
}

@media (max-width: 768px) {
    .sub-col .banner-inner {
        overflow: hidden;
        max-width: 100%;
    }
    
    .sub-col .banner-layers {
        max-width: 100%;
        overflow: hidden;
    }
}


/* Latest Posts Styles - No List Version */
.latest-posts-container {
    padding: 0;
    margin: 0;
}

.latest-post-item {
    margin-bottom: 20px;
    font-size: 18px;
    font-family: 'scaniasanscy-regular', sans-serif;
    display: flex;
    align-items: flex-start;
    padding: 0;
    margin-left: 0;
    margin-right: 0;
}

.post-arrow {
    display: inline-block;
    margin-right: 15px;
    margin-top: 15px;
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.post-content {
    flex: 1;
}

.post-link {
    color: #333;
    text-decoration: none;
    font-size: 18px;
    font-family: 'scaniasanscy-regular', sans-serif;
    display: inline;
}

.post-link:hover {
    color: #234f96;
}

.post-date {
    color: #333;
}

/* Tablet Responsive (768px and below) */
@media (max-width: 768px) {
    .latest-post-item {
        margin-bottom: 20px;
        font-size: 16px;
    }
    
    .post-link {
        font-size: 16px;
    }
    
    .post-arrow {
        width: 14px;
        height: 14px;
        margin-right: 12px;
        margin-top: 12px;
    }
}

/* Mobile Responsive (480px and below) */
@media (max-width: 480px) {
    .latest-post-item {
        margin-bottom: 20px;
        font-size: 14px;
    }
    
    .post-link {
        font-size: 14px;
    }
    
    .post-arrow {
        width: 12px;
        height: 12px;
        margin-right: 10px;
        margin-top: 10px;
    }
    
    .post-date {
        font-size: 13px;
    }
}

/* ========================================
   Latest News Layout Styles
   ======================================== */

.latest-news-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

/* Header */
.latest-news-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 15px;
}

.latest-news-title {
  font-size: 40px; /* was 2.5rem */
  color: #1a1a1a;
  margin: 0;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  font-family: 'scaniasanscyh-b', sans-serif;
  font-weight: normal;
}

.latest-news-filter { position: relative; }

/* Filter dropdown (single definition) */
.filter-dropdown {
  padding: 0;
  border: none;
  background: transparent;
  color: #1c3a5c;
  font-family: 'scaniasanscy-regular', sans-serif;
  font-size: 18px;
  cursor: pointer;
  transition: color 0.3s ease;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url('/wp-content/uploads/2025/08/filter-icon.svg');
  background-repeat: no-repeat;
  background-position: right center;
  background-size: 10px;
  padding-right: 14px;
  line-height: 1.834;
  max-width: 150px;
  width: auto;
  box-shadow: none;
  outline: none;
}
.filter-dropdown:hover,
.filter-dropdown:focus,
.filter-dropdown:active {
  background-color: transparent;
  color: #1c3a5c;
  box-shadow: none;
  outline: none;
}

/* Loading Overlay */
.latest-news-loading-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.8);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #4a90e2;
  animation: spin 1s linear infinite;
}

@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* Loading State */
.loading-dimmed {
  opacity: 0.5;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.transition-ready {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Posts Wrapper */
.posts-wrapper { margin-bottom: 40px; }

/* Featured Post */
.featured-post {
  margin-bottom: 40px;
  overflow: hidden;
  transition: transform 0.3s ease;
}
.featured-post-image {
  position: relative;
  aspect-ratio: 16 / 9; /* more stable than fixed px height */
  overflow: hidden;
  background: #1c3a5c;
}
.featured-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.featured-post-overlay { display: none; }

.featured-post-content {
  padding: 25px 0;
  background: #fff;
}

.featured-post-title {
  font-family: 'scaniasanscyh-b', sans-serif;
  font-size: 26px;
  font-weight: 400;
  margin: 0 0 20px 0;
  line-height: 1.346;
}

.featured-post-title a {
  color: #1d1c1e !important;
}

.featured-post-title a:hover {
  color: #4a90e2 !important;
}
.featured-post-excerpt {
  font-family: 'scaniasanscy-regular', sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: #1d1c1e;
  margin-bottom: 20px;
}

/* Grid Posts */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 20px;
}

.grid-post {
  background: #fff;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.grid-post-image {
  aspect-ratio: 16 / 9; /* more stable than fixed px height */
  overflow: hidden;
  background: #1c3a5c;
}
.grid-post-image a { display: block; height: 100%; }
.grid-post-image img {
  width: 100%;
  height: 100%;
}

.grid-post-content { padding: 25px 0; }

.grid-post-title {
  font-family: 'scaniasanscyh-b', sans-serif;
  margin: 0 0 15px 0;
  font-size: 18px; /* was 1.125rem */
  font-weight: 400;
}
.grid-post-title a {
  color: #1d1c1e;
  text-decoration: none;
  transition: color 0.3s ease;
}
.grid-post-title a:hover { color: #4a90e2; }

.grid-post-excerpt {
  font-family: 'scaniasanscy-regular', sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.834;
  color: #1d1c1e;
  margin-bottom: 20px;
}

/* Meta */
.post-meta {
  font-family: 'scaniasanscy-regular', sans-serif;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.834;
  color: #1d1c1e;
}
.post-category { color: #1d1c1e; font-weight: 400; }
.meta-divider { color: #1d1c1e; }
.post-date { color: #1d1c1e; }

/* Placeholder for missing images */
.no-image-placeholder {
  width: 100%;
  height: 100%;
  background: #1c3a5c;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 19px;
  font-weight: 600;
}

/* Pagination */
.pagination-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 40px;
  padding: 20px 0;
}

.pagination-btn {
  padding: 12px 18px;
  border: 1px solid #aaaaaa; /* was 0.063rem */
  background: #fff;
  color: #8c8c8c;
  cursor: pointer;
  font-weight: 600;
  font-size: 18px;
  transition: background-color 0.3s ease, color 0.3s ease;
  min-width: 58px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pagination-btn:hover {
  background-color: #1c3a5c;
  color: #fff;
}
.pagination-btn.active {
  background: #1c3a5c;
  border-color: #aaaaaa;
  color: #fff;
  cursor: default;
}
.pagination-btn.active:hover { transform: none; }

.pagination-ellipsis {
  color: #8c8c8c;
  padding: 12px 18px;
  font-weight: 600;
  font-size: 18px;
  width: 58px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #aaaaaa;
  background: #fff;
  margin-top: -18px;
  margin-right: 20px;
  vertical-align: middle;
}

.pagination-arrow {
  width: 20px;
  height: 20px;
  transition: filter 0.3s ease;
}
.prev-arrow { transform: rotate(180deg); }
.next-arrow { transform: rotate(0deg); }

.pagination-btn.prev-btn,
.pagination-btn.next-btn {
  border: none;
  background: transparent;
  padding: 0;
  min-width: auto;
  height: auto;
}
.pagination-btn.prev-btn:hover,
.pagination-btn.next-btn:hover { background: transparent; }
.pagination-btn:hover .pagination-arrow { filter: brightness(0.7); }

/* Responsive */
@media (max-width: 768px) {
  .latest-news-container { padding: 15px 0; }

  .latest-news-header {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
    text-align: center;
  }

  .latest-news-title { font-size: 32px; }
  .filter-dropdown {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  .featured-post-content,
  .grid-post-content { padding: 20px 0; }

  .featured-post-excerpt,
  .grid-post-excerpt {
    font-size: 16px;
    line-height: 1.6;
  }

  .posts-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .pagination-wrapper { flex-wrap: wrap; }
  .pagination-btn { padding: 10px 14px; min-width: 44px; height: 44px; }
}



@media (max-width: 480px) {
  .latest-news-title { font-size: 28px; }
  .featured-post-title { font-size: 21px; }

  .featured-post-excerpt,
  .grid-post-excerpt {
    font-size: 13px;
  }
}

/* Content appear animation */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.posts-wrapper { animation: fadeInUp 0.5s ease-out; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .loading-dimmed,
  .transition-ready,
  .featured-post,
  .grid-post,
  .featured-post-image img,
  .pagination-arrow,
  .posts-wrapper {
    transition: none !important;
    animation: none !important;
  }
}
/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .loading-dimmed,
  .transition-ready,
  .featured-post,
  .grid-post,
  .featured-post-image img,
  .pagination-arrow,
  .posts-wrapper {
    transition: none !important;
    animation: none !important;
  }
}

.news-carousel-block .grid-post-title {
  font-size: 26px;
  color: #2f5091;
	font-family: 'scaniasanscyh-b', sans-serif;
	line-height: 1.2;
	
}

.news-carousel-block .post-date {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 15px;
	color: #234f96;
	font-family: 'scaniasanscy-regular', sans-serif;
}

.news-carousel-block .owl-dots {
  margin-top: 15px;
}

.news-carousel-block .grid-post-content {
  padding-left: 20px;
  padding-right: 20px;
}

.news-carousel-block .owl-dots {
  margin-top: -15px !important; /* reduce from default */
}

.news-carousel-block .grid-post {
  margin-bottom: 0 !important; /* remove card’s bottom spacing */
	
}

/* Remove side whitespace in Flatsome dropdowns */
.nav-dropdown,
.sub-menu {
  padding: 0 !important;
  margin: 0 !important;            /* kill UL margins */
  border-radius: 0 !important;
}

.nav-dropdown > li,
.sub-menu > li {
  margin: 0 !important;            /* kill LI margins */
  padding: 0 !important;
}

.nav-dropdown > li > a,
.sub-menu > li > a {
  margin: 0 !important;            /* kill A side margins */
  border-radius: 0 !important;
  display: block;
  width: 100%;
  padding: 10px 15px;              /* your inner spacing */
  font-family: 'scaniasanscy-bold', sans-serif;
  font-size: 16px;
  font-weight: normal;
  color: #1c3a5c;
  background-color: #ffffff;
  border-bottom: 1px solid #ddd;
}

/* last item divider */
.nav-dropdown > li:last-child > a,
.sub-menu > li:last-child > a {
  border-bottom: none;
}

/* hover/active */
.nav-dropdown li:hover > a,
.nav-dropdown li.current-menu-item > a,
.sub-menu li:hover > a,
.sub-menu li.current-menu-item > a {
  background-color: #2f5091 !important;
  color: #ffffff !important;
}/* Top-level parents: replace Flatsome chevron with your SVG and flip on hover */
/* Hide default Flatsome arrow */
.header-nav > li.has-dropdown > a.nav-top-link i.icon-angle-down {
  display: none !important;
}

/* Parent menu items - allow space for arrow */
.header-nav > li.has-dropdown > a.nav-top-link {
  position: relative;
  padding-right: 22px; /* enough space for bigger arrow */
}

/* Custom arrow as pseudo-element */
.header-nav > li.has-dropdown > a.nav-top-link::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 14px; /* arrow width */
  height: 14px; /* arrow height */
  background-image: url('/wp-content/uploads/2025/08/filter-icon.svg');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  transform: translateY(-50%);
  transform-origin: 8px 8px; /* center of the 16px arrow */
  transition: transform 0.25s ease;
}

/* Flip arrow on hover - stays in same spot */
.header-nav > li.has-dropdown:hover > a.nav-top-link::after {
  transform: translateY(-50%) rotate(180deg);
}

/* Remove Flatsome's "current" style from hash links */
.sub-menu .menu-item-type-custom.current-menu-item a[href*="#"] {
    background-color: transparent !important;
    background-image: none !important;
    color: #1c3a5c !important; /* use normal menu color */
    font-weight: inherit !important;
}

/* Keep hover effect for hash links */
.sub-menu .menu-item-type-custom a[href*="#"]:hover {
    background-color: #2f5091 !important;
    color: #ffffff !important;
}



.entry-image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.entry-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: top !important; /* Show top of image */
}



/* ===========================
   Popup Container (stable)
   =========================== */
/* Keep it mounted (no display:none) so transitions can run on first click */
.popup-container {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;

    /* Hidden base state via opacity/visibility; block pointer interaction */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    /* Smooth fade; visibility switches in lockstep */
    transition: opacity 0.3s ease, visibility 0.3s step-end;
}

/* Open state */
.popup-container.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.3s ease, visibility 0s step-start;
}

/* ===========================
   Overlay (fixed to viewport)
   =========================== */
.popup-overlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
}

/* ===========================
   Scrollable wrapper
   =========================== */
.popup-scroll-wrapper {
    position: fixed; /* Change from absolute to fixed */
    inset: 0;
    overflow-y: auto;
    padding: 20px 0;
    display: flex;
    align-items: flex-start; /* Keep as flex-start */
    justify-content: center;
    z-index: 9999;
    padding-top: 10vh; /* Add some top padding so it's not at the very top */
}

@media (max-width: 768px) {
    .popup-scroll-wrapper { padding: 10px 0; }
}
@media (max-width: 480px) {
    .popup-scroll-wrapper { padding: 5px 0; }
}

/* ===========================
   Body lock (kept as-is)
   JS also applies position:fixed/top to prevent jump
   =========================== */
body.popup-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
}
/* ===========================
   Popup Content (panel)
   =========================== */
.popup-content {
    position: relative;
    background: #fff;
    border-radius: 5px;
    padding-top: 50px;
    max-width: 900px;
    width: 90%;
    margin: 20px auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 10000;

    /* Start slightly offset/shrunk; animate in when .active is added */
    transform: scale(0.9) translateY(30px);
    opacity: 0;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

/* Animate panel only when container is active */
.popup-container.active .popup-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* Mobile panel tweaks */
@media (max-width: 768px) {
    .popup-content {
        width: 95%;
        margin: 10px auto;
        padding-top: 40px;
        border-radius: 8px;
    }
}
@media (max-width: 480px) {
    .popup-content {
        width: 98%;
        margin: 5px auto;
        padding-top: 35px;
    }
}

/* ===========================
   Header
   =========================== */
.popup-header {
    margin-bottom: 30px;
    text-align: center;
}
.popup-header h2 {
    margin: 0;
    color: #333;
    font-family: 'scaniasanscyh-b', sans-serif;
    font-weight: normal;
    font-size: 36px;
}
@media (max-width: 768px) {
    .popup-header { margin-bottom: 20px; }
    .popup-header h2 { font-size: 28px; }
}
@media (max-width: 480px) {
    .popup-header { margin-bottom: 15px; }
    .popup-header h2 { font-size: 24px; }
}

/* ===========================
   Body
   =========================== */
.popup-body {
    color: #666;
    padding: 0 20px 0 20px;
}
@media (max-width: 768px) {
    .popup-body { padding: 0 15px 5px 15px; }
}
@media (max-width: 480px) {
    .popup-body { padding: 0 10px 5px 10px; }
}

/* ===========================
   Contact Form (CF7)
   =========================== */
.popup-contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border-radius: 8px;
}

.form-field { position: relative; }
.form-field--full { grid-column: 1 / -1; }

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 30px 20px;
    border: 1px solid #000000 !important;
    border-radius: 3px;
    font-size: 16px;
    font-family: 'scaniasanscy-regular', sans-serif;
    color: #666;
    background-color: #fff;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: #4a90e2;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: #000000 !important;
    font-family: 'scaniasanscy-regular', sans-serif;
}

/* Base select styles */
.form-field select {
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    padding-right: 50px;
}

/* CF7 select tweaks */
.popup-contact-form .wpcf7-form-control.wpcf7-select {
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
    padding: 18px 50px 22px 20px !important;
    min-height: 58px;
    line-height: normal !important;
    background-position: right 16px center;
    background-repeat: no-repeat;
    background-size: 16px;
    color: #666;
    overflow: visible;
}
.popup-contact-form .wpcf7-form-control.wpcf7-select:required:invalid { color: #9aa0a6; }
.popup-contact-form .wpcf7-form-control.wpcf7-select option[value=""][disabled] { display: block; color: #9aa0a6; }
.popup-contact-form .wpcf7-form-control.wpcf7-select option { color: #000; }

@supports selector(:has(*)) {
    .popup-contact-form .wpcf7-form-control.wpcf7-select:has(option:first-child:checked) {
        color: #000000;
    }
}

.form-field textarea {
    height: 120px;
    resize: vertical;
}

.form-field--checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 20px 0;
}
.form-field--checkbox input[type="checkbox"] {
    width: auto;
    min-width: 20px;
    height: 20px;
    margin: 0;
    cursor: pointer;
    accent-color: #4a90e2;
}
.form-field--checkbox label {
    color: #000000;
    font-size: 16px;
    font-family: 'scaniasanscy-regular', sans-serif;
    line-height: 1.4;
    cursor: pointer;
    flex: 1;
}

.form-field--submit {
    grid-column: 1 / -1;
    justify-self: center;
}
.form-field--submit input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'scaniasanscy-regular', sans-serif;
    font-weight: bold !important;
    font-size: 18px !important;
    letter-spacing: 0.16px !important;
    line-height: normal !important;
    padding: 24px 16px;
    border: 0 !important;
    border-radius: 0 !important;
    background-color: #234f96;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    position: relative;
    text-transform: capitalize !important;
}
.form-field--submit input[type="submit"]:hover {
    background-color: #234f96;
}

.field-error {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 5px;
    display: none;
}

/* Mobile form */
@media (max-width: 768px) {
    .popup-contact-form {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 15px;
    }
    .form-field input,
    .form-field select,
    .form-field textarea {
        padding: 20px 15px;
        font-size: 14px;
    }
    .popup-contact-form .wpcf7-form-control.wpcf7-select {
        padding: 15px 45px 18px 15px !important;
        min-height: 50px;
        font-size: 14px;
    }
    .form-field textarea { height: 100px; }
    .form-field--checkbox { margin: 15px 0; gap: 10px; }
    .form-field--checkbox label { font-size: 14px; }
    .form-field--submit input[type="submit"] {
        font-size: 16px !important;
        padding: 20px 14px;
        width: 100%;
    }
}
@media (max-width: 480px) {
    .popup-contact-form { gap: 12px; padding: 10px; }
    .form-field input,
    .form-field select,
    .form-field textarea {
        padding: 18px 12px;
        font-size: 14px;
    }
    .popup-contact-form .wpcf7-form-control.wpcf7-select {
        padding: 14px 40px 16px 12px !important;
        min-height: 48px;
        font-size: 14px;
        background-size: 14px;
        background-position: right 12px center;
    }
    .form-field textarea { height: 80px; }
    .form-field--checkbox { margin: 12px 0; gap: 8px; }
    .form-field--checkbox input[type="checkbox"] {
        min-width: 18px; height: 18px;
    }
    .form-field--checkbox label { font-size: 13px; }
    .form-field--submit input[type="submit"] {
        font-size: 15px !important;
        padding: 18px 12px;
        width: 100%;
    }
}

/* ===========================
   Close Button
   =========================== */
.popup-close-x {
    position: absolute;
    top: 1px;
    right: 20px;
    background: none;
    border: none;
    font-size: 30px;
    color: #000000;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.popup-close-x:hover { color: #333; }

@media (max-width: 768px) {
    .popup-close-x {
        top: -10px;
        right: 15px;
        font-size: 26px;
        width: 26px;
        height: 26px;
    }
}
@media (max-width: 480px) {
    .popup-close-x {
        top: -13px;
        right: 12px;
        font-size: 24px;
        width: 24px;
        height: 24px;
    }
}


/* Calendly-specific popup adjustments */
.calendly-popup .popup-content {
    max-width: 1200px;
    width: 95%;
    padding-top: 20px;
}

.calendly-popup .popup-body {
    padding: 0 10px 10px 10px;
}

/* Calendly widget container */
.calendly-inline-widget {
    border-radius: 5px;
    overflow: hidden;
    min-width: 320px;
    height: 800px; /* Adjust this value as needed */
}

/* Mobile responsive for Calendly */
@media (max-width: 768px) {
    .calendly-popup .popup-content {
        width: 98%;
        max-width: none;
    }
    
    .calendly-popup .popup-body {
        padding: 0 5px 5px 5px;
    }
    
    .calendly-inline-widget {
        min-width: 280px !important;
        height: 600px !important;
    }
}

@media (max-width: 480px) {
    .calendly-popup .popup-content {
        width: 99%;
    }
    
    .calendly-inline-widget {
        min-width: 260px !important;
        height: 550px !important;
    }
}

/* Reset base styling */
.wpml-ls-legacy-dropdown a {
  border: none !important;
  background: transparent !important;
  text-decoration: none !important;
}
/* Remove any borders from WPML elements */
.wpml-ls-legacy-dropdown,
.wpml-ls-legacy-dropdown ul,
.wpml-ls-legacy-dropdown li,
.wpml-ls-legacy-dropdown .wpml-ls-current-language,
.wpml-ls-legacy-dropdown .wpml-ls-current-language > a {
  border: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
  outline: none !important;
}
/* Top level FR styling */
.wpml-ls-legacy-dropdown .wpml-ls-current-language > a {
  display: flex !important;
  align-items: center !important;
  padding: 5px 15px !important;
  font-size: 18px !important;
  color: #2f5091 !important;
  text-transform: uppercase !important;
}
/* Hide WPML's default arrow */
.wpml-ls-legacy-dropdown .wpml-ls-item-toggle:after {
  display: none !important;
}
/* Arrow next to FR only - NOT in dropdown */
.wpml-ls-legacy-dropdown .wpml-ls-current-language .wpml-ls-native:after {
  content: '' !important;
  display: inline-block !important;
  width: 12px !important;
  height: 8px !important;
  background-image: url('/wp-content/uploads/2025/07/arr-d.svg') !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  margin-left: 12px !important;
  transition: transform 0.3s ease !important;
  vertical-align: middle !important;
}
/* Hide arrow in dropdown items */
.wpml-ls-legacy-dropdown .wpml-ls-sub-menu .wpml-ls-native:after {
  display: none !important;
}
/* Dropdown container */
.wpml-ls-legacy-dropdown .wpml-ls-sub-menu {
  background: transparent !important;
  visibility: hidden !important;
  opacity: 0 !important;
  transition: opacity 0.2s ease !important;
  width: auto !important;
  min-width: 0 !important;
  border: none !important;
}
/* Control the main WPML container width */
.wpml-ls-statics-shortcode_actions {
  width: auto !important;
  display: inline-block !important;
  border: none !important;
}
/* Control the ul width */
.wpml-ls-legacy-dropdown ul {
  width: auto !important;
  min-width: 0 !important;
  border: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
/* Control the li width */
.wpml-ls-legacy-dropdown li {
  width: auto !important;
  min-width: 0 !important;
  border: none !important;
  list-style: none !important;
}
/* Show dropdown on hover */
.wpml-ls-legacy-dropdown .wpml-ls-current-language:hover .wpml-ls-sub-menu {
  visibility: visible !important;
  opacity: 1 !important;
}
/* EN with border when dropdown is open */
.wpml-ls-legacy-dropdown .wpml-ls-sub-menu a {
  padding: 5px 15px !important;
  font-size: 18px !important;
  color: #2f5091 !important;
  text-transform: uppercase !important;
  border: 1px solid #ccc !important;
  background: white !important;
  width: fit-content !important;
  display: inline-block !important;
  white-space: nowrap !important;
  min-width: 50px !important;
}
/* FR text turns black when dropdown is open */
.wpml-ls-legacy-dropdown .wpml-ls-current-language:hover > a {
  color: #000000 !important;
}
/* Rotate arrow when dropdown is open - ONLY for current language */
.wpml-ls-legacy-dropdown .wpml-ls-current-language:hover .wpml-ls-native:after {
  transform: rotate(180deg) !important;
}

/* Mobile styles */
@media (max-width: 768px) {
  /* Reduce font size on mobile */
  .wpml-ls-legacy-dropdown .wpml-ls-current-language > a {
    font-size: 14px !important;
    padding: 4px 10px !important;
  }
  
  /* Smaller arrow on mobile */
  .wpml-ls-legacy-dropdown .wpml-ls-current-language .wpml-ls-native:after {
    width: 10px !important;
    height: 6px !important;
    margin-left: 8px !important;
  }
  
  /* Smaller dropdown items on mobile */
  .wpml-ls-legacy-dropdown .wpml-ls-sub-menu a {
    font-size: 14px !important;
    padding: 4px 10px !important;
    min-width: 40px !important;
  }
}

/* =========================================================
   PDF Cards Carousel (Owl) — scoped styles
   ========================================================= */

/* Full-width borders + outer spacing */
.pdf-cards-section-wrapper {
  border-top: 1px solid #cecece;
  border-bottom: 1px solid #cecece;
  padding: 60px 0; /* top & bottom spacing outside the inner container */
}

/* Constrained inner container */
.pdf-cards-section {
  max-width: 1500px;
  margin-left: auto;
  margin-right: auto;
}

/* Heading */
.pdf-cards-section .pdf-cards-heading {
  font-family: 'scaniasanscyh-b', sans-serif;
  font-size: 42px;
  margin: 0 0 20px 0;
  line-height: 1.2;
  text-align: center;
}

@media (max-width: 767px) {
  .pdf-cards-section .pdf-cards-heading {
    font-size: 16px;
  }
}

/* Make each Owl item behave like your original card */
.pdf-cards-carousel .catalog-pdf-card {
  background: transparent;
  border-radius: 8px;
  padding: 18px 14px 14px 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  line-height: 1.2;
  height: 100%;
  box-sizing: border-box;
}

/* Equal-height rows inside Owl */
.pdf-cards-carousel .owl-stage {
  display: flex;
}
.pdf-cards-carousel .owl-item {
  display: flex;
  height: auto;
}
.pdf-cards-carousel .owl-item .catalog-pdf-card {
  width: 100%;
}

/* Image (same look as grid version) */
.pdf-cards-carousel .catalog-pdf-image {
  height: 480px;
  width: 100%;
  object-fit: contain;
  background: transparent;
  margin-bottom: 12px;
  display: block;
}

/* Title */
.pdf-cards-carousel .catalog-pdf-title {
  color: #1d1c1e;
  font-family: 'scaniasanscy-bold';
  font-weight: 400;
  font-size: 18.6875px;
  line-height: 1.35;
  margin-bottom: 20px;
  text-align: left;
}

/* Button sits at the bottom */
.pdf-cards-carousel .catalog-pdf-download {
  margin-top: auto;
}

/* Wipe effect — keep it only on the image link, not the button */
.pdf-cards-carousel .catalog-pdf-card a[target="_blank"]:not(.txt-button-nb) {
  position: relative;
  display: block;
  overflow: hidden;
}
.pdf-cards-carousel .catalog-pdf-card a[target="_blank"]:not(.txt-button-nb)::before {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  z-index: 1;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 100%);
  transform: skewX(-25deg);
  transition: left 0.6s ease-in-out;
  pointer-events: none;
}
.pdf-cards-carousel .catalog-pdf-card a[target="_blank"]:not(.txt-button-nb):hover::before {
  left: 125%;
}

/* Protect the download button from any interference */
.pdf-cards-carousel .catalog-pdf-card .txt-button-nb {
  position: relative;
  z-index: 10;
  isolation: isolate;
}

/* Dots (uses Owl default theme but tighten spacing a bit) */
.pdf-cards-section .owl-dots {
  margin-top: 12px;
}
.pdf-cards-section .owl-dots .owl-dot span {
  width: 12px;
  height: 12px;
}

/* Remove borders when carousel is generated by shortcode */
.pdf-cards-section-wrapper.pdf-cards-shortcode {
  border-top: none;
  border-bottom: none;
}


/* ===================== Responsive ===================== */

/* Tablet and below */
@media (max-width: 900px) {
  .pdf-cards-carousel .catalog-pdf-image {
    height: 360px;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .pdf-cards-section-wrapper {
    padding: 30px 0; /* top & bottom only on mobile */
  }
  .pdf-cards-carousel .catalog-pdf-card {
    padding: 8px;
  }
  .pdf-cards-carousel .catalog-pdf-image {
    height: auto;
    max-height: 240px;
    margin-bottom: 8px;
  }
  .pdf-cards-carousel .catalog-pdf-card a[target="_blank"]:not(.txt-button-nb)::before {
    width: 30%;
    transition: left 0.4s ease-in-out;
  }
  .pdf-cards-carousel .catalog-pdf-title {
    font-size: 12.6875px;
    margin-bottom: 10px;
  }
}

/* ===== Scoped Guard-Fous Tabs (do not affect .case-tabs-nav) ===== */
.gf-tabs-nav {
  border-bottom: 1px solid #ccc; /* full-width border */

  /* 👇 Make it stick under the Flatsome header */
  position: sticky;
  top: var(--gf-sticky-top, 0px); /* JS updates this; fallback 0 */
  z-index: 1005;                  /* above page content */
  background: #fff;               /* avoid transparency when stuck */
}

/* Optional: subtle shadow only when pinned (toggled via IntersectionObserver) */
.gf-tabs-nav.is-sticking {
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
}

/* Inner wrapper for centering and max width */
.gf-tabs-nav-inner {
  display: flex;
  max-width: 1500px;       /* limit menu items to 1500px */
  margin: 0 auto;          /* center */
  justify-content: center;
  gap: 20px;               /* match original gap */
}

.gf-tabs-nav-inner .gf-tab-link {
  background: transparent;
  border: none;
  cursor: pointer;
  color: #555;
  border-bottom: 5px solid transparent;
  transition: color 0.3s, border-color 0.3s, opacity 0.1s;
  opacity: 0.8;
  font-size: 16px;
  font-family: 'scaniasanscy-bold', sans-serif;
  text-transform: capitalize;
  margin: 0;
  padding: 10px 14px 25px;
  text-decoration: none;
  text-align: center; /* center multi-line text */
  display: block;     /* ensures text-align applies to the whole link area */
}

.gf-tabs-nav-inner .gf-tab-link:hover,
.gf-tabs-nav-inner .gf-tab-link.is-active {
  border-bottom: 5px solid #0f3a5f;
  color: #0f3a5f;
  opacity: 1;
}

/* Match original fade-in behavior for active state */
.gf-tabs-nav-inner .gf-tab-link.is-active { opacity: 0; }
.gf-tabs-nav.js-loaded .gf-tab-link.is-active { opacity: 1; }

/* ===== Panels ===== */
/* Hide panels without overriding their native display (keeps .row layout intact) */
.gf-tab-panel[hidden] { display: none !important; }

/* Optional: styling hook for visible panels */
.gf-tab-panel.is-active { /* No forced display here */ }

/* ===== Sticky safety: make sure no ancestor kills sticky (Flatsome often sets overflow) */
.section, .section .section-content, .row, .col, .col-inner {
  overflow: visible;
}

@media (max-width: 767px) {
  .gf-tabs-nav-inner {
    max-width: 100%;
    flex-wrap: wrap;             /* allow wrapping */
    justify-content: center;     /* center items on each row */
    gap: 10px 15px;              /* row gap | column gap */
  }

  .gf-tabs-nav-inner .gf-tab-link {
    flex: 0 1 45%;               /* ~2 items per row */
    max-width: 45%;
    font-size: 14px !important;
    padding: 12px 8px;           /* smaller padding to fit more */
    text-align: center;
    white-space: normal;         /* allow line breaks inside */
    line-height: 1.4;
  }

  /* Optional: make 3 items per row on slightly wider small screens */
  @media (min-width: 600px) and (max-width: 767px) {
    .gf-tabs-nav-inner .gf-tab-link {
      flex: 0 1 30%;             /* ~3 items per row */
      max-width: 30%;
    }
  }
}


/* Hide panels on the live site, but keep them visible in UX Builder */
body:not(.ux-builder-active) .gf-tab-panel[hidden] {
  display: none !important;
}

/* In UX Builder, restore the native row layout (Flatsome rows are flex) */
.ux-builder-active .gf-tab-panel.row[hidden] {
  display: flex !important;
}

.page-header-excerpt {
	
	display: none;
}

/* ===== Product Banner ===== */
.ped-product-banner {
  position: relative;
  height: 500px; /* desktop height */
  overflow: hidden;
}

.ped-banner-bg {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ped-banner-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.ped-banner-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 150px; /* desktop side padding */
  height: 100%;
  display: flex;
  align-items: stretch; /* stretch columns to banner height */
  box-sizing: border-box;
}

.ped-banner-layout {
  display: flex;
  width: 100%;
  height: 100%;          /* NEW: make children able to stretch to full height */
  gap: 120px;            /* spacing between menu and right content */
  align-items: stretch;  /* match heights */
}

/* ===== Sidebar (full-height, FIXED WIDTH) ===== */
.ped-category-sidebar {
  background: #0f3a5f;
  color: #ffffff;
  border-radius: 0 !important; /* NEW: remove rounded corners */
  
  /* FIXED WIDTH SETTINGS */
  width: 350px;              /* Fixed width */
  min-width: 350px;          /* Prevent shrinking */
  max-width: 350px;          /* Prevent growing */
  flex-shrink: 0;            /* Prevent flex from shrinking this */
  flex-grow: 0;              /* Prevent flex from growing this */
  
  padding: 0;                   /* no outer padding -> hover spans full width */
  overflow: hidden;
  box-sizing: border-box;
  display: flex;                /* make sidebar a flex column */
  flex-direction: column;
  height: 100%;                 /* fill banner height */
}

.ped-category-title {
  margin: 0;
  padding: 40px 40px;      /* inner padding for the title */
  font-size: 20px;
  font-weight: bold;
  font-family: 'scaniasanscyh-b', sans-serif;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  text-transform: uppercase;
  line-height: 1.3;
  
  /* ALLOW TEXT WRAPPING */
  word-wrap: break-word;
  overflow-wrap: break-word;
  box-sizing: border-box;
}

.ped-category-title a {
  color: #ffffff;
  text-decoration: none;
  display: block;
  
  /* ALLOW TEXT WRAPPING */
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.ped-category-list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;                 /* list stretches to fill remaining height */
}

.ped-category-item {
  margin: 0;
  font-family: 'scaniasanscy-regular', sans-serif;
}

.ped-category-link {
  display: block;
  width: 100%;
  padding: 15px 40px;
  color: #ffffff;
  text-decoration: none;
  transition: background 0.3s ease, color 0.2s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25); /* single divider */
  box-sizing: border-box;
  
  /* ALLOW TEXT WRAPPING */
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.ped-category-link:hover {
  background: #2f5091;     /* full-width hover */
  color: #ffffff;
}

.ped-category-link.is-current {
  background: #2f5091;
  font-weight: bold;
}

.ped-category-empty {
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  padding: 15px 40px;
  
  /* ALLOW TEXT WRAPPING */
  word-wrap: break-word;
  overflow-wrap: break-word;
  box-sizing: border-box;
}

/* ===== Right side ===== */
.ped-banner-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-top: -90px;
  min-width: 0; /* Allow shrinking if needed */
}

.ped-breadcrumbs {
  margin-bottom: 30px;
  color: #ffffff;
  font-size: 17px;
  font-family: 'scaniasanscy-regular', sans-serif;
}

.ped-breadcrumbs a {
  color: #ffffff;
  text-decoration: none;
}

.ped-breadcrumbs a:hover {
  text-decoration: underline;
}

.ped-breadcrumbs span {
  color: #ffffff;
}

.ped-banner-title {
  color: #ffffff;
  font-size: 37px;
  margin: 0;
  line-height: 1.2;
  font-weight: bold;
  font-family: 'scaniasanscyh-b', sans-serif;
}

/* ===== MOBILE-ONLY OVERRIDES (use after your current CSS) ===== */

/* Large phones / small tablets */
@media (max-width: 900px) {
  .ped-banner-layout {
    flex-direction: row !important;
    gap: 24px;
    align-items: stretch;
    height: 100%;
  }
  .ped-banner-content { padding: 20px; }
  .ped-product-banner  { height: 380px; }

  .ped-category-sidebar {
    order: 0;
    width: 220px;            /* Fixed width */
    min-width: 220px;        /* Prevent shrinking */
    max-width: 220px;        /* Prevent growing */
    flex-shrink: 0;          /* Prevent flex from shrinking this */
    flex-grow: 0;            /* Prevent flex from growing this */
    height: 100%;
  }
  .ped-banner-right { order: 1; margin-top: -18px; }

  /* scale up gently from your small-phone baseline */
  .ped-category-title { padding: 16px 18px; font-size: 14px; }
  .ped-category-link  { padding: 10px 18px; font-size: 12px; }
  .ped-breadcrumbs    { font-size: 13px; margin-bottom: 12px; }
  .ped-banner-title   { font-size: 24px; }
}

/* Regular phones */
@media (max-width: 768px) {
  .ped-banner-layout {
    flex-direction: row !important;
    gap: 18px;
    align-items: stretch;
    height: 100%;
  }
  .ped-banner-content { padding: 16px; }
  .ped-product-banner  { height: 320px; }

  .ped-category-sidebar {
    order: 0;
    width: 200px;            /* Fixed width */
    min-width: 200px;        /* Prevent shrinking */
    max-width: 200px;        /* Prevent growing */
    flex-shrink: 0;          /* Prevent flex from shrinking this */
    flex-grow: 0;            /* Prevent flex from growing this */
    height: 100%;
  }
  .ped-banner-right { margin-top: -20px; }

  .ped-category-title { padding: 15px 16px; font-size: 12px; }
  .ped-category-link  { padding: 10px 16px; font-size: 12px; }
  .ped-breadcrumbs    { font-size: 12px; margin-bottom: 10px; }
  .ped-banner-title   { font-size: 20px; }
}

/* Small phones — your custom sizes applied here */
@media (max-width: 600px) {
  .ped-banner-content { padding: 0px; }
  .ped-banner-layout  { gap: 12px; }
  .ped-product-banner { height: 250px; }

  .ped-category-sidebar {
    order: 0;
    width: 140px;            /* Fixed width */
    min-width: 140px;        /* Prevent shrinking */
    max-width: 140px;        /* Prevent growing */
    flex-shrink: 0;          /* Prevent flex from shrinking this */
    flex-grow: 0;            /* Prevent flex from growing this */
    height: 100%;
  }
  .ped-banner-right { margin-top: -30px; }

  .ped-category-title { padding: 14px 14px; font-size: 8px; }
  .ped-category-link  { padding: 9px 14px; font-size: 8px; }
  .ped-breadcrumbs    { font-size: 8px; margin-bottom: 10px; }
  .ped-banner-title   { font-size: 12px; }
}



.svg-bullet-list {
  list-style: none; /* remove default bullets */
  padding: 0;
  margin: 0 0 16px 0;
}

.svg-bullet-list li {
  position: relative;
  padding-left: 30px; /* space for the SVG bullet */
  margin-bottom: 8px;

  /* Typography from .p-txt p */
  font-family: 'scaniasanscy-regular';
  font-weight: normal;
  font-size: 18px;
  color: #3f464c;
  line-height: 1.75em;
}

.svg-bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em; /* adjust vertical alignment if needed */
  width: 18px; /* size of SVG */
  height: 18px;
  background-image: url('/wp-content/uploads/2025/08/bullet.svg');
  background-repeat: no-repeat;
  background-size: contain;
}

/* Mobile font size adjustment */
@media (max-width: 767px) {
  .svg-bullet-list li {
    font-size: 13px;
  }
}

.img-border img {
	
	border: .063rem solid #BEB9B9
}

.img-border-2 .img-inner {
  border: 1px solid #BEB9B9;
  background: #fff;
  aspect-ratio: 1 / 1;      /* keeps it perfectly square */
  display: flex;            /* centers image inside */
  align-items: center;
  justify-content: center;
  padding: 90px;            /* adjust to shrink image */
  box-sizing: border-box;   /* keeps border + padding inside total size */
}

.img-border-2 img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;      /* makes sure whole image is visible */
}

/* ----------------------------------------------------------------------------- */
/* FAQ CSS */
/* ----------------------------------------------------------------------------- */
.faq-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
  border-top: 0.063rem solid #949494;
}
.faq-item {
  border-bottom: 0.063rem solid #949494;
  padding: 0 24px;
}
/* Question row */
.faq-question {
  cursor: pointer;
  padding: 30px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'scaniasanscyh-b', sans-serif;
  font-weight: 500;
  font-style: normal;
  font-size: 19px;
  color: #000000;
}
/* Disables interference from children during hover/focus */
.faq-question * {
  pointer-events: none;
}
.faq-text {
  flex: 1;
}
.faq-arrow {
  width: 16px;
  height: 16px;
  margin-left: 12px;
  transition: transform 0.3s ease;
}
.faq-item.open .faq-arrow {
  transform: rotate(90deg);
}
/* Answer panel (collapsed by default; JS sets max-height inline when open) */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s ease-out, opacity 0.3s ease-out, padding 0.3s ease-out;
  padding: 0; /* collapsed = no extra gap */
  font-family: 'scaniasanscy-regular', sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: #202a1c;
  line-height: 1.75;
  box-sizing: border-box;
}
/* Open state — FIXED: Remove overflow hidden when open and consistent bottom spacing */
.faq-item.open .faq-answer {
  opacity: 1;
  padding: 10px 0 24px; /* INCREASED bottom padding for more spacing */
  overflow: visible; /* Allow content to expand properly */
}
/* Prevent margin-collapsing visual glitches at edges */
.faq-answer > :first-child { margin-top: 0; }
.faq-answer > :last-child  { margin-bottom: 0; }

/* ADDED: Ensure consistent spacing for all common elements */
.faq-answer p,
.faq-answer ul,
.faq-answer ol,
.faq-answer div,
.faq-answer h1,
.faq-answer h2,
.faq-answer h3,
.faq-answer h4,
.faq-answer h5,
.faq-answer h6 {
  margin-bottom: 16px;
}

/* Override for last elements to ensure consistent bottom spacing */
.faq-answer > :last-child,
.faq-answer > :last-child p,
.faq-answer > :last-child ul,
.faq-answer > :last-child ol,
.faq-answer > :last-child div {
  margin-bottom: 0 !important;
}

/* ADDED: Handle cases where content might be hidden or have special styling */
.faq-answer p:last-child {
  margin-bottom: 0 !important;
}

/* ADDED: Ensure minimum spacing even for edge cases */
.faq-answer::after {
  content: "";
  display: block;
  height: 12px; /* INCREASED minimum spacing buffer */
}
/* Make media inside answers responsive */
.faq-answer img,
.faq-answer video,
.faq-answer iframe {
  max-width: 100%;
  height: auto;
  display: block;
}
/* ADDED: Ensure video containers inside FAQ don't overflow */
.faq-answer .youtube-cover-wrapper,
.faq-answer .youtube-cover,
.faq-answer .youtube-two-col {
  max-width: 100%;
  overflow: hidden;
}
/* ADDED: Ensure iframes inside FAQ answers are responsive */
.faq-answer .youtube-cover iframe {
  max-width: 100%;
  width: 100%;
  height: auto;
  aspect-ratio: 16/9; /* Modern browsers */
}
/* Fallback for browsers that don't support aspect-ratio */
@supports not (aspect-ratio: 16/9) {
  .faq-answer .youtube-cover:not(.has-cover) {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
  }
  
  .faq-answer .youtube-cover:not(.has-cover) iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
}
/* ----------------------------------------------------------------------------- */
/* Responsive Adjustments */
/* ----------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .faq-item {
    padding: 0 16px;
  }
  .faq-question {
    font-size: 16px;
    padding: 24px 0;
  }
  .faq-answer {
    font-size: 15px;
  }
  /* UPDATED: Consistent bottom padding on mobile */
  .faq-item.open .faq-answer {
    padding: 10px 0 20px;
  }
}
@media (max-width: 480px) {
  .faq-item {
    padding: 0 12px;
  }
  .faq-question {
    font-size: 15px;
    padding: 20px 0;
  }
  .faq-answer {
    font-size: 14px;
  }
  /* UPDATED: Consistent bottom padding on small mobile */
  .faq-item.open .faq-answer {
    padding: 10px 0 18px;
  }
}

.numbered-circle {
   width: clamp(50px, 10vw, 80px);
   height: clamp(50px, 10vw, 80px);
   background-color: #1e3a5f;
   border-radius: 50%;
   display: flex;
   justify-content: center;
   align-items: center;
   color: white;
   font-size: clamp(14px, 2.5vw, 20px);
   font-family: 'scaniasanscy-regular', sans-serif;
   font-weight: bold;
   flex-shrink: 0;
   margin: 0 auto;
}
/* ================================
   Product Categories Grid (CPT) - Flicker Prevention
   ================================ */
.ped-cat-grid {
  max-width: 1500px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  /* Hide initially to prevent flicker */
  opacity: 0;
}

/* Show grid after JS processing */
.ped-cat-grid.js-processed {
  opacity: 1;
}

/* Fallback: Show grid if JS fails to load (after 500ms) */
.ped-cat-grid {
  animation: fallback-show 0.1s ease-out 500ms forwards;
}

@keyframes fallback-show {
  to { opacity: 1; }
}

/* Reset animation if JS has run */
.ped-cat-grid.js-processed {
  animation: none;
}

/* 3 columns with 30px gaps */
.ped-cat-card {
  width: calc((100% - 60px) / 3);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.ped-cat-media,
.ped-cat-media .ped-cat-image {
  display: block;
  width: 100%;
  height: auto;
}

/* Content area */
.ped-cat-body {
  padding-top: 40px;
  padding-left: 20px;
  padding-right: 20px;
  padding-bottom: 40px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Title */
.ped-cat-title {
  margin: 0px 0 30px 0;
  font-size: 22px;
  line-height: 30px;
  font-family: 'scaniasanscyh-b', sans-serif;
}

.ped-cat-title a {
  text-decoration: none;
  color: #000000;
}

/* Title hover color */
.ped-cat-title a:hover {
  color: #234f96;
}

/* Excerpt */
.ped-cat-excerpt {
  margin: 0 0 18px 0;
  font-size: 18px;
  line-height: 1.7;
  font-family: 'scaniasanscy-regular', sans-serif;
}

/* Button uses your .txt-button styles; ensure it sits at bottom */
.ped-cat-btn {
  display: inline-block;
  margin-top: auto;
}

/* Mobile: 2 columns */
@media (max-width: 767px) {
  .ped-cat-grid { gap: 20px; }
  .ped-cat-card { width: calc((100% - 20px) / 2); }
  .ped-cat-title { font-size: 12px; line-height: 16px; margin-bottom: 16px; }
  .ped-cat-excerpt { font-size: 12px; line-height: 18px; }
.ped-cat-body {
  padding-top: 20px;
  padding-left: 10px;
  padding-right: 10px;
  padding-bottom: 10px;
}