body {
    font-family: sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    display: flex; /* Enable flexbox for overall layout */
}

.page-container {
    display: flex; /* Enable flexbox for main content and thermometer areas */
    width: 100%;
    max-width: 1200px; /* Optional: Limit page width */
    margin: 20px auto; /* Center the container */
    padding: 20px;
    box-sizing: border-box;
    position: relative; /* For positioning the triangle connectors */
}

.content-area {
    width: 85%;
    padding-right: 5%; /* Spacing for the triangle */
    box-sizing: border-box;
}

.card-section {
    background-color: white;
    border: 1px solid #ddd;
    box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    margin-bottom: 20px;
    padding: 20px;
    position: relative; /* To potentially position elements within the card */
}

.card-header h2 {
    margin-top: 0;
    color: #333;
}

.card-content {
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}

.card-bottom .read-more {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
}

.card-bottom .read-more:hover {
    background-color: #0056b3;
}

.thermometer-area {
    width: 10%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* Align items to the top */
    padding-left: 5px; /* Spacing from the content area */
    box-sizing: border-box;
}

.thermometer-graphic-container {
    display: flex;
    flex-direction: row; /* Label to the right of the graphic */
    align-items: center; /* Vertically align label and graphic */
    margin-top: 20px; /* Adjust top margin as needed */
}

.thermometer-graphic {
    background: linear-gradient(to bottom, #fdd835, #e1f5fe); /* Two-color fade/gradient */
    width: 30px; /* Adjust thickness as needed */
    height: 200px; /* Adjust height as needed */
    border-radius: 15px;
    border: 1px solid #ccc;
    position: relative; /* For positioning the bulb */
}

.thermometer-bulb {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px; /* Adjust bulb width */
    height: 40px; /* Adjust bulb height */
    background-color: #f44336; /* Thermometer bulb color */
    border-radius: 50%;
    border: 1px solid #ccc;
    margin-bottom: -10px; /* Overlap with the main graphic */
}

.thermometer-label {
    font-size: 0.8em;
    color: #777;
    margin-left: 10px;
    text-align: left;
}

.triangle-connector-container {
    position: absolute;
    top: 0;
    left: 85%; /* Align with the right edge of the content area */
    width: 5%; /* The gap between content and thermometer */
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-around; /* Distribute triangles vertically */
    align-items: flex-end; /* Align triangles to the right */
    padding: 20px 0; /* Add some vertical padding */
    box-sizing: border-box;
    pointer-events: none; /* Allow clicks to pass through */
}

.triangle-connector {
    width: 0;
    height: 0;
    border-top: 15px solid transparent; /* Adjust size */
    border-left: 15px solid white; /* Match card background */
    border-bottom: 15px solid transparent; /* Adjust size */
}

/* Target the top triangle */
.triangle-connector.top {
    border-top-width: 0; /* Start from a point */
    border-bottom-width: 20px; /* Adjust vertical expansion */
    border-left-width: 20px; /* Adjust horizontal expansion */
    border-left-color: white;
}

/* Target the bottom triangle */
.triangle-connector.bottom {
    border-top-width: 20px; /* Adjust vertical expansion */
    border-left-width: 20px; /* Adjust horizontal expansion */
    border-bottom-width: 0; /* End at a point */
    border-left-color: white;
    /* You might need to adjust positioning based on card placement */
}


/* Visually hidden class for accessibility */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    margin: -1px !important;
    padding: 0 !important;
    border: 0 !important;
}

/* Basic responsive adjustments */
@media (max-width: 768px) {
    body {
        flex-direction: column; /* Stack elements on smaller screens */
        align-items: center;
    }

    .page-container {
        flex-direction: column;
        width: 95%;
    }

    .content-area {
        width: 100%;
        padding-right: 0;
    }

    .thermometer-area {
        width: 80%;
        flex-direction: row; /* Label and graphic side by side */
        justify-content: center;
        margin-top: 20px;
        padding-left: 0;
    }

    .thermometer-graphic-container {
        flex-direction: row;
    }

    .thermometer-label {
        writing-mode: horizontal-tb;
        margin-left: 10px;
    }

    .triangle-connector-container {
        display: none; /* Hide triangles on smaller screens */
    }
}