/* === ZÁKLADNÉ NASTAVENIA, FONT A FARBY === */
#html_custom_template {
--orange: #ff6600;
--dark-blue: #0d2a4a;
--white: #ffffff;
--text-dark: #1f2937;
--text-secondary: #4b5563; /* Zjemnená farba textu */
--border-color: #e5e7eb;
--light-bg: #f9fafb;
}

#html_custom_template body {
margin: 0;
font-family: 'Inter', sans-serif;
background-color: var(--light-bg);
color: var(--text-dark);
overflow-x: hidden;
}

#html_custom_template .page-container *, #html_custom_template .page-container *:before, #html_custom_template .page-container *:after {
box-sizing: border-box;
}

#html_custom_template .page-container {
font-family: 'Inter', sans-serif;
background-color: var(--light-bg);
width: 100%;
max-width: 1200px;
margin: 0 auto;
padding: 40px 20px 40px 20px; /* Added top padding */
overflow-x: hidden;
}

#html_custom_template .page-wrapper {
width: 100%;
margin: 0 auto;
overflow: hidden;
}

#html_custom_template .section-spacer {
margin-top: 80px;
}

/* === HERO SECTION === */
#html_custom_template .hero-section {
position: relative;
border-radius: 24px;
overflow: hidden;
background-size: cover;
background-position: right center; /* Adjusted background position */
display: flex;
align-items: center;
justify-content: center;
text-align: center;
height: 400px;
padding: 2.5rem;
}

#html_custom_template .hero-content-box {
max-width: 800px;
position: relative;
z-index: 2;
background-color: rgba(255, 255, 255, 0.85); /* Highly transparent white background */
padding: clamp(1.5rem, 4vw, 2.5rem);
border-radius: 16px;
backdrop-filter: blur(8px);
box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
#html_custom_template .hero-content-box h1 {
font-size: clamp(2.5rem, 5vw, 3.2rem);
font-weight: 800;
line-height: 1.2;
margin-top: 0;
margin-bottom: 20px;
color: var(--text-dark);
}
#html_custom_template .hero-content-box h1 span {
color: var(--orange);
}
#html_custom_template .hero-content-box p {
font-size: 1.15rem;
line-height: 1.7;
margin-bottom: 0;
color: var(--text-secondary);
}

/* === BLOKY S OBRÁZKOM (FEATURE BLOCK SPLIT) === */
#html_custom_template .feature-block-split {
background-color: var(--white);
border-radius: 24px;
display: flex;
align-items: center;
overflow: hidden;
border: 1px solid var(--border-color);
gap: 20px;
}
#html_custom_template .feature-block-split--reversed { flex-direction: row-reverse; }
/* Removed min-height to allow natural sizing */
#html_custom_template .feature-block-split__image { flex: 1 1 50%; }
#html_custom_template .feature-block-split__image img { width: 100%; height: 100%; object-fit: cover; display: block; }
#html_custom_template .feature-block-split__text { flex: 1 1 50%; padding: clamp(2rem, 5vw, 4rem); }
#html_custom_template .feature-block-split__text h2 { font-size: clamp(1.8rem, 4vw, 2.2rem); font-weight: 700; color: var(--text-dark); margin-bottom: 20px; line-height: 1.3; }
#html_custom_template .feature-block-split__text p { font-size: 1.1rem; color: var(--text-secondary); line-height: 1.8; margin-bottom: 20px; }
#html_custom_template .feature-block-split__text p:last-of-type { margin-bottom: 0; }
#html_custom_template .feature-block-split__text .highlight { color: var(--orange); font-weight: 600; }

/* === CONTENT BLOCK === */
#html_custom_template .content-block {
background-color: var(--white);
padding: clamp(2rem, 5vw, 4rem);
border-radius: 24px;
border: 1px solid var(--border-color);
}
#html_custom_template .content-block h2 {
font-size: clamp(1.8rem, 4vw, 2.2rem);
font-weight: 700; color: var(--text-dark);
margin-top: 0;
margin-bottom: 20px;
line-height: 1.3;
}
#html_custom_template .content-block p {
font-size: 1.1rem;
color: var(--text-secondary);
line-height: 1.8;
margin-bottom: 20px;
}
#html_custom_template .content-block p:last-child {
margin-bottom: 0;
}
#html_custom_template .content-block .highlight {
color: var(--orange);
}

/* === FOOTER === */
#html_custom_template .page-footer {
text-align: center;
padding: 30px 20px;
margin-top: 80px;
border-top: 1px solid var(--border-color);
font-size: 0.9rem;
color: var(--text-secondary);
}
#html_custom_template .page-footer .footer-slogan {
font-size: 1.1rem;
margin-bottom: 0; /* Adjusted margin */
color: var(--text-dark);
}

/* === RESPONZIVITA === */
@media (max-width: 992px) {
#html_custom_template .feature-block-split, #html_custom_template .feature-block-split--reversed {
flex-direction: column;
}
#html_custom_template .feature-block-split__image {
min-height: 300px;
width: 100%;
}
#html_custom_template .feature-block-split__text {
padding: 40px;
}
}
@media (max-width: 768px) {
#html_custom_template .hero-section {
height: auto;
min-height: 350px;
padding: 40px 20px;
}
#html_custom_template .hero-content-box h1 {
font-size: 2.2rem;
}
#html_custom_template .feature-block-split__text h2, #html_custom_template .content-block h2 {
font-size: 1.8rem;
}
}
