:root {
    --primary-color: #2C4B55;
    --secondary-color: #E0E0E0;
    --text-color: #333;
    --white: #fff;
    --light-bg: #f9f9f9;
    --card-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

h1, h2, h3, h4 {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-weight: normal;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Header */
header {
    background-color: var(--light-bg);
    padding: 0.8rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
    width: 100%;
    position: relative;
    z-index: 1001;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: Georgia, serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: bold;
}

.menu-icon {
    font-size: 1.5rem;
    cursor: pointer;
}

/* Simple inner pages */
.page-titlebar {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 1.2rem 1rem;
    box-shadow: var(--card-shadow);
}

.page-titlebar h1 {
    font-size: 2.2rem;
    line-height: 1.1;
}

.page-content {
    padding: 1.5rem 1rem 2rem;
    max-width: 46rem;
    margin: 0 auto;
}

.page-content h2 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin: 1.25rem 0 0.75rem;
}

.page-content p {
    margin-bottom: 1rem;
}

.page-content a {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Spotlight Section */
.spotlight {
    background-color: #555; /* Fallback */
    background-image: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(44, 75, 85, 0.9)), url('../img/book_glasses_type.png');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 4rem 1rem 1rem;
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 300px;
}

.spotlight-content {
    background: transparent;
    padding: 1rem;
    width: 100%;
}

.spotlight-label {
    font-family: Georgia, serif;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    display: block;
    line-height: 1.2;
}

.spotlight h2 {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--white);
    font-weight: normal;
}

.read-more {
    display: block;
    text-align: right;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Understand Section */
.understand-section {
    padding: 2rem 1rem;
    text-align: center;
}

.understand-section h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.nav-button {
    background-color: #E8E8E8;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: background-color 0.2s;
}

.nav-button:hover {
    background-color: #dcdcdc;
}

.nav-button i {
    color: var(--primary-color);
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.nav-button span {
    font-size: 1.1rem;
    color: #555;
}

/* Explore Section */
.explore-section {
    background-color: var(--primary-color);
    padding: 2rem 1rem;
    color: var(--white);
}

.explore-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.4rem;
}

.tool-card {
    background-color: var(--white);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

/* Explore by Tool */
.tool-picker {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0.25rem 0 1rem;
}

.tool-section-title {
    margin: 1.25rem 0 0.75rem;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.tool-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.tool-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border: 1px solid var(--secondary-color);
    border-radius: 8px;
    color: var(--text-color);
}

.tool-row:hover {
    background-color: var(--light-bg);
}

.tool-row-text {
    flex: 1;
}

.tool-row-title {
    font-weight: bold;
    color: var(--primary-color);
}

.tool-row-subtitle {
    color: #555;
}

.tool-widget {
    border: 1px solid var(--secondary-color);
    border-radius: 8px;
    overflow: hidden;
}

.tool-iframe {
    width: 100%;
    height: 70vh;
    border: 0;
    display: block;
}

.tool-hint {
    margin-top: 0.75rem;
    color: #555;
    display: none;
}

@media (max-width: 768px) {
    .tool-hint {
        display: block;
    }
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.card-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
}

.help-icon {
    color: #999;
    cursor: pointer;
}

.select-input, .text-input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: var(--white);
    font-size: 1rem;
    color: #777;
    appearance: none; /* Remove default arrow */
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23007CB2%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right .7em top 50%;
    background-size: .65em auto;
}

.search-row {
    display: flex;
    gap: 0.5rem;
}

.text-input {
    background-image: none; /* Reset for text input */
    flex-grow: 1;
}

.search-icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.input-wrapper {
    position: relative;
    flex-grow: 1;
}

.book-btn {
    background-color: var(--white);
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Image Links Section */
.image-link-section {
    position: relative;
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    background-size: cover;
    background-position: center;
    padding: 1rem;
}

.bg-read {
    background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('../img/bom-on-leaves.png');
}

.bg-learn {
    background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('../img/nauvoo-temple.png');
}

.image-link-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.action-btn {
    background-color: rgba(255, 255, 255, 0.9);
    color: #333;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 3rem 1rem;
    text-align: center;
}

.footer-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.footer-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.3);
}

.footer-section:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 1rem;
}

.footer-link {
    color: #81C3D7; /* Light blue accent */
    text-decoration: none;
}

.back-to-top {
    display: block;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: var(--white);
}

.copyright {
    margin-top: 1rem;
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Generated content pages */
.page-hero {
    height: 160px;
    background-size: cover;
    background-position: center;
}

.page-hero--people {
    background-image: url('../img/book_glasses_type.png');
}

.page-hero--influences {
    background-image: url('../img/bom-on-leaves.png');
}

.page-hero--concepts {
    background-image: url('../img/book_glasses_type.png');
}

.page-content--wide {
    max-width: 62rem;
}

.content-title {
    font-size: 2.4rem;
    line-height: 1.15;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.content-subtitle {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 1.5rem;
    line-height: 1.25;
    color: var(--primary-color);
    margin-bottom: 1.75rem;
}

.people-search {
    margin-bottom: 1rem;
}

.people-search .text-input {
    background-color: var(--secondary-color);
    border: none;
    border-radius: 999px;
    padding: 0.65rem 2.5rem 0.65rem 1rem;
    color: var(--primary-color);
}

.people-search .text-input::placeholder {
    color: rgba(44, 75, 85, 0.55);
}

.people-search .search-icon-btn {
    right: 14px;
}

.people-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.person-card {
    display: block;
    text-align: center;
    padding: 0;
}

.person-thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 4px;
    display: block;
    background-color: var(--secondary-color);
}

.person-thumb--empty {
    background-color: var(--secondary-color);
}

.person-name {
    margin-top: 0.5rem;
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 0.8rem;
    line-height: 1.15;
    color: var(--primary-color);
}

.list {
    background-color: var(--white);
}

.list-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(44, 75, 85, 0.25);
    color: var(--primary-color);
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 1.25rem;
    text-decoration: none;
}

.page-content a.list-row,
.page-content a.list-row:hover,
.page-content a.list-row:focus {
    text-decoration: none;
}

.list-row i {
    opacity: 0.65;
    margin-left: 1rem;
}

.detail-hero {
    height: 160px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.detail-hero-title {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(224, 224, 224, 0.75);
    padding: 0.75rem 1rem;
    text-align: center;
}

.detail-hero-title h1 {
    color: var(--primary-color);
    font-size: 2.2rem;
}

.accordion {
    background-color: #eee;
    border-radius: 6px;
    margin: 0.75rem 0;
    overflow: hidden;
}

.accordion summary {
    list-style: none;
    cursor: pointer;
    padding: 0.9rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--primary-color);
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 1.3rem;
}

.accordion summary::-webkit-details-marker {
    display: none;
}

.accordion[open] summary i {
    transform: rotate(180deg);
}

.accordion summary i {
    transition: transform 0.15s;
}

.accordion-body {
    background-color: var(--white);
    padding: 1rem;
}

.subheading {
    margin-top: 1rem;
    font-size: 1rem;
    color: var(--primary-color);
}

/* Explore by Person */
.explore-person-select {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0.25rem 0 1rem;
}

.explore-person-select .select-input {
    flex: 1;
    margin: 0;
}

.explore-person-avatar {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
    background-color: var(--secondary-color);
}

/* Similar Verse Finder */
.svf-search {
    margin-bottom: 1rem;
}

.svf-heading {
    text-align: center;
    margin: 0 0 1rem;
    color: var(--primary-color);
}

button.list-row.svf-row {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.svf-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.6rem;
}

.svf-tile {
    background-color: var(--white);
    border: 1px solid var(--secondary-color);
    border-radius: 12px;
    padding: 0.75rem 0;
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 1.15rem;
    color: var(--primary-color);
    cursor: pointer;
}

.svf-tile.is-active {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.svf-tile:hover {
    background-color: var(--secondary-color);
}

.svf-widget {
    background-color: var(--secondary-color);
    border-radius: 30px;
    padding: 1rem;
}

.svf-iframe {
    width: 100%;
    height: 720px;
    border: 0;
    border-radius: 20px;
    display: block;
    background-color: var(--white);
}

.explore-person-bio p {
    margin-bottom: 1rem;
    font-family: Georgia, 'Times New Roman', Times, serif;
    color: var(--primary-color);
}

.explore-person-tabs {
    display: inline-flex;
    background-color: var(--secondary-color);
    border-radius: 10px;
    overflow: hidden;
    margin: 0.75rem 0;
}

.explore-person-tab {
    border: none;
    background: transparent;
    padding: 0.55rem 0.9rem;
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 1.05rem;
    color: var(--primary-color);
    cursor: pointer;
}

.explore-person-tab.is-active {
    background-color: rgba(255, 255, 255, 0.7);
}

.explore-widget-summary {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.explore-widget-summary > i {
    opacity: 0.8;
}

.explore-widget-title {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 1.1rem;
    line-height: 1.1;
}

.explore-widget-subtitle {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 0.85rem;
    line-height: 1.2;
    opacity: 0.75;
    margin-top: 0.15rem;
}

.explore-widget-frame iframe {
    width: 100%;
    height: 520px;
    border: 0;
    display: block;
    background-color: var(--white);
}

@media (max-width: 340px) {
    .people-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: rgba(176, 196, 205, 0.95); /* Light blue-ish overlay */
    z-index: 1000;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-top: 1px solid rgba(255,255,255,0.3);
}

.mobile-menu.active {
    display: block;
}

.menu-section {
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding-bottom: 0.5rem;
}

.menu-section:last-child {
    border-bottom: none;
}

.menu-section h3 {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 1rem;
    color: #2C4B55;
    margin-bottom: 0.5rem;
    padding-left: 0.5rem;
}

.mobile-menu a.menu-item,
.mobile-menu .menu-item > a {
    display: flex;
    align-items: center;
    padding: 0.8rem 0.5rem;
    color: #2C4B55;
    text-decoration: none;
    font-size: 1.1rem;
    transition: background-color 0.2s;
    border-radius: 4px;
}

.mobile-menu a.menu-item:hover,
.mobile-menu .menu-item > a:hover {
    background-color: rgba(255,255,255,0.3);
}

.menu-item i {
    width: 30px;
    text-align: center;
    margin-right: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.3);
}

.menu-item:last-child a {
    border-bottom: none;
}

.menu-item .arrow {
    margin-left: auto;
    font-size: 0.9rem;
    opacity: 0.6;
}

.home-link {
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding-bottom: 0.5rem;
}

/* Header adjustments */
/* Removed redundant header block */
