/* ===============================
   1) GLOBAL & BODY STYLING
   =============================== */
html, body {
  margin: 0;
  padding: 0;
  font-family: 'Georgia', serif;
  color: #5a4e4b;
  line-height: 1.6;
  overflow-x: hidden;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: url('Background.png') no-repeat center center fixed;
  background-size: cover;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(250, 235, 215, 0.7);
  z-index: -1;
}

/* ===============================
   2) HEADER
   =============================== */
header {
  width: 100%;
  text-align: center;
  padding: 50px 20px;
  background: rgba(0, 0, 0, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

header img {
  display: block;
  margin: 0 auto;
  width: 50vw;
  max-width: 1000px;
}

header p {
  font-size: 22px;
  color: #B727C4;
  margin-top: 10px;
  text-align: center;
}


/* ===============================
   3) INTRO SECTION
   =============================== */
.member-intro {
  max-width: 800px;
  margin: 40px auto 20px;
  text-align: center;
  background: rgba(0,0,0,0.8);
  padding: 20px;
  border-radius: 15px;
  color: #fff;
}

.member-intro h2 {
  font-size: 28px;
  color: #B727C4;
  margin-bottom: 10px;
}
.member-intro p {
  font-size: 18px;
  color: #fff;
}

/* ===============================
   4) ACCORDION CARDS (Vertical)
   =============================== */
.member-accordion {
  max-width: 800px; 
  margin: 20px auto; 
  display: flex; 
  flex-direction: column; 
  gap: 20px;
}

.accordion-card {
  background-color: rgba(0,0,0,0.8);
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  cursor: pointer;
  transition: transform 0.3s;
  overflow: hidden; 
  border: 2px solid transparent;
}

.accordion-card:hover {
  transform: scale(1.02);
}

.accordion-card.opened {
  border-color: rgb(5,154,144);
}

/* The row with photo on left, name on right */
.acc-header {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
}

.acc-photo {
  width: 100px;  
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #000;
  flex-shrink: 0;
}

.acc-name {
  margin: 0;
  font-size: 20px;
  color: #FF99CC;
}

/* The content area (collapsed by default) */
.acc-content {
  background-color: rgba(255,255,255,0.1);
  border-top: 2px solid #000;
  overflow: hidden;           /* hidden for transition phase */
  max-height: 0;             /* start closed */
  transition: max-height 0.3s ease-out;
  display: flex; 
  flex-direction: column; 
  padding: 0 15px;
}

/* When open, after transition, we set these in JS:
   maxHeight='none'; overflow='auto'; 
   so user can scroll if it's huge. */

/* ===============================
   5) INFO-BOX Q&A
   =============================== */
.info-box {
  position: relative;
  font-size: 16px;
  color: #ffffff;
  background: rgba(255,255,255,0.1);
  padding: 10px;
  border-radius: 5px;
  border: 2px solid #000000;
  text-align: left; 
  line-height: 1.4;
  margin-top: 15px; 
}

.info-box::before {
  content: attr(data-label);
  position: absolute;
  top: -32px;
  left: 15px;
  
  /* Let it expand into multiple lines if needed */
  white-space: normal;         /* allows wrapping instead of a single line */
  word-wrap: break-word;       /* break words if they're too long */
  overflow: visible;           /* show all text, no clipping or scrolling */
  text-overflow: unset;        /* disable the "…" ellipsis entirely */
  
  background-color: #059A90;
  color: #fff;
  font-size: 14px;
  padding: 5px 10px;
  border-radius: 10px;
  border: 3px solid #000;
  font-weight: bold;
  max-width: 350px; /* optional limit; remove or increase if you want no horizontal max */
  display: inline-block;
}

/* ===============================
   6) SEARCH CONTAINER 
   =============================== */
.search-container {
  position: relative;
  text-align: center;
  margin: 20px auto;
  width: 100%;
  max-width: 300px;
}
#search-box {
  width: 100%;
  padding: 10px;
  font-size: 18px;
  font-family: 'Georgia', serif;
  border-radius: 5px;
  border: 2px solid #3b2f2f;
  background-color: #2e1f1f;
  color: #f4f0e6;
  text-align: center;
}
#search-results {
  position: absolute;
  width: 100%;
  background-color: #2e1f1f;
  border-top: none;
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
}
.search-result {
  padding: 10px;
  color: #f4f0e6;
  font-size: 16px;
  font-family: 'Georgia', serif;
  border-bottom: 1px solid #3b2f2f;
  cursor: pointer;
}
.search-result:hover {
  background-color: #453534;
}

/* Container for the 3 social icons in the header */
.header-social-icons {
  display: flex;            /* Lay them out in a row */
  align-items: center;      /* Vertically center them */
  justify-content: center;  /* Center the group horizontally */
  gap: 10px;                /* Spacing between icons */
  margin-top: 10px;         /* Optional, to add space above */
}

/* Generic styling for the social buttons */
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.2s;
}

/* Hover effect */
.share-btn:hover {
  transform: scale(1.05);
}

/* Icon images themselves */
.social-icon {
  width: 40px;
  height: 40px;
  display: block;
}

.contact-link {
  text-decoration: none; /* Remove underline for the link */
  color: inherit; /* Inherit text color */
  display: block; /* Make the entire block clickable */
}



.contact-section {
  text-decoration: none; /* Remove underline for the link */
  color: inherit; /* Inherit text color */
  display: flex; /* Flexbox for layout */
  flex-direction: row; /* Layout: image and text side by side */
  justify-content: center; /* Center the content horizontally */
  align-items: center; /* Center the content vertically */
  text-align: center;
  background-color: rgb(5, 154, 144);
  padding: 20px;
  border-radius: 10px;
  margin: 20px auto;
  max-width: 40%; /* Restrict width for smaller screens */
  min-width: 300px; /* Prevent the box from getting too small */
  gap: 15px; /* Adds spacing between image and text */
  box-sizing: border-box; /* Includes padding in total width/height */
  cursor: pointer; /* Show pointer to indicate clickable area */
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* Hover effects */
  flex-wrap: wrap; /* Allow wrapping for content on smaller screens */
}

.contact-section img {
  pointer-events: none; /* Ensure clicks on the image bubble up to the <a> */
  width: 80px;
  height: 60px;
  margin-right: 10px;
  border-radius: 8px; /* Rounds the corners of the image */
  border: 2px solid rgba(255, 255, 255, 0.8); /* Subtle border */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Adds a soft shadow */
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth hover effects */
}

.contact-section span {
  font-size: 1.2em; /* Slightly larger text */
  color: #FFFFFF; /* Text color */
  font-weight: bold; /* Bold text */
  word-wrap: break-word; /* Ensure long text breaks to new lines */
}

.contact-section:hover {
  transform: scale(1.05); /* Slight zoom for entire section on hover */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); /* Optional shadow effect */
}


/* ===============================
   7) FOOTER
   =============================== */
footer {
  padding: 30px;
  text-align: center;
  background-color: black;
  border-top: 2px solid white;
  margin-top: auto;
}

footer p {
  color: white;
}

footer a {
  color: white;
  text-decoration: none;
}
footer a:hover {
  color: #d1537a;
}

/* ===============================
   8) RESPONSIVE TWEAKS
   =============================== */
@media (max-width: 600px) {
  .acc-header {
    flex-direction: column;
    align-items: center;
  }
  .acc-photo {
    width: 80px; 
    height: 80px;
  }
  .acc-name {
    text-align: center;
  }
}
