/*
 Theme Name:        Maximum Asset Protection
 Theme URI:         https://nasiothemes.com/themes/prespa/
 Description:       Maximum Asset Protection serves as a child theme of Prespa Pro, inheriting all the features of Prespa Pro.
 Author:            Atanas Yonkov
 Author URI:        http://nasiothemes.com
 Template:          prespa-pro
 Requires at least: 6.1
 Tested up to:      6.9
 Requires PHP:      5.6
 Version:           1.0.0
 License:           GNU General Public License v2 or later
 License URI:       http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:       map
 Tags:              education, one-column, two-columns, three-columns, four-columns, grid-layout, right-sidebar, left-sidebar, block-patterns, wide-blocks, custom-colors, custom-header, custom-logo, custom-menu, featured-image-header, featured-images, footer-widgets, full-width-template, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready
*/

/* Menu */
@media (min-width: 54rem) {
  .site-branding {
    flex: 0 1 20%;
  }
  .main-navigation {
    flex: 100%;
  }
}

.header-content-wrapper {
  max-width: 77rem !important;
}

@media (min-width: 54rem) {
  .main-navigation a {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

.call-to-action a {
    font-weight: 700;
	border-radius: .375rem;
}

.call-to-action.wp-block-button .wp-block-button__link:hover {
	background-color: #E2C285 !important;
	border-color: #E2C285;
}

.current_page_item > a > span {
	color: #D6AD60 !important;
}

.alignfull {
	margin-bottom: 0 !important;
}

.site-wrapper {
	padding-bottom: 0;
}


/* Menu */

@media (min-width: 54rem) {
	.site-menu ul ul a {
		border-bottom: 0;
	}
	.site-menu li.menu-item-has-children > a::after,
	.site-menu li.page_item_has_children > a::after {
		content: '';
		display: inline-block;
		width: 12px;
		height: 12px;
		margin-left: 4px;
		vertical-align: -1px;
		opacity: 0.4;
		background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
		background-repeat: no-repeat;
		background-size: contain;
		transition: transform 0.3s ease;
	}
	.site-menu li.menu-item-has-children:hover > a::after,
	.site-menu li.page_item_has_children:hover > a::after,
	.site-menu li.menu-item-has-children.sfHover > a::after,
	.site-menu li.page_item_has_children.sfHover > a::after {
		transform: rotate(180deg);
	}
	.about-menu .sub-menu li ul {
		min-height: 130px;
		background-color: #fff;
	}

	.insights-menu .sub-menu li ul {
		min-height: 108px;
		background-color: #fff;
	}

	.site-menu .mega-menu ul a {
		box-shadow: none;
	}

	/* Rounded dropdown panels — matches Lovable card design */
	.site-menu ul ul {
		border-radius: 0.5rem;
		background-color: #fff;
		box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	}
	/* Outer panel: top corners only — inner sub-menus continue below it, so
	   bottom corners must be square or they create bumps at the junction. */
	.site-menu li.mega-menu > ul {
		border-radius: 0.5rem 0.5rem 0 0;
		box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	}
	/* Inner column sub-panels: white bg, no shadow/border (those caused phantom
	   lines), no radius — corners are handled per-column below. */
	.site-menu .mega-menu ul ul {
		background-color: #fff;
		box-shadow: none;
		border-radius: 0;
		border: none;
	}
	/* Round only the outer bottom corners — left on the first column,
	   right on the last. Inner-meeting corners stay square so columns
	   butt together without a visible gap or double-curve. */
	.site-menu .mega-menu > ul > li:first-child > ul {
		border-bottom-left-radius: 0.5rem;
	}
	.site-menu .mega-menu > ul > li:last-child > ul {
		border-bottom-right-radius: 0.5rem;
	}
	/*
	 * Match border-radius on every corner <a> element.
	 * Without this, the hover background-color fills the full <a> box and
	 * bleeds into the panel's rounded corners, making them look square on hover.
	 * The ul's border-radius clips only the ul's own background — not children's.
	 */
	.site-menu .mega-menu > ul > li:first-child > a {
		border-top-left-radius: 0.5rem;
	}
	.site-menu .mega-menu > ul > li:last-child > a {
		border-top-right-radius: 0.5rem;
	}
	.site-menu .mega-menu > ul > li:first-child > ul > li:last-child > a {
		border-bottom-left-radius: 0.5rem;
	}
	.site-menu .mega-menu > ul > li:last-child > ul > li:last-child > a {
		border-bottom-right-radius: 0.5rem;
	}
	/* Suppress chevron on items inside mega menu (belt-and-suspenders over
	   the parent theme's content:none rule which uses higher specificity). */
	.site-menu .mega-menu li > a::after {
		display: none;
	}
	/*
	 * Make link backgrounds transparent so the panel's own border-radius-clipped
	 * background shows at the corners instead of white <a> boxes bleeding into them.
	 * overflow:hidden is intentionally avoided — it clips absolutely-positioned
	 * flyout children (3rd-level sub-menus of Our Team, Our Philosophy, etc.).
	 */
	.site-menu ul ul a {
		background-color: transparent;
		border: none;
	}
	.site-menu ul ul a:hover,
	.site-menu ul ul a:focus {
		background-color: rgba(26, 54, 93, 0.05);
	}
}

/* Mobile sub-menu toggle: replace ▼ character with SVG chevron matching desktop */
.sub-menu-toggle i:after {
	content: '' !important;
	display: block !important;
	width: 14px !important;
	height: 14px !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-size: contain !important;
	position: static !important;
	font-size: 0 !important;
	transition: transform 0.3s ease;
}
.sub-menu-toggle[aria-expanded="true"] i:after {
	transform: rotate(180deg);
}

/* Footer */
.footer-widget h2 {
    font-size: 1.125rem;
}

.site-footer .widget-area {
	border-bottom: 1px solid #fff3;
}

.footer-content {
	position: relative;
}

@media (min-width: 54rem) {
	.footer-widget-1 {
		border-right: 1px solid #fff3;
	}
}

.site-info {
	text-align: left;
}

@media (min-width: 54rem){
	.footer-widget-1 {
  		width: 50%;
	}

	.privacy-menu {
		position: absolute;
		right: 0;
		bottom: -.25rem;
	}

	#menu-privacy-policy {
		margin-bottom: 0;
	}

	#menu-privacy-policy li {
		padding-bottom: 0;
	}
}

@media (min-width: 54rem) {
	.widget-column:not(:last-child) {
		border-right: 0;
	}
}

.site-footer .widget-area h2 {
    font-size: 1.125rem;
}

.site-footer .widget-area li:not(:last-child) {
  margin-bottom: .25rem;
}

#block-10 svg {
	margin-right: .25rem;
}

#menu-privacy-policy {
	display: flex;
	gap: 1.25rem;
}
/* Post meta */
.entry-meta > span {
	margin-right: 12px;
	display: flex;
	align-items: center;
}

/* Global styles */
.section {
	padding-top:    4rem;
	padding-bottom: 4rem;
}
@media (min-width: 768px) {
	.section {
		padding-top:    6rem;
		padding-bottom: 6rem;
	}
}

/* Blog posts */
.single .hentry .post-thumbnail {
  text-align: center;
}

.entry-meta {
    padding-bottom: 1rem;
}

/* Accordeon block */
.wp-block-nasio-block-accordion .nasio-accordion-item .nasio-accordion-item-header {
	border: 0 !important;
}
