@media (min-width: 1200px) {
  .head-mid {
    position: relative;
  }

  .tbm .tbm-nav,
  .tbm .tbm-item.level-1 {
    position: static;
  }

  .tbm .tbm-item.level-1 > .tbm-submenu {
    left: 0;
    right: 0;
    width: min(1280px, calc(100vw - 40px)) !important;
    max-height: calc(100vh - 140px);
    margin: 0 auto;
    padding: 28px 32px 32px;
    overflow-y: auto;
    border: 0;
    border-radius: 0 0 8px 8px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
    box-sizing: border-box;
  }

  .tbm:not(.tbm--mobile)
    .tbm-item.level-1.tbm-item--has-dropdown.ctiv-hover-open
    > .tbm-submenu {
    display: block !important;
  }

  /* Columns follow the TB Megamenu grid; image blocks go in the last column. */
  .tbm .tbm-item.level-1 > .tbm-submenu > .tbm-row {
    display: flex;
    gap: 32px;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .tbm .tbm-item.level-1 > .tbm-submenu .tbm-column {
    float: none;
    margin: 0;
    padding: 0;
    min-width: 0;
    flex: 1 1 0;
  }

  .tbm .tbm-item.level-1 > .tbm-submenu .tbm-column.span12 { flex: 1 1 100%; }
  .tbm .tbm-item.level-1 > .tbm-submenu .tbm-column.span10 { flex: 0 0 calc(83.333% - 27px); }
  .tbm .tbm-item.level-1 > .tbm-submenu .tbm-column.span9 { flex: 0 0 calc(75% - 24px); }
  .tbm .tbm-item.level-1 > .tbm-submenu .tbm-column.span8 { flex: 0 0 calc(66.666% - 21px); }
  .tbm .tbm-item.level-1 > .tbm-submenu .tbm-column.span7 { flex: 0 0 calc(58.333% - 19px); }
  .tbm .tbm-item.level-1 > .tbm-submenu .tbm-column.span6 { flex: 0 0 calc(50% - 16px); }
  .tbm .tbm-item.level-1 > .tbm-submenu .tbm-column.span5 { flex: 0 0 calc(41.666% - 13px); }
  .tbm .tbm-item.level-1 > .tbm-submenu .tbm-column.span4 { flex: 0 0 calc(33.333% - 11px); }
  .tbm .tbm-item.level-1 > .tbm-submenu .tbm-column.span3 { flex: 0 0 calc(25% - 8px); }
  .tbm .tbm-item.level-1 > .tbm-submenu .tbm-column.span2 { flex: 0 0 calc(16.666% - 5px); }

  .tbm .tbm-item.level-1 > .tbm-submenu .tbm-block img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
  }

  .tbm .tbm-subnav.level-1 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px 40px;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .tbm .tbm-subnav.level-1 > .tbm-item {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
  }

  .tbm .tbm-item.level-2 > .tbm-link-container > .tbm-link,
  .tbm .tbm-group-title {
    display: block;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: #1a1a1a;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    text-transform: none;
  }

  .tbm .tbm-item.level-2:not(.tbm-group):not(.tbm-item--has-dropdown):not(.tbm-item--has-flyout) > .tbm-link-container > .tbm-link {
    font-weight: 400;
  }

  .tbm .tbm-subnav.level-2 {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .tbm .tbm-item.level-3 > .tbm-link-container > .tbm-link {
    display: block;
    padding: 4px 0;
    border: 0;
    background: none;
    color: #4b5563;
    font-size: 14px;
    font-weight: 400;
    line-height: 24px;
    text-transform: none;
  }

  .tbm .tbm-item.level-1 > .tbm-link-container > .tbm-link {
    padding: 24px 6px;
    font-size: 15px;
  }

  .tbm .tbm-item.level-2 > .tbm-link-container > .tbm-link:hover,
  .tbm .tbm-item.level-3 > .tbm-link-container > .tbm-link:hover {
    background: none;
    color: #ec1b30;
  }
}

@media (min-width: 1200px) {
  .head-mid .container,
  .head-mid nav.nav-main,
  .tbm.tbm-main {
    position: static;
  }

  .tbm .tbm-item.level-1 > .tbm-submenu .tbm-group-container,
  .tbm .tbm-item.level-1 > .tbm-submenu .tbm-item-child {
    position: static;
    display: block;
    height: auto !important;
    overflow: visible !important;
    opacity: 1;
    visibility: visible;
  }
}

@media (min-width: 1200px) {
  .tbm .tbm-subnav.level-1 {
    align-items: start;
  }

  .tbm .tbm-item.level-1 > .tbm-submenu .tbm-link-container {
    align-items: flex-start;
    height: auto;
  }

  .tbm .tbm-item.level-1 > .tbm-submenu .tbm-link {
    flex-grow: 0;
    height: auto;
  }
}

@media (min-width: 1200px) {
  .tbm .tbm-item.level-1 > .tbm-submenu .tbm-link-container {
    border: 0;
    margin: 0;
    padding: 0;
  }

  .tbm .tbm-subnav.level-1 {
    row-gap: 24px;
  }
}

@media (min-width: 1200px) {
  .tbm .tbm-item.level-1 > .tbm-submenu {
    left: 50% !important;
    right: auto !important;
    width: min(1140px, calc(100% - 24px)) !important;
    max-width: calc(100% - 24px);
    max-height: none;
    height: auto !important;
    transform: translateX(-50%);
    padding: 28px 30px 32px;
    overflow: visible;
  }

  .tbm .tbm-subnav.level-1 {
    gap: 10px 21px;
  }

  .tbm .tbm-item.level-2 > .tbm-link-container > .tbm-link,
  .tbm .tbm-item.level-3 > .tbm-link-container > .tbm-link {
    overflow-wrap: anywhere;
  }
}

.right_sidebar #block-ctiv-block-34,
.right_sidebar #block-ctiv-block-35,
.right_sidebar #block-ctiv-businessmenuimage,
.right_sidebar #block-ctiv-citizenshipmenuimage,
.right_sidebar #block-ctiv-studymenuimage,
.right_sidebar #block-ctiv-visamenuimage,
.right_sidebar #block-ctiv-workmenuimage {
  display: none;
}
