﻿.genealogy-page-header {
    text-align: center;
    margin: 2rem auto 3rem;
    max-width: min(1200px, 90%);
    padding: 0 1rem;
}

.genealogy-page-header,
.family-tree-overview,
.spotlight-section,
.ancestor-tree,
.genealogy-explore {
    margin: 4rem auto;
}

.genealogy-title {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary, #333);
}

.genealogy-intro {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text, #444);
    font-weight: 600;
    margin-top: 1rem;
}

/*   Family Tree Overview Section     */
.family-tree-overview {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 1rem;
    text-align: center;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--primary, #333);
}

.section-description {
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.7;
    color: var(--text, #444);
    max-width: 900px;
    margin: 0 auto 2rem;
}

.tree-placeholder {
    border: 2px dashed var(--accent, #888);
    padding: 3rem;
    border-radius: 10px;
    background: var(--bg, #fafafa);
}

.coming-soon {
    font-size: 1.1rem;
    color: var(--text, #666);
    font-style: italic;
}

/*--------------------SPOTLIGHT SECTION-------------------------*/
.spotlight-section {
    margin: 4rem auto;
    padding: 0 1rem;
    background: none;
    border: none;
    max-width: 1200px;

}

.spotlight-header {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-top: 2rem;
}

.spotlight-card {
    padding: 20px 24px;
    border-left: 4px solid #2a6ebb;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
}

.spotlight-name {
    font-size: 1.3rem;
    font-weight: 700;
}

.spotlight-years {
    color: #666;
    margin-bottom: 10px;
}

.spotlight-summary {
    margin-bottom: 15px;
    line-height: 1.5;
}

.spotlight-button {
    display: inline-block;
    padding: 8px 14px;
    background: #2a6ebb;
    color: white;
    border-radius: 4px;
    text-decoration: none;
}

    .spotlight-button:hover {
        background: #1f5a99;
    }

.spotlight-archive-title {
    font-weight: 600;
    margin-top: 25px;
    margin-bottom: 10px;
}

.spotlight-archive-list li {
    margin-bottom: 6px;
}

/*           Ancestor Tree               */
.ancestor-tree {
    max-width: 1400px;
    margin: 4rem auto;
    padding: 0 1rem;
    text-align: center;
}

.generation {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2rem;
}

.ancestor-pair {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ancestor-card {
    background: var(--bg, #fff);
    border: 2px solid var(--accent, #ccc);
    padding: 1rem 1.25rem;
    border-radius: 10px;
    min-width: 150px;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);

}

    .ancestor-card span {
        font-weight: 400;
        color: var(--text, #555);
    }

.root {
    background: var(--primary-light, #f0f8ff);
    border-color: var(--primary, #336699);
}

.connector {
    width: 100%;
    height: 30px;
    background-image: linear-gradient(to right, transparent 0%, var(--accent, #ccc) 10%, var(--accent, #ccc) 90%, transparent 100%);
    margin: -1rem 0 1rem;
}

/*          Preview Cards            */
.genealogy-explore {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 1rem;
    text-align: center;
}

.explore-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.explore-card {
    display: block;
    background: var(--bg, #fff);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: left;
    text-decoration: none;
    color: var(--text, #333);
    border: 2px solid var(--accent, #ccc);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .explore-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    }

    .explore-card h3 {
        font-size: 1.3rem;
        margin-bottom: 0.5rem;
        color: var(--primary, #333);
    }

    .explore-card p {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 1rem;
    }

.explore-link {
    font-weight: 600;
    color: var(--primary, #336699);
}

.section-divider {
    width: 100%;
    max-width: 1200px;
    margin: 3rem auto;
    border-top: 2px solid #e5e5e5;
}