/* ============================================
   CES HUB-PAGE MODERNIZATION
   For section landing pages: aerospace_Home, reliability_Home,
   metrology_Home, products_Home.
   Loaded ALONGSIDE modern.css (not replacing it).
   Provides hero banner, trust bar, service card grid.
   Keeps the old SSI footer visible (modern.css styles it).
   ============================================ */

/* --- Hero Banner (per-section background image set inline on each page) --- */
.hub-hero {
    position: relative;
    width: 100%;
    background-size: cover;
    background-position: center 35%;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    margin-bottom: 0;
    padding: 56px 0 52px;
    overflow: hidden;
    min-height: 240px;
}
.hub-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10, 22, 40, 0.65);
    pointer-events: none;
    z-index: 1;
}
.hub-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 40px;
}
.hub-hero-content .hub-eyebrow {
    color: rgba(255,255,255,0.75);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin: 0 0 8px;
}
.hub-hero-content h1 {
    color: #ffffff !important;
    font-size: 34px !important;
    font-weight: 700 !important;
    margin: 0 0 14px !important;
    letter-spacing: -0.02em;
    line-height: 1.2;
}
.hub-hero-content p {
    color: rgba(255,255,255,0.85) !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    margin: 0 0 24px !important;
    max-width: 720px;
    line-height: 1.65;
}
.hub-hero-content .hero-cta {
    display: inline-block;
    background-color: #0077c2 !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    letter-spacing: 0.03em;
    padding: 12px 28px !important;
    border-radius: 8px !important;
    border: none !important;
    text-decoration: none !important;
    transition: all 0.25s ease !important;
}
.hub-hero-content .hero-cta:hover {
    background-color: #005fa3 !important;
    transform: translateY(-1px);
    color: #ffffff !important;
}
.hub-hero-content .hero-cta-secondary {
    display: inline-block;
    color: rgba(255,255,255,0.9) !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    padding: 12px 24px !important;
    margin-left: 12px;
    text-decoration: none !important;
    border: 1px solid rgba(255,255,255,0.3) !important;
    border-radius: 8px !important;
    transition: all 0.25s ease !important;
}
.hub-hero-content .hero-cta-secondary:hover {
    border-color: rgba(255,255,255,0.6) !important;
    color: #ffffff !important;
}

/* --- Trust Bar --- */
.hub-trust-bar {
    background-color: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
    padding: 16px 0;
}
.hub-trust-bar .trust-items {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 32px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.hub-trust-bar .trust-items li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 500;
    color: #475569;
}
.hub-trust-bar .trust-items li .trust-icon {
    width: 20px;
    height: 20px;
    background-color: #0077c2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.hub-trust-bar .trust-items li .trust-icon .glyphicon {
    color: #ffffff;
    font-size: 10px;
}

/* --- Section Headings --- */
.hub-section-intro {
    text-align: center;
    margin: 40px auto 24px;
    max-width: 780px;
}
.hub-section-intro h2 {
    font-size: 26px;
    font-weight: 700;
    color: #1a2a4a;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}
.hub-section-intro p {
    font-size: 15px;
    color: #64748b;
    margin-bottom: 0;
}

/* --- Service Cards (hub-services-section) --- */
.hub-services-section {
    padding: 8px 0 36px;
}
.hub-services-section .row {
    display: flex !important;
    flex-wrap: wrap !important;
    margin-left: -10px;
    margin-right: -10px;
}
.hub-services-section .row > [class*="col-"] {
    display: flex !important;
    margin-bottom: 20px;
    padding-left: 10px;
    padding-right: 10px;
}
.hub-service-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0;
    height: 100%;
    width: 100%;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.hub-service-card:hover {
    border-color: #0077c2;
    box-shadow: 0 8px 30px rgba(0, 119, 194, 0.12);
    transform: translateY(-4px);
}
.hub-service-card .card-img {
    width: 100%;
    height: 160px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    flex-shrink: 0;
}
.hub-service-card .card-text {
    padding: 22px 22px 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.hub-service-card h4 {
    font-size: 17px !important;
    font-weight: 700 !important;
    color: #1a2a4a !important;
    margin: 0 0 10px !important;
}
.hub-service-card h4 a {
    color: #1a2a4a !important;
    text-decoration: none !important;
}
.hub-service-card h4 a:hover {
    color: #0077c2 !important;
}
.hub-service-card p {
    font-size: 13.5px !important;
    line-height: 1.65 !important;
    color: #4a5568 !important;
    margin-bottom: 16px !important;
    flex-grow: 1;
}
.hub-service-card .btn {
    align-self: flex-start;
    margin-top: auto !important;
}

/* --- About / Detail Section --- */
.hub-about-section {
    background-color: #f8fafc;
    padding: 40px 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    margin-top: 16px;
}
.hub-about-section h3 {
    font-size: 22px;
    font-weight: 700;
    color: #1a2a4a;
    margin-top: 0;
    margin-bottom: 14px;
    border: none;
    padding-bottom: 0;
}
.hub-about-section p {
    font-size: 15px !important;
    line-height: 1.75 !important;
    color: #475569 !important;
}

/* --- Contact Section (per-hub) --- */
.hub-contact-section {
    padding: 44px 0 50px;
}
.hub-contact-section h3 {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #1a2a4a !important;
    margin-top: 0 !important;
    margin-bottom: 14px !important;
    border: none !important;
    padding-bottom: 0 !important;
}
.hub-contact-section h4 {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #1a2a4a !important;
    margin-bottom: 14px !important;
}
.hub-contact-section p {
    font-size: 14.5px !important;
    line-height: 1.7 !important;
    color: #475569 !important;
}
.hub-contact-section iframe {
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    width: 100%;
    height: 280px;
    border: none;
}

/* --- Certifications row --- */
.hub-cert-row img {
    margin-right: 14px;
    border-radius: 8px;
    transition: transform 0.2s ease;
}
.hub-cert-row img:hover {
    transform: scale(1.04);
}

/* --- Responsive --- */
@media (max-width: 991px) {
    .hub-hero {
        padding: 40px 0 36px;
    }
    .hub-hero-content h1 {
        font-size: 28px !important;
    }
    .hub-hero-content p {
        font-size: 14.5px !important;
    }
    .hub-service-card {
        margin-bottom: 16px;
    }
}
@media (max-width: 767px) {
    .hub-hero {
        padding: 32px 0 28px;
    }
    .hub-hero-content {
        padding: 0 18px;
    }
    .hub-hero-content h1 {
        font-size: 24px !important;
    }
    .hub-hero-content .hero-cta-secondary {
        margin-left: 0;
        margin-top: 10px;
        display: block;
        text-align: center;
    }
    .hub-trust-bar .trust-items {
        gap: 16px;
    }
    .hub-trust-bar .trust-items li {
        font-size: 12px;
    }
}
