/*
Theme Name: Un Mariage Magique FSE
Theme URI: https://unmariagemagique.fr
Author: Un Mariage Magique
Author URI: https://unmariagemagique.fr
Description: Thème bloc FSE premium pour le blog Un Mariage Magique. Design romantique et raffiné dédié à l'univers du mariage, de la décoration, de la mode, de la gastronomie et du voyage, optimisé SEO et performance.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: un-mariage-magique-fse
Tags: blog, full-site-editing, block-patterns, wide-blocks, custom-colors, custom-menu, editor-style, featured-images, threaded-comments, translation-ready, mariage, lifestyle, feminin
*/

/* ========================================
   FONTS - Loaded via functions.php with preconnect
   ======================================== */

/* ========================================
   RESET & BASE
   ======================================== */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

/* ========================================
   ACCESSIBILITY
   ======================================== */
.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	height: 1px;
	overflow: hidden;
	position: absolute;
	width: 1px;
}

/* ========================================
   GLOBAL TRANSITIONS
   ======================================== */
a,
button,
.wp-block-button__link,
.wp-block-post,
.category-tile,
img {
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   HEADER PREMIUM
   ======================================== */
header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255, 255, 255, 0.98);
	backdrop-filter: blur(10px);
}

.site-header {
	border-bottom: 1px solid var(--wp--preset--color--secondary-light, #c5d5be);
}

/* Logo animation */
.wp-block-site-title a {
	transition: color 0.3s ease, transform 0.3s ease;
}

.wp-block-site-title a:hover {
	color: var(--wp--preset--color--accent, #c9a86c) !important;
}

/* Navigation hover effect with animated underline */
.wp-block-navigation a,
.site-header p a {
	position: relative;
	transition: color 0.3s ease;
}

.wp-block-navigation a::after,
.site-header p a::after {
	content: '';
	position: absolute;
	bottom: -4px;
	left: 50%;
	width: 0;
	height: 2px;
	background: var(--wp--preset--color--accent, #c9a86c);
	transition: width 0.3s ease, left 0.3s ease;
}

.wp-block-navigation a:hover::after,
.site-header p a:hover::after {
	width: 100%;
	left: 0;
}

.wp-block-navigation a:hover,
.site-header p a:hover {
	color: var(--wp--preset--color--primary, #9C6B6B) !important;
}

/* ========================================
   HERO & COVER BLOCKS
   ======================================== */
.wp-block-cover {
	overflow: hidden;
}

.wp-block-cover img {
	transition: transform 8s ease-out;
}

.wp-block-cover:hover img {
	transform: scale(1.08);
}

/* Hero text styling */
.hero-title {
	text-shadow: 0 2px 40px rgba(0, 0, 0, 0.3);
}

/* ========================================
   CATEGORY TILES - FULLY CLICKABLE
   ======================================== */
.category-tile {
	position: relative;
	overflow: hidden;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
	transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
		box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-tile:hover {
	transform: translateY(-8px);
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.category-tile .wp-block-cover img {
	transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-tile:hover .wp-block-cover img {
	transform: scale(1.1);
}

.category-tile h3 {
	transition: color 0.3s ease;
}

.category-tile:hover h3 {
	color: var(--wp--preset--color--primary, #9C6B6B) !important;
}

/* Arrow indicator on hover */
.category-tile::after {
	content: '→';
	position: absolute;
	bottom: 1.5rem;
	right: 1.25rem;
	opacity: 0;
	transform: translateX(-10px);
	transition: opacity 0.3s ease, transform 0.3s ease;
	font-size: 1.25rem;
	color: var(--wp--preset--color--accent, #c9a86c);
}

.category-tile:hover::after {
	opacity: 1;
	transform: translateX(0);
}

/* ========================================
   CARDS & ARTICLES - CLICKABLE TILES
   ======================================== */
.wp-block-post {
	position: relative;
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
	transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
		box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	cursor: pointer;
}

/* Make entire card clickable via title link overlay */
.wp-block-post .wp-block-post-title a::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1;
}

/* Keep category links clickable above overlay */
.wp-block-post .wp-block-post-terms {
	position: relative;
	z-index: 2;
}

.wp-block-post:hover {
	transform: translateY(-6px);
	box-shadow: 0 24px 48px rgba(0, 0, 0, 0.12);
}

/* Featured image hover zoom */
.wp-block-post-featured-image {
	overflow: hidden;
}

.wp-block-post-featured-image img {
	transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.wp-block-post:hover .wp-block-post-featured-image img {
	transform: scale(1.08);
}

/* Post title hover */
.wp-block-post-title a {
	transition: color 0.3s ease !important;
}

.wp-block-post:hover .wp-block-post-title a {
	color: var(--wp--preset--color--primary, #9C6B6B) !important;
}

/* ========================================
   RELATED ARTICLES / ARTICLES SIMILAIRES
   ======================================== */
.wp-block-query .wp-block-post {
	background: #fff;
	border-radius: 12px;
	padding: 0;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.wp-block-query .wp-block-post .wp-block-group {
	padding: 1rem 1.25rem 1.5rem;
}

.wp-block-query .wp-block-post .wp-block-post-featured-image {
	border-radius: 12px 12px 0 0;
}

.wp-block-query .wp-block-post .wp-block-post-title {
	margin-top: 0.5rem;
	font-size: 1rem !important;
	line-height: 1.4;
}

/* Category pills */
.wp-block-post-terms a {
	display: inline-block;
	padding: 0.25rem 0.75rem;
	background: var(--wp--preset--color--secondary-light, #c5d5be);
	color: var(--wp--preset--color--primary, #9C6B6B);
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-decoration: none;
	border-radius: 2px;
	transition: all 0.3s ease;
}

.wp-block-post-terms a:hover {
	background: var(--wp--preset--color--accent, #c9a86c);
	color: #fff;
	transform: translateY(-2px);
}

/* ========================================
   "READ MORE" LINK ANIMATION
   ======================================== */
.read-more-link,
a[href*="lire-la-suite"],
.wp-block-read-more {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-weight: 600;
	transition: gap 0.3s ease;
}

.read-more-link::after,
.wp-block-read-more::after {
	content: '→';
	transition: transform 0.3s ease;
}

.read-more-link:hover::after,
.wp-block-read-more:hover::after {
	transform: translateX(4px);
}

.read-more-link:hover,
.wp-block-read-more:hover {
	gap: 0.75rem;
}

/* ========================================
   SINGLE ARTICLE
   ======================================== */
.single-post-header {
	text-align: center;
	max-width: 800px;
	margin: 0 auto;
}

/* Drop cap for first paragraph */
.wp-block-post-content>p:first-of-type::first-letter {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 4rem;
	float: left;
	line-height: 0.8;
	padding-right: 0.5rem;
	color: var(--wp--preset--color--primary, #9C6B6B);
}

/* Article meta styling */
.post-meta {
	font-size: 0.8125rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wp--preset--color--foreground-light, #4a4a4a);
}

/* ========================================
   BUTTONS PREMIUM
   ======================================== */
.wp-block-button__link {
	position: relative;
	overflow: hidden;
	transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Shine effect on hover */
.wp-block-button__link::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
	transition: left 0.6s ease;
}

.wp-block-button__link:hover::before {
	left: 100%;
}

.wp-block-button__link:hover {
	transform: translateY(-3px) scale(1.02);
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
	filter: brightness(1.1);
}

.wp-block-button__link:active {
	transform: translateY(-1px) scale(0.98);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Outline button style */
.is-style-outline .wp-block-button__link {
	border: 2px solid currentColor;
	background: transparent;
}

.is-style-outline .wp-block-button__link:hover {
	background: var(--wp--preset--color--primary, #9C6B6B);
	color: #fff !important;
	border-color: var(--wp--preset--color--primary, #9C6B6B);
}

/* Primary button enhanced */
.wp-block-button__link.has-primary-background-color:hover {
	background: var(--wp--preset--color--accent, #c9a86c) !important;
}

/* Accent button enhanced */
.wp-block-button__link.has-accent-background-color:hover {
	background: var(--wp--preset--color--primary, #9C6B6B) !important;
}

/* ========================================
   LINKS - ANIMATED UNDERLINE
   ======================================== */
.wp-block-post-content a:not(.wp-block-button__link) {
	color: var(--wp--preset--color--primary, #9C6B6B);
	text-decoration: none;
	background-image: linear-gradient(currentColor, currentColor);
	background-position: 0% 100%;
	background-repeat: no-repeat;
	background-size: 0% 1px;
	transition: background-size 0.3s ease, color 0.3s ease;
}

.wp-block-post-content a:not(.wp-block-button__link):hover {
	color: var(--wp--preset--color--accent, #c9a86c);
	background-size: 100% 1px;
}

/* ========================================
   PAGE HERO HEADERS
   ======================================== */
.page-hero {
	position: relative;
	overflow: hidden;
}

.page-hero .wp-block-cover__background {
	transition: opacity 0.6s ease;
}

.page-hero:hover .wp-block-cover__background {
	opacity: 0.7;
}

/* ========================================
   FOOTER PREMIUM
   ======================================== */
footer.wp-block-template-part {
	margin-top: auto;
}

/* Footer links hover */
footer a {
	transition: color 0.3s ease, opacity 0.3s ease;
}

footer a:hover {
	color: var(--wp--preset--color--accent, #c9a86c) !important;
	opacity: 1;
}

.footer-section {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ========================================
   NEWSLETTER SECTION
   ======================================== */
.newsletter-section {
	background: var(--wp--preset--color--primary, #9C6B6B);
	color: #fff;
}

.newsletter-section input[type="email"] {
	padding: 1rem 1.5rem;
	border: 1px solid rgba(255, 255, 255, 0.2);
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
	font-size: 1rem;
	min-width: 300px;
	transition: border-color 0.3s ease, background 0.3s ease;
}

.newsletter-section input[type="email"]::placeholder {
	color: rgba(255, 255, 255, 0.5);
}

.newsletter-section input[type="email"]:focus {
	outline: none;
	border-color: var(--wp--preset--color--accent, #c9a86c);
	background: rgba(255, 255, 255, 0.15);
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

@keyframes slideInLeft {
	from {
		opacity: 0;
		transform: translateX(-30px);
	}

	to {
		opacity: 1;
		transform: translateX(0);
	}
}

@keyframes pulse {

	0%,
	100% {
		transform: scale(1);
	}

	50% {
		transform: scale(1.02);
	}
}

.animate-fade-in-up {
	animation: fadeInUp 0.6s ease forwards;
}

.animate-fade-in {
	animation: fadeIn 0.8s ease forwards;
}

/* Staggered animation for grids */
.wp-block-post-template>*:nth-child(1) {
	animation-delay: 0.1s;
}

.wp-block-post-template>*:nth-child(2) {
	animation-delay: 0.2s;
}

.wp-block-post-template>*:nth-child(3) {
	animation-delay: 0.3s;
}

.wp-block-post-template>*:nth-child(4) {
	animation-delay: 0.4s;
}

.wp-block-post-template>*:nth-child(5) {
	animation-delay: 0.5s;
}

.wp-block-post-template>*:nth-child(6) {
	animation-delay: 0.6s;
}

/* ========================================
   SCROLL REVEAL (JavaScript companion)
   ======================================== */
.reveal-on-scroll {
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-on-scroll.revealed {
	opacity: 1;
	transform: translateY(0);
}

/* ========================================
   IMAGES - HOVER EFFECTS
   ======================================== */
figure.wp-block-image {
	overflow: hidden;
	border-radius: 4px;
}

figure.wp-block-image img {
	transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

figure.wp-block-image:hover img {
	transform: scale(1.05);
}

/* ========================================
   BLOCKQUOTES
   ======================================== */
.wp-block-quote {
	position: relative;
	padding-left: 2rem;
	border-left: 3px solid var(--wp--preset--color--accent, #c9a86c);
	font-style: italic;
	transition: border-color 0.3s ease;
}

.wp-block-quote:hover {
	border-left-color: var(--wp--preset--color--primary, #9C6B6B);
}

/* ========================================
   HAMBURGER MENU & MOBILE OVERLAY
   ======================================== */
/* Hamburger button - hidden on desktop */
.hamburger-btn {
	display: none;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	width: 40px;
	height: 40px;
	padding: 8px;
	background: transparent;
	border: none;
	cursor: pointer;
	z-index: 1001;
}

.hamburger-btn span {
	display: block;
	width: 22px;
	height: 2px;
	background-color: var(--wp--preset--color--primary, #9C6B6B);
	margin: 3px 0;
	transition: all 0.3s ease;
	border-radius: 2px;
}

/* Mobile menu overlay */
.mobile-menu-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: #ffffff !important;
	z-index: 99999;
	opacity: 0;
	visibility: hidden;
	transform: translateX(100%);
	transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
	overflow-y: auto;
}

.mobile-menu-overlay.is-open {
	opacity: 1;
	visibility: visible;
	transform: translateX(0);
}

.mobile-menu-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1rem 1.5rem;
	background: var(--wp--preset--color--primary, #9C6B6B);
}

.mobile-menu-title {
	color: #fff;
	font-size: 1.125rem;
	font-weight: 600;
	font-family: var(--wp--preset--font-family--heading);
}

.mobile-menu-close {
	background: transparent;
	border: none;
	color: var(--wp--preset--color--accent, #c9a86c);
	font-size: 1.5rem;
	cursor: pointer;
	padding: 0.5rem;
	line-height: 1;
}

.mobile-menu-nav {
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
}

.mobile-menu-nav a {
	display: block;
	padding: 1rem 0;
	color: var(--wp--preset--color--foreground, #2d2d2d);
	text-decoration: none;
	font-size: 1.125rem;
	font-weight: 500;
	border-bottom: 1px solid #eee;
	transition: color 0.2s ease;
}

.mobile-menu-nav a:hover {
	color: var(--wp--preset--color--accent, #c9a86c);
}

.mobile-menu-nav a.mobile-menu-cta {
	margin-top: 1rem;
	background: var(--wp--preset--color--primary, #9C6B6B);
	color: #fff;
	text-align: center;
	padding: 1rem;
	border-radius: 6px;
	border: none;
	font-weight: 600;
}

/* Body scroll lock when menu open */
body.menu-open {
	overflow: hidden;
}

/* ========================================
   FOOTER LINKS GRID
   ======================================== */
.footer-links-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0;
}

.footer-link-col {
	min-width: 120px;
}

/* ========================================
   RESPONSIVE - TABLET (max-width: 1024px)
   ======================================== */
@media (max-width: 1024px) {

	/* Columns wrap on tablet */
	.wp-block-columns {
		flex-wrap: wrap !important;
	}

	.wp-block-column {
		flex-basis: 48% !important;
		margin-bottom: 1rem;
	}
}

/* ========================================
   RESPONSIVE - MOBILE (max-width: 782px)
   ======================================== */
@media (max-width: 782px) {

	/* ================================
	   HEADER & HAMBURGER MENU
	   ================================ */
	.site-header {
		padding: 0.5rem 1rem !important;
	}

	/* Show hamburger on mobile */
	.hamburger-btn {
		display: flex !important;
	}

	/* Hide desktop nav with higher specificity */
	.desktop-nav,
	nav.desktop-nav,
	.wp-block-navigation.desktop-nav {
		display: none !important;
	}

	/* Show hamburger on mobile */
	.hamburger-btn {
		display: flex !important;
	}

	/* ================================
	   MOBILE MENU OVERLAY
	   ================================ */
	/* Overlay is now direct child of body via wp_footer */
	.mobile-menu-overlay {
		background: #ffffff !important;
		display: flex;
		flex-direction: column;
		z-index: 99999 !important;
	}

	.mobile-menu-header {
		padding: 1rem 1.5rem !important;
		background: var(--wp--preset--color--primary, #C9A96E) !important;
		color: white !important;
	}

	.mobile-menu-nav a.mobile-menu-cta {
		margin-top: 1rem !important;
		background: var(--wp--preset--color--primary, #C9A96E) !important;
		color: #ffffff !important;
		text-align: center !important;
		padding: 1rem !important;
		border-radius: 6px !important;
		border: none !important;
	}

	/* FORCE HAMBURGER VISIBILITY & POSITIONING */
	.hamburger-btn {
		display: flex !important;
		opacity: 1 !important;
		visibility: visible !important;
		z-index: 10002 !important;
		position: absolute !important;
		top: 50% !important;
		right: 1.5rem !important;
		transform: translateY(-50%) !important;
		background: transparent !important;
	}

	.hamburger-line {
		background-color: #9C6B6B !important;
	}

	/* Ensure parent doesn't hide overflow/absolute */
	.site-header {
		position: relative !important;
		z-index: 10001 !important;
	}

	/* Double Menu Fix - Nuclear Option */
	@media (max-width: 782px) {

		nav.desktop-nav,
		.desktop-nav,
		.wp-block-navigation.desktop-nav {
			display: none !important;
			visibility: hidden !important;
			height: 0 !important;
			width: 0 !important;
			position: absolute !important;
			overflow: hidden !important;
		}
	}

	/* ================================
	   HERO SECTION
	   ================================ */
	.wp-block-cover {
		min-height: 400px !important;
	}

	.wp-block-cover h1 {
		font-size: 1.75rem !important;
		line-height: 1.3 !important;
		padding: 0 1rem !important;
	}

	.wp-block-cover p {
		font-size: 0.9375rem !important;
		padding: 0 1rem !important;
	}

	/* ================================
	   SECTIONS PADDING
	   ================================ */
	.wp-block-group.alignfull {
		padding-left: 1rem !important;
		padding-right: 1rem !important;
	}

	.wp-block-group.alignfull[style*="padding-top:5rem"] {
		padding-top: 2.5rem !important;
		padding-bottom: 2.5rem !important;
	}

	.wp-block-group.alignfull[style*="padding-top:4rem"] {
		padding-top: 2rem !important;
		padding-bottom: 2rem !important;
	}

	/* ================================
	   COLUMNS - STACK VERTICALLY
	   ================================ */
	.wp-block-columns {
		flex-direction: column !important;
		gap: 1.5rem !important;
	}

	.wp-block-column {
		flex-basis: 100% !important;
		width: 100% !important;
		max-width: 100% !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
	}

	/* ================================
	   CATEGORY TILES - 2 COLUMNS GRID
	   ================================ */
	.category-tile {
		width: 100% !important;
		margin: 0 !important;
	}

	.category-tile .wp-block-cover {
		min-height: 120px !important;
	}

	.category-tile .wp-block-group[style*="padding"] {
		padding: 1rem !important;
	}

	.category-tile h3 {
		font-size: 1rem !important;
	}

	.category-tile p {
		font-size: 0.8125rem !important;
		line-height: 1.5 !important;
	}

	/* Benefits/Categories grid: 2 columns */
	.wp-block-columns:has(.category-tile) {
		display: grid !important;
		grid-template-columns: repeat(2, 1fr) !important;
		gap: 1rem !important;
	}

	.wp-block-columns:has(.category-tile)>.wp-block-column {
		width: 100% !important;
		flex-basis: auto !important;
	}

	/* Empty spacer columns hidden */
	.wp-block-column[style*="flex-basis:16.66%"] {
		display: none !important;
	}

	/* ================================
	   FOOTER MOBILE (Reverted 4-col structure)
	   ================================ */
	/* Target the specific footer columns with high specificity */
	div.site-footer>.wp-block-columns {
		display: grid !important;
		grid-template-columns: 1fr 1fr !important;
		gap: 2rem 1rem !important;
		flex-direction: row !important;
		/* Override any flex-col */
	}

	div.site-footer>.wp-block-columns>.wp-block-column {
		flex-basis: auto !important;
		width: auto !important;
		max-width: 100% !important;
		margin: 0 !important;
	}

	/* First column (Logo/Desc) spans full width */
	div.site-footer>.wp-block-columns>.wp-block-column:first-child {
		grid-column: 1 / -1 !important;
		text-align: center !important;
		margin-bottom: 2rem !important;
	}

	div.site-footer>.wp-block-columns>.wp-block-column:first-child .wp-block-group {
		justify-content: center !important;
	}

	/* Headings and links adjustments */
	div.site-footer h4 {
		font-size: 0.6875rem !important;
		margin-bottom: 0.75rem !important;
	}

	div.site-footer p {
		font-size: 0.8125rem !important;
		line-height: 1.8 !important;
	}

	/* ================================
	   STATS COUNTER
	   ================================ */
	.stats-counter-section .wp-block-columns {
		text-align: center !important;
	}

	.stats-counter-section .wp-block-columns .wp-block-columns {
		display: grid !important;
		grid-template-columns: repeat(2, 1fr) !important;
		gap: 1rem !important;
	}

	.stats-counter-section .count-up {
		font-size: 1.75rem !important;
	}

	/* ================================
	   TYPOGRAPHY
	   ================================ */
	h1,
	h2 {
		word-wrap: break-word !important;
	}

	h1 {
		font-size: 1.75rem !important;
	}

	h2 {
		font-size: 1.375rem !important;
	}

	h3 {
		font-size: 1.125rem !important;
	}

	/* ================================
	   BUTTONS
	   ================================ */
	.wp-block-buttons {
		flex-direction: column !important;
		align-items: stretch !important;
		gap: 0.75rem !important;
	}

	.wp-block-button {
		width: 100% !important;
	}

	.wp-block-button__link {
		width: 100% !important;
		text-align: center !important;
		padding: 1rem 1.5rem !important;
	}

	/* ================================
	   BLOG PAGE - SIDEBAR BELOW CONTENT
	   ================================ */
	/* Make sidebar visible on mobile */
	.wp-block-column[style*="flex-basis:30%"] {
		display: block !important;
		margin-top: 2rem !important;
	}

	/* Author bio card */
	.wp-block-group[style*="border-radius:8px"] {
		padding: 1.25rem !important;
	}

	/* Post grid on mobile */
	.wp-block-query .wp-block-post-template {
		grid-template-columns: 1fr !important;
		gap: 1.5rem !important;
	}

	/* ================================
	   ARTICLE CARDS
	   ================================ */
	.wp-block-post {
		margin-bottom: 1.5rem !important;
	}

	.wp-block-post-featured-image {
		margin-bottom: 1rem !important;
	}

	/* ================================
	   NEWSLETTER SECTION
	   ================================ */
	.wp-block-group input[type="email"] {
		width: 100% !important;
		margin-bottom: 0.75rem !important;
	}

	/* ================================
	   ABOUT AUTHOR SECTION
	   ================================ */
	.wp-block-media-text {
		grid-template-columns: 1fr !important;
	}

	.wp-block-media-text__media {
		margin-bottom: 1.5rem !important;
	}

	.wp-block-media-text__content {
		padding: 0 !important;
	}

	/* Header sticky disabled on mobile */
	header.wp-block-template-part {
		position: relative !important;
	}
}

/* ========================================
   FOOTER (GLOBAL STYLES)
   ======================================== */
.site-footer {
	background-color: var(--wp--preset--color--primary) !important;
	color: #ffffff !important;
}

.site-footer a {
	color: #ffffff !important;
	text-decoration: none;
	opacity: 0.9;
	transition: opacity 0.2s ease;
}

.site-footer a:hover {
	color: #ffffff !important;
	opacity: 1;
	text-decoration: underline;
}

.site-footer .wp-block-navigation-item__content {
	color: #ffffff !important;
}

.site-footer h3,
.site-footer h4,
.site-footer p,
.site-footer li {
	color: #ffffff !important;
}

/* Force specific navigation links in footer to be white */
.site-footer .wp-block-navigation-item__content,
.site-footer .wp-block-navigation__container a,
.site-footer ul li a {
	color: #ffffff !important;
	text-decoration: none;
}

.site-footer .wp-block-navigation-item__content:hover,
.site-footer .wp-block-navigation__container a:hover,
.site-footer ul li a:hover {
	color: #ffffff !important;
	text-decoration: underline;
	opacity: 0.8;
}

.site-footer .wp-block-navigation-item {
	display: block !important;
	margin-bottom: 0.5rem !important;
}

/* ========================================
   NEWSLETTER
   ======================================== */
.newsletter-form {
	max-width: 500px;
	margin: 0 auto;
	position: relative;
	z-index: 10;
}

.newsletter-form__wrapper {
	display: flex;
	gap: 0.75rem;
}

.newsletter-form input[type="email"] {
	flex: 1;
	padding: 0.875rem 1.25rem;
	border: 2px solid rgba(255, 255, 255, 0.2);
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.95);
	color: #9C6B6B;
	font-size: 1rem;
	transition: all 0.3s ease;
}

.newsletter-form input[type="email"]:focus {
	background: #ffffff;
	border-color: var(--wp--preset--color--accent, #c9a86c);
	outline: none;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.newsletter-form button {
	padding: 0.875rem 2rem;
	border: none;
	border-radius: 6px;
	background: var(--wp--preset--color--accent, #c9a86c);
	color: #ffffff;
	font-weight: 600;
	font-size: 1rem;
	cursor: pointer;
	transition: all 0.3s ease;
	white-space: nowrap;
}

.newsletter-form button:hover {
	background: #ffffff;
	color: var(--wp--preset--color--primary, #C9A96E);
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

@media (max-width: 600px) {
	.newsletter-form__wrapper {
		flex-direction: column;
	}

	.newsletter-form button {
		width: 100%;
	}
}

/* ========================================
   RESPONSIVE - SMALL MOBILE (max-width: 480px)
   ======================================== */
@media (max-width: 480px) {
	body {
		font-size: 0.9375rem !important;
	}

	.wp-block-cover {
		min-height: 350px !important;
	}

	.wp-block-cover h1 {
		font-size: 1.5rem !important;
	}

	/* 1 column for tiles on very small screens */
	.wp-block-columns:has(.category-tile) {
		grid-template-columns: 1fr !important;
	}

	/* Footer 1 column on very small */
	.wp-block-group.alignfull.has-primary-background-color>.wp-block-columns {
		grid-template-columns: 1fr !important;
	}

	.stats-counter-section .wp-block-columns .wp-block-columns {
		grid-template-columns: repeat(2, 1fr) !important;
	}

	.count-up {
		font-size: 1.5rem !important;
	}
}

/* ========================================
   TABLE STYLES
   ======================================== */
.entry-content table,
.wp-block-table table,
article table,
.has-global-padding table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.5rem 0 2rem;
	font-size: 0.9375rem;
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.entry-content table th,
.wp-block-table table th,
article table th {
	background: var(--wp--preset--color--primary, #9C6B6B);
	color: #fff;
	font-weight: 600;
	text-align: left;
	padding: 0.875rem 1rem;
	font-size: 0.875rem;
	letter-spacing: 0.02em;
}

.entry-content table td,
.wp-block-table table td,
article table td {
	padding: 0.75rem 1rem;
	border-bottom: 1px solid #e8e8e8;
	color: var(--wp--preset--color--foreground, #2d2d2d);
}

.entry-content table tr:last-child td,
.wp-block-table table tr:last-child td,
article table tr:last-child td {
	border-bottom: none;
}

.entry-content table tbody tr:nth-child(even),
.wp-block-table table tbody tr:nth-child(even),
article table tbody tr:nth-child(even) {
	background: #f9f9f8;
}

.entry-content table tbody tr:hover,
.wp-block-table table tbody tr:hover,
article table tbody tr:hover {
	background: #f0f5f0;
}

/* Responsive tables */
@media (max-width: 600px) {

	.entry-content table,
	.wp-block-table table,
	article table {
		font-size: 0.8125rem;
	}

	.entry-content table th,
	.wp-block-table table th,
	article table th,
	.entry-content table td,
	.wp-block-table table td,
	article table td {
		padding: 0.625rem 0.75rem;
	}
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {

	header,
	footer,
	.wp-block-navigation,
	.wp-block-button,
	.hamburger-btn,
	.mobile-menu-overlay {
		display: none !important;
	}

	body {
		font-size: 12pt;
		line-height: 1.5;
	}
}

/* FORCE HAMBURGER VISIBILITY & POSITIONING (NUCLEAR OPTION) */
@media (max-width: 782px) {

	/* Hide desktop nav definitely */
	.desktop-nav,
	.site-header .wp-block-buttons {
		display: none !important;
	}

	/* Force hamburger button visibility and positioning */
	#mobile-menu-toggle {
		display: flex !important;
		flex-direction: column !important;
		justify-content: center !important;
		align-items: center !important;
		opacity: 1 !important;
		visibility: visible !important;

		/* Absolute positioning relative to header */
		position: absolute !important;
		top: 50% !important;
		right: 1.5rem !important;
		transform: translateY(-50%) !important;
		z-index: 10005 !important;

		/* Reset button styles */
		background: transparent !important;
		border: none !important;
		padding: 0.5rem !important;
		width: 44px !important;
		height: 44px !important;
		cursor: pointer !important;
		pointer-events: auto !important;
	}

	.hamburger-line {
		display: block !important;
		width: 24px !important;
		height: 2px !important;
		background-color: #9C6B6B !important;
		margin: 3px 0 !important;
		opacity: 1 !important;
	}

	/* Ensure parent doesn't hide overflow */
	.site-header {
		position: relative !important;
		z-index: 10001 !important;
		overflow: visible !important;
	}
}

/* ========================================
   BREADCRUMB - H6 used to avoid Hn pollution
   ======================================== */
.breadcrumb-title {
	font-weight: normal !important;
	margin: 0 !important;
	padding: 0 !important;
	line-height: inherit !important;
}