/* ============================================================
   cnc-routers.css
   CNC Routers hub page (cnc-routers.htm)
   Hero matches the model-page frosted-glass hero; machine cards
   come from three-axis-cards.css; FAQ matches the model-page FAQ.
   ============================================================ */

/* ===== Hero ===== */
.hero-section-container {
    background-color: #222;
}

.hero-section {
    position: relative;
    background: url('https://www.thermwood.com/images/2017_site/machines/3_axis/model-43/model-43-background-made-in-america.jpg') no-repeat center center;
    background-size: cover;
    padding: 100px 0;
    text-align: center;
    color: #fff;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content {
    font-family: 'Open Sans', Arial, sans-serif;
    position: relative;
    z-index: 2;
    background: rgba(15, 15, 15, 0.45);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 50px 40px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    max-width: 900px;
    margin: 0 auto;
}

.hero-subtitle {
    color: #F8CA00;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.9);
}

.hero-title {
    color: #FFFFFF;
    font-size: 52px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    border-bottom: 3px solid #F8CA00;
    border-top: 3px solid #F8CA00;
    display: inline-block;
    padding: 12px 0;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.9);
}

.hero-description {
    color: #F8F9FA;
    font-size: 20px;
    font-weight: 300;
    max-width: 750px;
    margin: 0 auto 35px auto;
    line-height: 1.7;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 1);
}

.hero-buttons .btn-hero {
    background-color: #c0392b;
    color: #fff;
    padding: 12px 24px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 5px;
    margin: 5px;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.hero-buttons .btn-hero:hover {
    background-color: #a93226;
}

.hero-buttons .btn-hero-ghost {
    background-color: transparent;
    border: 2px solid #fff;
    padding: 10px 22px;
}

.hero-buttons .btn-hero-ghost:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

/* ===== Breadcrumb ===== */
.cnc-breadcrumb {
    font-size: 13px;
    color: #777;
    padding: 14px 0 0;
}

.cnc-breadcrumb a {
    color: #a00;
}

/* ===== Jump links ===== */
.cnc-jump {
    text-align: center;
    margin: 25px auto 10px;
    max-width: 960px;
}

.cnc-jump a {
    display: inline-block;
    margin: 4px 4px;
    padding: 7px 14px;
    border: 1px solid #c8c8c8;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    background: #fff;
    text-decoration: none;
    transition: all 0.2s ease;
}

.cnc-jump a:hover,
.cnc-jump a:focus {
    border-color: #a00;
    color: #a00;
    text-decoration: none;
}

/* ===== Section headings and body copy ===== */
.cnc-section {
    padding: 50px 0 20px;
}

.cnc-section-title {
    font-size: 30px;
    font-weight: 700;
    color: #333;
    text-align: center;
    margin: 0 0 10px;
}

.cnc-section-lead {
    font-size: 17px;
    line-height: 1.7;
    color: #555;
    max-width: 820px;
    margin: 0 auto 30px;
    text-align: center;
}

.cnc-copy {
    max-width: 860px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.75;
    color: #444;
}

.cnc-copy p {
    margin-bottom: 16px;
}

.cnc-copy h3 {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin: 28px 0 10px;
}

/* ===== Key facts strip ===== */
.cnc-facts {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin: 10px auto 0;
    max-width: 1000px;
}

.cnc-fact {
    flex: 1 1 200px;
    max-width: 240px;
    background: #fff;
    border: 1px solid #c8c8c8;
    border-top: 4px solid #a00;
    border-radius: 6px;
    padding: 18px 16px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.cnc-fact .fact-value {
    display: block;
    font-size: 26px;
    font-weight: 700;
    color: #a00;
    line-height: 1.15;
    white-space: nowrap;
}

.cnc-fact .fact-label {
    display: block;
    font-size: 14px;
    color: #555;
    margin-top: 6px;
}

/* ===== 3-axis vs 5-axis comparison ===== */
.axis-compare {
    margin-top: 10px;
}

.axis-compare .col-md-6 {
    margin-bottom: 30px;
    display: flex;
}

.axis-box {
    flex: 1;
    background: #fff;
    border: 1px solid #c8c8c8;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
    display: flex;
    flex-direction: column;
}

.axis-box-head {
    background: #222;
    color: #fff;
    padding: 18px 20px;
}

.axis-box-head h3 {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 4px;
}

.axis-box-head p {
    color: #F8CA00;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 0;
}

.axis-box-body {
    padding: 18px 20px 6px;
    font-size: 15px;
    line-height: 1.65;
    color: #555;
    flex-grow: 1;
}

.axis-box-body ul {
    padding-left: 0;
    list-style: none;
}

.axis-box-body li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 8px;
}

.axis-box-body li:before {
    content: "\f00c";
    font-family: FontAwesome;
    position: absolute;
    left: 0;
    top: 1px;
    color: #a00;
}

.axis-box-link {
    display: block;
    background-color: #a00;
    color: #fff;
    text-align: center;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: background-color 0.2s ease;
}

.axis-box-link:hover,
.axis-box-link:focus {
    background-color: #800;
    color: #fff;
    text-decoration: none;
}

/* ===== Buying guide steps ===== */
.guide-steps {
    max-width: 900px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
    counter-reset: guide;
}

.guide-steps li {
    counter-increment: guide;
    position: relative;
    background: #fff;
    border: 1px solid #e4e4e4;
    border-radius: 6px;
    padding: 18px 20px 16px 72px;
    margin-bottom: 12px;
    font-size: 15px;
    line-height: 1.65;
    color: #555;
}

.guide-steps li:before {
    content: counter(guide);
    position: absolute;
    left: 18px;
    top: 16px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #a00;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    line-height: 38px;
    text-align: center;
}

.guide-steps strong {
    display: block;
    font-size: 17px;
    color: #333;
    margin-bottom: 4px;
}

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

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

.lineup-group-lead a {
    color: #a00;
    font-weight: 600;
}

/* ===== At-a-glance table ===== */
.cnc-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #c8c8c8;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.cnc-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    font-size: 14px;
    margin: 0;
}

.cnc-table th {
    background: #222;
    color: #fff;
    font-weight: 600;
    text-align: left;
    padding: 12px 14px;
    font-size: 13px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.cnc-table td {
    padding: 11px 14px;
    border-top: 1px solid #e4e4e4;
    vertical-align: top;
    color: #555;
    line-height: 1.5;
}

.cnc-table tr:nth-child(even) td {
    background: #fafafa;
}

.cnc-table td a {
    color: #a00;
    font-weight: 700;
}

.cnc-table .axis-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    border: 1px solid #a00;
    color: #a00;
    white-space: nowrap;
}

.cnc-table-note {
    font-size: 13px;
    color: #777;
    margin-top: 10px;
    text-align: center;
}

/* ===== Why Thermwood ===== */
.why-grid .col-md-4 {
    margin-bottom: 25px;
}

.why-item {
    text-align: center;
    padding: 0 10px;
}

.why-item i {
    font-size: 36px;
    color: #c00;
    margin-bottom: 12px;
}

.why-item h3 {
    font-size: 19px;
    font-weight: 700;
    color: #333;
    margin: 0 0 8px;
}

.why-item p {
    font-size: 15px;
    line-height: 1.65;
    color: #555;
}

.why-item a {
    color: #a00;
    font-weight: 600;
}

/* ===== FAQ (same look as model pages) ===== */
.thm-faq-item {
    background: #fff;
    border: 1px solid #e4e4e4;
    border-radius: 4px;
    margin-bottom: 10px;
}

.thm-faq-item summary {
    cursor: pointer;
    padding: 14px 18px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Open Sans', sans-serif;
    color: #333;
    list-style: none;
    position: relative;
    padding-right: 40px;
}

.thm-faq-item summary::-webkit-details-marker {
    display: none;
}

.thm-faq-item summary::after {
    content: '\002B';
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    font-weight: 400;
    color: #999;
}

.thm-faq-item[open] summary::after {
    content: '\2212';
}

.thm-faq-item summary:hover {
    color: #000;
}

.thm-faq-answer {
    padding: 0 18px 16px 18px;
    font-size: 14px;
    line-height: 1.6;
    color: #555;
}

.thm-faq-answer p {
    margin: 0;
}

.thm-faq-answer a {
    color: #a00;
    font-weight: 600;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
    }
    .hero-content {
        padding: 35px 20px;
    }
    .hero-title {
        font-size: 32px;
    }
    .hero-description {
        font-size: 16px;
    }
    .hero-buttons .btn-hero {
        padding: 10px 20px;
        font-size: 14px;
    }
    .cnc-section {
        padding: 35px 0 10px;
    }
    .cnc-section-title {
        font-size: 24px;
    }
    .cnc-section-lead {
        font-size: 15px;
    }
    .guide-steps li {
        padding-left: 64px;
    }
}
