:root {
  --navbar-height: max(4vh, 40px);
  --top-margin: calc(max(4vh, 40px) + 55px);
  --red: rgb(178,7,51);
  --language-button: max(3vh, 30px);
  --banner-nav-top: calc(max(4vh, 40px) - 1px)
}
.burger-lang div.lang-dropdown {
	left: 0;
	right: auto;
	top: 100%;
}
body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  height: 100vh;
  overflow: auto;
  overflow-x: hidden;
  background-color: #f7f3e9;
  width: 100%;
  max-width: 100%;
}

/*Form stling (ajánlatkérés)*/
.container {
  width: 70%;
  margin: 0 auto;
  background: #fff;
  padding: 3rem 2rem;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.section-title {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  text-align: center;
  color: #1c1c1c;
}

.section-description {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1rem;
  color: #555;
}

.quote-form .form-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr;
}

.quote-form input,
.quote-form textarea {
  padding: 0.75rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
}

.quote-form textarea {
  grid-column: span 2;
  resize: vertical;
}

.form-actions {
  margin-top: 2rem;
  text-align: center;
}

.submit-button {
  background-color: #d1d1d1;
  color: #fff;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.submit-button.active {
  background-color: var(--red);
}

.submit-button:hover {
  background-color: #b8b8b8;
}
.submit-button.active:hover {
  background-color: rgb(255, 22, 84);
}

#checkbox-label.highlight, .checkbox-link.highlight {
  /*animation: shake 0.5s;*/
  color: var(--red);
}

@keyframes shake {
  0%   { transform: translateX(0); }
  25%  { transform: translateX(-5px); }
  50%  { transform: translateX(5px); }
  75%  { transform: translateX(-5px); }
  100% { transform: translateX(0); }
}

/*Language button*/
.lang-switcher {
  position: relative;
}


.lang-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  height: 100%;
  opacity: 80%;
  font-size: 20px;
  font-weight: bold;
  color: var(--red);
  margin-right: 10px;
}

.lang-button img {
  width: var(--language-button);
  height: var(--language-button);
  border-radius: 50%;
  padding: 5px;
  padding-right: 6px;
}

.lang-dropdown {
  display: none;
  position: absolute;
  top: 102%;
  right: 0;
  background-color: #f7f3e9;
  opacity: 80%;
  backdrop-filter: blur(7px);
  text-shadow: 0 0px 8px rgba(255, 255, 255, 0.9);
  z-index: 999;
}

.lang-dropdown.show {
  display: block;
}

.lang-dropdown a img {
  width: var(--language-button);
  height: var(--language-button);
  display: block;
  border-radius: 50%;
  padding: 5px;
}

.lang-dropdown a {
  padding: 0;
  margin: 0;
}

/*Navbar*/
.navbar-wrapper {
  position: sticky;
  top: 0;
  z-index: 999;
  background: white;
}

.navbar {
  position: fixed;
  align-items: center;
  top: 0;
  left: 0;
  right: 0;
  background: #f7f3e9;
  color: white;
  display: flex;
  justify-content: space-between;
  z-index: 1000;
  height: var(--navbar-height);
  width: 100vw;
  max-width: 100%;
  box-sizing: border-box;
  letter-spacing: -0.03em;
  font-size: 20px;
  transition: top 0.3s ease-in-out;
}

.main-link {
  background-image: url('logo.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  padding: 0;
  height: 20px;
  opacity: 80%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  text-decoration: none;
  color: white;
  min-width: 50px;
  margin-left: 3px;
}

.navbar a:not(.main-link) {
  color: rgb(0,0,0,0.72);
  text-decoration: none;
  font-weight: bold;
  padding: 0px 17px;
  transition: all 0.3s ease;
  border-radius: 8px;
  display: inline-block;
  height: 100%;
  align-items: center;
  display: flex;
}

.nav-item-container.active a{
  color: var(--red);
}

.nav-item-container {
  position: relative;
  display: inline-block;
  text-align: center;
  height: 100%;
}

.nav-item-container > a {
  display: block;
  padding: 14px 16px;
  text-decoration: none;
  color: white;
}

.nav-item-container:hover .dropdown {
  display: block;
}

/* Banner navbar */
.banner-navbar {
  display: flex;
  white-space: nowrap;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  background: #f7f3e9;
  position: fixed;
  top: var(--navbar-height);
  transition: top 0.3s ease-in-out;
  width: 100%;
}

.banner-nav-left {
}

.banner-nav-right {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-right: 10px;
  white-space: normal;
  flex-wrap: nowrap;
  overflow-x: auto;
}

#banner-navbar {
  z-index: 100;
}

.banner-navbar .banner-link {
  text-decoration: none;
  color: rgb(0,0,0,0.72);
  font-size: 20px;
  font-weight: 600;
  padding: 0.5rem 0 0.5rem 1rem;
}

.banner-navbar a.active {
  color: rgb(178,7,51);
}

.banner-notlink {
  text-decoration: none;
  color: rgb(0,0,0,0.6);
  font-size: 20px;
  font-weight: 600;
  padding: 0.5rem 0 0.5rem 1rem;
  display: none;
  cursor: pointer;
}

.banner-blog-link {
  text-decoration: none;
  color: rgb(0,0,0,0.6);
  font-size: large;
  padding: 0.5rem 0 0.5rem 1rem;
  display: flex;
  cursor: pointer;
}

.banner-navbar.visible {
  display: flex;
}

.dropdown {
  display: none;
  position: absolute;
  background-color: #333;
  min-width: 160px;
  z-index: 1;
  top: 100%;
  left: 0;
  border-radius: 0 0 6px 6px;
}

.dropdown-item {
  color: white;
  padding: 10px 14px;
  text-align: left;
  white-space: nowrap;
}

.dropdown-item:hover {
  background-color: #444;
}

body.service-page .navbar a.active {
  background: linear-gradient(to top, #222, #666);
  color: black;
}

#nav-links {
  display: flex;
  height: 100%;
}

#nav-links a {
  margin-left: 0px;
}
.nav-item-container a.active {
  margin-left: 0px;
  color: var(--red);
}

/*-------Main-banners-------*/

.banners {
  margin-top: var(--top-margin);
  background-color: #f7f3e9;
  padding: 0vh 0%;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
}

.service-banner {
  position: relative;
  background-size: cover;
  background-position: 0% 50%;
  border-radius: 12px;
  height: auto;
  text-decoration: none;
  overflow: hidden;
  display:flex;
  grid-row: auto;
  align-items: center;
  justify-content: center;
  margin: 3vh 1vh;
  border-top: 3vh;
  flex: 1 0 auto; /* Allow it to grow, but don't shrink too small */
  max-width: 100%; /* Ensure the banners don't take up too much space */
  min-width: 250px; /* Minimum size for small screens */
  flex-direction: column;
}

.blog-banner {
  display: flex;
  flex-wrap: nowrap;
  margin-left: auto;
  margin-right: auto;
  align-items: center;
  justify-content: center;
  width:80%;
  margin-top: 1vw;
  margin-bottom: 1vW;
  border-bottom: 1pt solid rgba(215, 215, 215);
}

.blog-title {
	font-size: 21px;
	font-weight: 600;
	margin: 0;
}

.article-subsection {
	padding: 100px 20px;
	width: 60%;
    margin: auto;
}

.yt-video {
	width: 100%;
	aspect-ratio: 16 / 9;
}

.article-image {
	border-radius: 12px;
}
.article-title {
	font-size: 1.9rem;
    text-align: left;
}

.article-subtitle {
	font-size: 1.3rem;
    font-weight: 100;
}

.article-text {
	width: 60%;
	
}

.article-paragraph {
	text-align: justify;
	
}


.blog-link {
	color: rgba(0, 0, 0);
	text-decoration: none;
}

.blog-link:hover {
	text-decoration: underline;
}

.blog-description {
	margin: 10px 0 10px 0;
	font-size: 16px;
	color: rgba(0, 0, 0);
}

.blog-data-container {
	display: flex;
    gap: 5px 5px;
	order: 3;
}

.article-data-container {
	padding: 10px 0;
	display: flex;
    gap: 5px 5px;
	order: 3;
}

.blog-data {
	padding: 5px 5px 5px 0;
	margin: 0;
    font-size: 14px;
	border-right: 1pt solid rgba(215,215,215);
}

.article-data {
	padding: 5px 5px 5px 0;
	margin: 0;
    font-size: 14px;
	border-right: 1pt solid rgba(215,215,215);
}

.blog-author {
	padding: 5px 0;
	margin: 0;
    font-size: 14px;
	font-weight: 600;
}

.article-author {
	padding: 5px 0;
	margin: 0;
    font-size: 14px;
	font-weight: 600;
}

.blog-text-container {
	width: 80%
}

.blog-image-container {
	padding: 20px;
	width: 20%
}

.blog-image {
	max-width: 100%;
	height: auto;
	border-radius: 12px;
}

.blog-video {
	max-width: 100%;
	height: auto;
	border-radius: 12px;
}

.service-banner img {
  max-width: 100%;
  border-radius: 10px;
}
/*
.service-banner h3 {
  margin: 0 20px;
  margin-bottom: 7vh;
  align-items: center;
}
*/
.service-banner a {
  text-decoration: none;  /* Remove the underline from links */
  display: inline-block;   /* Ensure the link behaves like a block element for better button styling */
  max-width: 45vw;
}

.service-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  /*
  background:rgba(255, 255, 255, 0.2);
  background: linear-gradient(to bottom,
    transparent 0%,
    rgba(0,0,0,0.6) 15%,
    rgba(0,0,0,0.6) 85%,
    transparent 100%
  );

  background: linear-gradient(to bottom,
  #701422 0%,
    transparent 10%,
    transparent 90%,
    #701422 100%
  );
  */
}

.service-banner:hover .banner-description {
  opacity: 1;
  left: 0%;
}

.main-banner:hover .banner-description {
    opacity: 1;
    left: 0%;
  }
.main-banner:hover span {
    display: none;
  }
.service-banner:hover .banner-buttons {
  right: -100%;
  opacity: 0;
}

.description-title {
  font-size: 60px;
  margin-bottom: 0.5rem;
  margin-left: 0.5vw;
  width: 100%;
  font-weight: 100;
}

.description-button {
  font-size: 1vw;
  border: none;
}

.description-button:hover {
  color: var(--red);
}

.banner-description {
  will-change: left, opacity;
  font-size: 1.8vw;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 100%;
  width: 50%;
  backdrop-filter: blur(8px);
  color: white;
  text-shadow: 0 0px 8px rgba(0, 0, 0, 0.9);
  padding: 3vh 25vw;
  display: flex;
  flex-direction: column;
  align-items: end;
  justify-content: center;
  opacity: 0;
  transition: left 0.5s ease-out, opacity 0.6s ease;
  z-index: 10;
  background: rgb(0,0,0,0.17);
}


.banner-description.black {
  color: black;
  text-shadow: 0 0px 8px rgba(255, 255, 255, 0.9);
}

.main-banner .banner-description {
	padding: 3vh 10vw;
	width: 80%;
	text-align: center;
}

.main-banner .banner-description .description-title {
	font-size: 80px;	
}

.main-banner .banner-description p {
	width: 95%;
	font-size: 35px;
}



.banner-description p {
  margin-left: 3vw;
  margin-right: 3vw;
  font-size: 1.2vw;
}

.banner-text {
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border-radius: 0px;
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  position: relative;
  z-index: 2;
}

.banner-text h3 {
  font-size: clamp(4rem, 13vw, 10rem);
  letter-spacing: -0.05em;
}

.banner-buttons {
  display: grid;
  grid-template-columns: max-content max-content; /* Create 2-column layout for larger screens */
  justify-content: center;
  align-items: start;
  max-width: 100%; /* Ensure buttons don't stretch too wide */
  box-sizing: border-box;
  position: relative;
  z-index: 2;
  padding: 17vh 5vw;
  width: 100%;
  right: 0%;
  opacity: 1;
  transition: right 0.3s ease, opacity 0.3s ease;
}

.main-banner {
  position: relative;
  background-size: cover;
  background-position: 0% 50%;
  border-radius: 12px;
  height: auto;
  text-decoration: none;
  overflow: hidden;
  display:flex;
  grid-row: auto;
  align-items: center;
  justify-content: center;
  margin: 3vh 1vh;
  border-top: 3vh;
  flex: 1 0 auto; /* Allow it to grow, but don't shrink too small */
  max-width: 100%; /* Ensure the banners don't take up too much space */
  min-width: 250px; /* Minimum size for small screens */
  flex-direction: column;
  padding: 17vh 5vw;
  font-size: 80px;
  text-shadow:  2px 2px 10px rgba(0, 0, 0);
  color: white;
  cursor: pointer;
  transition: color 0.3s ease;
  font-family: 'Inter', sans-serif;
  height: 100px;
  
}

.banner-btn {
  background-color: rgba(0, 0, 0, 0);
  backdrop-filter: blur(3px);
  text-shadow:  0 0px 8px rgba(0, 0, 0, 0.9);
  color: white;
  border: none;
  font-size: clamp(1rem, 3vw, 5rem);
  cursor: pointer;
  transition: color 0.3s ease;
  font-family: 'Inter', sans-serif;
  letter-spacing: -0.02em;
  text-align: center;
  white-space: normal;
  margin: auto;
  /*width: auto;
  box-sizing: border-box;
  overflow: hidden; /* Prevent text from overflowing */
  text-overflow: ellipsis;
  /*display: flex; /* This ensures that text inside buttons is aligned properly */
  align-items: center; /* Centers the text vertically */
  position: relative;
  z-index: 0;
}

.banner-btn.white {
  text-shadow:  0 0px 8px rgba(0, 0, 0, 0.9);
  color: white;
}

.banner-btn.black {
  text-shadow:  0 0px 8px rgba(255, 255, 255, 0.9);
  color: black;
}

.banner-btn:hover {
  color: var(--red);
}

.subpage-title {
  font-size: 5vw;
  margin: 0;
  margin-top: 4vw;
  color: white;
  z-index: 70;
}

/*-------Dropdown-menu-------*/


#mega-dropdown {
	position: fixed;
    top: -100vh;
    right: 0;
    width: 1084px;
    background-color: #f7f3e9;
	opacity: 80%;
	backdrop-filter: blur(7px);
    padding: 10pt 0;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    z-index: 1000;
    transition: top 0.3s ease;
}

#mega-dropdown.show {
  display: flex;
  top: var(--navbar-height);
}

.mega-dropdown-item {
  color: black;
  padding: 10px 20px;
  width: 96%;
  border-radius: 6px;
  white-space: nowrap;
  transition: background-color 0.2s;
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  text-decoration: none;
}

.mega-dropdown-item:hover {
  color: rgb(178,7,51);
  cursor: pointer;
  padding-right: 10px;
  width: 96%;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 50px;
  height: calc(--navbar-height - 5vh);
  cursor: pointer;
  margin-right: 20px;
  gap: 0.5vh;
}

.hamburger div {
  height: 0.8vh;
  background-color: var(--red);
  border-radius: 0.7vh;
}

/*-------Banner-Dropdown-------*/

.banner-dropdown {
	position: fixed;
	right: 0;
	max-width: 550px;
	background: white;
	background-color: #f7f3e9;
	backdrop-filter: blur(7px);
	opacity: 80%;
	display: none;
	z-index: 999;
	padding: 10px;
	text-align: left;
	transition: top 0.3s ease-in-out, opacity 1s ease;
}

.banner-dropdown.show {
  display: block;
  opacity: 1;
}

.banner-dropdown-item {
  display: block;
  padding: 8px;
  text-decoration: none;
  color: black;
  text-shadow: 0 0px 8px rgba(255, 255, 255, 0.9);
}

.banner-dropdown-item:hover {
  background-color: #f2f2f2;
}


/*-------Footer-------*/

.footer {
  background-color: #222;
  color: white;
  padding: 10px 0px;
  text-align: center;
  position: relative;
  bottom: 0;
  width: 100%;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-div {
  margin-left: 10px;
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.footer a,.footer p {
  color: #aaa;
  margin: 0 5px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.footer p {
  text-align: left;
}

.footer a:hover {
  color: #fff;
  /*text-decoration: underline;*/
}

.social-icons {
  display: flex;
  align-items: center;
}

.social-icons a {
  margin: 0 5px;
}

.social-icon {
  width: 30px;
  height: 30px;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.social-icon:hover {
  transform: scale(1.1);
}

/*-------Scrolling-banner-------*/

.blog-ticker {
  overflow: hidden;
  position: relative;
  padding: 1rem 0;
  height: 150px;
  margin: 1vh;
  border-radius: 12px;
}

.blog-track {
  display: flex;
  position: absolute;
  align-items: center;
  top: 0;
  left: 0;
  transition: transform 0.8s ease-in-out;
  height: 100%;
}

.blog-item {
  width: 70vw;
  height: 100%;
  display: flex;
  align-items: center;        /* vertical center */
  justify-content: center;    /* horizontal center */
  font-size: 30px;
  font-weight: bold;
  color: white;
  text-shadow: 0 1px 4px rgba(0,0,0,0.7); /* optional, for better visibility */
  cursor: pointer;
  filter: blur(5px);
  margin: 0 0.3vw;
  border-radius: 12px;
}

.blog-item.active {
  filter: none;
  height: 100%;
}

.blog-ticker-nav {
  height: 100%;
  opacity: 1;
  backdrop-filter: blur(3px);
  background-color: rgb(0,0,0,0);
  border: none;
  z-index: 2000;
  position: absolute;
  width: calc(15vw - 1vh);
  padding: 0;
  top: 0;
  color: white;
  text-shadow: 0 0 4px black;
  border-radius: 12px;
  font-size: 2vw;
}

.blog-ticker-nav.left {
  left: 0rem;
}

.blog-ticker-nav.right {
  right: 0rem;
}

.blog-dot-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
  padding-bottom: 20px;
}

.blog-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
  transition: background 0.3s ease;
}

.blog-dot.active {
  background: var(--highlight-color, black);
}

/*-------Cookies-------*/

.cookie-popup {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: #ffffff;
  color: #000;
  padding: 1em 1.5em;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  z-index: 10000;
  font-size: 14px;
  max-width: 650px;
  margin: auto;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.cookie-popup.hidden {
  display: none;
}

.cookie-popup button {
  background-color: #007BFF;
  color: white;
  border: none;
  padding: 0.5em 1em;
  border-radius: 5px;
  cursor: pointer;
}

.cookie-popup button:hover {
  background-color: #0056b3;
}


.hidden {
  display: none;
}

.userprefs {
  position: fixed;
  bottom: 20px;
  background: white;
  padding: 20px;
  border: 1px solid #ccc;
  z-index: 1100;
  width: 30vw;
  height: 60%;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  overflow-y: auto;
}

.cookie-details {
  margin-left: 20px;
  list-style: disc;
}
.cookie-details.hidden {
  display: none;
}
.cookie-category {
  margin-bottom: 1em;
}


/*-------Sub-Sub-Pages-------*/

.sub-banner {
  position: relative;
  background-size: cover;
  background-position: 0 50%;
  height: 40vh;
  display: flex;
  text-align: center;
  align-items: center;
  justify-content: center;
  color: white;
  text-shadow: 0 0px 10px rgba(0,0,0,1);
  font-size: 33px;
  font-weight: bold;
  margin-top: var(--navbar-height);
}

.sub-banner.white {
  text-shadow:  0 0px 8px rgba(0, 0, 0, 0.9);
  color: white;
}

.sub-banner.black {
  text-shadow:  0 0px 8px rgba(255, 255, 255, 0.9);
  color: black;
}

.sub-banner-sitemap{
  position: relative;
  background-size: cover;
  background-position: center;
  height: 40vh;
  display: flex;
  text-align: center;
  align-items: center;
  justify-content: center;
  color: white;
  text-shadow: 0 0px 10px rgba(0,0,0,1);
  font-size: 5em;
  font-weight: bold;
  margin-top: var(--navbar-height);
}

.subsection {
  padding: 0 15vw;
  display: flex;
  flex-wrap: nowrap;
  margin: 1vh 0;
  align-items: center;
  justify-content: center;
}

.subsection-text {
  padding: 1em;
  font-size: 21px;
}

.subsection-text.noimg {
  flex: 0 0 100%;
  text-align: justify;
}

.subsection-text.withimg {
  flex: 0 0 30%;
}

.subsection-image img{
  border-radius: 12px;
  height: 100%;
  width: 100%;
  object-fit: contain;
}

.subsection-cont {
  width: 70%;
  padding: 0 15%;
  flex-direction: column;
}

.subsection h2 {
  text-align: left;
}

/*-------Related-buttons-------*/

.slider-wrapper {
  overflow: hidden;
  width: 100%;
}

.slider-inner {
  display: flex;
  gap: 20px;
  transition: transform 0.3s ease;
  width: fit-content;
}

.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  background: rgba(255,255,255,0.9);
  border: 1px solid #ccc;
  font-size: 24px;
  height: 40px;
  cursor: pointer;
  line-height: 40px;
  text-align: center;
  min-width: 20px;
  height: 100%;
  opacity: 1;
  backdrop-filter: blur(3px);
  background-color: rgb(0,0,0,0.05);
  border: none;
  color: white;
  text-shadow: 0 0 4px black;
  border-radius: 12px;
}

.slider-nav.left {
  left: 0rem;
}

.slider-nav.right {
  right: 0rem;
}

.slider-dotnav {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
}

.dot {
  background-color: #bbb;
  transition: background-color 0.2s;
}

.small-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  cursor: pointer;
}

.big-dot {
  width: calc(10px * var(--visible-count, 3) + 6px * (var(--visible-count, 3) - 1));
  height: 10px;
  border-radius: 9999px;
  background-color: #333;
  pointer-events: none;
}







.related-services {
  padding: 2rem;
  background-color: rgb(170,170,170,0.3);
  margin-top: 3rem;
  text-align: center;
}

.related-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 1rem;
}

.related-btn {
  background-color: var(--red);
  color: #fff;
  padding: 0.6rem 1.2rem;
  text-decoration: none;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.related-btn:hover {
  background-color: rgb(200, 57, 93);
}

.related-cards {
  display: flex;
  flex-wrap: nowrap;
  gap: 1.5rem;
  justify-content: center;
  
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.scroller {
  overflow-x: auto;
  display: flex;
}

.related-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  width: 250px;
  overflow: hidden;
  transition: transform 0.2s ease;
  color: inherit;
}

.related-card:hover {
  transform: translateY(-5px);
}

.related-card img {
  width: 250px;
  height: 140px;
  object-fit: cover;
  object-position: 0 50%;
}

.related-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0.75rem 0 0.5rem;
  text-align: center;
  padding: 1.5rem;
}

.related-card ul {
  list-style: none;
  padding: 0;
  margin: 0 1rem 1rem;
  width: 100%;
}

.related-card li {
  font-size: 0.9rem;
  padding: 0.2rem 0;
  text-align: center;
}



/*-------Media-quarries-------*/
@media (max-width: 1740px) {
  .banner-link {
    display: none;
  }
  .banner-notlink.active{
    display: flex;
  }
}

@media (max-width: 1399px) {
	.blog-text-container {
		width: 70%;
    }
    .blog-image-container {
		width: 30%
    }
	
  .subsection-text {
    font-size: calc(max(20px, 1.5vw));
  }
}

@media (max-width: 1150px) {
  /* .nav-item-container:not(.lang-switcher) { */
    /* display: none; */
  /* } */
   .main-banner {
	font-size: 60px;
	}
	.nav-item-container {
    display: none;
  }
  #mega-dropdown {
    display: none;
  }
  .article-subsection {
	width: 80%;
}
  .hamburger {
    display: flex;
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
	background-image: url(burger.png);
	opacity: 80%;
	padding: 0;
	margin-right: 7px;
	height: 20px;
	width: 50px;
  }

  .hide-hamburger {
    display: none;
  }

  .hamburger-menu {
    position: fixed;
    top: var(--navbar-height);
    right: 0;
    max-width: 300px;
    padding: 8px 16px;
    z-index: 1000;
  }
.hamburger-menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #f7f3e9;
	opacity: 80%;
    backdrop-filter: blur(7px);
    z-index: -1; /* Place the pseudo-element behind the content of the parent */
}
  .hamburger-menu a {
    display: flex;
    color: black;
    text-decoration: none;
    margin: 10px 0;
    font-size: 20px;
    flex-direction: column;
	text-shadow: 0 0px 8px rgba(255, 255, 255, 0.9);
  }
  .hamburger-menu a:hover {
  background-color: #f2f2f2;
  }

  .banner-blog-link {
	font-size: max(20px, 2vw);
  }
  /*banner navbar csak highlightot mutat*/
  .banner-link {
    display: none;
  }

  .banner-notlink.active {
    display: flex;
  }
  
  .quote-form .form-grid {
    display: flex;
    flex-direction: column;
  }
  
  .userprefs {
    width: 50vw;
  }

  .subsection {
    padding: 0 2vw;
    flex-direction: column;
  }

  .subsection.right {
    flex-direction: column-reverse;
  }
  .article-text {
	width: 80%;
}
  .blog-text-container {
		width: 60%;
    }
    .blog-image-container {
		width: 40%
    }
	.blog-description {
		display: none;
	}
	.blog-data-container {
		margin: 10px 0;
	}
}

@media (max-width: 550px) { 
.banner-dropdown {
	width: 100%;
}
.banner-notlink {
	padding: 8px 10px;
	
}
.banner-dropdown-item {
	padding: 8px 21px;
}
.banner-nav-left {
	display: none;
}
}

@media (max-width: 620px) {
	
	.main-banner {
	font-size: 40px;
	}
	
  .related-services {
    padding: 2rem 0;
  }
  .footer-div {
    align-items: flex-start;
    flex-direction: column;
  }
  .legals {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
	text-align: left;
  }
  .social-icons {
    margin-left: 10px;
    margin-top: 10px;
  }
  .article-subsection {
	width: 90%;
}
  .article-text {
	width: 100%;
	
}
  .blog-banner {
        flex-direction: column;
    }
    .blog-text-container {
        order: 2;
		width: 100%;
    }
    .blog-image-container {
        order: 1;
		width: 100%
    }
	.blog-description {
		display: none;
	}
	.blog-data-container {
		margin: 10px 0;
	}
}

@media (max-aspect-ratio: 1/1) {
  :root {
    --navbar-height: 7vh;
    --top-margin: 13vh;
  }
  /*---hamburger menühöz---*/
  /* .nav-item-container:not(.lang-switcher) { */
    /* display: none; */
  /* } */
.nav-item-container {
    display: none;
  }
  #mega-dropdown {
    display: none;
  }
  
  .hamburger {
    display: flex;
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
	background-image: url(burger.png);
	padding: 0;
	margin-right: 7px;
	height: 20px;
	width: 50px;
  }

  .hide-hamburger {
    display: none;
  }

  .hamburger-menu {
    display: none;
	position: fixed;
	top: var(--navbar-height);
	right: 0;
	background-color: rgb(240, 240, 240, 0.3);
	backdrop-filter: blur(7px);
	max-width: 300px;
	padding: 8px 16px;
	z-index: 1000;
  }

  .hamburger-menu a {
    display: flex;
    color: black;
    text-decoration: none;
    margin: 10px 0;
    font-size: 20px;
    flex-direction: column;
	text-shadow: 0 0px 8px rgba(255, 255, 255, 0.9);
  }
  .hamburger-menu a:hover {
  background-color: #f2f2f2;
  }
  /*--------------------------------*/
  /*bannerek egy oszloban listázva legyenek*/
  .banner-buttons {
    grid-template-columns: 1fr;
    gap: 2vh 0;
    padding: 7vh 0;
  }

  .banner-btn {
    font-size: 30px;
  }
  /*-------------------------------*/
  .banner-blog-link {
    font-size: max(20px, 3vw);
  }
  /*banner navbar csak a highlightot mutassa*/
  .banner-links {
    display: none;
  }

  .banner-notlink.active {
    display: flex;
  }


  .service-banner a {
    max-width: 90vw;
    margin-right: auto;
  }

  .service-banner:hover .banner-description {
    opacity: 0;
    left: 100%;
  }
  
  .main-banner:hover .banner-description {
    opacity: 0;
    left: 100%;
  }
  .main-banner:hover span {
    display: none;
  }
 
  .service-banner:hover {
    align-items: center;
  }

  .subsection {
    padding: 0 2vw;
    flex-direction: column;
  }

  .subsection.right {
    flex-direction: column-reverse;
  }

  .subsection-text{
    font-size: calc(max(20px, 3vw));
  }

  .subsection-text.withimg{
    font-size: calc(max(20px, 3vw));
    flex: 1 1 100%;
  }
  /*minden másodikat visszafordít*/
  .subsection.even {
    flex-direction: column-reverse;
  }

  .footer a,.footer p {
    font-size: 10px;
  }

  

  .blog-item {
    font-size: max(22px, 7vw);
    text-align: center;
    text-overflow: ellipsis;
  }

  .sub-banner-sitemap{
    font-size: 3em;
  }

  .quote-form .form-grid {
    display: flex;
    flex-direction: column;
  }
}

@media (max-width: 299px) {
  * {
    display: none;
  }
}