/* ===============
Sandra Oveissi
Copyright 2014 Nexus6 Software
written for - www.sample.com

swatch colors
========
rgba(91, 183, 91, 0.8) - green transparent color
#FFFFFF - White Color
#333 - Dark Gray
#555 - lighter Gray
#989898, #F5F5F5 - light Gray
#F5F5F5 - Milky
#E8E8E8 - Dark Milky
rgb(0, 153, 51) - Green
#5cb85c - ligt green
================== */

/************ copied from style.css *******************/
/* jcarousel CSS Classes */
/******************************************************/
.jcarousel-wrapper {
    margin:30px auto 10px;
}

.jcarousel-control-prev, .jcarousel-control-next {
    opacity: 0.45;
    font-size: 33px;
    line-height: 25px;
    display: none;
}

.jcarousel-arrow-left{
    margin-left: -3px;
}

.jcarousel-arrow-right{
    margin-left: 1px;
}

.jcarousel-control-next:hover, .jcarousel-control-prev:hover{
    color: #5bc0c0;
    text-decoration: none;
    opacity: 0.7;
    border-bottom: none;
}

.jcarousel-wrapper .panel-body {
    padding:10px 10px 5px;
}

.jcarousel-wrapper {
    border: 0px;
    box-shadow: 0 0 2px #fff;
}


/************ copied from style.css *******************/
/* jcarousel Annoucement item */
/******************************************************/
.jcarousel li {
    width: 338px;
    max-height: 134px;
}

/* Announcement carousel to be hidden at <992 px */
@media (max-width: 992px){
    #announce_container {
        display: none;
    }
    .top-gap.no-announce {
        display:block !important;
        height:15px;
    }
}

@media (max-width: 419px){
    .jcarousel li {
        width: 310px;
    }
}

.jcarousel-item{
    height: 130px;
    position: relative;
}

.jcarousel ul>li>div.panel{
    margin-bottom: 0px;
}

.panel-body.jcarousel-item:hover{
    background-color: #f9f9f9;
    border-radius: 3px;
}

.panel-body.jcarousel-item:hover img{
    -webkit-filter: opacity(90%);
    opacity: 0.7;
}

.panel-body.jcarousel-item:hover span.announce-ellipsis{
/*    background: -webkit-gradient(linear, left top, right top, from(rgba(255, 255, 255, 0)), to(#f5f5f5), color-stop(49%, #f5f5f5));
    background: -moz-linear-gradient(to right, rgba(255, 255, 255, 0), #f5f5f5 49%, #f5f5f5);
    background: -o-linear-gradient(to right, rgba(255, 255, 255, 0), #f5f5f5 49%, #f5f5f5);
    background: -ms-linear-gradient(to right, rgba(255, 255, 255, 0), #f5f5f5 49%, #f5f5f5);*/
    background: -webkit-gradient(linear, left top, right top,
    from(rgba(255, 255, 255, 0)), to(#f5f5f5), color-stop(50%, #f5f5f5));
    background: -moz-linear-gradient(to right, rgba(255, 255, 255, 0), #f5f5f5 50%, #f5f5f5);
    background: -o-linear-gradient(to right, rgba(255, 255, 255, 0), #f5f5f5 50%, #f5f5f5);
    background: -ms-linear-gradient(to right, rgba(255, 255, 255, 0), #f5f5f5 50%, #f5f5f5);
    background: linear-gradient(to right, rgba(255, 255, 255, 0), #f5f5f5 50%, #f5f5f5);
}


.jcarousel-item-thumbnail{
    float: left;
    margin-left: -8px;
}

.jcarousel-item-thumbnail.thumbnail-large{
    width: 100px;
    height: 100px;
    margin-top: 5px;
    margin-left: -5px;
}

.jcarousel-item-thumbnail.thumbnail-small{
    width: 50px;
    height: 50px;
}

.jcarousel-item-verticalline{
    float: left;
    border-left: 1px dotted #ccc;
    height: 100%;
    padding-right: 6px;
    margin-left: 6px;
}

.jcarousel-item-info-large{
    padding-left: 100px;
}

.jcarousel-item-info-small{
    padding-left: 50px;
}

.jcarousel-item-header{
    font-weight: bold;
    font-size: 14px;
    color: rgb(0, 153, 51);
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}

.jcarousel-item-text{
    font-size: 12px;
    height: 78px;
    overflow: hidden;
}

.jcarousel-item-horizontalline{
    border-top: 1px dotted #ccc;
    width: 100%;
    margin-bottom: 5px;
}

.jcarousel-item-readmore{
    position: absolute;
    right: 5px;
    bottom: 4px;
}


/***** Announcements Images  *******/
.jcarousel img {
  height: 70px;  
}

.jcarousel-item-thumbnail.thumbnail-large{
  float: right;
  width: 75px;
  padding-left: 2px;
  position: relative;
  top: -67px;
  padding-top: 5px;
  padding-right: 7px;
  padding-bottom: 5px;
}

.jcarousel-item-thumbnail.thumbnail-large.with-horizental-img{
  float: right;
  width: auto;
  height: 70px;
  width: 75px;
  padding-left: 2px;
  position: relative;
  top: -69px;
}

/***** Announcements Headers and Titles  *******/
.jcarousel-item-ziczac-header{
  position: relative;
  background-color: #f5f5f5;
  text-align: center;
  height: 34px;
  max-height: inherit;
  background-image: -moz-linear-gradient(bottom, rgba(0,0,0,.12) 0%, rgba(255,255,255,.06) 100%);
  background-image: -o-linear-gradient(bottom, rgba(0,0,0,.12) 0%, rgba(255,255,255,.06) 100%);
  background-image: -webkit-linear-gradient(bottom, rgba(0,0,0,.12) 0%, rgba(255,255,255,.06) 100%);
  background-image: -webkit-linear-gradient(bottom, rgba(0,0,0,.12) 0%, rgba(255,255,255,.06) 100%);
  display: table;
  width: 100%;
  -moz-box-sizing: border-box;
  border-top-left-radius: 3px;
  border-top-right-radius: 3px;
}

/*********** To target IE 9 and 10 *************/
@media screen\0 {
  .jcarousel-item-ziczac-header{
    background-color: #d5d5d5 !important;
  }
}

.jcarousel-ziczac-title{
  display: table-cell;
  vertical-align: middle;
  font-weight: bold;
  font-size: 14px;
  color: rgb(0, 153, 51);
  padding: 3px;
  padding-bottom: 0px;
}

.panel-body.jcarousel-item{
  padding: 0px;
}

.jcarousel-item-ziczac-header p{
  vertical-align: middle;
}

.jcarousel-item-ziczac-header:after {
  content: "";
  display: block;
  position: absolute;
  bottom: -10px;
  left:0;
  right:0;
  height: 10px;
  background:
  linear-gradient(
    45deg, transparent 33.333%,
    #d5d5d5 33.333%, #d5d5d5 66.667%,
    transparent 66.667%
  ),
  linear-gradient(
    -45deg, transparent 33.333%,
    #d5d5d5 33.333%, #d5d5d5 66.667%,
    transparent 66.667%
  );
  background-size: 8px 20px;
  background-position: 0 -10px;
  padding-top: 4px;
}

.jcarousel-horizontalline {
  margin-left: 0px
}

.panel-body.jcarousel-item.with-horizental-no-img div.jcarousel-item-header, .panel-body.jcarousel-item.with-horizental-img div.jcarousel-item-header{
  padding: 9px;
}

/******************************************************/
/* Announcement text summary (new) */
/******************************************************/
.announce-item-text {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
}
/******************************************************/
/* Announcements items in Admin View */
/******************************************************/
ul.jcarousel {
  list-style-type:none;
  padding:0;
}

.jcarousel-item-thumbnail.thumbnail-large{
  margin-top: 0px;
  margin-right: 0px;
}

.jcarousel-item-info-large {
  overflow: hidden;
  padding-left: 1px;
}

.jcarousel-item-info-large:before {
  content:"";
  float: left;
  width: 1px;
  height: 100%;
}

.announce-ellipsis-wrapper {
  float: right;
  width: 100%;
  margin-left: -1px;
  text-align: justify;
}

.jcarousel-item-info-large {
  width: 230px;
  height: 70px;
  margin-top: 15px;
  margin-left: 10px;
  line-height: 1.9;
}

.announce-ellipsis {
  width: 62px;
  margin-left: -62px;
  top: -21px;
  left: 218px;

  /* add a gradient background */
  background: -webkit-gradient(linear, left top, right top,
  from(rgba(255, 255, 255, 0)), to(white), color-stop(50%, white));
  background: -moz-linear-gradient(to right, rgba(255, 255, 255, 0), white 50%, white);
  background: -o-linear-gradient(to right, rgba(255, 255, 255, 0), white 50%, white);
  background: -ms-linear-gradient(to right, rgba(255, 255, 255, 0), white 50%, white);
  background: linear-gradient(to right, rgba(255, 255, 255, 0), white 50%, white);

  box-sizing: content-box;
  -webkit-box-sizing: content-box;
  -moz-box-sizing: content-box;
  float: right;
  position: relative;
  margin-right: 1px;
  text-align: right;
}

.announce-ellipsis span {
  display: inline-block;
  font-size: 16px;
  height: 10px;
  margin-right: 3px;
  line-height: 5px;
}

/******************************************************/
/* Announcment with ziczac header & no image */
/******************************************************/
.jcarousel-item-info-large.no-img-announcements.with-ziczac-header {
  width: 305px;
}

.jcarousel-item-info-large.no-img-announcements.with-ziczac-header span.announce-ellipsis{
  left: 303px;
}

/******************************************************/
/* Announcment with horizotal line header & no image */
/******************************************************/
.jcarousel-item-info-large.no-img-announcements.with-horizental-line {
  width: 305px;
  padding-right: 4px;
  padding-left: 0px;
  margin-top: 6px;
}

.jcarousel-item-info-large.no-img-announcements.with-horizental-line span.announce-ellipsis{
  left: 300px;
}

.jcarousel-item-info-large.img-announcements.with-horizental-line {
  margin-top: 6px;
}


@media (min-width: 1200px) {
  /******************************************************/
  /* Responsive Announcments - One Announcement */
  /******************************************************/
  li.one-announce{
    width: 1015px;
  }

  /******** Ziczac header with img & horizental-line header with img *********/
  .jcarousel-item-info-large.one-announce {
    width: 880px;
  }

  /******** Ziczac header with no img & horizental-line header with no img *********/
  .jcarousel-item-info-large.no-img-announcements.with-ziczac-header.one-announce, .jcarousel-item-info-large.no-img-announcements.with-horizental-line.one-announce {
    width: 960px;
  }

  /******************************************************/
  /* Responsive Announcments - two Announcement */
  /******************************************************/
  li.two-announce{
    width: 507px;
  }

  /******** Ziczac header with img & horizental-line header with img *********/
  .jcarousel-item-info-large.two-announce {
    width: 392px;
  }

  /******** Ziczac header with no img & horizental-line header with no img *********/
  .jcarousel-item-info-large.no-img-announcements.with-ziczac-header.two-announce, .jcarousel-item-info-large.no-img-announcements.with-horizental-line.two-announce {
    width: 470px;
  }

  /******** ellipsis for two announce *********/
  .jcarousel-item-info-large.no-img-announcements.with-ziczac-header span.announce-ellipsis.two-announce,
  .jcarousel-item-info-large.no-img-announcements.with-horizental-line span.announce-ellipsis.two-announce {
    left: 469px;
  }

  .announce-ellipsis.two-announce {
    left: 391px;
  }
}

@media (max-width: 1199px) {
  /******************************************************/
  /* Responsive Announcments - One Announcement */
  /******************************************************/
  li.one-announce{
    width: 832px;
  }

  /******** Ziczac header with img & horizental-line header with img *********/
  .jcarousel-item-info-large.one-announce {
    width: 700px;
  }

  /******** Ziczac header with no img & horizental-line header with no img *********/
  .jcarousel-item-info-large.no-img-announcements.with-ziczac-header.one-announce, .jcarousel-item-info-large.no-img-announcements.with-horizental-line.one-announce {
    width: 775px;
  }

  /******** ellipsis for one announce *********/
  .announce-ellipsis.one-announce {
    display: none;
  }

  /******************************************************/
  /* Responsive Announcments - two Announcement */
  /******************************************************/
  li.two-announce{
    width: 416px;
  }

  /******** Ziczac header with img & horizental-line header with img *********/
  .jcarousel-item-info-large.two-announce {
    width: 300px;
  }

  /******** Ziczac header with no img & horizental-line header with no img *********/
  .jcarousel-item-info-large.no-img-announcements.with-ziczac-header.two-announce, .jcarousel-item-info-large.no-img-announcements.with-horizental-line.two-announce {
    width: 375px;
  }

  /******** ellipsis for two announce *********/
  .jcarousel-item-info-large.no-img-announcements.with-horizental-line span.announce-ellipsis.two-announce{
    left: 370px;
  }

  .jcarousel-item-info-large.no-img-announcements.with-ziczac-header span.announce-ellipsis.two-announce{
    left: 374px;
  }

  .announce-ellipsis.two-announce {
    left: 300px;
  }

  /******************************************************/
  /* Responsive Announcments - three Announcement */
  /******************************************************/
  li.three-announce{
    width: 416px;
  }

  /******** Ziczac header with img & horizental-line header with img *********/
  .jcarousel-item-info-large.three-announce {
    width: 302px;
  }

  /******** Ziczac header with no img & horizental-line header with no img *********/
  .jcarousel-item-info-large.no-img-announcements.with-ziczac-header.three-announce, .jcarousel-item-info-large.no-img-announcements.with-horizental-line.three-announce {
    width: 375px;
  }

  /******** ellipsis for three announce *********/
  .jcarousel-item-info-large.no-img-announcements.with-horizental-line span.announce-ellipsis.three-announce{
    left: 370px;
  }

  .jcarousel-item-info-large.no-img-announcements.with-ziczac-header span.announce-ellipsis.three-announce{
    left: 374px;
  }

  .announce-ellipsis.three-announce {
   left: 300px;
  }
}

@media (min-width: 1440px) {
  /******************************************************/
  /* Responsive Announcments - One Announcement */
  /******************************************************/
  li.one-announce{
    width: 1227px;
  }

  /******** Ziczac header with img & horizental-line header with img *********/
  .jcarousel-item-info-large.one-announce {
    width: 880px;
  }

  /******** Ziczac header with no img & horizental-line header with no img *********/
  .jcarousel-item-info-large.no-img-announcements.with-ziczac-header.one-announce, .jcarousel-item-info-large.no-img-announcements.with-horizental-line.one-announce {
    width: 960px;
  }

  /******************************************************/
  /* Responsive Announcments - two Announcement */
  /******************************************************/
  li.two-announce{
    width: 613px;
  }

  /******** Ziczac header with img & horizental-line header with img *********/
  .jcarousel-item-info-large.two-announce {
    width: 392px;
  }

  /******** Ziczac header with no img & horizental-line header with no img *********/
  .jcarousel-item-info-large.no-img-announcements.with-ziczac-header.two-announce, .jcarousel-item-info-large.no-img-announcements.with-horizental-line.two-announce {
    width: 470px;
  }

  /******** ellipsis for two announce *********/
  .jcarousel-item-info-large.no-img-announcements.with-ziczac-header span.announce-ellipsis.two-announce,
  .jcarousel-item-info-large.no-img-announcements.with-horizental-line span.announce-ellipsis.two-announce {
    left: 469px;
  }

  .announce-ellipsis.two-announce {
    left: 391px;
  }
  /******************************************************/
  /* Responsive Announcments - three Announcement */
  /******************************************************/
  li.three-announce{
    width: 408.5px;
  }

  /******** Ziczac header with img & horizental-line header with img *********/
  .jcarousel-item-info-large.three-announce {
    width: 302px;
  }

  /******** Ziczac header with no img & horizental-line header with no img *********/
  .jcarousel-item-info-large.no-img-announcements.with-ziczac-header.three-announce, .jcarousel-item-info-large.no-img-announcements.with-horizental-line.three-announce {
    width: 375px;
  }

  /******** ellipsis for three announce *********/
  .jcarousel-item-info-large.no-img-announcements.with-horizental-line span.announce-ellipsis.three-announce{
    left: 370px;
  }

  .jcarousel-item-info-large.no-img-announcements.with-ziczac-header span.announce-ellipsis.three-announce{
    left: 374px;
  }

  .announce-ellipsis.three-announce {
   left: 300px;
  }

}


/**********************************************************/
/* Responsive Announcments for Admin View - Desktop View */
/*********************************************************/

/******************************************************/
/* One Announcement */
/******************************************************/
.jcarousel.preview-one-announce li{
  width: 985px;
}

.jcarousel.preview-one-announce li .panel-body.jcarousel-item .jcarousel-ziczac-img, .jcarousel.preview-one-announce li .jcarousel-item-info-large.img-announcements.with-horizental-line{
  width: 880px;
}

.jcarousel.preview-one-announce li .jcarousel-item-info-large.no-img-announcements.with-ziczac-header, .jcarousel.preview-one-announce li .jcarousel-item-info-large.no-img-announcements.with-horizental-line{
  width: 960px;
}

/******************************************************/
/* two Announcements */
/******************************************************/
.jcarousel.preview-two-announce li{
  width: 493px;
}

.jcarousel.preview-two-announce li .panel-body.jcarousel-item .jcarousel-ziczac-img, .jcarousel.preview-two-announce li .jcarousel-item-info-large.img-announcements.with-horizental-line{
  width: 392px;
}

.jcarousel.preview-two-announce .preview-announce-ellipsis-img{
  left: 390px;
}

.jcarousel.preview-two-announce li .jcarousel-item-info-large.no-img-announcements.with-ziczac-header, .jcarousel.preview-two-announce li .jcarousel-item-info-large.no-img-announcements.with-horizental-line{
  width: 470px;
}

.jcarousel.preview-two-announce .preview-announce-ellipsis-noimg{
  left: 469px;
}

/**********************************************************/
/* Responsive Announcments for Admin View - Tablet View */
/*********************************************************/

/******************************************************/
/* One Announcement */
/******************************************************/
.jcarousel.tablet-preview-one-announce li{
  width: 801px;
}

.jcarousel.tablet-preview-one-announce li .panel-body.jcarousel-item .jcarousel-ziczac-img, .jcarousel.tablet-preview-one-announce li .jcarousel-item-info-large.img-announcements.with-horizental-line{
  width: 700px;
}

.jcarousel.tablet-preview-one-announce li .jcarousel-item-info-large.no-img-announcements.with-ziczac-header, .jcarousel.tablet-preview-one-announce li .jcarousel-item-info-large.no-img-announcements.with-horizental-line{
  width: 775px;
}

/******************************************************/
/* two Announcements */
/******************************************************/
.jcarousel.tablet-preview-two-announce li{
  width: 401px;
}

.jcarousel.tablet-preview-two-announce li .panel-body.jcarousel-item .jcarousel-ziczac-img, .jcarousel.tablet-preview-two-announce li .jcarousel-item-info-large.img-announcements.with-horizental-line{
  width: 300px;
}

.jcarousel.tablet-preview-two-announce .preview-announce-ellipsis-img{
  left: 299px;
}

.jcarousel.tablet-preview-two-announce li .jcarousel-item-info-large.no-img-announcements.with-ziczac-header, .jcarousel.tablet-preview-two-announce li .jcarousel-item-info-large.no-img-announcements.with-horizental-line{
  width: 375px;
}

.jcarousel.tablet-preview-two-announce .preview-announce-ellipsis-noimg{
  left: 374px;
}


/**********************************************************/
/* Announcement Preview for Admin */
/*********************************************************/
.announcetabletpreview.btn.btn-default, .announcedesktoppreview.btn.btn-default{
  font-size: 13px;
}

.announcetabletpreview{
  margin-left: 5px;
}

.announcedesktoppreview:hover, .announcetabletpreview:hover{
  cursor: pointer;
}

/******************************************************/
/* Announcement cards                                  */
/* Below 560px wide the cards start as a one-line      */
/* strip, and the toggle opens them.                   */
/******************************************************/
.ann-cards,
.ann-card-modal,
.ann-cards-preview {
    --ann-accent: var(--link-color, #1c72b9);
    --ann-heading: var(--header-color, #0f416b);
    --ann-tint: var(--link-bg-color, #e3eef8);
    --ann-text: #4b5a68;
    --ann-on-page: #1d2b38;
    --ann-on-page-dim: rgba(29, 43, 56, 0.28);
    --ann-shadow: 0 1px 2px rgba(10, 30, 50, 0.10), 0 8px 20px -10px rgba(10, 30, 50, 0.35);
    --ann-dur: 5s;
}

.ann-cards-wrapper {
    margin: 30px 0 6px;
}

.ann-cards {
    container-type: inline-size;
    position: relative;
}

.ann-cards.is-on-dark {
    --ann-on-page: #ffffff;
    --ann-on-page-dim: rgba(255, 255, 255, 0.38);
}

.ann-cards-viewport {
    display: flow-root;
    position: relative;
}

.ann-cards-track {
    --ann-gap: 14px;
    --ann-per-view: 3;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - (var(--ann-per-view) - 1) * var(--ann-gap)) / var(--ann-per-view));
    gap: var(--ann-gap);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    padding: 6px 4px 14px;
    margin: -6px -4px -14px;
    scroll-padding-inline: 4px;
}

.ann-cards-track::-webkit-scrollbar {
    display: none;
}

.ann-cards-item {
    scroll-snap-align: start;
    display: flex;
    min-width: 0;
}

.ann-cards-include {
    display: flex;
    flex: 1;
    min-width: 0;
}

@container (max-width: 899.98px) {
    .ann-cards-track {
        --ann-per-view: 2;
    }
}

@container (max-width: 559.98px) {
    .ann-cards-track {
        grid-auto-columns: 86%;
    }
}

/***** Card *****/
.ann-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    flex: 1;
    min-width: 0;
    min-height: 124px;
    margin: 0;
    padding: 16px 16px 14px;
    border: 0;
    border-radius: 10px;
    background: #fff;
    color: #1d2b38;
    font: inherit;
    line-height: 1.42857;
    text-align: left;
    cursor: pointer;
    box-shadow: var(--ann-shadow);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.ann-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(10, 30, 50, 0.12), 0 16px 30px -12px rgba(10, 30, 50, 0.45);
}

.ann-card:focus {
    outline: none;
}

.ann-card:focus-visible,
.ann-cards-nav:focus-visible,
.ann-cards-toggle:focus-visible,
.ann-modal-close:focus-visible {
    outline: 3px solid var(--ann-accent);
    outline-offset: 2px;
}

.ann-card-tile {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 56px;
    height: 56px;
    overflow: hidden;
    border-radius: 12px;
    background: var(--ann-tint);
    color: var(--ann-accent);
    font-size: 30px;
    line-height: 1;
}

.ann-card-tile img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* The image glyph holds the tile until an uploaded image takes it */
.ann-card-tile img + .mdi {
    display: none;
}

.ann-card-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-self: stretch;
    min-width: 0;
}

.ann-card-title,
.ann-card-summary {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}

.ann-card-title {
    font-size: 14.5px;
    font-weight: bold;
    line-height: 1.3;
    color: var(--ann-heading);
}

.ann-card-summary {
    font-size: 13px;
    line-height: 1.45;
    color: var(--ann-text);
}

.ann-card-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: auto;
    padding-top: 6px;
    font-size: 12.5px;
    font-weight: bold;
    color: var(--ann-accent);
}

.ann-card-more .mdi {
    font-size: 15px;
    line-height: 1;
    /* The text ink sits above its line-box centre and Windows grid-fits the baseline,
       so the arrow lifts a whole pixel in both transforms (LMS-13459). */
    transform: translateY(-1px);
    transition: transform 0.18s ease;
}

.ann-card:hover .ann-card-more .mdi {
    transform: translate(3px, -1px);
}

/***** Style 2: text only *****/
.ann-card-text {
    grid-template-columns: minmax(0, 1fr);
}

/***** Style 3: the image takes the left of the card *****/
.ann-card-feature {
    grid-template-columns: 40% minmax(0, 1fr);
    gap: 0;
    padding: 0;
    overflow: hidden;
}

.ann-card-feature .ann-card-tile {
    align-self: stretch;
    width: auto;
    height: auto;
    min-height: 124px;
    border-radius: 0;
    font-size: 46px;
}

.ann-card-feature .ann-card-tile img {
    object-fit: cover;
}

.ann-card-feature .ann-card-body {
    padding: 14px 16px;
}

/***** Style 4: highlight *****/
.ann-card-highlight {
    background: var(--ann-accent);
}

.ann-card-highlight .ann-card-title,
.ann-card-highlight .ann-card-more {
    color: #fff;
}

.ann-card-highlight .ann-card-summary {
    color: rgba(255, 255, 255, 0.86);
}

.ann-card-highlight .ann-card-tile {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

/***** Arrows and dots *****/
.ann-cards-nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin-top: -17px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: var(--ann-heading);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(10, 30, 50, 0.18), 0 4px 12px -2px rgba(10, 30, 50, 0.28);
    transition: transform 0.15s ease;
}

.ann-cards-nav:hover {
    transform: scale(1.06);
}

.ann-cards-prev {
    left: -17px;
}

.ann-cards-next {
    right: -17px;
}

.ann-cards-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    height: 16px;
    margin-top: 8px;
}

.ann-cards-dot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    transition: width 0.2s ease;
}

.ann-cards-dot::after {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 3px;
    background: var(--ann-on-page-dim);
    transition: width 0.2s ease, background 0.2s ease;
}

.ann-cards-dot.is-on {
    width: 26px;
}

.ann-cards-dot.is-on::after {
    width: 20px;
    background: var(--ann-on-page);
}

.ann-cards.is-static .ann-cards-nav,
.ann-cards.is-static .ann-cards-dots {
    visibility: hidden;
}

/***** Phone strip *****/
.ann-cards-toggle,
.ann-cards-progress {
    display: none;
}

@container (max-width: 559.98px) {
    .ann-cards-nav {
        display: none;
    }

    .ann-cards-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        flex: none;
        width: 36px;
        height: 36px;
        padding: 0;
        border: 0;
        border-radius: 8px;
        background: var(--ann-tint);
        color: var(--ann-accent);
        font-size: 22px;
        line-height: 1;
        cursor: pointer;
    }

    .ann-cards-toggle .mdi {
        transition: transform 0.2s ease;
    }

    .ann-cards:not(.is-open) .ann-cards-viewport {
        display: flex;
        align-items: center;
        gap: 10px;
        height: 48px;
        margin-bottom: 8px;
        padding: 6px;
        overflow: hidden;
        border-radius: 10px;
        background: #fff;
        box-shadow: var(--ann-shadow);
    }

    .ann-cards:not(.is-open) .ann-cards-track {
        --ann-gap: 0px;
        flex: 1;
        min-width: 0;
        grid-auto-columns: 100%;
        margin: 0;
        padding: 0;
        scroll-padding-inline: 0;
    }

    .ann-cards:not(.is-open) .ann-card {
        grid-template-columns: minmax(0, 1fr);
        align-items: center;
        height: 36px;
        min-height: 0;
        padding: 0 4px;
        overflow: visible;
        border-radius: 6px;
        background: transparent;
        box-shadow: none;
    }

    .ann-cards:not(.is-open) .ann-card:hover {
        transform: none;
        box-shadow: none;
    }

    .ann-cards:not(.is-open) .ann-card-tile,
    .ann-cards:not(.is-open) .ann-card-summary,
    .ann-cards:not(.is-open) .ann-card-more,
    .ann-cards:not(.is-open) .ann-cards-dots {
        display: none;
    }

    .ann-cards:not(.is-open) .ann-card-body {
        justify-content: center;
        padding: 0;
    }

    .ann-cards:not(.is-open) .ann-card-title {
        display: block;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        font-size: 14px;
        color: var(--ann-heading);
    }

    .ann-cards:not(.is-open) .ann-cards-progress {
        display: block;
        position: absolute;
        left: 0;
        bottom: 0;
        width: 0;
        height: 2px;
        background: var(--ann-accent);
        animation: annCardsProgress var(--ann-dur) linear forwards;
    }

    .ann-cards.is-paused .ann-cards-progress {
        animation-play-state: paused;
    }

    .ann-cards.is-still:not(.is-open) .ann-cards-progress,
    .ann-cards.is-static:not(.is-open) .ann-cards-progress {
        display: none;
    }

    .ann-cards.is-open .ann-cards-dots {
        height: 30px;
        margin-top: 6px;
    }

    .ann-cards.is-open .ann-cards-toggle {
        position: absolute;
        left: 0;
        bottom: -36px;
        z-index: 2;
        width: 30px;
        height: 30px;
        font-size: 19px;
    }

    .ann-cards.is-open .ann-cards-toggle .mdi {
        transform: rotate(180deg);
    }

    .ann-cards.is-open .ann-cards-track {
        animation: annCardsOpen 0.28s ease both;
    }
}

@keyframes annCardsProgress {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes annCardsOpen {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: none; }
}

/***** Detail dialog *****/
.ann-card-modal .modal-content {
    overflow: hidden;
    border: 0;
    border-radius: 14px;
    box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.55);
}

.ann-modal-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 14px;
    align-items: start;
    padding: 20px 18px 12px 20px;
}

.ann-modal-head.ann-modal-no-media {
    grid-template-columns: minmax(0, 1fr) auto;
}

.ann-modal-eyebrow {
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #6b7a88;
}

.ann-modal-title {
    margin: 3px 0 0;
    font-size: 20px;
    line-height: 1.3;
    color: var(--ann-heading);
}

.ann-modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #5a6977;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.ann-modal-close:hover {
    background: #f1f5f8;
}

.ann-modal-body {
    max-height: 60vh;
    overflow-y: auto;
    padding: 0 20px 8px;
    font-size: 14px;
    line-height: 1.6;
    color: #243240;
}

.ann-modal-foot {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 20px 16px;
    border-top: 1px solid #edf1f5;
}

.ann-card-modal .ann-modal-foot .btn-primary {
    background-color: var(--ann-accent);
    border-color: var(--ann-accent);
}

/***** Admin preview *****/
.ann-cards-preview {
    display: grid;
    gap: 10px;
    margin-bottom: 24px;
}

.ann-cards-preview h6 {
    margin: 10px 0 0;
}

.ann-cards-preview .ann-cards-strip-preview {
    width: 390px;
    max-width: 100%;
}

.ann-cards-preview .ann-modal-preview {
    max-width: 600px;
}

@media (max-width: 992px) {
    .ann-cards-wrapper {
        margin-top: 20px;
    }

    /* The spacer stands in for a hidden carousel, so beside the cards it shows only when announcements are switched off */
    .top-gap.no-announce.hidden:has(+ .ann-cards-wrapper) {
        display: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ann-card,
    .ann-card-more .mdi,
    .ann-cards-nav,
    .ann-cards-dot,
    .ann-cards-dot::after,
    .ann-cards-toggle .mdi {
        transition: none;
    }

    .ann-cards.is-open .ann-cards-track {
        animation: none;
    }
}
