:root {
      --card-radius: 14px;
      --border: 2px;
    }
    * { box-sizing: border-box; margin: 0; padding: 0; }

    body, html { height: 100%; font-family: system-ui, Arial, sans-serif; }
    body {
      background: url("images/bg.jpg") center/cover no-repeat fixed;
      display: flex; align-items: center; justify-content: center;
      padding: 24px;
    }

    /* GRID: 3 x 2 */
    .grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(240px, 1fr));
      gap: 24px;
      width: min(1200px, 94vw);
    }

    /* CARD */
    .card {
      position: relative;
      height: 250px;
      border-radius: var(--card-radius);
      overflow: hidden;
      /* white border + subtle shadow */
      border: var(--border) solid rgba(255, 255, 255, 0.103);
      box-shadow: 0 10px 28px rgba(0,0,0,0.35);
      transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    }
    .card:hover {
      transform: translateY(-2px);
      box-shadow: 0 16px 40px rgba(0,0,0,0.45);
      border-color: #ffffff65;
    }

    /* Clickable image link that sits under the overlay & text */
    .cover-link { position: absolute; inset: 0; z-index: 0; display: block; cursor: pointer; }
    .cover-link img {
      position: absolute; inset: 0; width: 100%; height: 100%;
      object-fit: cover;
    }

    /* Dark gradient overlay for readability (doesn't block clicks) */
    .card::before {
      content: ""; position: absolute; inset: 0; z-index: 1;
      background: linear-gradient(to top, rgba(0,0,0,0.1), rgba(0,0,0,0.1));
      transition: opacity .25s ease;
      pointer-events: none; /* KEY FIX: let clicks pass through */
    }
    .card:hover::before { opacity: 0.5; }

    /* Text + button sit above everything */
    .card-content {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;         /* keep button aligned inside card */
  z-index: 2;
  color: #fff;

  display: flex;       /* new */
  justify-content: space-between; /* spread h3 and button */
  align-items: center; /* vertically align */
}
    .card-content h3 { font-size: 1.1rem; margin-bottom: 8px; }
    .card-content button {
      padding: 8px 14px; border: 0; border-radius: 8px;
      background: #dbd7c6; color: #263306; font-weight: 700; cursor: pointer;
      transition: filter .2s ease, transform .05s ease;
    }
    .card-content button:hover { filter: brightness(.92); background: #b1cf43; transform: translateX(-5px);}
    .card-content button:active { transform: translateY(1px); }

    /* MODAL */
  .modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.modal.show {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

/* inner modal animation */
.modal-inner {
  background: #ffffff;
  color: #000000;
  border-radius: 12px;
  width: min(1000px, 92vw);
  margin: 10% auto; padding: 30px 0px 30px 0px;
  position: relative;

  transform: translateY(-30px);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
  box-shadow: 0 10px 40px rgba(0,0,0,0.6);
}
 .modal.show .modal-inner {
  transform: translateY(0);
  opacity: 1;
}

    .close {
      position: absolute; top: 4px; right: 7px; font-size: 28px;
      line-height: 1; color: #000000; cursor: pointer; background: transparent; border: 0;
    }

    /* 16:9 media area that fills width (no black bars) */
    .modal-media { position: relative; width: 100%; padding-top: 56.25%; margin-bottom: 18px; }
    .modal-media iframe, .modal-media img {
      position: absolute; inset: 0; width: 100%; height: 100%;
      object-fit: cover; border: 0; border-radius: 0px;
    }
    .modal-desc { text-align: center; color: #2c2c2c; }

    /* (Optional) small responsiveness */
    @media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
    @media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }

    .slider-wrapper {
  position: relative;
  width: min(1200px, 94vw);
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.slider-container {
  overflow: hidden;
  padding-top: 150px;
  flex: 1;
}

.slider-track {
  display: flex;
  margin: 10px auto;
  gap: 24px;
  transition: transform 0.4s ease;
}

/* arrows outside container */
.slider-arrow {
  background: rgba(255,255,255,0.8);
  border: none;
  font-size: 28px;
  margin: 150px 30px 0px 30px;
  padding: 12px;
  cursor: pointer;
  border-radius: 20%;
  color: #000;
  transition: background .2s ease;
}
.slider-arrow:hover { background: rgba(255,255,255,1); }

/* cards inside slider-track */
.slider-track .card { flex: 0 0 calc((100% - 48px)/3); } /* 3 cards visible with gap 24px */