.submain {
  /* background-image: url(images/bg2c.png); */
  background-size: contain;
  background-position: top;
  background-repeat: repeat;
  background-color: #fff;
  position: relative;
  isolation: isolate;
}

.gradient {
  position: absolute;
  background: linear-gradient(
    180deg,
    rgba(238, 240, 241) 0%,
    rgb(238, 240, 241) 100%
  );
  top: 0;
  right: 0;
  width: 100%;
  height: 62vh;
  z-index: -1;
  display: block;
}
button#toggle-video {
  position: absolute;
  top: 150px;
  right: 80px;
  background: none;
  z-index: 9;
  border: 0;
  background-color: rgba(255, 255, 255, 0.65);
  border-radius: 5px;
  padding: 5px 10px;
  border: 2px solid #fff;
}
main video {
  z-index: -1;
  position: fixed;
  right: 0;
  top: 0;
  min-width: 100vw;
  min-height: 680px;
}
.header {
}
.header.offset {
  backdrop-filter: blur(10px);
}
video#bgvid {
  width: 100vw;
}
.main {
  position: relative;
  height: 90vh;
  height: auto;
  min-height: 540px;
  min-height: 320px;
}
.cover {
  position: absolute;
  position: relative;
  height: 100%;
  height: auto;
  top: 0;
  width: 100%;
  overflow: hidden;
  min-height: 540px;
  min-height: 300px;
}

.mainslide {
  height: 69vh;
  position: absolute;
  top: 0;
  top: 0;
  right: 0;
  width: 100%;
}

.cover-slick {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  right: 0;
  z-index: -1;
}

.cover-slick div {
  height: 100%;
  background-size: cover;
  background-position: center;
}

.cover .toggle-slick {
  position: absolute;
  top: 125px;
  right: 15px;
  background: none;
  border: 0;
}

.cover-content {
  position: absolute;
  top: 50%;
  left: 50%;
  margin-right: -50%;
  transform: translate(-50%, -50%);
  z-index: 99;
  text-align: center;

  max-width: 600px;
  margin-top: -60px;
}

.sections {
  max-width: 90vw;
}

.sections .row {
  justify-content: center;
  gap: 1rem;
}

.cube {
  border-radius: 25px;
  position: relative;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  flex-direction: column;
  position: relative;
  isolation: isolate;
  display: flex;
  aspect-ratio: 1;
}

.cube a {
  color: #fff;
}

.cube .grade {
  border-radius: 25px;
  position: absolute;
  background: linear-gradient(
    180deg,
    rgba(101, 123, 153, 0) 18%,
    rgb(30, 45, 72) 100%
  );
  inset: 0;
  margin: auto;
  z-index: -1;
  mix-blend-mode: multiply;
}

.cube .top {
  padding: 2.5rem 1.5rem;
}

.cube h2 {
  font-weight: 700;
  font-size: 1.75rem;
}

.cube .bott {
  height: 100%;
  padding: 2rem 2rem 3rem;
  display: flex;
}

.cube .bott a {
  width: 100%;
  position: relative;
  font-weight: 700;
  font-size: 2.7rem;
  font-size: calc(1.55vw + 16px);
  line-height: 1.1;
  margin-top: auto;
  display: flex;
  height: 100%;
  align-items: flex-end;
}

.cube .bott a::after {
  content: "";
  position: absolute;
  bottom: -0.75rem;
  height: 2px;
  right: 0;
  width: 90px;
  transition: all 0.2s ease-in;
  background-color: #fff;
}

.cube:first-child .bott a::after {
  background-color: #f6883f;
}

.cube:nth-child(2) .bott a::after {
  background-color: #49c1cd;
}

.cube:nth-child(3) .bott a::after {
  background-color: #92cd61;
}

.cube:last-child .bott a::after {
  background-color: #e2d880;
}

.cube .bott a:hover {
  text-decoration: none;
}

.cube .bott a:hover::after {
  width: 100%;
  height: 5px;
}

.news {
  position: absolute;
  width: 100%;
  max-width: 100%;
  bottom: 0;
  z-index: 1;
  overflow: hidden;
  padding-bottom: 0.1rem;
  background: linear-gradient(
    100deg,
    rgba(101, 123, 153, 1) 50%,
    rgba(41, 59, 92, 1) 80%
  );
}

.news ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.news .buttons {
  position: absolute;
  top: 1.9rem;
  left: 1.9rem;
}

.news a {
  color: #000;
  display: block;
}

.news .content {
  position: relative;
  padding: 0.5rem;
  color: #fff;
  backdrop-filter: blur(10px);
}

.news h2 {
  color: #fff;
  font-size: 1.2rem;
  font-weight: bold;
  position: absolute;
  min-width: 160px;
  height: 70%;
  border-left: 1px solid #fff;
  padding: 0 2rem 0 1rem;
  z-index: 5;
  backdrop-filter: blur(500px);
  display: flex;
  background-color: #2b395a;
}

.news h2:hover {
  font-size: 1.25rem;
}
.news h2 img {
  margin-left: 0.25rem;
}
.news h2 a {
  color: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
}

.breaking-news-ticker {
  font-size: 1rem;
}

.bn-news ul li a {
  font-size: 1rem;
  padding: 2px 10px;
  color: inherit;
}

.bn-news ul li a:hover {
  color: yellow;
}

.bn-effect-scroll .bn-news ul li {
  padding: 0 1rem;
}

.news .date {
  font-weight: bold;
}
.news .date:after {
  content: " | ";
  margin: 0 10px;
}

.news-toggle {
  width: 32px;
  height: 32px;
  border: 1px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: none;
  font-size: 14px;
}

.bn-controls button {
  border-radius: 50%;
  height: 30px;
  width: 30px;
  margin-right: 10px;
  padding: 0;
}
.bn-controls {
  border-right: 1px solid #fff;
}
.bn-arrow {
  top: -5px;
}

.bn-pause {
  top: -3px;
  left: 0px;
}

.bn-play {
  height: 13px;
  margin-left: -2px;
  line-height: 0;
  margin-bottom: 3px;
}

.bn-direction-rtl .bn-controls {
  padding: 5px;
}

.bn-news {
  padding-right: 155px;
}

/**/

.bottom-row {
  padding: 4rem 1rem;
}

.bottom-row h2 {
  font-size: 1.4rem;
  font-weight: bold;
}
.bn-direction-rtl .bn-controls button {
  border-right: none;
  border: 1px solid #fff;
}
.bn-controls button {
  background-color: transparent;
}
.bn-pause::before,
.bn-pause::after {
  background-color: #fff !important;
}
.bn-controls button:hover {
  background-color: rgba(255, 255, 255, 0.25);
}
/**/

.boxes {
  position: relative;
  background-color: rgba(255, 255, 255, 0);
}
.boxes h2 {
  font-size: 1.52rem;
  padding-inline: 10px;
  padding-block: 2rem;
}
h2 span {
  background-color: var(--site1);
  padding: 5px 15px;
  border-radius: 10px;
  color: #fff;
  background-color: teal;
  border-radius: 50px;
  font-weight: 600;
}
.articles h2 span {
  background-color: #1196cf;
}
/* .boxes .container{
width: 100%;
max-width: 100%;
min-width: 100%;
}

*/
.boxes .col-lg-3 {
  height: 278px;
  margin-bottom: 1rem;
}
.boxes.events .col-lg-3 {
  height: 330px;
}
.boxes .event {
  background-size: cover;
  background-position: center;
  display: flex;
  width: 100%;
  height: inherit;
  border-radius: 0.7rem;
  overflow: hidden;
  position: relative;
  transition: all 0.4s ease-in;
}
.boxes .event .overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgb(0, 0, 0);
  background: linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.9) 5%,
    rgba(0, 0, 0, 0) 100%
  );
  /* background-size: 1px 360px; */
  inset: 0;
  margin: auto;
  transition: all 0.3s ease-in;
}

.boxes .event:hover {
  transform: scale(1.05);
  /* background-position: 1px -30px; */
}
.boxes .info {
  border-right: 2px solid lightblue;
  width: 92%;
  margin-top: auto;
  margin-inline: auto;
  position: relative;
  z-index: 1;
  color: #fff;
  margin-bottom: 0.5rem;
}
.events .info {
  border-right: none;
  width: 90%;
}
.boxes .info .row {
  padding-inline-end: 15px;
  padding-inline-start: 2rem;
  padding-block: 2px;
  font-size: 0.9rem;
}
.events .info .row:last-child {
  flex-direction: column;
}
.boxes .info .day,
.boxes .info .loc {
  padding-inline-start: 0;
  display: flex;
  line-height: 1;
  align-items: center;
  text-align: right;
}
.boxes .info .day {
  margin-bottom: 0m;
}
.boxes .title {
  padding-inline: 0;
  display: flex;
  text-align: right;
  min-height: 48px;
  border-bottom: 1px solid #fff;
  font-weight: 500;
  font-size: 1.1rem;
  line-height: 1.25;
}
.boxes .info img {
  margin-inline-end: 0.5rem;
  max-width: 28px;
  max-height: 28px;
}
.boxes .text-left {
  padding-inline: 15px;
  margin-block-start: 0.65rem;
}
.boxes .read-more {
  color: #06808a;
  border: none;
  outline: none;
  border-radius: 3px;
  font-size: 1rem;
  font-weight: 500;
  position: relative;
  text-align: right;
  margin-inline-end: 1rem;
}
.boxes .read-more::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 4px;
  background-color: #06808a;
}
.boxes .read-more:hover {
  padding-inline-end: 1rem;
}
.ribbon-date {
  position: absolute;
  top: 0;
  left: 15px;
  background: #fff;
  color: #000;
  padding: 0.5rem 1rem;
}
.ribbon-date span {
  display: block;
}
.ribbon-date span:nth-child(1) {
  font-weight: bold;
  font-size: 1.5rem;
}

.col-banners {
  padding-top: 50px;
}

.services {
  position: relative;
  bottom: 1rem;
  width: 100%;
  margin-inline: auto;
  padding: 4rem 0.5rem;
}
.services .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  width: 100%;
  max-width: 95%;
  border-radius: 5rem;
}
.services-slick {
  padding: 0.5rem 1rem;
  margin: 0 1rem;
}

.service {
  text-align: center;
  display: block;
  margin: 0;
  padding: 0.25rem 0;
}
.service figcaption {
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 500;
}

.service .icon img {
  display: block;
  max-width: 120px;
  margin: 0 auto;
}
.services-slick {
  width: 100%;
  max-width: 100%;
}
.services .searching {
  position: relative;
  left: 0.25rem;
  background-color: #fff;
  border-radius: 7vw;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  height: 82px;
  box-shadow: rgba(0, 0, 0, 0.15) 0px 5px 15px;
}
.services .searching a {
  background: linear-gradient(
    0deg,
    rgba(27, 180, 246, 1) 0%,
    rgba(52, 98, 227, 1) 100%
  );
  border-radius: 7vw;
  width: 90%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

@media (max-width: 1380px) {
  .services-slick {
    width: 100%;
    max-width: calc(100% - 120px);
  }

  .service figcaption {
    line-height: 1;
  }
}
@media (min-width: 992px) {
  .service:hover {
    transform: scale(1.1);
  }
  .cube.col-md-4 {
    flex: 0 0 22%;
    max-width: 22%;
  }
  .cube.col-md-3 {
    flex: 0 0 31%;
    max-width: 31%;
  }
}
@media (min-width: 768px) {
  .news a {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
@media (max-width: 991px) {
  button#toggle-video {
    top: 125px;
    right: 25px;
  }
  .main {
    min-height: unset;
    height: 320px;
    /* height: 525px; */
  }

  .cover {
    height: inherit;
  }

  .mainslide {
    height: inherit;
  }
  .sections {
    max-width: calc(100% - 30px);
  }

  .cube .bott {
    padding: 3rem 2rem;
  }

  .cube .bott a {
    font-size: calc(2.5vw + 16px);
  }
  .boxes .col-lg-3 {
    width: 45%;
    max-width: 45%;
  }
  .news h2 {
    display: none;
  }
  .services .container {
    max-width: 100%;
    justify-content: center;
  }
  .services-slick {
    max-width: unset;
  }
}
@media (max-width: 767px) {
  .cube {
    flex: 0 0 100%;
    max-width: 45%;
  }
  .cube .bott {
    padding: 2rem 0.25rem;
  }
}
@media (max-width: 650px) {
  .boxes .col-lg-3 {
    width: 100%;
    max-width: 100%;
  }

  .articles {
    padding: 1rem 0;
  }

  .boxes .col-lg-3,
  .boxes.events .col-lg-3 {
    height: 180px;
  }

  .main {
    height: 320px;
    /* min-height: 525px; */
  }

  .services .searching {
    height: 63px;
  }

  .services {
    bottom: 0;
    padding: 2.5rem 0.5rem 4rem;
  }

  .services .container {
    background-color: transparent;
  }

  .services-slick {
    padding: 0.5rem 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
    max-width: 90%;
  }

  .services .container {
    flex-direction: column;
  }

  .services-slick > div {
    background-color: rgba(255, 255, 255, 0.95);
    width: 100%;
    max-width: 100%;
    min-height: 115px;
    border-radius: 12px;
  }

  .service {
    padding: 0;
  }
  .service figure {
    display: flex;
    align-items: center;
  }
  .service .icon img {
    width: 75px;
    margin-bottom: 0.25rem;
  }
  .service figcaption {
    margin-right: 1rem;
    font-size: 1.4rem;
  }
  .boxes .col-lg-3:not(:first-child) {
    display: none;
  }
  .services-slick > div {
    height: unset;
    min-height: unset;
    border: 1px solid #a3b2c9;
  }
}

@media (max-width: 400px) {
  .cube {
    flex: 0 0 100%;
    max-width: 75%;
  }
  .cube .bott {
    padding: 2rem 3rem;
  }
}

@media (max-width: 350px) {
  .services-slick > div {
    max-width: 90px;
    height: 90px;
  }
}
