:root {
    --f7-card-w: 196px;
    --f7-card-h: 196px;
    --f7-gap: 16px;
    --f7-logo-size: 96px;
    --f7-caption-size: 14px;
    --f7-btn-w: 145px;
    --f7-btn-h: 46px;
    --f7-btn-gap: 9px;
    --f7-btn-hover-bg: #2C8FEC;
    --f7-btn-bg: #FFFFFF;
    --f7-btn-shadow: 0px 2px 36px 0px #00000014;
    --f7-accent: #F5B544
}

.f7-container {
    max-width: 1256px;
    width: 100%;
    margin: 130px auto 108px
}

.f7-section-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    padding-right: 14px
}

.f7-section-title::before {
    content: "";
    position: absolute;
    right: 40%;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: var(--f7-accent);
    border-radius: 2px
}

.f7-tabs {
    flex-wrap: wrap;
    gap: var(--f7-btn-gap);
    margin-top: 32px;
    margin-bottom: 56px
}

.f7-tab-btn {
    width: var(--f7-btn-w);
    height: var(--f7-btn-h);
    background: var(--f7-btn-bg);
    border: 0;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    cursor: pointer;
    box-shadow: var(--f7-btn-shadow);
    transition: background .18s ease, color .18s ease, transform .05s ease
}

.f7-tab-btn:hover {
    background: var(--f7-btn-hover-bg);
    color: #fff
}

.f7-tab-btn.f7-active {
    background: var(--f7-btn-hover-bg);
    color: #fff
}

.f7-cards {
    display: grid;
    grid-template-columns: repeat(6, var(--f7-card-w));
    gap: var(--f7-gap);
    margin: 0 auto
}

.f7-card {
    width: var(--f7-card-w);
    height: var(--f7-card-h);
    background: #fff;
    border: 1px solid #eef0f2;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 6px 20px 0 #00000014;
    opacity: 1;
    transform: scale(1);
    transition: opacity .3s ease, transform .3s ease
}

.f7-card.f7-hidden {
    opacity: 0;
    transform: scale(.9);
    pointer-events: none
}

.f7-logo {
    width: var(--f7-logo-size);
    height: var(--f7-logo-size);
    margin: 4px 0 14px
}

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

.f7-caption {
    margin-top: auto;
    text-align: center;
    font-size: var(--f7-caption-size);
    font-weight: 500;
    color: #374151;
    line-height: 1.4;
    min-height: 2.2em
}

.f7-ph {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #e5e7eb, #f3f4f6);
    border-radius: 12px
}

.f7-more {
    display: none
}

.f7-hidden {
    display: none !important
}

.topwall {
    width: 100%;
    height: 450px;
    position: relative;
    background-color: #374151
	
}

.topwall .page-title {
    position: absolute;
    bottom: 47px;
    right: 229px;
    color: #fff;
    font-size: 20px;
    font-weight: 500;
    z-index: 5
}

.topwall .page-title h1 {
    font-size: 30px;
    font-weight: 700
}

@media (max-width:600px) {
    .f7-container {
        margin: 24px auto;
        padding: 0 16px
    }

    .f7-tabs {
        justify-content: flex-start !important;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: var(--f7-btn-gap);
        padding: 30px 2px;
        margin-bottom: 24px;
        scroll-snap-type: x mandatory
    }

    .f7-tabs::-webkit-scrollbar {
        display: none
    }

    .f7-tab-btn {
        flex: 0 0 var(--f7-btn-w);
        scroll-snap-align: start
    }

    .f7-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--f7-gap)
    }

    .f7-card {
        width: 100%;
        height: var(--f7-card-h)
    }

    .f7-more {
        display: block;
        width: 100%;
        height: 46px;
        background: #EAF2FD;
        color: #2C8FEC;
        border: 0;
        border-radius: 12px;
        font-weight: 700;
        box-shadow: var(--f7-btn-shadow);
        margin: 24px 0 8px;
        cursor: pointer
    }

    .f7-section-title::before {
        right: 50px
    }

    .topwall {
        height: 340px
    }

    .topwall .page-title {
        bottom: 32px;
        right: 34px
    }
}

.f5-wrap {
    max-width: 1440px;
    margin: 0 auto;
    padding: 90px 20px 0
}

.f5-title {
    gap: .5rem;
    font-weight: 700;
    font-size: 28px;
    margin: 0 0 8px
}

.f5-title::before {
    content: "";
    width: 4px;
    height: 18px;
    background: #f5a623;
    border-radius: 2px
}

.f5-kicker {
    max-width: 820px;
    margin: 0 auto 28px;
    text-align: center;
    color: #667085
}

.f5-grid {
    width: 1320px;
    max-width: 100%;
    display: grid;
    grid-template-columns: 640px 640px;
    grid-auto-rows: 280px;
    gap: 40px;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    margin: 0 auto
}

.f5-tile,
.f5-mini {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    background: #dfe7ef;
    box-shadow: 0 12px 36px rgb(16 24 40 / .08)
}

.f5-tile img,
.f5-mini img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
	display:block;
    filter: brightness(70%)
}

.f5-big {
    grid-row: span 2
}

.f5-pair {
    display: grid;
    grid-template-columns: 277.5px 277.5px;
    gap: 40px
}

.f5-mini {
    height: 100%
}

.f5-badge {
    position: absolute;
 bottom: 12px; 
	
    padding: 8px 12px;
    font-size: 14px;
    color: #fff;
    border-radius: 10px
}


.f5-g1-rect {
    grid-column: 1;
    grid-row: 1
}

.f5-g1-pair {
    grid-column: 1;
    grid-row: 2
}

.f5-g1-big {
    grid-column: 2;
    grid-row: 1 / span 2
}

.f5-g2-big {
    grid-column: 1;
    grid-row: 3 / span 2
}

.f5-g2-rect {
    grid-column: 2;
    grid-row: 3
}

.f5-g2-pair {
    grid-column: 2;
    grid-row: 4
}

.f5-badge.f5-l {
    left: 0
}

.f5-badge.f5-r {
    right: 0
}

@media (max-width:1380px) {
    .f5-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }
}

@media (max-width:768px) {
    .f5-grid {
        display: flex;
        gap: 16px;
        width: calc(100% - 2rem);
        overflow-x: auto;
        margin-inline: auto;
        justify-content: flex-start
    }

    .f5-pair {
        display: contents
    }

    .f5-pair.tile {
        box-shadow: none;
        background: #fff0;
        border-radius: 0
    }

    .f5-grid>* {
        grid-column: auto !important;
        grid-row: auto !important
    }

    .f5-big,
    .f5-rect {
        grid-row: auto !important
    }

    .f5-tile,
    .f5-mini {
        min-width: 350px;
        height: 335px
    }

    .f5-wrap {
        padding: 0
    }

    .f5-grid::-webkit-scrollbar {
        display: none
    }
}

@supports not (display:contents) {
    @media (max-width:860px) {
        .f5-pair {
            display: block
        }

        .f5-pair .f5-mini {
            display: block;
            width: 100%;
            height: 335px;
            margin-bottom: 16px
        }

        .f5-pair .f5-mini:last-child {
            margin-bottom: 0
        }
    }
}

.topwall.lazyloaded {
    position: relative
}

.topwall.lazyloaded::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgb(0 0 0 / .5);
    z-index: 1
}

.topwall:not(.lazyloaded)::before {
    background-color: rgb(0 0 0 / .2)
}

/* کروسل قسمت ابتدایی پروژه ها در نمای موبایل */
@media (min-width: 1024px) {
  .hide-desktop {
    display: none;
  }
}

@media (max-width:768px){

    .f5-slider-wrap{
        position: relative;
    }

    .f5-prev,
    .f5-next{
		
        position:absolute;
        top:50%;
        transform:translateY(-50%);
        width:40px;
        height:40px;
        border:none;
        border-radius:50%;
		color:#2C8FEC;
        background:#e1efff;
        box-shadow:0 2px 10px rgba(0,0,0,.15);
        z-index:99;
        cursor:pointer;
    }

  .f5-prev,
.f5-next{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    width:44px;
    height:44px;
    border-radius:50%;
    background:transparent;   
    border:1px solid #2C8FEC;
    box-shadow:0 4px 12px rgba(0,0,0,.15);
    z-index:99;
    cursor:pointer;

    display:flex;
    align-items:center;
    justify-content:center;
}
.f5-prev{
	  left:10px;
}

.f5-next{
      right:10px;

}
    .f5-grid{
        scroll-behavior:smooth;
    }

    .f5-grid::-webkit-scrollbar{
        display:none;
    }
}

/* مشاهده بیشتر پروژه ها  */
.more-projects{
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 40px !important;

    margin-top: 40px !important;
    padding: 0 20px !important;
    max-width: 1256px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

@media (max-width:860px) {
     .more-projects{
		grid-template-columns: 1fr !important;
	  gap: 20px !important;}
}


/* کارت‌ها (مثل f5) */
.project-card{
    position: relative ;
    overflow: hidden;
    border-radius: 14px;
    text-decoration: none;
    color: #fff;
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
	aspect-ratio: 16 / 10;
}


.project-card img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(70%);
}

/* نمایش */
.project-card.show{
    display: block;
	
    opacity: 1;
    transform: translateY(0);
}

/* دکمه */
.show-more-btn{
    width: 320px;
    height: 57px;
    border:none;
    border-radius: 8px;
    background-color: #e1efff;
    font-size: 18px;
    font-weight: 500;
    color: #2C8FEC;
    cursor:pointer;

    display: block;
    margin: 30px auto 0;
}


