/* ============================================================
   hub-pages.css
   Shared styles for the section hub pages:
     cnc-router-applications.htm
     cnc-router-software.htm
     cnc-router-service-support.htm
     thermwood-resources.htm
   Load AFTER css/cnc-routers.css, which supplies the hero,
   breadcrumb, jump links, fact tiles, table and FAQ styles.
   ============================================================ */

/* ===== Hero images (one per hub) =====
   cnc-routers.css sets the Model 43 photo on .hero-section.
   Each hub adds its own class to override just the image.
   To change a photo, replace the URL below.  Use a wide image
   (at least 1600px across); the dark overlay keeps text readable.
   Each page's og:image and twitter:image use the same photo, so
   update those in the page head too if you swap one. */
.hero-section.hero-applications {
    background-image: url('https://www.thermwood.com/images/2017_site/machines/3_axis/model-45/model-45-machining-aluminum.png');
}

.hero-section.hero-software {
    background-image: url('https://www.thermwood.com/images/2017_site/site_images/thm_desktop/THM.JPG');
}

.hero-section.hero-support {
    background-image: url('https://www.thermwood.com/images/training_lounge/software-training-2026-1.JPG');
}

.hero-section.hero-resources {
    background-image: url('https://www.thermwood.com/images/2017_site/site_images/resources-trade-show-hero-image.jpg');
}

/* ===== Group headings (match .lineup-group-title) ===== */
.hub-group-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 30px 0 6px;
    text-align: center;
}

.hub-group-lead {
    text-align: center;
    color: #555;
    font-size: 15px;
    max-width: 760px;
    margin: 0 auto 25px;
}

/* ===== Card grid ===== */
.hub-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.hub-grid > .hub-col {
    width: 33.333%;
    padding: 0 10px;
    margin-bottom: 20px;
    display: flex;
}

.hub-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #c8c8c8;
    border-top: 4px solid #a00;
    border-radius: 6px;
    padding: 20px 20px 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.hub-card h3 {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

.hub-card h3 a {
    color: #333;
    text-decoration: none;
}

.hub-card h3 a:hover,
.hub-card h3 a:focus {
    color: #a00;
    text-decoration: none;
}

.hub-card h3 i {
    color: #a00;
    width: 28px;
}

.hub-card p {
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.6;
    color: #555;
}

.hub-card p a {
    color: #a00;
    font-weight: 600;
}

.hub-card .hub-models {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #e4e4e4;
    font-size: 13px;
    line-height: 1.7;
    color: #555;
}

.hub-card .hub-models strong {
    display: block;
    color: #333;
}

.hub-card .hub-models a {
    color: #a00;
    font-weight: 600;
    white-space: nowrap;
}

.hub-card .hub-more {
    margin-top: auto;
    font-size: 13px;
    font-weight: 600;
    color: #a00;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.hub-card .hub-more:hover,
.hub-card .hub-more:focus {
    color: #800;
    text-decoration: none;
}

/* ===== Links in section copy ===== */
.cnc-copy a {
    color: #a00;
    font-weight: 600;
}

/* ===== Service contact box (Support hub) ===== */
.hub-contact {
    max-width: 860px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #c8c8c8;
    border-left: 4px solid #a00;
    border-radius: 6px;
    padding: 18px 22px;
    font-size: 16px;
    line-height: 1.7;
    color: #444;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.hub-contact p {
    margin: 0 0 4px;
}

.hub-contact a {
    color: #a00;
    font-weight: 600;
}

/* ===== Responsive ===== */
@media (max-width: 991px) {
    .hub-grid > .hub-col {
        width: 50%;
    }
}

@media (max-width: 600px) {
    .hub-grid > .hub-col {
        width: 100%;
    }
}
