.container { max-width: 1240px; padding: 0 20px; margin: 0 auto; } /* ==============================================هیرو سکشن================================= */ .hero-section { margin-bottom: 100px; } .container-hero-section { max-width: 1240px; padding: 0 20px; margin: 0 auto; } .hero-section-wrapper { position: relative; } .hero-card { position: relative; width: 100%; height: 458px; background-color: #eff6ff; border-radius: 10px; overflow: hidden; display: flex; justify-content: center; } .hero-content { margin-top: 80px; display: inline-flex; flex-direction: column; text-align: center; align-items: center; position: absolute; z-index: 5; } .hero-circles { position: absolute; top: -29%; right: 50%; transform: translate(50%, -50%); pointer-events: none; } .circle { position: absolute; border-radius: 50%; top: 50%; right: 50%; transform: translate(50%, -50%); } .circle--1 { width: 698px; height: 698px; background-color: rgba(216, 233, 255, 0.2); } .circle--2 { width: 616px; height: 616px; background-color: rgba(216, 233, 255, 0.4); } .circle--3 { width: 534px; height: 534px; background-color: rgba(216, 233, 255, 0.6); } .circle--4 { width: 452px; height: 452px; background-color: rgba(216, 233, 255, 0.8); } .hero-hollow { position: absolute; width: 403px; height: 403px; border-radius: 50%; background-color: rgba(2, 116, 179, 0.12); top: 75%; transform: translateY(-50%); pointer-events: none; filter: blur(250px); } .hero-hollow--left { left: -290px; } .hero-hollow--right { right: -290px; } .hero-title { color: var(--color-primary); font-size: 36px; font-weight: bold; margin-bottom: 16px; } .hero-txt { color: var(--color-text); font-size: 16px; font-weight: 400; margin-bottom: 24px; } .hero-dot-pattern { position: absolute; inset: 0; background-image: radial-gradient(circle, var(--color-pastel-main) 1px, transparent 1px); background-size: 24px 24px; pointer-events: none; opacity: 0.4; } .stats{ display:grid; grid-template-columns:repeat(4,1fr); margin-bottom: 24px; } .stat-item{ text-align:center; padding:24px 12px; position:relative; } .stat-item:not(:last-child)::after{ content:""; position:absolute; left:0; top:10%; width:1px; height:80%; background:#dfe7f1; } .counter{ color:var(--color-primary); font-size:40px; font-weight:bold; margin-bottom:8px; display:block; direction: ltr; } .stat-text{ color:var(--color-text); font-size:14px; } /* ============================================== آرشیو سکشن================================= */ .gallery-section-header{ width: 100%; text-align: center; margin-bottom: 24px; } .gallery-section-header p{ font-size:14px; margin-top: 8; } .gallery-section { margin: 100px 0; } .gallery-section .tabs { display: flex; gap: 1rem; margin-top: 16px; } .gallery-section .tabs button { display: flex; align-items: center; justify-content: center; height: 36px; padding: 0 13px; border-radius: 10px; border: 1px solid #505068; color: #505068; } .gallery-section .tabs button .txt { font-size: 14px; color: inherit; } .gallery-section .tabs button:hover { border-color: #0274b3; color: #0274b3; } .gallery-section .tabs button.current { border-color: #0274b3; background-color: #0274b3; color: #fff; } .gallery-section .gallery-thumbnail { margin: 24px 0 32px; } .gallery-section .gallery-thumbnail p { display: none; } .gallery-section .gallery-thumbnail .thumbnail { position: relative; max-width: 720px; margin: 0 auto; border-radius: 16px; overflow: hidden; cursor: pointer; } .gallery-section .gallery-thumbnail .thumbnail::before { content: ''; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(#00000000, #000000); opacity: 0; transition: opacity 200ms; } .gallery-section .gallery-thumbnail .thumbnail:hover::before { opacity: 1; } .gallery-section .gallery-thumbnail .thumbnail img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; } .gallery-section .gallery-thumbnail .thumbnail .expand-icon { position: absolute; right: 50%; bottom: 0; transform: translateX(50%); display: grid; place-items: center; width: 48px; height: 48px; border-radius: 6px 6px 0 0; background-color: #fff; } .gallery-section .gallery-thumbnail .thumbnail .expand-icon svg { width: 32px; height: 32px; transition: scale 200ms; } .gallery-section .gallery-thumbnail .thumbnail .cta { position: absolute; bottom: 50%; right: 50%; transform: translate(50%, 50%); height: 40px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 4px 12px 4px 10px; background-color: #eaf7ff; border-radius: 8px; opacity: 0; transition: opacity 200ms; } .gallery-section .gallery-thumbnail .thumbnail .cta .txt { font-size: 14px; color: #0274b3; } .gallery-section .gallery-thumbnail .thumbnail .cta svg { width: 20px; height: 20px; stroke: #0274b3; } .gallery-section .gallery-thumbnail .thumbnail:hover .expand-icon svg { scale: 1.15; } .gallery-section .gallery-thumbnail .thumbnail:hover .cta { opacity: 1; height: 40px; font-size: 15px; } .gallery-section .gallery-items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px 16px; list-style-type: none; } .gallery-section .gallery-items li { position: relative; border-radius: 10px; overflow: hidden; cursor: pointer; } .gallery-section .gallery-items li::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(#00141f00, #00141f); opacity: 0; transition: opacity 200ms; } .gallery-section .gallery-items li img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; } .gallery-section .gallery-items li .title { position: absolute; bottom: 0; right: 0; left: 0; padding: 0px 12px 16px; display: flex; opacity: 0; transition: opacity 200ms; } .gallery-section .gallery-items li .title .txt { font-size: 15px; line-height: 1.7; font-weight: bold; color: #fff; } .gallery-section .gallery-items li .title svg { width: 24px; height: 24px; stroke: #fff; margin-right: auto; } .gallery-section .gallery-items li:hover .title { opacity: 1; } .gallery-section .gallery-items li:hover::before { opacity: 1; } .gallery-section .b-cta { height: 40px; background-color: var(--color-primary); border-radius: 10px; padding: 0 12px; display: flex; align-items: center; justify-content: center; gap: 8px; width: fit-content; margin: 32px auto 0; } .gallery-section .b-cta .txt { font-size: 15px; color: #ffffff; font-weight: 400; } .gallery-section .b-cta svg { width: 20px; height: 20px; stroke: #fff; } .pagination { margin-top: 32px; } .pagination ul { list-style-type: none; display: flex; align-items: center; justify-content: center; gap: 8px; margin: initial; } .pagination ul a { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; font-size: 16px; font-weight: normal; border: none; color: #000; transform: none; line-height: normal; transition: none; box-shadow: 2px 10px 20px 0 #595c6018; } .pagination ul a svg { width: 16px; height: 16px; stroke: #505068; } .pagination ul li:not(.current):hover a { background-color: #e5efff; } .pagination ul li:not(.current):hover a svg { stroke: var(--color-primary); } .pagination ul .current a { background-color: var(--color-primary); color: #fff; } @media screen and (max-width: 768px) { .gallery-section .gallery-items { grid-template-columns: repeat(1, 1fr); } .gallery-section .gallery-thumbnail .thumbnail { margin: 0 -20px; border-radius: 0; } .gallery-section .gallery-thumbnail p { display: inline-block; font-size: 15px; font-weight: bold; margin-top: 16px; color: var(--color-title); } .gallery-section .gallery-items li:hover::before, .gallery-section .gallery-items li .title svg { display: none; } .gallery-section .gallery-items li .title { position: static; padding: initial; opacity: 1 !important; } .gallery-section .gallery-items li .title .txt { font-size: 15px; font-weight: bold; margin-top: 8px; color: var(--color-title); } .gallery-section .gallery-items li { overflow: visible; } .gallery-section .gallery-items li img { border-radius: 10px; } } .related-header { display: flex; justify-content: space-between; gap: 100px; padding-bottom: 24px; } .related-title { margin-bottom: 8px; } .related-button { display: flex; gap: 8px; height: 40px; align-self: center; align-items: center; } .related-button span { font-size: 15px; font-weight: normal; line-height: 1.6; } .related-button svg { fill: var(--color-title); } .related-button span { color: var(--color-title); } .related-button:hover svg { fill: var(--color-primary); } .related-button:hover span { color: var(--color-primary); } .related-button-mobile { display: none; } .related-button:hover svg { transform: translateX(-4px); } .related-boxes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 389px)); gap: 16px; margin-top: 24px; justify-content: center; } .related-card { width: 100%; aspect-ratio: 4 / 3; } .related-image { width: 100%; height: 292px; border-radius: 10px; overflow: hidden; position: relative; object-fit: cover; } .media-container { width: 100%; height: 100%; } .related-image img, .media-container video { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; } .related-content { margin-top: 16px; } .related-content h3 { font-size: 15px; margin-bottom: 8px; } .related-content p { font-size: 12px; } .down-txt { display: none; margin-top: 8px; } .down-txt span { font-size: 15px; font-weight: bold; } .overlay-layer { position: absolute; inset: 0; background-image: url(/src/img/overlay.svg); border-radius: 10px; display: flex; align-items: flex-end; opacity: 0; visibility: hidden; transition: opacity 0.35s ease, visibility 0.35s ease; z-index: 2; } .related-card:hover .overlay-layer { opacity: 1; visibility: visible; } .button-overlay { width: 100%; display: flex; justify-content: space-between; align-items: center; z-index: 3; padding: 12px 12px 16px 12px; } .button-overlay svg { width: 24px; height: 24px; fill: white; transition: 0.3s; } .date { color: #ffffff; font-size: 13px; font-weight: normal; } .namepopup { color: #ffffff; font-size: 18px; font-weight: bold; line-height: 1.4; } .play-btn { position: absolute; top: 12px; left: 12px; border-radius: 50%; border: none; opacity: 0; display: flex; justify-content: center; align-items: center; z-index: 10; width: 32px; height: 32px; } .progress-ring { position: absolute; top: 13px; left: 13px; overflow: visible; z-index: 20; transform: rotate(180deg); } .progress-circle { fill: transparent; stroke: white; stroke-width: 2; stroke-linecap: round; } .play-icon { width: 100%; height: 100%; fill: white; position: absolute; z-index: 3; transition: opacity 0.25s ease, transform 0.25s ease; } .icon-play { opacity: 1; } .icon-pause { opacity: 0; } .related-card:hover .icon-pause { opacity: 1; } .related-card:hover .icon-play { opacity: 0; } .is-video .play-btn { opacity: 1; } .is-image .play-btn { display: none; } .media-section { width: 100%; overflow: hidden; } .media { height: 100%; width: 100%; object-fit: cover; object-position: center; display: block; } /* ====================فیلتر============================== */ /* ================================================ FILTER STICKY BAR ================================================ */ .filter-sticky-wrapper { position: sticky; top: 100px; z-index: 100; margin-bottom: 24px; width: 100%; padding-left: max(calc((100vw - 1240px) / 2), 20px); box-sizing: border-box; margin: auto 0 0 0; } .filter-bar { border-radius: 12px; } .filter-bar-inner { display: flex; align-items: center; flex-wrap: wrap; position: relative; } /* ---- Toggle Button ---- */ .filter-toggle-btn { display: flex; align-items: center; gap: 8px; height: 40px; padding: 7px 120px 7px 24px; border-radius: 10px 0 0 10px; color: #ffffff; background: #0274B3; font-size: 14px; cursor: pointer; white-space: nowrap; transition: border-radius .25s ease, background-color .2s ease, color .2s ease; flex-shrink: 0; } .filter-bar-inner:has(.filter-controls.is-open) .filter-toggle-btn { border-radius: 0; } /* ---- Desktop Filter Controls ---- */ .filter-controls { display: flex; opacity: 0; visibility: hidden; transform: scaleX(0.95); transform-origin: right center; max-width: 0; /* overflow: hidden; */ transition: opacity 1.25s ease, transform 1.25s ease; align-items: center; gap: 8px; flex: 1; flex-wrap: wrap; padding-right: 8px; background-color:#0274B3; border-radius: 10px 0 0 10px; height: 40px; } .filter-controls.is-open { display: flex; opacity: 1; visibility: visible; transform: translateX(0); max-width: 100vw; } /* ---- Filter Group (accordion trigger) ---- */ .filter-group { position: relative; } .filter-group-btn { display: flex; align-items: center; gap: 6px; height: 32px; padding: 7px 12px; border-radius: 10px; border: 1px solid #DFDFDF; color: var(--color-primary); background-color: #DBEFFF; font-size: 14px; cursor: pointer; white-space: nowrap; transition: border-color 0.2s, color 0.2s; } .filter-group-btn:hover, .filter-group-btn.is-active { border-color: #0274b3; color: #0274b3; } .filter-group-btn .chevron-icon { transition: transform 0.25s; flex-shrink: 0; } .filter-group-btn.is-active .chevron-icon { transform: rotate(180deg); } /* ---- Tag Count Badge ---- */ .filter-badge { display: none; justify-content: center; width: 20px; height: 20px; padding: 5px; border-radius: 50%; background: var(--color-primary); color: #ffffff; font-size: 12px; font-weight: bold; line-height: 1; } .tag-txt{ margin-left: 8px; } /* ---- Dropdown Panel ---- */ .filter-dropdown { position: absolute; top: calc(100% + 8px); right: 0; min-width: 190px; background: #ffffff; border-radius: 10px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12); padding: 6px; display: none; z-index: 200; animation: dropFadeIn 0.18s ease; } .filter-dropdown.is-open { display: block; } @keyframes dropFadeIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } } /* ---- Checkbox Row ---- */ .filter-check-item { display: flex; align-items: center; gap: 10px; padding:8px ; border-radius: 6px; cursor: pointer; font-size: 14px; color: var(--color-text); transition: background-color 0.15s; direction: rtl; user-select: none; } .filter-check-item:hover .filter-checkbox:not(:checked) { background: #C5EAFF; border-color: #C5EAFF; } .filter-checkbox:checked { background: #0274B3; border-color: #0274B3; } .filter-checkbox { appearance:none; width: 18px; height: 18px; border:1px solid #999; border-radius:4px; margin:0; accent-color: var(--color-primary); cursor: pointer; flex-shrink: 0; position: relative; } .filter-checkbox:checked::after { content: ""; position: absolute; top: 0; left: 30%; transform: translate(-50%, -50%); width: 5px; height: 11px; border: solid white; border-width: 0 3px 3px 0; transform: rotate(45deg); } /* ---- Clear Button ---- */ .filter-clear-btn { display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 8px; color: #ffffff; background: transparent; font-size: 14px; cursor: pointer; font-weight: 400; white-space: nowrap; transition: background-color 0.2s, color 0.2s; } .filter-clear-btn:disabled { color: #015F93; opacity: .5; cursor: not-allowed; } .filter-clear-btn:disabled svg { stroke: #015F93; transition: stroke 0.2s; } .filter-clear-btn svg { stroke: #ffffff; transition: stroke 0.2s; } .filter-clear-btn:hover svg { stroke: #ffffff; } /* ---- Project Count ---- */ .filter-count-text { font-size: 13px; color: #CCE3F0; margin-right: auto; padding-left: 16px; white-space: nowrap; } /* ================================================ MOBILE POPUP ================================================ */ .filter-mobile-overlay { display: none; position: fixed; inset: 0; z-index: 1000; background: rgba(0, 0, 0, 0.45); animation: overlayFadeIn 0.22s ease; } .filter-mobile-overlay.is-open { display: flex; align-items: stretch; } @keyframes overlayFadeIn { from { opacity: 0; } to { opacity: 1; } } .filter-mobile-popup { background: #ffffff; width: 100%; height: 100%; display: flex; flex-direction: column; animation: popupSlideIn 0.28s ease; border-radius: 16px 16px 0 0; } @keyframes popupSlideIn { from { transform: translateX(100%); } to { transform: translateX(0); } } /* ---- Header ---- */ .filter-mobile-header { display: flex; align-items: center; padding: 24px 20px 26px 20px; border-bottom: 1px solid #eeeeee; gap: 8px; direction: rtl; flex-shrink: 0; } .filter-mobile-title { flex: 1; font-size: 18px; font-weight: bold; color: #171637; text-align: right; margin: 0; } .filter-mobile-back, .filter-mobile-close { display: flex; align-items: center; justify-content: center; align-items: flex-start; border: none; background: transparent; border-radius: 8px; cursor: pointer; flex-shrink: 0; transition: background-color 0.15s; } .filter-mobile-back span{ font-size: 16px; padding-left: 8px; font-weight: 400; } .filter-mobile-back:hover, .filter-mobile-close:hover { background: #f5f5f5; } /* ---- Main List ---- */ .filter-mobile-main { flex: 1; overflow-y: auto; display: none; direction: rtl; } .filter-mobile-main.is-visible { display: block; } .filter-mobile-option-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border: none; border-bottom: 1px solid #f0f0f0; background: transparent; font-size: 14px; color: var(--color-text); cursor: pointer; direction: rtl; transition: background-color 0.15s; } .filter-mobile-option-btn:hover { background: #f9f9f9; } /* ---- Sub Views (category / tags) ---- */ .filter-mobile-sub { flex: 1; overflow-y: auto; display: none; direction: rtl; } .filter-mobile-sub.is-visible { display: block; } .filter-mobile-sub .filter-check-item { padding: 15px 20px; border-radius: 0; border-bottom: 1px solid #f5f5f5; } /* ---- Footer Buttons ---- */ .filter-mobile-footer { display: flex; gap: 12px; padding: 16px 20px; border-top: 1px solid #eeeeee; direction: rtl; flex-shrink: 0; } .filter-mobile-apply { flex: 1; padding: 8px 12px; border-radius: 10px; border: none; background: var(--color-primary); color: #ffffff; font-size: 15px; font-weight: 400; cursor: pointer; transition: background-color 0.2s, opacity 0.2s; } .filter-mobile-apply:disabled { opacity: 0.35; cursor: not-allowed; } .filter-mobile-apply:not(:disabled):hover { background: #025d91; } .filter-mobile-clear { flex: 1; padding: 8px 16px ; border-radius: 10px; border: 1px solid var(--color-primary); color: var(--color-primary); font-size: 15px; font-weight: 400; cursor: pointer; transition: background-color 0.2s, color 0.2s, opacity 0.2s; } .filter-mobile-clear:disabled { opacity: 0.35; cursor: not-allowed; } .filter-mobile-clear:not(:disabled):hover { background: #e74c3c; color: #ffffff; } /* ================================================ RESPONSIVE OVERRIDES ================================================ */ @media screen and (max-width: 768px) { /* دسکتاپ کنترل‌ها روی موبایل نمایش داده نمی‌شن */ .filter-controls { display: none !important; } } @media screen and (min-width: 769px) { /* پاپ‌آپ موبایل روی دسکتاپ نمایش داده نمی‌شه */ .filter-mobile-overlay { display: none !important; } }