/* Bible Study & Scholarly Content Styles */

.bible-study-container { 
    padding-bottom: 300px; 
    margin-bottom: 100px; 
}

.bible-study-content-bg { 
    background: #f5f5f5; 
    border-radius: 10px; 
    padding: 20px; 
}

.scholarly-list {
    margin-bottom: 25px;
    padding-left: 20px;
}

.scholarly-list li {
    margin-bottom: 10px;
}

.timeline-wrapper {
    position: relative;
    padding: 60px 20px;
    margin: 40px 0;
    width: 100%;
    overflow-x: auto;
    background: #27272a;
    border-radius: 8px;
    border: 1px solid #3f3f46;
}

.timeline-line {
    position: absolute;
    top: 50%;
    left: 40px;
    right: 40px;
    height: 4px;
    background: #3f3f46;
    transform: translateY(-50%);
    border-radius: 2px;
}

.timeline-nodes {
    position: relative;
    height: 4px;
    margin: 0 20px;
}

.timeline-node {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
}

.timeline-point {
    width: 20px;
    height: 20px;
    background: #18181b;
    border: 3px solid #FBBF24;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.2);
}

.timeline-node:hover .timeline-point {
    transform: scale(1.4);
    background: #FBBF24;
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.6);
}

.timeline-content {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #18181b;
    padding: 10px 15px;
    border-radius: 6px;
    border: 1px solid #3f3f46;
    min-width: 150px;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    color: #e4e4e7;
    font-size: 0.85rem;
    pointer-events: none;
    z-index: 10;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: #18181b;
    border-top: 1px solid #3f3f46;
    border-left: 1px solid #3f3f46;
}

.timeline-node:hover .timeline-content {
    opacity: 1;
    visibility: visible;
    top: 40px;
}

/* Graphical Family Tree */
.tree-container {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    margin-bottom: 30px;
    overflow-x: auto;
    padding-bottom: 20px;
}

.tree-node-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding: 20px 10px 0 10px;
}

/* Connecting Top line to the parent */
.tree-node-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    border-left: 2px solid #FBBF24;
    width: 0;
    height: 20px;
}

/* Remove Top line for root node */
.tree-container > .tree-node-wrapper::before {
    display: none;
}

/* Horizontal line connecting siblings */
.tree-node-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    border-top: 2px solid #FBBF24;
    width: 100%;
    height: 0;
}

/* Fix horizontal lines for first and last siblings */
.tree-node-wrapper:first-child::after {
    left: 50%;
    width: 50%;
}
.tree-node-wrapper:last-child::after {
    width: 50%;
    left: 0;
}
.tree-node-wrapper:only-child::after {
    display: none;
}

.tree-node {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
}

/* Line dropping down to children */
.tree-children {
    display: flex;
    justify-content: center;
    position: relative;
}

.tree-node-content {
    background: #18181b;
    border: 2px solid #FBBF24;
    color: #FBBF24;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
    min-width: 100px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    z-index: 2;
    transition: all 0.3s ease;
}

.tree-node-content:hover {
    background: #FBBF24;
    color: #18181b;
    transform: scale(1.05);
}

.hebrew-notes {
    background: #27272a;
    padding: 15px;
    border-radius: 6px;
    margin: 10px 0;
    font-size: 0.95rem;
}

.artifact-list {
    padding-left: 20px;
    margin-bottom: 15px;
}

.scholarly-abstract {
    background: rgba(251, 191, 36, 0.05);
    border-left: 4px solid #FBBF24;
    padding: 15px;
    margin: 20px 0;
    font-style: italic;
}

.study-box {
    background: #27272a;
    border: 1px solid #3f3f46;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    color: #ccc;
    line-height: 1.6;
}

.study-images img {
    max-width: 100%;
    border-radius: 8px;
    border: 1px solid #444;
    margin-bottom: 10px;
}

/* Historic Figures, Artifacts, Events Sections */
.blog-content-container {
    background: #f5f5f5;
    border-radius: 10px;
    padding: 20px;
}

.blog-content-header {
    color: #666;
    margin-bottom: 15px;
}

.blog-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
}

.blog-card p {
    color: #333;
    margin-bottom: 15px;
}

.blog-coming-soon {
    color: #666;
    font-style: italic;
}

/* Blog Subtabs */
.blog-subtab {
    padding: 10px 20px;
    background: #f3f4f6;
    border: none;
    border-radius: 6px 6px 0 0;
    cursor: pointer;
    font-weight: 500;
    color: #374151;
    transition: all 0.2s;
}

.blog-subtab:hover {
    background: #e5e7eb;
}

.blog-subtab.active {
    background: #FBBF24;
    color: #000;
}

/* Comments Section Styles */
#comments-section {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #333;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.comment-form {
    background: #27272a;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    border: 1px solid #3f3f46;
}

.comment-form h3 {
    margin-top: 0;
    margin-bottom: 20px;
}

.comment-form .form-group {
    margin-bottom: 15px;
}

.comment-form label {
    display: block;
    margin-bottom: 5px;
    color: #FBBF24;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 10px;
    background: #18181b;
    border: 1px solid #3f3f46;
    border-radius: 5px;
    color: #fff;
    font-family: inherit;
    box-sizing: border-box;
}

.comment-form textarea {
    min-height: 100px;
    resize: vertical;
}

.submit-comment-btn {
    background: linear-gradient(to right, #FBBF24, #F97316);
    color: #000;
    border: none;
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.submit-comment-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

.comments-list {
    margin-top: 20px;
}

.comment-item {
    background: #18181b;
    border-left: 4px solid #FBBF24;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 0 8px 8px 0;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.comment-author {
    font-weight: 700;
    color: #FBBF24;
}

.comment-date {
    color: #71717a;
}

.comment-text {
    color: #e4e4e7;
    line-height: 1.5;
}
