.blog #author {
    margin: 2em 0;
    padding: 1em;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
}

/* Header */
.blog #author .author-header h2 {
    font-size: 1.75rem;
    margin-bottom: 1em;
    text-align: center;
    color: #333;
}

.blog #author .author-container {
    display: flex;
    align-items: center;
    gap: 1em;
    flex-wrap: wrap;
}



/* Author image */
.blog #author .author-image img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #ccc;
}

/* Author info */
.blog #author .author-info {
    flex: 1;
}

/* Author name */
.blog #author .author-name {
    margin: 0 0 0.5em;
    font-size: 1.5rem;
    color: #333;
    text-align: left;
}

/* Author bio */
.blog #author .author-bio {
    margin: 0 0 1em;
    font-size: 1rem;
    color: #555;
    line-height: 1.4;
}

/* Social links */
.blog #author .author-social {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 0.5em;
    flex-wrap: wrap;
    justify-content: center;
}

.blog #author .author-social li a {
    display: inline-block;
    padding: 0.4em 0.8em;
    border: 1px solid #0073aa;
    color: #0073aa;
    text-decoration: none;
    border-radius: 3px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.blog #author .author-social li a:hover {
    background-color: #0073aa;
    color: #fff;
}

/* Adjust layout for smaller screens */
@media (max-width: 600px) {
    .blog #author .author-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .blog #author .author-image img {
        width: 80px;
        height: 80px;
    }

    .blog #author .author-name {
        text-align: center;
    }
}












/* Typography & Layout for Blog Content within .blog (excluding the article container itself) */

/* Basic text elements */
.blog article p {
    margin-bottom: 1.5em;
    /* spacing between paragraphs */
    line-height: 1.6;
}

.blog article strong,
.blog article b {
    font-weight: bold;
}

.blog article em,
.blog article i {
    font-style: italic;
}

.blog article u {
    text-decoration: underline;
}

.blog article s,
.blog article del {
    text-decoration: line-through;
}

/* Inline quotations (if using <q> tags) */
.blog article q {
    quotes: "“" "”" "‘" "’";
}

.blog article q:before {
    content: open-quote;
}

.blog article q:after {
    content: close-quote;
}

/* Blockquotes for larger quotes */
.blog article blockquote {
    margin: 1em 0;
    padding: 1em;
    border-left: 4px solid #ccc;
    background: #f9f9f9;
    font-style: italic;
}

/* Abbreviations and citations */
.blog article abbr[title] {
    border-bottom: 1px dotted;
    cursor: help;
}

.blog article cite {
    font-style: italic;
}

/* Headings (H2 – H6) */
.blog article h2,
.blog article h3,
.blog article h4,
.blog article h5,
.blog article h6 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    font-weight: bold;
    text-align: center;
}

/* Lists */
.blog article ul,
.blog article ol {
    margin: 1.5em 0;
    padding-left: 2em;
}
.blog article #trail{
    margin:0;
    margin-bottom: 2rem;
    margin-left: auto;
    margin-right: auto;
    padding:0;
}

.blog article ul li,
.blog article ol li {
    margin-bottom: 0.5em;
    line-height: 1.6;
}
.blog article #trail li {
    margin: 0;
    line-height: auto;
}

/* Sections – adding spacing and a subtle background */
.blog article section {
    margin: 2em 0;
    /* extra spacing between sections */
    padding: 1em;
    padding-left: 2em;
    padding-right: 2em;
    /*background-color: #f8f8f8;*/
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Links 
.blog article a {
    color: #337ab7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog article a:hover {
    color: #286090;
    text-decoration: underline;
}
*/

/* Images – make sure they don’t overflow the article */
.blog article img {
    max-width: 100%;
    width: 450px;
    height: auto;
    display: block;
    margin: 1.5em auto;
}

/* Code snippets – inline and block */
.blog article code {
    background: #f4f4f4;
    padding: 0.2em 0.4em;
    border-radius: 4px;
    font-family: monospace;
}

.blog article pre {
    background: #f4f4f4;
    padding: 1em;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow-x: auto;
    margin: 1.5em 0;
}

/* Horizontal Rules */
.blog article hr {
    border: none;
    border-top: 1px solid #ddd;
    margin: 2em 0;
}







.blog article .gallery {
    position: relative;
    width: 100%;
    max-width: 450px;
    aspect-ratio: 1 / 1;
    /* Maintains a square container */
    margin: 0 auto;
    overflow: hidden;
}

.blog article .gallery picture {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    animation: fadeCycle 15s infinite;
}

/* Stagger animations for three images */
.blog article .gallery picture:nth-child(1) {
    animation-delay: 0s;
}

.blog article .gallery picture:nth-child(2) {
    animation-delay: 5s;
}

.blog article .gallery picture:nth-child(3) {
    animation-delay: 10s;
}

/* Ensure images scale correctly without being cut off */
.blog article .gallery picture img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Keyframes to fade images in and out */
@keyframes fadeCycle {
    0% {
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    30% {
        opacity: 1;
    }

    40% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}








.blog article a.hose-link {
    position: relative;
    color: #0073aa;
    display: inline-block;
    text-decoration: underline;
}

/* Hover card – no centering here; JS will handle positioning */
.blog article a.hose-link .hover-card {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;

    position: absolute;
    top: 100%;
    left: 0;
    /* default: will be adjusted by JS */

    width: 600px;
    max-width: calc(100vw - 20px);
    height: 350px;
    background-color: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    padding: 1em;
    box-sizing: border-box;
    z-index: 10;

    /* Layout the card as a horizontal flex container */
    display: flex;
    flex-direction: row;
    align-items: center;
}

/* Picture container – fixed at 200px */
.blog article a.hose-link .card-picture {
    flex: 0 0 200px;
    max-width: 200px;
    margin-right: 1em;
}

/* Info container – fill the remaining space */
.blog article a.hose-link .card-info {
    flex: 1;
    min-width: 0;
    /* prevents overflow */
}

/* Force the picture to be 200px x 200px */
.blog article a.hose-link .card-picture picture,
.blog article a.hose-link .card-picture img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    display: block;
}

/* Style the card title and summary */
.blog article a.hose-link .card-title {
    display: block;
    margin: 0 0 0.5em;
    font-size: 1.25rem;
    font-weight: bold;
    color: #333;
}

.blog article a.hose-link .card-summary {
    display: block;
    margin: 0;
    font-size: 1rem;
    color: #555;
}
