/*!
Theme Name: PlaygroundTheme
Theme URI: http://underscores.me/
Author: Underscores.me
Author URI: http://underscores.me/
Description: Description
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: playgroundtheme
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

PlaygroundTheme is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Generic
	- Normalize
	- Box sizing
# Base
	- Typography
	- Elements
	- Links
	- Forms
## Layouts
# Components
	- Navigation
	- Posts and pages
	- Comments
	- Widgets
	- Media
	- Captions
	- Galleries
# plugins
	- Jetpack infinite scroll
# Utilities
	- Accessibility
	- Alignments

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

/*--------------------------------------------------------------
# Generic
--------------------------------------------------------------*/

/* Normalize
--------------------------------------------- */

/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
	 ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */
html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
}

/* Sections
	 ========================================================================== */

/**
 * Remove the margin in all browsers.
 */
body {
  margin: 0;
}

/**
 * Render the `main` element consistently in IE.
 */
main {
  display: block;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */
h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

/* Grouping content
	 ========================================================================== */

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */
hr {
  box-sizing: content-box;
  height: 0;
  overflow: visible;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
pre {
  font-family: monospace, monospace;
  font-size: 1em;
}

/* Text-level semantics
	 ========================================================================== */

/**
 * Remove the gray background on active links in IE 10.
 */
a {
  background-color: transparent;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */
abbr[title] {
  border-bottom: none;
  text-decoration: underline;
  text-decoration: underline dotted;
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */
b,
strong {
  font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
code,
kbd,
samp {
  font-family: monospace, monospace;
  font-size: 1em;
}

/**
 * Add the correct font size in all browsers.
 */
small {
  font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */
sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/* Embedded content
	 ========================================================================== */

/**
 * Remove the border on images inside links in IE 10.
 */
img {
  border-style: none;
}

/* Forms
	 ========================================================================== */

/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */
button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  font-size: 100%;
  line-height: 1.15;
  margin: 0;
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */
button,
input {
  overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */
button,
select {
  text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */
button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */
button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */
fieldset {
  padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *		`fieldset` elements in all browsers.
 */
legend {
  box-sizing: border-box;
  color: inherit;
  display: table;
  max-width: 100%;
  padding: 0;
  white-space: normal;
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */
progress {
  vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */
textarea {
  overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */
[type="checkbox"],
[type="radio"] {
  box-sizing: border-box;
  padding: 0;
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */
[type="search"] {
  -webkit-appearance: textfield;
  outline-offset: -2px;
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */
[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */
::-webkit-file-upload-button {
  -webkit-appearance: button;
  font: inherit;
}

/* Interactive
	 ========================================================================== */

/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */
details {
  display: block;
}

/*
 * Add the correct display in all browsers.
 */
summary {
  display: list-item;
}

/* Misc
	 ========================================================================== */

/**
 * Add the correct display in IE 10+.
 */
template {
  display: none;
}

/**
 * Add the correct display in IE 10.
 */
[hidden] {
  display: none;
}

/* Box sizing
--------------------------------------------- */

/* Inherit box-sizing to more easily change it's value on a component level.
@link http://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ */
*,
*::before,
*::after {
  box-sizing: inherit;
}

html {
  box-sizing: border-box;
}

/*--------------------------------------------------------------
# Base
--------------------------------------------------------------*/

/* Typography
--------------------------------------------- */
body,
button,
input,
select,
optgroup,
textarea {
  color: #404040;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu,
    Cantarell, "Helvetica Neue", sans-serif;
  font-size: 1rem;
  line-height: 1.5;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  clear: both;
}

p {
  margin-bottom: 1.5em;
}

dfn,
cite,
em,
i {
  font-style: italic;
}

blockquote {
  margin: 0 1.5em;
}

address {
  margin: 0 0 1.5em;
}

pre {
  background: #eee;
  font-family: "Courier 10 Pitch", courier, monospace;
  line-height: 1.6;
  margin-bottom: 1.6em;
  max-width: 100%;
  overflow: auto;
  padding: 1.6em;
}

code,
kbd,
tt,
var {
  font-family: monaco, consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
}

abbr,
acronym {
  border-bottom: 1px dotted #666;
  cursor: help;
}

mark,
ins {
  background: #fff9c0;
  text-decoration: none;
}

big {
  font-size: 125%;
}

/* Elements
--------------------------------------------- */
body {
  background: #fff;
}

hr {
  background-color: #ccc;
  border: 0;
  height: 1px;
  margin-bottom: 1.5em;
}

ul,
ol {
  margin: 0 0 1.5em 3em;
}

ul {
  list-style: disc;
}

ol {
  list-style: decimal;
}

li > ul,
li > ol {
  margin-bottom: 0;
  margin-left: 1.5em;
}

dt {
  font-weight: 700;
}

dd {
  margin: 0 1.5em 1.5em;
}

/* Make sure embeds and iframes fit their containers. */
embed,
iframe,
object {
  max-width: 100%;
}

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

figure {
  margin: 1em 0;
}

table {
  margin: 0 0 1.5em;
  width: 100%;
}

/* Links
--------------------------------------------- */
a {
  color: inherit;
}

a:visited {
  color: inherit;
}

a:hover,
a:focus,
a:active {
  color: inherit;
}

a:focus {
  outline: thin dotted;
}

a:hover,
a:active {
  outline: 0;
}

/* Forms
--------------------------------------------- */
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
  border: 1px solid;
  border-color: #ccc #ccc #bbb;
  border-radius: 3px;
  background: #e6e6e6;
  color: rgba(0, 0, 0, 0.8);
  line-height: 1;
  padding: 0.6em 1em 0.4em;
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
  border-color: #ccc #bbb #aaa;
}

button:active,
button:focus,
input[type="button"]:active,
input[type="button"]:focus,
input[type="reset"]:active,
input[type="reset"]:focus,
input[type="submit"]:active,
input[type="submit"]:focus {
  border-color: #aaa #bbb #bbb;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
textarea {
  color: #666;
  border: 1px solid #ccc;
  border-radius: 3px;
  padding: 3px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="range"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input[type="time"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="color"]:focus,
textarea:focus {
  color: #111;
}

select {
  border: 1px solid #ccc;
}

textarea {
  width: 100%;
}

/*--------------------------------------------------------------
# Layouts
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Components
--------------------------------------------------------------*/

/* Navigation
--------------------------------------------- */
.main-navigation {
  display: block;
}

.main-navigation ul {
  display: none;
  list-style: none;
  margin: 0;
  padding-left: 0;
}

.main-navigation ul ul {
  box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
  float: left;
  position: absolute;
  top: 100%;
  left: -999em;
  z-index: 99999;
}

.main-navigation ul ul ul {
  left: -999em;
  top: 0;
}

.main-navigation ul ul li:hover > ul,
.main-navigation ul ul li.focus > ul {
  display: block;
  left: auto;
}

.main-navigation ul ul a {
  width: 200px;
}

.main-navigation ul li:hover > ul,
.main-navigation ul li.focus > ul {
  left: auto;
}

.main-navigation li {
  position: relative;
}

.main-navigation a {
  display: block;
  text-decoration: none;
}

/* Small menu. */
.menu-toggle,
.main-navigation.toggled ul {
  display: block;
}

@media screen and (min-width: 37.5em) {
  .menu-toggle {
    display: none;
  }

  .main-navigation ul {
    display: flex;
  }
}

.site-main .comment-navigation,
.site-main .posts-navigation,
.site-main .post-navigation {
  margin: 0 0 1.5em;
}

.comment-navigation .nav-links,
.posts-navigation .nav-links,
.post-navigation .nav-links {
  display: flex;
}

.comment-navigation .nav-previous,
.posts-navigation .nav-previous,
.post-navigation .nav-previous {
  flex: 1 0 50%;
}

.comment-navigation .nav-next,
.posts-navigation .nav-next,
.post-navigation .nav-next {
  text-align: end;
  flex: 1 0 50%;
}

/* Posts and pages
--------------------------------------------- */
.sticky {
  display: block;
}

.post,
.page {
  margin: 0 0 1.5em;
}

.updated:not(.published) {
  display: none;
}

.page-content,
.entry-content,
.entry-summary {
  margin: 1.5em 0 0;
}

.page-links {
  clear: both;
  margin: 0 0 1.5em;
}

/* Comments
--------------------------------------------- */
.comment-content a {
  word-wrap: break-word;
}

.bypostauthor {
  display: block;
}

/* Widgets
--------------------------------------------- */
.widget {
  margin: 0 0 1.5em;
}

.widget select {
  max-width: 100%;
}

/* Media
--------------------------------------------- */
.page-content .wp-smiley,
.entry-content .wp-smiley,
.comment-content .wp-smiley {
  border: none;
  margin-bottom: 0;
  margin-top: 0;
  padding: 0;
}

/* Make sure logo link wraps around logo image. */
.custom-logo-link {
  display: inline-block;
}

/* Captions
--------------------------------------------- */
.wp-caption {
  margin-bottom: 1.5em;
  max-width: 100%;
}

.wp-caption img[class*="wp-image-"] {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.wp-caption .wp-caption-text {
  margin: 0.8075em 0;
}

.wp-caption-text {
  text-align: center;
}

/* Galleries
--------------------------------------------- */
.gallery {
  margin-bottom: 1.5em;
  display: grid;
  grid-gap: 1.5em;
}

.gallery-item {
  display: inline-block;
  text-align: center;
  width: 100%;
}

.gallery-columns-2 {
  grid-template-columns: repeat(2, 1fr);
}

.gallery-columns-3 {
  grid-template-columns: repeat(3, 1fr);
}

.gallery-columns-4 {
  grid-template-columns: repeat(4, 1fr);
}

.gallery-columns-5 {
  grid-template-columns: repeat(5, 1fr);
}

.gallery-columns-6 {
  grid-template-columns: repeat(6, 1fr);
}

.gallery-columns-7 {
  grid-template-columns: repeat(7, 1fr);
}

.gallery-columns-8 {
  grid-template-columns: repeat(8, 1fr);
}

.gallery-columns-9 {
  grid-template-columns: repeat(9, 1fr);
}

.gallery-caption {
  display: block;
}

/*--------------------------------------------------------------
# Plugins
--------------------------------------------------------------*/

/* Jetpack infinite scroll
--------------------------------------------- */

/* Hide the Posts Navigation and the Footer when Infinite Scroll is in use. */
.infinite-scroll .posts-navigation {
  display: none;
}

/* Re-display the Theme Footer when Infinite Scroll has reached its end. */
.infinity-end.neverending .site-footer {
  display: block;
}

/*--------------------------------------------------------------
# Utilities
--------------------------------------------------------------*/

/* Accessibility
--------------------------------------------- */

/* Text meant only for screen readers. */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: #f1f1f1;
  border-radius: 3px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  clip-path: none;
  color: #21759b;
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

/* Do not show the outline on the skip link target. */
#primary[tabindex="-1"]:focus {
  outline: 0;
}

/* Alignments
--------------------------------------------- */
.alignleft {
  /*rtl:ignore*/
  float: left;

  /*rtl:ignore*/
  margin-right: 1.5em;
  margin-bottom: 1.5em;
}

.alignright {
  /*rtl:ignore*/
  float: right;

  /*rtl:ignore*/
  margin-left: 1.5em;
  margin-bottom: 1.5em;
}

.aligncenter {
  clear: both;
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.5em;
}

/* 
============================================================
MY CUSTOM STYLES (MATCHING FIGMA)
============================================================

*/

/* --- Global Variables --- */
:root {
  --font-main: "Figtree", sans-serif;
  --primary-red: #e31e24;
  --text-dark: #36393c;
}

/* --- Base Typography --- */
body {
  font-family: var(--font-main);
  font-weight: 400; /* Regular for body text */
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Heading Styles (Matching Figma) --- */
h1,
h2,
h3,
h4,
h5,
h6,
/* --- 1. Global Layout --- */

html {
  margin-top: 0;
}

.site-header {
  margin: 0;
  padding: 0;
  position: absolute; /* This makes the header "float" over the Hero image */
  width: 100%;
  z-index: 100;
  background: transparent; /* Or #ffffff if you want it white like Figma */
}

/* Hide the default site title and description */
.site-title,
.site-description {
  display: none !important;
}

/* Make sure the header doesn't push the hero down */
.site-header {
  position: absolute; /* Allows hero to sit behind the header */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent; /* Or #ffffff depending on Figma */
}

/* Also, reset the default WordPress group margins */
.site-main {
  margin-top: 0 !important;
}

#page {
  margin: 0;
}

.container {
  max-width: 1200px; /* Adjust this to match your Figma frame width */
  margin: 0 auto;
}

@media (min-width: 769px) and (max-width: 1024px) {
  .container {
    padding-left: 32px;
    padding-right: 32px;
  }
}

.hp-hero__inner {
  width: 100%;
}

/* =========================================================================================================
   |   NAVBAR ||
============================================================================================================*/
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  width: 100%;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  height: 70px;
}

/* --- Logo --- */
.nav-logo {
  margin-bottom: 15px;
}

.nav-logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo-text {
  font-size: 1.6rem;
  font-weight: 900;
  color: #e31e24;
  letter-spacing: -0.5px;
}

.nav-logo img {
  height: 45px;
  width: auto;
}

/* --- Center Nav Menu --- */
.main-navigation {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu li {
  position: relative;
}

.nav-menu li a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #1a1a1a;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.2s;
}

.nav-menu li a:hover {
  background-color: #f5f5f5;
  color: #e31e24;
}

/* Kinek szol dropdown chevron */

.nav-menu > li.menu-item-has-children > a::after {
  content: "";
  display: inline-block;
  width: 12px;
  height: 24px;
  margin-left: 4px;

  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 12 24'%3E%3Cdefs%3E%3Cpath id='a' fill='currentColor' d='m7.588 12.43-1.061 1.06L.748 7.713a.996.996 0 0 1 0-1.413L6.527.52l1.06 1.06-5.424 5.425z'/%3E%3C/defs%3E%3Cuse fill-rule='evenodd' href='%23a' transform='rotate(-180 5.02 9.505)'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  vertical-align: middle;
  transform: rotate(90deg);
  transition: transform 0.3s;
}

/* Rotate arrow when hovering */
.nav-menu > li.menu-item-has-children:hover > a::after {
  transform: rotate(180deg);
}

/* --- Dropdowns --- */
.nav-menu .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  min-width: 200px;
  list-style: none;
  padding: 8px 0;
  margin: 0;
  z-index: 100;
}

.nav-menu li:hover .sub-menu {
  display: block;
}

.nav-menu .sub-menu li a {
  padding: 10px 20px;
  border-radius: 0;
  font-size: 0.9rem;
}

.nav-menu .sub-menu li a:hover {
  background-color: #f5f5f5;
}

/* --- Right Actions --- */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-search-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: #1a1a1a;
  display: flex;
  align-items: center;
  padding: 4px;
  transition: color 0.2s;
}

.nav-search-toggle:hover {
  color: #e31e24;
}

/* Search Bar */
.nav-search-bar {
  display: none;
  position: absolute;
  top: 70px;
  right: 0;
  left: 0;
  background: #ffffff;
  padding: 16px 32px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 999;
}

.nav-search-bar.active {
  display: block;
}

.nav-search-bar form {
  display: flex;
  max-width: 600px;
  margin: 0 auto;
  gap: 8px;
}

.nav-search-bar input {
  flex: 1;
  padding: 10px 16px;
  border: 2px solid #e31e24;
  border-radius: 6px;
  font-size: 1rem;
  outline: none;
}

.nav-search-bar button {
  padding: 10px 20px;
  background: #e31e24;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
}

/* Kapcsolat Button */
.btn-nav {
  background-color: #e31e24;
  color: #ffffff !important;
  padding: 10px 22px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none !important;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.btn-nav:hover {
  opacity: 0.9;
}

/* --- Hamburger --- */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #1a1a1a;
  border-radius: 2px;
  transition: all 0.3s;
}

/* Hamburger open state */
.nav-hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
}
.nav-hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- Mobile Menu --- */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: #ffffff;
  padding: 16px 24px 24px;
  border-top: 1px solid #f0f0f0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.mobile-menu.active {
  display: flex;
}

.mobile-nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav-menu li a {
  display: block;
  padding: 12px 8px;
  font-size: 1rem;
  font-weight: 500;
  color: #1a1a1a;
  text-decoration: none;
  border-bottom: 1px solid #f0f0f0;
}

.mobile-nav-menu li a:hover {
  color: #e31e24;
}

.mobile-kapcsolat {
  margin-top: 16px;
  text-align: center;
}

.nav-search-bar form {
  position: relative;
}

.search-suggestions {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #eee;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  z-index: 999;
  overflow: hidden;
}

.suggestion-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  text-decoration: none;
  color: #36393c;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.suggestion-item:hover {
  background: #f5f5f5;
}

.suggestion-type {
  font-size: 0.7rem;
  font-weight: 600;
  color: white;
  background: #e31e24;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

.suggestion-category .suggestion-type {
  background: #36393c;
}

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
  .main-navigation {
    display: none; /* Hide desktop menu */
  }

  .btn-nav:not(.mobile-kapcsolat) {
    display: none; /* Hide desktop Kapcsolat button */
  }

  .nav-hamburger {
    display: flex; /* Show hamburger */
  }

  .nav-container {
    padding: 0 20px;
  }
}

/* =========================================================================================================
   |   FOOTER ||
============================================================================================================*/
/* ── FOOTER ── */
.site-footer {
  border-top: 1px solid #e5e5e5;
  background: #fff;
  padding: 60px 0 0;
  font-size: 0.9rem;
  color: #36393c;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 48px;
  display: grid;
  grid-template-columns: 1.5fr 1.5fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-logo-text {
  font-size: 1.4rem;
  font-weight: 800;
  color: #e31e24;
}

.footer-socials {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  color: #777;
}

.footer-socials a {
  color: #777;
  transition: color 0.2s;
}

.footer-socials a:hover {
  color: #e31e24;
}

.footer-col-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: #36393c;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul li,
.footer-col ul a {
  color: #555;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col ul a:hover {
  color: #e31e24;
}

.footer-bottom {
  border-top: 1px solid #e5e5e5;
  text-align: center;
  padding: 16px 24px;
  font-size: 0.8rem;
  color: #999;
  background: #1a1a1a;
  color: #fff;
}

@media (max-width: 1024px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* =========================================================================================================
   |   FRONT-PAGE ||
============================================================================================================*/
/* ── FOOTER ── */
.site-footer {
  border-top: 1px solid #e5e5e5;
  background: #fff;
  padding: 60px 0 0;
  font-size: 0.9rem;
  color: #36393c;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 48px;
  display: grid;
  grid-template-columns: 1.5fr 1.5fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-logo-text {
  font-size: 1.4rem;
  font-weight: 800;
  color: #e31e24;
}

.footer-socials {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  color: #777;
}

.footer-socials a {
  color: #777;
  transition: color 0.2s;
}

.footer-socials a:hover {
  color: #e31e24;
}

.footer-col-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: #36393c;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul li,
.footer-col ul a {
  color: #555;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col ul a:hover {
  color: #e31e24;
}

.footer-bottom {
  border-top: 1px solid #e5e5e5;
  text-align: center;
  padding: 16px 24px;
  font-size: 0.8rem;
  color: #999;
  background: #1a1a1a;
  color: #fff;
}

@media (max-width: 1024px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* 
============================================================
-- DESKTOP VIEW --
============================================================
*/

@media (min-width: 768px) {
  /* --- Hero Section --- */
  .hp-hero {
    aspect-ratio: unset; 
    overflow: visable;
    min-height: 500px; 
    height: auto;
    padding: 80px 0; 
    background-size: cover; 
    background-position: top center;
    background-repeat: no-repeat;
    background-color: #000000;
    align-items: center;
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
    color: #f0f0f0;
  }

  /* Dark overlay for readability */
  .hp-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
  }

  .hp-hero__inner {
    width: 100%;
  }

  .hp-hero .container {
    position: relative;
    z-index: 2;
    width: 100%;
    margin: 0 auto;
    padding-top: 380px;
  }

  /* --- 3. Hero Text --- */
  .hp-hero__intro {
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: 400;
    letter-spacing: 0.35px;
  }

  .hp-hero__title {
    font-weight: 700;
    line-height: 1.1;
    font-style: bold;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    font-size: 60px; 
    letter-spacing: 0em; 
    font-family: var(--font-main);
    margin-top: 0;
    margin-bottom: 0px;
  }

  /* --- 4. Buttons --- */
  .hp-hero__actions {
    display: flex;
    gap: 10px;
    margin-top: 50px;
  }

  .hp-hero__actions .btn {
    display: inline-block;
    background-color: #e31e24; /* Kompan Red */
    color: #fff;
    text-decoration: none;
    font-family: var(--font-main);
    letter-spacing: 0.01em;
    border: none;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 600;
    text-transform: none; /* Keep text as written */
    margin-right: 15px;
    transition: background 0.3s ease;
  }

  .btn:hover {
    background-color: #c62828; /* Darker red on hover */
    opacity: 0.9;
  }

  /* --- Intro Section --- */
  .hp-intro {
    padding: 100px 0; 
    background-color: #ffffff;
    text-align: center;
  }

  .container--narrow {
    max-width: 764px; 
    margin: 0 auto;
  }

  .hp-intro__text {
    font-size: 30px; 
    font-weight: 400; 
    line-height: 1.4;
    color: #36393c;
    margin: 0;
    letter-spacing: 0px;
  }

  /* --- Categories Section --- */
  .hp-categories {
    padding: 80px 0;
  }

  .hp-categories__header {
    margin-bottom: 50px;
  }

  .section-title {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #36393c;
  }

  .section-subtitle {
    font-size: 1.1rem;
    font-weight: 400;
    color: #666;
    margin: auto 0;
  }

  /* --- The Card Grid --- */
  .hp-categories__grid {
    display: flex;
    gap: 20px;
    padding-bottom: 20px;
  }

  .category-card {
    flex: 1; 
    min-width: 180px; 
    text-align: center;
    color: inherit;
    text-decoration: none;
  }

  .category-card__image {
    aspect-ratio: 4 / 5; 
    overflow: hidden;
    border-radius: 12px; 
  }

  .category-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    transition: transform 0.3s ease;
  }

  .category-card:hover img {
    transform: scale(1.05); 
  }

  .category-card:focus-visible {
    outline: 2px solid #c62828;
    outline-offset: 4px;
  }

  .category-card__title {
    font-size: 1rem;
    font-weight: 500;
    color: #36393c;
    margin: 0;
  }

  /* --- About --- */

  .hp-about {
    padding: 100px 0;
    background-color: #ffffff;
  }

  .hp-about__grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr; 
    gap: 80px;
    align-items: flex-start;
  }

  .hp-about__main-title {
    font-size: 36px;
    line-height: 40px;
    font-weight: 600;
    margin-bottom: 30px;
    color: #36393c;
  }

  .hp-about__main-text {
    font-size: 16px;
    font-weight: 400;
    color: #666;
    line-height: 1.5;
  }

  .hp-about__content {
    display: flex;
    flex-direction: column;
    gap: 40px;
  }

  .hp-about__feature-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #36393c;
  }

  .hp-about__feature-text {
    font-size: 16px;
    color: #444;
    line-height: 1.6;
  }

  .hp-about__link {
    display: inline-flex;
    align-items: center;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    margin-top: 10px;
    transition: color 0.2s ease;
  }

  .hp-about__link:visited {
    color: #36393c;
  }

  .hp-about__link .arrow {
    margin-left: 8px;
    font-size: 1.4rem;
    line-height: 1;
  }

  .hp-about__link:hover {
    color: var(--primary-red);
  }

  /* --- Services Section (Mit keresel?) --- */
  .hp-services {
    padding: 80px 0;
    background-color: #ffffff;
  }

  .hp-services__header {
    margin-bottom: 40px;
  }

  .hp-services__header .section-title {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 5px;
  }

  .hp-services__header .section-subtitle {
    font-size: 16px;
    font-weight: 400;
    color: #666;
    margin-top: 5px;
  }

  .hp-services__grid {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 30px;
  }

  .service-card {
    text-decoration: none; 
    display: block;
  }

  .service-card__image {
    aspect-ratio: 1 / 1; 
    margin-bottom: 20px;
    overflow: hidden;
  }

  .service-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
  }

  .service-card:hover .service-card__image img {
    transform: scale(1.03); 
  }

  .service-card__title {
    font-size: 20px;
    font-weight: 600;
    color: #111;
    margin-bottom: 8px;
    transition: color 0.3s ease;
  }

  .service-card__link {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    display: inline-flex;
    align-items: center;
  }

  .service-card__link:hover {
    color: var(--primary-red);
  }

  .service-card__link .arrow {
    margin-left: 5px;
    font-size: 1.2rem;
  }

  .service-card:hover .service-card__link .arrow {
    color: var(--primary-red);
  }

  /* --- CTA Banner Section --- */
  .hp-cta-banner {
    padding: 60px 0;
    background-color: #ffffff;
  }

  .hp-cta-banner__inner {
    position: relative;
    width: 100%;
    padding: 80px 60px; 
    background-size: cover;
    background-position: center;
    border-radius: 16px; 
    overflow: hidden;
    color: #ffffff;
    display: flex;
    align-items: center;
  }

  .hp-cta-banner__content {
    max-width: 600px;
    position: relative;
    z-index: 2;
  }

  .hp-cta-banner__subtitle {
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 15px;
    opacity: 0.9;
  }

  .hp-cta-banner__title {
    font-size: 36px;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 30px;
    color: #ffffff;
  }

  /* Adjust button inside banner if needed */
  .hp-cta-banner__actions .btn {
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 700;
  }

  .hp-cta-banner__actions .btn {
    display: inline-block;
    background-color: #e31e24; /* Kompan Red */
    color: #fff;
    text-decoration: none;
    font-family: var(--font-main);
    letter-spacing: 0.01em;
    border: none;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 600;
    text-transform: none; /* Keep text as written */
    margin-right: 15px;
    transition: background 0.3s ease;
  }
}

/* 
============================================================
MOBILE RESPONSIVE STYLES (MATCHING FIGMA)
============================================================
*/

/* --- Mobile / Tablet Scroll Slider --- */
@media (max-width: 1024px) {
  /* --- 1. Header Adjustment --- */
  .hp-categories {
    padding: 60px 0;
    margin-left: 0 !important; 
    overflow: hidden; 
  }

  .hp-categories__header {
    margin-left: 24px;
    margin-bottom: 30px;
    padding-right: 24px;
  }

  .section-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #36393c;
  }

  .section-subtitle {
    font-size: 15px;
    line-height: 1.4;
    color: #666;
  }

  /* --- 2. The Slider Grid --- */
  .hp-categories__grid {
    display: flex;
    flex-wrap: nowrap; 
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;

    /* Spacing for "Peeking" effect */
    padding-left: 24px;
    padding-right: 24px;
    gap: 23px;
    margin-left: 23px;

    /* Hide scrollbars */
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .hp-categories__grid::-webkit-scrollbar {
    display: none;
  }

  /* --- 3. The Category Card --- */
  .category-card {
    flex: 0 0 65%; /* 65% width allows the second card to peek in from the right */
    scroll-snap-align: start;
    text-align: center;
    display: flex;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
  }

  .category-card__image {
    aspect-ratio: 4 / 5; 
    border-radius: 20px; 
    margin-bottom: 15px;
    width: 100%;
    overflow: hidden;
  }

  .category-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .category-card__title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-top: auto; /* Pushes text to bottom if heights vary */
  }
}

@media (max-width: 768px) {
  /* --- 1. Hero Section Mobile --- */
  .hp-hero {
    display: flex;
    align-items: flex-end; 
    justify-content: center;
    min-height: 100svh; 
    padding-bottom: 40px; 
    background-size: cover;
    background-position: center;
    overflow: visable;
    height: auto;
  }

  .hp-hero .container {
    width: 100%;
    margin: 0;
    padding-top: 0;
    padding: 0 20px;
  }

  /* --- 2. Fix Buttons (This is what broke in Image 5) --- */
  .hp-hero__actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin-top: 30px; /
  }

  /* Force the button styling to apply specifically in mobile */
  .hp-hero__actions .btn {
    display: block;
    width: 100%;
    padding: 16px 20px;
    background-color: #e31e24 !important; /* Kompan Red */
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 16px;
    border-radius: 8px;
    text-align: center;
    line-height: 1.2;
    box-sizing: border-box; 
  }

  .hp-hero__actions .btn:hover {
    opacity: 0.9;
    transform: none;
  }

  /* --- 3. Fix Typography --- */
  .hp-hero__title {
    font-size: 2.6rem !important;
    line-height: 1.1;
    margin: 0 0 10px 0;
    color: #ffffff;
    font-weight: 700;
  }

  .hp-hero__intro {
    font-size: 1rem;
    color: #ffffff;
    margin-bottom: 5px;
  }

  /* --- Intro Section Mobile ---*/

  .hp-intro {
    padding: 80px 24px; 
    background-color: #ffffff;
    text-align: center;
  }

  .container--narrow {
    max-width: 100%; 
    margin: 0 auto;
  }

  .hp-intro__text {
    font-size: 22px; 
    font-weight: 400; 
    line-height: 1.5;
    color: #333333;
    margin: 0;
    letter-spacing: -0.01em; 
  }

  /* --- Categories Section Mobile --- */
  .hp-categories {
    padding: 60px 0;
    margin-left: 0; 
  }

  .hp-categories__header {
    padding: 0 24px; 
    margin-left: 0;
    margin-bottom: 30px;
    text-align: left; 
  }

  .section-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #36393c;
  }

  .section-subtitle {
    font-size: 16px;
    line-height: 1.4;
    color: #666;
  }

  /* --- About Section --- */
  .hp-about {
    padding: 60px 24px; 
    background-color: #ffffff;
  }

  /* 1. Change grid to single column */
  .hp-about__grid {
    display: flex;
    flex-direction: column;
    gap: 40px; 
  }

  /* 2. Style the main heading and intro text */
  .hp-about__main-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
  }

  .hp-about__main-text {
    font-size: 16px;
    line-height: 1.5;
    color: #444444;
    margin-bottom: 10px;
  }

  /* 3. Style the detailed feature blocks */
  .hp-about__content {
    display: flex;
    flex-direction: column;
    gap: 35px; 
  }

  .hp-about__feature-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
  }

  .hp-about__feature-text {
    font-size: 15px;
    line-height: 1.6;
    color: #444444;
  }

  /* 4. Style the "Learn More" link */
  .hp-about__link {
    font-size: 16px;
    font-weight: 600;
    color: #111111;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    margin-top: 10px;
  }

  .hp-about__link .arrow {
    margin-left: 8px;
    font-size: 1.2rem;
  }

  /* --- Services Section (Mit keresel?) Mobile --- */
  .hp-services {
    padding: 60px 24px;
    background-color: #ffffff;
  }

  .hp-services__header {
    margin-bottom: 30px;
    text-align: left; 
  }

  /* 1. Stack the grid vertically */
  .hp-services__grid {
    display: flex;
    flex-direction: column;
    gap: 40px; 
  }

  .service-card {
    width: 100%;
    display: block;
    text-decoration: none;
  }

  /* 2. Style the image container */
  .service-card__image {
    aspect-ratio: 1 / 1; 
    width: 100%;
    margin-bottom: 20px;
    border-radius: 8px; 
    overflow: hidden;
  }

  .service-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* 3. Style the typography */
  .service-card__title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
  }

  .service-card__link {
    font-size: 16px;
    font-weight: 600;
    color: #111111;
    display: inline-flex;
    align-items: center;
  }

  .service-card__link .arrow {
    margin-left: 6px;
    font-size: 1.2rem;
  }

  /* --- CTA Banner Section Mobile --- */
  .hp-cta-banner {
    padding: 40px 20px; /
  }

  .hp-cta-banner__inner {
    padding: 60px 30px; 
    border-radius: 20px; 
    display: flex;
    justify-content: center;
    align-items: center;
    aspect-ratio: 1 / 1.1; 
    color: #ffffff;
  }

  .hp-cta-banner__content {
    max-width: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center; 
    gap: 10px;
  }

  .hp-cta-banner__subtitle {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 15px;
    opacity: 1; 
    color: #ffffff;
    letter-spacing: 0.1rem;
  }

  .hp-cta-banner__title {
    font-size: 30px; 
    line-height: 1.2;
    font-weight: 500;
    margin-bottom: 30px;
    color: #ffffff;
    line-height: 1.5;
  }

  /* --- CTA Gomb Mobilone --- */
  .hp-cta-banner__actions {
    width: 100%;
  }

  .hp-cta-banner__actions .btn {
    width: 100%; 
    padding: 18px 20px;
    font-size: 16px;
    background-color: #e31e24;
    border-radius: 12px;
    display: block;
    text-align: center;
  }
}

/* =========================================================================================================
   |   CATEGORY PAGES ||
============================================================================================================*/

/* CONTENT SECTION */
.category-intro {
  padding: 80px 0; 
}

.category-image-and-text-wrapper {
  display: flex;
  grid-template-columns: 7fr 5fr;
  align-items: stretch;
  gap: 60px; 
  margin: 0;
}

.category-image-and-text-wrapper .col-md-7,
.category-image-and-text-wrapper .col-md-5 {
  min-width: 0;
}

.category-image-and-text-wrapper .col-md-7 {
  flex: 5;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.category-image-and-text-wrapper .col-md-5 {
  flex: 5;
  display: flex;
}

.side-image-wrapper {
  height: 100%;
  width: 100%;
  overflow: hidden;
  border-radius: 24px;
}

.col-md-7-title {
  font-weight: 600;
  font-size: 36px;
  color: #36393c;
  line-height: 40px;
  margin-bottom: 3rem;
}

.col-md-7-intro {
  font-size: 20px;
  font-weight: 600;
  color: #36393c;
  line-height: 1.5;
}

.acf-description-text {
  font-size: 16px;
  font-weight: 400;
  color: #36393c;
  line-height: 1.6;
}
.intro-body strong,
.intro-body p:nth-child(2) {
  font-weight: 700;
  color: #333;
  display: block;
  margin-bottom: 1rem;
}

.side-image-wrapper img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  border-radius: 20px; 
}

@media (max-width: 768px) {
  .category-hero {
    height: 100svh; 
    min-height: 500px;
    align-items: flex-end; 
    padding-bottom: 40px; 
  }

  .category-hero .container {
    width: 100%;
    padding: 0 20px; 
  }

  .category-hero .hero-content {
    max-width: 100%; 
    width: 100%;
  }

  .category-hero-h2 {
    font-size: 14px;
    margin-bottom: 4px;
    margin-top: 0;
  }

  .category-hero h1 {
    font-size: 36px; 
    margin-top: 0;
    margin-bottom: 24px;
  }

  /* Full-width stacked buttons */
  .category-hero .hero-buttons {
    flex-direction: column; 
    gap: 12px;
    margin-top: 0;
    width: 100%;
  }

  .category-hero .hero-buttons .btn-red,
  .category-hero .hero-buttons .btn-outline {
    width: 100%; 
    text-align: center;
    margin-right: 0; 
    padding: 16px 20px; 
    border-radius: 8px;
    font-size: 16px;
    text-decoration: none;
  }

  .category-image-and-text-wrapper {
    display: flex !important;
    flex-direction: column !important; 
    gap: 32px;
    margin: 0 !important; 
  }

  /* 2. Text column full width */
  .category-image-and-text-wrapper .col-md-7 {
    flex: none !important;
    width: 100% !important;
    padding: 0 20px;
  }

  /* 3. Image column full width, BELOW text */
  .category-image-and-text-wrapper .col-md-5 {
    flex: none !important;
    width: 100% !important;
    padding: 0 20px;
  }

  /* 4. Fix the blue link color bleeding into text */
  .category-intro a,
  .acf-description-text a {
    color: inherit !important;
    text-decoration: none !important;
  }

  /* 5. Title sizing */
  .col-md-7-title {
    font-size: 32px;
    line-height: 1.2;
    margin-bottom: 1rem;
  }

  /* 6. Subtitle */
  .col-md-7-intro {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
  }

  /* 7. Body text - kill blue link styles */
  .acf-description-text {
    font-size: 15px;
    line-height: 1.6;
    color: #36393c !important;
  }

  .acf-description-text * {
    color: #36393c !important; 
    text-decoration: none !important; 
  }

  /* 8. Image */
  .side-image-wrapper {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
  }

  .side-image-wrapper img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
  }
}

/* =========================================================================================================
   |   ROLUNK ||
============================================================================================================*/
/* ── Rólunk Images Row ── */
.rolunk-images {
  padding: 60px 0;
}

.rolunk-images__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  align-items: center;
}

.rolunk-images__item img {
  width: 100%;
  object-fit: cover;
  border-radius: 30px;
}

/* ── Cégtörténet + Szakértő ── */
.rolunk-text {
  padding: 60px 0;
  background-color: #f9f9f9;
}

.rolunk-text__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.rolunk-text__title {
  font-size: 2.25rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.rolunk-text__col p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.rolunk-text__title-nextcol {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-dark);
}

/* ── Honnan indultunk ── */
.rolunk-origin {
  padding: 60px 0;
}

.rolunk-origin__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.rolunk-origin__image img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
}

.rolunk-origin__title {
  font-size: 2.25rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 24px;
}

.rolunk-origin__subtitle {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 20px 0 8px;
}

.rolunk-origin__content p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #444;
  margin-bottom: 12px;
}

/* ── Mobile ── */
@media (max-width: 1024px) {
  .rolunk-images {
    padding: 40px 20px;
    margin-left: 0 !important;
    overflow: hidden;
  }

  .rolunk-images__grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding-left: 24px;
    padding-right: 24px;
  }

  .rolunk-images__item {
    flex: 0 0 80%; 
    scroll-snap-align: start;
    text-align: center;
    display: flex;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
  }
}

.rolunk-images__grid::-webkit-scrollbar {
  display: none;
}

@media (max-width: 768px) {
  .rolunk-text {
    padding: 40px 20px;
  }

  .rolunk-origin__grid {
    padding: 40px 20px;
  }

  .rolunk-text__grid,
  .rolunk-origin__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* =========================================================================================================
   |   REFERENCIAK ||
============================================================================================================*/

/* ── Biztonságos Használat ── */
.ref-biztonsag {
  padding: 60px 0;
}

.ref-biztonsag__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.ref-biztonsag__title {
  font-size: 2.25rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: #36393c;
  line-height: 2.5rem;
}

.ref-biztonsag__col p {
  font-size: 1rem;
  line-height: 1.625rem;
  color: #36393c;
}

@media (max-width: 768px) {
  .ref-kiknek__grid {
    grid-template-columns: 1fr !important;
    padding: 40px 20px;
  }
}

/* ── Kiknek Segítünk ── */
.ref-kiknek {
  padding: 60px 0;
}

.ref-kiknek__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.ref-kiknek__title {
  font-size: 2.25rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: #36393c;
}

.ref-kiknek__subtitle {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 5px;
  color: #36393c;
}

.ref-kiknek__content p {
  font-size: 1rem;
  line-height: 1.625rem;
  color: #36393c;
  margin-bottom: 16px;
  margin-top: auto;
}

.ref-kiknek__image img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
}

@media (max-width: 768px) {
  .ref-biztonsag__grid {
    grid-template-columns: 1fr;
    padding: 40px 20px;
    gap: 20px;
  }
}

/* ── Szolgáltatási Kör ── */
.ref-szolgaltatas {
  padding: 60px 0;
}

.ref-szolgaltatas__title {
  font-size: 2.25rem;
  font-weight: 600;
  margin-bottom: 32px;
  color: #36393c;
}

.szolg-slider-wrapper {
  overflow: hidden; 
  width: 100%;
}

.ref-szolgaltatas__grid {
  display: flex;
  width: 100%;
  gap: 24px;
  transition: transform 0.3s ease;
}

.ref-szolg-card {
  flex-shrink: 0;
  /* Default: 4 visible cards — JS overrides with exact pixels */
  width: calc((100% - 72px) / 4);
}

.ref-szolg-card__image {
  width: 100%;
  height: 220px;
  overflow: hidden;
  border-radius: 6px;
}

.ref-szolg-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ref-szolg-card__title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
  margin-top: 5px;
  color: #36393c;
}

.ref-szolg-card__text {
  font-size: 1rem;
  line-height: 1.625rem;
  color: #36393c;
  margin-top: auto;
}

.szolg-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
}

.szolg-count {
  font-size: 0.9rem;
  color: #666;
}

.szolg-arrows {
  display: flex;
  gap: 8px;
}

.szolg-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.2s;
}

.szolg-arrow .arrow {
  margin-bottom: 5px;
}

.szolg-arrow:hover:not(:disabled) {
  border-color: #e31e24;
  color: #e31e24;
}

.szolg-arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

@media (max-width: 1024px) {
  .ref-szolgaltatas__grid {
    padding: 40px 20px;
  }
  .ref-szolgaltatas__title {
    padding: 40px 20px;
  }
  .ref-szolg-card {
    /* 2 visible cards on tablet */
    width: calc((100% - 24px) / 2);
  }
}

@media (max-width: 640px) {
  .szolg-slider-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .szolg-slider-wrapper::-webkit-scrollbar {
    display: none;
  }
  .ref-szolgaltatas__grid {
    display: flex;
    gap: 16px;
    scroll-snap-type: x mandatory;
  }
  .ref-szolg-card {
    min-width: 85%;
    scroll-snap-align: start;
  }
}

/* ── Map ── */
.ref-map {
  padding: 60px 0;
}

.ref-map__title {
  font-size: 2.25rem;
  font-weight: 600;
  margin-bottom: 24px;
  color: #36393c;
}

.ref-map__embed iframe {
  width: 100%;
  height: 500px;
  border-radius: 12px;
  border: none;
}

@media (max-width: 768px) {
  .ref-map__wrap {
    padding: 40px 20px;
  }
}

/* ── Inspiráció ── */
.ref-inspiracio {
  padding: 60px 0;
}

.ref-inspiracio__title {
  font-size: 2.25rem;
  font-weight: 600;
  margin-bottom: 32px;
  color: #36393c;
}

.insp-masonry {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  align-items: start; 
}

.insp-masonry__col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ── Card ── */
.insp-card {
  display: flex;
  flex-direction: column;
}

.insp-card__img-wrap {
  overflow: hidden; 
  border-radius: 10px;
  margin-bottom: 10px;
  will-change: transform;
}

.insp-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
  border-radius: 8px;
}

.insp-card:hover .insp-card__img {
  cursor: pointer;
  transform: scale(1.05);
}

/* Side columns — square images */
.insp-card__img--short {
  aspect-ratio: 1 / 1;
  height: auto;
}

/* Middle column - taller image */
.insp-card__img--tall {
  aspect-ratio: 3 / 4; 
  height: auto;
}

.insp-card__title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #36393c;
}

.insp-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.insp-card__tag {
  font-size: 0.78rem;
  padding: 4px 12px;
  border: 1px solid #ddd;
  border-radius: 20px;
  color: #555;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.insp-card__tag:hover {
  cursor: pointer;
  background-color: #e8e8e8; /* ← slightly gray */
  border-color: #bbb;
}

/* ── Mobile ── */
@media (max-width: 767px) {
  .ref-inspiracio__wrap {
    padding: 40px 20px;
  }

  .insp-masonry {
    grid-template-columns: 1fr;
  }
}

/* =========================================================================================================
   |   KAPCSOLATOK ||
============================================================================================================*/

/* ── Hero ── */
.kapcsolat-hero {
  padding: 48px 0 24px;
}

.kapcsolat-hero__title {
  font-size: 3.75rem;
  font-weight: 700;
  color: #36393c;
}

/* ── Main grid ── */
.kapcsolat-main {
  padding: 40px 0 80px;
}

.kapcsolat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

/* ── Shared block title ── */
.kapcsolat-block__title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 24px;
  color: #36393c;
}

/* ── Left: Form wrap ── */
.kapcsolat-form-wrap {
  background: #f9fafb;
  border: 0px solid #e8e8e8;
  border-radius: 12px;
  padding: 32px;
}

/* CF7 field overrides */
.kapcsolat-form-wrap .wpcf7-form br {
  display: none;
}

.kapcsolat-form-wrap .wpcf7-form label {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: #36393c;
}

.kapcsolat-form-wrap .wpcf7-form input[type="text"],
.kapcsolat-form-wrap .wpcf7-form input[type="email"],
.kapcsolat-form-wrap .wpcf7-form textarea,
.kapcsolat-form-wrap .wpcf7-form select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #1a1a1a;
  background: #fff;
  transition: border-color 0.2s ease;
  margin-bottom: 16px;
  box-sizing: border-box;
}

.kapcsolat-form-wrap .wpcf7-form input:focus,
.kapcsolat-form-wrap .wpcf7-form textarea:focus {
  outline: none;
  border-color: #e3000b;
}

.kapcsolat-form-wrap .wpcf7-form textarea {
  min-height: 130px;
  resize: vertical;
}

.kapcsolat-form-wrap .wpcf7-form input[type="submit"] {
  background-color: #e3000b;
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease;
  width: auto;
}

.kapcsolat-form-wrap .wpcf7-form input[type="submit"]:hover {
  background-color: #c0000a;
}

/* CF7 validation messages */
.kapcsolat-form-wrap .wpcf7-not-valid-tip {
  color: #e3000b;
  font-size: 0.78rem;
  margin-top: -12px;
  margin-bottom: 12px;
  display: block;
}

.kapcsolat-form-wrap .wpcf7-response-output {
  margin-top: 16px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  border: none !important;
}

.kapcsolat-form-wrap .wpcf7-mail-sent-ok {
  background: #e6f4ea;
  color: #2e7d32;
}

.kapcsolat-form-wrap .wpcf7-mail-sent-ng,
.kapcsolat-form-wrap .wpcf7-validation-errors {
  background: #fdecea;
  color: #e3000b;
}

.cf7-required-note {
  font-size: 1rem;
  color: #fc7d7d;
}

/* ── Right: Info list ── */
.kapcsolat-info-wrap {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.kapcsolat-info-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.kapcsolat-info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.kapcsolat-info-icon {
  font-size: 1.2rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.kapcsolat-info-item div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.kapcsolat-info-item strong {
  font-size: 0.875rem;
  font-weight: 700;
  color: #1a1a1a;
}

.kapcsolat-info-item a,
.kapcsolat-info-item span {
  font-size: 0.875rem;
  color: #555;
  text-decoration: none;
}

.kapcsolat-info-item a:hover {
  color: #e3000b;
}

/* ── Map ── */
.kapcsolat-map {
  border-radius: 12px;
  overflow: hidden;
  width: 100%;
}

.kapcsolat-map iframe {
  width: 100%;
  height: 280px;
  display: block;
  border: none;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .kapcsolat-grid {
    grid-template-columns: 1fr;
    padding: 40px 20px;
  }

  .kapcsolat-hero__title {
    font-size: 1.8rem;
    padding: 20px;
  }

  .kapcsolat-form-wrap {
    padding: 24px;
  }
}

/* =========================================================================================================
   |   TERMEKEK ||
============================================================================================================*/

.termekek-container {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 40px;
}

.termekek-title {
  font-size: 3rem;
  font-weight: 600;
  margin-bottom: 48px;
  color: #36393c;
}

/* Filter Pills */
.termekek-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 48px;
}

.filter-pill {
  padding: 12px 16px;
  border: 1px solid #ccc;
  border-radius: 20px;
  background: white;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s;
  border-radius: 4px;
}

.filter-pill:hover {
  background: #f0f0f0;
  border-color: #999;
  color: #555;
}

.filter-pill.active {
  color: #36393c;
  border-color: #999;
}

/* Counter + Clear */
.termekek-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  font-size: 0.9rem;
  color: #555;
}

.active-filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border: 1.5px solid #222;
  border-radius: 20px;
  font-size: 0.9rem;
  color: #222;
  background: white;
}

.active-filter-tag button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: #222;
  padding: 0;
  line-height: 1;
}

.active-filter-tag svg {
  margin-bottom: 2px;
}

.termekek-clear {
  background: none;
  border: none;
  cursor: pointer;
  cursor: pointer;
  font-size: 0.9rem;
  padding: 0;
  text-decoration: underline;
}

/* Product Grid */
.termekek-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
  column-gap: 60px;
}

.termek-card {
  text-decoration: none;
  color: inherit;
  background-color: #f0f0f0;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.termek-card:hover .termek-image img {
  transform: scale(1.03);
  overflow: hidden;
}

.termek-image {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #f0f0f0;
  overflow: hidden;
}

.termek-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
  border-radius: 8px 8px 0 0;
}

.termek-title {
  font-size: 1rem;
  font-weight: 700;
  color: #36393c;
  margin: 24px;
}

/* Pagination */
.termekek-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.page-btn {
  width: 36px;
  height: 36px;
  border: 1px solid #ccc;
  background: white;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.page-btn:hover {
  border-color: #e63329;
  color: #e63329;
}

.page-btn.active {
  background: #e63329;
  color: white;
  border-color: #e63329;
}

/* Responsive */
@media (min-width: 769px) and (max-width: 1024px) {
  .termekek-container {
    padding-left: 32px;
    padding-right: 32px;
  }
}

@media (max-width: 768px) {
  .termekek-container {
    padding: 40px 20px;
  }

  .termekek-meta {
    display: flex;
    flex-wrap: wrap;
  }

  .termekek-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .termekek-grid {
    grid-template-columns: 1fr;
  }
}

/* =====================
   TERMÉK PAGE
   ===================== */
.termek-page {
  margin: 0 auto;
  margin-top: 80px;
}

/* Top section */
.termek-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

/* Gallery */
.termek-main-image img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
}

.termek-thumbnails {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.termek-thumb {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s;
}

.termek-thumb.active,
.termek-thumb:hover {
  border-color: #e63329;
}

/* Details */
.termek-page-title {
  font-size: 2rem;
  font-weight: 700;
  color: #36393c;
  margin-bottom: 24px;
}

.termek-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 32px;
  font-size: 0.95rem;
  color: #36393c;
}

.termek-meta p {
  margin: 0;
}

.meta-label {
  font-weight: 600;
}

/* Buttons */
.termek-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Technical Drawing Section */
.termek-rajz-section {
  background: #f0f0f0;
  border-radius: 12px;
  padding: 40px;
  margin-top: 160px;
  margin-bottom: 50px;
}

.termek-rajz-images {
  display: flex;
  gap: 40px;
  justify-content: center;
  margin-bottom: 32px;
}

.termek-rajz-images img {
  max-width: 45%;
  object-fit: contain;
}

/* Dimensions */
.termek-dimensions {
  display: flex;
  gap: 16px;
}

.dimension-box {
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: 8px;
  padding: 12px 20px;
  min-width: 100px;
}

.dimension-label {
  font-size: 0.8rem;
  color: #777;
}

.dimension-value {
  font-size: 1rem;
  font-weight: 700;
  color: #36393c;
}

/* Responsive */
@media (max-width: 768px) {
  .termek-page {
    margin: 40px 20px;
  }
  .termek-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .termek-rajz-images {
    flex-direction: column;
    align-items: center;
  }

  .termek-rajz-images img {
    max-width: 100%;
  }

  .termek-dimensions {
    flex-wrap: wrap;
  }

  .dimension-box {
    flex: 1 1 calc(50% - 8px);
    min-width: 0;
  }
}

/* =========================================================================================================
   |   SEARCH RESULTS ||
============================================================================================================*/

.search-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px;
}

.search-page-header {
  margin-bottom: 40px;
}

.search-page-title {
  font-size: 2rem;
  font-weight: 700;
  color: #36393c;
}

.search-page-title span {
  color: #e31e24;
}

.search-page-count {
  color: #777;
  margin-top: 8px;
}

.search-results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.no-results {
  color: #777;
  font-size: 1rem;
}

@media (max-width: 768px) {
  .search-results-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .search-results-grid {
    grid-template-columns: 1fr;
  }
}
