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

:root {
    --primary: #0A1F44;
    --primary-dark: #061222;
    --navy: #1B3A5F;
    --scarlet: #C41E3A;
    --scarlet-dark: #8B1428;
    --gold: #D4AF37;
    --gold-dark: #B8941F;
    --purple: #6A1B9A;
    --secondary: #D4AF37;
    --accent: #C41E3A;
    --light: #FFF8E7;
    --linen: #FAF6ED;
    --dark: #0A1F44;
    --gray: #5D5D6D;
    --white: #FFFFFF;
    --shadow: rgba(10, 31, 68, 0.2);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.navbar {
    background: linear-gradient(135deg, var(--navy) 0%, var(--primary) 100%);
    box-shadow: 0 2px 8px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 3px solid var(--gold);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.nav-brand {
    position: relative;
    display: inline-block;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.85rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.1;
    color: var(--gold);
    background: linear-gradient(
        135deg,
        #FFF8C6 0%,
        var(--gold) 35%,
        #FFFFFF 50%,
        var(--gold-dark) 70%,
        var(--scarlet) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow:
        0 2px 0 rgba(0, 0, 0, 0.25),
        0 6px 18px rgba(212, 175, 55, 0.35);
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.35));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.nav-brand::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -0.4rem;
    width: 72%;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--scarlet) 15%,
        var(--gold) 50%,
        var(--scarlet) 85%,
        transparent 100%
    );
    transform: translateX(-50%);
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.7);
}

.nav-brand:hover {
    transform: translateY(-2px) scale(1.03);
    filter: drop-shadow(0 5px 12px rgba(212, 175, 55, 0.45));
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--linen);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--gold);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--gold);
    transition: 0.3s;
}

.hero {
    position: relative;
    height: 800px;
    background: url('vanguard-university.jpg') center center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.hero h1 {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 4rem;
    margin-bottom: 1rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.1;
    color: var(--gold);
    background: linear-gradient(
        135deg,
        #FFFFFF 0%,
        #FFF8C6 20%,
        var(--gold) 45%,
        var(--scarlet) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow:
        0 3px 0 rgba(0, 0, 0, 0.35),
        0 8px 24px rgba(0, 0, 0, 0.65);
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.55));
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold) 0%, var(--secondary) 100%);
    color: var(--dark);
    border: 2px solid var(--gold);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--gold) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--scarlet) 0%, var(--scarlet-dark) 100%);
    color: var(--white);
    border: 2px solid var(--scarlet);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--scarlet-dark) 0%, var(--scarlet) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(196, 30, 58, 0.4);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.section {
    padding: 4rem 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, var(--navy) 0%, var(--scarlet) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.bg-light {
    background: linear-gradient(180deg, var(--linen) 0%, var(--light) 100%);
}

.service-times {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    background: linear-gradient(135deg, var(--white) 0%, var(--linen) 100%);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px var(--shadow);
    text-align: center;
    transition: all 0.3s;
    border: 2px solid var(--gold);
    border-top: 4px solid var(--scarlet);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(196, 30, 58, 0.3);
    border-top-color: var(--gold);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    background: linear-gradient(135deg, var(--navy) 0%, var(--scarlet) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.time {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gold);
    margin: 0.5rem 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.welcome-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.welcome-text h2 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--navy) 0%, var(--scarlet) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.welcome-text p {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: var(--gray);
}

.welcome-text .btn {
    margin-top: 1rem;
}

.welcome-image {
    border-radius: 12px;
    overflow: hidden;
}

.welcome-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.placeholder-image {
    background: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 100%);
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 600;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature {
    text-align: center;
    padding: 1.5rem;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature h3 {
    color: var(--navy);
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.feature p {
    color: var(--gray);
}

.page-header {
    background: linear-gradient(135deg, var(--navy) 0%, var(--primary) 50%, var(--scarlet-dark) 100%);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
    border-bottom: 4px solid var(--gold);
    box-shadow: 0 4px 12px var(--shadow);
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    color: var(--gold);
}

.page-header p {
    font-size: 1.25rem;
    opacity: 0.95;
    color: var(--linen);
}

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.content-main h2 {
    background: linear-gradient(135deg, var(--navy) 0%, var(--scarlet) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 2rem 0 1rem;
    font-size: 2rem;
    font-weight: 700;
}

.content-main h2:first-child {
    margin-top: 0;
}

.content-main p {
    margin-bottom: 1rem;
    color: var(--gray);
    font-size: 1.05rem;
}

.values-list {
    display: grid;
    gap: 1.5rem;
    margin: 2rem 0;
}

.value-item {
    background: linear-gradient(135deg, var(--linen) 0%, var(--light) 100%);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--gold);
    border-top: 2px solid var(--scarlet);
}

.value-item h3 {
    color: var(--navy);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.belief-list {
    list-style: none;
    padding-left: 0;
}

.belief-list li {
    padding: 0.75rem 0 0.75rem 2rem;
    position: relative;
    color: var(--gray);
}

.belief-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: 700;
    font-size: 1.2rem;
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-card {
    background: linear-gradient(135deg, var(--linen) 0%, var(--light) 100%);
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid var(--scarlet);
    border-top: 3px solid var(--gold);
}

.sidebar-card h3 {
    color: var(--navy);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.leader {
    margin-bottom: 1.5rem;
}

.leader h4 {
    color: var(--dark);
    margin-bottom: 0.25rem;
}

.role {
    color: var(--gold);
    font-weight: 600;
    font-size: 0.9rem;
}

.leader p {
    color: var(--gray);
    font-size: 0.9rem;
}

.events-list {
    display: grid;
    gap: 2rem;
}

.event-card {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 12px var(--shadow);
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    transition: transform 0.3s;
}

.event-card:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 20px var(--shadow);
}

.event-date {
    background: linear-gradient(135deg, var(--navy) 0%, var(--scarlet) 100%);
    color: var(--white);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    min-width: 80px;
    height: fit-content;
    border: 2px solid var(--gold);
    box-shadow: 0 2px 8px rgba(196, 30, 58, 0.3);
}

.date-day {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.date-month {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 0.25rem;
}

.event-content h3 {
    background: linear-gradient(135deg, var(--navy) 0%, var(--scarlet) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.event-meta {
    color: var(--gold);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.event-location {
    color: var(--gray);
    margin-top: 0.75rem;
    font-weight: 500;
}

.cta-box {
    text-align: center;
    padding: 3rem 2rem;
}

.cta-box h2 {
    background: linear-gradient(135deg, var(--navy) 0%, var(--scarlet) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    font-weight: 700;
}

.cta-box p {
    color: var(--gray);
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.weekly-events {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.weekly-event {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
}

.weekly-event h3 {
    color: var(--navy);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.weekly-event p:first-of-type {
    font-weight: 600;
    color: var(--gold);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
}

.contact-form-section h2 {
    background: linear-gradient(135deg, var(--navy) 0%, var(--scarlet) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem;
    border: 2px solid #E0E0E0;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(10, 31, 68, 0.1);
}

.form-group textarea {
    resize: vertical;
}

.form-message {
    padding: 1rem;
    border-radius: 6px;
    text-align: center;
    font-weight: 600;
    display: none;
}

.form-message.show {
    display: block;
}

.form-message.success {
    background-color: #D4EDDA;
    color: #155724;
}

.form-message.error {
    background-color: #F3E5F5;
    color: var(--purple);
}

.contact-info-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-info-card {
    background: var(--light);
    padding: 1.5rem;
    border-radius: 12px;
}

.contact-info-card h3 {
    color: var(--navy);
    margin-bottom: 0.75rem;
    margin-top: 1.5rem;
    font-weight: 600;
}

.contact-info-card h3:first-child {
    margin-top: 0;
}

.contact-info-card p {
    color: var(--gray);
    line-height: 1.8;
}

.contact-info-card ul {
    list-style: none;
    padding-left: 0;
}

.contact-info-card ul li {
    padding: 0.5rem 0 0.5rem 1.5rem;
    position: relative;
    color: var(--gray);
}

.contact-info-card ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-size: 1.5rem;
    line-height: 1;
}

.map-section {
    text-align: center;
}

.map-section h2 {
    background: linear-gradient(135deg, var(--navy) 0%, var(--scarlet) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2rem;
    font-weight: 700;
}

.map-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px var(--shadow);
}

.map-container iframe {
    display: block;
}

.map-placeholder {
    background: var(--white);
    padding: 4rem 2rem;
    border-radius: 12px;
    border: 2px dashed var(--accent);
}

.map-placeholder p {
    margin: 0.5rem 0;
    color: var(--gray);
}

.map-note {
    font-size: 0.9rem;
    font-style: italic;
    margin-top: 1rem;
}

.footer {
    background: linear-gradient(180deg, var(--dark) 0%, var(--primary-dark) 100%);
    color: var(--linen);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
    border-top: 3px solid var(--gold);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h4 {
    color: var(--gold);
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-col p {
    margin: 0.5rem 0;
    line-height: 1.8;
}

.footer-col a {
    display: block;
    color: var(--light);
    text-decoration: none;
    margin: 0.5rem 0;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

.verse-of-day {
    margin: 1.5rem auto 1rem;
    max-width: 700px;
    max-height: 250px;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.verse-of-day::-webkit-scrollbar {
    display: none;
}

.verse-loading {
    color: var(--white);
    font-style: italic;
    opacity: 0.9;
}

.verse-content-hero {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 1.25rem 1.75rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.verse-text-hero {
    font-size: 1.0625rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
    font-style: italic;
}

.verse-reference-hero {
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0.95;
}

.bible-search-container {
    max-width: 800px;
    margin: 0 auto;
}

.search-box {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 12px var(--shadow);
    margin-bottom: 2rem;
}

.search-box h2 {
    background: linear-gradient(135deg, var(--navy) 0%, var(--scarlet) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.search-type-toggle {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    background: var(--light);
    padding: 0.5rem;
    border-radius: 8px;
}

.toggle-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    color: var(--gray);
    cursor: pointer;
    transition: all 0.3s;
}

.toggle-btn.active {
    background: linear-gradient(135deg, var(--navy) 0%, var(--scarlet) 100%);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(196, 30, 58, 0.3);
}

.toggle-btn:hover:not(.active) {
    background: rgba(10, 31, 68, 0.1);
}

.search-help {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.bible-search-form {
    display: flex;
    gap: 1rem;
}

.bible-search-form input {
    flex: 1;
    padding: 0.875rem 1rem;
    border: 2px solid #E0E0E0;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.bible-search-form input:focus {
    outline: none;
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(10, 31, 68, 0.1);
}

.quick-links {
    background: linear-gradient(135deg, var(--linen) 0%, var(--light) 100%);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    margin-top: 2rem;
    border: 2px solid var(--gold);
}

.quick-links h3 {
    color: var(--navy);
    margin-bottom: 1rem;
    font-weight: 600;
}

.quick-link-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.quick-link-btn {
    padding: 0.625rem 1.25rem;
    background: var(--white);
    border: 2px solid var(--navy);
    color: var(--dark);
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.quick-link-btn:hover {
    background: linear-gradient(135deg, var(--navy) 0%, var(--scarlet) 100%);
    color: var(--white);
    border-color: var(--gold);
    transform: translateY(-2px);
}

.bible-result {
    max-width: 800px;
    margin: 2rem auto 0;
    min-height: 200px;
}

.result-empty,
.result-loading,
.result-error {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--gray);
}

.result-error {
    color: var(--purple);
    font-weight: 600;
}

.verse-content {
    background: linear-gradient(135deg, var(--white) 0%, var(--linen) 100%);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px var(--shadow);
    border-left: 4px solid var(--gold);
    border-top: 3px solid var(--scarlet);
}

.verse-reference {
    background: linear-gradient(135deg, var(--navy) 0%, var(--scarlet) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.verse-text {
    color: var(--dark);
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.verse-item {
    margin-bottom: 0.75rem;
}

.verse-number {
    display: inline-block;
    font-weight: 700;
    color: var(--gold);
    margin-right: 0.5rem;
    min-width: 1.5rem;
}

.verse-translation {
    color: var(--gray);
    font-size: 0.9rem;
    font-style: italic;
    text-align: right;
    margin-top: 1rem;
}

.search-result-count {
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--light);
}

.search-results-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.search-result-item {
    padding: 1rem;
    background: var(--linen);
    border-radius: 8px;
    border-left: 3px solid var(--gold);
    border-top: 2px solid var(--scarlet);
    transition: all 0.3s;
}

.search-result-item:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(196, 30, 58, 0.2);
}

.search-result-ref {
    color: var(--navy);
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.search-result-text {
    color: var(--dark);
    line-height: 1.6;
    margin: 0;
}

.chapter-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1.5rem 0;
    gap: 1rem;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, var(--navy) 0%, var(--scarlet) 100%);
    color: var(--white);
    border: 2px solid var(--gold);
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.nav-btn:hover {
    background: linear-gradient(135deg, var(--scarlet) 0%, var(--navy) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(196, 30, 58, 0.4);
}

.nav-arrow {
    font-size: 1.25rem;
    font-weight: 700;
}

.nav-prev {
    margin-right: auto;
}

.nav-next {
    margin-left: auto;
}

.table-of-contents {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 12px var(--shadow);
    margin-top: 2rem;
}

.table-of-contents h3 {
    background: linear-gradient(135deg, var(--navy) 0%, var(--scarlet) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.toc-description {
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.chapter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
}

.chapter-btn {
    padding: 0.75rem 1rem;
    background: var(--white);
    border: 2px solid var(--navy);
    color: var(--dark);
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.chapter-btn:hover {
    background: linear-gradient(135deg, var(--navy) 0%, var(--scarlet) 100%);
    color: var(--white);
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(196, 30, 58, 0.3);
}

/* Gallery Styles */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.gallery-item {
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    background: var(--white);
    box-shadow: 0 4px 12px var(--shadow);
    border: 2px solid var(--gold);
    transition: all 0.3s;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(212, 175, 55, 0.3);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(196, 30, 58, 0.3);
    border-color: var(--scarlet);
}

.gallery-thumbnail {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.gallery-item:hover .gallery-thumbnail {
    transform: scale(1.05);
}

.gallery-item-caption {
    padding: 1rem;
    text-align: center;
    color: var(--navy);
    font-weight: 600;
    font-size: 0.95rem;
}

.gallery-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--gray);
    font-size: 1.125rem;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    min-height: -webkit-fill-available;
    background: rgba(10, 31, 68, 0.95);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    -webkit-overflow-scrolling: touch;
}

.lightbox-active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-image-loaded {
    opacity: 1;
}

.lightbox-caption {
    color: var(--gold);
    font-size: 1.125rem;
    font-weight: 600;
    margin-top: 1.5rem;
    text-align: center;
    max-width: 600px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: fixed;
    background: var(--scarlet);
    color: var(--white);
    border: 2px solid var(--gold);
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    z-index: 1001;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--scarlet-dark);
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(196, 30, 58, 0.5);
}

.lightbox-close {
    top: 2rem;
    right: 2rem;
    font-size: 2.5rem;
    line-height: 1;
}

.lightbox-prev {
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-prev:hover {
    transform: translateY(-50%) scale(1.1);
}

.lightbox-next {
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next:hover {
    transform: translateY(-50%) scale(1.1);
}

/* Leader Bio Modal Styles */
.leader-name {
    cursor: pointer;
    transition: color 0.3s;
    position: relative;
}

.leader-name:hover {
    color: var(--gold);
}

.leader-name::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s;
}

.leader-name:hover::after {
    width: 100%;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-active {
    display: flex;
    animation: modalFadeIn 200ms ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 31, 68, 0.85);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: var(--white);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border: 2px solid var(--gold);
    border-top: 4px solid var(--scarlet);
    animation: modalSlideIn 200ms ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    color: var(--navy);
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.modal-close:hover {
    background: var(--linen);
    color: var(--scarlet);
    transform: rotate(90deg);
}

.modal-close:focus {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

.modal-image {
    margin-bottom: 1.5rem;
    text-align: center;
}

.modal-image img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--gold);
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.3);
}

.modal-title {
    background: linear-gradient(135deg, var(--navy) 0%, var(--scarlet) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-right: 2rem;
    text-align: center;
}

.modal-body {
    color: var(--dark);
    line-height: 1.8;
}

.modal-body p {
    margin-bottom: 1rem;
