/* ==========================================================================
   BeThree Child – Blog index
   Figma: "Desktop | Blog" section 8:669 (1920), mobile 8:1014.
   Loaded only on pages using templates/page-blog.php (key "page-blog").
   Card variants and the .be_blog-group mosaic live in main.css.
   ========================================================================== */

.be_blog {
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 60px;
	padding: 100px 100px 120px;
	background: var(--be-color-white);
	color: var(--be-color-dark);
}

/* Cream curve at the top (Figma "Ellipse 8": 2249x243, 180px above the section) */
.be_blog::before {
	content: "";
	position: absolute;
	left: 50%;
	top: -180px;
	width: max(2249px, 117.15vw);
	height: 243px;
	transform: translateX(-50%);
	border-radius: 50%;
	background: var(--be-color-cream);
	pointer-events: none;
}

.be_blog > * {
	position: relative; /* above the curve */
	width: 100%;
}

.be_blog-title {
	font: var(--be-h1);
}

/* Groups after the first two stay hidden until "Δείτε Περισσότερα" (main.js) */
.be_blog-group--more:not(.is-visible) {
	display: none;
}

/* --- "Δείτε Περισσότερα" / pagination ----------------------------------- */
.be_blog-more-wrap,
.be_blog-pagination {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 16px;
}

/* Nothing to reveal on desktop when only two groups exist (before main.js runs) */
@media (min-width: 701px) {
	.be_blog-more-wrap:has(> .be_blog-more[data-groups="2"]) {
		display: none;
	}
}

.be_btn--back::after {
	order: -1;
	transform: rotate(180deg);
}

.be_blog-empty {
	margin: 0;
	font: var(--be-body);
	color: #666666;
}

/* --- Responsive --------------------------------------------------------- */
@media (max-width: 1100px) {
	.be_blog {
		gap: 48px;
		padding: 80px 60px 100px;
	}

}

@media (max-width: 700px) {
	/* Figma 8:1298 (breadcrumb band) + 8:1014 */
	.be_blog {
		gap: 24px;
		padding: 60px 20px 32px;
	}

	.be_blog::before {
		top: -29px;
		width: 492px;
		height: 53px;
	}

	/* On mobile only the first group is visible at first (Figma 8:1014) */
	.be_blog-group--more-mobile:not(.is-visible) {
		display: none;
	}
}
