.view-cards header{
    width: 100%;
}
.view-cards h2.block-title{
    margin-bottom: 2rem;
}
.view-cards .view-content .views-row {
  text-align: center;
}
.view-cards .view-header{
    width: 100%;
}
.view-cards .view-content .views-row .views-field-field-card-item-title {
  margin-top: 15px;
}
.view-cards.threecolumn[data-once="ajax-pager"] .view-content,
.view-cards.fourcolumn[data-once="ajax-pager"] .view-content{
  display: block;
}

.view-cards .view-header{
    margin-bottom: calc(2rem - 10px);
}


.view-center-pager ul.pager,
.view-center-pager ul.pagination {
    padding-left: 0;
    margin: 1rem auto 0 auto;
    width: 100%;
    text-align: center;
}
.view-center-pager .pager-nav{
    margin: 0 auto;
}

.verticallist-two-cols .view-content{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 2rem;
}
.verticallist-two-cols h2.cardgroup{
    grid-column: 1 / -1;
}

.verticallist .card-con, 
.verticallistne .views-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  width: 100%;
  gap: 2%;
  padding: 1.5rem;
  margin: 0 0 1rem 0;
  border: 2px solid #eee;
  border-radius: 4px;
  align-items: center;
}
.verticallist .views-field-field-card-image-media,
.verticallist .card-img{
    flex: 0 15%;
    overflow: hidden;
    margin-right: 1rem;
}
.verticallist .views-field-field-resource-image{
    flex: 0 15%;
    overflow: hidden;
}
.verticallist .card-text{
    flex: 1 1;
    overflow: hidden;
    text-align: left;
}
.verticallist .views-field-nothing h4{
    margin-top: 0;
    margin: 0;
}
.verticallistbig{
    margin-top: 2rem;

}
.verticallistbig .view-content .views-row{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
    gap: 0;
    padding-bottom: 0;
    margin: 0 0 4rem 0;
    background-color: #fff;
    text-align: left;
}

.verticallistbig .views-row:nth-child(even){
    flex-direction: row-reverse;
}
.verticallistbig .views-field-field-card-image-media{
    flex: 0 50%;
    overflow: hidden;
    float: left;
    -ms-flex: 50%;
    position: relative;
}
.verticallistbig .views-field-field-card-image-media img{
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    left: 0;
}
.verticallistbig .views-field-nothing{
    flex: 0 50%;
    overflow: hidden;
    float: left;
    -ms-flex: 50%;
    padding: 4rem;
}

.verticallistbig .views-field-nothing h2 {
  font-size: 1.6875rem;
  margin-bottom: 15px;
  line-height: 1.875rem;
}
.verticallistne .views-field-nothing{
    flex: 0 68%;
    overflow: hidden;
    float: left;
    -ms-flex: 68%;
}
.verticallistne .views-field-field-events-image,
.verticallistne  .views-field-field-news-image{
    flex: 0 30%;
    overflow: hidden;
    float: left;
    -ms-flex: 30%;
}
.verticallistne h4 a{
    border-bottom: 0;
}

.view-cards.view-display-id-block_7 .slick__slide .slide__content > .slide__media {
    display: none !important;
}

.view-cards .slick__arrow {
    position: absolute;
    top: 50%;
    width: 100%;
}

.view-cards .slick__arrow .slick-arrow {
    border: 0;
    background: none;
    font-size: 0;
    font-family: "flexslider-icon";
    display: inline-block;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
}

.view-cards .slick__arrow  .slick-next.slick-arrow {
    right: 0;
    opacity: 0.3;
    -webkit-transition: all 0.2s ease-in-out;
    -moz-transition: all 0.2s ease-in-out;
    -ms-transition: all 0.2s ease-in-out;
    -o-transition: all 0.2s ease-in-out;
    transition: all 0.2s ease-in-out;
}

.view-cards .slick__arrow  .slick-prev.slick-arrow {
    left: 0;
    opacity: 0.3;
    -webkit-transition: all 0.2s ease-in-out;
    -moz-transition: all 0.2s ease-in-out;
    -ms-transition: all 0.2s ease-in-out;
    -o-transition: all 0.2s ease-in-out;
    transition: all 0.2s ease-in-out;
}

.view-cards .slick:hover .slick__arrow  .slick-next.slick-arrow,
.view-cards .slick:hover .slick__arrow  .slick-prev.slick-arrow {
    opacity: 1;
}

.view-cards .slick__arrow  .slick-next.slick-arrow:before {
    font-family: "flexslider-icon";
    font-size: 40px;
    display: inline-block;
    content: '\f002';
    color: rgba(0, 0, 0, 0.8);
    text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.3);
    margin-top: 10px;
    color: var(--bs-primary) !important;
    box-shadow: none !important;
}

.view-cards .slick__arrow  .slick-prev.slick-arrow:before {
    font-family: "flexslider-icon";
    font-size: 40px;
    display: inline-block;
    content: '\f001';
    color: rgba(0, 0, 0, 0.8);
    text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.3);
    margin-top: 10px;
    color: var(--bs-primary) !important;
    box-shadow: none !important;
}
.view-cards .slide__media{
    display: none;
}

h2.cardgroup{
    margin-bottom: 2rem;
}
h2.cardgroup.centertitle{
    margin: 0 auto 2rem auto; 
}
.verticallist .field-content p:last-child {
  margin-bottom: 0 !important;
}

@media only screen and (max-width: 992px){ 
    .verticallist-two-cols .view-content {
        gap: 1rem 1rem;
    }
}
@media only screen and (max-width: 768px){ 
    .verticallist-two-cols .view-content{
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .verticallist-two-cols .card-con{
        margin: 0 0 0 0;
    }
}
@media only screen and (max-width: 650px){
    .verticallistbig .view-content .views-row{
        display: inherit;
        margin: 0 0 2rem 0;
    }
    .verticallistbig .views-field-nothing {
        padding: 2rem;
        float: inherit;
    }
    .verticallistbig .views-field-field-card-image-media img {
        position: relative;
    }
    .verticallistbig .views-field-nothing h2 {
        margin-top: 0;
    }
}


/* ===========================================================================
 * CARDS 5 ORANGE ICONS CENTER
 *
 * A reusable card STYLE (5-up, centred icon over a title, orange accent) named
 * after the style rather than any one block, so other block types / contexts
 * can use the same class. First used by block--cards-5-orange.html.twig.
 *
 * Border is TRANSPARENT at rest, orange on hover.
 *
 * The card rules are scoped under the grid class
 * (.cards-orange-icons-center .…__card) to raise specificity to (0,2,0).
 * That is deliberate: global.css has `.region-content a { border-bottom: dotted
 * 0.1rem #333 }` at (0,1,1), which — because this component file loads BEFORE
 * global.css — would otherwise win and paint a dotted underline along the
 * bottom of each linked card. The extra class beats it cleanly.
 * ======================================================================== */
/* Intro copy above the cards (the block's body field). Centred to match the
   card style; the editor controls the actual headings/text inside it. */
.cards-orange-icons-center__intro {
    text-align: center;
    margin-bottom: 40px;
}
.cards-orange-icons-center__intro > :last-child { margin-bottom: 0; }

.cards-5.cards-orange-icons-center {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}
.cards-4.cards-orange-icons-center {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.cards-orange-icons-center .cards-orange-icons-center__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    background: var(--white);
    border: 1px solid transparent;
    border-radius: 1rem;
    padding: 28px 16px;
    text-align: center;
    text-decoration: none;
    color: var(--phi-dark);
    transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
/* Lift + orange border only when the card is a real link. */
.cards-orange-icons-center a.cards-orange-icons-center__card:hover,
.cards-orange-icons-center a.cards-orange-icons-center__card:focus-visible {
    border-color: var(--phi-orange);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(245, 120, 32, 0.10);
    color: var(--phi-dark);
}
.cards-orange-icons-center__icon { display: inline-flex; }
.cards-orange-icons-center__icon img {
    width: auto;
    height: 34px;               /* ~30% smaller than the original 48px */
    max-width: 40px;
    object-fit: contain;
    transition: transform 0.3s var(--ease);
}
.cards-orange-icons-center a.cards-orange-icons-center__card:hover .cards-orange-icons-center__icon img {
    transform: scale(1.1);
}
.cards-orange-icons-center__title {
    margin: 0;
    font-family: var(--display-font);
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--phi-dark);
}
.cards-orange-icons-center__body {
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--phi-gray-600);
}

/* The column counts are set on `.cards-4.cards-orange-icons-center` /
   `.cards-5...` (0,2,0). These overrides must carry the same specificity or
   they lose the tie and never apply — which left the grid at 4/5 columns on
   phones, overflowing the page horizontally (and, because an overflowing
   document widens the mobile layout viewport, pushing the fixed header's
   hamburger off-screen). */
@media (max-width: 991px) {
    .cards-4.cards-orange-icons-center,
    .cards-5.cards-orange-icons-center { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
    .cards-4.cards-orange-icons-center,
    .cards-5.cards-orange-icons-center { grid-template-columns: repeat(2, 1fr); }
}
