/* =========================================================
   Project / Product Details page
   Scoped styles only — matches the palette & card language
   used on products.php. Header, hero image and footer are
   the site's existing includes and are left untouched.
   ========================================================= */

:root {
    --navy: #0e1c3f;
    --logo-navy: #0e2745;
    --logo-navy-dark: #091829;
    --blue: #1d4fd8;
    --blue-dark: #1640b8;
    --border: #e6e9f0;
    --surface: #f7f9fc;
    --text-body: #5b6472;
    --text-heading: #12183a;
}

/* ---------- Hero banner (image only, no overlay text) ---------- */
.project-hero {
    position: relative;
    width: 100%;
    height: 360px;
    overflow: hidden;
    background-color: var(--navy);
    background-size: cover;
    background-position: center;
}

/* ---------- Slim breadcrumb strip below the hero ---------- */
.project-breadcrumb-bar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.project-breadcrumb-bar .auto-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
}

.project-breadcrumb-bar ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.2px;
    color: var(--text-body);
}

.project-breadcrumb-bar ul li a {
    color: var(--text-body);
    text-decoration: none;
}

.project-breadcrumb-bar ul li a:hover {
    color: var(--blue);
}

.project-breadcrumb-bar ul li.current {
    color: var(--navy);
}

.project-breadcrumb-bar ul li.sep {
    color: #c7cddb;
}

/* ---------- Main details section ---------- */
.project-details-pro {
    max-width: 1200px;
    margin: 0 auto;
    padding: 64px 24px 100px;
}

.project-details-pro .details-header {
    max-width: 860px;
    margin: 0 0 44px;
}

.project-details-pro .details-header .eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 14px;
}

.project-details-pro .details-header h1 {
    font-size: 34px;
    line-height: 1.25;
    margin: 0 0 18px;
    color: var(--navy);
}

.project-details-pro .details-header .rule {
    width: 56px;
    height: 3px;
    background: var(--blue);
    margin-bottom: 0;
}

/* ---------- Layout: content + info sidebar ---------- */
.project-details-pro .details-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 44px;
    align-items: start;
}

.project-details-pro .details-content h4 {
    font-size: 19px;
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 18px;
}

.project-details-pro .details-content .text {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-body);
}

.project-details-pro .details-content .text h1,
.project-details-pro .details-content .text h2,
.project-details-pro .details-content .text h3 {
    font-size: 19px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.35;
    margin: 26px 0 12px;
}

.project-details-pro .details-content .text h2:first-child,
.project-details-pro .details-content .text h3:first-child {
    margin-top: 0;
}

.project-details-pro .details-content .text h4,
.project-details-pro .details-content .text h5,
.project-details-pro .details-content .text h6 {
    font-size: 15.5px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.4;
    margin: 20px 0 8px;
}

.project-details-pro .details-content .text p {
    margin: 0 0 16px;
}

.project-details-pro .details-content .text ul,
.project-details-pro .details-content .text ol {
    margin: 0 0 16px;
    padding-left: 20px;
}

.project-details-pro .details-content .text li {
    margin-bottom: 8px;
}

/* ---------- Info sidebar card ---------- */
.project-details-pro .info-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 28px 26px;
    box-shadow: 0 18px 40px rgba(14, 28, 63, 0.06);
}

.project-details-pro .info-card h5 {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--navy);
    margin: 0 0 20px;
}

.project-details-pro .info-card .info-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.project-details-pro .info-card .info-row:first-of-type {
    padding-top: 0;
}

.project-details-pro .info-card .info-row:last-of-type {
    border-bottom: none;
}

.project-details-pro .info-card .info-row .label {
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #8891a3;
}

.project-details-pro .info-card .info-row .value {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--text-heading);
}

.project-details-pro .info-card .status-badge {
    display: inline-block;
    align-self: flex-start;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: var(--blue);
    padding: 4px 12px;
    border-radius: 20px;
}

.project-details-pro .info-card .cta-btn {
    display: block;
    text-align: center;
    margin-top: 22px;
    padding: 13px 20px;
    background: var(--logo-navy);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.25s ease;
}

.project-details-pro .info-card .cta-btn:hover {
    background: var(--logo-navy-dark);
}

/* ---------- Sidebar stack (holds multiple cards) ---------- */
.project-details-pro .sidebar-stack {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: sticky;
    top: 100px;
    margin-top: 38px;
}

/* ---------- Related products card ---------- */
.project-details-pro .related-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.project-details-pro .related-card li {
    border-bottom: 1px solid var(--border);
}

.project-details-pro .related-card li:last-child {
    border-bottom: none;
}

.project-details-pro .related-card a.related-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    text-decoration: none;
}

.project-details-pro .related-card .related-thumb {
    flex-shrink: 0;
    width: 58px;
    height: 58px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
}

.project-details-pro .related-card .related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project-details-pro .related-card .related-info {
    min-width: 0;
}

.project-details-pro .related-card .related-info .related-title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-heading);
    line-height: 1.4;
    margin: 0 0 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-details-pro .related-card .related-info .related-meta {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--blue);
}

.project-details-pro .related-card a.related-item:hover .related-title {
    color: var(--blue);
}

.project-details-pro .related-card .view-all {
    display: block;
    text-align: center;
    margin-top: 18px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--navy);
    text-decoration: none;
}

.project-details-pro .related-card .view-all:hover {
    color: var(--blue);
}

/* ---------- Browse-products name list card ---------- */
.project-details-pro .name-list-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.project-details-pro .name-list-card li {
    border-bottom: 1px solid var(--border);
}

.project-details-pro .name-list-card li:last-child {
    border-bottom: none;
}

.project-details-pro .name-list-card li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-heading);
    text-decoration: none;
}

.project-details-pro .name-list-card li a span {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-details-pro .name-list-card li a svg {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    stroke: #9aa3b5;
    transition: transform 0.2s ease, stroke 0.2s ease;
}

.project-details-pro .name-list-card li a:hover {
    color: var(--blue);
}

.project-details-pro .name-list-card li a:hover svg {
    stroke: var(--blue);
    transform: translateX(3px);
}

/* ---------- Help / contact card ---------- */
.project-details-pro .help-card {
    background: var(--navy);
    border: none;
    color: #fff;
}

.project-details-pro .help-card h5 {
    color: #fff;
}

.project-details-pro .help-card p {
    font-size: 13.5px;
    line-height: 1.7;
    color: #c7cddb;
    margin: 0 0 18px;
}

.project-details-pro .help-card .contact-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #fff;
    text-decoration: none;
}

.project-details-pro .help-card .contact-row:last-of-type {
    margin-bottom: 0;
}

.project-details-pro .help-card .contact-row .icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-details-pro .help-card .contact-row .icon svg {
    width: 15px;
    height: 15px;
    stroke: #fff;
}

@media (max-width: 900px) {
    .project-details-pro .sidebar-stack {
        position: static;
    }
    .project-details-pro .details-layout {
        grid-template-columns: 1fr;
    }

    .project-hero {
        height: 220px;
    }
}

@media (max-width: 640px) {
    .project-details-pro {
        padding: 44px 18px 70px;
    }

    .project-details-pro .details-header h1 {
        font-size: 26px;
    }
}

:root {
                --navy: #0e1c3f;
                --logo-navy: #0e2745;
                --blue: #1d4fd8;
                --blue-dark: #1640b8;
                --border: #e6e9f0;
                --placeholder: #eef1f7;
                --placeholder-line: #dde2ee;
                --text-body: #5b6472;
                --text-heading: #12183a;
            }

            .categories-section {
                max-width: 1200px;
                margin: 0 auto;
                padding: 80px 24px 100px;
            }

            .categories-section .section-head {
                text-align: center;
                max-width: 100%;
                margin: 0 0 52px;
            }

            .categories-section .section-head .eyebrow {
                display: inline-block;
                font-size: 12px;
                font-weight: 700;
                letter-spacing: 1.6px;
                text-transform: uppercase;
                color: var(--blue);
                margin-bottom: 14px;
            }

            .categories-section .section-head h1 {
                font-size: 34px;
                line-height: 1.25;
                margin: 0 0 14px;
                color: var(--logo-navy);
            }

            .categories-section .section-head p {
                font-size: 15.5px;
                line-height: 1.7;
                color: var(--text-body);
                margin: 0;
                text-align: center !important;
                width: 100%;
            }

            /* --- Appended override: force a horizontal grid layout,
                 keep cards compact even when few products exist --- */
            .categories-section .card-grid {
                display: grid !important;
                flex-direction: unset;
                grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
                gap: 30px;
                justify-content: center;
            }

            .categories-section .cat-card {
                max-width: 340px;
                width: 100%;
                margin: 0 auto;
                border-radius: 14px;
                box-shadow: 0 10px 28px rgba(14, 28, 63, 0.08);
                overflow: hidden;
            }

            .categories-section .cat-card:hover {
                transform: translateY(-6px);
                box-shadow: 0 24px 45px rgba(14, 28, 63, 0.16);
                border-color: transparent;
            }

            .categories-section .cat-card .thumb {
                position: relative;
                width: 100%;
                aspect-ratio: 3 / 2;
                background: linear-gradient(160deg, var(--placeholder) 0%, #e4e9f4 100%);
                border-bottom: 1px solid var(--placeholder-line);
                display: flex;
                align-items: center;
                justify-content: center;
            }

            .categories-section .cat-card .thumb svg {
                width: 74px;
                height: 74px;
                stroke: var(--navy);
                opacity: 0.16;
                transition: opacity .35s ease, transform .35s ease;
            }

            .categories-section .cat-card:hover .thumb svg {
                opacity: 0.28;
                transform: scale(1.06);
            }

            .categories-section .cat-card .content {
                padding: 26px 28px 24px;
                display: flex;
                flex-direction: column;
                flex-grow: 1;
            }

            .categories-section .cat-card h2 {
                font-size: 19px;
                font-weight: 700;
                color: var(--logo-navy);
                margin: 0 0 12px;
                line-height: 1.35;
            }

            .categories-section .cat-card .rule {
                width: 46px;
                height: 2px;
                background: var(--text-heading);
                margin-bottom: 16px;
            }

            .categories-section .cat-card p {
                font-size: 14.5px;
                line-height: 1.7;
                color: var(--text-body);
                margin: 0 0 22px;
                flex-grow: 1;
            }

            .categories-section .cat-card .divider {
                border-top: 1px solid var(--border);
                margin-bottom: 16px;
            }

            .categories-section .cat-card a.cta {
                display: inline-flex;
                align-items: center;
                justify-content: center;
                align-self: flex-start;
                gap: 7px;
                padding: 9px 18px;
                font-size: 12px;
                font-weight: 700;
                letter-spacing: 0.6px;
                text-transform: uppercase;
                color: #fff;
                background: var(--navy);
                border-radius: 7px;
                text-decoration: none;
                transition: background .25s ease, gap .25s ease;
            }

            .categories-section .cat-card a.cta svg {
                width: 13px;
                height: 13px;
                stroke: #fff;
                transition: transform .25s ease;
            }

            .categories-section .cat-card a.cta:hover {
                background: var(--blue-dark);
                gap: 10px;
            }

            .categories-section .cat-card a.cta:hover svg {
                transform: translateX(4px);
            }

            .categories-section .page-footer-note {
                text-align: center;
                margin-top: 60px;
                font-size: 14px;
                color: var(--text-body);
            }

            .categories-section .page-footer-note a {
                color: var(--blue);
                text-decoration: none;
                font-weight: 600;
            }

            .categories-section .page-footer-note span.sep {
                margin: 0 10px;
                color: #c7cddb;
            }

            @media (max-width: 640px) {
                .categories-section .section-head h2 {
                    font-size: 26px;
                }

                .categories-section {
                    padding: 55px 18px 70px;
                }
            }