/* ==========================================================================
   FM Blocks - Main Styles
   ========================================================================== */

:root {
	--fm-font-primary: "Poppins";
	--fm-section-bg: #debda9ad;
	--fm-primary-color: #c1ad88;
}

/* ==========================================================================
   Content Hub Styles
   ========================================================================== */

:root {
	--hub-dark: #111111;
	--hub-gray: #f5f5f5;
	--hub-accent: #0d6efd;
	--hub-gradient-dark: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.7));
	--hub-gradient-overlay: linear-gradient(to bottom, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.7));
}

/* Card overlay utility class */
.card-hub-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: var(--hub-gradient-dark);
}

body {
	word-wrap: break-word;
	text-rendering: optimizeLegibility;
	overflow-y: scroll;
	overflow-x: hidden;
}

.content-hub-wrapper {
	a {
		text-decoration: none;
		color: inherit;

		&:hover {
			color: var(--hub-accent);
		}

		&.btn.btn-outline-dark:hover {
			color: #fff;
		}
	}

	/* Reset WordPress automatic block margins */
	:where(.wp-block-post-content)>* {
		margin-block-start: 0 !important;
		margin-block-end: 0 !important;
	}
}

/* Force Full Width in Block Editor for Hub Layouts */
.editor-styles-wrapper {
	.wp-block-post-content {
		max-width: none !important;

		&>* {
			max-width: none !important;
		}
	}

	.editor-visual-editor__post-title-wrapper {
		max-width: none !important;
	}
}

/* Utilities */
.section-padding {
	padding: 100px 0;
}

.layout-2 {
	.lead {
		max-width: 768px;
	}
}

/* Cards */
.card-hub {
	border: none;
	background: #fff;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	overflow: hidden;
	height: 100%;
	position: relative;

	&:hover {
		transform: translateY(-5px);
		box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
	}

	.card-img-top {
		height: 240px;
		object-fit: cover;
	}
}

/* Layout 2: Dark List - Date Box */
.date-box {
	background: #fff;
	color: #000;
	width: 70px;
	height: 70px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	border-radius: 4px;
	margin-right: 2rem;
	flex-shrink: 0;

	.day {
		font-size: 1.5rem;
		font-weight: 700;
		line-height: 1;
	}

	.month {
		font-size: 0.7rem;
		text-transform: uppercase;
	}
}

/* Layout 3: Sticky Left */
.layout-3 {
	.sticky-content {
		position: sticky;
		top: 120px;
	}
}

/* Layout 4: Masonryish */
.layout-4 {
	.bi-arrow-up-right {
		top: 20px;
		right: 20px;
	}
}

.l4-main-img {
	height: 450px !important;
}

/* Layout 5: Dark & Subscribe */
.l5-card {
	background: #fff;
	color: #000;
	padding: 2rem;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.subscribe-form-section {
	.gform_title {
		font-size: 2.5rem;
		font-weight: 300;
		line-height: 1.2;
		color: rgba(255, 255, 255, 0.75) !important;
	}

	.gform_description {
		color: rgba(255, 255, 255, 0.5) !important;
	}

	input[type='text'],
	input[type='email'] {
		border-radius: var(--bs-border-radius) !important;
		background-color: rgba(var(--bs-dark-rgb), var(--bs-bg-opacity)) !important;
		color: #fff;
		padding: 10px !important;

		&::placeholder {
			color: #ddd;
		}
	}

	.gform-theme--foundation {
		.gform_fields {
			grid-row-gap: 15px;
			row-gap: 15px;
		}

		.gform_footer {
			margin-block-start: 15px;
			justify-content: center;
		}
	}

	input[type='submit'] {
		border-radius: var(--bs-border-radius) !important;
		background-color: #fff !important;
		color: #000 !important;
		text-transform: uppercase;
	}
}

/* Hero */
.hero-wrap {
	aspect-ratio: 16/9;
	min-height: 300px;
	background-size: cover;
	background-position: center;
	position: relative;
	display: flex;
	align-items: flex-end;

	.hero-gradient {
		position: absolute;
		bottom: 0;
		left: 0;
		width: 100%;
		height: 100%;
		background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.6) 100%);
	}
}

/* Swiper Pagination */
.swiper-pagination-clickable {
	.swiper-pagination-bullet {
		background: #000;
	}
}

.bg-black {
	.swiper-pagination-clickable {
		.swiper-pagination-bullet {
			background: #fff;
		}
	}
}