/* =============================================================================
   Resources Hub — Page Styles
   File: assets/css/resources-hub.css
   Loaded only on page-templates/resources-hub.php
   Brand cyan (manufacturing-today): #00b0d7
   ============================================================================= */

/* -----------------------------------------------------------------------------
   Layout — flex two-column (main content + sidebar)
   ----------------------------------------------------------------------------- */

.btncustom a {
    background-color: #fff;
    padding: 10px 25px;
    text-decoration: none;
    border-radius: 5px;
}
.related-box {
    width: 50%;
    margin: 10px 30px 10px 0;
    border-top: solid 10px #00b0d7;
    float: left;
    background: #e9e9e9;
    padding: 15px;
}
.related-box .text-orange {
    color: #00b0d7;
    font-size: 18px;
    font-weight: bold;
    padding-top: 10px;
}
.related-box a {
    color: #0f2a4b !important;
    font-size: 18px;
    font-weight: bold;
}
.single-tech_brief_article h2 {
        font-size: 24px;
}
.btncustom a:hover {
    text-decoration: none !important;
}
.resources-hub-page {
    padding: 0;
}

.rh-pagination {
    margin-top: 35px;
    text-align: center;
}

.rh-pagination .page-numbers {
    padding: 0 6px;
}
.rh-layout {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    padding: 0 0 50px;
}

.rh-main-col {
    flex: 1 1 0%;
    min-width: 0;
}

.rh-sidebar-col {
    flex: 0 0 300px;
    width: 300px;
    min-width: 0;
}

/* Override default theme float widths on this page only */
.resources-hub-page #primary  { width: auto; float: none; margin: 0; padding: 0; }
.resources-hub-page #secondary { width: 285px; float: none; margin: 0; padding: 0; }

#page #secondary .widget-title span::before {
    display: none;
}

/* -----------------------------------------------------------------------------
   Page header
   ----------------------------------------------------------------------------- */

.rh-page-header {
    position: relative;
    margin-bottom: 20px;
    border-bottom: 1px solid #dcdcdc;
    padding-bottom: 20px;
}

.rh-page-header:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 113px;
    height: 3px;
    background-color: #00b0d7;
}

.rh-page-title {
    font-size: 25px;
    font-weight: 700;
    color: #000000;
    line-height: 1;
    padding: 0;
}

.rh-page-subheader {
    margin-bottom: 40px;
}

.rh-page-banner {
    background-image: url("../resources-hub.jpg");
    background-color: #000000;
    background-position: right;
    background-repeat: no-repeat;
    border-bottom: 6px solid #00b0d7;
    color: #ffffff;
    font-size: 20px;
    font-weight: bold;
    line-height: 1.3;
    padding: 0 0 0 35px;
    height: 110px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
}

.rh-page-subtitle {
    font-size: 16px;
    font-weight: bold;
    color: #000000;
    margin: 0 0 10px;
    padding: 0;
    line-height: 1.5;
}

.rh-page-content {
    font-size: 15px;
    color: #5e5e5e;
    line-height: 1.4;
}

/* -----------------------------------------------------------------------------
   Resource filter pills
   ----------------------------------------------------------------------------- */

.rh-filters {
    display: flex;
    flex-wrap: wrap;
    row-gap: 10px;
    column-gap: 5px;
    margin-bottom: 20px;
}

.rh-filter-btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 20px;
    border: 1px solid #c9c9c9;
    background: #fff;
    color: #000000;
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    line-height: 1.4;
    outline: none;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.rh-filter-btn:hover,
.rh-filter-btn.active {
    background: #000000;
    border-color: #000000;
    color: #fff;
}

.rh-filter-btn.active {
    font-weight: bold;
}

/* -----------------------------------------------------------------------------
   Article grid — 1 column
   ----------------------------------------------------------------------------- */

.rb-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

/* -----------------------------------------------------------------------------
   Article card
   ----------------------------------------------------------------------------- */

.rh-card {
    background: #fff;
    border: 1px solid #dcdcdc;
    padding: 25px;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    margin-bottom: 10px;
}

/* Card image area */
.rh-card-img-wrap {
    position: relative;
    overflow: hidden;
    line-height: 0;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    z-index: 1;
}

.rh-card-img-wrap a {
    display: block;
}

.rh-card-img-wrap img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: -webkit-transform 0.35s ease;
    transition: transform 0.35s ease;
    transition: transform 0.35s ease, -webkit-transform 0.35s ease;
    margin: 0px;
}

.rh-card:hover .rh-card-img-wrap img {
    transform: scale(1.04);
} 

.rh-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.rh-card-meta {
    font-size: 12px;
    margin-bottom: 10px;
}

.rh-card-resource {
    color: #00b0d7;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
}

.rh-card-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    padding: 0;
    color: #232323;
}

.rh-card-title a {
    color: #232323;
    text-decoration: none;
}

.rh-card-title a:hover {
    color: #00b0d7;
}

.rh-card-excerpt {
    font-size: 15px;
    color: #666;
    line-height: 1.4;
    margin: 10px 0 15px;
    flex: 1;
}

.rh-card-body .rh-read-more {
    margin-left: 0;
    align-self: flex-start;
    font-size: 14px;
    color: #ffffff;
    background-color: #00b0d7;
    border-radius: 4px;
    font-weight: bold;
    padding: 10px 15px;
}

/* Empty state */
.rh-no-posts {
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    color: #555;
    line-height: 1.6;
}

/* -----------------------------------------------------------------------------
   Responsive
   ----------------------------------------------------------------------------- */

@media screen and (max-width: 1100px) {
    .th-sidebar-col,
    .resources-hub-page #secondary {
        flex: 0 0 260px;
        width: 260px;
    }
}

@media screen and (max-width: 900px) {
    .rh-layout {
        flex-direction: column;
        gap: 0;
    }
    .rh-main-col,
    .rh-sidebar-col,
    .resources-hub-page #primary,
    .resources-hub-page #secondary {
        width: 100% !important;
        flex: 0 0 100%;
        max-width: 100%;
    }
    .rh-sidebar-col {
        margin-top: 30px;
    }
    .resources-hub-page #primary {
        order: 1; 
    }
    .resources-hub-page #secondary {
        order: 2;
    }
}

@media screen and (max-width: 767px) {
    .rh-card {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .related-box {
        width: 100%;
    }
    .rh-page-title     { font-size: 26px; }
    .rh-featured-title { font-size: 20px; }
    .rh-grid           { grid-template-columns: 1fr; }
    .rh-filter-btn     { font-size: 12px; padding: 6px 12px; }
    .rh-featured-img-wrap img { max-height: 240px; }
}

@media screen and (max-width: 480px) {
    .rh-page-title          { font-size: 22px; }
    .rh-card-img-wrap img   { height: 170px; }
    .rh-filters             { gap: 6px; }
}
