/* Site-header anchored mega surface (avoid off-screen panel at mid widths). */
@media (min-width:1025px){
  .haa-v2-header .haa-v2-nav,
  #site-navigation.main-navigation .inside-navigation{position:static!important}
}
/* HAA Mega Menu Universal 2026-10-25. Scope: primary header dropdown; no content or database changes. */
@media (min-width:1025px){
  :is(.haa-v2-header, .main-navigation, .haa-mega-custom-header) .haa-v23-mega-hamilelik{
    position:static!important;
  }
  :is(.haa-v2-header, .main-navigation, .haa-mega-custom-header) .haa-v23-mega-hamilelik > .sub-menu{
    box-sizing:border-box!important;
    display:grid!important;
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    align-items:stretch!important;
    gap:14px!important;
    position:absolute!important;
    top:calc(100% - 1px)!important;
    left:50%!important;
    right:auto!important;
    width:min(1080px,calc(100vw - 32px))!important;
    min-width:0!important;
    max-width:calc(100vw - 32px)!important;
    height:auto!important;
    max-height:none!important;
    padding:20px!important;
    margin:0!important;
    border:1px solid #efdfe5!important;
    border-radius:24px!important;
    background:linear-gradient(145deg,#fff6f8 0%,#fff 45%,#f6fefa 100%)!important;
    box-shadow:0 26px 64px rgba(30,45,65,.17)!important;
    overflow:visible!important;
    opacity:0!important;
    visibility:hidden!important;
    pointer-events:none!important;
    transform:translate(-50%,10px)!important;
    transition:opacity .16s ease,transform .16s ease,visibility .16s!important;
    z-index:9999!important;
  }
  :is(.haa-v2-header, .main-navigation, .haa-mega-custom-header) .haa-v23-mega-hamilelik:is(:hover,:focus-within,.sfHover) > .sub-menu{
    opacity:1!important;
    visibility:visible!important;
    pointer-events:auto!important;
    transform:translate(-50%,0)!important;
  }
  :is(.haa-v2-header, .main-navigation, .haa-mega-custom-header) .haa-v23-mega-hamilelik > .sub-menu > li{
    box-sizing:border-box!important;
    float:none!important;
    position:relative!important;
    min-width:0!important;
    width:auto!important;
    max-width:100%!important;
    margin:0!important;
    padding:14px!important;
    border:1px solid #f0e4e8!important;
    border-radius:18px!important;
    background:#fff!important;
    box-shadow:0 8px 25px rgba(28,46,65,.055)!important;
    overflow:hidden!important;
  }
  :is(.haa-v2-header, .main-navigation, .haa-mega-custom-header) .haa-v23-mega-hamilelik > .sub-menu > li:nth-child(1){background:linear-gradient(155deg,#fff4f7 0%,#fff 76%)!important}
  :is(.haa-v2-header, .main-navigation, .haa-mega-custom-header) .haa-v23-mega-hamilelik > .sub-menu > li:nth-child(2){background:linear-gradient(155deg,#fff8ee 0%,#fff 76%)!important}
  :is(.haa-v2-header, .main-navigation, .haa-mega-custom-header) .haa-v23-mega-hamilelik > .sub-menu > li:nth-child(3){background:linear-gradient(155deg,#f1f6ff 0%,#fff 76%)!important}
  :is(.haa-v2-header, .main-navigation, .haa-mega-custom-header) .haa-v23-mega-hamilelik > .sub-menu > li:nth-child(4){background:linear-gradient(155deg,#eef9f5 0%,#fff 76%)!important}
  :is(.haa-v2-header, .main-navigation, .haa-mega-custom-header) .haa-v23-mega-hamilelik > .sub-menu > li > a{
    box-sizing:border-box!important;
    display:grid!important;
    grid-template-columns:44px minmax(0,1fr)!important;
    grid-template-rows:auto auto!important;
    column-gap:11px!important;
    row-gap:3px!important;
    align-items:center!important;
    width:100%!important;
    min-width:0!important;
    min-height:76px!important;
    height:auto!important;
    padding:5px 2px 11px!important;
    margin:0 0 9px!important;
    color:#14354b!important;
    border:0!important;
    border-bottom:1px solid #ecdfe5!important;
    background:transparent!important;
    border-radius:0!important;
    text-align:left!important;
    text-decoration:none!important;
    font-size:15px!important;
    line-height:1.25!important;
    font-weight:800!important;
    letter-spacing:-.15px!important;
    white-space:normal!important;
    overflow-wrap:break-word!important;
    word-break:normal!important;
  }
  :is(.haa-v2-header, .main-navigation, .haa-mega-custom-header) .haa-v23-mega-hamilelik > .sub-menu > li > a .dropdown-menu-toggle{
    display:none!important;
  }
  :is(.haa-v2-header, .main-navigation, .haa-mega-custom-header) .haa-v23-mega-hamilelik > .sub-menu > li > a::before{
    box-sizing:border-box!important;
    grid-column:1!important;
    grid-row:1 / span 2!important;
    display:grid!important;
    place-items:center!important;
    align-self:start!important;
    width:42px!important;
    height:42px!important;
    margin:0!important;
    border-radius:13px!important;
    font-size:22px!important;
    line-height:1!important;
    box-shadow:inset 0 0 0 1px rgba(255,255,255,.8)!important;
  }
  :is(.haa-v2-header, .main-navigation, .haa-mega-custom-header) .haa-v23-mega-hamilelik > .sub-menu > li > a::after{
    box-sizing:border-box!important;
    grid-column:2!important;
    grid-row:2!important;
    display:block!important;
    position:static!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    height:auto!important;
    margin:0!important;
    padding:0!important;
    background:none!important;
    border:0!important;
    color:#748595!important;
    font-size:11px!important;
    line-height:1.35!important;
    font-weight:550!important;
    letter-spacing:0!important;
    white-space:normal!important;
    overflow-wrap:break-word!important;
    word-break:normal!important;
    text-align:left!important;
  }
  :is(.haa-v2-header, .main-navigation, .haa-mega-custom-header) .haa-v23-mega-pregnancy > a::before{content:"🤰"!important;background:#ffe6ee!important}
  :is(.haa-v2-header, .main-navigation, .haa-mega-custom-header) .haa-v23-mega-life > a::before{content:"🌿"!important;background:#fff0db!important}
  :is(.haa-v2-header, .main-navigation, .haa-mega-custom-header) .haa-v23-mega-prep > a::before{content:"✓"!important;background:#e9efff!important;color:#5973bb!important}
  :is(.haa-v2-header, .main-navigation, .haa-mega-custom-header) .haa-v23-mega-birth > a::before{content:"👶"!important;background:#e2f4ee!important}
  :is(.haa-v2-header, .main-navigation, .haa-mega-custom-header) .haa-v23-mega-pregnancy > a::after{content:"Hafta hafta gelişim, belirtiler ve testler"!important}
  :is(.haa-v2-header, .main-navigation, .haa-mega-custom-header) .haa-v23-mega-life > a::after{content:"Beslenme, günlük yaşam ve rahatlık"!important}
  :is(.haa-v2-header, .main-navigation, .haa-mega-custom-header) .haa-v23-mega-prep > a::after{content:"Doğuma hazırlık ve merak edilenler"!important}
  :is(.haa-v2-header, .main-navigation, .haa-mega-custom-header) .haa-v23-mega-birth > a::after{content:"Doğum süreci ve lohusalık"!important}
  :is(.haa-v2-header, .main-navigation, .haa-mega-custom-header) .haa-v23-mega-hamilelik > .sub-menu > li > .sub-menu{
    display:block!important;
    box-sizing:border-box!important;
    position:static!important;
    float:none!important;
    left:auto!important;right:auto!important;top:auto!important;
    width:100%!important;
    min-width:0!important;max-width:100%!important;
    height:auto!important;max-height:none!important;
    padding:2px 0 0!important;
    margin:0!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
    opacity:1!important;visibility:visible!important;
    transform:none!important;
    overflow:visible!important;
    pointer-events:auto!important;
  }
  :is(.haa-v2-header, .main-navigation, .haa-mega-custom-header) .haa-v23-mega-hamilelik > .sub-menu > li > .sub-menu li{
    display:block!important;
    float:none!important;
    width:100%!important;
    min-width:0!important;
    margin:0!important;
    padding:0!important;
  }
  :is(.haa-v2-header, .main-navigation, .haa-mega-custom-header) .haa-v23-mega-hamilelik > .sub-menu > li > .sub-menu a{
    box-sizing:border-box!important;
    position:relative!important;
    display:block!important;
    width:100%!important;
    height:auto!important;
    min-height:36px!important;
    padding:9px 7px 9px 23px!important;
    margin:0!important;
    border:0!important;
    border-radius:8px!important;
    color:#41576a!important;
    background:transparent!important;
    text-decoration:none!important;
    font-size:13px!important;
    font-weight:650!important;
    line-height:1.35!important;
    white-space:normal!important;
    overflow-wrap:break-word!important;
    word-break:normal!important;
    transition:background .15s ease,color .15s ease!important;
  }
  :is(.haa-v2-header, .main-navigation, .haa-mega-custom-header) .haa-v23-mega-hamilelik > .sub-menu > li > .sub-menu a::before{
    content:""!important;
    position:absolute!important;
    top:50%!important;
    left:9px!important;
    width:6px!important;
    height:6px!important;
    margin-top:-3px!important;
    border-radius:50%!important;
    background:#ed9ab0!important;
    box-shadow:0 0 0 4px rgba(237,154,176,.10)!important;
  }
  :is(.haa-v2-header, .main-navigation, .haa-mega-custom-header) .haa-v23-mega-hamilelik > .sub-menu > li:nth-child(2) > .sub-menu a::before{background:#e4a157!important}
  :is(.haa-v2-header, .main-navigation, .haa-mega-custom-header) .haa-v23-mega-hamilelik > .sub-menu > li:nth-child(3) > .sub-menu a::before{background:#7483c9!important}
  :is(.haa-v2-header, .main-navigation, .haa-mega-custom-header) .haa-v23-mega-hamilelik > .sub-menu > li:nth-child(4) > .sub-menu a::before{background:#59a28c!important}
  :is(.haa-v2-header, .main-navigation, .haa-mega-custom-header) .haa-v23-mega-hamilelik > .sub-menu > li > .sub-menu a:hover,
  :is(.haa-v2-header, .main-navigation, .haa-mega-custom-header) .haa-v23-mega-hamilelik > .sub-menu > li > .sub-menu .current-menu-item > a{
    background:rgba(255,227,237,.55)!important;color:#db5577!important;
  }
  :is(.haa-v2-header, .main-navigation, .haa-mega-custom-header) .haa-v23-mega-hamilelik > .sub-menu::before{
    content:""!important;
    display:block!important;
    position:absolute!important;
    width:14px!important;
    height:14px!important;
    left:50%!important;
    top:-8px!important;
    background:#fff8fa!important;
    border-left:1px solid #efdfe5!important;
    border-top:1px solid #efdfe5!important;
    transform:translateX(-50%) rotate(45deg)!important;
  }
  :is(.haa-v2-header, .main-navigation, .haa-mega-custom-header) .haa-v23-mega-hamilelik > .sub-menu::after{
    content:"Hamilelik yolculuğunuzun her adımında yanınızdayız ♥"!important;
    position:absolute!important;
    left:20px!important;right:20px!important;
    bottom:-30px!important;
    height:29px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    border:1px solid #f0e2e7!important;border-top:0!important;
    border-radius:0 0 16px 16px!important;
    background:#fff9fb!important;color:#846f7a!important;
    font-size:11px!important;
    letter-spacing:0!important;
    white-space:normal!important;
  }
}
@media (min-width:1025px) and (max-width:1150px){
  :is(.haa-v2-header, .main-navigation, .haa-mega-custom-header) .haa-v23-mega-hamilelik>.sub-menu{
    width:min(990px,calc(100vw - 28px))!important;
    padding:14px!important;
    gap:10px!important;
  }
  :is(.haa-v2-header, .main-navigation, .haa-mega-custom-header) .haa-v23-mega-hamilelik>.sub-menu>li{padding:11px!important}
  :is(.haa-v2-header, .main-navigation, .haa-mega-custom-header) .haa-v23-mega-hamilelik>.sub-menu>li>a{font-size:14px!important;column-gap:8px!important}
}
@media (max-width:1024px){
  .haa-v2-header .haa-v23-mega-hamilelik>.sub-menu,
  .main-navigation .haa-v23-mega-hamilelik>.sub-menu{max-width:100%!important}
  .haa-v2-header .haa-v23-mega-hamilelik .sub-menu a{white-space:normal!important;overflow-wrap:break-word!important}
}


/* Extend the same mega menu to unique Hamilelik/Bebek content headers. */
@media (min-width:1025px){
  .haa-mega-custom-header{
    overflow:visible!important;
    z-index:150!important;
  }
  .haa-mega-custom-header.haa-mega-static-header{
    position:relative!important;
  }
  .haa-mega-custom-header nav[class*="haa-"]{
    position:static!important;
    overflow:visible!important;
  }
  .haa-mega-custom-header .haa-sitewide-mega-holder{
    display:contents!important;
  }
  .haa-mega-custom-header .haa-sitewide-mega-holder>.sub-menu{
    list-style:none!important;
  }
  :is(.haa-v2-header, .main-navigation, .haa-mega-custom-header) .haa-v23-mega-hamilelik>.sub-menu>li.haa-v23-mega-group>a{
    cursor:default!important;
    pointer-events:none!important;
  }
}
@media (max-width:1024px){
  .haa-mega-custom-header .haa-sitewide-mega-holder{
    display:none!important;
  }
}
@media (min-width:1025px) and (max-height:500px){
  :is(.haa-v2-header, .main-navigation, .haa-mega-custom-header) .haa-v23-mega-hamilelik>.sub-menu{
    max-height:calc(100dvh - 110px)!important;
    overflow-y:auto!important;
    overscroll-behavior:contain!important;
  }
  :is(.haa-v2-header, .main-navigation, .haa-mega-custom-header) .haa-v23-mega-hamilelik>.sub-menu::after,
  :is(.haa-v2-header, .main-navigation, .haa-mega-custom-header) .haa-v23-mega-hamilelik>.sub-menu::before{
    display:none!important;
  }
}


/* Pointer bridge for GeneratePress header; prevent the 20px hover dead zone. */
@media (min-width:1025px){
  #site-navigation.main-navigation .haa-v23-mega-hamilelik>.sub-menu{
    top:calc(100% - 20px)!important;
  }
}


/* Accessible single-column pregnancy navigation on bespoke mobile content headers. */
.haa-mega-custom-header .haa-mobile-mega-toggle{display:none!important}
.haa-mega-custom-header .haa-mobile-category-panel{display:none!important}
@media(max-width:1024px){
  .haa-mega-custom-header{
    overflow:visible!important;
    z-index:180!important;
  }
  .haa-mega-custom-header .haa-mobile-mega-toggle{
    flex:0 0 29px!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    align-self:center!important;
    box-sizing:border-box!important;
    width:29px!important;
    height:31px!important;
    padding:0!important;
    margin:0 4px 0 -8px!important;
    border:1px solid #f5dce5!important;
    border-radius:10px!important;
    background:#fff0f5!important;
    box-shadow:none!important;
    color:#b9446a!important;
    font-size:22px!important;
    line-height:1!important;
    font-weight:700!important;
    cursor:pointer!important;
  }
  .haa-mega-custom-header .haa-mobile-mega-toggle[aria-expanded="true"]{
    background:#fce2ec!important;
    color:#a12c54!important;
  }
  .haa-mega-custom-header .haa-mobile-category-panel{
    box-sizing:border-box!important;
    display:none!important;
    position:absolute!important;
    left:14px!important;
    top:calc(100% - 1px)!important;
    right:14px!important;
    width:auto!important;
    min-width:0!important;
    max-width:calc(100vw - 28px)!important;
    max-height:min(68dvh,630px)!important;
    margin:0!important;
    padding:12px!important;
    border:1px solid #eddbe3!important;
    border-radius:0 0 20px 20px!important;
    background:rgba(255,251,252,.99)!important;
    box-shadow:0 20px 45px rgba(23,39,52,.19)!important;
    overflow-x:hidden!important;
    overflow-y:auto!important;
    overscroll-behavior:contain!important;
    z-index:99999!important;
    list-style:none!important;
  }
  .haa-mega-custom-header .haa-mobile-category-panel.is-open{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:11px!important;
  }
  .haa-mega-custom-header .haa-mobile-category-panel>li{
    display:block!important;
    min-width:0!important;
    width:100%!important;
    list-style:none!important;
    margin:0!important;
    padding:12px!important;
    border:1px solid #f2e5e8!important;
    border-radius:16px!important;
    background:#fff!important;
  }
  .haa-mega-custom-header .haa-mobile-category-panel>li:nth-child(1){background:#fff7fa!important}
  .haa-mega-custom-header .haa-mobile-category-panel>li:nth-child(2){background:#fff9f2!important}
  .haa-mega-custom-header .haa-mobile-category-panel>li:nth-child(3){background:#f7f9ff!important}
  .haa-mega-custom-header .haa-mobile-category-panel>li:nth-child(4){background:#f5fcfa!important}
  .haa-mega-custom-header .haa-mobile-category-panel>li>a{
    display:block!important;
    width:100%!important;
    margin:0 0 8px!important;
    padding:2px 0 9px!important;
    background:none!important;
    border:0!important;
    border-bottom:1px solid #efdee5!important;
    color:#123349!important;
    font-size:15px!important;
    font-weight:800!important;
    line-height:1.3!important;
    white-space:normal!important;
    pointer-events:none!important;
    text-decoration:none!important;
  }
  .haa-mega-custom-header .haa-mobile-category-panel>li>a::after{content:none!important}
  .haa-mega-custom-header .haa-mobile-category-panel>li>.sub-menu{
    box-sizing:border-box!important;
    display:block!important;
    width:100%!important;
    min-width:0!important;
    position:static!important;
    padding:0!important;
    margin:0!important;
    border:0!important;
    box-shadow:none!important;
    background:transparent!important;
    list-style:none!important;
  }
  .haa-mega-custom-header .haa-mobile-category-panel>li>.sub-menu>li{
    display:block!important;
    width:100%!important;
    list-style:none!important;
    margin:0!important;
  }
  .haa-mega-custom-header .haa-mobile-category-panel>li>.sub-menu>li>a{
    display:block!important;
    box-sizing:border-box!important;
    width:100%!important;
    padding:9px 10px!important;
    margin:1px 0!important;
    color:#465e71!important;
    border-radius:9px!important;
    background:transparent!important;
    font-size:13px!important;
    font-weight:600!important;
    line-height:1.45!important;
    text-decoration:none!important;
    white-space:normal!important;
    overflow-wrap:break-word!important;
  }
  .haa-mega-custom-header .haa-mobile-category-panel>li>.sub-menu>li>a:hover,
  .haa-mega-custom-header .haa-mobile-category-panel>li>.sub-menu>li>a:focus{
    background:#ffeef3!important;
    color:#c94369!important;
  }
}
@media (min-width:650px) and (max-width:1024px){
  .haa-mega-custom-header .haa-mobile-category-panel.is-open{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}
