.panel-container {
      display: flex;
      gap: 15px;
      transition: all 0.3s ease;
      height: 100%;
      width: 100%;
      max-width: 1100px;
    }

    .card {
      position: relative;
      flex: 1;
      height: 400px;
      border-radius: 16px;
      overflow: hidden;
      background-size: cover;
      background-position: center;
      color: white;
      transition: all 0.4s ease;
      cursor: pointer;
    }

    .overlay1 {
      position: absolute;
      inset: 0;
      background: rgba(0, 0, 0, 0.45);
      z-index: 1;
    }

    .text-block {
      position: absolute; /* lock at bottom */
      bottom: 0;
      left: 0;
      right: 0;
      z-index: 2;
      display: none; /* hidden by default */
      padding: 20px;
      background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.6) 0%,
        rgba(0, 0, 0, 0) 100%
      );
    }

    .title1 {
      font-size: 18px;
      font-weight: bold;
      margin-bottom: 8px;
    }

    .desc {
      font-size: 14px;
      line-height: 1.4;
    }

    .vertical-text {
      position: absolute;
      inset: 0;
      writing-mode: vertical-rl;
      text-orientation: mixed;
      display: flex;
      justify-content: center;
      align-items: center;
      font-size: 20px;
      font-weight: bold;
      text-transform: uppercase;
      color: white;
      z-index: 2;
      transition: all 0.3s ease;
    }

    /* Active card enlarges */
    .card.active {
      flex: 2;
      transform: scale(1.05);
      z-index: 5;
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    }

    /* Active card shows block content */
    .card.active .text-block {
      display: block;
    }

    .card.active .vertical-text {
      display: none;
    }

    /* 📱 Mobile Styles */
    @media (max-width: 767px) {
      .panel-container {
        flex-direction: column;
      }

      .card {
        flex: none;
        width: 100%;
        height: 300px;
        transform: none !important; /* no scaling */
      }

      .card.active {
        flex: none;
      }

      /* Vertical text becomes horizontal */
      .vertical-text {
        writing-mode: horizontal-tb;
        text-orientation: initial;
        font-size: 18px;
        justify-content: center;
        align-items: flex-end;
        padding-bottom: 30px;
      }
    }