﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
   
}
@keyframes blink {
    from {
        opacity: 1;
        transform: scale(1);
    }

    to {
        opacity: 0.5;
        transform: scale(1.05);
    }
}
body {
    background: #f6f7fb;
    color: #222;
    overflow: scroll;
}

/* Header */
header {
    background: white;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index:10000;
}

.logo a {
    font-size: 22px;
    font-weight: bold;
    color: #09110a; /*#2e7d32*/
    text-decoration:none;
}

.btn {
    padding: 8px 14px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 14px;
}
 
.btn-primary {
    background: #2e7d32;
    color: white;
    text-decoration: none;
}
.btn-secondary {
    background: #0f7268;
    color: white;
    text-decoration: none;
}
.btn-outline {
    background: transparent;
    border: 1px solid #2e7d32;
    color: #2e7d32;
}
.btn-back {
    background: #68f69c;
    border: 1px solid #2e7d32;
    color: #fff;
    text-decoration: none;
}
.btn-red {
    background: red;
    border: 1px solid #2e7d32;
    color: #fff;
    text-decoration: none;
}

/* Hero */
.hero {
    padding: 30px 20px;
    text-align: center;
    background: linear-gradient(135deg, #e8f5e9, #ffffff);
}

    .hero h1 {
        font-size: 26px;
        margin-bottom: 10px;
    }

    .hero p {
        font-size: 14px;
        color: #555;
        line-height: 1.5;
    }

.hero-buttons {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Cards */
.section {
    padding: 20px;
}

.section-title {
    font-size: 18px;
    margin-bottom: 12px;
    font-weight: bold;
}

.grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

 

    .card h2 {
        color: #2e7d32;
        margin-bottom: 10px;
    }


.card {
    background: white;
    padding: 14px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-top: 20px;
}

    .card h3 {
        font-size: 15px;
        margin-bottom: 6px;
        color: #2e7d32;
    }

    

/* Steps */
.steps {
    counter-reset: step;
}

.step {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 10px 0;
}

.step-number {
    width: 26px;
    height: 26px;
    background: #2e7d32;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    flex-shrink: 0;
}

/* Footer */
/*footer {
    text-align: center;
    padding: 20px;
    font-size: 13px;
    color: #777;
}*/
footer {
    background: #2e7d32;
    color: white;
    text-align: center;
    padding: 25px;
    margin-top: 40px;
    font-size:small;
}
/* Desktop */
@media (min-width: 768px) {
    .hero h1 {
        font-size: 34px;
    }

    .grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .container {
        /* max-width: 900px;
        margin: auto;*/
        margin:20px;
    }
}
.family-tree-explore p{
text-align:left;
}
.alcenter {
    text-align: center;
}
.alright {
    text-align: right;
}
.aljustify {
    text-align: justify;
}
.alleft {
    text-align:left;
}
.colorwhite {
    background: #f6f7fb;
}
.astyleno{
    text-decoration:none;
}
.form-grid {
    display: flex;
    justify-content: center;
}
.text-danger{
    text-align:center;
    color:red;
}
.form-card {
    width: 100%;
    max-width: 500px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
@media (max-width: 576px) {
    .form-card {
        padding: 15px;
    }

    .button-group {
        flex-direction: column;
    }

        .button-group .btn {
            width: 100%;
        }
}
.form-group {
    margin-bottom: 16px;
}
    .form-group select {
        width: 100%;
        padding: 10px;
        border: 1px solid #ccc;
        border-radius: 4px;
        box-sizing: border-box;
    }
    .form-group label {
        display: block;
        margin-bottom: 6px;
        font-weight: 600;
    }

    .form-group input {
        width: 100%;
        padding: 10px;
        border: 1px solid #ccc;
        border-radius: 4px;
        box-sizing: border-box;
    }

.button-group {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
}
.family-tree-explore {
   /* max-width: 900px;*/
    margin: 40px auto;
    padding: 32px;
    background: #ffffff;
    border-radius: 16px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    color: #1f2937;
    line-height: 1.7;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

    /* Heading styles */
    .family-tree-explore h1 {
        font-size: 2.2rem;
        margin-bottom: 12px;
        color: #111827;
        letter-spacing: -0.5px;
    }

    .family-tree-explore h2 {
        font-size: 1.4rem;
        margin-top: 24px;
        margin-bottom: 12px;
        color: #111827;
    }

    /* Paragraph styling */
    .family-tree-explore p {
        margin-bottom: 14px;
        font-size: 1rem;
        color: #374151;
    }

    /* Feature list */
    .family-tree-explore ul {
        padding-left: 20px;
        margin: 12px 0 20px;
    }

        .family-tree-explore ul li {
            margin-bottom: 10px;
            position: relative;
            padding-left: 6px;
        }

            /* Optional subtle bullet enhancement */
            .family-tree-explore ul li::marker {
                color: #4f46e5;
            }

/* Optional highlight card feel for section */
.family-tree-explore {
    border: 1px solid #e5e7eb;
    background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
}

/* Responsive */
@media (max-width: 600px) {
    .family-tree-explore {
        padding: 20px;
        margin: 20px;
    }

        .family-tree-explore h1 {
            font-size: 1.8rem;
        }
}
/* Family Tree Y axis Style*/

/* =======================
           TOP LEGEND
  ======================= */
.legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px;
   /* background: #111;*/
    color: white;
    font-size: 12px;
    text-align:center !important;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.box {
    width: 14px;
    height: 14px;
    border-radius: 3px;
}
/* =========================
       LEFT PANEL
    ========================= */

 
.left {
    width: 100%;
    background: #1f2937;
    color: white;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: center; 
    position:fixed;
}
.left h3 {
        text-align: center;
        margin-bottom: 15px;
}

.gen-btn {
    padding: 12px;
    margin: 8px 0;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    font-weight: 600;
    transition: .25s;
}

    .gen-btn:hover {
        transform: translateX(4px);
    }

.gen-1 {
    background: #8b5a2b;
}

.gen-2 {
    background: #dc2626;
}

.gen-3 {
    background: #f97316;
}

.gen-4 {
    background: #eab308;
    color: black;
}

.gen-5 {
    background: #22c55e;
}

.gen-6 {
    background: #14b8a6;
}

.gen-7 {
    background: #2563eb;
}

.gen-8 {
    background: #4f46e5;
}

.gen-9 {
    background: #9333ea;
}

.gen-10 {
    background: #ec4899;
}

/* =========================
       RIGHT PANEL
    ========================= */

.right {
    flex: 1;
    background: #f5f7fb;
    overflow: auto;
    padding: 30px;
}

    .right h2 {
        margin-bottom: 20px;
    }

/* =========================
       TREE
    ========================= */

.tree {
    min-width: 600px;
}

    .tree ul {
        list-style: none;
        margin-left: 30px;
        position: relative;
    }

    .tree li {
        position: relative;
        padding-left: 35px;
        margin: 12px 0;
    }

        /* vertical line */

        .tree li::before {
            content: '';
            position: absolute;
            left: 10px;
            top: -12px;
            width: 2px;
            height: 100%;
            background: #8b5a2b;
        }

        /* horizontal connector */

        .tree li::after {
            content: '';
            position: absolute;
            left: 10px;
            top: 28px;
            width: 18px;
            height: 2px;
            background: #8b5a2b;
        }

    /* root node */

    .tree > ul > li::before,
    .tree > ul > li::after {
        display: none;
    }

    /* last child trim */

    .tree li:last-child::before {
        height: 40px;
    }

/* =========================
       NODE
    ========================= */

.node {
    display: inline-block;
    min-width: 220px;
    padding: 12px 18px;
    border-radius: 24px;
    color: white;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0,0,0,.15);
    transition: .25s;
}

    .node:hover {
        transform: scale(1.03);
    }

.level-1 {
    background: #8b5a2b;
}

.level-2 {
    background: #dc2626;
}

.level-3 {
    background: #f97316;
}

.level-4 {
    background: #eab308;
    color: black;
}

.level-5 {
    background: #22c55e;
}

.level-6 {
    background: #14b8a6;
}

.level-7 {
    background: #2563eb;
}

.level-8 {
    background: #4f46e5;
}

.level-9 {
    background: #9333ea;
}

.level-10 {
    background: #ec4899;
}

.hidden {
    display: none;
}
input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
}
.selected-parent {
    margin-top: 15px;
    padding: 12px;
    background: #eaf7ea;
    border-left: 4px solid green;
    border-radius: 6px;
}
.results {
    border: 1px solid #ddd;
    background: white;
    max-height: 180px;
    overflow-y: auto;
    margin-top: 5px;
    border-radius: 6px;
}
.result-item {
    padding: 8px 10px;
    cursor: pointer;
}
.children-list {
    margin-top: 10px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 6px;
    max-height: 250px;
    overflow-y: auto;
}
label {
   /* font-weight: bold;*/
    display: block;
    margin-top: 15px;
    margin-bottom: 5px;
}


.child-item {
    padding: 8px 10px;
    border-bottom: 1px solid #eee;
}

.child-item:last-child {
        border-bottom: none;
    }
.explore-section {
    margin-top: 80px;
    padding: 60px 20px;
    text-align: center;
  /*  background: linear-gradient(135deg, #4f46e5, #7c3aed);*/
    background: linear-gradient(135deg, #4f46e5, #22c55e);
    color: white;
    position: relative;
    overflow: hidden;
}

    .explore-section::before,
    .explore-section::after {
        content: '';
        position: absolute;
        border-radius: 50%;
        background: rgba(255,255,255,0.1);
        backdrop-filter: blur(10px);
    }

    .explore-section::before {
        width: 250px;
        height: 250px;
        top: -80px;
        left: -80px;
    }

    .explore-section::after {
        width: 180px;
        height: 180px;
        bottom: -60px;
        right: -60px;
    }

.caption-card {
    max-width: 800px;
    margin: auto;
    padding: 35px;
    border-radius: 20px;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

    .caption-card h2 {
        font-size: 2.5rem;
        margin-bottom: 15px;
        font-weight: 700;
    }

    .caption-card p {
        font-size: 1.1rem;
        line-height: 1.8;
        color: rgba(255,255,255,0.9);
    }

.highlight {
    color: #fde68a;
    font-weight: 600;
}

@media (max-width: 768px) {
    .caption-card h2 {
        font-size: 1.8rem;
    }

    .caption-card p {
        font-size: 1rem;
    }
}
/*.error-message {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    margin-top: 10px;
    border-radius: 8px;
    background: #fff1f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(185, 28, 28, 0.1);
    animation: fadeIn 0.3s ease-in-out;
}
.error-message {
    padding: 14px 18px;
    border-left: 5px solid #ef4444;
    background: linear-gradient(90deg, #fef2f2, #fff);
    color: #991b1b;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.12);
}*/
.error-message {
    display: block;
    background: transparent;
    color: #dc2626;
   /* border-left: 4px solid #dc2626;*/
    padding: 10px 15px;
    margin-bottom: 15px;
    border-radius: 6px;
    font-size: 14px;
} 
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.feature-card {
    background: #f8faf8;
    border-left: 5px solid #4caf50;
    padding: 20px;
    border-radius: 10px;
    transition: 0.3s ease;
}

    .feature-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }

    .feature-card h3 {
        color: #2e7d32;
        margin-bottom: 10px;
    }

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.contact-card {
    background: #f8faf8;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #e0e0e0;
}

    .contact-card h3 {
        color: #2e7d32;
        margin-bottom: 10px;
    }

    .contact-card a {
        color: #4caf50;
        text-decoration: none;
        font-weight: 600;
    }

   .contact-card a:hover {
            text-decoration: underline;
        }

.cnhero {
    background: linear-gradient(135deg, #2e7d32, #4caf50);
    color: #fff;
    text-align: center;
    padding: 80px 20px;
}
.cnhero h1 {
        font-size: 3rem;
        margin-bottom: 15px;
 }
.cnhero p {
        max-width: 800px;
        margin: auto;
        font-size: 1.1rem;
}
.cnsection {
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.cnsection h2 {
        color: #2e7d32;
        margin-bottom: 20px;      
    }

.cnsection p {
        margin-bottom: 15px;
        text-align:justify;
    }
.faq-container {
    max-width: 900px;
    margin: 60px auto;
    padding: 20px;
}

.faq-title {
    text-align: center;
    font-size: 2.5rem;
    color: #2e7d32;
    margin-bottom: 30px;
}

details {
    background: #fff;
    margin-bottom: 15px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: 0.3s ease;
}

summary {
    padding: 18px 20px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.05rem;
    background: #f8faf8;
    color: #2e7d32;
    list-style: none;
}

    summary::-webkit-details-marker {
        display: none;
    }

details[open] summary {
    background: #e8f5e9;
}

.faq-content {
    padding: 15px 20px;
    line-height: 1.6;
    border-top: 1px solid #eee;
}

    .faq-content a {
        color: #4caf50;
        text-decoration: none;
        font-weight: 600;
    }

        .faq-content a:hover {
            text-decoration: underline;
        }
 

ul {
    padding-left: 20px;
}

    ul li {
        margin-bottom: 8px;
    }

a {
    color: #4caf50;
    text-decoration: none;
    font-weight: 600;
}

    a:hover {
        text-decoration: underline;
    }
