/* --- New Color Palette --- */
:root {
    /* Light Mode */
    --bg-color-light: #f8f9fa;         /* Lighter gray background */
    --text-color-light: #212529;       /* Darker text */
    --container-bg-light: #ffffff;     /* White container */
    --heading-color-light: #007bff;    /* Vibrant blue headings */
    --accent-color-light: #fd7e14;     /* Orange accent */
    --border-color-light: #dee2e6;     /* Lighter border */
    --input-border-light: #ced4da;
    --results-bg-light: #eef7ff;       /* Light blue results bg */
    --results-border-light: #bde0fe;   /* Blue results border */
    --results-item-bg-light: #ffffff;
    --results-points-color-light: #0d6efd; /* Stronger blue for points */
    --button-bg-light: #198754;        /* Bootstrap green */
    --button-hover-bg-light: #157347;
    --button-text-light: white;
}
/* --- End Color Palette --- */

body {
    font-family: sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 20px;
    background-color: var(--bg-color-light);
    color: var(--text-color-light);
    /* Removed transitions as they are not needed without theme switching */
}


.container {
    max-width: 700px;
    margin: 20px auto;
    padding: 30px;
    background-color: var(--container-bg-light);
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border: 1px solid var(--border-color-light);
}

h1 {
    color: var(--heading-color-light);
    border-bottom: 2px solid var(--accent-color-light);
    padding-bottom: 10px;
}

h2, h3 {
    color: var(--heading-color-light);
}

/* Specific heading styling */
.results-section h2, .blog-section h2 {
     border-bottom: 1px solid var(--border-color-light);
     padding-bottom: 8px;
     margin-bottom: 25px;
}
.blog-section h3 {
     color: var(--accent-color-light);
}


h1 {
    text-align: center;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color-light);
}

.form-group:last-of-type {
    /* Keep border for consistency if desired, or remove */
     border-bottom: 1px solid var(--border-color-light);
    margin-bottom: 0;
    padding-bottom: 0;
}


label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

input[type="number"],
select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--input-border-light);
    border-radius: 4px;
    box-sizing: border-box;
    background-color: var(--bg-color-light);
    color: var(--text-color-light);
}

/* Add default light mode arrow */
select {
   background-image: url('data:image/svg+xml;utf8,<svg fill="%23212529" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>'); /* Using --text-color-light hex */
   background-repeat: no-repeat;
   background-position-x: calc(100% - 15px);
   background-position-y: center;
   -webkit-appearance: none;
   -moz-appearance: none;
   appearance: none;
}

input[type="radio"] {
    margin-right: 5px;
}

input[type="radio"] + label {
    display: inline-block;
    margin-right: 15px;
    font-weight: normal;
}

button[type="submit"] {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: var(--button-bg-light);
    color: var(--button-text-light);
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 20px;
    transition: background-color 0.3s ease; /* Keep hover transition */
}

button[type="submit"]:hover {
    background-color: var(--button-hover-bg-light);
}

.results-section {
    margin-top: 30px;
    padding: 20px;
    background-color: var(--results-bg-light);
    border-radius: 8px;
    border: 1px solid var(--results-border-light);
}

.score-display {
    font-size: 2.5em;
    font-weight: bold;
    text-align: center;
    color: var(--heading-color-light);
    margin-bottom: 20px;
    /* text-shadow: 1px 1px 2px rgba(0,0,0,0.1); */
}

/* Score Rating Text Styles */
.score-rating-text {
    font-size: 0.6em; /* Smaller text */
    font-weight: normal;
    margin-left: 10px;
    vertical-align: middle; /* Align with score number */
    padding: 3px 8px;
    border-radius: 12px; /* Pill shape */
    color: white;
}

.rating-excellent { background-color: #198754; }
.rating-very-good { background-color: #20c997; }
.rating-good { background-color: #0d6efd; }
.rating-fair { background-color: #ffc107; color: #333; }
.rating-poor { background-color: #dc3545; }


.results-section ul {
    list-style: none;
    padding: 0;
}

.results-section li {
    margin-bottom: 10px;
    padding: 8px;
    background-color: var(--results-item-bg-light);
    border-radius: 4px;
    border: 1px solid var(--border-color-light);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.results-section li span {
    font-weight: bold;
    float: right;
    color: var(--results-points-color-light);
}

/* Blog Section Styling */
.blog-section {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color-light);
}


.blog-section h2 {
    text-align: center;
    margin-bottom: 25px;
}

.blog-section article {
    margin-bottom: 25px;
    padding: 20px;
    background-color: var(--results-item-bg-light);
    border-radius: 6px;
    border: 1px solid var(--border-color-light);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.blog-section h3 {
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-color-light);
    padding-bottom: 8px;
}

/* Blog Image Styling */
.blog-image {
    display: block; /* Make it a block element */
    width: 100%; /* Make it responsive */
    max-width: 300px; /* Limit max width */
    height: auto; /* Maintain aspect ratio */
    margin: 15px auto 20px; /* Center horizontally, add vertical margin */
    border-radius: 6px; /* Rounded corners */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* Subtle shadow */
    border: 1px solid var(--border-color-light);
}

/* Style for broken image links (optional but good practice) */
.blog-image:before {
    content: " "; /* Add content for pseudo-element */
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--results-bg-light); /* Placeholder background */
}
.blog-image:after {
    content: "\\2639 Image not found"; /* Sad face icon and text */
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--text-color-light);
    font-size: 0.9em;
    font-style: italic;
    text-align: center;
}


.blog-section p {
    margin-bottom: 10px;
}

.blog-section ul {
    list-style: disc;
    margin-left: 20px;
    padding-left: 10px;
}

.blog-section li {
    margin-bottom: 8px;
}
