

.projects{
    padding-block: 90px;
}


.each-project{
    border-style: solid;
    border-width: 2px 0px 0px 2px;
    border-color: var(--secondary-color);
    box-shadow: 8px 8px 30px -10px rgba(0, 0, 0, 0.2);
    padding: 15px;
    display: block;
}

.project-image{
    width: 100%;
    height: 208px;
    overflow: hidden;
}

.project-image img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .5s;
}

.project-content{
    padding-top: 10px;
    padding-bottom: 10px;
}

.project-date span{
    font-size: var(--text-size);
    font-family: "Maven-Bold";
    color: var(--secondary-color);
}

.project-date{
    padding-bottom: 10px;
}

.project-text p{
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.project-name *{
    font-size: var(--title-size);
    font-family: "Maven-Bold";
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.project-link span{
    color: var(--secondary-color);
}

.project-link svg path{
    fill: var(--secondary-color);
    stroke: var(--secondary-color);
}

.each-project:hover .project-image img{
    transform: scale(1.1);
    transition: .5s;
}

.col-each-project{
    margin-bottom: 30px;
}


.all-tabs{
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
}

.all-tabs .each-tab{
    padding: 10px 15px;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    cursor: pointer;
}

.all-tabs .each-tab.active{
    background-color: var(--primary-color);
    color: #fff;
}

.all-tabs .each-tab:hover{
    border: 1px solid #520505;
    color: #520505;
}








/*table*/


.reference-sheet {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    background: #fff;
    border: 2px solid #000;
    margin-bottom: 20px;
}

/* Header */
.sheet-header {
    display: grid;
    grid-template-columns: 25% 50% 25%;
    align-items: center;
    min-height: 110px;
    border-bottom: 2px solid #000;
    background: #fff;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 10px;
}

.logo img {
    display: block;
    max-width: 100%;
    max-height: 88px;
    object-fit: contain;
}

.sheet-header h1 {
    margin: 0;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
}

/* Table wrapper */
.table-container {
    width: 100%;
    overflow-x: auto;
}

/* Main table */
.reference-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 12px;
}

/* Column proportions */
.item-column {
    width: 4.5%;
}

.project-column {
    width: 47%;
}

.product-column {
    width: 26.5%;
}

.brand-column {
    width: 22%;
}

/* Table cells */
.reference-table th,
.reference-table td {
    border: 2px solid #000;
    padding: 10px 6px;
    text-align: center;
    vertical-align: middle;
    line-height: 1.5;
    overflow-wrap: break-word;
}

/* Blue heading row */
.reference-table thead th {
    height: 54px;
    background-color: #bdd7ee;
    font-weight: 700;
    font-size: 12px;
}

/* Body rows */
.reference-table tbody td {
    height: 55px;
    background-color: #fff;
    font-weight: 400;
}

/* Item number */
.reference-table td:first-child,
.reference-table th:first-child {
    padding-left: 2px;
    padding-right: 2px;
}

/* Print */
@media print {
    @page {
        size: A4 portrait;
        margin: 10mm;
    }

    body {
        padding: 0;
        background: #fff;
    }

    .reference-sheet {
        max-width: none;
        border: 2px solid #000;
    }

    .table-container {
        overflow: visible;
    }

    .reference-table {
        font-size: 9px;
    }

    .reference-table th,
    .reference-table td {
        padding: 6px 4px;
        border-width: 1.5px;
    }

    .reference-table thead {
        display: table-header-group;
    }

    .reference-table tr {
        break-inside: avoid;
    }
}



.instrumentation-section {
    width: 100%;
    margin: 30px 0;
    font-family: Arial, Helvetica, sans-serif;
    color: #263445;
}

.instrumentation-title {
    margin: 0;
    padding: 22px 24px;
    background: #173b5e;
    color: #fff;
    font-size: 23px;
    font-weight: 700;
    text-align: left;
    border-radius: 8px 8px 0 0;
    letter-spacing: 0.3px;
}

.instrumentation-table-wrapper {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #dce4ec;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 16px rgba(20, 45, 70, 0.06);
}

.instrumentation-table {
    width: 100%;
    min-width: 750px;
    border-collapse: collapse;
    border-spacing: 0;
    background: #fff;
    font-size: 14px;
    line-height: 1.7;
    text-align: left;
}

.instrumentation-table thead th {
    padding: 15px 18px;
    background: #eaf0f6;
    color: #173b5e;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    border-bottom: 2px solid #c8d5e2;
    white-space: nowrap;
}

.instrumentation-table tbody td {
    padding: 15px 18px;
    border-bottom: 1px solid #e6ebf0;
    vertical-align: middle;
}

.instrumentation-table tbody tr:nth-child(even) {
    background: #f7f9fc;
}

.instrumentation-table tbody tr {
    transition: background-color 0.2s ease;
}

.instrumentation-table tbody tr:hover {
    background: #edf4fa;
}

.instrumentation-table tbody tr:last-child td {
    border-bottom: none;
}

.instrumentation-table .item-number {
    width: 65px;
    color: #173b5e;
    font-weight: 700;
    text-align: center;
}

.instrumentation-table .project-name {
    min-width: 300px;
    font-weight: 500;
}

.instrumentation-table .product-name {
    min-width: 220px;
}

.instrumentation-table .brand-name {
    min-width: 130px;
    font-weight: 600;
    color: #355d7c;
}

@media (max-width: 768px) {
    .instrumentation-title {
        padding: 18px;
        font-size: 19px;
    }

    .instrumentation-table thead th,
    .instrumentation-table tbody td {
        padding: 12px;
    }
}





.table-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.reference-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

/* Mobile */
@media (max-width: 575px) {

    .all-tabs .each-tab {
        padding: 6px 9px;
        font-size: 13px;
    }


    .table-container {
        overflow-x: auto;
        max-width: 100%;
    }

    .reference-table {
        width: 800px; /* عرض کل جدول در موبایل */
        table-layout: fixed;
    }

    .reference-table th,
    .reference-table td {
        white-space: normal;
        overflow-wrap: break-word;
    }

    .reference-table .item-column {
        width: 50px;
    }

    .reference-table .project-column {
        width: 250px;
    }

    .reference-table .product-column {
        width: 250px;
    }

    .reference-table .brand-column {
        width: 150px;
    }
}



/*table*/






/*responsive*/
/*responsive*/
/*responsive*/
/*responsive*/

@media screen and (max-width: 1199px){

}


@media screen and (max-width: 991px){

}


@media screen and (max-width: 767px){

    .projects {
        padding-block: 45px;
    }

}


@media screen and (max-width: 575px){

    .all-tabs {
        margin-bottom: 15px;
    }

    .project-image {
        height: 155px;
    }


}


@media screen and (max-width: 425px){

    .each-tab {
        padding: 6px 6px;
    }


}

@media screen and (max-width: 375px){

}

@media screen and (max-width: 320px){

}




/*responsive*/
/*responsive*/
/*responsive*/
/*responsive*/
