/* --- Left-Aligned Overview Styling --- */
.overview-highlights {
    /* Horizontal scrolling for mobile */
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;

    /* THE FIX: Add padding to top and bottom so the shadow and hover jump don't get cut off */
    padding: 15px 5px 25px 5px;

    /* Optional: Negative margin to offset the padding so your overall spacing doesn't change */
    margin-top: -15px;
}

/* Custom, sleek scrollbar for mobile viewing */
.overview-highlights::-webkit-scrollbar {
    height: 6px;
}

.overview-highlights::-webkit-scrollbar-thumb {
    background: #e02627;
    border-radius: 10px;
}

.overview-highlights::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.highlight-badge {
    background-color: #f8f9fa;
    border: 1px solid #eaeaea;
    color: #333;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.highlight-badge i {
    color: #e02627;
    margin-right: 10px;
    font-size: 18px;
}

.highlight-badge:hover {
    background-color: #fff0f0;
    border-color: #e02627;
    transform: translateY(-5px);
    /* Badge jumps up */
    box-shadow: 0 8px 20px rgba(224, 38, 39, 0.15);
    /* Shadow renders completely inside the new padding */
}














.section-heading {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 30px;
    color: #222;
}

.tech-table-wrapper {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    overflow-x: auto;
    /* Ensures horizontal scrolling on small mobile screens */
    padding: 10px;
}

.sotco-tech-table {
    width: 100%;
    min-width: 700px;
    /* Prevents the table from squishing too much on mobile */
    border-collapse: separate;
    border-spacing: 0 10px;
}

.sotco-tech-table tr {
    background: #fff;
    transition: transform 0.2s;
}

.sotco-tech-table tr:hover {
    transform: scale(1.01);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    z-index: 2;
    position: relative;
}

.sotco-tech-table td {
    padding: 20px;
    vertical-align: middle;
    border-top: 1px solid #f5f5f5;
    border-bottom: 1px solid #f5f5f5;
}

.sotco-tech-table tr td:first-child {
    border-left: 1px solid #f5f5f5;
    border-radius: 8px 0 0 8px;
}

.sotco-tech-table tr td:last-child {
    border-right: 1px solid #f5f5f5;
    border-radius: 0 8px 8px 0;
}

/* Adapted to Namo Alloy Red */
.icon-box {
    width: 45px;
    height: 45px;
    min-width: 45px;
    background: rgba(224, 38, 39, 0.1);
    color: #e02627;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.label-col {
    width: 30%;
    /* Adjusted slightly for better text fitting */
    font-weight: 700;
    color: #222;
    font-size: 16px;
}

.value-col {
    color: #555;
    font-size: 15px;
    line-height: 2;
    /* Gives tags room to breathe if they wrap */
}

.tag {
    display: inline-block;
    background: #e02627;
    /* Adapted to Brand Color */
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 13px;
    margin-right: 5px;
    margin-bottom: 5px;
    /* Ensures vertical spacing when wrapping */
    font-weight: 600;
}

.tag.outline {
    background: transparent;
    border: 1px solid #e02627;
    /* Adapted to Brand Color */
    color: #e02627;
}

/* --- Mobile Responsive Table (Stacks into Cards) --- */
@media (max-width: 768px) {

    /* Remove the horizontal scroll */
    .tech-table-wrapper {
        padding: 0;
        background: transparent;
        box-shadow: none;
    }

    /* Force table elements to block level */
    .sotco-tech-table,
    .sotco-tech-table tbody,
    .sotco-tech-table tr,
    .sotco-tech-table td {
        display: block;
        width: 100%;
        min-width: 100%;
        /* Overrides the 700px min-width */
    }

    /* Turn each row into a standalone card */
    .sotco-tech-table tr {
        background: #fff;
        margin-bottom: 20px;
        border-radius: 12px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
        border: 1px solid #f5f5f5;
    }

    /* Adjust padding and remove standard table borders */
    .sotco-tech-table td {
        padding: 15px;
        border: none !important;
        /* Removes the left/right borders from desktop */
    }

    /* Style the Label (Top Half of the Card) */
    .sotco-tech-table tr td:first-child {
        border-bottom: 1px dashed #eaeaea !important;
        /* Separator line */
        background: #fafafa;
        border-radius: 12px 12px 0 0 !important;
    }

    .label-col {
        width: 100%;
        /* Take up full width on mobile */
    }

    /* Style the Value (Bottom Half of the Card) */
    .sotco-tech-table tr td:last-child {
        border-radius: 0 0 12px 12px !important;
        padding-top: 20px;
        padding-bottom: 20px;
    }
}

















/* --- Global Product Page Overrides --- */
.border-bottom-red {
    border-bottom: 5px solid #e02627 !important;
}




/* --- Highlighted Featured Products --- */
.highlight-product-card {
    background: #ffffff;
    border: 1px solid #eeeeee;
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.highlight-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(224, 38, 39, 0.1);
    border-color: rgba(224, 38, 39, 0.3);
}

.highlight-product-card .icon-circle {
    width: 60px;
    height: 60px;
    background: rgba(224, 38, 39, 0.1);
    color: #e02627;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 20px auto;
    transition: all 0.3s ease;
}

.highlight-product-card:hover .icon-circle {
    background: #e02627;
    color: #ffffff;
}

.highlight-product-card h5 {
    font-size: 18px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 5px;
}

.highlight-product-card p {
    font-size: 15px;
    color: #666;
    margin-bottom: 20px;
}

.highlight-product-card .astm-tag {
    display: inline-block;
    background: #f8f9fa;
    color: #e02627;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 15px;
    border-radius: 50px;
    border: 1px dashed rgba(224, 38, 39, 0.4);
}

/* --- Exhaustive Material List (Pill Layout) --- */
.full-grade-box {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    height: 100%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    border-top: 4px solid #e02627;
    /* Brand accent color */
}

.full-grade-box .box-title {
    font-size: 20px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.grade-pill-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.grade-pill {
    background: #f4f5f7;
    color: #444;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.grade-pill:hover {
    background: #fff;
    color: #e02627;
    border-color: #e02627;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(224, 38, 39, 0.1);
}




/* ==========================================================================
   Modern Feature Cards (Left Side)
   ========================================================================== */
.feature-card-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
    /* Clean spacing between cards */
}

.modern-feature-card {
    display: flex;
    align-items: flex-start;
    background: #ffffff;
    border: 1px solid #eaeaea;
    padding: 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.modern-feature-card:hover {
    transform: translateX(8px);
    /* Slides slightly to the right on hover */
    border-color: #e02627;
    box-shadow: 0 10px 25px rgba(224, 38, 39, 0.1);
}

/* Icon Container inside the Card */
.modern-feature-card .icon-wrap {
    width: 55px;
    height: 55px;
    min-width: 55px;
    background: rgba(224, 38, 39, 0.08);
    color: #e02627;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-right: 20px;
    transition: all 0.3s ease;
}

.modern-feature-card:hover .icon-wrap {
    background: #e02627;
    color: #ffffff;
}

/* Text Container inside the Card */
.modern-feature-card .content-wrap h5 {
    font-size: 18px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 6px;
    margin-top: 0;
}

.modern-feature-card .content-wrap p {
    font-size: 14.5px;
    color: #666;
    margin-bottom: 0;
    line-height: 1.6;
}

/* ==========================================================================
   Modern Application Grid (Right Side)
   ========================================================================== */
.modern-app-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 2 equal columns */
    gap: 15px;
}

.app-tile {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    padding: 16px 20px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    color: #333;
    border-left: 4px solid transparent;
    /* Invisible border for hover effect */
    transition: all 0.3s ease;
    cursor: default;
}

.app-tile i {
    color: #e02627;
    font-size: 20px;
    margin-right: 15px;
    transition: all 0.3s ease;
}

.app-tile:hover {
    background: #ffffff;
    border-left-color: #e02627;
    /* Red accent bar appears on hover */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    transform: translateY(-3px);
    /* Tile lifts up */
    color: #e02627;
}

.app-tile:hover i {
    transform: scale(1.15);
    /* Icon subtle pop */
}

/* ==========================================================================
   Responsive Adjustments for Tablets and Mobile
   ========================================================================== */
@media (max-width: 991px) {
    .modern-feature-card {
        padding: 15px;
        /* Less padding on smaller laptops/tablets */
    }

    .modern-feature-card .icon-wrap {
        width: 45px;
        height: 45px;
        min-width: 45px;
        font-size: 18px;
        margin-right: 15px;
    }
}

@media (max-width: 768px) {
    .modern-app-grid {
        grid-template-columns: 1fr;
        /* Collapses to a single column on phones */
    }

    .feature-card-wrapper {
        margin-bottom: 50px;
        /* Adds space between the left and right column when stacked vertically */
    }
}











/* Forces all sidebar product images to be perfect squares without distortion */
.small-product-wrapper .image img {
    width: 60px !important;
    height: 60px !important;
    object-fit: cover;
    /* The magic property that prevents squishing */
    border-radius: 6px;
    /* Optional: gives the images a modern rounded corner */
    background-color: #f8f9fa;
    /* Optional: adds a light background in case of transparent PNGs */
}

/* 1. Set up the Flexbox container */
.small-product-wrapper {
    display: flex;
    align-items: center;
    /* Keeps the image vertically centered with the text */
    margin-bottom: 20px;
    /* Space between each product */
}

/* 2. THE MAGIC FIX: Stop the image from squishing */
.small-product-wrapper .image {
    flex-shrink: 0;
    /* Tells the browser: NEVER shrink this div */
    width: 83px;
    /* Locks the container width */
}

/* 3. Allow the text to take up the rest of the space */
.small-product-wrapper .content {
    flex-grow: 1;
    padding-left: 1px;
    /* Space between the image and the text */
}

/* 4. Let the title wrap to the next line beautifully */
.small-product-wrapper .content .title,
.small-product-wrapper .content .title a {
    display: block;
    white-space: normal;
    /* Allows the text to break into multiple lines */
    line-height: 1.4;
    /* Adds breathing room between the lines of text */
    font-size: 20px;
    /* Adjust size if needed to fit nicely */
    margin: 0;
}











/* 3. Modern Tabs & Tables */
.nav-pills .nav-link {
    color: #666;
    background: #eee;
    margin: 0 8px;
    border-radius: 50px;
    transition: var(--alloy-transition);
}

.nav-pills .nav-link.active {
    background-color: var(--color-primary) !important;
    color: #fff !important;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.custom-table-container {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid #eee;
    box-shadow: var(--alloy-shadow);
}

.table thead th {
    font-size: 1.25rem;
    padding: 18px;
    letter-spacing: 0.5px;
    border: none;
}

.table tbody td {
    padding: 16px;
    border-bottom: 1px solid #f8f9fa;
}





.custom-spec-tabs .nav-link {
    color: #1a1a1a;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.custom-spec-tabs .nav-link.active {
    background-color: #e02627 !important;
    color: #fff !important;
    border-color: #e02627 !important;
}

.custom-spec-tabs .nav-link:hover:not(.active) {
    background-color: #eee;
}