/* styles/styles.css */

@font-face {
  font-family: "Noto Sans";
  src: url("./fonts/NotoSans-Regular.woff2") format("woff2"),
    url("./fonts/NotoSans-Regular.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Noto Sans";
  src: url("./fonts/NotoSans-Italic.woff2") format("woff2"),
    url("./fonts/NotoSans-Italic.woff") format("woff");
  font-weight: normal;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Roboto";
  src: url("./fonts/Roboto-Italic.woff2") format("woff2"),
    url("./fonts/Roboto-Italic.woff") format("woff");
  font-weight: normal;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Roboto";
  src: url("./fonts/Roboto-Regular.woff2") format("woff2"),
    url("./fonts/Roboto-Regular.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Light Theme Colors */
  --background: #ffffff;
  /* --text-color: #222222; */
  --text-color: #000000;
  --accent-color: #0066cc;
  --hover-color: #004999;

  /* Dark Theme Colors */
  --dark-background: #121212;
  --dark-text-color: #ffffff;
  --dark-accent-color: #66b2ff;
}

/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  overflow-x: hidden;
  min-height: 100vh;
  font-family: "Noto Sans", Arial, sans-serif;
  scroll-behavior: smooth;
}

body {
  line-height: 1.6;
  /* background-color: #fff; */
  background-color: var(--background);
  /* color: black; */
  color: var(--text-color);
  padding-top: 140px; /* Keep this for fixed headers */
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* General Container for Centering Content */
.container {
  max-width: 1200px; /* Adjust as needed */
  margin: 0 auto; /* Centers the content block */
  padding: 0 2rem; /* Adds padding inside the container, keeping content off edges */
}

/* --- Top Bar --- */
.top-bar {
  background-color: #1a1a3c;
  color: white;
  font-size: 0.9rem;
  padding: 0.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 40px;
  z-index: 1001;
  white-space: nowrap;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  will-change: transform;
  border-bottom: none;
  box-shadow: 0 1px 0 0 #2b2c7d;
}

/* .top-bar-left a {
  color: white;
  text-decoration: none;
  font-size: 0.9rem;
} */

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.top-bar-right span,
.top-bar-right button {
  color: white;
  font-size: 0.9rem;
}

.top-bar button {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 0;
  font-size: 0.9rem;
}

body.dark-theme .top-bar {
  background-color: rgba(26, 26, 60, 1);
  color: white;
  /* --------------------------- */
  /* border-bottom-color: #1a1a3c; */
  box-shadow: 0 1px 0 0 #1a1a3c;
}

body.light-theme {
  background-color: var(
    --background
  ); /* Explicitly set light theme background */
  color: var(--text-color); /* Explicitly set light theme text color */
}

body.light-theme section h2,
body.light-theme section p {
  color: var(
    --text-color
  ); /* Ensure all section text is black in light theme */
}

body.light-theme .service-box {
  background-color: #f9f9f9; /* Explicitly set service box background for light theme */
}

body.light-theme .service-box h3,
body.light-theme .service-box p {
  color: var(--text-color); /* Ensure service box text is black */
}

body.light-theme footer {
  background-color: #2b2c7d; /* Explicitly set footer background for light theme */
  color: #ffffff; /* Use existing lighter grey for footer in light theme */
}

body.light-theme .contact-info p,
body.light-theme .contact-info a {
  color: var(--text-color); /* Contact info in light theme */
}

body.light-theme .impressum-section {
  background-color: #f8f8f8;
  color: var(--text-color); /* Impressum text in light theme */
}

body.light-theme .impressum-section a {
  color: var(--accent-color); /* Impressum links in light theme accent */
}

body.light-theme .top-bar {
  background-color: rgba(43, 44, 125, 1);
  color: white;
}

/* Language switch styles */
.language-switcher {
  position: relative; /* For dropdown positioning */
  display: inline-block; /* Allows it to sit inline with phone number */
  z-index: 1004;
}

.language-switcher #lang-toggle {
  background: none;
  border: none;
  color: white; /* Matches top bar text */
  cursor: pointer;
  font-size: 1.2rem; /* Adjust icon size */
  padding: 0.2rem 0.5rem; /* Add some padding around the icon */
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.language-switcher #lang-toggle:hover {
  background-color: rgba(255, 255, 255, 0.1); /* Subtle hover effect */
}

/* .language-dropdown {
  display: none; 
  position: absolute;
  top: 100%; 
  right: 0;
  background-color: #1a1a3c; 
  min-width: 120px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1006;
  border-radius: 4px;
  overflow: hidden; 
} */

.language-dropdown {
  display: none; /* Hidden by default */
  position: absolute;
  top: 0; /* Align to the top of the language-switcher button */
  right: 100%; /* Position to the LEFT of the language-switcher button */

  /* Flexbox for horizontal layout of links */
  display: flex; /* Make it a flex container when shown */
  flex-direction: row; /* Arrange items in a row */
  align-items: center; /* Vertically align items in the row */

  background-color: #1a1a3c; /* Dark theme background for consistency */
  /* Remove min-width, width will adjust to content */
  /* min-width: 120px; */

  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1006;
  border-radius: 4px;
  overflow: hidden; /* For rounded corners on links */
  white-space: nowrap; /* Keep all language options on a single line */

  /* Add a subtle animation for smooth appearance */
  opacity: 0;
  transform: translateX(10px); /* Start slightly to the right, slide left */
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Light theme specific background for language dropdown */
body.light-theme .language-dropdown {
  background-color: rgba(43, 44, 125, 1); /* Matches light theme top-bar */
}

/* .language-dropdown a {
  color: white; 
  padding: 10px 15px;
  text-decoration: none;
  display: block;
  font-size: 0.9rem;
  white-space: nowrap; 
  transition: background-color 0.2s ease;
} */

.language-dropdown a {
  color: white;
  /* Adjusted padding for horizontal items */
  padding: 0.5rem 0.8rem; /* Reduced vertical padding, slight horizontal */
  text-decoration: none;
  display: block; /* Allows padding and transitions */
  font-size: 0.9rem; /* Keep text compact */
  white-space: nowrap;
  transition: background-color 0.2s ease;
}

.language-dropdown a:hover {
  background-color: rgba(255, 255, 255, 0.2); /* Hover for dropdown items */
}

.language-dropdown.show {
  /*  display: block; */
  display: flex;
  opacity: 1;
  transform: translateX(0);
}

/* Header */
header.main-header {
  /* This applies to the <header> element itself for full width background */
  display: flex;
  justify-content: space-between; /* Pushes logo and nav to edges */
  align-items: center;
  padding: 1rem 1rem; /* Added padding here for direct content */
  position: fixed;
  top: 40px; /* Shift main header below top-bar */
  left: 0;
  right: 0;
  background-color: #2b2c7d;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  height: 100px;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  /* ----------------------------------------- */
  will-change: transform;
  /* border-top: 1px solid #2b2c7d; */
  /* margin-top: -1px; */
  margin-top: 0;
  border-top: none;
}

.logo {
  height: 120px;
  width: auto;
  margin-left: -20px;
}

.nav-bar {
  margin-left: auto; /* Push nav bar to the right side */
}

.nav-bar ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  justify-content: flex-end;
  align-items: center;
}

.nav-bar ul li a {
  text-decoration: none;
  color: white;
  font-size: 1.1rem;
  transition: color 0.3s ease-in-out;
}

.nav-bar ul li a:hover {
  color: #66b2ff;
}

/* Hamburger Menu */
.hamburger {
  display: none; /* Hidden by default on desktop */
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 24px;
  cursor: pointer;
  z-index: 1001; /* Ensure it's above other elements */
  margin-top: 30px;
}

.hamburger span {
  height: 3px;
  width: 100%;
  background-color: white;
  border-radius: 2px;
  transition: all 0.3s ease-in-out;
}

body.dark-theme .hamburger span {
  background-color: white;
}

/* 'X' transformation when active */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

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

/* Hero Section */
.hero {
  background-image: url("../images/hero-final.png");
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
  padding: 10rem 0 5rem; /* Only vertical padding here */
  position: relative;
  z-index: 1;
}

.hero .hero-container {
  /* This is the container for hero content */
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px; /* Padding for hero content */
  position: relative;
  z-index: 1;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 0;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: white;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* Buttons */
.btn {
  display: inline-block; /* Ensure it respects padding/margin correctly */
  padding: 0.8rem 1.8rem;
  background-color: var(--accent-color);
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: none; /* Explicitly remove any default link borders */
  cursor: pointer;
  font-size: 1.1rem; /* Adjust font size for buttons */
}

.btn:hover {
  background-color: var(--hover-color);
  transform: translateY(-2px);
}

.btn:active {
  background-color: var(
    --hover-color
  ); /* Match hover color for consistent brief feedback */
  transform: translateY(0); /* Revert any transform to prevent "stuck" effect */
  transition: background-color 0.1s ease, transform 0.1s ease; /* Quick transition for active state */
}

/* About Section Buttons Wrapper */
.about-section .btn-wrapper {
  display: flex; /* Use flexbox for centering */
  justify-content: center; /* Center buttons horizontally */
  gap: 1rem; /* Space between buttons */
  margin-top: 2rem; /* Add some top margin */
}

/* Sections (General Styling for ALL sections) */
section {
  padding: 5rem 0; /* Only vertical padding here. Horizontal padding handled by inner .container */
  scroll-margin-top: 140px; /* Account for fixed headers */
}

section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  text-align: center;

  color: var(--text-color);
}

section p {
  font-size: 1.1rem;
  /* color: #555; */
  /*  color: black; */
  color: var(--text-color);
}

/* Services Section */
.services-section {
  text-align: center;
}

.services-container-outer {
  /* This is the container wrapper around the grid */
  max-width: 1200px; /* Wider for services grid */
  margin: 0 auto;
  padding: 0 2rem; /* Add padding for this container */
}

.services-section h2 {
  font-size: 2.5rem;
  margin-bottom: 2.5rem;
}

.services-container {
  /* This is your actual grid */
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  justify-items: center;
}

.service-box {
  max-width: 320px;
  background-color: #f9f9f9;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s ease;
}

.service-box:hover {
  transform: translateY(-6px);
}

.service-box img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.service-box h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  /*  color: #333; */
  color: var(--text-color);
}

.service-box p {
  font-size: 1.05rem;
  /* color: #444; */
  color: var(--text-color);
  line-height: 1.5;
}

/* Footer */
footer {
  background-color: #333;
  padding: 1rem 0; /* Only vertical padding here */
  text-align: center;
  font-size: 0.875rem;
  /*  color: #777; */
  color: #ffffff;
}

.footer-content {
  /* New class for the content inside the footer */
  display: flex;
  justify-content: center; /* Center the two items in the middle */
  align-items: center;
  gap: 2rem; /* Space between copyright and theme toggle */
  max-width: 1200px; /* Constrain footer content */
  margin: 0 auto; /* Center the footer content block */
  padding: 0 2rem; /* Padding for footer content */
}

.footer-nav {
  /* This will now only contain the theme toggle */
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 0; /* Remove top margin */
}

.footer-nav a {
  /* This might not be needed if it's just a button in footer-nav */
  color: #ccc;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  transition: color 0.3s ease;
}

.footer-nav a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 1px;
  display: block;
  margin: 4px auto 0;
  background: #aaa;
  transition: width 0.3s;
}

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

.footer-nav a:hover::after {
  width: 100%;
}

.nav-btn {
  /* This is for main nav links, not footer */
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-btn:hover {
  color: #66b2ff;
}

/* Example dark theme */
body.dark-theme {
  /* background-color: #121212; */
  background-color: var(--dark-background);
  /* color: #f0f0f0; */
  color: var(--dark-text-color);
}

body.dark-theme header.main-header {
  background-color: #1a1a3c;
  /* --------------------------------- */
  /* border-top-color: #1a1a3c; */
  border-top: none;
}

/* novo dodato */
body.dark-theme section h2,
body.dark-theme section p {
  color: var(
    --dark-text-color
  ); /* Ensure all section text is white in dark theme */
}

body.dark-theme .service-box {
  background-color: #1e1e1e;
}

body.dark-theme .service-box h3,
body.dark-theme .service-box p {
  /* color: #f0f0f0; */
  color: var(--dark-text-color);
}

/* novo dodato */
body.dark-theme footer {
  background-color: #1a1a3c; /* Darker footer background */
  color: var(--dark-text-color); /* Ensure footer text is white in dark theme */
}

/* novo dodato */
body.dark-theme .contact-info p,
body.dark-theme .contact-info a {
  color: var(--dark-text-color); /* Contact info in dark theme */
}

#footer-theme-toggle {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--accent-color);
  transition: transform 0.3s ease;
}

#footer-theme-toggle:hover {
  transform: scale(1.2);
}

#top-theme-toggle {
  font-size: 1rem;
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  font-size: 24px;
  border: none;
  border-radius: 50%;
  background-color: #0066cc;
  color: white;
  cursor: pointer;
  opacity: 0.6;
  display: none;
  z-index: 1001;
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.back-to-top:hover {
  opacity: 1;
  transform: scale(1.1);
}

.map-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%; /* Keep map max-width 100% of its parent container */
  border-radius: 8px; /* optional */
  margin: 2rem auto; /* Center the map within its parent container */
}

.map-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.contact-section {
  text-align: center;
  padding: 3rem 0; /* Only vertical padding here */
}

.contact-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  text-align: center;
  margin: 2rem 0;
  font-style: normal;
}

.contact-info p,
.contact-info a {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 1.1rem;
  max-width: 200px; /* Keep individual contact items from becoming too wide */
  margin: 0;
  /* color: inherit; */
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-info a:hover {
  color: var(--hover-color);
}

.contact-info i {
  font-size: 2rem;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.social-icons a {
  font-size: 2rem;
  color: var(--accent-color);
  transition: transform 0.3s, color 0.3s;
}

.social-icons a:hover {
  transform: scale(1.2);
  color: var(--hover-color);
}

/* Impressum Section Styles */
.impressum-section {
  padding: 4rem 0; /* Only vertical padding here */
  background-color: #f8f8f8;
  /* color: #333; */
  color: var(--text-color);
  line-height: 1.6;
}

body.dark-theme .impressum-section {
  background-color: #1e1e1e;
  /* color: #f0f0f0; */
  color: var(--dark-text-color);
}

.impressum-section a {
  /* color: #0066cc; */
  color: var(--accent-color);
  text-decoration: underline;
}

body.dark-theme .impressum-section a {
  /*  color: #66b2ff; */
  color: var(--dark-accent-color);
}

/* --- Responsive Styles --- */
@media (max-width: 768px) {
  body {
    padding-top: 140px; /* Keep consistent padding for mobile */
  }

  .top-bar {
    /* Revert flex-wrap to nowrap for single line */
    flex-wrap: nowrap; /* Forces content onto a single line */
    height: auto; /* Allow height to adjust */
    min-height: 40px;
    padding: 0.5rem 1rem;
    justify-content: space-between; /* Push content to edges */
    overflow-x: hidden; /* Allow horizontal scrolling if content overflows */
    -webkit-overflow-scrolling: touch; /* Smoother scrolling on iOS */
  }

  /* .top-bar-left {
    flex: none; 
    text-align: left; 
    margin-bottom: 0; 
    min-width: 0; 
    margin-right: 0.5rem;
  }

  .top-bar-left a {
    font-size: 0.7rem; 
    white-space: nowrap; 
  } */

  .top-bar-right {
    flex: none; /* Do not allow it to grow/shrink based on space */
    justify-content: flex-end; /* Push phone/lang to the right */
    gap: 0.5rem; /* Reduce gap between phone and lang */
    min-width: 0; /* Allow content to shrink if needed */
  }

  .top-bar-right span,
  .top-bar-right button {
    font-size: 0.7rem; /* Make phone/lang smaller */
    white-space: nowrap; /* Keep them on one line */
  }

  /* Header Mobile */
  header.main-header {
    /* Target the header itself */
    z-index: 1000;
    padding: 1rem 1rem; /* Adjust padding for mobile */
    height: 100px;
  }

  .nav-bar {
    /* Mobile nav bar (initially hidden) */
    position: absolute;
    top: 100px; /* Below the fixed header */
    right: 1rem; /* Align to the right with padding */
    /* display: none; will be toggled by JS */
    flex-direction: column; /* Stack links vertically */
    background-color: #1a1a3c; /* Default background for dark theme */
    padding: 1rem 1.5rem;
    gap: 1rem;
    border-radius: 12px;
    min-width: 180px;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 999; /* Lower than hamburger */
  }

  /* FIX: Hamburger menu background color for light theme */
  body.light-theme .nav-bar {
    background-color: #2b2c7d; /* Matches the light theme header background */
  }

  .nav-bar.active {
    display: flex; /* Make it visible and use flex for column layout */
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-bar ul {
    /* Target the ul inside the nav-bar */
    flex-direction: column; /* Ensure vertical stacking for mobile menu */
    align-items: flex-start; /* Align menu items to the left within the dropdown */
    gap: 0.8rem; /* Smaller gap for mobile menu */
  }

  .hamburger {
    display: flex; /* Show hamburger icon on mobile */
    margin-left: auto; /* Push to the right */
  }

  /* Hero section font sizes for mobile */
  .hero h1 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  /* Adjust padding for general containers on mobile */
  .container {
    padding: 0 1rem; /* Smaller horizontal padding for mobile containers */
  }

  .services-container-outer {
    padding: 0 1rem; /* Smaller horizontal padding for services container */
  }

  /* Contact info on mobile */
  .contact-info p,
  .contact-info a {
    max-width: 100%; /* Allow contact items to take full width */
    margin-bottom: 1rem; /* Add space between items */
  }

  /* Footer for mobile */
  .footer-content {
    flex-direction: column; /* Stack footer content */
    gap: 0.5rem;
    padding: 1rem 1rem; /* Adjust footer content padding */
  }

  .phone-lang {
    flex-shrink: 0; /* Keep this to prevent shrinking */
    min-width: 0; /* Allows content to shrink */
    overflow: hidden;
  }

  .language-switcher {
    /* On mobile, ensure this wrapper is also high enough in z-index */
    z-index: 1004; /* Make sure the switcher itself is above everything else in the top-bar */
    position: relative; /* Needs to be relative for dropdown's absolute positioning */
    flex-shrink: 0;
  }

  .language-switcher #lang-toggle {
    font-size: 1rem; /* Smaller icon on mobile */
    /* Ensure z-index is high enough for the toggle button itself */
    z-index: 1003; /* Higher than dropdown to ensure clickability */
    padding: 0.2rem 0.5rem;
  }

  /* .language-dropdown {
    display: none;
    position: absolute; 
    top: 100%; 
    right: 0; 
    background-color: #1a1a3c; 
    min-width: 120px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1005; 
    border-radius: 4px;
    overflow: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
  } */

  .language-dropdown {
    top: 0; /* Still align to top of button */
    right: 100%; /* Still expand to the left */
    /* Re-apply flexbox properties if inherited values are problematic */
    display: flex;
    flex-direction: row;
    align-items: center;
    /* No specific width needed, will be content-driven */
    /* min-width: unset; */

    /* Reset transform and opacity for smooth animation */
    opacity: 0;
    transform: translateX(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  /* Light theme specific background for language dropdown on mobile */
  body.light-theme .language-dropdown {
    background-color: rgba(43, 44, 125, 1);
  }

  .language-dropdown.show {
    /* display: block; */
    display: flex;
    opacity: 1;
    transform: translateX(0);
  }

  .language-dropdown a {
    /* Mobile specific padding for horizontal items if different from desktop */
    padding: 0.4rem 0.7rem; /* Slightly smaller for mobile */
    font-size: 0.8rem;
  }

  .hamburger {
    z-index: 1001; /* Already set, good */
  }

  .about-content-wrapper {
    max-width: 100%; /* Allow the wrapper to use full width on mobile */
    padding: 0 10px; /* Add some horizontal padding to the wrapper itself */
  }

  .about-container p {
    max-width: 100%; /* Allow paragraphs to expand to full width of container */
    margin: 0.5rem auto; /* Adjust vertical margin for mobile */
    padding: 0 10px; /* Add some small horizontal padding for paragraphs if they look too close to edge */
  }

  /* ul.about-ul {
    max-width: 100%; 
    padding-left: 30px; 
    margin: 0.5rem auto;
  } */

  ul.about-ul {
    max-width: 100%; /* Allow list to expand to full width of container */
    padding-left: 30px; /* Sufficient padding for bullets on mobile to clear screen edge */
    /* margin: 0.5rem auto;  */
    margin: 0.5rem 0;
    /* margin-top: 0.5rem;
    margin-bottom: 0.5rem;

    margin-left: auto;
    margin-right: auto; */
  }

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

  .service-box ul.service-features-list {
    padding-left: 20px; /* Keep consistent padding for mobile */
    margin: 1rem auto 0.5rem auto; /* Adjust margins as needed for mobile */
    max-width: 95%; /* Allow it to take up more width on smaller screens */
  }
}

/* div.about-container {
    text-align: center;
} */

.about-content-wrapper {
  display: flex;
  flex-direction: column; /* Stack children vertically */
  align-items: center; /* Center children horizontally */

  /* Set a max-width for the wrapper itself, so content doesn't stretch too wide */
  max-width: 800px; /* Matches your desired content width */
  margin: 0 auto; /* Center the flex container within .about-container */

  /* Add some padding if needed, but your .container likely handles this */
}

/* .about-container p {
  max-width: 800px;
  margin: 1rem auto;
  text-align: center;
} */

.about-container p {
  /* Keep these styles, but ensure max-width is consistent */
  max-width: 800px; /* This paragraph's max-width */
  width: 100%; /* Ensure it takes full width up to max-width */
  margin: 1rem 0; /* Adjust vertical margin, horizontal will be handled by flexbox */
  text-align: center; /* Keep text aligned left within the paragraph block */
}

/* ul.about-ul {
  list-style-position: outside;
  padding-left: 20px;
  max-width: 800px;
  margin: 1rem auto;
  text-align: left;
} */

ul.about-ul {
  /* Resetting browser defaults, some might be redundant due to flexbox but good practice */
  margin: 1rem 0; /* Vertical margin only; horizontal handled by parent flexbox */
  padding-left: 0; /* Remove default browser padding */

  list-style-type: disc; /* Keep your desired bullet type */
  list-style-position: outside; /* Crucial: ensures bullets are visible and outside the content */

  max-width: 800px; /* Crucial: limits the width of the UL itself */
  width: 100%; /* Make sure it can stretch to max-width */

  /* To push the bullet points in and align the text */
  /* This will control the visual indentation of the list items */
  padding-left: 20px; /* Adjust this value as needed for visual alignment */

  text-align: left; /* Text inside list items aligns left */

  /*  color: var(--text-color); */
}

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

/* Service Box Specific List Styling */
.service-box ul.service-features-list {
  list-style-type: disc; /* Or 'circle', 'square' etc. */
  list-style-position: inside; /* Crucial for better centering and preventing clipping */

  margin: 1rem auto 0.5rem auto; /* Top margin, centered horizontally, bottom margin */
  padding-left: 0; /* Adjust this value for desired text indentation */

  text-align: left; /* Ensure text inside list items aligns left */
  max-width: 90%; /* Constrain width if list items are very long, keeps them from stretching too much */
  /* This max-width needs to be less than service-box max-width (320px) */

  color: var(--text-color); /* Ensure list text inherits theme color */
}

/* Style for individual list items */
.service-box ul.service-features-list li {
  margin-bottom: 0.5rem; /* Space between list items */
  line-height: 1.4; /* Improve readability */
}

/* Dark Theme Adjustments for Service Box Lists */
body.dark-theme .service-box ul.service-features-list {
  color: var(--dark-text-color); /* Ensure text is white in dark theme */
}

.service-features-list {
  text-align: left;
}
