/* === Container Layout === */
.profile-container {
  position: relative;
  max-width: 1430px;
  margin: 30px auto 40px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 24px;
}

/* === Share Profile Button === */
.share-icon {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  background-color: #0070f3;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s;
}

.share-icon svg {
  width: 16px;
  height: 16px;
  fill: #fff;
}

.share-icon:hover {
  background-color: #005bb5;
}

.share-icon .tooltip-text {
  position: absolute;
  top: -32px;
  right: 50%;
  transform: translateX(50%);
  background-color: #333;
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease-in-out;
  z-index: 1000;
}

.share-icon:hover .tooltip-text {
  opacity: 1;
}


/* === Profile Image & Info === */
.profile-image {
  flex: 0 0 150px;
}
.profile-image img {
  width: 150px;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}
.profile-info {
  flex: 1;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.profile-info .campaign-meta {
  margin-top: auto;
  font-size: 14px;
  color: #333;
}
.profile-info h2 {
  margin-top: 0;
  font-size: 30px;
  font-weight: bold;
  color: #333;
}
.profile-info p {
  font-size: medium;
  margin-bottom: 16px;
}


/* === Filter Header: title on left, buttons on right === */
.campaign-filter-header {
  max-width: 1464px;
  margin: 20px auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.campaign-filter-header .filter-title {
  margin: 0;
  font-size: 24px;
  color: #333;
}
.campaign-filter-header .campaign-buttons {
  display: flex;
  gap: 10px;
}
.campaign-filter-header .filter-btn {
  padding: 8px 16px;
  font-size: 14px;
  border: none;
  background: #0070f3;
  color: #fff;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
}
.campaign-filter-header .filter-btn.active {
  background: #005bb5;
}

/* Divider under the campaign filter header */
.filter-divider {
  height: 1px;
  background-color: #e0e0e0;
  border: none;
  margin: 0 auto 24px;
  max-width: 1464px;
  width: 100%;
}

/* === Fundraiser Cards === */
.fundraiser-section {
  max-width: 1475px;
  margin: 0 auto 40px;
  padding: 0 24px;
}
.fund-box-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 20px;
  margin: 60px auto;
}
.fund-box {
  background: #fff;
  width: 462px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
}
.fund-box .img-wrap {
  height: 220px;
  overflow: hidden;
}
.fund-box .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fund-box .text-area {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  text-align: center;
}
.fund-box h4 {
  margin: 0 0 8px;
  font-size: 18px;
  color: #333;
}
.fund-box .name {
  font-weight: bold;
  margin-bottom: 8px;
  color: #0070f3;
}
.fund-box .progress-bar {
  background: #ddd;
  border-radius: 20px;
  height: 12px;
  overflow: hidden;
  margin-bottom: 8px;
}
.fund-box .progress-bar span {
  display: block;
  height: 100%;
  background: #0070f3;
}
.fund-box .goal-info {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin: 0 0 12px;
  color: #333;
}
.fund-box .donate-btn {
  background: #0070f3;
  color: #fff;
  padding: 10px 0;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
}

/* Pagination (if used) */
.pagination-controls {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 16px 0;
}
.pagination-controls button {
  padding: 6px 10px;
  border: 1px solid #ccc;
  background: #fff;
  cursor: pointer;
  border-radius: 4px;
  font-size: 13px;
}
.pagination-controls button.active {
  background: #0070f3;
  color: #fff;
  border-color: #0070f3;
}

/* === Responsive Styles === */
@media (max-width: 992px) {
  .fund-box {
    width: calc(50% - 20px);
  }
}
@media (max-width: 600px) {
  .profile-container {
    flex-direction: column;
    padding: 16px;
  }
  .profile-image {
    margin: 0 auto 16px;
  }
  .profile-info {
    text-align: left;
  }
  .campaign-filter-header {
    flex-direction: column;
    gap: 12px;
  }
  .campaign-filter-header .campaign-buttons {
    justify-content: center;
  }
  .fund-box {
    width: 100%;
  }
  .share-icon {
    top: 12px;
    right: 12px;
  }
}
