/* style.css */
/* This file contains all custom styles for the staff directory website. */


details {
  color: #226daa;
  border: 1px solid;
  padding: 0 1rem;
  background: white;
  font-family: Raleway, sans-serif;

}

details + details {
  border-top: none;
}
details[open] {
    padding-bottom: 1em;
}  
summary {
  padding: 1rem 2em 1rem 0;
  font-size: 1.25rem;
  font-weight: bold;
  cursor: pointer;
}
details summary { 
  cursor: pointer;
   user-select: none;
  -webkit-user-select: none; /* For Safari */
  -ms-user-select: none;    /* For Internet Explorer */
}



/*for animation*/
::details-content {
  transition: height 0.9s ease, content-visibility 0.5s ease allow-discrete;
  -webkit-transition: height 0.9s ease, content-visibility 0.5s ease allow-discrete;
  -ms-user-select:height 0.9s ease, content-visibility 0.5s ease allow-discrete;
  height: 0;
  overflow: clip;
}


/* Browser supports interpolate-size */
@supports (interpolate-size: allow-keywords) {
  :root {
    interpolate-size: allow-keywords;
  }

  [open]::details-content {
    height: auto;
  }
}


.bg-gray-800{
   background-image: radial-gradient(50% 50% at top center, rgb(0 6 20 / 66%), #071f34), linear-gradient(180deg, #fff, #000000);
}

.menu-item{
    stroke:#FFA500;
}

body {
    font-family: 'Inter', sans-serif;
}

/* Add a subtle box-shadow to the navbar */
nav {
    border-bottom: 1px solid #e2e8f0;
}

/* Style for the gallery cards */
.card-link {
    text-decoration: none;
    color: inherit;
}

.card-link .bg-white {
    transition: box-shadow 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.card-link:hover .bg-white {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transform: translateY(-5px);
}

/* Main layout with sidebar */
.site-wrapper {
    display: flex;
    min-height: 100vh;
}

.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.content-area {
    flex-grow: 1;
}

/* Responsive styles for the navigation menu */
.nav-menu {
    box-shadow: 0 -6px 8px rgba(0,0,0,.85);
    transition: transform 0.3s ease-in-out;
}

.submenu { display: block; }
.submenu-item { padding-left: 3rem; }

.hamburger-menu {
    display: none; /* Hidden by default on larger screens */
}

/* --- Mobile Menu Overlay --- */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999; /* Below the menu, but above everything else */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out;
}
.nav-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

/* --- Timeline Styles (Integrated and Scoped) --- */
.timeline-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}
.timeline-container::after {
    content: '';
    position: absolute;
    width: 3px;
    background-color: #0d9488; /* Ocean color */
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1.5px;
}
.timeline-container .timeline-item {
    padding: 2px 40px; /* Reduced vertical padding */
    position: relative;
    background-color: inherit;
    width: 50%;
}
.timeline-container .timeline-dot {
    position: absolute;
    width: 16px; /* Smaller size */
    height: 16px; /* Smaller size */
    right: -8px; /* Adjusted for new size */
    background-color: #0d9488; /* Solid ocean color */
    border: none; /* Removed border */
    top: 28px; /* Adjusted vertical position */
    border-radius: 50%;
    z-index: 1;
}
.timeline-container .timeline-item:nth-of-type(odd) { left: 0; }
.timeline-container .timeline-item:nth-of-type(even) { left: 50%; }
.timeline-container .timeline-item:nth-of-type(even) .timeline-dot { left: -8px; /* Adjusted for new size */ }

.timeline-container .timeline-content, .timeline-container .timeline-group-content {
    padding: 15px 25px; /* Reduced padding for a tighter look */
    position: relative;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
.timeline-container .timeline-content { background-color: white; }
.timeline-container .timeline-group-content { background-color: #e5e7eb; }

/* Arrow pointing to the timeline axis */
.timeline-container .timeline-content::after, .timeline-container .timeline-group-content::after {
    content: " ";
    position: absolute;
    top: 28px;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    z-index: 1;
    filter: drop-shadow(0 1px 1px rgba(0,0,0,0.15));
}
.timeline-container .timeline-item:nth-of-type(odd) .timeline-content::after {
    right: -10px;
    border-left: 10px solid white;
}
.timeline-container .timeline-item:nth-of-type(odd) .timeline-group-content::after {
    right: -10px;
    border-left: 10px solid #e5e7eb;
}
.timeline-container .timeline-item:nth-of-type(even) .timeline-content::after {
    left: -10px;
    border-right: 10px solid white;
}
.timeline-container .timeline-item:nth-of-type(even) .timeline-group-content::after {
    left: -10px;
    border-right: 10px solid #e5e7eb;
}

/* New Year Marker Style */
.timeline-year-marker {
    position: relative;
    z-index: 2;
    margin: 20px auto;
    width: fit-content;
    background-color: #0d9488; /* Ocean color */
    color: white;
    padding: 5px 15px;
    border-radius: 9999px;
    font-weight: bold;
}


/* --- Custom Org Chart Styles (Scoped) --- */
.org-chart {
    display: inline-block;
    min-width: 100%;
    text-align: center;
}
.org-chart ul {
    padding-top: 20px;
    position: relative;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}
.org-chart li {
    list-style-type: none;
    position: relative;
    padding: 20px 5px 0 5px;
}

.org-chart li::before, .org-chart li::after {
    content: '';
    position: absolute;
    top: 0;
    right: 50%;
    border-top: 2px solid #d1d5db;
    width: 50%;
    height: 20px;
}
.org-chart li::after {
    right: auto;
    left: 50%;
    border-left: 2px solid #d1d5db;
}
.org-chart li:only-child::after, .org-chart li:only-child::before {
    display: none;
}
.org-chart li:first-child::before, .org-chart li:last-child::after {
    border: 0 none;
}
.org-chart li:last-child::before {
    border-right: 2px solid #d1d5db;
    border-radius: 0 5px 0 0;
}
.org-chart li:first-child::after {
    border-radius: 5px 0 0 0;
}

.org-chart ul ul::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    border-left: 2px solid #d1d5db;
    width: 0;
    height: 20px;
}

.bg-gray-200{
    background-color: #dfe9ec !important;
}

.org-chart-card {
    background-color: #f9fafb;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    padding: 1rem;
    display: inline-block;
    min-width: 280px;
    transition: all 0.3s;
}



.org-chart-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}


/* --- Custom Calendar Styles (Scoped) --- */
#calendar > div {
    min-height: 120px;
    border: 1px solid #e5e7eb;
    position: relative;
    padding: 4px;
}
#calendar .today {
    background-color: #fef9c3;
}
#calendar .event {
    font-size: 0.75rem;
    padding: 2px 4px;
    margin-top: 2px;
    border-radius: 4px;
    color: white;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
#calendar .birthday-marker, #calendar .death-marker, #calendar .joined-marker, #calendar .first-vow-marker, #calendar .ordination-marker, #calendar .feastday-marker {
    display: inline-flex;
    vertical-align: middle;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    padding: 2px 6px;
    cursor: pointer;
    margin: 2px;
    width: auto;
    font-weight: 500;
}
#calendar .birthday-marker svg, #calendar .death-marker svg, #calendar .joined-marker svg, #calendar .first-vow-marker svg, #calendar .ordination-marker svg, #calendar .feastday-marker svg {
    margin-right: 4px;
    width: 1.25rem;
    height: 1.25rem;
}
#calendar .birthday-count, #calendar .death-count, #calendar .joined-count, #calendar .first-vow-count, #calendar .ordination-count, #calendar .feastday-marker {
    font-size: 12px;
    font-weight: bold;
}
#calendar .birthday-marker { background-color: #fbcfe8; color: #9d174d; }
#calendar .death-marker { background-color: #a78bfa; color: white; }
#calendar .joined-marker { background-color: #bbf7d0; color: #166534; }
#calendar .first-vow-marker { background-color: #dbeafe; color: #1e40af; }
#calendar .ordination-marker { background-color: #f5d0fe; color: #701a75; }


#calendar .feastday-marker { 
    background-color: #fef3c7; /* Lighter yellow */
    color: #92400e;
    padding: 2px 8px; /* Adjust padding for a better cell appearance */
}
#calendar .feastday-marker svg {
    margin-right: 2px; /* Reduce space between icon and count */
}

/* --- Birthday Card Modal Style --- */
#birthday-modal .bg-white {
    background: linear-gradient(135deg, #fff7f9, #fde4e4);
    border: 2px dashed #fecdd3;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: visible; /* Allow pseudo-elements to be visible */
}
#birthday-modal h3 {
    color: #be123c;
    font-family: 'Georgia', serif;
}
#birthday-modal .bg-white::before {
    content: '';
    position: absolute;
    top: 0px;
    left: 20px;
    width: 40px;
    height: 40px;
    background-color: #fecdd3;
    transform: rotate(45deg);
    z-index: -1;
}
#birthday-modal .bg-white::after {
    content: '🎉';
    position: absolute;
    top: 5px;
    right: 15px;
    font-size: 2rem;
    opacity: 0.8;
}
#birthday-list a {
    font-size: 1rem;
    font-weight: 500;
    color: #881337;
}
#birthday-list a:hover {
    color: #be123c;
}


/* --- Ordination Card Modal Style --- */
#ordination-modal .bg-white {
    background: linear-gradient(135deg, #fff7f9, #fde4e4);
    border: 2px dashed #fecdd3;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: visible; /* Allow pseudo-elements to be visible */
}
#ordination-modal h3 {
    color: #be123c;
    font-family: 'Georgia', serif;
}
#ordination-modal .bg-white::before {
    content: '';
    position: absolute;
    top: 0px;
    left: 20px;
    width: 40px;
    height: 40px;
    background-color: #fecdd3;
    transform: rotate(45deg);
    z-index: -1;
}
#ordination-modal .bg-white::after {
    content: '';
    position: absolute;
    top: 5px;
    right: 15px;
    font-size: 1.8rem;
    opacity: 0.8;
}
#ordination-list a {
    font-size: 1rem;
    font-weight: 500;
    color: #881337;
}
#ordination-list a:hover {
    color: #be123c;
}


/* --- Joining Anniversary Card Modal Style --- */
#joined-modal .bg-white {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border: 2px dashed #86efac;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: visible;
}
#joined-modal h3 {
    color: #166534;
    font-family: 'Georgia', serif;
}
#joined-modal .bg-white::before {
    content: '';
    position: absolute;
    top: 0px;
    left: 20px;
    width: 40px;
    height: 40px;
    background-color: #bbf7d0;
    transform: rotate(45deg);
    z-index: -1;
}
#joined-modal .bg-white::after {
    content: '✨';
    position: absolute;
    top: 5px;
    right: 15px;
    font-size: 2rem;
    opacity: 0.8;
}
#joined-list a {
    font-size: 1rem;
    font-weight: 500;
    color: #15803d;
}
#joined-list a:hover {
    color: #166534;
}



/* --- First Vow Anniversary Card Modal Style --- */
#first-vow-modal .bg-white {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border: 2px dashed #fcd34d;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: visible;
}
#first-vow-modal h3 {
    color: #b45309;
    font-family: 'Georgia', serif;
}
#first-vow-modal .bg-white::before {
    content: '';
    position: absolute;
    top: 0px;
    left: 20px;
    width: 40px;
    height: 40px;
    background-color: #fde68a;
    transform: rotate(45deg);
    z-index: -1;
}
#first-vow-modal .bg-white::after {
    content: '🕊️';
    position: absolute;
    top: 5px;
    right: 15px;
    font-size: 2rem;
    opacity: 0.8;
}
#first-vow-list a {
    font-size: 1rem;
    font-weight: 500;
    color: #92400e;
}
#first-vow-list a:hover {
    color: #b45309;
}


/* --- Feast Day Card Modal Style --- */
#feastday-modal .bg-white {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border: 2px dashed #fcd34d;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: visible;
}
#feastday-modal h3 {
    color: #b45309;
    font-family: 'Georgia', serif;
}
#feastday-modal .bg-white::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 20px;
    width: 40px;
    height: 40px;
    background-color: #fde68a;
    transform: rotate(45deg);
    z-index: -1;
}
#feastday-modal .bg-white::after {
    content: '🕯️';
    position: absolute;
    top: 5px;
    right: 15px;
    font-size: 2rem;
    opacity: 0.8;
}
#feastday-list a {
    font-size: 1.1rem;
    font-weight: 500;
    color: #92400e;
}
#feastday-list a:hover {
    color: #b45309;
}

/* --- Death Anniversary Card Modal Style --- */
#death-modal .bg-white {
    background: linear-gradient(135deg, #f3e8ff, #faf5ff);
    border: 2px solid #d8b4fe;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}
#death-modal h3 {
    color: #6b21a8;
    font-family: 'Georgia', serif;
}
#death-modal .bg-white::after {
    content: '✝';
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2rem;
    color: #4ade80; /* lighter green */
    opacity: 0.5;
}
#death-list a {
    font-size: 1rem;
    font-weight: 500;
    color: #5b21b6;
}
#death-list a:hover {
    color: #7e22ce;
}




/* Grayscale filter for deceased members */
.grayscale {
    filter: grayscale(100%);
}

/* --- Custom Tooltip Styles --- */
.custom-tooltip {
    position: fixed;
    background-color: #111827;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.875rem;
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease-in-out;
}
.custom-tooltip.visible {
    opacity: 1;
    visibility: visible;
}

/* --- Blur effect for non-logged-in users --- */
.blur-text {
    filter: blur(4px);
    pointer-events: none;
    user-select: none;
}


@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        height: 100%;
        z-index: 1000;
        transform: translateX(-100%);
    }
    .nav-menu.is-active {
        transform: translateX(0);
    }
    .hamburger-menu {
        display: block;
    }
    /* Responsive Timeline */
    .timeline-container::after {
        left: 31px;
    }
    .timeline-container .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    .timeline-container .timeline-item:nth-of-type(odd),
    .timeline-container .timeline-item:nth-of-type(even) {
        left: 0;
    }
    .timeline-container .timeline-dot,
    .timeline-container .timeline-item:nth-of-type(even) .timeline-dot {
        left: 23px; /* Adjusted for smaller dot */
    }
    .timeline-year-marker {
        margin-left: 31px;
        transform: translateX(-50%);
    }
    /* Responsive Timeline Arrow */
    .timeline-container .timeline-item:nth-of-type(odd) .timeline-content::after, 
    .timeline-container .timeline-item:nth-of-type(odd) .timeline-group-content::after,
    .timeline-container .timeline-item:nth-of-type(even) .timeline-content::after,
    .timeline-container .timeline-item:nth-of-type(even) .timeline-group-content::after {
        left: -10px;
        border-right: 10px solid white;
        border-left: 0;
    }
     .timeline-container .timeline-item:nth-of-type(odd) .timeline-group-content::after,
     .timeline-container .timeline-item:nth-of-type(even) .timeline-group-content::after {
        border-right-color: #e5e7eb;
    }
}
