
/* The Temple of the Data Server - Premium Modern Theme */

:root {
    --primary-color: #1a73e8;
    --accent-color: #fbbc05;
    --background-dark: #181c24;
    --background-glass: rgba(32, 36, 48, 0.85);
    --background-light: #f7f8fa;
    --text-main: #f7f8fa;
    --text-secondary: #bfc7d5;
    --text-dark: #23272f;
    --border-glass: rgba(255,255,255,0.12);
    --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.18);
    --font-serif: 'Merriweather', 'Georgia', serif;
    --font-sans: 'Inter', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-serif);
    color: var(--text-main);
    background: linear-gradient(135deg, #23272f 0%, #1a1d23 100%);
    min-height: 100vh;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-sans);
    font-weight: 800;
    color: var(--primary-color);
    margin: 2rem 0 1rem 0;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

h1 {
    font-size: 3.2rem;
    color: var(--accent-color);
    text-shadow: 0 2px 24px rgba(26,115,232,0.12);
}

h2 {
    font-size: 2.2rem;
}

h3 {
    font-size: 1.5rem;
}

p, li {
    font-family: var(--font-serif);
    color: var(--text-secondary);
    font-size: 1.15rem;
    margin-bottom: 1.2rem;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 600;
}

a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2.5rem;
}

/* Glassmorphism Navbar */
.navbar {
    background: var(--background-glass);
    box-shadow: var(--shadow-glass);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-glass);
    backdrop-filter: blur(16px);
    padding: 0.5rem 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2.5rem;
}

.logo {
    display: flex;
    align-items: center;
    font-family: var(--font-sans);
    font-size: 2rem;
    font-weight: 900;
    color: var(--accent-color);
    letter-spacing: -0.03em;
}

.logo-icon {
    font-size: 2.2rem;
    margin-right: 0.5rem;
    color: var(--primary-color);
    filter: drop-shadow(0 2px 8px #1a73e8cc);
}

.nav-links {
    display: flex;
    gap: 2.2rem;
    list-style: none;
}

.nav-link {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    color: var(--text-main);
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
    transition: var(--transition);
}

.nav-link.active, .nav-link:hover {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 2px 12px 0 #1a73e855;
}

/* Hero Section */
.hero {
    background: linear-gradient(120deg, #1a73e8 0%, #23272f 100%);
    color: #fff;
    padding: 5rem 0 4rem 0;
    text-align: center;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.18);
    border-bottom-left-radius: 48px;
    border-bottom-right-radius: 48px;
    position: relative;
    overflow: hidden;
}

.hero-title {
    font-size: 3.5rem;
    color: var(--accent-color);
    margin-bottom: 1.2rem;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 32px #1a73e8cc;
}

.hero-kicker {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.hero-byline {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2.2rem;
}

.hero-quote {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: #fff;
    background: rgba(26,115,232,0.10);
    border-left: 4px solid var(--accent-color);
    margin: 2rem auto 2.5rem auto;
    padding: 1.2rem 2rem;
    max-width: 600px;
    border-radius: 12px;
    box-shadow: 0 2px 16px 0 #1a73e822;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.btn {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 700;
    padding: 0.8rem 2.2rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 12px 0 #1a73e822;
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
}
.btn-primary:hover {
    background: var(--accent-color);
    color: var(--primary-color);
}
.btn-secondary {
    background: var(--accent-color);
    color: var(--primary-color);
}
.btn-secondary:hover {
    background: var(--primary-color);
    color: #fff;
}
.btn-outline-dark {
    background: transparent;
    color: var(--text-main);
    border: 2px solid var(--primary-color);
}
.btn-outline-dark:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Card/Panel Styles */
.page-container, .about-content, .excerpts-content {
    background: var(--background-glass);
    border-radius: 24px;
    box-shadow: var(--shadow-glass);
    padding: 2.5rem 2rem;
    margin: 3rem auto 2rem auto;
    max-width: 900px;
}

/* Footer */
footer {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1rem;
    margin: 3rem 0 1rem 0;
    padding: 1rem 0 0 0;
    border-top: 1px solid var(--border-glass);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.logo-icon {
    font-size: 1.25rem;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.25rem;
}

.nav-link {
    color: #4a3d39;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(145deg, #f8f1e4 0%, #f0e5d5 60%, #e8dac6 100%);
    color: var(--text-dark);
    padding: 6rem 2rem;
    position: relative;
    overflow: hidden;
    min-height: 86vh;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border-color);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 0.5rem;
    color: #2d2524;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
}

.hero-quote {
    font-size: 1.25rem;
    font-style: italic;
    color: #473834;
    margin: 2rem 0;
    padding: 2rem;
    border-left: 4px solid var(--accent-color);
    background: rgba(154, 106, 47, 0.09);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 3rem;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-book-panel {
    text-align: left;
    background: rgba(255, 252, 247, 0.84);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 20px 45px rgba(82, 63, 50, 0.09);
}

.hero-kicker {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-byline {
    color: #5a4c45;
    margin-top: 0.25rem;
    font-size: 1rem;
}

.hero-cover-panel {
    display: grid;
    gap: 1.25rem;
}

.book-cover-card {
    background: linear-gradient(180deg, #f8f0df 0%, #eedfc8 100%);
    border: 1px solid #d7c9b4;
    border-radius: 24px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 24px 50px rgba(69, 52, 42, 0.15);
}

.book-cover-top {
    color: var(--primary-color);
    letter-spacing: 0.28em;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.book-cover-ornament {
    color: var(--primary-color);
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.book-cover-title {
    color: var(--text-dark);
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.book-cover-author {
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.book-cover-note {
    color: #5b4b42;
    font-size: 0.95rem;
}

.release-box {
    background: #fffaf2;
    border: 1px solid #dfd0bf;
    border-radius: 18px;
    padding: 1.5rem;
    color: var(--text-dark);
}

.release-box h3 {
    color: var(--primary-color);
    margin-top: 0;
}

.btn-outline-dark {
    background: transparent;
    border: 1px solid #8f7362;
    color: #4a3b34;
}

.btn-outline-dark:hover {
    background: #f2e6d8;
    color: #3f302a;
}

.book-intro {
    padding: 5rem 0;
}

.intro-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
    gap: 2rem;
    align-items: start;
}

.intro-copy {
    background: #fffdf9;
    padding: 2rem;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(82, 63, 50, 0.08);
}

.intro-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.intro-sidebar {
    display: grid;
    gap: 1rem;
}

.info-card {
    background: #f6efe3;
    border: 1px solid #e2d6c6;
    border-radius: 16px;
    padding: 1.25rem;
}

.info-card h3 {
    margin-top: 0;
    font-size: 1rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.info-card p {
    margin-bottom: 0;
}

.author-strip {
    padding: 1rem 0 5rem;
}

.author-strip-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    background: linear-gradient(135deg, rgba(127, 47, 36, 0.08), rgba(47, 95, 107, 0.1));
    border: 1px solid rgba(127, 47, 36, 0.2);
    border-radius: 20px;
    padding: 2rem;
}

.section-label {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--accent-color);
}

.author-strip-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.hero-background {
    display: none;
}

.matrix {
    display: none;
}

@keyframes matrix-scroll {
    0% { transform: translateY(0); }
    100% { transform: translateY(100px); }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
    border: 1px solid #6f251c;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(111, 37, 28, 0.2);
    color: #fff;
}

.btn-secondary {
    background: #fff7ec;
    color: #4a2f2a;
    border: 1px solid #b5967b;
}

.btn-secondary:hover {
    background: #f0deca;
    color: #3e2622;
}

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

.btn-prev, .btn-next {
    background: var(--primary-color);
    color: var(--dark-bg);
    padding: 0.75rem 1.5rem;
}

.btn-prev:hover, .btn-next:hover {
    background: var(--accent-color);
}

/* Section Styles */
section {
    padding: 4rem 0;
}

.section-subtitle {
    font-size: 1.25rem;
    color: #666;
    margin-bottom: 2rem;
    text-align: center;
}

/* Books Overview */
.books-overview {
    margin: 3rem 0;
}

.book-group {
    margin: 3rem 0;
}

.book-group h3 {
    margin-bottom: 0.5rem;
}

.group-subtitle {
    color: #888;
    margin-bottom: 2rem;
}

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

.book-card {
    background: linear-gradient(135deg, #f5f5f5 0%, #fff 100%);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.book-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.book-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color), var(--accent-color));
}

.book-number {
    display: inline-block;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--dark-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.book-card h4 {
    margin-top: 0;
}

.book-era {
    display: block;
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* Featured Books */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.featured-card {
    background: #fffdf8;
    border: 1px solid #eadfce;
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
}

.featured-card:hover {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.featured-header {
    background: linear-gradient(135deg, #7f2f24, #a46336);
    color: #fdf8f0;
    padding: 1rem;
    font-weight: 700;
    font-size: 0.9rem;
}

.featured-card > * {
    padding: 0 1.5rem;
}

.featured-card h3 {
    margin-top: 1.5rem;
}

.featured-subtitle {
    color: var(--primary-color);
    font-weight: 600;
}

.featured-description {
    color: #666;
    line-height: 1.6;
}

.featured-stats {
    display: flex;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: #f6efe4;
    border-top: 1px solid #e8ddcd;
    font-size: 0.9rem;
}

.featured-stats span {
    flex: 1;
}

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

.philosophy-card {
    background: linear-gradient(135deg, #f0f2f5 0%, #fff 100%);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
}

.philosophy-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

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

.philosophy-card h3 {
    color: var(--text-dark);
}

/* Timeline */
.timeline {
    display: flex;
    overflow-x: auto;
    gap: 2rem;
    padding: 2rem 0;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #bca58b, transparent);
    z-index: 0;
}

.timeline-item {
    flex: 0 0 auto;
    background: #fff;
    border: 1px solid #d8cdbc;
    border-radius: 8px;
    padding: 1.5rem;
    min-width: 150px;
    text-align: center;
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.timeline-item:hover {
    background: linear-gradient(135deg, #7f2f24, #9a6a2f);
    color: #fffaf2;
    border-color: #9a6a2f;
    transform: translateY(-5px);
}

.timeline-marker {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.timeline-item:hover .timeline-marker {
    color: #fff;
}

.timeline-item p {
    margin: 0;
    font-size: 0.9rem;
}

/* Footer */
.footer {
    background: #f3e9da;
    color: #4b3d35;
    padding: 3rem 0 1rem;
    border-top: 1px solid #d9ccba;
}

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

.footer-section h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin: 0.5rem 0;
}

.footer-section a {
    color: #5a4a42;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid #ddd0be;
    padding-top: 1rem;
    text-align: center;
    font-size: 0.9rem;
    color: #726157;
}

/* Chapters Page */
.chapters-page {
    min-height: 80vh;
}

.chapters-content h3 {
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.chapters-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
}

.chapter-item {
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    background: #f9f9f9;
    border-radius: 4px;
    transition: var(--transition);
}

.chapter-item:hover {
    background: #f0f0f0;
    transform: translateX(5px);
}

.chapter-item h4 {
    margin-top: 0;
}

.read-link {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-block;
    margin-top: 0.5rem;
}

/* Chapter Reader */
.chapter-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.chapter-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.book-nav {
    background: linear-gradient(135deg, #f5f5f5 0%, #fff 100%);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
}

.book-nav h3 {
    margin-top: 0;
}

.book-info {
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.chapters-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.chapter-link {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem;
    border-radius: 4px;
    color: var(--text-dark);
    transition: var(--transition);
}

.chapter-link:hover {
    background: #f0dfcd;
    color: #3f2e29;
}

.chapter-link.active {
    background: linear-gradient(135deg, #7f2f24, #9a6a2f);
    color: #fffaf2;
    font-weight: 600;
}

.ch-num {
    font-weight: 700;
    min-width: 25px;
}

/* Chapter Header */
.chapter-header {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.breadcrumb {
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.chapter-meta {
    color: #999;
    font-size: 0.95rem;
}

/* Chapter Content */
.content-body {
    line-height: 1.8;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.content-body p {
    margin-bottom: 1.5rem;
}

.content-body h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.content-body h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.content-body ul,
.content-body ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.content-body li {
    margin-bottom: 0.5rem;
}

.content-body blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
    margin: 2rem 0;
    color: #666;
    font-style: italic;
}

/* Chapter Navigation */
.chapter-nav-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.btn-prev, .btn-next {
    flex: 1;
    min-width: 200px;
}

/* About Page */
.about-page {
    max-width: 800px;
    margin: 0 auto;
}

.about-content h3 {
    margin-top: 2rem;
    color: var(--accent-color);
}

.about-content ul {
    margin-left: 2rem;
}

.about-content li {
    margin-bottom: 0.5rem;
}

/* Contact Page */
.contact-page {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

/* Newsletter Section */
.newsletter-section {
    background: #f5ebdc;
    color: #473832;
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid #deceba;
    border-bottom: 1px solid #deceba;
}

.newsletter-section h2 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.newsletter-section p {
    color: #6c5a50;
    margin-bottom: 2rem;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
}

.newsletter-form input {
    flex: 1;
    min-width: 200px;
    padding: 0.75rem 1rem;
    border: 1px solid #cab8a2;
    border-radius: 4px;
    font-family: var(--font-sans);
    font-size: 1rem;
}

.newsletter-form input::placeholder {
    color: #9b8a7e;
}

.newsletter-form button {
    padding: 0.75rem 2rem;
}

/* Sponsors Section */
.sponsors-section {
    padding: 3rem 0;
    background: #f9f9f9;
}

.sponsors-section h2 {
    text-align: center;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.sponsors-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
    place-items: center;
}

.sponsor-item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1rem;
    background: white;
    transition: var(--transition);
}

.sponsor-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.1);
}

.sponsor-logo-small {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
}

.sponsor-placeholder {
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
}

.sponsors-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.sponsors-empty {
    text-align: center;
    padding: 2rem;
}

/* CTA Box */
.cta-box {
    background: linear-gradient(135deg, #f4e7d4, #edd8bc);
    color: #45352f;
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
    text-align: center;
    border: 1px solid #d8c5ad;
}

.cta-box h3 {
    color: var(--primary-color);
    margin-top: 0;
}

.cta-box p {
    color: #5a4a42;
    margin-bottom: 1.5rem;
}

.cta-box .btn {
    background: var(--primary-color);
    color: #fff;
}

.cta-box .btn:hover {
    background: #6f251c;
}

/* Chapter Excerpt */
.chapter-excerpt {
    line-height: 1.8;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

/* Forms */
.contact-form,
.form-group {
    margin-bottom: 1.5rem;
}

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

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

.form-group input,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.form-note {
    font-size: 0.9rem;
    color: #666;
    margin-top: 1rem;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alert-success {
    background: rgba(6, 214, 160, 0.1);
    color: #06d6a0;
    border-left: 4px solid #06d6a0;
}

.alert-error {
    background: rgba(255, 0, 110, 0.1);
    color: #ff006e;
    border-left: 4px solid #ff006e;
}

/* About Page */
.about-hero,
.contact-hero,
.sponsors-hero {
    background: linear-gradient(145deg, #efe2d0 0%, #e6d3bb 100%);
    color: #3f302a;
    padding: 4rem 0;
    text-align: center;
    border-bottom: 1px solid #dacbb8;
}

.about-hero h1,
.contact-hero h1,
.sponsors-hero h1 {
    color: var(--primary-color);
}

.about-hero .subtitle,
.contact-hero .subtitle,
.sponsors-hero .subtitle {
    color: #5d4d45;
}

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

.about-section {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.about-section h2 {
    margin-top: 0;
}

.about-section ul {
    list-style: none;
    margin-left: 0;
}

.about-section ul li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.75rem;
}

.about-section ul li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
}

.topics-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.topic-tag {
    background: var(--light-bg);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #5c4035;
    border: 1px solid #cab59c;
}

.progress-box {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #ddd;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #7f2f24, #9a6a2f);
    transition: width 0.3s ease;
}

.ordination-section {
    border-top: 4px solid rgba(127, 47, 36, 0.18);
}

.ordination-steps {
    display: grid;
    gap: 0.9rem;
    margin-top: 1.25rem;
}

.ordination-step {
    padding: 1rem;
    border-radius: 10px;
    background: #f6efe3;
    border: 1px solid #dfcfbc;
}

.ordination-step h3 {
    margin: 0 0 0.4rem;
    color: #623126;
    font-size: 1.05rem;
}

.ordination-step p {
    margin: 0;
}

/* Vision Section */
.vision-section {
    padding: 3rem 0;
    background: #f9f9f9;
}

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

.vision-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.vision-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.vision-card h3 {
    margin-top: 0;
    color: var(--accent-color);
}

/* Contact Info */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.contact-info {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.contact-form-wrapper {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.contact-method {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.contact-method:last-child {
    border-bottom: none;
}

.contact-method h3 {
    margin-top: 0;
    color: var(--accent-color);
}

.quick-links {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #eee;
}

.quick-links ul {
    list-style: none;
    margin-left: 0;
}

.quick-links ul li {
    margin-bottom: 0.5rem;
}

.quick-links a {
    color: var(--primary-color);
}

/* FAQ */
.faq-section {
    padding: 3rem 0;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.faq-item {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.faq-item h3 {
    margin-top: 0;
    color: var(--accent-color);
}

/* Sponsor Cards */
.sponsor-level-section {
    margin: 3rem 0;
}

.sponsor-level-title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
}

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

.sponsor-card {
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.sponsor-card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.sponsor-logo {
    max-width: 100%;
    max-height: 100px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.sponsor-logo-placeholder {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #7f2f24, #9a6a2f);
    color: #fffaf2;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
}

.sponsor-card h3 {
    margin-top: 0;
}

.sponsor-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--primary-color);
    font-weight: 600;
}

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

.tier {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #ddd;
    text-align: center;
}

.tier h3 {
    margin-top: 0;
}

.become-sponsor {
    background: linear-gradient(135deg, #7f2f24, #9a6a2f);
    color: #fffaf2;
    padding: 3rem;
    border-radius: 8px;
    text-align: center;
    margin-top: 3rem;
}

.become-sponsor h2 {
    color: #fffaf2;
}

.become-sponsor p {
    color: rgba(255, 250, 242, 0.95);
}

.sponsor-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

/* Testimonials */
.testimonials-section {
    padding: 3rem 0;
    background: #f9f9f9;
}

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

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.testimonial-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
}

.testimonial-quote {
    font-style: italic;
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.testimonial-author {
    font-weight: 600;
}

.testimonial-author p {
    font-size: 0.9rem;
    color: #999;
    margin: 0;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-outline {
    background: transparent;
    border: 1px solid #f0dfcf;
    color: #fffaf2;
}

.btn-outline:hover {
    background: #fffaf2;
    color: #5f2f25;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .books-grid {
        grid-template-columns: 1fr;
    }

    .chapter-container {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .chapter-sidebar {
        position: static;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .timeline {
        flex-direction: column;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input {
        min-width: auto;
    }

    .sponsors-cta {
        flex-direction: column;
    }

    .sponsor-cta {
        flex-direction: column;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .vision-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        width: 100%;
        flex-direction: column;
        gap: 0.5rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .hero-quote {
        font-size: 1rem;
        padding: 1rem;
    }

    section {
        padding: 2rem 0;
    }
}

/* ===== ORDINATION TEST ===== */
.ordination-test {
    margin-top: 1.5rem;
}

.test-question {
    background: #fdf8f2;
    border: 1px solid #e5d5c0;
    border-left: 4px solid var(--primary-color);
    border-radius: 6px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.25rem;
}

.test-question p {
    margin-bottom: 0.75rem;
    font-size: 1rem;
    color: var(--text-dark);
}

.test-question label {
    display: block;
    padding: 0.35rem 0;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: color 0.15s;
}

.test-question label:hover {
    color: var(--primary-color);
}

.test-question input[type="radio"] {
    margin-right: 0.5rem;
    accent-color: var(--primary-color);
}

.test-actions {
    margin-top: 1.5rem;
}

.test-result {
    border-radius: 6px;
    padding: 1.25rem 1.5rem;
    margin-top: 1.5rem;
    font-size: 1rem;
    line-height: 1.7;
}

.test-result.pass {
    background: #edf7ed;
    border: 1px solid #a5d6a7;
    color: #2e6b30;
}

.test-result.fail {
    background: #fdf2f2;
    border: 1px solid #e5b0b0;
    color: #7f2f24;
}

.test-result .result-score {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
