/* css/fcs/events-v2.css
   Matches the FCS page theme: Poppins, NDU blue (#0f9bd8) + green (#0a5c2e).
   Does NOT touch the existing .events-bg background rule. */

   .fcs-ev-section {
    --ev-blue: #0f9bd8;
    --ev-green: #0a5c2e;
    --ev-ink: #0b2a1a;
    padding: 56px 0 64px;
  }
  
  /* ---------- heading ---------- */
  .fcs-ev-head { margin-bottom: 2.25rem; }
  .fcs-ev-head h2 {
    color: var(--ev-blue);
    letter-spacing: .04em;
    margin: 0 0 .6rem;
  }
  .fcs-ev-bar { display: inline-flex; gap: 6px; }
  .fcs-ev-bar i {
    display: block; height: 5px; border-radius: 3px;
    background: var(--ev-green);
  }
  .fcs-ev-bar i:first-child { width: 28px; }
  .fcs-ev-bar i:last-child  { width: 110px; }
  
  /* ---------- card ---------- */
  .fcs-ev-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 6px 18px rgba(10, 60, 40, .14);
    border-bottom: 4px solid var(--ev-green);
    transition: transform .35s ease, box-shadow .35s ease;
  }
  .fcs-ev-card:hover,
  .fcs-ev-card:focus-within {
    transform: translateY(-6px);
    box-shadow: 0 16px 34px rgba(10, 60, 40, .26);
  }
  
  .fcs-ev-link {
    position: relative;
    display: block;
    aspect-ratio: 4 / 5;          /* posters are portrait */
    color: #fff;
    text-decoration: none;
    outline-offset: -3px;
  }
  .fcs-ev-link img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: top center;  /* keeps poster headline visible */
    display: block;
    transition: transform .6s ease;
  }
  .fcs-ev-card:hover img { transform: scale(1.05); }
  
  /* ---------- caption ---------- */
  .fcs-ev-caption {
    position: absolute; inset: auto 0 0 0;
    padding: 3.2rem 1.1rem 1rem;
    background: linear-gradient(to top,
                rgba(6, 40, 24, .95) 0%,
                rgba(6, 40, 24, .75) 55%,
                rgba(6, 40, 24, 0) 100%);
  }
  .fcs-ev-caption h3 {
    font-size: 1rem; font-weight: 600; line-height: 1.35;
    margin: 0 0 .25rem; color: #fff;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .fcs-ev-caption p {
    display: flex;
    align-items: center;
    justify-content: space-between;   /* dept on the left, chip on the right */
    gap: .75rem;
    font-size: .82rem; margin: 0; color: #bfe9d2;
  }
  .fcs-ev-dept { flex: 1 1 auto; min-width: 0; }
  .fcs-ev-view {
    flex: 0 0 auto;
    white-space: nowrap;
    margin: 0;
    font-size: .78rem; font-weight: 600;
    padding: .25rem .75rem; border-radius: 999px;
    background: var(--ev-green); color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
    opacity: 0; transform: translateY(8px);
    transition: opacity .3s ease, transform .3s ease;
  }
  .fcs-ev-card:hover .fcs-ev-view,
  .fcs-ev-card:focus-within .fcs-ev-view { opacity: 1; transform: none; }
  
  /* optional date chip */
  .fcs-ev-date {
    position: absolute; top: 12px; left: 12px;
    background: var(--ev-green); color: #fff;
    font-size: .75rem; font-weight: 600;
    padding: .3rem .7rem; border-radius: 999px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
  }
  
  /* touch devices have no hover: always show the "View poster" chip */
  @media (hover: none) {
    .fcs-ev-view { opacity: 1; transform: none; }
  }
  
  @media (max-width: 575.98px) {
    .fcs-ev-section { padding: 40px 0 48px; }
    .fcs-ev-link { aspect-ratio: 1 / 1.15; }
  }
  
  @media (prefers-reduced-motion: reduce) {
    .fcs-ev-card, .fcs-ev-link img, .fcs-ev-view { transition: none; }
    .fcs-ev-card:hover { transform: none; }
  }