.card-section {
  margin-top: 2rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.main-card {
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0px 4px 24px 0px #0000001a;
  height: 100%;
}

.card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-content {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-name,
.cung-name {
  font-weight: 600;
  font-size: clamp(16px, 2.5vw, 26px);
  margin: 0;
}

.cung-name {
  min-height: 50px;
}

.card-description {
  font-size: clamp(14px, 2.2vw, 23px);
  font-weight: 400;
  margin: 0 !important;
  min-height: 90px;
}

.cung-starts {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.star-row {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: clamp(14px, 2.2vw, 22px);
  font-weight: 500;
}


.star-label {
  flex-wrap: nowrap;
}

.label-green {
  color: #089800;
}

.label-red {
  color: #dd3a3a;
}

.star-value {
  color: black;
  white-space: normal;
  word-break: break-word;
  flex: 1;
}

.card-footer {
  padding: 0 16px 16px;
  margin: 0 30px;
  background-color: white;
}

.card-btn {
  font-size: clamp(13px, 2vw, 24px);
  display: block;
  width: 100%;
  padding: 10px 16px;
  background: var(--color-secondary-700);
  color: white;
  border-radius: 12px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: all 0.2s ease;
}

.card-btn:hover {
  background: var(--color-secondary-700);
  color: white;
}

.main-card:nth-child(n + 7) {
  display: none;
}

.card-grid.show-all .main-card:nth-child(n + 7) {
  display: flex;
}

.cards-actions {
  margin: 40px auto;
}

.cards-btn {
  display: block;
  padding: 12px 34px;
  background: var(--color-neutral-200);
  color: var(--color-secondary-1000);
  border: 1px solid var(--color-neutral-800);
  border-radius: 12px;
  font-size: clamp(14px, 2.5vw, 24px);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cards-btn:hover {
  background: var(--color-neutral-200);
  color: var(--color-secondary-1000);
}

.cards-btn-expand {
  display: block;
}

.cards-btn-collapse {
  display: none;
}

.cards-actions.show-all .cards-btn-expand {
  display: none;
}

.cards-actions.show-all .cards-btn-collapse {
  display: block;
}

.van-section-title {
  margin-bottom: 40px;
}

.van-cards-container {
  margin-top: 40px;
  gap: 30px;
}

.download-section {
  margin-top: 1rem;
  background-color: #fefbe8;
  border: 1.5px solid var(--color-secondary-600);
  padding: 20px 32px;
}

.download-section h4 {
  font-weight: 600;
}

.download-section .btn-download {
  font-size: clamp(12px, 2vw, 24px);
  padding: 16px 26px;
  background: var(--color-primary-700);
  color: var(--color-white);
  border: 3px solid transparent;
  border-radius: 20px;
  background-clip: padding-box, border-box;
  background-image:
    linear-gradient(var(--color-primary-700), var(--color-primary-700)),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.12) 0%,
      rgba(255, 255, 255, 0) 100%
    );
  box-shadow:
    0px 1px 2px 0px var(--ColorsEffectsShadowsshadow-xs),
    inset 0px -2px 0px 0px var(--ColorsEffectsShadowsshadow-skeumorphic-inner),
    inset 0px 0px 0px 1px
      var(--ColorsEffectsShadowsshadow-skeumorphic-inner-border);
  font-weight: 600;
}

.modal-dialog {
  max-width: 700px !important;
  margin: auto !important;
  display: flex;
  align-items: center;
  min-height: calc(100% - 1rem);
}

.header-close {
  padding: 30px 30px 10px;
}

.cung-body {
  padding: 0 40px 20px;
}

.app-desc {
  line-height: 1.6;
  font-size: clamp(15px, 2.5vw, 24px);
  color: black;
}

.app-note {
  color: #000;
  font-size: clamp(13px, 2vw, 20px);
  font-weight: 500;
}

.qr-card {
  box-shadow: 0px 14.03px 49.1px 0px #00000040;
  margin: 0 7rem;
  border-radius: 0;
}

.qr-background {
  width: 300px;
  height: 300px;
  background: url("../../img/qr.jpg") center / contain no-repeat;
}

.store-btn {
  background-color: #000000;
  color: white;
  padding: 10px 14px;
  border-radius: 8px;
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.store-btn span {
  color: white;
  font-size: clamp(10px, 1.5vw, 14px);
}

.store-btn span:hover {
  color: white;
}

@media (max-width: 1440px) {
  .cung-name {
    min-height: 75px;
  }

  .card-description {
    min-height: 100px;
  }
}

@media (max-width: 1200px) {
  .card-description {
    min-height: 80px;
  }

  .van-cards-container {
    gap: 20px;
  }
}

@media (max-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .cung-name {
    min-height: 30px;
  }

  .qr-background {
    width: 290px;
    height: 290px;
  }
}

@media (max-width: 768px) {
  .card-section {
    margin-top: 0;
  }

  .card-grid {
    gap: 12px;
  }

  .card-image {
    height: 150px;
  }

  .card-content {
    padding: 12px;
    gap: 8px;
  }

  .cung-name {
    min-height: auto;
  }

  .card-description{
    min-height: 60px;
  }

  .card-btn img {
    width: 10px !important;
    height: 10px !important;
  }

  .card-footer {
    padding: 0 12px 12px;
  }

  .card-btn {
    padding: 8px 14px;
  }

  .cards-btn {
    padding: 8px 30px;
  }

  .cards-actions {
    margin: 30px 0;
  }

  .van-cards-container {
    margin-top: 20px;
    gap: 10px;
  }

  .van-section-title {
    margin-bottom: 20px;
  }

  .van-left img {
    width: 22px !important;
    height: 22px !important;
  }

  .download-section .btn-download{
    padding: 14px 20px;
  }

  .modal-dialog {
    max-width: 570px !important;
  }
  .cung-body {
    padding: 10px 30px 20px;
  }
  .qr-card {
    margin: 0 5rem;
  }

  .qr-background {
    width: 280px;
    height: 280px;
  }

  .store-btn {
    padding: 10px;
  }
}

@media (max-width: 576px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
  .card-image {
    height: 120px;
  }

  .card-content {
    padding: 10px;
    gap: 6px;
  }

  .cung-name,
  .card-description{
    min-height: auto;
  }

  .star-row {
    gap: 2px;
  }

  .card-footer {
    padding: 0 10px 10px;
    margin: 0 15px;
  }

  .card-btn img {
    width: 8px !important;
    height: 8px !important;
  }

  .cards-actions {
    margin: 20px 0;
  }
  .van-section-title {
    margin-bottom: 0;
  }
  .van-cards-container {
    margin-top: 10px;
  }
  .van-left {
    gap: 5px !important;
  }
  .van-right img {
    margin-left: 4px !important;
  }

  .modal-dialog {
    max-width: 90% !important;
    margin: auto !important;
  }

  .modal-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .header-close {
    padding: 15px 15px 0;
  }
  .qr-card {
    margin: 0 3rem;
  }

  .app-desc {
    line-height: 1.4;
  }
  .app-note {
    margin-top: 1rem !important;
  }

  .card-body {
    gap: 10px !important;
    padding: 12px !important;
  }

  .qr-background {
    width: 200px;
    height: 200px;
  }

  .qr-card img {
    width: 16px !important;
    height: 16px !important;
  }

  .store-btn {
    padding: 8px !important;
    width: 130px;
  }
}

@media (max-width: 400px) {
  .card-image {
    height: 120px;
  }

  .card-content {
    padding: 8px;
    gap: 6px;
  }

  .card-footer {
    padding: 0 8px 8px;
  }

  .download-section .btn-download{
    padding: 10px 16px;
  }

  .modal-dialog {
    max-width: 300px !important;
  }
  .cung-body {
    padding: 5px 20px 10px;
  }
  .download-container {
    margin: 0;
  }
  .qr-card {
    margin: 0 1rem;
  }

  .qr-background {
    width: 180px;
    height: 180px;
  }
}

@media (max-width: 300px) {
  .van-title {
    font-size: 14px !important;
  }

  .van-right img {
    margin-left: 2px !important;
  }

  .download-section {
    padding: 16px 20px;
  }

  .modal-dialog {
    max-width: 220px !important;
  }
  .header-close {
    padding: 10px 10px 0;
  }

  .download-container {
    padding: 10px;
    gap: 12px !important;
  }

  .qr-card {
    margin: 0;
  }

  .qr-background {
    height: 150px;
    width: 150px;
    margin: 0 auto;
  }

  .qr-card img {
    width: 14px !important;
    height: 14px !important;
  }

  .store-btn {
    padding: 6px !important;
    width: 130px;
  }
}