/* --- Global Resets & Base Styles --- */
:root {
    --brand-green: rgb(0, 150, 106);
    --brand-black-logo: rgb(100, 100, 100); /* For GURU in logo & circle */
    --brand-grey-logo: rgb(157, 157, 156); /* For tagline in logo */
    --text-dark: rgb(51, 51, 51); /* #333 */
    --text-light: #FFFFFF;
    --bg-light: #FFFFFF;
    --bg-light-grey: #F8F9FA;
    --bg-dark-header: #000000; /* To match main-logo.png background */
    --font-primary: 'Montserrat', sans-serif;
    --container-width: 1140px;
    --border-radius: 5px;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    font-size: 16px; /* Base font size */
}

h1, h2, h3, h4 {
    font-weight: 700; /* Bold for headings */
    line-height: 1.3;
    margin-bottom: 0.75em;
}

h1 { font-size: 2.8rem; font-weight: 900; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.6rem; }
h4 { font-size: 1.2rem; }

p {
    margin-bottom: 1em;
}

a {
    text-decoration: none;
    color: var(--brand-green);
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block; /* Removes bottom space under images */
}

ul {
    list-style: none;
    padding-left: 0; /* Reset default padding for ul/ol if needed */
}
ol {
    padding-left: 0; /* Reset default padding for ul/ol if needed */
}

.content-page ul li, .content-page ol li { /* Specific styling for lists in content pages */
    margin-bottom: 0.7em;
}
.content-page ul {
    padding-left: 25px; /* Re-apply for content lists */
}
.content-page ul li {
    list-style-type: disc;
}
.content-page ol {
     padding-left: 25px; /* Re-apply for content lists */
}
.content-page ol li {
    list-style-type: decimal;
}


.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--border-radius);
    font-weight: 700;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
    border: 2px solid transparent;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--brand-green);
    color: var(--text-light);
    border-color: var(--brand-green);
}

.btn-primary:hover {
    background-color: rgb(0, 130, 90); /* Darker green */
    border-color: rgb(0, 130, 90);
    text-decoration: none;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--brand-black-logo);
    color: var(--text-light);
    border-color: var(--brand-black-logo);
}
.btn-secondary:hover {
    background-color: rgb(80,80,80);
    border-color: rgb(80,80,80);
    text-decoration: none;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--brand-green);
    border-color: var(--brand-green);
}
.btn-outline:hover {
    background-color: var(--brand-green);
    color: var(--text-light);
    text-decoration: none;
    transform: translateY(-2px);
}

.btn-large {
    padding: 15px 35px;
    font-size: 1.15rem;
}


/* --- Header --- */
header {
    background-color: var(--bg-dark-header);
    padding: 10px 0; /* Reduced padding slightly */
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 50px; /* Adjusted for slightly smaller header */
}

.main-nav ul {
    display: flex;
}

.main-nav ul li {
    margin-left: 20px; /* Adjusted spacing */
}

.main-nav ul li a {
    color: var(--text-light);
    font-weight: 500;
    padding: 8px 0; /* Adjusted padding */
    position: relative;
    font-size: 0.95rem;
}
.main-nav ul li a:hover,
.main-nav ul li a.active {
    color: var(--brand-green);
    text-decoration: none;
}
.main-nav ul li a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--brand-green);
}

.header-actions {
    display: flex;
    align-items: center;
}

.language-switcher {
    color: var(--text-light);
    margin-right: 15px; /* Adjusted spacing */
}

.language-switcher .lang-btn {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 0.85rem;
    padding: 0 4px;
}
.language-switcher .lang-btn.active {
    color: var(--brand-green);
    font-weight: 700;
}

.nav-cta {
    font-size: 0.85rem;
    padding: 8px 18px; /* Adjusted padding */
}

.mobile-nav-toggle {
    display: none; 
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}
.mobile-nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-light);
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
    border-radius: 1px;
}
/* Hamburger to X animation */
.mobile-nav-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.mobile-nav-toggle.active span:nth-child(2) {
    opacity: 0;
}
.mobile-nav-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}


/* --- Hero Section --- */
.hero {
    background-color: var(--bg-light-grey); /* Keep a fallback solid color */
    padding: 70px 0; /* Add padding to account for content within */
    text-align: center;
    position: relative; /* Essential for absolute positioning of children */
    overflow: hidden; /* Hide anything overflowing */
    min-height: 500px; /* Ensure a minimum height for the hero section */
    display: flex; /* Use flexbox to center content vertically */
    align-items: center; /* Center content vertically */
    justify-content: center; /* Center content horizontally */
}

/* Styles for the background carousel container */
.hero-background-carousel {
    position: absolute; /* Position relative to .hero */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1; /* Place it behind the text and overlay */
}

/* Styles for individual background images */
.hero-bg-img {
    position: absolute; /* Stack images on top of each other */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures images cover the area without distortion */
    opacity: 0; /* Hidden by default */
    transition: opacity 2s ease-in-out; /* Smooth fade transition */
    will-change: opacity; /* Optimizes for animation */
}

.hero-bg-img.active-bg {
    opacity: 1; /* Active image is fully visible */
}

/* Overlay for text readability - Made darker */
.hero-overlay {
    position: absolute; /* Position relative to .hero */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Increased opacity for better text contrast */
    z-index: 2; /* Between images and text content */
}

/* Ensure existing hero content is on top of the overlay and images */
.hero-content {
    position: relative; /* Essential to be above the overlay */
    z-index: 3; /* Highest z-index to ensure visibility */
    color: var(--text-light); /* Make text light for contrast */
    padding: 20px; /* Add some padding around the text content */
    max-width: 800px; /* Constrain width for readability on wide screens */
}

/* Override existing hero h1/subtitle styles and add text-shadow */
.hero-content h1,
.hero-content .subtitle,
.hero-content .small-text { /* Added small-text here */
    color: var(--text-light); /* Ensure main text is white */
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.7), /* Soft shadow */
                 0 0 15px rgba(0, 0, 0, 0.5); /* Stronger, broader shadow */
}

.hero-content .small-text {
    color: rgba(255, 255, 255, 0.9); /* Slightly more opaque for small text now */
}


/* --- Teaser How It Works --- */
.teaser-how-it-works {
    padding: 60px 0;
    background-color: var(--bg-light);
}
.teaser-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    text-align: center;
}
.teaser-item .teaser-icon {
    width: 50px; 
    height: 50px; 
    margin-bottom: 15px;
    color: var(--brand-green); /* For SVG fill */
}
.teaser-item h3 {
    color: var(--brand-green);
    margin-bottom: 10px;
}

/* --- Value Proposition Reinforcement --- */
.value-prop-reinforcement {
    padding: 60px 0;
    background-color: var(--bg-light-grey);
}
.value-prop-reinforcement h2 {
    text-align: center;
    margin-bottom: 30px;
}
.value-prop-reinforcement ul {
    margin-top: 20px;
    margin-bottom: 30px;
    padding-left: 0; 
}
.value-prop-reinforcement ul li {
    margin-bottom: 12px;
    font-size: 1.1rem;
    padding-left: 25px; /* Space for custom bullet */
    position: relative;
    list-style-type: none; /* Ensure no default bullet */
}
.value-prop-reinforcement ul li::before { /* Custom bullet */
    content: '✓'; /* Checkmark */
    color: var(--brand-green);
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 1px;
}
.value-prop-reinforcement ul li strong {
    color: var(--brand-green);
}
.value-prop-reinforcement .cta-buttons {
    text-align: center;
}
.value-prop-reinforcement .cta-buttons .btn {
    margin: 10px 10px;
}

/* --- Trust & Authority Snippet --- */
.trust-authority {
    padding: 40px 0;
    background-color: var(--brand-black-logo);
    color: var(--text-light);
    text-align: center;
}
.trust-authority p {
    font-size: 1.1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0;
}

/* --- Footer --- */
footer {
    background-color: var(--text-dark);
    color: var(--bg-light-grey);
    padding: 50px 0 20px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}
.footer-col h4 {
    color: var(--text-light);
    margin-bottom: 15px;
    font-weight: 700;
}
.footer-col ul li {
    margin-bottom: 8px;
    list-style-type: none; /* Ensure no default bullet */
}
.footer-col ul li a, .footer-col p a {
    color: var(--bg-light-grey);
    font-weight: 400;
}
.footer-col ul li a:hover, .footer-col p a:hover {
    color: var(--brand-green);
    text-decoration: none;
}
.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--brand-black-logo);
    font-size: 0.9rem;
}
.copyright p {
    margin-bottom: 5px;
}

/* --- Language Hiding --- */
/* Initial state: show EN, hide HU by default if no JS or lang preference */
.hu-content { display: none; } 
.en-content { display: block; }

html[lang="en"] .hu-content { display: none !important; }
html[lang="en"] .en-content { display: block !important; }
html[lang="hu"] .en-content { display: none !important; }
html[lang="hu"] .hu-content { display: block !important; }


/* --- Form Styling (General for claim.html) --- */
.form-section {
    padding: 60px 0;
    background-color: var(--bg-light-grey);
}
.form-container {
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--bg-light);
    padding: 30px 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}
.form-container h1, .form-container h2 {
    text-align: center;
    margin-bottom: 30px;
}
.form-container > p { /* Subtitle on claim page */
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.05rem;
    color: var(--text-dark);
}
.form-step {
    display: none; 
}
.form-step.active {
    display: block;
}
.form-group {
    margin-bottom: 22px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.95rem;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: var(--font-primary);
    transition: border-color 0.3s ease;
}
.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    border-color: var(--brand-green);
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 150, 106, 0.2);
}
.form-group textarea {
    min-height: 100px;
    resize: vertical;
}
.form-group .radio-group input[type="radio"],
.form-group .checkbox-group input[type="checkbox"] {
    margin-right: 5px;
    vertical-align: middle;
}
.form-group .radio-group label,
.form-group .checkbox-group label {
    font-weight: 400; 
    margin-right: 20px;
    display: inline-flex; /* Align items nicely */
    align-items: center;
    cursor: pointer;
}
.form-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    align-items: center;
}
.progress-bar {
    display: flex;
    justify-content: space-around;
    margin-bottom: 40px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}
.progress-step {
    text-align: center;
    color: var(--brand-grey-logo);
    font-weight: 500;
    position: relative;
    padding-bottom: 10px; 
    font-size: 0.9rem;
    flex: 1;
}
.progress-step.active {
    color: var(--brand-green);
    font-weight: 700;
}
.progress-step.active::after {
    content: '';
    position: absolute;
    bottom: -16px; 
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 100px;
    height: 3px;
    background-color: var(--brand-green);
    border-radius: 2px;
}
.form-summary-review {
    margin-bottom: 25px;
    padding: 20px;
    background-color: var(--bg-light-grey);
    border-radius: var(--border-radius);
    border: 1px solid #e0e0e0;
}
.form-summary-review h4 {
    color: var(--brand-green);
    margin-bottom: 15px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 8px;
    font-size: 1.1rem;
}
.form-summary-review p {
    margin-bottom: 8px;
    font-size: 0.95rem;
}
.form-summary-review strong {
    font-weight: 500;
    color: var(--text-dark);
    min-width: 100px; /* Align labels */
    display: inline-block;
}

.checkbox-group { 
    display: flex;
    align-items: flex-start; 
    margin-top: 15px;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: var(--border-radius);
}
.checkbox-group input[type="checkbox"] {
    margin-top: 5px; 
    margin-right: 10px;
    flex-shrink: 0; /* Prevent checkbox from shrinking */
}
.checkbox-group label {
    font-size: 0.9rem;
    line-height: 1.4;
    font-weight: 400;
}
.checkbox-group label a {
    text-decoration: underline;
}
.checkbox-group label a:hover {
    color: rgb(0, 130, 90);
}


/* --- Content Pages (General Styling) --- */
.content-page { 
    padding: 60px 0;
}
.content-page .container {
    max-width: 900px; 
}
.content-page h1 {
    margin-bottom: 30px;
    text-align: center;
    color: var(--brand-black-logo);
}
.content-page h2 {
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--brand-green);
    border-bottom: 2px solid var(--brand-green);
    padding-bottom: 8px;
    display: inline-block; 
}
.content-page h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--brand-black-logo);
    font-weight: 700;
}

.content-page strong {
    font-weight: 700;
}
.content-page table { 
    width: 100%;
    margin: 30px 0;
    border-collapse: collapse;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.content-page th, .content-page td {
    border: 1px solid #ddd;
    padding: 12px 15px;
    text-align: left;
    vertical-align: top;
}
.content-page th {
    background-color: var(--bg-light-grey);
    color: var(--brand-green);
    font-weight: 700;
}
.content-page td strong { 
    color: var(--brand-green);
}
.faq-item {
    margin-bottom: 25px;
    border-bottom: 1px solid #eee;
    padding-bottom: 25px;
}
.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.faq-item .faq-question {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--brand-black-logo);
    margin-bottom: 10px;
}
.faq-item .faq-answer {
    font-size: 1rem;
}
.content-page .btn { /* Button on content pages */
    margin-top: 20px;
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    h1 { font-size: 2.3rem; }
    h2 { font-size: 1.8rem; }

    .main-nav {
        display: none; 
        position: absolute;
        top: calc(100% - 1px); /* Position below header, adjust if header padding changes */
        left: 0;
        width: 100%;
        background-color: var(--bg-dark-header);
        flex-direction: column;
        padding: 0;
        border-top: 1px solid var(--brand-black-logo);
        box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    }
    .main-nav.active {
        display: flex; 
    }
    .main-nav ul {
        flex-direction: column;
        width: 100%;
    }
    .main-nav ul li {
        margin: 0;
        text-align: left; /* Align text left for better readability */
        width: 100%;
    }
    .main-nav ul li a {
        display: block;
        padding: 15px 20px;
        border-bottom: 1px solid rgba(255,255,255,0.1); 
    }
    .main-nav ul li:last-child a {
        border-bottom: none;
    }
    .main-nav ul li a.active::after {
        display: none; 
    }
    .main-nav ul li a:hover {
        background-color: rgba(255,255,255,0.05);
    }

    .mobile-nav-toggle {
        display: block; 
        order: 3; 
    }

    .header-actions .nav-cta {
        display: none; 
    }
    .nav-container {
      flex-wrap: nowrap; /* Prevent wrapping of logo/lang/toggle */
    }
    .language-switcher {
      margin-right: 10px; 
    }

    .hero { padding: 50px 0; }
    .teaser-grid, .footer-grid { grid-template-columns: 1fr; } 
    .value-prop-reinforcement .cta-buttons .btn {
        display: block;
        width: 90%;
        max-width: 300px;
        margin: 10px auto;
    }
    .form-container {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .progress-bar {
        flex-direction: column;
        align-items: stretch; /* Stretch steps full width */
    }
    .progress-step {
        width: 100%;
        text-align: left;
        padding: 12px 10px;
        border-bottom: 1px dashed #eee;
        font-size: 0.95rem;
    }
    .progress-step:last-child {
        border-bottom: none;
    }
    .progress-step.active::after {
      display: none; 
    }
    .progress-step.active {
        background-color: #e8f5e9; 
        border-left: 3px solid var(--brand-green);
        padding-left: 15px;
    }
    .form-buttons {
        flex-direction: column-reverse; /* Stack buttons, primary on bottom */
    }
    .form-buttons .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    .form-buttons .btn:last-child {
        margin-bottom: 0;
    }
}
@media (max-width: 480px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    .hero .subtitle { font-size: 1.05rem; }
    .btn-large { padding: 12px 25px; font-size: 1rem; }
    .logo-img { height: 40px; }
    .header-actions { margin-left: auto; } /* Push lang switcher and toggle to right */
    .language-switcher { margin-right: 5px;}
}