/*!********************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[7].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[7].use[3]!./src/components/FamilyTree.module.css ***!
  \********************************************************************************************************************************************************************************************************************************************************************************/
.FamilyTree_container__qivTA {
  max-width: 1600px;
  width: 100%;
  min-height: 100vh;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 30px;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  position: relative;
  margin: 0 auto;
}

.FamilyTree_backButtonsContainer__FxCHy {
  position: absolute;
  top: 20px;
  left: 20px;
  display: flex;
  gap: 15px;
  z-index: 30;
}

.FamilyTree_backButton__lpNgh {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  border: none;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.FamilyTree_backButton__lpNgh:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.6);
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.FamilyTree_backButton__lpNgh:active {
  transform: translateY(-1px);
}

.FamilyTree_homeButton__K45uP {
  background: linear-gradient(135deg, #FF6B6B 0%, #FF8E72 100%);
}

.FamilyTree_homeButton__K45uP:hover {
  background: linear-gradient(135deg, #FF5252 0%, #FF7A5C 100%);
  box-shadow: 0 10px 30px rgba(255, 107, 107, 0.6);
}

.FamilyTree_title__Y25Uq {
  text-align: center;
  color: #2d3436;
  font-size: 3rem;
  margin-bottom: 10px;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 20;
}

.FamilyTree_subtitle__rAuCz {
  text-align: center;
  color: #636e72;
  font-size: 1.3rem;
  margin-bottom: 40px;
  font-style: italic;
  position: relative;
  z-index: 20;
}

.FamilyTree_partnershipsInfo__LrAX3 {
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid #e0e0e0;
  border-radius: 15px;
  padding: 20px 30px;
  margin: 0 auto 30px auto;
  max-width: 800px;
  position: relative;
  z-index: 20;
}

.FamilyTree_partnershipsInfo__LrAX3 h3 {
  color: #2d3436;
  font-size: 1.2rem;
  margin-bottom: 15px;
  text-align: center;
}

.FamilyTree_partnersList__O34xQ {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.FamilyTree_partnerItem__A0Vrj {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 15px;
  background: linear-gradient(135deg, rgba(255, 217, 155, 0.3) 0%, rgba(255, 154, 158, 0.3) 100%);
  border-radius: 10px;
  flex-wrap: wrap;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  font-family: inherit;
}

.FamilyTree_partnerItem__A0Vrj:hover {
  background: linear-gradient(135deg, rgba(255, 217, 155, 0.5) 0%, rgba(255, 154, 158, 0.5) 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.FamilyTree_partnerItem__A0Vrj.FamilyTree_selected__dPed4 {
  background: linear-gradient(135deg, rgba(255, 217, 155, 0.8) 0%, rgba(255, 154, 158, 0.8) 100%);
  border-color: #ff6b6b;
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.3);
  font-weight: 600;
}

.FamilyTree_partnerName__q2rlK {
  font-weight: 600;
  color: #2d3436;
  font-size: 1.1rem;
}

.FamilyTree_partnerStatus__UqyPL {
  color: #636e72;
  font-style: italic;
  font-size: 0.95rem;
}

.FamilyTree_partnerDates__WBlsy {
  color: #636e72;
  font-size: 0.9rem;
  margin-left: 5px;
}

.FamilyTree_childrenCount__6G9Lo {
  background: rgba(255, 107, 107, 0.2);
  color: #2d3436;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-left: 8px;
}

.FamilyTree_partnerItem__A0Vrj.FamilyTree_selected__dPed4 .FamilyTree_childrenCount__6G9Lo {
  background: rgba(255, 107, 107, 0.4);
}

.FamilyTree_treeContainer__mr9I6 {
  position: relative;
  width: 100%;
  min-height: 1200px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
}

.FamilyTree_treeBackground__NCTzK {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('https://images.unsplash.com/photo-1513836279014-a89f7a76ae86?w=1600&q=80');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.85;
  filter: brightness(1.1) contrast(1.05);
  z-index: 1;
}

.FamilyTree_treeOverlay__Pk7Nl {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0.5) 100%);
  z-index: 2;
}

.FamilyTree_familyMembers__2S7k9 {
  position: relative;
  width: 100%;
  height: 1200px;
  z-index: 10;
}

.FamilyTree_familyMember__QNAF8 {
  position: absolute;
  cursor: pointer;
  transition: all 0.3s ease;
  animation: FamilyTree_float__x34aw 3s ease-in-out infinite;
}

.FamilyTree_familyMember__QNAF8:hover {
  transform: translateY(-8px) scale(1.08);
  z-index: 20;
}

.FamilyTree_parent__Yk02d {
  /* Parents styling handled in PersonCard */
}

.FamilyTree_child__rtuVO {
  /* Children styling handled in PersonCard */
}

/* Positioning for family members */
.FamilyTree_member1__3Dfoa {
  top: 50px;
  left: 15%;
}

.FamilyTree_member2__rElW5 {
  top: 50px;
  right: 15%;
}

.FamilyTree_member3__G8Nr_ {
  top: 180px;
  left: 8%;
}

.FamilyTree_member4__0OtHl {
  top: 180px;
  right: 8%;
}

.FamilyTree_member5__zwj0G {
  top: 320px;
  left: 5%;
}

.FamilyTree_member6__2iXWH {
  top: 320px;
  right: 5%;
}

.FamilyTree_member7__Rb1hG {
  top: 480px;
  left: 12%;
}

.FamilyTree_member8__nrxuB {
  top: 480px;
  right: 12%;
}

.FamilyTree_member9__fdgyC {
  top: 640px;
  left: 25%;
}

.FamilyTree_member10__AiDcm {
  top: 640px;
  right: 25%;
}

/* Additional positions for more children */
.FamilyTree_member11__qPUnn {
  top: 230px;
  left: 30%;
}

.FamilyTree_member12__E3N_S {
  top: 230px;
  right: 30%;
}

.FamilyTree_member13__o7SL_ {
  top: 400px;
  left: 35%;
}

.FamilyTree_member14__8KKKk {
  top: 400px;
  right: 35%;
}

.FamilyTree_member15__fAXvn {
  top: 560px;
  left: 40%;
}

.FamilyTree_member16__UHvi_ {
  top: 560px;
  right: 40%;
}

.FamilyTree_member17__Cfkcp {
  top: 720px;
  left: 15%;
}

.FamilyTree_member18__RUoLh {
  top: 720px;
  right: 15%;
}

.FamilyTree_member19__Q2qPj {
  top: 860px;
  left: 32%;
}

.FamilyTree_member20__cVKho {
  top: 860px;
  right: 32%;
}

.FamilyTree_heart__EpoBQ {
  position: absolute;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2.5rem;
  color: var(--heart-color);
  z-index: 15;
  animation: FamilyTree_heartbeat__gQhP6 1.5s ease-in-out infinite;
  filter: drop-shadow(0 4px 8px rgba(255, 107, 107, 0.5));
}

@keyframes FamilyTree_heartbeat__gQhP6 {
  0%, 100% { transform: translateX(-50%) scale(1); }
  50% { transform: translateX(-50%) scale(1.3); }
}

@keyframes FamilyTree_float__x34aw {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.FamilyTree_photoCredit__Lu0oY {
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-size: 0.7rem;
  color: rgba(0, 0, 0, 0.4);
  z-index: 15;
  background: rgba(255, 255, 255, 0.7);
  padding: 4px 8px;
  border-radius: 5px;
}

.FamilyTree_photoCredit__Lu0oY a {
  color: rgba(0, 0, 0, 0.5);
  text-decoration: none;
}

.FamilyTree_photoCredit__Lu0oY a:hover {
  color: rgba(0, 0, 0, 0.8);
}

/* Modal */
.FamilyTree_modal__dF_oW {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  animation: FamilyTree_fadeIn__1V9U3 0.3s ease;
}

.FamilyTree_modalContent__W0Cv1 {
  background: white;
  padding: 40px;
  border-radius: 25px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
}

.FamilyTree_closeButton__Z7d65 {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #636e72;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.FamilyTree_closeButton__Z7d65:hover {
  background: #f0f0f0;
  color: #2d3436;
}

.FamilyTree_modalContent__W0Cv1 h2 {
  margin-bottom: 10px;
  color: #2d3436;
}

.FamilyTree_baptismalName__dnMUS {
  color: #636e72;
  font-style: italic;
  margin-bottom: 20px;
}

.FamilyTree_dates__0MeU_ {
  margin-bottom: 20px;
  color: #636e72;
}

.FamilyTree_partnerSection__smCTc,
.FamilyTree_childrenSection__7Ynhq {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 2px solid #e0e0e0;
}

.FamilyTree_partnerSection__smCTc h3,
.FamilyTree_childrenSection__7Ynhq h3 {
  margin-bottom: 15px;
  color: #2d3436;
}

.FamilyTree_childrenGrid__AQ9MC {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  grid-gap: 15px;
  gap: 15px;
}

.FamilyTree_footer__tkRy3 {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 2px solid #e0e0e0;
  color: #636e72;
  font-size: 0.9rem;
  position: relative;
  z-index: 20;
}

@keyframes FamilyTree_fadeIn__1V9U3 {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Responsive design */
@media (max-width: 1200px) {
  .FamilyTree_container__qivTA {
    border-radius: 20px;
    padding: 30px;
  }

  .FamilyTree_title__Y25Uq {
    font-size: 2.5rem;
  }

  .FamilyTree_treeContainer__mr9I6 {
    min-height: 1000px;
  }

  .FamilyTree_familyMembers__2S7k9 {
    height: 1000px;
  }
}

@media (max-width: 1024px) {
  .FamilyTree_title__Y25Uq {
    font-size: 2.2rem;
  }

  .FamilyTree_subtitle__rAuCz {
    font-size: 1.1rem;
  }

  .FamilyTree_treeContainer__mr9I6 {
    min-height: 900px;
  }

  .FamilyTree_familyMembers__2S7k9 {
    height: 900px;
  }

  .FamilyTree_member1__3Dfoa { top: 40px; left: 12%; }
  .FamilyTree_member2__rElW5 { top: 40px; right: 12%; }
  .FamilyTree_member3__G8Nr_ { top: 150px; left: 6%; }
  .FamilyTree_member4__0OtHl { top: 150px; right: 6%; }
  .FamilyTree_member5__zwj0G { top: 270px; left: 4%; }
  .FamilyTree_member6__2iXWH { top: 270px; right: 4%; }
  .FamilyTree_member7__Rb1hG { top: 400px; left: 10%; }
  .FamilyTree_member8__nrxuB { top: 400px; right: 10%; }
  .FamilyTree_member9__fdgyC { top: 550px; left: 22%; }
  .FamilyTree_member10__AiDcm { top: 550px; right: 22%; }
  .FamilyTree_member11__qPUnn { top: 200px; left: 28%; }
  .FamilyTree_member12__E3N_S { top: 200px; right: 28%; }
  .FamilyTree_member13__o7SL_ { top: 350px; left: 32%; }
  .FamilyTree_member14__8KKKk { top: 350px; right: 32%; }
  .FamilyTree_member15__fAXvn { top: 500px; left: 38%; }
  .FamilyTree_member16__UHvi_ { top: 500px; right: 38%; }
  .FamilyTree_member17__Cfkcp { top: 650px; left: 12%; }
  .FamilyTree_member18__RUoLh { top: 650px; right: 12%; }
  .FamilyTree_member19__Q2qPj { top: 750px; left: 30%; }
  .FamilyTree_member20__cVKho { top: 750px; right: 30%; }

  .FamilyTree_heart__EpoBQ {
    font-size: 2.2rem;
    top: 70px;
  }
}

@media (max-width: 768px) {
  .FamilyTree_container__qivTA {
    padding: 20px;
    border-radius: 15px;
  }

  .FamilyTree_title__Y25Uq {
    font-size: 1.8rem;
    margin-bottom: 8px;
  }

  .FamilyTree_subtitle__rAuCz {
    font-size: 1rem;
    margin-bottom: 30px;
  }

  .FamilyTree_partnershipsInfo__LrAX3 {
    padding: 15px 20px;
    margin-bottom: 20px;
  }

  .FamilyTree_partnershipsInfo__LrAX3 h3 {
    font-size: 1.1rem;
  }

  .FamilyTree_partnerName__q2rlK {
    font-size: 1rem;
  }

  .FamilyTree_partnerStatus__UqyPL {
    font-size: 0.85rem;
  }

  .FamilyTree_partnerDates__WBlsy {
    font-size: 0.8rem;
  }

  .FamilyTree_childrenCount__6G9Lo {
    font-size: 0.8rem;
    padding: 3px 10px;
  }

  .FamilyTree_treeContainer__mr9I6 {
    min-height: 800px;
  }

  .FamilyTree_familyMembers__2S7k9 {
    height: 800px;
  }

  .FamilyTree_member1__3Dfoa { top: 30px; left: 8%; }
  .FamilyTree_member2__rElW5 { top: 30px; right: 8%; }
  .FamilyTree_member3__G8Nr_ { top: 120px; left: 3%; }
  .FamilyTree_member4__0OtHl { top: 120px; right: 3%; }
  .FamilyTree_member5__zwj0G { top: 220px; left: 2%; }
  .FamilyTree_member6__2iXWH { top: 220px; right: 2%; }
  .FamilyTree_member7__Rb1hG { top: 340px; left: 6%; }
  .FamilyTree_member8__nrxuB { top: 340px; right: 6%; }
  .FamilyTree_member9__fdgyC { top: 480px; left: 18%; }
  .FamilyTree_member10__AiDcm { top: 480px; right: 18%; }
  .FamilyTree_member11__qPUnn { top: 180px; left: 28%; }
  .FamilyTree_member12__E3N_S { top: 180px; right: 28%; }
  .FamilyTree_member13__o7SL_ { top: 300px; left: 32%; }
  .FamilyTree_member14__8KKKk { top: 300px; right: 32%; }
  .FamilyTree_member15__fAXvn { top: 430px; left: 40%; }
  .FamilyTree_member16__UHvi_ { top: 430px; right: 40%; }
  .FamilyTree_member17__Cfkcp { top: 580px; left: 10%; }
  .FamilyTree_member18__RUoLh { top: 580px; right: 10%; }
  .FamilyTree_member19__Q2qPj { top: 680px; left: 28%; }
  .FamilyTree_member20__cVKho { top: 680px; right: 28%; }

  .FamilyTree_heart__EpoBQ {
    font-size: 1.8rem;
    top: 55px;
  }

  .FamilyTree_backButton__lpNgh {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }

  .FamilyTree_backButtonsContainer__FxCHy {
    gap: 10px;
    top: 15px;
    left: 15px;
  }
}

@media (max-width: 480px) {
  .FamilyTree_container__qivTA {
    padding: 15px;
    border-radius: 10px;
  }

  .FamilyTree_title__Y25Uq {
    font-size: 1.5rem;
    margin-bottom: 5px;
  }

  .FamilyTree_subtitle__rAuCz {
    font-size: 0.85rem;
    margin-bottom: 20px;
  }

  .FamilyTree_partnershipsInfo__LrAX3 {
    padding: 12px 15px;
    margin-bottom: 15px;
  }

  .FamilyTree_partnershipsInfo__LrAX3 h3 {
    font-size: 1rem;
    margin-bottom: 10px;
  }

  .FamilyTree_partnerItem__A0Vrj {
    flex-direction: column;
    gap: 5px;
    padding: 8px 12px;
  }

  .FamilyTree_partnerName__q2rlK {
    font-size: 0.95rem;
  }

  .FamilyTree_partnerStatus__UqyPL {
    font-size: 0.8rem;
  }

  .FamilyTree_partnerDates__WBlsy {
    font-size: 0.75rem;
  }

  .FamilyTree_childrenCount__6G9Lo {
    font-size: 0.75rem;
    padding: 2px 8px;
    margin-left: 5px;
  }

  .FamilyTree_treeContainer__mr9I6 {
    min-height: 650px;
  }

  .FamilyTree_familyMembers__2S7k9 {
    height: 650px;
  }

  .FamilyTree_member1__3Dfoa { top: 25px; left: 5%; }
  .FamilyTree_member2__rElW5 { top: 25px; right: 5%; }
  .FamilyTree_member3__G8Nr_ { top: 100px; left: 2%; }
  .FamilyTree_member4__0OtHl { top: 100px; right: 2%; }
  .FamilyTree_member5__zwj0G { top: 180px; left: 1%; }
  .FamilyTree_member6__2iXWH { top: 180px; right: 1%; }
  .FamilyTree_member7__Rb1hG { top: 270px; left: 4%; }
  .FamilyTree_member8__nrxuB { top: 270px; right: 4%; }
  .FamilyTree_member9__fdgyC { top: 380px; left: 15%; }
  .FamilyTree_member10__AiDcm { top: 380px; right: 15%; }
  .FamilyTree_member11__qPUnn { top: 140px; left: 25%; }
  .FamilyTree_member12__E3N_S { top: 140px; right: 25%; }
  .FamilyTree_member13__o7SL_ { top: 230px; left: 30%; }
  .FamilyTree_member14__8KKKk { top: 230px; right: 30%; }
  .FamilyTree_member15__fAXvn { top: 340px; left: 38%; }
  .FamilyTree_member16__UHvi_ { top: 340px; right: 38%; }
  .FamilyTree_member17__Cfkcp { top: 480px; left: 8%; }
  .FamilyTree_member18__RUoLh { top: 480px; right: 8%; }
  .FamilyTree_member19__Q2qPj { top: 560px; left: 25%; }
  .FamilyTree_member20__cVKho { top: 560px; right: 25%; }

  .FamilyTree_heart__EpoBQ {
    font-size: 1.5rem;
    top: 45px;
  }

  .FamilyTree_backButton__lpNgh {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .FamilyTree_backButtonsContainer__FxCHy {
    gap: 8px;
    top: 10px;
    left: 10px;
  }

  .FamilyTree_photoCredit__Lu0oY {
    font-size: 0.6rem;
    padding: 3px 6px;
  }

  .FamilyTree_footer__tkRy3 {
    font-size: 0.8rem;
    margin-top: 20px;
  }
}

/* Relationships container - chronological display */
.FamilyTree_relationshipsContainer__rSaIr {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 30px;
}

.FamilyTree_relationshipSection__EQTZ3 {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.FamilyTree_relationshipHeader__H4io3 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 15px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  color: white;
}

.FamilyTree_relationshipHeader__H4io3 h3 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 600;
}

.FamilyTree_relationshipDates__yOLZ_ {
  font-size: 1rem;
  opacity: 0.9;
  font-weight: 500;
}

.FamilyTree_noChildren__6vBe5 {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.9);
  padding: 12px 24px;
  border-radius: 20px;
  font-style: italic;
  color: #666;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments for relationships */
@media (max-width: 768px) {
  .FamilyTree_relationshipsContainer__rSaIr {
    gap: 30px;
    margin-top: 20px;
  }

  .FamilyTree_relationshipSection__EQTZ3 {
    padding: 15px;
  }

  .FamilyTree_relationshipHeader__H4io3 {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
    padding: 12px 15px;
  }

  .FamilyTree_relationshipHeader__H4io3 h3 {
    font-size: 1.1rem;
  }

  .FamilyTree_relationshipDates__yOLZ_ {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .FamilyTree_relationshipsContainer__rSaIr {
    gap: 20px;
  }

  .FamilyTree_relationshipSection__EQTZ3 {
    padding: 10px;
  }

  .FamilyTree_relationshipHeader__H4io3 h3 {
    font-size: 1rem;
  }

  .FamilyTree_relationshipDates__yOLZ_ {
    font-size: 0.85rem;
  }

  .FamilyTree_noChildren__6vBe5 {
    font-size: 0.85rem;
    padding: 8px 16px;
  }
}

/*!********************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[7].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[7].use[3]!./src/components/PersonCard.module.css ***!
  \********************************************************************************************************************************************************************************************************************************************************************************/
.PersonCard_card__uLT7q {
  background: var(--child-gradient);
  padding: 14px 24px;
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  border: 3px solid rgba(255, 255, 255, 0.4);
  text-align: center;
  max-width: 220px;
  -webkit-backdrop-filter: blur(5px);
          backdrop-filter: blur(5px);
  position: relative;
  cursor: pointer;
}

.PersonCard_card__uLT7q:hover {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  border-color: #667eea;
  background: rgba(255, 255, 255, 1);
}

.PersonCard_card__uLT7q.PersonCard_compact__B3DQ7 {
  padding: 10px 16px;
  font-size: 0.9rem;
}

.PersonCard_name__DECBJ {
  font-weight: 600;
  color: #2d3436;
  font-size: 1rem;
  margin-bottom: 4px;
}

.PersonCard_dates__mSiag {
  font-size: 0.75rem;
  color: #000;
  margin-top: 4px;
}

.PersonCard_date__H_T4R {
  display: inline-block;
}

.PersonCard_dateSeparator__oNskD {
  margin: 0 2px;
}

/* Memorial icon positioning */
.PersonCard_memorialIcon__X7Nwi {
  position: absolute;
  top: -20px;
  left: -20px;
  width: 40px;
  height: 40px;
  z-index: 15;
  filter: drop-shadow(0 3px 10px rgba(255, 107, 107, 0.4));
  animation: PersonCard_pulse__Z3xXb 2s ease-in-out infinite;
  display: flex;
  align-items: center;
  justify-content: center;
}

.PersonCard_memorialHeart__1RlJy {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.PersonCard_personalIcon__yb7Dv {
  position: absolute;
  width: 55%;
  height: 55%;
  object-fit: contain;
  z-index: 2;
  /* Center the icon in the heart */
  top: 48%;
  left: 50%;
  transform: translate(-50%, -50%);
  /* Keep SVG transparency intact */
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

@keyframes PersonCard_pulse__Z3xXb {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

/* Baptismal name tooltip */
.PersonCard_baptismalTooltip__I78ZY {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  background: linear-gradient(135deg, #FFB6C1 0%, #FFC0CB 100%);
  color: #fff;
  padding: 8px 12px;
  border-radius: 15px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
  z-index: 50;
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.PersonCard_card__uLT7q:hover .PersonCard_baptismalTooltip__I78ZY {
  opacity: 1;
  transform: translateX(-50%) translateY(-15px);
}

/* Parent styling - override for parents */
.parent .PersonCard_card__uLT7q {
  background: var(--primary-gradient);
  font-size: 1.2rem;
  padding: 18px 30px;
  font-weight: 700;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  border: 3px solid rgba(255, 255, 255, 0.5);
}

.parent .PersonCard_card__uLT7q .PersonCard_name__DECBJ {
  color: #fff;
}

.parent .PersonCard_card__uLT7q .PersonCard_dates__mSiag {
  color: rgba(255, 255, 255, 0.9);
}

.parent .PersonCard_card__uLT7q:hover {
  border-color: #ff6b6b;
  box-shadow: 0 12px 35px rgba(255, 107, 107, 0.5);
}

/* Responsive design */
@media (max-width: 1024px) {
  .PersonCard_card__uLT7q {
    max-width: 180px;
    padding: 12px 20px;
    font-size: 0.9rem;
  }

  .parent .PersonCard_card__uLT7q {
    font-size: 1.1rem;
    padding: 16px 26px;
  }

  .PersonCard_memorialIcon__X7Nwi {
    width: 35px;
    height: 35px;
    top: -18px;
    left: -18px;
  }
}

@media (max-width: 768px) {
  .PersonCard_card__uLT7q {
    max-width: 140px;
    padding: 10px 16px;
    font-size: 0.85rem;
    border-radius: 15px;
  }

  .PersonCard_name__DECBJ {
    font-size: 0.9rem;
  }

  .PersonCard_dates__mSiag {
    font-size: 0.7rem;
  }

  .parent .PersonCard_card__uLT7q {
    font-size: 1rem;
    padding: 14px 22px;
  }

  .PersonCard_memorialIcon__X7Nwi {
    width: 30px;
    height: 30px;
    top: -15px;
    left: -15px;
  }

  .PersonCard_baptismalTooltip__I78ZY {
    font-size: 0.75rem;
    padding: 6px 10px;
  }
}

@media (max-width: 480px) {
  .PersonCard_card__uLT7q {
    max-width: 110px;
    padding: 8px 12px;
    font-size: 0.75rem;
    border-radius: 12px;
  }

  .PersonCard_name__DECBJ {
    font-size: 0.8rem;
  }

  .PersonCard_dates__mSiag {
    font-size: 0.65rem;
  }

  .parent .PersonCard_card__uLT7q {
    font-size: 0.9rem;
    padding: 12px 18px;
  }

  .PersonCard_memorialIcon__X7Nwi {
    width: 25px;
    height: 25px;
    top: -12px;
    left: -12px;
  }

  .PersonCard_baptismalTooltip__I78ZY {
    font-size: 0.7rem;
    padding: 5px 8px;
  }
}

/* Document icon in bottom-right corner */
.PersonCard_documentIcon__phjm1 {
  position: absolute;
  bottom: -12px;
  right: -12px;
  cursor: pointer;
  z-index: 20;
  transition: transform 0.2s ease;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  padding: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.PersonCard_documentIcon__phjm1 img {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

.PersonCard_documentIcon__phjm1:hover {
  transform: scale(1.2);
}

.PersonCard_documentIcon__phjm1:hover img {
  filter: drop-shadow(0 3px 6px rgba(102, 126, 234, 0.6));
}

/* Document list popup */
.PersonCard_documentList__ttTA5 {
  position: absolute;
  bottom: calc(100% + 5px);
  right: -12px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  min-width: 200px;
  max-width: 280px;
  max-height: 300px;
  z-index: 100;
  overflow-y: auto;
  overflow-x: hidden;
  border: 2px solid #667eea;
}

.PersonCard_documentListHeader__mvII9 {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 10px 12px;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
}

.PersonCard_documentItem__gtRyJ {
  padding: 10px 12px;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.85rem;
  color: #2d3436;
  transition: background 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.PersonCard_documentItem__gtRyJ:last-child {
  border-bottom: none;
}

.PersonCard_documentItem__gtRyJ:hover {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}

/* Responsive adjustments for document icon */
@media (max-width: 768px) {
  .PersonCard_documentIcon__phjm1 {
    width: 22px;
    height: 22px;
    bottom: -10px;
    right: -10px;
  }

  .PersonCard_documentList__ttTA5 {
    max-width: 200px;
    min-width: 160px;
    right: -10px;
  }

  .PersonCard_documentListHeader__mvII9 {
    padding: 8px 10px;
    font-size: 0.85rem;
  }

  .PersonCard_documentItem__gtRyJ {
    padding: 8px 10px;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .PersonCard_documentIcon__phjm1 {
    width: 20px;
    height: 20px;
    bottom: -8px;
    right: -8px;
  }

  .PersonCard_documentList__ttTA5 {
    max-width: 160px;
    min-width: 140px;
    right: -8px;
  }

  .PersonCard_documentListHeader__mvII9 {
    padding: 6px 8px;
    font-size: 0.75rem;
  }

  .PersonCard_documentItem__gtRyJ {
    padding: 6px 8px;
    font-size: 0.75rem;
  }
}

