/* ========================================
   GLOBAL / BASE STYLES
   ======================================== */

:root {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #1f2937;
  background: #fff;
  line-height: 1.6;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}


/* ========================================
   CONTAINERS
   ======================================== */

.container {
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
}

.narrow {
  width: min(760px, calc(100% - 40px));
}


/* ========================================
   HERO / TOP AREA
   ======================================== */

.hero {
  padding: 2px 0;
  background: linear-gradient(135deg, #f4f7fb, #e9eef6);
}


/* Full-width heading */

.hero-heading {
  text-align: center;
  margin-bottom: 30px;
}

h1 {
  margin: 0 auto 12px;
  max-width: 900px;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.05;
}

.lead {
  max-width: 850px;
  margin: 0 auto;
  font-size: 1.15rem;
}


/* ========================================
   HERO MAIN LAYOUT
   ======================================== */

.hero-main {
  display: grid;

  grid-template-columns:
    180px
    minmax(0, 375px)
    1fr;

  gap: 30px;

  align-items: start;
}


/* ========================================
   HERO ACTIONS
   ======================================== */

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ========================================
   HERO PHOTO
   ======================================== */

.hero-photo {
  display: flex;
  justify-content: center;
}

.hero-image {
  display: block;
  width: min(100%, 375px);
  height: auto;
  margin: 0 auto;
  border-radius: 10px;
}


/* ========================================
   HERO FUNDRAISING
   ======================================== */

.hero-fundraising {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}


/* ========================================
   FUNDRAISING CIRCLE
   ======================================== */

.progress-circle {
  position: relative;

  width: 275px;
  height: 275px;

  flex-shrink: 0;
}

.progress-circle svg {
  display: block;

  width: 100%;
  height: 100%;

  transform: rotate(-90deg);
}

.progress-track,
.progress-fill {
  fill: none;
  stroke-width: 18;
}

.progress-track {
  stroke: #dbe2ea;
}

.progress-fill {
  stroke: #2563eb;
  stroke-linecap: round;
}

.progress-center {
  position: absolute;
  inset: 0;

  display: flex;
  flex-direction: column;

  justify-content: center;
  align-items: center;

  text-align: center;

  pointer-events: none;
}

.progress-center strong {
  font-size: 2rem;
  line-height: 1;
  color: #1f2937;
}

.progress-center span {
  margin-top: 8px;
  font-size: 1rem;
  color: #6b7280;
}

.progress-center small {
  margin-top: 4px;
  font-size: 0.9rem;
  color: #2563eb;
}

#raised-amount,
#raised-amount-bottom {
  margin-top: 12px;
  color: #2563eb;
}


/* ========================================
   MAIN THREE-COLUMN AREA
   ======================================== */

.main-information {
  padding: 25px 0;
}

.main-columns {
  display: grid;

  grid-template-columns:
    300px
    375px
    1fr;

  gap: 30px;

  align-items: start;
}

.left-column {
  min-width: 0;
}

.main-photo {
  display: flex;
  justify-content: center;
}

.main-fundraising {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}


/* ========================================
   INFORMATION SECTIONS
   ======================================== */

.information {
  padding: 0;
}

.info-section {
  margin-bottom: 12px;

  border: 1px solid #d1d5db;
  border-radius: 8px;

  background: #fff;

  overflow: hidden;
}

.info-section summary {
  padding: 14px 18px;

  cursor: pointer;

  font-size: 1.15rem;
  font-weight: 700;

  background: #f7f7f7;
}

.info-section summary:hover {
  background: #f0f1f2;
}

.info-content {
  padding: 18px;
}

.info-content p:first-child {
  margin-top: 0;
}

.info-content p:last-child {
  margin-bottom: 0;
}


/* ========================================
   ACTION BUTTONS
   ======================================== */

.action-button {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  gap: 9px;

  min-height: 46px;
  padding: 11px 18px;

  border: 1px solid #d1d5db;
  border-radius: 8px;

  background: #fff;
  color: #1f2937;

  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;

  text-decoration: none;

  cursor: pointer;

  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.12);

  transition:
    background 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
}

.action-button:hover {
  background: #f9fafb;

  box-shadow:
    0 4px 10px rgba(0, 0, 0, 0.18);

  transform: translateY(-2px);
}

.donate-button {
  background: #111827;
  color: #fff;
  border-color: #111827;
}

.donate-button:hover {
  background: #374151;
}

.action-icon {
  width: 24px;
  height: 24px;

  object-fit: contain;

  display: block;
}

.x-share .action-icon {
  width: 25px;
  height: 25px;
}

/* ========================================
   ACTION BAR
   ======================================== */

.action-bar {
  padding: 25px 0;
  background: #f7f7f7;
}

.action-intro {
  text-align: center;
  margin: 0 0 12px;
}

.action-links {
  display: flex;

  justify-content: center;
  align-items: center;

  flex-wrap: wrap;

  gap: 12px;
}


/* ========================================
   FOOTER
   ======================================== */

footer {
  padding: 15px 0;

  background: #111827;
  color: #d1d5db;

  text-align: center;
}


/* ========================================
   MOBILE / SMALL SCREENS
   ======================================== */

@media (max-width: 750px) {

  .hero {
    padding: 30px 0;
  }


  .hero-heading {
    margin-bottom: 25px;
  }


  h1 {
    font-size: clamp(2.2rem, 9vw, 3rem);
  }


  .lead {
    font-size: 1.05rem;
  }


  /* Stack the main hero */

  .hero-main {
    grid-template-columns: 1fr;
    gap: 25px;
  }


  /* Photo first */

  .hero-photo {
    order: 1;
  }


  /* Fundraising second */

  .hero-fundraising {
    order: 2;
  }


  /* Buttons third */

  .hero-actions {
    order: 3;

    width: min(100%, 375px);

    margin: 0 auto;
  }


  .hero-image {
    width: min(100%, 375px);
  }


  .progress-circle {
    width: 210px;
    height: 210px;
  }


  /* Main information */

  .main-information {
    padding: 20px 0;
  }

  .main-columns {
    grid-template-columns: 1fr;
    gap: 25px;
  }


  .left-column {
    order: 3;
  }


  .main-photo {
    order: 1;
  }


  .main-fundraising {
    order: 2;
  }


  .information {
    padding: 0;
  }


  .info-section summary {
    padding: 15px 16px;
  }


  .info-content {
    padding: 18px 16px;
  }


  /* Bottom action bar */

  .action-bar {
    padding: 20px 0;
  }

  .action-links {
    gap: 9px;
  }

  .action-button {
    min-height: 44px;
    padding: 10px 14px;
  }

}

/* ========================================
   INFORMATION BUTTONS
   ======================================== */

.info-button {
  display: block;
  width: 100%;

  margin-bottom: 12px;
  padding: 16px 20px;

  border: 1px solid #d1d5db;
  border-radius: 8px;

  background: #f7f7f7;
  color: #1f2937;

  font-family: inherit;
  font-size: 1.15rem;
  font-weight: 700;

  text-align: left;

  cursor: pointer;

  transition:
    background 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
}

.info-button:hover {
  background: #f0f1f2;

  box-shadow:
    0 3px 8px rgba(0, 0, 0, 0.12);

  transform: translateY(-1px);
}


/* ========================================
   CONTENT MODAL
   ======================================== */

.content-modal {
  position: fixed;
  inset: 0;

  z-index: 1000;

  display: none;

  padding: 40px 20px;

  background: rgba(0, 0, 0, 0.65);

  overflow-y: auto;
}

.content-modal.is-open {
  display: flex;

  align-items: flex-start;
  justify-content: center;
}

.content-modal-box {
  width: min(900px, 100%);

  max-height: calc(100vh - 80px);

  margin: auto 0;

  background: #fff;

  border-radius: 10px;

  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.35);

  overflow: hidden;

  display: flex;
  flex-direction: column;
}


/* ========================================
   MODAL HEADER
   ======================================== */

.content-modal-header {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 20px;

  padding: 18px 24px;

  border-bottom: 1px solid #d1d5db;

  background: #f7f7f7;
}

.content-modal-header h2 {
  margin: 0;

  font-size: 1.5rem;
}


/* ========================================
   MODAL CONTENT
   ======================================== */

.content-modal-body {
  padding: 25px;

  overflow-y: auto;

  line-height: 1.65;
}

.content-modal-body p:first-child {
  margin-top: 0;
}

.content-modal-body p:last-child {
  margin-bottom: 0;
}


/* ========================================
   MODAL FOOTER
   ======================================== */

.content-modal-footer {
  display: flex;

  justify-content: center;

  padding: 15px 24px;

  border-top: 1px solid #d1d5db;

  background: #f7f7f7;
}


/* ========================================
   MODAL CLOSE BUTTON
   ======================================== */

.modal-close {
  padding: 8px 16px;

  border: 1px solid #d1d5db;
  border-radius: 6px;

  background: #fff;
  color: #1f2937;

  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;

  cursor: pointer;
}

.modal-close:hover {
  background: #f0f1f2;
}


/* ========================================
   MOBILE MODAL
   ======================================== */

@media (max-width: 750px) {

  .content-modal {
    padding: 15px;
  }

  .content-modal-box {
    max-height: calc(100vh - 30px);
  }

  .content-modal-header {
    padding: 15px 16px;
  }

  .content-modal-header h2 {
    font-size: 1.3rem;
  }

  .content-modal-body {
    padding: 20px 16px;
  }

  .content-modal-footer {
    padding: 12px 16px;
  }

}