/* =========================================
   Single Post Layout
========================================= */

.hyway-archive-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 40px;
    align-items: start;
}

.hyway-archive-main {
    min-width: 0;
}

.hyway-single-article {
    background: #ffffff;
    border-radius: 12px;
    padding: clamp(24px, 4vw, 50px);
    box-shadow: 0 4px 15px rgba(34, 87, 102, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

/* Keep article content readable and not too wide */
.hyway-single-header,
.hyway-single-thumbnail,
.hyway-single-content,
.hyway-single-footer {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

/* =========================================
   Single Post Header
========================================= */

.hyway-single-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.hyway-category-badge {
    background-color: var(--logo-orange-color, #b85804);
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.3s ease;
}

.hyway-category-badge:hover {
    background-color: var(--logo-green-color, #225766);
}

.hyway-single-date {
    color: var(--hyway-home-muted, #555555);
    font-size: 0.95rem;
    font-weight: 500;
}

.hyway-single-post-title {
    font-family: 'Montserrat', sans-serif!important;
    font-size: clamp(2rem, 4vw, 2.8rem)!important;
    color: var(--logo-green-color, #225766)!important;
    margin-bottom: 30px !important;
    line-height: 1.2!important;
}

/* =========================================
   Featured Image
========================================= */

.hyway-single-thumbnail {
    margin-bottom: 40px;
    border-radius: 12px;
    overflow: hidden;
}

.hyway-single-thumbnail img {
    width: 100%;
    height: auto;
    object-fit: cover;
    max-height: 460px;
    display: block;
}

/* =========================================
   Article Content Typography
========================================= */

.hyway-single-content {
    font-size: 1.06rem;
    line-height: 1.85;
    color: #333333;
}

.hyway-single-content h2,
.hyway-single-content h3 {
    color: var(--logo-green-color, #225766);
    margin-top: 2em;
    margin-bottom: 0.75em;
    line-height: 1.3;
}

.hyway-single-content p {
    margin-bottom: 1.35em;
    text-align: left;
}

.hyway-single-content ul,
.hyway-single-content ol {
    margin: 0 0 1.5em 1.4em;
    padding: 0;
}

.hyway-single-content li {
    margin-bottom: 0.6em;
}

.hyway-single-content blockquote {
    margin: 2em 0;
    padding: 1em 1.25em;
    border-left: 4px solid var(--logo-orange-color, #b85804);
    background: #faf8f5;
    border-radius: 6px;
    color: #444444;
    font-style: italic;
}

.hyway-single-content a {
    color: var(--logo-orange-color, #b85804);
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 500;
}

.hyway-single-content a:hover {
    color: var(--logo-green-color, #225766);
}

.hyway-single-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

/* =========================================
   Previous / Next Post Navigation
========================================= */

.hyway-post-navigation {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 20px;
    margin-top: 60px;
    padding-top: 30px;
    border-top: 2px solid var(--background-color5-off-white, #f4f5f8);
}

.hyway-post-navigation > div {
    flex: 1;
}

.hyway-post-navigation .nav-next {
    text-align: right;
    display: flex;
    justify-content: flex-end;
}

.hyway-post-navigation a {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    background-color: var(--background-color5-off-white, #f4f5f8);
    color: var(--logo-green-color, #225766);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.hyway-post-navigation a:hover {
    background-color: var(--logo-orange-color, #b85804);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(184, 88, 4, 0.2);
}

/* =========================================
   Sidebar & Widget Graphics
========================================= */

.hyway-archive-sidebar {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
}

/* Individual Widget Boxes */
.hyway-widget {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(34, 87, 102, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.hyway-widget-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.25rem;
    color: var(--logo-green-color, #225766);
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--background-color5-off-white, #f4f5f8);
    position: relative;
}

/* Add a sleek orange accent line under the title */
.hyway-widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--logo-orange-color, #b85804);
}

/* -----------------------------------------
   Category List Widget
----------------------------------------- */

.hyway-widget-categories ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hyway-widget-categories li {
    font-size: 0.95rem;
    color: var(--hyway-home-muted, #888888);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed #e1e4e8;
    padding: 12px 0;
}

.hyway-widget-categories li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.hyway-widget-categories a {
    color: var(--logo-green-color, #225766);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.hyway-widget-categories li:hover a {
    color: var(--logo-orange-color, #b85804);
    transform: translateX(5px);
}

/* -----------------------------------------
   Recent Posts Widget
----------------------------------------- */

.hyway-recent-posts-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hyway-recent-post-item {
    display: flex;
    gap: 15px;
    align-items: center;
    text-decoration: none;
}

.hyway-recent-thumb {
    flex-shrink: 0;
    width: 75px;
    height: 75px;
    border-radius: 8px;
    overflow: hidden;
}

.hyway-recent-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.hyway-recent-post-item:hover .hyway-recent-thumb img {
    transform: scale(1.1);
}

.hyway-recent-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.hyway-recent-info h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #333333;
    margin: 0;
    line-height: 1.4;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hyway-recent-post-item:hover h4 {
    color: var(--logo-orange-color, #b85804);
}

.hyway-recent-date {
    font-size: 0.8rem;
    color: #888888;
    font-weight: 500;
}

/* =========================================
   Responsive
========================================= */

@media (max-width: 1100px) {
    .hyway-archive-layout {
        grid-template-columns: minmax(0, 1fr) 280px;
        gap: 30px;
    }

    .hyway-single-header,
    .hyway-single-thumbnail,
    .hyway-single-content,
    .hyway-single-footer {
        max-width: 700px;
    }
}

@media (max-width: 900px) {
    .hyway-archive-layout {
        grid-template-columns: 1fr;
    }

    .hyway-archive-sidebar {
        position: static;
    }

    .hyway-single-header,
    .hyway-single-thumbnail,
    .hyway-single-content,
    .hyway-single-footer {
        max-width: 100%;
    }

    .hyway-single-article {
        padding: 24px;
    }
}

@media (max-width: 600px) {
    .hyway-post-navigation {
        flex-direction: column;
        gap: 15px;
    }

    .hyway-post-navigation .nav-next {
        justify-content: flex-start;
        text-align: left;
    }

    .hyway-post-navigation a {
        width: 100%;
        justify-content: center;
    }

    .hyway-single-title {
        margin-bottom: 24px;
    }

    .hyway-widget {
        padding: 22px;
    }
}