/* Themes for KUnnect - Hero Classic Only */

/* Common Utilities */
body {
    transition: background-color 0.3s ease, color 0.3s ease;
    background-color: #f5f5f5;
    /* Unified background with main */
}

/* Ensure container has no extra background to merge with body */
.container {
    max-width: 1000px;
    background: transparent;
}

/* Hero Banner Styling */
.hero-banner {
    background: linear-gradient(135deg, #8A2422 0%, #6d1c1a 100%);
    color: white;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(138, 36, 34, 0.2);
    position: relative;
}

.hero-name {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 5px;
    line-height: 1.2;
}

.hero-meta {
    font-size: 0.95rem;
    opacity: 0.95;
    margin-bottom: 15px;
}

.hero-title {
    font-weight: 600;
    margin-right: 10px;
    display: inline-block;
}

.hero-affil {
    font-style: italic;
    display: block;
    /* Under title */
    margin-top: 2px;
}

/* Research Interests inside Hero */
.hero-interests {
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 15px;
}

.hero-banner .hero-text {
    font-size: 0.95rem;
    line-height: 1.5;
    color: white;
    font-weight: normal !important;
    /* Force normal weight, override any bold */
    /* Ensure visibility on red background */
    display: none;
    /* Start hidden */
    margin-top: 15px;
}

.explanation-wrapper.expanded .hero-text {
    display: block;
}

.hero-read-more {
    display: inline-block;
    color: white;
    background: transparent;
    border: 1px solid white;
    padding: 5px 15px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.4;
    font-family: 'Open Sans', sans-serif;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0;
}

.hero-read-more:hover {
    background-color: white;
    color: #8A2422;
}

/* Section Header */
.collaborators-header {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    margin-top: 40px;
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
}

/* Result Item Styling */
.result-item {
    background: white;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    /* Soft shadow, floating on grey */
    display: flex;
    flex-direction: column;
    border: none;
    /* No grey box border */
}

.result-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.result-name-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.result-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
}

.result-name a:not(.curis-tag) {
    color: #8A2422;
    text-decoration: underline;
}

.result-name a:not(.curis-tag):hover {
    color: #6A1C1A;
    text-decoration: underline;
}

.result-affil {
    font-size: 0.9rem;
    color: #666;
}

.r-title,
.r-title-with-affil {
    font-weight: 600;
    margin-right: 5px;
}

.r-title-with-affil::after {
    content: ",";
}

/* Full Explanation (No truncation for collaborators) */
.explanation {
    font-size: 1rem;
    line-height: 1.6;
    color: #444;
}

/* Footer & Voting */
.result-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-top: 15px;
    margin-top: 15px;
    border-top: 1px solid #f9f9f9;
}

.vote-label {
    font-size: 0.85rem;
    color: #888;
    margin-right: 12px;
}

.vote-buttons {
    display: flex;
    gap: 8px;
}

.vote-btn {
    padding: 6px 10px;
    font-size: 0.85rem;
    border-radius: 4px;
}

.show-more-btn {
    display: block;
    margin: 30px auto;
    padding: 12px 30px;
    background: #8A2422;
    color: white;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    box-shadow: 0 4px 10px rgba(138, 36, 34, 0.2);
}

.show-more-btn:hover {
    background: #6d1c1a;
    transform: translateY(-2px);
}

/* Remove default search box shadow/background to eliminate "grey box" effect if needed */
/* Assuming .search-box is the container the user wants to blend */
.search-box {
    background: white;
    /* Keep white for input area contrast */
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    /* Minimal shadow */
    border-radius: 8px;
}

/* Hide legacy elements just in case */
.theme-selector {
    display: none !important;
}

/* Align footer disclaimer box width with search boxes */
footer>div {
    max-width: calc(100% - 70px);
    margin-left: auto;
    margin-right: auto;
}