/*** Setup ***/
h1 {
  margin-top: 2rem;
  background: #fc0;
  text-shadow: none;
  color: black;
  text-transform: uppercase;
  padding: .5rem;
  font-weight: 800;
  font-size: 2.25em;
}
.heading-underline-inverse::after, .heading-underline::after {
  width: 100%;
}

/*** Header ***/
.site-header {
  background: #000;
  position: relative;
}
@media screen and (min-width:991px) {
  .site-header nav.navbar {
    position: absolute;
    justify-self: center;
    background-color: transparent !important;
    top: 0;
    width: 100%;
  }
}
.site-header .navbar {
  align-self: center;
}
.us-news-header {
  position: sticky;
  top: 1px;
  height: 100vh;
}
.usn-headline {
  position: relative;
  height: 100%;
  justify-content: center;
  text-shadow: .25rem .25rem 1rem black;
  width: fit-content;
  font-size: clamp(  10px, calc(10px + (14px - 10px) * ((100vw - 1130px) / (1920px - 1130px))), 14px);
  padding-left: clamp(1rem, 5vw, 10vw)!important;
}
@media screen and (min-width: 1920px) {
 .usn-headline { font-size: 16px; }
}
.usn-background-wrap {
  position: absolute;
  height: 100%;
  width: 100%;
}
.usn-background {
  height: 100%;
  position: relative;
  overflow: hidden;
}
.astronomers,
.observatory  {
  height: 100%;
  width: 100%;
  position: absolute;
  background-size: cover;
}
.astronomers {
  background-position: 70% bottom;
  background-image: url('https://www.ucf.edu/wp-content/blogs.dir/16/files/2025/10/astronomers.webp');
}
.expanding-box {
    -webkit-box-shadow: inset 0px 0px 0px 0px red;
    -moz-box-shadow: inset 0px 0px 0px 0px red;
    box-shadow: inset 0px 0px 0px 0px red;
    height: 100%;
    width: 100%;
    position: absolute;
    border: calc(var(--tl)) rem solid black;
    border-top-width: calc(var(--t, 0) * 1vh);
    border-right-width: calc(var(--r, 2) * 1vw);
    border-bottom-width: calc(var(--b, 0) * 1vh);
    border-left-width: calc(var(--l, 2) * 1vw);
    /* content: ""; */
    /* position: absolute; */
    inset: 0;
    box-sizing: border-box;
    pointer-events: none;
    border-style: solid;
    border-color: black;
}
.observatory {
  background-position: center bottom;
  background-image: url('https://www.ucf.edu/wp-content/blogs.dir/16/files/2025/10/observatory.webp');
}
.star-trails {
  background-image: url('https://www.ucf.edu/wp-content/blogs.dir/16/files/2025/10/star-trails.webp');
  width: 1000px;
  height: auto;
  aspect-ratio: 1;
  background-size: contain;
  right: -10rem;
  top: -30rem;
  position: absolute;
  animation: starTrails 180s linear infinite;
  filter: saturate(1.25) contrast(1.05);
}
@keyframes starTrails {
  0%   {transform: rotate(0deg) }
  100%   {transform: rotate(359deg) }
}

/*** Most Innovative Spotlight ***/
.spotlight-vertical {

}
.spotlight-vertical img { margin: 0 auto; }

/*** Best Colleges ***/
.callout-image {
  border: 1px solid lightgrey;
  margin-top: 2rem;
  margin-bottom: 2rem;
  display: block;
  position: relative;
  aspect-ratio: 3 / 2;
}
@media screen and (max-width: 576px) {
  #top-rankings-1 .callout-image {
    aspect-ratio: 1 / 1.236 !important;
  }
}
@media screen and (min-width: 576px) {
  #top-rankings-2 .callout-image {
    aspect-ratio: 2 / 3 !important;
  }
}
@media screen and (min-width: 576px) and (max-width: 768px) {
  #top-rankings-1 .callout-image {
    aspect-ratio: 1 / 1.232;
  }
}
@media screen and (min-width: 768px) and (max-width: 992px) {
  #top-rankings-1 .callout-image {
    aspect-ratio: 1 / 1.215;
  }
}
@media screen and (min-width: 992px) {
  #top-rankings-1 .callout-image {
    aspect-ratio: 1 / 1.211;
  }
}
#top-rankings-2 .callout-image {
  aspect-ratio: 2 / 3;
}

.callout-image .square-rank {
  font-size: 1.75em;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1;
  position: absolute;
  width: 3em;
  height: 3em;
  background: #fc0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 6px solid white;
  box-sizing: content-box;
  top: -.5em;
  left: -0.5em;
}
.callout-img-wrap {
  display: inline;
  position: relative;
  z-index: -10;
  height: 100%;
}
.callout-image .callout-text {
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 2px;
  text-transform: uppercase;
  width: 100%;
  padding: 1em;
  transition: background-color .2s ease-in-out, color .2s ease-in-out;
}
.callout-image .callout-text:hover {
  background-color: #eee;
}
.callout-image .callout-text:hover a {
  color: black;
}
.callout-image .callout-text a {
  color: #444;
  text-decoration: none;
}
.callout-image .callout-text small {
  display: block;
  margin-top: 1em;
  font-weight: 300;
}
.callout-image img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

/*** Callout Boxes ***/
.callout {
  background-color: #fc0;
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
  display: block;
  position: relative;
}
.callout.outline {
  background-color: #fff;
  border: 4px solid #fc0;
}

.callout .text-1{
  font-size: 2.5em;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: .75rem;
  letter-spacing: 2px;
}
.callout .text-2{
  font-size: 1.25em;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.callout .text-3{
  font-size: 1em;
  font-weight: 400;
  margin-top: .5rem;
}
.callout.crop-mark:before {
  content: '';
  top: -.75rem;
  left: -.75rem;
  width: 3rem;
  height: 3rem;
  background-color: #000;
  display: block;
  position: absolute;
  z-index: -1;
}
.callout.top-mark:before {
  top: -1rem;
  bottom: initial;
}
.callout.bottom-mark:before {
  top: initial;
  bottom: -1rem;
}
.callout.left-mark:before {
  left: -1rem;
  right: initial;
}
.callout.right-mark:before {
  left: initial;
  right: -1rem;
}


/*** Best Global and Space Section ***/
#best-global-universities-rankings {
  overflow: hidden;
  --on: clamp(0, (var(--p) - 0.999) * 1000, 1);
  background-color: rgba(0, 0, 0, var(--on));
}
.rocket-blackout {
  position: relative;
  display: inline-grid;
  place-items: center;
  min-height: 5rem;
  margin: 20vh auto;
}
.rocket-blackout::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%); /* center on the rocket */
  aspect-ratio: 1;
  width: clamp(6rem, calc(6rem + (250vmax - 6rem) * var(--p, 0)), 500vmax);
  background: #000;
  border-radius: 50%;
  z-index: -1;
}
.rocket-blackout > .fa {
  position: relative;
  z-index: 2;
  font-size: 7rem;
  background-color: #fc0;
  border-radius: 100%;
}
.rocket-blackout > .fa::before {
  padding: 1.5rem 1.5rem 1rem 1rem;
  display: flex;
}
@media screen and (max-width:992px) {
  #best-global-universities figure {
    min-height: 75vh;
  }
  #best-global-universities figcaption p {
    font-size: 1.25rem!important;
  }
}
#best-global-universities figure img {
  object-fit: cover;
  width: 80%;
  height: 90%;
}
#best-global-universities figcaption {
  background: #fc0;
  position: absolute;
  bottom: 0;
  right: 3rem;
  padding: 2rem;
  z-index: 5;
  font-size: 1.75em;
  width: min-content;
  border: .5rem solid black;
  font-weight: 900;
  line-height: 1;
  color: black
}
#best-global-universities h2 {
  border-left: 3px solid #fc0;
}
#best-global-universities aside {
  border-top:  3px solid #fc0;
  border-left: 3px solid #fc0;
}
@media screen and (max-width: 992px) {
  #best-global-universities aside {
    position: relative;
    order: last;
  }
  #best-global-universities figure img {
    position: relative;
  }
  #best-global-universities p,
  #best-global-universities ul {
    border-right: 3px solid #fc0
  }
}
#space-innovation h2 {
  border-left: 3px solid #fc0;
}
#space-innovation p {
  border-right: 3px solid #fc0;
}
@media screen (max-width: 992px) {
  #space-innovation p {
    border-left: 3px solid #fc0;
  }
}
#best-global-universities-rankings {
  background-image: url('https://www.ucf.edu/wp-content/blogs.dir/16/files/2025/10/nasa-artemis-astronaut.webp');
  background-position: right bottom;
  background-size: contain;
  background-repeat: no-repeat;
}
@media screen and (max-width: 576px) {
  #space-innovation .astro-spacer{
    min-height:50vh;
  }
}
@media screen and (min-width: 576px) and (max-width: 768px) {
  #best-global-universities-rankings {
    background-position: 30vw bottom;
    background-size: 50%;
  }
}
@media screen and (min-width: 992px) {
  #best-global-universities-rankings {
    background-position: 50vw bottom;
    background-size: auto;
  }
}
@media screen and (min-width: 1200px) {
  #best-global-universities-rankings {
    background-position: right bottom;
  }
}

/*** List Grroups ***/
.list-group-flush li {
  background-color: transparent;
  padding: .25rem 1rem;
}
.list-group-flush-inverse li {
  color: white;
  border: 1px solid rgba(255, 255, 255, .25);
  transition: background-color .2s ease-in-out, color .2s ease-in-out;
}
.list-group-flush-inverse a {
  color: #eee;
  text-decoration: none;
}
.list-group-flush .ranking {
  min-width: 4rem;
  font-weight: 800;
}
.list-group-flush li .category {
  flex: 1;
}
.list-group-flush li small {
  margin-left: 1rem;
}
.list-group-flush-inverse .list-group-item-action:hover {
  background-color: white;
  color: black;
}
.list-group-flush-inverse .list-group-item-action:hover a { color: black!important; }

/*** Utilities ***/
.full-height-sticky {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
@media screen and (min-width: 768px) {
  .full-height-sticky {
    position: sticky;
    min-height: 100vh;
    top: 0;
  }
}
