a, a:hover ,a:active{
    text-decoration: none;
    color: unset;
}
/*
body{
    background-color: white;
    margin: 0;
}









nav{
    display: table;
    justify-content: center;
    align-items: center;
    justify-self: center;
    margin: 0;
    padding: 0;
}
nav *{
    display: block;
    justify-content: center;
    margin: 0;
    padding: 0;
}

nav>div{
    direction: rtl;
    position: relative;
}

nav>div:has(img)>a{
    position: absolute;
    top: 0;
    right: 0%;
    color: white;
    text-decoration: none;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: smaller;
}
*/
/* main ul*/

ul.nav-menu{
    display: block;
    padding: 5px 0;
    background: linear-gradient(to bottom, #1F7AEA 0, #1675E9 14%, #1059B1 100%) no-repeat;
}
/*first menu layer*/

ul.nav-menu>li {
    display: inline-block;
    position: relative;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: small;
}
ul.nav-menu>li:hover{
    z-index: 2;
}

ul.nav-menu>li a {
    padding: 2px 3px;
}


ul.nav-menu>li>a{
    background: transparent;
    padding: 0 16px 0 16px;
    line-height: 25px;
    /*border-right: 1px solid rgb(50, 60, 150);*/
    border-right: 1px solid rgb(117, 161, 255);
    border-bottom: 1px solid transparent;
    color: aliceblue;
    text-shadow: 0px 0px 1px black;
}


ul.nav-menu>li:first-child>a {
    border-right: 1px solid transparent;
}


ul.nav-menu>li:hover>a{
    background: #3b8ef3;
    border-bottom: 1px solid #1F7AEA;
    border-right: 1px solid transparent;
    color: white;
}
ul.nav-menu>li:hover + li>a{
    border-right: 1px solid transparent;
}

/*second menu layer*/

ul.nav-menu>li>ul{
    background-color:#7db0f0;
    visibility: hidden;
    position: absolute;
    outline: 1px solid #1F7AEA;
    height: 0px;
    overflow:hidden;
    right: 0px;
    list-style: none;
    z-index: -1;
    width: max-content;
}

ul.nav-menu>li:hover>ul{
    visibility: visible;
    animation: unfold 0.5s 1 forwards;
}

@keyframes unfold {
    from { overflow: hidden; height:0px; }
    99% { overflow: hidden; height:calc-size(auto, size);}
    to { overflow: visible; height:calc-size(auto, size);}
}

ul.nav-menu>li>ul>li{
    background: transparent;
    padding: 0 6px;
}

ul.nav-menu>li>ul>li:hover{
    background: #5599ec;
    border-radius: 4px;
}
ul.nav-menu>li>ul>li>a {
    color: black;
    text-transform:lowercase;
    /*border-bottom: 1px solid #1F7AEA;*/
}
ul.nav-menu>li>ul>li:last-child>a{
    border: none;
}
ul.nav-menu>li>ul>li:has(>ul)>a::after{
    content:"←";
    font-size: medium;
    color: transparent;
    direction: ltr;
    display: inline-block;
    text-shadow: none;
}

ul.nav-menu>li>ul>li:hover:has(>ul)>a::after{
    color: whitesmoke;
}


/*third menu layer*/
/* ul.nav-menu>li>ul>li>ul */
ul.nav-menu>li>ul>li>ul{
    visibility: hidden;
    position: absolute;
    overflow: hidden;
    top:calc(100% - 20px);
    right: 100%;
    border: 1px solid #1F7AEA;
    width: max-content;
}

ul.nav-menu>li>ul>li:hover>ul{
    visibility: visible;
    animation: unfold 0.5s 1 forwards;
}

ul.nav-menu>li>ul>li>ul>li{
    background: #7db0f0;
}

ul.nav-menu>li>ul>li>ul>li:hover{
    background: #5599ec;
}









.color{
    background-color: green ;
}

p.product-card-title {
    margin: 0;
    margin-top: 1rem;
    direction: rtl;
    font-weight: bold;
    font-family: Tahoma;
    font-size: medium;
    min-height: 38px;

}

.product-section {
    display:flex;
    flex-wrap: wrap;
    justify-content:center;
    align-content: stretch;
    padding: 0;
    margin: auto;
}
.title {
    font-size: x-large;
    font-family: Tahoma;
    width: 100%;
    margin: 1rem;
}
.product-card{
    transition: all 0.5s;
    background-color: #E7E9EE;
    border-radius: 12px;
    border: 1px solid gray;
    height: 390px;
    width: 252px;
    min-width: 252px;
    flex: 1;
    position: relative;
    overflow: hidden;
    margin: 4px;;
}
.product-card:hover{
    border-color: black;
    box-shadow: 0px 0px 8px 0px rgb(0 0 255 / 0.2) ;
}

.center-text{
    text-align: center;
}

.product-image-container{
    margin:auto;
    margin-top: 1rem;
    height: 200px;
    width: 226px;
    min-width: 226px;
    
}

.product-image{
    width: 100%;
    object-fit:contain;
    margin: auto;
    display: block;
    width: 100%;
    height: 100%;
}

ul.product-card-desc{
    list-style-type: circle;
    margin: 0px;
    margin-top: 1rem;
    padding: 0px;
}
ul.product-card-desc li{
    margin: 0px 24px 0 5px;
    padding-left: 0px;
    min-height: 36px;
    max-height: 36px;
    direction: rtl;
}
ul.product-card-desc li p {
    margin: 0;
    font-size: small;
}

.horizonal_divider{
    margin: auto;
    margin-top: 6px;
    margin-bottom: 20px;
    border-top: 2px solid gray;
    width: 85%;
    align-items: center;
}

.product-card-learn-more{
    display: flex;
    margin: auto;
    background-color: rgb(45, 130, 199);
    position: absolute;
    border-top: 1px solid gray;
    bottom: 0;
    left: 0;
    width: 100%;
    justify-content: center;
    align-content: center;
    align-self: center;
    color:ghostwhite;
    justify-self: center;
    height: 20px;
    
}

.about-section {
    display:flex;
    flex-wrap: wrap;
    justify-content:center;
    align-content: stretch;
    padding: 0;
    margin: auto;
}

/* ==========================================================
   CPP PRODUCT CATALOGUE — horizontal dark cards inspired by
   the supplied Alborz Microsystem reference screenshots.
   These rules are scoped to product.php only.
   ========================================================== */
.product-section,
.product-section * {
    box-sizing: border-box;
}

.product-section {
    display: block !important;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 28px 22px 46px;
    direction: rtl;
    color: #f4f6f8;
    background: #111214;
    font-family: Tahoma, Arial, sans-serif;
}

.product-page-title {
    width: min(100%, 1020px);
    margin: 0 auto 30px;
    padding: 0 0 18px;
    border-bottom: 1px solid #45474c;
    color: #ffffff;
    font-family: Tahoma, Arial, sans-serif;
    font-size: 25px;
    font-weight: 700;
    line-height: 1.8;
    text-align: center;
}

.product-category {
    width: min(100%, 1020px);
    margin: 0 auto 36px;
    scroll-margin-top: 24px;
}

.product-category:last-child {
    margin-bottom: 0;
}

.product-category-title {
    margin: 0 0 15px;
    padding: 0 13px 0 0;
    border-right: 4px solid #1687d5;
    color: #ffffff;
    font-family: Tahoma, Arial, sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.9;
    text-align: right;
}

.product-list {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.product-card {
    display: grid;
    grid-template-columns: minmax(245px, 34%) minmax(0, 1fr);
    align-items: center;
    gap: 28px;
    width: 100%;
    min-width: 0;
    min-height: 250px;
    height: auto;
    margin: 0;
    padding: 18px 20px;
    overflow: hidden;
    direction: ltr;
    border: 1px solid #34363b;
    border-radius: 11px;
    background: #292a2e;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
    transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.product-card:hover {
    border-color: #1687d5;
    box-shadow: 0 7px 20px rgba(0, 0, 0, .24);
    transform: translateY(-2px);
}

.product-image-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    height: 216px;
    margin: 0;
    padding: 10px;
    overflow: hidden;
    border-radius: 2px;
    background: #f0f1f3;
}

.product-image {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    margin: auto;
    object-fit: contain;
}

.product-card-content {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    width: 100%;
    min-width: 0;
    min-height: 210px;
    height: 100%;
    padding: 0;
    direction: rtl;
    text-align: right;
}

p.product-card-title,
.product-card-title {
    min-height: 0;
    margin: 0 0 13px;
    color: #ffffff;
    font-family: Tahoma, Arial, sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.75;
    text-align: right;
}

.product-card-title a,
.product-card-title a:link,
.product-card-title a:visited {
    color: #ffffff !important;
    text-decoration: none !important;
}

.product-card-title a:hover {
    color: #65baff !important;
}

p.product-card-desc {
    margin: 0 0 20px;
    padding: 0;
    color: #bfc3ca;
    font-family: Tahoma, Arial, sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 2.05;
    text-align: justify;
    overflow-wrap: anywhere;
}

.product-card-learn-more {
    position: static;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    width: auto;
    min-width: 130px;
    height: auto;
    min-height: 37px;
    margin: auto 0 0 auto;
    padding: 8px 18px;
    border: 0;
    border-radius: 2px;
    background: #092da4;
    color: #ffffff !important;
    font-family: Tahoma, Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
    text-decoration: none !important;
    transition: background .2s ease, transform .2s ease;
}

.product-card-learn-more:hover {
    background: #087bc4;
    color: #ffffff !important;
    transform: translateX(-2px);
}

@media (max-width: 760px) {
    .product-section {
        padding: 22px 12px 34px;
    }

    .product-page-title {
        margin-bottom: 24px;
        font-size: 22px;
    }

    .product-category {
        margin-bottom: 28px;
    }

    .product-card {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
        min-height: 0;
        padding: 14px;
    }

    .product-image-container {
        height: 205px;
    }

    .product-card-content {
        min-height: 0;
    }

    .product-card-title {
        font-size: 16px;
    }

    p.product-card-desc {
        font-size: 12px;
        line-height: 1.95;
    }
}

@media (max-width: 420px) {
    .product-section {
        padding-right: 9px;
        padding-left: 9px;
    }

    .product-card {
        padding: 11px;
    }

    .product-image-container {
        height: 180px;
    }
}


/* ================================================================
   CPP PRODUCT CATALOGUE — FINAL OVERRIDE
   Exact layout requested: one horizontal product row at a time,
   image on the LEFT, text and blue detail button on the RIGHT.
   This block intentionally overrides the legacy flex card rules.
   ================================================================ */
.product-section,
.product-section * {
    box-sizing: border-box !important;
}

.product-section {
    display: block !important;
    flex: none !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 24px 16px 42px !important;
    direction: rtl !important;
    background: #111214 !important;
    color: #f4f6f8 !important;
    font-family: Tahoma, Arial, sans-serif !important;
}

.product-section .product-page-title {
    display: block !important;
    width: 100% !important;
    max-width: 900px !important;
    margin: 0 auto 27px !important;
    padding: 0 0 14px !important;
    border: 0 !important;
    border-bottom: 1px solid #45474c !important;
    color: #fff !important;
    font-family: Tahoma, Arial, sans-serif !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    line-height: 1.8 !important;
    text-align: center !important;
}

.product-section .product-category {
    display: block !important;
    float: none !important;
    clear: both !important;
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 900px !important;
    margin: 0 auto 29px !important;
    padding: 0 !important;
    scroll-margin-top: 22px;
}

.product-section .product-category-title {
    display: block !important;
    width: 100% !important;
    margin: 0 0 12px !important;
    padding: 0 12px 0 0 !important;
    border: 0 !important;
    border-right: 3px solid #1687d5 !important;
    color: #fff !important;
    font-family: Tahoma, Arial, sans-serif !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    line-height: 1.9 !important;
    text-align: right !important;
}

.product-section .product-list {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 17px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.product-section .product-card {
    display: grid !important;
    grid-template-columns: minmax(220px, 34%) minmax(0, 1fr) !important;
    grid-template-rows: minmax(190px, auto) !important;
    align-items: center !important;
    justify-content: stretch !important;
    gap: 22px !important;
    float: none !important;
    flex: 0 0 auto !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    min-height: 222px !important;
    height: auto !important;
    margin: 0 !important;
    padding: 16px 18px !important;
    overflow: hidden !important;
    direction: ltr !important;
    border: 1px solid #3a3c42 !important;
    border-radius: 10px !important;
    background: #292a2e !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .14) !important;
    transition: border-color .2s ease, box-shadow .2s ease !important;
}

.product-section .product-card:hover {
    border-color: #1687d5 !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .25) !important;
    transform: none !important;
}

.product-section .product-image-container {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    float: none !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 190px !important;
    min-height: 190px !important;
    margin: 0 !important;
    padding: 9px !important;
    overflow: hidden !important;
    border: 0 !important;
    border-radius: 2px !important;
    background: #f2f3f5 !important;
}

.product-section .product-image {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    margin: auto !important;
    object-fit: contain !important;
    object-position: center !important;
}

.product-section .product-card-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: center !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 190px !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    direction: rtl !important;
    text-align: right !important;
}

.product-section .product-card-title {
    display: block !important;
    min-height: 0 !important;
    margin: 0 0 9px !important;
    padding: 0 !important;
    color: #fff !important;
    font-family: Tahoma, Arial, sans-serif !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    line-height: 1.7 !important;
    text-align: right !important;
}

.product-section .product-card-title a,
.product-section .product-card-title a:link,
.product-section .product-card-title a:visited {
    color: #fff !important;
    text-decoration: none !important;
}

.product-section .product-card-title a:hover {
    color: #75c4ff !important;
}

.product-section .product-card-desc {
    display: block !important;
    margin: 0 0 16px !important;
    padding: 0 !important;
    color: #c5c8ce !important;
    font-family: Tahoma, Arial, sans-serif !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    line-height: 1.95 !important;
    text-align: justify !important;
    overflow-wrap: anywhere !important;
}

.product-section .product-card-learn-more {
    position: static !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    align-self: center !important;
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 118px !important;
    max-width: 180px !important;
    height: auto !important;
    min-height: 34px !important;
    margin: 3px auto 0 !important;
    padding: 7px 17px !important;
    border: 0 !important;
    border-radius: 2px !important;
    background: #092da4 !important;
    color: #fff !important;
    font-family: Tahoma, Arial, sans-serif !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.5 !important;
    text-align: center !important;
    text-decoration: none !important;
    transition: background .2s ease !important;
}

.product-section .product-card-learn-more:hover {
    background: #087bc4 !important;
    color: #fff !important;
}

@media (max-width: 760px) {
    .product-section {
        padding: 20px 10px 32px !important;
    }
    .product-section .product-card {
        grid-template-columns: minmax(0, 1fr) !important;
        grid-template-rows: auto auto !important;
        gap: 14px !important;
        min-height: 0 !important;
        padding: 13px !important;
    }
    .product-section .product-image-container {
        height: 205px !important;
        min-height: 205px !important;
    }
    .product-section .product-card-content {
        min-height: 0 !important;
    }
    .product-section .product-card-title {
        font-size: 16px !important;
    }
    .product-section .product-card-desc {
        font-size: 12px !important;
        line-height: 1.9 !important;
    }
}

@media (max-width: 420px) {
    .product-section .product-card {
        padding: 10px !important;
    }
    .product-section .product-image-container {
        height: 180px !important;
        min-height: 180px !important;
    }
}
