/* HTCI Uitgelicht - card grid: 2 columns x 3 rows (max 6), 1 column on a phone.
   Card = banner picture (600 x 240, 5:2) + date/city, sector, title, short text, button.
   Nothing under the banner filled in  ->  "tu-banner-only": the card is just the picture.
   Every rule starts with #tr-featured, so it cannot clash with the theme.
   Colours: dark teal #123F3F, teal #0E7C74, gold #F2B800, light #E3F3F1, line #DCE8E6, text #3A4D4D. Change them here if the brand changes. */
#tr-featured{margin:0 0 28px;font-family:'Open Sans',system-ui,sans-serif}
#tr-featured[hidden]{display:none !important}
#tr-featured *,#tr-featured *::before,#tr-featured *::after{box-sizing:border-box}

/* ---- grid: 2 per row, an odd last card is centred ---- */
#tr-featured .tu-grid{list-style:none;margin:0 auto;padding:0;display:flex;flex-wrap:wrap;justify-content:center;gap:24px;max-width:1220px}
#tr-featured .tu-item{position:relative;flex:0 0 calc(50% - 12px);min-width:0;margin:0;padding:0;display:flex;flex-direction:column;overflow:hidden;background:#FFFFFF;border:1px solid #DCE8E6;border-radius:20px;box-shadow:0 8px 24px rgba(18,63,63,.08);transition:transform .25s ease,box-shadow .25s ease}
#tr-featured .tu-item:hover{transform:translateY(-4px);box-shadow:0 16px 36px rgba(18,63,63,.16)}

/* ---- picture ---- */
#tr-featured .tu-media{position:relative;aspect-ratio:5 / 2;overflow:hidden;background:#E3F3F1}
#tr-featured .tu-media img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;object-position:center;margin:0;border:0;border-radius:0;max-width:none;transition:transform .5s ease}
#tr-featured .tu-item:hover .tu-media img{transform:scale(1.04)}
#tr-featured .tu-label{position:absolute;top:10px;left:10px;z-index:2;padding:5px 10px;border-radius:999px;background:#123F3F;color:#FFFFFF;font:700 10px/1 'Open Sans',sans-serif;letter-spacing:.08em;text-transform:uppercase;pointer-events:none}

/* ---- text under the picture (the picture itself stays free of text, so the advertiser's artwork is fully visible) ---- */
#tr-featured .tu-meta{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px}
#tr-featured .tu-date{display:inline-flex;align-items:center;gap:7px;font:700 14px/1.2 'Open Sans',sans-serif;color:#123F3F}
#tr-featured .tu-date::before{content:"";flex:none;width:16px;height:16px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E7C74' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='3'/%3E%3Cpath d='M8 3v4M16 3v4M3 10h18'/%3E%3C/svg%3E") no-repeat center / contain}
#tr-featured .tu-body{display:flex;flex-direction:column;align-items:flex-start;gap:10px;flex:1;padding:20px 24px 24px}
#tr-featured .tu-sector{display:inline-block;padding:5px 11px;border-radius:12px;background:#E3F3F1;color:#0B5F59;font:700 11px/1.2 'Open Sans',sans-serif;letter-spacing:.06em;text-transform:uppercase}
#tr-featured .tu-title{margin:0;padding:0;font:700 23px/1.2 'Rubik','Open Sans',sans-serif;letter-spacing:0;text-transform:none;color:#123F3F}
#tr-featured .tu-title a{color:inherit;text-decoration:none;box-shadow:none}
#tr-featured .tu-text{margin:0;font:400 15px/1.6 'Open Sans',sans-serif;color:#3A4D4D;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
#tr-featured .tu-btn{display:inline-flex;align-items:center;gap:8px;margin-top:auto;/* auto = button sits at the bottom of equal-height cards */padding:12px 20px;border-radius:999px;background:#123F3F;color:#FFFFFF;font:700 14px/1.2 'Open Sans',sans-serif;transition:background .2s,color .2s}
#tr-featured .tu-arrow{display:inline-block;transition:transform .2s ease}
#tr-featured .tu-item:hover .tu-btn{background:#F2B800;color:#123F3F}
#tr-featured .tu-item:hover .tu-arrow{transform:translateX(4px)}

/* ---- the whole card is clickable: the link is stretched over the card ---- */
#tr-featured .tu-link::after{content:"";position:absolute;inset:0;z-index:1}
#tr-featured .tu-link:focus-visible{outline:none}
#tr-featured .tu-link:focus-visible::after{outline:3px solid #0E7C74;outline-offset:-3px;border-radius:20px}
#tr-featured .tu-cover{display:block}

/* ---- card without extra info: just the banner ---- */
#tr-featured .tu-banner-only{aspect-ratio:5 / 2;align-self:flex-start;background:#E3F3F1}   /* not stretched to the height of a taller neighbour */
#tr-featured .tu-banner-only .tu-media{position:absolute;inset:0;aspect-ratio:auto}

/* screen-reader only text */
#tr-featured .tu-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* ---- phone / small tablet: 1 column ---- */
@media (max-width:700px){
  #tr-featured{margin-bottom:20px}
  #tr-featured .tu-grid{gap:18px}
  #tr-featured .tu-item{flex-basis:100%;border-radius:16px}
  #tr-featured .tu-link:focus-visible::after{border-radius:16px}
  #tr-featured .tu-body{padding:18px 18px 20px}
  #tr-featured .tu-title{font-size:21px}
}
@media (prefers-reduced-motion:reduce){
  #tr-featured .tu-item,#tr-featured .tu-media img,#tr-featured .tu-arrow,#tr-featured .tu-btn{transition:none}
  #tr-featured .tu-item:hover{transform:none}
  #tr-featured .tu-item:hover .tu-media img,#tr-featured .tu-item:hover .tu-arrow{transform:none}
}
