/* =============================================================================
   Mega Menu — mega_menus.css
   ============================================================================= */

/* ── Design tokens ───────────────────────────────────────────────────────────── */

:root {
	--mm-bg:            rgba(55, 96, 79, 1);
	--mm-text:          #ffffff;
	--mm-badge-bg:      rgba(249, 243, 237, 1);
	--mm-badge-color:   rgba(50, 50, 50, 1);
	--mm-card-bg:       #ffffff;
	--mm-card-text:     #1e3d2c;
	--mm-gap:           48px;
	--mm-pad-y:         36px;
	--mm-pad-x:         30px;
	--mm-max-width:     1140px;
}

/* ── Trigger: nav <li> with a mega panel ────────────────────────────────────── */
/*
   position: static — keeps the header (sp-relative) as the containing block,
   so the panel is anchored to the bottom of the full header, not the <li>.
*/
.header-nav_item__mega {
    position: static;
    display: flex;
    height: 100%;
    align-items: center;
}

.header-nav_item__mega:before{display: none;}

.header-nav_item__mega .header-nav_link:before {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    height: 3px;
    width: 0;
    background: rgba(248, 157, 106, 1);
    transition: width .2s linear;
}

.header-nav_item__mega:hover .header-nav_link:before{
    width: 100%;
}

.mega-menu__panel.mega-menu__panel--two_cols.mega-menu__panel--testimonials .mega-menu__promo{margin-right: 70px;}

/* ── Panel ───────────────────────────────────────────────────────────────────── */

.mega-menu__panel {
	position: absolute;
    display: none;
	left:  0;
	right: 0;
	top:   100%;      /* flush with the bottom edge of <header class="sp-relative"> */
	z-index: 500;
    transition: ease 350ms opacity;
}

.header-nav_item__mega:hover > .mega-menu__panel {
    display: block;
    z-index: 700;
}

/* ── Inner wrapper ───────────────────────────────────────────────────────────── */

.mega-menu__inner {
	display: flex;
	align-items: flex-start;
	gap: var(--mm-gap);
	max-width: var(--mm-max-width);
	margin:  0 auto;
	padding: var(--mm-pad-y) var(--mm-pad-x);
    background: var(--mm-bg);
    box-sizing: border-box;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: ease 350ms opacity;
    transition-delay:500ms;
}

.header-nav_item__mega:hover > .mega-menu__panel .mega-menu__inner{
    opacity: 1;
    visibility: visible;
}

/* ── Content columns ─────────────────────────────────────────────────────────── */

.mega-menu__col {
	flex: 1;
	min-width: 0;
    position: relative;
    min-width: 395px;
}

.mega-menu__testimonial-card{
    width: 400px !important;
}


/* two_cols: first col is narrower (category list) 
.mega-menu__panel--two_cols   .mega-menu__col:first-child { flex: 0 0 160px; }
.mega-menu__panel--three_cols .mega-menu__col:first-child { flex: 0 0 160px; }
*/


.mega-menu__panel--two_cols .mega-menu__col:first-child { flex: 0 0 160px; }

.mega-menu__panel--two_cols  .mega-menu__promo {
  flex: 0 0 420px;
  width: 420px;
}

.mega-menu__panel--two_cols .mega-menu__promo-cards{
    display: flex;
    justify-content: space-between;
}

.mega-menu__panel--two_cols .mega-menu__promo-cards--testimonials{
   display: block;
   margin-left: -20px;
}

.mega-menu__panel--two_cols .mega-menu__promo-card{
    width: 200px;
}

.mega-menu__panel--two_cols .mega-menu__inner{
    justify-content: space-between;
}

.mega-menu__panel--two_cols .mega-menu__col{
    min-width: 475px;
}


.mega-menu__testimonial-card{background:none !important} 
.mega-menu__testimonial-card .mega-menu__testimonial-quote{
    font-size: 14px !important;
    line-height:120% !important;
    font-weight: 400 !important;
    font-style: normal !important;
    color:#fff !important;
    margin:0 0 18px !important;
}

.mega-menu__testimonial-meta{
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.mega-menu__testimonial-card .mega-menu__testimonial-avatar{
    width: 60px;
    height: 60px;
    object-fit: cover;
    border:2px solid #fff;
    border-radius: 50%;
    margin:0 20px 0 0;
}

.mega-menu__testimonial-name{
    display: block;
    font-size: 20px;
    line-height: 24px;
    text-transform: none;
    color:rgba(248, 157, 106, 1);
    font-weight: 700;
    margin:0 0 10px;
}

.mega-menu__testimonial-name,.mega-menu__testimonial-position{
   color:#fff;
   font-size: 14px;
   line-height: 18px;
}


.mega-menu__testimonials-prev,
.mega-menu__testimonials-next{
    background: none;
    cursor: pointer;
}

.mega-menu__testimonials-prev svg,
.mega-menu__testimonials-next svg{
    width: 12px;
    height: auto;
}



.mega-menu__testimonials-prev svg path,
.mega-menu__testimonials-next svg path{
    stroke: #fff;
}

.mega-menu__testimonials-prev:hover svg path,
.mega-menu__testimonials-next:hover svg path{
    stroke: #F89D6A;
}


.mega-menu__promo-header{
    position: relative;
}

.mega-menu__promo-header .mega-menu__testimonials-nav{
    position: absolute;
    right:0;
    top:5px;
    width: 65px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mega-menu__panel.mega-menu__panel--two_cols.testimonials .mega-menu__promo{
    margin-right: 70px;
}

/* ── Column title badge ──────────────────────────────────────────────────────── */

.mega-menu__col-title {
	display:       inline-block;
	margin:        0 0 20px;
	padding:       3px 10px 5px;
	background:    var(--mm-badge-bg);
	color:         var(--mm-badge-color);
	font-size:     20px;
	font-weight:   700;
	line-height:   21px;
	letter-spacing: 0;
}

/* ── Links list ──────────────────────────────────────────────────────────────── */

.mega-menu__links {
	list-style: none;
	margin:  0;
	padding: 0;
    max-width: 180px;
    width: 100%;
    
}

.mega-menu__links .mega-menu__sub-links{
    opacity: 0;
    visibility: hidden;
    position: absolute;
    left:192px;
    top:0;
    transition: ease 350ms opacity;
    font-size: 18px;
    font-weight: normal;
}

.mega-menu__link-item {
	margin-bottom: 20px;
    /*padding-right: 20px;*/
    box-sizing: border-box;
}

.mega-menu__link-item:hover > .mega-menu__sub-links,
.mega-menu__link-item.is-active > .mega-menu__sub-links {
    opacity: 1;
    visibility: visible;
}

.mega-menu__link-item:last-child {
	margin-bottom: 0;
}

/* ── Main link (category label) ──────────────────────────────────────────────── */

.mega-menu__main-link {
	display:         block;
	color:           var(--mm-text);
	font-size: 18px;
    line-height: 22px;
    font-weight: 500;
	text-decoration: none;
	transition: opacity 0.15s ease;
    position: relative;
}

.mega-menu__main-link .t-hold{
    position: relative;
    display: inline-block;
    vertical-align: top;
}
.mega-menu__main-link .t-hold:after{
    position: absolute;
    bottom:-5px;
    left:0;
    content:'';
    width: 0;
    height: 2px;
    background: rgba(248, 157, 106, 1);
    transition: ease 350ms all;
}

.mega-menu__main-link .t-hold:hover:after{
    width: 100%;
}

.mega-menu__link-item.is-active .t-hold:after{
    width: 100%;
}

/* ── Sub-links list ──────────────────────────────────────────────────────────── */

.mega-menu__sub-links {
	list-style: none;
	margin:  8px 0 0;
	padding: 0;
    
}

.mega-menu__sub-links li {
	margin-bottom: 12px;
}

.mega-menu__sub-links li:last-child {
	margin-bottom: 0;
}

/* ── Sub-link ────────────────────────────────────────────────────────────────── */

.mega-menu__sub-link {
	display:              block;
	color:                var(--mm-text);
	font-size: 18px;
    font-weight: normal;
	transition: opacity 0.15s ease;
    text-decoration:none;
}

.mega-menu__sub-link:hover {
	opacity: 0.7;
	color:   var(--mm-text);
}

/* ── Promo column (Blog / Testimonials) ──────────────────────────────────────── */

.mega-menu__promo {
	flex: 0 0 200px;
	width: 200px;
}

/* ── Blog / Post card ────────────────────────────────────────────────────────── */

.mega-menu__promo-card {
	display:         flex;
	flex-direction:  column;
	text-decoration: none;
	background:      var(--mm-card-bg);
	border-radius:   0;
	overflow:        hidden;
	margin-bottom:   14px;
    box-sizing: border-box;
    padding: 10px;
    background: #fff;
	transition:      transform 0.2s ease, box-shadow 0.2s ease;
    margin:0 0 20px;
}

/*
.mega-menu__promo-card:last-child {
	margin-bottom: 0;
}*/

.mega-menu__promo-card:hover {
	transform:   translateY(-2px);
	box-shadow:  0 6px 18px rgba(0, 0, 0, 0.25);
}

.mega-menu__promo-card img {
	width:       100%;
	height:      110px;
	object-fit:  cover;
	display:     block;
	flex-shrink: 0;
}

.mega-menu__promo-card-title {
	display:      block;
	padding:      10px 0 0;
	color:        var(--mm-card-text);
	font-size:    13px;
	font-weight:  600;
	line-height:  1.4;
}

/* ── Testimonial card ────────────────────────────────────────────────────────── */

.mega-menu__testimonial-card {
	display:         flex;
	flex-direction:  column;
	gap:             8px;
	text-decoration: none;
	background:      var(--mm-card-bg);
	border-radius:   4px;
	padding:         0;
	margin-bottom:   14px;
    padding: 0 20px;
}

.mega-menu__testimonial-card:last-child {
	margin-bottom: 0;
}

.mega-menu__testimonial-avatar {
	border-radius: 50%;
	object-fit:    cover;
	width:         40px;
	height:        40px;
}

.mega-menu__testimonial-quote {
	margin:     0;
	color:      var(--mm-card-text);
	font-size:  13px;
	font-style: italic;
	line-height: 1.5;
}

.mega-menu__testimonial-author {
	color:          var(--mm-card-text);
	font-size:      12px;
	font-weight:    700;
	letter-spacing: 0.03em;
}

.header-nav_item__dropdown:nth-child(3) .mega-menu__promo-cards{
	display: flex;
  	justify-content: space-between;
}

.header-nav_item__dropdown:nth-child(3) .mega-menu__promo-card {
  width: 200px;
}

.header-nav_item__dropdown:nth-child(3) .mega-menu__promo {
  flex: 0 0 420px;
  width: 420px;
}

.header-nav_item__dropdown:nth-child(3) .mega-menu__col {
  min-width: 280px;
}

@media all and (max-width: 1140px) {
    .mega-menu__col{
        min-width: 340px;
    }
    .mega-menu__promo {
        flex: 0 0 175px;
        width: 175px;
        margin-right: 40px;
    }
}




@media all and (max-width: 999px) {
    .header-nav_item__mega:hover .header-nav_link:before {
        display: none;
    }
    .header-nav_item__mega{
        height: auto;
        display: block;
    }
    .new-header .header-nav{
        padding-left: 20px;
        padding-right: 20px;
    }
    .mega-menu__inner{
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        padding: 0;
        display: block;
    }
    .mega-menu__promo,.mega-menu__col-title{display: none;}
    .mega-menu__panel,
    .mega-menu__links .mega-menu__sub-links{
        position: static;
        display: none;
    }
    .header-nav_item__show-dropdown_sp .mega-menu__panel{
        display: block;
    }
    .mega-menu__links .mega-menu__sub-links{display: none;}
    .mega-menu__col{
        margin:0 0 20px;
        min-width: 0;
    }

    .mega-menu__link-item.is-open .mega-menu__sub-links{
        display: block;
        opacity: 1;
        visibility: visible;
    }
    .mega-menu__links{max-width: 100%;}
    .mega-menu__main-link .t-hold:after{
        content: "";
        position: absolute;
        top: 50%;
        margin: 0 5px;
        width: 0 !important;
        height: 0 !important;
        border-style: solid;
        border-width: 3px 3px 0 3px;
        border-color: #fff transparent transparent;
        transform: translateY(-50%);
        transition: transform .2s linear;
        background: none;
        left: auto;
        right:-22px;
    }
    .mega-menu__main-link .t-hold:after:hover{
        width: 0 !important;
        height: 0 !important;
    }
    .mega-menu__sub-links li{margin-bottom: 15px;}
    .new-header .header-nav_link_black{margin-bottom: 20px;}

}