/* Senin Biyolojin mega menu
================================================== */

@media only screen and (min-width: 992px) {
  .main-menu > ul > li.sb-has-mega {
    position: static;
  }

  .main-menu > ul > li.sb-has-mega > span > a:after {
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-size: 10px;
    font-weight: 900;
    margin-left: 7px;
    opacity: .75;
  }

  .main-menu > ul > li.sb-has-mega > ul.sb-mega-menu {
    background: #fff;
    border: 1px solid rgba(55, 39, 121, .1);
    border-radius: 14px;
    box-shadow: 0 18px 48px rgba(25, 20, 58, .22);
    display: grid;
    gap: 8px 12px;
    grid-template-columns: minmax(360px, 1.55fr) minmax(270px, 1fr);
    left: auto;
    min-width: 0;
    overflow: hidden;
    padding: 12px;
    right: 0;
    top: calc(100% + 12px);
    transform: translateY(12px);
    width: min(780px, calc(100vw - 60px));
  }

  .main-menu > ul > li.sb-has-mega > ul.sb-mega-menu:before {
    display: none;
  }

  .main-menu > ul > li.sb-has-mega:hover > ul.sb-mega-menu,
  .main-menu > ul > li.sb-has-mega:focus-within > ul.sb-mega-menu {
    opacity: 1;
    padding: 12px;
    transform: translateY(0);
    visibility: visible;
  }

  .main-menu ul ul.sb-mega-menu li {
    min-width: 0;
  }

  .main-menu ul ul.sb-mega-menu li.sb-mega-feature {
    grid-column: 1;
    grid-row: 1 / span 10;
  }

  .main-menu ul ul.sb-mega-menu li.sb-mega-feature > a {
    background: linear-gradient(135deg, #4a277c 0%, #8b3c79 100%);
    border: 0;
    border-radius: 10px;
    color: #fff;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: center;
    min-height: 228px;
    overflow: hidden;
    padding: 28px 30px;
    position: relative;
    white-space: normal;
  }

  .main-menu ul ul.sb-mega-menu li.sb-mega-feature > a:after {
    background: rgba(255, 255, 255, .08);
    border-radius: 50%;
    content: "";
    height: 190px;
    position: absolute;
    right: -55px;
    top: -70px;
    width: 190px;
  }

  .main-menu ul ul.sb-mega-menu li.sb-mega-feature:hover > a {
    color: #fff;
    padding-left: 30px;
    transform: translateY(-1px);
  }

  .sb-mega-theme-green .sb-mega-feature > a {
    background: linear-gradient(135deg, #0b6b59 0%, #159477 100%) !important;
  }

  .sb-mega-theme-orange .sb-mega-feature > a {
    background: linear-gradient(135deg, #b84918 0%, #ed8127 100%) !important;
  }

  .sb-mega-theme-blue .sb-mega-feature > a {
    background: linear-gradient(135deg, #1f4f91 0%, #3578c8 100%) !important;
  }

  .main-menu .sb-mega-card-theme-purple > a { background: linear-gradient(135deg, #4a277c 0%, #8b3c79 100%) !important; }
  .main-menu .sb-mega-card-theme-green > a { background: linear-gradient(135deg, #0b6b59 0%, #159477 100%) !important; }
  .main-menu .sb-mega-card-theme-orange > a { background: linear-gradient(135deg, #b84918 0%, #ed8127 100%) !important; }
  .main-menu .sb-mega-card-theme-blue > a { background: linear-gradient(135deg, #1f4f91 0%, #3578c8 100%) !important; }

  .main-menu > ul > li.sb-mega-layout-double > ul.sb-mega-menu {
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(820px, calc(100vw - 60px));
  }

  .main-menu ul ul.sb-mega-menu li.sb-mega-feature-primary {
    grid-column: 1;
  }

  .main-menu ul ul.sb-mega-menu li.sb-mega-feature-secondary {
    grid-column: 2;
  }

  .main-menu ul ul.sb-mega-menu li.sb-mega-feature-secondary,
  .main-menu > ul > li.sb-mega-layout-double > ul.sb-mega-menu li.sb-mega-feature {
    grid-row: 1;
  }

  .main-menu > ul > li.sb-mega-layout-double > ul.sb-mega-menu li.sb-mega-feature > a {
    min-height: 254px;
    padding: 27px 25px;
  }

  .main-menu > ul > li.sb-mega-layout-double > ul.sb-mega-menu li.sb-mega-feature:hover > a {
    padding-left: 25px;
  }

  .main-menu > ul > li.sb-mega-layout-double > ul.sb-mega-menu li.sb-mega-link {
    grid-column: auto;
  }

  .main-menu > ul > li.sb-mega-layout-double > ul.sb-mega-menu li.sb-mega-link > a {
    background: #f8f9fb;
    border-color: #edf0f4;
    min-height: 68px;
  }

  .sb-mega-badge {
    align-self: flex-start;
    background: #ffc107;
    border-radius: 20px;
    color: #372675;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .6px;
    margin-bottom: 18px;
    padding: 7px 11px;
    position: relative;
    text-transform: uppercase;
    z-index: 1;
  }

  .sb-mega-feature strong {
    color: #fff;
    font-size: 23px;
    line-height: 1.2;
    position: relative;
    white-space: normal;
    z-index: 1;
  }

  .sb-mega-feature small {
    color: rgba(255, 255, 255, .82);
    font-size: 13px;
    line-height: 1.55;
    margin-top: 8px;
    position: relative;
    white-space: normal;
    z-index: 1;
  }

  .sb-mega-button {
    align-items: center;
    align-self: flex-start;
    background: #ffc107;
    border-radius: 7px;
    color: #33275f;
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    gap: 9px;
    margin-top: 22px;
    padding: 11px 15px;
    position: relative;
    z-index: 1;
  }

  .main-menu ul ul.sb-mega-menu li.sb-mega-link {
    grid-column: 2;
  }

  .main-menu ul ul.sb-mega-menu li.sb-mega-link > a {
    align-items: center;
    border: 1px solid transparent;
    border-radius: 9px;
    color: #3f4652;
    display: flex;
    gap: 12px;
    line-height: 1.25;
    min-height: 64px;
    padding: 10px 12px;
    white-space: normal;
  }

  .main-menu ul ul.sb-mega-menu li.sb-mega-link:hover > a,
  .main-menu ul ul.sb-mega-menu li.sb-mega-link > a:focus {
    background: #f4f0fb;
    border-color: #e5dcf2;
    color: #392779;
    padding-left: 12px;
  }

  .sb-mega-theme-green .sb-mega-link:hover > a,
  .sb-mega-theme-green .sb-mega-link > a:focus {
    background: #edf8f4 !important;
    border-color: #d7eee5 !important;
    color: #0b6b59 !important;
  }

  .sb-mega-theme-orange .sb-mega-link:hover > a,
  .sb-mega-theme-orange .sb-mega-link > a:focus {
    background: #fff4ec !important;
    border-color: #f8dfcf !important;
    color: #a9461c !important;
  }

  .sb-mega-theme-blue .sb-mega-link:hover > a,
  .sb-mega-theme-blue .sb-mega-link > a:focus {
    background: #edf4fc !important;
    border-color: #d9e7f7 !important;
    color: #1f4f91 !important;
  }

  .sb-mega-link-icon {
    align-items: center;
    background: #f0ebf8;
    border-radius: 8px;
    color: #6c3ca0;
    display: flex;
    flex: 0 0 39px;
    font-size: 15px;
    height: 39px;
    justify-content: center;
  }

  .sb-mega-theme-green .sb-mega-link-icon { background: #e3f4ee; color: #0b7c65; }
  .sb-mega-theme-orange .sb-mega-link-icon { background: #fff0e6; color: #c25b27; }
  .sb-mega-theme-blue .sb-mega-link-icon { background: #e5f0fb; color: #2864aa; }

  .sb-mega-link-copy {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
  }

  .sb-mega-link-copy strong {
    color: inherit;
    font-size: 13px;
    font-weight: 700;
    white-space: normal;
  }

  .sb-mega-link-copy small {
    color: #89919d;
    font-size: 11px;
    line-height: 1.35;
    margin-top: 4px;
    white-space: normal;
  }

  .sb-mega-link-arrow {
    color: #a3a9b2;
    font-size: 10px;
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity .18s ease, transform .18s ease;
  }

  .sb-mega-link:hover .sb-mega-link-arrow,
  .sb-mega-link > a:focus .sb-mega-link-arrow {
    opacity: 1;
    transform: translateX(0);
  }
}

@media only screen and (min-width: 992px) and (max-width: 1280px) {
  .main-menu > ul > li span > a {
    font-size: 11px;
    letter-spacing: .8px;
    padding-left: 5px;
    padding-right: 5px;
  }

  .main-menu > ul > li.sb-has-mega > ul.sb-mega-menu {
    width: min(720px, calc(100vw - 40px));
  }

  .main-menu > ul > li.sb-mega-layout-double > ul.sb-mega-menu {
    width: min(760px, calc(100vw - 40px));
  }
}

@media only screen and (max-width: 991px) {
  .mm-menu .sb-mega-feature > a {
    background: #f3eff9;
    border-left: 4px solid #6c3ca0;
    display: flex !important;
    flex-direction: column;
    padding-bottom: 16px !important;
    padding-top: 16px !important;
  }

  .mm-menu .sb-mega-theme-green .sb-mega-feature > a { background: #edf8f4; border-left-color: #0b7c65; }
  .mm-menu .sb-mega-theme-orange .sb-mega-feature > a { background: #fff4ec; border-left-color: #c25b27; }
  .mm-menu .sb-mega-theme-blue .sb-mega-feature > a { background: #edf4fc; border-left-color: #2864aa; }

  .mm-menu .sb-has-mega .sb-mega-card-theme-purple > a { background: #f3eff9 !important; border-left-color: #6c3ca0 !important; }
  .mm-menu .sb-has-mega .sb-mega-card-theme-green > a { background: #edf8f4 !important; border-left-color: #0b7c65 !important; }
  .mm-menu .sb-has-mega .sb-mega-card-theme-orange > a { background: #fff4ec !important; border-left-color: #c25b27 !important; }
  .mm-menu .sb-has-mega .sb-mega-card-theme-blue > a { background: #edf4fc !important; border-left-color: #2864aa !important; }

  .mm-menu .sb-mega-layout-double .sb-mega-feature-secondary {
    margin-top: 2px;
  }

  .mm-menu .sb-mega-badge {
    color: #8b6500;
    font-size: 10px;
    font-weight: 700;
    margin-bottom: 5px;
    text-transform: uppercase;
  }

  .mm-menu .sb-mega-feature strong,
  .mm-menu .sb-mega-link-copy strong {
    color: #3b334b;
    font-size: 14px;
  }

  .mm-menu .sb-mega-feature small,
  .mm-menu .sb-mega-link-copy small {
    color: #85808e;
    display: block;
    font-size: 11px;
    line-height: 1.4;
    margin-top: 3px;
    white-space: normal;
  }

  .mm-menu .sb-mega-button {
    color: #6c3ca0;
    font-size: 11px;
    font-weight: 700;
    margin-top: 7px;
  }

  .mm-menu .sb-mega-link > a {
    align-items: center;
    display: flex !important;
    gap: 10px;
  }

  .mm-menu .sb-mega-link-icon {
    color: #6c3ca0;
    flex: 0 0 22px;
    text-align: center;
  }

  .mm-menu .sb-mega-link-copy {
    min-width: 0;
  }

  .mm-menu .sb-mega-link-arrow {
    display: none;
  }
}
