.edu-school-layout {
  display: grid;
  grid-template-columns: minmax(230px, 270px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.edu-school-layout__main,
.edu-school-layout__sidebar {
  min-width: 0;
}

body .edu-school-layout__sidebar {
  float: none !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.edu-school-sidebar-stack {
  display: grid;
  gap: 14px;
  align-content: start;
}

.edu-school-sidebar-stack > :is(.edu-managed-sidebar, .edu-location-card) {
  width: 100%;
  min-width: 0;
  margin: 0;
}

.edu-school-sidebar-stack > .edu-sidebar-consult-slot {
  width: 100%;
  max-width: none;
  margin: 0 auto;
}

.edu-location-card {
  --edu-location-red: #d50711;
  --edu-location-red-dark: #ae0008;
  --edu-location-navy: #102443;
  --edu-location-muted: #63718a;
  --edu-location-line: #e4e9f1;
  overflow: hidden;
  color: var(--edu-location-navy);
  border: 1px solid rgba(16, 36, 67, .09);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 14px 35px rgba(25, 42, 72, .1);
  text-align: left;
}

.edu-location-card__header {
  position: relative;
  display: flex;
  min-height: 68px;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  overflow: hidden;
  border-bottom: 1px solid var(--edu-location-line);
  background: linear-gradient(135deg, #fff 30%, #fff7f7 100%);
}

.edu-location-card__header::after {
  position: absolute;
  right: -36px;
  bottom: -58px;
  width: 135px;
  height: 135px;
  content: "";
  border: 1px solid rgba(213, 7, 17, .11);
  border-radius: 50%;
  box-shadow: 0 0 0 22px rgba(213, 7, 17, .035);
}

.edu-location-card__pin {
  position: relative;
  z-index: 2;
  display: grid;
  width: 30px;
  height: 34px;
  flex: 0 0 30px;
  place-items: center;
  color: var(--edu-location-red);
}

.edu-location-card__pin svg {
  width: 28px;
  height: 32px;
  fill: currentColor;
}

.edu-location-card__heading {
  position: relative;
  z-index: 2;
  display: flex;
  min-width: 0;
  flex-direction: column;
  line-height: 1.25;
}

.edu-location-card__heading strong {
  color: var(--edu-location-navy) !important;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.02em;
}

.edu-location-card__heading small {
  margin-top: 2px;
  color: var(--edu-location-muted);
  font-size: 11px;
  font-weight: 400;
}

.edu-location-card__header-flag {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: 10px;
  width: 70px;
  height: 46px;
  object-fit: contain;
  opacity: .16;
  transform: translateY(-50%) rotate(-5deg);
}

.edu-location-card__search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  margin: 8px 9px 5px;
  padding: 0 10px;
  border: 1px solid #dce3ec;
  border-radius: 9px;
  background: #fff;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.edu-location-card__search:focus-within {
  border-color: rgba(213, 7, 17, .48);
  box-shadow: 0 0 0 3px rgba(213, 7, 17, .08);
}

.edu-location-card__search svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  fill: none;
  stroke: var(--edu-location-muted);
  stroke-linecap: round;
  stroke-width: 1.8;
}

body .edu-location-card__search input[type="search"] {
  width: 100%;
  height: 34px;
  min-height: 0;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--edu-location-navy);
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 12px !important;
}

.edu-location-card__countries,
.edu-location-card__states,
.edu-location-card__cities {
  margin: 0;
  padding: 0;
  list-style: none;
}

.edu-location-card__countries {
  padding: 2px 9px 7px;
}

.edu-location-card__country {
  margin: 0;
  border-bottom: 1px solid var(--edu-location-line);
}

.edu-location-card__country:last-child {
  border-bottom: 0;
}

.edu-location-card__country-row,
.edu-location-card__row {
  display: grid;
  min-height: 42px;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) 26px;
  gap: 3px;
}

.edu-location-card__country-row > a,
.edu-location-card__row > a,
.edu-location-card__city > a {
  display: grid;
  min-width: 0;
  align-items: center;
  color: var(--edu-location-navy) !important;
  text-decoration: none;
  text-align: left;
}

.edu-location-card__country-row > a {
  grid-template-columns: 27px minmax(0, 1fr);
  gap: 8px;
  padding: 5px 2px;
}

.edu-location-card__country-row strong {
  min-width: 0;
  color: inherit !important;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.edu-location-card__flag {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  overflow: hidden;
  border: 1px solid #dbe2eb;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(16, 36, 67, .08);
}

.edu-location-card__flag img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.edu-location-card__flag svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.edu-location-card__country-row button,
.edu-location-card__row button {
  display: grid;
  width: 26px;
  height: 30px;
  margin: 0;
  padding: 0;
  place-items: center;
  color: var(--edu-location-navy);
  border: 0;
  border-radius: 7px;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
}

.edu-location-card__country-row button span,
.edu-location-card__row button span,
.edu-location-card__plain-arrow {
  display: block;
  font-size: 20px;
  font-style: normal;
  line-height: 1;
  transition: transform .18s ease;
}

.edu-location-card__country-row button[aria-expanded="true"] span,
.edu-location-card__row button[aria-expanded="true"] span {
  transform: rotate(90deg);
}

.edu-location-card__plain-arrow {
  width: 26px;
  color: var(--edu-location-navy);
  text-align: center;
}

.edu-location-card__country.is-in-path > .edu-location-card__country-row {
  margin: 0 -2px;
  padding: 0 2px;
  border-radius: 9px;
  background: linear-gradient(90deg, #fff1f1, #fff8f8);
}

.edu-location-card__country.is-in-path > .edu-location-card__country-row strong,
.edu-location-card__country.is-in-path > .edu-location-card__country-row button {
  color: var(--edu-location-red) !important;
}

.edu-location-card__states {
  margin: 0 0 5px 13px;
  padding: 0 0 3px 9px;
  border-left: 1px solid #edf0f5;
}

.edu-location-card__state {
  margin: 0;
}

.edu-location-card__row {
  min-height: 34px;
}

.edu-location-card__row > a {
  grid-template-columns: 9px minmax(0, 1fr);
  gap: 7px;
  padding: 4px 1px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.35;
}

.edu-location-card__dot {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #cad2df;
}

.edu-location-card__state.is-in-path > .edu-location-card__row > a,
.edu-location-card__state.is-in-path > .edu-location-card__row button {
  color: var(--edu-location-red) !important;
  font-weight: 700;
}

.edu-location-card__state.is-in-path > .edu-location-card__row .edu-location-card__dot,
.edu-location-card__city.is-current .edu-location-card__dot {
  background: var(--edu-location-red);
}

.edu-location-card__cities {
  margin-left: 7px;
  padding-left: 10px;
  border-left: 1px dashed #dfe5ed;
}

.edu-location-card__city {
  margin: 0;
}

.edu-location-card__city > a {
  min-height: 29px;
  grid-template-columns: 7px minmax(0, 1fr) 15px;
  gap: 6px;
  padding: 3px 0;
  color: #53627a !important;
  font-size: 10.5px;
  line-height: 1.35;
}

.edu-location-card__city > a i {
  font-size: 16px;
  font-style: normal;
  text-align: center;
}

.edu-location-card__city.is-current > a {
  color: var(--edu-location-red-dark) !important;
  font-weight: 700;
}

.edu-location-card__empty {
  margin: 2px 10px 8px;
  padding: 9px;
  color: var(--edu-location-muted);
  border-radius: 8px;
  background: #f6f8fb;
  font-size: 11px;
  text-align: center;
}

.edu-location-card__all {
  display: grid;
  min-height: 42px;
  align-items: center;
  grid-template-columns: 20px minmax(0, 1fr) 17px;
  gap: 8px;
  margin: 0 9px 9px;
  padding: 5px 9px;
  color: var(--edu-location-navy) !important;
  border: 1px solid #dce3ec;
  border-radius: 9px;
  background: linear-gradient(135deg, #fff, #f8fafc);
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
}

.edu-location-card__all svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.edu-location-card__all i {
  font-size: 19px;
  font-style: normal;
  text-align: center;
}

@media (hover: hover) and (pointer: fine) {
  .edu-location-card__country-row:hover > a,
  .edu-location-card__row:hover > a,
  .edu-location-card__city > a:hover,
  .edu-location-card__all:hover {
    color: var(--edu-location-red-dark) !important;
  }

  .edu-location-card__country-row button:hover,
  .edu-location-card__row button:hover {
    color: #fff;
    background: var(--edu-location-red);
  }

  .edu-location-card__country-row:hover .edu-location-card__flag {
    border-color: rgba(213, 7, 17, .35);
    box-shadow: 0 3px 9px rgba(213, 7, 17, .14);
  }
}

.edu-location-card :is(a, button, input):focus-visible {
  outline: 2px solid rgba(213, 7, 17, .45);
  outline-offset: 2px;
}

body.single-truonghoc .edu-school-profile-overview {
  min-width: 0;
  margin: 0;
}

body.single-truonghoc .edu-school-profile-sidebar {
  position: static;
  display: grid;
  min-width: 0;
  align-self: stretch;
  align-content: start;
  gap: 14px;
}

body.single-truonghoc .edu-school-profile-sidebar > .edu-school-sidebar-stack {
  width: 100% !important;
}

@media (min-width: 850px) {
  .edu-school-layout > .edu-school-layout__sidebar,
  body.single-truonghoc .edu-school-profile-sidebar {
    align-self: stretch !important;
  }

  body.single-truonghoc .edu-school-profile-sidebar > .edu-school-sidebar-stack {
    align-self: start;
  }

  body.single-truonghoc .edu-sidebar-consult-slot--school-profile.is-sticky-ready {
    position: sticky !important;
    z-index: 3;
    top: var(--edu-sidebar-slot-top) !important;
    align-self: start !important;
  }
}

body.single-truonghoc .edu-school-profile-main > .edu-school-profile-content .edu-school-article-content {
  margin-top: 0 !important;
}

body.single-truonghoc .edu-school-profile-overview .edu-school-sidebar-card {
  display: block !important;
  padding: 8px;
  overflow: hidden;
  border: 1px solid var(--school-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 22px rgba(22, 45, 77, .06);
}

body.single-truonghoc .edu-school-profile-overview .edu-school-profile-logo {
  display: grid;
  width: 100%;
  min-height: 0;
  aspect-ratio: 1 / 1;
  margin: 0;
  padding: 10px;
  place-items: center;
  overflow: hidden;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(145deg, #fff, #f6f9fc);
  box-shadow: none;
}

body.single-truonghoc .edu-school-profile-overview .edu-school-profile-logo img {
  display: block;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: 100% !important;
  margin: 0 auto !important;
  object-fit: contain !important;
  object-position: center !important;
}

body.single-truonghoc .edu-school-profile-overview .edu-school-sidebar-actions {
  margin: 0;
  padding: 6px 0 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
}

body.single-truonghoc .edu-school-profile-overview .edu-school-sidebar-actions :is(.button, .edu-school-compare-add) {
  min-width: 0;
  min-height: 32px;
  height: 32px;
  gap: 3px;
  padding: 3px !important;
  font-size: 10px !important;
  line-height: 1 !important;
  white-space: nowrap;
}

body.single-truonghoc .edu-school-profile-overview .edu-school-compare-add__icon,
body.single-truonghoc .edu-school-profile-overview .edu-school-compare-add__icon svg {
  width: 12px;
  height: 12px;
  flex-basis: 12px;
}

body.single-truonghoc .edu-school-profile-overview .edu-school-sidebar-section {
  margin: 6px 0 0;
  padding: 6px 2px 0;
  border: 0;
  border-top: 1px solid var(--school-line);
  border-radius: 0;
  box-shadow: none;
}

body.single-truonghoc .edu-school-profile-overview .edu-school-sidebar-section dl {
  display: block;
}

body.single-truonghoc .edu-school-profile-overview .edu-school-sidebar-section dl > div {
  grid-template-columns: 74px minmax(0, 1fr);
  padding: 5px 0;
}

@media (max-width: 1050px) {
  .edu-school-layout {
    grid-template-columns: minmax(220px, 245px) minmax(0, 1fr);
    gap: 18px;
  }

}

@media (max-width: 849px) {
  .edu-school-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  body.single-truonghoc .edu-school-layout.edu-school-profile-grid {
    width: 100% !important;
    max-width: 100% !important;
    grid-template-columns: minmax(0, 1fr) !important;
  }

  /* Directory, finder and taxonomy pages keep their whole sidebar after content. */
  body .edu-school-layout > .edu-school-layout__main {
    min-width: 0 !important;
    max-width: 100% !important;
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
    order: 1 !important;
  }

  body .edu-school-layout > .edu-school-layout__sidebar {
    width: min(100%, 430px) !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin-right: auto !important;
    margin-left: auto !important;
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
    justify-self: stretch !important;
    order: 2 !important;
  }

  body.single-truonghoc .edu-school-profile-sidebar,
  body.single-truonghoc .edu-school-profile-main {
    display: contents;
  }

  body.single-truonghoc .edu-school-profile-header,
  body.single-truonghoc .edu-school-profile-overview,
  body.single-truonghoc .edu-school-profile-content,
  body.single-truonghoc .edu-school-profile-sidebar > .edu-school-layout__sidebar {
    min-width: 0 !important;
    max-width: 100% !important;
    grid-column: 1 / -1 !important;
    justify-self: stretch !important;
  }

  body.single-truonghoc .edu-school-profile-header {
    order: 1;
  }

  body.single-truonghoc .edu-school-profile-overview {
    order: 2;
    width: min(100%, 430px);
    margin: 0 auto;
  }

  body.single-truonghoc .edu-school-profile-content {
    order: 3;
  }

  body.single-truonghoc .edu-school-profile-sidebar > .edu-school-layout__sidebar {
    order: 4;
    width: min(100%, 430px) !important;
    margin-right: auto !important;
    margin-left: auto !important;
  }

  body.single-truonghoc .edu-sidebar-consult-slot--school-profile {
    width: min(100%, 430px) !important;
    max-width: 100% !important;
    margin-right: auto !important;
    margin-left: auto !important;
    grid-column: 1 / -1 !important;
    order: 5 !important;
  }

  body.single-truonghoc .edu-school-profile-overview .edu-school-profile-logo {
    width: min(100%, 220px);
    height: 170px;
    aspect-ratio: auto;
    margin-right: auto;
    margin-left: auto;
  }
}

@media (max-width: 600px) {
  body.single-truonghoc .edu-school-profile-overview .edu-school-sidebar-card {
    display: block !important;
    margin-right: 10px;
    margin-left: 10px;
    padding: 8px;
  }

  body.single-truonghoc .edu-school-profile-overview .edu-school-profile-logo {
    width: min(100%, 180px);
    height: 135px;
    min-height: 0;
    padding: 8px;
    border: 0;
    border-radius: 9px;
  }

  body.single-truonghoc .edu-school-profile-overview .edu-school-sidebar-actions,
  body.single-truonghoc .edu-school-profile-overview .edu-school-sidebar-section {
    padding-right: 0;
    padding-left: 0;
  }

  body.single-truonghoc .edu-school-profile-overview .edu-school-sidebar-actions {
    padding-top: 6px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
  }

  body.single-truonghoc .edu-school-profile-overview .edu-school-sidebar-actions :is(.button, .edu-school-compare-add) {
    min-height: 31px;
    height: 31px;
    font-size: 10px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .edu-location-card *,
  .edu-location-card *::before,
  .edu-location-card *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
