/* Source Page Styles */

.hp-source-page {
    width: 100% !important;
    margin: 0 auto !important;
    padding: 20px !important;
    background-color: var(--lp-background-color, #f8f9fa) !important;
    min-height: 100vh !important;
    box-sizing: border-box !important;
    font-family: var(--lp-font-family, inherit) !important;
    font-size: var(--lp-font-size, 14px) !important;
    color: var(--lp-text-color, inherit) !important;
}

/* Breadcrumbs */
.hp-breadcrumbs {
    margin-bottom: 20px;
    padding: 10px 0;
    font-size: var(--lp-font-size, 14px);
    color: #6c757d;
}

.hp-breadcrumbs a {
    color: #007cba;
    text-decoration: none;
}

.hp-breadcrumbs a:hover {
    text-decoration: underline;
}

.hp-breadcrumbs span {
    color: #495057;
    font-weight: 500;
}

/* Page Title */
.hp-source-page h1 {
    background: #5c5c5c;
    color: white;
    padding: 30px;
    margin: 0 0 30px 0;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    font-size: 28px;
    font-weight: 400;
    line-height: 1.2;
}

/* Source Image */
.hp-source-image {
    background: white;
    margin-bottom: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    border: 1px solid #e1e5e9;
    padding: 20px;
    text-align: center;
}

.hp-source-image img {
    max-width: 100%;
    max-height: 600px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
}

/* Source Details Section */
.hp-source-details {
    background: white;
    margin-bottom: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    overflow: hidden;
    border: 1px solid #e1e5e9;
}

.hp-source-table {
    background-color: #fff;
    border-collapse: collapse;
    width: 100%;
    margin: 0;
    table-layout: fixed;
    font-size: var(--lp-font-size, 14px);
}

.hp-source-table td:first-child {
    background-color: #f8f9fa;
    border: none;
    border-bottom: 1px solid #e9ecef;
    padding: 12px 20px;
    vertical-align: top;
    font-weight: 600;
    color: #2a2e33;
    width: 150px;
}

.hp-source-table td:last-child {
    background-color: #fff;
    border: none;
    border-bottom: 1px solid #e9ecef;
    padding: 12px 20px;
    vertical-align: top;
    line-height: 1.5;
    color: #1a1e21;
}

.hp-source-table tr:last-child td {
    border-bottom: none;
}

/* Individuals Section */
.hp-individuals-section {
    background: white;
    margin-bottom: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    overflow: hidden;
    border: 1px solid #e1e5e9;
}

.hp-individuals-section h3 {
    background: linear-gradient(90deg, #f8f9fa 0%, #e9ecef 100%);
    margin: 0;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 600;
    color: #1a1e21;
    border-bottom: 2px solid #dee2e6;
}

.hp-individuals-table {
    background-color: #fff;
    border-collapse: collapse;
    width: 100%;
    margin: 0;
    font-size: var(--lp-font-size, 14px);
}

.hp-individuals-table th {
    background-color: #f8f9fa;
    border: none;
    border-bottom: 1px solid #e9ecef;
    padding: 12px 20px;
    text-align: left;
    font-weight: 600;
    color: #2a2e33;
}

.hp-individuals-table td {
    background-color: #fff;
    border: none;
    border-bottom: 1px solid #e9ecef;
    padding: 12px 20px;
    vertical-align: top;
    line-height: 1.5;
    color: #1a1e21;
}

.hp-individuals-table tr:last-child td {
    border-bottom: none;
}

.hp-individuals-table a {
    color: var(--lp-link-color, #007cba);
    text-decoration: none;
    font-weight: 500;
}

.hp-individuals-table a:hover {
    color: var(--lp-link-hover-color, #005a87);
    text-decoration: underline;
}

/* Empty State */
.hp-individuals-section p {
    color: #6c757d;
    font-style: italic;
    padding: 20px;
    margin: 0;
}

/* Back to top button */
.hp-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #007cba;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hp-back-to-top:hover {
    background: #005a87;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.hp-back-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hp-source-page {
        padding: 15px !important;
    }
    
    .hp-source-page h1 {
        font-size: 22px;
        padding: 20px;
    }
    
    .hp-source-table td:first-child,
    .hp-source-table td:last-child,
    .hp-individuals-table th,
    .hp-individuals-table td {
        padding: 10px 15px;
    }
    
    .hp-individuals-section h3 {
        padding: 12px 15px;
        font-size: 15px;
    }
    
    .hp-back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}
