/*------------------------------------------------------------------------------------------*/
/* MyHealthcare — Base Styles                                                                */
/*------------------------------------------------------------------------------------------*/
body {
    width: 1200px;
    font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #f0ebe3;
    color: #000000;
    margin: 0 auto;
    padding: 0;
    line-height: 1.7;
}

a {
    color: #1a6fb5;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #c0392b;
    text-decoration: underline;
    background-color: transparent;
}

/*------------------------------------------------------------------------------------------*/
/* MyHealthcare — Typography                                                                 */
/*------------------------------------------------------------------------------------------*/
h1 {
    color: #0055bb;
    font-size: 28px;
    font-weight: 700;
    border-bottom: 3px solid #1a6fb5;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

h2 {
    color: #c0392b;
    font-size: 22px;
    font-weight: 600;
    border-left: 4px solid #c0392b;
    padding-left: 12px;
    margin-top: 30px;
    margin-bottom: 14px;
}

h3 {
    color: #27ae60;
    font-size: 18px;
    font-weight: 600;
    margin-top: 22px;
    margin-bottom: 10px;
}

h4 {
    color: #8e44ad;
    font-size: 16px;
    font-weight: 600;
}

ul, ol {
    margin: 0 0 20px 20px;
    padding-left: 10px;
    color: #000000;
}

li {
    margin-bottom: 8px;
    color: #000000;
    line-height: 1.6;
}

p {
    color: #000000;
    margin: 8px 0;
    line-height: 1.7;
}

strong {
    color: #0066cc !important;
    font-weight: 700;
}

em {
    color: #555;
}

hr {
    border: none;
    border-top: 2px solid #d5dde5;
    margin: 24px 0;
}

/*------------------------------------------------------------------------------------------*/
/* MyHealthcare — Tables                                                                     */
/*------------------------------------------------------------------------------------------*/
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: #faf6f0;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

th {
    background: linear-gradient(135deg, #1a5276, #1a6fb5);
    color: #ffffff;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.02em;
    border-bottom: 2px solid #154360;
}

td {
    padding: 10px 16px;
    border-bottom: 1px solid #e8edf2;
    color: #000000;
    font-size: 14px;
}

tr:nth-child(even) {
    background-color: #f0ebe3;
}

tr:hover {
    background-color: #e8dfd4;
}

table, th, td {
    border: 1px solid #d5dde5;
}

/*------------------------------------------------------------------------------------------*/
/* Lab Test Range Bars                                                                       */
/*------------------------------------------------------------------------------------------*/
.range-bar {
    display: flex;
    width: 100%;
    height: 34px;
    border-radius: 6px;
    overflow: hidden;
    margin: 8px 0 16px 0;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.range-bar .r-low {
    background: linear-gradient(135deg, #c0392b, #e74c3c);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex: 1;
    padding: 2px 6px;
    line-height: 1.2;
}

.range-bar .r-normal {
    background: linear-gradient(135deg, #1e8449, #27ae60);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex: 2;
    padding: 2px 6px;
    line-height: 1.2;
}

.range-bar .r-high {
    background: linear-gradient(135deg, #d35400, #e67e22);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex: 1;
    padding: 2px 6px;
    line-height: 1.2;
}

.range-bar .r-optimal {
    background: linear-gradient(135deg, #1a6fb5, #2e86c1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex: 1.5;
    padding: 2px 6px;
    line-height: 1.2;
    border-left: 2px solid rgba(255,255,255,0.3);
    border-right: 2px solid rgba(255,255,255,0.3);
}

.range-label {
    font-size: 14px;
    font-weight: 700;
    color: #1a5276;
    margin: 16px 0 2px 0;
}

.range-unit {
    font-size: 12px;
    color: #7f8c8d;
    font-weight: 400;
    margin-left: 6px;
}

/* Lab test reference table */
.lab-ref-table td:first-child {
    font-weight: 600;
    color: #1a5276;
    white-space: nowrap;
}

.lab-ref-table .cell-low {
    background-color: #fadbd8;
    color: #922b21;
    text-align: center;
    font-weight: 600;
}

.lab-ref-table .cell-normal {
    background-color: #d5f5e3;
    color: #1e8449;
    text-align: center;
    font-weight: 600;
}

.lab-ref-table .cell-high {
    background-color: #fdebd0;
    color: #b9770e;
    text-align: center;
    font-weight: 600;
}

.lab-ref-table .cell-optimal {
    background-color: #d4e6f1;
    color: #1a5276;
    text-align: center;
    font-weight: 600;
}

/*------------------------------------------------------------------------------------------*/
/* MyHealthcare — Form Elements                                                              */
/*------------------------------------------------------------------------------------------*/
input[type="text"] {
    width: 750px;
    height: 40px;
    padding: 10px 15px;
    font-size: 18px;
    border: 2px solid #bdc3c7;
    border-radius: 6px;
    background-color: #faf6f0;
    color: #2c3e50;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input[type="text"]:focus {
    outline: none;
    border-color: #1a6fb5;
    box-shadow: 0 0 0 3px rgba(26, 111, 181, 0.15);
}

input[type="submit"] {
    height: 44px;
    font-size: 18px;
    padding: 10px 30px;
    background: linear-gradient(135deg, #27ae60, #219a52);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.1s ease;
}

input[type="submit"]:hover {
    background: linear-gradient(135deg, #219a52, #1e8449);
    transform: translateY(-1px);
}

/*------------------------------------------------------------------------------------------*/
/* MyHealthcare — Footer                                                                     */
/*------------------------------------------------------------------------------------------*/
.footer {
    text-align: center;
    margin-top: 50px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #1a5276, #1a6fb5);
    color: #ffffff;
    font-size: 16px;
    font-weight: normal;
    border-top: 3px solid #c0392b;
}

.footer p {
    margin: 5px 0;
    color: #ffffff !important;
}

.footer a {
    color: #ffffff !important;
    text-decoration: none;
}

.footer a:hover {
    color: #ffffff !important;
    text-decoration: underline;
}

/*------------------------------------------------------------------------------------------*/
/* MyHealthcare — Code Blocks                                                                */
/*------------------------------------------------------------------------------------------*/
code {
    background-color: #efe9df;
    padding: 2px 6px;
    border-radius: 4px;
    color: #1a5276;
    font-family: "JetBrains Mono", Consolas, "Courier New", monospace;
    font-size: 0.9em;
    border: 1px solid #d5dde5;
}

pre {
    background-color: #1a2332;
    padding: 16px;
    border-radius: 6px;
    overflow-x: auto;
    color: #e8edf2;
    font-family: "JetBrains Mono", Consolas, "Courier New", monospace;
    line-height: 1.5;
    border-left: 4px solid #1a6fb5;
}

/*------------------------------------------------------------------------------------------*/
/* MyHealthcare — Video Grid                                                                 */
/*------------------------------------------------------------------------------------------*/
.video-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin: 20px 0;
}

.video-item {
    display: flex;
    flex-direction: column;
    background: #faf6f0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.video-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.video-item img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0;
    padding: 0;
}

.video-item a {
    text-decoration: none;
    color: #1a6fb5;
    font-weight: 600;
}

.video-item a:hover {
    text-decoration: underline;
    color: #c0392b;
}

.video-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #1a2332;
    overflow: hidden;
}

.video-media img,
.video-media iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 0;
}

.video-description {
    margin: 0;
    padding: 12px 16px;
    font-size: 14px;
    color: #34495e;
    font-weight: 500;
    line-height: 1.4;
}
/*------------------------------------------------------------------------------------------*/
