.content-container {
    margin: auto;
    max-width: 1200px; /* Adjust based on your layout's maximum width */
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    border: none;
}


.section-container {
    columns: 2; /* Create two columns */
    display: flex;
    flex-wrap: wrap;
}

.items-container {
    flex: 1 1 100%; /* Each column takes 100% width */
    padding: 0;
    list-style: none; /* Remove default list styling */
    margin: 0; /* Remove default margin */
    column-count: 1; /* Reset column count */
    counter-reset: item; /* Reset counter */
}

.items-container > li {
    padding: 10px; /* Adjust padding as needed */
    position: relative;
}

.items-container > li:before {
    content: counter(item) ". "; /* Display counter with a period */
    counter-increment: item; /* Increment counter */
    position: absolute;
    left: -20px; /* Adjust position as needed */
    font-weight: bold; /* Make the number bold */
}


@media (min-width: 768px) {
    .items-container {
        column-count: 2; /* Split into two columns */
    }

    .items-container > li {
        break-inside: avoid; /* Prevent breaking list items inside columns */
    }
}

.understand-knowledge {
    font-weight: 600;
    color: #007bff;
    background-color: lightgrey;
    border-radius: 4px;
    padding: 8px;
}




/* Style for section headings */
.section h2 {
    color: #007bff; /* Primary color for the headings */
    margin-bottom: 15px; /* Space below the heading */
    padding-bottom: 5px; /* Padding to create space within the heading area */
    border-bottom: 2px solid #eeeeee; /* Light border under the heading for separation */
    font-size: 18px; /* Font size for headings */
    font-family: 'Arial', sans-serif; /* Font family, adjust as needed */
    text-align: left; /* Align text to the left */
}

h3 {
    color: #007bff; 
    font-size: 16px; /* Font size for headings */
    font-family: 'Arial', sans-serif; /* Font family, adjust as needed */
    text-align: left;
}

h4 {
    color: #007bff; /* Primary color for the headings */
    font-size: 18px; 
    font-family: 'Arial', sans-serif; /* Font family, adjust as needed */
    text-align: left;
}

/* Style for the section content */
.section p {
    font-size: 16px; /* Font size for paragraph text */
    line-height: 1.6; /* Line height for readability */
    color: #333; /* Text color for content */
    margin-bottom: 15px; /* Space below paragraphs */
    text-align: justify; /* Justify text for a clean, uniform appearance */
}

/* Additional styles for links within sections for a cohesive look */
.section a {
    color: #007bff; /* Link color matching the heading */
    text-decoration: none; /* No underline for a cleaner look */
    transition: color 0.3s ease; /* Smooth transition for link hover effect */
}

.section a:hover {
    color: #0056b3; /* Darker shade on hover for better interaction feedback */
}

/* Ensure that the first section is visible initially */
.section {
    display: none; /* Hide all sections by default */
}

.section:first-of-type {
    display: block; /* Show the first section */
}

.content-container .section {
    display: none; /* Initially hide all sections */
    margin-bottom: 20px;
}
.content-container .section:first-child {
    display: block; /* Show only the first section initially */
}

.section.visible {
    display: block;
}
.navigation-btn {
    margin: 5px;
    padding: 8px 16px;
    background-color: #007bff;
    color: white;
    border: none;
    cursor: pointer;
}

/* =================================================================================================*/

.container {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 100vh;
    overflow-x: hidden; /* Prevent horizontal scroll within the container */
    margin-top: 15px;
    border-radius: 10px;
    justify-content: space-between;
    margin: 20px;
}

.form-container {
    max-width: 1700px;
    margin: 20px auto;
/*    margin-left: 20px;*/
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.main-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto; /* Allows vertical scrolling if needed */
    overflow-x: hidden; /* Prevent horizontal scroll within the main content */
    box-sizing: border-box; /* Includes padding in the element's total width */
    margin: 0; /* Ensure no margin on the right */
/*    background-color: red;*/
}

h8 {
    font-size: 14px;
    padding: 10px;
    color: lightskyblue;
    background-color: lightgrey;
    border-radius: 4px;
}

.column {
    flex: 1; /* Each column takes equal width */
    margin: 10px;
    padding: 10px;
    border-radius: 10px;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Added shadow for better visual separation */
    background-color: #f9f9f9; /* Light background color for contrast */
}

.column-header {
  /* ... other styles ... */
  position: relative;
  margin-top: 20px;
  margin-bottom: 20px;
  text-align: center;
  font-weight: normal;
  padding: 5px;
}

.column-header:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -20px;
  margin-top: 20px;
  margin-bottom: 20px;
  width: 100%;
  height: 2px;
  background-image: linear-gradient(to right, transparent, #007bff, transparent);
  transform: skewX(-30deg);
}

.study-overview {
    background-color: #f9f9fa;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-top: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
}

.study-overview .overview-image {
    width: 60%; /* Adjust this value as needed */
    height: 150px;
    width: 175px;
    border-radius: 8px; /* Rounded corners for the image */
    margin-bottom: 20px; /* Space below the image */
    display: block; /* Makes the image a block-level element */
    margin-left: auto; /* Centers the image */
    margin-right: auto; /* Centers the image */
}

.study-overview-control {
/*    background-color: #f9f9fa;*/
/*    border: 1px solid #ddd;*/
    border-radius: 8px;
    padding: 20px;
    margin-top: 30px;
/*    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);*/
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
}

.study-overview-control .overview-image-control {
    width: 60%; /* Adjust this value as needed */
    height: 275px;
    width: 525px;
    border-radius: 8px; /* Rounded corners for the image */
    margin-top: 20px; /* Space below the image */
    margin-bottom: 20px; /* Space below the image */
    display: block; /* Makes the image a block-level element */
    margin-left: auto; /* Centers the image */
    margin-right: auto; /* Centers the image */
}

.study-overview-signs {
    background-color: #f9f9fa;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-top: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
}

.study-overview-signs .overview-image-signs {
    width: 60%; /* Adjust this value as needed */
    height: 180px;
    width: 200px;
    border-radius: 8px; /* Rounded corners for the image */
    margin-top: 20px; /* Space below the image */
    margin-bottom: 20px; /* Space below the image */
    display: block; /* Makes the image a block-level element */
    margin-left: auto; /* Centers the image */
    margin-right: auto; /* Centers the image */
}


.study-overview-cntrl {
    display: flex;
    justify-content: space-around; /* Adjust as needed */
    align-items: flex-start; /* Align items at the start of the container */
    background-color: #f9f9fa;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-top: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    text-align: center;
}

.study-overview-cntrl .overview-image-cntrl {
/*    max-width: 100%;*/
    height: auto;
    width: 650px;
    border-radius: 8px; /* Rounded corners for the image */
    margin-bottom: 20px; /* Space below the image */
    display: block; /* Makes the image a block-level element */
    margin-left: auto; /* Centers the image */
    margin-right: auto; /* Centers the image */
}

.image-container {
    display: flex;
    flex-direction: column; /* Stack image and caption vertically */
    align-items: center; /* Center-align the content */
    text-align: center; /* Center-align text for captions */
}

.road-signs {
    max-width: 120px; 
    margin: 10px; 
    border-radius: 5px;
}

/*.overview-image-cntrl {
    max-width: 100%; 
    height: auto; 
}*/

.caption-image {
    margin-top: 8px; /* Space between image and caption */
}


.study-overview h2 {
    color: #007bff; /* A primary color for the heading */
    margin-bottom: 15px; /* Space below the heading */
    font-size: 1.5em; /* Larger font size for the heading */
    text-align: center; /* Center-align the heading */
}

h6 {
    color: #007bff; /* A primary color for the heading */
    margin-top: 15px; /* Space below the heading */
    margin-bottom: 15px; /* Space below the heading */
    font-size: 1.15em; /* Larger font size for the heading */
    text-align: left; /* Center-align the heading */
}

.study-overview p {
    color: #333; /* Darker color for text for readability */
    margin-bottom: 10px; /* Space below each paragraph */
    text-align: justify; /* Justify aligns the text for a clean look */
}

@media (max-width: 768px) {
    .study-overview {
        padding: 15px; /* Lesser padding on smaller screens */
    }
    .study-overview h2 {
        font-size: 1.3em; /* Slightly smaller heading on smaller screens */
    }
}

.study-overview h3 {
    color: #007bff; /* A primary color for the heading */
    margin-top: 20px; /* Space below the heading */
    margin-bottom: 15px; /* Space below the heading */
    font-size: 1.5em; /* Larger font size for the heading */
    text-align: left; /* Center-align the heading */
}

.study-overview p {
    color: #333; /* Darker color for text for readability */
    margin-bottom: 10px; /* Space below each paragraph */
    text-align: justify; /* Justify aligns the text for a clean look */
}

@media (max-width: 768px) {
    .study-overview {
        padding: 15px; /* Lesser padding on smaller screens */
    }
    .study-overview h2 {
        font-size: 1.3em; /* Slightly smaller heading on smaller screens */
    }
}

/* Styles for the ordered list */
ol {
    padding-left: 20px; /* Space from the left edge */
    line-height: 1.6; /* Spacing between lines */
}

/* Styles for list items */
ol li {
/*        font-family: 'Times New Roman', serif; /* Font family for list items */*/
    color: #555555; /* Color for list item text */
    margin-bottom: 5px; /* Space below each list item */
}
.call-to-action {
  text-align: center;
  margin-top: 30px;
}

.call-to-action a {
  font-size: 14px;
  padding: 10px 20px;
  background-color: #007bff;
  color: #fff;
  border-radius: 5px;
  margin-bottom: 50px;
  text-decoration: none; /* Added to remove underline */
}

.button-container {
    display: flex;
    justify-content: space-between;
    margin-top: 20px; /* Add some space above the button */
/*    margin-bottom: 20px;*/
/*    padding: 20px;*/
/*    justify-content: space-between; /* Spaces the child elements evenly */*/
/*    gap: 20px; /* Ensures a gap of 20px between each child element */*/
}

button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 15px;
    cursor: pointer;
}

.button-container button {
    z-index: 10; /* Ensure it's higher than other elements */
    position: relative; /* May help with stacking context */
    pointer-events: auto; /* Ensure it can receive pointer events */
}

.video-container {
    display: flex;
    justify-content: center;
    margin-top: 20px; /* Add some space above the video */
}
h5 {
    color: #007bff; /* Sets the text color */
    font-family: Arial, sans-serif; /* Sets the font family */
    text-align: left; /* Aligns text to the left; change as needed */
    margin-top: 20px; /* Adds space above the heading */
    margin-bottom: 10px; /* Adds space below the heading */
    font-size: 14px; /* Sets the size of the font */
    font-weight: bold; /* Makes the font bold */
    padding-left: 20px; /* Indent h5 */
}
/* To indent content under each h5 */
h5 + * {
    padding-left: 20px;
}

/*body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
    padding: 20px;
}*/

.category-section {
    background: #ffffff;
    border: 1px solid #dddddd;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.category-section h3 {
    color: #007bff;
    margin-bottom: 15px;
    margin-top: 30px; /* Space below the heading */
}

.question {
    margin-bottom: 10px;
    max-width: 1600px;
}

label {
    display: block;
    padding: 5px;
    background-color: #f9f9f9;
    margin-bottom: 5px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

label:hover {
    background-color: #e9e9e9;
}

input[type="radio"] {
    margin-right: 10px;
}

input[type="submit"] {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    margin-top: 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

input[type="submit"]:hover {
    background-color: #218838;
}

#result1, #result2, #result3, #result4, #result5, #result6, #result7, #result8, #result9, #result10, #result11, #result12, #result13, #result14 {
    display: none;
    padding: 20px;
    background-color: #17a2b8;
    color: #ffffff;
    margin-top: 20px;
    border-radius: 8px;
}

#result1, #result2, #result3, #result4, #result5, #result6, #result7, #result8, #result9, #result10, #result11, #result12, #result13, #result14 button {
    background-color: #ffc107;
    color: #333;
    border: none;
    padding: 8px 16px;
    margin-right: 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#result1, #result2, #result3, #result4, #result5, #result6, #result7, #result8, #result9, #result10, #result11, #result12, #result13, #result14 button:hover {
    background-color: #e0a800;
}

p {
    margin-top: 0;
    justify-content: space-between;
    font-size: 0.90em;
}
/* =====================================================*/
.no-questions-message {
    color: #2e6da4; /* Friendly blue color */
    background-color: #d9edf7; /* Light blue background */
    border: 1px solid #bce8f1; /* Border color */
    padding: 20px; /* Padding inside the box */
    margin: 30px 0; /* Margin around the box */
    border-radius: 8px; /* Rounded corners */
    text-align: center; /* Center-align the text */
    font-size: 1.1em; /* Slightly larger font size */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

.no-questions-message p {
    margin: 0 0 10px; /* Spacing between paragraph and button */
}

.refresh-button {
    display: inline-block;
    text-decoration: none;
    background-color: deepskyblue; /* Green color for action */
    color: white; /* White text */
    padding: 10px 20px; /* Padding */
    border-radius: 5px; /* Rounded corners */
    transition: background-color 0.3s; /* Smooth transition effect */
}

.refresh-button:hover {
    background-color: lightskygrey; /* Darker green on hover */
}
/* ========================================================*/
input[type="radio"]:disabled + label {
    color: #cccccc;
    cursor: not-allowed;
}

/*.dashicons-car {
    font-size: 1.3em;
    margin-right: 15px;
}*/

.dashicons-car, .dashicons-welcome-learn-more  {
    font-size: 1.3em;
    margin-right: 15px;
}
/*.dashicons-welcome-learn-more {
    font-size: 1.5em;
    margin-right: 30px;
}*/
.understanding-vehicle {
    color: red;
/*    color: royalblue;*/
}
.table-container {
    width: 100%; /* Adjust the width as needed */
    display: flex;
    justify-content: center; /* Center the table horizontally */
/*    margin-top: 8px;  Add some top margin */
    margin-bottom: 30px; /* Add some bottom margin */
}

table {
    border-collapse: collapse;
    margin-top: 5px; /* Additional margin at the top, adjust as needed */
    font-size: 12px;
}

table, th, td {
    border: 1px solid #ddd;
}

th, td {
    padding: 10px;
    text-align: left; /* Align the text to the left inside cells */
}

caption {
    caption-side: top; /* Ensure the caption is at the top */
    text-align: center; /* Center the caption text */
    margin-bottom: 10px; /* Space between caption and table */
    font-weight: bold; /* Make the caption text bold */
    font-size: 1.0em; /* Increase the font size */
}

th {
    background-color: #f2f2f2;
}

tbody tr:nth-child(odd) {
    background-color: #f9f9f9;
}

thead {
    font-size: 12px;
}

.section-image {
    border-radius: 15px;
}

.shading {
    background-color: lightgrey; 
    padding: 5px; 
    border-radius: 4px;
    text-align: center;
}
.section-topics {
    font-style: italic;   /* Italicizes the text */
    color: #007BFF;       /* Sets the text color to a bright blue */
    font-weight: bold;    /* Makes the font bold */
}
.content-preview, #fullContent1, #fullContent2, #fullContent3, #fullContent4, #fullContent5, #fullContent6, #fullContent7, #fullContent8 {
    flex: 0 0 calc(50% - 20px); /* Set flex-basis to half of the container width minus padding */
/*    padding: 0 10px;*/
    padding: 15px 20px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
/*    border: none;*/
    border-radius: 5px;
    box-sizing: border-box;
/*    box-sizing: content-box;*/
}

.toggle-link {
    display: inline-block; /* Make the link display as block for width control */
    border: 1px solid lightskyblue; /* Sets a solid, dark gray border */
    padding: 8px 12px; /* Adds padding around the text */
    text-align: right; /* Align the text to the right */
    margin-top: 20px; /* Space above the link */
    color: #007bff; /* Link color */
    text-decoration: none; /* Removes underline from the link */
    background-color: #f9f9f9;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.toggle-link:hover {
    text-decoration: underline; /* Adds underline on hover for better UX */
}
/*.prev-btn, .next-btn {
    display: inline-block;
    margin: 5px;
    padding: 5px 10px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s; 
}
.prev-btn:hover, .next-btn:hover {
    background-color: #0056b3;
}*/


/* Base button styles */
.btn {
    background-color: #007bff; /* Blue background */
    color: #ffffff; /* White text */
    padding: 10px 20px; /* Top & Bottom | Left & Right padding */
    margin-bottom: 2s0px;
    border: none; /* No border */
    cursor: pointer; /* Cursor changes to a pointer on hover */
    font-size: 16px; /* Font size */
    border-radius: 5px; /* Rounded corners */
    transition: background-color 0.3s, transform 0.2s; /* Smooth transition for background and transform */
    text-align: center; /* Center text */
    display: inline-block; /* Allows setting padding and margins */
    text-decoration: none; /* Removes underline from links if used as <a> */
    font-family: Arial, sans-serif; /* Font family */
}

/* Button hover styles */
.btn:hover {
    background-color: #0056b3; /* Darker shade of blue on hover */
    color: #ffffff; /* Text color remains white */
}

/* Button active/focus styles */
.btn:active, .btn:focus {
    background-color: #004494; /* Even darker shade of blue when active or focused */
    outline: none; /* Removes the outline */
    transform: scale(0.98); /* Slightly reduces the button size to mimic a press */
}

/* Additional styles specific to .btn-submit for customization */
.btn-submit {
    background-color: #28a745; /* Green background for submit buttons */
    margin-bottom: 20px;
}

.btn-submit:hover {
    background-color: #218838; /* Darker shade of green on hover */
}

.btn-submit:active, .btn-submit:focus {
    background-color: #1e7e34; /* Even darker shade of green when active or focused */
}

/*========================================= Media Responsiness =================================================================*/

@media (max-width: 768px) {
    .content-container {
        padding: 10px;
    }

    .section h2 {
        font-size: 20px; /* Smaller font size for smaller screens */
    }

    .section p, .section a {
        font-size: 14px; /* Adjust font size for better readability on smaller screens */
    }
}

@media (max-width: 480px) {
    .container, .study-overview-control {
        flex-direction: column; /* Stack elements vertically on very small screens */
    }

    .form-container, .column, .study-overview-control .overview-image-control {
        max-width: 100%; /* Allow elements to fill the available width on very small screens */
        margin: 10px 0; /* Adjust spacing for stacked layout */
        padding: 10px; /* Less padding on smaller screens */
    }
    
    .study-overview .overview-image, .study-overview-control .overview-image-control {
        width: 80%; /* Adjust image size for very small screens */
        height: auto; /* Maintain aspect ratio */
    }
    .study-overview p {
        font-size: 0.8em; /* Smaller text */
  }
}

@media (max-width: 320px) {
  /* Styles for screens smaller than 320px */
  .form-container {
    padding: 10px; /* Less padding on smaller screens */
  }
  .study-overview p {
    font-size: 0.8em; /* Smaller text */
  }
}

@media (max-width: 1024px) {
    /* Adjustments for small laptops and large tablets */
    .content-container {
        padding: 15px;
    }

    .section h2 {
        font-size: 22px; /* Slightly reduce font size */
    }

    .section p, .section a {
        font-size: 15px; /* Adjust font size for readability */
    }

    .overview-image, .overview-image-control {
        width: 70%; /* Adjust image size for better fit */
    }
}

@media (orientation: landscape) and (max-width: 768px) {
    /* Specific adjustments when device is in landscape orientation */
    .overview-image, .overview-image-control {
        width: 50%; /* Larger images in landscape mode */
    }

    .form-container, .column {
        padding: 10px; /* Reduce padding to save space */
    }
}

@media (max-width: 600px) {
    /* Adjustments for small devices */
    .column-header:after {
        background-image: linear-gradient(to right, transparent, #0056b3, transparent);
        height: 1px; /* Make the underline thinner */
    }

    .call-to-action a {
        font-size: 13px; /* Smaller call-to-action font */
        padding: 8px 16px; /* Adjust button size */
    }
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* High-resolution displays */
    .content-container {
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15); /* Sharper shadow for clarity */
    }

    .section h2, .section p {
        text-shadow: 0 0 1px rgba(0, 0, 0, 0.1); /* Subtle text shadow for improved legibility */
    }
}

/* Portrait or orientation */
@media (orientation: portrait) {
    .column {
        flex-direction: column; /* Stack elements vertically in portrait mode */
    }
}

/* Landscape orientation */
@media (orientation: landscape) {
    .column {
        flex-direction: row; /* Align elements side by side in landscape mode */
    }
}

/* Target devices with a 16:9 aspect ratio */
@media (aspect-ratio: 16/9) {
    .container {
        max-width: 1200px; /* Optimize container size for widescreen displays */
    }
}

/* Target devices with a 4:3 aspect ratio */
@media (aspect-ratio: 4/3) {
    .container {
        padding: 20px; /* Adjust padding for traditional displays */
    }
}
/* iPhone X */
@media only screen 
  and (device-width: 375px) 
  and (device-height: 812px) 
  and (-webkit-device-pixel-ratio: 3) {
    .call-to-action a {
        padding: 12px 24px; /* Larger buttons for easier interaction */
    }
}

/* iPad (General targeting) */
@media only screen 
  and (min-device-width: 768px) 
  and (max-device-width: 1024px) {
    .overview-image, .overview-image-control {
        width: 80%; /* Adjust image size for tablet displays */
    }
}

/* High DPI screens */
@media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min-resolution: 192dpi) {
    /* Increase font weight for sharper text */
    body {
        font-weight: 500;
    }

    /* Higher resolution images */
    .overview-image {
        background-image: url('path/to/high-res-image.jpg');
    }
}



/* Adjustments for smaller screens */
@media (max-width: 768px) {
    .content-preview, #fullContent7 {
        flex-basis: 100%;
    }
}