/* Condensed padding for specific front-page sections */
.box-1--condensed {
	/* larger even padding on all sides; keep content vertically centered */
	padding: 80px;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start; /* preserve left-aligned content on desktop */
}

@media (max-width: 991.98px) {
	.box-1--condensed {
		padding: 32px; /* even padding on smaller screens */
		align-items: center; /* center content on mobile */
		text-align: center;
	}
}

/* Small adjustments so headings and body sizes remain balanced */
body { font-weight: 400; }
h1 { font-size: 2.6rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

/* PLACE YOU CUSTOM STYLES IN THIS FILE */

/* Fixes for Store & Product pages - align to original template */

/* Ensure isotope filter aligns and does not duplicate UI */
.isotope-container .isotope-filter {
	display: flex;
	justify-content: center;
	gap: 18px;
	padding-left: 0;
}

/* Prevent duplicate filter occasionally injected by template includes */
.isotope-container .isotope-filter:nth-of-type(n+2) {
	display: none;
}

/* Ensure grid items can expand and not cut off */
.isotope-grid .portfolio-item {
	overflow: visible;
}

/* Sticky sidebar adjustments to avoid content cutting under the footer */
.sticky {
	position: relative;
	z-index: 2;
}

/* Product gallery fixes for mobile - allow larger images without clipping */
.gallery .gallery-item .img,
.gallery .gallery-item img {
	max-width: 100%;
	height: auto;
}

/* Make sure box-5 spacing mirrors the original template */
.box-5 { padding: 80px 0 }

/* --------------------------------------------------
   bbPress -> Amdesk mapping
   Basic rules to make bbPress markup inherit theme styles
   -------------------------------------------------- */

/* Tables: ensure bbPress topic/forum lists use dx table look */
.bbp-forums .bbp-forum, .bbp-forums .bbp-forum-title,
.bbp-topics .bbp-topic, .bbp-topics .bbp-topic-title {
	/* let our table style dominate by ensuring links display like table titles */
}

/* Titles */
.bbp-forum-title a,
.bbp-topic-title a,
.bbp-topic-permalink {
	display: block;
	font-weight: 600;
	color: inherit;
}

/* Meta lines (author/date) */
.bbp-topic-meta,
.bbp-topic-starter,
.bbp-reply-author,
.bbp-forum-content .author {
	color: #6c6c6c;
	font-size: 14px;
}

/* Replies: present like dx-comment */
.bbp-replies .bbp-reply,
.bbp-reply {
	display: flex;
	gap: 18px;
	padding: 22px 0;
	border-bottom: 1px solid #eee;
}
.bbp-reply .bbp-reply-author {
	width: 72px;
}
.bbp-reply .bbp-reply-author img,
.bbp-author-avatar img {
	max-width: 64px;
	height: auto;
	border-radius: 50%;
}
.bbp-reply .bbp-reply-content {
	flex: 1;
}

/* Reply form: align buttons and editor spacing */
.bbp-reply-form .bbp-submit-wrapper .button,
.bbp-reply-form input[type="submit"],
.bbp-submit-wrapper .button {
	background: #2b6fbf;
	border: none;
	color: #fff;
	padding: 10px 18px;
	border-radius: 4px;
}

/* Pagination mapping to dx-pagination */
.bbp-pagination,
.bbp-replies .bbp-pagination,
.bbp-topic-pagination {
	margin-top: 24px;
}

/* Small responsive fixes for topic tables */
@media (max-width: 991px) {
	.table.table-default thead { display: none; }
	.table.table-default tbody tr { display: block; margin-bottom: 18px; }
}

/* --------------------------------------------------
   Navbar dropdown helpers (mobile touch support)
   These rules complement the existing `amdesk` navbar styles
   - `.nav-item-drop` is added by the theme walker
   - `.open` is toggled by `nav-dropdown.js` on small screens
   -------------------------------------------------- */

/* show dropdown when `open` class is present */
.navbar .nav-item-drop.open > .navbar-dropdown {
	visibility: visible;
	opacity: 1;
	-webkit-transform: translateY(0);
	-ms-transform: translateY(0);
	transform: translateY(0);
}

/* --------------------------------------------------
   DX Navbar compatibility
   Ensure the `dx-` navbar fullscreen classes mirror the non-dx rules
-------------------------------------------------- */
.dx-navbar.dx-navbar-fullscreen {
	visibility: hidden;
	opacity: 0;
	transition: visibility .3s ease-in-out, opacity .3s ease-in-out;
	z-index: -1000;
	position: fixed;
	top: 0; right: 0; bottom: 0; left: 0;
	width: 100vw;
	overflow-x: hidden;
	overflow-y: auto;
}

.dx-navbar.dx-navbar-fullscreen.dx-navbar-fullscreen-open {
	visibility: visible;
	opacity: 1;
	z-index: 1000;
}

.dx-navbar.dx-navbar-fullscreen .dx-navbar-content {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	padding: 90px 20px;
}

.dx-navbar.dx-navbar-fullscreen .dx-nav {
	display: flex;
	flex-direction: column;
}

.dx-navbar-burger,
.navbar-burger {
	cursor: pointer;
}


/* On small screens, make dropdowns flow in the document instead of absolute-positioned */
@media (max-width: 991.98px) {
	.navbar .navbar-dropdown {
		position: static;
		transform: none !important;
		opacity: 1 !important;
		visibility: visible !important;
		padding-left: 0;
		background: #fff;
		box-shadow: 0 6px 18px rgba(0,0,0,0.08);
		margin-top: 12px;
		padding: 12px 0;
	}
	.navbar .navbar-dropdown .nav-link {
		padding-left: 18px;
		text-transform: none;
		font-weight: 500;
	}

	/* show the triangle as a centered element above the static dropdown */
	.navbar .navbar-dropdown .navbar-dropdown-triangle {
		display: block;
		position: relative;
		width: 0;
		height: 0;
		margin: 0 auto 8px auto;
		border-left: 10px solid transparent;
		border-right: 10px solid transparent;
		border-bottom: 8px solid #fff;
	}

	/* ensure top-level item that opened the dropdown keeps a visual indicator */
	.navbar .nav-item-drop.open > .nav-link::after {
		content: '';
		display: inline-block;
		margin-left: 8px;
		border: 6px solid transparent;
		border-top-color: currentColor;
		vertical-align: middle;
	}
}
