@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background-color: #f8fff8;
  background-size: cover;
  background-position: center;
}
.container-donate{
  width:100%;
  display: flex;
  margin:100px 0;
  gap: 50px;
}

.map-wrapper {
  background-image: url('images/BackgroundBando.jpg');
  position: relative;
  border: 2px solid #aaa;
  padding: 15px;
  border-radius: 8px;
  background-color: #f9f9f9;
  margin-left: 70px;
  width: 35%;
  height: 680px;
}
.map-wrapper svg{
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 6;
  transform: scale(1.35);
  transform-origin: center center;
}

/* Lớp phủ mờ phía sau nội dung bản đồ */
.map-blur-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(5px); /* Làm mờ hình nền phía sau */
  background-color: rgba(255, 255, 255, 0.1); /* phủ sáng nhẹ nếu muốn */
  z-index: 1;
}

/* Nội dung bản đồ nổi lên trên lớp mờ */
#svg-map > *:not(.map-blur-overlay) {
  position: relative;
  z-index: 2;
}
.info-panel {
  border: 2px solid #aaa;
  border-radius: 8px;
  padding: 20px;
  width: 400px;
  background-color: #fffbea;
  box-shadow: 2px 2px 10px rgba(0,0,0,0.1);
}

.info-panel img {
  width: 100%;
  height: 350px;
  border-radius: 6px;
  margin-bottom: 15px;
  object-fit: cover;
}

svg path {
  fill: #c8e6c9;
  stroke: #555;
  stroke-width: 0.5;
  transition: all 0.3s ease;
}

svg path:hover {
  fill: #66bb6a;
  stroke: #000;
  stroke-width: 1;
  cursor: pointer;
  }

svg path.selected {
  stroke: red;
  stroke-width: 2;
}

.info-panel {
  display: flex;
  flex-direction: column;
  border: 2px solid #ccc;
  padding: 16px;
  width: 850px;
  background-color: #f9f9f9;
}

.image-box {
  text-align: center;
  margin-bottom: 20px;
}

.image-box img {
  max-width: 100%;
  height: 350px;
  border-radius: 8px;
}

.image-box h2 {
  margin-top: 10px;
  font-size: 35px;
  color: #333;
}

.info-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 15px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.info-label {
  flex: 1;
  font-weight: bold;
  color: #555;
}

.info-row span {
  flex: 1;
  font-size: 18px;
  font-weight: bold;
  color: #00695c;
}

.full {
  flex: 100%;
}

.tooltip {
  position: absolute;
  background: linear-gradient(135deg, #14713e 0%, #1d8460 100%);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  pointer-events: none;
  z-index: 1000;
  white-space: nowrap;
  opacity: 0.95;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.hidden {
  display: none;
}

/*tác giả*/
.author-section-donate {
  display: flex;
  justify-self: center;
  align-items: center;
  width: 100%;
}

.container-author-donate {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: flex-start; /* đổi từ center sang flex-start để lệch trái */
  align-items: center;
  flex-wrap: nowrap;
  padding: 30px;
  gap: 20px;
}

.container-author-donate .card {
  position: relative;
  max-width: 300px;
  height: 250px;
  background-color: #fff;
  margin: 30px 10px;
  padding: 20px 15px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 5px 202px rgba(0, 0, 0, 0.5);
  transition: 0.3s ease-in-out;
}

.container-author-donate .card:hover {
  height: 420px;
}

.container-author-donate .card .imgBx img {
  width: 270px;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin: 5px 0;
}

.container-author-donate .card .author-content {
  position: relative;
  margin-top: -140px;
  padding: 10px 15px;
  text-align: center;
  color: #111;
  visibility: hidden;
  opacity: 0;
  transition: 0.3s ease-in-out;
}

.container-author-donate .card:hover .author-content {
  visibility: visible;
  opacity: 1;
  margin-top: -40px;
  transition-delay: 0.3s;
}
.right-table {
  width: 900px;              /* Đặt chiều ngang mong muốn */
  max-width: 100%;           /* Không bị tràn nếu trên màn nhỏ */
  background-color: #f8f8f8;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  margin-right: 100px;        /* Và canh giữa nếu cần */
}

.right-table:hover {
  box-shadow: 0 8px 250px rgba(0, 0, 0, 0.6);
}

.donation-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  color: #333;
  border-collapse: collapse;
}

.donation-table thead tr {
  background-color: #d7f0e7;
  color: #2a6f4a;
  text-align: left;
  user-select: none;
}

.donation-table th, .donation-table td {
  padding: 12px 15px;
  border-bottom: 2px solid #2a6f4a;
}

.donation-table tbody tr {
  border-bottom: 1px solid #e0e0e0;
  transition: background-color 0.3s ease;
}

.donation-table tbody tr.alt-row {
  background-color: #f9fdfb;
}

.donation-table tbody tr:hover {
  background-color: #c4e4d5;
  cursor: pointer;
}

.donation-table tbody tr td:first-child {
  font-weight: 600;
}

.donation-note {
  margin-top: 22px;
  font-size: 14px;
  color: #555;
  font-style: italic;
  user-select: none;
}

.section-wrapper {
  display: flex;
  flex-wrap: nowrap;
  gap: 30px;
  align-items: flex-start;
}

.container-author-donate {
  flex: 1 1 60%;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.donate-section {
  padding: 40px;
}

.donate-intro {
  text-align: center;
  margin-bottom: 30px;
}

.donate-intro h2 {
  font-size: 28px;
  color: #ffffff;
}

.donate-intro p {
  font-size: 18px;
  color: #ffffff;
  max-width: 800px;
  margin: auto;
  line-height: 1.6;
}

.donate-wrapper {
  display: flex;
  align-items: flex-start; /* đảm bảo hai form top-align */
  justify-content: center;
  gap: 200px; /* vừa phải để không quá xa nhau */
  flex-wrap: wrap;
}
.donate-form {
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
  flex: 1 1 400px;
  max-width: 500px;
  color: #fff;
}

.donate-form h3 {
  margin-bottom: 20px;
  font-size: 22px;
  color: #2c3e50;
}

.donate-form form label {
  display: block;
  margin-top: 12px;
  font-weight: bold;
  color: #444;
}

.donate-form input,
.donate-form select,
.donate-form textarea {
  width: 100%;
  padding: 10px;
  margin-top: 6px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.donate-form textarea {
  height: 100px;
  resize: vertical;
}

.donate-form button {
  margin-top: 20px;
  padding: 12px;
  width: 100%;
  background-color: #27ae60;
  color: white;
  font-size: 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.donate-form button:hover {
  background-color: #219150;
}

.qr-box {
  text-align: center;
  margin-top: 20px;
}

.qr-box img {
  width: 150px;
  margin: 10px 0;
}
@media (max-width: 1200px) {
  .navbar{
    padding: 10px 20px;
  }
    .navbar ul{
        flex-direction: column;
        gap: 10px;
        position: absolute;
        top: 100px;
        left: 0;
        width: 100%;
        background-color: #333;
        padding: 10px;
        display: none;
    }

    .navbar ul.active {
        display: flex;
    }

    .navbar .logo-container::after {
        content: "☰";
        font-size: 24px;
        cursor: pointer;
        position: absolute;
        right: 20px;
        top: 15px;
    }
}
