:root {
    --primary-font: 'Poppins', sans-serif; /* Use loaded font */
    --primary-blue: #0073e6;
    --dark-red: #da5835; /* Footer button color */
    --primary-blue-hover: #005bb5; /* Used for button hover */
    --text-color: #333;
    --text-light: #555;
    --text-muted: #777;
    --background-color: #ffffff;
    --section-background: #f9f9f9; /* Target block background */
    --border-color: #ddd; /* General border color */
    --container-max-width: 1200px;
    --standard-padding: 20px;
    --border-radius: 0px;
}

html, body {
    background-color: var(--background-color);
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--primary-font);
    padding: var(--standard-padding); /* Padding on body provides edge spacing */
    line-height: 1.6;
    color: var(--text-color);
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto; /* Center the main container */
}

/* --- Header Styles --- */
header {
    color: var(--text-color);
    margin-bottom: var(--standard-padding);
    background-color: var(--background-color);
    padding-top: var(--standard-padding);
    padding-bottom: var(--standard-padding);
}

/* --- Hero Section --- */
.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;    /* Center the image and text horizontally */
    justify-content: center; /* Center the content vertically */
    text-align: center;     /* Ensure text is centered */
}

.hero-section img {
    width: 100px; /* Adjust as needed */
    max-width: 40%; /* You can adjust the max width */
    height: auto;
    margin-bottom: var(--standard-padding); /* Space between image and text */
}

/* This targets the text content and ensures it is centered below the image */
.hero-section .text-content {
    text-align: center; /* Center the text */
    max-width: 900px;    /* Optional: limit the width of the text for readability */
    margin: 0 auto;      /* Center the text block */
}

.hero-section h1,
.hero-section h3,
.hero-section .text-content .question {
    font-family: 'Yanone Kaffeesatz', serif; /* Custom font for .question */
    font-size: 38px;  /* Adjust the font size as needed */
    font-weight: bold; /* Optional: make it bold */
    color: var(--text-color); /* Optional: change the text color */
    margin-bottom: 10px; /* Adjust the space below the text */
}


.hero-section .text-content .question {
    line-height: 1.3; /* Adjust if needed */
}

.hero-section p {
    margin: 0 0 10px 0; /* Adjusted margin */
    font-size: 14px;
    color: var(--text-light);
}

.hero-section p:last-child {
    margin-bottom: 0; /* Remove margin from last paragraph */
}

.hero-section .reference {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 15px; /* Increased space above reference */
}

.hero-section .more-info {
    font-size: 14px;
    /*color: var(--primary-blue);*/
    /*text-decoration: underline;*/
    display: inline-block;
    margin-top: 5px;
}

.hero-section .more-info:hover {
    text-decoration: none;
}

/* --- Menu Section (Unchanged) --- */
header nav {
    display: flex;
    justify-content: space-between; /* Space out menu items */
    padding: 10px 0;
}

header nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

header nav ul li {
    display: inline;
}

header nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 16px;
    padding: 5px 10px;
}

header nav ul li a:hover {
    color: var(--primary-blue);
}





/* --- Goals Section Styles --- */
section.goals {
    display: flex;
    flex-direction: column;
    gap: var(--standard-padding);
    margin-top: var(--standard-padding); /* Space above goals section */
}

.goal {
    display: flex;
    align-items: center;
    padding: var(--standard-padding);
    /* border removed */
    /* border-radius removed */
    background-color: var(--section-background);
    /* box-shadow: 0 1px 3px rgba(0,0,0,0.05); */ /* Optional: subtle shadow instead of border */
}

.goal img {
    width: 100px;
    height: auto;
    margin-right: var(--standard-padding);
    flex-shrink: 0;
}

.goal-content {
    flex-grow: 1;
    text-align: left; /* Ensure content inside is left aligned */
}

.goal p {
    margin: 0 0 15px 0;
    font-size: 14px;
}
.goal p strong {
     color: var(--text-color);
}
.goal p .more-info { /* Style inline read more */
    font-size: 0.9em;
    margin-left: 5px;
}


/* Target Relevance Question */
.question {
    font-weight: bold;
    margin-top: 15px;
    margin-bottom: 10px;
    color: var(--text-color);
    font-size: 15px; /* Ensure consistent size */
    font-family: 'Roboto', sans-serif;

}

/* Radio Button Answers */
.answers {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.answers label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    font-weight: normal;
    font-size: 1em;
}
 .answers input[type="radio"] {
     cursor: pointer;
     margin: 0;
 }

/* --- Footer Styles --- */
footer {
    padding: var(--standard-padding);
    margin-top: var(--standard-padding);
    display: flex;
    justify-content: space-between; /* Space between the left group and the right button */
    gap: 15px;
    flex-wrap: nowrap; /* Prevent wrapping, ensure buttons stay on one line */
    border-top: 1px solid var(--border-color); /* Add separator */
}

footer button {
    padding: 10px 20px;
    background-color: var(--dark-red);
    color: var(--background-color);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
    flex-grow: 1; /* Allow buttons to grow to fill space */
    flex-basis: 150px; /* Give buttons a base width */
    max-width: 100px; /* Cap max width */
}

/* Group the first two buttons together on the left */
footer button:nth-child(1),
footer button:nth-child(2) {
    margin-right: 10px; /* Add spacing between the first and second button */
}

/* Push the third button to the far right */
footer button:nth-child(3) {
    margin-left: auto; /* Push the third button to the far right */
}

/* Specific button classes if needed for minor tweaks, often not required with flex-grow */
footer button.prev { }
footer button.next { }
footer button.dashboard { }

footer button:hover {
    background-color: #c44f2f; /* Darker red on hover */
}


/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    body {
         padding: 15px;
    }
    header {
        flex-direction: column;
        text-align: center;
    }
    header img {
        width: 180px;
        max-width: 60%;
        margin-right: 0;
        margin-bottom: 15px;
    }
    header .text-content {
         text-align: center; /* Center text block when stacked */
    }
     header .text-content p, header .text-content .reference {
         text-align: left; /* Keep paragraph text left-aligned */
     }
     header .text-content .question { /* Center main title div */
         text-align: center;
     }


    .goal {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    .goal img {
        width: 80px;
        margin-right: 0;
        margin-bottom: 15px;
    }
    .goal-content {
         text-align: center; /* Center text block */
    }
    .goal p {
         text-align: left; /* Keep paragraph text left-aligned */
    }

    .answers {
        justify-content: center;
    }
    .more-info {
        font-size: 12px;
    }

    footer {
         justify-content: center; /* Center buttons when they wrap/stack */
    }
    footer button {
         width: 100%; /* Attempt full width */
         max-width: 350px; /* Limit width */
         flex-grow: 0; /* Prevent growing when stacked */
         margin-bottom: 10px;
    }
     footer button:last-child {
         margin-bottom: 0;
     }
}

 @media (max-width: 480px) {
     body {
         padding: 10px;
     }
     header h1, header h3, header .text-content .question {
         font-size: 20px;
     }
     header img {
          width: 150px;
     }

     .goal img {
          width: 70px;
     }
     .answers {
         gap: 10px;
         font-size: 0.9em;
     }

     footer button {
         padding: 12px 15px;
         max-width: none; /* Allow full width */
     }
 }