/* Base styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&display=swap');

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: #333;
  background-color: #f4f4f4;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.logo {
  height: 50px;
}

nav ul.nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: flex-end;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  padding: 6px 12px;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  transition: background-color 0.3s, color 0.3s;
}

nav a:hover {
  background-color: rgba(255, 255, 255, 0.8);
  color: #0C1A5F;
}

nav a.active {
  background-color: white;
  color: #0C1A5F;
}

.lang-switch {
  font-size: 0.9em;
  color: white;
  font-family: 'Inter', sans-serif;
  margin-left: 20px;
  white-space: nowrap;
}

.lang-switch .lang {
  opacity: 0.8;
  color: white;
  text-decoration: none;
  font-weight: normal;
  transition: text-shadow 0.3s ease;
}

.lang-switch .lang:hover {
  text-shadow: 0 0 6px white;
}

.lang-switch .lang.active {
  font-weight: bold;
  opacity: 1;
  color: white;
  border-bottom: 2px solid white;
  text-shadow: none;
}

header {
  background-color: #0C1A5F; /* Dark blue */
  color: white;
  padding: 10px 0;
}

header > .container {
  max-width: 1200px;
}

.hero-slider {
  height: 300px;
  overflow: hidden;
  position: relative;
  background-color: #f4f4f4;
}

.slides {
  position: relative;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
}


.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  z-index: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}


main {
  padding: 40px 0;
}

main p {
  line-height: 1.6;
  margin-bottom: 20px;
}

.cta-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #0C1A5F;
  color: white;
  font-weight: bold;
  text-decoration: none;
  border-radius: 4px;
  margin-top: 20px;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: #1a2d80;
}

footer {
  background-color: #6C6D6E; /* Medium gray */
  color: white;
  text-align: center;
  padding: 20px 0;
  font-size: 0.9em;
}

footer > .container {
  max-width: 1200px;
}

.service-list {
  display: grid;
  gap: 20px;
  padding-top: 20px;
}

@media (min-width: 769px) {
  .service-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  nav ul.nav-list {
    flex-direction: column;
    align-items: flex-start;
  }

  .service-list {
    grid-template-columns: 1fr;
  }

  .header-flex {
    flex-direction: column;
    align-items: flex-start;
  }
}

.service-item {
  background-color: white;
  border-left: 5px solid #0C1A5F;
  padding: 15px 20px;
  font-weight: 500;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.service-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}


/* Ensure proper layout for contact grid */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}


/* === Cookie Banner – Enhanced to match site design === */
.cookie-banner {
  position: fixed;
  inset: auto 0 0 0;
  background: #0C1A5F; /* match header */
  color: #fff;
  display: none;
  z-index: 9999;
  box-shadow: 0 -6px 24px rgba(0,0,0,0.18);
  transform: translateY(8px);
  opacity: 0;
  transition: transform 260ms ease, opacity 260ms ease;
}
.cookie-banner.is-visible { transform: translateY(0); opacity: 1; }

.cookie-banner .cookie-inner {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px 0;
}

.cookie-banner p { margin: 0; line-height: 1.5; }
.cookie-banner a { color: #fff; text-decoration: underline; }

.cookie-buttons { display: flex; gap: 10px; align-items: center; }
.cookie-buttons .btn {
  border-radius: 4px;
  font-weight: 700;
  padding: 8px 14px;
  border: 2px solid transparent;
  cursor: pointer;
}

/* CTA-szerű elfogadás */
.cookie-buttons .btn-accept {
  background: #ffffff;
  color: #0C1A5F;
}
.cookie-buttons .btn-accept:hover,
.cookie-buttons .btn-accept:focus-visible { background: #f0f0f0; }

/* Visszafogott „Elutasítom” */
.cookie-buttons .btn-decline {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255,255,255,0.9);
}
.cookie-buttons .btn-decline:hover,
.cookie-buttons .btn-decline:focus-visible {
  background: rgba(255,255,255,0.1);
}

@media (max-width: 768px) {
  .cookie-banner .cookie-inner {
    grid-template-columns: 1fr;
    padding: 14px 0 16px;
  }
  .cookie-buttons { justify-content: flex-start; flex-wrap: wrap; }
}
/* === End Enhanced Cookie Banner === */
