.carousel {
      position: relative;
      max-width: 900px;
      margin: 2rem auto;
      overflow: hidden;
      border-radius: 8px;
      box-shadow: 0 4px 12px rgb(0 0 0 / 0.1);
      background: #fff;
    }
    .carousel-inner {
      display: flex;
      transition: transform 0.5s ease;
    }
    .carousel-item {
      min-width: 100%;
      position: relative;
      text-align: center;
      color: white;
    }
    .carousel-item img {
      width: 100%;
      vertical-align: middle;
      border-radius: 8px 8px 0 0;
      max-height: 350px;
      object-fit: cover;
    }
    .carousel-caption {
      position: absolute;
      bottom: 15px;
      left: 50%;
      transform: translateX(-50%);
      background-color: rgba(0,0,0,0.6);
      padding: 0.6em 1.2em;
      border-radius: 4px;
      font-size: 1.2rem;
      font-weight: bold;
    }
    .carousel-controls {
      position: absolute;
      top: 50%;
      width: 100%;
      display: flex;
      justify-content: space-between;
      transform: translateY(-50%);
      pointer-events: none;
    }
    button.carousel-control {
      pointer-events: all;
      background: rgba(0,0,0,0.3);
      border: none;
      color: white;
      padding: 0.5em 1em;
      font-size: 1.5rem;
      cursor: pointer;
      border-radius: 50%;
      transition: background-color 0.3s ease;
    }
    button.carousel-control:hover {
      background: rgba(0,0,0,0.6);
    }

    /* Vicc list grid */
    .joke-list {
      max-width: 1100px;
      margin: 2rem auto 4rem;
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 2rem;
    }
    .joke-list article {
      background: #fefefe;
      border-radius: 8px;
      padding: 1.2rem;
      box-shadow: 0 2px 6px rgb(0 0 0 / 0.1);
      transition: box-shadow 0.3s ease;
    }
    .joke-list article:hover {
      box-shadow: 0 6px 12px rgb(0 0 0 / 0.15);
    }
    .joke-list h2 {
      margin-top: 0;
      margin-bottom: 0.6rem;
      color: #007bff;
    }
    .joke-list a img.thumbnail {
      max-width: 100%;
      height: auto;
      border-radius: 6px;
      margin-bottom: 1rem;
      display: block;
      cursor: pointer;
      border: 2px solid #ddd;
      transition: border-color 0.3s ease;
    }
    .joke-list a img.thumbnail:hover,
    .joke-list a img.thumbnail:focus {
      border-color: #007bff;
      outline: none;
    }
    .joke-list p {
      font-size: 1rem;
      color: #333;
    }

    @media (max-width: 480px) {
      .carousel-caption {
        font-size: 1rem;
        padding: 0.4em 0.8em;
      }
    }