/* پروژه‌های پوشاه گروپ - فرانت‌اند */

.poosha-projects-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
	direction: rtl;
}

.poosha-project-card {
	background: #fff;
	border: 1px solid #e8e8e8;
	border-radius: 8px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.poosha-project-card:hover {
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
	transform: translateY(-2px);
}

.poosha-card-image {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: #f5f5f5;
}

.poosha-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.poosha-card-body {
	padding: 1.25rem;
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.poosha-card-title {
	margin: 0;
	font-size: 1.1rem;
	font-weight: 600;
	line-height: 1.4;
}

.poosha-card-title a {
	color: #1a1a1a;
	text-decoration: none;
}

.poosha-card-title a:hover {
	color: #333;
}

.poosha-card-client {
	margin: 0;
	font-size: 0.9rem;
	color: #666;
}

.poosha-card-label {
	color: #999;
}

.poosha-card-btn {
	display: inline-block;
	margin-top: auto;
	padding: 0.5rem 1rem;
	font-size: 0.875rem;
	color: #1a1a1a;
	border: 1px solid #1a1a1a;
	border-radius: 4px;
	text-decoration: none;
	text-align: center;
	transition: background 0.2s, color 0.2s;
	align-self: flex-start;
}

.poosha-card-btn:hover {
	background: #1a1a1a;
	color: #fff;
}

.poosha-no-projects {
	text-align: center;
	color: #888;
	padding: 2rem;
}

/* کاروسل */
.poosha-projects-carousel-wrap {
	overflow: hidden;
	direction: ltr;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	position: relative;
}

.poosha-projects-carousel {
	overflow: hidden;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	position: relative;
	touch-action: pan-y;
}

.poosha-carousel-track {
	display: flex;
	flex-wrap: nowrap;
	align-items: stretch;
	gap: 1rem;
	will-change: transform;
	direction: ltr;
	width: max-content;
	backface-visibility: hidden;
	transform: translate3d(0, 0, 0);
}

.poosha-carousel-slide {
	flex: 0 0 auto;
	min-width: 0;
	box-sizing: border-box;
}

.poosha-carousel-slide .poosha-project-card {
	height: 100%;
}

/* صفحه تکی */
.poosha-single-project {
	direction: rtl;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 1rem 3rem;
}

.poosha-single-hero {
	margin: 0 -1rem 2rem;
	max-height: 480px;
	overflow: hidden;
	background: #f0f0f0;
}

.poosha-single-hero img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.poosha-single-title {
	margin: 0 0 0.5rem;
	font-size: 1.75rem;
	font-weight: 700;
	color: #1a1a1a;
}

.poosha-single-client {
	margin: 0 0 1rem;
	color: #666;
	font-size: 0.95rem;
}

.poosha-single-client span {
	color: #999;
}

.poosha-single-excerpt {
	color: #444;
	line-height: 1.7;
	margin-bottom: 2rem;
	font-size: 1rem;
}

.poosha-section-title {
	margin: 0 0 1rem;
	font-size: 1.25rem;
	font-weight: 600;
	color: #1a1a1a;
	border-bottom: 1px solid #eee;
	padding-bottom: 0.5rem;
}

.poosha-single-split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2rem;
	margin-bottom: 2.5rem;
	direction: rtl;
}

.poosha-single-gallery {
	order: 2;
}

.poosha-single-subprojects {
	order: 1;
}

.poosha-gallery-collage {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	grid-template-rows: 1fr 1fr;
	gap: 4px;
	height: 260px;
	border-radius: 10px;
	overflow: hidden;
	background: #eee;
	border: 1px solid #e8e8e8;
}

.poosha-gallery-thumb {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
	padding: 0;
	border: none;
	background: #f5f5f5;
	cursor: pointer;
	overflow: hidden;
}

.poosha-gallery-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease, opacity 0.3s ease;
}

.poosha-gallery-thumb:hover img {
	transform: scale(1.04);
	opacity: 0.92;
}

.poosha-gallery-more {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.55);
	color: #fff;
	font-size: 1.5rem;
	font-weight: 600;
	pointer-events: none;
}

.poosha-gallery-hint {
	margin: 0.6rem 0 0;
	font-size: 0.8rem;
	color: #999;
}

.poosha-gallery-collage--count-1 {
	grid-template-columns: 1fr;
	grid-template-rows: 1fr;
}

.poosha-gallery-collage--count-2 {
	grid-template-columns: 1fr 1fr;
	grid-template-rows: 1fr;
}

.poosha-gallery-collage--count-2 .poosha-gallery-thumb:nth-child(1) {
	grid-row: auto;
	grid-column: auto;
}

.poosha-gallery-collage--count-3 {
	grid-template-columns: 2fr 1fr;
	grid-template-rows: 1fr 1fr;
}

.poosha-gallery-collage--count-3 .poosha-gallery-thumb:nth-child(1) {
	grid-row: 1 / 3;
	grid-column: 1;
}

.poosha-gallery-collage--count-3 .poosha-gallery-thumb:nth-child(2) {
	grid-row: 1;
	grid-column: 2;
}

.poosha-gallery-collage--count-3 .poosha-gallery-thumb:nth-child(3) {
	grid-row: 2;
	grid-column: 2;
}

.poosha-gallery-collage--count-4 {
	grid-template-columns: 2fr 1fr 1fr;
	grid-template-rows: 1fr 1fr;
}

.poosha-gallery-collage--count-4 .poosha-gallery-thumb:nth-child(1) {
	grid-row: 1 / 3;
	grid-column: 1;
}

.poosha-gallery-collage--count-4 .poosha-gallery-thumb:nth-child(2) {
	grid-row: 1;
	grid-column: 2;
}

.poosha-gallery-collage--count-4 .poosha-gallery-thumb:nth-child(3) {
	grid-row: 1;
	grid-column: 3;
}

.poosha-gallery-collage--count-4 .poosha-gallery-thumb:nth-child(4) {
	grid-row: 2;
	grid-column: 2 / 4;
}

.poosha-gallery-collage--count-5 .poosha-gallery-thumb:nth-child(1) {
	grid-row: 1 / 3;
	grid-column: 1;
}

.poosha-gallery-collage--count-5 .poosha-gallery-thumb:nth-child(2) {
	grid-row: 1;
	grid-column: 2;
}

.poosha-gallery-collage--count-5 .poosha-gallery-thumb:nth-child(3) {
	grid-row: 1;
	grid-column: 3;
}

.poosha-gallery-collage--count-5 .poosha-gallery-thumb:nth-child(4) {
	grid-row: 2;
	grid-column: 2;
}

.poosha-gallery-collage--count-5 .poosha-gallery-thumb:nth-child(5) {
	grid-row: 2;
	grid-column: 3;
}

/* لایت‌باکس گالری */
.poosha-lightbox {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
}

.poosha-lightbox[hidden] {
	display: none;
}

.poosha-lightbox-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.88);
}

.poosha-lightbox-dialog {
	position: relative;
	z-index: 1;
	width: min(92vw, 1100px);
	max-height: 92vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 2.5rem 3.5rem;
}

.poosha-lightbox-stage {
	max-width: 100%;
	max-height: calc(92vh - 4rem);
	display: flex;
	align-items: center;
	justify-content: center;
}

.poosha-lightbox-image {
	max-width: 100%;
	max-height: calc(92vh - 4rem);
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: 4px;
	box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
}

.poosha-lightbox-close {
	position: absolute;
	top: 0.5rem;
	left: 0.5rem;
	width: 40px;
	height: 40px;
	border: none;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	font-size: 1.75rem;
	line-height: 1;
	border-radius: 50%;
	cursor: pointer;
	transition: background 0.2s;
}

.poosha-lightbox-close:hover {
	background: rgba(255, 255, 255, 0.25);
}

.poosha-lightbox-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	border: none;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	font-size: 2rem;
	line-height: 1;
	border-radius: 50%;
	cursor: pointer;
	transition: background 0.2s;
}

.poosha-lightbox-nav:hover {
	background: rgba(255, 255, 255, 0.25);
}

.poosha-lightbox-prev {
	right: 0;
}

.poosha-lightbox-next {
	left: 0;
}

.poosha-lightbox-counter {
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	color: rgba(255, 255, 255, 0.8);
	font-size: 0.875rem;
}

body.poosha-lightbox-open {
	overflow: hidden;
}

/* آکاردئون */
.poosha-single-project .poosha-accordion {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
}

.poosha-single-project .poosha-accordion-item {
	background: #ffffff;
	border: 1px solid #ebebeb;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.poosha-single-project .poosha-accordion-trigger {
	width: 100%;
	display: flex;
	align-items: flex-start;
	justify-content: flex-start;
	gap: 0.75rem;
	padding: 1rem 1.25rem;
	margin: 0;
	background: #ffffff !important;
	background-color: #ffffff !important;
	border: none !important;
	border-radius: 0;
	box-shadow: none !important;
	cursor: pointer;
	font-family: inherit;
	font-size: 0.95rem;
	font-weight: 600;
	text-align: right;
	color: #000000 !important;
	line-height: 1.5;
	transition: background 0.2s ease, box-shadow 0.2s ease;
	-webkit-appearance: none;
	appearance: none;
}

.poosha-single-project .poosha-accordion-trigger:hover,
.poosha-single-project .poosha-accordion-trigger:focus {
	background: #ffffff !important;
	background-color: #ffffff !important;
	color: #000000 !important;
	outline: none;
}

.poosha-single-project .poosha-accordion-trigger[aria-expanded="true"] {
	background: #ffffff !important;
	background-color: #ffffff !important;
	color: #000000 !important;
}

.poosha-single-project .poosha-accordion-name {
	flex: 1;
	font-weight: 600;
	color: #000000 !important;
	line-height: 1.6;
}

.poosha-single-project .poosha-accordion-icon {
	display: inline-block;
	width: 8px;
	height: 8px;
	border: none;
	border-right: 2px solid #000000 !important;
	border-bottom: 2px solid #000000 !important;
	background: transparent !important;
	transform: rotate(135deg);
	transition: transform 0.25s ease;
	flex-shrink: 0;
	margin-top: 0.45rem;
}

.poosha-single-project .poosha-accordion-trigger[aria-expanded="true"] .poosha-accordion-icon {
	transform: rotate(45deg);
}

.poosha-single-project .poosha-accordion-panel {
	padding: 0 1.25rem 1.25rem;
	background: #ffffff;
	color: #333333;
}

.poosha-sub-image-wrap {
	margin-bottom: 1rem;
	border-radius: 6px;
	overflow: hidden;
	max-width: 200px;
}

.poosha-sub-image-wrap img {
	width: 100%;
	height: auto;
	display: block;
}

.poosha-sub-text {
	color: #444;
	line-height: 1.7;
	margin-bottom: 1rem;
	font-size: 0.9rem;
}

.poosha-sub-meta {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	font-size: 0.875rem;
	color: #555;
}

.poosha-sub-meta strong {
	color: #333;
	font-weight: 600;
}

.poosha-status {
	display: inline-block;
	padding: 0.15rem 0.5rem;
	border-radius: 3px;
	font-size: 0.8rem;
}

.poosha-status.status-starting {
	background: #fff3cd;
	color: #856404;
}

.poosha-status.status-progress {
	background: #cce5ff;
	color: #004085;
}

.poosha-status.status-completed {
	background: #d4edda;
	color: #155724;
}

.poosha-single-content {
	margin-bottom: 2.5rem;
}

.poosha-content-body {
	color: #444;
	line-height: 1.8;
}

.poosha-similar-projects {
	margin-top: 2rem;
	padding-top: 2rem;
	border-top: 1px solid #eee;
}

/* ریسپانسیو */
@media (max-width: 992px) {
	.poosha-projects-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.poosha-single-split {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 600px) {
	.poosha-projects-grid {
		grid-template-columns: 1fr;
	}

	.poosha-single-title {
		font-size: 1.35rem;
	}

	.poosha-gallery-collage {
		height: 220px;
	}

	.poosha-lightbox-dialog {
		padding: 2.5rem 2.75rem;
	}
}
