/* ============================================================
   Seeds of Success — getinvolved.css
   Page-specific styles only. Shared styles are in common.css.
   ============================================================ */

/* ---------------------------------------------------------
       Seeds of Success — Get Involved Page
       --------------------------------------------------------- */

    /* 1. Reset */

    /* 2. Header & nav */

    /* 3. Hamburger */

    /* 4. Page hero */

    /* 5. Intro section */
    
    .intro {
      max-width: 820px;
      margin: 0 auto;
      text-align: center;
      color: #3e4d49;
      font-size: 17px;
    }
    .intro h2 {
      font-family: "Playfair Display", serif;
      font-size: clamp(26px, 3.5vw, 36px);
      color: #0d6e4f;
      margin-bottom: 14px;
    }
    .ways{
      text-align: center;
    }
    
    .intro p { margin-bottom: 16px; }
    .intro .highlight {
      background: #fff8eb;
      border-left: 4px solid #f5a623;
      padding: 18px 22px;
      border-radius: 8px;
      text-align: left;
      margin-top: 24px;
    }
    .intro .highlight strong { color: #0d6e4f; }

    /* 6. Roles grid */

    .roles-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 28px;
    }
    .role-card {
      background: #ffffff;
      border-radius: 16px;
      padding: 36px 28px;
      box-shadow: 0 4px 18px rgba(13,110,79,0.08);
      border: 1px solid #e8efec;
      transition: all 0.3s ease;
      text-align: center;
      position: relative;
      overflow: hidden;
    }
    .role-card::before {
      content: "";
      position: absolute;
      top: 0; left: 0; right: 0;
      height: 5px;
      background: linear-gradient(90deg, #0d6e4f, #f5a623);
    }
    .role-card:hover {
      transform: translateY(-6px);
      box-shadow: 0 14px 32px rgba(13,110,79,0.18);
    }
    .role-icon {
      width: 70px; height: 70px;
      margin: 0 auto 18px;
      background: linear-gradient(135deg, #0d6e4f, #14906a);
      border-radius: 50%;
      display: flex;
      align-items: center; justify-content: center;
      color: #fff; font-size: 30px;
    }
    .role-icon.alt { background: linear-gradient(135deg, #f5a623, #f7b945); color: #1f2d2a; }
    .role-card h3 {
      font-family: "Playfair Display", serif;
      font-size: 22px;
      color: #0d6e4f;
      margin-bottom: 12px;
    }
    .role-card p {
      color: #5a6b66;
      font-size: 15px;
    }

    .role-toggle {
    display: inline-block;
    margin-top: 15px;
    color: #0d6e4f;
    font-weight: 600;
    cursor: pointer;
    transition: .25s;
}

.role-toggle:hover {
    color: #f5a623;
}

.role-toggle.close {
    font-size: 22px;
    font-weight: bold;
    color: #d32f2f;
}

.role-toggle.close:hover {
    color: #b71c1c;
}

    .role-close {
      display: none;
      position: absolute;
      top: 14px;
      right: 14px;
      color: #0d6e4f;
      background: transparent;
      border: none;
      cursor: pointer;
      font-size: 17px;
      line-height: 1;
      z-index: 2;
    }

    /* View Roles button styling (inside each role card) */
    .role-toggle {
      display: inline-block;
      margin-top: 15px;
      color: #0d6e4f;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.25s ease;
      border-radius: 999px;
      border: 1px solid #0d6e4f;
      padding: 10px 18px;
      background: #ffffff;
      font-size: 15px;
    }

    .role-toggle:hover {
      color: #0a5239;
      border-color: #0a5239;
      transform: translateY(-2px);
    }

    .role-toggle.close {
      border-color: #d32f2f;
      color: #d32f2f;
      background: #fff8eb;
    }

    .role-toggle.close:hover {
      border-color: #b71c1c;
      color: #b71c1c;
    }

    .role-details {
      display: none;
      text-align: left;
      margin-top: 22px;
      padding-top: 20px;
      border-top: 1px solid #e8efec;
      animation: roleDetailsIn 0.22s ease both;
    }
    .role-details h4 {
      font-family: "Playfair Display", serif;
      color: #0d6e4f;
      font-size: 20px;
      margin-bottom: 8px;
      text-align: center;
    }
    .role-details h5 {
      font-family: "Playfair Display", serif;
      color: #0d6e4f;
      font-size: 16px;
      margin: 16px 0 8px;
    }
    .role-details .detail-intro {
      color: #3e4d49;
      font-size: 14px;
      line-height: 1.7;
      text-align: center;
      margin-bottom: 8px;
    }
    .role-details ul {
      margin-left: 18px;
      color: #3e4d49;
      font-size: 14px;
      line-height: 1.8;
    }
    .role-details .time-commitment {
      margin-top: 16px;
      color: #1f2d2a;
      font-weight: 600;
      font-size: 14px;
      line-height: 1.7;
      background: #fff8eb;
      border-left: 4px solid #f5a623;
      padding: 12px 14px;
      border-radius: 8px;
    }

    .role-card.is-active .role-details{
    display:block;
}

.role-card.is-active .role-toggle{
    font-size:22px;
    font-weight:bold;
    color:#d32f2f;
}

.role-card.is-active .role-toggle:hover{
    color:#b71c1c;
}

    @keyframes roleDetailsIn {
      from { opacity: 0; transform: translateY(6px); }
      to   { opacity: 1; transform: translateY(0); }
    }

    /* 6b. Role description panel */
    .role-description-panel {
      max-width: 900px;
      margin: 28px auto 0;
      background: #ffffff;
      border: 1px solid #e8efec;
      border-radius: 16px;
      box-shadow: 0 4px 20px rgba(13, 110, 79, 0.08);
      overflow: hidden;
    }
    .role-description-header {
      padding: 22px 22px 12px;
      background: linear-gradient(135deg, rgba(13,110,79,0.10), rgba(245,166,35,0.10));
      border-bottom: 1px solid #e8efec;
    }
    .role-description-header h3 {
      font-family: "Playfair Display", serif;
      color: #0d6e4f;
      font-size: 22px;
      margin-bottom: 4px;
    }
    .role-description-header p {
      color: #5a6b66;
      font-size: 15px;
      margin-bottom: 0;
    }
    .role-description-body {
      padding: 18px 22px 24px;
      animation: rolePanelIn 0.22s ease both;
    }
    .role-description-body h4 {
      font-family: "Playfair Display", serif;
      color: #0d6e4f;
      font-size: 16px;
      margin: 16px 0 8px;
    }
    .role-description-body ul {
      margin-left: 18px;
      color: #3e4d49;
      font-size: 15px;
      line-height: 1.8;
    }
    .role-description-body .time-commitment {
      margin-top: 14px;
      color: #1f2d2a;
      font-weight: 600;
      font-size: 15px;
    }

    @keyframes rolePanelIn {
      from { opacity: 0; transform: translateY(6px); }
      to   { opacity: 1; transform: translateY(0); }
    }

    .role-card.is-active {
      border-color: #0d6e4f;
      box-shadow: 0 14px 32px rgba(13,110,79,0.18);
    }

    /* 7a. Donation section */
    .donate-section { padding: 80px 0; background: #ffffff; }
    .donate-card {
      max-width: 880px;
      margin: 0 auto;
      background: linear-gradient(135deg, #fff8eb 0%, #ffffff 100%);
      border: 1px solid #f4e4c1;
      border-radius: 20px;
      padding: 50px 44px;
      text-align: center;
      box-shadow: 0 12px 40px rgba(245,166,35,0.10);
    }
    .donate-card h2 {
      font-family: "Playfair Display", serif;
      font-size: clamp(26px, 3.5vw, 34px);
      color: #0d6e4f;
      margin-bottom: 12px;
    }
    .donate-card .lead {
      width: 60px; height: 4px;
      background: #f5a623;
      border-radius: 2px;
      margin: 14px auto 22px;
    }
    .donate-card p { color: #3e4d49; font-size: 16px; max-width: 620px; margin: 0 auto 28px; }
    .amount-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 12px;
      max-width: 560px;
      margin: 0 auto 24px;
    }
    .amount-btn {
      padding: 16px 10px;
      background: #ffffff;
      border: 2px solid #e8efec;
      border-radius: 12px;
      font-weight: 600;
      font-size: 16px;
      color: #1f2d2a;
      cursor: pointer;
      transition: all 0.2s ease;
      font-family: inherit;
    }
    .amount-btn:hover {
      border-color: #0d6e4f;
      color: #0d6e4f;
      transform: translateY(-2px);
    }
    .amount-btn.active {
      background: #0d6e4f;
      color: #fff;
      border-color: #0d6e4f;
    }
    .donate-actions {
      display: flex;
      gap: 14px;
      justify-content: center;
      flex-wrap: wrap;
      margin-top: 8px;
    }

    .donate-tags {
      display: flex;
      justify-content: center;
      gap: 18px;
      margin-top: 26px;
      flex-wrap: wrap;
      font-size: 13px;
      color: #5a6b66;
    }
    .donate-tags span { display: inline-flex; align-items: center; gap: 6px; }
    .donate-tags strong { color: #0d6e4f; }

    @media (max-width: 600px) {
      .amount-grid { grid-template-columns: repeat(2, 1fr); }
    }

    /* 7. Closing message */
    .closing-band {
      background: linear-gradient(135deg, #0d6e4f, #14906a);
      color: #fff;
      padding: 80px 0;
      text-align: center;
    }
    .closing-band h2 {
      font-family: "Playfair Display", serif;
      font-size: clamp(26px, 3.5vw, 36px);
      margin-bottom: 16px;
    }
    .closing-band p {
      max-width: 720px;
      margin: 0 auto 30px;
      font-size: 18px;
      opacity: 0.95;
    }

    /* 8. Footer */

    /* 9. Responsive */
    @media (max-width: 960px) {
      .roles-grid { grid-template-columns: repeat(2, 1fr); }
      
    }
    
    @media (max-width: 600px) {
      .roles-grid { grid-template-columns: 1fr; }
      
    }

    /* 10. Page transitions */

    @keyframes pageFadeIn {
      from { opacity: 0; transform: translateY(6px); }
      to   { opacity: 1; transform: translateY(0); }
    }
    @keyframes pageFadeOut {
      from { opacity: 1; transform: translateY(0); }
      to   { opacity: 0; transform: translateY(-6px); }
    }


    .role-form-btn {
  display: inline-block;
  margin-top: 18px;
  padding: 12px 26px;
  background: #0d6e4f;
  color: #ffffff;
  border-radius: 30px;
  font-weight: 600;
  font-size: 14px;
  text-align: center;
  transition: all 0.25s ease;
}

.role-form-btn:hover {
  background: #0a5239;
  color: #ffffff;
  transform: translateY(-2px);
}
.role-card {
  cursor: pointer;
}

.role-card:hover {
  transform: translateY(-8px) scale(1.02);
}

.role-toggle,
.role-form-btn,
.role-close {
  display: none !important;
}

.role-details {
  display: none !important;
}

.role-popup {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  padding: 20px;
}

.role-popup.show {
  display: flex;
}

.role-popup-box {
  background: #ffffff;
  width: 100%;
  max-width: 700px;
  height: 85vh;
  border-radius: 22px;
  padding: 38px 32px 0;
  text-align: center;
  position: relative;
  animation: popupZoom 0.35s ease;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  display: flex;
  flex-direction: column;
}

#rolePopupContent {
  overflow-y: auto;
  flex: 1;
  padding-bottom: 25px;
}

.role-popup-close{
    position:absolute;
    top:22px;
    right:22px;
    width:42px;
    height:42px;
    border-radius:50%;
    border:none;
    background:#f5f9f7;
    color:#0d6e4f;
    font-size:24px;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
    transition:.25s;
}

.role-popup-close:hover{
    background:#0d6e4f;
    color:#fff;
    transform:rotate(90deg);
}

.popup-role-details ul{
    list-style:none;
    padding-left:0;
    margin:12px 0 22px;
}

.popup-role-details li{
    position:relative;
    padding-left:28px;
    margin-bottom:12px;
    line-height:1.7;
}

.popup-role-details li::before{
    content:"✓";
    position:absolute;
    left:0;
    top:0;
    width:18px;
    height:18px;
    border-radius:50%;
    background:#0d6e4f;
    color:#fff;
    font-size:11px;
    display:flex;
    align-items:center;
    justify-content:center;
}
.popup-role-details {
  text-align: left;
  margin-top: 22px;
  padding-top: 20px;
  padding-bottom: 100px;
  border-top: 1px solid #e8efec;
}

.popup-actions {
  position: sticky;
  bottom: 0;
  background: #ffffff;
  padding: 18px 0 20px;
  margin-top: 24px;
  display: flex;
  gap: 14px;
  justify-content: center;
  border-top: 1px solid #e8efec;
  z-index: 25;
}

.popup-cancel-btn,
.popup-form-btn {
  padding: 12px 26px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
}

.popup-cancel-btn {
  background: #ffffff;
  color: #0d6e4f;
  border: 1px solid #0d6e4f;
}

.popup-form-btn {
  background: #0d6e4f;
  color: #ffffff;
  border: 1px solid #0d6e4f;
}

@keyframes popupZoom {
  from {
    opacity: 0;
    transform: scale(0.85) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.getinvolved-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
  align-items: start;
}


.roles-side {
  display: contents;
}

.compact-title {
  grid-column: 2;
  grid-row: 1;
  text-align: center;
  margin: 0;
}

.journey-side {
  grid-column: 1;
  grid-row: 2;
  position: sticky;
  top: 110px;
  background: #ffffff;
  border-radius: 15px;
}

.journey-side {
  min-width: 320px;
}
.roles-side {
  min-width: 0;
}

.journey-card {
  margin-top: 0 !important;
}

.compact-roles-grid {
  grid-column: 2;
  grid-row: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(280px, 1fr));
  gap: 22px;
}



@media (max-width: 992px) {
  .getinvolved-layout {
    display: block;
  }

  .roles-side {
    display: block;
  }

  .journey-side {
    position: static;
    margin-bottom: 30px;
  }

  .compact-roles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .compact-roles-grid {
    grid-template-columns: 1fr;
  }
}