.main-content {
  max-width: calc(100% - 48px);
  margin-left: auto;
  margin-right: auto;
  display: flex;
  margin-top: 25px; /* Khoảng cách với header */
  margin-bottom: 25px; /* Khoảng cách với footer */
  max-height: 888px;
}

.right-bar {
  width: 30%;
}

.content {
  width: 70%;
}

.content {
  /* Đảm bảo không áp dụng display: flex cho nội dung bên trong */
  display: block; /* Ghi đè nếu .dsp có display: flex */
  /* Các thuộc tính khác nếu cần */
  background-color: #eee; /* Màu xám trong suốt (opacity 0.5) */
  border-radius: 8px; /* Bo góc nhẹ */
  padding: 15px; /* Thêm padding để nội dung không sát viền */
  margin-right: 20px; /* Khoảng cách 20px với .donate */
}

.right-bar {
  display: block;
  background-color: #eee;
  border-radius: 8px;
  padding: 15px;
  flex: 1;
}

.donation-sidebar {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 16px;
  max-height: 100%; /* Chiều cao tối đa bằng chiều cao của viewport */
  overflow-y: auto; /* Thêm thanh cuộn nếu nội dung quá dài */
}

.donation-title {
  margin-bottom: 16px;
  font-size: 18px;
  color: #333;
  padding-bottom: 8px;
  border-bottom: 1px solid #eee;
}

.donation-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.donation-item {
  display: flex;
  align-items: center;
  padding: 10px;
  border-radius: 6px;
  transition: background-color 0.2s;
}

.donation-item:hover {
  background-color: #f9f9f9;
}

.donation-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 12px;
  overflow: hidden;
  border: 2px solid rgba(79, 70, 229, 0.1);
}

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

.donation-info {
  flex: 1;
}

.donation-name {
  font-weight: 500;
  color: #333;
  margin-bottom: 2px;
}

.donation-status {
  font-size: 12px;
  color: #666;
  margin-bottom: 2px;
}

.donation-amount {
  font-weight: 600;
  color: #4f46e5;
  font-size: 14px;
}
.tagline {
  display: block; /* Mặc định hiển thị trên desktop */
  font-size: 14px;
  margin-top: 4px;
  text-transform: none !important;
}
.branding-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

@media (max-width: 768px) {
  .main-content {
    padding: 10px;
  }

  .main-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: center;
  }

  .content {
    background: none;
    width: 100%;
    margin-right: 0;
    padding: 10px;
    order: 1;
  }

  .card-container {
    width: 90%;
    height: auto;
    margin-bottom: 30px;
  }

  .container form {
    width: 100%;
    padding: 15px;
  }

  .right-bar {
    background: none;
    width: 100%; /* ✅ full chiều ngang trong layout dọc */
    margin: 0 auto;
    order: 2; /* căn giữa nếu cần */
  }

  .donation-sidebar {
    max-height: 400px; /* Chiều cao tối đa bằng chiều cao của viewport */
    overflow-y: auto; /* Thêm thanh cuộn nếu nội dung quá dài */
  }

  .flip-container {
    width: 100%;
    height: auto;
  }

  .qr-image img {
    max-width: 100%;
    height: auto;
    margin-top: 730px;
  }

  .footer-section {
    margin-top: 400px;
  }
}

@media (min-width: 769px) {
}
.main-content {
  padding-top: 50px;
}
