.elementor-kit-7{--e-global-color-primary:#009AB2;--e-global-color-secondary:#011433;--e-global-color-text:#011433;--e-global-color-accent:#61CE70;--e-global-color-6b8ec74:#5C7C89;--e-global-color-246aafb:#D6D1C5;--e-global-typography-primary-font-family:"DINPro";--e-global-typography-primary-font-size:27px;--e-global-typography-primary-font-weight:400;--e-global-typography-secondary-font-family:"DINPro";--e-global-typography-secondary-font-size:21px;--e-global-typography-secondary-font-weight:300;--e-global-typography-text-font-family:"DINPro";--e-global-typography-text-font-weight:300;--e-global-typography-accent-font-family:"DINPro";--e-global-typography-accent-font-weight:400;color:var( --e-global-color-text );font-family:var( --e-global-typography-text-font-family ), Sans-serif;font-weight:var( --e-global-typography-text-font-weight );}.elementor-kit-7 button,.elementor-kit-7 input[type="button"],.elementor-kit-7 input[type="submit"],.elementor-kit-7 .elementor-button{background-color:var( --e-global-color-secondary );color:#FFFFFF;border-radius:25px 25px 25px 25px;}.elementor-kit-7 e-page-transition{background-color:#FFBC7D;}.elementor-kit-7 a{color:var( --e-global-color-primary );font-family:"DINPro", Sans-serif;}.elementor-kit-7 h1{color:var( --e-global-color-6b8ec74 );font-family:"DINPro-Condensed", Sans-serif;font-size:69px;}.elementor-kit-7 h2{color:var( --e-global-color-secondary );font-family:"DINPro-Condensed", Sans-serif;font-size:63px;text-transform:uppercase;}.elementor-kit-7 h3{color:var( --e-global-color-primary );font-family:"DINPro-Condensed", Sans-serif;font-size:39px;}.elementor-kit-7 h4{font-family:"DINPro-Condensed", Sans-serif;}.elementor-kit-7 h5{font-family:"DINPro-Condensed", Sans-serif;}.elementor-kit-7 h6{font-family:"DINPro-Condensed", Sans-serif;}.elementor-section.elementor-section-boxed > .elementor-container{max-width:1920px;}.e-con{--container-max-width:1920px;}.elementor-widget:not(:last-child){margin-block-end:0px;}.elementor-element{--widgets-spacing:0px 0px;--widgets-spacing-row:0px;--widgets-spacing-column:0px;}{}h1.entry-title{display:var(--page-title-display);}@media(max-width:1024px){.elementor-section.elementor-section-boxed > .elementor-container{max-width:1024px;}.e-con{--container-max-width:1024px;}}@media(max-width:767px){.elementor-section.elementor-section-boxed > .elementor-container{max-width:767px;}.e-con{--container-max-width:767px;}}/* Start custom CSS */html {
    font-size: 0.8333vw;
}

.elementor-sub-item.elementor-item-active::before {
    background-color: #4498af !important;
}

div.elementor-location-header {
    position: absolute;
    /*top: 30px;*/
    top: 0px;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent !important;
}



.services-grid {
    /*grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));*/
    /*grid-auto-rows: minmax(400px, auto);*/
    display: grid;
    /*grid-template-columns: 1fr 1fr 1fr;*/
    grid-template-columns: repeat(auto-fit, minmax(32.5rem, 1fr)); /* 520px, 1fr */
    grid-auto-rows: minmax(32.5rem, auto);
    gap: 2.750rem; /* 60px */
    width: 100%;
    /* max-width: 1200px; */
}

/* ─────────── service card container ─────────── */
.service-card {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 0px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    max-width: 32.5rem;  /* 520px */
    max-height: 32.5rem;  /* 520px */
}

@media (max-width: 768px) { /* You can adjust this breakpoint as needed */
    .services-grid {
        grid-template-columns: 1fr; /* One column for mobile */
        grid-auto-rows: auto; /* Let the row height adjust automatically */
        gap: 30px; /* 30px */
    }
    
    .service-card {
        height: 400px;
        width: auto;
    }
}



/* ─────────── expanding overlay ─────────── */
.service-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50%;
    height: 50%;
    background: #0b3d91;
    color: #fff;
    padding: 1.5rem;
    display: flex
;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    text-align: center;
    overflow: hidden;
    transition: width 0.45s ease, height 0.45s ease;
}

/* SVG arrow (provided by user) */
.service-arrow {
    position: absolute;
    top: 0.875rem; /* 14px */
    right: 0.875rem; /* 14px */
    width: 2rem; /* 32px */
    height: 2rem; /* 32px */
    /* transform: rotate(225deg); */
    /* point back to overlay corner */
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.service-arrow path, .service-arrow polyline, .service-arrow line {
    stroke: #fff;
}

/* ─────────── minimal label ─────────── */
.service-label {
    font-size: 2.250rem; /* 36px */
    line-height: 2.500rem; /* 40px */
    text-align: left;
    text-transform: uppercase;
    transition: opacity 0.3s ease;
    position: absolute;
    max-width: 80%;
    font-family: "DINPro-Condensed", Sans-serif;
}

/* ─────────── details (hidden until expanded) ─────────── */
.service-details {
    opacity: 0;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    gap: 1rem;
    transition: opacity 0.2s ease;
    flex-grow: 1;
    width: 100%;
    z-index: 99;
    position: absolute;
    width: 100%;
    color: white;
    height: 100%;
}

.service-details h2 {
    margin: 0;
    font-size: 1.9rem;
    font-weight: 600;
    color: white;
}

.service-details hr {
    width: 100%;
    border: none;
    border-top: 1px solid #fff;
    margin: 0.750rem 0px;
}

.service-details p {
    margin: 0;
    font-size: 1.500rem; /* 24px */
    line-height: 1.5;
}

.service-details button {
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
    padding: 0.313rem 1.563rem;
    
    font-family: "DINPro", Sans-serif;
    font-size: 1.25rem;
    font-weight: 500;
    text-transform: uppercase;
    line-height: 0.800;
    letter-spacing: 0.1em;
    
    
    
    
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
    margin-top: auto;
   border-radius: 2rem 2rem 2rem 2rem;
    padding: 1rem 2.375rem 1rem 2.375rem;
}

.service-details button:hover {
    
}

.service-details .services-button-1 button:hover {
    background: white;
    color: #5c7c89;
    border-color: white;
}

.service-details .services-button-2 button:hover {
    background: white;
    color: #011433;
    border-color: white;
}

.service-details .services-button-3 button:hover {
    background: #011433;
    color: #cdc7be !important;
    border-color: #011433;
}

/* ─────────── hover behaviour ─────────── */
.service-card:hover .service-overlay {
    width: 100%;
    height: 100%;
}

.service-card:hover .service-details {
    opacity: 1;
    pointer-events: all;
    transition-delay: 0.25s;
    /* reveal after grow */
}

.service-card:hover .service-label, .service-card:hover .service-arrow {
    opacity: 0;
}



@media (max-width: 480px) {
    .service-card {
        height: 400px;
        width: 300px;
        max-width: 300px;
        max-height: 300px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .service-arrow {

        top: 14px; /* 14px */
        right: 14px; /* 14px */
        width: 32px; /* 32px */
        height: 32px; /* 32px */
    }
    
    .service-label {
         font-size: 16px; /* 36px */
        line-height: 16px; /* 40px */
        text-align: left;
        text-transform: uppercase;
        transition: opacity 0.3s ease;
        position: absolute;
        max-width: 80%;
        font-family: "DINPro-Condensed", Sans-serif;
    }
    
    .service-overlay {
        padding: 20px;
        
    }
    
    .service-details {
    padding: 16px;
    gap: 16px;

    }
    
    .service-details h2 {
        font-size: 22px;
    }
    
    .service-details p {
        font-size: 16px;
    }
    
    .service-details button {

        /*padding: 4px 19px;*/
        /*font-size: 16px;*/
        /*border-radius: 20px;*/
                font-size: 12px;
        line-height: 8px;
        border-radius: 7rem 7rem 7rem 7rem;
        padding: 13px 30px 13px 30px;
    }
}


/** * =====================================================
=========================================================
 */


.ev-card {
  /* MODIFIED: Initially hidden. JS will make it visible. */
  display: none; 
  
  /* Kept Styles */
  background: #011425;
  background-image: url(/wp-content/uploads/2025/06/home-services-1.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: top center;
  color: white;
  height: 36.250rem; /* 580px */
  padding: 1rem;
  flex-direction: column;
  gap: 0.500rem;
  align-items: center;
  justify-content: space-between;
  transition: all 0.6s ease-in-out;
  
  /* MODIFIED: Let the grid control width, but set a max-width */
  width: 100%;
  max-width: 27.5rem; /* 440px */
}

/* NEW: The class that JavaScript will add to show the card */
.ev-card.is-visible {
  display: flex;
}

.ev-card:hover {
  background-color: #011425;
    background-image: none !important;
}

.ev-header {
  display: flex;
  flex-direction: row;
  width: 100%;
  
}

.ev-date {
  background: #011433;
  width: 6.250rem;  /* 100px */
  height: 7.500rem; /* 120px */
  display: flex;
  flex-direction: column;
  align-content: center;
  text-align: center;
  justify-content: space-around;
  padding: 0.250rem;
  font-size: 1.750rem; /* 28px */
  line-height: 1.429; /* 40px */
  flex-shrink: 0; /* Prevents date box from shrinking */
}

.ev-card:hover .ev-date {
  background: #5c7c89;
  color: white;
}

.ev-date > div:first-child {
  font-size: 3.750rem; /* 40px, but you have a typo in your original CSS, this should be larger */
  line-height: 1; 
  font-weight: 600;
  color: #009ab2;
}

.ev-card:hover .ev-date > div:first-child {
  color: white;
}

.ev-details {
  opacity: 0;
  width: auto;
  flex-grow: 1;
  margin-left: 1.500rem;
  color: #009ab2;
  font-size: 1.250rem; /* 20px */
  font-weight: 600;
  transition: opacity 0.3s ease;
}

.ev-details-2 {
    color: #ffffff !important;
}

.ev-card:hover .ev-details {
  opacity: 1;
  transition-delay: 0.2s;
}

.ev-content {
  opacity: 0;
  text-align: left;
  width: 95%;
  transition: opacity 0.3s ease;
  font-size: 1.25rem;
}

.ev-card:hover .ev-content {
  opacity: 1;
  transition-delay: 0.2s;
}

.ev-content-title {
  color: #e7ebed;
  font-size: 1.9rem;
}

.ev-footer {
  width: 100%;
  font-size: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative; /* Added for absolute positioning of child */
  min-width: 20px;
    height: auto;
    flex-grow: 0;
    /*margin-top: auto;*/
    min-height: 39px;
}

.ev-footer-location {
  font-size: 3.125rem; /* 50px */
  font-family: "DINPro-Condensed", Sans-serif;
    font-weight: 400;
    color: #FFFFFF;
  line-height: 1;
  width: 100%;
  text-align: left; /* Center the location text */
  opacity: 1;
  margin-bottom: 1rem;
  transition: opacity 0.3s ease;
  align-self: flex-start;
  
}

.ev-footer-city {
    text-align: left;
    align-self: flex-start;
    font-weight: 600;
}

.ev-card:hover .ev-footer-location, .ev-card:hover .ev-footer-city {
  opacity: 0;
}

.ev-footer-learn-more {
  position: relative;
  opacity: 0;
  z-index: 2;
  overflow: hidden;
}

/*.ev-footer-learn-more a {*/
/*  background: transparent;*/
/*  border: 1px solid #fff;*/
/*  color: #fff;*/
/*  padding: 0.313rem 1.563rem;*/
/*  font-size: 1rem;*/
/*  text-transform: uppercase;*/
/*  cursor: pointer;*/
/*  transition: background 0.3s ease, color 0.3s ease;*/
/*}*/


.ev-footer-learn-more a {
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
    padding: 0.313rem 1.563rem;
    font-family: "DINPro", Sans-serif;
    font-size: 1.25rem;
    font-weight: 500;
    text-transform: uppercase;
    line-height: 0.800;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
    margin-top: auto;
    border-radius: 2rem 2rem 2rem 2rem;
    padding: 1rem 2.375rem 1rem 2.375rem;
        display: block;
}

.ev-footer-learn-more a:hover {
    background: white;
    color: #011433;
    border-color: white;
}

.ev-card:hover .ev-footer-learn-more {
  opacity: 1;
  transition-delay: 0.2s;
}


/* ======================================= */
/* == NEW GRID-BASED SLIDER LAYOUT      == */
/* ======================================= */

.ev-slider-grid {
  max-width: 1600px;
  margin: 0 auto;
  display: grid;
  /* Columns: [arrow] [event track] [arrow] */
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem; /* Space between arrows and track */
}

.ev-track {
  display: grid;
  /* On desktop, show 3 cards */
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem; /* Your original gap between cards */
  overflow: hidden; /* Ensures no extra card parts are visible */
}

/* MODIFIED: Chevrons are now part of the grid flow */
.ev-nav {
  position: static; /* No longer absolute */
  transform: none;  /* No longer vertically centered with transform */
  z-index: 5;
  
  /* Kept Styles */
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(0,0,0,.35);
  color: #fff;
  font-size: 1.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .3s ease;
}

.ev-nav:hover { background: rgba(0,0,0,.55); }
.ev-nav:disabled { opacity:.25; cursor:default; }


.ev-card {
    position: relative;
    padding: 0px !important;
}

.ev-card:hover
 {
    background-color: #011425;
    background-image: none !important;
}

.ev-card-front {
     width: 100%;
    height: 100%;
    position: absolute;
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 1;
    flex-direction: column;
    padding: 1rem;
}

.ev-card:hover .ev-card-front
 {
    background-color: #011425;
    background-image: none !important;
     opacity: 0;
}

.ev-card-back {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: column;
    padding: 1rem;
    opacity: 0;
    z-index: 99;
        position: absolute;
}

.ev-card:hover .ev-card-back
 {
    background-color: #011425;
    background-image: none !important;
     opacity: 1;
}



/* ======================================= */
/* == MOBILE & TABLET STYLES (767px)    == */
/* ======================================= */
@media (max-width: 767px) {
  /* MODIFIED: The track now shows only one card */
  .ev-track {
    grid-template-columns: 1fr;
  }
  
  .ev-slider-grid {
      gap: 0.5rem; /* Reduce gap on mobile */
  }

  /* Your original mobile styles for card content are kept below */
  .ev-card {
    height: 340px;
    padding: 0px !important;
    max-width: 100%;
  }
  
  .ev-card-front, .ev-card-back  {
      padding: 16px;
      gap: 16px;
  }
  
  .ev-header {
      gap: 2rem;
  }
  
  .ev-nav {
    font-size: 20px;
    width: 36px;   /* Slightly smaller arrows for mobile */
    height: 36px;
  }
  
  .ev-nav svg {
      width: 100%;
      height: 100%;
  }
  
  .ev-date {
    width: 55px;
    height: 60px;
    font-size: 15px;
  }
  
  .ev-date > div:first-child {
    font-size: 32px;
    line-height: 1;
  }
  
  .ev-content-title {
    font-size: 16px;
  }
  
  .ev-card:hover .ev-content p {
    font-size: 16px;
  }
  
  .ev-details {
    margin-left: 1rem;
    font-size: 16px;
  }
  
  .ev-footer {
      font-size: 18px;
  }
  
     .ev-footer-location {
        font-size: 32px;
    }

  .ev-footer-learn-more a {
            font-size: 12px;
        line-height: 8px;
        border-radius: 7rem 7rem 7rem 7rem;
        padding: 13px 30px 13px 30px;
  }
}


/** NEWS GRID **/

/* Masonry wrapper 
.news-masonry {
  column-count: 3;
  column-gap: 2.5rem;
}*/

/* Cards
.news-card {
  display: inline-block;    
  width: 100%;
  margin: 0 0 2.5rem;
  break-inside: avoid;         
  background: #ffffff;          /
  border-bottom: 1px solid #011433;
  position: relative;
  overflow: hidden;             
} */

.news-masonry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  align-items: start;
  /* each “row unit” height; used by the JS to compute spans */
  --masonry-row: 8px;
  /* safety: neutralize any leftover multi-column props */
  column-count: initial;
  /*column-gap: initial;*/
}

/* Cards (grid version) */
.news-card {
  display: block;      
  width: auto;
  margin: 0;           
  break-inside: avoid;  
  background: #ffffff;     
  border-bottom: 1px solid #011433;
  position: relative;
   
}

/* Media (image) */
.news-card__media img {
  width: 100%;
  height: auto;
  display: block;
}

/* Body */
.news-card__body {
  padding: 1.25rem 4.25rem 1.75rem 1.25rem;
}

.type-article .news-card__body, .type-press .news-card__body {
  padding: 1.25rem 4.25rem 1.75rem 0rem;
}

/* Typography (same scale as before) */
.news-masonry .date-text {
  font-size: 1.125rem;
  line-height: 1.667;
  color: #5c7c89;
  font-weight: 600;
  text-transform: uppercase;
  margin: 0 0 .3125rem 0;
}

.news-masonry .headline-text {
  font-size: 1.5rem;
  line-height: 1.25;
  font-weight: 600;
  margin: 0;
}

.news-masonry .source-text {
  font-size: 1.125rem;
  line-height: 1.667;
  font-weight: 600;
  color: #5c7c89;
  margin: .5rem 0 0 0;
}

.news-card.type-article .news-card__media > div:first-child,
.news-card.type-press .news-card__media > div:first-child {
    position: relative;
}
/* Corner chevron (re-using your pattern) */
.news-card.type-media::after,
.news-card.type-media-speaker::after,
.news-card.type-article .news-card__media > div:first-child::after,
.news-card.type-press .news-card__media > div:first-child::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 30px;
  height: 30px;
  background-color: #e7ebed;
  background-image: url('/wp-content/uploads/2025/07/sm-arrow-right.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 50%;
}

/* === Category-based theming === */

/* 1) Press Release – image shown; bg #e7ebed; title #009ab2 */
.news-card.type-press {
  background-color: #e7ebed;
}
.news-card.type-press .headline-text,
.news-card.type-press .news-card__link { color: #009ab2; }

/* 2) Articles – image shown; bg #e7ebed; title #011433 */
.news-card.type-article {
  background-color: #e7ebed;
}
.news-card.type-article .headline-text,
.news-card.type-media .headline-text a,
.news-card.type-media-speaker .headline-text a,
.news-card.type-article .news-card__link { color: #011433; }

/* 3) In the media – NO image; white bg; paperclip svg as background */
.news-card.type-media {
  background-color: #ffffff;
  background-image: url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg id='Isolation_Mode' data-name='Isolation Mode' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 27.19 54.49'%3E%3Cdefs%3E%3Cstyle%3E .cls-1 %7B fill: none; stroke: %23becbd0; stroke-miterlimit: 10; stroke-width: 2px; %7D %3C/style%3E%3C/defs%3E%3Cpath class='cls-1' d='M1,35.22V13.59C1,6.64,6.64,1,13.59,1h0c6.96,0,12.59,5.64,12.59,12.59v30.47c0,5.2-4.22,9.42-9.42,9.42h0c-5.2,0-9.42-4.22-9.42-9.42v-26.93c0-3.41,2.76-6.17,6.17-6.17h0c3.41,0,6.17,2.76,6.17,6.17v17.7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 1.5625rem;
  background-position: calc(100% - 1.25rem) 1.0625rem;
      border-bottom: none;
}
.news-card.type-media .news-card__media { display: none; } /* enforce no image */

/* 4) In the media + tag "team speaker" – NO image; bg #becbd0; calendar svg */
.news-card.type-media-speaker {
  background-color: #becbd0;
  background-image: url("data:image/svg+xml,%3Csvg id='Layer_2' data-name='Layer 2' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 46.21 49.81'%3E%3Cdefs%3E%3Cstyle%3E .cls-1 %7B fill: none; stroke: %23e7ebed; stroke-linecap: round; stroke-miterlimit: 10; stroke-width: 2px; %7D %3C/style%3E%3C/defs%3E%3Cg id='Layer_1-2' data-name='Layer 1'%3E%3Cg%3E%3Cpath class='cls-1' d='M36.42,6.83h4.04c2.62,0,4.74,2.12,4.74,4.74v32.49c0,2.62-2.12,4.74-4.74,4.74H5.74c-2.62,0-4.74-2.12-4.74-4.74V11.57c0-2.62,2.12-4.74,4.74-4.74h4.04'/%3E%3Cline class='cls-1' x1='15.72' y1='6.83' x2='30.49' y2='6.83'/%3E%3Cg%3E%3Cg%3E%3Cline class='cls-1' x1='9.73' y1='39.7' x2='11.39' y2='39.7'/%3E%3Cline class='cls-1' x1='18.09' y1='39.7' x2='19.75' y2='39.7'/%3E%3Cline class='cls-1' x1='26.46' y1='39.7' x2='28.12' y2='39.7'/%3E%3C/g%3E%3Cg%3E%3Cline class='cls-1' x1='9.73' y1='33.08' x2='11.39' y2='33.08'/%3E%3Cline class='cls-1' x1='18.09' y1='33.08' x2='19.75' y2='33.08'/%3E%3Cline class='cls-1' x1='26.46' y1='33.08' x2='28.12' y2='33.08'/%3E%3Cline class='cls-1' x1='34.82' y1='33.08' x2='36.48' y2='33.08'/%3E%3C/g%3E%3Cg%3E%3Cline class='cls-1' x1='18.09' y1='26.45' x2='19.75' y2='26.45'/%3E%3Cline class='cls-1' x1='26.46' y1='26.45' x2='28.12' y2='26.45'/%3E%3Cline class='cls-1' x1='34.82' y1='26.45' x2='36.48' y2='26.45'/%3E%3C/g%3E%3C/g%3E%3Cline class='cls-1' x1='1' y1='18.31' x2='45.21' y2='18.31'/%3E%3Cg%3E%3Crect class='cls-1' x='9.79' y='1' width='5.93' height='11.54' rx='2.96' ry='2.96'/%3E%3Crect class='cls-1' x='30.49' y='1' width='5.93' height='11.54' rx='2.96' ry='2.96'/%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 1.5625rem;
  background-position: calc(100% - 1.25rem) 1.0625rem;
  border-bottom: none;
}
.news-card.type-media-speaker .news-card__media { display: none; } /* enforce no image */

/* Title link reset to inherit color per type */
.news-card__link { color: inherit; text-decoration: none; }
.news-card__link:hover { text-decoration: underline; }


/* Clickable overlay matching the arrow box */
.news-card__corner-link {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 30px;
  height: 30px;
  display: block;
  z-index: 2;               /* sit above the painted ::after arrow */
  /* optional a11y focus ring */
  /* outline: none; */
}
.news-card__corner-link:focus-visible {
  outline: 2px solid #1d1d1f;
  outline-offset: 2px;
}

/* Ensure the painted arrow never intercepts pointer events */
.news-card.type-media::after,
.news-card.type-media-speaker::after,
.news-card.type-article .news-card__media > div:first-child::after {
  pointer-events: none;
}


.news-load-more-wrap button {
   background-color: transparent;
    border: 1px solid #011433;
    color: #011433;
    padding: 0.313rem 1.563rem;
    font-family: "DINPro", Sans-serif;
    font-size: 1.25rem;
    font-weight: 500;
    text-transform: uppercase;
    line-height: 0.800;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
    margin-top: auto;
    border-radius: 2rem 2rem 2rem 2rem;
    padding: 1rem 2.375rem 1rem 2.375rem;
}

.news-load-more-wrap button:hover {
        background-color: #011433;
    color: #eff2f3;
    border-color: white;
}



/* Responsive columns */
@media (max-width: 1200px) {
  /*.news-masonry { column-count: 2; }*/
   .news-masonry { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  /*.news-masonry { column-count: 1; }*/
  /*.news-card__body { padding: 2.0rem; }*/
  /*.news-masonry .headline-text { font-size: 16px; }*/
  /*.news-masonry .date-text, .news-masonry .source-text { font-size: 14px; }*/
  .news-masonry { grid-template-columns: 1fr; }
  .news-card__body { padding: 2.0rem; }
  .news-masonry .headline-text { font-size: 16px; }
  .news-masonry .date-text, .news-masonry .source-text { font-size: 14px; }
}
@media (max-width: 480px) {
  .news-card { margin-bottom: 16px; }
  .news-load-more-wrap button {
            font-size: 12px;
        line-height: 8px;
        border-radius: 7rem 7rem 7rem 7rem;
        padding: 13px 30px 13px 30px;
  }
}







:root {
      --left-bg: #d1dade;
      --right-bg: #eff2f3;
      --max-width: 1440px;
      --slide-transition: 600ms cubic-bezier(.45,.25,.3,1);
    }

    * { margin: 0; padding: 0; box-sizing: border-box; }
    body { font-family: system-ui, Arial, sans-serif; }

    /* ------------------------------------------------------------------ */
    /* Two‑tone, full‑bleed background that centres the 1440‑px slider     */
    /* ------------------------------------------------------------------ */
    .partners-testimonials {
      position: relative;
      display: flex;
      justify-content: center;
      width: 100%;
      background: linear-gradient(
        to right,
        var(--left-bg) 0,
        var(--left-bg) calc((100vw - var(--max-width)) / 2),
        var(--right-bg) calc((100vw + var(--max-width)) / 2)
      );
    }

    @media (max-width: calc(var(--max-width) + 40px)) {
      .partners-testimonials { background: var(--left-bg); }
    }

    /* ------------------------------------------------------------------ */
    /* Slider frame (now overflow visible so arrows don’t get clipped)     */
    /* ------------------------------------------------------------------ */
    .partners-slider-wrapper {
      position: relative;
      width: 100%;
      max-width: var(--max-width);
      max-width: 1680px;
      overflow: visible; /* let the arrows spill out */
    }

    /* viewport that hides overflowing slides */
    .partners-slider-viewport {
      overflow: hidden; /* mask */
      width: 100%;
    }

    .partners-slider {
      display: flex;
      transition: transform var(--slide-transition);
    }
    .partners-slider > li { flex: 0 0 100%; list-style: none; }

    /* ------------------------------------------------------------------ */
    /* Testimonial card (structure unchanged, just namespaced classes)     */
    /* ------------------------------------------------------------------ */
    .partners-testimonial-card {
          display: flex
;
    gap: 3.125rem;
    align-items: stretch;
    background: #d0d9de;
    }

    .partners-left { 
        flex: 0 1 auto;     
        display: flex;
        max-height: 26.250rem; /*420px */
        
    }
    .partners-copy {
      flex: 1 1 50%;
      display: flex;
      flex-direction: column;
      justify-content: space-evenly;
      font-size: 1.375rem;
    }
    
    .partners-copy-top {
        font-size: 1.750rem;
        line-height: 1.429;
        font-weight: 400;
    
    }
    
    .partners-copy p span {
        font-size: 1.875rem;
    }
    
    .partners-right {
      flex: 0 0 26.250rem; /*420px */
      background: var(--right-bg);
      display: flex;
      justify-content: center;
      align-items: center;
    }
    
    .partners-right div:first-child {
        min-width: 17.188rem; /* 275px */
        /*width:200px; */
        /*height:60px;*/
    }
    
    .partners-testimonial-card .partners-left img {
        height: 100%;
        width: auto;
    }

    /* ------------------------------------------------------------------ */
    /* Navigation arrows – sit ~40 px outside the wrapper                 */
    /* ------------------------------------------------------------------ */
    .partners-nav {
      position: absolute;
      top: 50%;
      transform: translate(-50%, -50%); /* leave translateX -50 so we can set left/right */
      width: 3.500rem;
      height: 3.500rem;
      border: none;
      background: none;
      padding: 0;
      cursor: pointer;
      z-index: 10;
      background-color: transparent !important;
      
    }
    .partners-nav svg {
      width: 100%;
      height: 100%;
      fill: none;
      stroke: #212121;
      stroke-width: 1;
      pointer-events: none;
    }

    /* 40‑px offset outside the slider wrapper (desktop) */
    .partners-prev { left: -40px;  }
    .partners-next { right: -40px; transform: translate(50%, -50%); }

    /* pull arrows inside on narrow screens */
    @media (max-width: 1024px) {
      .partners-prev { left: 8px; transform: translate(0, -50%); }
      .partners-next { right: 8px; transform: translate(0, -50%); }
    }

    /* visual hint that button is inactive */
    .partners-nav[disabled] { opacity: .3; cursor: default; }


@media (max-width: 480px) {
    .partners-testimonial-card {
        display: flex;
        gap: 4px;
        align-items: stretch;
        background: #d0d9de;
        flex-wrap: wrap;
        justify-items: center;
    }
    
    .partners-left {
        flex: 1 1 auto;
        display: flex;
        max-height: 200px;
        margin-left: auto;
        margin-right: auto;
        justify-content: center;
    }
    
    .partners-copy {
        flex: 1 1 80%;
        display: flex;
        flex-direction: column;
        justify-content: space-evenly;
        font-size: 16px;
        padding: 22px 50px;
    }
    
    
    .partners-copy-top {
        font-size: 16px;
        line-height: 1.429;
        font-weight: 400;
        margin-bottom: 16px;
    }
    
        .partners-copy p span {
        font-size: 16px;
        margin-top: 16px;
    }
    
    .partners-nav {
    font-size: 20px;
    width: 36px;   /* Slightly smaller arrows for mobile */
    height: 36px;
  }
  
  .partners-nav svg {
      width: 100%;
      height: 100%;
  }
    
    .partners-right {
        flex: 1 1 200px;
        background: var(--right-bg);
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .partners-right div:first-child {
        min-width: 17.188rem;
            width: 160px !important;
            height: 60px !important;
    }

}




/* IPI Team Grid Styles */
.ipi-team-grid {
        display: grid
;
    grid-template-columns: repeat(4, 20rem);
    gap: 2.5rem;
    margin: 2.5rem auto;
    justify-content: center;
}
}

/* Team Card Styles */
.ipi-team-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    /*border-radius: 8px;*/
    /*box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);*/
    overflow: hidden;
    /*transition: transform 0.3s ease, box-shadow 0.3s ease;*/
    cursor: pointer;
    width: 20rem;
}

.ipi-team-card:hover {
    /*transform: translateY(-5px);*/
    /*box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);*/
}

.ipi-team-card-image {
    width: 100%;
    height: 25rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ipi-team-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ipi-team-placeholder {
    width: 100%;
    height: 100%;
    max-width: 20rem;
    max-height: 25rem;
}

.ipi-team-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px 0px 10px;
    gap: 15px;
    font-family: "DINPro-Condensed", Sans-Serif;
    
}

.ipi-team-card-name {
    margin: 0;
    font-size: 1.750rem;
    font-weight: 600;
    color: #009ab2;
    flex: 1;
    line-height: 0.893;
    text-transform: uppercase;
}

.ipi-team-card-icons {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.ipi-team-card-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.438rem;
    height: 1.438rem;
    border-radius: 50%;
    background: #f8f9fa;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
}

.ipi-team-card-icons a:hover {
    background: #007cba;
    color: #fff;
    transform: scale(1.1);
}

.ipi-team-card-position {
    margin: 0;
    padding: 0 0px 20px;
    color: #666;
    font-size: 1.375rem;
    line-height: 1.136;
}

/* Popup Overlay Styles */
.ipi-team-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
}

.ipi-team-popup-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ipi-team-popup-content {
    background: #fff;
    border-radius: 0px;
    max-width: 70vw;
    width: 100%;
    max-height: 90vh;
    /*overflow-y: auto;*/
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    margin: auto;
}

.ipi-team-popup-close {
    position: absolute;
    top: -48px;
    right: 0px;
        border: 1px solid white;
    font-size: 4rem;
    line-height: 3rem;
    font-weight: 200;
    cursor: pointer;
    color: #666;
    z-index: 10001;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 100001;
        background-color: transparent !important;
    background-image: url(https://innovationinpolitics.eu/wp-content/uploads/2025/07/close.svg);
    content: '';
    background-size: 50%;
    background-repeat: no-repeat;
    background-position: center;
    /* background-color: transparent;
}

.ipi-team-popup-close:hover {
    /*background: rgba(0, 0, 0, 0.1);*/
    /*color: #333;*/
}

/* Popup Content Layout */
.ipi-team-popup-columns {
    display: grid;
    grid-template-columns: 21.563rem auto 21.563rem;
    gap: 30px;
    
    /*padding: 30px;*/
}


/* Popup Card Styles */
.ipi-team-popup-card {
    display: flex;
    flex-direction: column;
    background-color: #011433;
}

.ipi-team-popup-image {
    width: 100%;
    /*max-width: 21.563rem;*/
    /*height: 300px;*/
    overflow: hidden;
    /*border-radius: 8px;*/
    margin-bottom: 20px;
}

.ipi-team-popup-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ipi-team-popup-header {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    gap: 1rem;
    font-family: "DINPro-Condensed", Sans-Serif;
}

.ipi-team-popup-name {
    margin: 0;
    font-size: 2rem;
    font-weight: 600;
    color: #009ab2;
    text-transform: uppercase;
    flex: 1;
    line-height: 0.893;
}

.ipi-team-popup-icons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    padding-top: 0.813rem;
    padding-bottom: 0.813rem;
    border-top: 1px solid #5c7c89;
        justify-self: flex-end;
    margin-top: auto;
}

.ipi-team-popup-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.563rem;
    height: 1.563rem;
    border-radius: 50%;
    /*background: #f8f9fa;*/
    border: 1px solid #9aa1ad;
    color: #9aa1ad;
    text-decoration: none;
    transition: all 0.3s ease;
}

.ipi-team-popup-icons a svg {
    width: 70%;
}

.ipi-team-popup-icons a:hover {
    background: #007cba;
    color: #fff;
    /*transform: scale(1.1);*/
}

.ipi-team-popup-position {
    margin: 0;
    color: #adbdc4;
    font-size: 1.375rem;
    font-weight: 500;
    line-height: 1.4;
        padding-left: 2rem;
    padding-right: 2rem;
    text-align: center;
}

/* Popup Content Text */
.ipi-team-popup-content-text {
    font-size: 1.375rem;
    line-height: 1.136;
    color: #333;
    padding: 4.063rem 1.250rem;
    font-weight: 300;
}

.ipi-team-popup-content-text p {
    margin-bottom: 1em;
}

.ipi-team-popup-content-text p:last-child {
    margin-bottom: 0;
}

/* Popup Meta Information */
.ipi-team-popup-meta {
    display: flex;
    flex-direction: column;
    gap: 2.500rem;
    padding: 4.063rem 1.250rem;
}

.ipi-team-popup-expertise,
.ipi-team-popup-languages {
    /*border-left: 3px solid #007cba;*/
    padding-left: 15px;
    font-size: 1.375rem;
    line-height: 1.136;
}

.ipi-team-popup-meta h6 {
    margin: 0 0 10px 0;
    font-size: 1.375rem;
    font-weight: 600;
    color: #009ab2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-bottom: 1.375rem;
    border-bottom: 1px solid #5C7C89;
}

.ipi-team-popup-meta p {
    margin: 0;
    font-size: 1.375rem;
    font-weight: 600;
    line-height: 1.5;
    color: #011433;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .ipi-team-popup-content {
        max-width: 75vw;
    }
    
    .ipi-team-popup-columns {
        grid-template-columns: 250px 1fr 200px;
        gap: 25px;
    }
}

@media (max-width: 968px) {
    .ipi-team-popup-content {
        max-width: 90vw;
            overflow: scroll;
    }
    
    .ipi-team-popup-columns {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 25px;
    }
    
    .ipi-team-popup-image {
        height: 250px;
        max-width: 200px;
        margin: 0 auto 20px;
    }
    
    .ipi-team-popup-meta {
        flex-direction: row;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .ipi-team-grid {
        grid-template-columns: repeat(auto-fit, minmax(15.625rem, 1fr));
        gap: 20px;
        margin: 30px 0;
    }
    
    .ipi-team-card-image {
        height: 20rem;
    }
    
    .ipi-team-popup-overlay {
        padding: 10px;
    }
    
    .ipi-team-popup-columns {
        padding: 20px;
    }
    
    .ipi-team-popup-meta {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .ipi-team-grid {
        grid-template-columns: 1fr;
        justify-items: center;
    }
    
    .ipi-team-card {
        width: 320px;
    }
    
    .ipi-team-card-image {
        width: 320px;
        height: 400px;
    }
    
    .ipi-team-placeholder {
        max-width: 320px;
        max-height: 400px;
    }
    
    
    .ipi-team-card-name {
        font-size: 22px;
    }
    
    .ipi-team-card-icons a {
        width: 32px;
        height: 32px;
    }
    
    .ipi-team-card-position {
        font-size: 16px;
    }
    
    .ipi-team-popup-meta h6 {
        font-size: 20px;
    }
    
    .ipi-team-popup-meta p {
        font-size: 16px;
    }
    
    .ipi-team-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .ipi-team-popup-header {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .ipi-team-popup-icons a {
        width: 20px;
        height: 20px;
        margin: 4px;
    }
    
    .ipi-team-popup-close {
        top: 10px;
        right: 10px;
    }
    
    .ipi-team-popup-content-text, .ipi-team-popup-name, .ipi-team-popup-position {
        font-size: 16px;
    }
    
    
}

/* Loading Animation */
.ipi-team-popup-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    font-size: 1.1em;
    color: #666;
}

.ipi-team-popup-loading::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007cba;
    border-radius: 50%;
    margin-left: 10px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Accessibility */
.ipi-team-card:focus,
.ipi-team-popup-close:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .ipi-team-popup-overlay {
        display: none !important;
    }
}








/** Homepage top banner */

.h-top-banner-grid-container {
            display: grid;
            grid-template-rows: 1fr 1fr 2fr; /* 3 rows with proportions 1:1:2 */
            grid-template-columns: repeat(12, 1fr); /* 12 columns, each 1fr */
            gap: 0px; /* Gap between grid items */
            width: 100%; /* Responsive width */
           /*  max-width: 1200px; /* Maximum width for desktop */
            background-color: #eee; /* Background for the grid container */
            /*  padding: 10px; /* Padding for the grid container */
            border-radius: 0px; /* Rounded corners for the container 
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Subtle shadow */
            box-sizing: border-box; /* Include padding and border in the element's total width and height */
        }

        .h-top-banner-grid-item {
            display: flex;
            justify-content: center;
            align-items: center;
            font-weight: bold;
            color: #333;
            border-radius: 0px; /* Rounded corners for grid items */
            box-sizing: border-box; /* Include padding and border in the element's total width and height */
            padding: 5px; /* Default padding for all items */
        }

        /* Element Styling */
        .h-top-banner-element-1 {
            grid-row: 1; /* Starts in the first row */
            grid-column: span 4; /* Spans 4 columns */
            background-color: transparent;
            border: 1px dashed #ccc; /* Added for visibility of transparent element */
        }

        .h-top-banner-element-2 {
            grid-row: 1; /* Starts in the first row */
            grid-column: span 6; /* Spans 6 columns */
            background-color: lightblue;
        }

        .h-top-banner-element-3 {
            grid-row: 1; /* Starts in the first row */
            grid-column: span 2; /* Spans 2 columns */
            background-color: lightblue;
        }

        .h-top-banner-element-4 {
            grid-row: 2 / 4; /* Starts in row 2 and ends before row 4 (occupies rows 2 and 3) */
            grid-column: 1 / 5; /* Starts in column 1 and ends before column 5 (occupies columns 1 to 4) */
            background-color: grey;
        }

        .h-top-banner-element-5 {
            grid-row: 2 / 4; /* Starts in row 2 and ends before row 4 (occupies rows 2 and 3) */
            grid-column: 5 / 11; /* Starts in column 5 and ends before column 11 (occupies columns 5 to 10) */
            background-color: grey;
        }

        .h-top-banner-element-6 {
            grid-row: 2; /* Starts in the second row */
            grid-column: 11 / 13; /* Starts in column 11 and ends before column 13 (occupies columns 11 and 12) */
            background-color: lightblue; /* Changed to lightblue */
            border: 1px dashed #ccc; /* Added for visibility of transparent element */
        }

        .h-top-banner-element-7 {
            grid-row: 3; /* Starts in the third row */
            grid-column: 11 / 13; /* Starts in column 11 and ends before column 13 (occupies columns 11 and 12) */
            background-color: white;
        }

        /* Mobile Styles (max-width: 768px) */
        @media (max-width: 768px) {
            .h-top-banner-grid-container {
                grid-template-columns: 1fr; /* Stack elements one on top of the other */
                grid-template-rows: auto; /* Rows will size based on content */
                width: 100%; /* Full width on mobile */
                padding: 0; /* Remove padding from container */
                border-radius: 0; /* Remove rounded corners on mobile */
                box-shadow: none; /* Remove shadow on mobile */
            }

            .h-top-banner-grid-item {
                grid-column: 1 / -1 !important; /* Make all elements span full width */
                grid-row: auto !important; /* Reset row placement to stack naturally */
                padding: 7.5rem; /* Padding for mobile elements */
                margin-bottom: 10px; /* Add some space between stacked elements */
                border-radius: 0; /* Remove rounded corners on mobile */
            }

            /* Hide elements on mobile */
            .h-top-banner-element-1,
            .h-top-banner-element-3,
            .h-top-banner-element-6,
            .h-top-banner-element-7 {
                display: none;
            }
        }


.partners-right a.initiatives-bottom-cta {
    background-color: transparent;
    font-family: "DINPro", Sans-serif;
    font-size: 1.25rem;
    font-weight: 500;
    text-transform: uppercase;
    line-height: 0.800;
    letter-spacing: 0.1em;
    fill: #5C7C89;
    color: #011433;
    border-style: solid;
    border-width: 1px 1px 1px 1px;
    border-color: #011433;
    border-radius: 2rem 2rem 2rem 2rem;
    padding: 1.500rem 4.375rem 1.500rem 4.375rem;
}

.partners-right a.initiatives-bottom-cta:hover {
    background-color: #011433;
    font-family: 'DINPro', Sans-serif;
    font-size: 1.25rem;
    font-weight: 500;
    text-transform: uppercase;
    line-height: 0.8;
   letter-spacing: 0.1em;
    fill: #5C7C89;
    color: #eff2f3;
    border-style: solid;
    border-width: 1px 1px 1px 1px;
    border-color: #011433;
}


.key-facts-header h2::before {
    width: 0.8em;
    height: 0.8em;
    position: absolute;
    left: -5rem;
    /*border:1px solid red;*/
    content: url("/wp-content/uploads/2025/07/key-facts.svg");
  display: inline-block;
  /*margin-right: 20px;*/
  color: #011433;
}


.partners-copy{
        background-image: url(/wp-content/uploads/2025/08/quotations-grey.svg);
    background-repeat: no-repeat;
    background-size: 9.375rem;
    background-position-x: 95%;
    background-position-y: 85%;
}

.testimonial-beige {
        background-image: linear-gradient(90deg, #e7e5e1 0%, #F0F2F3 50%) !important;
}

.testimonial-beige .partners-left, .testimonial-beige .partners-testimonial-card  {
        background: #e7e5e0 !important;
}

.testimonial-beige .partners-copy{
        background-image: url(/wp-content/uploads/2025/08/quotations.svg);
    background-repeat: no-repeat;
    background-size: 9.375rem;
    background-position-x: 95%;
    background-position-y: 85%;
}



.two-column-text .elementor-widget-container {
    column-count:2; column-gap: 1.250rem;
}

.single-post .two-column-text .elementor-widget-container {
   column-count:2; 
   column-gap:  3.125rem
}

.single-post ul {
    list-style-position: inside;
}

@media (max-width: 768px) {
    .two-column-text .elementor-widget-container, .single-post .two-column-text .elementor-widget-container  {
        column-count:1; 
    }
}







/* Grid wrapper: 4 per row on desktop, 1 per row on mobile */
.ev-past-grid {
  display: grid;
  grid-template-columns: repeat(4, 20rem);
  gap: 24px;
  justify-content: center; /* center the fixed-width columns */
}

/* Card: fixed 320x420, bg cover, no borders/shadows/radius */
.ev-past-card {
  width: 20rem;
  height: 26.250rem;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  border: none;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden; /* ensure the bottom info section sits nicely */
      background-color: #011433;
}


a.ev-past-link::before {
    content: '';
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, #0000008a 100%);
    position: absolute;
    top: 0;
    left: 0;
}


/* Make entire card clickable */
.ev-past-link {
  display: block;
  width: 100%;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

/* Bottom info section */
.ev-past-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  /*background: ;*/
  padding: 12px 14px;
  color: white;
}

/* Text styles */
.ev-past-date {
     font-family: "DINPro-Condensed", Sans-serif;
  font-size: 1.125rem;
  line-height: 1.4;
  /*color: #5c7c89;*/
  color: white;
  font-weight: 600;
  text-transform: none;
  margin: 0 0 4px 0;
}

.ev-past-title, .elementor-kit-7 h3.ev-past-title {
  /*font-size: 18px;*/
  /*line-height: 1.25;*/
  /*font-weight: 700;*/
  /*color: #011433;*/
  color: white !important;
  margin: 0 0 6px 0;
  
      font-size: 1.625rem;
    font-family: "DINPro-Condensed", Sans-serif;
    font-weight: 400;
    color: #FFFFFF;
    line-height: 1;
    width: 100%;
    text-align: left;
}

.ev-past-city {
     font-family: "DINPro-Condensed", Sans-serif;
  font-size: 1.125rem;
  line-height: 1.4;
  /*color: #5c7c89;*/
  font-weight: 600;
  margin: 0;
  color: white;
  margin-bottom: 1rem;
}



/* Mobile: 1 per row, card fills width */
@media (max-width: 768px) {
  .ev-past-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    justify-items: center;
  }
  .ev-past-card {
    width: 80%;
    height: 320px; /* keep height as requested */
  }
  .ev-past-title, .elementor-kit-7 h3.ev-past-title { font-size: 20px; }
  .ev-past-date,
  .ev-past-city { font-size: 16px; }
}/* End custom CSS */
/* Start Custom Fonts CSS */@font-face {
	font-family: 'DINPro';
	font-style: normal;
	font-weight: normal;
	font-display: auto;
	src: url('https://innovationinpolitics.eu/wp-content/uploads/2025/06/DINPro.ttf') format('truetype');
}
@font-face {
	font-family: 'DINPro';
	font-style: normal;
	font-weight: bold;
	font-display: auto;
	src: url('https://innovationinpolitics.eu/wp-content/uploads/2025/06/DINPro-Bold.ttf') format('truetype');
}
@font-face {
	font-family: 'DINPro';
	font-style: normal;
	font-weight: 300;
	font-display: auto;
	src: url('https://innovationinpolitics.eu/wp-content/uploads/2025/06/DINPro-Light.ttf') format('truetype');
}
@font-face {
	font-family: 'DINPro';
	font-style: normal;
	font-weight: 500;
	font-display: auto;
	src: url('https://innovationinpolitics.eu/wp-content/uploads/2025/06/DINPro-Medium.ttf') format('truetype');
}
/* End Custom Fonts CSS */
/* Start Custom Fonts CSS */@font-face {
	font-family: 'DINPro-Condensed';
	font-style: normal;
	font-weight: bold;
	font-display: auto;
	src: url('https://innovationinpolitics.eu/wp-content/uploads/2025/06/DINPro-CondensedBold.ttf') format('truetype');
}
/* End Custom Fonts CSS */