/* --- Global Styles --- */
body {
    /* Sets the background to a soft white/off-white */
    background-color: #f4f7f9; /* This is the light grey color */
    font-family: Georgia, serif, Arial, sans-serif;
    line-height: 1.6;
    color: #333; 
    margin: 0; 
    padding: 0;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image covers the container without distortion */
}


.hero-image-container {
    width: 100%;
    /* Set the height for the image area */
    height: 250px; 
    overflow: hidden;
    /* Establishes a reference point for absolute positioning */
    position: relative; 
    z-index: 1; /* Ensures the image is behind the content card */
}

/* Adjust for mobile screens */
@media (max-width: 1200px) {
    .hero-image-container {
        height: 180px; /* Scale down the height for phones */
    }
}

/* Style for the paragraph containing the link, to manage spacing */
.back-link-container {
    /* Remove text-align: right; */
    margin-top: 0; /* Remove top margin so it aligns perfectly */
    margin-bottom: 0; /* Remove bottom margin */
    /* Add padding/margin here if needed to vertically align with the h1 text */
}

/* Styling for the container holding the h1 and the back button */
.header-and-back-btn-container { 
    display: flex; /* Makes the h1 and the button sit side-by-side */
    justify-content: space-between; /* Pushes the h1 to the left and the button to the right */
    align-items: center; /* Vertically centers the h1 text and the button */
    margin-bottom: 20px; /* Provides space below the combined header */
    border-bottom: 1px solid #cccccc; 
    padding-bottom: 5px; /* Adds space above the line */
}

.header-and-back-btn-container h1 { 
    /* Set the font to sans-serif */ 
    font-family: "Segoe UI", Helvetica, Arial, sans-serif;
    /* Set the color to a deep "CHOP Blue" */ 
    color: #004f98; 
    margin-bottom: 0; 
}

/* Styles for the link itself, making it look like a button */
.back-to-home-btn {
    display: inline-block;
    padding: 8px 15px;
    background-color: rgba(0, 173, 239, 0.6);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.85em;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.back-to-home-btn:hover {
    background-color: #00adef;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* ---  Title Styling --- */
.page-title {
    /* Styles the title to look like the main site's title */
    font-family: "Segoe UI", Helvetica, Arial, sans-serif;
    font-size: 2em;
    font-weight: 500;
    color: #004e7c; /* Dark CHOP blue */
    margin-top: 0;
    margin-bottom: 25px; /* Adds space below the title */
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0; /* Subtle separator line below title */
}

/* Specific adjustment for the main content container on this page */
/* This ensures the content blocks fill more of the available space */
/* --- Main Content Container (Clean white card effect) --- */
.container {
    max-width: 900px;
    /* Pushes the container UP to overlap the image */
    margin: -100px auto 40px auto; 
    padding: 30px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1); 
    /* Ensures the card appears on top of the image */
    z-index: 10; 
    position: relative; 
}

.container h2{
    color: #004e7c; /* Dark CHOP blue */
    font-size: 1.25em;
    font-weight: 300;
}

/* --- Training Button (Call to Action - Use the iLab olive green) --- */
.button {
    display: block;
    /*width: 500px;*/
    text-align: center;      /* Centers the text inside the button */
    margin: 20px auto 0;     /* Centers the button itself horizontally */
    max-width: 500px;        /* Limits width on large screens */
    width: 90%;              /* Ensures it fits on mobile devices */
    /* Use a shade of the olive green from the iLab button on your main site */
    background-color: #799a4c; 
    color: white;
    padding: 15px 30px; 
    margin-top: 20px;
    /* Add rounded corners */
    border-radius: 8px;
    /*Add shadow*/
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    /*text-transform: uppercase;*/
    font-weight: bold;
    letter-spacing: 1px;
    transition: background-color 0.3s;
    font-size: 1.1em;
    text-decoration: none; /* Ensure no underline */
}

.button:hover {
    background-color: #617c3c; /* Darker green on hover */
    text-decoration: none;
}


.button-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    column-gap: 40px;
    justify-items: center;
    /*margin-top: 30px;*/
}

/* Style the main container for each instruction set */
.instruction-block {
    display: flex; /* Allows the title-box and steps to sit side-by-side */
    background-color: white; /* White background for the whole block */
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    margin-bottom: 30px;
    overflow: hidden; /* Ensures the border-radius applies cleanly */
    border: 1px solid #e0e0e0; /* Subtle border for definition */
    padding: 10px;
}

/* Title box container */
.instruction-block .title-box {
    background: #005587;         /* CHOP blue */
    font-family: "Segoe UI", Helvetica, Arial, sans-serif;
    font-size: 1.25em;
    padding: 14px 20px;
    border-radius: 10px;
    margin-bottom: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

/* Title text */
.instruction-block .title-box .title-link {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
}


/* Hover effect */
.instruction-block .title-box:hover {
    background: #0070ad;         /* slightly brighter blue */
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

/* Active (mouse down) */
.instruction-block .title-box:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}


/* Style the dark blue title box */
.title-box {
    background-color: #004e7c; /* CHOP Institutional Blue */
    color: white;
    padding: 10px;
    font-size: 1.3em;
    font-weight: bold;
    flex: 0 0 25%; /* Takes up 25% of the block width */
    display: flex;
    text-align: center;   /* ensures wrapping text stays centered */
    align-items: center;
    justify-content: center;  /*flex-start; <- items left-aligned*/
    line-height: 1.3;
}

/* Style the steps list (the right side) */
.steps {
    flex-grow: 1; /* Takes up the remaining width */
    padding: 15px 30px;
    margin: 0;
    list-style: none; /* Remove default bullet points */
}

/* Style individual steps */
.steps li {
    padding: 3px 0;
    border-bottom: none; /*1px dashed #eee; /* Subtle dashed line separator */
    font-size: 1.05em;
}

/* Remove the line under the last list item */
.steps li:last-child {
    border-bottom: none;
}

/* Style the checkmarks (using a green color for success/completion) */
.steps li:before {
    content: "✓"; /* Unicode character for a checkmark */
    color: #28a745; /* Green checkmark */
    font-weight: bold;
    margin-right: 10px;
}

/* Small screen adjustment (for responsiveness) */
@media (max-width: 768px) {
    .instruction-block {
        flex-direction: column; /* Stacks the title and steps vertically */
    }
    .title-box {
        flex: none;
        padding: 15px;
    }
}

/* --- Video Player Styling --- */
.video-container {
    padding: 20px;
    background-color: #f0f0f0; /* Light gray background for the video area */
    border-top: 1px solid #ddd;
}
.video-wrapper {
    max-width: 800px;
    margin: 0 auto;
}
/* --- Video Player/Link Styling --- */
.title-box {
    /* Set padding to 0 and let the <a> tag handle the spacing */
    padding: 0; 
}

.title-link {
    color: white; /* Makes the link text white */
    text-decoration: none; /* Removes the underline */
    display: block; /* Makes the link take up the full width/height */
    padding: 30px; /* Gives the link some clickable area */
}

/* --- Instruction card Styling Aurora Analyzer --- */

.instruction-card {
  /*background: rgba(255, 255, 255, 0.85);*/
  background: rgba(0, 85, 135, 0.08); /* ~8% CHOP blue */
  padding: 25px 32px;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  width: 90%;
  margin: 40px auto;
}

.instruction-card h2 {
  color: #005587;
  margin-top: 0;
  font-size: 1.6em;
}

.instruction-card li {
  color: #333;
  line-height: 1.6;
  font-size: 1.1em;
  margin-bottom: 18px;
}

.instruction-card a {
  color: #005587;
  font-weight: 600;
  text-decoration: none;
}

.instruction-card a:hover {
  text-decoration: underline;
}

/* Styling for the container */
.pdf-guide-container {
    margin: 20px 0;
    padding: 15px;
    border: 1px solid #ccc; /* Light border */
    border-radius: 8px; /* Rounded corners */
    background-color: #f9f9f9; /* Light background */
    text-align: center;
}

/* Styling for the explanatory text */
.pdf-guide-explanation {
    font-size: 16px;
    color: #333;
    margin-bottom: 15px;
}

/* Styling for the main link button */
.pdf-guide-link {
    display: inline-block;
    padding: 10px 20px;
    background-color: rgba(0, 173, 239, 0.8);
    color: white; /* White text */
    text-decoration: none; /* Remove underline */
    border-radius: 5px; /* Slightly rounded corners for the button */
    font-weight: bold;
    font-size: 18px;
    transition: background-color 0.3s ease; /* Smooth hover effect */
}

/* Hover effect */
.pdf-guide-link:hover {
    background-color: #00adef;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Icon style */
.pdf-guide-icon {
    margin-right: 8px;
}

.small-note {
    font-size: 0.85em;
    /* You may also want to reduce the margins for a tighter look */
    margin-top: 5px;
    margin-bottom: 5px;
    color: #888;
}

.page-footer-info {
    /* Ensures the footer spans the full width and centers the text */
    width: 100%;
    text-align: center;
    /* Add some space above and below the date */
    padding: 20px 0; 
    /* A very light border or line can visually separate the footer content */
    border-top: 1px solid #eee;
}

.last-updated-date {
    /* Makes the text small */
    font-size: 12px;
    /* Uses a light gray color to be less distracting */
    color: #888; 
    /* Removes default paragraph margins */
    margin: 0; 
}
