/*
 * Global shell QA fixes
 * Scope: all Jannah child-theme blog surfaces.
 */

@media (min-width: 992px) {
  body.wp-theme-jannah.wp-child-theme-jannah-child #theme-header #main-nav-menu > .menu > li,
  body.wp-theme-jannah.wp-child-theme-jannah-child #theme-header #main-nav-menu > .menu > li {
    display: block !important;
    position: relative !important;
    height: 78px;
  }

  body.wp-theme-jannah.wp-child-theme-jannah-child #theme-header #main-nav-menu > .menu > li > a,
  body.wp-theme-jannah.wp-child-theme-jannah-child #theme-header #main-nav-menu > .menu > li > a {
    margin-top: 18px;
  }

  body.wp-theme-jannah.wp-child-theme-jannah-child #theme-header #main-nav-menu > .menu > li.menu-item-has-children > ul.sub-menu,
  body.wp-theme-jannah.wp-child-theme-jannah-child #theme-header #main-nav-menu > .menu > li.menu-item-has-children > ul.sub-menu {
    top: 78px !important;
    margin-top: 0 !important;
  }

  body.wp-theme-jannah.wp-child-theme-jannah-child #theme-header #main-nav-menu > .menu > li.mega-menu,
  body.wp-theme-jannah.wp-child-theme-jannah-child #theme-header #main-nav-menu > .menu > li.mega-menu {
    position: static !important;
  }

  body.wp-theme-jannah.wp-child-theme-jannah-child #theme-header #main-nav-menu > .menu > li.mega-menu > .mega-menu-block,
  body.wp-theme-jannah.wp-child-theme-jannah-child #theme-header #main-nav-menu > .menu > li.mega-menu > .mega-menu-block {
    top: 78px !important;
    left: 50% !important;
    width: min(1120px, calc(100vw - 48px)) !important;
    max-height: calc(100vh - 126px);
    margin-top: 0 !important;
    padding: 28px 32px !important;
    border: 1px solid #e1e8e4;
    border-radius: 0 0 18px 18px;
    background: #fff;
    box-shadow: 0 24px 48px rgba(17, 40, 32, .14);
    transform: translateX(-50%) !important;
    overflow-x: hidden;
    overflow-y: auto;
  }

  body.wp-theme-jannah.wp-child-theme-jannah-child #theme-header #main-nav-menu > .menu > li.mega-menu > .mega-menu-block > .sub-menu-columns,
  body.wp-theme-jannah.wp-child-theme-jannah-child #theme-header #main-nav-menu > .menu > li.mega-menu > .mega-menu-block > .sub-menu-columns {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin: 0 !important;
  }

  body.wp-theme-jannah.wp-child-theme-jannah-child #theme-header #main-nav-menu > .menu > li.mega-menu .mega-link-column,
  body.wp-theme-jannah.wp-child-theme-jannah-child #theme-header #main-nav-menu > .menu > li.mega-menu .mega-link-column {
    width: auto !important;
    min-width: 0;
    padding: 0 28px !important;
    border-left: 1px solid #e8eeeb;
  }

  body.wp-theme-jannah.wp-child-theme-jannah-child #theme-header #main-nav-menu > .menu > li.mega-menu .mega-link-column:first-child,
  body.wp-theme-jannah.wp-child-theme-jannah-child #theme-header #main-nav-menu > .menu > li.mega-menu .mega-link-column:first-child {
    padding-left: 0 !important;
    border-left: 0;
  }

  body.wp-theme-jannah.wp-child-theme-jannah-child #theme-header #main-nav-menu > .menu > li.mega-menu .mega-link-column:last-child,
  body.wp-theme-jannah.wp-child-theme-jannah-child #theme-header #main-nav-menu > .menu > li.mega-menu .mega-link-column:last-child {
    padding-right: 0 !important;
  }

  body.wp-theme-jannah.wp-child-theme-jannah-child #theme-header #main-nav-menu > .menu > li.mega-menu .mega-links-head,
  body.wp-theme-jannah.wp-child-theme-jannah-child #theme-header #main-nav-menu > .menu > li.mega-menu .mega-links-head {
    margin-bottom: 8px;
    color: #16624f !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: .04em;
    line-height: 20px !important;
    text-transform: uppercase;
  }

  body.wp-theme-jannah.wp-child-theme-jannah-child #theme-header #main-nav-menu > .menu > li.mega-menu .sub-menu-columns-item > li > a,
  body.wp-theme-jannah.wp-child-theme-jannah-child #theme-header #main-nav-menu > .menu > li.mega-menu .sub-menu-columns-item > li > a {
    min-height: 38px;
    padding: 8px 0 !important;
    color: #27312d !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    line-height: 22px !important;
    white-space: normal;
  }
}

body.wp-theme-jannah.wp-child-theme-jannah-child #footer {
  padding-top: 28px !important;
}

body.wp-theme-jannah.wp-child-theme-jannah-child #footer > .sertifier-editorial-v2__footer-cta {
  margin-top: 0 !important;
}

@media (max-width: 700px) {
  body.wp-theme-jannah.wp-child-theme-jannah-child #footer {
    padding-top: 20px !important;
  }
}


/* Versioned global shell primitives. */
body.wp-theme-jannah.wp-child-theme-jannah-child {
  --sertifier-global-ink: #111;
  --sertifier-global-muted: #6e6e6e;
  --sertifier-global-green: #00a356;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--sertifier-global-ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.wp-theme-jannah.wp-child-theme-jannah-child .sertifier-global-header-cta {
  display: inline-flex !important;
  width: auto !important;
  height: 45px !important;
  min-height: 45px !important;
  align-items: center;
  justify-content: center;
  padding: 0 26px !important;
  border-radius: 999px;
  background: var(--sertifier-global-green);
  color: #fff !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  line-height: 22.5px !important;
  white-space: nowrap;
}

body.wp-theme-jannah.wp-child-theme-jannah-child .sertifier-global-header-cta-item {
  display: flex;
  height: 78px;
  align-items: center;
  margin-right: 12px;
}

body.wp-theme-jannah.wp-child-theme-jannah-child #footer {
  clear: both;
}

body.wp-theme-jannah.wp-child-theme-jannah-child .sertifier-global-footer-cta {
  display: flex;
  gap: 32px;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto 34px;
  padding: 28px 32px;
  border-radius: 18px;
  background: #eaf8f1;
  color: #122c26;
}

body.wp-theme-jannah.wp-child-theme-jannah-child .sertifier-global-footer-cta strong {
  display: block;
  margin-bottom: 5px;
  font-size: 24px;
  line-height: 31px;
}

body.wp-theme-jannah.wp-child-theme-jannah-child .sertifier-global-footer-cta p {
  margin: 0;
  color: #52645d;
  font-size: 15px;
  line-height: 23px;
}

body.wp-theme-jannah.wp-child-theme-jannah-child .sertifier-global-footer-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
}

body.wp-theme-jannah.wp-child-theme-jannah-child .sertifier-global-footer-actions a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid #0a765e;
  border-radius: 999px;
  color: #0a765e !important;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none !important;
}

body.wp-theme-jannah.wp-child-theme-jannah-child .sertifier-global-footer-actions a:first-child {
  background: #0a765e;
  color: #fff !important;
}

@media (max-width: 700px) {
  body.wp-theme-jannah.wp-child-theme-jannah-child .sertifier-global-footer-cta {
    display: block;
    width: calc(100% - 32px);
    margin-bottom: 24px;
    padding: 24px 20px;
  }

  body.wp-theme-jannah.wp-child-theme-jannah-child .sertifier-global-footer-actions {
    margin-top: 18px;
  }

  body.wp-theme-jannah.wp-child-theme-jannah-child .sertifier-global-footer-actions a {
    flex: 1 1 0;
  }
}
