/* =========================================================
   INNER PAGES — loaded after style.css on every page except home
   ========================================================= */

/* --- Active nav state --- */
.nav-link.active { color: var(--primary-red); }
.nav-link.active::after { width: 100%; }
.dropdown-link.active { color: var(--primary-red) !important; font-weight: 600; }


/* =========================================
   PAGE BANNER (inner hero + breadcrumb)
   ========================================= */
.page-banner {
    position: relative;
    padding: 110px 0 120px;
    background-color: var(--dark-slate);
    overflow: hidden;
    color: var(--text-light);
}

.page-banner-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.35;
    transform: scale(1.04);
}

.page-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15,15,15,0.95) 0%, rgba(15,15,15,0.75) 55%, rgba(155,15,21,0.35) 100%);
    z-index: 1;
}

/* Thin red diagonal stripes on the right */
.page-banner::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 38%;
    height: 100%;
    background: repeating-linear-gradient(-55deg, rgba(255,255,255,0.025) 0 2px, transparent 2px 22px);
    z-index: 1;
    pointer-events: none;
}

.page-banner .section-container { z-index: 3; }

.page-banner-content { max-width: 820px; }

.page-banner-tag {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #cccccc;
    border-left: 3px solid var(--primary-red);
    padding-left: 10px;
    margin-bottom: 16px;
}

.page-banner h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 18px;
}

.page-banner p {
    font-size: 1.08rem;
    line-height: 1.7;
    color: #dddddd;
    max-width: 680px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
    font-size: 0.9rem;
    font-weight: 600;
}

.breadcrumb a {
    color: rgba(255,255,255,0.75);
    transition: var(--transition);
}

.breadcrumb a:hover { color: #ff5a62; }

.breadcrumb .sep {
    color: var(--primary-red);
    font-size: 0.7rem;
}

.breadcrumb .current { color: #ffffff; }

/* Straight bottom edge (the old slanted SVG made the banner look tilted) */
.page-banner-shape { display: none; }

.page-banner {
    padding: 100px 0;
    border-bottom: 4px solid var(--primary-red);
}


/* =========================================
   GENERIC INNER SECTION
   ========================================= */
.inner-section {
    padding: 90px 0;
    position: relative;
}

.inner-section.white { background-color: var(--text-light); }
.inner-section.gray { background-color: var(--gray-bg); }

.lead-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 18px;
}

.lead-text strong { color: var(--dark-slate); }


/* =========================================
   PRODUCT / MATERIAL DETAIL LAYOUT (content + sidebar)
   ========================================= */
.pd-section {
    padding: 80px 0 90px;
    background-color: var(--gray-bg);
}

.pd-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 40px;
    align-items: start;
}

.pd-main {
    display: flex;
    flex-direction: column;
    gap: 35px;
    min-width: 0;
}

/* --- Content block card --- */
.pd-block {
    background-color: var(--text-light);
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.05);
    scroll-margin-top: 130px;
    position: relative;
    overflow: hidden;
}

.pd-block-head {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eeeeee;
    position: relative;
}

.pd-block-head::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 70px;
    height: 3px;
    background-color: var(--primary-red);
}

.pd-block-icon {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    background-color: rgba(155, 15, 21, 0.08);
    color: var(--primary-red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.pd-block-head h2 {
    font-family: var(--font-heading);
    font-size: 1.55rem;
    color: var(--dark-slate);
    line-height: 1.25;
}

.pd-block-head span {
    display: block;
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.pd-block p {
    font-size: 0.98rem;
    line-height: 1.8;
    color: var(--text-muted);
}

.pd-block p + p { margin-top: 14px; }

.pd-note {
    margin-top: 18px;
    font-size: 0.85rem !important;
    color: #888 !important;
    font-style: italic;
}

/* --- Overview (image + content) --- */
.pd-overview {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 40px;
    align-items: center;
}

.pd-image {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background-color: #e6e8ec;
    aspect-ratio: 4 / 3.4;
    box-shadow: 0 18px 40px rgba(0,0,0,0.15);
}

.pd-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.pd-image:hover img { transform: scale(1.05); }

.pd-image::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 5px;
    background-color: var(--primary-red);
}

.pd-image-badge {
    position: absolute;
    top: 18px;
    left: 18px;
    background-color: var(--primary-red);
    color: var(--text-light);
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 8px 14px;
    border-radius: 4px;
    z-index: 2;
}

.pd-overview-text h2 {
    font-family: var(--font-heading);
    font-size: 1.9rem;
    color: var(--dark-slate);
    line-height: 1.25;
    margin-bottom: 16px;
}

.pd-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 20px;
    margin: 24px 0 28px;
}

.pd-highlights li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 0.93rem;
    font-weight: 600;
    color: var(--dark-slate);
    line-height: 1.45;
}

.pd-highlights i {
    color: var(--primary-red);
    margin-top: 3px;
    flex-shrink: 0;
}

.pd-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* Dark outline button on light backgrounds */
.btn-ghost {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    padding: 15px 30px;
    border-radius: 4px;
    border: 2px solid var(--dark-slate);
    color: var(--dark-slate);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.btn-ghost:hover {
    background-color: var(--dark-slate);
    color: var(--text-light);
}

/* Fix primary button hover on white backgrounds (text would vanish) */
.pd-block .btn-primary:hover,
.inner-section .btn-primary:hover,
.contact-card .btn-primary:hover {
    color: var(--primary-red);
}

/* --- Types / forms pills --- */
.type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 14px;
}

.type-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    background-color: var(--gray-bg);
    border-radius: 8px;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--dark-slate);
    border-left: 3px solid transparent;
    transition: var(--transition);
}

.type-item i { color: var(--primary-red); }

.type-item:hover {
    background-color: var(--text-light);
    border-left-color: var(--primary-red);
    box-shadow: 0 8px 22px rgba(0,0,0,0.08);
    transform: translateY(-3px);
}

/* --- Types with 3D drawing (type-card) --- */
.type-grid.visual {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 18px;
}

.type-card {
    background-color: var(--text-light);
    border: 1px solid #ececec;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.type-visual {
    position: relative;
    aspect-ratio: 200 / 140;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(rgba(155,15,21,0.035) 1px, transparent 1px) 0 0 / 14px 14px,
        linear-gradient(90deg, rgba(155,15,21,0.035) 1px, transparent 1px) 0 0 / 14px 14px,
        radial-gradient(circle at 50% 40%, #ffffff 0%, #eef0f3 75%);
    border-bottom: 1px solid #eeeeee;
}

.type-visual img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.type-name {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--dark-slate);
    flex-grow: 1;
}

.type-name i { color: var(--primary-red); font-size: 0.8rem; }

.type-card:hover {
    border-color: var(--primary-red);
    transform: translateY(-5px);
    box-shadow: 0 14px 30px rgba(0,0,0,0.08);
}

.type-card:hover .type-visual img { transform: scale(1.07); }
.type-card:hover .type-name { color: var(--primary-red); }

/* --- Specification table (2-column) --- */
.spec-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #ececec;
}

.spec-table th,
.spec-table td {
    padding: 15px 20px;
    text-align: left;
    vertical-align: top;
    line-height: 1.6;
    border-bottom: 1px solid #ececec;
}

.spec-table tr:last-child th,
.spec-table tr:last-child td { border-bottom: none; }

.spec-table th {
    width: 32%;
    background-color: #f8f8f9;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--dark-slate);
    border-right: 3px solid var(--primary-red);
}

.spec-table td { color: var(--text-muted); }

.spec-table tr:hover td { background-color: #fffafa; }

/* --- Grades --- */
.grade-groups {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
}

.grade-group {
    border: 1px solid #ececec;
    border-radius: 10px;
    padding: 24px;
    transition: var(--transition);
    position: relative;
}

.grade-group:hover {
    border-color: var(--primary-red);
    box-shadow: 0 12px 30px rgba(155,15,21,0.08);
}

.grade-group h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--dark-slate);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.grade-group h4::before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 2px;
    background-color: var(--primary-red);
    transform: rotate(45deg);
    flex-shrink: 0;
}

.grade-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.grade-chip {
    display: inline-block;
    padding: 7px 14px;
    background-color: var(--gray-bg);
    border-radius: 50px;
    font-size: 0.83rem;
    font-weight: 600;
    color: var(--text-dark);
    transition: var(--transition);
}

.grade-chip:hover {
    background-color: var(--primary-red);
    color: var(--text-light);
}

/* --- Material cards --- */
.material-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 18px;
}

.material-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 26px 22px;
    border-radius: 10px;
    background: linear-gradient(160deg, #1d1d1d 0%, #151515 100%);
    color: rgba(255,255,255,0.75);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.material-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: var(--primary-red);
    transition: height 0.4s ease;
    z-index: 0;
}

.material-card:hover::before { height: 100%; }
.material-card:hover { transform: translateY(-6px); box-shadow: 0 16px 34px rgba(155,15,21,0.3); }

.material-card > * { position: relative; z-index: 1; }

.material-card i {
    font-size: 1.4rem;
    color: #ff5a62;
    transition: var(--transition);
}

.material-card:hover i { color: var(--text-light); }

.material-card h4 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    color: var(--text-light);
}

.material-card p {
    font-size: 0.86rem !important;
    line-height: 1.6 !important;
    color: rgba(255,255,255,0.7) !important;
}

.material-card .mc-link {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* --- Data tables (chemical, mechanical, dimensions) --- */
.table-scroll {
    width: 100%;
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #ececec;
    -webkit-overflow-scrolling: touch;
}

.table-scroll::-webkit-scrollbar { height: 8px; }
.table-scroll::-webkit-scrollbar-thumb { background: #cfcfcf; border-radius: 4px; }

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    min-width: 640px;
}

.data-table thead th {
    background-color: var(--dark-slate);
    color: var(--text-light);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.3px;
    padding: 14px 12px;
    text-align: center;
    white-space: nowrap;
    border-right: 1px solid rgba(255,255,255,0.08);
}

.data-table thead th:first-child {
    background-color: var(--primary-red);
    text-align: left;
    position: sticky;
    left: 0;
    z-index: 2;
}

.data-table thead tr.sub-head th {
    background-color: #2a2a2a;
    font-size: 0.75rem;
    padding: 9px 12px;
}

.data-table tbody td {
    padding: 12px;
    text-align: center;
    color: var(--text-muted);
    border-bottom: 1px solid #efefef;
    border-right: 1px solid #f3f3f3;
    white-space: nowrap;
}

.data-table tbody td:first-child {
    text-align: left;
    font-weight: 700;
    color: var(--dark-slate);
    background-color: #fbfbfb;
    position: sticky;
    left: 0;
    z-index: 1;
    border-right: 2px solid #ececec;
}

.data-table tbody tr:nth-child(even) td { background-color: #fafafa; }
.data-table tbody tr:nth-child(even) td:first-child { background-color: #f5f5f5; }

.data-table tbody tr:hover td { background-color: #fff3f3; }
.data-table tbody tr:hover td:first-child { color: var(--primary-red); }

.table-caption {
    font-family: var(--font-heading);
    font-size: 1.02rem;
    color: var(--dark-slate);
    margin: 30px 0 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.table-caption:first-of-type { margin-top: 0; }
.table-caption i { color: var(--primary-red); }

/* --- Applications --- */
.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 16px;
}

.app-card {
    text-align: center;
    padding: 28px 16px;
    border-radius: 10px;
    border: 1px solid #ececec;
    transition: var(--transition);
    background-color: var(--text-light);
}

.app-card i {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background-color: rgba(155,15,21,0.08);
    color: var(--primary-red);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 14px;
    transition: var(--transition);
}

.app-card h4 {
    font-family: var(--font-heading);
    font-size: 0.92rem;
    color: var(--dark-slate);
    line-height: 1.4;
}

.app-card:hover {
    border-color: var(--primary-red);
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(0,0,0,0.08);
}

.app-card:hover i {
    background-color: var(--primary-red);
    color: var(--text-light);
    transform: rotateY(180deg);
}

/* --- Bottom enquiry banner inside main column --- */
.pd-enquiry {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    flex-wrap: wrap;
    padding: 38px 40px;
    border-radius: 10px;
    background: linear-gradient(120deg, var(--primary-red) 0%, #6d0a0f 100%);
    color: var(--text-light);
    position: relative;
    overflow: hidden;
}

.pd-enquiry::after {
    content: '';
    position: absolute;
    right: -60px;
    top: -60px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    border: 30px solid rgba(255,255,255,0.06);
}

.pd-enquiry h3 {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    margin-bottom: 6px;
}

.pd-enquiry p { color: rgba(255,255,255,0.85); font-size: 0.95rem; }

.pd-enquiry .btn-primary {
    background-color: var(--text-light);
    color: var(--primary-red);
    border-color: var(--text-light);
    position: relative;
    z-index: 2;
}

.pd-enquiry .btn-primary:hover {
    background-color: var(--dark-slate);
    border-color: var(--dark-slate);
    color: var(--text-light);
}


/* =========================================
   SIDEBAR
   ========================================= */
.pd-sidebar {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.sidebar-sticky {
    position: sticky;
    top: 140px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.sidebar-widget {
    background-color: var(--text-light);
    border-radius: 10px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.05);
    overflow: hidden;
}

.sidebar-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    color: var(--text-light);
    background-color: var(--dark-slate);
    padding: 18px 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 3px solid var(--primary-red);
}

.sidebar-title i { color: #ff5a62; }

.sidebar-menu li { border-bottom: 1px solid #f0f0f0; }
.sidebar-menu li:last-child { border-bottom: none; }

.sidebar-menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 15px 24px;
    font-size: 0.93rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: var(--transition);
    position: relative;
}

.sidebar-menu a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 100%;
    background-color: var(--primary-red);
    transition: width 0.3s ease;
}

.sidebar-menu a i {
    font-size: 0.75rem;
    color: #c0c0c0;
    transition: var(--transition);
}

.sidebar-menu a:hover {
    color: var(--primary-red);
    padding-left: 30px;
    background-color: #fdf7f7;
}

.sidebar-menu a:hover i { color: var(--primary-red); transform: translateX(3px); }

.sidebar-menu a.active {
    background-color: var(--primary-red);
    color: var(--text-light);
}

.sidebar-menu a.active i { color: var(--text-light); }

/* "On this page" table of contents */
.toc-list { padding: 12px 0; }

.toc-list a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 24px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-muted);
    border-left: 3px solid transparent;
    transition: var(--transition);
}

.toc-list a span {
    font-family: var(--font-heading);
    font-size: 0.72rem;
    color: #b5b5b5;
    width: 20px;
}

.toc-list a:hover,
.toc-list a.active {
    color: var(--primary-red);
    border-left-color: var(--primary-red);
    background-color: #fdf7f7;
}

.toc-list a.active span { color: var(--primary-red); }

/* Enquiry CTA card */
.sidebar-cta {
    background: linear-gradient(160deg, #1d1d1d 0%, #0f0f0f 100%);
    border-radius: 10px;
    padding: 32px 26px;
    color: var(--text-light);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.sidebar-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--primary-red);
}

.sidebar-cta-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: var(--primary-red);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 16px;
    box-shadow: 0 0 0 8px rgba(155,15,21,0.25);
}

.sidebar-cta h4 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.sidebar-cta p {
    font-size: 0.88rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.7);
    margin-bottom: 20px;
}

.sidebar-cta .btn-primary { width: 100%; padding: 14px 20px; }
.sidebar-cta .btn-primary:hover { color: var(--text-light); border-color: var(--text-light); }

.sidebar-cta-mail {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 0.86rem;
    color: rgba(255,255,255,0.8);
    word-break: break-all;
}

.sidebar-cta-mail:hover { color: #ff5a62; }


/* =========================================
   ABOUT PAGE
   ========================================= */
.mv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.mv-card {
    background-color: var(--text-light);
    border-radius: 10px;
    padding: 40px 32px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.mv-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 4px;
    background-color: var(--primary-red);
    transition: width 0.4s ease;
}

.mv-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
.mv-card:hover::after { width: 100%; }

.mv-num {
    position: absolute;
    top: 18px;
    right: 24px;
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 700;
    color: rgba(0,0,0,0.04);
    line-height: 1;
}

.mv-icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background-color: var(--primary-red);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 24px;
    box-shadow: 0 10px 22px rgba(155,15,21,0.3);
}

.mv-card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--dark-slate);
    margin-bottom: 12px;
}

.mv-card p {
    font-size: 0.96rem;
    line-height: 1.75;
    color: var(--text-muted);
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--primary-red), rgba(155,15,21,0.1));
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 0 50px 50px 0;
}

.timeline-item:nth-child(even) {
    margin-left: 50%;
    padding: 0 0 50px 50px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 6px;
    right: -9px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: var(--text-light);
    border: 4px solid var(--primary-red);
    z-index: 2;
}

.timeline-item:nth-child(even)::before { right: auto; left: -9px; }

.timeline-card {
    background-color: var(--text-light);
    border-radius: 10px;
    padding: 28px 30px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.06);
    border-top: 3px solid var(--primary-red);
}

.timeline-year {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-red);
    margin-bottom: 6px;
}

.timeline-card h4 {
    font-family: var(--font-heading);
    font-size: 1.08rem;
    color: var(--dark-slate);
    margin-bottom: 8px;
}

.timeline-card p {
    font-size: 0.93rem;
    line-height: 1.7;
    color: var(--text-muted);
}

/* Capabilities strip (dark) */
.cap-section {
    position: relative;
    padding: 90px 0;
    background-color: var(--dark-slate);
    overflow: hidden;
}

.cap-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.cap-card {
    padding: 34px 26px;
    border-radius: 10px;
    background-color: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    transition: var(--transition);
}

.cap-card:hover {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
    transform: translateY(-6px);
}

.cap-card i {
    font-size: 1.8rem;
    color: #ff5a62;
    margin-bottom: 18px;
    transition: var(--transition);
}

.cap-card:hover i { color: var(--text-light); }

.cap-card h4 {
    font-family: var(--font-heading);
    font-size: 1.08rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.cap-card p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.7);
}

.cap-card:hover p { color: rgba(255,255,255,0.9); }


/* =========================================
   QUALITY POLICY PAGE
   ========================================= */
.policy-quote {
    position: relative;
    background-color: var(--text-light);
    border-radius: 10px;
    padding: 50px 55px 50px 110px;
    box-shadow: 0 10px 34px rgba(0,0,0,0.07);
    border-left: 5px solid var(--primary-red);
}

.policy-quote i.fa-quote-left {
    position: absolute;
    left: 38px;
    top: 46px;
    font-size: 2.6rem;
    color: var(--primary-red);
    opacity: 0.85;
}

.policy-quote p {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    line-height: 1.6;
    color: var(--dark-slate);
    font-weight: 600;
}

.policy-quote span {
    display: block;
    margin-top: 18px;
    font-size: 0.92rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    counter-reset: step;
    position: relative;
}

.process-step {
    position: relative;
    text-align: center;
    padding: 0 10px;
}

.process-step::after {
    content: '';
    position: absolute;
    top: 38px;
    left: calc(50% + 46px);
    width: calc(100% - 72px);
    border-top: 2px dashed rgba(155,15,21,0.35);
}

.process-step:last-child::after { display: none; }

.process-icon {
    width: 76px;
    height: 76px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background-color: var(--text-light);
    border: 2px solid var(--primary-red);
    color: var(--primary-red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    position: relative;
    transition: var(--transition);
}

.process-icon::after {
    counter-increment: step;
    content: counter(step, decimal-leading-zero);
    position: absolute;
    top: -6px;
    right: -6px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: var(--primary-red);
    color: var(--text-light);
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.process-step:hover .process-icon {
    background-color: var(--primary-red);
    color: var(--text-light);
}

.process-step h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--dark-slate);
    margin-bottom: 8px;
}

.process-step p {
    font-size: 0.88rem;
    line-height: 1.65;
    color: var(--text-muted);
}

.check-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 30px;
}

.check-grid li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background-color: var(--text-light);
    padding: 20px 22px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
    transition: var(--transition);
}

.check-grid li:hover { transform: translateX(5px); box-shadow: 0 10px 26px rgba(0,0,0,0.08); }

.check-grid li i {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background-color: rgba(155,15,21,0.1);
    color: var(--primary-red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.check-grid h4 {
    font-family: var(--font-heading);
    font-size: 0.98rem;
    color: var(--dark-slate);
    margin-bottom: 4px;
}

.check-grid p {
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.cert-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.cert-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    border-radius: 8px;
    background-color: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    color: var(--text-light);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.92rem;
    transition: var(--transition);
}

.cert-badge i { color: #ff5a62; font-size: 1.2rem; }
.cert-badge:hover { background-color: var(--primary-red); border-color: var(--primary-red); }
.cert-badge:hover i { color: var(--text-light); }


/* =========================================
   TECHNICAL INFO PAGES (tabs-less long tables)
   ========================================= */
.tech-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.tech-nav a {
    padding: 11px 20px;
    border-radius: 50px;
    background-color: var(--text-light);
    border: 1px solid #e3e3e3;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: var(--transition);
}

.tech-nav a:hover {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
    color: var(--text-light);
}

.formula-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.formula-card {
    padding: 24px;
    border-radius: 10px;
    background-color: var(--gray-bg);
    border-left: 4px solid var(--primary-red);
}

.formula-card h4 {
    font-family: var(--font-heading);
    font-size: 0.98rem;
    color: var(--dark-slate);
    margin-bottom: 12px;
}

.formula-card code {
    display: block;
    font-family: Consolas, 'Courier New', monospace;
    font-size: 0.9rem;
    background-color: var(--text-light);
    padding: 12px 14px;
    border-radius: 6px;
    color: var(--primary-red);
    line-height: 1.6;
    margin-bottom: 10px;
    white-space: normal;
}

.formula-card p {
    font-size: 0.83rem !important;
    line-height: 1.6 !important;
}


/* =========================================
   CONTACT PAGE (no form)
   ========================================= */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
    z-index: 5;
}

.contact-card {
    background-color: var(--text-light);
    border-radius: 10px;
    padding: 38px 28px;
    text-align: center;
    box-shadow: 0 14px 40px rgba(0,0,0,0.08);
    transition: var(--transition);
    border-bottom: 4px solid transparent;
}

.contact-card:hover {
    transform: translateY(-8px);
    border-bottom-color: var(--primary-red);
}

.contact-card-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background-color: rgba(155,15,21,0.08);
    color: var(--primary-red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: var(--transition);
}

.contact-card:hover .contact-card-icon {
    background-color: var(--primary-red);
    color: var(--text-light);
    box-shadow: 0 0 0 8px rgba(155,15,21,0.12);
}

.contact-card h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--dark-slate);
    margin-bottom: 10px;
}

.contact-card p,
.contact-card a {
    font-size: 0.94rem;
    line-height: 1.7;
    color: var(--text-muted);
    word-break: break-word;
}

.contact-card a:hover { color: var(--primary-red); }

.contact-split {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: stretch;
}

.contact-info-box {
    background-color: var(--dark-slate);
    border-radius: 10px;
    padding: 50px 45px;
    color: rgba(255,255,255,0.75);
    position: relative;
    overflow: hidden;
}

.contact-info-box::after {
    content: '';
    position: absolute;
    right: -80px;
    bottom: -80px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    border: 40px solid rgba(155,15,21,0.18);
}

.contact-info-box .section-title { color: var(--text-light); font-size: 2.1rem; margin-bottom: 18px; }

.contact-info-box > p { line-height: 1.8; margin-bottom: 28px; }

.contact-list li {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    position: relative;
    z-index: 2;
}

.contact-list li:last-child { border-bottom: none; }

.contact-list i {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background-color: var(--primary-red);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-list strong {
    display: block;
    font-family: var(--font-heading);
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 3px;
}

.contact-list span,
.contact-list a {
    font-size: 0.92rem;
    line-height: 1.65;
    color: rgba(255,255,255,0.7);
    word-break: break-word;
}

.contact-list a:hover { color: #ff5a62; }

.contact-steps {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background-color: var(--text-light);
    padding: 26px 28px;
    border-radius: 10px;
    box-shadow: 0 6px 22px rgba(0,0,0,0.05);
    border-left: 3px solid transparent;
    transition: var(--transition);
}

.contact-step:hover { border-left-color: var(--primary-red); transform: translateX(5px); }

.contact-step .why-number { width: 50px; height: 50px; }

.contact-step h4 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    color: var(--dark-slate);
    margin-bottom: 6px;
}

.contact-step p {
    font-size: 0.93rem;
    line-height: 1.7;
    color: var(--text-muted);
}

.map-wrap {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 34px rgba(0,0,0,0.1);
    line-height: 0;
    border: 6px solid var(--text-light);
}

.map-wrap iframe {
    width: 100%;
    height: 450px;
    border: 0;
    filter: grayscale(0.4) contrast(1.05);
    transition: filter 0.4s ease;
}

.map-wrap:hover iframe { filter: none; }


/* =========================================
   LEGAL PAGES & SITEMAP
   ========================================= */
.legal-wrap {
    max-width: 920px;
    margin: 0 auto;
    background-color: var(--text-light);
    border-radius: 10px;
    padding: 55px 60px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.05);
}

.legal-updated {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-red);
    background-color: rgba(155,15,21,0.07);
    padding: 8px 16px;
    border-radius: 50px;
    margin-bottom: 26px;
}

.legal-wrap h2 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--dark-slate);
    margin: 36px 0 12px;
    padding-left: 16px;
    border-left: 3px solid var(--primary-red);
}

.legal-wrap p,
.legal-wrap li {
    font-size: 0.97rem;
    line-height: 1.85;
    color: var(--text-muted);
}

.legal-wrap p + p { margin-top: 12px; }

.legal-wrap ul { margin: 10px 0 0; }

.legal-wrap ul li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 8px;
}

.legal-wrap ul li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 11px;
    width: 7px;
    height: 7px;
    background-color: var(--primary-red);
    transform: rotate(45deg);
}

.legal-wrap a { color: var(--primary-red); font-weight: 600; }

.sitemap-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 26px;
}

.sitemap-col {
    background-color: var(--text-light);
    border-radius: 10px;
    padding: 30px 28px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.05);
    border-top: 4px solid var(--primary-red);
}

.sitemap-col h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--dark-slate);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sitemap-col h3 i { color: var(--primary-red); }

.sitemap-col li { margin-bottom: 11px; }

.sitemap-col a {
    font-size: 0.93rem;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.sitemap-col a::before {
    content: '\f105';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--primary-red);
    font-size: 0.8rem;
}

.sitemap-col a:hover { color: var(--primary-red); transform: translateX(4px); }


/* =========================================
   GALLERY PAGE
   ========================================= */
.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 45px;
}

.gallery-filter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: 50px;
    border: 1px solid #e0e2e7;
    background-color: var(--text-light);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.gallery-filter .count {
    min-width: 24px;
    height: 22px;
    padding: 0 6px;
    border-radius: 50px;
    background-color: var(--gray-bg);
    color: var(--text-muted);
    font-size: 0.72rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.gallery-filter:hover {
    border-color: var(--primary-red);
    color: var(--primary-red);
}

.gallery-filter.active {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
    color: var(--text-light);
    box-shadow: 0 8px 20px rgba(155,15,21,0.25);
}

.gallery-filter.active .count {
    background-color: rgba(255,255,255,0.2);
    color: var(--text-light);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.gallery-item {
    position: relative;
    display: block;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background-color: #e6e8ec;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    cursor: zoom-in;
    animation: galleryIn 0.45s ease both;
}

.gallery-item.is-hidden { display: none; }

@keyframes galleryIn {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    background: linear-gradient(180deg, rgba(15,15,15,0) 35%, rgba(15,15,15,0.88) 100%);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.gallery-overlay .g-cat {
    align-self: flex-start;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-light);
    background-color: var(--primary-red);
    padding: 5px 10px;
    border-radius: 3px;
    margin-bottom: 8px;
    transform: translateY(10px);
    transition: transform 0.35s ease;
}

.gallery-overlay h4 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    line-height: 1.35;
    color: var(--text-light);
    transform: translateY(10px);
    transition: transform 0.35s ease 0.05s;
}

.gallery-overlay .g-zoom {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.15);
    backdrop-filter: blur(4px);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.6);
    transition: transform 0.35s ease;
}

.gallery-item:hover img { transform: scale(1.08); }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-item:hover .g-cat,
.gallery-item:hover h4 { transform: translateY(0); }
.gallery-item:hover .g-zoom { transform: scale(1); }

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background-color: rgba(10,10,10,0.94);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 70px 80px 40px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.open { opacity: 1; visibility: visible; }

.lightbox-img {
    max-width: 100%;
    max-height: calc(100vh - 170px);
    border-radius: 6px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    transform: scale(0.96);
    transition: transform 0.3s ease;
}

.lightbox.open .lightbox-img { transform: scale(1); }

.lightbox-caption {
    margin-top: 18px;
    text-align: center;
    color: var(--text-light);
    font-family: var(--font-heading);
    font-size: 1rem;
}

.lightbox-caption span {
    display: block;
    margin-top: 6px;
    font-family: var(--font-body);
    font-size: 0.82rem;
    color: rgba(255,255,255,0.55);
}

.lightbox-btn {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    background-color: rgba(255,255,255,0.08);
    color: var(--text-light);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.lightbox-btn:hover { background-color: var(--primary-red); border-color: var(--primary-red); }

.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }

body.lightbox-open { overflow: hidden; }


/* =========================================
   RESPONSIVE — INNER PAGES
   ========================================= */
@media (max-width: 1199px) {
    .pd-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 30px; }
    .pd-overview { grid-template-columns: 1fr; }
    .cap-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: repeat(2, 1fr); }
    .sitemap-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
    .process-steps { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
    .process-step::after { display: none; }
}

@media (max-width: 991px) {
    .page-banner { padding: 75px 0; }
    .page-banner h1 { font-size: 2.3rem; }

    .pd-section { padding: 60px 0 70px; }
    .pd-layout { grid-template-columns: 1fr; }
    .sidebar-sticky { position: static; }
    .sidebar-toc { display: none; }  /* jump-links are not useful once the sidebar sits below content */

    .inner-section, .cap-section { padding: 70px 0; }
    .mv-grid { grid-template-columns: 1fr; }
    .contact-split { grid-template-columns: 1fr; }

    .timeline::before { left: 9px; }
    .timeline-item,
    .timeline-item:nth-child(even) { width: 100%; margin-left: 0; padding: 0 0 35px 45px; }
    .timeline-item::before,
    .timeline-item:nth-child(even)::before { left: 0; right: auto; }
}

@media (max-width: 767px) {
    .page-banner { padding: 55px 0; }
    .page-banner h1 { font-size: 1.85rem; }
    .page-banner p { font-size: 0.98rem; }

    .pd-block { padding: 26px 20px; }
    .pd-block-head { gap: 14px; }
    .pd-block-icon { width: 44px; height: 44px; font-size: 1.05rem; }
    .pd-block-head h2 { font-size: 1.25rem; }
    .pd-overview-text h2 { font-size: 1.5rem; }
    .pd-highlights { grid-template-columns: 1fr; }
    .pd-actions { flex-direction: column; }
    .pd-actions a { width: 100%; justify-content: center; }
    .pd-enquiry { padding: 30px 24px; text-align: center; justify-content: center; }

    .spec-table th, .spec-table td { display: block; width: 100%; }
    .spec-table th { border-right: none; border-bottom: none; border-left: 3px solid var(--primary-red); padding-bottom: 6px; }

    .app-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .app-card { padding: 22px 10px; }

    .cap-grid, .contact-grid, .sitemap-grid, .check-grid { grid-template-columns: 1fr; }
    .process-steps { grid-template-columns: 1fr 1fr; }

    .policy-quote { padding: 70px 24px 30px; }
    .policy-quote i.fa-quote-left { left: 24px; top: 24px; font-size: 2rem; }
    .policy-quote p { font-size: 1.1rem; }

    .contact-info-box { padding: 36px 24px; }
    .map-wrap iframe { height: 320px; }

    .legal-wrap { padding: 34px 22px; }

    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .gallery-filters { gap: 8px; margin-bottom: 30px; }
    .gallery-filter { padding: 9px 14px; font-size: 0.8rem; }
    /* No hover on touch screens: keep a slim caption visible */
    .gallery-overlay { opacity: 1; padding: 12px; background: linear-gradient(180deg, rgba(15,15,15,0) 55%, rgba(15,15,15,0.8) 100%); }
    .gallery-overlay .g-cat, .gallery-overlay .g-zoom { display: none; }
    .gallery-overlay h4 { font-size: 0.78rem; transform: none; }

    .lightbox { padding: 60px 12px 30px; }
    .lightbox-prev, .lightbox-next { top: auto; bottom: 20px; transform: none; width: 44px; height: 44px; }
    .lightbox-prev { left: calc(50% - 54px); }
    .lightbox-next { right: calc(50% - 54px); }
    .lightbox-img { max-height: calc(100vh - 200px); }
}
