/**
 * Feature Cards 8 Component Styles
 * Figma reference: Home - Desktop Feature cards 8 (1:241) and Mobile (2:1233)
 * Layout: Horizontal carousel on both desktop and mobile, with headline and content area
 */

.section-social-media {
	width: 100%;
	background: var(--color-bg-light-gray); /* Desktop background */
	position: relative;
	padding: 0;
	margin: 0;
}

.section-social-media__inner {
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
	position: relative;
	padding: 0 32px;
}

.section-social-media--no-download .section-social-media__inner {
	padding-bottom: 150px;
}

.section-social-media--has-download .section-social-media__inner {
	padding-bottom: 96px;
}

/* Headline */
.section-social-media__headline {
	/* Typography handled by .typog-h2 */
	text-align: center;
	margin: 0;
	padding-top: 110px;
}


/* Cards Carousel */
.section-social-media__cards-wrapper {
	position: relative;
	width: fit-content; /* Shrink to content width */
	max-width: min(1098px, 100%); /* Cap at 3 cards: 350px × 3 + 24px × 2 gaps = 1098px, AND stay within parent container */
	margin: 48px auto 0;
	display: flex;
	align-items: center;
}

/* Position buttons absolutely to overlap 50% beyond margins */
.section-social-media__carousel-btn {
	position: absolute;
	z-index: 10;
	width: 58px;
	height: 58px;
	flex-shrink: 0;
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	transition: opacity 0.2s ease;
}

.section-social-media__carousel-btn:first-child {
	left: 0;
	transform: translateX(-50%); /* Center button on left edge */
}

.section-social-media__carousel-btn:last-child {
	right: 0;
	transform: translateX(50%); /* Center button on right edge */
}

.section-social-media__cards {
	width: 100%;
	display: flex;
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
	scroll-behavior: smooth;
	/* Hide scrollbar on desktop */
	scrollbar-width: none; /* Firefox */
	-ms-overflow-style: none; /* IE and Edge */
}

.section-social-media__cards::-webkit-scrollbar {
	display: none; /* Chrome, Safari, Opera */
}

/* Navigation Buttons */
.section-social-media__carousel-btn:hover:not(.is-disabled) {
	opacity: 0.8;
}

.section-social-media__carousel-btn.is-disabled {
	display: none;
}

.section-social-media__carousel-btn img {
	width: 100%;
	height: 100%;
	display: block;
}

.section-social-media__cards-container {
	display: flex;
	flex-direction: row;
	gap: 34px;
	padding-bottom: 16px;
	width: max-content;
	margin: 0 auto;
}

.feature-card-8 {
	flex: 0 0 auto;
	width: 350px;
	min-height: 396px;
	background: var(--color-bg-white);
	border: 1px solid var(--color-border-medium);
	border-radius: 30px;
	overflow: hidden;
	box-shadow: 0px 6px 12px var(--color-shadow-medium), 0px 4px 8px var(--color-shadow-light);
	display: flex;
	flex-direction: column;
}

.feature-card-8__image {
	width: 100%;
	height: 240px;
	overflow: hidden;
	background: var(--color-bg-light-green);
	box-sizing: border-box;
}

.feature-card-8__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	border-radius: 30px 30px 0 0;
	transition: transform 0.3s ease-out;
}

.feature-card-8__body {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-self: stretch;
	gap: 32px;
	padding: 24px;
	flex: 1;
}

.feature-card-8__text {
	display: flex;
	flex-direction: column;
	align-self: stretch;
	gap: 8px;
}

.feature-card-8__title {
	/* Typography handled by .text-card-title */
	margin: 0;
	text-align: left;
}

.feature-card-8__description {
	/* Typography handled by .text-body */
	margin: 0;
	text-align: left;
}

/* Content Area */
.section-social-media__content {
	margin-top: 15px; /* 40px - 25px removed */
}

.section-social-media__content-text {
	/* Typography handled by .text-body */
	text-align: center;
	text-align: left;
	margin: 0;
	max-width: 854px;
	margin-left: auto;
	margin-right: auto;
}

/* Download Buttons Area */
.section-social-media__download {
	margin-top: 40px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

/* Download Heading (H2 smaller) */
.section-social-media__download-heading {
	font-family: 'Bricolage Grotesque', sans-serif;
	font-weight: 400;
	font-size: 42px;
	line-height: 1.095em; /* 46px / 42px */
	letter-spacing: -0.03em; /* -3% */
	color: var(--color-primary-text);
	text-align: center;
	margin: 0;
	margin-bottom: 14px; /* Space between heading and buttons */
}


/* Mobile Styles */
@media (max-width: 1023px) {
	.section-social-media {
		background: var(--color-bg-white); /* Mobile background */
		overflow-x: hidden; /* Contain full-bleed carousel (100vw) */
	}
	
	.section-social-media__inner {
		padding: 0 24px;
	}

	.section-social-media--no-download .section-social-media__inner {
		padding-bottom: 50px; /* 100px - 50px */
	}

	.section-social-media--has-download .section-social-media__inner {
		padding-bottom: 30px; /* 80px - 50px */
	}
	
	.section-social-media__headline {
		/* Typography responsive handled by .typog-h2 */
		padding-top: 64px;
	}
	
	/* Full-bleed carousel track; gutter lives on cards-container only */
	.section-social-media__cards-wrapper {
		margin-top: 32px;
		gap: 0;
		position: relative;
		left: 50%;
		transform: translateX(-50%);
		width: 100vw;
		max-width: 100vw;
	}

	.section-social-media__carousel-btn {
		display: none; /* Hide navigation buttons on mobile */
	}

	.section-social-media__cards {
		width: 100%;
		/* Hide scrollbar on mobile - touch scrolling still works */
		scrollbar-width: none; /* Firefox */
		-ms-overflow-style: none; /* IE and Edge */
	}

	.section-social-media__cards::-webkit-scrollbar {
		display: none; /* Chrome, Safari, Opera */
	}
	
	.section-social-media__cards-container {
		gap: 16px;
		padding: 0 24px 16px; /* Side gutter when scrolled to start/end; middle scroll is edge-to-edge */
		width: max-content;
		max-width: none;
		margin: 0;
	}
	
	.feature-card-8 {
		width: 241px;
		min-height: 316px;
		border-radius: 20px;
	}
	
	.feature-card-8__image {
		height: 183px;
	}

	.feature-card-8__image img {
		border-radius: 20px 20px 0 0;
	}
	
	.feature-card-8__body {
		gap: 24px;
		padding: 24px;
	}
	
	.feature-card-8__title {
		/* Typography responsive handled by .text-card-title */
	}
	
	.feature-card-8__description {
		/* Typography responsive handled by .text-body */
	}
	
	.section-social-media__content {
		margin-top: 12px;
	}
	
	.section-social-media__content-text {
		/* Typography responsive handled by .text-body */
		max-width: 321px;
	}
	
	.section-social-media__download {
		margin-top: 32px;
	}
	
	.section-social-media__download-heading {
		font-size: 28px;
		line-height: 1.095em; /* ~30.66px / 28px */
		letter-spacing: -0.03em;
		margin-bottom: 14px; /* Space between heading and buttons on mobile */
	}

}



