/* Promo Works Frontend Styling */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
	--pw-green: #367C59;
	--pw-green-dark: #275C41;
	--pw-red: #8C1D21;
	--pw-red-dark: #6C1518;
	--pw-bg-light: #FFFFFF;
	--pw-card-border: #E8E5E2;
	--pw-text-dark: #1E1E1E;
	--pw-text-muted: #5C5C5C;
	--pw-white: #FFFFFF;
}

.promo-works-wrapper {
	font-family: 'Inter', sans-serif;
	background-color: var(--pw-bg-light);
	color: var(--pw-text-dark);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

.promo-works-wrapper h1,
.promo-works-wrapper h2,
.promo-works-wrapper h3,
.promo-works-wrapper h4 {
	font-family: 'Outfit', sans-serif;
	margin-top: 0;
	font-weight: 700;
}

/* ==========================================================================
   1. HEADER BANNER SECTION
   ========================================================================== */
.pw-header {
	background-color: var(--pw-green);
	color: var(--pw-white);
	padding: 80px 0;
	position: relative;
	overflow: hidden;
}

.pw-header-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 30px;
	display: grid;
	grid-template-columns: 2fr 0.8fr 1.4fr;
	gap: 40px;
	align-items: center;
}

/* Left Info Panel */
.pw-header-info {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.pw-header-tagline {
	border: 1px solid rgba(255, 255, 255, 0.4);
	border-radius: 30px;
	padding: 8px 18px;
	font-size: 13px;
	font-weight: 500;
	margin-bottom: 25px;
	background-color: rgba(255, 255, 255, 0.05);
	line-height: 1.2;
}

.pw-header-title {
	font-size: 46px;
	line-height: 1.15;
	margin-bottom: 20px;
	font-weight: 800;
	letter-spacing: -0.5px;
}

.pw-header-desc {
	font-size: 16px;
	color: rgba(255, 255, 255, 0.9);
	margin-bottom: 25px;
	max-width: 540px;
}

.pw-header-desc p {
	margin: 0;
}

.pw-header-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 30px;
}

.pw-header-tag {
	background-color: rgba(255, 255, 255, 0.9);
	color: var(--pw-text-dark);
	border-radius: 30px;
	padding: 6px 16px;
	font-size: 13px;
	font-weight: 500;
}

.pw-cta-button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background-color: var(--pw-white);
	color: var(--pw-green-dark);
	padding: 12px 28px;
	border-radius: 30px;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.25s ease;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.pw-cta-button:hover {
	background-color: #EFEFEF;
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.pw-cta-button .arrow {
	transition: transform 0.2s ease;
}

.pw-cta-button:hover .arrow {
	transform: translateX(4px);
}

/* Middle Stats Badges */
.pw-header-stats {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.pw-stat-box {
	background-color: var(--pw-white);
	color: var(--pw-text-dark);
	border-radius: 12px;
	padding: 20px;
	text-align: center;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	border: 1px solid rgba(0, 0, 0, 0.05);
}

.pw-stat-number {
	font-family: 'Outfit', sans-serif;
	font-size: 34px;
	font-weight: 800;
	line-height: 1.1;
	color: var(--pw-text-dark);
	margin-bottom: 2px;
}

.pw-stat-label {
	font-size: 13px;
	font-weight: 500;
	color: var(--pw-text-muted);
}

.pw-header-collage {
	width: 100%;
}

.pw-header-video-wrapper {
	position: relative;
	width: 100%;
	background-color: rgba(0, 0, 0, 0.2);
	border-radius: 16px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
	overflow: hidden;
}

.pw-header-video-iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: none;
}

.pw-collage-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 10px;
	background-color: rgba(255, 255, 255, 0.15);
	padding: 10px;
	border-radius: 16px;
	border: 1px solid rgba(255, 255, 255, 0.2);
}

.pw-collage-item {
	border-radius: 8px;
	overflow: hidden;
	background-color: rgba(255, 255, 255, 0.1);
}

.pw-collage-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.pw-collage-item:hover img {
	transform: scale(1.06);
}

/* Collage Count Adjustments */
.pw-collage-grid.count-1 {
	grid-template-columns: 1fr;
}
.pw-collage-grid.count-1 .pw-collage-item {
	aspect-ratio: 1.5;
}
.pw-collage-grid.count-3 {
	grid-template-columns: repeat(3, 1fr);
}
.pw-collage-grid.count-3 .pw-collage-item {
	aspect-ratio: 0.75;
}
.pw-collage-grid.count-3 .pw-collage-item:first-child {
	grid-column: span 3;
	aspect-ratio: 1.8;
}

.placeholder-box {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.02));
}


/* ==========================================================================
   2. MAIN CONTENT LAYOUT
   ========================================================================== */
.pw-body-container {
	max-width: 1200px;
	margin: 50px auto;
	padding: 0 30px;
	display: flex;
	gap: 40px;
	align-items: flex-start;
}

/* Left Sticky Sidebar */
.pw-sidebar {
	width: 280px;
	flex-shrink: 0;
	position: sticky;
	top: calc(var(--pw-sticky-top, 0px) + 30px);
}

.pw-nav {
	background-color: var(--pw-red);
	border-radius: 12px;
	padding: 25px 0;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.pw-nav-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.pw-nav-item {
	margin: 0;
}

.pw-nav-link {
	display: flex;
	align-items: center;
	gap: 15px;
	padding: 14px 25px;
	color: rgba(255, 255, 255, 0.85);
	text-decoration: none;
	font-weight: 500;
	font-size: 15px;
	transition: all 0.25s ease;
	border-left: 4px solid transparent;
}

.pw-nav-link .bullet {
	display: block;
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255, 255, 255, 0.8);
	border-radius: 3px;
	flex-shrink: 0;
	position: relative;
	transition: all 0.25s ease;
}

.pw-nav-link:hover {
	color: var(--pw-white);
	background-color: rgba(255, 255, 255, 0.05);
}

/* Active Class Highlight */
.pw-nav-item.active .pw-nav-link {
	color: var(--pw-white);
	background-color: rgba(255, 255, 255, 0.08);
	font-weight: 700;
	border-left-color: var(--pw-white);
}

.pw-nav-item.active .pw-nav-link .bullet {
	border-color: var(--pw-white);
	background-color: transparent;
}

/* Right Content Area */
.pw-content {
	flex: 1;
	min-width: 0; /* Prevents overflow inside flex box */
}

.pw-section {
	background-color: var(--pw-white);
	border: 1px solid rgba(140, 29, 33, 0.2);
	border-radius: 12px;
	padding: 40px;
	margin-bottom: 30px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
	scroll-margin-top: var(--pw-scroll-offset, 100px); /* Dynamic offset based on headers */
}

.pw-section-title {
	font-size: 26px;
	color: var(--pw-text-dark);
	margin-bottom: 20px;
	font-weight: 800;
	letter-spacing: -0.3px;
	position: relative;
	display: inline-block;
}

.pw-section-intro {
	color: var(--pw-text-muted);
	font-size: 15px;
	margin-bottom: 30px;
}

.pw-section-intro p {
	margin-top: 0;
	margin-bottom: 12px;
}

.pw-section-intro p:last-child {
	margin-bottom: 0;
}

/* Overview Type: Cards Grid */
.pw-overview-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 15px;
}

.pw-overview-card {
	background-color: var(--pw-red);
	color: var(--pw-white);
	border-radius: 10px;
	padding: 30px 20px;
	text-align: center;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	box-shadow: 0 4px 10px rgba(140, 29, 33, 0.1);
}

.pw-overview-card:hover {
	transform: translateY(-3px);
	background-color: var(--pw-red-dark);
	box-shadow: 0 8px 20px rgba(140, 29, 33, 0.2);
}

.pw-card-val {
	font-family: 'Outfit', sans-serif;
	font-size: 32px;
	font-weight: 800;
	margin-bottom: 5px;
	color: var(--pw-white);
}

.pw-card-text {
	font-size: 13px;
	opacity: 0.9;
	margin: 0;
	font-weight: 500;
}

/* Services Provided Type: Pill Badges */
.pw-services-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.pw-service-badge {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	background-color: var(--pw-red);
	color: var(--pw-white);
	border-radius: 8px;
	padding: 10px 20px;
	font-size: 14px;
	font-weight: 600;
	transition: all 0.25s ease;
	box-shadow: 0 4px 10px rgba(140, 29, 33, 0.15);
}

.pw-service-badge:hover {
	background-color: var(--pw-red-dark);
	transform: translateY(-2px);
	box-shadow: 0 6px 15px rgba(140, 29, 33, 0.25);
}

.pw-badge-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	background-color: rgba(255, 255, 255, 0.15);
	border-radius: 4px;
	padding: 4px;
	flex-shrink: 0;
}

.pw-badge-icon svg {
	width: 100%;
	height: 100%;
	color: var(--pw-white);
}

.pw-badge-title {
	line-height: 1;
}

/* List Type: Checklists */
.pw-list-card {
	background-color: var(--pw-red);
	border-radius: 12px;
	padding: 35px;
	box-shadow: 0 8px 24px rgba(140, 29, 33, 0.12);
}

.pw-checklist {
	list-style: none;
	padding: 0;
	margin: 0;
}

.pw-checklist-item {
	display: flex;
	align-items: flex-start;
	gap: 15px;
	margin-bottom: 16px;
	color: var(--pw-white);
}

.pw-checklist-item:last-child {
	margin-bottom: 0;
}

.pw-check-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	border: 1px solid rgba(255, 255, 255, 0.7);
	border-radius: 3px;
	margin-top: 3px;
	padding: 2px;
	flex-shrink: 0;
}

.pw-check-icon svg {
	width: 100%;
	height: 100%;
	color: var(--pw-white);
}

.pw-check-text {
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
}


/* ==========================================================================
   3. RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1024px) {
	.pw-header-container {
		grid-template-columns: 1.5fr 1fr;
		gap: 30px;
	}
	.pw-header-collage {
		grid-column: span 2;
	}
	.pw-collage-grid {
		grid-template-columns: repeat(4, 1fr);
	}
	.pw-collage-item {
		aspect-ratio: 1;
	}
	.pw-collage-grid.count-3 {
		grid-template-columns: repeat(3, 1fr);
	}
	.pw-collage-grid.count-3 .pw-collage-item:first-child {
		grid-column: auto;
		aspect-ratio: 1;
	}

	.pw-body-container {
		flex-direction: column;
		gap: 30px;
	}

	/* Turn sticky sidebar into a horizontal scroll menu */
	.pw-sidebar {
		width: 100%;
		position: sticky;
		top: var(--pw-sticky-top, 0px);
		z-index: 100;
		margin-bottom: 10px;
	}

	.pw-nav {
		padding: 10px;
	}

	.pw-nav-list {
		display: flex;
		overflow-x: auto;
		scroll-behavior: smooth;
		-webkit-overflow-scrolling: touch;
		gap: 10px;
		padding-bottom: 2px;
	}

	/* Hide default scrollbar on sidebar scroll bar */
	.pw-nav-list::-webkit-scrollbar {
		height: 4px;
	}
	.pw-nav-list::-webkit-scrollbar-thumb {
		background-color: rgba(255, 255, 255, 0.2);
		border-radius: 4px;
	}

	.pw-nav-item {
		flex-shrink: 0;
	}

	.pw-nav-link {
		padding: 10px 18px;
		font-size: 14px;
		border-left: none;
		border-bottom: 3px solid transparent;
		border-radius: 6px;
	}

	.pw-nav-item.active .pw-nav-link {
		border-left-color: transparent;
		border-bottom-color: var(--pw-white);
	}
}

@media (max-width: 767px) {
	.pw-header {
		padding: 50px 0;
	}

	.pw-header-container {
		grid-template-columns: 1fr;
		gap: 25px;
		padding: 0 20px;
	}

	.pw-header-collage {
		grid-column: auto;
	}

	.pw-collage-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.pw-header-title {
		font-size: 32px;
	}

	.pw-header-stats {
		flex-direction: row;
		flex-wrap: wrap;
		gap: 10px;
	}

	.pw-stat-box {
		flex: 1 1 40%;
		padding: 15px;
	}

	.pw-stat-number {
		font-size: 26px;
	}

	.pw-body-container {
		padding: 0 20px;
		margin: 25px auto;
	}

	.pw-section {
		padding: 25px;
	}

	.pw-overview-grid {
		grid-template-columns: 1fr;
	}

	.pw-list-card {
		padding: 20px;
	}
}

/* ==========================================================================
   CPT WORK SLIDER & CAROUSEL CARDS
   ========================================================================== */

.pw-work-slider-container {
	margin: 40px auto;
	padding: 0 15px;
	max-width: 1240px;
}

.pw-work-slide {
	padding: 15px 10px;
}

.pw-work-card {
	border-radius: 24px;
	padding: 24px;
	color: #ffffff;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	height: 100%;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
	transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s ease;
	box-sizing: border-box;
}

.pw-work-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.16);
}

/* Card Collage Grid */
.pw-work-card__collage-wrap {
	width: 100%;
	margin-bottom: 20px;
	aspect-ratio: 4/6;
	border-radius: 16px;
	overflow: hidden;
	box-sizing: border-box;
}

.pw-work-card__image-container {
	position: relative;
	width: 100%;
	height: 100%;
	overflow: hidden;
	background-color: rgba(255, 255, 255, 0.1);
	box-sizing: border-box;
}

.pw-work-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.pw-work-card__image-container.placeholder-item {
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
}

/* Title & Info */
.pw-work-card__info {
	text-align: center;
	margin-bottom: 20px;
}

.pw-work-card__title {
	font-family: 'Outfit', sans-serif;
	font-size: 22px;
	font-weight: 700;
	margin: 0 0 6px 0 !important;
	color: #ffffff !important;
	letter-spacing: -0.3px;
	line-height: 1.25;
}

.pw-work-card__tagline {
	font-size: 13px;
	font-weight: 400;
	color: rgba(255, 255, 255, 0.85);
	margin: 0;
	line-height: 1.4;
}

/* Badges: 2x2 Grid */
.pw-work-card__badges-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 10px;
	margin-bottom: 24px;
}

.pw-work-card__badge {
	background-color: rgba(255, 255, 255, 0.9);
	color: var(--pw-text-dark);
	border-radius: 10px;
	padding: 10px 8px;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.pw-work-card__badge--empty {
	background-color: rgba(255, 255, 255, 0.15);
	box-shadow: none;
	border: 1px dashed rgba(255, 255, 255, 0.2);
}

.pw-work-card__badge-number {
	font-family: 'Outfit', sans-serif;
	font-size: 15px;
	font-weight: 700;
	color: var(--pw-text-dark);
	line-height: 1.1;
}

.pw-work-card__badge-label {
	font-size: 11px;
	font-weight: 500;
	color: var(--pw-text-muted);
	margin-top: 1px;
}

/* CTA Button */
.pw-work-card__cta {
	width: 100%;
}

.pw-work-card__button {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: 100%;
	background-color: #ffffff;
	color: var(--pw-text-dark);
	padding: 12px 16px;
	border-radius: 25px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: background-color 0.2s ease, transform 0.2s ease;
	box-sizing: border-box;
}

.pw-work-card__button:hover {
	background-color: #f7f7f7;
	transform: translateY(-1px);
}

.pw-work-card__button .arrow {
	transition: transform 0.2s ease;
}

.pw-work-card__button:hover .arrow {
	transform: translateX(4px);
}

/* Custom Arrows Overlay */
.pw-work-slider-container .cg_carousel__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: #ffffff !important;
	border: 1px solid #e2e8f0;
	width: 36px;
	height: 48px;
	border-radius: 6px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	color: #4a5568;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
	transition: all 0.2s ease;
	z-index: 10;
}

.pw-work-slider-container .cg_carousel__arrow:hover {
	background: #f8fafc !important;
	color: #1a202c;
	transform: translateY(-50%) scale(1.05);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.pw-work-slider-container .cg_carousel__arrow--prev {
	left: -18px;
}

.pw-work-slider-container .cg_carousel__arrow--next {
	right: -18px;
}

.pw-work-slider-container .cg_carousel__dot {
	background: #cbd5e1;
}

.pw-work-slider-container .cg_carousel__dot.active {
	background: #475569;
}

@media (max-width: 768px) {
	.pw-work-slider-container {
		padding: 0;
	}
	.pw-work-slider-container .cg_carousel__arrow {
		display: none !important;
	}
}

