/**
Theme Name: KeBeK
Text Domain: astra-child
Template: astra
*/

html {
  scroll-padding-top: 100px; /* set to your header height */
}

p {
  font-family: "Futura Std", Sans-serif;
}
h1,
h2,
h3,
h4,
h5,
h6,
button {
  font-family: "SlimbachStd", Sans-serif;
}

div#n2-ss-2 .n2-font-4012bb77362c126f05a29acb8353ca58-hover {
  font-family: "SlimbachStd", Sans-serif;
}

.ast-builder-menu-1 {
  font-family: "Futura Std", Sans-serif;
}

.site-above-footer-wrap {
  padding-left: 10px;
  padding-right: 10px;
}

.site-below-footer-wrap {
  padding: 0px;
}

[data-section="section-header-mobile-trigger"]
  .ast-button-wrap
  .mobile-menu-toggle-icon
  .ast-mobile-svg {
  fill: white;
  width: 30px;
  height: 30px;
}

.site-content {
  background: white;
}

.portfolio-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  /*   justify-content: center; */
  margin-top: 40px;
}

.portfolio-card {
  background: #f5f5f5;
  /*   border-radius: 8px; */
  overflow: hidden;
  width: 30%;
  min-width: 300px;
  text-align: left;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-bottom: 20px
}

.portfolio-logo img {
  width: 100%;
  height: auto;
  display: block;
  background-color: #eee;
}

.portfolio-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.portfolio-sector {
  font-weight: bold;
  color: #555;
  margin: 5px 0;
}

.portfolio-description {
  font-size: 14px;
  color: #333;
  margin: 10px 0;
  display: -webkit-box;
  -webkit-line-clamp: 4; /* Number of lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.portfolio-button {
	display: inline-block;
	background: #8F2031;
	color: #fff !important;
	line-height: 1;
	padding: 12px 24px;
	border-radius: 3px;
	text-decoration: none;
	font-family: "SlimbachStd", Sans-serif;
	font-size: 15px;
	font-weight: 500;
	margin-top: auto; /* push to bottom of card body */
	transition: background 0.2s;
	float: none; /* avoid float so flex can position it */
	align-self: flex-end; /* keep it aligned to the right within the card body */
}
.portfolio-button:hover {
	color: #fff;
}

.portfolio-filters {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 30px;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-btn {
  background-color: #fff;
  color: #911d2b;
  border: 1px solid #911d2b;
  padding: 6px 14px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  background-color: #f9e8ea;
}

.filter-btn.active {
  background-color: #911d2b;
  color: #fff;
}

.team-grid-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
  margin-top: 40px;
}

.team-profile-card {
  width: 200px;
  background: #f8f8f8;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  text-align: center;
  font-family: "Segoe UI", sans-serif;
}

.card-image {
  background-color: #eddcdc;
  height: 200px;
  min-height: 150px;
  padding: 0;
  position: relative;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  display: block;
}

.card-body {
  padding: 15px 10px 20px;
}

.card-body h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  color: #111;
}

.card-body .role {
  font-size: 12px;
  color: #6d6d6d;
  margin: 4px 0 12px;
}

.team-social {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.team-social a {
  color: #911d2b;
  font-size: 15px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.team-social a:hover {
  color: #6b0e1e;
}

.sub-menu .trp-ls-language-name {
  color: var(--e-global-color-primary);
}

.elementor-widget-n-tabs .e-n-tabs-heading {
  gap: 0 !important;
}

.twae-horizontal-timeline.twae-wrapper .twae-button-next,
.twae-horizontal-timeline.twae-wrapper .twae-button-prev {
  color: #8f2031 !important;
}

.twae-title {
  font-size: 1em !important;
  color: var(--tw-cbx-des-color) !important;
}

.sub-menu .trp-ls-language-name {
  color: var(--e-global-color-primary);
}

.home .ast-builder-menu-1 .menu-item > .menu-link {
  color: white;
}


/* Override news page */
@media (min-width: 768px){
  .elementskit-blog-block-post .row.no-gutters{
    display: flex;
  }
  .elementskit-blog-block-post .row.no-gutters > .col-md-6.order-2{
    flex: 0 0 25%;
    max-width: 25%;
  }
  .elementskit-blog-block-post .row.no-gutters > .col-md-6.order-1{
    flex: 0 0 75%;
    max-width: 75%;
  }
}

/* Override news page */
@media (max-width: 768px){
  .elementskit-blog-block-post .row.no-gutters{
    display: flex;
    gap: 20px;
  }
}

/* Override timeline layout */

.twae-button-prev {
  margin-right: 20px
}
.twae-button-next {
  margin-left: 20px;
}

/* Minimal look for Timeline Widget Addon without editing plugin files */
[id^="twae-wrapper-"].twae-wrapper {
  /* Adjust to taste */
  --tw-line-width: 2px;
  --tw-ibx-size: 14px;
  --tw-ibx-radius: 50;
  --tw-line-bg: #8b1a2b;
  --tw-line-filling-color: #8b1a2b;
  --tw-cbx-bottom-margin: 24px;
}

/* Remove speech bubble cards */
[id^="twae-wrapper-"].twae-wrapper .twae-content {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  padding: 0 !important;
}

/* Hide “balloon tails” and short connector bars */
[id^="twae-wrapper-"].twae-wrapper .twae-arrow,
[id^="twae-wrapper-"].twae-wrapper .twae-arrow-line {
  display: none !important;
}

/* Simple dots */
[id^="twae-wrapper-"].twae-wrapper .twae-icon,
[id^="twae-wrapper-"].twae-wrapper .twae-icondot {
  background: #8b1a2b !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* Titles/descriptions as plain text */
[id^="twae-wrapper-"].twae-wrapper .twae-title {
  color: #8b1a2b;
  font-weight: 700;
  margin: 0 0 4px 0;
}
[id^="twae-wrapper-"].twae-wrapper .twae-description {
  margin: 0;
  color: #4a4a4a;
}

/* Horizontal: prevent forced heights */
[id^="twae-wrapper-"].twae-wrapper.twae-horizontal-timeline .twae-story .twae-content {
  height: auto;
}

/* Vertical: remove center blocking bars */
[id^="twae-wrapper-"].twae-wrapper.twae-vertical .twae-story.twae-story-center:before,
[id^="twae-wrapper-"].twae-wrapper.twae-vertical .twae-story.twae-story-center:after {
  display: none !important;
}

/* Optional: soften year connector blocks */
[id^="twae-wrapper-"].twae-wrapper .twae-year-text:before,
[id^="twae-wrapper-"].twae-wrapper .twae-year-text:after {
  opacity: 0.3;
}

/* show a minimal connector line from dot to content */
[id^="twae-wrapper-"].twae-wrapper .twae-arrow-line {
  display: block !important;
  background: var(--tw-line-bg) !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* remove the plugin’s extra caps on the connector */
[id^="twae-wrapper-"].twae-wrapper .twae-arrow-line:before,
[id^="twae-wrapper-"].twae-wrapper .twae-arrow-line:after {
  display: none !important;
}

/* Horizontal layout: ensure the connector is a vertical bar */
[id^="twae-wrapper-"].twae-wrapper.twae-horizontal-timeline .twae-arrow-line {
  width: var(--tw-line-width) !important;   /* vertical line thickness */
  height: calc(var(--tw-ibx-size) * 0.6) !important; /* length from line to content */
  top: calc(0px - var(--tw-ibx-size) * 0.6) !important; /* aligns from the main line upward */
}

/* Vertical layout: keep a short horizontal bar from center line to text box */
[id^="twae-wrapper-"].twae-wrapper.twae-vertical .twae-arrow-line {
  height: var(--tw-line-width) !important;  /* horizontal line thickness */
  width: calc(var(--tw-ibx-size) * 0.7) !important; /* length from center line to content */
}

/* Ensure dots and connector are visible and large enough */
[id^="twae-wrapper-"].twae-wrapper {
  --tw-ibx-size: 22px;                 /* bigger dot */
  --tw-line-width: 3px;                /* slightly thicker line/connector */
}

/* Dot styles + stacking */
[id^="twae-wrapper-"].twae-wrapper .twae-icon,
[id^="twae-wrapper-"].twae-wrapper .twae-icondot {
  background: #8b1a2b !important;
  border: 2px solid #fff !important;   /* small white ring so it stands out */
  box-shadow: 0 0 0 2px var(--tw-line-bg) !important; /* reinforce color ring */
  z-index: 3 !important;
}

/* Show connector line and place it above the timeline line */
[id^="twae-wrapper-"].twae-wrapper .twae-arrow-line {
  display: block !important;
  background: var(--tw-line-bg) !important;
  border: 0 !important;
  box-shadow: none !important;
  z-index: 2 !important;
}
[id^="twae-wrapper-"].twae-wrapper .twae-arrow-line:before,
[id^="twae-wrapper-"].twae-wrapper .twae-arrow-line:after {
  display: none !important;
}

/* Horizontal: vertical connector from the line up to content */
[id^="twae-wrapper-"].twae-wrapper.twae-horizontal-timeline .twae-arrow-line {
  width: var(--tw-line-width) !important;         /* thickness */
  height: 32px !important;                        /* length – adjust to taste */
  top: calc(0px - 32px) !important;               /* rise from the main line */
}

/* Vertical: short horizontal connector from center line to content */
[id^="twae-wrapper-"].twae-wrapper.twae-vertical .twae-arrow-line {
  height: var(--tw-line-width) !important;
  width: 28px !important;
}

/* === Desktop & General Homepage Logo Override === */
.home .ast-site-identity .custom-logo {
  /* display: none !important; */
}
.home .ast-primary-header-bar.scrolled .ast-site-identity .custom-logo {
  display: inline !important;
}

/* .home .ast-site-identity::before {
  content: "";
  display: inline-block;
  width: 250px;
  height: 40px;
  background-image: url("https://stg.kebek.be/wp-content/uploads/2025/05/logo.webp");
  background-size: contain;
  background-repeat: no-repeat;
  vertical-align: middle;
} */
.home .ast-primary-header-bar.scrolled .ast-site-identity::before {
  display: none;
}

/* === Tablet (768px and below) === */
@media screen and (max-width: 980px) {
  /* .home .ast-site-identity::before {
    width: 200px;
    height: 35px;
  } */
  header .custom-logo-link img {
    max-width: 200px;
    width: 200px;
  }
	
#ast-hf-mobile-menu {
}
.main-navigation ul {
	gap: 0px
}
.main-navigation a {
}
}


/* === Mobile (480px and below) === */
@media screen and (max-width: 480px) {
  /* .home .ast-site-identity::before {
    width: 200px;
    height: 35px;
  } */
}

header nav a:focus {
  outline: none;
}

.sub-menu .trp-ls-language-name {
  color: var(--e-global-color-primary);
}

.home .ast-primary-header-bar {
  background-color: transparent;
  transition: background-color 0.3s ease;
}

.home .ast-primary-header-bar.scrolled , .home .ast-builder-grid-row-tablet-layout-default.scrolled, .home .ast-builder-grid-row-mobile-layout-default.scrolled{
  background-color: #eee0e0 !important;
}
/* .home .ast-primary-header-bar.scrolled , .home .ast-builder-grid-row-tablet-layout-default, .home .ast-builder-grid-row-mobile-layout-default{
  background-color: #eee0e0 !important;
} */

.home
  .ast-primary-header-bar.scrolled
  .ast-builder-menu-1
  .menu-item
  > .menu-link {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 9999; /* or your header bg color */
}

.ast-desktop
  .astra-menu-animation-slide-down
  > .menu-item
  .menu-item.focus
  > .sub-menu,
.ast-desktop
  .astra-menu-animation-slide-down
  > .menu-item
  .menu-item:hover
  > .sub-menu,
.ast-desktop
  .astra-menu-animation-slide-down
  > .menu-item.focus
  > .astra-full-megamenu-wrapper,
.ast-desktop .astra-menu-animation-slide-down > .menu-item.focus > .sub-menu,
.ast-desktop
  .astra-menu-animation-slide-down
  > .menu-item:hover
  > .astra-full-megamenu-wrapper,
.ast-desktop .astra-menu-animation-slide-down > .menu-item:hover > .sub-menu {
  transform: translateY(-30px) !important;
  max-width: 70px;
}


.site-above-footer-wrap a,
.site-above-footer-wrap button {
  position: relative;
  text-decoration: none;
}

/* Underline effect */
.site-above-footer-wrap a::after,
.site-above-footer-wrap button::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0; /* Adjust as needed */
  width: 0%;
  height: 2px; /* Line thickness */
  background-color: currentColor; /* Uses text color */
  transition: width 0.6s ease, left 0.6s ease;
}

.site-above-footer-wrap a:hover::after,
.site-above-footer-wrap button:hover::after {
  width: 100%;
}

.testimonial-card.testimonial-bg-cover {
	position: relative;
	min-height: 320px;
	max-width: 600px;
	margin: 0 auto;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
	display: flex;
	align-items: center;
	justify-content: center;
}
.testimonial-bg-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
	filter: grayscale(30%) brightness(0.6);
	z-index: 1;
	transition: transform 0.3s;
	/* Slight zoom for full coverage */
	/* transform: scale(1.08); */
}
.testimonial-content {
	position: relative;
	z-index: 2;
	padding: 20px 15px 10px 15px;
	color: #fff;
	text-align: left;
	width: 100%;
	font-family: "SlimbachStd", Sans-serif;
	border-radius: 8px;
	box-sizing: border-box;
}
.testimonial-content blockquote {
	font-family: "SlimbachStd", Sans-serif;
	font-size: 1.5rem;
	font-style: italic;
	font-weight: 500;
	color: #fff;
	margin: 0 0 24px 0;
	line-height: 1.35;
	text-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.testimonial-meta {
	margin-bottom: 0px;
	text-align: right;
}
.testimonial-author {
	font-family: "Futura Std", Sans-serif;
	font-weight: 700;
	color: #ffe7e7;
	font-size: 1.1rem;
	letter-spacing: 0.02em;
}
.testimonial-position {
	font-family: "Futura Std", Sans-serif;
	font-weight: 400;
	color: #f8cfcf;
	font-size: 1rem;
	margin-left: 8px;
}
.testimonial-cta {
	display: inline-block;
	background: #8F2031;
	color: #fff !important;
	line-height: 1;
	padding: 12px 24px;
	border-radius: 3px;
	text-decoration: none;
	font-family: "SlimbachStd", Sans-serif;
	font-size: 15px;
	font-weight: 500;
	margin-top: 8px;
	transition: background 0.2s;
	float: right;
}
.testimonial-cta:hover {
	color: #fff;
}
@media (max-width: 600px) {
	.testimonial-content {
		padding: 24px 12px 20px 12px;
	}
	.testimonial-card.testimonial-bg-cover {
		max-width: 100%;
	}
}

/* Mobile Responsive Fixes */
@media (max-width: 768px) {
  
  /* Portfolio Companies Grid Fixes */
  .portfolio-wrapper {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    margin-top: 20px !important;
    max-width: 400px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  
  .portfolio-card {
    width: 100% !important;
    min-width: unset !important;
    max-width: 100% !important;
    margin: 0 !important;
  }
  
  .portfolio-content {
    padding: 15px !important;
  }
  
  .portfolio-logo img {
    height: 150px !important;
    object-fit: contain !important;
    background: #f5f5f5;
  }
  
  /* Team Members Grid Fixes */
  .team-grid-cards {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    max-width: 400px !important;
    margin: 0 auto !important;
    justify-content: center !important;
  }
  
  .team-profile-card {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
  }
  
  .card-image {
    width: 100% !important;
    height: 200px !important;
    min-height: 200px !important;
  }
  
  /* Portfolio Detail Page Fixes */
  .portfolio-header-wrapper {
    margin-bottom: 20px;
  }
  
  .portfolio-side-logo {
    text-align: center;
    margin: 20px 0;
  }
  
  .portfolio-side-logo img {
    max-width: 200px;
    height: auto;
  }
  
  /* Team Detail Page Fixes */
  .team-header {
    gap: 15px;
  }
  
  .team-photo img {
    max-width: 250px;
  }
  
  /* KPI Block Responsive */
  .portfolio-kpi-grid {
    gap: 10px;
  }
  
  .kpi-block {
    padding: 8px 15px;
    min-width: auto;
  }
  
  /* Navigation arrows - hide on mobile */
  .portfolio-arrow,
  .team-arrow {
    display: none !important;
  }
  
  /* General container adjustments */
  .container {
    padding: 20px 15px;
  }
  
  /* Portfolio filters */
  .portfolio-filters {
    margin-bottom: 20px;
  }
  
  .filter-group {
    margin-bottom: 15px;
    text-align: center;
  }
  
  .portfolio-filters button {
    font-size: 13px !important;
    padding: 6px 12px !important;
    margin: 2px !important;
  }
}

/* Homepage specific fixes */
@media (max-width: 768px) {
  /* Why KeBeK section fixes */
  .elementor-element .elementor-widget-container {
    margin-bottom: 15px;
  }
  
  /* KPI blocks spacing fixes */
  .elementor-widget-container:has(.elementor-counter) {
    margin-bottom: 20px;
  }
  
  /* Ensure proper spacing between KPI rows */
  .elementor-row .elementor-column {
    margin-bottom: 20px;
  }
  
  /* Fix "Why KeBeK" alternating layout on mobile */
  .elementor-section .elementor-container .elementor-row {
    flex-direction: column;
  }
  
  .elementor-section .elementor-container .elementor-row .elementor-column {
    order: unset !important;
  }
  
  /* Ensure images always appear above text on mobile */
  .elementor-widget-image {
    order: -1;
    margin-bottom: 15px;
  }
  
  /* Header logo fixes */
  .site-header .site-logo-img img {
    max-height: 50px;
    z-index: 999;
    position: relative;
  }
  
  /* Sticky header fixes for mobile */
  .ast-sticky-active .main-header-bar {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
  }
  
}

/* Investor documents responsive */
@media (max-width: 768px) {
  .kebek-tab-buttons {
    flex-wrap: wrap;
    gap: 0px;
  }
  
  .kebek-tab-buttons button {
    font-size: 13px;
    padding: 6px 12px;
  }
}

@media (max-width: 480px) {
  /* Extra small screens */
  .portfolio-wrapper {
    max-width: 100% !important;
    padding: 0 15px !important;
  }
  
  .portfolio-card {
    min-width: unset;
  }
  
  .team-grid-cards {
    grid-template-columns: 1fr;
    max-width: 100% !important;
    padding: 0 15px !important;
  }
  
  .kpi-block {
    text-align: left;
    padding: 8px 12px;
  }
  
  .kpi-label {
    font-size: 12px;
  }
  
  .kpi-value {
    font-size: 16px;
  }
}


/* Force header background when mobile nav is open */
.ast-main-header-nav-open .ast-mobile-header-wrap {
  background-color: #eee0e0 !important; /* Or your desired color */
}

/* Also make sure it overrides transparency */
.ast-main-header-nav-open .ast-mobile-header-wrap.ast-mobile-header {
  background-color: #eee0e0 !important;
}


/* ✅ Clean vertical tab buttons above content — tight, professional look */
@media (max-width: 768px) {
  
  #e-n-tab-title-551286691{
    --n-tabs-title-order: 1 !important;
  }
  #e-n-tab-title-551286692{
    --n-tabs-title-order: 2 !important;
  }
  #e-n-tab-title-551286693{
    --n-tabs-title-order: 3 !important;
  }
  #e-n-tab-title-551286694{
    --n-tabs-title-order: 4 !important;
  }

  #e-n-tab-content-551286691{
    --n-tabs-title-order: 5 !important;
  }
  #e-n-tab-content-551286692{
    --n-tabs-title-order: 6 !important;
  }
  #e-n-tab-content-551286693{
    --n-tabs-title-order: 7 !important;
  }
  #e-n-tab-content-551286694{
    --n-tabs-title-order: 8 !important;
  }
}
/* Footer icon list - mimic Elementor Icon List (scoped to footer only) */
.site-footer .elementor-icon-list-items,
.site-below-footer-wrap .elementor-icon-list-items {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer .elementor-icon-list-item,
.site-below-footer-wrap .elementor-icon-list-item {
  display: flex;
  align-items: center;
  margin: 0 0 5px 0;
  padding: 0
}

.site-footer .elementor-icon-list-item:last-child,
.site-below-footer-wrap .elementor-icon-list-item:last-child {
  margin-bottom: 0;
}

.site-footer .elementor-icon-list-item a,
.site-below-footer-wrap .elementor-icon-list-item a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  color: var(--e-global-color-primary);
}

.site-footer .elementor-icon-list-icon,
.site-below-footer-wrap .elementor-icon-list-icon {
  display: inline-flex;
  line-height: 1;
  color: var(--e-global-color-primary);
  margin-right: 10px;
}

.site-footer .elementor-icon-list-icon svg,
.site-below-footer-wrap .elementor-icon-list-icon svg {
  width: 1em;
  height: 1em;
  vertical-align: middle;
  display: inline-block;
}

.site-footer .elementor-icon-list-text,
.site-below-footer-wrap .elementor-icon-list-text {
  line-height: 1.4;
}

.country-icon {
  width:2em !important;
  height:2em !important;
  margin: 5px;
  display:inline-block;
}

.center {
  text-align: center
}