             :root {
    --bg: #f8f9fa;
    --card-bg: #fff;
    --muted: #70757a;
    --text: #202124;
    --shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    --star-w: 90px;
    --star-size: 28px;         /* change this to scale */
    --star-gap: 6px;
    --fill-color: #FFC107;     /* filled star color */
    --empty-color: #E0E0E0;    /* empty star color */
    --stroke-color: #b38800;
  }
            
 .review-box {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 22px;
    box-shadow: 0px 0px 5px 0px rgb(161, 163, 164);
    min-height: 180px;
    display: flex;
    flex-direction: column;
    /*justify-content: center;*/
    position: relative;
  }

  .platform-header {
    display: block;
   /* align-items: center;*/
    justify-content: left;
    gap: 12px;
   /* margin-top:4em;*/
  }

  .platform-logo {
    width: 100px; height: 46px;
  }

  .platform-name {
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    color: var(--text);
  }

  .switch-buttons {
    position: absolute;
    margin-top: 0.5em;
    margin-bottom:1.2em;
   /* right: 12px;*/
   /* display: flex;*/
    gap: 3px;
  }

  .switch-buttons button {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 4px 6px;
    cursor: pointer;
    font-size: 12px;
    margin-right:1em;
  }

  .switch-buttons button.active {
    background: #4285f4;
    color: #fff;
    border-color: #4285f4;
  }

  .carousel-wrap { position: relative; display: flex; align-items: center; overflow: hidden; }
  .arrow {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: #fff;
    border: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
  }
  .carousel-left { left: -5px; }
  .carousel-right { right: -5px; }

  .cards-container { overflow: hidden; flex: 1; padding: 10px 0; }
  .cards { display: flex; gap: 20px; align-items: stretch; transition: transform 0.8s ease;will-change: transform; }

   .card{
    flex:0 0 320px;
    box-sizing:border-box;
    background:var(--card-bg);
    border-radius:14px;
    box-shadow:var(--shadow);
    padding:18px;
    
    text-align:left;
    min-height:150px;
    flex-direction: column;
    word-wrap: break-word;
    position: relative;
    background-clip: border-box;
    border: 1px solid #d2d2dc;
    -webkit-box-shadow: 0px 0px 5px 0px rgb(249, 249, 250);
    -moz-box-shadow: 0px 0px 5px 0px rgba(212, 182, 212, 1);
    box-shadow: 0px 0px 5px 0px rgb(161, 163, 164);
  }

  .card:hover { transform: translateY(-4px); transition: transform .12s; }

  .card .header1 { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
  .avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
  .name { font-weight: 700; color: var(--text); font-size: 15px; }
  .date { color: var(--muted); font-size: 13px; margin-top: 2px; }
 .card .stars {
    width: 10px;      /* Fixed width proportional */
    height: auto;
    margin: 6px 0;
}
  .card .text { color: #3c4043; text-align:justify; }

  @media (max-width: 640px) {
    .arrow { width: 40px; height: 40px; }
    .card { flex: 0 0 92%; }
    
    
  }  
  
  /* Adjust layout spacing for mobile */
@media (max-width: 768px) {
  .review-summary {
    margin-bottom: 20px;  /* space between top and slider */
  }

  .card {
    margin: 0 auto 20px;  /* center and add bottom space */
  }

/*  .cards {
    justify-content: center; 
  }*/

  .review-container {
    padding: 0 10px;
  }
  
  .card {
    flex: 0 0 100% !important;    /* take full width */
    max-width: 100% !important;   /* prevent cutting */
    margin: 0 auto;
    box-sizing: border-box;
  }

  /* Adjust arrows */
  .arrow {
    width: 36px;
    height: 36px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    background:transparent;
  }

  .carousel-left {
    left: 6px;
  }

  .carousel-right {
    right: 6px;
  }

  /* Fix parent alignment */
  .carousel-wrap {
    width: 100%;
    justify-content: center;
  }
}
            
    .rating {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial;
    user-select: none;
  }

  .stars {
    display: inline-block;
    width: calc((var(--star-size) * 5) + (var(--star-gap) * 4));
    height: var(--star-size);
    position: relative;
    line-height: 0; /* remove descender space */
  }

  /* Ensure svg fills container scale */
  .stars svg { width: 100%; height: 100%; display: block; }

  /* numeric label */
  .rating-value {
    font-weight: 600;
    font-size: 0.95rem;
    color: #222;
  }



.swiper {  max-width: 420px; margin: 0 auto; }
    .swiper-slide { display:flex; justify-content:center; align-items:center; padding: 12px 0; }
    .swiper-button-next, .swiper-button-prev { color: #333; }
    .swiper-pagination-bullet { background: #888; opacity: 0.7; }
.swiper-button-prev,
.swiper-button-next {
    width: 35px !important;
    height: 35px !important;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0px 2px 6px rgba(0,0,0,0.25);
    color: #000 !important;
}

/* Resize the arrow icons */
.swiper-button-prev::after,
.swiper-button-next::after {
    font-size: 16px !important;
}

/* Position slightly inside */
.swiper-button-prev {
    left: 10px !important;
}
.swiper-button-next {
    right: 10px !important;
}
