/*
| Material category & grade pages (material-page.php).
| Only styles elements the existing theme doesn't have; colours and fonts
| follow style.css (brand red #df101a, dark #222, Fira Sans / Barlow).
*/

/* Hero title: same look as .page-title .content-box h1 (the H1 sits in the content column) */
.page-title .content-box .hero-title {
    position: relative;
    display: block;
    font-family: "Fira Sans", sans-serif;
    font-size: 60px;
    line-height: 65px;
    color: #fff;
    font-weight: 500;
}

/* Page H1: same look as .services-details .content-side h2 */
.services-details .content-side h1.material-title {
    position: relative;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.25em;
    margin-bottom: 30px;
    text-transform: uppercase;
    color: #222;
}

/* Copied from page.php's inline styles so content renders the same way */
.material-content .product-description h2,
.material-content .product-description h3,
.material-content .product-description h4 {
    font-size: 18px;
    font-weight: 600;
    line-height: 24px;
    color: #232323;
    padding-bottom: 15px;
    margin-bottom: 0;
    text-transform: none;
}
.material-content .alignright {
    float: right;
    margin: 5px 0 25px 25px;
    max-width: 100%;
    height: auto;
}

/* Uppercase keyword block (same pattern as the existing product pages, kept short) */
.material-content .material-keywords {
    font-family: "Fira Sans", sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 24px;
    color: #232323;
    text-transform: uppercase;
    text-align: left;
    margin-bottom: 20px;
}

/* Technical sections always start below the floated intro image */
.material-content .material-data {
    clear: both;
}

/* Section headings inside technical content */
.services-details .content-side .material-data h2,
.services-details .content-side .material-faq h2,
.services-details .content-side .material-cta h2 {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.25em;
    margin: 40px 0 20px;
    text-transform: uppercase;
    color: #df101a;
}
.services-details .content-side .material-data h3 {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3em;
    margin: 25px 0 12px;
    text-transform: none;
    color: #222;
}
.material-data p,
.material-data li,
.material-faq p {
    font-size: 18px;
    font-weight: 500;
}
.material-data ul {
    padding-left: 20px;
    margin-bottom: 20px;
}
.material-data ul li {
    list-style: disc;
    margin-bottom: 6px;
}

/* Data tables: Bootstrap .table styles + horizontal scroll on small screens */
.material-data .table-responsive {
    margin-bottom: 10px;
}
.material-data .table {
    margin-bottom: 0;
}
.material-data .table th,
.material-data .table td {
    font-size: 16px;
    vertical-align: middle;
}
.material-data .table thead th {
    background-color: #6d6e71;
    color: #fff;
    font-weight: 600;
}
.material-data .table-note {
    font-size: 15px;
    color: #555;
    margin-bottom: 25px;
}

/* FAQ */
.material-faq .faq-item {
    border-bottom: 1px dashed #c0c0c0;
    padding: 15px 0;
}
.services-details .content-side .material-faq .faq-q {
    font-size: 19px;
    font-weight: 600;
    line-height: 1.35em;
    text-transform: none;
    color: #222;
    margin: 0 0 8px;
}
.material-faq .faq-a p {
    margin-bottom: 0;
}

/* Trademark note */
.material-content .tm-note {
    font-size: 14px;
    color: #666;
    font-style: italic;
    margin-top: 25px;
}

/* Enquiry CTA */
.material-cta {
    background: #f4f4f4;
    border-left: 4px solid #df101a;
    padding: 25px 30px;
    margin: 40px 0 30px;
}
.services-details .content-side .material-cta h2 {
    margin-top: 0;
}
.material-cta p {
    font-size: 18px;
    font-weight: 500;
}
.material-cta-contacts {
    margin: 0 0 20px;
    padding: 0;
}
.material-cta-contacts li {
    display: inline-block;
    font-size: 18px;
    font-weight: 600;
    margin: 0 25px 8px 0;
}
.material-cta-contacts li i {
    color: #df101a;
    margin-right: 8px;
}
.material-cta-contacts li a {
    color: #222;
}
.material-cta-buttons .theme-btn {
    margin: 0 10px 10px 0;
}
.material-cta-buttons .material-cta-whatsapp {
    background-color: #25d366;
}

/* Category pages */
.material-category-intro {
    padding-bottom: 30px;
}
.material-category-details {
    padding-top: 60px;
}

@media only screen and (max-width: 767px) {
    .material-data .table th,
    .material-data .table td {
        font-size: 15px;
        min-width: 110px;
    }
    .services-details .content-side h1.material-title {
        font-size: 26px;
    }
    .services-details .content-side .material-data h2,
    .services-details .content-side .material-faq h2,
    .services-details .content-side .material-cta h2 {
        font-size: 22px;
    }
}

@media only screen and (max-width: 591px) {
    .material-content .alignright {
        float: none;
        margin: 0 0 20px;
        width: 100%;
    }
}

@media only screen and (max-width: 575px) {
    .page-title .content-box .hero-title {
        font-size: 40px;
        line-height: 50px;
    }
}

/* Category page: grade cards inside the content column (sidebar layout) */
.material-grade-cards { margin: 30px 0 10px; }
.material-grade-cards .service-block-one { margin-bottom: 30px; }
.material-content .material-grade-cards .service-block-one h2 { font-size: 20px; line-height: 1.3em; text-transform: none; margin: 0; }

/* Material sidebar */
.material-sidebar .widget_categories_two .widget-title { font-size: 20px; margin: 5px 3px 15px; }
.material-sidebar .widget_categories_two .categories-list li a { font-size: 15px; }
