#section_summary {
  font-family: "prompt", sans-serif;
  padding: 40px 0 40px;
  background: linear-gradient(135deg, #e1f1ff 0%, #f0f8ff 50%, #e8f4fd 100%);
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}

#section_summary::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle,
      rgba(0, 91, 150, 0.05) 0%,
      transparent 70%);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

.section_summary_box {
  background: linear-gradient(145deg, #ffffff 0%, #f8fbff 100%);
  border-radius: 16px;
  padding: 30px 25px;
  text-align: center;
  height: 100%;
  box-shadow: 0 8px 25px rgba(0, 91, 150, 0.12),
    0 4px 10px rgba(0, 91, 150, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 91, 150, 0.1);
  border-top: 4px solid #005b96;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.section_summary_box::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.4),
      transparent);
  transition: left 0.5s;
}

.section_summary_box:hover::before {
  left: 100%;
}

.section_summary_box:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 35px rgba(0, 91, 150, 0.2),
    0 8px 15px rgba(0, 91, 150, 0.12);
  border-top: 4px solid #0066cc;
}

.section_summary_box h6 {
  font-family: "prompt", sans-serif;
  font-size: 18px;
  margin-bottom: 15px;
  color: #003366;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
}

.section_summary_box h3 {
  font-size: 32px;
  margin-bottom: 15px;
  background: linear-gradient(135deg, #005b96 0%, #0066cc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  text-shadow: 0 2px 4px rgba(0, 91, 150, 0.1);
}

.section_summary_box i {
  font-size: 28px;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #005b96 0%, #0066cc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: transform 0.3s ease;
}

.section_summary_box:hover i {
  transform: scale(1.1) rotate(5deg);
}

#section_donor h5 {
  font-weight: 700;
  color: #003366;
  font-size: 20px;
  margin-bottom: 25px;
  padding: 16px;
  background: linear-gradient(135deg, #e1f1ff 0%, #f0f8ff 100%);
  border-radius: 14px;
  text-align: center;
  border: 1px solid rgba(0, 91, 150, 0.1);
  box-shadow: 0 4px 15px rgba(0, 91, 150, 0.08);
  position: relative;
  overflow: hidden;
}

#section_donor h5::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #005b96, #0066cc, #005b96);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

.donor_item {
  margin-bottom: 10px;
  padding: 10px;
  background: linear-gradient(145deg, #ffffff 0%, #f8fbff 100%);
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0, 91, 150, 0.08);
  transition: all 0.3s ease;
}

.donor_item:hover {
  transform: translateX(5px);
  box-shadow: 0 5px 20px rgba(0, 91, 150, 0.15);
}

.donor_name {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 5px;
  color: #003366;
}

.donor_amount {
  float: right;
  background: linear-gradient(135deg, #003366 0%, #005b96 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 18px;
  font-weight: 700;
}

.donor_type_name {
  color: #6b7280;
  font-style: italic;
  font-size: 14px;
}

.search_box {
  width: 100%;
  position: relative;
  margin-bottom: 50px;
}

.search_box i {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #8bb8df;
  pointer-events: none;
  font-size: 22px;
  transition: color 0.3s ease;
}

.search_box input {
  padding: 15px 20px 15px 60px;
  border: 2px solid rgba(0, 91, 150, 0.1);
  border-radius: 14px;
  background: linear-gradient(145deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 4px 15px rgba(0, 91, 150, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: all 0.3s ease;
  font-size: 18px;
}

.search_box input:focus {
  outline: none;
  border-color: #005b96;
  box-shadow: 0 6px 20px rgba(0, 91, 150, 0.15), 0 0 0 3px rgba(0, 91, 150, 0.1);
}

.search_box input:focus+i {
  color: #005b96;
}

.section_donor {
  padding-top: 40px;
}

.project_item {
  padding: 14px;
  border-left: 4px solid #e1f1ff;
  margin-bottom: 30px;
  background: linear-gradient(145deg, #ffffff 0%, #f8fbff 100%);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 91, 150, 0.08);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.project_item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #005b96 0%, #0066cc 100%);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.project_item:hover::before {
  transform: scaleY(1);
}

.project_item:hover {
  transform: translateY(-5px) translateX(5px);
  box-shadow: 0 10px 30px rgba(0, 91, 150, 0.2),
    0 5px 15px rgba(0, 91, 150, 0.1);
  border-left: 4px solid transparent;
}

.donate_type_name {
  font-size: 20px;
  background: linear-gradient(135deg, #003366 0%, #005b96 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 15px;
  font-weight: 700;
}

.donate_type_desc {
  font-size: 16px;
  color: #6b7280;
  line-height: 1.6;
}

.total_amount {
  font-size: 28px;
  background: linear-gradient(135deg, #003366 0%, #005b96 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 15px;
  text-align: right;
  font-weight: 800;
  text-shadow: 0 2px 4px rgba(0, 91, 150, 0.1);
  position: relative;
}

.total_amount::after {
  content: "";
  position: absolute;
  bottom: -5px;
  right: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, #005b96, #0066cc);
  border-radius: 2px;
}

/* ปุ่มกลับขึ้นด้านบน */
#back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: none;
  width: 55px;
  height: 55px;
  background-color: rgba(255, 255, 255, 0.25);
  /* สีใส */
  backdrop-filter: blur(5px);
  border: 1px solid rgba(0, 80, 157, 0.2);
  box-shadow: 0 8px 20px rgba(0, 80, 157, 0.1);
  color: #00509d;
  border-radius: 50%;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

#back-to-top:hover {
  transform: translateY(-5px);
  background-color: rgba(0, 80, 157, 0.15);
  /* สีใสเข้มขึ้น */
  box-shadow: 0 12px 25px rgba(0, 80, 157, 0.18);
  color: #003366;
}

#back-to-top i {
  font-size: 1.2rem;
}

/* เพิ่ม Animation สำหรับ Loading */
@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.7;
  }
}

.loading {
  animation: pulse 1.5s infinite;
}

/* เพิ่ม Responsive Design */
@media (max-width: 956px) {
  .section_summary_box {
    margin-bottom: 20px;
  }

  .total_amount {
    font-size: 36px;
  }

  #back-to-top {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
  }
}

/* เพิ่ม Responsive Design */
@media (max-width: 768px) {
  .section_summary_box {
    margin-bottom: 20px;
  }

  .total_amount {
    font-size: 36px;
  }

  #back-to-top {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
  }
}