/**
 * Bio Points Tree Main Stylesheet
 * Enterprise Family Tree, Historical Timeline, and Biographical Knowledge System
 */

:root {
    --bpt-font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --bpt-mono: 'JetBrains Mono', monospace;
    --bpt-primary: #10b981;
    --bpt-primary-hover: #059669;
    --bpt-primary-soft: rgba(16, 185, 129, 0.1);
    --bpt-secondary: #0f172a;
    --bpt-accent: #6366f1;
    --bpt-rose: #f43f5e;
    --bpt-body-bg: #f8fafc;
    --bpt-card-bg: #ffffff;
    --bpt-text: #334155;
    --bpt-heading: #0f172a;
    --bpt-muted: #64748b;
    --bpt-border: #e2e8f0;
    --bpt-radius-sm: 8px;
    --bpt-radius: 16px;
    --bpt-radius-lg: 24px;
    --bpt-shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --bpt-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    --bpt-shadow-hover: 0 20px 35px -10px rgba(16, 185, 129, 0.22);
    --bpt-transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Resets */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--bpt-font);
    font-size: 16px;
    line-height: 1.65;
    color: var(--bpt-text);
    background-color: var(--bpt-body-bg);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--bpt-heading);
    font-weight: 700;
    line-height: 1.25;
    margin-top: 0;
}

a {
    color: var(--bpt-primary);
    text-decoration: none;
    transition: var(--bpt-transition);
}
a:hover {
    color: var(--bpt-primary-hover);
}

img {
    max-width: 100%;
    height: auto;
}

.bpt-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

.bpt-section {
    padding: 85px 0;
}

.bpt-text-center {
    text-align: center;
}

/* Common Section Headers */
.bpt-section-header {
    text-align: center;
    margin-bottom: 50px;
}
.bpt-badge-pill {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(16, 185, 129, 0.12);
    color: var(--bpt-primary-hover);
    font-size: 12.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-radius: 50px;
    margin-bottom: 12px;
}
.bpt-section-title {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--bpt-heading);
    margin: 0 0 12px;
    letter-spacing: -0.5px;
}
.bpt-section-desc {
    color: var(--bpt-muted);
    font-size: 1.08rem;
    max-width: 640px;
    margin: 0 auto;
}

/* Buttons */
.bpt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--bpt-font);
    font-size: 14.5px;
    font-weight: 600;
    padding: 11px 22px;
    border-radius: var(--bpt-radius-sm);
    cursor: pointer;
    border: 1px solid transparent;
    transition: var(--bpt-transition);
    text-decoration: none;
}
.bpt-btn-primary {
    background: var(--bpt-primary);
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}
.bpt-btn-primary:hover {
    background: var(--bpt-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
}
.bpt-btn-secondary {
    background: var(--bpt-secondary);
    color: #ffffff !important;
}
.bpt-btn-secondary:hover {
    background: #1e293b;
    transform: translateY(-2px);
}
.bpt-btn-outline {
    background: #ffffff;
    border-color: var(--bpt-border);
    color: var(--bpt-heading);
}
.bpt-btn-outline:hover {
    border-color: var(--bpt-primary);
    color: var(--bpt-primary);
    background: #ffffff;
}
.bpt-btn-sm {
    padding: 7px 15px;
    font-size: 13px;
}
.bpt-btn-lg {
    padding: 13px 28px;
    font-size: 16px;
    border-radius: 10px;
}
.bpt-btn-block {
    width: 100%;
}
.bpt-btn-link {
    font-size: 14px;
    font-weight: 700;
    color: var(--bpt-primary-hover);
    text-decoration: none;
}
.bpt-btn-link:hover {
    text-decoration: underline;
}

/* Header & Navbar */
.bpt-site-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--bpt-border);
}
.bpt-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}
.bpt-site-branding .bpt-logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 21px;
    font-weight: 800;
    color: var(--bpt-heading);
    letter-spacing: -0.5px;
}
.bpt-accent-text { color: var(--bpt-primary); }

.bpt-main-navigation .bpt-nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 28px;
}
.bpt-main-navigation .bpt-nav-list a {
    color: var(--bpt-heading);
    font-weight: 600;
    font-size: 14.5px;
    position: relative;
    padding: 6px 0;
}
.bpt-main-navigation .bpt-nav-list a:hover {
    color: var(--bpt-primary);
}

.bpt-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
.bpt-user-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px 5px 6px;
    background: #f1f5f9;
    border-radius: 30px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--bpt-heading);
}
.bpt-user-avatar img {
    border-radius: 50%;
    display: block;
}

/* Mobile Toggle */
.bpt-mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}
.bpt-burger-bar {
    width: 24px;
    height: 2px;
    background: var(--bpt-heading);
}
.bpt-mobile-drawer {
    display: none;
    background: #ffffff;
    border-bottom: 1px solid var(--bpt-border);
    padding: 20px;
}
.bpt-mobile-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}
.bpt-mobile-menu li { margin-bottom: 14px; }
.bpt-mobile-menu a { font-size: 16px; font-weight: 600; color: var(--bpt-heading); }

/* ===================================================
   PAGE HEADER & GLOBAL SPACING ACROSS ALL PAGES
   =================================================== */
.bpt-site-header {
    margin-bottom: 0;
    box-shadow: 0 4px 20px -5px rgba(0, 0, 0, 0.05);
}
.bpt-page-header {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    border-bottom: 1px solid var(--bpt-border);
    padding: 60px 0 48px;
    margin-bottom: 45px;
    text-align: center;
    position: relative;
}
.bpt-page-header .bpt-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}
.bpt-page-header .bpt-badge-pill {
    display: inline-block;
    margin-bottom: 14px;
}
.bpt-page-header .bpt-page-title {
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--bpt-heading);
    letter-spacing: -0.025em;
    margin: 0 0 12px 0;
    line-height: 1.25;
}
.bpt-page-header .bpt-page-subtitle {
    font-size: 1.05rem;
    color: var(--bpt-muted);
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.6;
}
.bpt-breadcrumbs {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--bpt-muted);
    margin-bottom: 18px;
    background: #ffffff;
    padding: 6px 18px;
    border-radius: 30px;
    border: 1px solid var(--bpt-border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}
.bpt-breadcrumbs a {
    color: var(--bpt-primary);
    font-weight: 600;
    text-decoration: none;
    transition: var(--bpt-transition);
}
.bpt-breadcrumbs a:hover {
    color: var(--bpt-primary-hover);
    text-decoration: underline;
}
.bpt-breadcrumbs span.active {
    color: var(--bpt-heading);
    font-weight: 700;
}
.bpt-page-content-wrapper {
    padding-bottom: 85px;
}

/* ===================================================
   HERO SECTION
   =================================================== */
.bpt-hero-section {
    padding: 85px 0 75px;
    background: radial-gradient(circle at 85% 20%, rgba(16, 185, 129, 0.08) 0%, transparent 60%),
                radial-gradient(circle at 15% 80%, rgba(99, 102, 241, 0.06) 0%, transparent 50%),
                #ffffff;
    border-bottom: 1px solid var(--bpt-border);
}
.bpt-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bpt-primary-soft);
    color: var(--bpt-primary-hover);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13.5px;
    font-weight: 700;
    margin-bottom: 22px;
}
.bpt-badge-dot {
    width: 8px;
    height: 8px;
    background: var(--bpt-primary);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.25);
}
.bpt-hero-title {
    font-size: 3.3rem;
    font-weight: 800;
    letter-spacing: -1.2px;
    line-height: 1.15;
    margin-bottom: 20px;
}
.bpt-gradient-text {
    background: linear-gradient(135deg, var(--bpt-primary) 0%, #059669 40%, var(--bpt-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
}
.bpt-hero-description {
    font-size: 1.15rem;
    color: var(--bpt-muted);
    max-width: 760px;
    margin: 0 auto 35px;
    line-height: 1.65;
}
.bpt-hero-search-wrap {
    max-width: 820px;
    margin: 0 auto 40px;
}

/* Hero Stats Bar */
.bpt-hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
    padding-top: 30px;
    border-top: 1px solid var(--bpt-border);
}
.bpt-stat-card {
    background: #ffffff;
    border: 1px solid var(--bpt-border);
    border-radius: 12px;
    padding: 18px 14px;
    text-align: center;
    box-shadow: var(--bpt-shadow-sm);
}
.bpt-stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--bpt-heading);
    letter-spacing: -0.5px;
}
.bpt-stat-label {
    font-size: 0.85rem;
    color: var(--bpt-muted);
    font-weight: 600;
}

/* ===================================================
   FEATURED FAMILY TREES SECTION
   =================================================== */
.bpt-featured-lineages-section {
    background: var(--bpt-body-bg);
}
.bpt-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}
.bpt-grid-3col {
    grid-template-columns: repeat(3, 1fr);
}
.bpt-grid-card {
    background: #ffffff;
    border: 1px solid var(--bpt-border);
    border-radius: var(--bpt-radius);
    overflow: hidden;
    box-shadow: var(--bpt-shadow);
    display: flex;
    flex-direction: column;
    transition: var(--bpt-transition);
}
.bpt-grid-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--bpt-shadow-hover);
    border-color: rgba(16, 185, 129, 0.4);
}

.bpt-card-banner {
    position: relative;
    height: 220px;
    background: #e2e8f0;
    overflow: hidden;
}
.bpt-card-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.bpt-grid-card:hover .bpt-card-banner img {
    transform: scale(1.05);
}
.bpt-thumb-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    text-decoration: none;
}
.bpt-card-badge-top {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(15, 23, 42, 0.85);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
    letter-spacing: 0.5px;
}

.bpt-grid-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.bpt-grid-title {
    margin: 0 0 8px;
    font-size: 1.3rem;
    font-weight: 800;
}
.bpt-grid-title a {
    color: var(--bpt-heading);
}
.bpt-grid-title a:hover {
    color: var(--bpt-primary);
}
.bpt-node-designation {
    font-size: 13.5px;
    color: var(--bpt-muted);
    margin: 0 0 16px;
}
.bpt-date-tag {
    font-weight: 700;
    color: var(--bpt-primary-hover);
}

.bpt-lineage-metrics {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}
.bpt-metric-pill {
    padding: 5px 12px;
    background: #f1f5f9;
    border-radius: 8px;
    font-size: 12.5px;
    color: var(--bpt-text);
}
.bpt-metric-pill strong {
    color: var(--bpt-heading);
}
.bpt-grid-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f1f5f9;
    padding-top: 16px;
    margin-top: auto;
}

/* ===================================================
   RECENTLY ADDED & UPDATED PROFILES SECTION
   =================================================== */
.bpt-recent-profiles-section {
    background: #ffffff;
    border-top: 1px solid var(--bpt-border);
    border-bottom: 1px solid var(--bpt-border);
}
.bpt-recent-people-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 22px;
}
.bpt-person-mini-card {
    background: #ffffff;
    border: 1px solid var(--bpt-border);
    border-radius: var(--bpt-radius);
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--bpt-shadow-sm);
    transition: var(--bpt-transition);
}
.bpt-person-mini-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--bpt-shadow-hover);
    border-color: var(--bpt-primary);
}
.bpt-mini-avatar {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bpt-primary-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: bold;
    color: var(--bpt-primary);
    border: 2px solid var(--bpt-primary);
}
.bpt-mini-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.bpt-mini-info {
    flex-grow: 1;
    overflow: hidden;
}
.bpt-mini-tag {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--bpt-accent);
    background: #eef2ff;
    padding: 2px 8px;
    border-radius: 12px;
    margin-bottom: 4px;
}
.bpt-mini-info h4 {
    margin: 0 0 2px;
    font-size: 14.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.bpt-mini-info h4 a {
    color: var(--bpt-heading);
}
.bpt-mini-info h4 a:hover {
    color: var(--bpt-primary);
}
.bpt-mini-dates {
    margin: 0;
    font-size: 12px;
    color: var(--bpt-muted);
}
.bpt-mini-prof {
    font-size: 11.5px;
    color: #475569;
    display: block;
}
.bpt-mini-action .bpt-btn {
    border-radius: 50%;
    width: 38px;
    height: 38px;
    padding: 0;
}

/* ===================================================
   DIRECTORY & TIMELINE FILTER CARD
   =================================================== */
.bpt-directory-filter-card {
    background: #ffffff;
    border: 1px solid var(--bpt-border);
    border-radius: var(--bpt-radius-lg);
    padding: 28px 30px;
    box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.08);
    margin-bottom: 40px;
}
.bpt-filter-grid {
    display: grid;
    grid-template-columns: 1.8fr 1.3fr 1.3fr 1.2fr 1fr auto;
    gap: 16px;
    align-items: flex-end;
}
.bpt-filter-field {
    display: flex;
    flex-direction: column;
}
.bpt-filter-field label {
    font-size: 13px;
    font-weight: 700;
    color: var(--bpt-heading);
    margin-bottom: 8px;
    display: block;
}
.bpt-filter-field select,
.bpt-filter-field input[type="text"],
.bpt-filter-field input[type="search"] {
    width: 100%;
    height: 46px;
    padding: 0 16px;
    border: 1.5px solid #cbd5e1;
    border-radius: var(--bpt-radius-sm);
    font-size: 14px;
    font-family: inherit;
    background: #ffffff;
    color: var(--bpt-dark);
    outline: none;
    box-sizing: border-box;
    transition: var(--bpt-transition);
}
.bpt-filter-field select {
    cursor: pointer;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    appearance: none;
    -webkit-appearance: none;
    padding-right: 38px;
}
.bpt-filter-field select:focus,
.bpt-filter-field input:focus {
    border-color: var(--bpt-primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
    background-color: #ffffff;
}
.bpt-input-icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}
.bpt-input-icon-wrap .dashicons {
    position: absolute;
    left: 14px;
    color: #94a3b8;
    font-size: 18px;
    width: 18px;
    height: 18px;
    pointer-events: none;
}
.bpt-input-icon-wrap input {
    padding-left: 42px !important;
}
.bpt-filter-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}
.bpt-filter-buttons .bpt-btn {
    height: 46px;
    padding: 0 22px;
    white-space: nowrap;
}

/* ===================================================
   HISTORICAL TIMELINE COMPONENT
   =================================================== */
.bpt-historical-section {
    background: var(--bpt-body-bg);
}
.bpt-timeline-wrapper {
    position: relative;
    max-width: 950px;
    margin: 40px auto;
    padding: 0 20px;
}
.bpt-timeline-track {
    position: relative;
    padding: 30px 0;
}
.bpt-timeline-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: linear-gradient(to bottom, var(--bpt-primary), var(--bpt-accent));
    transform: translateX(-50%);
    border-radius: 2px;
}
.bpt-timeline-item {
    position: relative;
    margin-bottom: 45px;
    width: 50%;
    box-sizing: border-box;
}
.bpt-timeline-item.timeline-left {
    left: 0;
    padding-right: 45px;
    text-align: right;
}
.bpt-timeline-item.timeline-right {
    left: 50%;
    padding-left: 45px;
    text-align: left;
}
.bpt-timeline-node-pin {
    position: absolute;
    top: 20px;
    width: 44px;
    height: 44px;
    background: #ffffff;
    border: 3px solid var(--bpt-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    z-index: 2;
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.2);
    transition: transform 0.3s;
}
.bpt-timeline-item.timeline-left .bpt-timeline-node-pin {
    right: -22px;
}
.bpt-timeline-item.timeline-right .bpt-timeline-node-pin {
    left: -22px;
}
.bpt-timeline-content-card {
    background: #ffffff;
    border: 1px solid var(--bpt-border);
    border-radius: var(--bpt-radius);
    padding: 24px;
    box-shadow: var(--bpt-shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: left;
}
.bpt-timeline-content-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--bpt-shadow-hover);
    border-color: var(--bpt-primary);
}
.bpt-timeline-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}
.bpt-timeline-year {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--bpt-primary-hover);
}
.bpt-timeline-tag {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    padding: 3px 10px;
    background: #eef2ff;
    color: var(--bpt-accent);
    border-radius: 12px;
}
.bpt-timeline-date {
    font-size: 12.5px;
    color: var(--bpt-muted);
}
.bpt-timeline-title {
    margin: 0 0 10px;
    font-size: 1.3rem;
    font-weight: 700;
}
.bpt-timeline-title a {
    color: var(--bpt-heading);
}
.bpt-timeline-title a:hover {
    color: var(--bpt-primary);
}
.bpt-timeline-body {
    color: var(--bpt-text);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ===================================================
   BLOG & SIDEBAR 2-COLUMN LAYOUT
   =================================================== */
.bpt-content-sidebar-grid {
    display: grid;
    grid-template-columns: 2.3fr 1fr;
    gap: 40px;
    align-items: flex-start;
}
.bpt-sidebar-wrapper {
    position: sticky;
    top: 96px;
}
.bpt-widget {
    background: #ffffff;
    border: 1px solid var(--bpt-border);
    border-radius: var(--bpt-radius);
    padding: 24px;
    margin-bottom: 25px;
    box-shadow: var(--bpt-shadow-sm);
}
.bpt-widget-title {
    font-size: 1.15rem;
    margin: 0 0 18px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--bpt-primary);
    color: var(--bpt-heading);
}

/* Sidebar Search Form */
.bpt-sidebar-search-input {
    display: flex;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    overflow: hidden;
    background: #f8fafc;
}
.bpt-sidebar-search-input input {
    flex-grow: 1;
    border: none;
    padding: 10px 14px;
    font-size: 14px;
    outline: none;
    background: transparent;
    font-family: inherit;
}
.bpt-sidebar-search-input button {
    background: var(--bpt-primary);
    color: #ffffff;
    border: none;
    padding: 0 16px;
    cursor: pointer;
    transition: var(--bpt-transition);
}
.bpt-sidebar-search-input button:hover {
    background: var(--bpt-primary-hover);
}

/* Recent Items in Sidebar */
.bpt-recent-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.bpt-recent-item {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
}
.bpt-recent-item:last-child {
    border-bottom: none;
}
.bpt-recent-thumb {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #e2e8f0;
}
.bpt-recent-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.bpt-recent-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}
.bpt-recent-meta h4 {
    margin: 0 0 4px;
    font-size: 13.5px;
    line-height: 1.4;
}
.bpt-recent-meta h4 a {
    color: var(--bpt-heading);
}
.bpt-recent-meta h4 a:hover {
    color: var(--bpt-primary);
}
.bpt-recent-meta span {
    font-size: 11.5px;
    color: var(--bpt-muted);
}

/* Category list in Sidebar */
.bpt-category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.bpt-category-list li {
    border-bottom: 1px solid #f1f5f9;
}
.bpt-category-list li:last-child {
    border-bottom: none;
}
.bpt-category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 0;
    color: var(--bpt-text);
    font-weight: 500;
    font-size: 14px;
}
.bpt-category-list a:hover {
    color: var(--bpt-primary);
    padding-left: 4px;
}
.bpt-count-badge {
    background: #f1f5f9;
    color: var(--bpt-muted);
    font-size: 11.5px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
}

/* Tags Cloud */
.bpt-tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.bpt-tag-pill {
    padding: 5px 12px;
    background: #f1f5f9;
    color: var(--bpt-text);
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 600;
    transition: var(--bpt-transition);
}
.bpt-tag-pill:hover {
    background: var(--bpt-primary);
    color: #ffffff;
}

/* ===================================================
   BLOG POSTS GRID & CARD SYSTEM
   =================================================== */
.bpt-posts-grid {
    display: grid;
    gap: 30px;
}
.bpt-posts-grid-2col {
    grid-template-columns: repeat(2, 1fr);
}
.bpt-posts-grid-3col {
    grid-template-columns: repeat(3, 1fr);
}

.bpt-post-card {
    background: #ffffff;
    border: 1px solid var(--bpt-border);
    border-radius: var(--bpt-radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
    transition: var(--bpt-transition);
    position: relative;
}
.bpt-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 36px -8px rgba(15, 23, 42, 0.12);
    border-color: var(--bpt-primary);
}

.bpt-post-thumb {
    position: relative;
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.bpt-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.bpt-post-card:hover .bpt-post-thumb img {
    transform: scale(1.05);
}
.bpt-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}
.bpt-thumb-placeholder span {
    font-size: 52px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.bpt-category-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    color: #0f172a;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 12px;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.bpt-post-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.bpt-post-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: var(--bpt-muted);
    font-weight: 500;
    margin-bottom: 12px;
}
.bpt-post-meta i.dashicons {
    font-size: 15px;
    width: 15px;
    height: 15px;
    vertical-align: middle;
    color: var(--bpt-primary);
}

.bpt-post-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 12px 0;
    color: var(--bpt-heading);
}
.bpt-post-title a {
    color: var(--bpt-heading);
    text-decoration: none;
    transition: color 0.2s;
}
.bpt-post-title a:hover {
    color: var(--bpt-primary);
}

.bpt-post-excerpt {
    font-size: 0.92rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.bpt-post-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
    margin-top: auto;
}
.bpt-post-author {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
}
.bpt-post-author img {
    border-radius: 50%;
    width: 28px;
    height: 28px;
}
.bpt-read-more {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--bpt-primary);
    text-decoration: none;
    transition: var(--bpt-transition);
}
.bpt-read-more:hover {
    color: var(--bpt-primary-hover);
    transform: translateX(4px);
}

/* ===================================================
   SINGLE ARTICLE PAGE
   =================================================== */
.bpt-single-article-card {
    background: #ffffff;
    border: 1px solid var(--bpt-border);
    border-radius: var(--bpt-radius);
    padding: 45px;
    box-shadow: var(--bpt-shadow);
}
.bpt-single-featured-wrap {
    margin-bottom: 35px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}
.bpt-single-featured-wrap img {
    width: 100%;
    display: block;
}
.bpt-single-entry-body {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #1e293b;
}
.bpt-single-entry-body h2 {
    font-size: 1.85rem;
    margin-top: 40px;
    margin-bottom: 16px;
    color: var(--bpt-heading);
}
.bpt-single-entry-body h3 {
    font-size: 1.45rem;
    margin-top: 30px;
    margin-bottom: 14px;
}
.bpt-single-entry-body p {
    margin-bottom: 22px;
}
.bpt-single-entry-body blockquote {
    margin: 30px 0;
    padding: 20px 26px;
    background: #f8fafc;
    border-left: 4px solid var(--bpt-primary);
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: #475569;
}

.bpt-post-tags-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 40px 0 30px;
    padding-top: 25px;
    border-top: 1px solid #f1f5f9;
}
.bpt-tag-header {
    font-weight: 700;
    font-size: 14px;
}

/* Author Box */
.bpt-author-profile-box {
    display: flex;
    gap: 20px;
    align-items: center;
    background: #f8fafc;
    border: 1px solid var(--bpt-border);
    border-radius: 14px;
    padding: 25px;
    margin: 35px 0;
}
.bpt-author-avatar-wrap img {
    border-radius: 50%;
    border: 2px solid var(--bpt-primary);
}
.bpt-author-role {
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--bpt-accent);
}
.bpt-author-name {
    margin: 2px 0 6px;
    font-size: 1.25rem;
}
.bpt-author-bio {
    margin: 0;
    font-size: 0.95rem;
    color: var(--bpt-muted);
}

/* Prev / Next Cards */
.bpt-single-nav-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 35px 0;
}
.bpt-nav-card {
    background: #f8fafc;
    border: 1px solid var(--bpt-border);
    border-radius: 12px;
    padding: 20px;
    transition: var(--bpt-transition);
}
.bpt-nav-card:hover {
    border-color: var(--bpt-primary);
    background: #ffffff;
}
.bpt-nav-card small {
    font-size: 12px;
    font-weight: 700;
    color: var(--bpt-muted);
}
.bpt-nav-card h4 {
    margin: 6px 0 0;
    font-size: 1.05rem;
}
.bpt-nav-card h4 a {
    color: var(--bpt-heading);
}

/* Comments Section */
.bpt-comments-area {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid #f1f5f9;
}
.bpt-comment-form input[type="text"],
.bpt-comment-form input[type="email"],
.bpt-comment-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    margin-bottom: 15px;
}
.bpt-comment-form input[type="submit"] {
    background: var(--bpt-primary);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
}

/* ===================================================
   INDIVIDUAL PERSON PROFILE (USER PROFILE)
   =================================================== */
.bpt-profile-hero {
    background: #ffffff;
    border-bottom: 1px solid var(--bpt-border);
    padding: 40px 0 50px;
}
.bpt-profile-header-grid {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 40px;
    align-items: flex-start;
}
.bpt-profile-portrait-wrap {
    width: 220px;
    height: 220px;
    border-radius: var(--bpt-radius);
    overflow: hidden;
    border: 3px solid var(--bpt-primary);
    box-shadow: var(--bpt-shadow);
}
.bpt-profile-portrait {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.bpt-portrait-fallback {
    width: 100%;
    height: 100%;
    background: var(--bpt-primary-soft);
    color: var(--bpt-primary);
    font-size: 80px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}
.bpt-profile-meta-top {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13.5px;
    color: var(--bpt-muted);
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.bpt-profile-name {
    font-size: 2.6rem;
    font-weight: 800;
    margin-bottom: 8px;
}
.bpt-profile-tagline {
    font-size: 1.15rem;
    color: var(--bpt-muted);
    margin-bottom: 16px;
}

/* Collapsible Bio */
.bpt-collapsible-bio-wrapper {
    margin-bottom: 24px;
}
.bpt-bio-text {
    max-height: 110px;
    overflow: hidden;
    transition: max-height 0.3s ease;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #334155;
}
.bpt-bio-toggle-btn {
    background: none;
    border: none;
    color: var(--bpt-primary);
    font-weight: 700;
    cursor: pointer;
    padding: 6px 0;
    font-size: 14px;
}

/* Profile Actions Bar */
.bpt-profile-actions-bar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}
.bpt-action-like.is-active {
    background: #ffe4e6;
    border-color: #f43f5e;
    color: #e11d48;
}
.bpt-action-save.is-active {
    background: #fef9c3;
    border-color: #eab308;
    color: #a16207;
}

/* Profile Sections Cards */
.bpt-profile-section-card {
    background: #ffffff;
    border: 1px solid var(--bpt-border);
    border-radius: var(--bpt-radius);
    padding: 34px;
    box-shadow: var(--bpt-shadow-sm);
}
.bpt-card-section-title {
    font-size: 1.45rem;
    margin-bottom: 22px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--bpt-primary);
}

.bpt-info-table-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.bpt-info-cell {
    display: flex;
    flex-direction: column;
    padding: 14px 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}
.bpt-cell-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--bpt-muted);
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}
.bpt-cell-value {
    font-size: 15.5px;
    font-weight: 600;
    color: var(--bpt-heading);
}

/* Family Display Grid */
.bpt-family-display-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.bpt-family-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 22px;
}
.bpt-fam-badge {
    display: inline-block;
    padding: 4px 12px;
    background: #e2e8f0;
    font-size: 11px;
    font-weight: 700;
    border-radius: 12px;
    margin-bottom: 12px;
    text-transform: uppercase;
}
.bpt-fam-person h4 {
    margin: 0 0 4px;
    font-size: 1.15rem;
}
.bpt-fam-person p {
    margin: 0 0 10px;
    color: var(--bpt-muted);
    font-size: 13.5px;
}
.bpt-siblings-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.bpt-sibling-pill {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    padding: 7px 15px;
    border-radius: 20px;
    font-size: 13.5px;
}

/* Spouses & Children */
.bpt-spouse-card {
    background: #fff1f2;
    border: 1px solid #fecdd3;
    border-radius: 12px;
    padding: 18px 22px;
    margin-bottom: 16px;
}
.bpt-spouse-header {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.bpt-spouse-header h3 {
    margin: 0;
    font-size: 1.25rem;
}
.bpt-marriage-pill {
    font-size: 12.5px;
    background: #ffe4e6;
    color: #e11d48;
    padding: 3px 12px;
    border-radius: 12px;
    font-weight: 600;
}
.bpt-children-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    margin-top: 14px;
}
.bpt-child-mini-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.bpt-child-mini-card h4 {
    margin: 0 0 2px;
    font-size: 14px;
}
.bpt-child-mini-card p {
    margin: 0;
    font-size: 12px;
    color: var(--bpt-muted);
}
.bpt-child-indicator {
    color: var(--bpt-primary);
    font-size: 20px;
    font-weight: bold;
}

/* Tables */
.bpt-table-responsive {
    overflow-x: auto;
}
.bpt-records-table {
    width: 100%;
    border-collapse: collapse;
}
.bpt-records-table th, .bpt-records-table td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}
.bpt-records-table th {
    background: #f8fafc;
    font-size: 13px;
    font-weight: 700;
    color: var(--bpt-muted);
}

/* ===================================================
   FOOTER
   =================================================== */
.bpt-site-footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 85px 0 35px;
    border-top: 1px solid #1e293b;
}
.bpt-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
    gap: 45px;
    margin-bottom: 60px;
}
.bpt-footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 16px;
}
.bpt-footer-tagline {
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 22px;
}
.bpt-social-pills {
    display: flex;
    gap: 10px;
}
.bpt-social-pills a {
    width: 38px;
    height: 38px;
    background: #1e293b;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    border: 1px solid #334155;
    transition: var(--bpt-transition);
}
.bpt-social-pills a:hover {
    background: var(--bpt-primary);
    border-color: var(--bpt-primary);
    transform: translateY(-2px);
}
.bpt-footer-title {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 700;
}
.bpt-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.bpt-footer-links li {
    margin-bottom: 12px;
}
.bpt-footer-links a {
    color: #94a3b8;
    font-size: 14.5px;
    transition: var(--bpt-transition);
}
.bpt-footer-links a:hover {
    color: #ffffff;
    padding-left: 4px;
}
.bpt-footer-small {
    font-size: 0.9rem;
    margin-bottom: 14px;
    line-height: 1.5;
}
.bpt-footer-newsletter {
    display: flex;
    gap: 8px;
}
.bpt-footer-newsletter input {
    flex-grow: 1;
    background: #1e293b;
    border: 1px solid #334155;
    padding: 10px 14px;
    border-radius: 8px;
    color: #ffffff;
    font-family: var(--bpt-font);
    font-size: 14px;
}
.bpt-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #1e293b;
    padding-top: 30px;
    font-size: 14px;
}
.bpt-footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 12px;
}
.bpt-footer-bottom-links a {
    color: #94a3b8;
}
.bpt-footer-bottom-links a:hover {
    color: #ffffff;
}

/* ===================================================
   RESPONSIVE DESIGN BREAKPOINTS
   =================================================== */
@media (max-width: 1024px) {
    .bpt-grid-3col, .bpt-posts-grid-3col {
        grid-template-columns: repeat(2, 1fr);
    }
    .bpt-footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .bpt-hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .bpt-content-sidebar-grid {
        grid-template-columns: 1.8fr 1fr;
    }
}

@media (max-width: 850px) {
    .bpt-content-sidebar-grid {
        grid-template-columns: 1fr;
    }
    .bpt-sidebar-wrapper {
        position: static;
        margin-top: 40px;
    }
    .bpt-profile-header-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .bpt-profile-portrait-wrap {
        margin: 0 auto;
    }
    .bpt-profile-actions-bar {
        justify-content: center;
    }
    .bpt-family-display-grid,
    .bpt-info-table-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .bpt-main-navigation, .bpt-header-actions .bpt-btn, .bpt-header-actions .bpt-user-pill {
        display: none;
    }
    .bpt-mobile-toggle {
        display: flex;
    }
    .bpt-hero-title {
        font-size: 2.3rem;
    }
    .bpt-grid-3col, .bpt-posts-grid-3col, .bpt-posts-grid-2col {
        grid-template-columns: 1fr;
    }
    .bpt-footer-grid {
        grid-template-columns: 1fr;
    }
    .bpt-footer-bottom {
        flex-direction: column;
        gap: 14px;
        text-align: center;
    }
    .bpt-timeline-line {
        left: 20px;
    }
    .bpt-timeline-item {
        width: 100%;
        left: 0 !important;
        padding-left: 55px !important;
        padding-right: 0 !important;
        text-align: left !important;
    }
    .bpt-timeline-item.timeline-left .bpt-timeline-node-pin,
    .bpt-timeline-item.timeline-right .bpt-timeline-node-pin {
        left: 0;
        right: auto;
    }
}


/* ===================================================
   USER PROFILE & MEMBER DASHBOARD SYSTEM
   =================================================== */
.bpt-dashboard-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 35px;
    align-items: start;
}
.bpt-dashboard-sidebar {
    position: sticky;
    top: 96px;
}
.bpt-user-card {
    background: #ffffff;
    border: 1px solid var(--bpt-border);
    border-radius: var(--bpt-radius-lg);
    padding: 35px 25px;
    text-align: center;
    box-shadow: var(--bpt-shadow-sm);
}
.bpt-user-avatar-large {
    width: 100px;
    height: 100px;
    margin: 0 auto 18px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--bpt-primary);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.15);
}
.bpt-user-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.bpt-user-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--bpt-dark);
    margin: 0 0 6px 0;
}
.bpt-user-email {
    color: var(--bpt-muted);
    font-size: 0.9rem;
    margin-bottom: 16px;
}
.bpt-2fa-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 700;
}
.bpt-2fa-badge.enabled {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}
.bpt-2fa-badge.disabled {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}
.bpt-user-sidebar-stats {
    display: grid;
    grid-template-columns: 1fr;
    background: var(--bpt-bg-light);
    border: 1px solid var(--bpt-border);
    border-radius: var(--bpt-radius-md);
    padding: 14px;
    margin: 20px 0;
}
.bpt-user-sidebar-stats div {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}
.bpt-user-sidebar-stats strong {
    font-size: 1.4rem;
    color: var(--bpt-primary);
}
.bpt-user-sidebar-stats span {
    font-size: 0.9rem;
    color: var(--bpt-muted);
    font-weight: 600;
}

/* Universal Form & Input System */
.bpt-input,
input.bpt-input,
textarea.bpt-input,
select.bpt-input {
    width: 100%;
    height: 48px;
    padding: 10px 16px;
    border: 1.5px solid #cbd5e1;
    border-radius: var(--bpt-radius-sm);
    font-size: 14.5px;
    font-family: inherit;
    background: #ffffff;
    color: var(--bpt-dark);
    outline: none;
    box-sizing: border-box;
    transition: var(--bpt-transition);
}
textarea.bpt-input {
    height: auto;
    min-height: 105px;
    resize: vertical;
    padding: 12px 16px;
}
.bpt-input:focus {
    border-color: var(--bpt-primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
    background-color: #ffffff;
}
.bpt-form-row {
    margin-bottom: 20px;
    text-align: left;
}
.bpt-form-row label {
    display: block;
    margin-bottom: 8px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--bpt-dark);
}
.bpt-admin-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
@media (max-width: 640px) {
    .bpt-admin-grid {
        grid-template-columns: 1fr;
    }
}

/* Dashboard Tabs Navigation (Responsive & Touch Scrollable) */
.bpt-dashboard-tabs-wrapper {
    background: #ffffff;
    border: 1px solid var(--bpt-border);
    border-radius: var(--bpt-radius-lg);
    padding: 6px;
    margin-bottom: 25px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}
.bpt-dashboard-tabs-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding: 4px;
}
.bpt-dashboard-tabs-nav::-webkit-scrollbar {
    height: 4px;
}
.bpt-dashboard-tabs-nav::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
.bpt-dtab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    color: #64748b;
    background: transparent;
    border: none;
    border-radius: var(--bpt-radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.bpt-dtab-btn:hover {
    color: var(--bpt-heading);
    background: #f1f5f9;
}
.bpt-dtab-btn.active {
    color: #ffffff !important;
    background: var(--bpt-primary) !important;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}
.bpt-dtab-count {
    background: rgba(255, 255, 255, 0.25);
    color: inherit;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 11.5px;
}
.bpt-dtab-btn:not(.active) .bpt-dtab-count {
    background: #e2e8f0;
    color: #475569;
}
.bpt-tab-panel {
    animation: bptFadeIn 0.25s ease-in-out;
}
@keyframes bptFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Saved Records Manager */
.bpt-saved-records-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 20px;
}
.bpt-saved-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: var(--bpt-bg-light);
    border: 1px solid var(--bpt-border);
    border-radius: var(--bpt-radius-md);
    padding: 16px 20px;
    transition: var(--bpt-transition);
}
.bpt-saved-item:hover {
    border-color: var(--bpt-primary);
    background: #ffffff;
    box-shadow: var(--bpt-shadow-sm);
}
.bpt-saved-info {
    flex-grow: 1;
}
.bpt-saved-info .bpt-node-badge {
    display: inline-block;
    margin-bottom: 6px;
    font-size: 11px;
    padding: 2px 8px;
    background: #e2e8f0;
    color: #475569;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
}
.bpt-saved-info h4 {
    margin: 0 0 4px 0;
    font-size: 1.1rem;
    font-weight: 700;
}
.bpt-saved-info h4 a {
    color: var(--bpt-dark);
}
.bpt-saved-info h4 a:hover {
    color: var(--bpt-primary);
}
.bpt-saved-info small {
    color: var(--bpt-muted);
    font-size: 12.5px;
}
.bpt-saved-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Public User Profile (author.php) */
.bpt-user-public-profile-card {
    background: #ffffff;
    border: 1px solid var(--bpt-border);
    border-radius: var(--bpt-radius-lg);
    padding: 40px;
    display: flex;
    gap: 35px;
    align-items: center;
    box-shadow: var(--bpt-shadow-sm);
    margin-bottom: 30px;
}
.bpt-user-public-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--bpt-primary);
    box-shadow: 0 6px 18px rgba(30, 58, 138, 0.2);
    flex-shrink: 0;
}
.bpt-user-public-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.bpt-user-public-details {
    flex-grow: 1;
}
.bpt-user-public-top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 10px;
}
.bpt-user-joined {
    font-size: 0.88rem;
    color: var(--bpt-muted);
    font-weight: 500;
}
.bpt-user-public-name {
    font-size: 2rem;
    font-weight: 800;
    color: var(--bpt-dark);
    margin: 0 0 10px 0;
    letter-spacing: -0.02em;
}
.bpt-user-public-bio {
    font-size: 1rem;
    color: #475569;
    line-height: 1.65;
    margin-bottom: 20px;
    max-width: 750px;
}
.bpt-user-public-stats {
    display: flex;
    gap: 24px;
    align-items: center;
}
.bpt-u-stat strong {
    font-size: 1.3rem;
    color: var(--bpt-primary);
    font-weight: 800;
    margin-right: 6px;
}
.bpt-u-stat span {
    font-size: 0.9rem;
    color: var(--bpt-muted);
}

/* ===================================================
   AUTHENTICATION SCREENS (LOGIN & REGISTER)
   =================================================== */
.bpt-auth-page-wrapper {
    min-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background: radial-gradient(circle at 50% 20%, #f1f5f9 0%, #e2e8f0 100%);
}
.bpt-auth-card {
    width: 100%;
    max-width: 480px;
    background: #ffffff;
    border: 1px solid var(--bpt-border);
    border-radius: var(--bpt-radius-lg);
    box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.1);
    padding: 40px;
}
.bpt-auth-header {
    text-align: center;
    margin-bottom: 30px;
}
.bpt-auth-icon {
    font-size: 40px;
    display: inline-block;
    margin-bottom: 12px;
}
.bpt-auth-header h2 {
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--bpt-dark);
    margin: 0 0 8px 0;
    letter-spacing: -0.02em;
}
.bpt-auth-header p {
    color: var(--bpt-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}
.bpt-auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.bpt-auth-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}
.bpt-auth-field label {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--bpt-dark);
}
.bpt-otp-input {
    letter-spacing: 12px;
    font-size: 26px;
    text-align: center;
    font-weight: 800;
    height: 58px;
    border: 2px solid var(--bpt-primary);
    border-radius: var(--bpt-radius-md);
    background: #f8fafc;
    color: var(--bpt-primary);
}
.bpt-auth-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #475569;
}
.bpt-forgot-link {
    font-size: 0.85rem;
    color: var(--bpt-primary);
    font-weight: 600;
}
.bpt-forgot-link:hover {
    text-decoration: underline;
}
.bpt-auth-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--bpt-border);
    font-size: 0.92rem;
    color: var(--bpt-muted);
}
.bpt-auth-footer a {
    color: var(--bpt-primary);
    font-weight: 700;
}

/* ===================================================
   HISTORICAL EVENT PROFILE (SINGLE-BPT_HISTORY.PHP)
   =================================================== */
.bpt-event-header-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
}
.bpt-event-date-badge {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: var(--bpt-dark);
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.88rem;
}
.bpt-event-loc {
    color: var(--bpt-muted);
    font-size: 0.9rem;
    font-weight: 600;
}
.bpt-event-summary-callout {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-left: 4px solid var(--bpt-primary);
    border-radius: 0 var(--bpt-radius-md) var(--bpt-radius-md) 0;
    padding: 24px;
    margin-bottom: 25px;
}
.bpt-event-summary-callout h3 {
    margin: 0 0 10px 0;
    font-size: 1.15rem;
    color: var(--bpt-dark);
}
.bpt-event-summary-callout p {
    margin: 0;
    color: #475569;
    font-size: 1.05rem;
    line-height: 1.7;
}
.bpt-sourced-facts-box {
    background: #fffbeb;
    border: 1px solid #fef3c7;
    border-left: 4px solid #f59e0b;
    border-radius: var(--bpt-radius-md);
    padding: 20px;
    margin-top: 30px;
}
.bpt-sourced-facts-box h4 {
    margin: 0 0 8px 0;
    color: #92400e;
    font-size: 1rem;
}
.bpt-sourced-facts-box p {
    margin: 0;
    color: #78350f;
    font-size: 0.95rem;
    line-height: 1.6;
}
.bpt-recent-people-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 15px;
}
.bpt-person-mini-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    background: var(--bpt-bg-light);
    border: 1px solid var(--bpt-border);
    border-radius: var(--bpt-radius-md);
    transition: var(--bpt-transition);
}
.bpt-person-mini-card:hover {
    border-color: var(--bpt-primary);
    background: #ffffff;
    box-shadow: var(--bpt-shadow-sm);
}
.bpt-mini-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.bpt-mini-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.bpt-mini-info {
    flex-grow: 1;
    min-width: 0;
}
.bpt-mini-info h4 {
    margin: 0 0 2px 0;
    font-size: 0.98rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.bpt-mini-info h4 a {
    color: var(--bpt-dark);
}
.bpt-mini-info h4 a:hover {
    color: var(--bpt-primary);
}
.bpt-mini-dates {
    margin: 0;
    font-size: 12px;
    color: var(--bpt-muted);
}
.bpt-mini-prof {
    display: inline-block;
    font-size: 11px;
    color: var(--bpt-primary);
    font-weight: 600;
}

/* Tree instructions card */
.bpt-tree-instructions-card {
    background: #ffffff;
    border: 1px solid var(--bpt-border);
    border-radius: var(--bpt-radius-lg);
    padding: 24px;
    margin-top: 30px;
    box-shadow: var(--bpt-shadow-sm);
}
.bpt-tree-instructions-card h3 {
    margin: 0 0 12px 0;
    font-size: 1.15rem;
    color: var(--bpt-dark);
}
.bpt-tree-instructions-card ul {
    margin: 0;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: #475569;
    font-size: 0.95rem;
}

/* Alerts */
.bpt-alert {
    padding: 14px 20px;
    border-radius: var(--bpt-radius-md);
    margin-bottom: 25px;
    font-weight: 600;
    font-size: 0.95rem;
}
.bpt-alert-success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}
.bpt-alert-danger {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

@media (max-width: 1200px) {
    .bpt-filter-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

@media (max-width: 850px) {
    .bpt-dashboard-grid {
        grid-template-columns: 1fr;
    }
    .bpt-dashboard-sidebar {
        position: static;
    }
    .bpt-user-public-profile-card {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }
    .bpt-user-public-top,
    .bpt-user-public-stats {
        justify-content: center;
    }
    .bpt-filter-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .bpt-filter-grid {
        grid-template-columns: 1fr;
    }
    .bpt-filter-buttons {
        flex-direction: column;
        width: 100%;
    }
    .bpt-filter-buttons .bpt-btn {
        width: 100%;
    }
}
