/*
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
*/
/* 
    Created on : Mar 27, 2024, 2:40:29 PM
    Author     : Ariel.Malka
*/

a {
    color: #ffa300;
}

.column > a > img,
.column img {
    width: 100%;
    height: auto;
}

.card-link {
    display: block;
    width: 100%;
    text-decoration: none;
    color: inherit;
}

.product-card,
.card,
.card-content {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.product_short_desc {
    text-align: left;
}

.item-number {
    text-align: left;
    color: #E7A632;
}

.features-container {
    vertical-align: bottom;
}

.products-container {
    display: grid;
    grid-auto-rows: auto;
    grid-template-columns: repeat(1, 1fr);
    gap: 10px;
}

.column {
    display: grid;
    grid-template-rows: auto auto;
}

.one-column {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
}

.two-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.three-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.four-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.five-columns {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
}

.six-columns {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
}

.item_descript {
    display: block;
    width: 100%;
    height: 80px;              /* fixed height */
    background: #253B98;
    color: #ffffff;
    opacity: 0.9;
    font-size: 17px;
    line-height: 1.4;
    padding: 6px 8px;
    box-sizing: border-box;
    overflow: hidden;

    /* clean text handling */
    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-title {
    display: block;
    width: 100%;
    margin: 12px 0 8px;
    color: #ffa300;
    text-align: center;
    font-size: 1.1em;
    line-height: 1.35;
    box-sizing: border-box;

    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
}

.card-image {
    text-align: center;
    width: 100%;
}

.card-image img {
    height: auto;
    max-width: 100%;
}

.product_image {
    margin-top: 5px;
    max-height: 130px;
    width: auto;
    max-width: 100%;
}

.product-features,
.features {
    display: block;
    width: 100%;
    box-sizing: border-box;
    font-size: 1.125rem;
    margin-block-start: 1em;
    margin-block-end: 1em;
    padding-inline-start: 0;
    unicode-bidi: isolate;

    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
}

.features ul {
    margin: 10px 0 0 20px;
    padding: 0;
}

.features li {
    margin-bottom: 8px;
    line-height: 1.4;
}

.rftest_product {
    float: right;
    background: url(../images/homepage_images/bg-rftest.png) no-repeat center;
    background-size: 600px 1050px;
    background-position: left -100px bottom -250px;
    background: #dedfe5;
    background-image: linear-gradient(to top, #59A9D3, #2D58A7);
    border-radius: 10px;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    box-sizing: border-box;
}

.spot-prod-header {
    width: 100%;
    margin: 0 auto;
    padding: 30px 9% 0;   /* 30px space from the top */
    text-align: center;
    box-sizing: border-box;
}

.spot-prod-btn {
    background-color: #253B98;
    color: white;
    padding: 12px;
    text-align: center;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    width: fit-content;
    margin: 5% auto 20px;
    display: block;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

.spot-prod-btn:hover {
    background-color: #1e2f7d;
}

.spot-prod-btn:active {
    background-color: #1a2876;
}

.rftest_product div[th\\:utext] {
    overflow: hidden;
    word-wrap: break-word;
    max-height: 50%;
}

@media (max-width: 975px) {
    .one-column {
        grid-template-columns: repeat(1, 1fr);
    }

    .product-column {
        padding: 5%;
    }

    .two-columns,
    .three-columns,
    .four-columns,
    .five-columns,
    .six-columns {
        grid-template-columns: repeat(1, 1fr);
    }

    .products-container {
        display: flex;
        flex-direction: column;
        margin-left: 10%;
        margin-right: 10%;
    }

    .product-card:nth-child(n+4) {
        display: none;
    }

    .item_descript,
    .product-title,
    .features {
        width: 100%;
        max-width: 100%;
    }
}