/* Ensure headers remain left-aligned even if parent is justified */
.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
  text-align: left !important; /* Use !important if necessary, but try without first */
}

/*  make H3 headers blue */
.markdown-body h3 {
  color: #0063fb;
}

.container-lg {
  max-width: 1012px;
  margin-right: auto;
  margin-left: auto;
}

.container-md {
  max-width: 768px;
  margin-right: auto;
  margin-left: auto;
  padding-left: 1rem; /* or 16px */
  padding-right: 1rem;
}

footer {
  text-align: center;
  font-size: 0.95rem;
  color: #333;
  margin-top: auto;
  padding: 20px;
}

/*
  Typography Tweaks
  - Slightly heavier heading, letter-spacing for a modern look
  - Lighter feel for body text
*/
body {
  margin: 0;
  padding: 0;

  /* Subtle background variation (gradient) */
  background: linear-gradient(#fafafa, #f6f6f6);

  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* 5) Link styling: more elegant than default underline */
a:not(.book-call-btn):not(.testimonial_toggle) {
  color: #333;
  text-decoration: none;
  border-bottom: 1px dotted #333;
}
a:not(.book-call-btn):not(.testimonial_toggle):hover {
  border-bottom: 1px solid #333;
}

.container_center {
  /* 3) Vertical rhythm: center content with extra spacing */
  text-align: center;
  margin: auto; /* Ensures it's centered both horizontally and vertically */
  padding: 20px;
}

/* Ensure headers remain center-aligned even if parent is justified */
.container_center h1,
.container_center h2,
.container_center h3 {
  text-align: center !important;
}

.slogan {
  font-size: 1.25rem;
  color: #555;
  margin: 10px 0 30px;
  /* font-style: italic; */
}

.logo {
  width: 150px; /* Adjust as desired */
  margin-bottom: 10px;
}

/* --------- navigation bar ---------- */
.navbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap; /* allow wrapping */
  justify-content: space-between;
  padding: 12px 0.5rem;
  gap: clamp(10px, 4vw, 30px);
  background-color: #f8f8f8;
  list-style: none;
  font-size: 110%;
}

.lang-de .navbar {
  font-size: 100%;
}

.navbar-links {
  display: flex;
  gap: clamp(4px, 1vw, 8px);
  flex: 1;
}

@media (max-width: 600px) {
  .navbar {
    font-size: 100%; /* smaller font on narrow screens */
  }
}

.navbar li {
  display: inline; /* each item inline */
}

.navbar a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
  padding: 8px 12px;
  line-height: 1.2; /* ensure tight but readable vertical layout */
  transition: color 0.3s ease, background-color 0.3s ease;
}

.navbar a:not(.book-call-btn):hover {
  color: white;
  background-color: #0050c1; /* slightly darker on hover */
  border-radius: 4px;
}

.navbar a.active {
  background-color: #0063fb;
  color: white;
  border-radius: 4px;
}

.language-switch {
  text-align: center;
  margin-top: 0.25rem;
  font-size: 0.95rem;
}

.language-switch img {
  margin-right: 6px;
  vertical-align: middle;
}

.navbar-call {
  display: flex;
  align-items: center;
  margin-left: auto;
  gap: 0.5rem; /* Space between LinkedIn and button */
}

@media (max-width: 800px) {
  .navbar-call {
    width: 100%;
    justify-content: center;
    margin-left: 0;
    margin-top: 1rem; /* Optional for spacing */
  }
}

.linkedin-icon {
  text-decoration: none !important; /* Remove underline */
  border: none !important; /* Remove border */
}

.linkedin-icon i {
  color: #0063fb;
}

.linkedin-icon:hover {
  color: inherit !important; /* Keep original color */
  background-color: transparent !important; /* No hover background */
}

.linkedin-icon:hover i {
  color: #0050c1; /* slightly darker on hover */
}

/* --------- call button ---------- */
.book-call-btn {
  background-color: #0063fb;
  color: white !important;
  text-decoration: none !important;
  border: none !important;
  border-radius: 999px; /* pill shape */
  padding: 12px 6px; /* 2nd value: horizontal padding */
  /* font-size: 16px; */
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: inline-block; /* for padding to apply correctly */
}

.book-call-btn:hover {
  background-color: #0050c1; /* slightly darker on hover */
  color: white; /* maintain white on hover too */
}

/* --------- Home page: Client Outcome Section ---------- */

.client_outcomes_container {
  padding: 1em 1em; /* Reduce vertical padding */
  margin-left: auto;
  margin-right: auto;
  max-width: 900px; /* Adjust to your main content width if different */
}

.client_outcomes_container h3 {
  font-size: 1.8em; /* Adjust as needed */
  color: black !important;
  text-align: center;
  /* margin-bottom: 1.5em; Space below the main heading */
  font-weight: 700; /* Bolder for this section title */
}

.outcome_item {
  background-color: #f8f9fa; /* A very light grey for the item background */
  border: 1px solid #e0e0e0; /* Light border */
  border-radius: 8px; /* Soft rounded corners */
  padding: 1.5em;
  margin-bottom: 1.5em; /* Space between items */
  /* For a multi-column layout on larger screens, you might add:
     display: flex; flex-direction: column;
     Consider using a CSS grid for 2 or 3 columns if you have more items.
     For now, they will stack vertically.
  */
}

@media (min-width: 768px) {
  .client_outcomes_container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5em;
  }
  .client_outcomes_container h3 {
    grid-column: 1 / -1; /* Make h3 span all columns */
  }
  .outcome_item {
    margin-bottom: 0; /* Margin handled by gap */
  }
  .client_outcomes_container > p[style*="text-align: center"] {
    grid-column: 1 / -1; /* Make the final CTA link span all columns */
  }
}

.outcome_item h4 {
  font-size: 1.25em; /* Slightly smaller than the section h3 */
  color: #0063fb; /* Your primary brand blue */
  margin-top: 0;
  margin-bottom: 0.6em;
  font-weight: 700;
}

.outcome_item p {
  font-size: 1em;
  line-height: 1.6;
  color: #555555; /* Softer text color */
  margin-bottom: 0.8em;
}

.outcome_item p:last-of-type {
  /* Specifically target the paragraph with the link */
  margin-bottom: 0;
}

.outcome_item a {
  color: #0063fb; /* Brand blue for the link */
  text-decoration: none;
  font-weight: 600; /* Make it stand out a bit */
  transition: color 0.2s ease-in-out;
}

.outcome_item a:hover,
.outcome_item a:focus {
  color: #004aaa; /* Darker blue on hover */
  /* text-decoration: underline; */
}

/* Styling for the main call-to-action link (e.g., "Explore All Case Studies") */
.cta-link {
  display: inline-block; /* To allow padding and be treated like a button */
  padding: 0.8em 1.8em;
  background-color: #0063fb; /* Primary button color, match .book-call-btn */
  color: #ffffff !important; /* Ensure text is white, important to override other 'a' styles */
  /* font-family: "Montserrat", sans-serif; Match button font */
  font-size: 1em;
  font-weight: bold;
  text-decoration: none;
  border-radius: 5px; /* Match .book-call-btn radius */
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: none; /* Assuming book-call-btn doesn't have a border by default */
  cursor: pointer;
}

.cta-link:hover,
.cta-link:focus {
  background-color: #004aaa; /* Darker shade on hover */
  color: #ffffff !important;
  text-decoration: none;
  transform: translateY(-2px); /* Subtle lift effect */
}

/* Centering for the paragraph holding the cta-link, if not already centered by parent */
.client_outcomes_container > p[style*="text-align: center"] {
  /* This targets the <p style="text-align: center; margin-top: 1.5em;">
     The style attribute itself will center it, but you might want to ensure
     it behaves correctly within a grid if you use one.
  */
}

/* ---------- Homepage: Testimonials Section ---------- */

.testimonials_section {
  padding: 2em 1em;
  margin-left: auto;
  margin-right: auto;
  max-width: 900px; /* Match client_outcomes_container or your content width */
}

.testimonials_section h3 {
  /* font-family: "Montserrat", sans-serif; */
  font-size: 1.8em;
  color: black !important;
  text-align: center;
  /* margin-bottom: 1.5em; */
  font-weight: 700;
}

.testimonial_item_full {
  background-color: #fdfdfd; /* Slightly different from outcome_item for distinction, or make it same #f8f9fa */
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1.5em;
  margin-bottom: 2em; /* Space between multiple testimonials if added later */
  display: flex; /* For image and text side-by-side */
  flex-direction: column; /* Stack header and content on small screens */
  align-items: center; /* Center items when stacked */
}

.testimonial_header {
  margin-bottom: 1em;
  flex-shrink: 0; /* Prevent image from shrinking */
}

.testimonial_img {
  width: 80px;
  height: 80px;
  border-radius: 50%; /* Circular image */
  object-fit: cover; /* Ensure image covers the area well */
  border: 2px solid #0063fb; /* Optional: border with your brand color */
}

/* Alternative for Font Awesome icon if not using image */
.testimonial_icon {
  color: #0063fb; /* Brand color for icon */
  margin-bottom: 0.5em;
}

.testimonial_content {
  text-align: left; /* Default to left for content */
}

.testimonial_item_full p.testimonial_text {
  /* font-family: "Dosis Light", sans-serif; */
  font-size: 1.05em; /* Slightly larger for emphasis */
  line-height: 1.7;
  color: #444444; /* Slightly darker than regular paragraph for readability */
  margin-bottom: 1em;
  font-style: italic; /* Common styling for testimonials */
}

.testimonial_toggle {
  color: #0063fb;
  text-decoration: none;
  /* font-weight: bold; */
  font-size: 0.9em;
  margin-left: 5px; /* Space before the link */
  cursor: pointer;
  display: inline-block; /* Allow it to sit nicely */
}

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

p.testimonial_author {
  font-weight: 600;
  font-size: 0.95em;
  color: #333333;
  text-align: right; /* Align author to the right */
  margin-top: 1em;
  margin-bottom: 0;
}

/* Responsive adjustments for testimonial item layout */
@media (min-width: 600px) {
  .testimonial_item_full {
    flex-direction: row; /* Image beside text */
    align-items: flex-start; /* Align items to the top */
    text-align: left;
  }
  .testimonial_header {
    margin-right: 1.5em;
    margin-bottom: 0;
  }
  .testimonial_content {
    flex-grow: 1;
  }
  p.testimonial_author {
    text-align: right;
  }
}

/* --------- Home page: highlights section ---------- */
.highlights {
  display: flex;
  justify-content: space-around;
  text-align: center;
  margin-top: 2rem;
  gap: 2rem;
}

/* Ensure headers remain center-aligned even if parent is justified or aligned */
.highlights h4 {
  text-align: center !important;
}

.highlights div {
  flex: 1;
  padding: 1rem;
}
/* .highlights a {
  display: inline-block;
  margin-top: 0.5rem;
  border-bottom: 1px solid #0063fb;
  color: #0063fb;
} */

.highlights i {
  color: #0063fb;
  margin-bottom: 0.5rem;
}

.soft-divider {
  border: none;
  height: 2px;
  background-color: rgba(0, 0, 0, 0.1); /* light gray */
  width: 50%;
  margin: 1em auto;
}

/* --------- Services Pages: Sub-navigation ---------- */
.sub-navigation {
  text-align: center;
  margin-top: 1.5rem; /* Space below main navbar */
  margin-bottom: 2rem; /* Space above page content */
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e0e0e0; /* Lighter than main hr, softer separator */
}

.sub-navigation nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex; /* Arrange items in a row */
  justify-content: center; /* Center the items */
  gap: 1rem; /* Space between sub-nav items */
}

.sub-navigation nav ul li {
  display: inline-block; /* Keep them inline */
}

.sub-navigation nav ul li a {
  text-decoration: none;
  color: #555; /* Slightly muted color for non-active sub-nav items */
  font-weight: normal; /* Less prominent than main nav */
  font-size: 0.95rem; /* Slightly smaller than main nav items, adjust as needed */
  padding: 8px 16px; /* Generous padding for clickability */
  border-radius: 4px;
  transition: color 0.3s ease, background-color 0.3s ease;
  border-bottom: none; /* Remove the dotted underline from general 'a' tags */
}

.sub-navigation nav ul li a:hover {
  color: #0063fb; /* Highlight color on hover */
  background-color: #f0f0f0; /* Subtle background on hover */
  border-bottom: none; /* Ensure no underline on hover */
}

.sub-navigation nav ul li a.active {
  color: white; /* White text for active item */
  background-color: #0063fb; /* Same active color as main navbar */
  font-weight: bold; /* Make active item bold */
  border-bottom: none; /* Ensure no underline for active item */
}

/* Responsive adjustments for sub-navigation */
@media (max-width: 600px) {
  .sub-navigation nav ul {
    flex-direction: column; /* Stack items vertically on small screens */
    gap: 0.5rem; /* Adjust gap for vertical layout */
  }

  .sub-navigation nav ul li a {
    display: block; /* Make links take full width for easier tapping */
    padding: 10px 16px; /* Adjust padding for vertical layout */
  }
}

/* Optional: If you added a .page-content-below-subnav div in your layout */
.page-content-below-subnav {
  /* Add any specific styling if needed, e.g., margin-top */
}

/* ---------- ---------- */
