﻿    .scroller-container {
      position: relative;
      width: 100%;
      /*max-width: 1600px;*/
      margin: 40 auto;
      overflow: hidden;
      background-color: #c00; /* red background like your scroller */
      padding: 20px 0;
    }

    .cards-wrapper {
      display: flex;
      flex-direction: row;
      overflow-x: scroll;
      scroll-behavior: smooth;
      gap: 15px;
      padding: 0 60px;
      box-sizing: border-box;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
    }

    .cards-wrapper::-webkit-scrollbar {
      display: none;
    }

    /* Card base – now uses perspective for 3D flip */
    .card {
      flex: 0 0 auto;
      width: 260px;
      height: 480px;
      perspective: 1000px;
      overflow: hidden;
      box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    }

    .card-inner {
      position: relative;
      width: 100%;
      height: 100%;
      transition: transform 0.6s ease;
      transform-style: preserve-3d;
    }

    /* Front side – image + overlay title */
    .card-front {
      position: relative;
      width: 100%;
      height: 100%;
      backface-visibility: hidden;
      display: flex;
      flex-direction: column;
      border-radius: 12px;
      border: 10px solid #000; /* matches front border feel */
    }

    .card-front img {
      width: 100%;
      height: 350px;
      object-fit: cover;
    }

    .card-content {
      flex-grow: 1;
      display: flex;
      flex-direction: column;
      justify-content: center;
      padding: 15px 10px;
      gap: 8px;
      background-color: #000; /* black bottom part */
      color: white;
      text-decoration:none!important;
    }

    .card-front h3 {
      margin: 0;
      font-size: 20px;
      font-weight: bold;
      text-align: center;
    }

    .card-front p {
      margin: 0;
      font-size: 14px;
      line-height: 1.4;
      text-align: center;
    }

    .card-front a {
     text-decoration:none!important;
    }

    /* Overlay title style from flip example */
    .card-front h2 {
      position: absolute;
      top: 60%;
      left: 50%;
      transform: translate(-50%, -50%);
      color: white;
      font-family: "Oswald", Sans-serif;
      text-shadow: 2px 2px 4px rgba(0,0,0,1);
      background-color:rgba(0,0,0,0.55);
      padding:5px 0px;
      font-weight: bold;
      text-transform: uppercase;
      font-size: 30px;
      text-align: center;
      pointer-events: none; /* doesn't block clicks */
      width: 100%;
    }

    /* Back side */
    .card-back {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      backface-visibility: hidden;
      background: #ff0000;
      color: white;
      /*display: flex;*/
      align-items: center;
      justify-content: center;
      padding: 50% 20px;
      box-sizing: border-box;
      font-size: 1rem;
      font-weight: bold;
      text-align: center;
      transform: rotateY(180deg);
      border: 10px solid #ff0000; /* matches front border feel */
    }

    /* Hover flip – only on non-touch devices */
    @media (hover: hover) and (pointer: fine) {
      .card-link:hover .card-inner {
        transform: rotateY(180deg);
      }

      .card-link:hover .card {
        transform: translateY(-4px) scale(1.03);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
      }
    }

    .card {
      transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    /* Links */
    .card-link {
      display: block;
      text-decoration: none!important;
      color: inherit;
    }

    /* Arrows – same as your scroller */
    .arrow {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      background-color: rgba(0, 0, 0, 0.6);
      color: white;
      border: none;
      font-size: 28px;
      width: 50px;
      height: 50px;
      cursor: pointer;
      z-index: 10;
      opacity: 1;
      transition: opacity 0.4s ease;
    }

    .arrow.left { left: 10px; }
    .arrow.right { right: 10px; }

    /* Responsive adjustments */
    @media (max-width: 768px) {
      .card { width: 250px; }
      .cards-wrapper { gap: 15px; padding: 0 50px; }
      .arrow { width: 45px; height: 45px; font-size: 24px; }
    }

    @media (max-width: 480px) {
      .card {
        width: 280px;
        height: auto;
      }
      .card-front img { height: 380px; }
      .cards-wrapper { padding: 0 40px; }
    }