/*
Theme Name: Bets10 v2
Theme URI: https://bets10.com
Author: Bets10
Author URI: https://bets10.com
Description: Custom WordPress block theme matching the Bets10 brand design — green and gold sports betting theme with full Gutenberg/FSE compatibility. v2 adds AMP-aware block renders so the same Page powers both desktop and AMP surfaces (works alongside bets10-amp-theme-2.0.0 plugin).
Version: 2.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bets10
Tags: full-site-editing, block-patterns, custom-colors, custom-logo, editor-style, wide-blocks, block-styles

Bets10 WordPress Theme — Fully compatible with the WordPress Block Editor (Gutenberg).
*/

/* ==========================================================================
   Reset & Base
   ========================================================================== */

*,
*::before,
*::after {
	box-sizing: border-box;
}

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

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

/* Container — matches 1498bets10.com @container site-home */
.container {
	max-width: 1236px;
	margin: 0 auto;
	padding: 0 16px;
}

/* Header is full-width (no max-width constraint) — matches example site */
.header > .container,
.header .container,
.nav-menu .container {
	max-width: none;
	padding: 0 16px;
}

/* ==========================================================================
   Header — PHP-rendered, matches bets10.com exactly
   ========================================================================== */

.header {
	background: linear-gradient(135deg, #037E21, #037E21);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	position: sticky;
	top: 0;
	z-index: 100;
}

.header-content {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 9px 0;
}

.logo {
	display: flex;
}

.logo img {
	height: 24px;
	width: auto;
}

.site-name {
	color: #fff;
	font-size: 1.25rem;
	font-weight: 700;
	text-decoration: none;
}

/* Hamburger — hidden on desktop */
.hamburger {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	padding: 4px;
	color: #fff;
}

.hamburger svg {
	width: 24px;
	height: 24px;
	display: block;
}

/* Help icon — hidden on desktop */
.header-help {
	display: none;
	color: #fff;
	padding: 4px;
	text-decoration: none;
}

.header-help svg {
	width: 22px;
	height: 22px;
	display: block;
}

/* Auth Buttons */
.auth-buttons {
	display: flex;
	gap: 10px;
}

.btn {
	display: inline-block;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	padding: 5px 10px;
	border-radius: 4px;
	cursor: pointer;
	text-decoration: none;
	transition: all 0.3s ease;
	white-space: nowrap;
}

.btn-outline {
	background: transparent;
	border: 1.5px solid #fff;
	color: #fff;
}

.btn-outline:hover {
	background: rgba(255, 255, 255, 0.15);
}

.btn-primary {
	background: #EFBF01;
	color: #000;
	border: 1.5px solid #EFBF01;
}

.btn-primary:hover {
	background: #ffb300;
}

/* Desktop Navigation Menu */
.nav-menu {
	border-top: 1px solid #1a5f26;
}

.nav-menu .container {
	padding: 0;
}

.nav-menu ul {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 0;
	justify-content: center;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.nav-menu ul::-webkit-scrollbar {
	display: none;
}

.nav-menu li {
	margin: 0;
}

.nav-menu a {
	display: block;
	color: #fff;
	text-decoration: none;
	font-size: 13px;
	font-weight: 600;
	padding: 10px 16px;
	white-space: nowrap;
	transition: background 0.2s;
}

.nav-menu a:hover {
	background: rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   Mobile Sidebar — HTML-based, matches bets10.com exactly
   ========================================================================== */

.sidebar-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.5);
	z-index: 998;
}

.sidebar-overlay.active {
	display: block;
}

.mobile-sidebar {
	position: fixed;
	top: 0;
	left: -280px;
	width: 280px;
	height: 100%;
	background: #1a1a1a;
	z-index: 999;
	transition: left 0.3s ease;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
}

.mobile-sidebar.open {
	left: 0;
}

.sidebar-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 16px;
	background: #037E21;
}

.sidebar-logo {
	color: #fff;
	font-size: 1.25rem;
	font-weight: 700;
}

.sidebar-close {
	background: none;
	border: none;
	color: #fff;
	cursor: pointer;
	padding: 4px;
	line-height: 0;
}

.sidebar-close svg {
	display: block;
}

.sidebar-nav {
	list-style: none;
	margin: 0;
	padding: 8px 0;
}

.sidebar-nav li {
	margin: 0;
}

.sidebar-nav a {
	display: block;
	color: #fff;
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	padding: 14px 20px;
	border-bottom: 1px solid #2a2a2a;
	text-align: left;
}

.sidebar-nav a:hover {
	background: #2a2a2a;
}

/* ==========================================================================
   Hero / Banner Section
   ========================================================================== */

.hero-section {
	position: relative;
	min-height: 340px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	background-size: cover;
	background-position: center;
	padding: 40px 0;
}

/* Constrains hero text/buttons to a centered column even when the hero
   wrapper is full-width (align:full). Override max-width per breakpoint
   if you want a different inner width on the hero specifically. */
.hero-section__inner {
	max-width: 1200px;
	margin-inline: auto;
	padding: 0 20px;
	width: 100%;
	box-sizing: border-box;
}

.hero-section .hero-content {
	max-width: 600px;
}

.hero-section h1,
.hero-section h2 {
	color: var(--wp--preset--color--white);
	font-size: 2rem;
	font-weight: 700;
	margin-bottom: 10px;
}

.hero-section p {
	color: var(--wp--preset--color--white);
	font-size: 1rem;
	margin-bottom: 20px;
}

.hero-section .wp-block-button__link {
	background: var(--wp--preset--color--cta);
	color: var(--wp--preset--color--black);
	padding: 11.21px 40px;
	min-width: 150px;
	border-radius: 8px;
	font-weight: 700;
	font-size: 1rem;
	text-align: center;
	transition: all 0.3s ease;
}

.hero-section .wp-block-button__link:hover {
	background: var(--wp--preset--color--cta-hover);
}

/* Payment Logos in Hero */
.payment-logos {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-top: 20px;
}

.payment-logos img {
	height: 24px;
	width: auto;
	object-fit: contain;
}

/* ==========================================================================
   Promotions / Product Grid
   ========================================================================== */

.promo-section {
	padding: 20px;
}

/* 5-column grid via wp:columns */
.promo-grid-columns {
	gap: 15px !important;
}

.promo-card {
	border-radius: 8px !important;
	overflow: hidden;
	min-height: 300px;
	cursor: pointer;
}

.promo-card a,
.promo-card .wp-block-cover__inner-container a {
	cursor: pointer;
}

.promo-card .wp-block-cover__inner-container {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: 235px;
}

.promo-card::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 60%;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.8) 100%);
	z-index: 1;
}

.promo-card .promo-card-content {
	position: relative;
	z-index: 2;
	padding: 20px;
	color: var(--wp--preset--color--white);
}

.promo-card .promo-card-content h3 {
	color: var(--wp--preset--color--white);
	font-size: 1rem;
	font-weight: 600;
	margin: 0;
}
.promo-card h4.wp-block-heading {
	z-index: 2;
}

/* ==========================================================================
   Features Section — mirrors bets10.com/home layout exactly
   ========================================================================== */

.features {
	background: #f8f9fa;
	padding: 60px 0;
}

.features .container {
	max-width: 1236px;
	margin: 0 auto;
	padding: 0 16px;
}

.features .section-title {
	font-size: 28px;
	font-weight: 600;
	margin-bottom: 16px;
	color: #333;
	text-align: left;
}

.features-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.features .feature-card {
	background: #fff;
	border: 1px solid #e9ecef;
	border-radius: 8px;
	padding: 20px;
	text-align: left;
}

.features .feature-card > * {
	margin-top: 0;
	margin-bottom: 15px;
}

.features .feature-card > *:last-child {
	margin-bottom: 0;
}

.features .feature-title {
	font: 700 16px/24px Roboto, "Roboto Fallback: Arial", "Roboto Fallback: Roboto", Arial, Roboto;
	color: #000;
	margin: 0 0 15px;
}

.features .feature-desc {
	font: 400 14px/20px Roboto, "Roboto Fallback: Arial", "Roboto Fallback: Roboto", Arial, Roboto;
	color: #000;
	margin: 0 0 15px;
}

.features .feature-detail {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 10px;
	font-size: 14px;
	gap: 10px;
}

.features .feature-detail > p,
.features .feature-detail .feature-label,
.features .feature-detail .feature-value {
	margin: 0;
}

.features .feature-label {
	color: #666;
	font-size: 14px;
}

.features .feature-value {
	font-weight: 600;
	color: #333;
	font-size: 14px;
	white-space: nowrap;
}

.features .payment-icons {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
	margin-top: 15px;
	max-width: 100%;
}

.features .payment-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
}

.features .payment-icon .wp-block-image,
.features .payment-icon figure {
	margin: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.features .payment-icon img {
	max-height: 20px;
	max-width: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
}

@media (max-width: 768px) {
	.features {
		padding: 40px 0;
	}

	.features-grid {
		grid-template-columns: 1fr;
		gap: 15px;
	}

	.features .section-title {
		font-size: 24px;
		margin-bottom: 16px;
	}

	.features .feature-title {
		font-size: 14px;
	}

	.features .feature-desc {
		font-size: 13px;
	}

	.features .payment-icons {
		grid-template-columns: repeat(3, 1fr);
		gap: 6px;
	}

	.features .payment-icon img {
		max-height: 18px;
	}
}

/* ==========================================================================
   Content Section (2-column layout)
   ========================================================================== */

.content-section {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 60px;
	padding: 40px 0;
}

.content-section h2 {
	font-size: 2rem;
	font-weight: 600;
	color: var(--wp--preset--color--text-primary);
}

.content-section h3 {
	font-size: 1.25rem;
	font-weight: 600;
	color: var(--wp--preset--color--text-primary);
}

.content-section p {
	font-size: 0.875rem;
	color: var(--wp--preset--color--text-secondary);
	line-height: 1.6;
}

/* ==========================================================================
   Expandable Content Section (matches bets10.com/home layout)
   ========================================================================== */

.expandable-content-section {
	padding: 60px 0;
}

.expandable-content-section .content-section {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 60px;
	align-items: flex-start;
	padding: 0;
}

/* Layout/spacing only — typography comes from block settings in the editor */
.expandable-content-section .content-body {
	margin-bottom: 30px;
}

/* Hidden content wrapper — target the block's auto class directly for reliability */
.wp-block-bets10-expandable-hidden,
.expandable-content-section .expandable-text {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.4s ease;
	margin: 0;
	padding: 0;
}

/* When the expandable feature is disabled, hide the hidden child entirely */
.expandable-content-section.no-expandable .wp-block-bets10-expandable-hidden,
.expandable-content-section.no-expandable .expandable-text,
.expandable-content-section-editor.no-expandable .wp-block-bets10-expandable-hidden {
	display: none !important;
}

.wp-block-bets10-expandable-hidden.expanded,
.expandable-content-section .expandable-text.expanded {
	max-height: 4000px;
}

.wp-block-bets10-expandable-hidden > *:first-child,
.expandable-content-section .expandable-text > *:first-child,
.wp-block-bets10-expandable-visible > *:first-child,
.expandable-content-section .content-body-visible > *:first-child {
	margin-top: 0;
}

/* Show-More button — matches bets10.com/home */
.show-more-btn,
.expandable-content-section .show-more-btn {
	background: none;
	border: none;
	color: #037E21;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 0;
	margin-top: 20px;
	transition: all 0.3s ease;
}

.show-more-btn:hover,
.expandable-content-section .show-more-btn:hover {
	color: #025a18;
}

.show-more-btn .arrow,
.expandable-content-section .show-more-btn .arrow {
	display: inline-block;
	transition: transform 0.3s ease;
}

.show-more-btn.expanded .arrow,
.expandable-content-section .show-more-btn.expanded .arrow {
	transform: rotate(180deg);
}

.expandable-content-section .app-download-section {
	display: flex;
	justify-content: center;
	align-items: center;
}

.expandable-content-section .app-download-section img {
	max-width: 100%;
	height: auto;
}

@media (max-width: 768px) {
	.expandable-content-section {
		padding: 40px 0;
	}

	.expandable-content-section .content-section {
		grid-template-columns: 1fr;
		gap: 30px;
	}
}

/* ==========================================================================
   Responsible Gaming — mirrors bets10.com/home layout
   ========================================================================== */

.responsible-gaming {
	background: #f8f9fa;
	padding: 60px 0;
	text-align: center;
}

.responsible-gaming .container {
	max-width: 1236px;
	margin: 0 auto;
	padding: 0 16px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	text-align: left;
	gap: 30px;
}

.responsible-gaming .responsible-icon {
	flex-shrink: 0;
	margin: 0;
	opacity: 0.9;
}

.responsible-gaming .responsible-icon .wp-block-image,
.responsible-gaming .responsible-icon figure {
	margin: 0;
}

.responsible-gaming .responsible-icon img {
	width: 64px;
	height: 64px;
	display: block;
}

.responsible-gaming .responsible-content {
	flex: 1;
	margin: 0;
}

.responsible-gaming .responsible-title {
	font-size: 28px;
	font-weight: 600;
	margin: 0 0 20px;
	color: #333;
}

.responsible-gaming .responsible-desc {
	color: #666;
	line-height: 1.6;
	margin: 0;
	max-width: 800px;
}

@media (max-width: 768px) {
	.responsible-gaming {
		padding: 40px 0;
	}

	.responsible-gaming .container {
		flex-direction: column;
		text-align: center;
		gap: 20px;
	}

	.responsible-gaming .responsible-content {
		text-align: center;
	}

	.responsible-gaming .responsible-title {
		font-size: 24px;
		margin-bottom: 15px;
	}

	.responsible-gaming .responsible-desc {
		margin-left: auto;
		margin-right: auto;
	}
}

/* ==========================================================================
   Footer - Matching bets10.com layout
   ========================================================================== */

.site-footer {
	background: #272728;
	color: #ffffffde;
	font-size: 14px;
	line-height: 20px;
}

/* Kill all default WP margins/padding inside footer */
.site-footer .wp-block-group {
	margin-top: 0;
	margin-bottom: 0;
}

.site-footer p {
	margin-top: 0;
	margin-bottom: 0;
}

/* Footer Top - Social */
.footer-top {
	text-align: center;
}

.social-icons-row {
	display: flex;
	justify-content: center;
	gap: 15px;
}

.social-icons-row .wp-block-image {
	margin: 0;
}

.social-icons-row .wp-block-image img {
	width: 84px;
	height: 84px;
	display: block;
}

.social-icons a {
	text-decoration: none;
}

/* Footer Middle */
.footer-middle {
	text-align: center;
}

.footer-middle > * + * {
	margin-top: 40px !important;
}

/* Sponsors */
.footer-sponsors {
	text-align: center;
}

.footer-sponsors .wp-block-image {
	margin: 0 auto;
}

/* Payment Methods */
.footer-payment-methods {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 20px 50px;
	flex-wrap: wrap;
}

.footer-payment-methods .wp-block-image {
	margin: 0;
}

.footer-payment-methods .wp-block-image img {
	height: 48px;
	width: auto;
	object-fit: contain;
}

/* Footer Nav Menu */
.footer-nav {
	padding: 20px 0;
	border-top: 1px solid #333;
}

.footer-nav ul {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	justify-content: center;
	gap: 8px;
	flex-wrap: wrap;
}

.footer-nav li {
	margin: 0;
}

.footer-nav a {
	color: #ffffffde;
	text-decoration: none;
	font-size: 13px;
	font-weight: 500;
	padding: 6px 12px;
	border-radius: 4px;
	transition: background 0.2s;
	white-space: nowrap;
}

.footer-nav a:hover {
	background: rgba(255, 255, 255, 0.1);
}

/* App Downloads */
.footer-apps {
	text-align: center;
	width: 100%;
}

.app-buttons {
	display: flex;
	justify-content: center;
	gap: 15px;
}

.app-download img {
	display: block;
}

/* Footer Bottom - Copyright and Legal */
.footer-bottom {
	background: #272728;
	padding: 30px 0;
}

.footer-bottom .container {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 40px;
}

.license-info {
	display: flex;
	gap: 10px;
	align-items: center;
	flex-shrink: 0;
}

.footer-right-content {
	flex: 1;
	text-align: right;
}

.footer-copyright {
	color: #ffffffde;
	font-size: 14px;
	margin-bottom: 10px;
}

.footer-legal {
	margin-bottom: 10px;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
}

.responsible-text {
	color: #ffffffde;
	font-size: 12px;
}

.age-restriction-icon {
	filter: brightness(0) invert(1);
}

.footer-text {
	color: #ffffffde;
	font-size: 12px;
	line-height: 16px;
	max-width: 800px;
	margin-left: auto;
}

/* Footer Button Menu */
/* WP wraps dynamic blocks in a div — reset it */
.wp-block-bets10-footer-bar,
.wp-block-bets10-social-links,
.wp-block-bets10-payment-logos,
.wp-block-bets10-sponsor-section,
.wp-block-bets10-hamburger-menu,
.wp-block-bets10-cookie-banner {
	margin: 0;
	padding: 0;
}

.footer-button-menu {
	/* Tokens — override on .footer-button-menu via inline style or custom CSS. */
	--b10-fbtn-bg: #3a3a3b;
	--b10-fbtn-bg-hover: #4a4a4b;
	--b10-fbtn-color: #fff;
	--b10-fbtn-radius: 8px;
	--b10-fbtn-padding: 10px 16px;
	--b10-fbtn-min-width: 0;
	--b10-fbtn-gap: 8px;
	--b10-fbtn-font-size: 13px;
	--b10-fbtn-font-weight: 500;
	--b10-fbtn-letter-spacing: normal;
	--b10-fbtn-line-height: normal;
	--b10-fbtn-text-transform: none;

	background: #272728;
	padding: 24px 0;
}

.footer-button-menu .container {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.footer-button-menu .footer-menu-btn,
.footer-button-menu .lang-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--b10-fbtn-gap);
	min-width: var(--b10-fbtn-min-width);
	background: var(--b10-fbtn-bg);
	color: var(--b10-fbtn-color);
	border: none;
	border-radius: var(--b10-fbtn-radius);
	padding: var(--b10-fbtn-padding);
	font-size: var(--b10-fbtn-font-size);
	font-weight: var(--b10-fbtn-font-weight);
	letter-spacing: var(--b10-fbtn-letter-spacing);
	line-height: var(--b10-fbtn-line-height);
	text-transform: var(--b10-fbtn-text-transform);
	cursor: pointer;
	text-decoration: none;
	transition: background 0.2s;
	font-family: inherit;
	white-space: nowrap;
}

.footer-button-menu .footer-menu-btn:hover,
.footer-button-menu .lang-btn:hover {
	background: var(--b10-fbtn-bg-hover);
}

.footer-button-menu .footer-menu-btn svg,
.footer-button-menu .lang-btn svg {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}

/* Language Selector */
.lang-selector {
	position: relative;
}

.lang-dropdown,
#langDropdown {
	display: none !important;
	position: absolute;
	bottom: 100%;
	left: 50%;
	transform: translateX(-50%);
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
	min-width: 200px;
	margin-bottom: 8px;
	overflow: hidden;
	z-index: 100;
}

.lang-dropdown.open,
#langDropdown.open {
	display: block !important;
}

.lang-dropdown a,
.lang-option {
	display: block;
	padding: 12px 16px;
	color: #333;
	text-decoration: none;
	font-size: 14px;
	transition: background 0.2s;
}

.lang-dropdown a:hover,
.lang-option:hover {
	background: #f8f9fa;
}

/* ==========================================================================
   Cookie Consent Banner
   ========================================================================== */

.cookie-banner {
	background: #e8e8e8;
	color: #000;
	font-size: 14px;
	line-height: 1.4;
	padding: 12px 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 15px;
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 999;
}

.cookie-banner p {
	margin: 0;
	flex: 1;
	max-width: 900px;
}

.cookie-close {
	background: none;
	border: none;
	font-size: 20px;
	cursor: pointer;
	color: #000;
	padding: 5px;
	line-height: 1;
}

.cookie-banner.hidden {
	display: none;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
	.promo-section .wp-block-columns.promo-grid-columns {
		flex-wrap: wrap;
	}

	/* !important needed to beat WP core's `.wp-block-columns:not(.is-not-stacked-on-mobile)>.wp-block-column { flex-basis: 100% !important }` at <=781px. */
	.promo-section .wp-block-columns.promo-grid-columns > .wp-block-column {
		flex: 0 0 calc(33.33% - 10px) !important;
	}
}

@media (max-width: 820px) {
	/* Hide desktop nav on mobile */
	.desktop-nav,
	.nav-menu {
		display: none !important;
	}

	/* Show hamburger + help icon on mobile */
	.hamburger,
	.header-help {
		display: flex;
	}

	/* Override Gutenberg flex layout on the header row so items can wrap */
	.header-row,
	.header-row.is-layout-flex {
		flex-wrap: wrap !important;
		gap: 0 !important;
	}

	/* Row 1: hamburger | logo (centered) | help icon */
	.header-row .hamburger {
		order: 1;
		flex: 0 0 auto;
	}

	.header-row .wp-block-site-logo,
	.header-row .header-logo {
		order: 2;
		flex: 1 1 auto;
		display: flex;
		justify-content: center;
	}

	.header-row .header-help {
		order: 3;
		flex: 0 0 auto;
	}

	/* Row 2: auth buttons full width */
	.header-row .header-auth-buttons {
		order: 4;
		flex: 0 0 100%;
		width: 100%;
		padding-top: 8px;
	}

	.header-auth-buttons .wp-block-buttons {
		display: flex;
		width: 100%;
		gap: 8px;
	}

	.header-auth-buttons .wp-block-button,
	.header-auth-buttons .btn-login,
	.header-auth-buttons .btn-signup {
		flex: 1 0 45%;
	}

	.header-auth-buttons .wp-block-button__link {
		display: block;
		width: 100%;
		text-align: center;
	}

	/* Legacy classes (old PHP-rendered header) */
	.header-content {
		flex-wrap: wrap;
		gap: 0;
	}

	.header-content .logo {
		flex: 1;
		justify-content: center;
	}

	.auth-buttons {
		display: flex;
		width: 100%;
		padding-top: 8px;
	}

	.auth-buttons .btn {
		flex: 1;
		text-align: center;
	}
}

@media (max-width: 768px) {
	.promo-section .wp-block-columns.promo-grid-columns {
		flex-wrap: wrap;
		justify-content: center;
	}

	.promo-section .wp-block-columns.promo-grid-columns > .wp-block-column {
		flex: 0 0 calc(50% - 8px) !important;
	}

	.content-section {
		grid-template-columns: 1fr;
		gap: 30px;
	}

	.hero-section {
		min-height: 280px;
		padding: 30px 15px;
	}

	.hero-section h1,
	.hero-section h2 {
		font-size: 1.5rem;
	}

	/* Footer responsive */
	.social-icon img {
		width: 60px;
		height: 60px;
	}

	.footer-bottom .container {
		flex-direction: column;
		text-align: center;
	}

	.footer-right-content {
		text-align: center;
	}

	.footer-legal {
		justify-content: center;
	}

	.footer-text {
		margin: 0 auto;
	}

	.footer-nav ul {
		flex-direction: column;
		align-items: center;
	}
}

@media (max-width: 520px) {
	.hero-section {
		min-height: 240px;
		padding: 20px 15px;
	}

	.payment-logos img {
		height: 18px;
	}
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.has-primary-background {
	background-color: var(--wp--preset--color--primary);
}

.has-dark-background {
	background-color: var(--wp--preset--color--dark);
}

.has-light-bg-background {
	background-color: var(--wp--preset--color--light-bg);
}

.text-center {
	text-align: center;
}

/* ==========================================================================
   Gutenberg Layout Overrides
   Kill unwanted padding, gaps, and margins injected by WP block engine
   ========================================================================== */

/* Remove default block gap from all layout types */
.is-layout-flow > * + * {
	margin-block-start: 0;
}

.is-layout-constrained > * + * {
	margin-block-start: 0;
}

/* Remove root padding that WP injects */
body {
	--wp--style--root--padding-top: 0;
	--wp--style--root--padding-right: 0;
	--wp--style--root--padding-bottom: 0;
	--wp--style--root--padding-left: 0;
}

.wp-site-blocks {
	padding: 0 !important;
}

.wp-site-blocks > * + * {
	margin-block-start: 0;
}

/* Prevent constrained layout from adding side padding */
.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
	margin-left: auto;
	margin-right: auto;
}

/* Remove default margins from wp-block-group */
.wp-block-group {
	margin-top: 0;
	margin-bottom: 0;
}

/* Navigation block — kill default gaps */
.wp-block-navigation .wp-block-navigation__container {
	gap: 0;
}

.wp-block-navigation .wp-block-navigation-item__content {
	padding: 10px 14px;
}

/* Cover block inner container — left align by default */
.wp-block-cover .wp-block-cover__inner-container {
	max-width: var(--wp--style--global--content-size);
	width: 100%;
}

.wp-block-cover.hero-cover {
	min-height: 340px;
}

/* Buttons block — remove default gap */
.wp-block-buttons {
	gap: 8px;
}

/* Columns — remove default gap override */
.wp-block-columns {
	margin-bottom: 0;
}

/* Ensure block patterns look good */
.wp-block-group.is-layout-flex {
	flex-wrap: wrap;
}

/* Separator — no extra margin */
.wp-block-separator {
	margin-top: 0;
	margin-bottom: 0;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
.wp-block-button__link:focus-visible {
	outline: 2px solid var(--wp--preset--color--primary);
	outline-offset: 2px;
}
