
/*==================================
Header
==================================*/

.site-header{
    background:#ffffff;
    border-bottom:1px solid var(--color-border);
    position:sticky;
    top:0;
    z-index:1000;
    background:#ffffff;
    box-shadow:0 4px 18px rgba(0,0,0,.05);
}


/*
====================================
Logo
====================================
*/
.site-logo{
    display:flex;
    align-items:center;
    gap:16px;
}

.site-logo .custom-logo-link{
    display:flex;
    align-items:center;
}

.site-logo .custom-logo{
    height:var(--logo-height);
    width:auto;
    display:block;
    .custom-logo{
    transition:var(--transition-fast);
    }
.custom-logo:hover{
    opacity:0.92;
    }

}

.site-logo {
    align-items: center;
    padding: var(--space-2);
}

.site-Brand{
    display:flex;
    flex-direction:column;
}


.site-title{
    display:block;
    font-size:1.0rem;
    font-weight:700;
    color:var(--color-text);
    text-decoration:none;
}


.site-title:hover{
    transform:translateY(-3px);
    color:var(--color-accent);
}


.site-tagline{
    display:-webkit-inline-flex;
    margin-top:4px;
    font-size:1.2rem;
    font-weight:700;
    color:var(--color-primary);
}

/*
====================================
Navigation
====================================
*/
.site-header__navigation ul{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:20px;
    list-style:none;
    margin:0;
    padding:0;
}

/*.site-header__navigation li{
}*/

/*
====================================
Navigation-a
====================================
*/

.site-header__navigation a{
    text-decoration:none;
    color:var(--color-Header);
    font-size:1.2rem;
    font-weight:1000;
    transition:var(--transition-fast);
}

.site-header__navigation a:hover{
    color:var(--color-primary);
}

.current-menu-item>a{
    color:var(--color-accent);
}

.menu a:hover{
    color: var(--color-accent);
}

.site-header__navigation a{
    position:relative;
}

.site-header__navigation a::after{
    content:"";
    position:absolute;
    right:0;
    bottom:-10px;
    width:0;
    height:2px;
    background:var(--color-UnderLine);
    transition:var(--transition-normal);


}

.site-header__navigation a:hover::after{
    width:100%;
}

.site-header__navigation{
    margin-inline:40px;
}


/*
====================================
action
====================================
*/


.site-header__actions{

    display:flex;

    align-items:center;

    gap:16px;
}

.site-header__logo{
    flex-shrink:0;
}

.site-header__navigation{
    flex-grow:1;
}

.site-header__actions{
    flex-shrink:0;
}

/*
====================================
menu
====================================
*/

.current-menu-item>a{
    color:var(--color-primary);
    position:relative;
}
.current-menu-item>a::after{
    content:"";
    position:absolute;
    bottom:-10px;
    right:0;
    width:100%;
    height:3px;
    background:var(--color-accent);
    border-radius:100px;
}

/*
====================================
contact
====================================
*/

.contact-button{

    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:10px 22px;
    border-radius:var(--radius-lg);
    background:var(--color-primary);
    color:#fff;
    text-decoration:none;
    font-weight:600;
    transition:var(--transition-fast);
    box-shadow:0 10px 25px rgba(0,0,0,.08);    
}

.contact-button:hover{
    transform:translateY(-3px);
    background:#6780bb;
    box-shadow:0 18px 35px rgba(0,0,0,.15);

}


/*
====================================
search
====================================
*/

.search-button{
    display:flex;
    align-items:center;
    justify-content:center;
    width:44px;
    height:44px;
    border:none;
    background:transparent;
    color:var(--color-text);
    cursor:pointer;
    transition:var(--transition-fast);
    font-size:40px;
}
.search-button:hover{
    transform:translateY(-3px);
    color:var(--color-accent);
}

.search-button svg{
    width:22px;
    height:22px;
}


/* =========================================
   Header Search Popup Styles
========================================= */
.header-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-button {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: inherit;
    padding: 6px;
    transition: opacity 0.2s ease;
}

.search-button:hover {
    opacity: 0.8;
}

.header-search-modal {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 320px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    padding: 12px;
    z-index: 1000;
}

.header-search-modal.is-open {
    display: block;
}

.header-search-form {
    display: flex;
    gap: 8px;
    width: 100%;
}

.header-search-input {
    flex: 1;
    padding: 8px 12px;
    font-size: 14px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    outline: none;
    direction: rtl;
    font-family: inherit;
}

.header-search-input:focus {
    border-color: #0284c7;
    box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.2);
}

.header-search-submit {
    padding: 8px 16px;
    background-color: #0284c7;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    font-family: inherit;
    transition: background-color 0.2s ease;
}

.header-search-submit:hover {
    background-color: #0369a1;
}

/* =========================================
   نمایش باکس جستجو فقط هنگام بردن ماوس روی ذره‌بین
========================================= */

/* مخفی بودن باکس جستجو در حالت عادی */
.header-search-wrapper .header-search-modal {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 280px;
    background: #ffffff;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
}

/* ظاهر شدن باکس وقتی ماوس روی مجموعه دکمه و باکس می‌رود */
.header-search-wrapper:hover .header-search-modal {
    display: block !important;
}


/*==================================
Hero
==================================*/
.hero{
    padding-block:20px 20px; 
    min-height:440px;
    background:#000913;
}

.hero__content{
    display:flex; 
    justify-content:space-between;
    align-items:center;
    gap:80px;
}

.hero__text{
    flex:1;

    font-size:1.125rem;
    line-height:1.9;
    color:rgba(255,255,255,.85);
    margin-bottom:40px;
    max-width:560px;


}


.hero__image{
    flex:1; 
}

.hero__image{
    min-height:400px;
    width:100%;
    background:#000122;
    border-radius:50px;
}

.hero__title{

    font-size:3.rem;
    font-weight:800;
    line-height:1.2;
    color:var(--color-white);
    margin-bottom:24px;
}



.hero__description{
    font-size:24px;
    color: #ffff ;
    margin-top:24px;
    max-width:800px;
    line-height:2;
}

.hero__buttons{
    font-size:20px;
    font-weight:800;
    color: #ffff ;
    display:flex;
    gap:40px;
    margin-top:40px;
    align-items:center;
    flex-wrap:wrap;
}

.hero__buttons{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:16px 32px;
    border-radius:10px;
    font-weight:700;
    text-decoration:none;
    transition:all .3s;
}

.btn-btn-primary{
padding:5px 26px;
background:var(--color-primary);
border:1px solid rgb(238, 234, 234);
box-shadow:0 16px 35px rgba(0,0,0,.25);
border-radius:10px;
color:#fff;
}

.btn-btn-primary:hover{
background:#0f2c63;
transform:translateY(-2px);
box-shadow:0 16px 35px rgba(133, 86, 241, 0.25);
transition:
background .3s,
color .3s,
transform .3s,
box-shadow .3s;

}

.btn-btn-secondary{
padding:5px 32px;
background:transparent;
border:1px solid rgb(238, 234, 234);
border-radius:10px;

color:#fff;
}

.btn-btn-secondary:hover{
background:white;
color:var(--color-primary);
}

/*==================================
Trusted
==================================*/

.trusted{
    padding:30px 0;
    background:#ffffff;
    margin-bottom:44px;
}
.trusted__title{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:40px;
    flex-wrap:wrap;
    text-align:center;
    font-size:1.3rem;
    font-weight:700;
    max-width:200px;
    color:#000122;
    margin-bottom:10px;
/*color:var(--color-dark);*/
}
.trusted__logos{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:40px;
    flex-wrap:wrap;
}
.trusted__item{
    flex:1;
    font-size:20px;
    font-weight:700;
    color:#000122;
    min-width:140px;
    display:flex;
    justify-content:center;
    align-items:center;
    position:relative;

}

.trusted__item:not(:last-child)::after{
    content:"";
    position:absolute;
    inset-inline-start:100%;
    top:30%;
    transform:translateY(-30%);
    width:2px;
    height:100px;
    background:rgba(28, 27, 29, 0.18);
}

.trusted__item img{
    max-width:120px;
    width:100%;
    height:auto;
  /*  filter:grayscale(100%);*/
    opacity:1;
    
}



.trusted__item:hover img{
    transition:.3s;
    filter:grayscale(0);
    opacity:1.0;
    transform:scale(1.2);
    border-radius:50px;
}

/*==================================
Features
==================================*/

.features{
    background:#ffffff;
}
.section-header{
margin-top:50px;
    text-align:center;
    margin-bottom:44px;
}

.section-title{
    font-size:1.75rem;
    font-weight:800;
    color:var(--color-primary);
    margin-top:36px;
    margin-bottom:1px;
}

.section-description{
    color:var(--color-primary);
    font-size:1.4rem;
    margin-bottom:1px;    
    }

.features__grid{
    display:grid;
    grid-template-columns:repeat(5,1fr);
    gap:32px;
    }

.feature-card{
    text-align:center;
    padding:0px;
}

.feature-card__icon{
    margin-top:-50px;
    width:72px;
    height:72px;
    margin-inline:auto;
    margin-bottom:10px;
     
    border-radius:50%;
    /*background:#0b2b5c;*/
    display:flex;
    justify-content:center;
    align-items:center;
    font-size:34px;
}

.feature-card h3{
    margin-bottom:18px;
    font-size:1.25rem;
    font-weight:700;
}

.feature-card p{
    color:var(--color-text-light);
    line-height:1.9;
}

.feature-card{
    transition:.35s;
}

.feature-card:hover{
    transform:translateY(-8px);
}

.feature-card:hover .feature-card__icon{
    /*background:var(--color-primary);*/
    color:white;
    box-shadow:0 18px 35px rgba(14, 0, 39, 0.15);
}


.feature-card{
    position:relative;
}

.feature-card:not(:last-child)::after{

    content:"";
    position:absolute;
    inset-inline-start:100%;
    top:30%;
    transform:translateY(-30%);
    width:2px;
    height:100px;
    background:rgba(28, 27, 29, 0.18);
}

/*== Services Grid & Cards =========================================================================*/
.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.service-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.service-card__image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f1f5f9;
}

.service-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.service-card:hover .service-card__image img {
    transform: scale(1.05);
}

.service-card__content {
    padding: 18px 20px 20px 20px; /* پدینگ کاملاً بهینه و کم */
    display: flex;
    flex-direction: column;
}

.service-card__title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 14px; /* فاصله کم بین عنوان و دکمه */
    line-height: 1.4;
}

.service-card__title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.service-card__title a:hover {
    color: #2563eb;
}

.service-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
    margin-top: 0;
    transition: gap 0.2s ease;
}

.service-card__link:hover {
    gap: 10px;
}

/*==================================
Industries
==================================*/
.industries{
    margin-top: 0px;
    background:#fcfbfb;
    padding: 0px;
}

.industries-title{
    font-size: 1.75rem;
    font-weight:800;
    color:var(--color-primary);
    padding: 0px;
}

.industries__grid{
    margin-top: 0px;
    padding: 0px;
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:24px;
}

.industry-card{
    padding: 0px;
    background:white;
    border-radius:16px;
    overflow:hidden;
    box-shadow:var(--shadow-sm);
    transition:.35s;
}

.industry-card:hover{
    transform:translateY(-8px);
    box-shadow:var(--shadow-lg);
}

.industry-card__image img{
    width:100%;
    height:140px;
    object-fit:cover;
    display:block;
}

.industry-card__content{
    padding:20px;
    text-align:center;
}

.industry-card__icon{
    width:56px;
    height:56px;
    border-radius:50%;
    background:white;
    box-shadow:0 10px 25px rgba(0,0,0,.08);
    display:flex;
    justify-content:center;
    align-items:center;
    margin-inline:auto;
    margin-top:-48px;
    position:relative;
    z-index:2;
}


.industry-card h3{
    margin-top:18px;
    font-size:1rem;
    font-weight:700;
}


/*==================================
Case-Studies
==================================*/

.case-studies{
padding: 0;
}
.case-studies__grid{
display:grid;
grid-template-columns:repeat(4,1fr);
gap:32px;
}

.case-studies-card{
background:white;
border-radius:20px;
overflow:hidden;
box-shadow:0 10px 30px rgba(0,0,0,.08);
transition:.35s;
}

.case-studies-card:hover{
transform:translateY(-8px);
box-shadow:0 25px 45px rgba(0,0,0,.12);
}

.case-studies-card__image{
position:relative;
aspect-ratio:16/9;
overflow:hidden;
}

.case-studies-card__image img{
width:100%;
height:100%;
object-fit:cover;
display:block;
transition:.4s;
}

.case-studies-card:hover img{
transform:scale(1.08);
}

.case-studies-card__badge{
position:absolute;
top:18px;
right:18px;
background:white;
color:var(--color-primary);
padding:8px 14px;
border-radius:30px;
font-size:.8rem;
font-weight:700;
}

.case-studies-card__content{
padding:28px;
}

.case-studies-card h3{
font-size:1.1rem;
margin-bottom:16px;
line-height:1.5;
}

.case-studies-card p{
line-height:2;
color:var(--color-text-light);
margin-bottom:28px;
}

.case-studies-card__link{
display:inline-flex;
align-items:center;
gap:8px;
font-weight:700;
color:var(--color-primary);
text-decoration:none;
transition:.3s;
}


.case-studies-card__link:hover{
gap:14px;
}

/*==================================
Case Study Gallery
==================================*/

.case-study-single__gallery {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #e5e7eb;
}

.case-study-single__gallery-header {
    margin-bottom: 30px;
}

.case-study-single__gallery-header h2 {
    margin-bottom: 10px;
}

.case-study-single__gallery-header p {
    color: #6b7280;
}

.case-study-single__gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.case-study-single__gallery-item {
    overflow: hidden;
    border-radius: 12px;
    background: #f5f7fa;
    aspect-ratio: 16 / 10;
}

.case-study-single__gallery-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.case-study-single__gallery-item:hover img {
    transform: scale(1.04);
}


/* =========================================
   Case Study Lightbox
========================================= */

.case-study-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(0, 0, 0, 0.92);

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}

.case-study-lightbox.is-open {
    opacity: 1;
    visibility: visible;
}


/* تصویر */

.case-study-lightbox__content {
    max-width: 90vw;
    max-height: 90vh;

    display: flex;
    align-items: center;
    justify-content: center;
}

.case-study-lightbox__content img {
    display: block;

    max-width: 90vw;
    max-height: 85vh;

    width: auto;
    height: auto;

    object-fit: contain;

    border-radius: 6px;
}


/* دکمه بستن */

.case-study-lightbox__close {
    position: absolute;

    top: 20px;
    right: 25px;

    width: 45px;
    height: 45px;

    border: none;
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.15);
    color: #fff;

    font-size: 32px;
    line-height: 1;

    cursor: pointer;

    transition: background 0.2s ease;
}

.case-study-lightbox__close:hover {
    background: rgba(255, 255, 255, 0.3);
}


/* دکمه‌های قبلی و بعدی */

.case-study-lightbox__prev,
.case-study-lightbox__next {
    position: absolute;

    top: 50%;
    transform: translateY(-50%);

    width: 50px;
    height: 70px;

    border: none;
    border-radius: 8px;

    background: rgba(255, 255, 255, 0.12);
    color: #fff;

    font-size: 28px;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.case-study-lightbox__prev {
    left: 25px;
}

.case-study-lightbox__next {
    right: 25px;
}

.case-study-lightbox__prev:hover,
.case-study-lightbox__next:hover {
    background: rgba(255, 255, 255, 0.25);
}


/* جلوگیری از اسکرول صفحه هنگام باز بودن Lightbox */

body.lightbox-open {
    overflow: hidden;
}


/* ==================================
   Case Studies Archive Link
================================== */

.case-studies__archive-link {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}

.case-studies__archive-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    padding: 11px 24px;

    border: 1px solid #0b2345;
    border-radius: 6px;

    color: #0b2345;
    background: #ffffff;

    text-decoration: none;
    font-size: 14px;
    font-weight: 600;

    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}

.case-studies__archive-button:hover {
    background-color: #0b2345;
    color: #ffffff;

    transform: translateY(-2px);
}

.case-studies__archive-button span {
    font-size: 16px;
}


/* ==================================
   Case Studies Archive
================================== */

.case-studies-archive {
    padding: 70px 0 90px;
    background: #ffffff;
}


/* ---------- Header ---------- */

.case-studies-archive__header {
    margin-bottom: 50px;
}


/* ---------- Grid ---------- */

.case-studies-archive__grid {
    grid-template-columns:repeat(4, 1fr);
}


/* ---------- Archive Card ---------- */

/*
 * کارت‌ها از همان کلاس‌های صفحه اصلی
 * Case Study استفاده می‌کنند.
 */

.case-studies-archive .case-studies-card {
    height: 100%;

    display: flex;
    flex-direction: column;
}


/* ---------- Image ---------- */

.case-studies-archive .case-studies-card__image {
    overflow: hidden;
}

.case-studies-archive .case-studies-card__image img {
    transition: transform 0.35s ease;
}

.case-studies-archive .case-studies-card:hover
.case-studies-card__image img {
    transform: scale(1.04);
}


/* ---------- Content ---------- */

.case-studies-archive .case-studies-card__content {
    display: flex;
    flex-direction: column;
    flex: 1;
}


/*
 * لینک همیشه پایین کارت قرار می‌گیرد.
 * این باعث می‌شود کارت‌ها مرتب و هم‌تراز باشند.
 */

.case-studies-archive .case-studies-card__link {
    margin-top: auto;
}


/* ==================================
   Pagination
================================== */

.case-studies-archive__pagination {
    display: flex;
    justify-content: center;

    margin-top: 55px;
}


/* حذف عنوان دسترسی‌پذیری از ظاهر */

.case-studies-archive__pagination .screen-reader-text {
    position: absolute;

    width: 1px;
    height: 1px;

    padding: 0;
    margin: -1px;

    overflow: hidden;

    clip: rect(0, 0, 0, 0);

    white-space: nowrap;

    border: 0;
}


/* Pagination container */

.case-studies-archive__pagination .nav-links {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 7px;
}


/* شماره صفحات */

.case-studies-archive__pagination .page-numbers {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-width: 42px;
    height: 42px;

    padding: 0 12px;

    border: 1px solid #dce3eb;
    border-radius: 6px;

    background: #ffffff;

    color: #0b2345;

    font-size: 13px;
    font-weight: 600;

    text-decoration: none;

    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}


/* Hover */

.case-studies-archive__pagination
.page-numbers:hover {
    background: #0b2345;

    border-color: #0b2345;

    color: #ffffff;

    transform: translateY(-2px);
}


/* صفحه فعلی */

.case-studies-archive__pagination
.page-numbers.current {
    background: #0b2345;

    border-color: #0b2345;

    color: #ffffff;
}


/* Previous / Next */

.case-studies-archive__pagination
.page-numbers.prev,
.case-studies-archive__pagination
.page-numbers.next {
    padding-left: 18px;
    padding-right: 18px;
}


/* ==================================
   Empty State
================================== */

.case-studies-archive__empty {
    padding: 70px 20px;

    text-align: center;

    border: 1px solid #e8edf3;
    border-radius: 10px;

    background: #fafbfd;
}

.case-studies-archive__empty h2 {
    margin: 0 0 10px;

    color: #0b2345;

    font-size: 22px;
}

.case-studies-archive__empty p {
    margin: 0;

    color: #6b7280;

    font-size: 14px;
    line-height: 2;
}



/* =================================
   Knowledge Center
================================= */

.knowledge-center {
    padding: 80px 0;
    background: #f8fafc;
}


.knowledge-center__layout {
    display: grid;
    grid-template-columns: 270px 1fr;
    gap: 28px;
    align-items: stretch;
}


/* =================================
   Intro Panel
================================= */

.knowledge-center__intro {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px 24px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    text-align: right;

    border: 1px solid #e8edf3;
}


.knowledge-center__eyebrow {
    display: block;

    margin-bottom: 10px;

    font-size: 14px;
    font-weight: 700;

    color: #64748b;
}


.knowledge-center__intro h2 {
    margin: 0 0 16px;

    font-size: 24px;
    line-height: 1.8;

    color: #071a41;
}


.knowledge-center__intro p {
    margin: 0 0 25px;

    font-size: 14px;
    line-height: 2;

    color: #64748b;
}


.knowledge-center__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    padding: 11px 18px;

    border: 1px solid #9aa9bd;
    border-radius: 5px;

    color: #071a41;

    font-size: 13px;
    font-weight: 600;

    text-decoration: none;

    transition:
        background 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease;
}


.knowledge-center__button:hover {
    background: #071a41;
    border-color: #071a41;
    color: #ffffff;
}


/* =================================
   Cards
================================= */

.knowledge-center__cards {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 16px;
}


.knowledge-card {
    background: #ffffff;

    border: 1px solid #e6ebf1;
    border-radius: 10px;

    overflow: hidden;

    display: flex;
    flex-direction: column;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


.knowledge-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 12px 30px rgba(7, 26, 65, 0.10);
}


/* =================================
   Image
================================= */

.knowledge-card__image {
    display: block;

    aspect-ratio: 16 / 9;

    overflow: hidden;
}


.knowledge-card__image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;

    transition:
        transform 0.4s ease;
}


.knowledge-card:hover
.knowledge-card__image img {
    transform: scale(1.04);
}


/* =================================
   Content
================================= */

.knowledge-card__content {
    padding: 18px 17px 20px;

    display: flex;
    flex-direction: column;

    flex: 1;
}


.knowledge-card__category {
    display: inline-block;

    margin-bottom: 9px;

    font-size: 11px;
    font-weight: 600;

    color: #64748b;
}


.knowledge-card__title {
    margin: 0 0 10px;

    font-size: 17px;
    line-height: 1.7;
}


.knowledge-card__title a {
    color: #071a41;
    text-decoration: none;
}


.knowledge-card__excerpt {
    margin: 0;

    font-size: 12px;
    line-height: 1.9;

    color: #64748b;

    flex: 1;
}


.knowledge-card__link {
    margin-top: 16px;

    font-size: 12px;
    font-weight: 600;

    color: #071a41;

    text-decoration: none;

    transition: color 0.2s ease;
}


.knowledge-card__link:hover {
    color: #e53935;
}


/* =================================
   Course Card
================================= */

.knowledge-card--courses
.knowledge-card__category {
    color: #e53935;
}


.knowledge-card--courses
.knowledge-card__link {
    color: #e53935;
}


/* =================================
   Responsive
================================= */

@media (max-width: 1100px) {

    .knowledge-center__layout {
        grid-template-columns: 230px 1fr;
    }

    .knowledge-center__cards {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


@media (max-width: 768px) {

    .knowledge-center {
        padding: 60px 0;
    }

    .knowledge-center__layout {
        grid-template-columns: 1fr;
    }

    .knowledge-center__intro {
        text-align: center;
    }

    .knowledge-center__cards {
        grid-template-columns: 1fr;
    }

}


/* =========================================
   Knowledge Single Article
========================================= */

.knowledge-single {
    padding: 80px 0;
}

.knowledge-single__header {
    max-width: 900px;
    margin: 0 auto 40px;
    text-align: center;
}

.knowledge-single__meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 14px;
}

.knowledge-single__category {
    font-weight: 700;
}

.knowledge-single__date {
    opacity: 0.7;
}

.knowledge-single__title {
    margin: 0;
    font-size: 42px;
    line-height: 1.4;
}

.knowledge-single__excerpt {
    margin: 20px auto 0;
    max-width: 750px;
    font-size: 18px;
    line-height: 2;
    opacity: 0.8;
}

.knowledge-single__featured-image {
    margin: 0 auto 60px;
    max-width: 1100px;
}

.knowledge-single__featured-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 14px;
}

.knowledge-single__layout {
    max-width: 900px;
    margin: 0 auto;
}

.knowledge-single__body {
    font-size: 18px;
    line-height: 2.1;
}

.knowledge-single__body h2 {
    margin-top: 60px;
    margin-bottom: 20px;
    font-size: 30px;
}

.knowledge-single__body h3 {
    margin-top: 40px;
    margin-bottom: 15px;
    font-size: 24px;
}

.knowledge-single__body p {
    margin-bottom: 24px;
}

.knowledge-single__body img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 35px auto;
    border-radius: 10px;
}

.knowledge-single__body figure {
    margin: 40px 0;
}

.knowledge-single__body figcaption {
    margin-top: 10px;
    text-align: center;
    font-size: 14px;
    opacity: 0.7;
}


/* =========================================
   Related Articles
========================================= */

.knowledge-single__related {
    max-width: 1100px;
    margin: 100px auto 0;
}

.knowledge-single__section-header {
    margin-bottom: 30px;
}

.knowledge-single__section-header h2 {
    margin: 0;
    font-size: 30px;
}

.knowledge-single__related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.knowledge-related-card {
    overflow: hidden;
    border-radius: 12px;
}

.knowledge-related-card__image {
    display: block;
}

.knowledge-related-card__image img {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.knowledge-related-card__content {
    padding: 20px;
}

.knowledge-related-card__content h3 {
    margin: 0 0 15px;
    font-size: 20px;
    line-height: 1.6;
}

.knowledge-related-card__content h3 a {
    text-decoration: none;
}

.knowledge-related-card__link {
    text-decoration: none;
    font-weight: 700;
}


/* =========================================
   Article Navigation
========================================= */

.knowledge-single__navigation {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    max-width: 900px;
    margin: 70px auto 0;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.knowledge-single__navigation a {
    text-decoration: none;
    font-weight: 700;
}


/* =================================
   Knowledge Article Typography
================================= */

.knowledge-article {
    max-width: 900px;
    margin: 0 auto;
    line-height: 2;
    font-size: 18px;
}

.knowledge-article__title {
    font-size: 42px;
    line-height: 1.5;
    margin-bottom: 20px;
    font-weight: 800;
}

.knowledge-article__meta {
    font-size: 14px;
    color: #777;
    margin-bottom: 40px;
}

.knowledge-article h2 {
    font-size: 30px;
    line-height: 1.6;
    margin-top: 55px;
    margin-bottom: 20px;
    font-weight: 700;
}

.knowledge-article h3 {
    font-size: 24px;
    line-height: 1.6;
    margin-top: 40px;
    margin-bottom: 15px;
    font-weight: 700;
}

.knowledge-article p {
    margin-bottom: 22px;
}

.knowledge-article ul,
.knowledge-article ol {
    margin: 20px 0 30px;
    padding-right: 30px;
}

.knowledge-article li {
    margin-bottom: 10px;
}


/* =================================
   Knowledge Article Equations
================================= */

.knowledge-equation {
    direction: ltr;
    text-align: center;
    font-size: 24px;
    margin: 35px 0;
    padding: 20px;
    overflow-x: auto;
}

/*==================================
Knowledge Article - Table of Contents
==================================*/

.knowledge-toc {
    margin: 0 0 40px;
    padding: 24px 28px;

    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
}

.knowledge-toc__title {
    margin: 0 0 20px;

    font-size: 1.25rem;
    font-weight: 700;
}

.knowledge-toc__list {
    margin: 0;
    padding: 0;

    list-style: none;
}

.knowledge-toc__item {
    margin: 0;
    padding: 0;
}

.knowledge-toc__item a {
    display: block;

    padding: 8px 12px;

    color: var(--color-text);
    text-decoration: none;

    border-radius: 6px;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        padding-right 0.2s ease;
}

.knowledge-toc__item a:hover {
    color: var(--color-primary);
    background-color: var(--color-background-soft);

    padding-right: 18px;
}


/* H2 */

.knowledge-toc__item--level-2 {
    margin-bottom: 4px;
}

.knowledge-toc__item--level-2 > a {
    font-weight: 700;
}


/* H3 */

.knowledge-toc__item--level-3 {
    padding-right: 22px;
}

.knowledge-toc__item--level-3 > a {
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--color-text-muted);
}


/*==================================
Knowledge Article - Smooth Scroll
==================================*/

html {
    scroll-behavior: smooth;
}


/* جلوگیری از چسبیدن Heading به بالای صفحه */

.knowledge-single__body h2,
.knowledge-single__body h3 {
    scroll-margin-top: 100px;
}


/*==================================
Knowledge TOC - Active Heading
==================================*/

.knowledge-toc__item.is-active > a {
    color: var(--color-primary);
    background-color: var(--color-background-soft);
    font-weight: 700;

    padding-right: 18px;
}

.knowledge-toc__item--level-3.is-active > a {
    font-weight: 600;
}


.knowledge-toc a.is-active {
    color: var(--color-primary);
    font-weight: 700;
    border-right: 3px solid var(--color-primary);
    padding-right: 10px;
}

/*==================================
CFD Knowledge Archive
==================================*/

.cfd-knowledge-archive {
    padding: 80px 0;
}


/*----------------------------------
Archive Header
----------------------------------*/

.cfd-knowledge-archive__header {
    max-width: 820px;
    margin: 0 auto 60px;
    text-align: center;
}

.cfd-knowledge-archive__eyebrow {
    display: inline-block;

    margin-bottom: 12px;

    font-size: 0.85rem;
    font-weight: 700;

    color: var(--color-primary);
}

.cfd-knowledge-archive__title {
    margin: 0 0 18px;

    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.3;
}

.cfd-knowledge-archive__description {
    max-width: 700px;
    margin: 0 auto;

    color: var(--color-text-muted);

    line-height: 1.9;
}


/*----------------------------------
Section Heading
----------------------------------*/

.cfd-knowledge-archive__section-heading {
    margin-bottom: 24px;
}

.cfd-knowledge-archive__section-heading h2 {
    margin: 0 0 8px;
}

.cfd-knowledge-archive__section-heading p {
    margin: 0;

    color: var(--color-text-muted);
}


/*----------------------------------
Topics
----------------------------------*/

.cfd-knowledge-archive__topics {
    margin-bottom: 70px;
}

.cfd-knowledge-archive__topics-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cfd-knowledge-topic {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 10px 16px;

    color: var(--color-text);
    text-decoration: none;

    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 999px;

    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.cfd-knowledge-topic:hover {
    color: var(--color-primary);

    border-color: var(--color-primary);

    transform: translateY(-2px);
}

.cfd-knowledge-topic__count {
    font-size: 0.75rem;

    opacity: 0.65;
}


/*----------------------------------
Articles Header
----------------------------------*/

.cfd-knowledge-archive__articles-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 30px;

    margin-bottom: 30px;
}

.cfd-knowledge-archive__articles-header h2 {
    margin: 4px 0 0;
}

.cfd-knowledge-archive__article-count {
    white-space: nowrap;

    color: var(--color-text-muted);

    font-size: 0.9rem;
}


/*----------------------------------
Cards Grid
----------------------------------*/

.cfd-knowledge-archive__grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 28px;
}


/*----------------------------------
Knowledge Card
----------------------------------*/

.cfd-knowledge-card {
    display: flex;
    flex-direction: column;

    overflow: hidden;

    background: var(--color-surface);

    border: 1px solid var(--color-border);

    border-radius: 14px;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.cfd-knowledge-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 14px 35px rgba(0, 0, 0, 0.08);
}


/* Image */

.cfd-knowledge-card__image {
    display: block;

    overflow: hidden;

    aspect-ratio: 16 / 9;
}

.cfd-knowledge-card__image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.35s ease;
}

.cfd-knowledge-card:hover
.cfd-knowledge-card__image img {
    transform: scale(1.04);
}


/* Content */

.cfd-knowledge-card__content {
    display: flex;
    flex-direction: column;

    flex: 1;

    padding: 24px;
}


/* Topics */

.cfd-knowledge-card__topics {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;

    margin-bottom: 12px;
}

.cfd-knowledge-card__topics span {
    padding: 4px 9px;

    font-size: 0.72rem;
    font-weight: 600;

    color: var(--color-primary);

    background: var(--color-background-soft);

    border-radius: 999px;
}


/* Title */

.cfd-knowledge-card__title {
    margin: 0 0 12px;

    font-size: 1.15rem;
    line-height: 1.6;
}

.cfd-knowledge-card__title a {
    color: var(--color-text);
    text-decoration: none;
}

.cfd-knowledge-card__title a:hover {
    color: var(--color-primary);
}


/* Excerpt */

.cfd-knowledge-card__excerpt {
    margin: 0 0 20px;

    color: var(--color-text-muted);

    font-size: 0.92rem;
    line-height: 1.9;
}


/* Link */

.cfd-knowledge-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    margin-top: auto;

    color: var(--color-primary);

    font-weight: 700;
    text-decoration: none;
}

.cfd-knowledge-card__link:hover {
    text-decoration: underline;
}


/*----------------------------------
Pagination
----------------------------------*/

.cfd-knowledge-archive__pagination {
    display: flex;
    justify-content: center;

    margin-top: 60px;
}

.cfd-knowledge-archive__pagination .nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cfd-knowledge-archive__pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 42px;
    height: 42px;

    padding: 0 12px;

    color: var(--color-text);

    text-decoration: none;

    border: 1px solid var(--color-border);
    border-radius: 8px;

    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease;
}

.cfd-knowledge-archive__pagination
.page-numbers:hover,
.cfd-knowledge-archive__pagination
.page-numbers.current {
    color: #fff;

    background: var(--color-primary);

    border-color: var(--color-primary);
}


/*----------------------------------
Empty State
----------------------------------*/

.cfd-knowledge-archive__empty {
    padding: 70px 30px;

    text-align: center;

    background: var(--color-surface);

    border: 1px dashed var(--color-border);
    border-radius: 14px;
}

.cfd-knowledge-archive__empty h2 {
    margin: 0 0 12px;
}

.cfd-knowledge-archive__empty p {
    margin: 0;

    color: var(--color-text-muted);
}


.cfd-knowledge-topic.is-active {
    color: #fff;
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.cfd-knowledge-topic.is-active
.cfd-knowledge-topic__count {
    opacity: 0.9;
}


/* ==================================
   Video Courses Card
   ================================== */

.knowledge-card--courses {
    overflow: hidden;
}


/* ----------------------------------
   Video Image
   ---------------------------------- */

.knowledge-card__image--video {
    position: relative;
    display: block;
    overflow: hidden;
}


/* ----------------------------------
   Video Image
   ---------------------------------- */

.knowledge-card__image--video img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;

    transition:
        transform 0.4s ease,
        filter 0.4s ease;
}


/* ----------------------------------
   Video Overlay
   ---------------------------------- */

.knowledge-card__image--video::after {
    content: "";

    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, 0.15);

    opacity: 0;

    transition:
        opacity 0.3s ease;
}


/* ----------------------------------
   Play Button
   ---------------------------------- */

.knowledge-card__play {
    position: absolute;

    top: 50%;
    left: 50%;

    width: 64px;
    height: 64px;

    display: flex;
    align-items: center;
    justify-content: center;

    transform: translate(-50%, -50%) scale(0.85);

    background: rgba(255, 255, 255, 0.92);

    border-radius: 50%;

    opacity: 0;

    z-index: 2;

    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.25);

    transition:
        opacity 0.3s ease,
        transform 0.3s ease,
        background 0.3s ease;
}


/* ----------------------------------
   Play Icon
   ---------------------------------- */

.knowledge-card__play-icon {
    display: block;

    width: 0;
    height: 0;

    margin-left: 4px;

    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
    border-left: 14px solid #000122;
}


/* ----------------------------------
   Hover
   ---------------------------------- */

.knowledge-card--courses
.knowledge-card__image--video:hover img {
    transform: scale(1.06);
}


.knowledge-card--courses
.knowledge-card__image--video:hover::after {
    opacity: 1;
}


.knowledge-card--courses
.knowledge-card__image--video:hover
.knowledge-card__play {
    opacity: 1;

    transform:
        translate(-50%, -50%)
        scale(1);
}


/* ----------------------------------
   Play Button Hover
   ---------------------------------- */

.knowledge-card__image--video:hover
.knowledge-card__play {
    background: #ffffff;

    transform:
        translate(-50%, -50%)
        scale(1.08);
}


/* ==================================
Engineering Challenge
================================== */

.engineering-challenge {
    padding-block: 10px 8px;
}

.engineering-challenge__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;

    min-height: 82px;
    padding: 14px 24px;

    background: #000122;

    border-radius: 5px;

    direction: rtl;
}


/* Icon */

.engineering-challenge__icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;

    flex-shrink: 0;

    color: rgba(255, 255, 255, 0.9);
}


/* Text */

.engineering-challenge__text {
    flex: 1;

    padding-inline: 18px;
}

.engineering-challenge__eyebrow {
    display: block;

    margin-bottom: 3px;

    font-size: 1rem;
    font-weight: 700;

    line-height: 1.5;

    color: var(--color-white);
}

.engineering-challenge__description {
    margin: 0;

    font-size: 0.78rem;
    line-height: 1.7;

    color: rgba(255, 255, 255, 0.72);
}


/* Button */

.engineering-challenge__action {
    flex-shrink: 0;
}

.engineering-challenge__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    min-height: 42px;
    padding-inline: 20px;

    border-radius: 4px;

    background: #ef4444;
    color: var(--color-white);

    font-size: 0.82rem;
    font-weight: 700;

    text-decoration: none;

    transition:
        transform 0.25s ease,
        background-color 0.25s ease,
        box-shadow 0.25s ease;
}

.engineering-challenge__button:hover {
    background: #dc2626;

    transform: translateY(-2px);

    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

.engineering-challenge__button span {
    font-size: 1rem;
}

/* ==================================
Site Footer
================================== */

.site-footer {
    padding-top: 34px;

    background: #000122;

    color: var(--color-white);

    direction: rtl;
}


/* ==================================
Footer Main
================================== */

.site-footer__main {
    display: grid;

    grid-template-columns:
        1.6fr
        1fr
        1.1fr
        1fr
        1fr;

    gap: 40px;

    padding-bottom: 28px;
}


/* ==================================
Brand
================================== */

.site-footer__brand {
    max-width: 300px;
}

.site-footer__logo {
    display: inline-block;

    margin-bottom: 10px;

    font-size: 1.7rem;
    font-weight: 800;

    letter-spacing: -0.5px;

    color: var(--color-white);

    text-decoration: none;
}

.site-footer__description {
    margin: 0;

    max-width: 280px;

    font-size: 0.78rem;
    line-height: 1.9;

    color: rgba(255, 255, 255, 0.68);
}


/* ==================================
Social
================================== */

.site-footer__social {
    display: flex;
    align-items: center;

    gap: 8px;

    margin-top: 14px;
}

.site-footer__social a {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 28px;
    height: 28px;

    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;

    color: rgba(255, 255, 255, 0.8);

    font-size: 0.7rem;
    font-weight: 700;

    text-decoration: none;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.site-footer__social a:hover {
    background: rgba(255, 255, 255, 0.1);

    border-color: rgba(255, 255, 255, 0.45);

    color: var(--color-white);
}


/* ==================================
Footer Columns
================================== */

.site-footer__title {
    margin: 0 0 12px;

    font-size: 0.88rem;
    font-weight: 700;

    color: var(--color-white);
}

.site-footer__links {
    list-style: none;

    margin: 0;
    padding: 0;
}

.site-footer__links li {
    margin-bottom: 7px;
}

.site-footer__links a {
    font-size: 0.73rem;
    line-height: 1.7;

    color: rgba(255, 255, 255, 0.62);

    text-decoration: none;

    transition: color 0.2s ease;
}

.site-footer__links a:hover {
    color: var(--color-white);
}


/* ==================================
Footer Bottom
================================== */

.site-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;

    min-height: 38px;

    border-top: 1px solid rgba(255, 255, 255, 0.12);
}


.site-footer__copyright {
    margin: 0;

    font-size: 0.65rem;

    color: rgba(255, 255, 255, 0.5);
}


.site-footer__legal {
    display: flex;
    align-items: center;

    gap: 8px;
}


.site-footer__legal a,
.site-footer__legal span {
    font-size: 0.65rem;

    color: rgba(255, 255, 255, 0.5);

    text-decoration: none;
}

.site-footer__legal a:hover {
    color: var(--color-white);
}


/* ==================================
Engineering Challenge - Responsive
================================== */

@media (max-width: 900px) {

    .engineering-challenge {
        padding-block: 8px;
    }

    .engineering-challenge__inner {
        padding: 16px 20px;
    }

    .engineering-challenge__text {
        padding-inline: 14px;
    }

    .engineering-challenge__description {
        font-size: 0.75rem;
    }

    .engineering-challenge__button {
        padding-inline: 16px;

        font-size: 0.76rem;
    }


    /* Footer */

    .site-footer__main {
        grid-template-columns:
            1.4fr
            1fr
            1fr;

        gap: 30px;
    }

}


/* ==================================
Engineering Challenge - Mobile
================================== */

@media (max-width: 700px) {

    .engineering-challenge {
        padding-block: 8px;
    }

    .engineering-challenge__inner {
        flex-direction: column;

        gap: 14px;

        padding: 28px 20px;

        text-align: center;
    }

    .engineering-challenge__icon {
        width: 42px;
        height: 42px;
    }

    .engineering-challenge__text {
        padding-inline: 0;
    }

    .engineering-challenge__eyebrow {
        margin-bottom: 6px;

        font-size: 1rem;
    }

    .engineering-challenge__description {
        margin: 0;

        font-size: 0.78rem;
        line-height: 1.9;
    }

    .engineering-challenge__action {
        width: 100%;
    }

    .engineering-challenge__button {
        width: 100%;

        min-height: 46px;
    }


    /* Footer */

    .site-footer {
        padding-top: 30px;
    }

    .site-footer__main {
        grid-template-columns: 1fr 1fr;

        gap: 28px 20px;

        padding-bottom: 24px;
    }

    .site-footer__brand {
        grid-column: 1 / -1;

        max-width: none;

        text-align: center;
    }

    .site-footer__description {
        max-width: 320px;

        margin-inline: auto;
    }

    .site-footer__social {
        justify-content: center;
    }

    .site-footer__column {
        text-align: right;
    }

    .site-footer__bottom {
        flex-direction: column;

        justify-content: center;

        gap: 8px;

        padding-block: 14px;

        text-align: center;
    }

}


/* ==================================
Small Mobile
================================== */

@media (max-width: 480px) {

    .engineering-challenge__inner {
        padding: 24px 16px;
    }

    .engineering-challenge__description {
        font-size: 0.75rem;
    }

    .engineering-challenge__button {
        font-size: 0.75rem;
    }


    /* Footer */

    .site-footer__main {
        grid-template-columns: 1fr;

        gap: 24px;
    }

    .site-footer__column {
        text-align: center;
    }

    .site-footer__title {
        margin-bottom: 8px;
    }

    .site-footer__links li {
        margin-bottom: 5px;
    }

}



/* ==================================
   Standard Pages
================================== */

.site-page {
    padding-bottom: 80px;
}


/* ==================================
   Page Hero
================================== */

.site-page__hero {
    padding-block: 72px 56px;
}

.site-page__hero-inner {
    max-width: 820px;
}

.site-page__eyebrow {
    display: inline-block;

    margin-bottom: 14px;

    font-size: 0.78rem;
    font-weight: 700;

    color: var(--color-primary);

    letter-spacing: 0.02em;
}

.site-page__title {
    margin: 0;

    font-size: clamp(
        2rem,
        4vw,
        3.2rem
    );

    line-height: 1.25;
}

.site-page__intro {
    max-width: 720px;

    margin: 20px 0 0;

    font-size: 1rem;
    line-height: 2;

    color: var(--color-text-muted);
}


/* ==================================
   Page Content
================================== */

.site-page__content-section {
    padding-bottom: 40px;
}

.site-page__layout {
    max-width: 900px;
}

.site-page__content {
    font-size: 1.15rem;
    line-height: 2.2;
}


/* ==================================
   Content Typography
================================== */

.site-page__content h2 {
    margin-top: 48px;
    margin-bottom: 18px;

    font-size: 1.5rem;
    line-height: 1.5;
}

.site-page__content h3 {
    margin-top: 36px;
    margin-bottom: 14px;

    font-size: 1.2rem;
    line-height: 1.6;
}

.site-page__content p {
    margin: 0 0 20px;
}

.site-page__content ul,
.site-page__content ol {
    margin: 0 0 24px;

    padding-inline-start: 24px;
}

.site-page__content li {
    margin-bottom: 8px;
}

.site-page__content a {
    color: var(--color-primary);

    text-decoration: underline;
    text-underline-offset: 3px;
}


/* ==================================
   Engineering Challenge Page
================================== */

.site-page--engineering-challenge {
    padding-bottom: 90px;
}

.site-page--engineering-challenge .site-page__hero {
    padding-block: 80px 64px;
}

.site-page--engineering-challenge .site-page__hero-inner {
    max-width: 850px;
}

.site-page--engineering-challenge .site-page__eyebrow {
    padding: 6px 12px;

    border-radius: 999px;

    background: var(--color-primary-soft);

    font-size: 1.1rem;
}

.site-page--engineering-challenge .site-page__title {
    max-width: 780px;

    font-size: clamp(
        2.2rem,
        5vw,
        3.8rem
    );
}

.site-page--engineering-challenge .site-page__intro {
    max-width: 700px;

    font-size: 1.15rem;
}


/* ==================================
   Engineering Challenge Content
================================== */

.site-page--engineering-challenge
.site-page__content {
    max-width: 850px;
}

.site-page--engineering-challenge
.site-page__content h2 {
    margin-top: 48px;

    padding-bottom: 12px;

    border-bottom: 1px solid var(--color-border);
}

.site-page--engineering-challenge
.site-page__content strong {
    font-weight: 700;
}


/* ==================================
   Content Buttons
================================== */

.site-page__content .wp-block-button__link {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 46px;

    padding-inline: 22px;

    border-radius: 8px;

    background: var(--color-primary);

    color: #fff;

    font-size: 2.1rem;
    font-weight: 700;

    text-decoration: none;

    transition:
        transform 180ms ease,
        opacity 180ms ease;
}

.site-page__content .wp-block-button__link:hover {
    transform: translateY(-2px);

    opacity: 0.9;
}


/* ==================================
   Forms
================================== */

.site-page__content
input[type="text"],
.site-page__content
input[type="email"],
.site-page__content
input[type="tel"],
.site-page__content
input[type="url"],
.site-page__content
textarea,
.site-page__content
select {
    width: 100%;

    padding: 12px 14px;

    border: 1px solid var(--color-border);

    border-radius: 8px;

    background: #ffffff86;

    font-family: inherit;
    font-size: 1.2rem;

    outline: none;

    transition:
        border-color 180ms ease,
        box-shadow 180ms ease;
}

.site-page__content
textarea {
    min-height: 150px;

    resize: vertical;
}

.site-page__content
input:focus,
.site-page__content
textarea:focus,
.site-page__content
select:focus {
    border-color: var(--color-black);

    box-shadow:
        0 0 0 3px
        rgba(0, 0, 0, 0.04);
}

.site-page__content
input[type="submit"],
.site-page__content
button[type="submit"] {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 46px;

    padding-inline: 24px;

    border: 0;

    border-radius: 8px;

    background: var(--color-primary);

    color: #ffffff;

    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 700;

    cursor: pointer;

    transition:
        transform 180ms ease,
        opacity 180ms ease;
}

.site-page__content
input[type="submit"]:hover,
.site-page__content
button[type="submit"]:hover {
    transform: translateY(-2px);

    opacity: 0.5;
}



/* ================================================= */
/* صنایع: هماهنگی گرید آرشیو با صفحه اصلی               */
/* ================================================= */

.industries__grid,
.industry-archive__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* اگر می‌خوای ۴ ستون باشه بذار repeat(4, 1fr) */
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (max-width: 1200px) {
    .industries__grid,
    .industry-archive__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .industries__grid,
    .industry-archive__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .industries__grid,
    .industry-archive__grid {
        grid-template-columns: 1fr;
    }
}

/* استایل کارت صنعت در آرشیو */
.industry-card {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.industry-card__image-wrap {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.industry-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.industry-card__content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.industry-card__title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 10px 0;
}

.industry-card__title a {
    color: var(--color-primary, #0f172a);
    text-decoration: none;
}

.industry-card__excerpt {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 12px;
    line-height: 1.5;
    flex-grow: 1;
}

.industry-card__link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-accent, #2563eb);
    text-decoration: none;
    margin-top: auto;
}

/* ================================================= */
/* دکمه‌های «مشاهده همه» (خدمات و صنایع) - نسخه نهایی */
/* ================================================= */

.services__archive-link,
.industries__archive-link {
    display: flex;
    justify-content: center;
    margin-top: 32px;
    width: 100%;
}

.services__archive-link a,
.services__archive-link .button,
.services__archive-link .button--secondary,
.industries__archive-link a,
.industries__archive-link .button,
.industries__archive-link .button--secondary {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 11px 24px;
    border: 1px solid #0b2345;
    border-radius: 6px;
    color: #0b2345 !important;
    background: #ffffff !important;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    box-shadow: none;
    cursor: pointer;
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.services__archive-link a:hover,
.services__archive-link .button:hover,
.services__archive-link .button--secondary:hover,
.industries__archive-link a:hover,
.industries__archive-link .button:hover,
.industries__archive-link .button--secondary:hover {
    background-color: #0b2345 !important;
    border-color: #0b2345 !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    text-decoration: none;
}

.services__archive-link a span,
.industries__archive-link a span {
    font-size: 16px;
    line-height: 1;
    display: inline-block;
    transition: transform 0.25s ease;
}

.services__archive-link a:hover span,
.industries__archive-link a:hover span {
    transform: translateX(-3px);
}


/* جمع‌وجور کردن بخش مطالعات موردی صفحه اصلی */
.case-studies {
    padding-top: 0 !important;
    padding-bottom: 24px !important;
}

.case-studies__header {
    margin-bottom: 20px !important;
}

.case-studies__grid {
    gap: 16px !important;
}

.case-studies-card {
    border-radius: 12px !important;
}

.case-studies-card__image {
    aspect-ratio: 16 / 8 !important;
}

.case-studies-card__content {
    padding: 16px !important;
}

.case-studies-card h3 {
    margin-bottom: 8px !important;
    font-size: 1rem !important;
    line-height: 1.6 !important;
}

.case-studies-card p {
    margin-bottom: 12px !important;
    line-height: 1.8 !important;
}

.case-studies__archive-link {
    margin-top: 20px !important;
}


/*=================================================================== *//* ۱. /*

/* ==========================================================
   تنظیمات تصاویر در بخش‌های:
   - خدمات مهندسی (Engineering Service)
   - صنایع (Industry)
   - مطالعات موردی / پروژه‌ها (Case Studies)
   ========================================================== */

/* ۱. تصاویر داخل محتوا که بزرگ هستند -> وسط‌چین و متناسب */
.service-single__content img[width],
.service-single__content img[style*="width"],
.service-single__content .wp-block-image img,
.industry-single__content img[width],
.industry-single__content img[style*="width"],
.industry-single__content .wp-block-image img,
.case_studies-single__content img[width],
.case_studies-single__content img[style*="width"],
.case_studies-single__content .wp-block-image img,
.single-case_studies .entry-content img[width],
.single-case_studies .entry-content img[style*="width"],
.single-case_studies .entry-content .wp-block-image img {
    display: block !important;
    margin: 2rem auto !important;
    max-width: 65% !important;
    width: auto !important;
    height: auto !important;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* ۲. تصویر شاخص (Featured Image) در صفحه جزئیات هر سه بخش */
.single-engineering_service .post-thumbnail img,
.single-engineering_service figure img,
.single-engineering_service img.attachment-post-thumbnail,
.single-engineering_service img.wp-post-image,

.single-industry .post-thumbnail img,
.single-industry figure img,
.single-industry img.attachment-post-thumbnail,
.single-industry img.wp-post-image,

.single-case_studies .post-thumbnail img,
.single-case_studies figure img,
.single-case_studies img.attachment-post-thumbnail,
.single-case_studies img.wp-post-image 

.single-cfd_fundamentals .post-thumbnail img,
.single-cfd_fundamentals figure img,
.single-cfd_fundamentals img.attachment-post-thumbnail,
.single-cfd_fundamentals img.wp-post-image 

.single-mesh_generation .post-thumbnail img,
.single-mesh_generation figure img,
.single-mesh_generation img.attachment-post-thumbnail,
.single-mesh_generation img.wp-post-image 

.single-flow_analysis .post-thumbnail img,
.single-flow_analysis figure img,
.single-flow_analysis img.attachment-post-thumbnail,
.single-flow_analysis img.wp-post-image 

{
    
    display: block !important;
    margin: 2rem auto !important;
    max-width: 65% !important;
    width: 100% !important;
    height: auto !important;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}






