/* Portfolio Insights Section Styles */

/* Main section */
.portfolio-insights-section {
	padding: 100px 0;
	background-color: #f5f8fa;
}
.portfolio-insights-header{
	display: flex;
	justify-content: space-between;
	margin: 0 0 50px 0;
	align-items: center;
}

.portfolio-insights-header h2 {
	font-size: 72px;
	font-weight: 800;
	line-height: 1.1;
}

/* Generic anchor styles for images */
.insight-card-image-horizontal a,
.insight-card-image a {
	display: block;
	height: 100%;
	position: relative;
}

.insight-card-horizontal .insight-card-badge {
	position: absolute;
	top: 20px;
	left: 20px;
	background: #fff;
	color: #000;
	padding: 6px 16px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	z-index: 2;
}

/* Insight Card - Horizontal Layout (1 insight) */
.insight-card-horizontal {
	background: #fff;
	/* border-radius: 12px; */
	overflow: hidden;
	box-shadow: 0 4px 12px rgba(0,0,0,0.08);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	display: flex;
	flex-direction: row;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 1.5rem; 
    transition: all 0.5s ease;
}

.insight-card-image-horizontal {
	position: relative;
	overflow: hidden;
	width: 55%;
	min-height: 400px;
}

.insight-card-image-horizontal a {
	display: block;
	height: 100%;
	position: relative;
}

.insight-card-image-horizontal img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
	position: absolute;
	top: 0;
	left: 0;
}

.insight-card-content-horizontal {
	width: 45%;
	padding: 16px 20px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.insight-card-footer-horizontal {
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-top: 1px solid #eee;
    padding-top: 16px;
}

/* Insight Card - Custom/Grid Layout (2-3 insights) */
.insight-card-custom {
	background: #fff;
	overflow: hidden;
	box-shadow: 0 4px 12px rgba(0,0,0,0.08);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	height: 100%;
	display: flex;
	flex-direction: column;
	/* position: relative; */
	border: 1px solid rgba(0, 0, 0, 0.08); 
	border-radius: 1.5rem; 
	transition: all 0.5s ease; 
}

.insight-card-image {
	position: relative;
	overflow: hidden;
	height: 240px;
}

.insight-card-image a {
	display: block;
	height: 100%;
}

.insight-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.insight-card-badge {
	position: absolute;
	top: 20px;
	left: 20px;
	background: #fff;
	color: #000;
	padding: 6px 16px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	z-index: 2;
}

.insight-card-content {
	padding: 24px;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
}

/* .insight-card-meta {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 16px;
	font-size: 14px;
	color: rgb(233, 73, 20);
}

.insight-card-meta span {
	display: flex;
	align-items: center;
	gap: 6px;
}

.insight-card-meta svg {
	flex-shrink: 0;
} */

.insight-card-title {
	font-size: 1.5rem;
	font-weight: 600;
	line-height: 1.4;
	margin-bottom: 20px;
}

.insight-card-horizontal .insight-card-title {
	font-size: 2.5rem;
	line-height: 1.3;
	margin-bottom: 16px;
	font-weight: 900;
}

.insight-card-title a {
	color: #000;
	text-decoration: none;
	transition: color 0.3s ease;
}

.insight-card-excerpt {
	color: #666;
	font-size: 0.95rem;
	line-height: 1.6;
	margin-bottom: 20px;
	flex-grow: 1;
}

.insight-card-horizontal .insight-card-excerpt {
	font-size: 1rem;
	margin-bottom: 30px;
}

.insight-card-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-top: 16px;
	border-top: 1px solid #eee;
	margin-top: auto;
}

.insight-card-category {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.insight-card-category a {
	color: #000;
	font-weight: 600;
	font-size: 13px;
	text-transform: uppercase;
	text-decoration: none;
}
.insight-card-category a:hover {
	text-decoration: underline;
}

.insight-card-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	font-size: 14px;
	text-decoration: none;
	border: 1px solid rgba(0, 0, 0, 0.1);
    transition: gap 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Slider Container (4+ insights) */
.slider-outer-wrapper {
	opacity: 1;
	transform: none;
}

.slider-position-wrapper {
	position: relative;
}

.slider-overflow-wrapper {
	overflow: hidden;
	margin: 0 -16px;
	padding: 16px;
}

.portfolio-insights-flex-slider {
	display: flex;
	gap: 32px;
	transform: translateX(0);
	transition: transform 0.5s ease;
}

.slider-slide-item {
	width: calc((100% - 64px) / 3);
	flex-shrink: 0;
}

/* Group Card (slider items) */
.group {
	position: relative;
	background: #fff;
	border: 1px solid rgba(0,0,0,0.08);
	border-radius: 24px;
	overflow: hidden;
	transition: all 0.5s ease;
	box-shadow: 0 4px 12px rgba(0,0,0,0.05);
	display: flex;
	flex-direction: column;
	height: 100%;
}

.group .slider-image-wrapper {
	position: relative;
	overflow: hidden;
	height: 240px;
}

.group .slider-image-wrapper a {
	display: block;
	height: 100%;
}

.group .slider-image-wrapper img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.7s ease-out;
}

.group .slider-badge-wrapper {
	position: absolute;
	top: 24px;
	left: 24px;
}

.group .slider-badge {
	padding: 6px 16px;
	background: rgba(255,255,255,0.9);
	backdrop-filter: blur(12px);
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.15em;
	border-radius: 9999px;
	border: 1px solid rgba(0,0,0,0.05);
	box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.group .slider-card-content {
	padding: 16px 22px;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
}

.group .slider-meta {
	display: flex;
	align-items: center;
	gap: 20px;
	font-size: 11px;
	color: rgba(0,0,0,0.4);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-bottom: 24px;
}

.group .slider-meta span {
	display: flex;
	align-items: center;
	gap: 8px;
}

.group .slider-meta svg {
	color: rgb(233, 73, 20);
	flex-shrink: 0;
}

.group .slider-meta-separator {
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: rgba(0,0,0,0.1);
}

.group h3 {
	font-family: inherit;
	font-weight: 700;
	color: #000;
	letter-spacing: -0.02em;
	margin-bottom: 20px;
	font-size: 1.5rem;
	line-height: 1.2;
}

.group h3 a {
	color: inherit;
	text-decoration: none;
	transition: color 0.3s ease;
}

.group .slider-excerpt {
	color: rgba(0,0,0,0.5);
	margin-bottom: 20px;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	font-size: 0.875rem;
	line-height: 1.5;
	flex-grow: 1;
}

.group .slider-footer {
	margin-top: auto;
	padding-top: 16px;
	border-top: 1px solid rgba(0,0,0,0.05);
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.group .slider-footer-category {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.group .slider-footer-category-label {
	font-size: 9px;
	font-weight: 700;
	color: rgba(0,0,0,0.3);
	text-transform: uppercase;
	letter-spacing: 0.15em;
}

.group .slider-footer-category-name {
	font-size: 12px;
	font-weight: 700;
	color: rgba(0,0,0,0.8);
	text-transform: uppercase;
}

/* Read Button */
.insight-read-btn {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 14px;
	font-weight: 700;
	color: #000;
	text-decoration: none;
}

.insight-read-btn > span {
	position: relative;
}

.insight-underline {
	position: absolute;
	bottom: -4px;
	left: 0;
	width: 0;
	height: 2px;
	background: rgb(233, 73, 20);
	transition: width 0.3s ease;
}

.insight-read-btn div {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1px solid rgba(0,0,0,0.1);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
	background: #fff;
}

/* Navigation Container */
.slider-navigation {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 64px;
}

.slider-dots {
	display: flex;
	gap: 8px;
}

.slider-arrows {
	display: flex;
	gap: 12px;
	margin: 20px 0;
}

.slider-prev-btn,
.slider-next-btn {
	padding: 11px 15px;
	border-radius: 50%;
	border: 1px solid rgba(0,0,0,0.1);
	background: #fff;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 1px 2px rgba(0,0,0,0.05);
	outline: none;
}

/* Hover Effects - Slider Items */
.group:hover {
	transform: translateY(-8px);
}

.group:hover img {
	transform: scale(1.05);
}

.group:hover h3 a {
	color: rgb(233, 73, 20);
}

.insight-read-btn:hover .insight-underline {
	width: 100%;
}

.insight-read-btn:hover div {
	background: #000 !important;
	color: #fff !important;
	border-color: #000 !important;
}

.insight-read-btn:hover div svg {
	stroke: #fff;
}

.slider-prev-btn:hover,
.slider-next-btn:hover {
	background: #000 !important;
	color: #fff !important;
	border-color: #000 !important;
}

.slider-prev-btn:hover svg,
.slider-next-btn:hover svg {
	stroke: #fff;
}

.slider-prev-btn:disabled,
.slider-next-btn:disabled {
	opacity: 0.3;
	cursor: not-allowed;
}

.slider-dot:hover {
	background: rgba(0,0,0,0.2) !important;
}

/* General insight card hover effects */
.insight-card-custom:hover,
.insight-card-horizontal:hover {
	transform: translateY(-8px);
	/* box-shadow: 0 12px 24px rgba(0,0,0,0.15) !important; */
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
}

.insight-card-custom:hover .insight-card-image img,
.insight-card-horizontal:hover .insight-card-image-horizontal img {
	transform: scale(1.05);
}

.insight-card-custom:hover .insight-card-title a,
.insight-card-horizontal:hover .insight-card-title a {
	color: rgb(233, 73, 20) !important;
}

.insight-card-custom:hover .insight-card-link,
.insight-card-horizontal:hover .insight-card-link {
	gap: 12px !important;
}

/* Responsive styles */

/* Tablet and below */
@media (max-width: 991px) {
	.portfolio-insights-section {
		padding: 60px 0;
	}
	
	.portfolio-insights-header {
		/* flex-direction: column; */
		gap: 20px;
		margin: 40px 0;
	}
	
	.insight-card-horizontal {
		flex-direction: column !important;
	}
	
	.insight-card-image-horizontal,
	.insight-card-content-horizontal {
		width: 100% !important;
	}
	
	.insight-card-image-horizontal {
		min-height: 300px !important;
	}
	
	.insight-card-content-horizontal {
		padding: 32px 24px;
	}
	
	.insight-card-horizontal .insight-card-title {
		font-size: 2rem;
	}
	
	.portfolio-insights-header h2 {
		font-size: 48px;
	}
	
	/* Slider: Show 2 cards on tablet */
	.slider-slide-item {
		width: calc((100% - 32px) / 2);
	}
	
	.portfolio-insights-flex-slider {
		gap: 32px;
	}
	
	.slider-navigation {
		margin-top: 48px;
	}
}

/* Mobile landscape and below */
@media (max-width: 767px) {
	.portfolio-insights-section {
		padding: 40px 0;
	}
	
	.portfolio-insights-header {
		margin: 30px 0;
	}
	
	.insight-card-footer,
	.insight-card-footer-horizontal {
		gap: 16px;
	}
	
	.insight-card-image-horizontal {
		min-height: 240px !important;
	}
	
	.insight-card-content-horizontal {
		padding: 24px 20px;
	}
	
	.insight-card-horizontal .insight-card-title {
		font-size: 1.75rem;
		margin-bottom: 12px;
	}
	
	.insight-card-horizontal .insight-card-excerpt {
		font-size: 0.95rem;
		margin-bottom: 24px;
	}
	
	.insight-card-image {
		height: 200px;
	}
	
	.insight-card-content {
		padding: 20px;
	}
	
	.insight-card-title {
		font-size: 1.25rem;
	}
	
	.portfolio-insights-header h2 {
		font-size: 36px;
	}
	
	/* Slider: Show 1 card on mobile */
	.slider-slide-item {
		width: 100%;
	}
	
	.slider-overflow-wrapper {
		margin: 0 -12px;
		padding: 12px;
	}
	
	.portfolio-insights-flex-slider {
		gap: 20px;
	}
	
	.slider-navigation {
		flex-direction: column;
		align-items: center;
		gap: 24px;
		margin-top: 40px;
	}
	.insight-card-link{
		padding: 3px 15px;
	}
}

/* Mobile portrait */
@media (max-width: 480px) {
	.portfolio-insights-section {
		padding: 32px 0;
	}
	
	.insight-card-image-horizontal {
		min-height: 200px !important;
	}
	
	.insight-card-content-horizontal {
		padding: 20px 16px;
	}
	
	.insight-card-horizontal .insight-card-title {
		font-size: 1.5rem;
	}
	
	.portfolio-insights-header h2 {
		font-size: 28px;
	}
	
	.insight-card-horizontal .insight-card-badge {
		top: 16px;
		left: 16px;
		padding: 5px 12px;
		font-size: 10px;
	}
	
	.insight-card-image {
		height: 180px;
	}
	
	.insight-card-content {
		padding: 16px;
	}
	
	.insight-card-title {
		font-size: 1.15rem;
		margin-bottom: 16px;
	}
	
	.insight-card-excerpt {
		font-size: 0.9rem;
		margin-bottom: 24px;
	}
	
	.insight-card-badge {
		top: 16px;
		left: 16px;
		padding: 5px 12px;
		font-size: 10px;
	}
	
	.insight-card-footer,
	.insight-card-footer-horizontal {
		padding-top: 20px;
	}
	
	.group .slider-image-wrapper {
		height: 180px;
	}
	
	.group .slider-card-content {
		/* padding: 20px 24px; */
	}
	
	.group h3 {
		font-size: 1.25rem;
		margin-bottom: 16px;
	}
	
	.group .slider-excerpt {
		font-size: 0.875rem;
	}
	
	.slider-arrows {
		gap: 8px;
	}
	
	.slider-prev-btn,
	.slider-next-btn {
		padding: 10px 13px;
	}
}
