/**
 * CEO – Hoạt động cộng đồng & Truyền thông
 * Bento Grid gallery styles
 *
 * Scoped toàn bộ bằng .community-section để không ảnh hưởng global theme.
 */

.community-section {
	padding: 60px 0;
	background-color: #ffffff;
	color: #1e293b;
	font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.community-section .container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

/* --- HEADER SECTION --- */
.community-section .section-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 40px;
	flex-wrap: wrap;
	gap: 20px;
}

.community-section .section-title h2 {
	font-size: 2rem;
	font-weight: 700;
	margin-bottom: 5px;
	color: #1e293b;
	/* subtle background to make title stand out */
	background: rgba(15,46,222,0.06);
	padding: 8px 14px;
	border-radius: 8px;
	display: inline-block;
}

.community-section .section-title p {
	color: #64748b;
	font-size: 1rem;
	margin: 0;
}

/* Social Buttons */
.community-section .social-group {
	display: flex;
	gap: 12px;
}

.community-section .social-btn {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1px solid rgba(0,0,0,0.1);
	background: rgba(0,0,0,0.03);
	color: #1e293b;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.2rem;
	cursor: pointer;
	transition: all 0.3s ease;
	text-decoration: none;
}

.community-section .social-btn:hover {
	transform: translateY(-3px);
}

.community-section .btn-shopee:hover {
	background: #ee4d2d;
	border-color: #ee4d2d;
}

.community-section .btn-tiktok:hover {
	background: #000000;
	border-color: #ffffff;
}

.community-section .btn-youtube:hover {
	background: #ff0000;
	border-color: #ff0000;
}

/* --- BENTO GRID GALLERY --- */
.community-section .gallery-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	grid-auto-rows: 220px;
	gap: 20px;
}

.community-section .gallery-item {
	position: relative;
	border-radius: 20px;
	overflow: hidden;
	border: 1px solid rgba(0,0,0,0.08);
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.community-section .gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
	display: block;
}

.community-section .gallery-item:hover img {
	transform: scale(1.1);
}

.community-section .overlay {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	top: 0;
	background: linear-gradient(to top, rgba(0,0,0,0.8), transparent 60%);
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 24px;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.community-section .gallery-item:hover .overlay {
	opacity: 1;
}

.community-section .overlay h3 {
	font-size: 1.1rem;
	font-weight: 600;
	color: #ffffff;
	transform: translateY(10px);
	transition: transform 0.3s ease;
	margin: 0 0 4px;
	/* add subtle background so title is readable on busy images */
	background: rgba(0,0,0,0.28);
	padding: 6px 8px;
	border-radius: 6px;
	display: inline-block;
}

.community-section .overlay p {
	color: #cbd5e1;
	font-size: 0.9rem;
	margin: 0;
}

.community-section .gallery-item:hover .overlay h3 {
	transform: translateY(0);
}

/* Grid size modifiers */
.community-section .span-2-2 {
	grid-column: span 2;
	grid-row: span 2;
}

.community-section .span-2-1 {
	grid-column: span 2;
	grid-row: span 1;
}

.community-section .span-1-2 {
	grid-column: span 1;
	grid-row: span 2;
}

/* Responsive */
@media (max-width: 768px) {
	.community-section .gallery-grid {
		grid-template-columns: 1fr;
		grid-auto-rows: 250px;
	}

	.community-section .span-2-2,
	.community-section .span-2-1,
	.community-section .span-1-2 {
		grid-column: auto;
		grid-row: auto;
	}
}


